1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for expat 1.95.7. 4# 5# Report bugs to <expat-bugs@mail.libexpat.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9# Foundation, Inc. 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 and 232$0: expat-bugs@mail.libexpat.org about your system, 233$0: including any error possibly output before this 234$0: message. Then install a modern shell, or manually run 235$0: the script under such a shell if you do have one." 236 fi 237 exit 1 238fi 239fi 240fi 241SHELL=${CONFIG_SHELL-/bin/sh} 242export SHELL 243# Unset more variables known to interfere with behavior of common tools. 244CLICOLOR_FORCE= GREP_OPTIONS= 245unset CLICOLOR_FORCE GREP_OPTIONS 246 247## --------------------- ## 248## M4sh Shell Functions. ## 249## --------------------- ## 250# as_fn_unset VAR 251# --------------- 252# Portably unset VAR. 253as_fn_unset () 254{ 255 { eval $1=; unset $1;} 256} 257as_unset=as_fn_unset 258 259# as_fn_set_status STATUS 260# ----------------------- 261# Set $? to STATUS, without forking. 262as_fn_set_status () 263{ 264 return $1 265} # as_fn_set_status 266 267# as_fn_exit STATUS 268# ----------------- 269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 270as_fn_exit () 271{ 272 set +e 273 as_fn_set_status $1 274 exit $1 275} # as_fn_exit 276 277# as_fn_mkdir_p 278# ------------- 279# Create "$as_dir" as a directory, including parents if necessary. 280as_fn_mkdir_p () 281{ 282 283 case $as_dir in #( 284 -*) as_dir=./$as_dir;; 285 esac 286 test -d "$as_dir" || eval $as_mkdir_p || { 287 as_dirs= 288 while :; do 289 case $as_dir in #( 290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 291 *) as_qdir=$as_dir;; 292 esac 293 as_dirs="'$as_qdir' $as_dirs" 294 as_dir=`$as_dirname -- "$as_dir" || 295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 296 X"$as_dir" : 'X\(//\)[^/]' \| \ 297 X"$as_dir" : 'X\(//\)$' \| \ 298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 299$as_echo X"$as_dir" | 300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 301 s//\1/ 302 q 303 } 304 /^X\(\/\/\)[^/].*/{ 305 s//\1/ 306 q 307 } 308 /^X\(\/\/\)$/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\).*/{ 313 s//\1/ 314 q 315 } 316 s/.*/./; q'` 317 test -d "$as_dir" && break 318 done 319 test -z "$as_dirs" || eval "mkdir $as_dirs" 320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 321 322 323} # as_fn_mkdir_p 324# as_fn_append VAR VALUE 325# ---------------------- 326# Append the text in VALUE to the end of the definition contained in VAR. Take 327# advantage of any shell optimizations that allow amortized linear growth over 328# repeated appends, instead of the typical quadratic growth present in naive 329# implementations. 330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 331 eval 'as_fn_append () 332 { 333 eval $1+=\$2 334 }' 335else 336 as_fn_append () 337 { 338 eval $1=\$$1\$2 339 } 340fi # as_fn_append 341 342# as_fn_arith ARG... 343# ------------------ 344# Perform arithmetic evaluation on the ARGs, and store the result in the 345# global $as_val. Take advantage of shells that can avoid forks. The arguments 346# must be portable across $(()) and expr. 347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 348 eval 'as_fn_arith () 349 { 350 as_val=$(( $* )) 351 }' 352else 353 as_fn_arith () 354 { 355 as_val=`expr "$@" || test $? -eq 1` 356 } 357fi # as_fn_arith 358 359 360# as_fn_error ERROR [LINENO LOG_FD] 361# --------------------------------- 362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 364# script with status $?, using 1 if that was 0. 365as_fn_error () 366{ 367 as_status=$?; test $as_status -eq 0 && as_status=1 368 if test "$3"; then 369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 371 fi 372 $as_echo "$as_me: error: $1" >&2 373 as_fn_exit $as_status 374} # as_fn_error 375 376if expr a : '\(a\)' >/dev/null 2>&1 && 377 test "X`expr 00001 : '.*\(...\)'`" = X001; then 378 as_expr=expr 379else 380 as_expr=false 381fi 382 383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 384 as_basename=basename 385else 386 as_basename=false 387fi 388 389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 390 as_dirname=dirname 391else 392 as_dirname=false 393fi 394 395as_me=`$as_basename -- "$0" || 396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 397 X"$0" : 'X\(//\)$' \| \ 398 X"$0" : 'X\(/\)' \| . 2>/dev/null || 399$as_echo X/"$0" | 400 sed '/^.*\/\([^/][^/]*\)\/*$/{ 401 s//\1/ 402 q 403 } 404 /^X\/\(\/\/\)$/{ 405 s//\1/ 406 q 407 } 408 /^X\/\(\/\).*/{ 409 s//\1/ 410 q 411 } 412 s/.*/./; q'` 413 414# Avoid depending upon Character Ranges. 415as_cr_letters='abcdefghijklmnopqrstuvwxyz' 416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 417as_cr_Letters=$as_cr_letters$as_cr_LETTERS 418as_cr_digits='0123456789' 419as_cr_alnum=$as_cr_Letters$as_cr_digits 420 421 422 as_lineno_1=$LINENO as_lineno_1a=$LINENO 423 as_lineno_2=$LINENO as_lineno_2a=$LINENO 424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 427 sed -n ' 428 p 429 /[$]LINENO/= 430 ' <$as_myself | 431 sed ' 432 s/[$]LINENO.*/&-/ 433 t lineno 434 b 435 :lineno 436 N 437 :loop 438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 439 t loop 440 s/-\n.*// 441 ' >$as_me.lineno && 442 chmod +x "$as_me.lineno" || 443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 444 445 # Don't try to exec as it changes $[0], causing all sort of problems 446 # (the dirname of $[0] is not the place where we might find the 447 # original and so on. Autoconf is especially sensitive to this). 448 . "./$as_me.lineno" 449 # Exit status is that of the last command. 450 exit 451} 452 453ECHO_C= ECHO_N= ECHO_T= 454case `echo -n x` in #((((( 455-n*) 456 case `echo 'xy\c'` in 457 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 458 xy) ECHO_C='\c';; 459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 460 ECHO_T=' ';; 461 esac;; 462*) 463 ECHO_N='-n';; 464esac 465 466rm -f conf$$ conf$$.exe conf$$.file 467if test -d conf$$.dir; then 468 rm -f conf$$.dir/conf$$.file 469else 470 rm -f conf$$.dir 471 mkdir conf$$.dir 2>/dev/null 472fi 473if (echo >conf$$.file) 2>/dev/null; then 474 if ln -s conf$$.file conf$$ 2>/dev/null; then 475 as_ln_s='ln -s' 476 # ... but there are two gotchas: 477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 479 # In both cases, we have to default to `cp -p'. 480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 481 as_ln_s='cp -p' 482 elif ln conf$$.file conf$$ 2>/dev/null; then 483 as_ln_s=ln 484 else 485 as_ln_s='cp -p' 486 fi 487else 488 as_ln_s='cp -p' 489fi 490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 491rmdir conf$$.dir 2>/dev/null 492 493if mkdir -p . 2>/dev/null; then 494 as_mkdir_p='mkdir -p "$as_dir"' 495else 496 test -d ./-p && rmdir ./-p 497 as_mkdir_p=false 498fi 499 500if test -x / >/dev/null 2>&1; then 501 as_test_x='test -x' 502else 503 if ls -dL / >/dev/null 2>&1; then 504 as_ls_L_option=L 505 else 506 as_ls_L_option= 507 fi 508 as_test_x=' 509 eval sh -c '\'' 510 if test -d "$1"; then 511 test -d "$1/."; 512 else 513 case $1 in #( 514 -*)set "./$1";; 515 esac; 516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 517 ???[sx]*):;;*)false;;esac;fi 518 '\'' sh 519 ' 520fi 521as_executable_p=$as_test_x 522 523# Sed expression to map a string onto a valid CPP name. 524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 525 526# Sed expression to map a string onto a valid variable name. 527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 528 529 530 531# Check that we are running under the correct shell. 532SHELL=${CONFIG_SHELL-/bin/sh} 533 534case X$ECHO in 535X*--fallback-echo) 536 # Remove one level of quotation (which was required for Make). 537 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 538 ;; 539esac 540 541echo=${ECHO-echo} 542if test "X$1" = X--no-reexec; then 543 # Discard the --no-reexec flag, and continue. 544 shift 545elif test "X$1" = X--fallback-echo; then 546 # Avoid inline document here, it may be left over 547 : 548elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 549 # Yippee, $echo works! 550 : 551else 552 # Restart under the correct shell. 553 exec $SHELL "$0" --no-reexec ${1+"$@"} 554fi 555 556if test "X$1" = X--fallback-echo; then 557 # used as fallback echo 558 shift 559 cat <<EOF 560$* 561EOF 562 exit 0 563fi 564 565# The HP-UX ksh and POSIX shell print the target directory to stdout 566# if CDPATH is set. 567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 568 569if test -z "$ECHO"; then 570if test "X${echo_test_string+set}" != Xset; then 571# find a string as large as possible, as long as the shell can cope with it 572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 574 if (echo_test_string=`eval $cmd`) 2>/dev/null && 575 echo_test_string=`eval $cmd` && 576 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 577 then 578 break 579 fi 580 done 581fi 582 583if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 584 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 585 test "X$echo_testing_string" = "X$echo_test_string"; then 586 : 587else 588 # The Solaris, AIX, and Digital Unix default echo programs unquote 589 # backslashes. This makes it impossible to quote backslashes using 590 # echo "$something" | sed 's/\\/\\\\/g' 591 # 592 # So, first we look for a working echo in the user's PATH. 593 594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 595 for dir in $PATH /usr/ucb; do 596 IFS="$lt_save_ifs" 597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 600 test "X$echo_testing_string" = "X$echo_test_string"; then 601 echo="$dir/echo" 602 break 603 fi 604 done 605 IFS="$lt_save_ifs" 606 607 if test "X$echo" = Xecho; then 608 # We didn't find a better echo, so look for alternatives. 609 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 610 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 611 test "X$echo_testing_string" = "X$echo_test_string"; then 612 # This shell has a builtin print -r that does the trick. 613 echo='print -r' 614 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 615 test "X$CONFIG_SHELL" != X/bin/ksh; then 616 # If we have ksh, try running configure again with it. 617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 618 export ORIGINAL_CONFIG_SHELL 619 CONFIG_SHELL=/bin/ksh 620 export CONFIG_SHELL 621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 622 else 623 # Try using printf. 624 echo='printf %s\n' 625 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 626 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 627 test "X$echo_testing_string" = "X$echo_test_string"; then 628 # Cool, printf works 629 : 630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 631 test "X$echo_testing_string" = 'X\t' && 632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 635 export CONFIG_SHELL 636 SHELL="$CONFIG_SHELL" 637 export SHELL 638 echo="$CONFIG_SHELL $0 --fallback-echo" 639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 echo="$CONFIG_SHELL $0 --fallback-echo" 644 else 645 # maybe with a smaller string... 646 prev=: 647 648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 649 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 650 then 651 break 652 fi 653 prev="$cmd" 654 done 655 656 if test "$prev" != 'sed 50q "$0"'; then 657 echo_test_string=`eval $prev` 658 export echo_test_string 659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 660 else 661 # Oops. We lost completely, so just stick with echo. 662 echo=echo 663 fi 664 fi 665 fi 666 fi 667fi 668fi 669 670# Copy echo and quote the copy suitably for passing to libtool from 671# the Makefile, instead of quoting the original, which is used later. 672ECHO=$echo 673if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 674 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 675fi 676 677 678 679 680tagnames=${tagnames+${tagnames},}CXX 681 682tagnames=${tagnames+${tagnames},}F77 683 684exec 7<&0 </dev/null 6>&1 685 686# Name of the host. 687# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 688# so uname gets run too. 689ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 690 691# 692# Initializations. 693# 694ac_default_prefix=/usr/local 695ac_clean_files= 696ac_config_libobj_dir=. 697LIBOBJS= 698cross_compiling=no 699subdirs= 700MFLAGS= 701MAKEFLAGS= 702 703# Identity of this package. 704PACKAGE_NAME='expat' 705PACKAGE_TARNAME='expat' 706PACKAGE_VERSION='1.95.7' 707PACKAGE_STRING='expat 1.95.7' 708PACKAGE_BUGREPORT='expat-bugs@mail.libexpat.org' 709PACKAGE_URL='' 710 711ac_unique_file="Makefile.in" 712# Factoring default headers for most tests. 713ac_includes_default="\ 714#include <stdio.h> 715#ifdef HAVE_SYS_TYPES_H 716# include <sys/types.h> 717#endif 718#ifdef HAVE_SYS_STAT_H 719# include <sys/stat.h> 720#endif 721#ifdef STDC_HEADERS 722# include <stdlib.h> 723# include <stddef.h> 724#else 725# ifdef HAVE_STDLIB_H 726# include <stdlib.h> 727# endif 728#endif 729#ifdef HAVE_STRING_H 730# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 731# include <memory.h> 732# endif 733# include <string.h> 734#endif 735#ifdef HAVE_STRINGS_H 736# include <strings.h> 737#endif 738#ifdef HAVE_INTTYPES_H 739# include <inttypes.h> 740#endif 741#ifdef HAVE_STDINT_H 742# include <stdint.h> 743#endif 744#ifdef HAVE_UNISTD_H 745# include <unistd.h> 746#endif" 747 748ac_subst_vars='LTLIBOBJS 749LIBOBJS 750INSTALL_DATA 751INSTALL_SCRIPT 752INSTALL_PROGRAM 753LIBAGE 754LIBREVISION 755LIBCURRENT 756LIBTOOL 757ac_ct_F77 758FFLAGS 759F77 760CXXCPP 761ac_ct_CXX 762CXXFLAGS 763CXX 764CPP 765OBJDUMP 766AS 767DLLTOOL 768NMEDIT 769DSYMUTIL 770STRIP 771RANLIB 772AR 773ECHO 774LN_S 775EGREP 776GREP 777SED 778OBJEXT 779EXEEXT 780ac_ct_CC 781CPPFLAGS 782LDFLAGS 783CFLAGS 784CC 785target_os 786target_vendor 787target_cpu 788target 789host_os 790host_vendor 791host_cpu 792host 793build_os 794build_vendor 795build_cpu 796build 797target_alias 798host_alias 799build_alias 800LIBS 801ECHO_T 802ECHO_N 803ECHO_C 804DEFS 805mandir 806localedir 807libdir 808psdir 809pdfdir 810dvidir 811htmldir 812infodir 813docdir 814oldincludedir 815includedir 816localstatedir 817sharedstatedir 818sysconfdir 819datadir 820datarootdir 821libexecdir 822sbindir 823bindir 824program_transform_name 825prefix 826exec_prefix 827PACKAGE_URL 828PACKAGE_BUGREPORT 829PACKAGE_STRING 830PACKAGE_VERSION 831PACKAGE_TARNAME 832PACKAGE_NAME 833PATH_SEPARATOR 834SHELL' 835ac_subst_files='' 836ac_user_opts=' 837enable_option_checking 838enable_shared 839enable_static 840enable_fast_install 841with_gnu_ld 842enable_libtool_lock 843with_pic 844with_tags 845' 846 ac_precious_vars='build_alias 847host_alias 848target_alias 849CC 850CFLAGS 851LDFLAGS 852LIBS 853CPPFLAGS 854CPP 855CXX 856CXXFLAGS 857CCC 858CXXCPP 859F77 860FFLAGS' 861 862 863# Initialize some variables set by options. 864ac_init_help= 865ac_init_version=false 866ac_unrecognized_opts= 867ac_unrecognized_sep= 868# The variables have the same names as the options, with 869# dashes changed to underlines. 870cache_file=/dev/null 871exec_prefix=NONE 872no_create= 873no_recursion= 874prefix=NONE 875program_prefix=NONE 876program_suffix=NONE 877program_transform_name=s,x,x, 878silent= 879site= 880srcdir= 881verbose= 882x_includes=NONE 883x_libraries=NONE 884 885# Installation directory options. 886# These are left unexpanded so users can "make install exec_prefix=/foo" 887# and all the variables that are supposed to be based on exec_prefix 888# by default will actually change. 889# Use braces instead of parens because sh, perl, etc. also accept them. 890# (The list follows the same order as the GNU Coding Standards.) 891bindir='${exec_prefix}/bin' 892sbindir='${exec_prefix}/sbin' 893libexecdir='${exec_prefix}/libexec' 894datarootdir='${prefix}/share' 895datadir='${datarootdir}' 896sysconfdir='${prefix}/etc' 897sharedstatedir='${prefix}/com' 898localstatedir='${prefix}/var' 899includedir='${prefix}/include' 900oldincludedir='/usr/include' 901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 902infodir='${datarootdir}/info' 903htmldir='${docdir}' 904dvidir='${docdir}' 905pdfdir='${docdir}' 906psdir='${docdir}' 907libdir='${exec_prefix}/lib' 908localedir='${datarootdir}/locale' 909mandir='${datarootdir}/man' 910 911ac_prev= 912ac_dashdash= 913for ac_option 914do 915 # If the previous option needs an argument, assign it. 916 if test -n "$ac_prev"; then 917 eval $ac_prev=\$ac_option 918 ac_prev= 919 continue 920 fi 921 922 case $ac_option in 923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 # Accept the important Cygnus configure options, so we can diagnose typos. 928 929 case $ac_dashdash$ac_option in 930 --) 931 ac_dashdash=yes ;; 932 933 -bindir | --bindir | --bindi | --bind | --bin | --bi) 934 ac_prev=bindir ;; 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 936 bindir=$ac_optarg ;; 937 938 -build | --build | --buil | --bui | --bu) 939 ac_prev=build_alias ;; 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 941 build_alias=$ac_optarg ;; 942 943 -cache-file | --cache-file | --cache-fil | --cache-fi \ 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 945 ac_prev=cache_file ;; 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 948 cache_file=$ac_optarg ;; 949 950 --config-cache | -C) 951 cache_file=config.cache ;; 952 953 -datadir | --datadir | --datadi | --datad) 954 ac_prev=datadir ;; 955 -datadir=* | --datadir=* | --datadi=* | --datad=*) 956 datadir=$ac_optarg ;; 957 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 959 | --dataroo | --dataro | --datar) 960 ac_prev=datarootdir ;; 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 963 datarootdir=$ac_optarg ;; 964 965 -disable-* | --disable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=no ;; 980 981 -docdir | --docdir | --docdi | --doc | --do) 982 ac_prev=docdir ;; 983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 984 docdir=$ac_optarg ;; 985 986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 987 ac_prev=dvidir ;; 988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 989 dvidir=$ac_optarg ;; 990 991 -enable-* | --enable-*) 992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 995 as_fn_error "invalid feature name: $ac_useropt" 996 ac_useropt_orig=$ac_useropt 997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 998 case $ac_user_opts in 999 *" 1000"enable_$ac_useropt" 1001"*) ;; 1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1003 ac_unrecognized_sep=', ';; 1004 esac 1005 eval enable_$ac_useropt=\$ac_optarg ;; 1006 1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1009 | --exec | --exe | --ex) 1010 ac_prev=exec_prefix ;; 1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1013 | --exec=* | --exe=* | --ex=*) 1014 exec_prefix=$ac_optarg ;; 1015 1016 -gas | --gas | --ga | --g) 1017 # Obsolete; use --with-gas. 1018 with_gas=yes ;; 1019 1020 -help | --help | --hel | --he | -h) 1021 ac_init_help=long ;; 1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1023 ac_init_help=recursive ;; 1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1025 ac_init_help=short ;; 1026 1027 -host | --host | --hos | --ho) 1028 ac_prev=host_alias ;; 1029 -host=* | --host=* | --hos=* | --ho=*) 1030 host_alias=$ac_optarg ;; 1031 1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1033 ac_prev=htmldir ;; 1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1035 | --ht=*) 1036 htmldir=$ac_optarg ;; 1037 1038 -includedir | --includedir | --includedi | --included | --include \ 1039 | --includ | --inclu | --incl | --inc) 1040 ac_prev=includedir ;; 1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1042 | --includ=* | --inclu=* | --incl=* | --inc=*) 1043 includedir=$ac_optarg ;; 1044 1045 -infodir | --infodir | --infodi | --infod | --info | --inf) 1046 ac_prev=infodir ;; 1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1048 infodir=$ac_optarg ;; 1049 1050 -libdir | --libdir | --libdi | --libd) 1051 ac_prev=libdir ;; 1052 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1053 libdir=$ac_optarg ;; 1054 1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1056 | --libexe | --libex | --libe) 1057 ac_prev=libexecdir ;; 1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1059 | --libexe=* | --libex=* | --libe=*) 1060 libexecdir=$ac_optarg ;; 1061 1062 -localedir | --localedir | --localedi | --localed | --locale) 1063 ac_prev=localedir ;; 1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1065 localedir=$ac_optarg ;; 1066 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1068 | --localstate | --localstat | --localsta | --localst | --locals) 1069 ac_prev=localstatedir ;; 1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1072 localstatedir=$ac_optarg ;; 1073 1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1075 ac_prev=mandir ;; 1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1077 mandir=$ac_optarg ;; 1078 1079 -nfp | --nfp | --nf) 1080 # Obsolete; use --without-fp. 1081 with_fp=no ;; 1082 1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1084 | --no-cr | --no-c | -n) 1085 no_create=yes ;; 1086 1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1089 no_recursion=yes ;; 1090 1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1093 | --oldin | --oldi | --old | --ol | --o) 1094 ac_prev=oldincludedir ;; 1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1098 oldincludedir=$ac_optarg ;; 1099 1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1101 ac_prev=prefix ;; 1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1103 prefix=$ac_optarg ;; 1104 1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1106 | --program-pre | --program-pr | --program-p) 1107 ac_prev=program_prefix ;; 1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1110 program_prefix=$ac_optarg ;; 1111 1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1113 | --program-suf | --program-su | --program-s) 1114 ac_prev=program_suffix ;; 1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1117 program_suffix=$ac_optarg ;; 1118 1119 -program-transform-name | --program-transform-name \ 1120 | --program-transform-nam | --program-transform-na \ 1121 | --program-transform-n | --program-transform- \ 1122 | --program-transform | --program-transfor \ 1123 | --program-transfo | --program-transf \ 1124 | --program-trans | --program-tran \ 1125 | --progr-tra | --program-tr | --program-t) 1126 ac_prev=program_transform_name ;; 1127 -program-transform-name=* | --program-transform-name=* \ 1128 | --program-transform-nam=* | --program-transform-na=* \ 1129 | --program-transform-n=* | --program-transform-=* \ 1130 | --program-transform=* | --program-transfor=* \ 1131 | --program-transfo=* | --program-transf=* \ 1132 | --program-trans=* | --program-tran=* \ 1133 | --progr-tra=* | --program-tr=* | --program-t=*) 1134 program_transform_name=$ac_optarg ;; 1135 1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1137 ac_prev=pdfdir ;; 1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1139 pdfdir=$ac_optarg ;; 1140 1141 -psdir | --psdir | --psdi | --psd | --ps) 1142 ac_prev=psdir ;; 1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1144 psdir=$ac_optarg ;; 1145 1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1147 | -silent | --silent | --silen | --sile | --sil) 1148 silent=yes ;; 1149 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1151 ac_prev=sbindir ;; 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1153 | --sbi=* | --sb=*) 1154 sbindir=$ac_optarg ;; 1155 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1158 | --sharedst | --shareds | --shared | --share | --shar \ 1159 | --sha | --sh) 1160 ac_prev=sharedstatedir ;; 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1164 | --sha=* | --sh=*) 1165 sharedstatedir=$ac_optarg ;; 1166 1167 -site | --site | --sit) 1168 ac_prev=site ;; 1169 -site=* | --site=* | --sit=*) 1170 site=$ac_optarg ;; 1171 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1173 ac_prev=srcdir ;; 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1175 srcdir=$ac_optarg ;; 1176 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1178 | --syscon | --sysco | --sysc | --sys | --sy) 1179 ac_prev=sysconfdir ;; 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1182 sysconfdir=$ac_optarg ;; 1183 1184 -target | --target | --targe | --targ | --tar | --ta | --t) 1185 ac_prev=target_alias ;; 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1187 target_alias=$ac_optarg ;; 1188 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1190 verbose=yes ;; 1191 1192 -version | --version | --versio | --versi | --vers | -V) 1193 ac_init_version=: ;; 1194 1195 -with-* | --with-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=\$ac_optarg ;; 1210 1211 -without-* | --without-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error "invalid package name: $ac_useropt" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=no ;; 1226 1227 --x) 1228 # Obsolete; use --with-x. 1229 with_x=yes ;; 1230 1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1232 | --x-incl | --x-inc | --x-in | --x-i) 1233 ac_prev=x_includes ;; 1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1236 x_includes=$ac_optarg ;; 1237 1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1240 ac_prev=x_libraries ;; 1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1243 x_libraries=$ac_optarg ;; 1244 1245 -*) as_fn_error "unrecognized option: \`$ac_option' 1246Try \`$0 --help' for more information." 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 case $ac_envvar in #( 1253 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1254 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1255 esac 1256 eval $ac_envvar=\$ac_optarg 1257 export $ac_envvar ;; 1258 1259 *) 1260 # FIXME: should be removed in autoconf 3.0. 1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1265 ;; 1266 1267 esac 1268done 1269 1270if test -n "$ac_prev"; then 1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1272 as_fn_error "missing argument to $ac_option" 1273fi 1274 1275if test -n "$ac_unrecognized_opts"; then 1276 case $enable_option_checking in 1277 no) ;; 1278 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1280 esac 1281fi 1282 1283# Check all directory arguments for consistency. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir 1288do 1289 eval ac_val=\$$ac_var 1290 # Remove trailing slashes. 1291 case $ac_val in 1292 */ ) 1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1294 eval $ac_var=\$ac_val;; 1295 esac 1296 # Be sure to have absolute directory names. 1297 case $ac_val in 1298 [\\/$]* | ?:[\\/]* ) continue;; 1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1300 esac 1301 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1302done 1303 1304# There might be people who depend on the old broken behavior: `$host' 1305# used to hold the argument of --host etc. 1306# FIXME: To remove some day. 1307build=$build_alias 1308host=$host_alias 1309target=$target_alias 1310 1311# FIXME: To remove some day. 1312if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1316 If a cross compiler is detected then cross compile mode will be used." >&2 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345$as_echo X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures expat 1.95.7 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/expat] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459System types: 1460 --build=BUILD configure for building on BUILD [guessed] 1461 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1462 --target=TARGET configure for building compilers for TARGET [HOST] 1463_ACEOF 1464fi 1465 1466if test -n "$ac_init_help"; then 1467 case $ac_init_help in 1468 short | recursive ) echo "Configuration of expat 1.95.7:";; 1469 esac 1470 cat <<\_ACEOF 1471 1472Optional Features: 1473 --disable-option-checking ignore unrecognized --enable/--with options 1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-static[=PKGS] build static libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 1482Optional Packages: 1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1486 --with-pic try to use only PIC/non-PIC objects [default=use 1487 both] 1488 --with-tags[=TAGS] include additional configurations [automatic] 1489 1490Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 LIBS libraries to pass to the linker, e.g. -l<library> 1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1497 you have headers in a nonstandard directory <include dir> 1498 CPP C preprocessor 1499 CXX C++ compiler command 1500 CXXFLAGS C++ compiler flags 1501 CXXCPP C++ preprocessor 1502 F77 Fortran 77 compiler command 1503 FFLAGS Fortran 77 compiler flags 1504 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508Report bugs to <expat-bugs@mail.libexpat.org>. 1509_ACEOF 1510ac_status=$? 1511fi 1512 1513if test "$ac_init_help" = "recursive"; then 1514 # If there are subdirs, report their specific --help. 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1516 test -d "$ac_dir" || 1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1518 continue 1519 ac_builddir=. 1520 1521case "$ac_dir" in 1522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523*) 1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1525 # A ".." for each directory in $ac_dir_suffix. 1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1527 case $ac_top_builddir_sub in 1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1530 esac ;; 1531esac 1532ac_abs_top_builddir=$ac_pwd 1533ac_abs_builddir=$ac_pwd$ac_dir_suffix 1534# for backward compatibility: 1535ac_top_builddir=$ac_top_build_prefix 1536 1537case $srcdir in 1538 .) # We are building in place. 1539 ac_srcdir=. 1540 ac_top_srcdir=$ac_top_builddir_sub 1541 ac_abs_top_srcdir=$ac_pwd ;; 1542 [\\/]* | ?:[\\/]* ) # Absolute name. 1543 ac_srcdir=$srcdir$ac_dir_suffix; 1544 ac_top_srcdir=$srcdir 1545 ac_abs_top_srcdir=$srcdir ;; 1546 *) # Relative name. 1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1548 ac_top_srcdir=$ac_top_build_prefix$srcdir 1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1550esac 1551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1552 1553 cd "$ac_dir" || { ac_status=$?; continue; } 1554 # Check for guested configure. 1555 if test -f "$ac_srcdir/configure.gnu"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1558 elif test -f "$ac_srcdir/configure"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure" --help=recursive 1561 else 1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1563 fi || ac_status=$? 1564 cd "$ac_pwd" || { ac_status=$?; break; } 1565 done 1566fi 1567 1568test -n "$ac_init_help" && exit $ac_status 1569if $ac_init_version; then 1570 cat <<\_ACEOF 1571expat configure 1.95.7 1572generated by GNU Autoconf 2.64 1573 1574Copyright (C) 2009 Free Software Foundation, Inc. 1575This configure script is free software; the Free Software Foundation 1576gives unlimited permission to copy, distribute and modify it. 1577_ACEOF 1578 exit 1579fi 1580 1581## ------------------------ ## 1582## Autoconf initialization. ## 1583## ------------------------ ## 1584 1585# ac_fn_c_try_compile LINENO 1586# -------------------------- 1587# Try to compile conftest.$ac_ext, and return whether this succeeded. 1588ac_fn_c_try_compile () 1589{ 1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591 rm -f conftest.$ac_objext 1592 if { { ac_try="$ac_compile" 1593case "(($ac_try" in 1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1595 *) ac_try_echo=$ac_try;; 1596esac 1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1598$as_echo "$ac_try_echo"; } >&5 1599 (eval "$ac_compile") 2>conftest.err 1600 ac_status=$? 1601 if test -s conftest.err; then 1602 grep -v '^ *+' conftest.err >conftest.er1 1603 cat conftest.er1 >&5 1604 mv -f conftest.er1 conftest.err 1605 fi 1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607 test $ac_status = 0; } && { 1608 test -z "$ac_c_werror_flag" || 1609 test ! -s conftest.err 1610 } && test -s conftest.$ac_objext; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1619 return $ac_retval 1620 1621} # ac_fn_c_try_compile 1622 1623# ac_fn_c_try_link LINENO 1624# ----------------------- 1625# Try to link conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_link () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 rm -f conftest.$ac_objext conftest$ac_exeext 1630 if { { ac_try="$ac_link" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636$as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_link") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } && { 1646 test -z "$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 } && test -s conftest$ac_exeext && { 1649 test "$cross_compiling" = yes || 1650 $as_test_x conftest$ac_exeext 1651 }; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: failed program was:" >&5 1655sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658fi 1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1661 # interfere with the next link command; also delete a directory that is 1662 # left behind by Apple's compiler. We do this before executing the actions. 1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1665 return $ac_retval 1666 1667} # ac_fn_c_try_link 1668 1669# ac_fn_c_try_cpp LINENO 1670# ---------------------- 1671# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1672ac_fn_c_try_cpp () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if { { ac_try="$ac_cpp conftest.$ac_ext" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1683 ac_status=$? 1684 if test -s conftest.err; then 1685 grep -v '^ *+' conftest.err >conftest.er1 1686 cat conftest.er1 >&5 1687 mv -f conftest.er1 conftest.err 1688 fi 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; } >/dev/null && { 1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1692 test ! -s conftest.err 1693 }; then : 1694 ac_retval=0 1695else 1696 $as_echo "$as_me: failed program was:" >&5 1697sed 's/^/| /' conftest.$ac_ext >&5 1698 1699 ac_retval=1 1700fi 1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1702 return $ac_retval 1703 1704} # ac_fn_c_try_cpp 1705 1706# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1707# ------------------------------------------------------- 1708# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1709# the include files in INCLUDES and setting the cache variable VAR 1710# accordingly. 1711ac_fn_c_check_header_mongrel () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1718 $as_echo_n "(cached) " >&6 1719fi 1720eval ac_res=\$$3 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1722$as_echo "$ac_res" >&6; } 1723else 1724 # Is the header compilable? 1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1726$as_echo_n "checking $2 usability... " >&6; } 1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729$4 1730#include <$2> 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 ac_header_compiler=yes 1734else 1735 ac_header_compiler=no 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1739$as_echo "$ac_header_compiler" >&6; } 1740 1741# Is the header present? 1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1743$as_echo_n "checking $2 presence... " >&6; } 1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746#include <$2> 1747_ACEOF 1748if ac_fn_c_try_cpp "$LINENO"; then : 1749 ac_header_preproc=yes 1750else 1751 ac_header_preproc=no 1752fi 1753rm -f conftest.err conftest.$ac_ext 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1755$as_echo "$ac_header_preproc" >&6; } 1756 1757# So? What about this header? 1758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1759 yes:no: ) 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1761$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1763$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1764 ;; 1765 no:yes:* ) 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1767$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1769$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1771$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1773$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1775$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1776( cat <<\_ASBOX 1777## ------------------------------------------- ## 1778## Report this to expat-bugs@mail.libexpat.org ## 1779## ------------------------------------------- ## 1780_ASBOX 1781 ) | sed "s/^/$as_me: WARNING: /" >&2 1782 ;; 1783esac 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1785$as_echo_n "checking for $2... " >&6; } 1786if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1787 $as_echo_n "(cached) " >&6 1788else 1789 eval "$3=\$ac_header_compiler" 1790fi 1791eval ac_res=\$$3 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1793$as_echo "$ac_res" >&6; } 1794fi 1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1796 1797} # ac_fn_c_check_header_mongrel 1798 1799# ac_fn_c_try_run LINENO 1800# ---------------------- 1801# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1802# that executables *can* be run. 1803ac_fn_c_try_run () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 if { { ac_try="$ac_link" 1807case "(($ac_try" in 1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1809 *) ac_try_echo=$ac_try;; 1810esac 1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1812$as_echo "$ac_try_echo"; } >&5 1813 (eval "$ac_link") 2>&5 1814 ac_status=$? 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1817 { { case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822$as_echo "$ac_try_echo"; } >&5 1823 (eval "$ac_try") 2>&5 1824 ac_status=$? 1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1826 test $ac_status = 0; }; }; then : 1827 ac_retval=0 1828else 1829 $as_echo "$as_me: program exited with status $ac_status" >&5 1830 $as_echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=$ac_status 1834fi 1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1837 return $ac_retval 1838 1839} # ac_fn_c_try_run 1840 1841# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1842# ------------------------------------------------------- 1843# Tests whether HEADER exists and can be compiled using the include files in 1844# INCLUDES, setting the cache variable VAR accordingly. 1845ac_fn_c_check_header_compile () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1849$as_echo_n "checking for $2... " >&6; } 1850if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1851 $as_echo_n "(cached) " >&6 1852else 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855$4 1856#include <$2> 1857_ACEOF 1858if ac_fn_c_try_compile "$LINENO"; then : 1859 eval "$3=yes" 1860else 1861 eval "$3=no" 1862fi 1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1864fi 1865eval ac_res=\$$3 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1867$as_echo "$ac_res" >&6; } 1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1869 1870} # ac_fn_c_check_header_compile 1871 1872# ac_fn_c_check_func LINENO FUNC VAR 1873# ---------------------------------- 1874# Tests whether FUNC exists, setting the cache variable VAR accordingly 1875ac_fn_c_check_func () 1876{ 1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1879$as_echo_n "checking for $2... " >&6; } 1880if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1881 $as_echo_n "(cached) " >&6 1882else 1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1884/* end confdefs.h. */ 1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1887#define $2 innocuous_$2 1888 1889/* System header to define __stub macros and hopefully few prototypes, 1890 which can conflict with char $2 (); below. 1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1892 <limits.h> exists even on freestanding compilers. */ 1893 1894#ifdef __STDC__ 1895# include <limits.h> 1896#else 1897# include <assert.h> 1898#endif 1899 1900#undef $2 1901 1902/* Override any GCC internal prototype to avoid an error. 1903 Use char because int might match the return type of a GCC 1904 builtin and then its argument prototype would still apply. */ 1905#ifdef __cplusplus 1906extern "C" 1907#endif 1908char $2 (); 1909/* The GNU C library defines this for functions which it implements 1910 to always fail with ENOSYS. Some functions are actually named 1911 something starting with __ and the normal name is an alias. */ 1912#if defined __stub_$2 || defined __stub___$2 1913choke me 1914#endif 1915 1916int 1917main () 1918{ 1919return $2 (); 1920 ; 1921 return 0; 1922} 1923_ACEOF 1924if ac_fn_c_try_link "$LINENO"; then : 1925 eval "$3=yes" 1926else 1927 eval "$3=no" 1928fi 1929rm -f core conftest.err conftest.$ac_objext \ 1930 conftest$ac_exeext conftest.$ac_ext 1931fi 1932eval ac_res=\$$3 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1936 1937} # ac_fn_c_check_func 1938 1939# ac_fn_cxx_try_compile LINENO 1940# ---------------------------- 1941# Try to compile conftest.$ac_ext, and return whether this succeeded. 1942ac_fn_cxx_try_compile () 1943{ 1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1945 rm -f conftest.$ac_objext 1946 if { { ac_try="$ac_compile" 1947case "(($ac_try" in 1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1949 *) ac_try_echo=$ac_try;; 1950esac 1951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1952$as_echo "$ac_try_echo"; } >&5 1953 (eval "$ac_compile") 2>conftest.err 1954 ac_status=$? 1955 if test -s conftest.err; then 1956 grep -v '^ *+' conftest.err >conftest.er1 1957 cat conftest.er1 >&5 1958 mv -f conftest.er1 conftest.err 1959 fi 1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1961 test $ac_status = 0; } && { 1962 test -z "$ac_cxx_werror_flag" || 1963 test ! -s conftest.err 1964 } && test -s conftest.$ac_objext; then : 1965 ac_retval=0 1966else 1967 $as_echo "$as_me: failed program was:" >&5 1968sed 's/^/| /' conftest.$ac_ext >&5 1969 1970 ac_retval=1 1971fi 1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1973 return $ac_retval 1974 1975} # ac_fn_cxx_try_compile 1976 1977# ac_fn_cxx_try_cpp LINENO 1978# ------------------------ 1979# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1980ac_fn_cxx_try_cpp () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 if { { ac_try="$ac_cpp conftest.$ac_ext" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1991 ac_status=$? 1992 if test -s conftest.err; then 1993 grep -v '^ *+' conftest.err >conftest.er1 1994 cat conftest.er1 >&5 1995 mv -f conftest.er1 conftest.err 1996 fi 1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1998 test $ac_status = 0; } >/dev/null && { 1999 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2000 test ! -s conftest.err 2001 }; then : 2002 ac_retval=0 2003else 2004 $as_echo "$as_me: failed program was:" >&5 2005sed 's/^/| /' conftest.$ac_ext >&5 2006 2007 ac_retval=1 2008fi 2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2010 return $ac_retval 2011 2012} # ac_fn_cxx_try_cpp 2013 2014# ac_fn_cxx_try_link LINENO 2015# ------------------------- 2016# Try to link conftest.$ac_ext, and return whether this succeeded. 2017ac_fn_cxx_try_link () 2018{ 2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2020 rm -f conftest.$ac_objext conftest$ac_exeext 2021 if { { ac_try="$ac_link" 2022case "(($ac_try" in 2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2024 *) ac_try_echo=$ac_try;; 2025esac 2026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2027$as_echo "$ac_try_echo"; } >&5 2028 (eval "$ac_link") 2>conftest.err 2029 ac_status=$? 2030 if test -s conftest.err; then 2031 grep -v '^ *+' conftest.err >conftest.er1 2032 cat conftest.er1 >&5 2033 mv -f conftest.er1 conftest.err 2034 fi 2035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2036 test $ac_status = 0; } && { 2037 test -z "$ac_cxx_werror_flag" || 2038 test ! -s conftest.err 2039 } && test -s conftest$ac_exeext && { 2040 test "$cross_compiling" = yes || 2041 $as_test_x conftest$ac_exeext 2042 }; then : 2043 ac_retval=0 2044else 2045 $as_echo "$as_me: failed program was:" >&5 2046sed 's/^/| /' conftest.$ac_ext >&5 2047 2048 ac_retval=1 2049fi 2050 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2051 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2052 # interfere with the next link command; also delete a directory that is 2053 # left behind by Apple's compiler. We do this before executing the actions. 2054 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2056 return $ac_retval 2057 2058} # ac_fn_cxx_try_link 2059 2060# ac_fn_f77_try_compile LINENO 2061# ---------------------------- 2062# Try to compile conftest.$ac_ext, and return whether this succeeded. 2063ac_fn_f77_try_compile () 2064{ 2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2066 rm -f conftest.$ac_objext 2067 if { { ac_try="$ac_compile" 2068case "(($ac_try" in 2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2070 *) ac_try_echo=$ac_try;; 2071esac 2072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2073$as_echo "$ac_try_echo"; } >&5 2074 (eval "$ac_compile") 2>conftest.err 2075 ac_status=$? 2076 if test -s conftest.err; then 2077 grep -v '^ *+' conftest.err >conftest.er1 2078 cat conftest.er1 >&5 2079 mv -f conftest.er1 conftest.err 2080 fi 2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2082 test $ac_status = 0; } && { 2083 test -z "$ac_f77_werror_flag" || 2084 test ! -s conftest.err 2085 } && test -s conftest.$ac_objext; then : 2086 ac_retval=0 2087else 2088 $as_echo "$as_me: failed program was:" >&5 2089sed 's/^/| /' conftest.$ac_ext >&5 2090 2091 ac_retval=1 2092fi 2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2094 return $ac_retval 2095 2096} # ac_fn_f77_try_compile 2097 2098# ac_fn_f77_try_link LINENO 2099# ------------------------- 2100# Try to link conftest.$ac_ext, and return whether this succeeded. 2101ac_fn_f77_try_link () 2102{ 2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2104 rm -f conftest.$ac_objext conftest$ac_exeext 2105 if { { ac_try="$ac_link" 2106case "(($ac_try" in 2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2108 *) ac_try_echo=$ac_try;; 2109esac 2110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2111$as_echo "$ac_try_echo"; } >&5 2112 (eval "$ac_link") 2>conftest.err 2113 ac_status=$? 2114 if test -s conftest.err; then 2115 grep -v '^ *+' conftest.err >conftest.er1 2116 cat conftest.er1 >&5 2117 mv -f conftest.er1 conftest.err 2118 fi 2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2120 test $ac_status = 0; } && { 2121 test -z "$ac_f77_werror_flag" || 2122 test ! -s conftest.err 2123 } && test -s conftest$ac_exeext && { 2124 test "$cross_compiling" = yes || 2125 $as_test_x conftest$ac_exeext 2126 }; then : 2127 ac_retval=0 2128else 2129 $as_echo "$as_me: failed program was:" >&5 2130sed 's/^/| /' conftest.$ac_ext >&5 2131 2132 ac_retval=1 2133fi 2134 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2135 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2136 # interfere with the next link command; also delete a directory that is 2137 # left behind by Apple's compiler. We do this before executing the actions. 2138 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2139 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2140 return $ac_retval 2141 2142} # ac_fn_f77_try_link 2143 2144# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2145# ------------------------------------------- 2146# Tests whether TYPE exists after having included INCLUDES, setting cache 2147# variable VAR accordingly. 2148ac_fn_c_check_type () 2149{ 2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2152$as_echo_n "checking for $2... " >&6; } 2153if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2154 $as_echo_n "(cached) " >&6 2155else 2156 eval "$3=no" 2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2158/* end confdefs.h. */ 2159$4 2160int 2161main () 2162{ 2163if (sizeof ($2)) 2164 return 0; 2165 ; 2166 return 0; 2167} 2168_ACEOF 2169if ac_fn_c_try_compile "$LINENO"; then : 2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2171/* end confdefs.h. */ 2172$4 2173int 2174main () 2175{ 2176if (sizeof (($2))) 2177 return 0; 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_compile "$LINENO"; then : 2183 2184else 2185 eval "$3=yes" 2186fi 2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2188fi 2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2190fi 2191eval ac_res=\$$3 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2193$as_echo "$ac_res" >&6; } 2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2195 2196} # ac_fn_c_check_type 2197cat >config.log <<_ACEOF 2198This file contains any messages produced by compilers while 2199running configure, to aid debugging if configure makes a mistake. 2200 2201It was created by expat $as_me 1.95.7, which was 2202generated by GNU Autoconf 2.64. Invocation command line was 2203 2204 $ $0 $@ 2205 2206_ACEOF 2207exec 5>>config.log 2208{ 2209cat <<_ASUNAME 2210## --------- ## 2211## Platform. ## 2212## --------- ## 2213 2214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2215uname -m = `(uname -m) 2>/dev/null || echo unknown` 2216uname -r = `(uname -r) 2>/dev/null || echo unknown` 2217uname -s = `(uname -s) 2>/dev/null || echo unknown` 2218uname -v = `(uname -v) 2>/dev/null || echo unknown` 2219 2220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2221/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2222 2223/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2224/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2226/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2227/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2228/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2229/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2230 2231_ASUNAME 2232 2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 $as_echo "PATH: $as_dir" 2239 done 2240IFS=$as_save_IFS 2241 2242} >&5 2243 2244cat >&5 <<_ACEOF 2245 2246 2247## ----------- ## 2248## Core tests. ## 2249## ----------- ## 2250 2251_ACEOF 2252 2253 2254# Keep a trace of the command line. 2255# Strip out --no-create and --no-recursion so they do not pile up. 2256# Strip out --silent because we don't want to record it for future runs. 2257# Also quote any args containing shell meta-characters. 2258# Make two passes to allow for proper duplicate-argument suppression. 2259ac_configure_args= 2260ac_configure_args0= 2261ac_configure_args1= 2262ac_must_keep_next=false 2263for ac_pass in 1 2 2264do 2265 for ac_arg 2266 do 2267 case $ac_arg in 2268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2270 | -silent | --silent | --silen | --sile | --sil) 2271 continue ;; 2272 *\'*) 2273 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2274 esac 2275 case $ac_pass in 2276 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2277 2) 2278 as_fn_append ac_configure_args1 " '$ac_arg'" 2279 if test $ac_must_keep_next = true; then 2280 ac_must_keep_next=false # Got value, back to normal. 2281 else 2282 case $ac_arg in 2283 *=* | --config-cache | -C | -disable-* | --disable-* \ 2284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2286 | -with-* | --with-* | -without-* | --without-* | --x) 2287 case "$ac_configure_args0 " in 2288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2289 esac 2290 ;; 2291 -* ) ac_must_keep_next=true ;; 2292 esac 2293 fi 2294 as_fn_append ac_configure_args " '$ac_arg'" 2295 ;; 2296 esac 2297 done 2298done 2299{ ac_configure_args0=; unset ac_configure_args0;} 2300{ ac_configure_args1=; unset ac_configure_args1;} 2301 2302# When interrupted or exit'd, cleanup temporary files, and complete 2303# config.log. We remove comments because anyway the quotes in there 2304# would cause problems or look ugly. 2305# WARNING: Use '\'' to represent an apostrophe within the trap. 2306# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2307trap 'exit_status=$? 2308 # Save into config.log some information that might help in debugging. 2309 { 2310 echo 2311 2312 cat <<\_ASBOX 2313## ---------------- ## 2314## Cache variables. ## 2315## ---------------- ## 2316_ASBOX 2317 echo 2318 # The following way of writing the cache mishandles newlines in values, 2319( 2320 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2321 eval ac_val=\$$ac_var 2322 case $ac_val in #( 2323 *${as_nl}*) 2324 case $ac_var in #( 2325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2326$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2327 esac 2328 case $ac_var in #( 2329 _ | IFS | as_nl) ;; #( 2330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2331 *) { eval $ac_var=; unset $ac_var;} ;; 2332 esac ;; 2333 esac 2334 done 2335 (set) 2>&1 | 2336 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2337 *${as_nl}ac_space=\ *) 2338 sed -n \ 2339 "s/'\''/'\''\\\\'\'''\''/g; 2340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2341 ;; #( 2342 *) 2343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2344 ;; 2345 esac | 2346 sort 2347) 2348 echo 2349 2350 cat <<\_ASBOX 2351## ----------------- ## 2352## Output variables. ## 2353## ----------------- ## 2354_ASBOX 2355 echo 2356 for ac_var in $ac_subst_vars 2357 do 2358 eval ac_val=\$$ac_var 2359 case $ac_val in 2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2361 esac 2362 $as_echo "$ac_var='\''$ac_val'\''" 2363 done | sort 2364 echo 2365 2366 if test -n "$ac_subst_files"; then 2367 cat <<\_ASBOX 2368## ------------------- ## 2369## File substitutions. ## 2370## ------------------- ## 2371_ASBOX 2372 echo 2373 for ac_var in $ac_subst_files 2374 do 2375 eval ac_val=\$$ac_var 2376 case $ac_val in 2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2378 esac 2379 $as_echo "$ac_var='\''$ac_val'\''" 2380 done | sort 2381 echo 2382 fi 2383 2384 if test -s confdefs.h; then 2385 cat <<\_ASBOX 2386## ----------- ## 2387## confdefs.h. ## 2388## ----------- ## 2389_ASBOX 2390 echo 2391 cat confdefs.h 2392 echo 2393 fi 2394 test "$ac_signal" != 0 && 2395 $as_echo "$as_me: caught signal $ac_signal" 2396 $as_echo "$as_me: exit $exit_status" 2397 } >&5 2398 rm -f core *.core core.conftest.* && 2399 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2400 exit $exit_status 2401' 0 2402for ac_signal in 1 2 13 15; do 2403 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2404done 2405ac_signal=0 2406 2407# confdefs.h avoids OS command line length limits that DEFS can exceed. 2408rm -f -r conftest* confdefs.h 2409 2410$as_echo "/* confdefs.h */" > confdefs.h 2411 2412# Predefined preprocessor variables. 2413 2414cat >>confdefs.h <<_ACEOF 2415#define PACKAGE_NAME "$PACKAGE_NAME" 2416_ACEOF 2417 2418cat >>confdefs.h <<_ACEOF 2419#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2420_ACEOF 2421 2422cat >>confdefs.h <<_ACEOF 2423#define PACKAGE_VERSION "$PACKAGE_VERSION" 2424_ACEOF 2425 2426cat >>confdefs.h <<_ACEOF 2427#define PACKAGE_STRING "$PACKAGE_STRING" 2428_ACEOF 2429 2430cat >>confdefs.h <<_ACEOF 2431#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2432_ACEOF 2433 2434cat >>confdefs.h <<_ACEOF 2435#define PACKAGE_URL "$PACKAGE_URL" 2436_ACEOF 2437 2438 2439# Let the site file select an alternate cache file if it wants to. 2440# Prefer an explicitly selected file to automatically selected ones. 2441ac_site_file1=NONE 2442ac_site_file2=NONE 2443if test -n "$CONFIG_SITE"; then 2444 ac_site_file1=$CONFIG_SITE 2445elif test "x$prefix" != xNONE; then 2446 ac_site_file1=$prefix/share/config.site 2447 ac_site_file2=$prefix/etc/config.site 2448else 2449 ac_site_file1=$ac_default_prefix/share/config.site 2450 ac_site_file2=$ac_default_prefix/etc/config.site 2451fi 2452for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2453do 2454 test "x$ac_site_file" = xNONE && continue 2455 if test -r "$ac_site_file"; then 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2457$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2458 sed 's/^/| /' "$ac_site_file" >&5 2459 . "$ac_site_file" 2460 fi 2461done 2462 2463if test -r "$cache_file"; then 2464 # Some versions of bash will fail to source /dev/null (special 2465 # files actually), so we avoid doing that. 2466 if test -f "$cache_file"; then 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2468$as_echo "$as_me: loading cache $cache_file" >&6;} 2469 case $cache_file in 2470 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2471 *) . "./$cache_file";; 2472 esac 2473 fi 2474else 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2476$as_echo "$as_me: creating cache $cache_file" >&6;} 2477 >$cache_file 2478fi 2479 2480# Check that the precious variables saved in the cache have kept the same 2481# value. 2482ac_cache_corrupted=false 2483for ac_var in $ac_precious_vars; do 2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2485 eval ac_new_set=\$ac_env_${ac_var}_set 2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2487 eval ac_new_val=\$ac_env_${ac_var}_value 2488 case $ac_old_set,$ac_new_set in 2489 set,) 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2491$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2492 ac_cache_corrupted=: ;; 2493 ,set) 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2495$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2496 ac_cache_corrupted=: ;; 2497 ,);; 2498 *) 2499 if test "x$ac_old_val" != "x$ac_new_val"; then 2500 # differences in whitespace do not lead to failure. 2501 ac_old_val_w=`echo x $ac_old_val` 2502 ac_new_val_w=`echo x $ac_new_val` 2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2505$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2506 ac_cache_corrupted=: 2507 else 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2509$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2510 eval $ac_var=\$ac_old_val 2511 fi 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2513$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2515$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2516 fi;; 2517 esac 2518 # Pass precious variables to config.status. 2519 if test "$ac_new_set" = set; then 2520 case $ac_new_val in 2521 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2522 *) ac_arg=$ac_var=$ac_new_val ;; 2523 esac 2524 case " $ac_configure_args " in 2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2527 esac 2528 fi 2529done 2530if $ac_cache_corrupted; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2534$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2535 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2536fi 2537## -------------------- ## 2538## Main body of script. ## 2539## -------------------- ## 2540 2541ac_ext=c 2542ac_cpp='$CPP $CPPFLAGS' 2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2545ac_compiler_gnu=$ac_cv_c_compiler_gnu 2546 2547 2548 2549 2550ac_aux_dir= 2551for ac_dir in conftools "$srcdir"/conftools; do 2552 for ac_t in install-sh install.sh shtool; do 2553 if test -f "$ac_dir/$ac_t"; then 2554 ac_aux_dir=$ac_dir 2555 ac_install_sh="$ac_aux_dir/$ac_t -c" 2556 break 2 2557 fi 2558 done 2559done 2560if test -z "$ac_aux_dir"; then 2561 as_fn_error "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5 2562fi 2563 2564# These three variables are undocumented and unsupported, 2565# and are intended to be withdrawn in a future Autoconf release. 2566# They can cause serious problems if a builder's source tree is in a directory 2567# whose full name contains unusual characters. 2568ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2569ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2570ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2571 2572 2573 2574 2575 2576LIBCURRENT=5 2577LIBREVISION=0 2578LIBAGE=5 2579 2580ac_config_headers="$ac_config_headers expat_config.h" 2581 2582 2583 2584 2585 2586# Make sure we can run config.sub. 2587$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2588 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2589 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2591$as_echo_n "checking build system type... " >&6; } 2592if test "${ac_cv_build+set}" = set; then : 2593 $as_echo_n "(cached) " >&6 2594else 2595 ac_build_alias=$build_alias 2596test "x$ac_build_alias" = x && 2597 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2598test "x$ac_build_alias" = x && 2599 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2600ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2601 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2602 2603fi 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2605$as_echo "$ac_cv_build" >&6; } 2606case $ac_cv_build in 2607*-*-*) ;; 2608*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2609esac 2610build=$ac_cv_build 2611ac_save_IFS=$IFS; IFS='-' 2612set x $ac_cv_build 2613shift 2614build_cpu=$1 2615build_vendor=$2 2616shift; shift 2617# Remember, the first character of IFS is used to create $*, 2618# except with old shells: 2619build_os=$* 2620IFS=$ac_save_IFS 2621case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2622 2623 2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2625$as_echo_n "checking host system type... " >&6; } 2626if test "${ac_cv_host+set}" = set; then : 2627 $as_echo_n "(cached) " >&6 2628else 2629 if test "x$host_alias" = x; then 2630 ac_cv_host=$ac_cv_build 2631else 2632 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2633 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2634fi 2635 2636fi 2637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2638$as_echo "$ac_cv_host" >&6; } 2639case $ac_cv_host in 2640*-*-*) ;; 2641*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2642esac 2643host=$ac_cv_host 2644ac_save_IFS=$IFS; IFS='-' 2645set x $ac_cv_host 2646shift 2647host_cpu=$1 2648host_vendor=$2 2649shift; shift 2650# Remember, the first character of IFS is used to create $*, 2651# except with old shells: 2652host_os=$* 2653IFS=$ac_save_IFS 2654case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2655 2656 2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2658$as_echo_n "checking target system type... " >&6; } 2659if test "${ac_cv_target+set}" = set; then : 2660 $as_echo_n "(cached) " >&6 2661else 2662 if test "x$target_alias" = x; then 2663 ac_cv_target=$ac_cv_host 2664else 2665 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2666 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2667fi 2668 2669fi 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2671$as_echo "$ac_cv_target" >&6; } 2672case $ac_cv_target in 2673*-*-*) ;; 2674*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2675esac 2676target=$ac_cv_target 2677ac_save_IFS=$IFS; IFS='-' 2678set x $ac_cv_target 2679shift 2680target_cpu=$1 2681target_vendor=$2 2682shift; shift 2683# Remember, the first character of IFS is used to create $*, 2684# except with old shells: 2685target_os=$* 2686IFS=$ac_save_IFS 2687case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2688 2689 2690# The aliases save the names the user supplied, while $host etc. 2691# will get canonicalized. 2692test -n "$target_alias" && 2693 test "$program_prefix$program_suffix$program_transform_name" = \ 2694 NONENONEs,x,x, && 2695 program_prefix=${target_alias}- 2696 2697 2698case "$host_os" in 2699*os2*) 2700 # Use a custom made libtool replacement 2701 echo Using aplibtool 2702 LIBTOOL="$srcdir/../../../apr/build/aplibtool" 2703 ;; 2704*) 2705 2706 2707# Check whether --enable-shared was given. 2708if test "${enable_shared+set}" = set; then : 2709 enableval=$enable_shared; p=${PACKAGE-default} 2710 case $enableval in 2711 yes) enable_shared=yes ;; 2712 no) enable_shared=no ;; 2713 *) 2714 enable_shared=no 2715 # Look at the argument we got. We use all the common list separators. 2716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2717 for pkg in $enableval; do 2718 IFS="$lt_save_ifs" 2719 if test "X$pkg" = "X$p"; then 2720 enable_shared=yes 2721 fi 2722 done 2723 IFS="$lt_save_ifs" 2724 ;; 2725 esac 2726else 2727 enable_shared=yes 2728fi 2729 2730 2731# Check whether --enable-static was given. 2732if test "${enable_static+set}" = set; then : 2733 enableval=$enable_static; p=${PACKAGE-default} 2734 case $enableval in 2735 yes) enable_static=yes ;; 2736 no) enable_static=no ;; 2737 *) 2738 enable_static=no 2739 # Look at the argument we got. We use all the common list separators. 2740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2741 for pkg in $enableval; do 2742 IFS="$lt_save_ifs" 2743 if test "X$pkg" = "X$p"; then 2744 enable_static=yes 2745 fi 2746 done 2747 IFS="$lt_save_ifs" 2748 ;; 2749 esac 2750else 2751 enable_static=yes 2752fi 2753 2754 2755# Check whether --enable-fast-install was given. 2756if test "${enable_fast_install+set}" = set; then : 2757 enableval=$enable_fast_install; p=${PACKAGE-default} 2758 case $enableval in 2759 yes) enable_fast_install=yes ;; 2760 no) enable_fast_install=no ;; 2761 *) 2762 enable_fast_install=no 2763 # Look at the argument we got. We use all the common list separators. 2764 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2765 for pkg in $enableval; do 2766 IFS="$lt_save_ifs" 2767 if test "X$pkg" = "X$p"; then 2768 enable_fast_install=yes 2769 fi 2770 done 2771 IFS="$lt_save_ifs" 2772 ;; 2773 esac 2774else 2775 enable_fast_install=yes 2776fi 2777 2778 2779ac_ext=c 2780ac_cpp='$CPP $CPPFLAGS' 2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2783ac_compiler_gnu=$ac_cv_c_compiler_gnu 2784if test -n "$ac_tool_prefix"; then 2785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2786set dummy ${ac_tool_prefix}gcc; ac_word=$2 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2788$as_echo_n "checking for $ac_word... " >&6; } 2789if test "${ac_cv_prog_CC+set}" = set; then : 2790 $as_echo_n "(cached) " >&6 2791else 2792 if test -n "$CC"; then 2793 ac_cv_prog_CC="$CC" # Let the user override the test. 2794else 2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2796for as_dir in $PATH 2797do 2798 IFS=$as_save_IFS 2799 test -z "$as_dir" && as_dir=. 2800 for ac_exec_ext in '' $ac_executable_extensions; do 2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2802 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2804 break 2 2805 fi 2806done 2807 done 2808IFS=$as_save_IFS 2809 2810fi 2811fi 2812CC=$ac_cv_prog_CC 2813if test -n "$CC"; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2815$as_echo "$CC" >&6; } 2816else 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2818$as_echo "no" >&6; } 2819fi 2820 2821 2822fi 2823if test -z "$ac_cv_prog_CC"; then 2824 ac_ct_CC=$CC 2825 # Extract the first word of "gcc", so it can be a program name with args. 2826set dummy gcc; ac_word=$2 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2828$as_echo_n "checking for $ac_word... " >&6; } 2829if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2830 $as_echo_n "(cached) " >&6 2831else 2832 if test -n "$ac_ct_CC"; then 2833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2834else 2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2836for as_dir in $PATH 2837do 2838 IFS=$as_save_IFS 2839 test -z "$as_dir" && as_dir=. 2840 for ac_exec_ext in '' $ac_executable_extensions; do 2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2842 ac_cv_prog_ac_ct_CC="gcc" 2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2844 break 2 2845 fi 2846done 2847 done 2848IFS=$as_save_IFS 2849 2850fi 2851fi 2852ac_ct_CC=$ac_cv_prog_ac_ct_CC 2853if test -n "$ac_ct_CC"; then 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2855$as_echo "$ac_ct_CC" >&6; } 2856else 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858$as_echo "no" >&6; } 2859fi 2860 2861 if test "x$ac_ct_CC" = x; then 2862 CC="" 2863 else 2864 case $cross_compiling:$ac_tool_warned in 2865yes:) 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2868ac_tool_warned=yes ;; 2869esac 2870 CC=$ac_ct_CC 2871 fi 2872else 2873 CC="$ac_cv_prog_CC" 2874fi 2875 2876if test -z "$CC"; then 2877 if test -n "$ac_tool_prefix"; then 2878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2879set dummy ${ac_tool_prefix}cc; ac_word=$2 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2881$as_echo_n "checking for $ac_word... " >&6; } 2882if test "${ac_cv_prog_CC+set}" = set; then : 2883 $as_echo_n "(cached) " >&6 2884else 2885 if test -n "$CC"; then 2886 ac_cv_prog_CC="$CC" # Let the user override the test. 2887else 2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2889for as_dir in $PATH 2890do 2891 IFS=$as_save_IFS 2892 test -z "$as_dir" && as_dir=. 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2895 ac_cv_prog_CC="${ac_tool_prefix}cc" 2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899done 2900 done 2901IFS=$as_save_IFS 2902 2903fi 2904fi 2905CC=$ac_cv_prog_CC 2906if test -n "$CC"; then 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2908$as_echo "$CC" >&6; } 2909else 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2911$as_echo "no" >&6; } 2912fi 2913 2914 2915 fi 2916fi 2917if test -z "$CC"; then 2918 # Extract the first word of "cc", so it can be a program name with args. 2919set dummy cc; ac_word=$2 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2921$as_echo_n "checking for $ac_word... " >&6; } 2922if test "${ac_cv_prog_CC+set}" = set; then : 2923 $as_echo_n "(cached) " >&6 2924else 2925 if test -n "$CC"; then 2926 ac_cv_prog_CC="$CC" # Let the user override the test. 2927else 2928 ac_prog_rejected=no 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 test -z "$as_dir" && as_dir=. 2934 for ac_exec_ext in '' $ac_executable_extensions; do 2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2937 ac_prog_rejected=yes 2938 continue 2939 fi 2940 ac_cv_prog_CC="cc" 2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948if test $ac_prog_rejected = yes; then 2949 # We found a bogon in the path, so make sure we never use it. 2950 set dummy $ac_cv_prog_CC 2951 shift 2952 if test $# != 0; then 2953 # We chose a different compiler from the bogus one. 2954 # However, it has the same basename, so the bogon will be chosen 2955 # first if we set CC to just the basename; use the full file name. 2956 shift 2957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2958 fi 2959fi 2960fi 2961fi 2962CC=$ac_cv_prog_CC 2963if test -n "$CC"; then 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2965$as_echo "$CC" >&6; } 2966else 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2968$as_echo "no" >&6; } 2969fi 2970 2971 2972fi 2973if test -z "$CC"; then 2974 if test -n "$ac_tool_prefix"; then 2975 for ac_prog in cl.exe 2976 do 2977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2978set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2980$as_echo_n "checking for $ac_word... " >&6; } 2981if test "${ac_cv_prog_CC+set}" = set; then : 2982 $as_echo_n "(cached) " >&6 2983else 2984 if test -n "$CC"; then 2985 ac_cv_prog_CC="$CC" # Let the user override the test. 2986else 2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988for as_dir in $PATH 2989do 2990 IFS=$as_save_IFS 2991 test -z "$as_dir" && as_dir=. 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2996 break 2 2997 fi 2998done 2999 done 3000IFS=$as_save_IFS 3001 3002fi 3003fi 3004CC=$ac_cv_prog_CC 3005if test -n "$CC"; then 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3007$as_echo "$CC" >&6; } 3008else 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3010$as_echo "no" >&6; } 3011fi 3012 3013 3014 test -n "$CC" && break 3015 done 3016fi 3017if test -z "$CC"; then 3018 ac_ct_CC=$CC 3019 for ac_prog in cl.exe 3020do 3021 # Extract the first word of "$ac_prog", so it can be a program name with args. 3022set dummy $ac_prog; ac_word=$2 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3024$as_echo_n "checking for $ac_word... " >&6; } 3025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3026 $as_echo_n "(cached) " >&6 3027else 3028 if test -n "$ac_ct_CC"; then 3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3030else 3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3032for as_dir in $PATH 3033do 3034 IFS=$as_save_IFS 3035 test -z "$as_dir" && as_dir=. 3036 for ac_exec_ext in '' $ac_executable_extensions; do 3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3038 ac_cv_prog_ac_ct_CC="$ac_prog" 3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3040 break 2 3041 fi 3042done 3043 done 3044IFS=$as_save_IFS 3045 3046fi 3047fi 3048ac_ct_CC=$ac_cv_prog_ac_ct_CC 3049if test -n "$ac_ct_CC"; then 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3051$as_echo "$ac_ct_CC" >&6; } 3052else 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3054$as_echo "no" >&6; } 3055fi 3056 3057 3058 test -n "$ac_ct_CC" && break 3059done 3060 3061 if test "x$ac_ct_CC" = x; then 3062 CC="" 3063 else 3064 case $cross_compiling:$ac_tool_warned in 3065yes:) 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3068ac_tool_warned=yes ;; 3069esac 3070 CC=$ac_ct_CC 3071 fi 3072fi 3073 3074fi 3075 3076 3077test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3079as_fn_error "no acceptable C compiler found in \$PATH 3080See \`config.log' for more details." "$LINENO" 5; } 3081 3082# Provide some information about the compiler. 3083$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3084set X $ac_compile 3085ac_compiler=$2 3086for ac_option in --version -v -V -qversion; do 3087 { { ac_try="$ac_compiler $ac_option >&5" 3088case "(($ac_try" in 3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3090 *) ac_try_echo=$ac_try;; 3091esac 3092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3093$as_echo "$ac_try_echo"; } >&5 3094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3095 ac_status=$? 3096 if test -s conftest.err; then 3097 sed '10a\ 3098... rest of stderr output deleted ... 3099 10q' conftest.err >conftest.er1 3100 cat conftest.er1 >&5 3101 rm -f conftest.er1 conftest.err 3102 fi 3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3104 test $ac_status = 0; } 3105done 3106 3107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3108/* end confdefs.h. */ 3109#include <stdio.h> 3110int 3111main () 3112{ 3113FILE *f = fopen ("conftest.out", "w"); 3114 return ferror (f) || fclose (f) != 0; 3115 3116 ; 3117 return 0; 3118} 3119_ACEOF 3120ac_clean_files_save=$ac_clean_files 3121ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3122# Try to create an executable without -o first, disregard a.out. 3123# It will help us diagnose broken compilers, and finding out an intuition 3124# of exeext. 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3126$as_echo_n "checking for C compiler default output file name... " >&6; } 3127ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3128 3129# The possible output files: 3130ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3131 3132ac_rmfiles= 3133for ac_file in $ac_files 3134do 3135 case $ac_file in 3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3138 esac 3139done 3140rm -f $ac_rmfiles 3141 3142if { { ac_try="$ac_link_default" 3143case "(($ac_try" in 3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145 *) ac_try_echo=$ac_try;; 3146esac 3147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3148$as_echo "$ac_try_echo"; } >&5 3149 (eval "$ac_link_default") 2>&5 3150 ac_status=$? 3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3152 test $ac_status = 0; }; then : 3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3154# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3155# in a Makefile. We should not override ac_cv_exeext if it was cached, 3156# so that the user can short-circuit this test for compilers unknown to 3157# Autoconf. 3158for ac_file in $ac_files '' 3159do 3160 test -f "$ac_file" || continue 3161 case $ac_file in 3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3163 ;; 3164 [ab].out ) 3165 # We found the default executable, but exeext='' is most 3166 # certainly right. 3167 break;; 3168 *.* ) 3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3170 then :; else 3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3172 fi 3173 # We set ac_cv_exeext here because the later test for it is not 3174 # safe: cross compilers may not add the suffix if given an `-o' 3175 # argument, so we may need to know it at that point already. 3176 # Even if this section looks crufty: it has the advantage of 3177 # actually working. 3178 break;; 3179 * ) 3180 break;; 3181 esac 3182done 3183test "$ac_cv_exeext" = no && ac_cv_exeext= 3184 3185else 3186 ac_file='' 3187fi 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3189$as_echo "$ac_file" >&6; } 3190if test -z "$ac_file"; then : 3191 $as_echo "$as_me: failed program was:" >&5 3192sed 's/^/| /' conftest.$ac_ext >&5 3193 3194{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3196{ as_fn_set_status 77 3197as_fn_error "C compiler cannot create executables 3198See \`config.log' for more details." "$LINENO" 5; }; } 3199fi 3200ac_exeext=$ac_cv_exeext 3201 3202# Check that the compiler produces executables we can run. If not, either 3203# the compiler is broken, or we cross compile. 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3205$as_echo_n "checking whether the C compiler works... " >&6; } 3206# If not cross compiling, check that we can run a simple program. 3207if test "$cross_compiling" != yes; then 3208 if { ac_try='./$ac_file' 3209 { { case "(($ac_try" in 3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3211 *) ac_try_echo=$ac_try;; 3212esac 3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3214$as_echo "$ac_try_echo"; } >&5 3215 (eval "$ac_try") 2>&5 3216 ac_status=$? 3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3218 test $ac_status = 0; }; }; then 3219 cross_compiling=no 3220 else 3221 if test "$cross_compiling" = maybe; then 3222 cross_compiling=yes 3223 else 3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3226as_fn_error "cannot run C compiled programs. 3227If you meant to cross compile, use \`--host'. 3228See \`config.log' for more details." "$LINENO" 5; } 3229 fi 3230 fi 3231fi 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3233$as_echo "yes" >&6; } 3234 3235rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3236ac_clean_files=$ac_clean_files_save 3237# Check that the compiler produces executables we can run. If not, either 3238# the compiler is broken, or we cross compile. 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3240$as_echo_n "checking whether we are cross compiling... " >&6; } 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3242$as_echo "$cross_compiling" >&6; } 3243 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3245$as_echo_n "checking for suffix of executables... " >&6; } 3246if { { ac_try="$ac_link" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3252$as_echo "$ac_try_echo"; } >&5 3253 (eval "$ac_link") 2>&5 3254 ac_status=$? 3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3256 test $ac_status = 0; }; then : 3257 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3258# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3259# work properly (i.e., refer to `conftest.exe'), while it won't with 3260# `rm'. 3261for ac_file in conftest.exe conftest conftest.*; do 3262 test -f "$ac_file" || continue 3263 case $ac_file in 3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3266 break;; 3267 * ) break;; 3268 esac 3269done 3270else 3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3273as_fn_error "cannot compute suffix of executables: cannot compile and link 3274See \`config.log' for more details." "$LINENO" 5; } 3275fi 3276rm -f conftest$ac_cv_exeext 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3278$as_echo "$ac_cv_exeext" >&6; } 3279 3280rm -f conftest.$ac_ext 3281EXEEXT=$ac_cv_exeext 3282ac_exeext=$EXEEXT 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3284$as_echo_n "checking for suffix of object files... " >&6; } 3285if test "${ac_cv_objext+set}" = set; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294 3295 ; 3296 return 0; 3297} 3298_ACEOF 3299rm -f conftest.o conftest.obj 3300if { { ac_try="$ac_compile" 3301case "(($ac_try" in 3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3303 *) ac_try_echo=$ac_try;; 3304esac 3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3306$as_echo "$ac_try_echo"; } >&5 3307 (eval "$ac_compile") 2>&5 3308 ac_status=$? 3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3310 test $ac_status = 0; }; then : 3311 for ac_file in conftest.o conftest.obj conftest.*; do 3312 test -f "$ac_file" || continue; 3313 case $ac_file in 3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3316 break;; 3317 esac 3318done 3319else 3320 $as_echo "$as_me: failed program was:" >&5 3321sed 's/^/| /' conftest.$ac_ext >&5 3322 3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3325as_fn_error "cannot compute suffix of object files: cannot compile 3326See \`config.log' for more details." "$LINENO" 5; } 3327fi 3328rm -f conftest.$ac_cv_objext conftest.$ac_ext 3329fi 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3331$as_echo "$ac_cv_objext" >&6; } 3332OBJEXT=$ac_cv_objext 3333ac_objext=$OBJEXT 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3335$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3336if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3337 $as_echo_n "(cached) " >&6 3338else 3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341 3342int 3343main () 3344{ 3345#ifndef __GNUC__ 3346 choke me 3347#endif 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353if ac_fn_c_try_compile "$LINENO"; then : 3354 ac_compiler_gnu=yes 3355else 3356 ac_compiler_gnu=no 3357fi 3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3359ac_cv_c_compiler_gnu=$ac_compiler_gnu 3360 3361fi 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3363$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3364if test $ac_compiler_gnu = yes; then 3365 GCC=yes 3366else 3367 GCC= 3368fi 3369ac_test_CFLAGS=${CFLAGS+set} 3370ac_save_CFLAGS=$CFLAGS 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3372$as_echo_n "checking whether $CC accepts -g... " >&6; } 3373if test "${ac_cv_prog_cc_g+set}" = set; then : 3374 $as_echo_n "(cached) " >&6 3375else 3376 ac_save_c_werror_flag=$ac_c_werror_flag 3377 ac_c_werror_flag=yes 3378 ac_cv_prog_cc_g=no 3379 CFLAGS="-g" 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382 3383int 3384main () 3385{ 3386 3387 ; 3388 return 0; 3389} 3390_ACEOF 3391if ac_fn_c_try_compile "$LINENO"; then : 3392 ac_cv_prog_cc_g=yes 3393else 3394 CFLAGS="" 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396/* end confdefs.h. */ 3397 3398int 3399main () 3400{ 3401 3402 ; 3403 return 0; 3404} 3405_ACEOF 3406if ac_fn_c_try_compile "$LINENO"; then : 3407 3408else 3409 ac_c_werror_flag=$ac_save_c_werror_flag 3410 CFLAGS="-g" 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412/* end confdefs.h. */ 3413 3414int 3415main () 3416{ 3417 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422if ac_fn_c_try_compile "$LINENO"; then : 3423 ac_cv_prog_cc_g=yes 3424fi 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426fi 3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3428fi 3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3430 ac_c_werror_flag=$ac_save_c_werror_flag 3431fi 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3433$as_echo "$ac_cv_prog_cc_g" >&6; } 3434if test "$ac_test_CFLAGS" = set; then 3435 CFLAGS=$ac_save_CFLAGS 3436elif test $ac_cv_prog_cc_g = yes; then 3437 if test "$GCC" = yes; then 3438 CFLAGS="-g -O2" 3439 else 3440 CFLAGS="-g" 3441 fi 3442else 3443 if test "$GCC" = yes; then 3444 CFLAGS="-O2" 3445 else 3446 CFLAGS= 3447 fi 3448fi 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3450$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3451if test "${ac_cv_prog_cc_c89+set}" = set; then : 3452 $as_echo_n "(cached) " >&6 3453else 3454 ac_cv_prog_cc_c89=no 3455ac_save_CC=$CC 3456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3457/* end confdefs.h. */ 3458#include <stdarg.h> 3459#include <stdio.h> 3460#include <sys/types.h> 3461#include <sys/stat.h> 3462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3463struct buf { int x; }; 3464FILE * (*rcsopen) (struct buf *, struct stat *, int); 3465static char *e (p, i) 3466 char **p; 3467 int i; 3468{ 3469 return p[i]; 3470} 3471static char *f (char * (*g) (char **, int), char **p, ...) 3472{ 3473 char *s; 3474 va_list v; 3475 va_start (v,p); 3476 s = g (p, va_arg (v,int)); 3477 va_end (v); 3478 return s; 3479} 3480 3481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3482 function prototypes and stuff, but not '\xHH' hex character constants. 3483 These don't provoke an error unfortunately, instead are silently treated 3484 as 'x'. The following induces an error, until -std is added to get 3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3486 array size at least. It's necessary to write '\x00'==0 to get something 3487 that's true only with -std. */ 3488int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3489 3490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3491 inside strings and character constants. */ 3492#define FOO(x) 'x' 3493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3494 3495int test (int i, double x); 3496struct s1 {int (*f) (int a);}; 3497struct s2 {int (*f) (double a);}; 3498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3499int argc; 3500char **argv; 3501int 3502main () 3503{ 3504return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3505 ; 3506 return 0; 3507} 3508_ACEOF 3509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3511do 3512 CC="$ac_save_CC $ac_arg" 3513 if ac_fn_c_try_compile "$LINENO"; then : 3514 ac_cv_prog_cc_c89=$ac_arg 3515fi 3516rm -f core conftest.err conftest.$ac_objext 3517 test "x$ac_cv_prog_cc_c89" != "xno" && break 3518done 3519rm -f conftest.$ac_ext 3520CC=$ac_save_CC 3521 3522fi 3523# AC_CACHE_VAL 3524case "x$ac_cv_prog_cc_c89" in 3525 x) 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3527$as_echo "none needed" >&6; } ;; 3528 xno) 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3530$as_echo "unsupported" >&6; } ;; 3531 *) 3532 CC="$CC $ac_cv_prog_cc_c89" 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3534$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3535esac 3536if test "x$ac_cv_prog_cc_c89" != xno; then : 3537 3538fi 3539 3540ac_ext=c 3541ac_cpp='$CPP $CPPFLAGS' 3542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3544ac_compiler_gnu=$ac_cv_c_compiler_gnu 3545 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3547$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3548if test "${lt_cv_path_SED+set}" = set; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 # Loop through the user's path and test for sed and gsed. 3552# Then use that list of sed's as ones to test for truncation. 3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554for as_dir in $PATH 3555do 3556 IFS=$as_save_IFS 3557 test -z "$as_dir" && as_dir=. 3558 for lt_ac_prog in sed gsed; do 3559 for ac_exec_ext in '' $ac_executable_extensions; do 3560 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3561 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3562 fi 3563 done 3564 done 3565done 3566IFS=$as_save_IFS 3567lt_ac_max=0 3568lt_ac_count=0 3569# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3570# along with /bin/sed that truncates output. 3571for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3572 test ! -f $lt_ac_sed && continue 3573 cat /dev/null > conftest.in 3574 lt_ac_count=0 3575 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3576 # Check for GNU sed and select it if it is found. 3577 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3578 lt_cv_path_SED=$lt_ac_sed 3579 break 3580 fi 3581 while true; do 3582 cat conftest.in conftest.in >conftest.tmp 3583 mv conftest.tmp conftest.in 3584 cp conftest.in conftest.nl 3585 echo >>conftest.nl 3586 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3587 cmp -s conftest.out conftest.nl || break 3588 # 10000 chars as input seems more than enough 3589 test $lt_ac_count -gt 10 && break 3590 lt_ac_count=`expr $lt_ac_count + 1` 3591 if test $lt_ac_count -gt $lt_ac_max; then 3592 lt_ac_max=$lt_ac_count 3593 lt_cv_path_SED=$lt_ac_sed 3594 fi 3595 done 3596done 3597 3598fi 3599 3600SED=$lt_cv_path_SED 3601 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 3603$as_echo "$SED" >&6; } 3604 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3606$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3607if test "${ac_cv_path_GREP+set}" = set; then : 3608 $as_echo_n "(cached) " >&6 3609else 3610 if test -z "$GREP"; then 3611 ac_path_GREP_found=false 3612 # Loop through the user's path and test for each of PROGNAME-LIST 3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3614for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3615do 3616 IFS=$as_save_IFS 3617 test -z "$as_dir" && as_dir=. 3618 for ac_prog in grep ggrep; do 3619 for ac_exec_ext in '' $ac_executable_extensions; do 3620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3621 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3622# Check for GNU ac_path_GREP and select it if it is found. 3623 # Check for GNU $ac_path_GREP 3624case `"$ac_path_GREP" --version 2>&1` in 3625*GNU*) 3626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3627*) 3628 ac_count=0 3629 $as_echo_n 0123456789 >"conftest.in" 3630 while : 3631 do 3632 cat "conftest.in" "conftest.in" >"conftest.tmp" 3633 mv "conftest.tmp" "conftest.in" 3634 cp "conftest.in" "conftest.nl" 3635 $as_echo 'GREP' >> "conftest.nl" 3636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3638 as_fn_arith $ac_count + 1 && ac_count=$as_val 3639 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3640 # Best one so far, save it but keep looking for a better one 3641 ac_cv_path_GREP="$ac_path_GREP" 3642 ac_path_GREP_max=$ac_count 3643 fi 3644 # 10*(2^10) chars as input seems more than enough 3645 test $ac_count -gt 10 && break 3646 done 3647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3648esac 3649 3650 $ac_path_GREP_found && break 3 3651 done 3652 done 3653 done 3654IFS=$as_save_IFS 3655 if test -z "$ac_cv_path_GREP"; then 3656 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3657 fi 3658else 3659 ac_cv_path_GREP=$GREP 3660fi 3661 3662fi 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3664$as_echo "$ac_cv_path_GREP" >&6; } 3665 GREP="$ac_cv_path_GREP" 3666 3667 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3669$as_echo_n "checking for egrep... " >&6; } 3670if test "${ac_cv_path_EGREP+set}" = set; then : 3671 $as_echo_n "(cached) " >&6 3672else 3673 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3674 then ac_cv_path_EGREP="$GREP -E" 3675 else 3676 if test -z "$EGREP"; then 3677 ac_path_EGREP_found=false 3678 # Loop through the user's path and test for each of PROGNAME-LIST 3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3681do 3682 IFS=$as_save_IFS 3683 test -z "$as_dir" && as_dir=. 3684 for ac_prog in egrep; do 3685 for ac_exec_ext in '' $ac_executable_extensions; do 3686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3687 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3688# Check for GNU ac_path_EGREP and select it if it is found. 3689 # Check for GNU $ac_path_EGREP 3690case `"$ac_path_EGREP" --version 2>&1` in 3691*GNU*) 3692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3693*) 3694 ac_count=0 3695 $as_echo_n 0123456789 >"conftest.in" 3696 while : 3697 do 3698 cat "conftest.in" "conftest.in" >"conftest.tmp" 3699 mv "conftest.tmp" "conftest.in" 3700 cp "conftest.in" "conftest.nl" 3701 $as_echo 'EGREP' >> "conftest.nl" 3702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3704 as_fn_arith $ac_count + 1 && ac_count=$as_val 3705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3706 # Best one so far, save it but keep looking for a better one 3707 ac_cv_path_EGREP="$ac_path_EGREP" 3708 ac_path_EGREP_max=$ac_count 3709 fi 3710 # 10*(2^10) chars as input seems more than enough 3711 test $ac_count -gt 10 && break 3712 done 3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3714esac 3715 3716 $ac_path_EGREP_found && break 3 3717 done 3718 done 3719 done 3720IFS=$as_save_IFS 3721 if test -z "$ac_cv_path_EGREP"; then 3722 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3723 fi 3724else 3725 ac_cv_path_EGREP=$EGREP 3726fi 3727 3728 fi 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3731$as_echo "$ac_cv_path_EGREP" >&6; } 3732 EGREP="$ac_cv_path_EGREP" 3733 3734 3735 3736# Check whether --with-gnu-ld was given. 3737if test "${with_gnu_ld+set}" = set; then : 3738 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3739else 3740 with_gnu_ld=no 3741fi 3742 3743ac_prog=ld 3744if test "$GCC" = yes; then 3745 # Check if gcc -print-prog-name=ld gives a path. 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3747$as_echo_n "checking for ld used by $CC... " >&6; } 3748 case $host in 3749 *-*-mingw*) 3750 # gcc leaves a trailing carriage return which upsets mingw 3751 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3752 *) 3753 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3754 esac 3755 case $ac_prog in 3756 # Accept absolute paths. 3757 [\\/]* | ?:[\\/]*) 3758 re_direlt='/[^/][^/]*/\.\./' 3759 # Canonicalize the pathname of ld 3760 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3761 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3762 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3763 done 3764 test -z "$LD" && LD="$ac_prog" 3765 ;; 3766 "") 3767 # If it fails, then pretend we aren't using GCC. 3768 ac_prog=ld 3769 ;; 3770 *) 3771 # If it is relative, then search for the first ld in PATH. 3772 with_gnu_ld=unknown 3773 ;; 3774 esac 3775elif test "$with_gnu_ld" = yes; then 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3777$as_echo_n "checking for GNU ld... " >&6; } 3778else 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3780$as_echo_n "checking for non-GNU ld... " >&6; } 3781fi 3782if test "${lt_cv_path_LD+set}" = set; then : 3783 $as_echo_n "(cached) " >&6 3784else 3785 if test -z "$LD"; then 3786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3787 for ac_dir in $PATH; do 3788 IFS="$lt_save_ifs" 3789 test -z "$ac_dir" && ac_dir=. 3790 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3791 lt_cv_path_LD="$ac_dir/$ac_prog" 3792 # Check to see if the program is GNU ld. I'd rather use --version, 3793 # but apparently some variants of GNU ld only accept -v. 3794 # Break only if it was the GNU/non-GNU ld that we prefer. 3795 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3796 *GNU* | *'with BFD'*) 3797 test "$with_gnu_ld" != no && break 3798 ;; 3799 *) 3800 test "$with_gnu_ld" != yes && break 3801 ;; 3802 esac 3803 fi 3804 done 3805 IFS="$lt_save_ifs" 3806else 3807 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3808fi 3809fi 3810 3811LD="$lt_cv_path_LD" 3812if test -n "$LD"; then 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3814$as_echo "$LD" >&6; } 3815else 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3817$as_echo "no" >&6; } 3818fi 3819test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3821$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3822if test "${lt_cv_prog_gnu_ld+set}" = set; then : 3823 $as_echo_n "(cached) " >&6 3824else 3825 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3826case `$LD -v 2>&1 </dev/null` in 3827*GNU* | *'with BFD'*) 3828 lt_cv_prog_gnu_ld=yes 3829 ;; 3830*) 3831 lt_cv_prog_gnu_ld=no 3832 ;; 3833esac 3834fi 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3836$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3837with_gnu_ld=$lt_cv_prog_gnu_ld 3838 3839 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 3841$as_echo_n "checking for $LD option to reload object files... " >&6; } 3842if test "${lt_cv_ld_reload_flag+set}" = set; then : 3843 $as_echo_n "(cached) " >&6 3844else 3845 lt_cv_ld_reload_flag='-r' 3846fi 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 3848$as_echo "$lt_cv_ld_reload_flag" >&6; } 3849reload_flag=$lt_cv_ld_reload_flag 3850case $reload_flag in 3851"" | " "*) ;; 3852*) reload_flag=" $reload_flag" ;; 3853esac 3854reload_cmds='$LD$reload_flag -o $output$reload_objs' 3855case $host_os in 3856 darwin*) 3857 if test "$GCC" = yes; then 3858 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3859 else 3860 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3861 fi 3862 ;; 3863esac 3864 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 3866$as_echo_n "checking for BSD-compatible nm... " >&6; } 3867if test "${lt_cv_path_NM+set}" = set; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 if test -n "$NM"; then 3871 # Let the user override the test. 3872 lt_cv_path_NM="$NM" 3873else 3874 lt_nm_to_check="${ac_tool_prefix}nm" 3875 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3876 lt_nm_to_check="$lt_nm_to_check nm" 3877 fi 3878 for lt_tmp_nm in $lt_nm_to_check; do 3879 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3880 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3881 IFS="$lt_save_ifs" 3882 test -z "$ac_dir" && ac_dir=. 3883 tmp_nm="$ac_dir/$lt_tmp_nm" 3884 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3885 # Check to see if the nm accepts a BSD-compat flag. 3886 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3887 # nm: unknown option "B" ignored 3888 # Tru64's nm complains that /dev/null is an invalid object file 3889 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3890 */dev/null* | *'Invalid file or object type'*) 3891 lt_cv_path_NM="$tmp_nm -B" 3892 break 3893 ;; 3894 *) 3895 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3896 */dev/null*) 3897 lt_cv_path_NM="$tmp_nm -p" 3898 break 3899 ;; 3900 *) 3901 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3902 continue # so that we can try to find one that supports BSD flags 3903 ;; 3904 esac 3905 ;; 3906 esac 3907 fi 3908 done 3909 IFS="$lt_save_ifs" 3910 done 3911 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3912fi 3913fi 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3915$as_echo "$lt_cv_path_NM" >&6; } 3916NM="$lt_cv_path_NM" 3917 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3919$as_echo_n "checking whether ln -s works... " >&6; } 3920LN_S=$as_ln_s 3921if test "$LN_S" = "ln -s"; then 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3923$as_echo "yes" >&6; } 3924else 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3926$as_echo "no, using $LN_S" >&6; } 3927fi 3928 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 3930$as_echo_n "checking how to recognize dependent libraries... " >&6; } 3931if test "${lt_cv_deplibs_check_method+set}" = set; then : 3932 $as_echo_n "(cached) " >&6 3933else 3934 lt_cv_file_magic_cmd='$MAGIC_CMD' 3935lt_cv_file_magic_test_file= 3936lt_cv_deplibs_check_method='unknown' 3937# Need to set the preceding variable on all platforms that support 3938# interlibrary dependencies. 3939# 'none' -- dependencies not supported. 3940# `unknown' -- same as none, but documents that we really don't know. 3941# 'pass_all' -- all dependencies passed with no checks. 3942# 'test_compile' -- check by making test program. 3943# 'file_magic [[regex]]' -- check by looking for files in library path 3944# which responds to the $file_magic_cmd with a given extended regex. 3945# If you have `file' or equivalent on your system and you're not sure 3946# whether `pass_all' will *always* work, you probably want this one. 3947 3948case $host_os in 3949aix[4-9]*) 3950 lt_cv_deplibs_check_method=pass_all 3951 ;; 3952 3953beos*) 3954 lt_cv_deplibs_check_method=pass_all 3955 ;; 3956 3957bsdi[45]*) 3958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3959 lt_cv_file_magic_cmd='/usr/bin/file -L' 3960 lt_cv_file_magic_test_file=/shlib/libc.so 3961 ;; 3962 3963cygwin*) 3964 # func_win32_libid is a shell function defined in ltmain.sh 3965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3966 lt_cv_file_magic_cmd='func_win32_libid' 3967 ;; 3968 3969mingw* | pw32*) 3970 # Base MSYS/MinGW do not provide the 'file' command needed by 3971 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3972 # unless we find 'file', for example because we are cross-compiling. 3973 if ( file / ) >/dev/null 2>&1; then 3974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3975 lt_cv_file_magic_cmd='func_win32_libid' 3976 else 3977 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3978 lt_cv_file_magic_cmd='$OBJDUMP -f' 3979 fi 3980 ;; 3981 3982darwin* | rhapsody*) 3983 lt_cv_deplibs_check_method=pass_all 3984 ;; 3985 3986freebsd* | dragonfly*) 3987 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3988 case $host_cpu in 3989 i*86 ) 3990 # Not sure whether the presence of OpenBSD here was a mistake. 3991 # Let's accept both of them until this is cleared up. 3992 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3993 lt_cv_file_magic_cmd=/usr/bin/file 3994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3995 ;; 3996 esac 3997 else 3998 lt_cv_deplibs_check_method=pass_all 3999 fi 4000 ;; 4001 4002gnu*) 4003 lt_cv_deplibs_check_method=pass_all 4004 ;; 4005 4006hpux10.20* | hpux11*) 4007 lt_cv_file_magic_cmd=/usr/bin/file 4008 case $host_cpu in 4009 ia64*) 4010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4011 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4012 ;; 4013 hppa*64*) 4014 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]' 4015 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4016 ;; 4017 *) 4018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4019 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4020 ;; 4021 esac 4022 ;; 4023 4024interix[3-9]*) 4025 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4027 ;; 4028 4029irix5* | irix6* | nonstopux*) 4030 case $LD in 4031 *-32|*"-32 ") libmagic=32-bit;; 4032 *-n32|*"-n32 ") libmagic=N32;; 4033 *-64|*"-64 ") libmagic=64-bit;; 4034 *) libmagic=never-match;; 4035 esac 4036 lt_cv_deplibs_check_method=pass_all 4037 ;; 4038 4039# This must be Linux ELF. 4040linux* | k*bsd*-gnu) 4041 lt_cv_deplibs_check_method=pass_all 4042 ;; 4043 4044netbsd*) 4045 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4047 else 4048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4049 fi 4050 ;; 4051 4052newos6*) 4053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4054 lt_cv_file_magic_cmd=/usr/bin/file 4055 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4056 ;; 4057 4058nto-qnx*) 4059 lt_cv_deplibs_check_method=unknown 4060 ;; 4061 4062openbsd*) 4063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4065 else 4066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4067 fi 4068 ;; 4069 4070osf3* | osf4* | osf5*) 4071 lt_cv_deplibs_check_method=pass_all 4072 ;; 4073 4074rdos*) 4075 lt_cv_deplibs_check_method=pass_all 4076 ;; 4077 4078solaris*) 4079 lt_cv_deplibs_check_method=pass_all 4080 ;; 4081 4082sysv4 | sysv4.3*) 4083 case $host_vendor in 4084 motorola) 4085 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]' 4086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4087 ;; 4088 ncr) 4089 lt_cv_deplibs_check_method=pass_all 4090 ;; 4091 sequent) 4092 lt_cv_file_magic_cmd='/bin/file' 4093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4094 ;; 4095 sni) 4096 lt_cv_file_magic_cmd='/bin/file' 4097 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4098 lt_cv_file_magic_test_file=/lib/libc.so 4099 ;; 4100 siemens) 4101 lt_cv_deplibs_check_method=pass_all 4102 ;; 4103 pc) 4104 lt_cv_deplibs_check_method=pass_all 4105 ;; 4106 esac 4107 ;; 4108 4109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4110 lt_cv_deplibs_check_method=pass_all 4111 ;; 4112esac 4113 4114fi 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4116$as_echo "$lt_cv_deplibs_check_method" >&6; } 4117file_magic_cmd=$lt_cv_file_magic_cmd 4118deplibs_check_method=$lt_cv_deplibs_check_method 4119test -z "$deplibs_check_method" && deplibs_check_method=unknown 4120 4121 4122 4123 4124# If no C compiler was specified, use CC. 4125LTCC=${LTCC-"$CC"} 4126 4127# If no C compiler flags were specified, use CFLAGS. 4128LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4129 4130# Allow CC to be a program name with arguments. 4131compiler=$CC 4132 4133 4134# Check whether --enable-libtool-lock was given. 4135if test "${enable_libtool_lock+set}" = set; then : 4136 enableval=$enable_libtool_lock; 4137fi 4138 4139test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4140 4141# Some flags need to be propagated to the compiler or linker for good 4142# libtool support. 4143case $host in 4144ia64-*-hpux*) 4145 # Find out which ABI we are using. 4146 echo 'int i;' > conftest.$ac_ext 4147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4148 (eval $ac_compile) 2>&5 4149 ac_status=$? 4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4151 test $ac_status = 0; }; then 4152 case `/usr/bin/file conftest.$ac_objext` in 4153 *ELF-32*) 4154 HPUX_IA64_MODE="32" 4155 ;; 4156 *ELF-64*) 4157 HPUX_IA64_MODE="64" 4158 ;; 4159 esac 4160 fi 4161 rm -rf conftest* 4162 ;; 4163*-*-irix6*) 4164 # Find out which ABI we are using. 4165 echo '#line 4165 "configure"' > conftest.$ac_ext 4166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4167 (eval $ac_compile) 2>&5 4168 ac_status=$? 4169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4170 test $ac_status = 0; }; then 4171 if test "$lt_cv_prog_gnu_ld" = yes; then 4172 case `/usr/bin/file conftest.$ac_objext` in 4173 *32-bit*) 4174 LD="${LD-ld} -melf32bsmip" 4175 ;; 4176 *N32*) 4177 LD="${LD-ld} -melf32bmipn32" 4178 ;; 4179 *64-bit*) 4180 LD="${LD-ld} -melf64bmip" 4181 ;; 4182 esac 4183 else 4184 case `/usr/bin/file conftest.$ac_objext` in 4185 *32-bit*) 4186 LD="${LD-ld} -32" 4187 ;; 4188 *N32*) 4189 LD="${LD-ld} -n32" 4190 ;; 4191 *64-bit*) 4192 LD="${LD-ld} -64" 4193 ;; 4194 esac 4195 fi 4196 fi 4197 rm -rf conftest* 4198 ;; 4199 4200x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4201s390*-*linux*|sparc*-*linux*) 4202 # Find out which ABI we are using. 4203 echo 'int i;' > conftest.$ac_ext 4204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4205 (eval $ac_compile) 2>&5 4206 ac_status=$? 4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4208 test $ac_status = 0; }; then 4209 case `/usr/bin/file conftest.o` in 4210 *32-bit*) 4211 case $host in 4212 x86_64-*kfreebsd*-gnu) 4213 LD="${LD-ld} -m elf_i386_fbsd" 4214 ;; 4215 x86_64-*linux*) 4216 LD="${LD-ld} -m elf_i386" 4217 ;; 4218 ppc64-*linux*|powerpc64-*linux*) 4219 LD="${LD-ld} -m elf32ppclinux" 4220 ;; 4221 s390x-*linux*) 4222 LD="${LD-ld} -m elf_s390" 4223 ;; 4224 sparc64-*linux*) 4225 LD="${LD-ld} -m elf32_sparc" 4226 ;; 4227 esac 4228 ;; 4229 *64-bit*) 4230 case $host in 4231 x86_64-*kfreebsd*-gnu) 4232 LD="${LD-ld} -m elf_x86_64_fbsd" 4233 ;; 4234 x86_64-*linux*) 4235 LD="${LD-ld} -m elf_x86_64" 4236 ;; 4237 ppc*-*linux*|powerpc*-*linux*) 4238 LD="${LD-ld} -m elf64ppc" 4239 ;; 4240 s390*-*linux*) 4241 LD="${LD-ld} -m elf64_s390" 4242 ;; 4243 sparc*-*linux*) 4244 LD="${LD-ld} -m elf64_sparc" 4245 ;; 4246 esac 4247 ;; 4248 esac 4249 fi 4250 rm -rf conftest* 4251 ;; 4252 4253*-*-sco3.2v5*) 4254 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4255 SAVE_CFLAGS="$CFLAGS" 4256 CFLAGS="$CFLAGS -belf" 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 4258$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4259if test "${lt_cv_cc_needs_belf+set}" = set; then : 4260 $as_echo_n "(cached) " >&6 4261else 4262 ac_ext=c 4263ac_cpp='$CPP $CPPFLAGS' 4264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4266ac_compiler_gnu=$ac_cv_c_compiler_gnu 4267 4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269/* end confdefs.h. */ 4270 4271int 4272main () 4273{ 4274 4275 ; 4276 return 0; 4277} 4278_ACEOF 4279if ac_fn_c_try_link "$LINENO"; then : 4280 lt_cv_cc_needs_belf=yes 4281else 4282 lt_cv_cc_needs_belf=no 4283fi 4284rm -f core conftest.err conftest.$ac_objext \ 4285 conftest$ac_exeext conftest.$ac_ext 4286 ac_ext=c 4287ac_cpp='$CPP $CPPFLAGS' 4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4290ac_compiler_gnu=$ac_cv_c_compiler_gnu 4291 4292fi 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 4294$as_echo "$lt_cv_cc_needs_belf" >&6; } 4295 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4296 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4297 CFLAGS="$SAVE_CFLAGS" 4298 fi 4299 ;; 4300sparc*-*solaris*) 4301 # Find out which ABI we are using. 4302 echo 'int i;' > conftest.$ac_ext 4303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4304 (eval $ac_compile) 2>&5 4305 ac_status=$? 4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4307 test $ac_status = 0; }; then 4308 case `/usr/bin/file conftest.o` in 4309 *64-bit*) 4310 case $lt_cv_prog_gnu_ld in 4311 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4312 *) 4313 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4314 LD="${LD-ld} -64" 4315 fi 4316 ;; 4317 esac 4318 ;; 4319 esac 4320 fi 4321 rm -rf conftest* 4322 ;; 4323 4324*-*-cygwin* | *-*-mingw* | *-*-pw32*) 4325 if test -n "$ac_tool_prefix"; then 4326 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4327set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4329$as_echo_n "checking for $ac_word... " >&6; } 4330if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 4331 $as_echo_n "(cached) " >&6 4332else 4333 if test -n "$DLLTOOL"; then 4334 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4335else 4336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4337for as_dir in $PATH 4338do 4339 IFS=$as_save_IFS 4340 test -z "$as_dir" && as_dir=. 4341 for ac_exec_ext in '' $ac_executable_extensions; do 4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4343 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4345 break 2 4346 fi 4347done 4348 done 4349IFS=$as_save_IFS 4350 4351fi 4352fi 4353DLLTOOL=$ac_cv_prog_DLLTOOL 4354if test -n "$DLLTOOL"; then 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4356$as_echo "$DLLTOOL" >&6; } 4357else 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4359$as_echo "no" >&6; } 4360fi 4361 4362 4363fi 4364if test -z "$ac_cv_prog_DLLTOOL"; then 4365 ac_ct_DLLTOOL=$DLLTOOL 4366 # Extract the first word of "dlltool", so it can be a program name with args. 4367set dummy dlltool; ac_word=$2 4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4369$as_echo_n "checking for $ac_word... " >&6; } 4370if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 4371 $as_echo_n "(cached) " >&6 4372else 4373 if test -n "$ac_ct_DLLTOOL"; then 4374 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4375else 4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4377for as_dir in $PATH 4378do 4379 IFS=$as_save_IFS 4380 test -z "$as_dir" && as_dir=. 4381 for ac_exec_ext in '' $ac_executable_extensions; do 4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4383 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4385 break 2 4386 fi 4387done 4388 done 4389IFS=$as_save_IFS 4390 4391fi 4392fi 4393ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4394if test -n "$ac_ct_DLLTOOL"; then 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4396$as_echo "$ac_ct_DLLTOOL" >&6; } 4397else 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4399$as_echo "no" >&6; } 4400fi 4401 4402 if test "x$ac_ct_DLLTOOL" = x; then 4403 DLLTOOL="false" 4404 else 4405 case $cross_compiling:$ac_tool_warned in 4406yes:) 4407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4409ac_tool_warned=yes ;; 4410esac 4411 DLLTOOL=$ac_ct_DLLTOOL 4412 fi 4413else 4414 DLLTOOL="$ac_cv_prog_DLLTOOL" 4415fi 4416 4417 if test -n "$ac_tool_prefix"; then 4418 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4419set dummy ${ac_tool_prefix}as; ac_word=$2 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4421$as_echo_n "checking for $ac_word... " >&6; } 4422if test "${ac_cv_prog_AS+set}" = set; then : 4423 $as_echo_n "(cached) " >&6 4424else 4425 if test -n "$AS"; then 4426 ac_cv_prog_AS="$AS" # Let the user override the test. 4427else 4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4429for as_dir in $PATH 4430do 4431 IFS=$as_save_IFS 4432 test -z "$as_dir" && as_dir=. 4433 for ac_exec_ext in '' $ac_executable_extensions; do 4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4435 ac_cv_prog_AS="${ac_tool_prefix}as" 4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4437 break 2 4438 fi 4439done 4440 done 4441IFS=$as_save_IFS 4442 4443fi 4444fi 4445AS=$ac_cv_prog_AS 4446if test -n "$AS"; then 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4448$as_echo "$AS" >&6; } 4449else 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4451$as_echo "no" >&6; } 4452fi 4453 4454 4455fi 4456if test -z "$ac_cv_prog_AS"; then 4457 ac_ct_AS=$AS 4458 # Extract the first word of "as", so it can be a program name with args. 4459set dummy as; ac_word=$2 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4461$as_echo_n "checking for $ac_word... " >&6; } 4462if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 if test -n "$ac_ct_AS"; then 4466 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4467else 4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469for as_dir in $PATH 4470do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4475 ac_cv_prog_ac_ct_AS="as" 4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 break 2 4478 fi 4479done 4480 done 4481IFS=$as_save_IFS 4482 4483fi 4484fi 4485ac_ct_AS=$ac_cv_prog_ac_ct_AS 4486if test -n "$ac_ct_AS"; then 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4488$as_echo "$ac_ct_AS" >&6; } 4489else 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4491$as_echo "no" >&6; } 4492fi 4493 4494 if test "x$ac_ct_AS" = x; then 4495 AS="false" 4496 else 4497 case $cross_compiling:$ac_tool_warned in 4498yes:) 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4501ac_tool_warned=yes ;; 4502esac 4503 AS=$ac_ct_AS 4504 fi 4505else 4506 AS="$ac_cv_prog_AS" 4507fi 4508 4509 if test -n "$ac_tool_prefix"; then 4510 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4511set dummy ${ac_tool_prefix}objdump; ac_word=$2 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4513$as_echo_n "checking for $ac_word... " >&6; } 4514if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 if test -n "$OBJDUMP"; then 4518 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4519else 4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4521for as_dir in $PATH 4522do 4523 IFS=$as_save_IFS 4524 test -z "$as_dir" && as_dir=. 4525 for ac_exec_ext in '' $ac_executable_extensions; do 4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4527 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4529 break 2 4530 fi 4531done 4532 done 4533IFS=$as_save_IFS 4534 4535fi 4536fi 4537OBJDUMP=$ac_cv_prog_OBJDUMP 4538if test -n "$OBJDUMP"; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4540$as_echo "$OBJDUMP" >&6; } 4541else 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543$as_echo "no" >&6; } 4544fi 4545 4546 4547fi 4548if test -z "$ac_cv_prog_OBJDUMP"; then 4549 ac_ct_OBJDUMP=$OBJDUMP 4550 # Extract the first word of "objdump", so it can be a program name with args. 4551set dummy objdump; ac_word=$2 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4553$as_echo_n "checking for $ac_word... " >&6; } 4554if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 if test -n "$ac_ct_OBJDUMP"; then 4558 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4559else 4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561for as_dir in $PATH 4562do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for ac_exec_ext in '' $ac_executable_extensions; do 4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4567 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4569 break 2 4570 fi 4571done 4572 done 4573IFS=$as_save_IFS 4574 4575fi 4576fi 4577ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4578if test -n "$ac_ct_OBJDUMP"; then 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4580$as_echo "$ac_ct_OBJDUMP" >&6; } 4581else 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4583$as_echo "no" >&6; } 4584fi 4585 4586 if test "x$ac_ct_OBJDUMP" = x; then 4587 OBJDUMP="false" 4588 else 4589 case $cross_compiling:$ac_tool_warned in 4590yes:) 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4593ac_tool_warned=yes ;; 4594esac 4595 OBJDUMP=$ac_ct_OBJDUMP 4596 fi 4597else 4598 OBJDUMP="$ac_cv_prog_OBJDUMP" 4599fi 4600 4601 ;; 4602 4603esac 4604 4605need_locks="$enable_libtool_lock" 4606 4607 4608ac_ext=c 4609ac_cpp='$CPP $CPPFLAGS' 4610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4612ac_compiler_gnu=$ac_cv_c_compiler_gnu 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4614$as_echo_n "checking how to run the C preprocessor... " >&6; } 4615# On Suns, sometimes $CPP names a directory. 4616if test -n "$CPP" && test -d "$CPP"; then 4617 CPP= 4618fi 4619if test -z "$CPP"; then 4620 if test "${ac_cv_prog_CPP+set}" = set; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 # Double quotes because CPP needs to be expanded 4624 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4625 do 4626 ac_preproc_ok=false 4627for ac_c_preproc_warn_flag in '' yes 4628do 4629 # Use a header file that comes with gcc, so configuring glibc 4630 # with a fresh cross-compiler works. 4631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4632 # <limits.h> exists even on freestanding compilers. 4633 # On the NeXT, cc -E runs the code through the compiler's parser, 4634 # not just through cpp. "Syntax error" is here to catch this case. 4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4636/* end confdefs.h. */ 4637#ifdef __STDC__ 4638# include <limits.h> 4639#else 4640# include <assert.h> 4641#endif 4642 Syntax error 4643_ACEOF 4644if ac_fn_c_try_cpp "$LINENO"; then : 4645 4646else 4647 # Broken: fails on valid input. 4648continue 4649fi 4650rm -f conftest.err conftest.$ac_ext 4651 4652 # OK, works on sane cases. Now check whether nonexistent headers 4653 # can be detected and how. 4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4655/* end confdefs.h. */ 4656#include <ac_nonexistent.h> 4657_ACEOF 4658if ac_fn_c_try_cpp "$LINENO"; then : 4659 # Broken: success on invalid input. 4660continue 4661else 4662 # Passes both tests. 4663ac_preproc_ok=: 4664break 4665fi 4666rm -f conftest.err conftest.$ac_ext 4667 4668done 4669# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4670rm -f conftest.err conftest.$ac_ext 4671if $ac_preproc_ok; then : 4672 break 4673fi 4674 4675 done 4676 ac_cv_prog_CPP=$CPP 4677 4678fi 4679 CPP=$ac_cv_prog_CPP 4680else 4681 ac_cv_prog_CPP=$CPP 4682fi 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4684$as_echo "$CPP" >&6; } 4685ac_preproc_ok=false 4686for ac_c_preproc_warn_flag in '' yes 4687do 4688 # Use a header file that comes with gcc, so configuring glibc 4689 # with a fresh cross-compiler works. 4690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4691 # <limits.h> exists even on freestanding compilers. 4692 # On the NeXT, cc -E runs the code through the compiler's parser, 4693 # not just through cpp. "Syntax error" is here to catch this case. 4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4695/* end confdefs.h. */ 4696#ifdef __STDC__ 4697# include <limits.h> 4698#else 4699# include <assert.h> 4700#endif 4701 Syntax error 4702_ACEOF 4703if ac_fn_c_try_cpp "$LINENO"; then : 4704 4705else 4706 # Broken: fails on valid input. 4707continue 4708fi 4709rm -f conftest.err conftest.$ac_ext 4710 4711 # OK, works on sane cases. Now check whether nonexistent headers 4712 # can be detected and how. 4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714/* end confdefs.h. */ 4715#include <ac_nonexistent.h> 4716_ACEOF 4717if ac_fn_c_try_cpp "$LINENO"; then : 4718 # Broken: success on invalid input. 4719continue 4720else 4721 # Passes both tests. 4722ac_preproc_ok=: 4723break 4724fi 4725rm -f conftest.err conftest.$ac_ext 4726 4727done 4728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4729rm -f conftest.err conftest.$ac_ext 4730if $ac_preproc_ok; then : 4731 4732else 4733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4735as_fn_error "C preprocessor \"$CPP\" fails sanity check 4736See \`config.log' for more details." "$LINENO" 5; } 4737fi 4738 4739ac_ext=c 4740ac_cpp='$CPP $CPPFLAGS' 4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4743ac_compiler_gnu=$ac_cv_c_compiler_gnu 4744 4745 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4747$as_echo_n "checking for ANSI C header files... " >&6; } 4748if test "${ac_cv_header_stdc+set}" = set; then : 4749 $as_echo_n "(cached) " >&6 4750else 4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753#include <stdlib.h> 4754#include <stdarg.h> 4755#include <string.h> 4756#include <float.h> 4757 4758int 4759main () 4760{ 4761 4762 ; 4763 return 0; 4764} 4765_ACEOF 4766if ac_fn_c_try_compile "$LINENO"; then : 4767 ac_cv_header_stdc=yes 4768else 4769 ac_cv_header_stdc=no 4770fi 4771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4772 4773if test $ac_cv_header_stdc = yes; then 4774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4776/* end confdefs.h. */ 4777#include <string.h> 4778 4779_ACEOF 4780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4781 $EGREP "memchr" >/dev/null 2>&1; then : 4782 4783else 4784 ac_cv_header_stdc=no 4785fi 4786rm -f conftest* 4787 4788fi 4789 4790if test $ac_cv_header_stdc = yes; then 4791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793/* end confdefs.h. */ 4794#include <stdlib.h> 4795 4796_ACEOF 4797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4798 $EGREP "free" >/dev/null 2>&1; then : 4799 4800else 4801 ac_cv_header_stdc=no 4802fi 4803rm -f conftest* 4804 4805fi 4806 4807if test $ac_cv_header_stdc = yes; then 4808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4809 if test "$cross_compiling" = yes; then : 4810 : 4811else 4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4813/* end confdefs.h. */ 4814#include <ctype.h> 4815#include <stdlib.h> 4816#if ((' ' & 0x0FF) == 0x020) 4817# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4818# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4819#else 4820# define ISLOWER(c) \ 4821 (('a' <= (c) && (c) <= 'i') \ 4822 || ('j' <= (c) && (c) <= 'r') \ 4823 || ('s' <= (c) && (c) <= 'z')) 4824# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4825#endif 4826 4827#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4828int 4829main () 4830{ 4831 int i; 4832 for (i = 0; i < 256; i++) 4833 if (XOR (islower (i), ISLOWER (i)) 4834 || toupper (i) != TOUPPER (i)) 4835 return 2; 4836 return 0; 4837} 4838_ACEOF 4839if ac_fn_c_try_run "$LINENO"; then : 4840 4841else 4842 ac_cv_header_stdc=no 4843fi 4844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4845 conftest.$ac_objext conftest.beam conftest.$ac_ext 4846fi 4847 4848fi 4849fi 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4851$as_echo "$ac_cv_header_stdc" >&6; } 4852if test $ac_cv_header_stdc = yes; then 4853 4854$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4855 4856fi 4857 4858# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4859for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4860 inttypes.h stdint.h unistd.h 4861do : 4862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4863ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4864" 4865eval as_val=\$$as_ac_Header 4866 if test "x$as_val" = x""yes; then : 4867 cat >>confdefs.h <<_ACEOF 4868#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4869_ACEOF 4870 4871fi 4872 4873done 4874 4875 4876for ac_header in dlfcn.h 4877do : 4878 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 4879if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 4880 cat >>confdefs.h <<_ACEOF 4881#define HAVE_DLFCN_H 1 4882_ACEOF 4883 4884fi 4885 4886done 4887 4888ac_ext=cpp 4889ac_cpp='$CXXCPP $CPPFLAGS' 4890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4893if test -z "$CXX"; then 4894 if test -n "$CCC"; then 4895 CXX=$CCC 4896 else 4897 if test -n "$ac_tool_prefix"; then 4898 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4899 do 4900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4901set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4903$as_echo_n "checking for $ac_word... " >&6; } 4904if test "${ac_cv_prog_CXX+set}" = set; then : 4905 $as_echo_n "(cached) " >&6 4906else 4907 if test -n "$CXX"; then 4908 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4909else 4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4911for as_dir in $PATH 4912do 4913 IFS=$as_save_IFS 4914 test -z "$as_dir" && as_dir=. 4915 for ac_exec_ext in '' $ac_executable_extensions; do 4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4917 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4919 break 2 4920 fi 4921done 4922 done 4923IFS=$as_save_IFS 4924 4925fi 4926fi 4927CXX=$ac_cv_prog_CXX 4928if test -n "$CXX"; then 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4930$as_echo "$CXX" >&6; } 4931else 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4933$as_echo "no" >&6; } 4934fi 4935 4936 4937 test -n "$CXX" && break 4938 done 4939fi 4940if test -z "$CXX"; then 4941 ac_ct_CXX=$CXX 4942 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4943do 4944 # Extract the first word of "$ac_prog", so it can be a program name with args. 4945set dummy $ac_prog; ac_word=$2 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4947$as_echo_n "checking for $ac_word... " >&6; } 4948if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 if test -n "$ac_ct_CXX"; then 4952 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4953else 4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4955for as_dir in $PATH 4956do 4957 IFS=$as_save_IFS 4958 test -z "$as_dir" && as_dir=. 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4961 ac_cv_prog_ac_ct_CXX="$ac_prog" 4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4963 break 2 4964 fi 4965done 4966 done 4967IFS=$as_save_IFS 4968 4969fi 4970fi 4971ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4972if test -n "$ac_ct_CXX"; then 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4974$as_echo "$ac_ct_CXX" >&6; } 4975else 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977$as_echo "no" >&6; } 4978fi 4979 4980 4981 test -n "$ac_ct_CXX" && break 4982done 4983 4984 if test "x$ac_ct_CXX" = x; then 4985 CXX="g++" 4986 else 4987 case $cross_compiling:$ac_tool_warned in 4988yes:) 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4991ac_tool_warned=yes ;; 4992esac 4993 CXX=$ac_ct_CXX 4994 fi 4995fi 4996 4997 fi 4998fi 4999# Provide some information about the compiler. 5000$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5001set X $ac_compile 5002ac_compiler=$2 5003for ac_option in --version -v -V -qversion; do 5004 { { ac_try="$ac_compiler $ac_option >&5" 5005case "(($ac_try" in 5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5007 *) ac_try_echo=$ac_try;; 5008esac 5009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5010$as_echo "$ac_try_echo"; } >&5 5011 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5012 ac_status=$? 5013 if test -s conftest.err; then 5014 sed '10a\ 5015... rest of stderr output deleted ... 5016 10q' conftest.err >conftest.er1 5017 cat conftest.er1 >&5 5018 rm -f conftest.er1 conftest.err 5019 fi 5020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5021 test $ac_status = 0; } 5022done 5023 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5025$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5026if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5027 $as_echo_n "(cached) " >&6 5028else 5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5030/* end confdefs.h. */ 5031 5032int 5033main () 5034{ 5035#ifndef __GNUC__ 5036 choke me 5037#endif 5038 5039 ; 5040 return 0; 5041} 5042_ACEOF 5043if ac_fn_cxx_try_compile "$LINENO"; then : 5044 ac_compiler_gnu=yes 5045else 5046 ac_compiler_gnu=no 5047fi 5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5049ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5050 5051fi 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5053$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5054if test $ac_compiler_gnu = yes; then 5055 GXX=yes 5056else 5057 GXX= 5058fi 5059ac_test_CXXFLAGS=${CXXFLAGS+set} 5060ac_save_CXXFLAGS=$CXXFLAGS 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5062$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5063if test "${ac_cv_prog_cxx_g+set}" = set; then : 5064 $as_echo_n "(cached) " >&6 5065else 5066 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5067 ac_cxx_werror_flag=yes 5068 ac_cv_prog_cxx_g=no 5069 CXXFLAGS="-g" 5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5071/* end confdefs.h. */ 5072 5073int 5074main () 5075{ 5076 5077 ; 5078 return 0; 5079} 5080_ACEOF 5081if ac_fn_cxx_try_compile "$LINENO"; then : 5082 ac_cv_prog_cxx_g=yes 5083else 5084 CXXFLAGS="" 5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5086/* end confdefs.h. */ 5087 5088int 5089main () 5090{ 5091 5092 ; 5093 return 0; 5094} 5095_ACEOF 5096if ac_fn_cxx_try_compile "$LINENO"; then : 5097 5098else 5099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5100 CXXFLAGS="-g" 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103 5104int 5105main () 5106{ 5107 5108 ; 5109 return 0; 5110} 5111_ACEOF 5112if ac_fn_cxx_try_compile "$LINENO"; then : 5113 ac_cv_prog_cxx_g=yes 5114fi 5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5116fi 5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5118fi 5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5120 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5123$as_echo "$ac_cv_prog_cxx_g" >&6; } 5124if test "$ac_test_CXXFLAGS" = set; then 5125 CXXFLAGS=$ac_save_CXXFLAGS 5126elif test $ac_cv_prog_cxx_g = yes; then 5127 if test "$GXX" = yes; then 5128 CXXFLAGS="-g -O2" 5129 else 5130 CXXFLAGS="-g" 5131 fi 5132else 5133 if test "$GXX" = yes; then 5134 CXXFLAGS="-O2" 5135 else 5136 CXXFLAGS= 5137 fi 5138fi 5139ac_ext=cpp 5140ac_cpp='$CXXCPP $CPPFLAGS' 5141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5144 5145 5146 5147if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5148 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5149 (test "X$CXX" != "Xg++"))) ; then 5150 ac_ext=cpp 5151ac_cpp='$CXXCPP $CPPFLAGS' 5152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5156$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5157if test -z "$CXXCPP"; then 5158 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 # Double quotes because CXXCPP needs to be expanded 5162 for CXXCPP in "$CXX -E" "/lib/cpp" 5163 do 5164 ac_preproc_ok=false 5165for ac_cxx_preproc_warn_flag in '' yes 5166do 5167 # Use a header file that comes with gcc, so configuring glibc 5168 # with a fresh cross-compiler works. 5169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5170 # <limits.h> exists even on freestanding compilers. 5171 # On the NeXT, cc -E runs the code through the compiler's parser, 5172 # not just through cpp. "Syntax error" is here to catch this case. 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175#ifdef __STDC__ 5176# include <limits.h> 5177#else 5178# include <assert.h> 5179#endif 5180 Syntax error 5181_ACEOF 5182if ac_fn_cxx_try_cpp "$LINENO"; then : 5183 5184else 5185 # Broken: fails on valid input. 5186continue 5187fi 5188rm -f conftest.err conftest.$ac_ext 5189 5190 # OK, works on sane cases. Now check whether nonexistent headers 5191 # can be detected and how. 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193/* end confdefs.h. */ 5194#include <ac_nonexistent.h> 5195_ACEOF 5196if ac_fn_cxx_try_cpp "$LINENO"; then : 5197 # Broken: success on invalid input. 5198continue 5199else 5200 # Passes both tests. 5201ac_preproc_ok=: 5202break 5203fi 5204rm -f conftest.err conftest.$ac_ext 5205 5206done 5207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5208rm -f conftest.err conftest.$ac_ext 5209if $ac_preproc_ok; then : 5210 break 5211fi 5212 5213 done 5214 ac_cv_prog_CXXCPP=$CXXCPP 5215 5216fi 5217 CXXCPP=$ac_cv_prog_CXXCPP 5218else 5219 ac_cv_prog_CXXCPP=$CXXCPP 5220fi 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5222$as_echo "$CXXCPP" >&6; } 5223ac_preproc_ok=false 5224for ac_cxx_preproc_warn_flag in '' yes 5225do 5226 # Use a header file that comes with gcc, so configuring glibc 5227 # with a fresh cross-compiler works. 5228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5229 # <limits.h> exists even on freestanding compilers. 5230 # On the NeXT, cc -E runs the code through the compiler's parser, 5231 # not just through cpp. "Syntax error" is here to catch this case. 5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5233/* end confdefs.h. */ 5234#ifdef __STDC__ 5235# include <limits.h> 5236#else 5237# include <assert.h> 5238#endif 5239 Syntax error 5240_ACEOF 5241if ac_fn_cxx_try_cpp "$LINENO"; then : 5242 5243else 5244 # Broken: fails on valid input. 5245continue 5246fi 5247rm -f conftest.err conftest.$ac_ext 5248 5249 # OK, works on sane cases. Now check whether nonexistent headers 5250 # can be detected and how. 5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5252/* end confdefs.h. */ 5253#include <ac_nonexistent.h> 5254_ACEOF 5255if ac_fn_cxx_try_cpp "$LINENO"; then : 5256 # Broken: success on invalid input. 5257continue 5258else 5259 # Passes both tests. 5260ac_preproc_ok=: 5261break 5262fi 5263rm -f conftest.err conftest.$ac_ext 5264 5265done 5266# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5267rm -f conftest.err conftest.$ac_ext 5268if $ac_preproc_ok; then : 5269 5270else 5271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5273as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 5274See \`config.log' for more details." "$LINENO" 5; } 5275fi 5276 5277ac_ext=cpp 5278ac_cpp='$CXXCPP $CPPFLAGS' 5279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5282 5283fi 5284 5285 5286ac_ext=f 5287ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5288ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5289ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5290if test -n "$ac_tool_prefix"; then 5291 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5292 do 5293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5294set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5296$as_echo_n "checking for $ac_word... " >&6; } 5297if test "${ac_cv_prog_F77+set}" = set; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 if test -n "$F77"; then 5301 ac_cv_prog_F77="$F77" # Let the user override the test. 5302else 5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304for as_dir in $PATH 5305do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5310 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314done 5315 done 5316IFS=$as_save_IFS 5317 5318fi 5319fi 5320F77=$ac_cv_prog_F77 5321if test -n "$F77"; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 5323$as_echo "$F77" >&6; } 5324else 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326$as_echo "no" >&6; } 5327fi 5328 5329 5330 test -n "$F77" && break 5331 done 5332fi 5333if test -z "$F77"; then 5334 ac_ct_F77=$F77 5335 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5336do 5337 # Extract the first word of "$ac_prog", so it can be a program name with args. 5338set dummy $ac_prog; ac_word=$2 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5340$as_echo_n "checking for $ac_word... " >&6; } 5341if test "${ac_cv_prog_ac_ct_F77+set}" = set; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 if test -n "$ac_ct_F77"; then 5345 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5346else 5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5348for as_dir in $PATH 5349do 5350 IFS=$as_save_IFS 5351 test -z "$as_dir" && as_dir=. 5352 for ac_exec_ext in '' $ac_executable_extensions; do 5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5354 ac_cv_prog_ac_ct_F77="$ac_prog" 5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5356 break 2 5357 fi 5358done 5359 done 5360IFS=$as_save_IFS 5361 5362fi 5363fi 5364ac_ct_F77=$ac_cv_prog_ac_ct_F77 5365if test -n "$ac_ct_F77"; then 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 5367$as_echo "$ac_ct_F77" >&6; } 5368else 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5370$as_echo "no" >&6; } 5371fi 5372 5373 5374 test -n "$ac_ct_F77" && break 5375done 5376 5377 if test "x$ac_ct_F77" = x; then 5378 F77="" 5379 else 5380 case $cross_compiling:$ac_tool_warned in 5381yes:) 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5384ac_tool_warned=yes ;; 5385esac 5386 F77=$ac_ct_F77 5387 fi 5388fi 5389 5390 5391# Provide some information about the compiler. 5392$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 5393set X $ac_compile 5394ac_compiler=$2 5395for ac_option in --version -v -V -qversion; do 5396 { { ac_try="$ac_compiler $ac_option >&5" 5397case "(($ac_try" in 5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5399 *) ac_try_echo=$ac_try;; 5400esac 5401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5402$as_echo "$ac_try_echo"; } >&5 5403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5404 ac_status=$? 5405 if test -s conftest.err; then 5406 sed '10a\ 5407... rest of stderr output deleted ... 5408 10q' conftest.err >conftest.er1 5409 cat conftest.er1 >&5 5410 rm -f conftest.er1 conftest.err 5411 fi 5412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5413 test $ac_status = 0; } 5414done 5415rm -f a.out 5416 5417# If we don't use `.F' as extension, the preprocessor is not run on the 5418# input file. (Note that this only needs to work for GNU compilers.) 5419ac_save_ext=$ac_ext 5420ac_ext=F 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 5422$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 5423if test "${ac_cv_f77_compiler_gnu+set}" = set; then : 5424 $as_echo_n "(cached) " >&6 5425else 5426 cat > conftest.$ac_ext <<_ACEOF 5427 program main 5428#ifndef __GNUC__ 5429 choke me 5430#endif 5431 5432 end 5433_ACEOF 5434if ac_fn_f77_try_compile "$LINENO"; then : 5435 ac_compiler_gnu=yes 5436else 5437 ac_compiler_gnu=no 5438fi 5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5440ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5441 5442fi 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 5444$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 5445ac_ext=$ac_save_ext 5446ac_test_FFLAGS=${FFLAGS+set} 5447ac_save_FFLAGS=$FFLAGS 5448FFLAGS= 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 5450$as_echo_n "checking whether $F77 accepts -g... " >&6; } 5451if test "${ac_cv_prog_f77_g+set}" = set; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 FFLAGS=-g 5455cat > conftest.$ac_ext <<_ACEOF 5456 program main 5457 5458 end 5459_ACEOF 5460if ac_fn_f77_try_compile "$LINENO"; then : 5461 ac_cv_prog_f77_g=yes 5462else 5463 ac_cv_prog_f77_g=no 5464fi 5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5466 5467fi 5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 5469$as_echo "$ac_cv_prog_f77_g" >&6; } 5470if test "$ac_test_FFLAGS" = set; then 5471 FFLAGS=$ac_save_FFLAGS 5472elif test $ac_cv_prog_f77_g = yes; then 5473 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5474 FFLAGS="-g -O2" 5475 else 5476 FFLAGS="-g" 5477 fi 5478else 5479 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5480 FFLAGS="-O2" 5481 else 5482 FFLAGS= 5483 fi 5484fi 5485 5486if test $ac_compiler_gnu = yes; then 5487 G77=yes 5488else 5489 G77= 5490fi 5491ac_ext=c 5492ac_cpp='$CPP $CPPFLAGS' 5493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5495ac_compiler_gnu=$ac_cv_c_compiler_gnu 5496 5497 5498 5499# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5500# find the maximum length of command line arguments 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5502$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5503if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 i=0 5507 teststring="ABCD" 5508 5509 case $build_os in 5510 msdosdjgpp*) 5511 # On DJGPP, this test can blow up pretty badly due to problems in libc 5512 # (any single argument exceeding 2000 bytes causes a buffer overrun 5513 # during glob expansion). Even if it were fixed, the result of this 5514 # check would be larger than it should be. 5515 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5516 ;; 5517 5518 gnu*) 5519 # Under GNU Hurd, this test is not required because there is 5520 # no limit to the length of command line arguments. 5521 # Libtool will interpret -1 as no limit whatsoever 5522 lt_cv_sys_max_cmd_len=-1; 5523 ;; 5524 5525 cygwin* | mingw*) 5526 # On Win9x/ME, this test blows up -- it succeeds, but takes 5527 # about 5 minutes as the teststring grows exponentially. 5528 # Worse, since 9x/ME are not pre-emptively multitasking, 5529 # you end up with a "frozen" computer, even though with patience 5530 # the test eventually succeeds (with a max line length of 256k). 5531 # Instead, let's just punt: use the minimum linelength reported by 5532 # all of the supported platforms: 8192 (on NT/2K/XP). 5533 lt_cv_sys_max_cmd_len=8192; 5534 ;; 5535 5536 amigaos*) 5537 # On AmigaOS with pdksh, this test takes hours, literally. 5538 # So we just punt and use a minimum line length of 8192. 5539 lt_cv_sys_max_cmd_len=8192; 5540 ;; 5541 5542 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5543 # This has been around since 386BSD, at least. Likely further. 5544 if test -x /sbin/sysctl; then 5545 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5546 elif test -x /usr/sbin/sysctl; then 5547 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5548 else 5549 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5550 fi 5551 # And add a safety zone 5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5554 ;; 5555 5556 interix*) 5557 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5558 lt_cv_sys_max_cmd_len=196608 5559 ;; 5560 5561 osf*) 5562 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5563 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5564 # nice to cause kernel panics so lets avoid the loop below. 5565 # First set a reasonable default. 5566 lt_cv_sys_max_cmd_len=16384 5567 # 5568 if test -x /sbin/sysconfig; then 5569 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5570 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5571 esac 5572 fi 5573 ;; 5574 sco3.2v5*) 5575 lt_cv_sys_max_cmd_len=102400 5576 ;; 5577 sysv5* | sco5v6* | sysv4.2uw2*) 5578 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5579 if test -n "$kargmax"; then 5580 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5581 else 5582 lt_cv_sys_max_cmd_len=32768 5583 fi 5584 ;; 5585 *) 5586 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5587 if test -n "$lt_cv_sys_max_cmd_len"; then 5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5590 else 5591 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5592 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5593 = "XX$teststring") >/dev/null 2>&1 && 5594 new_result=`expr "X$teststring" : ".*" 2>&1` && 5595 lt_cv_sys_max_cmd_len=$new_result && 5596 test $i != 17 # 1/2 MB should be enough 5597 do 5598 i=`expr $i + 1` 5599 teststring=$teststring$teststring 5600 done 5601 teststring= 5602 # Add a significant safety factor because C++ compilers can tack on massive 5603 # amounts of additional arguments before passing them to the linker. 5604 # It appears as though 1/2 is a usable value. 5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5606 fi 5607 ;; 5608 esac 5609 5610fi 5611 5612if test -n $lt_cv_sys_max_cmd_len ; then 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5614$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5615else 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5617$as_echo "none" >&6; } 5618fi 5619 5620 5621 5622 5623 5624# Check for command to grab the raw symbol name followed by C symbol from nm. 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5626$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5627if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 5631# These are sane defaults that work on at least a few old systems. 5632# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5633 5634# Character class describing NM global symbol codes. 5635symcode='[BCDEGRST]' 5636 5637# Regexp to match symbols that can be accessed directly from C. 5638sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5639 5640# Transform an extracted symbol line into a proper C declaration 5641lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5642 5643# Transform an extracted symbol line into symbol name and symbol address 5644lt_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'" 5645 5646# Define system-specific variables. 5647case $host_os in 5648aix*) 5649 symcode='[BCDT]' 5650 ;; 5651cygwin* | mingw* | pw32*) 5652 symcode='[ABCDGISTW]' 5653 ;; 5654hpux*) # Its linker distinguishes data from code symbols 5655 if test "$host_cpu" = ia64; then 5656 symcode='[ABCDEGRST]' 5657 fi 5658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5659 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'" 5660 ;; 5661linux* | k*bsd*-gnu) 5662 if test "$host_cpu" = ia64; then 5663 symcode='[ABCDGIRSTW]' 5664 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5665 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'" 5666 fi 5667 ;; 5668irix* | nonstopux*) 5669 symcode='[BCDEGRST]' 5670 ;; 5671osf*) 5672 symcode='[BCDEGQRST]' 5673 ;; 5674solaris*) 5675 symcode='[BDRT]' 5676 ;; 5677sco3.2v5*) 5678 symcode='[DT]' 5679 ;; 5680sysv4.2uw2*) 5681 symcode='[DT]' 5682 ;; 5683sysv5* | sco5v6* | unixware* | OpenUNIX*) 5684 symcode='[ABDT]' 5685 ;; 5686sysv4) 5687 symcode='[DFNSTU]' 5688 ;; 5689esac 5690 5691# Handle CRLF in mingw tool chain 5692opt_cr= 5693case $build_os in 5694mingw*) 5695 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5696 ;; 5697esac 5698 5699# If we're using GNU nm, then use its standard symbol codes. 5700case `$NM -V 2>&1` in 5701*GNU* | *'with BFD'*) 5702 symcode='[ABCDGIRSTW]' ;; 5703esac 5704 5705# Try without a prefix undercore, then with it. 5706for ac_symprfx in "" "_"; do 5707 5708 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5709 symxfrm="\\1 $ac_symprfx\\2 \\2" 5710 5711 # Write the raw and C identifiers. 5712 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5713 5714 # Check to see that the pipe works correctly. 5715 pipe_works=no 5716 5717 rm -f conftest* 5718 cat > conftest.$ac_ext <<EOF 5719#ifdef __cplusplus 5720extern "C" { 5721#endif 5722char nm_test_var; 5723void nm_test_func(){} 5724#ifdef __cplusplus 5725} 5726#endif 5727int main(){nm_test_var='a';nm_test_func();return(0);} 5728EOF 5729 5730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5731 (eval $ac_compile) 2>&5 5732 ac_status=$? 5733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5734 test $ac_status = 0; }; then 5735 # Now try to grab the symbols. 5736 nlist=conftest.nm 5737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5738 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5739 ac_status=$? 5740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5741 test $ac_status = 0; } && test -s "$nlist"; then 5742 # Try sorting and uniquifying the output. 5743 if sort "$nlist" | uniq > "$nlist"T; then 5744 mv -f "$nlist"T "$nlist" 5745 else 5746 rm -f "$nlist"T 5747 fi 5748 5749 # Make sure that we snagged all the symbols we need. 5750 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5751 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5752 cat <<EOF > conftest.$ac_ext 5753#ifdef __cplusplus 5754extern "C" { 5755#endif 5756 5757EOF 5758 # Now generate the symbol file. 5759 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5760 5761 cat <<EOF >> conftest.$ac_ext 5762#if defined (__STDC__) && __STDC__ 5763# define lt_ptr_t void * 5764#else 5765# define lt_ptr_t char * 5766# define const 5767#endif 5768 5769/* The mapping between symbol names and symbols. */ 5770const struct { 5771 const char *name; 5772 lt_ptr_t address; 5773} 5774lt_preloaded_symbols[] = 5775{ 5776EOF 5777 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5778 cat <<\EOF >> conftest.$ac_ext 5779 {0, (lt_ptr_t) 0} 5780}; 5781 5782#ifdef __cplusplus 5783} 5784#endif 5785EOF 5786 # Now try linking the two files. 5787 mv conftest.$ac_objext conftstm.$ac_objext 5788 lt_save_LIBS="$LIBS" 5789 lt_save_CFLAGS="$CFLAGS" 5790 LIBS="conftstm.$ac_objext" 5791 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5793 (eval $ac_link) 2>&5 5794 ac_status=$? 5795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5796 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5797 pipe_works=yes 5798 fi 5799 LIBS="$lt_save_LIBS" 5800 CFLAGS="$lt_save_CFLAGS" 5801 else 5802 echo "cannot find nm_test_func in $nlist" >&5 5803 fi 5804 else 5805 echo "cannot find nm_test_var in $nlist" >&5 5806 fi 5807 else 5808 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5809 fi 5810 else 5811 echo "$progname: failed program was:" >&5 5812 cat conftest.$ac_ext >&5 5813 fi 5814 rm -rf conftest* conftst* 5815 5816 # Do not use the global_symbol_pipe unless it works. 5817 if test "$pipe_works" = yes; then 5818 break 5819 else 5820 lt_cv_sys_global_symbol_pipe= 5821 fi 5822done 5823 5824fi 5825 5826if test -z "$lt_cv_sys_global_symbol_pipe"; then 5827 lt_cv_sys_global_symbol_to_cdecl= 5828fi 5829if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5831$as_echo "failed" >&6; } 5832else 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5834$as_echo "ok" >&6; } 5835fi 5836 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 5838$as_echo_n "checking for objdir... " >&6; } 5839if test "${lt_cv_objdir+set}" = set; then : 5840 $as_echo_n "(cached) " >&6 5841else 5842 rm -f .libs 2>/dev/null 5843mkdir .libs 2>/dev/null 5844if test -d .libs; then 5845 lt_cv_objdir=.libs 5846else 5847 # MS-DOS does not allow filenames that begin with a dot. 5848 lt_cv_objdir=_libs 5849fi 5850rmdir .libs 2>/dev/null 5851fi 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 5853$as_echo "$lt_cv_objdir" >&6; } 5854objdir=$lt_cv_objdir 5855 5856 5857 5858 5859 5860case $host_os in 5861aix3*) 5862 # AIX sometimes has problems with the GCC collect2 program. For some 5863 # reason, if we set the COLLECT_NAMES environment variable, the problems 5864 # vanish in a puff of smoke. 5865 if test "X${COLLECT_NAMES+set}" != Xset; then 5866 COLLECT_NAMES= 5867 export COLLECT_NAMES 5868 fi 5869 ;; 5870esac 5871 5872# Sed substitution that helps us do robust quoting. It backslashifies 5873# metacharacters that are still active within double-quoted strings. 5874Xsed='sed -e 1s/^X//' 5875sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5876 5877# Same as above, but do not quote variable references. 5878double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5879 5880# Sed substitution to delay expansion of an escaped shell variable in a 5881# double_quote_subst'ed string. 5882delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5883 5884# Sed substitution to avoid accidental globbing in evaled expressions 5885no_glob_subst='s/\*/\\\*/g' 5886 5887# Constants: 5888rm="rm -f" 5889 5890# Global variables: 5891default_ofile=libtool 5892can_build_shared=yes 5893 5894# All known linkers require a `.a' archive for static linking (except MSVC, 5895# which needs '.lib'). 5896libext=a 5897ltmain="$ac_aux_dir/ltmain.sh" 5898ofile="$default_ofile" 5899with_gnu_ld="$lt_cv_prog_gnu_ld" 5900 5901if test -n "$ac_tool_prefix"; then 5902 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5903set dummy ${ac_tool_prefix}ar; ac_word=$2 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5905$as_echo_n "checking for $ac_word... " >&6; } 5906if test "${ac_cv_prog_AR+set}" = set; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 if test -n "$AR"; then 5910 ac_cv_prog_AR="$AR" # Let the user override the test. 5911else 5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5913for as_dir in $PATH 5914do 5915 IFS=$as_save_IFS 5916 test -z "$as_dir" && as_dir=. 5917 for ac_exec_ext in '' $ac_executable_extensions; do 5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5919 ac_cv_prog_AR="${ac_tool_prefix}ar" 5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5921 break 2 5922 fi 5923done 5924 done 5925IFS=$as_save_IFS 5926 5927fi 5928fi 5929AR=$ac_cv_prog_AR 5930if test -n "$AR"; then 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5932$as_echo "$AR" >&6; } 5933else 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5935$as_echo "no" >&6; } 5936fi 5937 5938 5939fi 5940if test -z "$ac_cv_prog_AR"; then 5941 ac_ct_AR=$AR 5942 # Extract the first word of "ar", so it can be a program name with args. 5943set dummy ar; ac_word=$2 5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5945$as_echo_n "checking for $ac_word... " >&6; } 5946if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5947 $as_echo_n "(cached) " >&6 5948else 5949 if test -n "$ac_ct_AR"; then 5950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5951else 5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5953for as_dir in $PATH 5954do 5955 IFS=$as_save_IFS 5956 test -z "$as_dir" && as_dir=. 5957 for ac_exec_ext in '' $ac_executable_extensions; do 5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5959 ac_cv_prog_ac_ct_AR="ar" 5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5961 break 2 5962 fi 5963done 5964 done 5965IFS=$as_save_IFS 5966 5967fi 5968fi 5969ac_ct_AR=$ac_cv_prog_ac_ct_AR 5970if test -n "$ac_ct_AR"; then 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5972$as_echo "$ac_ct_AR" >&6; } 5973else 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5975$as_echo "no" >&6; } 5976fi 5977 5978 if test "x$ac_ct_AR" = x; then 5979 AR="false" 5980 else 5981 case $cross_compiling:$ac_tool_warned in 5982yes:) 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5985ac_tool_warned=yes ;; 5986esac 5987 AR=$ac_ct_AR 5988 fi 5989else 5990 AR="$ac_cv_prog_AR" 5991fi 5992 5993if test -n "$ac_tool_prefix"; then 5994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5995set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5997$as_echo_n "checking for $ac_word... " >&6; } 5998if test "${ac_cv_prog_RANLIB+set}" = set; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 if test -n "$RANLIB"; then 6002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6003else 6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005for as_dir in $PATH 6006do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015done 6016 done 6017IFS=$as_save_IFS 6018 6019fi 6020fi 6021RANLIB=$ac_cv_prog_RANLIB 6022if test -n "$RANLIB"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6024$as_echo "$RANLIB" >&6; } 6025else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027$as_echo "no" >&6; } 6028fi 6029 6030 6031fi 6032if test -z "$ac_cv_prog_RANLIB"; then 6033 ac_ct_RANLIB=$RANLIB 6034 # Extract the first word of "ranlib", so it can be a program name with args. 6035set dummy ranlib; ac_word=$2 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6037$as_echo_n "checking for $ac_word... " >&6; } 6038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6039 $as_echo_n "(cached) " >&6 6040else 6041 if test -n "$ac_ct_RANLIB"; then 6042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6043else 6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6045for as_dir in $PATH 6046do 6047 IFS=$as_save_IFS 6048 test -z "$as_dir" && as_dir=. 6049 for ac_exec_ext in '' $ac_executable_extensions; do 6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6051 ac_cv_prog_ac_ct_RANLIB="ranlib" 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6053 break 2 6054 fi 6055done 6056 done 6057IFS=$as_save_IFS 6058 6059fi 6060fi 6061ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6062if test -n "$ac_ct_RANLIB"; then 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6064$as_echo "$ac_ct_RANLIB" >&6; } 6065else 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6067$as_echo "no" >&6; } 6068fi 6069 6070 if test "x$ac_ct_RANLIB" = x; then 6071 RANLIB=":" 6072 else 6073 case $cross_compiling:$ac_tool_warned in 6074yes:) 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6077ac_tool_warned=yes ;; 6078esac 6079 RANLIB=$ac_ct_RANLIB 6080 fi 6081else 6082 RANLIB="$ac_cv_prog_RANLIB" 6083fi 6084 6085if test -n "$ac_tool_prefix"; then 6086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6087set dummy ${ac_tool_prefix}strip; ac_word=$2 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6089$as_echo_n "checking for $ac_word... " >&6; } 6090if test "${ac_cv_prog_STRIP+set}" = set; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 if test -n "$STRIP"; then 6094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6095else 6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6097for as_dir in $PATH 6098do 6099 IFS=$as_save_IFS 6100 test -z "$as_dir" && as_dir=. 6101 for ac_exec_ext in '' $ac_executable_extensions; do 6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6103 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6105 break 2 6106 fi 6107done 6108 done 6109IFS=$as_save_IFS 6110 6111fi 6112fi 6113STRIP=$ac_cv_prog_STRIP 6114if test -n "$STRIP"; then 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6116$as_echo "$STRIP" >&6; } 6117else 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6119$as_echo "no" >&6; } 6120fi 6121 6122 6123fi 6124if test -z "$ac_cv_prog_STRIP"; then 6125 ac_ct_STRIP=$STRIP 6126 # Extract the first word of "strip", so it can be a program name with args. 6127set dummy strip; ac_word=$2 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6129$as_echo_n "checking for $ac_word... " >&6; } 6130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6131 $as_echo_n "(cached) " >&6 6132else 6133 if test -n "$ac_ct_STRIP"; then 6134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6135else 6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6137for as_dir in $PATH 6138do 6139 IFS=$as_save_IFS 6140 test -z "$as_dir" && as_dir=. 6141 for ac_exec_ext in '' $ac_executable_extensions; do 6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6143 ac_cv_prog_ac_ct_STRIP="strip" 6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6145 break 2 6146 fi 6147done 6148 done 6149IFS=$as_save_IFS 6150 6151fi 6152fi 6153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6154if test -n "$ac_ct_STRIP"; then 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6156$as_echo "$ac_ct_STRIP" >&6; } 6157else 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6159$as_echo "no" >&6; } 6160fi 6161 6162 if test "x$ac_ct_STRIP" = x; then 6163 STRIP=":" 6164 else 6165 case $cross_compiling:$ac_tool_warned in 6166yes:) 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6169ac_tool_warned=yes ;; 6170esac 6171 STRIP=$ac_ct_STRIP 6172 fi 6173else 6174 STRIP="$ac_cv_prog_STRIP" 6175fi 6176 6177 6178old_CC="$CC" 6179old_CFLAGS="$CFLAGS" 6180 6181# Set sane defaults for various variables 6182test -z "$AR" && AR=ar 6183test -z "$AR_FLAGS" && AR_FLAGS=cru 6184test -z "$AS" && AS=as 6185test -z "$CC" && CC=cc 6186test -z "$LTCC" && LTCC=$CC 6187test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6188test -z "$DLLTOOL" && DLLTOOL=dlltool 6189test -z "$LD" && LD=ld 6190test -z "$LN_S" && LN_S="ln -s" 6191test -z "$MAGIC_CMD" && MAGIC_CMD=file 6192test -z "$NM" && NM=nm 6193test -z "$SED" && SED=sed 6194test -z "$OBJDUMP" && OBJDUMP=objdump 6195test -z "$RANLIB" && RANLIB=: 6196test -z "$STRIP" && STRIP=: 6197test -z "$ac_objext" && ac_objext=o 6198 6199# Determine commands to create old-style static archives. 6200old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6201old_postinstall_cmds='chmod 644 $oldlib' 6202old_postuninstall_cmds= 6203 6204if test -n "$RANLIB"; then 6205 case $host_os in 6206 openbsd*) 6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6208 ;; 6209 *) 6210 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6211 ;; 6212 esac 6213 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6214fi 6215 6216for cc_temp in $compiler""; do 6217 case $cc_temp in 6218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6220 \-*) ;; 6221 *) break;; 6222 esac 6223done 6224cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6225 6226 6227# Only perform the check for file, if the check method requires it 6228case $deplibs_check_method in 6229file_magic*) 6230 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 6232$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6233if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 case $MAGIC_CMD in 6237[\\/*] | ?:[\\/]*) 6238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6239 ;; 6240*) 6241 lt_save_MAGIC_CMD="$MAGIC_CMD" 6242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6243 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6244 for ac_dir in $ac_dummy; do 6245 IFS="$lt_save_ifs" 6246 test -z "$ac_dir" && ac_dir=. 6247 if test -f $ac_dir/${ac_tool_prefix}file; then 6248 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6249 if test -n "$file_magic_test_file"; then 6250 case $deplibs_check_method in 6251 "file_magic "*) 6252 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6255 $EGREP "$file_magic_regex" > /dev/null; then 6256 : 6257 else 6258 cat <<EOF 1>&2 6259 6260*** Warning: the command libtool uses to detect shared libraries, 6261*** $file_magic_cmd, produces output that libtool cannot recognize. 6262*** The result is that libtool may fail to recognize shared libraries 6263*** as such. This will affect the creation of libtool libraries that 6264*** depend on shared libraries, but programs linked with such libtool 6265*** libraries will work regardless of this problem. Nevertheless, you 6266*** may want to report the problem to your system manager and/or to 6267*** bug-libtool@gnu.org 6268 6269EOF 6270 fi ;; 6271 esac 6272 fi 6273 break 6274 fi 6275 done 6276 IFS="$lt_save_ifs" 6277 MAGIC_CMD="$lt_save_MAGIC_CMD" 6278 ;; 6279esac 6280fi 6281 6282MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6283if test -n "$MAGIC_CMD"; then 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6285$as_echo "$MAGIC_CMD" >&6; } 6286else 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6288$as_echo "no" >&6; } 6289fi 6290 6291if test -z "$lt_cv_path_MAGIC_CMD"; then 6292 if test -n "$ac_tool_prefix"; then 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 6294$as_echo_n "checking for file... " >&6; } 6295if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 6296 $as_echo_n "(cached) " >&6 6297else 6298 case $MAGIC_CMD in 6299[\\/*] | ?:[\\/]*) 6300 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6301 ;; 6302*) 6303 lt_save_MAGIC_CMD="$MAGIC_CMD" 6304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6305 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6306 for ac_dir in $ac_dummy; do 6307 IFS="$lt_save_ifs" 6308 test -z "$ac_dir" && ac_dir=. 6309 if test -f $ac_dir/file; then 6310 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6311 if test -n "$file_magic_test_file"; then 6312 case $deplibs_check_method in 6313 "file_magic "*) 6314 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6317 $EGREP "$file_magic_regex" > /dev/null; then 6318 : 6319 else 6320 cat <<EOF 1>&2 6321 6322*** Warning: the command libtool uses to detect shared libraries, 6323*** $file_magic_cmd, produces output that libtool cannot recognize. 6324*** The result is that libtool may fail to recognize shared libraries 6325*** as such. This will affect the creation of libtool libraries that 6326*** depend on shared libraries, but programs linked with such libtool 6327*** libraries will work regardless of this problem. Nevertheless, you 6328*** may want to report the problem to your system manager and/or to 6329*** bug-libtool@gnu.org 6330 6331EOF 6332 fi ;; 6333 esac 6334 fi 6335 break 6336 fi 6337 done 6338 IFS="$lt_save_ifs" 6339 MAGIC_CMD="$lt_save_MAGIC_CMD" 6340 ;; 6341esac 6342fi 6343 6344MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6345if test -n "$MAGIC_CMD"; then 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6347$as_echo "$MAGIC_CMD" >&6; } 6348else 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6350$as_echo "no" >&6; } 6351fi 6352 6353 else 6354 MAGIC_CMD=: 6355 fi 6356fi 6357 6358 fi 6359 ;; 6360esac 6361 6362 6363 case $host_os in 6364 rhapsody* | darwin*) 6365 if test -n "$ac_tool_prefix"; then 6366 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6367set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6369$as_echo_n "checking for $ac_word... " >&6; } 6370if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6371 $as_echo_n "(cached) " >&6 6372else 6373 if test -n "$DSYMUTIL"; then 6374 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6375else 6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6377for as_dir in $PATH 6378do 6379 IFS=$as_save_IFS 6380 test -z "$as_dir" && as_dir=. 6381 for ac_exec_ext in '' $ac_executable_extensions; do 6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6383 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6385 break 2 6386 fi 6387done 6388 done 6389IFS=$as_save_IFS 6390 6391fi 6392fi 6393DSYMUTIL=$ac_cv_prog_DSYMUTIL 6394if test -n "$DSYMUTIL"; then 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6396$as_echo "$DSYMUTIL" >&6; } 6397else 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6399$as_echo "no" >&6; } 6400fi 6401 6402 6403fi 6404if test -z "$ac_cv_prog_DSYMUTIL"; then 6405 ac_ct_DSYMUTIL=$DSYMUTIL 6406 # Extract the first word of "dsymutil", so it can be a program name with args. 6407set dummy dsymutil; ac_word=$2 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6409$as_echo_n "checking for $ac_word... " >&6; } 6410if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 if test -n "$ac_ct_DSYMUTIL"; then 6414 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6415else 6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6417for as_dir in $PATH 6418do 6419 IFS=$as_save_IFS 6420 test -z "$as_dir" && as_dir=. 6421 for ac_exec_ext in '' $ac_executable_extensions; do 6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6423 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6425 break 2 6426 fi 6427done 6428 done 6429IFS=$as_save_IFS 6430 6431fi 6432fi 6433ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6434if test -n "$ac_ct_DSYMUTIL"; then 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6436$as_echo "$ac_ct_DSYMUTIL" >&6; } 6437else 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6439$as_echo "no" >&6; } 6440fi 6441 6442 if test "x$ac_ct_DSYMUTIL" = x; then 6443 DSYMUTIL=":" 6444 else 6445 case $cross_compiling:$ac_tool_warned in 6446yes:) 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6449ac_tool_warned=yes ;; 6450esac 6451 DSYMUTIL=$ac_ct_DSYMUTIL 6452 fi 6453else 6454 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6455fi 6456 6457 if test -n "$ac_tool_prefix"; then 6458 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6459set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6461$as_echo_n "checking for $ac_word... " >&6; } 6462if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 if test -n "$NMEDIT"; then 6466 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6467else 6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6469for as_dir in $PATH 6470do 6471 IFS=$as_save_IFS 6472 test -z "$as_dir" && as_dir=. 6473 for ac_exec_ext in '' $ac_executable_extensions; do 6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6475 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6477 break 2 6478 fi 6479done 6480 done 6481IFS=$as_save_IFS 6482 6483fi 6484fi 6485NMEDIT=$ac_cv_prog_NMEDIT 6486if test -n "$NMEDIT"; then 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6488$as_echo "$NMEDIT" >&6; } 6489else 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6491$as_echo "no" >&6; } 6492fi 6493 6494 6495fi 6496if test -z "$ac_cv_prog_NMEDIT"; then 6497 ac_ct_NMEDIT=$NMEDIT 6498 # Extract the first word of "nmedit", so it can be a program name with args. 6499set dummy nmedit; ac_word=$2 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6501$as_echo_n "checking for $ac_word... " >&6; } 6502if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6503 $as_echo_n "(cached) " >&6 6504else 6505 if test -n "$ac_ct_NMEDIT"; then 6506 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6507else 6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6509for as_dir in $PATH 6510do 6511 IFS=$as_save_IFS 6512 test -z "$as_dir" && as_dir=. 6513 for ac_exec_ext in '' $ac_executable_extensions; do 6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6515 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6517 break 2 6518 fi 6519done 6520 done 6521IFS=$as_save_IFS 6522 6523fi 6524fi 6525ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6526if test -n "$ac_ct_NMEDIT"; then 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6528$as_echo "$ac_ct_NMEDIT" >&6; } 6529else 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6531$as_echo "no" >&6; } 6532fi 6533 6534 if test "x$ac_ct_NMEDIT" = x; then 6535 NMEDIT=":" 6536 else 6537 case $cross_compiling:$ac_tool_warned in 6538yes:) 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6541ac_tool_warned=yes ;; 6542esac 6543 NMEDIT=$ac_ct_NMEDIT 6544 fi 6545else 6546 NMEDIT="$ac_cv_prog_NMEDIT" 6547fi 6548 6549 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6551$as_echo_n "checking for -single_module linker flag... " >&6; } 6552if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6553 $as_echo_n "(cached) " >&6 6554else 6555 lt_cv_apple_cc_single_mod=no 6556 if test -z "${LT_MULTI_MODULE}"; then 6557 # By default we will add the -single_module flag. You can override 6558 # by either setting the environment variable LT_MULTI_MODULE 6559 # non-empty at configure time, or by adding -multi_module to the 6560 # link flags. 6561 echo "int foo(void){return 1;}" > conftest.c 6562 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6563 -dynamiclib ${wl}-single_module conftest.c 6564 if test -f libconftest.dylib; then 6565 lt_cv_apple_cc_single_mod=yes 6566 rm -rf libconftest.dylib* 6567 fi 6568 rm conftest.c 6569 fi 6570fi 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6572$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6574$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6575if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6576 $as_echo_n "(cached) " >&6 6577else 6578 lt_cv_ld_exported_symbols_list=no 6579 save_LDFLAGS=$LDFLAGS 6580 echo "_main" > conftest.sym 6581 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584 6585int 6586main () 6587{ 6588 6589 ; 6590 return 0; 6591} 6592_ACEOF 6593if ac_fn_c_try_link "$LINENO"; then : 6594 lt_cv_ld_exported_symbols_list=yes 6595else 6596 lt_cv_ld_exported_symbols_list=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext \ 6599 conftest$ac_exeext conftest.$ac_ext 6600 LDFLAGS="$save_LDFLAGS" 6601 6602fi 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6604$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6605 case $host_os in 6606 rhapsody* | darwin1.[0123]) 6607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6608 darwin1.*) 6609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6610 darwin*) 6611 # if running on 10.5 or later, the deployment target defaults 6612 # to the OS version, if on x86, and 10.4, the deployment 6613 # target defaults to 10.4. Don't you love it? 6614 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6615 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6617 10.[012]*) 6618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6619 10.*) 6620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6621 esac 6622 ;; 6623 esac 6624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6625 _lt_dar_single_mod='$single_module' 6626 fi 6627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6629 else 6630 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 6631 fi 6632 if test "$DSYMUTIL" != ":"; then 6633 _lt_dsymutil="~$DSYMUTIL \$lib || :" 6634 else 6635 _lt_dsymutil= 6636 fi 6637 ;; 6638 esac 6639 6640 6641enable_dlopen=no 6642enable_win32_dll=yes 6643 6644# Check whether --enable-libtool-lock was given. 6645if test "${enable_libtool_lock+set}" = set; then : 6646 enableval=$enable_libtool_lock; 6647fi 6648 6649test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6650 6651 6652# Check whether --with-pic was given. 6653if test "${with_pic+set}" = set; then : 6654 withval=$with_pic; pic_mode="$withval" 6655else 6656 pic_mode=default 6657fi 6658 6659test -z "$pic_mode" && pic_mode=default 6660 6661# Use C for the default configuration in the libtool script 6662tagname= 6663lt_save_CC="$CC" 6664ac_ext=c 6665ac_cpp='$CPP $CPPFLAGS' 6666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6668ac_compiler_gnu=$ac_cv_c_compiler_gnu 6669 6670 6671# Source file extension for C test sources. 6672ac_ext=c 6673 6674# Object file extension for compiled C test sources. 6675objext=o 6676objext=$objext 6677 6678# Code to be used in simple compile tests 6679lt_simple_compile_test_code="int some_variable = 0;" 6680 6681# Code to be used in simple link tests 6682lt_simple_link_test_code='int main(){return(0);}' 6683 6684 6685# If no C compiler was specified, use CC. 6686LTCC=${LTCC-"$CC"} 6687 6688# If no C compiler flags were specified, use CFLAGS. 6689LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6690 6691# Allow CC to be a program name with arguments. 6692compiler=$CC 6693 6694 6695# save warnings/boilerplate of simple test code 6696ac_outfile=conftest.$ac_objext 6697echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6698eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6699_lt_compiler_boilerplate=`cat conftest.err` 6700$rm conftest* 6701 6702ac_outfile=conftest.$ac_objext 6703echo "$lt_simple_link_test_code" >conftest.$ac_ext 6704eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6705_lt_linker_boilerplate=`cat conftest.err` 6706$rm -r conftest* 6707 6708 6709## CAVEAT EMPTOR: 6710## There is no encapsulation within the following macros, do not change 6711## the running order or otherwise move them around unless you know exactly 6712## what you are doing... 6713 6714lt_prog_compiler_no_builtin_flag= 6715 6716if test "$GCC" = yes; then 6717 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6718 6719 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6721$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6722if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 6723 $as_echo_n "(cached) " >&6 6724else 6725 lt_cv_prog_compiler_rtti_exceptions=no 6726 ac_outfile=conftest.$ac_objext 6727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6728 lt_compiler_flag="-fno-rtti -fno-exceptions" 6729 # Insert the option either (1) after the last *FLAGS variable, or 6730 # (2) before a word containing "conftest.", or (3) at the end. 6731 # Note that $ac_compile itself does not contain backslashes and begins 6732 # with a dollar sign (not a hyphen), so the echo should work correctly. 6733 # The option is referenced via a variable to avoid confusing sed. 6734 lt_compile=`echo "$ac_compile" | $SED \ 6735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6737 -e 's:$: $lt_compiler_flag:'` 6738 (eval echo "\"\$as_me:6738: $lt_compile\"" >&5) 6739 (eval "$lt_compile" 2>conftest.err) 6740 ac_status=$? 6741 cat conftest.err >&5 6742 echo "$as_me:6742: \$? = $ac_status" >&5 6743 if (exit $ac_status) && test -s "$ac_outfile"; then 6744 # The compiler can only warn and ignore the option if not recognized 6745 # So say no if there are warnings other than the usual output. 6746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6749 lt_cv_prog_compiler_rtti_exceptions=yes 6750 fi 6751 fi 6752 $rm conftest* 6753 6754fi 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6756$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6757 6758if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6759 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6760else 6761 : 6762fi 6763 6764fi 6765 6766lt_prog_compiler_wl= 6767lt_prog_compiler_pic= 6768lt_prog_compiler_static= 6769 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 6771$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6772 6773 if test "$GCC" = yes; then 6774 lt_prog_compiler_wl='-Wl,' 6775 lt_prog_compiler_static='-static' 6776 6777 case $host_os in 6778 aix*) 6779 # All AIX code is PIC. 6780 if test "$host_cpu" = ia64; then 6781 # AIX 5 now supports IA64 processor 6782 lt_prog_compiler_static='-Bstatic' 6783 fi 6784 ;; 6785 6786 amigaos*) 6787 # FIXME: we need at least 68020 code to build shared libraries, but 6788 # adding the `-m68020' flag to GCC prevents building anything better, 6789 # like `-m68040'. 6790 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6791 ;; 6792 6793 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6794 # PIC is the default for these OSes. 6795 ;; 6796 6797 mingw* | cygwin* | pw32* | os2*) 6798 # This hack is so that the source file can tell whether it is being 6799 # built for inclusion in a dll (and should export symbols for example). 6800 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6801 # (--disable-auto-import) libraries 6802 lt_prog_compiler_pic='-DDLL_EXPORT' 6803 ;; 6804 6805 darwin* | rhapsody*) 6806 # PIC is the default on this platform 6807 # Common symbols not allowed in MH_DYLIB files 6808 lt_prog_compiler_pic='-fno-common' 6809 ;; 6810 6811 interix[3-9]*) 6812 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6813 # Instead, we relocate shared libraries at runtime. 6814 ;; 6815 6816 msdosdjgpp*) 6817 # Just because we use GCC doesn't mean we suddenly get shared libraries 6818 # on systems that don't support them. 6819 lt_prog_compiler_can_build_shared=no 6820 enable_shared=no 6821 ;; 6822 6823 sysv4*MP*) 6824 if test -d /usr/nec; then 6825 lt_prog_compiler_pic=-Kconform_pic 6826 fi 6827 ;; 6828 6829 hpux*) 6830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6831 # not for PA HP-UX. 6832 case $host_cpu in 6833 hppa*64*|ia64*) 6834 # +Z the default 6835 ;; 6836 *) 6837 lt_prog_compiler_pic='-fPIC' 6838 ;; 6839 esac 6840 ;; 6841 6842 *) 6843 lt_prog_compiler_pic='-fPIC' 6844 ;; 6845 esac 6846 else 6847 # PORTME Check for flag to pass linker flags through the system compiler. 6848 case $host_os in 6849 aix*) 6850 lt_prog_compiler_wl='-Wl,' 6851 if test "$host_cpu" = ia64; then 6852 # AIX 5 now supports IA64 processor 6853 lt_prog_compiler_static='-Bstatic' 6854 else 6855 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6856 fi 6857 ;; 6858 darwin*) 6859 # PIC is the default on this platform 6860 # Common symbols not allowed in MH_DYLIB files 6861 case $cc_basename in 6862 xlc*) 6863 lt_prog_compiler_pic='-qnocommon' 6864 lt_prog_compiler_wl='-Wl,' 6865 ;; 6866 esac 6867 ;; 6868 6869 mingw* | cygwin* | pw32* | os2*) 6870 # This hack is so that the source file can tell whether it is being 6871 # built for inclusion in a dll (and should export symbols for example). 6872 lt_prog_compiler_pic='-DDLL_EXPORT' 6873 ;; 6874 6875 hpux9* | hpux10* | hpux11*) 6876 lt_prog_compiler_wl='-Wl,' 6877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6878 # not for PA HP-UX. 6879 case $host_cpu in 6880 hppa*64*|ia64*) 6881 # +Z the default 6882 ;; 6883 *) 6884 lt_prog_compiler_pic='+Z' 6885 ;; 6886 esac 6887 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6888 lt_prog_compiler_static='${wl}-a ${wl}archive' 6889 ;; 6890 6891 irix5* | irix6* | nonstopux*) 6892 lt_prog_compiler_wl='-Wl,' 6893 # PIC (with -KPIC) is the default. 6894 lt_prog_compiler_static='-non_shared' 6895 ;; 6896 6897 newsos6) 6898 lt_prog_compiler_pic='-KPIC' 6899 lt_prog_compiler_static='-Bstatic' 6900 ;; 6901 6902 linux* | k*bsd*-gnu) 6903 case $cc_basename in 6904 icc* | ecc*) 6905 lt_prog_compiler_wl='-Wl,' 6906 lt_prog_compiler_pic='-KPIC' 6907 lt_prog_compiler_static='-static' 6908 ;; 6909 pgcc* | pgf77* | pgf90* | pgf95*) 6910 # Portland Group compilers (*not* the Pentium gcc compiler, 6911 # which looks to be a dead project) 6912 lt_prog_compiler_wl='-Wl,' 6913 lt_prog_compiler_pic='-fpic' 6914 lt_prog_compiler_static='-Bstatic' 6915 ;; 6916 ccc*) 6917 lt_prog_compiler_wl='-Wl,' 6918 # All Alpha code is PIC. 6919 lt_prog_compiler_static='-non_shared' 6920 ;; 6921 *) 6922 case `$CC -V 2>&1 | sed 5q` in 6923 *Sun\ C*) 6924 # Sun C 5.9 6925 lt_prog_compiler_pic='-KPIC' 6926 lt_prog_compiler_static='-Bstatic' 6927 lt_prog_compiler_wl='-Wl,' 6928 ;; 6929 *Sun\ F*) 6930 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6931 lt_prog_compiler_pic='-KPIC' 6932 lt_prog_compiler_static='-Bstatic' 6933 lt_prog_compiler_wl='' 6934 ;; 6935 esac 6936 ;; 6937 esac 6938 ;; 6939 6940 osf3* | osf4* | osf5*) 6941 lt_prog_compiler_wl='-Wl,' 6942 # All OSF/1 code is PIC. 6943 lt_prog_compiler_static='-non_shared' 6944 ;; 6945 6946 rdos*) 6947 lt_prog_compiler_static='-non_shared' 6948 ;; 6949 6950 solaris*) 6951 lt_prog_compiler_pic='-KPIC' 6952 lt_prog_compiler_static='-Bstatic' 6953 case $cc_basename in 6954 f77* | f90* | f95*) 6955 lt_prog_compiler_wl='-Qoption ld ';; 6956 *) 6957 lt_prog_compiler_wl='-Wl,';; 6958 esac 6959 ;; 6960 6961 sunos4*) 6962 lt_prog_compiler_wl='-Qoption ld ' 6963 lt_prog_compiler_pic='-PIC' 6964 lt_prog_compiler_static='-Bstatic' 6965 ;; 6966 6967 sysv4 | sysv4.2uw2* | sysv4.3*) 6968 lt_prog_compiler_wl='-Wl,' 6969 lt_prog_compiler_pic='-KPIC' 6970 lt_prog_compiler_static='-Bstatic' 6971 ;; 6972 6973 sysv4*MP*) 6974 if test -d /usr/nec ;then 6975 lt_prog_compiler_pic='-Kconform_pic' 6976 lt_prog_compiler_static='-Bstatic' 6977 fi 6978 ;; 6979 6980 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6981 lt_prog_compiler_wl='-Wl,' 6982 lt_prog_compiler_pic='-KPIC' 6983 lt_prog_compiler_static='-Bstatic' 6984 ;; 6985 6986 unicos*) 6987 lt_prog_compiler_wl='-Wl,' 6988 lt_prog_compiler_can_build_shared=no 6989 ;; 6990 6991 uts4*) 6992 lt_prog_compiler_pic='-pic' 6993 lt_prog_compiler_static='-Bstatic' 6994 ;; 6995 6996 *) 6997 lt_prog_compiler_can_build_shared=no 6998 ;; 6999 esac 7000 fi 7001 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7003$as_echo "$lt_prog_compiler_pic" >&6; } 7004 7005# 7006# Check to make sure the PIC flag actually works. 7007# 7008if test -n "$lt_prog_compiler_pic"; then 7009 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7011$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7012if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 lt_cv_prog_compiler_pic_works=no 7016 ac_outfile=conftest.$ac_objext 7017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7018 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7019 # Insert the option either (1) after the last *FLAGS variable, or 7020 # (2) before a word containing "conftest.", or (3) at the end. 7021 # Note that $ac_compile itself does not contain backslashes and begins 7022 # with a dollar sign (not a hyphen), so the echo should work correctly. 7023 # The option is referenced via a variable to avoid confusing sed. 7024 lt_compile=`echo "$ac_compile" | $SED \ 7025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7027 -e 's:$: $lt_compiler_flag:'` 7028 (eval echo "\"\$as_me:7028: $lt_compile\"" >&5) 7029 (eval "$lt_compile" 2>conftest.err) 7030 ac_status=$? 7031 cat conftest.err >&5 7032 echo "$as_me:7032: \$? = $ac_status" >&5 7033 if (exit $ac_status) && test -s "$ac_outfile"; then 7034 # The compiler can only warn and ignore the option if not recognized 7035 # So say no if there are warnings other than the usual output. 7036 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7039 lt_cv_prog_compiler_pic_works=yes 7040 fi 7041 fi 7042 $rm conftest* 7043 7044fi 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7046$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7047 7048if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7049 case $lt_prog_compiler_pic in 7050 "" | " "*) ;; 7051 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7052 esac 7053else 7054 lt_prog_compiler_pic= 7055 lt_prog_compiler_can_build_shared=no 7056fi 7057 7058fi 7059case $host_os in 7060 # For platforms which do not support PIC, -DPIC is meaningless: 7061 *djgpp*) 7062 lt_prog_compiler_pic= 7063 ;; 7064 *) 7065 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7066 ;; 7067esac 7068 7069# 7070# Check to make sure the static flag actually works. 7071# 7072wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7074$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7075if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 lt_cv_prog_compiler_static_works=no 7079 save_LDFLAGS="$LDFLAGS" 7080 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7081 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7082 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7083 # The linker can only warn and ignore the option if not recognized 7084 # So say no if there are warnings 7085 if test -s conftest.err; then 7086 # Append any errors to the config.log. 7087 cat conftest.err 1>&5 7088 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7090 if diff conftest.exp conftest.er2 >/dev/null; then 7091 lt_cv_prog_compiler_static_works=yes 7092 fi 7093 else 7094 lt_cv_prog_compiler_static_works=yes 7095 fi 7096 fi 7097 $rm -r conftest* 7098 LDFLAGS="$save_LDFLAGS" 7099 7100fi 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7102$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7103 7104if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7105 : 7106else 7107 lt_prog_compiler_static= 7108fi 7109 7110 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7112$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7113if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 lt_cv_prog_compiler_c_o=no 7117 $rm -r conftest 2>/dev/null 7118 mkdir conftest 7119 cd conftest 7120 mkdir out 7121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7122 7123 lt_compiler_flag="-o out/conftest2.$ac_objext" 7124 # Insert the option either (1) after the last *FLAGS variable, or 7125 # (2) before a word containing "conftest.", or (3) at the end. 7126 # Note that $ac_compile itself does not contain backslashes and begins 7127 # with a dollar sign (not a hyphen), so the echo should work correctly. 7128 lt_compile=`echo "$ac_compile" | $SED \ 7129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7131 -e 's:$: $lt_compiler_flag:'` 7132 (eval echo "\"\$as_me:7132: $lt_compile\"" >&5) 7133 (eval "$lt_compile" 2>out/conftest.err) 7134 ac_status=$? 7135 cat out/conftest.err >&5 7136 echo "$as_me:7136: \$? = $ac_status" >&5 7137 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7138 then 7139 # The compiler can only warn and ignore the option if not recognized 7140 # So say no if there are warnings 7141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7142 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7143 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7144 lt_cv_prog_compiler_c_o=yes 7145 fi 7146 fi 7147 chmod u+w . 2>&5 7148 $rm conftest* 7149 # SGI C++ compiler will create directory out/ii_files/ for 7150 # template instantiation 7151 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7152 $rm out/* && rmdir out 7153 cd .. 7154 rmdir conftest 7155 $rm conftest* 7156 7157fi 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7159$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7160 7161 7162hard_links="nottested" 7163if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7164 # do not overwrite the value of need_locks provided by the user 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7166$as_echo_n "checking if we can lock with hard links... " >&6; } 7167 hard_links=yes 7168 $rm conftest* 7169 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7170 touch conftest.a 7171 ln conftest.a conftest.b 2>&5 || hard_links=no 7172 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7174$as_echo "$hard_links" >&6; } 7175 if test "$hard_links" = no; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7177$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7178 need_locks=warn 7179 fi 7180else 7181 need_locks=no 7182fi 7183 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7185$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7186 7187 runpath_var= 7188 allow_undefined_flag= 7189 enable_shared_with_static_runtimes=no 7190 archive_cmds= 7191 archive_expsym_cmds= 7192 old_archive_From_new_cmds= 7193 old_archive_from_expsyms_cmds= 7194 export_dynamic_flag_spec= 7195 whole_archive_flag_spec= 7196 thread_safe_flag_spec= 7197 hardcode_libdir_flag_spec= 7198 hardcode_libdir_flag_spec_ld= 7199 hardcode_libdir_separator= 7200 hardcode_direct=no 7201 hardcode_minus_L=no 7202 hardcode_shlibpath_var=unsupported 7203 link_all_deplibs=unknown 7204 hardcode_automatic=no 7205 module_cmds= 7206 module_expsym_cmds= 7207 always_export_symbols=no 7208 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7209 # include_expsyms should be a list of space-separated symbols to be *always* 7210 # included in the symbol list 7211 include_expsyms= 7212 # exclude_expsyms can be an extended regexp of symbols to exclude 7213 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7214 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7215 # as well as any symbol that contains `d'. 7216 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7217 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7218 # platforms (ab)use it in PIC code, but their linkers get confused if 7219 # the symbol is explicitly referenced. Since portable code cannot 7220 # rely on this symbol name, it's probably fine to never include it in 7221 # preloaded symbol tables. 7222 # Exclude shared library initialization/finalization symbols. 7223 extract_expsyms_cmds= 7224 # Just being paranoid about ensuring that cc_basename is set. 7225 for cc_temp in $compiler""; do 7226 case $cc_temp in 7227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7229 \-*) ;; 7230 *) break;; 7231 esac 7232done 7233cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7234 7235 case $host_os in 7236 cygwin* | mingw* | pw32*) 7237 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7238 # When not using gcc, we currently assume that we are using 7239 # Microsoft Visual C++. 7240 if test "$GCC" != yes; then 7241 with_gnu_ld=no 7242 fi 7243 ;; 7244 interix*) 7245 # we just hope/assume this is gcc and not c89 (= MSVC++) 7246 with_gnu_ld=yes 7247 ;; 7248 openbsd*) 7249 with_gnu_ld=no 7250 ;; 7251 esac 7252 7253 ld_shlibs=yes 7254 if test "$with_gnu_ld" = yes; then 7255 # If archive_cmds runs LD, not CC, wlarc should be empty 7256 wlarc='${wl}' 7257 7258 # Set some defaults for GNU ld with shared library support. These 7259 # are reset later if shared libraries are not supported. Putting them 7260 # here allows them to be overridden if necessary. 7261 runpath_var=LD_RUN_PATH 7262 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7263 export_dynamic_flag_spec='${wl}--export-dynamic' 7264 # ancient GNU ld didn't support --whole-archive et. al. 7265 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7266 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7267 else 7268 whole_archive_flag_spec= 7269 fi 7270 supports_anon_versioning=no 7271 case `$LD -v 2>/dev/null` in 7272 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7273 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7274 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7275 *\ 2.11.*) ;; # other 2.11 versions 7276 *) supports_anon_versioning=yes ;; 7277 esac 7278 7279 # See if GNU ld supports shared libraries. 7280 case $host_os in 7281 aix[3-9]*) 7282 # On AIX/PPC, the GNU linker is very broken 7283 if test "$host_cpu" != ia64; then 7284 ld_shlibs=no 7285 cat <<EOF 1>&2 7286 7287*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7288*** to be unable to reliably create shared libraries on AIX. 7289*** Therefore, libtool is disabling shared libraries support. If you 7290*** really care for shared libraries, you may want to modify your PATH 7291*** so that a non-GNU linker is found, and then restart. 7292 7293EOF 7294 fi 7295 ;; 7296 7297 amigaos*) 7298 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)' 7299 hardcode_libdir_flag_spec='-L$libdir' 7300 hardcode_minus_L=yes 7301 7302 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7303 # that the semantics of dynamic libraries on AmigaOS, at least up 7304 # to version 4, is to share data among multiple programs linked 7305 # with the same dynamic library. Since this doesn't match the 7306 # behavior of shared libraries on other platforms, we can't use 7307 # them. 7308 ld_shlibs=no 7309 ;; 7310 7311 beos*) 7312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7313 allow_undefined_flag=unsupported 7314 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7315 # support --undefined. This deserves some investigation. FIXME 7316 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7317 else 7318 ld_shlibs=no 7319 fi 7320 ;; 7321 7322 cygwin* | mingw* | pw32*) 7323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7324 # as there is no search path for DLLs. 7325 hardcode_libdir_flag_spec='-L$libdir' 7326 allow_undefined_flag=unsupported 7327 always_export_symbols=no 7328 enable_shared_with_static_runtimes=yes 7329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7330 7331 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7333 # If the export-symbols file already is a .def file (1st line 7334 # is EXPORTS), use it as is; otherwise, prepend... 7335 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7336 cp $export_symbols $output_objdir/$soname.def; 7337 else 7338 echo EXPORTS > $output_objdir/$soname.def; 7339 cat $export_symbols >> $output_objdir/$soname.def; 7340 fi~ 7341 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7342 else 7343 ld_shlibs=no 7344 fi 7345 ;; 7346 7347 interix[3-9]*) 7348 hardcode_direct=no 7349 hardcode_shlibpath_var=no 7350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7351 export_dynamic_flag_spec='${wl}-E' 7352 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7353 # Instead, shared libraries are loaded at an image base (0x10000000 by 7354 # default) and relocated if they conflict, which is a slow very memory 7355 # consuming and fragmenting process. To avoid this, we pick a random, 7356 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7357 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7359 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7360 ;; 7361 7362 gnu* | linux* | k*bsd*-gnu) 7363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7364 tmp_addflag= 7365 case $cc_basename,$host_cpu in 7366 pgcc*) # Portland Group C compiler 7367 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' 7368 tmp_addflag=' $pic_flag' 7369 ;; 7370 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7371 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' 7372 tmp_addflag=' $pic_flag -Mnomain' ;; 7373 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7374 tmp_addflag=' -i_dynamic' ;; 7375 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7376 tmp_addflag=' -i_dynamic -nofor_main' ;; 7377 ifc* | ifort*) # Intel Fortran compiler 7378 tmp_addflag=' -nofor_main' ;; 7379 esac 7380 case `$CC -V 2>&1 | sed 5q` in 7381 *Sun\ C*) # Sun C 5.9 7382 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7383 tmp_sharedflag='-G' ;; 7384 *Sun\ F*) # Sun Fortran 8.3 7385 tmp_sharedflag='-G' ;; 7386 *) 7387 tmp_sharedflag='-shared' ;; 7388 esac 7389 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7390 7391 if test $supports_anon_versioning = yes; then 7392 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7394 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7395 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7396 fi 7397 else 7398 ld_shlibs=no 7399 fi 7400 ;; 7401 7402 netbsd*) 7403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7404 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7405 wlarc= 7406 else 7407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7409 fi 7410 ;; 7411 7412 solaris*) 7413 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7414 ld_shlibs=no 7415 cat <<EOF 1>&2 7416 7417*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7418*** create shared libraries on Solaris systems. Therefore, libtool 7419*** is disabling shared libraries support. We urge you to upgrade GNU 7420*** binutils to release 2.9.1 or newer. Another option is to modify 7421*** your PATH or compiler configuration so that the native linker is 7422*** used, and then restart. 7423 7424EOF 7425 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7428 else 7429 ld_shlibs=no 7430 fi 7431 ;; 7432 7433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7434 case `$LD -v 2>&1` in 7435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7436 ld_shlibs=no 7437 cat <<_LT_EOF 1>&2 7438 7439*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7440*** reliably create shared libraries on SCO systems. Therefore, libtool 7441*** is disabling shared libraries support. We urge you to upgrade GNU 7442*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7443*** your PATH or compiler configuration so that the native linker is 7444*** used, and then restart. 7445 7446_LT_EOF 7447 ;; 7448 *) 7449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7450 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7453 else 7454 ld_shlibs=no 7455 fi 7456 ;; 7457 esac 7458 ;; 7459 7460 sunos4*) 7461 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7462 wlarc= 7463 hardcode_direct=yes 7464 hardcode_shlibpath_var=no 7465 ;; 7466 7467 *) 7468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7471 else 7472 ld_shlibs=no 7473 fi 7474 ;; 7475 esac 7476 7477 if test "$ld_shlibs" = no; then 7478 runpath_var= 7479 hardcode_libdir_flag_spec= 7480 export_dynamic_flag_spec= 7481 whole_archive_flag_spec= 7482 fi 7483 else 7484 # PORTME fill in a description of your system's linker (not GNU ld) 7485 case $host_os in 7486 aix3*) 7487 allow_undefined_flag=unsupported 7488 always_export_symbols=yes 7489 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' 7490 # Note: this linker hardcodes the directories in LIBPATH if there 7491 # are no directories specified by -L. 7492 hardcode_minus_L=yes 7493 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7494 # Neither direct hardcoding nor static linking is supported with a 7495 # broken collect2. 7496 hardcode_direct=unsupported 7497 fi 7498 ;; 7499 7500 aix[4-9]*) 7501 if test "$host_cpu" = ia64; then 7502 # On IA64, the linker does run time linking by default, so we don't 7503 # have to do anything special. 7504 aix_use_runtimelinking=no 7505 exp_sym_flag='-Bexport' 7506 no_entry_flag="" 7507 else 7508 # If we're using GNU nm, then we don't want the "-C" option. 7509 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7510 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7511 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' 7512 else 7513 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' 7514 fi 7515 aix_use_runtimelinking=no 7516 7517 # Test if we are trying to use run time linking or normal 7518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7519 # need to do runtime linking. 7520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7521 for ld_flag in $LDFLAGS; do 7522 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7523 aix_use_runtimelinking=yes 7524 break 7525 fi 7526 done 7527 ;; 7528 esac 7529 7530 exp_sym_flag='-bexport' 7531 no_entry_flag='-bnoentry' 7532 fi 7533 7534 # When large executables or shared objects are built, AIX ld can 7535 # have problems creating the table of contents. If linking a library 7536 # or program results in "error TOC overflow" add -mminimal-toc to 7537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7539 7540 archive_cmds='' 7541 hardcode_direct=yes 7542 hardcode_libdir_separator=':' 7543 link_all_deplibs=yes 7544 7545 if test "$GCC" = yes; then 7546 case $host_os in aix4.[012]|aix4.[012].*) 7547 # We only want to do this on AIX 4.2 and lower, the check 7548 # below for broken collect2 doesn't work under 4.3+ 7549 collect2name=`${CC} -print-prog-name=collect2` 7550 if test -f "$collect2name" && \ 7551 strings "$collect2name" | grep resolve_lib_name >/dev/null 7552 then 7553 # We have reworked collect2 7554 : 7555 else 7556 # We have old collect2 7557 hardcode_direct=unsupported 7558 # It fails to find uninstalled libraries when the uninstalled 7559 # path is not listed in the libpath. Setting hardcode_minus_L 7560 # to unsupported forces relinking 7561 hardcode_minus_L=yes 7562 hardcode_libdir_flag_spec='-L$libdir' 7563 hardcode_libdir_separator= 7564 fi 7565 ;; 7566 esac 7567 shared_flag='-shared' 7568 if test "$aix_use_runtimelinking" = yes; then 7569 shared_flag="$shared_flag "'${wl}-G' 7570 fi 7571 else 7572 # not using gcc 7573 if test "$host_cpu" = ia64; then 7574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7575 # chokes on -Wl,-G. The following line is correct: 7576 shared_flag='-G' 7577 else 7578 if test "$aix_use_runtimelinking" = yes; then 7579 shared_flag='${wl}-G' 7580 else 7581 shared_flag='${wl}-bM:SRE' 7582 fi 7583 fi 7584 fi 7585 7586 # It seems that -bexpall does not export symbols beginning with 7587 # underscore (_), so it is better to generate a list of symbols to export. 7588 always_export_symbols=yes 7589 if test "$aix_use_runtimelinking" = yes; then 7590 # Warning - without using the other runtime loading flags (-brtl), 7591 # -berok will link without error, but may produce a broken library. 7592 allow_undefined_flag='-berok' 7593 # Determine the default libpath from the value encoded in an empty executable. 7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595/* end confdefs.h. */ 7596 7597int 7598main () 7599{ 7600 7601 ; 7602 return 0; 7603} 7604_ACEOF 7605if ac_fn_c_try_link "$LINENO"; then : 7606 7607lt_aix_libpath_sed=' 7608 /Import File Strings/,/^$/ { 7609 /^0/ { 7610 s/^0 *\(.*\)$/\1/ 7611 p 7612 } 7613 }' 7614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7615# Check for a 64-bit object if we didn't find anything. 7616if test -z "$aix_libpath"; then 7617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7618fi 7619fi 7620rm -f core conftest.err conftest.$ac_objext \ 7621 conftest$ac_exeext conftest.$ac_ext 7622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7623 7624 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7625 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7626 else 7627 if test "$host_cpu" = ia64; then 7628 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7629 allow_undefined_flag="-z nodefs" 7630 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7631 else 7632 # Determine the default libpath from the value encoded in an empty executable. 7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634/* end confdefs.h. */ 7635 7636int 7637main () 7638{ 7639 7640 ; 7641 return 0; 7642} 7643_ACEOF 7644if ac_fn_c_try_link "$LINENO"; then : 7645 7646lt_aix_libpath_sed=' 7647 /Import File Strings/,/^$/ { 7648 /^0/ { 7649 s/^0 *\(.*\)$/\1/ 7650 p 7651 } 7652 }' 7653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7654# Check for a 64-bit object if we didn't find anything. 7655if test -z "$aix_libpath"; then 7656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7657fi 7658fi 7659rm -f core conftest.err conftest.$ac_objext \ 7660 conftest$ac_exeext conftest.$ac_ext 7661if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7662 7663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7664 # Warning - without using the other run time loading flags, 7665 # -berok will link without error, but may produce a broken library. 7666 no_undefined_flag=' ${wl}-bernotok' 7667 allow_undefined_flag=' ${wl}-berok' 7668 # Exported symbols can be pulled into shared objects from archives 7669 whole_archive_flag_spec='$convenience' 7670 archive_cmds_need_lc=yes 7671 # This is similar to how AIX traditionally builds its shared libraries. 7672 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7673 fi 7674 fi 7675 ;; 7676 7677 amigaos*) 7678 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)' 7679 hardcode_libdir_flag_spec='-L$libdir' 7680 hardcode_minus_L=yes 7681 # see comment about different semantics on the GNU ld section 7682 ld_shlibs=no 7683 ;; 7684 7685 bsdi[45]*) 7686 export_dynamic_flag_spec=-rdynamic 7687 ;; 7688 7689 cygwin* | mingw* | pw32*) 7690 # When not using gcc, we currently assume that we are using 7691 # Microsoft Visual C++. 7692 # hardcode_libdir_flag_spec is actually meaningless, as there is 7693 # no search path for DLLs. 7694 hardcode_libdir_flag_spec=' ' 7695 allow_undefined_flag=unsupported 7696 # Tell ltmain to make .lib files, not .a files. 7697 libext=lib 7698 # Tell ltmain to make .dll files, not .so files. 7699 shrext_cmds=".dll" 7700 # FIXME: Setting linknames here is a bad hack. 7701 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7702 # The linker will automatically build a .lib file if we build a DLL. 7703 old_archive_From_new_cmds='true' 7704 # FIXME: Should let the user specify the lib program. 7705 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 7706 fix_srcfile_path='`cygpath -w "$srcfile"`' 7707 enable_shared_with_static_runtimes=yes 7708 ;; 7709 7710 darwin* | rhapsody*) 7711 case $host_os in 7712 rhapsody* | darwin1.[012]) 7713 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7714 ;; 7715 *) # Darwin 1.3 on 7716 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7717 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7718 else 7719 case ${MACOSX_DEPLOYMENT_TARGET} in 7720 10.[012]) 7721 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7722 ;; 7723 10.*) 7724 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7725 ;; 7726 esac 7727 fi 7728 ;; 7729 esac 7730 archive_cmds_need_lc=no 7731 hardcode_direct=no 7732 hardcode_automatic=yes 7733 hardcode_shlibpath_var=unsupported 7734 whole_archive_flag_spec='' 7735 link_all_deplibs=yes 7736 if test "$GCC" = yes ; then 7737 output_verbose_link_cmd='echo' 7738 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 7739 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 7740 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 7741 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 7742 else 7743 case $cc_basename in 7744 xlc*) 7745 output_verbose_link_cmd='echo' 7746 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 7747 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7749 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7750 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}' 7751 ;; 7752 *) 7753 ld_shlibs=no 7754 ;; 7755 esac 7756 fi 7757 ;; 7758 7759 dgux*) 7760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7761 hardcode_libdir_flag_spec='-L$libdir' 7762 hardcode_shlibpath_var=no 7763 ;; 7764 7765 freebsd1*) 7766 ld_shlibs=no 7767 ;; 7768 7769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7770 # support. Future versions do this automatically, but an explicit c++rt0.o 7771 # does not break anything, and helps significantly (at the cost of a little 7772 # extra space). 7773 freebsd2.2*) 7774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7775 hardcode_libdir_flag_spec='-R$libdir' 7776 hardcode_direct=yes 7777 hardcode_shlibpath_var=no 7778 ;; 7779 7780 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7781 freebsd2*) 7782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7783 hardcode_direct=yes 7784 hardcode_minus_L=yes 7785 hardcode_shlibpath_var=no 7786 ;; 7787 7788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7789 freebsd* | dragonfly*) 7790 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7791 hardcode_libdir_flag_spec='-R$libdir' 7792 hardcode_direct=yes 7793 hardcode_shlibpath_var=no 7794 ;; 7795 7796 hpux9*) 7797 if test "$GCC" = yes; then 7798 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' 7799 else 7800 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' 7801 fi 7802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7803 hardcode_libdir_separator=: 7804 hardcode_direct=yes 7805 7806 # hardcode_minus_L: Not really in the search PATH, 7807 # but as the default location of the library. 7808 hardcode_minus_L=yes 7809 export_dynamic_flag_spec='${wl}-E' 7810 ;; 7811 7812 hpux10*) 7813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7815 else 7816 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7817 fi 7818 if test "$with_gnu_ld" = no; then 7819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7820 hardcode_libdir_separator=: 7821 7822 hardcode_direct=yes 7823 export_dynamic_flag_spec='${wl}-E' 7824 7825 # hardcode_minus_L: Not really in the search PATH, 7826 # but as the default location of the library. 7827 hardcode_minus_L=yes 7828 fi 7829 ;; 7830 7831 hpux11*) 7832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7833 case $host_cpu in 7834 hppa*64*) 7835 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7836 ;; 7837 ia64*) 7838 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7839 ;; 7840 *) 7841 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7842 ;; 7843 esac 7844 else 7845 case $host_cpu in 7846 hppa*64*) 7847 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7848 ;; 7849 ia64*) 7850 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7851 ;; 7852 *) 7853 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7854 ;; 7855 esac 7856 fi 7857 if test "$with_gnu_ld" = no; then 7858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7859 hardcode_libdir_separator=: 7860 7861 case $host_cpu in 7862 hppa*64*|ia64*) 7863 hardcode_libdir_flag_spec_ld='+b $libdir' 7864 hardcode_direct=no 7865 hardcode_shlibpath_var=no 7866 ;; 7867 *) 7868 hardcode_direct=yes 7869 export_dynamic_flag_spec='${wl}-E' 7870 7871 # hardcode_minus_L: Not really in the search PATH, 7872 # but as the default location of the library. 7873 hardcode_minus_L=yes 7874 ;; 7875 esac 7876 fi 7877 ;; 7878 7879 irix5* | irix6* | nonstopux*) 7880 if test "$GCC" = yes; then 7881 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' 7882 else 7883 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' 7884 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7885 fi 7886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7887 hardcode_libdir_separator=: 7888 link_all_deplibs=yes 7889 ;; 7890 7891 netbsd*) 7892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7894 else 7895 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7896 fi 7897 hardcode_libdir_flag_spec='-R$libdir' 7898 hardcode_direct=yes 7899 hardcode_shlibpath_var=no 7900 ;; 7901 7902 newsos6) 7903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7904 hardcode_direct=yes 7905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7906 hardcode_libdir_separator=: 7907 hardcode_shlibpath_var=no 7908 ;; 7909 7910 openbsd*) 7911 if test -f /usr/libexec/ld.so; then 7912 hardcode_direct=yes 7913 hardcode_shlibpath_var=no 7914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7916 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7918 export_dynamic_flag_spec='${wl}-E' 7919 else 7920 case $host_os in 7921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7923 hardcode_libdir_flag_spec='-R$libdir' 7924 ;; 7925 *) 7926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7928 ;; 7929 esac 7930 fi 7931 else 7932 ld_shlibs=no 7933 fi 7934 ;; 7935 7936 os2*) 7937 hardcode_libdir_flag_spec='-L$libdir' 7938 hardcode_minus_L=yes 7939 allow_undefined_flag=unsupported 7940 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' 7941 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7942 ;; 7943 7944 osf3*) 7945 if test "$GCC" = yes; then 7946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7947 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' 7948 else 7949 allow_undefined_flag=' -expect_unresolved \*' 7950 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' 7951 fi 7952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7953 hardcode_libdir_separator=: 7954 ;; 7955 7956 osf4* | osf5*) # as osf3* with the addition of -msym flag 7957 if test "$GCC" = yes; then 7958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7959 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' 7960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7961 else 7962 allow_undefined_flag=' -expect_unresolved \*' 7963 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' 7964 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7965 $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' 7966 7967 # Both c and cxx compiler support -rpath directly 7968 hardcode_libdir_flag_spec='-rpath $libdir' 7969 fi 7970 hardcode_libdir_separator=: 7971 ;; 7972 7973 solaris*) 7974 no_undefined_flag=' -z text' 7975 if test "$GCC" = yes; then 7976 wlarc='${wl}' 7977 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7978 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7979 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7980 else 7981 wlarc='' 7982 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7983 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7984 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7985 fi 7986 hardcode_libdir_flag_spec='-R$libdir' 7987 hardcode_shlibpath_var=no 7988 case $host_os in 7989 solaris2.[0-5] | solaris2.[0-5].*) ;; 7990 *) 7991 # The compiler driver will combine and reorder linker options, 7992 # but understands `-z linker_flag'. GCC discards it without `$wl', 7993 # but is careful enough not to reorder. 7994 # Supported since Solaris 2.6 (maybe 2.5.1?) 7995 if test "$GCC" = yes; then 7996 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7997 else 7998 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 7999 fi 8000 ;; 8001 esac 8002 link_all_deplibs=yes 8003 ;; 8004 8005 sunos4*) 8006 if test "x$host_vendor" = xsequent; then 8007 # Use $CC to link under sequent, because it throws in some extra .o 8008 # files that make .init and .fini sections work. 8009 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8010 else 8011 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8012 fi 8013 hardcode_libdir_flag_spec='-L$libdir' 8014 hardcode_direct=yes 8015 hardcode_minus_L=yes 8016 hardcode_shlibpath_var=no 8017 ;; 8018 8019 sysv4) 8020 case $host_vendor in 8021 sni) 8022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8023 hardcode_direct=yes # is this really true??? 8024 ;; 8025 siemens) 8026 ## LD is ld it makes a PLAMLIB 8027 ## CC just makes a GrossModule. 8028 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8029 reload_cmds='$CC -r -o $output$reload_objs' 8030 hardcode_direct=no 8031 ;; 8032 motorola) 8033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8034 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8035 ;; 8036 esac 8037 runpath_var='LD_RUN_PATH' 8038 hardcode_shlibpath_var=no 8039 ;; 8040 8041 sysv4.3*) 8042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8043 hardcode_shlibpath_var=no 8044 export_dynamic_flag_spec='-Bexport' 8045 ;; 8046 8047 sysv4*MP*) 8048 if test -d /usr/nec; then 8049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8050 hardcode_shlibpath_var=no 8051 runpath_var=LD_RUN_PATH 8052 hardcode_runpath_var=yes 8053 ld_shlibs=yes 8054 fi 8055 ;; 8056 8057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8058 no_undefined_flag='${wl}-z,text' 8059 archive_cmds_need_lc=no 8060 hardcode_shlibpath_var=no 8061 runpath_var='LD_RUN_PATH' 8062 8063 if test "$GCC" = yes; then 8064 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8065 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8066 else 8067 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8068 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8069 fi 8070 ;; 8071 8072 sysv5* | sco3.2v5* | sco5v6*) 8073 # Note: We can NOT use -z defs as we might desire, because we do not 8074 # link with -lc, and that would cause any symbols used from libc to 8075 # always be unresolved, which means just about no library would 8076 # ever link correctly. If we're not using GNU ld we use -z text 8077 # though, which does catch some bad symbols but isn't as heavy-handed 8078 # as -z defs. 8079 no_undefined_flag='${wl}-z,text' 8080 allow_undefined_flag='${wl}-z,nodefs' 8081 archive_cmds_need_lc=no 8082 hardcode_shlibpath_var=no 8083 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8084 hardcode_libdir_separator=':' 8085 link_all_deplibs=yes 8086 export_dynamic_flag_spec='${wl}-Bexport' 8087 runpath_var='LD_RUN_PATH' 8088 8089 if test "$GCC" = yes; then 8090 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8091 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8092 else 8093 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8094 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8095 fi 8096 ;; 8097 8098 uts4*) 8099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8100 hardcode_libdir_flag_spec='-L$libdir' 8101 hardcode_shlibpath_var=no 8102 ;; 8103 8104 *) 8105 ld_shlibs=no 8106 ;; 8107 esac 8108 fi 8109 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8111$as_echo "$ld_shlibs" >&6; } 8112test "$ld_shlibs" = no && can_build_shared=no 8113 8114# 8115# Do we need to explicitly link libc? 8116# 8117case "x$archive_cmds_need_lc" in 8118x|xyes) 8119 # Assume -lc should be added 8120 archive_cmds_need_lc=yes 8121 8122 if test "$enable_shared" = yes && test "$GCC" = yes; then 8123 case $archive_cmds in 8124 *'~'*) 8125 # FIXME: we may have to deal with multi-command sequences. 8126 ;; 8127 '$CC '*) 8128 # Test whether the compiler implicitly links with -lc since on some 8129 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8130 # to ld, don't add -lc before -lgcc. 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8132$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8133 $rm conftest* 8134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8135 8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8137 (eval $ac_compile) 2>&5 8138 ac_status=$? 8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8140 test $ac_status = 0; } 2>conftest.err; then 8141 soname=conftest 8142 lib=conftest 8143 libobjs=conftest.$ac_objext 8144 deplibs= 8145 wl=$lt_prog_compiler_wl 8146 pic_flag=$lt_prog_compiler_pic 8147 compiler_flags=-v 8148 linker_flags=-v 8149 verstring= 8150 output_objdir=. 8151 libname=conftest 8152 lt_save_allow_undefined_flag=$allow_undefined_flag 8153 allow_undefined_flag= 8154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8155 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8156 ac_status=$? 8157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8158 test $ac_status = 0; } 8159 then 8160 archive_cmds_need_lc=no 8161 else 8162 archive_cmds_need_lc=yes 8163 fi 8164 allow_undefined_flag=$lt_save_allow_undefined_flag 8165 else 8166 cat conftest.err 1>&5 8167 fi 8168 $rm conftest* 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8170$as_echo "$archive_cmds_need_lc" >&6; } 8171 ;; 8172 esac 8173 fi 8174 ;; 8175esac 8176 8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 8178$as_echo_n "checking dynamic linker characteristics... " >&6; } 8179library_names_spec= 8180libname_spec='lib$name' 8181soname_spec= 8182shrext_cmds=".so" 8183postinstall_cmds= 8184postuninstall_cmds= 8185finish_cmds= 8186finish_eval= 8187shlibpath_var= 8188shlibpath_overrides_runpath=unknown 8189version_type=none 8190dynamic_linker="$host_os ld.so" 8191sys_lib_dlsearch_path_spec="/lib /usr/lib" 8192 8193if test "$GCC" = yes; then 8194 case $host_os in 8195 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8196 *) lt_awk_arg="/^libraries:/" ;; 8197 esac 8198 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8199 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8200 # if the path contains ";" then we assume it to be the separator 8201 # otherwise default to the standard path separator (i.e. ":") - it is 8202 # assumed that no part of a normal pathname contains ";" but that should 8203 # okay in the real world where ";" in dirpaths is itself problematic. 8204 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8205 else 8206 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8207 fi 8208 # Ok, now we have the path, separated by spaces, we can step through it 8209 # and add multilib dir if necessary. 8210 lt_tmp_lt_search_path_spec= 8211 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8212 for lt_sys_path in $lt_search_path_spec; do 8213 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8214 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8215 else 8216 test -d "$lt_sys_path" && \ 8217 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8218 fi 8219 done 8220 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8221BEGIN {RS=" "; FS="/|\n";} { 8222 lt_foo=""; 8223 lt_count=0; 8224 for (lt_i = NF; lt_i > 0; lt_i--) { 8225 if ($lt_i != "" && $lt_i != ".") { 8226 if ($lt_i == "..") { 8227 lt_count++; 8228 } else { 8229 if (lt_count == 0) { 8230 lt_foo="/" $lt_i lt_foo; 8231 } else { 8232 lt_count--; 8233 } 8234 } 8235 } 8236 } 8237 if (lt_foo != "") { lt_freq[lt_foo]++; } 8238 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8239}'` 8240 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8241else 8242 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8243fi 8244need_lib_prefix=unknown 8245hardcode_into_libs=no 8246 8247# when you set need_version to no, make sure it does not cause -set_version 8248# flags to be left without arguments 8249need_version=unknown 8250 8251case $host_os in 8252aix3*) 8253 version_type=linux 8254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8255 shlibpath_var=LIBPATH 8256 8257 # AIX 3 has no versioning support, so we append a major version to the name. 8258 soname_spec='${libname}${release}${shared_ext}$major' 8259 ;; 8260 8261aix[4-9]*) 8262 version_type=linux 8263 need_lib_prefix=no 8264 need_version=no 8265 hardcode_into_libs=yes 8266 if test "$host_cpu" = ia64; then 8267 # AIX 5 supports IA64 8268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8269 shlibpath_var=LD_LIBRARY_PATH 8270 else 8271 # With GCC up to 2.95.x, collect2 would create an import file 8272 # for dependence libraries. The import file would start with 8273 # the line `#! .'. This would cause the generated library to 8274 # depend on `.', always an invalid library. This was fixed in 8275 # development snapshots of GCC prior to 3.0. 8276 case $host_os in 8277 aix4 | aix4.[01] | aix4.[01].*) 8278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8279 echo ' yes ' 8280 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8281 : 8282 else 8283 can_build_shared=no 8284 fi 8285 ;; 8286 esac 8287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8288 # soname into executable. Probably we can add versioning support to 8289 # collect2, so additional links can be useful in future. 8290 if test "$aix_use_runtimelinking" = yes; then 8291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8292 # instead of lib<name>.a to let people know that these are not 8293 # typical AIX shared libraries. 8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8295 else 8296 # We preserve .a as extension for shared libraries through AIX4.2 8297 # and later when we are not doing run time linking. 8298 library_names_spec='${libname}${release}.a $libname.a' 8299 soname_spec='${libname}${release}${shared_ext}$major' 8300 fi 8301 shlibpath_var=LIBPATH 8302 fi 8303 ;; 8304 8305amigaos*) 8306 library_names_spec='$libname.ixlibrary $libname.a' 8307 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8308 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' 8309 ;; 8310 8311beos*) 8312 library_names_spec='${libname}${shared_ext}' 8313 dynamic_linker="$host_os ld.so" 8314 shlibpath_var=LIBRARY_PATH 8315 ;; 8316 8317bsdi[45]*) 8318 version_type=linux 8319 need_version=no 8320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8321 soname_spec='${libname}${release}${shared_ext}$major' 8322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8323 shlibpath_var=LD_LIBRARY_PATH 8324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8326 # the default ld.so.conf also contains /usr/contrib/lib and 8327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8328 # libtool to hard-code these into programs 8329 ;; 8330 8331cygwin* | mingw* | pw32*) 8332 version_type=windows 8333 shrext_cmds=".dll" 8334 need_version=no 8335 need_lib_prefix=no 8336 8337 case $GCC,$host_os in 8338 yes,cygwin* | yes,mingw* | yes,pw32*) 8339 library_names_spec='$libname.dll.a' 8340 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8341 postinstall_cmds='base_file=`basename \${file}`~ 8342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8343 dldir=$destdir/`dirname \$dlpath`~ 8344 test -d \$dldir || mkdir -p \$dldir~ 8345 $install_prog $dir/$dlname \$dldir/$dlname~ 8346 chmod a+x \$dldir/$dlname' 8347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8348 dlpath=$dir/\$dldll~ 8349 $rm \$dlpath' 8350 shlibpath_overrides_runpath=yes 8351 8352 case $host_os in 8353 cygwin*) 8354 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8355 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8356 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8357 ;; 8358 mingw*) 8359 # MinGW DLLs use traditional 'lib' prefix 8360 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8361 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8362 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8363 # It is most probably a Windows format PATH printed by 8364 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8365 # path with ; separators, and with drive letters. We can handle the 8366 # drive letters (cygwin fileutils understands them), so leave them, 8367 # especially as we might pass files found there to a mingw objdump, 8368 # which wouldn't understand a cygwinified path. Ahh. 8369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8370 else 8371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8372 fi 8373 ;; 8374 pw32*) 8375 # pw32 DLLs use 'pw' prefix rather than 'lib' 8376 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8377 ;; 8378 esac 8379 ;; 8380 8381 *) 8382 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8383 ;; 8384 esac 8385 dynamic_linker='Win32 ld.exe' 8386 # FIXME: first we should search . and the directory the executable is in 8387 shlibpath_var=PATH 8388 ;; 8389 8390darwin* | rhapsody*) 8391 dynamic_linker="$host_os dyld" 8392 version_type=darwin 8393 need_lib_prefix=no 8394 need_version=no 8395 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8396 soname_spec='${libname}${release}${major}$shared_ext' 8397 shlibpath_overrides_runpath=yes 8398 shlibpath_var=DYLD_LIBRARY_PATH 8399 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8400 8401 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8402 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8403 ;; 8404 8405dgux*) 8406 version_type=linux 8407 need_lib_prefix=no 8408 need_version=no 8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8410 soname_spec='${libname}${release}${shared_ext}$major' 8411 shlibpath_var=LD_LIBRARY_PATH 8412 ;; 8413 8414freebsd1*) 8415 dynamic_linker=no 8416 ;; 8417 8418freebsd* | dragonfly*) 8419 # DragonFly does not have aout. When/if they implement a new 8420 # versioning mechanism, adjust this. 8421 if test -x /usr/bin/objformat; then 8422 objformat=`/usr/bin/objformat` 8423 else 8424 case $host_os in 8425 freebsd[123]*) objformat=aout ;; 8426 *) objformat=elf ;; 8427 esac 8428 fi 8429 version_type=freebsd-$objformat 8430 case $version_type in 8431 freebsd-elf*) 8432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8433 need_version=no 8434 need_lib_prefix=no 8435 ;; 8436 freebsd-*) 8437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8438 need_version=yes 8439 ;; 8440 esac 8441 shlibpath_var=LD_LIBRARY_PATH 8442 case $host_os in 8443 freebsd2*) 8444 shlibpath_overrides_runpath=yes 8445 ;; 8446 freebsd3.[01]* | freebsdelf3.[01]*) 8447 shlibpath_overrides_runpath=yes 8448 hardcode_into_libs=yes 8449 ;; 8450 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8451 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8452 shlibpath_overrides_runpath=no 8453 hardcode_into_libs=yes 8454 ;; 8455 *) # from 4.6 on, and DragonFly 8456 shlibpath_overrides_runpath=yes 8457 hardcode_into_libs=yes 8458 ;; 8459 esac 8460 ;; 8461 8462gnu*) 8463 version_type=linux 8464 need_lib_prefix=no 8465 need_version=no 8466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8467 soname_spec='${libname}${release}${shared_ext}$major' 8468 shlibpath_var=LD_LIBRARY_PATH 8469 hardcode_into_libs=yes 8470 ;; 8471 8472hpux9* | hpux10* | hpux11*) 8473 # Give a soname corresponding to the major version so that dld.sl refuses to 8474 # link against other versions. 8475 version_type=sunos 8476 need_lib_prefix=no 8477 need_version=no 8478 case $host_cpu in 8479 ia64*) 8480 shrext_cmds='.so' 8481 hardcode_into_libs=yes 8482 dynamic_linker="$host_os dld.so" 8483 shlibpath_var=LD_LIBRARY_PATH 8484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8486 soname_spec='${libname}${release}${shared_ext}$major' 8487 if test "X$HPUX_IA64_MODE" = X32; then 8488 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8489 else 8490 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8491 fi 8492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8493 ;; 8494 hppa*64*) 8495 shrext_cmds='.sl' 8496 hardcode_into_libs=yes 8497 dynamic_linker="$host_os dld.sl" 8498 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8501 soname_spec='${libname}${release}${shared_ext}$major' 8502 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8504 ;; 8505 *) 8506 shrext_cmds='.sl' 8507 dynamic_linker="$host_os dld.sl" 8508 shlibpath_var=SHLIB_PATH 8509 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8511 soname_spec='${libname}${release}${shared_ext}$major' 8512 ;; 8513 esac 8514 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8515 postinstall_cmds='chmod 555 $lib' 8516 ;; 8517 8518interix[3-9]*) 8519 version_type=linux 8520 need_lib_prefix=no 8521 need_version=no 8522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8523 soname_spec='${libname}${release}${shared_ext}$major' 8524 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8525 shlibpath_var=LD_LIBRARY_PATH 8526 shlibpath_overrides_runpath=no 8527 hardcode_into_libs=yes 8528 ;; 8529 8530irix5* | irix6* | nonstopux*) 8531 case $host_os in 8532 nonstopux*) version_type=nonstopux ;; 8533 *) 8534 if test "$lt_cv_prog_gnu_ld" = yes; then 8535 version_type=linux 8536 else 8537 version_type=irix 8538 fi ;; 8539 esac 8540 need_lib_prefix=no 8541 need_version=no 8542 soname_spec='${libname}${release}${shared_ext}$major' 8543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8544 case $host_os in 8545 irix5* | nonstopux*) 8546 libsuff= shlibsuff= 8547 ;; 8548 *) 8549 case $LD in # libtool.m4 will add one of these switches to LD 8550 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8551 libsuff= shlibsuff= libmagic=32-bit;; 8552 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8553 libsuff=32 shlibsuff=N32 libmagic=N32;; 8554 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8555 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8556 *) libsuff= shlibsuff= libmagic=never-match;; 8557 esac 8558 ;; 8559 esac 8560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8561 shlibpath_overrides_runpath=no 8562 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8563 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8564 hardcode_into_libs=yes 8565 ;; 8566 8567# No shared lib support for Linux oldld, aout, or coff. 8568linux*oldld* | linux*aout* | linux*coff*) 8569 dynamic_linker=no 8570 ;; 8571 8572# This must be Linux ELF. 8573linux* | k*bsd*-gnu) 8574 version_type=linux 8575 need_lib_prefix=no 8576 need_version=no 8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8578 soname_spec='${libname}${release}${shared_ext}$major' 8579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8580 shlibpath_var=LD_LIBRARY_PATH 8581 shlibpath_overrides_runpath=no 8582 # This implies no fast_install, which is unacceptable. 8583 # Some rework will be needed to allow for fast_install 8584 # before this can be enabled. 8585 hardcode_into_libs=yes 8586 8587 # Append ld.so.conf contents to the search path 8588 if test -f /etc/ld.so.conf; then 8589 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8590 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8591 fi 8592 8593 # We used to test for /lib/ld.so.1 and disable shared libraries on 8594 # powerpc, because MkLinux only supported shared libraries with the 8595 # GNU dynamic linker. Since this was broken with cross compilers, 8596 # most powerpc-linux boxes support dynamic linking these days and 8597 # people can always --disable-shared, the test was removed, and we 8598 # assume the GNU/Linux dynamic linker is in use. 8599 dynamic_linker='GNU/Linux ld.so' 8600 ;; 8601 8602netbsd*) 8603 version_type=sunos 8604 need_lib_prefix=no 8605 need_version=no 8606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8609 dynamic_linker='NetBSD (a.out) ld.so' 8610 else 8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8612 soname_spec='${libname}${release}${shared_ext}$major' 8613 dynamic_linker='NetBSD ld.elf_so' 8614 fi 8615 shlibpath_var=LD_LIBRARY_PATH 8616 shlibpath_overrides_runpath=yes 8617 hardcode_into_libs=yes 8618 ;; 8619 8620newsos6) 8621 version_type=linux 8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8623 shlibpath_var=LD_LIBRARY_PATH 8624 shlibpath_overrides_runpath=yes 8625 ;; 8626 8627nto-qnx*) 8628 version_type=linux 8629 need_lib_prefix=no 8630 need_version=no 8631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8632 soname_spec='${libname}${release}${shared_ext}$major' 8633 shlibpath_var=LD_LIBRARY_PATH 8634 shlibpath_overrides_runpath=yes 8635 ;; 8636 8637openbsd*) 8638 version_type=sunos 8639 sys_lib_dlsearch_path_spec="/usr/lib" 8640 need_lib_prefix=no 8641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8642 case $host_os in 8643 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8644 *) need_version=no ;; 8645 esac 8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8648 shlibpath_var=LD_LIBRARY_PATH 8649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8650 case $host_os in 8651 openbsd2.[89] | openbsd2.[89].*) 8652 shlibpath_overrides_runpath=no 8653 ;; 8654 *) 8655 shlibpath_overrides_runpath=yes 8656 ;; 8657 esac 8658 else 8659 shlibpath_overrides_runpath=yes 8660 fi 8661 ;; 8662 8663os2*) 8664 libname_spec='$name' 8665 shrext_cmds=".dll" 8666 need_lib_prefix=no 8667 library_names_spec='$libname${shared_ext} $libname.a' 8668 dynamic_linker='OS/2 ld.exe' 8669 shlibpath_var=LIBPATH 8670 ;; 8671 8672osf3* | osf4* | osf5*) 8673 version_type=osf 8674 need_lib_prefix=no 8675 need_version=no 8676 soname_spec='${libname}${release}${shared_ext}$major' 8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8678 shlibpath_var=LD_LIBRARY_PATH 8679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8681 ;; 8682 8683rdos*) 8684 dynamic_linker=no 8685 ;; 8686 8687solaris*) 8688 version_type=linux 8689 need_lib_prefix=no 8690 need_version=no 8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8692 soname_spec='${libname}${release}${shared_ext}$major' 8693 shlibpath_var=LD_LIBRARY_PATH 8694 shlibpath_overrides_runpath=yes 8695 hardcode_into_libs=yes 8696 # ldd complains unless libraries are executable 8697 postinstall_cmds='chmod +x $lib' 8698 ;; 8699 8700sunos4*) 8701 version_type=sunos 8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8704 shlibpath_var=LD_LIBRARY_PATH 8705 shlibpath_overrides_runpath=yes 8706 if test "$with_gnu_ld" = yes; then 8707 need_lib_prefix=no 8708 fi 8709 need_version=yes 8710 ;; 8711 8712sysv4 | sysv4.3*) 8713 version_type=linux 8714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8715 soname_spec='${libname}${release}${shared_ext}$major' 8716 shlibpath_var=LD_LIBRARY_PATH 8717 case $host_vendor in 8718 sni) 8719 shlibpath_overrides_runpath=no 8720 need_lib_prefix=no 8721 export_dynamic_flag_spec='${wl}-Blargedynsym' 8722 runpath_var=LD_RUN_PATH 8723 ;; 8724 siemens) 8725 need_lib_prefix=no 8726 ;; 8727 motorola) 8728 need_lib_prefix=no 8729 need_version=no 8730 shlibpath_overrides_runpath=no 8731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8732 ;; 8733 esac 8734 ;; 8735 8736sysv4*MP*) 8737 if test -d /usr/nec ;then 8738 version_type=linux 8739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8740 soname_spec='$libname${shared_ext}.$major' 8741 shlibpath_var=LD_LIBRARY_PATH 8742 fi 8743 ;; 8744 8745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8746 version_type=freebsd-elf 8747 need_lib_prefix=no 8748 need_version=no 8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8750 soname_spec='${libname}${release}${shared_ext}$major' 8751 shlibpath_var=LD_LIBRARY_PATH 8752 hardcode_into_libs=yes 8753 if test "$with_gnu_ld" = yes; then 8754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8755 shlibpath_overrides_runpath=no 8756 else 8757 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8758 shlibpath_overrides_runpath=yes 8759 case $host_os in 8760 sco3.2v5*) 8761 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8762 ;; 8763 esac 8764 fi 8765 sys_lib_dlsearch_path_spec='/usr/lib' 8766 ;; 8767 8768uts4*) 8769 version_type=linux 8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8771 soname_spec='${libname}${release}${shared_ext}$major' 8772 shlibpath_var=LD_LIBRARY_PATH 8773 ;; 8774 8775*) 8776 dynamic_linker=no 8777 ;; 8778esac 8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 8780$as_echo "$dynamic_linker" >&6; } 8781test "$dynamic_linker" = no && can_build_shared=no 8782 8783if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 8784 $as_echo_n "(cached) " >&6 8785else 8786 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 8787fi 8788 8789sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 8790if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 8791 $as_echo_n "(cached) " >&6 8792else 8793 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 8794fi 8795 8796sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 8797 8798variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8799if test "$GCC" = yes; then 8800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8801fi 8802 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 8804$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 8805hardcode_action= 8806if test -n "$hardcode_libdir_flag_spec" || \ 8807 test -n "$runpath_var" || \ 8808 test "X$hardcode_automatic" = "Xyes" ; then 8809 8810 # We can hardcode non-existant directories. 8811 if test "$hardcode_direct" != no && 8812 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8813 # have to relink, otherwise we might link with an installed library 8814 # when we should be linking with a yet-to-be-installed one 8815 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8816 test "$hardcode_minus_L" != no; then 8817 # Linking always hardcodes the temporary library directory. 8818 hardcode_action=relink 8819 else 8820 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8821 hardcode_action=immediate 8822 fi 8823else 8824 # We cannot hardcode anything, or else we can only hardcode existing 8825 # directories. 8826 hardcode_action=unsupported 8827fi 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 8829$as_echo "$hardcode_action" >&6; } 8830 8831if test "$hardcode_action" = relink; then 8832 # Fast installation is not supported 8833 enable_fast_install=no 8834elif test "$shlibpath_overrides_runpath" = yes || 8835 test "$enable_shared" = no; then 8836 # Fast installation is not necessary 8837 enable_fast_install=needless 8838fi 8839 8840striplib= 8841old_striplib= 8842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 8843$as_echo_n "checking whether stripping libraries is possible... " >&6; } 8844if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8845 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8846 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8848$as_echo "yes" >&6; } 8849else 8850# FIXME - insert some real tests, host_os isn't really good enough 8851 case $host_os in 8852 darwin*) 8853 if test -n "$STRIP" ; then 8854 striplib="$STRIP -x" 8855 old_striplib="$STRIP -S" 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8857$as_echo "yes" >&6; } 8858 else 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8860$as_echo "no" >&6; } 8861fi 8862 ;; 8863 *) 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8865$as_echo "no" >&6; } 8866 ;; 8867 esac 8868fi 8869 8870if test "x$enable_dlopen" != xyes; then 8871 enable_dlopen=unknown 8872 enable_dlopen_self=unknown 8873 enable_dlopen_self_static=unknown 8874else 8875 lt_cv_dlopen=no 8876 lt_cv_dlopen_libs= 8877 8878 case $host_os in 8879 beos*) 8880 lt_cv_dlopen="load_add_on" 8881 lt_cv_dlopen_libs= 8882 lt_cv_dlopen_self=yes 8883 ;; 8884 8885 mingw* | pw32*) 8886 lt_cv_dlopen="LoadLibrary" 8887 lt_cv_dlopen_libs= 8888 ;; 8889 8890 cygwin*) 8891 lt_cv_dlopen="dlopen" 8892 lt_cv_dlopen_libs= 8893 ;; 8894 8895 darwin*) 8896 # if libdl is installed we need to link against it 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 8898$as_echo_n "checking for dlopen in -ldl... " >&6; } 8899if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 ac_check_lib_save_LIBS=$LIBS 8903LIBS="-ldl $LIBS" 8904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8905/* end confdefs.h. */ 8906 8907/* Override any GCC internal prototype to avoid an error. 8908 Use char because int might match the return type of a GCC 8909 builtin and then its argument prototype would still apply. */ 8910#ifdef __cplusplus 8911extern "C" 8912#endif 8913char dlopen (); 8914int 8915main () 8916{ 8917return dlopen (); 8918 ; 8919 return 0; 8920} 8921_ACEOF 8922if ac_fn_c_try_link "$LINENO"; then : 8923 ac_cv_lib_dl_dlopen=yes 8924else 8925 ac_cv_lib_dl_dlopen=no 8926fi 8927rm -f core conftest.err conftest.$ac_objext \ 8928 conftest$ac_exeext conftest.$ac_ext 8929LIBS=$ac_check_lib_save_LIBS 8930fi 8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 8932$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 8933if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 8934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8935else 8936 8937 lt_cv_dlopen="dyld" 8938 lt_cv_dlopen_libs= 8939 lt_cv_dlopen_self=yes 8940 8941fi 8942 8943 ;; 8944 8945 *) 8946 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 8947if test "x$ac_cv_func_shl_load" = x""yes; then : 8948 lt_cv_dlopen="shl_load" 8949else 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 8951$as_echo_n "checking for shl_load in -ldld... " >&6; } 8952if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 8953 $as_echo_n "(cached) " >&6 8954else 8955 ac_check_lib_save_LIBS=$LIBS 8956LIBS="-ldld $LIBS" 8957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958/* end confdefs.h. */ 8959 8960/* Override any GCC internal prototype to avoid an error. 8961 Use char because int might match the return type of a GCC 8962 builtin and then its argument prototype would still apply. */ 8963#ifdef __cplusplus 8964extern "C" 8965#endif 8966char shl_load (); 8967int 8968main () 8969{ 8970return shl_load (); 8971 ; 8972 return 0; 8973} 8974_ACEOF 8975if ac_fn_c_try_link "$LINENO"; then : 8976 ac_cv_lib_dld_shl_load=yes 8977else 8978 ac_cv_lib_dld_shl_load=no 8979fi 8980rm -f core conftest.err conftest.$ac_objext \ 8981 conftest$ac_exeext conftest.$ac_ext 8982LIBS=$ac_check_lib_save_LIBS 8983fi 8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 8985$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 8986if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 8987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 8988else 8989 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 8990if test "x$ac_cv_func_dlopen" = x""yes; then : 8991 lt_cv_dlopen="dlopen" 8992else 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 8994$as_echo_n "checking for dlopen in -ldl... " >&6; } 8995if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 8996 $as_echo_n "(cached) " >&6 8997else 8998 ac_check_lib_save_LIBS=$LIBS 8999LIBS="-ldl $LIBS" 9000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002 9003/* Override any GCC internal prototype to avoid an error. 9004 Use char because int might match the return type of a GCC 9005 builtin and then its argument prototype would still apply. */ 9006#ifdef __cplusplus 9007extern "C" 9008#endif 9009char dlopen (); 9010int 9011main () 9012{ 9013return dlopen (); 9014 ; 9015 return 0; 9016} 9017_ACEOF 9018if ac_fn_c_try_link "$LINENO"; then : 9019 ac_cv_lib_dl_dlopen=yes 9020else 9021 ac_cv_lib_dl_dlopen=no 9022fi 9023rm -f core conftest.err conftest.$ac_objext \ 9024 conftest$ac_exeext conftest.$ac_ext 9025LIBS=$ac_check_lib_save_LIBS 9026fi 9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9028$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9029if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9031else 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9033$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9034if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 9035 $as_echo_n "(cached) " >&6 9036else 9037 ac_check_lib_save_LIBS=$LIBS 9038LIBS="-lsvld $LIBS" 9039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041 9042/* Override any GCC internal prototype to avoid an error. 9043 Use char because int might match the return type of a GCC 9044 builtin and then its argument prototype would still apply. */ 9045#ifdef __cplusplus 9046extern "C" 9047#endif 9048char dlopen (); 9049int 9050main () 9051{ 9052return dlopen (); 9053 ; 9054 return 0; 9055} 9056_ACEOF 9057if ac_fn_c_try_link "$LINENO"; then : 9058 ac_cv_lib_svld_dlopen=yes 9059else 9060 ac_cv_lib_svld_dlopen=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext \ 9063 conftest$ac_exeext conftest.$ac_ext 9064LIBS=$ac_check_lib_save_LIBS 9065fi 9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9067$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9068if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 9069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9070else 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9072$as_echo_n "checking for dld_link in -ldld... " >&6; } 9073if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 ac_check_lib_save_LIBS=$LIBS 9077LIBS="-ldld $LIBS" 9078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079/* end confdefs.h. */ 9080 9081/* Override any GCC internal prototype to avoid an error. 9082 Use char because int might match the return type of a GCC 9083 builtin and then its argument prototype would still apply. */ 9084#ifdef __cplusplus 9085extern "C" 9086#endif 9087char dld_link (); 9088int 9089main () 9090{ 9091return dld_link (); 9092 ; 9093 return 0; 9094} 9095_ACEOF 9096if ac_fn_c_try_link "$LINENO"; then : 9097 ac_cv_lib_dld_dld_link=yes 9098else 9099 ac_cv_lib_dld_dld_link=no 9100fi 9101rm -f core conftest.err conftest.$ac_objext \ 9102 conftest$ac_exeext conftest.$ac_ext 9103LIBS=$ac_check_lib_save_LIBS 9104fi 9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9106$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9107if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 9108 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9109fi 9110 9111 9112fi 9113 9114 9115fi 9116 9117 9118fi 9119 9120 9121fi 9122 9123 9124fi 9125 9126 ;; 9127 esac 9128 9129 if test "x$lt_cv_dlopen" != xno; then 9130 enable_dlopen=yes 9131 else 9132 enable_dlopen=no 9133 fi 9134 9135 case $lt_cv_dlopen in 9136 dlopen) 9137 save_CPPFLAGS="$CPPFLAGS" 9138 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9139 9140 save_LDFLAGS="$LDFLAGS" 9141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9142 9143 save_LIBS="$LIBS" 9144 LIBS="$lt_cv_dlopen_libs $LIBS" 9145 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9147$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9148if test "${lt_cv_dlopen_self+set}" = set; then : 9149 $as_echo_n "(cached) " >&6 9150else 9151 if test "$cross_compiling" = yes; then : 9152 lt_cv_dlopen_self=cross 9153else 9154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9155 lt_status=$lt_dlunknown 9156 cat > conftest.$ac_ext <<EOF 9157#line 9157 "configure" 9158#include "confdefs.h" 9159 9160#if HAVE_DLFCN_H 9161#include <dlfcn.h> 9162#endif 9163 9164#include <stdio.h> 9165 9166#ifdef RTLD_GLOBAL 9167# define LT_DLGLOBAL RTLD_GLOBAL 9168#else 9169# ifdef DL_GLOBAL 9170# define LT_DLGLOBAL DL_GLOBAL 9171# else 9172# define LT_DLGLOBAL 0 9173# endif 9174#endif 9175 9176/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9177 find out it does not work in some platform. */ 9178#ifndef LT_DLLAZY_OR_NOW 9179# ifdef RTLD_LAZY 9180# define LT_DLLAZY_OR_NOW RTLD_LAZY 9181# else 9182# ifdef DL_LAZY 9183# define LT_DLLAZY_OR_NOW DL_LAZY 9184# else 9185# ifdef RTLD_NOW 9186# define LT_DLLAZY_OR_NOW RTLD_NOW 9187# else 9188# ifdef DL_NOW 9189# define LT_DLLAZY_OR_NOW DL_NOW 9190# else 9191# define LT_DLLAZY_OR_NOW 0 9192# endif 9193# endif 9194# endif 9195# endif 9196#endif 9197 9198#ifdef __cplusplus 9199extern "C" void exit (int); 9200#endif 9201 9202void fnord() { int i=42;} 9203int main () 9204{ 9205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9206 int status = $lt_dlunknown; 9207 9208 if (self) 9209 { 9210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9212 /* dlclose (self); */ 9213 } 9214 else 9215 puts (dlerror ()); 9216 9217 exit (status); 9218} 9219EOF 9220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9221 (eval $ac_link) 2>&5 9222 ac_status=$? 9223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9224 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9225 (./conftest; exit; ) >&5 2>/dev/null 9226 lt_status=$? 9227 case x$lt_status in 9228 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9229 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9230 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9231 esac 9232 else : 9233 # compilation failed 9234 lt_cv_dlopen_self=no 9235 fi 9236fi 9237rm -fr conftest* 9238 9239 9240fi 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 9242$as_echo "$lt_cv_dlopen_self" >&6; } 9243 9244 if test "x$lt_cv_dlopen_self" = xyes; then 9245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 9247$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 9248if test "${lt_cv_dlopen_self_static+set}" = set; then : 9249 $as_echo_n "(cached) " >&6 9250else 9251 if test "$cross_compiling" = yes; then : 9252 lt_cv_dlopen_self_static=cross 9253else 9254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9255 lt_status=$lt_dlunknown 9256 cat > conftest.$ac_ext <<EOF 9257#line 9257 "configure" 9258#include "confdefs.h" 9259 9260#if HAVE_DLFCN_H 9261#include <dlfcn.h> 9262#endif 9263 9264#include <stdio.h> 9265 9266#ifdef RTLD_GLOBAL 9267# define LT_DLGLOBAL RTLD_GLOBAL 9268#else 9269# ifdef DL_GLOBAL 9270# define LT_DLGLOBAL DL_GLOBAL 9271# else 9272# define LT_DLGLOBAL 0 9273# endif 9274#endif 9275 9276/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9277 find out it does not work in some platform. */ 9278#ifndef LT_DLLAZY_OR_NOW 9279# ifdef RTLD_LAZY 9280# define LT_DLLAZY_OR_NOW RTLD_LAZY 9281# else 9282# ifdef DL_LAZY 9283# define LT_DLLAZY_OR_NOW DL_LAZY 9284# else 9285# ifdef RTLD_NOW 9286# define LT_DLLAZY_OR_NOW RTLD_NOW 9287# else 9288# ifdef DL_NOW 9289# define LT_DLLAZY_OR_NOW DL_NOW 9290# else 9291# define LT_DLLAZY_OR_NOW 0 9292# endif 9293# endif 9294# endif 9295# endif 9296#endif 9297 9298#ifdef __cplusplus 9299extern "C" void exit (int); 9300#endif 9301 9302void fnord() { int i=42;} 9303int main () 9304{ 9305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9306 int status = $lt_dlunknown; 9307 9308 if (self) 9309 { 9310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9311 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9312 /* dlclose (self); */ 9313 } 9314 else 9315 puts (dlerror ()); 9316 9317 exit (status); 9318} 9319EOF 9320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9321 (eval $ac_link) 2>&5 9322 ac_status=$? 9323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9324 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9325 (./conftest; exit; ) >&5 2>/dev/null 9326 lt_status=$? 9327 case x$lt_status in 9328 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9329 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9330 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9331 esac 9332 else : 9333 # compilation failed 9334 lt_cv_dlopen_self_static=no 9335 fi 9336fi 9337rm -fr conftest* 9338 9339 9340fi 9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 9342$as_echo "$lt_cv_dlopen_self_static" >&6; } 9343 fi 9344 9345 CPPFLAGS="$save_CPPFLAGS" 9346 LDFLAGS="$save_LDFLAGS" 9347 LIBS="$save_LIBS" 9348 ;; 9349 esac 9350 9351 case $lt_cv_dlopen_self in 9352 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9353 *) enable_dlopen_self=unknown ;; 9354 esac 9355 9356 case $lt_cv_dlopen_self_static in 9357 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9358 *) enable_dlopen_self_static=unknown ;; 9359 esac 9360fi 9361 9362 9363# Report which library types will actually be built 9364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 9365$as_echo_n "checking if libtool supports shared libraries... " >&6; } 9366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 9367$as_echo "$can_build_shared" >&6; } 9368 9369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 9370$as_echo_n "checking whether to build shared libraries... " >&6; } 9371test "$can_build_shared" = "no" && enable_shared=no 9372 9373# On AIX, shared libraries and static libraries use the same namespace, and 9374# are all built from PIC. 9375case $host_os in 9376aix3*) 9377 test "$enable_shared" = yes && enable_static=no 9378 if test -n "$RANLIB"; then 9379 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9380 postinstall_cmds='$RANLIB $lib' 9381 fi 9382 ;; 9383 9384aix[4-9]*) 9385 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9386 test "$enable_shared" = yes && enable_static=no 9387 fi 9388 ;; 9389esac 9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 9391$as_echo "$enable_shared" >&6; } 9392 9393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 9394$as_echo_n "checking whether to build static libraries... " >&6; } 9395# Make sure either enable_shared or enable_static is yes. 9396test "$enable_shared" = yes || enable_static=yes 9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 9398$as_echo "$enable_static" >&6; } 9399 9400# The else clause should only fire when bootstrapping the 9401# libtool distribution, otherwise you forgot to ship ltmain.sh 9402# with your package, and you will get complaints that there are 9403# no rules to generate ltmain.sh. 9404if test -f "$ltmain"; then 9405 # See if we are running on zsh, and set the options which allow our commands through 9406 # without removal of \ escapes. 9407 if test -n "${ZSH_VERSION+set}" ; then 9408 setopt NO_GLOB_SUBST 9409 fi 9410 # Now quote all the things that may contain metacharacters while being 9411 # careful not to overquote the AC_SUBSTed values. We take copies of the 9412 # variables and quote the copies for generation of the libtool script. 9413 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9414 SED SHELL STRIP \ 9415 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9416 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9417 deplibs_check_method reload_flag reload_cmds need_locks \ 9418 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9419 lt_cv_sys_global_symbol_to_c_name_address \ 9420 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9421 old_postinstall_cmds old_postuninstall_cmds \ 9422 compiler \ 9423 CC \ 9424 LD \ 9425 lt_prog_compiler_wl \ 9426 lt_prog_compiler_pic \ 9427 lt_prog_compiler_static \ 9428 lt_prog_compiler_no_builtin_flag \ 9429 export_dynamic_flag_spec \ 9430 thread_safe_flag_spec \ 9431 whole_archive_flag_spec \ 9432 enable_shared_with_static_runtimes \ 9433 old_archive_cmds \ 9434 old_archive_from_new_cmds \ 9435 predep_objects \ 9436 postdep_objects \ 9437 predeps \ 9438 postdeps \ 9439 compiler_lib_search_path \ 9440 compiler_lib_search_dirs \ 9441 archive_cmds \ 9442 archive_expsym_cmds \ 9443 postinstall_cmds \ 9444 postuninstall_cmds \ 9445 old_archive_from_expsyms_cmds \ 9446 allow_undefined_flag \ 9447 no_undefined_flag \ 9448 export_symbols_cmds \ 9449 hardcode_libdir_flag_spec \ 9450 hardcode_libdir_flag_spec_ld \ 9451 hardcode_libdir_separator \ 9452 hardcode_automatic \ 9453 module_cmds \ 9454 module_expsym_cmds \ 9455 lt_cv_prog_compiler_c_o \ 9456 fix_srcfile_path \ 9457 exclude_expsyms \ 9458 include_expsyms; do 9459 9460 case $var in 9461 old_archive_cmds | \ 9462 old_archive_from_new_cmds | \ 9463 archive_cmds | \ 9464 archive_expsym_cmds | \ 9465 module_cmds | \ 9466 module_expsym_cmds | \ 9467 old_archive_from_expsyms_cmds | \ 9468 export_symbols_cmds | \ 9469 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9470 postinstall_cmds | postuninstall_cmds | \ 9471 old_postinstall_cmds | old_postuninstall_cmds | \ 9472 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9473 # Double-quote double-evaled strings. 9474 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9475 ;; 9476 *) 9477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9478 ;; 9479 esac 9480 done 9481 9482 case $lt_echo in 9483 *'\$0 --fallback-echo"') 9484 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9485 ;; 9486 esac 9487 9488cfgfile="${ofile}T" 9489 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9490 $rm -f "$cfgfile" 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 9492$as_echo "$as_me: creating $ofile" >&6;} 9493 9494 cat <<__EOF__ >> "$cfgfile" 9495#! $SHELL 9496 9497# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9498# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9499# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9500# 9501# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 9502# Free Software Foundation, Inc. 9503# 9504# This file is part of GNU Libtool: 9505# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9506# 9507# This program is free software; you can redistribute it and/or modify 9508# it under the terms of the GNU General Public License as published by 9509# the Free Software Foundation; either version 2 of the License, or 9510# (at your option) any later version. 9511# 9512# This program is distributed in the hope that it will be useful, but 9513# WITHOUT ANY WARRANTY; without even the implied warranty of 9514# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9515# General Public License for more details. 9516# 9517# You should have received a copy of the GNU General Public License 9518# along with this program; if not, write to the Free Software 9519# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9520# 9521# As a special exception to the GNU General Public License, if you 9522# distribute this file as part of a program that contains a 9523# configuration script generated by Autoconf, you may include it under 9524# the same distribution terms that you use for the rest of that program. 9525 9526# A sed program that does not truncate output. 9527SED=$lt_SED 9528 9529# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9530Xsed="$SED -e 1s/^X//" 9531 9532# The HP-UX ksh and POSIX shell print the target directory to stdout 9533# if CDPATH is set. 9534(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9535 9536# The names of the tagged configurations supported by this script. 9537available_tags= 9538 9539# ### BEGIN LIBTOOL CONFIG 9540 9541# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9542 9543# Shell to use when invoking shell scripts. 9544SHELL=$lt_SHELL 9545 9546# Whether or not to build shared libraries. 9547build_libtool_libs=$enable_shared 9548 9549# Whether or not to build static libraries. 9550build_old_libs=$enable_static 9551 9552# Whether or not to add -lc for building shared libraries. 9553build_libtool_need_lc=$archive_cmds_need_lc 9554 9555# Whether or not to disallow shared libs when runtime libs are static 9556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9557 9558# Whether or not to optimize for fast installation. 9559fast_install=$enable_fast_install 9560 9561# The host system. 9562host_alias=$host_alias 9563host=$host 9564host_os=$host_os 9565 9566# The build system. 9567build_alias=$build_alias 9568build=$build 9569build_os=$build_os 9570 9571# An echo program that does not interpret backslashes. 9572echo=$lt_echo 9573 9574# The archiver. 9575AR=$lt_AR 9576AR_FLAGS=$lt_AR_FLAGS 9577 9578# A C compiler. 9579LTCC=$lt_LTCC 9580 9581# LTCC compiler flags. 9582LTCFLAGS=$lt_LTCFLAGS 9583 9584# A language-specific compiler. 9585CC=$lt_compiler 9586 9587# Is the compiler the GNU C compiler? 9588with_gcc=$GCC 9589 9590# An ERE matcher. 9591EGREP=$lt_EGREP 9592 9593# The linker used to build libraries. 9594LD=$lt_LD 9595 9596# Whether we need hard or soft links. 9597LN_S=$lt_LN_S 9598 9599# A BSD-compatible nm program. 9600NM=$lt_NM 9601 9602# A symbol stripping program 9603STRIP=$lt_STRIP 9604 9605# Used to examine libraries when file_magic_cmd begins "file" 9606MAGIC_CMD=$MAGIC_CMD 9607 9608# Used on cygwin: DLL creation program. 9609DLLTOOL="$DLLTOOL" 9610 9611# Used on cygwin: object dumper. 9612OBJDUMP="$OBJDUMP" 9613 9614# Used on cygwin: assembler. 9615AS="$AS" 9616 9617# The name of the directory that contains temporary libtool files. 9618objdir=$objdir 9619 9620# How to create reloadable object files. 9621reload_flag=$lt_reload_flag 9622reload_cmds=$lt_reload_cmds 9623 9624# How to pass a linker flag through the compiler. 9625wl=$lt_lt_prog_compiler_wl 9626 9627# Object file suffix (normally "o"). 9628objext="$ac_objext" 9629 9630# Old archive suffix (normally "a"). 9631libext="$libext" 9632 9633# Shared library suffix (normally ".so"). 9634shrext_cmds='$shrext_cmds' 9635 9636# Executable file suffix (normally ""). 9637exeext="$exeext" 9638 9639# Additional compiler flags for building library objects. 9640pic_flag=$lt_lt_prog_compiler_pic 9641pic_mode=$pic_mode 9642 9643# What is the maximum length of a command? 9644max_cmd_len=$lt_cv_sys_max_cmd_len 9645 9646# Does compiler simultaneously support -c and -o options? 9647compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9648 9649# Must we lock files when doing compilation? 9650need_locks=$lt_need_locks 9651 9652# Do we need the lib prefix for modules? 9653need_lib_prefix=$need_lib_prefix 9654 9655# Do we need a version for libraries? 9656need_version=$need_version 9657 9658# Whether dlopen is supported. 9659dlopen_support=$enable_dlopen 9660 9661# Whether dlopen of programs is supported. 9662dlopen_self=$enable_dlopen_self 9663 9664# Whether dlopen of statically linked programs is supported. 9665dlopen_self_static=$enable_dlopen_self_static 9666 9667# Compiler flag to prevent dynamic linking. 9668link_static_flag=$lt_lt_prog_compiler_static 9669 9670# Compiler flag to turn off builtin functions. 9671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9672 9673# Compiler flag to allow reflexive dlopens. 9674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9675 9676# Compiler flag to generate shared objects directly from archives. 9677whole_archive_flag_spec=$lt_whole_archive_flag_spec 9678 9679# Compiler flag to generate thread-safe objects. 9680thread_safe_flag_spec=$lt_thread_safe_flag_spec 9681 9682# Library versioning type. 9683version_type=$version_type 9684 9685# Format of library name prefix. 9686libname_spec=$lt_libname_spec 9687 9688# List of archive names. First name is the real one, the rest are links. 9689# The last name is the one that the linker finds with -lNAME. 9690library_names_spec=$lt_library_names_spec 9691 9692# The coded name of the library, if different from the real name. 9693soname_spec=$lt_soname_spec 9694 9695# Commands used to build and install an old-style archive. 9696RANLIB=$lt_RANLIB 9697old_archive_cmds=$lt_old_archive_cmds 9698old_postinstall_cmds=$lt_old_postinstall_cmds 9699old_postuninstall_cmds=$lt_old_postuninstall_cmds 9700 9701# Create an old-style archive from a shared archive. 9702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9703 9704# Create a temporary old-style archive to link instead of a shared archive. 9705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9706 9707# Commands used to build and install a shared archive. 9708archive_cmds=$lt_archive_cmds 9709archive_expsym_cmds=$lt_archive_expsym_cmds 9710postinstall_cmds=$lt_postinstall_cmds 9711postuninstall_cmds=$lt_postuninstall_cmds 9712 9713# Commands used to build a loadable module (assumed same as above if empty) 9714module_cmds=$lt_module_cmds 9715module_expsym_cmds=$lt_module_expsym_cmds 9716 9717# Commands to strip libraries. 9718old_striplib=$lt_old_striplib 9719striplib=$lt_striplib 9720 9721# Dependencies to place before the objects being linked to create a 9722# shared library. 9723predep_objects=$lt_predep_objects 9724 9725# Dependencies to place after the objects being linked to create a 9726# shared library. 9727postdep_objects=$lt_postdep_objects 9728 9729# Dependencies to place before the objects being linked to create a 9730# shared library. 9731predeps=$lt_predeps 9732 9733# Dependencies to place after the objects being linked to create a 9734# shared library. 9735postdeps=$lt_postdeps 9736 9737# The directories searched by this compiler when creating a shared 9738# library 9739compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 9740 9741# The library search path used internally by the compiler when linking 9742# a shared library. 9743compiler_lib_search_path=$lt_compiler_lib_search_path 9744 9745# Method to check whether dependent libraries are shared objects. 9746deplibs_check_method=$lt_deplibs_check_method 9747 9748# Command to use when deplibs_check_method == file_magic. 9749file_magic_cmd=$lt_file_magic_cmd 9750 9751# Flag that allows shared libraries with undefined symbols to be built. 9752allow_undefined_flag=$lt_allow_undefined_flag 9753 9754# Flag that forces no undefined symbols. 9755no_undefined_flag=$lt_no_undefined_flag 9756 9757# Commands used to finish a libtool library installation in a directory. 9758finish_cmds=$lt_finish_cmds 9759 9760# Same as above, but a single script fragment to be evaled but not shown. 9761finish_eval=$lt_finish_eval 9762 9763# Take the output of nm and produce a listing of raw symbols and C names. 9764global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9765 9766# Transform the output of nm in a proper C declaration 9767global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9768 9769# Transform the output of nm in a C name address pair 9770global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9771 9772# This is the shared library runtime path variable. 9773runpath_var=$runpath_var 9774 9775# This is the shared library path variable. 9776shlibpath_var=$shlibpath_var 9777 9778# Is shlibpath searched before the hard-coded library search path? 9779shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9780 9781# How to hardcode a shared library path into an executable. 9782hardcode_action=$hardcode_action 9783 9784# Whether we should hardcode library paths into libraries. 9785hardcode_into_libs=$hardcode_into_libs 9786 9787# Flag to hardcode \$libdir into a binary during linking. 9788# This must work even if \$libdir does not exist. 9789hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9790 9791# If ld is used when linking, flag to hardcode \$libdir into 9792# a binary during linking. This must work even if \$libdir does 9793# not exist. 9794hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9795 9796# Whether we need a single -rpath flag with a separated argument. 9797hardcode_libdir_separator=$lt_hardcode_libdir_separator 9798 9799# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9800# resulting binary. 9801hardcode_direct=$hardcode_direct 9802 9803# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9804# resulting binary. 9805hardcode_minus_L=$hardcode_minus_L 9806 9807# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9808# the resulting binary. 9809hardcode_shlibpath_var=$hardcode_shlibpath_var 9810 9811# Set to yes if building a shared library automatically hardcodes DIR into the library 9812# and all subsequent libraries and executables linked against it. 9813hardcode_automatic=$hardcode_automatic 9814 9815# Variables whose values should be saved in libtool wrapper scripts and 9816# restored at relink time. 9817variables_saved_for_relink="$variables_saved_for_relink" 9818 9819# Whether libtool must link a program against all its dependency libraries. 9820link_all_deplibs=$link_all_deplibs 9821 9822# Compile-time system search path for libraries 9823sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9824 9825# Run-time system search path for libraries 9826sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9827 9828# Fix the shell variable \$srcfile for the compiler. 9829fix_srcfile_path=$lt_fix_srcfile_path 9830 9831# Set to yes if exported symbols are required. 9832always_export_symbols=$always_export_symbols 9833 9834# The commands to list exported symbols. 9835export_symbols_cmds=$lt_export_symbols_cmds 9836 9837# The commands to extract the exported symbol list from a shared archive. 9838extract_expsyms_cmds=$lt_extract_expsyms_cmds 9839 9840# Symbols that should not be listed in the preloaded symbols. 9841exclude_expsyms=$lt_exclude_expsyms 9842 9843# Symbols that must always be exported. 9844include_expsyms=$lt_include_expsyms 9845 9846# ### END LIBTOOL CONFIG 9847 9848__EOF__ 9849 9850 9851 case $host_os in 9852 aix3*) 9853 cat <<\EOF >> "$cfgfile" 9854 9855# AIX sometimes has problems with the GCC collect2 program. For some 9856# reason, if we set the COLLECT_NAMES environment variable, the problems 9857# vanish in a puff of smoke. 9858if test "X${COLLECT_NAMES+set}" != Xset; then 9859 COLLECT_NAMES= 9860 export COLLECT_NAMES 9861fi 9862EOF 9863 ;; 9864 esac 9865 9866 # We use sed instead of cat because bash on DJGPP gets confused if 9867 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9868 # text mode, it properly converts lines to CR/LF. This bash problem 9869 # is reportedly fixed, but why not run on old versions too? 9870 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9871 9872 mv -f "$cfgfile" "$ofile" || \ 9873 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9874 chmod +x "$ofile" 9875 9876else 9877 # If there is no Makefile yet, we rely on a make rule to execute 9878 # `config.status --recheck' to rerun these tests and create the 9879 # libtool script then. 9880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9881 if test -f "$ltmain_in"; then 9882 test -f Makefile && make "$ltmain" 9883 fi 9884fi 9885 9886 9887ac_ext=c 9888ac_cpp='$CPP $CPPFLAGS' 9889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9891ac_compiler_gnu=$ac_cv_c_compiler_gnu 9892 9893CC="$lt_save_CC" 9894 9895 9896# Check whether --with-tags was given. 9897if test "${with_tags+set}" = set; then : 9898 withval=$with_tags; tagnames="$withval" 9899fi 9900 9901 9902if test -f "$ltmain" && test -n "$tagnames"; then 9903 if test ! -f "${ofile}"; then 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 9905$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9906 fi 9907 9908 if test -z "$LTCC"; then 9909 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9910 if test -z "$LTCC"; then 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9912$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9913 else 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9915$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9916 fi 9917 fi 9918 if test -z "$LTCFLAGS"; then 9919 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9920 fi 9921 9922 # Extract list of available tagged configurations in $ofile. 9923 # Note that this assumes the entire list is on one line. 9924 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9925 9926 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9927 for tagname in $tagnames; do 9928 IFS="$lt_save_ifs" 9929 # Check whether tagname contains only valid characters 9930 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9931 "") ;; 9932 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 9933 ;; 9934 esac 9935 9936 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9937 then 9938 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 9939 fi 9940 9941 # Update the list of available tags. 9942 if test -n "$tagname"; then 9943 echo appending configuration tag \"$tagname\" to $ofile 9944 9945 case $tagname in 9946 CXX) 9947 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9948 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9949 (test "X$CXX" != "Xg++"))) ; then 9950 ac_ext=cpp 9951ac_cpp='$CXXCPP $CPPFLAGS' 9952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9955 9956 9957 9958 9959archive_cmds_need_lc_CXX=no 9960allow_undefined_flag_CXX= 9961always_export_symbols_CXX=no 9962archive_expsym_cmds_CXX= 9963export_dynamic_flag_spec_CXX= 9964hardcode_direct_CXX=no 9965hardcode_libdir_flag_spec_CXX= 9966hardcode_libdir_flag_spec_ld_CXX= 9967hardcode_libdir_separator_CXX= 9968hardcode_minus_L_CXX=no 9969hardcode_shlibpath_var_CXX=unsupported 9970hardcode_automatic_CXX=no 9971module_cmds_CXX= 9972module_expsym_cmds_CXX= 9973link_all_deplibs_CXX=unknown 9974old_archive_cmds_CXX=$old_archive_cmds 9975no_undefined_flag_CXX= 9976whole_archive_flag_spec_CXX= 9977enable_shared_with_static_runtimes_CXX=no 9978 9979# Dependencies to place before and after the object being linked: 9980predep_objects_CXX= 9981postdep_objects_CXX= 9982predeps_CXX= 9983postdeps_CXX= 9984compiler_lib_search_path_CXX= 9985compiler_lib_search_dirs_CXX= 9986 9987# Source file extension for C++ test sources. 9988ac_ext=cpp 9989 9990# Object file extension for compiled C++ test sources. 9991objext=o 9992objext_CXX=$objext 9993 9994# Code to be used in simple compile tests 9995lt_simple_compile_test_code="int some_variable = 0;" 9996 9997# Code to be used in simple link tests 9998lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 9999 10000# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10001 10002# If no C compiler was specified, use CC. 10003LTCC=${LTCC-"$CC"} 10004 10005# If no C compiler flags were specified, use CFLAGS. 10006LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10007 10008# Allow CC to be a program name with arguments. 10009compiler=$CC 10010 10011 10012# save warnings/boilerplate of simple test code 10013ac_outfile=conftest.$ac_objext 10014echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10015eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10016_lt_compiler_boilerplate=`cat conftest.err` 10017$rm conftest* 10018 10019ac_outfile=conftest.$ac_objext 10020echo "$lt_simple_link_test_code" >conftest.$ac_ext 10021eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10022_lt_linker_boilerplate=`cat conftest.err` 10023$rm -r conftest* 10024 10025 10026# Allow CC to be a program name with arguments. 10027lt_save_CC=$CC 10028lt_save_LD=$LD 10029lt_save_GCC=$GCC 10030GCC=$GXX 10031lt_save_with_gnu_ld=$with_gnu_ld 10032lt_save_path_LD=$lt_cv_path_LD 10033if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10034 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10035else 10036 $as_unset lt_cv_prog_gnu_ld 10037fi 10038if test -n "${lt_cv_path_LDCXX+set}"; then 10039 lt_cv_path_LD=$lt_cv_path_LDCXX 10040else 10041 $as_unset lt_cv_path_LD 10042fi 10043test -z "${LDCXX+set}" || LD=$LDCXX 10044CC=${CXX-"c++"} 10045compiler=$CC 10046compiler_CXX=$CC 10047for cc_temp in $compiler""; do 10048 case $cc_temp in 10049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10051 \-*) ;; 10052 *) break;; 10053 esac 10054done 10055cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10056 10057 10058# We don't want -fno-exception wen compiling C++ code, so set the 10059# no_builtin_flag separately 10060if test "$GXX" = yes; then 10061 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10062else 10063 lt_prog_compiler_no_builtin_flag_CXX= 10064fi 10065 10066if test "$GXX" = yes; then 10067 # Set up default GNU C++ configuration 10068 10069 10070# Check whether --with-gnu-ld was given. 10071if test "${with_gnu_ld+set}" = set; then : 10072 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10073else 10074 with_gnu_ld=no 10075fi 10076 10077ac_prog=ld 10078if test "$GCC" = yes; then 10079 # Check if gcc -print-prog-name=ld gives a path. 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10081$as_echo_n "checking for ld used by $CC... " >&6; } 10082 case $host in 10083 *-*-mingw*) 10084 # gcc leaves a trailing carriage return which upsets mingw 10085 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10086 *) 10087 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10088 esac 10089 case $ac_prog in 10090 # Accept absolute paths. 10091 [\\/]* | ?:[\\/]*) 10092 re_direlt='/[^/][^/]*/\.\./' 10093 # Canonicalize the pathname of ld 10094 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10095 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10096 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10097 done 10098 test -z "$LD" && LD="$ac_prog" 10099 ;; 10100 "") 10101 # If it fails, then pretend we aren't using GCC. 10102 ac_prog=ld 10103 ;; 10104 *) 10105 # If it is relative, then search for the first ld in PATH. 10106 with_gnu_ld=unknown 10107 ;; 10108 esac 10109elif test "$with_gnu_ld" = yes; then 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10111$as_echo_n "checking for GNU ld... " >&6; } 10112else 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10114$as_echo_n "checking for non-GNU ld... " >&6; } 10115fi 10116if test "${lt_cv_path_LD+set}" = set; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 if test -z "$LD"; then 10120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10121 for ac_dir in $PATH; do 10122 IFS="$lt_save_ifs" 10123 test -z "$ac_dir" && ac_dir=. 10124 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10125 lt_cv_path_LD="$ac_dir/$ac_prog" 10126 # Check to see if the program is GNU ld. I'd rather use --version, 10127 # but apparently some variants of GNU ld only accept -v. 10128 # Break only if it was the GNU/non-GNU ld that we prefer. 10129 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10130 *GNU* | *'with BFD'*) 10131 test "$with_gnu_ld" != no && break 10132 ;; 10133 *) 10134 test "$with_gnu_ld" != yes && break 10135 ;; 10136 esac 10137 fi 10138 done 10139 IFS="$lt_save_ifs" 10140else 10141 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10142fi 10143fi 10144 10145LD="$lt_cv_path_LD" 10146if test -n "$LD"; then 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10148$as_echo "$LD" >&6; } 10149else 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10151$as_echo "no" >&6; } 10152fi 10153test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10155$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10156if test "${lt_cv_prog_gnu_ld+set}" = set; then : 10157 $as_echo_n "(cached) " >&6 10158else 10159 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10160case `$LD -v 2>&1 </dev/null` in 10161*GNU* | *'with BFD'*) 10162 lt_cv_prog_gnu_ld=yes 10163 ;; 10164*) 10165 lt_cv_prog_gnu_ld=no 10166 ;; 10167esac 10168fi 10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 10170$as_echo "$lt_cv_prog_gnu_ld" >&6; } 10171with_gnu_ld=$lt_cv_prog_gnu_ld 10172 10173 10174 10175 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10176 # archiving commands below assume that GNU ld is being used. 10177 if test "$with_gnu_ld" = yes; then 10178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10179 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10180 10181 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10183 10184 # If archive_cmds runs LD, not CC, wlarc should be empty 10185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10186 # investigate it a little bit more. (MM) 10187 wlarc='${wl}' 10188 10189 # ancient GNU ld didn't support --whole-archive et. al. 10190 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10191 grep 'no-whole-archive' > /dev/null; then 10192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10193 else 10194 whole_archive_flag_spec_CXX= 10195 fi 10196 else 10197 with_gnu_ld=no 10198 wlarc= 10199 10200 # A generic and very simple default shared library creation 10201 # command for GNU C++ for the case where it uses the native 10202 # linker, instead of GNU ld. If possible, this setting should 10203 # overridden to take advantage of the native linker features on 10204 # the platform it is being used on. 10205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10206 fi 10207 10208 # Commands to make compiler produce verbose output that lists 10209 # what "hidden" libraries, object files and flags are used when 10210 # linking a shared library. 10211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10212 10213else 10214 GXX=no 10215 with_gnu_ld=no 10216 wlarc= 10217fi 10218 10219# PORTME: fill in a description of your system's C++ link characteristics 10220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10221$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10222ld_shlibs_CXX=yes 10223case $host_os in 10224 aix3*) 10225 # FIXME: insert proper C++ library support 10226 ld_shlibs_CXX=no 10227 ;; 10228 aix[4-9]*) 10229 if test "$host_cpu" = ia64; then 10230 # On IA64, the linker does run time linking by default, so we don't 10231 # have to do anything special. 10232 aix_use_runtimelinking=no 10233 exp_sym_flag='-Bexport' 10234 no_entry_flag="" 10235 else 10236 aix_use_runtimelinking=no 10237 10238 # Test if we are trying to use run time linking or normal 10239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10240 # need to do runtime linking. 10241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10242 for ld_flag in $LDFLAGS; do 10243 case $ld_flag in 10244 *-brtl*) 10245 aix_use_runtimelinking=yes 10246 break 10247 ;; 10248 esac 10249 done 10250 ;; 10251 esac 10252 10253 exp_sym_flag='-bexport' 10254 no_entry_flag='-bnoentry' 10255 fi 10256 10257 # When large executables or shared objects are built, AIX ld can 10258 # have problems creating the table of contents. If linking a library 10259 # or program results in "error TOC overflow" add -mminimal-toc to 10260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10262 10263 archive_cmds_CXX='' 10264 hardcode_direct_CXX=yes 10265 hardcode_libdir_separator_CXX=':' 10266 link_all_deplibs_CXX=yes 10267 10268 if test "$GXX" = yes; then 10269 case $host_os in aix4.[012]|aix4.[012].*) 10270 # We only want to do this on AIX 4.2 and lower, the check 10271 # below for broken collect2 doesn't work under 4.3+ 10272 collect2name=`${CC} -print-prog-name=collect2` 10273 if test -f "$collect2name" && \ 10274 strings "$collect2name" | grep resolve_lib_name >/dev/null 10275 then 10276 # We have reworked collect2 10277 : 10278 else 10279 # We have old collect2 10280 hardcode_direct_CXX=unsupported 10281 # It fails to find uninstalled libraries when the uninstalled 10282 # path is not listed in the libpath. Setting hardcode_minus_L 10283 # to unsupported forces relinking 10284 hardcode_minus_L_CXX=yes 10285 hardcode_libdir_flag_spec_CXX='-L$libdir' 10286 hardcode_libdir_separator_CXX= 10287 fi 10288 ;; 10289 esac 10290 shared_flag='-shared' 10291 if test "$aix_use_runtimelinking" = yes; then 10292 shared_flag="$shared_flag "'${wl}-G' 10293 fi 10294 else 10295 # not using gcc 10296 if test "$host_cpu" = ia64; then 10297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10298 # chokes on -Wl,-G. The following line is correct: 10299 shared_flag='-G' 10300 else 10301 if test "$aix_use_runtimelinking" = yes; then 10302 shared_flag='${wl}-G' 10303 else 10304 shared_flag='${wl}-bM:SRE' 10305 fi 10306 fi 10307 fi 10308 10309 # It seems that -bexpall does not export symbols beginning with 10310 # underscore (_), so it is better to generate a list of symbols to export. 10311 always_export_symbols_CXX=yes 10312 if test "$aix_use_runtimelinking" = yes; then 10313 # Warning - without using the other runtime loading flags (-brtl), 10314 # -berok will link without error, but may produce a broken library. 10315 allow_undefined_flag_CXX='-berok' 10316 # Determine the default libpath from the value encoded in an empty executable. 10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318/* end confdefs.h. */ 10319 10320int 10321main () 10322{ 10323 10324 ; 10325 return 0; 10326} 10327_ACEOF 10328if ac_fn_cxx_try_link "$LINENO"; then : 10329 10330lt_aix_libpath_sed=' 10331 /Import File Strings/,/^$/ { 10332 /^0/ { 10333 s/^0 *\(.*\)$/\1/ 10334 p 10335 } 10336 }' 10337aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10338# Check for a 64-bit object if we didn't find anything. 10339if test -z "$aix_libpath"; then 10340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10341fi 10342fi 10343rm -f core conftest.err conftest.$ac_objext \ 10344 conftest$ac_exeext conftest.$ac_ext 10345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10346 10347 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10348 10349 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10350 else 10351 if test "$host_cpu" = ia64; then 10352 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10353 allow_undefined_flag_CXX="-z nodefs" 10354 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10355 else 10356 # Determine the default libpath from the value encoded in an empty executable. 10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358/* end confdefs.h. */ 10359 10360int 10361main () 10362{ 10363 10364 ; 10365 return 0; 10366} 10367_ACEOF 10368if ac_fn_cxx_try_link "$LINENO"; then : 10369 10370lt_aix_libpath_sed=' 10371 /Import File Strings/,/^$/ { 10372 /^0/ { 10373 s/^0 *\(.*\)$/\1/ 10374 p 10375 } 10376 }' 10377aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10378# Check for a 64-bit object if we didn't find anything. 10379if test -z "$aix_libpath"; then 10380 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10381fi 10382fi 10383rm -f core conftest.err conftest.$ac_objext \ 10384 conftest$ac_exeext conftest.$ac_ext 10385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10386 10387 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10388 # Warning - without using the other run time loading flags, 10389 # -berok will link without error, but may produce a broken library. 10390 no_undefined_flag_CXX=' ${wl}-bernotok' 10391 allow_undefined_flag_CXX=' ${wl}-berok' 10392 # Exported symbols can be pulled into shared objects from archives 10393 whole_archive_flag_spec_CXX='$convenience' 10394 archive_cmds_need_lc_CXX=yes 10395 # This is similar to how AIX traditionally builds its shared libraries. 10396 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10397 fi 10398 fi 10399 ;; 10400 10401 beos*) 10402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10403 allow_undefined_flag_CXX=unsupported 10404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10405 # support --undefined. This deserves some investigation. FIXME 10406 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10407 else 10408 ld_shlibs_CXX=no 10409 fi 10410 ;; 10411 10412 chorus*) 10413 case $cc_basename in 10414 *) 10415 # FIXME: insert proper C++ library support 10416 ld_shlibs_CXX=no 10417 ;; 10418 esac 10419 ;; 10420 10421 cygwin* | mingw* | pw32*) 10422 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10423 # as there is no search path for DLLs. 10424 hardcode_libdir_flag_spec_CXX='-L$libdir' 10425 allow_undefined_flag_CXX=unsupported 10426 always_export_symbols_CXX=no 10427 enable_shared_with_static_runtimes_CXX=yes 10428 10429 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10430 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10431 # If the export-symbols file already is a .def file (1st line 10432 # is EXPORTS), use it as is; otherwise, prepend... 10433 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10434 cp $export_symbols $output_objdir/$soname.def; 10435 else 10436 echo EXPORTS > $output_objdir/$soname.def; 10437 cat $export_symbols >> $output_objdir/$soname.def; 10438 fi~ 10439 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10440 else 10441 ld_shlibs_CXX=no 10442 fi 10443 ;; 10444 darwin* | rhapsody*) 10445 archive_cmds_need_lc_CXX=no 10446 hardcode_direct_CXX=no 10447 hardcode_automatic_CXX=yes 10448 hardcode_shlibpath_var_CXX=unsupported 10449 whole_archive_flag_spec_CXX='' 10450 link_all_deplibs_CXX=yes 10451 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 10452 if test "$GXX" = yes ; then 10453 output_verbose_link_cmd='echo' 10454 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10455 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10456 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10457 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 10458 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 10459 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 10460 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 10461 fi 10462 else 10463 case $cc_basename in 10464 xlc*) 10465 output_verbose_link_cmd='echo' 10466 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 10467 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10469 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10470 module_expsym_cmds_CXX='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}' 10471 ;; 10472 *) 10473 ld_shlibs_CXX=no 10474 ;; 10475 esac 10476 fi 10477 ;; 10478 10479 dgux*) 10480 case $cc_basename in 10481 ec++*) 10482 # FIXME: insert proper C++ library support 10483 ld_shlibs_CXX=no 10484 ;; 10485 ghcx*) 10486 # Green Hills C++ Compiler 10487 # FIXME: insert proper C++ library support 10488 ld_shlibs_CXX=no 10489 ;; 10490 *) 10491 # FIXME: insert proper C++ library support 10492 ld_shlibs_CXX=no 10493 ;; 10494 esac 10495 ;; 10496 freebsd[12]*) 10497 # C++ shared libraries reported to be fairly broken before switch to ELF 10498 ld_shlibs_CXX=no 10499 ;; 10500 freebsd-elf*) 10501 archive_cmds_need_lc_CXX=no 10502 ;; 10503 freebsd* | dragonfly*) 10504 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10505 # conventions 10506 ld_shlibs_CXX=yes 10507 ;; 10508 gnu*) 10509 ;; 10510 hpux9*) 10511 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10512 hardcode_libdir_separator_CXX=: 10513 export_dynamic_flag_spec_CXX='${wl}-E' 10514 hardcode_direct_CXX=yes 10515 hardcode_minus_L_CXX=yes # Not in the search PATH, 10516 # but as the default 10517 # location of the library. 10518 10519 case $cc_basename in 10520 CC*) 10521 # FIXME: insert proper C++ library support 10522 ld_shlibs_CXX=no 10523 ;; 10524 aCC*) 10525 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10526 # Commands to make compiler produce verbose output that lists 10527 # what "hidden" libraries, object files and flags are used when 10528 # linking a shared library. 10529 # 10530 # There doesn't appear to be a way to prevent this compiler from 10531 # explicitly linking system object files so we need to strip them 10532 # from the output so that they don't get included in the library 10533 # dependencies. 10534 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10535 ;; 10536 *) 10537 if test "$GXX" = yes; then 10538 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10539 else 10540 # FIXME: insert proper C++ library support 10541 ld_shlibs_CXX=no 10542 fi 10543 ;; 10544 esac 10545 ;; 10546 hpux10*|hpux11*) 10547 if test $with_gnu_ld = no; then 10548 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10549 hardcode_libdir_separator_CXX=: 10550 10551 case $host_cpu in 10552 hppa*64*|ia64*) ;; 10553 *) 10554 export_dynamic_flag_spec_CXX='${wl}-E' 10555 ;; 10556 esac 10557 fi 10558 case $host_cpu in 10559 hppa*64*|ia64*) 10560 hardcode_direct_CXX=no 10561 hardcode_shlibpath_var_CXX=no 10562 ;; 10563 *) 10564 hardcode_direct_CXX=yes 10565 hardcode_minus_L_CXX=yes # Not in the search PATH, 10566 # but as the default 10567 # location of the library. 10568 ;; 10569 esac 10570 10571 case $cc_basename in 10572 CC*) 10573 # FIXME: insert proper C++ library support 10574 ld_shlibs_CXX=no 10575 ;; 10576 aCC*) 10577 case $host_cpu in 10578 hppa*64*) 10579 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10580 ;; 10581 ia64*) 10582 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10583 ;; 10584 *) 10585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10586 ;; 10587 esac 10588 # Commands to make compiler produce verbose output that lists 10589 # what "hidden" libraries, object files and flags are used when 10590 # linking a shared library. 10591 # 10592 # There doesn't appear to be a way to prevent this compiler from 10593 # explicitly linking system object files so we need to strip them 10594 # from the output so that they don't get included in the library 10595 # dependencies. 10596 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10597 ;; 10598 *) 10599 if test "$GXX" = yes; then 10600 if test $with_gnu_ld = no; then 10601 case $host_cpu in 10602 hppa*64*) 10603 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10604 ;; 10605 ia64*) 10606 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10607 ;; 10608 *) 10609 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10610 ;; 10611 esac 10612 fi 10613 else 10614 # FIXME: insert proper C++ library support 10615 ld_shlibs_CXX=no 10616 fi 10617 ;; 10618 esac 10619 ;; 10620 interix[3-9]*) 10621 hardcode_direct_CXX=no 10622 hardcode_shlibpath_var_CXX=no 10623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10624 export_dynamic_flag_spec_CXX='${wl}-E' 10625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10626 # Instead, shared libraries are loaded at an image base (0x10000000 by 10627 # default) and relocated if they conflict, which is a slow very memory 10628 # consuming and fragmenting process. To avoid this, we pick a random, 10629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10630 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10631 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10632 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10633 ;; 10634 irix5* | irix6*) 10635 case $cc_basename in 10636 CC*) 10637 # SGI C++ 10638 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10639 10640 # Archives containing C++ object files must be created using 10641 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10642 # necessary to make sure instantiated templates are included 10643 # in the archive. 10644 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10645 ;; 10646 *) 10647 if test "$GXX" = yes; then 10648 if test "$with_gnu_ld" = no; then 10649 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 10650 else 10651 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 10652 fi 10653 fi 10654 link_all_deplibs_CXX=yes 10655 ;; 10656 esac 10657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10658 hardcode_libdir_separator_CXX=: 10659 ;; 10660 linux* | k*bsd*-gnu) 10661 case $cc_basename in 10662 KCC*) 10663 # Kuck and Associates, Inc. (KAI) C++ Compiler 10664 10665 # KCC will only create a shared library if the output file 10666 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10667 # to its proper name (with version) after linking. 10668 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10669 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 10670 # Commands to make compiler produce verbose output that lists 10671 # what "hidden" libraries, object files and flags are used when 10672 # linking a shared library. 10673 # 10674 # There doesn't appear to be a way to prevent this compiler from 10675 # explicitly linking system object files so we need to strip them 10676 # from the output so that they don't get included in the library 10677 # dependencies. 10678 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10679 10680 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10682 10683 # Archives containing C++ object files must be created using 10684 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10685 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10686 ;; 10687 icpc*) 10688 # Intel C++ 10689 with_gnu_ld=yes 10690 # version 8.0 and above of icpc choke on multiply defined symbols 10691 # if we add $predep_objects and $postdep_objects, however 7.1 and 10692 # earlier do not add the objects themselves. 10693 case `$CC -V 2>&1` in 10694 *"Version 7."*) 10695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10696 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10697 ;; 10698 *) # Version 8.0 or newer 10699 tmp_idyn= 10700 case $host_cpu in 10701 ia64*) tmp_idyn=' -i_dynamic';; 10702 esac 10703 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10704 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10705 ;; 10706 esac 10707 archive_cmds_need_lc_CXX=no 10708 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10710 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10711 ;; 10712 pgCC* | pgcpp*) 10713 # Portland Group C++ compiler 10714 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10715 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 10716 10717 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10719 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10720 ;; 10721 cxx*) 10722 # Compaq C++ 10723 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10724 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 10725 10726 runpath_var=LD_RUN_PATH 10727 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10728 hardcode_libdir_separator_CXX=: 10729 10730 # Commands to make compiler produce verbose output that lists 10731 # what "hidden" libraries, object files and flags are used when 10732 # linking a shared library. 10733 # 10734 # There doesn't appear to be a way to prevent this compiler from 10735 # explicitly linking system object files so we need to strip them 10736 # from the output so that they don't get included in the library 10737 # dependencies. 10738 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10739 ;; 10740 *) 10741 case `$CC -V 2>&1 | sed 5q` in 10742 *Sun\ C*) 10743 # Sun C++ 5.9 10744 no_undefined_flag_CXX=' -zdefs' 10745 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10746 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 10747 hardcode_libdir_flag_spec_CXX='-R$libdir' 10748 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10749 10750 # Not sure whether something based on 10751 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 10752 # would be better. 10753 output_verbose_link_cmd='echo' 10754 10755 # Archives containing C++ object files must be created using 10756 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10757 # necessary to make sure instantiated templates are included 10758 # in the archive. 10759 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10760 ;; 10761 esac 10762 ;; 10763 esac 10764 ;; 10765 lynxos*) 10766 # FIXME: insert proper C++ library support 10767 ld_shlibs_CXX=no 10768 ;; 10769 m88k*) 10770 # FIXME: insert proper C++ library support 10771 ld_shlibs_CXX=no 10772 ;; 10773 mvs*) 10774 case $cc_basename in 10775 cxx*) 10776 # FIXME: insert proper C++ library support 10777 ld_shlibs_CXX=no 10778 ;; 10779 *) 10780 # FIXME: insert proper C++ library support 10781 ld_shlibs_CXX=no 10782 ;; 10783 esac 10784 ;; 10785 netbsd*) 10786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10787 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10788 wlarc= 10789 hardcode_libdir_flag_spec_CXX='-R$libdir' 10790 hardcode_direct_CXX=yes 10791 hardcode_shlibpath_var_CXX=no 10792 fi 10793 # Workaround some broken pre-1.5 toolchains 10794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10795 ;; 10796 openbsd2*) 10797 # C++ shared libraries are fairly broken 10798 ld_shlibs_CXX=no 10799 ;; 10800 openbsd*) 10801 if test -f /usr/libexec/ld.so; then 10802 hardcode_direct_CXX=yes 10803 hardcode_shlibpath_var_CXX=no 10804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10807 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10808 export_dynamic_flag_spec_CXX='${wl}-E' 10809 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10810 fi 10811 output_verbose_link_cmd='echo' 10812 else 10813 ld_shlibs_CXX=no 10814 fi 10815 ;; 10816 osf3*) 10817 case $cc_basename in 10818 KCC*) 10819 # Kuck and Associates, Inc. (KAI) C++ Compiler 10820 10821 # KCC will only create a shared library if the output file 10822 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10823 # to its proper name (with version) after linking. 10824 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10825 10826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10827 hardcode_libdir_separator_CXX=: 10828 10829 # Archives containing C++ object files must be created using 10830 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10831 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10832 10833 ;; 10834 RCC*) 10835 # Rational C++ 2.4.1 10836 # FIXME: insert proper C++ library support 10837 ld_shlibs_CXX=no 10838 ;; 10839 cxx*) 10840 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10841 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10842 10843 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10844 hardcode_libdir_separator_CXX=: 10845 10846 # Commands to make compiler produce verbose output that lists 10847 # what "hidden" libraries, object files and flags are used when 10848 # linking a shared library. 10849 # 10850 # There doesn't appear to be a way to prevent this compiler from 10851 # explicitly linking system object files so we need to strip them 10852 # from the output so that they don't get included in the library 10853 # dependencies. 10854 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10855 ;; 10856 *) 10857 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10858 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10859 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 10860 10861 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10862 hardcode_libdir_separator_CXX=: 10863 10864 # Commands to make compiler produce verbose output that lists 10865 # what "hidden" libraries, object files and flags are used when 10866 # linking a shared library. 10867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10868 10869 else 10870 # FIXME: insert proper C++ library support 10871 ld_shlibs_CXX=no 10872 fi 10873 ;; 10874 esac 10875 ;; 10876 osf4* | osf5*) 10877 case $cc_basename in 10878 KCC*) 10879 # Kuck and Associates, Inc. (KAI) C++ Compiler 10880 10881 # KCC will only create a shared library if the output file 10882 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10883 # to its proper name (with version) after linking. 10884 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10885 10886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10887 hardcode_libdir_separator_CXX=: 10888 10889 # Archives containing C++ object files must be created using 10890 # the KAI C++ compiler. 10891 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10892 ;; 10893 RCC*) 10894 # Rational C++ 2.4.1 10895 # FIXME: insert proper C++ library support 10896 ld_shlibs_CXX=no 10897 ;; 10898 cxx*) 10899 allow_undefined_flag_CXX=' -expect_unresolved \*' 10900 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10901 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10902 echo "-hidden">> $lib.exp~ 10903 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 10904 $rm $lib.exp' 10905 10906 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10907 hardcode_libdir_separator_CXX=: 10908 10909 # Commands to make compiler produce verbose output that lists 10910 # what "hidden" libraries, object files and flags are used when 10911 # linking a shared library. 10912 # 10913 # There doesn't appear to be a way to prevent this compiler from 10914 # explicitly linking system object files so we need to strip them 10915 # from the output so that they don't get included in the library 10916 # dependencies. 10917 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10918 ;; 10919 *) 10920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10922 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 10923 10924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10925 hardcode_libdir_separator_CXX=: 10926 10927 # Commands to make compiler produce verbose output that lists 10928 # what "hidden" libraries, object files and flags are used when 10929 # linking a shared library. 10930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10931 10932 else 10933 # FIXME: insert proper C++ library support 10934 ld_shlibs_CXX=no 10935 fi 10936 ;; 10937 esac 10938 ;; 10939 psos*) 10940 # FIXME: insert proper C++ library support 10941 ld_shlibs_CXX=no 10942 ;; 10943 sunos4*) 10944 case $cc_basename in 10945 CC*) 10946 # Sun C++ 4.x 10947 # FIXME: insert proper C++ library support 10948 ld_shlibs_CXX=no 10949 ;; 10950 lcc*) 10951 # Lucid 10952 # FIXME: insert proper C++ library support 10953 ld_shlibs_CXX=no 10954 ;; 10955 *) 10956 # FIXME: insert proper C++ library support 10957 ld_shlibs_CXX=no 10958 ;; 10959 esac 10960 ;; 10961 solaris*) 10962 case $cc_basename in 10963 CC*) 10964 # Sun C++ 4.2, 5.x and Centerline C++ 10965 archive_cmds_need_lc_CXX=yes 10966 no_undefined_flag_CXX=' -zdefs' 10967 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10968 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10969 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10970 10971 hardcode_libdir_flag_spec_CXX='-R$libdir' 10972 hardcode_shlibpath_var_CXX=no 10973 case $host_os in 10974 solaris2.[0-5] | solaris2.[0-5].*) ;; 10975 *) 10976 # The compiler driver will combine and reorder linker options, 10977 # but understands `-z linker_flag'. 10978 # Supported since Solaris 2.6 (maybe 2.5.1?) 10979 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 10980 ;; 10981 esac 10982 link_all_deplibs_CXX=yes 10983 10984 output_verbose_link_cmd='echo' 10985 10986 # Archives containing C++ object files must be created using 10987 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10988 # necessary to make sure instantiated templates are included 10989 # in the archive. 10990 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10991 ;; 10992 gcx*) 10993 # Green Hills C++ Compiler 10994 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10995 10996 # The C++ compiler must be used to create the archive. 10997 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10998 ;; 10999 *) 11000 # GNU C++ compiler with Solaris linker 11001 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11002 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11003 if $CC --version | grep -v '^2\.7' > /dev/null; then 11004 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11005 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11006 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11007 11008 # Commands to make compiler produce verbose output that lists 11009 # what "hidden" libraries, object files and flags are used when 11010 # linking a shared library. 11011 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11012 else 11013 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11014 # platform. 11015 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11016 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11017 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11018 11019 # Commands to make compiler produce verbose output that lists 11020 # what "hidden" libraries, object files and flags are used when 11021 # linking a shared library. 11022 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11023 fi 11024 11025 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11026 case $host_os in 11027 solaris2.[0-5] | solaris2.[0-5].*) ;; 11028 *) 11029 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11030 ;; 11031 esac 11032 fi 11033 ;; 11034 esac 11035 ;; 11036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11037 no_undefined_flag_CXX='${wl}-z,text' 11038 archive_cmds_need_lc_CXX=no 11039 hardcode_shlibpath_var_CXX=no 11040 runpath_var='LD_RUN_PATH' 11041 11042 case $cc_basename in 11043 CC*) 11044 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11045 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11046 ;; 11047 *) 11048 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11049 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11050 ;; 11051 esac 11052 ;; 11053 sysv5* | sco3.2v5* | sco5v6*) 11054 # Note: We can NOT use -z defs as we might desire, because we do not 11055 # link with -lc, and that would cause any symbols used from libc to 11056 # always be unresolved, which means just about no library would 11057 # ever link correctly. If we're not using GNU ld we use -z text 11058 # though, which does catch some bad symbols but isn't as heavy-handed 11059 # as -z defs. 11060 # For security reasons, it is highly recommended that you always 11061 # use absolute paths for naming shared libraries, and exclude the 11062 # DT_RUNPATH tag from executables and libraries. But doing so 11063 # requires that you compile everything twice, which is a pain. 11064 # So that behaviour is only enabled if SCOABSPATH is set to a 11065 # non-empty value in the environment. Most likely only useful for 11066 # creating official distributions of packages. 11067 # This is a hack until libtool officially supports absolute path 11068 # names for shared libraries. 11069 no_undefined_flag_CXX='${wl}-z,text' 11070 allow_undefined_flag_CXX='${wl}-z,nodefs' 11071 archive_cmds_need_lc_CXX=no 11072 hardcode_shlibpath_var_CXX=no 11073 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11074 hardcode_libdir_separator_CXX=':' 11075 link_all_deplibs_CXX=yes 11076 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11077 runpath_var='LD_RUN_PATH' 11078 11079 case $cc_basename in 11080 CC*) 11081 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11082 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11083 ;; 11084 *) 11085 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11086 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11087 ;; 11088 esac 11089 ;; 11090 tandem*) 11091 case $cc_basename in 11092 NCC*) 11093 # NonStop-UX NCC 3.20 11094 # FIXME: insert proper C++ library support 11095 ld_shlibs_CXX=no 11096 ;; 11097 *) 11098 # FIXME: insert proper C++ library support 11099 ld_shlibs_CXX=no 11100 ;; 11101 esac 11102 ;; 11103 vxworks*) 11104 # FIXME: insert proper C++ library support 11105 ld_shlibs_CXX=no 11106 ;; 11107 *) 11108 # FIXME: insert proper C++ library support 11109 ld_shlibs_CXX=no 11110 ;; 11111esac 11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 11113$as_echo "$ld_shlibs_CXX" >&6; } 11114test "$ld_shlibs_CXX" = no && can_build_shared=no 11115 11116GCC_CXX="$GXX" 11117LD_CXX="$LD" 11118 11119## CAVEAT EMPTOR: 11120## There is no encapsulation within the following macros, do not change 11121## the running order or otherwise move them around unless you know exactly 11122## what you are doing... 11123cat > conftest.$ac_ext <<EOF 11124class Foo 11125{ 11126public: 11127 Foo (void) { a = 0; } 11128private: 11129 int a; 11130}; 11131EOF 11132 11133if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11134 (eval $ac_compile) 2>&5 11135 ac_status=$? 11136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11137 test $ac_status = 0; }; then 11138 # Parse the compiler output and extract the necessary 11139 # objects, libraries and library flags. 11140 11141 # Sentinel used to keep track of whether or not we are before 11142 # the conftest object file. 11143 pre_test_object_deps_done=no 11144 11145 # The `*' in the case matches for architectures that use `case' in 11146 # $output_verbose_cmd can trigger glob expansion during the loop 11147 # eval without this substitution. 11148 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11149 11150 for p in `eval $output_verbose_link_cmd`; do 11151 case $p in 11152 11153 -L* | -R* | -l*) 11154 # Some compilers place space between "-{L,R}" and the path. 11155 # Remove the space. 11156 if test $p = "-L" \ 11157 || test $p = "-R"; then 11158 prev=$p 11159 continue 11160 else 11161 prev= 11162 fi 11163 11164 if test "$pre_test_object_deps_done" = no; then 11165 case $p in 11166 -L* | -R*) 11167 # Internal compiler library paths should come after those 11168 # provided the user. The postdeps already come after the 11169 # user supplied libs so there is no need to process them. 11170 if test -z "$compiler_lib_search_path_CXX"; then 11171 compiler_lib_search_path_CXX="${prev}${p}" 11172 else 11173 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11174 fi 11175 ;; 11176 # The "-l" case would never come before the object being 11177 # linked, so don't bother handling this case. 11178 esac 11179 else 11180 if test -z "$postdeps_CXX"; then 11181 postdeps_CXX="${prev}${p}" 11182 else 11183 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11184 fi 11185 fi 11186 ;; 11187 11188 *.$objext) 11189 # This assumes that the test object file only shows up 11190 # once in the compiler output. 11191 if test "$p" = "conftest.$objext"; then 11192 pre_test_object_deps_done=yes 11193 continue 11194 fi 11195 11196 if test "$pre_test_object_deps_done" = no; then 11197 if test -z "$predep_objects_CXX"; then 11198 predep_objects_CXX="$p" 11199 else 11200 predep_objects_CXX="$predep_objects_CXX $p" 11201 fi 11202 else 11203 if test -z "$postdep_objects_CXX"; then 11204 postdep_objects_CXX="$p" 11205 else 11206 postdep_objects_CXX="$postdep_objects_CXX $p" 11207 fi 11208 fi 11209 ;; 11210 11211 *) ;; # Ignore the rest. 11212 11213 esac 11214 done 11215 11216 # Clean up. 11217 rm -f a.out a.exe 11218else 11219 echo "libtool.m4: error: problem compiling CXX test program" 11220fi 11221 11222$rm -f confest.$objext 11223 11224compiler_lib_search_dirs_CXX= 11225if test -n "$compiler_lib_search_path_CXX"; then 11226 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 11227fi 11228 11229# PORTME: override above test on systems where it is broken 11230case $host_os in 11231interix[3-9]*) 11232 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11233 # hack all around it, let's just trust "g++" to DTRT. 11234 predep_objects_CXX= 11235 postdep_objects_CXX= 11236 postdeps_CXX= 11237 ;; 11238 11239linux*) 11240 case `$CC -V 2>&1 | sed 5q` in 11241 *Sun\ C*) 11242 # Sun C++ 5.9 11243 # 11244 # The more standards-conforming stlport4 library is 11245 # incompatible with the Cstd library. Avoid specifying 11246 # it if it's in CXXFLAGS. Ignore libCrun as 11247 # -library=stlport4 depends on it. 11248 case " $CXX $CXXFLAGS " in 11249 *" -library=stlport4 "*) 11250 solaris_use_stlport4=yes 11251 ;; 11252 esac 11253 if test "$solaris_use_stlport4" != yes; then 11254 postdeps_CXX='-library=Cstd -library=Crun' 11255 fi 11256 ;; 11257 esac 11258 ;; 11259 11260solaris*) 11261 case $cc_basename in 11262 CC*) 11263 # The more standards-conforming stlport4 library is 11264 # incompatible with the Cstd library. Avoid specifying 11265 # it if it's in CXXFLAGS. Ignore libCrun as 11266 # -library=stlport4 depends on it. 11267 case " $CXX $CXXFLAGS " in 11268 *" -library=stlport4 "*) 11269 solaris_use_stlport4=yes 11270 ;; 11271 esac 11272 11273 # Adding this requires a known-good setup of shared libraries for 11274 # Sun compiler versions before 5.6, else PIC objects from an old 11275 # archive will be linked into the output, leading to subtle bugs. 11276 if test "$solaris_use_stlport4" != yes; then 11277 postdeps_CXX='-library=Cstd -library=Crun' 11278 fi 11279 ;; 11280 esac 11281 ;; 11282esac 11283 11284case " $postdeps_CXX " in 11285*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11286esac 11287 11288lt_prog_compiler_wl_CXX= 11289lt_prog_compiler_pic_CXX= 11290lt_prog_compiler_static_CXX= 11291 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11293$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11294 11295 # C++ specific cases for pic, static, wl, etc. 11296 if test "$GXX" = yes; then 11297 lt_prog_compiler_wl_CXX='-Wl,' 11298 lt_prog_compiler_static_CXX='-static' 11299 11300 case $host_os in 11301 aix*) 11302 # All AIX code is PIC. 11303 if test "$host_cpu" = ia64; then 11304 # AIX 5 now supports IA64 processor 11305 lt_prog_compiler_static_CXX='-Bstatic' 11306 fi 11307 ;; 11308 amigaos*) 11309 # FIXME: we need at least 68020 code to build shared libraries, but 11310 # adding the `-m68020' flag to GCC prevents building anything better, 11311 # like `-m68040'. 11312 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11313 ;; 11314 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11315 # PIC is the default for these OSes. 11316 ;; 11317 mingw* | cygwin* | os2* | pw32*) 11318 # This hack is so that the source file can tell whether it is being 11319 # built for inclusion in a dll (and should export symbols for example). 11320 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11321 # (--disable-auto-import) libraries 11322 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11323 ;; 11324 darwin* | rhapsody*) 11325 # PIC is the default on this platform 11326 # Common symbols not allowed in MH_DYLIB files 11327 lt_prog_compiler_pic_CXX='-fno-common' 11328 ;; 11329 *djgpp*) 11330 # DJGPP does not support shared libraries at all 11331 lt_prog_compiler_pic_CXX= 11332 ;; 11333 interix[3-9]*) 11334 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11335 # Instead, we relocate shared libraries at runtime. 11336 ;; 11337 sysv4*MP*) 11338 if test -d /usr/nec; then 11339 lt_prog_compiler_pic_CXX=-Kconform_pic 11340 fi 11341 ;; 11342 hpux*) 11343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11344 # not for PA HP-UX. 11345 case $host_cpu in 11346 hppa*64*|ia64*) 11347 ;; 11348 *) 11349 lt_prog_compiler_pic_CXX='-fPIC' 11350 ;; 11351 esac 11352 ;; 11353 *) 11354 lt_prog_compiler_pic_CXX='-fPIC' 11355 ;; 11356 esac 11357 else 11358 case $host_os in 11359 aix[4-9]*) 11360 # All AIX code is PIC. 11361 if test "$host_cpu" = ia64; then 11362 # AIX 5 now supports IA64 processor 11363 lt_prog_compiler_static_CXX='-Bstatic' 11364 else 11365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11366 fi 11367 ;; 11368 chorus*) 11369 case $cc_basename in 11370 cxch68*) 11371 # Green Hills C++ Compiler 11372 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 11373 ;; 11374 esac 11375 ;; 11376 darwin*) 11377 # PIC is the default on this platform 11378 # Common symbols not allowed in MH_DYLIB files 11379 case $cc_basename in 11380 xlc*) 11381 lt_prog_compiler_pic_CXX='-qnocommon' 11382 lt_prog_compiler_wl_CXX='-Wl,' 11383 ;; 11384 esac 11385 ;; 11386 dgux*) 11387 case $cc_basename in 11388 ec++*) 11389 lt_prog_compiler_pic_CXX='-KPIC' 11390 ;; 11391 ghcx*) 11392 # Green Hills C++ Compiler 11393 lt_prog_compiler_pic_CXX='-pic' 11394 ;; 11395 *) 11396 ;; 11397 esac 11398 ;; 11399 freebsd* | dragonfly*) 11400 # FreeBSD uses GNU C++ 11401 ;; 11402 hpux9* | hpux10* | hpux11*) 11403 case $cc_basename in 11404 CC*) 11405 lt_prog_compiler_wl_CXX='-Wl,' 11406 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11407 if test "$host_cpu" != ia64; then 11408 lt_prog_compiler_pic_CXX='+Z' 11409 fi 11410 ;; 11411 aCC*) 11412 lt_prog_compiler_wl_CXX='-Wl,' 11413 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11414 case $host_cpu in 11415 hppa*64*|ia64*) 11416 # +Z the default 11417 ;; 11418 *) 11419 lt_prog_compiler_pic_CXX='+Z' 11420 ;; 11421 esac 11422 ;; 11423 *) 11424 ;; 11425 esac 11426 ;; 11427 interix*) 11428 # This is c89, which is MS Visual C++ (no shared libs) 11429 # Anyone wants to do a port? 11430 ;; 11431 irix5* | irix6* | nonstopux*) 11432 case $cc_basename in 11433 CC*) 11434 lt_prog_compiler_wl_CXX='-Wl,' 11435 lt_prog_compiler_static_CXX='-non_shared' 11436 # CC pic flag -KPIC is the default. 11437 ;; 11438 *) 11439 ;; 11440 esac 11441 ;; 11442 linux* | k*bsd*-gnu) 11443 case $cc_basename in 11444 KCC*) 11445 # KAI C++ Compiler 11446 lt_prog_compiler_wl_CXX='--backend -Wl,' 11447 lt_prog_compiler_pic_CXX='-fPIC' 11448 ;; 11449 icpc* | ecpc*) 11450 # Intel C++ 11451 lt_prog_compiler_wl_CXX='-Wl,' 11452 lt_prog_compiler_pic_CXX='-KPIC' 11453 lt_prog_compiler_static_CXX='-static' 11454 ;; 11455 pgCC* | pgcpp*) 11456 # Portland Group C++ compiler. 11457 lt_prog_compiler_wl_CXX='-Wl,' 11458 lt_prog_compiler_pic_CXX='-fpic' 11459 lt_prog_compiler_static_CXX='-Bstatic' 11460 ;; 11461 cxx*) 11462 # Compaq C++ 11463 # Make sure the PIC flag is empty. It appears that all Alpha 11464 # Linux and Compaq Tru64 Unix objects are PIC. 11465 lt_prog_compiler_pic_CXX= 11466 lt_prog_compiler_static_CXX='-non_shared' 11467 ;; 11468 *) 11469 case `$CC -V 2>&1 | sed 5q` in 11470 *Sun\ C*) 11471 # Sun C++ 5.9 11472 lt_prog_compiler_pic_CXX='-KPIC' 11473 lt_prog_compiler_static_CXX='-Bstatic' 11474 lt_prog_compiler_wl_CXX='-Qoption ld ' 11475 ;; 11476 esac 11477 ;; 11478 esac 11479 ;; 11480 lynxos*) 11481 ;; 11482 m88k*) 11483 ;; 11484 mvs*) 11485 case $cc_basename in 11486 cxx*) 11487 lt_prog_compiler_pic_CXX='-W c,exportall' 11488 ;; 11489 *) 11490 ;; 11491 esac 11492 ;; 11493 netbsd*) 11494 ;; 11495 osf3* | osf4* | osf5*) 11496 case $cc_basename in 11497 KCC*) 11498 lt_prog_compiler_wl_CXX='--backend -Wl,' 11499 ;; 11500 RCC*) 11501 # Rational C++ 2.4.1 11502 lt_prog_compiler_pic_CXX='-pic' 11503 ;; 11504 cxx*) 11505 # Digital/Compaq C++ 11506 lt_prog_compiler_wl_CXX='-Wl,' 11507 # Make sure the PIC flag is empty. It appears that all Alpha 11508 # Linux and Compaq Tru64 Unix objects are PIC. 11509 lt_prog_compiler_pic_CXX= 11510 lt_prog_compiler_static_CXX='-non_shared' 11511 ;; 11512 *) 11513 ;; 11514 esac 11515 ;; 11516 psos*) 11517 ;; 11518 solaris*) 11519 case $cc_basename in 11520 CC*) 11521 # Sun C++ 4.2, 5.x and Centerline C++ 11522 lt_prog_compiler_pic_CXX='-KPIC' 11523 lt_prog_compiler_static_CXX='-Bstatic' 11524 lt_prog_compiler_wl_CXX='-Qoption ld ' 11525 ;; 11526 gcx*) 11527 # Green Hills C++ Compiler 11528 lt_prog_compiler_pic_CXX='-PIC' 11529 ;; 11530 *) 11531 ;; 11532 esac 11533 ;; 11534 sunos4*) 11535 case $cc_basename in 11536 CC*) 11537 # Sun C++ 4.x 11538 lt_prog_compiler_pic_CXX='-pic' 11539 lt_prog_compiler_static_CXX='-Bstatic' 11540 ;; 11541 lcc*) 11542 # Lucid 11543 lt_prog_compiler_pic_CXX='-pic' 11544 ;; 11545 *) 11546 ;; 11547 esac 11548 ;; 11549 tandem*) 11550 case $cc_basename in 11551 NCC*) 11552 # NonStop-UX NCC 3.20 11553 lt_prog_compiler_pic_CXX='-KPIC' 11554 ;; 11555 *) 11556 ;; 11557 esac 11558 ;; 11559 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11560 case $cc_basename in 11561 CC*) 11562 lt_prog_compiler_wl_CXX='-Wl,' 11563 lt_prog_compiler_pic_CXX='-KPIC' 11564 lt_prog_compiler_static_CXX='-Bstatic' 11565 ;; 11566 esac 11567 ;; 11568 vxworks*) 11569 ;; 11570 *) 11571 lt_prog_compiler_can_build_shared_CXX=no 11572 ;; 11573 esac 11574 fi 11575 11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 11577$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 11578 11579# 11580# Check to make sure the PIC flag actually works. 11581# 11582if test -n "$lt_prog_compiler_pic_CXX"; then 11583 11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11585$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 11586if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 11587 $as_echo_n "(cached) " >&6 11588else 11589 lt_cv_prog_compiler_pic_works_CXX=no 11590 ac_outfile=conftest.$ac_objext 11591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11592 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11593 # Insert the option either (1) after the last *FLAGS variable, or 11594 # (2) before a word containing "conftest.", or (3) at the end. 11595 # Note that $ac_compile itself does not contain backslashes and begins 11596 # with a dollar sign (not a hyphen), so the echo should work correctly. 11597 # The option is referenced via a variable to avoid confusing sed. 11598 lt_compile=`echo "$ac_compile" | $SED \ 11599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11601 -e 's:$: $lt_compiler_flag:'` 11602 (eval echo "\"\$as_me:11602: $lt_compile\"" >&5) 11603 (eval "$lt_compile" 2>conftest.err) 11604 ac_status=$? 11605 cat conftest.err >&5 11606 echo "$as_me:11606: \$? = $ac_status" >&5 11607 if (exit $ac_status) && test -s "$ac_outfile"; then 11608 # The compiler can only warn and ignore the option if not recognized 11609 # So say no if there are warnings other than the usual output. 11610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11613 lt_cv_prog_compiler_pic_works_CXX=yes 11614 fi 11615 fi 11616 $rm conftest* 11617 11618fi 11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 11620$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 11621 11622if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 11623 case $lt_prog_compiler_pic_CXX in 11624 "" | " "*) ;; 11625 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11626 esac 11627else 11628 lt_prog_compiler_pic_CXX= 11629 lt_prog_compiler_can_build_shared_CXX=no 11630fi 11631 11632fi 11633case $host_os in 11634 # For platforms which do not support PIC, -DPIC is meaningless: 11635 *djgpp*) 11636 lt_prog_compiler_pic_CXX= 11637 ;; 11638 *) 11639 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11640 ;; 11641esac 11642 11643# 11644# Check to make sure the static flag actually works. 11645# 11646wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11648$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11649if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 11650 $as_echo_n "(cached) " >&6 11651else 11652 lt_cv_prog_compiler_static_works_CXX=no 11653 save_LDFLAGS="$LDFLAGS" 11654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11655 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11657 # The linker can only warn and ignore the option if not recognized 11658 # So say no if there are warnings 11659 if test -s conftest.err; then 11660 # Append any errors to the config.log. 11661 cat conftest.err 1>&5 11662 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11664 if diff conftest.exp conftest.er2 >/dev/null; then 11665 lt_cv_prog_compiler_static_works_CXX=yes 11666 fi 11667 else 11668 lt_cv_prog_compiler_static_works_CXX=yes 11669 fi 11670 fi 11671 $rm -r conftest* 11672 LDFLAGS="$save_LDFLAGS" 11673 11674fi 11675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 11676$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 11677 11678if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 11679 : 11680else 11681 lt_prog_compiler_static_CXX= 11682fi 11683 11684 11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11686$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11687if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 11688 $as_echo_n "(cached) " >&6 11689else 11690 lt_cv_prog_compiler_c_o_CXX=no 11691 $rm -r conftest 2>/dev/null 11692 mkdir conftest 11693 cd conftest 11694 mkdir out 11695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11696 11697 lt_compiler_flag="-o out/conftest2.$ac_objext" 11698 # Insert the option either (1) after the last *FLAGS variable, or 11699 # (2) before a word containing "conftest.", or (3) at the end. 11700 # Note that $ac_compile itself does not contain backslashes and begins 11701 # with a dollar sign (not a hyphen), so the echo should work correctly. 11702 lt_compile=`echo "$ac_compile" | $SED \ 11703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11705 -e 's:$: $lt_compiler_flag:'` 11706 (eval echo "\"\$as_me:11706: $lt_compile\"" >&5) 11707 (eval "$lt_compile" 2>out/conftest.err) 11708 ac_status=$? 11709 cat out/conftest.err >&5 11710 echo "$as_me:11710: \$? = $ac_status" >&5 11711 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11712 then 11713 # The compiler can only warn and ignore the option if not recognized 11714 # So say no if there are warnings 11715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11718 lt_cv_prog_compiler_c_o_CXX=yes 11719 fi 11720 fi 11721 chmod u+w . 2>&5 11722 $rm conftest* 11723 # SGI C++ compiler will create directory out/ii_files/ for 11724 # template instantiation 11725 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11726 $rm out/* && rmdir out 11727 cd .. 11728 rmdir conftest 11729 $rm conftest* 11730 11731fi 11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11733$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 11734 11735 11736hard_links="nottested" 11737if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11738 # do not overwrite the value of need_locks provided by the user 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11740$as_echo_n "checking if we can lock with hard links... " >&6; } 11741 hard_links=yes 11742 $rm conftest* 11743 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11744 touch conftest.a 11745 ln conftest.a conftest.b 2>&5 || hard_links=no 11746 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11748$as_echo "$hard_links" >&6; } 11749 if test "$hard_links" = no; then 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11751$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11752 need_locks=warn 11753 fi 11754else 11755 need_locks=no 11756fi 11757 11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11759$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11760 11761 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11762 case $host_os in 11763 aix[4-9]*) 11764 # If we're using GNU nm, then we don't want the "-C" option. 11765 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11766 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11767 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 11768 else 11769 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 11770 fi 11771 ;; 11772 pw32*) 11773 export_symbols_cmds_CXX="$ltdll_cmds" 11774 ;; 11775 cygwin* | mingw*) 11776 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11777 ;; 11778 *) 11779 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11780 ;; 11781 esac 11782 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11783 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 11785$as_echo "$ld_shlibs_CXX" >&6; } 11786test "$ld_shlibs_CXX" = no && can_build_shared=no 11787 11788# 11789# Do we need to explicitly link libc? 11790# 11791case "x$archive_cmds_need_lc_CXX" in 11792x|xyes) 11793 # Assume -lc should be added 11794 archive_cmds_need_lc_CXX=yes 11795 11796 if test "$enable_shared" = yes && test "$GCC" = yes; then 11797 case $archive_cmds_CXX in 11798 *'~'*) 11799 # FIXME: we may have to deal with multi-command sequences. 11800 ;; 11801 '$CC '*) 11802 # Test whether the compiler implicitly links with -lc since on some 11803 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11804 # to ld, don't add -lc before -lgcc. 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11806$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11807 $rm conftest* 11808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11809 11810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11811 (eval $ac_compile) 2>&5 11812 ac_status=$? 11813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11814 test $ac_status = 0; } 2>conftest.err; then 11815 soname=conftest 11816 lib=conftest 11817 libobjs=conftest.$ac_objext 11818 deplibs= 11819 wl=$lt_prog_compiler_wl_CXX 11820 pic_flag=$lt_prog_compiler_pic_CXX 11821 compiler_flags=-v 11822 linker_flags=-v 11823 verstring= 11824 output_objdir=. 11825 libname=conftest 11826 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11827 allow_undefined_flag_CXX= 11828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11829 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11830 ac_status=$? 11831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11832 test $ac_status = 0; } 11833 then 11834 archive_cmds_need_lc_CXX=no 11835 else 11836 archive_cmds_need_lc_CXX=yes 11837 fi 11838 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11839 else 11840 cat conftest.err 1>&5 11841 fi 11842 $rm conftest* 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 11844$as_echo "$archive_cmds_need_lc_CXX" >&6; } 11845 ;; 11846 esac 11847 fi 11848 ;; 11849esac 11850 11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11852$as_echo_n "checking dynamic linker characteristics... " >&6; } 11853library_names_spec= 11854libname_spec='lib$name' 11855soname_spec= 11856shrext_cmds=".so" 11857postinstall_cmds= 11858postuninstall_cmds= 11859finish_cmds= 11860finish_eval= 11861shlibpath_var= 11862shlibpath_overrides_runpath=unknown 11863version_type=none 11864dynamic_linker="$host_os ld.so" 11865sys_lib_dlsearch_path_spec="/lib /usr/lib" 11866 11867need_lib_prefix=unknown 11868hardcode_into_libs=no 11869 11870# when you set need_version to no, make sure it does not cause -set_version 11871# flags to be left without arguments 11872need_version=unknown 11873 11874case $host_os in 11875aix3*) 11876 version_type=linux 11877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11878 shlibpath_var=LIBPATH 11879 11880 # AIX 3 has no versioning support, so we append a major version to the name. 11881 soname_spec='${libname}${release}${shared_ext}$major' 11882 ;; 11883 11884aix[4-9]*) 11885 version_type=linux 11886 need_lib_prefix=no 11887 need_version=no 11888 hardcode_into_libs=yes 11889 if test "$host_cpu" = ia64; then 11890 # AIX 5 supports IA64 11891 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11892 shlibpath_var=LD_LIBRARY_PATH 11893 else 11894 # With GCC up to 2.95.x, collect2 would create an import file 11895 # for dependence libraries. The import file would start with 11896 # the line `#! .'. This would cause the generated library to 11897 # depend on `.', always an invalid library. This was fixed in 11898 # development snapshots of GCC prior to 3.0. 11899 case $host_os in 11900 aix4 | aix4.[01] | aix4.[01].*) 11901 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11902 echo ' yes ' 11903 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11904 : 11905 else 11906 can_build_shared=no 11907 fi 11908 ;; 11909 esac 11910 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11911 # soname into executable. Probably we can add versioning support to 11912 # collect2, so additional links can be useful in future. 11913 if test "$aix_use_runtimelinking" = yes; then 11914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11915 # instead of lib<name>.a to let people know that these are not 11916 # typical AIX shared libraries. 11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11918 else 11919 # We preserve .a as extension for shared libraries through AIX4.2 11920 # and later when we are not doing run time linking. 11921 library_names_spec='${libname}${release}.a $libname.a' 11922 soname_spec='${libname}${release}${shared_ext}$major' 11923 fi 11924 shlibpath_var=LIBPATH 11925 fi 11926 ;; 11927 11928amigaos*) 11929 library_names_spec='$libname.ixlibrary $libname.a' 11930 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11931 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' 11932 ;; 11933 11934beos*) 11935 library_names_spec='${libname}${shared_ext}' 11936 dynamic_linker="$host_os ld.so" 11937 shlibpath_var=LIBRARY_PATH 11938 ;; 11939 11940bsdi[45]*) 11941 version_type=linux 11942 need_version=no 11943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11944 soname_spec='${libname}${release}${shared_ext}$major' 11945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11946 shlibpath_var=LD_LIBRARY_PATH 11947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11949 # the default ld.so.conf also contains /usr/contrib/lib and 11950 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11951 # libtool to hard-code these into programs 11952 ;; 11953 11954cygwin* | mingw* | pw32*) 11955 version_type=windows 11956 shrext_cmds=".dll" 11957 need_version=no 11958 need_lib_prefix=no 11959 11960 case $GCC,$host_os in 11961 yes,cygwin* | yes,mingw* | yes,pw32*) 11962 library_names_spec='$libname.dll.a' 11963 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11964 postinstall_cmds='base_file=`basename \${file}`~ 11965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11966 dldir=$destdir/`dirname \$dlpath`~ 11967 test -d \$dldir || mkdir -p \$dldir~ 11968 $install_prog $dir/$dlname \$dldir/$dlname~ 11969 chmod a+x \$dldir/$dlname' 11970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11971 dlpath=$dir/\$dldll~ 11972 $rm \$dlpath' 11973 shlibpath_overrides_runpath=yes 11974 11975 case $host_os in 11976 cygwin*) 11977 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11978 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11979 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11980 ;; 11981 mingw*) 11982 # MinGW DLLs use traditional 'lib' prefix 11983 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11984 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11985 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11986 # It is most probably a Windows format PATH printed by 11987 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11988 # path with ; separators, and with drive letters. We can handle the 11989 # drive letters (cygwin fileutils understands them), so leave them, 11990 # especially as we might pass files found there to a mingw objdump, 11991 # which wouldn't understand a cygwinified path. Ahh. 11992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11993 else 11994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11995 fi 11996 ;; 11997 pw32*) 11998 # pw32 DLLs use 'pw' prefix rather than 'lib' 11999 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12000 ;; 12001 esac 12002 ;; 12003 12004 *) 12005 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12006 ;; 12007 esac 12008 dynamic_linker='Win32 ld.exe' 12009 # FIXME: first we should search . and the directory the executable is in 12010 shlibpath_var=PATH 12011 ;; 12012 12013darwin* | rhapsody*) 12014 dynamic_linker="$host_os dyld" 12015 version_type=darwin 12016 need_lib_prefix=no 12017 need_version=no 12018 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12019 soname_spec='${libname}${release}${major}$shared_ext' 12020 shlibpath_overrides_runpath=yes 12021 shlibpath_var=DYLD_LIBRARY_PATH 12022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12023 12024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12025 ;; 12026 12027dgux*) 12028 version_type=linux 12029 need_lib_prefix=no 12030 need_version=no 12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12032 soname_spec='${libname}${release}${shared_ext}$major' 12033 shlibpath_var=LD_LIBRARY_PATH 12034 ;; 12035 12036freebsd1*) 12037 dynamic_linker=no 12038 ;; 12039 12040freebsd* | dragonfly*) 12041 # DragonFly does not have aout. When/if they implement a new 12042 # versioning mechanism, adjust this. 12043 if test -x /usr/bin/objformat; then 12044 objformat=`/usr/bin/objformat` 12045 else 12046 case $host_os in 12047 freebsd[123]*) objformat=aout ;; 12048 *) objformat=elf ;; 12049 esac 12050 fi 12051 version_type=freebsd-$objformat 12052 case $version_type in 12053 freebsd-elf*) 12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12055 need_version=no 12056 need_lib_prefix=no 12057 ;; 12058 freebsd-*) 12059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12060 need_version=yes 12061 ;; 12062 esac 12063 shlibpath_var=LD_LIBRARY_PATH 12064 case $host_os in 12065 freebsd2*) 12066 shlibpath_overrides_runpath=yes 12067 ;; 12068 freebsd3.[01]* | freebsdelf3.[01]*) 12069 shlibpath_overrides_runpath=yes 12070 hardcode_into_libs=yes 12071 ;; 12072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12074 shlibpath_overrides_runpath=no 12075 hardcode_into_libs=yes 12076 ;; 12077 *) # from 4.6 on, and DragonFly 12078 shlibpath_overrides_runpath=yes 12079 hardcode_into_libs=yes 12080 ;; 12081 esac 12082 ;; 12083 12084gnu*) 12085 version_type=linux 12086 need_lib_prefix=no 12087 need_version=no 12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12089 soname_spec='${libname}${release}${shared_ext}$major' 12090 shlibpath_var=LD_LIBRARY_PATH 12091 hardcode_into_libs=yes 12092 ;; 12093 12094hpux9* | hpux10* | hpux11*) 12095 # Give a soname corresponding to the major version so that dld.sl refuses to 12096 # link against other versions. 12097 version_type=sunos 12098 need_lib_prefix=no 12099 need_version=no 12100 case $host_cpu in 12101 ia64*) 12102 shrext_cmds='.so' 12103 hardcode_into_libs=yes 12104 dynamic_linker="$host_os dld.so" 12105 shlibpath_var=LD_LIBRARY_PATH 12106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12108 soname_spec='${libname}${release}${shared_ext}$major' 12109 if test "X$HPUX_IA64_MODE" = X32; then 12110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12111 else 12112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12113 fi 12114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12115 ;; 12116 hppa*64*) 12117 shrext_cmds='.sl' 12118 hardcode_into_libs=yes 12119 dynamic_linker="$host_os dld.sl" 12120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12123 soname_spec='${libname}${release}${shared_ext}$major' 12124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12126 ;; 12127 *) 12128 shrext_cmds='.sl' 12129 dynamic_linker="$host_os dld.sl" 12130 shlibpath_var=SHLIB_PATH 12131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12133 soname_spec='${libname}${release}${shared_ext}$major' 12134 ;; 12135 esac 12136 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12137 postinstall_cmds='chmod 555 $lib' 12138 ;; 12139 12140interix[3-9]*) 12141 version_type=linux 12142 need_lib_prefix=no 12143 need_version=no 12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12145 soname_spec='${libname}${release}${shared_ext}$major' 12146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12147 shlibpath_var=LD_LIBRARY_PATH 12148 shlibpath_overrides_runpath=no 12149 hardcode_into_libs=yes 12150 ;; 12151 12152irix5* | irix6* | nonstopux*) 12153 case $host_os in 12154 nonstopux*) version_type=nonstopux ;; 12155 *) 12156 if test "$lt_cv_prog_gnu_ld" = yes; then 12157 version_type=linux 12158 else 12159 version_type=irix 12160 fi ;; 12161 esac 12162 need_lib_prefix=no 12163 need_version=no 12164 soname_spec='${libname}${release}${shared_ext}$major' 12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12166 case $host_os in 12167 irix5* | nonstopux*) 12168 libsuff= shlibsuff= 12169 ;; 12170 *) 12171 case $LD in # libtool.m4 will add one of these switches to LD 12172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12173 libsuff= shlibsuff= libmagic=32-bit;; 12174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12175 libsuff=32 shlibsuff=N32 libmagic=N32;; 12176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12177 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12178 *) libsuff= shlibsuff= libmagic=never-match;; 12179 esac 12180 ;; 12181 esac 12182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12183 shlibpath_overrides_runpath=no 12184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12186 hardcode_into_libs=yes 12187 ;; 12188 12189# No shared lib support for Linux oldld, aout, or coff. 12190linux*oldld* | linux*aout* | linux*coff*) 12191 dynamic_linker=no 12192 ;; 12193 12194# This must be Linux ELF. 12195linux* | k*bsd*-gnu) 12196 version_type=linux 12197 need_lib_prefix=no 12198 need_version=no 12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12200 soname_spec='${libname}${release}${shared_ext}$major' 12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12202 shlibpath_var=LD_LIBRARY_PATH 12203 shlibpath_overrides_runpath=no 12204 # This implies no fast_install, which is unacceptable. 12205 # Some rework will be needed to allow for fast_install 12206 # before this can be enabled. 12207 hardcode_into_libs=yes 12208 12209 # Append ld.so.conf contents to the search path 12210 if test -f /etc/ld.so.conf; then 12211 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12213 fi 12214 12215 # We used to test for /lib/ld.so.1 and disable shared libraries on 12216 # powerpc, because MkLinux only supported shared libraries with the 12217 # GNU dynamic linker. Since this was broken with cross compilers, 12218 # most powerpc-linux boxes support dynamic linking these days and 12219 # people can always --disable-shared, the test was removed, and we 12220 # assume the GNU/Linux dynamic linker is in use. 12221 dynamic_linker='GNU/Linux ld.so' 12222 ;; 12223 12224netbsd*) 12225 version_type=sunos 12226 need_lib_prefix=no 12227 need_version=no 12228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12231 dynamic_linker='NetBSD (a.out) ld.so' 12232 else 12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12234 soname_spec='${libname}${release}${shared_ext}$major' 12235 dynamic_linker='NetBSD ld.elf_so' 12236 fi 12237 shlibpath_var=LD_LIBRARY_PATH 12238 shlibpath_overrides_runpath=yes 12239 hardcode_into_libs=yes 12240 ;; 12241 12242newsos6) 12243 version_type=linux 12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12245 shlibpath_var=LD_LIBRARY_PATH 12246 shlibpath_overrides_runpath=yes 12247 ;; 12248 12249nto-qnx*) 12250 version_type=linux 12251 need_lib_prefix=no 12252 need_version=no 12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12254 soname_spec='${libname}${release}${shared_ext}$major' 12255 shlibpath_var=LD_LIBRARY_PATH 12256 shlibpath_overrides_runpath=yes 12257 ;; 12258 12259openbsd*) 12260 version_type=sunos 12261 sys_lib_dlsearch_path_spec="/usr/lib" 12262 need_lib_prefix=no 12263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12264 case $host_os in 12265 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12266 *) need_version=no ;; 12267 esac 12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12270 shlibpath_var=LD_LIBRARY_PATH 12271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12272 case $host_os in 12273 openbsd2.[89] | openbsd2.[89].*) 12274 shlibpath_overrides_runpath=no 12275 ;; 12276 *) 12277 shlibpath_overrides_runpath=yes 12278 ;; 12279 esac 12280 else 12281 shlibpath_overrides_runpath=yes 12282 fi 12283 ;; 12284 12285os2*) 12286 libname_spec='$name' 12287 shrext_cmds=".dll" 12288 need_lib_prefix=no 12289 library_names_spec='$libname${shared_ext} $libname.a' 12290 dynamic_linker='OS/2 ld.exe' 12291 shlibpath_var=LIBPATH 12292 ;; 12293 12294osf3* | osf4* | osf5*) 12295 version_type=osf 12296 need_lib_prefix=no 12297 need_version=no 12298 soname_spec='${libname}${release}${shared_ext}$major' 12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12300 shlibpath_var=LD_LIBRARY_PATH 12301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12303 ;; 12304 12305rdos*) 12306 dynamic_linker=no 12307 ;; 12308 12309solaris*) 12310 version_type=linux 12311 need_lib_prefix=no 12312 need_version=no 12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12314 soname_spec='${libname}${release}${shared_ext}$major' 12315 shlibpath_var=LD_LIBRARY_PATH 12316 shlibpath_overrides_runpath=yes 12317 hardcode_into_libs=yes 12318 # ldd complains unless libraries are executable 12319 postinstall_cmds='chmod +x $lib' 12320 ;; 12321 12322sunos4*) 12323 version_type=sunos 12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12326 shlibpath_var=LD_LIBRARY_PATH 12327 shlibpath_overrides_runpath=yes 12328 if test "$with_gnu_ld" = yes; then 12329 need_lib_prefix=no 12330 fi 12331 need_version=yes 12332 ;; 12333 12334sysv4 | sysv4.3*) 12335 version_type=linux 12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12337 soname_spec='${libname}${release}${shared_ext}$major' 12338 shlibpath_var=LD_LIBRARY_PATH 12339 case $host_vendor in 12340 sni) 12341 shlibpath_overrides_runpath=no 12342 need_lib_prefix=no 12343 export_dynamic_flag_spec='${wl}-Blargedynsym' 12344 runpath_var=LD_RUN_PATH 12345 ;; 12346 siemens) 12347 need_lib_prefix=no 12348 ;; 12349 motorola) 12350 need_lib_prefix=no 12351 need_version=no 12352 shlibpath_overrides_runpath=no 12353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12354 ;; 12355 esac 12356 ;; 12357 12358sysv4*MP*) 12359 if test -d /usr/nec ;then 12360 version_type=linux 12361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12362 soname_spec='$libname${shared_ext}.$major' 12363 shlibpath_var=LD_LIBRARY_PATH 12364 fi 12365 ;; 12366 12367sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12368 version_type=freebsd-elf 12369 need_lib_prefix=no 12370 need_version=no 12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12372 soname_spec='${libname}${release}${shared_ext}$major' 12373 shlibpath_var=LD_LIBRARY_PATH 12374 hardcode_into_libs=yes 12375 if test "$with_gnu_ld" = yes; then 12376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12377 shlibpath_overrides_runpath=no 12378 else 12379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12380 shlibpath_overrides_runpath=yes 12381 case $host_os in 12382 sco3.2v5*) 12383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12384 ;; 12385 esac 12386 fi 12387 sys_lib_dlsearch_path_spec='/usr/lib' 12388 ;; 12389 12390uts4*) 12391 version_type=linux 12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12393 soname_spec='${libname}${release}${shared_ext}$major' 12394 shlibpath_var=LD_LIBRARY_PATH 12395 ;; 12396 12397*) 12398 dynamic_linker=no 12399 ;; 12400esac 12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12402$as_echo "$dynamic_linker" >&6; } 12403test "$dynamic_linker" = no && can_build_shared=no 12404 12405if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 12406 $as_echo_n "(cached) " >&6 12407else 12408 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 12409fi 12410 12411sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12412if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 12413 $as_echo_n "(cached) " >&6 12414else 12415 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 12416fi 12417 12418sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12419 12420variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12421if test "$GCC" = yes; then 12422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12423fi 12424 12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12426$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12427hardcode_action_CXX= 12428if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12429 test -n "$runpath_var_CXX" || \ 12430 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12431 12432 # We can hardcode non-existant directories. 12433 if test "$hardcode_direct_CXX" != no && 12434 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12435 # have to relink, otherwise we might link with an installed library 12436 # when we should be linking with a yet-to-be-installed one 12437 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12438 test "$hardcode_minus_L_CXX" != no; then 12439 # Linking always hardcodes the temporary library directory. 12440 hardcode_action_CXX=relink 12441 else 12442 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12443 hardcode_action_CXX=immediate 12444 fi 12445else 12446 # We cannot hardcode anything, or else we can only hardcode existing 12447 # directories. 12448 hardcode_action_CXX=unsupported 12449fi 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 12451$as_echo "$hardcode_action_CXX" >&6; } 12452 12453if test "$hardcode_action_CXX" = relink; then 12454 # Fast installation is not supported 12455 enable_fast_install=no 12456elif test "$shlibpath_overrides_runpath" = yes || 12457 test "$enable_shared" = no; then 12458 # Fast installation is not necessary 12459 enable_fast_install=needless 12460fi 12461 12462 12463# The else clause should only fire when bootstrapping the 12464# libtool distribution, otherwise you forgot to ship ltmain.sh 12465# with your package, and you will get complaints that there are 12466# no rules to generate ltmain.sh. 12467if test -f "$ltmain"; then 12468 # See if we are running on zsh, and set the options which allow our commands through 12469 # without removal of \ escapes. 12470 if test -n "${ZSH_VERSION+set}" ; then 12471 setopt NO_GLOB_SUBST 12472 fi 12473 # Now quote all the things that may contain metacharacters while being 12474 # careful not to overquote the AC_SUBSTed values. We take copies of the 12475 # variables and quote the copies for generation of the libtool script. 12476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12477 SED SHELL STRIP \ 12478 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12479 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12480 deplibs_check_method reload_flag reload_cmds need_locks \ 12481 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12482 lt_cv_sys_global_symbol_to_c_name_address \ 12483 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12484 old_postinstall_cmds old_postuninstall_cmds \ 12485 compiler_CXX \ 12486 CC_CXX \ 12487 LD_CXX \ 12488 lt_prog_compiler_wl_CXX \ 12489 lt_prog_compiler_pic_CXX \ 12490 lt_prog_compiler_static_CXX \ 12491 lt_prog_compiler_no_builtin_flag_CXX \ 12492 export_dynamic_flag_spec_CXX \ 12493 thread_safe_flag_spec_CXX \ 12494 whole_archive_flag_spec_CXX \ 12495 enable_shared_with_static_runtimes_CXX \ 12496 old_archive_cmds_CXX \ 12497 old_archive_from_new_cmds_CXX \ 12498 predep_objects_CXX \ 12499 postdep_objects_CXX \ 12500 predeps_CXX \ 12501 postdeps_CXX \ 12502 compiler_lib_search_path_CXX \ 12503 compiler_lib_search_dirs_CXX \ 12504 archive_cmds_CXX \ 12505 archive_expsym_cmds_CXX \ 12506 postinstall_cmds_CXX \ 12507 postuninstall_cmds_CXX \ 12508 old_archive_from_expsyms_cmds_CXX \ 12509 allow_undefined_flag_CXX \ 12510 no_undefined_flag_CXX \ 12511 export_symbols_cmds_CXX \ 12512 hardcode_libdir_flag_spec_CXX \ 12513 hardcode_libdir_flag_spec_ld_CXX \ 12514 hardcode_libdir_separator_CXX \ 12515 hardcode_automatic_CXX \ 12516 module_cmds_CXX \ 12517 module_expsym_cmds_CXX \ 12518 lt_cv_prog_compiler_c_o_CXX \ 12519 fix_srcfile_path_CXX \ 12520 exclude_expsyms_CXX \ 12521 include_expsyms_CXX; do 12522 12523 case $var in 12524 old_archive_cmds_CXX | \ 12525 old_archive_from_new_cmds_CXX | \ 12526 archive_cmds_CXX | \ 12527 archive_expsym_cmds_CXX | \ 12528 module_cmds_CXX | \ 12529 module_expsym_cmds_CXX | \ 12530 old_archive_from_expsyms_cmds_CXX | \ 12531 export_symbols_cmds_CXX | \ 12532 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12533 postinstall_cmds | postuninstall_cmds | \ 12534 old_postinstall_cmds | old_postuninstall_cmds | \ 12535 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12536 # Double-quote double-evaled strings. 12537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12538 ;; 12539 *) 12540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12541 ;; 12542 esac 12543 done 12544 12545 case $lt_echo in 12546 *'\$0 --fallback-echo"') 12547 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12548 ;; 12549 esac 12550 12551cfgfile="$ofile" 12552 12553 cat <<__EOF__ >> "$cfgfile" 12554# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12555 12556# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12557 12558# Shell to use when invoking shell scripts. 12559SHELL=$lt_SHELL 12560 12561# Whether or not to build shared libraries. 12562build_libtool_libs=$enable_shared 12563 12564# Whether or not to build static libraries. 12565build_old_libs=$enable_static 12566 12567# Whether or not to add -lc for building shared libraries. 12568build_libtool_need_lc=$archive_cmds_need_lc_CXX 12569 12570# Whether or not to disallow shared libs when runtime libs are static 12571allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12572 12573# Whether or not to optimize for fast installation. 12574fast_install=$enable_fast_install 12575 12576# The host system. 12577host_alias=$host_alias 12578host=$host 12579host_os=$host_os 12580 12581# The build system. 12582build_alias=$build_alias 12583build=$build 12584build_os=$build_os 12585 12586# An echo program that does not interpret backslashes. 12587echo=$lt_echo 12588 12589# The archiver. 12590AR=$lt_AR 12591AR_FLAGS=$lt_AR_FLAGS 12592 12593# A C compiler. 12594LTCC=$lt_LTCC 12595 12596# LTCC compiler flags. 12597LTCFLAGS=$lt_LTCFLAGS 12598 12599# A language-specific compiler. 12600CC=$lt_compiler_CXX 12601 12602# Is the compiler the GNU C compiler? 12603with_gcc=$GCC_CXX 12604 12605# An ERE matcher. 12606EGREP=$lt_EGREP 12607 12608# The linker used to build libraries. 12609LD=$lt_LD_CXX 12610 12611# Whether we need hard or soft links. 12612LN_S=$lt_LN_S 12613 12614# A BSD-compatible nm program. 12615NM=$lt_NM 12616 12617# A symbol stripping program 12618STRIP=$lt_STRIP 12619 12620# Used to examine libraries when file_magic_cmd begins "file" 12621MAGIC_CMD=$MAGIC_CMD 12622 12623# Used on cygwin: DLL creation program. 12624DLLTOOL="$DLLTOOL" 12625 12626# Used on cygwin: object dumper. 12627OBJDUMP="$OBJDUMP" 12628 12629# Used on cygwin: assembler. 12630AS="$AS" 12631 12632# The name of the directory that contains temporary libtool files. 12633objdir=$objdir 12634 12635# How to create reloadable object files. 12636reload_flag=$lt_reload_flag 12637reload_cmds=$lt_reload_cmds 12638 12639# How to pass a linker flag through the compiler. 12640wl=$lt_lt_prog_compiler_wl_CXX 12641 12642# Object file suffix (normally "o"). 12643objext="$ac_objext" 12644 12645# Old archive suffix (normally "a"). 12646libext="$libext" 12647 12648# Shared library suffix (normally ".so"). 12649shrext_cmds='$shrext_cmds' 12650 12651# Executable file suffix (normally ""). 12652exeext="$exeext" 12653 12654# Additional compiler flags for building library objects. 12655pic_flag=$lt_lt_prog_compiler_pic_CXX 12656pic_mode=$pic_mode 12657 12658# What is the maximum length of a command? 12659max_cmd_len=$lt_cv_sys_max_cmd_len 12660 12661# Does compiler simultaneously support -c and -o options? 12662compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12663 12664# Must we lock files when doing compilation? 12665need_locks=$lt_need_locks 12666 12667# Do we need the lib prefix for modules? 12668need_lib_prefix=$need_lib_prefix 12669 12670# Do we need a version for libraries? 12671need_version=$need_version 12672 12673# Whether dlopen is supported. 12674dlopen_support=$enable_dlopen 12675 12676# Whether dlopen of programs is supported. 12677dlopen_self=$enable_dlopen_self 12678 12679# Whether dlopen of statically linked programs is supported. 12680dlopen_self_static=$enable_dlopen_self_static 12681 12682# Compiler flag to prevent dynamic linking. 12683link_static_flag=$lt_lt_prog_compiler_static_CXX 12684 12685# Compiler flag to turn off builtin functions. 12686no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12687 12688# Compiler flag to allow reflexive dlopens. 12689export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12690 12691# Compiler flag to generate shared objects directly from archives. 12692whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12693 12694# Compiler flag to generate thread-safe objects. 12695thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12696 12697# Library versioning type. 12698version_type=$version_type 12699 12700# Format of library name prefix. 12701libname_spec=$lt_libname_spec 12702 12703# List of archive names. First name is the real one, the rest are links. 12704# The last name is the one that the linker finds with -lNAME. 12705library_names_spec=$lt_library_names_spec 12706 12707# The coded name of the library, if different from the real name. 12708soname_spec=$lt_soname_spec 12709 12710# Commands used to build and install an old-style archive. 12711RANLIB=$lt_RANLIB 12712old_archive_cmds=$lt_old_archive_cmds_CXX 12713old_postinstall_cmds=$lt_old_postinstall_cmds 12714old_postuninstall_cmds=$lt_old_postuninstall_cmds 12715 12716# Create an old-style archive from a shared archive. 12717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12718 12719# Create a temporary old-style archive to link instead of a shared archive. 12720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12721 12722# Commands used to build and install a shared archive. 12723archive_cmds=$lt_archive_cmds_CXX 12724archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12725postinstall_cmds=$lt_postinstall_cmds 12726postuninstall_cmds=$lt_postuninstall_cmds 12727 12728# Commands used to build a loadable module (assumed same as above if empty) 12729module_cmds=$lt_module_cmds_CXX 12730module_expsym_cmds=$lt_module_expsym_cmds_CXX 12731 12732# Commands to strip libraries. 12733old_striplib=$lt_old_striplib 12734striplib=$lt_striplib 12735 12736# Dependencies to place before the objects being linked to create a 12737# shared library. 12738predep_objects=$lt_predep_objects_CXX 12739 12740# Dependencies to place after the objects being linked to create a 12741# shared library. 12742postdep_objects=$lt_postdep_objects_CXX 12743 12744# Dependencies to place before the objects being linked to create a 12745# shared library. 12746predeps=$lt_predeps_CXX 12747 12748# Dependencies to place after the objects being linked to create a 12749# shared library. 12750postdeps=$lt_postdeps_CXX 12751 12752# The directories searched by this compiler when creating a shared 12753# library 12754compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 12755 12756# The library search path used internally by the compiler when linking 12757# a shared library. 12758compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12759 12760# Method to check whether dependent libraries are shared objects. 12761deplibs_check_method=$lt_deplibs_check_method 12762 12763# Command to use when deplibs_check_method == file_magic. 12764file_magic_cmd=$lt_file_magic_cmd 12765 12766# Flag that allows shared libraries with undefined symbols to be built. 12767allow_undefined_flag=$lt_allow_undefined_flag_CXX 12768 12769# Flag that forces no undefined symbols. 12770no_undefined_flag=$lt_no_undefined_flag_CXX 12771 12772# Commands used to finish a libtool library installation in a directory. 12773finish_cmds=$lt_finish_cmds 12774 12775# Same as above, but a single script fragment to be evaled but not shown. 12776finish_eval=$lt_finish_eval 12777 12778# Take the output of nm and produce a listing of raw symbols and C names. 12779global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12780 12781# Transform the output of nm in a proper C declaration 12782global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12783 12784# Transform the output of nm in a C name address pair 12785global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12786 12787# This is the shared library runtime path variable. 12788runpath_var=$runpath_var 12789 12790# This is the shared library path variable. 12791shlibpath_var=$shlibpath_var 12792 12793# Is shlibpath searched before the hard-coded library search path? 12794shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12795 12796# How to hardcode a shared library path into an executable. 12797hardcode_action=$hardcode_action_CXX 12798 12799# Whether we should hardcode library paths into libraries. 12800hardcode_into_libs=$hardcode_into_libs 12801 12802# Flag to hardcode \$libdir into a binary during linking. 12803# This must work even if \$libdir does not exist. 12804hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12805 12806# If ld is used when linking, flag to hardcode \$libdir into 12807# a binary during linking. This must work even if \$libdir does 12808# not exist. 12809hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12810 12811# Whether we need a single -rpath flag with a separated argument. 12812hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12813 12814# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12815# resulting binary. 12816hardcode_direct=$hardcode_direct_CXX 12817 12818# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12819# resulting binary. 12820hardcode_minus_L=$hardcode_minus_L_CXX 12821 12822# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12823# the resulting binary. 12824hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12825 12826# Set to yes if building a shared library automatically hardcodes DIR into the library 12827# and all subsequent libraries and executables linked against it. 12828hardcode_automatic=$hardcode_automatic_CXX 12829 12830# Variables whose values should be saved in libtool wrapper scripts and 12831# restored at relink time. 12832variables_saved_for_relink="$variables_saved_for_relink" 12833 12834# Whether libtool must link a program against all its dependency libraries. 12835link_all_deplibs=$link_all_deplibs_CXX 12836 12837# Compile-time system search path for libraries 12838sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12839 12840# Run-time system search path for libraries 12841sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12842 12843# Fix the shell variable \$srcfile for the compiler. 12844fix_srcfile_path=$lt_fix_srcfile_path 12845 12846# Set to yes if exported symbols are required. 12847always_export_symbols=$always_export_symbols_CXX 12848 12849# The commands to list exported symbols. 12850export_symbols_cmds=$lt_export_symbols_cmds_CXX 12851 12852# The commands to extract the exported symbol list from a shared archive. 12853extract_expsyms_cmds=$lt_extract_expsyms_cmds 12854 12855# Symbols that should not be listed in the preloaded symbols. 12856exclude_expsyms=$lt_exclude_expsyms_CXX 12857 12858# Symbols that must always be exported. 12859include_expsyms=$lt_include_expsyms_CXX 12860 12861# ### END LIBTOOL TAG CONFIG: $tagname 12862 12863__EOF__ 12864 12865 12866else 12867 # If there is no Makefile yet, we rely on a make rule to execute 12868 # `config.status --recheck' to rerun these tests and create the 12869 # libtool script then. 12870 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12871 if test -f "$ltmain_in"; then 12872 test -f Makefile && make "$ltmain" 12873 fi 12874fi 12875 12876 12877ac_ext=c 12878ac_cpp='$CPP $CPPFLAGS' 12879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12881ac_compiler_gnu=$ac_cv_c_compiler_gnu 12882 12883CC=$lt_save_CC 12884LDCXX=$LD 12885LD=$lt_save_LD 12886GCC=$lt_save_GCC 12887with_gnu_ldcxx=$with_gnu_ld 12888with_gnu_ld=$lt_save_with_gnu_ld 12889lt_cv_path_LDCXX=$lt_cv_path_LD 12890lt_cv_path_LD=$lt_save_path_LD 12891lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12892lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12893 12894 else 12895 tagname="" 12896 fi 12897 ;; 12898 12899 F77) 12900 if test -n "$F77" && test "X$F77" != "Xno"; then 12901 12902ac_ext=f 12903ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12904ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12905ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12906 12907 12908archive_cmds_need_lc_F77=no 12909allow_undefined_flag_F77= 12910always_export_symbols_F77=no 12911archive_expsym_cmds_F77= 12912export_dynamic_flag_spec_F77= 12913hardcode_direct_F77=no 12914hardcode_libdir_flag_spec_F77= 12915hardcode_libdir_flag_spec_ld_F77= 12916hardcode_libdir_separator_F77= 12917hardcode_minus_L_F77=no 12918hardcode_automatic_F77=no 12919module_cmds_F77= 12920module_expsym_cmds_F77= 12921link_all_deplibs_F77=unknown 12922old_archive_cmds_F77=$old_archive_cmds 12923no_undefined_flag_F77= 12924whole_archive_flag_spec_F77= 12925enable_shared_with_static_runtimes_F77=no 12926 12927# Source file extension for f77 test sources. 12928ac_ext=f 12929 12930# Object file extension for compiled f77 test sources. 12931objext=o 12932objext_F77=$objext 12933 12934# Code to be used in simple compile tests 12935lt_simple_compile_test_code="\ 12936 subroutine t 12937 return 12938 end 12939" 12940 12941# Code to be used in simple link tests 12942lt_simple_link_test_code="\ 12943 program t 12944 end 12945" 12946 12947# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12948 12949# If no C compiler was specified, use CC. 12950LTCC=${LTCC-"$CC"} 12951 12952# If no C compiler flags were specified, use CFLAGS. 12953LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12954 12955# Allow CC to be a program name with arguments. 12956compiler=$CC 12957 12958 12959# save warnings/boilerplate of simple test code 12960ac_outfile=conftest.$ac_objext 12961echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12962eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12963_lt_compiler_boilerplate=`cat conftest.err` 12964$rm conftest* 12965 12966ac_outfile=conftest.$ac_objext 12967echo "$lt_simple_link_test_code" >conftest.$ac_ext 12968eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12969_lt_linker_boilerplate=`cat conftest.err` 12970$rm -r conftest* 12971 12972 12973# Allow CC to be a program name with arguments. 12974lt_save_CC="$CC" 12975CC=${F77-"f77"} 12976compiler=$CC 12977compiler_F77=$CC 12978for cc_temp in $compiler""; do 12979 case $cc_temp in 12980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12982 \-*) ;; 12983 *) break;; 12984 esac 12985done 12986cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12987 12988 12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12990$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12992$as_echo "$can_build_shared" >&6; } 12993 12994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12995$as_echo_n "checking whether to build shared libraries... " >&6; } 12996test "$can_build_shared" = "no" && enable_shared=no 12997 12998# On AIX, shared libraries and static libraries use the same namespace, and 12999# are all built from PIC. 13000case $host_os in 13001aix3*) 13002 test "$enable_shared" = yes && enable_static=no 13003 if test -n "$RANLIB"; then 13004 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13005 postinstall_cmds='$RANLIB $lib' 13006 fi 13007 ;; 13008aix[4-9]*) 13009 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13010 test "$enable_shared" = yes && enable_static=no 13011 fi 13012 ;; 13013esac 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13015$as_echo "$enable_shared" >&6; } 13016 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13018$as_echo_n "checking whether to build static libraries... " >&6; } 13019# Make sure either enable_shared or enable_static is yes. 13020test "$enable_shared" = yes || enable_static=yes 13021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13022$as_echo "$enable_static" >&6; } 13023 13024GCC_F77="$G77" 13025LD_F77="$LD" 13026 13027lt_prog_compiler_wl_F77= 13028lt_prog_compiler_pic_F77= 13029lt_prog_compiler_static_F77= 13030 13031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13032$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13033 13034 if test "$GCC" = yes; then 13035 lt_prog_compiler_wl_F77='-Wl,' 13036 lt_prog_compiler_static_F77='-static' 13037 13038 case $host_os in 13039 aix*) 13040 # All AIX code is PIC. 13041 if test "$host_cpu" = ia64; then 13042 # AIX 5 now supports IA64 processor 13043 lt_prog_compiler_static_F77='-Bstatic' 13044 fi 13045 ;; 13046 13047 amigaos*) 13048 # FIXME: we need at least 68020 code to build shared libraries, but 13049 # adding the `-m68020' flag to GCC prevents building anything better, 13050 # like `-m68040'. 13051 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13052 ;; 13053 13054 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13055 # PIC is the default for these OSes. 13056 ;; 13057 13058 mingw* | cygwin* | pw32* | os2*) 13059 # This hack is so that the source file can tell whether it is being 13060 # built for inclusion in a dll (and should export symbols for example). 13061 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13062 # (--disable-auto-import) libraries 13063 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13064 ;; 13065 13066 darwin* | rhapsody*) 13067 # PIC is the default on this platform 13068 # Common symbols not allowed in MH_DYLIB files 13069 lt_prog_compiler_pic_F77='-fno-common' 13070 ;; 13071 13072 interix[3-9]*) 13073 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13074 # Instead, we relocate shared libraries at runtime. 13075 ;; 13076 13077 msdosdjgpp*) 13078 # Just because we use GCC doesn't mean we suddenly get shared libraries 13079 # on systems that don't support them. 13080 lt_prog_compiler_can_build_shared_F77=no 13081 enable_shared=no 13082 ;; 13083 13084 sysv4*MP*) 13085 if test -d /usr/nec; then 13086 lt_prog_compiler_pic_F77=-Kconform_pic 13087 fi 13088 ;; 13089 13090 hpux*) 13091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13092 # not for PA HP-UX. 13093 case $host_cpu in 13094 hppa*64*|ia64*) 13095 # +Z the default 13096 ;; 13097 *) 13098 lt_prog_compiler_pic_F77='-fPIC' 13099 ;; 13100 esac 13101 ;; 13102 13103 *) 13104 lt_prog_compiler_pic_F77='-fPIC' 13105 ;; 13106 esac 13107 else 13108 # PORTME Check for flag to pass linker flags through the system compiler. 13109 case $host_os in 13110 aix*) 13111 lt_prog_compiler_wl_F77='-Wl,' 13112 if test "$host_cpu" = ia64; then 13113 # AIX 5 now supports IA64 processor 13114 lt_prog_compiler_static_F77='-Bstatic' 13115 else 13116 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13117 fi 13118 ;; 13119 darwin*) 13120 # PIC is the default on this platform 13121 # Common symbols not allowed in MH_DYLIB files 13122 case $cc_basename in 13123 xlc*) 13124 lt_prog_compiler_pic_F77='-qnocommon' 13125 lt_prog_compiler_wl_F77='-Wl,' 13126 ;; 13127 esac 13128 ;; 13129 13130 mingw* | cygwin* | pw32* | os2*) 13131 # This hack is so that the source file can tell whether it is being 13132 # built for inclusion in a dll (and should export symbols for example). 13133 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13134 ;; 13135 13136 hpux9* | hpux10* | hpux11*) 13137 lt_prog_compiler_wl_F77='-Wl,' 13138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13139 # not for PA HP-UX. 13140 case $host_cpu in 13141 hppa*64*|ia64*) 13142 # +Z the default 13143 ;; 13144 *) 13145 lt_prog_compiler_pic_F77='+Z' 13146 ;; 13147 esac 13148 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13149 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13150 ;; 13151 13152 irix5* | irix6* | nonstopux*) 13153 lt_prog_compiler_wl_F77='-Wl,' 13154 # PIC (with -KPIC) is the default. 13155 lt_prog_compiler_static_F77='-non_shared' 13156 ;; 13157 13158 newsos6) 13159 lt_prog_compiler_pic_F77='-KPIC' 13160 lt_prog_compiler_static_F77='-Bstatic' 13161 ;; 13162 13163 linux* | k*bsd*-gnu) 13164 case $cc_basename in 13165 icc* | ecc*) 13166 lt_prog_compiler_wl_F77='-Wl,' 13167 lt_prog_compiler_pic_F77='-KPIC' 13168 lt_prog_compiler_static_F77='-static' 13169 ;; 13170 pgcc* | pgf77* | pgf90* | pgf95*) 13171 # Portland Group compilers (*not* the Pentium gcc compiler, 13172 # which looks to be a dead project) 13173 lt_prog_compiler_wl_F77='-Wl,' 13174 lt_prog_compiler_pic_F77='-fpic' 13175 lt_prog_compiler_static_F77='-Bstatic' 13176 ;; 13177 ccc*) 13178 lt_prog_compiler_wl_F77='-Wl,' 13179 # All Alpha code is PIC. 13180 lt_prog_compiler_static_F77='-non_shared' 13181 ;; 13182 *) 13183 case `$CC -V 2>&1 | sed 5q` in 13184 *Sun\ C*) 13185 # Sun C 5.9 13186 lt_prog_compiler_pic_F77='-KPIC' 13187 lt_prog_compiler_static_F77='-Bstatic' 13188 lt_prog_compiler_wl_F77='-Wl,' 13189 ;; 13190 *Sun\ F*) 13191 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13192 lt_prog_compiler_pic_F77='-KPIC' 13193 lt_prog_compiler_static_F77='-Bstatic' 13194 lt_prog_compiler_wl_F77='' 13195 ;; 13196 esac 13197 ;; 13198 esac 13199 ;; 13200 13201 osf3* | osf4* | osf5*) 13202 lt_prog_compiler_wl_F77='-Wl,' 13203 # All OSF/1 code is PIC. 13204 lt_prog_compiler_static_F77='-non_shared' 13205 ;; 13206 13207 rdos*) 13208 lt_prog_compiler_static_F77='-non_shared' 13209 ;; 13210 13211 solaris*) 13212 lt_prog_compiler_pic_F77='-KPIC' 13213 lt_prog_compiler_static_F77='-Bstatic' 13214 case $cc_basename in 13215 f77* | f90* | f95*) 13216 lt_prog_compiler_wl_F77='-Qoption ld ';; 13217 *) 13218 lt_prog_compiler_wl_F77='-Wl,';; 13219 esac 13220 ;; 13221 13222 sunos4*) 13223 lt_prog_compiler_wl_F77='-Qoption ld ' 13224 lt_prog_compiler_pic_F77='-PIC' 13225 lt_prog_compiler_static_F77='-Bstatic' 13226 ;; 13227 13228 sysv4 | sysv4.2uw2* | sysv4.3*) 13229 lt_prog_compiler_wl_F77='-Wl,' 13230 lt_prog_compiler_pic_F77='-KPIC' 13231 lt_prog_compiler_static_F77='-Bstatic' 13232 ;; 13233 13234 sysv4*MP*) 13235 if test -d /usr/nec ;then 13236 lt_prog_compiler_pic_F77='-Kconform_pic' 13237 lt_prog_compiler_static_F77='-Bstatic' 13238 fi 13239 ;; 13240 13241 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13242 lt_prog_compiler_wl_F77='-Wl,' 13243 lt_prog_compiler_pic_F77='-KPIC' 13244 lt_prog_compiler_static_F77='-Bstatic' 13245 ;; 13246 13247 unicos*) 13248 lt_prog_compiler_wl_F77='-Wl,' 13249 lt_prog_compiler_can_build_shared_F77=no 13250 ;; 13251 13252 uts4*) 13253 lt_prog_compiler_pic_F77='-pic' 13254 lt_prog_compiler_static_F77='-Bstatic' 13255 ;; 13256 13257 *) 13258 lt_prog_compiler_can_build_shared_F77=no 13259 ;; 13260 esac 13261 fi 13262 13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5 13264$as_echo "$lt_prog_compiler_pic_F77" >&6; } 13265 13266# 13267# Check to make sure the PIC flag actually works. 13268# 13269if test -n "$lt_prog_compiler_pic_F77"; then 13270 13271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13272$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 13273if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then : 13274 $as_echo_n "(cached) " >&6 13275else 13276 lt_cv_prog_compiler_pic_works_F77=no 13277 ac_outfile=conftest.$ac_objext 13278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13279 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13280 # Insert the option either (1) after the last *FLAGS variable, or 13281 # (2) before a word containing "conftest.", or (3) at the end. 13282 # Note that $ac_compile itself does not contain backslashes and begins 13283 # with a dollar sign (not a hyphen), so the echo should work correctly. 13284 # The option is referenced via a variable to avoid confusing sed. 13285 lt_compile=`echo "$ac_compile" | $SED \ 13286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13288 -e 's:$: $lt_compiler_flag:'` 13289 (eval echo "\"\$as_me:13289: $lt_compile\"" >&5) 13290 (eval "$lt_compile" 2>conftest.err) 13291 ac_status=$? 13292 cat conftest.err >&5 13293 echo "$as_me:13293: \$? = $ac_status" >&5 13294 if (exit $ac_status) && test -s "$ac_outfile"; then 13295 # The compiler can only warn and ignore the option if not recognized 13296 # So say no if there are warnings other than the usual output. 13297 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13300 lt_cv_prog_compiler_pic_works_F77=yes 13301 fi 13302 fi 13303 $rm conftest* 13304 13305fi 13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 13307$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 13308 13309if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 13310 case $lt_prog_compiler_pic_F77 in 13311 "" | " "*) ;; 13312 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13313 esac 13314else 13315 lt_prog_compiler_pic_F77= 13316 lt_prog_compiler_can_build_shared_F77=no 13317fi 13318 13319fi 13320case $host_os in 13321 # For platforms which do not support PIC, -DPIC is meaningless: 13322 *djgpp*) 13323 lt_prog_compiler_pic_F77= 13324 ;; 13325 *) 13326 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13327 ;; 13328esac 13329 13330# 13331# Check to make sure the static flag actually works. 13332# 13333wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13335$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13336if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then : 13337 $as_echo_n "(cached) " >&6 13338else 13339 lt_cv_prog_compiler_static_works_F77=no 13340 save_LDFLAGS="$LDFLAGS" 13341 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13342 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13343 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13344 # The linker can only warn and ignore the option if not recognized 13345 # So say no if there are warnings 13346 if test -s conftest.err; then 13347 # Append any errors to the config.log. 13348 cat conftest.err 1>&5 13349 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13351 if diff conftest.exp conftest.er2 >/dev/null; then 13352 lt_cv_prog_compiler_static_works_F77=yes 13353 fi 13354 else 13355 lt_cv_prog_compiler_static_works_F77=yes 13356 fi 13357 fi 13358 $rm -r conftest* 13359 LDFLAGS="$save_LDFLAGS" 13360 13361fi 13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 13363$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 13364 13365if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 13366 : 13367else 13368 lt_prog_compiler_static_F77= 13369fi 13370 13371 13372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13374if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then : 13375 $as_echo_n "(cached) " >&6 13376else 13377 lt_cv_prog_compiler_c_o_F77=no 13378 $rm -r conftest 2>/dev/null 13379 mkdir conftest 13380 cd conftest 13381 mkdir out 13382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13383 13384 lt_compiler_flag="-o out/conftest2.$ac_objext" 13385 # Insert the option either (1) after the last *FLAGS variable, or 13386 # (2) before a word containing "conftest.", or (3) at the end. 13387 # Note that $ac_compile itself does not contain backslashes and begins 13388 # with a dollar sign (not a hyphen), so the echo should work correctly. 13389 lt_compile=`echo "$ac_compile" | $SED \ 13390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13392 -e 's:$: $lt_compiler_flag:'` 13393 (eval echo "\"\$as_me:13393: $lt_compile\"" >&5) 13394 (eval "$lt_compile" 2>out/conftest.err) 13395 ac_status=$? 13396 cat out/conftest.err >&5 13397 echo "$as_me:13397: \$? = $ac_status" >&5 13398 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13399 then 13400 # The compiler can only warn and ignore the option if not recognized 13401 # So say no if there are warnings 13402 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13405 lt_cv_prog_compiler_c_o_F77=yes 13406 fi 13407 fi 13408 chmod u+w . 2>&5 13409 $rm conftest* 13410 # SGI C++ compiler will create directory out/ii_files/ for 13411 # template instantiation 13412 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13413 $rm out/* && rmdir out 13414 cd .. 13415 rmdir conftest 13416 $rm conftest* 13417 13418fi 13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 13420$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 13421 13422 13423hard_links="nottested" 13424if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13425 # do not overwrite the value of need_locks provided by the user 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13427$as_echo_n "checking if we can lock with hard links... " >&6; } 13428 hard_links=yes 13429 $rm conftest* 13430 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13431 touch conftest.a 13432 ln conftest.a conftest.b 2>&5 || hard_links=no 13433 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13435$as_echo "$hard_links" >&6; } 13436 if test "$hard_links" = no; then 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13438$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13439 need_locks=warn 13440 fi 13441else 13442 need_locks=no 13443fi 13444 13445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13446$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13447 13448 runpath_var= 13449 allow_undefined_flag_F77= 13450 enable_shared_with_static_runtimes_F77=no 13451 archive_cmds_F77= 13452 archive_expsym_cmds_F77= 13453 old_archive_From_new_cmds_F77= 13454 old_archive_from_expsyms_cmds_F77= 13455 export_dynamic_flag_spec_F77= 13456 whole_archive_flag_spec_F77= 13457 thread_safe_flag_spec_F77= 13458 hardcode_libdir_flag_spec_F77= 13459 hardcode_libdir_flag_spec_ld_F77= 13460 hardcode_libdir_separator_F77= 13461 hardcode_direct_F77=no 13462 hardcode_minus_L_F77=no 13463 hardcode_shlibpath_var_F77=unsupported 13464 link_all_deplibs_F77=unknown 13465 hardcode_automatic_F77=no 13466 module_cmds_F77= 13467 module_expsym_cmds_F77= 13468 always_export_symbols_F77=no 13469 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13470 # include_expsyms should be a list of space-separated symbols to be *always* 13471 # included in the symbol list 13472 include_expsyms_F77= 13473 # exclude_expsyms can be an extended regexp of symbols to exclude 13474 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13475 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13476 # as well as any symbol that contains `d'. 13477 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13478 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13479 # platforms (ab)use it in PIC code, but their linkers get confused if 13480 # the symbol is explicitly referenced. Since portable code cannot 13481 # rely on this symbol name, it's probably fine to never include it in 13482 # preloaded symbol tables. 13483 # Exclude shared library initialization/finalization symbols. 13484 extract_expsyms_cmds= 13485 # Just being paranoid about ensuring that cc_basename is set. 13486 for cc_temp in $compiler""; do 13487 case $cc_temp in 13488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13490 \-*) ;; 13491 *) break;; 13492 esac 13493done 13494cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13495 13496 case $host_os in 13497 cygwin* | mingw* | pw32*) 13498 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13499 # When not using gcc, we currently assume that we are using 13500 # Microsoft Visual C++. 13501 if test "$GCC" != yes; then 13502 with_gnu_ld=no 13503 fi 13504 ;; 13505 interix*) 13506 # we just hope/assume this is gcc and not c89 (= MSVC++) 13507 with_gnu_ld=yes 13508 ;; 13509 openbsd*) 13510 with_gnu_ld=no 13511 ;; 13512 esac 13513 13514 ld_shlibs_F77=yes 13515 if test "$with_gnu_ld" = yes; then 13516 # If archive_cmds runs LD, not CC, wlarc should be empty 13517 wlarc='${wl}' 13518 13519 # Set some defaults for GNU ld with shared library support. These 13520 # are reset later if shared libraries are not supported. Putting them 13521 # here allows them to be overridden if necessary. 13522 runpath_var=LD_RUN_PATH 13523 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13524 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13525 # ancient GNU ld didn't support --whole-archive et. al. 13526 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13527 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13528 else 13529 whole_archive_flag_spec_F77= 13530 fi 13531 supports_anon_versioning=no 13532 case `$LD -v 2>/dev/null` in 13533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13536 *\ 2.11.*) ;; # other 2.11 versions 13537 *) supports_anon_versioning=yes ;; 13538 esac 13539 13540 # See if GNU ld supports shared libraries. 13541 case $host_os in 13542 aix[3-9]*) 13543 # On AIX/PPC, the GNU linker is very broken 13544 if test "$host_cpu" != ia64; then 13545 ld_shlibs_F77=no 13546 cat <<EOF 1>&2 13547 13548*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13549*** to be unable to reliably create shared libraries on AIX. 13550*** Therefore, libtool is disabling shared libraries support. If you 13551*** really care for shared libraries, you may want to modify your PATH 13552*** so that a non-GNU linker is found, and then restart. 13553 13554EOF 13555 fi 13556 ;; 13557 13558 amigaos*) 13559 archive_cmds_F77='$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)' 13560 hardcode_libdir_flag_spec_F77='-L$libdir' 13561 hardcode_minus_L_F77=yes 13562 13563 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13564 # that the semantics of dynamic libraries on AmigaOS, at least up 13565 # to version 4, is to share data among multiple programs linked 13566 # with the same dynamic library. Since this doesn't match the 13567 # behavior of shared libraries on other platforms, we can't use 13568 # them. 13569 ld_shlibs_F77=no 13570 ;; 13571 13572 beos*) 13573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13574 allow_undefined_flag_F77=unsupported 13575 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13576 # support --undefined. This deserves some investigation. FIXME 13577 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13578 else 13579 ld_shlibs_F77=no 13580 fi 13581 ;; 13582 13583 cygwin* | mingw* | pw32*) 13584 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13585 # as there is no search path for DLLs. 13586 hardcode_libdir_flag_spec_F77='-L$libdir' 13587 allow_undefined_flag_F77=unsupported 13588 always_export_symbols_F77=no 13589 enable_shared_with_static_runtimes_F77=yes 13590 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13591 13592 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13593 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13594 # If the export-symbols file already is a .def file (1st line 13595 # is EXPORTS), use it as is; otherwise, prepend... 13596 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13597 cp $export_symbols $output_objdir/$soname.def; 13598 else 13599 echo EXPORTS > $output_objdir/$soname.def; 13600 cat $export_symbols >> $output_objdir/$soname.def; 13601 fi~ 13602 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13603 else 13604 ld_shlibs_F77=no 13605 fi 13606 ;; 13607 13608 interix[3-9]*) 13609 hardcode_direct_F77=no 13610 hardcode_shlibpath_var_F77=no 13611 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13612 export_dynamic_flag_spec_F77='${wl}-E' 13613 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13614 # Instead, shared libraries are loaded at an image base (0x10000000 by 13615 # default) and relocated if they conflict, which is a slow very memory 13616 # consuming and fragmenting process. To avoid this, we pick a random, 13617 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13618 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13619 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13620 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13621 ;; 13622 13623 gnu* | linux* | k*bsd*-gnu) 13624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13625 tmp_addflag= 13626 case $cc_basename,$host_cpu in 13627 pgcc*) # Portland Group C compiler 13628 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13629 tmp_addflag=' $pic_flag' 13630 ;; 13631 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13632 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13633 tmp_addflag=' $pic_flag -Mnomain' ;; 13634 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13635 tmp_addflag=' -i_dynamic' ;; 13636 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13637 tmp_addflag=' -i_dynamic -nofor_main' ;; 13638 ifc* | ifort*) # Intel Fortran compiler 13639 tmp_addflag=' -nofor_main' ;; 13640 esac 13641 case `$CC -V 2>&1 | sed 5q` in 13642 *Sun\ C*) # Sun C 5.9 13643 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13644 tmp_sharedflag='-G' ;; 13645 *Sun\ F*) # Sun Fortran 8.3 13646 tmp_sharedflag='-G' ;; 13647 *) 13648 tmp_sharedflag='-shared' ;; 13649 esac 13650 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13651 13652 if test $supports_anon_versioning = yes; then 13653 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13655 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13656 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13657 fi 13658 else 13659 ld_shlibs_F77=no 13660 fi 13661 ;; 13662 13663 netbsd*) 13664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13665 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13666 wlarc= 13667 else 13668 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13669 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13670 fi 13671 ;; 13672 13673 solaris*) 13674 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13675 ld_shlibs_F77=no 13676 cat <<EOF 1>&2 13677 13678*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13679*** create shared libraries on Solaris systems. Therefore, libtool 13680*** is disabling shared libraries support. We urge you to upgrade GNU 13681*** binutils to release 2.9.1 or newer. Another option is to modify 13682*** your PATH or compiler configuration so that the native linker is 13683*** used, and then restart. 13684 13685EOF 13686 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13687 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13688 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13689 else 13690 ld_shlibs_F77=no 13691 fi 13692 ;; 13693 13694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13695 case `$LD -v 2>&1` in 13696 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13697 ld_shlibs_F77=no 13698 cat <<_LT_EOF 1>&2 13699 13700*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13701*** reliably create shared libraries on SCO systems. Therefore, libtool 13702*** is disabling shared libraries support. We urge you to upgrade GNU 13703*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13704*** your PATH or compiler configuration so that the native linker is 13705*** used, and then restart. 13706 13707_LT_EOF 13708 ;; 13709 *) 13710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13711 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13712 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13713 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13714 else 13715 ld_shlibs_F77=no 13716 fi 13717 ;; 13718 esac 13719 ;; 13720 13721 sunos4*) 13722 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13723 wlarc= 13724 hardcode_direct_F77=yes 13725 hardcode_shlibpath_var_F77=no 13726 ;; 13727 13728 *) 13729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13730 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13731 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13732 else 13733 ld_shlibs_F77=no 13734 fi 13735 ;; 13736 esac 13737 13738 if test "$ld_shlibs_F77" = no; then 13739 runpath_var= 13740 hardcode_libdir_flag_spec_F77= 13741 export_dynamic_flag_spec_F77= 13742 whole_archive_flag_spec_F77= 13743 fi 13744 else 13745 # PORTME fill in a description of your system's linker (not GNU ld) 13746 case $host_os in 13747 aix3*) 13748 allow_undefined_flag_F77=unsupported 13749 always_export_symbols_F77=yes 13750 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 13751 # Note: this linker hardcodes the directories in LIBPATH if there 13752 # are no directories specified by -L. 13753 hardcode_minus_L_F77=yes 13754 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13755 # Neither direct hardcoding nor static linking is supported with a 13756 # broken collect2. 13757 hardcode_direct_F77=unsupported 13758 fi 13759 ;; 13760 13761 aix[4-9]*) 13762 if test "$host_cpu" = ia64; then 13763 # On IA64, the linker does run time linking by default, so we don't 13764 # have to do anything special. 13765 aix_use_runtimelinking=no 13766 exp_sym_flag='-Bexport' 13767 no_entry_flag="" 13768 else 13769 # If we're using GNU nm, then we don't want the "-C" option. 13770 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13771 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13772 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13773 else 13774 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13775 fi 13776 aix_use_runtimelinking=no 13777 13778 # Test if we are trying to use run time linking or normal 13779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13780 # need to do runtime linking. 13781 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13782 for ld_flag in $LDFLAGS; do 13783 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13784 aix_use_runtimelinking=yes 13785 break 13786 fi 13787 done 13788 ;; 13789 esac 13790 13791 exp_sym_flag='-bexport' 13792 no_entry_flag='-bnoentry' 13793 fi 13794 13795 # When large executables or shared objects are built, AIX ld can 13796 # have problems creating the table of contents. If linking a library 13797 # or program results in "error TOC overflow" add -mminimal-toc to 13798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13800 13801 archive_cmds_F77='' 13802 hardcode_direct_F77=yes 13803 hardcode_libdir_separator_F77=':' 13804 link_all_deplibs_F77=yes 13805 13806 if test "$GCC" = yes; then 13807 case $host_os in aix4.[012]|aix4.[012].*) 13808 # We only want to do this on AIX 4.2 and lower, the check 13809 # below for broken collect2 doesn't work under 4.3+ 13810 collect2name=`${CC} -print-prog-name=collect2` 13811 if test -f "$collect2name" && \ 13812 strings "$collect2name" | grep resolve_lib_name >/dev/null 13813 then 13814 # We have reworked collect2 13815 : 13816 else 13817 # We have old collect2 13818 hardcode_direct_F77=unsupported 13819 # It fails to find uninstalled libraries when the uninstalled 13820 # path is not listed in the libpath. Setting hardcode_minus_L 13821 # to unsupported forces relinking 13822 hardcode_minus_L_F77=yes 13823 hardcode_libdir_flag_spec_F77='-L$libdir' 13824 hardcode_libdir_separator_F77= 13825 fi 13826 ;; 13827 esac 13828 shared_flag='-shared' 13829 if test "$aix_use_runtimelinking" = yes; then 13830 shared_flag="$shared_flag "'${wl}-G' 13831 fi 13832 else 13833 # not using gcc 13834 if test "$host_cpu" = ia64; then 13835 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13836 # chokes on -Wl,-G. The following line is correct: 13837 shared_flag='-G' 13838 else 13839 if test "$aix_use_runtimelinking" = yes; then 13840 shared_flag='${wl}-G' 13841 else 13842 shared_flag='${wl}-bM:SRE' 13843 fi 13844 fi 13845 fi 13846 13847 # It seems that -bexpall does not export symbols beginning with 13848 # underscore (_), so it is better to generate a list of symbols to export. 13849 always_export_symbols_F77=yes 13850 if test "$aix_use_runtimelinking" = yes; then 13851 # Warning - without using the other runtime loading flags (-brtl), 13852 # -berok will link without error, but may produce a broken library. 13853 allow_undefined_flag_F77='-berok' 13854 # Determine the default libpath from the value encoded in an empty executable. 13855 cat > conftest.$ac_ext <<_ACEOF 13856 program main 13857 13858 end 13859_ACEOF 13860if ac_fn_f77_try_link "$LINENO"; then : 13861 13862lt_aix_libpath_sed=' 13863 /Import File Strings/,/^$/ { 13864 /^0/ { 13865 s/^0 *\(.*\)$/\1/ 13866 p 13867 } 13868 }' 13869aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13870# Check for a 64-bit object if we didn't find anything. 13871if test -z "$aix_libpath"; then 13872 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13873fi 13874fi 13875rm -f core conftest.err conftest.$ac_objext \ 13876 conftest$ac_exeext conftest.$ac_ext 13877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13878 13879 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13880 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13881 else 13882 if test "$host_cpu" = ia64; then 13883 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13884 allow_undefined_flag_F77="-z nodefs" 13885 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13886 else 13887 # Determine the default libpath from the value encoded in an empty executable. 13888 cat > conftest.$ac_ext <<_ACEOF 13889 program main 13890 13891 end 13892_ACEOF 13893if ac_fn_f77_try_link "$LINENO"; then : 13894 13895lt_aix_libpath_sed=' 13896 /Import File Strings/,/^$/ { 13897 /^0/ { 13898 s/^0 *\(.*\)$/\1/ 13899 p 13900 } 13901 }' 13902aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13903# Check for a 64-bit object if we didn't find anything. 13904if test -z "$aix_libpath"; then 13905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13906fi 13907fi 13908rm -f core conftest.err conftest.$ac_objext \ 13909 conftest$ac_exeext conftest.$ac_ext 13910if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13911 13912 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13913 # Warning - without using the other run time loading flags, 13914 # -berok will link without error, but may produce a broken library. 13915 no_undefined_flag_F77=' ${wl}-bernotok' 13916 allow_undefined_flag_F77=' ${wl}-berok' 13917 # Exported symbols can be pulled into shared objects from archives 13918 whole_archive_flag_spec_F77='$convenience' 13919 archive_cmds_need_lc_F77=yes 13920 # This is similar to how AIX traditionally builds its shared libraries. 13921 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13922 fi 13923 fi 13924 ;; 13925 13926 amigaos*) 13927 archive_cmds_F77='$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)' 13928 hardcode_libdir_flag_spec_F77='-L$libdir' 13929 hardcode_minus_L_F77=yes 13930 # see comment about different semantics on the GNU ld section 13931 ld_shlibs_F77=no 13932 ;; 13933 13934 bsdi[45]*) 13935 export_dynamic_flag_spec_F77=-rdynamic 13936 ;; 13937 13938 cygwin* | mingw* | pw32*) 13939 # When not using gcc, we currently assume that we are using 13940 # Microsoft Visual C++. 13941 # hardcode_libdir_flag_spec is actually meaningless, as there is 13942 # no search path for DLLs. 13943 hardcode_libdir_flag_spec_F77=' ' 13944 allow_undefined_flag_F77=unsupported 13945 # Tell ltmain to make .lib files, not .a files. 13946 libext=lib 13947 # Tell ltmain to make .dll files, not .so files. 13948 shrext_cmds=".dll" 13949 # FIXME: Setting linknames here is a bad hack. 13950 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13951 # The linker will automatically build a .lib file if we build a DLL. 13952 old_archive_From_new_cmds_F77='true' 13953 # FIXME: Should let the user specify the lib program. 13954 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 13955 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13956 enable_shared_with_static_runtimes_F77=yes 13957 ;; 13958 13959 darwin* | rhapsody*) 13960 case $host_os in 13961 rhapsody* | darwin1.[012]) 13962 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13963 ;; 13964 *) # Darwin 1.3 on 13965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13966 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13967 else 13968 case ${MACOSX_DEPLOYMENT_TARGET} in 13969 10.[012]) 13970 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13971 ;; 13972 10.*) 13973 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13974 ;; 13975 esac 13976 fi 13977 ;; 13978 esac 13979 archive_cmds_need_lc_F77=no 13980 hardcode_direct_F77=no 13981 hardcode_automatic_F77=yes 13982 hardcode_shlibpath_var_F77=unsupported 13983 whole_archive_flag_spec_F77='' 13984 link_all_deplibs_F77=yes 13985 if test "$GCC" = yes ; then 13986 output_verbose_link_cmd='echo' 13987 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13988 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13989 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 13990 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 13991 else 13992 case $cc_basename in 13993 xlc*) 13994 output_verbose_link_cmd='echo' 13995 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 13996 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13997 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13998 archive_expsym_cmds_F77='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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13999 module_expsym_cmds_F77='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}' 14000 ;; 14001 *) 14002 ld_shlibs_F77=no 14003 ;; 14004 esac 14005 fi 14006 ;; 14007 14008 dgux*) 14009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14010 hardcode_libdir_flag_spec_F77='-L$libdir' 14011 hardcode_shlibpath_var_F77=no 14012 ;; 14013 14014 freebsd1*) 14015 ld_shlibs_F77=no 14016 ;; 14017 14018 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14019 # support. Future versions do this automatically, but an explicit c++rt0.o 14020 # does not break anything, and helps significantly (at the cost of a little 14021 # extra space). 14022 freebsd2.2*) 14023 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14024 hardcode_libdir_flag_spec_F77='-R$libdir' 14025 hardcode_direct_F77=yes 14026 hardcode_shlibpath_var_F77=no 14027 ;; 14028 14029 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14030 freebsd2*) 14031 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14032 hardcode_direct_F77=yes 14033 hardcode_minus_L_F77=yes 14034 hardcode_shlibpath_var_F77=no 14035 ;; 14036 14037 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14038 freebsd* | dragonfly*) 14039 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14040 hardcode_libdir_flag_spec_F77='-R$libdir' 14041 hardcode_direct_F77=yes 14042 hardcode_shlibpath_var_F77=no 14043 ;; 14044 14045 hpux9*) 14046 if test "$GCC" = yes; then 14047 archive_cmds_F77='$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' 14048 else 14049 archive_cmds_F77='$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' 14050 fi 14051 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14052 hardcode_libdir_separator_F77=: 14053 hardcode_direct_F77=yes 14054 14055 # hardcode_minus_L: Not really in the search PATH, 14056 # but as the default location of the library. 14057 hardcode_minus_L_F77=yes 14058 export_dynamic_flag_spec_F77='${wl}-E' 14059 ;; 14060 14061 hpux10*) 14062 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14063 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14064 else 14065 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14066 fi 14067 if test "$with_gnu_ld" = no; then 14068 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14069 hardcode_libdir_separator_F77=: 14070 14071 hardcode_direct_F77=yes 14072 export_dynamic_flag_spec_F77='${wl}-E' 14073 14074 # hardcode_minus_L: Not really in the search PATH, 14075 # but as the default location of the library. 14076 hardcode_minus_L_F77=yes 14077 fi 14078 ;; 14079 14080 hpux11*) 14081 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14082 case $host_cpu in 14083 hppa*64*) 14084 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14085 ;; 14086 ia64*) 14087 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14088 ;; 14089 *) 14090 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14091 ;; 14092 esac 14093 else 14094 case $host_cpu in 14095 hppa*64*) 14096 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14097 ;; 14098 ia64*) 14099 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14100 ;; 14101 *) 14102 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14103 ;; 14104 esac 14105 fi 14106 if test "$with_gnu_ld" = no; then 14107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14108 hardcode_libdir_separator_F77=: 14109 14110 case $host_cpu in 14111 hppa*64*|ia64*) 14112 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14113 hardcode_direct_F77=no 14114 hardcode_shlibpath_var_F77=no 14115 ;; 14116 *) 14117 hardcode_direct_F77=yes 14118 export_dynamic_flag_spec_F77='${wl}-E' 14119 14120 # hardcode_minus_L: Not really in the search PATH, 14121 # but as the default location of the library. 14122 hardcode_minus_L_F77=yes 14123 ;; 14124 esac 14125 fi 14126 ;; 14127 14128 irix5* | irix6* | nonstopux*) 14129 if test "$GCC" = yes; then 14130 archive_cmds_F77='$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' 14131 else 14132 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14133 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14134 fi 14135 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14136 hardcode_libdir_separator_F77=: 14137 link_all_deplibs_F77=yes 14138 ;; 14139 14140 netbsd*) 14141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14142 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14143 else 14144 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14145 fi 14146 hardcode_libdir_flag_spec_F77='-R$libdir' 14147 hardcode_direct_F77=yes 14148 hardcode_shlibpath_var_F77=no 14149 ;; 14150 14151 newsos6) 14152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14153 hardcode_direct_F77=yes 14154 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14155 hardcode_libdir_separator_F77=: 14156 hardcode_shlibpath_var_F77=no 14157 ;; 14158 14159 openbsd*) 14160 if test -f /usr/libexec/ld.so; then 14161 hardcode_direct_F77=yes 14162 hardcode_shlibpath_var_F77=no 14163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14164 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14165 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14166 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14167 export_dynamic_flag_spec_F77='${wl}-E' 14168 else 14169 case $host_os in 14170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14171 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14172 hardcode_libdir_flag_spec_F77='-R$libdir' 14173 ;; 14174 *) 14175 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14176 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14177 ;; 14178 esac 14179 fi 14180 else 14181 ld_shlibs_F77=no 14182 fi 14183 ;; 14184 14185 os2*) 14186 hardcode_libdir_flag_spec_F77='-L$libdir' 14187 hardcode_minus_L_F77=yes 14188 allow_undefined_flag_F77=unsupported 14189 archive_cmds_F77='$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' 14190 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14191 ;; 14192 14193 osf3*) 14194 if test "$GCC" = yes; then 14195 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14196 archive_cmds_F77='$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' 14197 else 14198 allow_undefined_flag_F77=' -expect_unresolved \*' 14199 archive_cmds_F77='$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' 14200 fi 14201 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14202 hardcode_libdir_separator_F77=: 14203 ;; 14204 14205 osf4* | osf5*) # as osf3* with the addition of -msym flag 14206 if test "$GCC" = yes; then 14207 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14208 archive_cmds_F77='$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' 14209 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14210 else 14211 allow_undefined_flag_F77=' -expect_unresolved \*' 14212 archive_cmds_F77='$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' 14213 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14214 $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' 14215 14216 # Both c and cxx compiler support -rpath directly 14217 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14218 fi 14219 hardcode_libdir_separator_F77=: 14220 ;; 14221 14222 solaris*) 14223 no_undefined_flag_F77=' -z text' 14224 if test "$GCC" = yes; then 14225 wlarc='${wl}' 14226 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14227 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14228 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14229 else 14230 wlarc='' 14231 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14232 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14233 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14234 fi 14235 hardcode_libdir_flag_spec_F77='-R$libdir' 14236 hardcode_shlibpath_var_F77=no 14237 case $host_os in 14238 solaris2.[0-5] | solaris2.[0-5].*) ;; 14239 *) 14240 # The compiler driver will combine and reorder linker options, 14241 # but understands `-z linker_flag'. GCC discards it without `$wl', 14242 # but is careful enough not to reorder. 14243 # Supported since Solaris 2.6 (maybe 2.5.1?) 14244 if test "$GCC" = yes; then 14245 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14246 else 14247 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 14248 fi 14249 ;; 14250 esac 14251 link_all_deplibs_F77=yes 14252 ;; 14253 14254 sunos4*) 14255 if test "x$host_vendor" = xsequent; then 14256 # Use $CC to link under sequent, because it throws in some extra .o 14257 # files that make .init and .fini sections work. 14258 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14259 else 14260 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14261 fi 14262 hardcode_libdir_flag_spec_F77='-L$libdir' 14263 hardcode_direct_F77=yes 14264 hardcode_minus_L_F77=yes 14265 hardcode_shlibpath_var_F77=no 14266 ;; 14267 14268 sysv4) 14269 case $host_vendor in 14270 sni) 14271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14272 hardcode_direct_F77=yes # is this really true??? 14273 ;; 14274 siemens) 14275 ## LD is ld it makes a PLAMLIB 14276 ## CC just makes a GrossModule. 14277 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14278 reload_cmds_F77='$CC -r -o $output$reload_objs' 14279 hardcode_direct_F77=no 14280 ;; 14281 motorola) 14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14283 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14284 ;; 14285 esac 14286 runpath_var='LD_RUN_PATH' 14287 hardcode_shlibpath_var_F77=no 14288 ;; 14289 14290 sysv4.3*) 14291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14292 hardcode_shlibpath_var_F77=no 14293 export_dynamic_flag_spec_F77='-Bexport' 14294 ;; 14295 14296 sysv4*MP*) 14297 if test -d /usr/nec; then 14298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14299 hardcode_shlibpath_var_F77=no 14300 runpath_var=LD_RUN_PATH 14301 hardcode_runpath_var=yes 14302 ld_shlibs_F77=yes 14303 fi 14304 ;; 14305 14306 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14307 no_undefined_flag_F77='${wl}-z,text' 14308 archive_cmds_need_lc_F77=no 14309 hardcode_shlibpath_var_F77=no 14310 runpath_var='LD_RUN_PATH' 14311 14312 if test "$GCC" = yes; then 14313 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14314 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14315 else 14316 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14317 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14318 fi 14319 ;; 14320 14321 sysv5* | sco3.2v5* | sco5v6*) 14322 # Note: We can NOT use -z defs as we might desire, because we do not 14323 # link with -lc, and that would cause any symbols used from libc to 14324 # always be unresolved, which means just about no library would 14325 # ever link correctly. If we're not using GNU ld we use -z text 14326 # though, which does catch some bad symbols but isn't as heavy-handed 14327 # as -z defs. 14328 no_undefined_flag_F77='${wl}-z,text' 14329 allow_undefined_flag_F77='${wl}-z,nodefs' 14330 archive_cmds_need_lc_F77=no 14331 hardcode_shlibpath_var_F77=no 14332 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14333 hardcode_libdir_separator_F77=':' 14334 link_all_deplibs_F77=yes 14335 export_dynamic_flag_spec_F77='${wl}-Bexport' 14336 runpath_var='LD_RUN_PATH' 14337 14338 if test "$GCC" = yes; then 14339 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14340 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14341 else 14342 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14343 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14344 fi 14345 ;; 14346 14347 uts4*) 14348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14349 hardcode_libdir_flag_spec_F77='-L$libdir' 14350 hardcode_shlibpath_var_F77=no 14351 ;; 14352 14353 *) 14354 ld_shlibs_F77=no 14355 ;; 14356 esac 14357 fi 14358 14359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 14360$as_echo "$ld_shlibs_F77" >&6; } 14361test "$ld_shlibs_F77" = no && can_build_shared=no 14362 14363# 14364# Do we need to explicitly link libc? 14365# 14366case "x$archive_cmds_need_lc_F77" in 14367x|xyes) 14368 # Assume -lc should be added 14369 archive_cmds_need_lc_F77=yes 14370 14371 if test "$enable_shared" = yes && test "$GCC" = yes; then 14372 case $archive_cmds_F77 in 14373 *'~'*) 14374 # FIXME: we may have to deal with multi-command sequences. 14375 ;; 14376 '$CC '*) 14377 # Test whether the compiler implicitly links with -lc since on some 14378 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14379 # to ld, don't add -lc before -lgcc. 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14381$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14382 $rm conftest* 14383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14384 14385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14386 (eval $ac_compile) 2>&5 14387 ac_status=$? 14388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14389 test $ac_status = 0; } 2>conftest.err; then 14390 soname=conftest 14391 lib=conftest 14392 libobjs=conftest.$ac_objext 14393 deplibs= 14394 wl=$lt_prog_compiler_wl_F77 14395 pic_flag=$lt_prog_compiler_pic_F77 14396 compiler_flags=-v 14397 linker_flags=-v 14398 verstring= 14399 output_objdir=. 14400 libname=conftest 14401 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14402 allow_undefined_flag_F77= 14403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14404 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14405 ac_status=$? 14406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14407 test $ac_status = 0; } 14408 then 14409 archive_cmds_need_lc_F77=no 14410 else 14411 archive_cmds_need_lc_F77=yes 14412 fi 14413 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14414 else 14415 cat conftest.err 1>&5 14416 fi 14417 $rm conftest* 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5 14419$as_echo "$archive_cmds_need_lc_F77" >&6; } 14420 ;; 14421 esac 14422 fi 14423 ;; 14424esac 14425 14426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14427$as_echo_n "checking dynamic linker characteristics... " >&6; } 14428library_names_spec= 14429libname_spec='lib$name' 14430soname_spec= 14431shrext_cmds=".so" 14432postinstall_cmds= 14433postuninstall_cmds= 14434finish_cmds= 14435finish_eval= 14436shlibpath_var= 14437shlibpath_overrides_runpath=unknown 14438version_type=none 14439dynamic_linker="$host_os ld.so" 14440sys_lib_dlsearch_path_spec="/lib /usr/lib" 14441 14442need_lib_prefix=unknown 14443hardcode_into_libs=no 14444 14445# when you set need_version to no, make sure it does not cause -set_version 14446# flags to be left without arguments 14447need_version=unknown 14448 14449case $host_os in 14450aix3*) 14451 version_type=linux 14452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14453 shlibpath_var=LIBPATH 14454 14455 # AIX 3 has no versioning support, so we append a major version to the name. 14456 soname_spec='${libname}${release}${shared_ext}$major' 14457 ;; 14458 14459aix[4-9]*) 14460 version_type=linux 14461 need_lib_prefix=no 14462 need_version=no 14463 hardcode_into_libs=yes 14464 if test "$host_cpu" = ia64; then 14465 # AIX 5 supports IA64 14466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14467 shlibpath_var=LD_LIBRARY_PATH 14468 else 14469 # With GCC up to 2.95.x, collect2 would create an import file 14470 # for dependence libraries. The import file would start with 14471 # the line `#! .'. This would cause the generated library to 14472 # depend on `.', always an invalid library. This was fixed in 14473 # development snapshots of GCC prior to 3.0. 14474 case $host_os in 14475 aix4 | aix4.[01] | aix4.[01].*) 14476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14477 echo ' yes ' 14478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14479 : 14480 else 14481 can_build_shared=no 14482 fi 14483 ;; 14484 esac 14485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14486 # soname into executable. Probably we can add versioning support to 14487 # collect2, so additional links can be useful in future. 14488 if test "$aix_use_runtimelinking" = yes; then 14489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14490 # instead of lib<name>.a to let people know that these are not 14491 # typical AIX shared libraries. 14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14493 else 14494 # We preserve .a as extension for shared libraries through AIX4.2 14495 # and later when we are not doing run time linking. 14496 library_names_spec='${libname}${release}.a $libname.a' 14497 soname_spec='${libname}${release}${shared_ext}$major' 14498 fi 14499 shlibpath_var=LIBPATH 14500 fi 14501 ;; 14502 14503amigaos*) 14504 library_names_spec='$libname.ixlibrary $libname.a' 14505 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14506 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' 14507 ;; 14508 14509beos*) 14510 library_names_spec='${libname}${shared_ext}' 14511 dynamic_linker="$host_os ld.so" 14512 shlibpath_var=LIBRARY_PATH 14513 ;; 14514 14515bsdi[45]*) 14516 version_type=linux 14517 need_version=no 14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14519 soname_spec='${libname}${release}${shared_ext}$major' 14520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14521 shlibpath_var=LD_LIBRARY_PATH 14522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14524 # the default ld.so.conf also contains /usr/contrib/lib and 14525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14526 # libtool to hard-code these into programs 14527 ;; 14528 14529cygwin* | mingw* | pw32*) 14530 version_type=windows 14531 shrext_cmds=".dll" 14532 need_version=no 14533 need_lib_prefix=no 14534 14535 case $GCC,$host_os in 14536 yes,cygwin* | yes,mingw* | yes,pw32*) 14537 library_names_spec='$libname.dll.a' 14538 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14539 postinstall_cmds='base_file=`basename \${file}`~ 14540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14541 dldir=$destdir/`dirname \$dlpath`~ 14542 test -d \$dldir || mkdir -p \$dldir~ 14543 $install_prog $dir/$dlname \$dldir/$dlname~ 14544 chmod a+x \$dldir/$dlname' 14545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14546 dlpath=$dir/\$dldll~ 14547 $rm \$dlpath' 14548 shlibpath_overrides_runpath=yes 14549 14550 case $host_os in 14551 cygwin*) 14552 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14553 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14554 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14555 ;; 14556 mingw*) 14557 # MinGW DLLs use traditional 'lib' prefix 14558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14560 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14561 # It is most probably a Windows format PATH printed by 14562 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14563 # path with ; separators, and with drive letters. We can handle the 14564 # drive letters (cygwin fileutils understands them), so leave them, 14565 # especially as we might pass files found there to a mingw objdump, 14566 # which wouldn't understand a cygwinified path. Ahh. 14567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14568 else 14569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14570 fi 14571 ;; 14572 pw32*) 14573 # pw32 DLLs use 'pw' prefix rather than 'lib' 14574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14575 ;; 14576 esac 14577 ;; 14578 14579 *) 14580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14581 ;; 14582 esac 14583 dynamic_linker='Win32 ld.exe' 14584 # FIXME: first we should search . and the directory the executable is in 14585 shlibpath_var=PATH 14586 ;; 14587 14588darwin* | rhapsody*) 14589 dynamic_linker="$host_os dyld" 14590 version_type=darwin 14591 need_lib_prefix=no 14592 need_version=no 14593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14594 soname_spec='${libname}${release}${major}$shared_ext' 14595 shlibpath_overrides_runpath=yes 14596 shlibpath_var=DYLD_LIBRARY_PATH 14597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14598 14599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14600 ;; 14601 14602dgux*) 14603 version_type=linux 14604 need_lib_prefix=no 14605 need_version=no 14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14607 soname_spec='${libname}${release}${shared_ext}$major' 14608 shlibpath_var=LD_LIBRARY_PATH 14609 ;; 14610 14611freebsd1*) 14612 dynamic_linker=no 14613 ;; 14614 14615freebsd* | dragonfly*) 14616 # DragonFly does not have aout. When/if they implement a new 14617 # versioning mechanism, adjust this. 14618 if test -x /usr/bin/objformat; then 14619 objformat=`/usr/bin/objformat` 14620 else 14621 case $host_os in 14622 freebsd[123]*) objformat=aout ;; 14623 *) objformat=elf ;; 14624 esac 14625 fi 14626 version_type=freebsd-$objformat 14627 case $version_type in 14628 freebsd-elf*) 14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14630 need_version=no 14631 need_lib_prefix=no 14632 ;; 14633 freebsd-*) 14634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14635 need_version=yes 14636 ;; 14637 esac 14638 shlibpath_var=LD_LIBRARY_PATH 14639 case $host_os in 14640 freebsd2*) 14641 shlibpath_overrides_runpath=yes 14642 ;; 14643 freebsd3.[01]* | freebsdelf3.[01]*) 14644 shlibpath_overrides_runpath=yes 14645 hardcode_into_libs=yes 14646 ;; 14647 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14648 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14649 shlibpath_overrides_runpath=no 14650 hardcode_into_libs=yes 14651 ;; 14652 *) # from 4.6 on, and DragonFly 14653 shlibpath_overrides_runpath=yes 14654 hardcode_into_libs=yes 14655 ;; 14656 esac 14657 ;; 14658 14659gnu*) 14660 version_type=linux 14661 need_lib_prefix=no 14662 need_version=no 14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14664 soname_spec='${libname}${release}${shared_ext}$major' 14665 shlibpath_var=LD_LIBRARY_PATH 14666 hardcode_into_libs=yes 14667 ;; 14668 14669hpux9* | hpux10* | hpux11*) 14670 # Give a soname corresponding to the major version so that dld.sl refuses to 14671 # link against other versions. 14672 version_type=sunos 14673 need_lib_prefix=no 14674 need_version=no 14675 case $host_cpu in 14676 ia64*) 14677 shrext_cmds='.so' 14678 hardcode_into_libs=yes 14679 dynamic_linker="$host_os dld.so" 14680 shlibpath_var=LD_LIBRARY_PATH 14681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14683 soname_spec='${libname}${release}${shared_ext}$major' 14684 if test "X$HPUX_IA64_MODE" = X32; then 14685 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14686 else 14687 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14688 fi 14689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14690 ;; 14691 hppa*64*) 14692 shrext_cmds='.sl' 14693 hardcode_into_libs=yes 14694 dynamic_linker="$host_os dld.sl" 14695 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14698 soname_spec='${libname}${release}${shared_ext}$major' 14699 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14701 ;; 14702 *) 14703 shrext_cmds='.sl' 14704 dynamic_linker="$host_os dld.sl" 14705 shlibpath_var=SHLIB_PATH 14706 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14708 soname_spec='${libname}${release}${shared_ext}$major' 14709 ;; 14710 esac 14711 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14712 postinstall_cmds='chmod 555 $lib' 14713 ;; 14714 14715interix[3-9]*) 14716 version_type=linux 14717 need_lib_prefix=no 14718 need_version=no 14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14720 soname_spec='${libname}${release}${shared_ext}$major' 14721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14722 shlibpath_var=LD_LIBRARY_PATH 14723 shlibpath_overrides_runpath=no 14724 hardcode_into_libs=yes 14725 ;; 14726 14727irix5* | irix6* | nonstopux*) 14728 case $host_os in 14729 nonstopux*) version_type=nonstopux ;; 14730 *) 14731 if test "$lt_cv_prog_gnu_ld" = yes; then 14732 version_type=linux 14733 else 14734 version_type=irix 14735 fi ;; 14736 esac 14737 need_lib_prefix=no 14738 need_version=no 14739 soname_spec='${libname}${release}${shared_ext}$major' 14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14741 case $host_os in 14742 irix5* | nonstopux*) 14743 libsuff= shlibsuff= 14744 ;; 14745 *) 14746 case $LD in # libtool.m4 will add one of these switches to LD 14747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14748 libsuff= shlibsuff= libmagic=32-bit;; 14749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14750 libsuff=32 shlibsuff=N32 libmagic=N32;; 14751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14752 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14753 *) libsuff= shlibsuff= libmagic=never-match;; 14754 esac 14755 ;; 14756 esac 14757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14758 shlibpath_overrides_runpath=no 14759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14761 hardcode_into_libs=yes 14762 ;; 14763 14764# No shared lib support for Linux oldld, aout, or coff. 14765linux*oldld* | linux*aout* | linux*coff*) 14766 dynamic_linker=no 14767 ;; 14768 14769# This must be Linux ELF. 14770linux* | k*bsd*-gnu) 14771 version_type=linux 14772 need_lib_prefix=no 14773 need_version=no 14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14775 soname_spec='${libname}${release}${shared_ext}$major' 14776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14777 shlibpath_var=LD_LIBRARY_PATH 14778 shlibpath_overrides_runpath=no 14779 # This implies no fast_install, which is unacceptable. 14780 # Some rework will be needed to allow for fast_install 14781 # before this can be enabled. 14782 hardcode_into_libs=yes 14783 14784 # Append ld.so.conf contents to the search path 14785 if test -f /etc/ld.so.conf; then 14786 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14788 fi 14789 14790 # We used to test for /lib/ld.so.1 and disable shared libraries on 14791 # powerpc, because MkLinux only supported shared libraries with the 14792 # GNU dynamic linker. Since this was broken with cross compilers, 14793 # most powerpc-linux boxes support dynamic linking these days and 14794 # people can always --disable-shared, the test was removed, and we 14795 # assume the GNU/Linux dynamic linker is in use. 14796 dynamic_linker='GNU/Linux ld.so' 14797 ;; 14798 14799netbsd*) 14800 version_type=sunos 14801 need_lib_prefix=no 14802 need_version=no 14803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14806 dynamic_linker='NetBSD (a.out) ld.so' 14807 else 14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14809 soname_spec='${libname}${release}${shared_ext}$major' 14810 dynamic_linker='NetBSD ld.elf_so' 14811 fi 14812 shlibpath_var=LD_LIBRARY_PATH 14813 shlibpath_overrides_runpath=yes 14814 hardcode_into_libs=yes 14815 ;; 14816 14817newsos6) 14818 version_type=linux 14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14820 shlibpath_var=LD_LIBRARY_PATH 14821 shlibpath_overrides_runpath=yes 14822 ;; 14823 14824nto-qnx*) 14825 version_type=linux 14826 need_lib_prefix=no 14827 need_version=no 14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14829 soname_spec='${libname}${release}${shared_ext}$major' 14830 shlibpath_var=LD_LIBRARY_PATH 14831 shlibpath_overrides_runpath=yes 14832 ;; 14833 14834openbsd*) 14835 version_type=sunos 14836 sys_lib_dlsearch_path_spec="/usr/lib" 14837 need_lib_prefix=no 14838 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14839 case $host_os in 14840 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14841 *) need_version=no ;; 14842 esac 14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14845 shlibpath_var=LD_LIBRARY_PATH 14846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14847 case $host_os in 14848 openbsd2.[89] | openbsd2.[89].*) 14849 shlibpath_overrides_runpath=no 14850 ;; 14851 *) 14852 shlibpath_overrides_runpath=yes 14853 ;; 14854 esac 14855 else 14856 shlibpath_overrides_runpath=yes 14857 fi 14858 ;; 14859 14860os2*) 14861 libname_spec='$name' 14862 shrext_cmds=".dll" 14863 need_lib_prefix=no 14864 library_names_spec='$libname${shared_ext} $libname.a' 14865 dynamic_linker='OS/2 ld.exe' 14866 shlibpath_var=LIBPATH 14867 ;; 14868 14869osf3* | osf4* | osf5*) 14870 version_type=osf 14871 need_lib_prefix=no 14872 need_version=no 14873 soname_spec='${libname}${release}${shared_ext}$major' 14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14875 shlibpath_var=LD_LIBRARY_PATH 14876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14878 ;; 14879 14880rdos*) 14881 dynamic_linker=no 14882 ;; 14883 14884solaris*) 14885 version_type=linux 14886 need_lib_prefix=no 14887 need_version=no 14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14889 soname_spec='${libname}${release}${shared_ext}$major' 14890 shlibpath_var=LD_LIBRARY_PATH 14891 shlibpath_overrides_runpath=yes 14892 hardcode_into_libs=yes 14893 # ldd complains unless libraries are executable 14894 postinstall_cmds='chmod +x $lib' 14895 ;; 14896 14897sunos4*) 14898 version_type=sunos 14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14900 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14901 shlibpath_var=LD_LIBRARY_PATH 14902 shlibpath_overrides_runpath=yes 14903 if test "$with_gnu_ld" = yes; then 14904 need_lib_prefix=no 14905 fi 14906 need_version=yes 14907 ;; 14908 14909sysv4 | sysv4.3*) 14910 version_type=linux 14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14912 soname_spec='${libname}${release}${shared_ext}$major' 14913 shlibpath_var=LD_LIBRARY_PATH 14914 case $host_vendor in 14915 sni) 14916 shlibpath_overrides_runpath=no 14917 need_lib_prefix=no 14918 export_dynamic_flag_spec='${wl}-Blargedynsym' 14919 runpath_var=LD_RUN_PATH 14920 ;; 14921 siemens) 14922 need_lib_prefix=no 14923 ;; 14924 motorola) 14925 need_lib_prefix=no 14926 need_version=no 14927 shlibpath_overrides_runpath=no 14928 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14929 ;; 14930 esac 14931 ;; 14932 14933sysv4*MP*) 14934 if test -d /usr/nec ;then 14935 version_type=linux 14936 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14937 soname_spec='$libname${shared_ext}.$major' 14938 shlibpath_var=LD_LIBRARY_PATH 14939 fi 14940 ;; 14941 14942sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14943 version_type=freebsd-elf 14944 need_lib_prefix=no 14945 need_version=no 14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14947 soname_spec='${libname}${release}${shared_ext}$major' 14948 shlibpath_var=LD_LIBRARY_PATH 14949 hardcode_into_libs=yes 14950 if test "$with_gnu_ld" = yes; then 14951 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14952 shlibpath_overrides_runpath=no 14953 else 14954 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14955 shlibpath_overrides_runpath=yes 14956 case $host_os in 14957 sco3.2v5*) 14958 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14959 ;; 14960 esac 14961 fi 14962 sys_lib_dlsearch_path_spec='/usr/lib' 14963 ;; 14964 14965uts4*) 14966 version_type=linux 14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14968 soname_spec='${libname}${release}${shared_ext}$major' 14969 shlibpath_var=LD_LIBRARY_PATH 14970 ;; 14971 14972*) 14973 dynamic_linker=no 14974 ;; 14975esac 14976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14977$as_echo "$dynamic_linker" >&6; } 14978test "$dynamic_linker" = no && can_build_shared=no 14979 14980if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 14981 $as_echo_n "(cached) " >&6 14982else 14983 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 14984fi 14985 14986sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14987if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 14988 $as_echo_n "(cached) " >&6 14989else 14990 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 14991fi 14992 14993sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14994 14995variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14996if test "$GCC" = yes; then 14997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14998fi 14999 15000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15001$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15002hardcode_action_F77= 15003if test -n "$hardcode_libdir_flag_spec_F77" || \ 15004 test -n "$runpath_var_F77" || \ 15005 test "X$hardcode_automatic_F77" = "Xyes" ; then 15006 15007 # We can hardcode non-existant directories. 15008 if test "$hardcode_direct_F77" != no && 15009 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15010 # have to relink, otherwise we might link with an installed library 15011 # when we should be linking with a yet-to-be-installed one 15012 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15013 test "$hardcode_minus_L_F77" != no; then 15014 # Linking always hardcodes the temporary library directory. 15015 hardcode_action_F77=relink 15016 else 15017 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15018 hardcode_action_F77=immediate 15019 fi 15020else 15021 # We cannot hardcode anything, or else we can only hardcode existing 15022 # directories. 15023 hardcode_action_F77=unsupported 15024fi 15025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 15026$as_echo "$hardcode_action_F77" >&6; } 15027 15028if test "$hardcode_action_F77" = relink; then 15029 # Fast installation is not supported 15030 enable_fast_install=no 15031elif test "$shlibpath_overrides_runpath" = yes || 15032 test "$enable_shared" = no; then 15033 # Fast installation is not necessary 15034 enable_fast_install=needless 15035fi 15036 15037 15038# The else clause should only fire when bootstrapping the 15039# libtool distribution, otherwise you forgot to ship ltmain.sh 15040# with your package, and you will get complaints that there are 15041# no rules to generate ltmain.sh. 15042if test -f "$ltmain"; then 15043 # See if we are running on zsh, and set the options which allow our commands through 15044 # without removal of \ escapes. 15045 if test -n "${ZSH_VERSION+set}" ; then 15046 setopt NO_GLOB_SUBST 15047 fi 15048 # Now quote all the things that may contain metacharacters while being 15049 # careful not to overquote the AC_SUBSTed values. We take copies of the 15050 # variables and quote the copies for generation of the libtool script. 15051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15052 SED SHELL STRIP \ 15053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15055 deplibs_check_method reload_flag reload_cmds need_locks \ 15056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15057 lt_cv_sys_global_symbol_to_c_name_address \ 15058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15059 old_postinstall_cmds old_postuninstall_cmds \ 15060 compiler_F77 \ 15061 CC_F77 \ 15062 LD_F77 \ 15063 lt_prog_compiler_wl_F77 \ 15064 lt_prog_compiler_pic_F77 \ 15065 lt_prog_compiler_static_F77 \ 15066 lt_prog_compiler_no_builtin_flag_F77 \ 15067 export_dynamic_flag_spec_F77 \ 15068 thread_safe_flag_spec_F77 \ 15069 whole_archive_flag_spec_F77 \ 15070 enable_shared_with_static_runtimes_F77 \ 15071 old_archive_cmds_F77 \ 15072 old_archive_from_new_cmds_F77 \ 15073 predep_objects_F77 \ 15074 postdep_objects_F77 \ 15075 predeps_F77 \ 15076 postdeps_F77 \ 15077 compiler_lib_search_path_F77 \ 15078 compiler_lib_search_dirs_F77 \ 15079 archive_cmds_F77 \ 15080 archive_expsym_cmds_F77 \ 15081 postinstall_cmds_F77 \ 15082 postuninstall_cmds_F77 \ 15083 old_archive_from_expsyms_cmds_F77 \ 15084 allow_undefined_flag_F77 \ 15085 no_undefined_flag_F77 \ 15086 export_symbols_cmds_F77 \ 15087 hardcode_libdir_flag_spec_F77 \ 15088 hardcode_libdir_flag_spec_ld_F77 \ 15089 hardcode_libdir_separator_F77 \ 15090 hardcode_automatic_F77 \ 15091 module_cmds_F77 \ 15092 module_expsym_cmds_F77 \ 15093 lt_cv_prog_compiler_c_o_F77 \ 15094 fix_srcfile_path_F77 \ 15095 exclude_expsyms_F77 \ 15096 include_expsyms_F77; do 15097 15098 case $var in 15099 old_archive_cmds_F77 | \ 15100 old_archive_from_new_cmds_F77 | \ 15101 archive_cmds_F77 | \ 15102 archive_expsym_cmds_F77 | \ 15103 module_cmds_F77 | \ 15104 module_expsym_cmds_F77 | \ 15105 old_archive_from_expsyms_cmds_F77 | \ 15106 export_symbols_cmds_F77 | \ 15107 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15108 postinstall_cmds | postuninstall_cmds | \ 15109 old_postinstall_cmds | old_postuninstall_cmds | \ 15110 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15111 # Double-quote double-evaled strings. 15112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15113 ;; 15114 *) 15115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15116 ;; 15117 esac 15118 done 15119 15120 case $lt_echo in 15121 *'\$0 --fallback-echo"') 15122 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15123 ;; 15124 esac 15125 15126cfgfile="$ofile" 15127 15128 cat <<__EOF__ >> "$cfgfile" 15129# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15130 15131# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15132 15133# Shell to use when invoking shell scripts. 15134SHELL=$lt_SHELL 15135 15136# Whether or not to build shared libraries. 15137build_libtool_libs=$enable_shared 15138 15139# Whether or not to build static libraries. 15140build_old_libs=$enable_static 15141 15142# Whether or not to add -lc for building shared libraries. 15143build_libtool_need_lc=$archive_cmds_need_lc_F77 15144 15145# Whether or not to disallow shared libs when runtime libs are static 15146allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15147 15148# Whether or not to optimize for fast installation. 15149fast_install=$enable_fast_install 15150 15151# The host system. 15152host_alias=$host_alias 15153host=$host 15154host_os=$host_os 15155 15156# The build system. 15157build_alias=$build_alias 15158build=$build 15159build_os=$build_os 15160 15161# An echo program that does not interpret backslashes. 15162echo=$lt_echo 15163 15164# The archiver. 15165AR=$lt_AR 15166AR_FLAGS=$lt_AR_FLAGS 15167 15168# A C compiler. 15169LTCC=$lt_LTCC 15170 15171# LTCC compiler flags. 15172LTCFLAGS=$lt_LTCFLAGS 15173 15174# A language-specific compiler. 15175CC=$lt_compiler_F77 15176 15177# Is the compiler the GNU C compiler? 15178with_gcc=$GCC_F77 15179 15180# An ERE matcher. 15181EGREP=$lt_EGREP 15182 15183# The linker used to build libraries. 15184LD=$lt_LD_F77 15185 15186# Whether we need hard or soft links. 15187LN_S=$lt_LN_S 15188 15189# A BSD-compatible nm program. 15190NM=$lt_NM 15191 15192# A symbol stripping program 15193STRIP=$lt_STRIP 15194 15195# Used to examine libraries when file_magic_cmd begins "file" 15196MAGIC_CMD=$MAGIC_CMD 15197 15198# Used on cygwin: DLL creation program. 15199DLLTOOL="$DLLTOOL" 15200 15201# Used on cygwin: object dumper. 15202OBJDUMP="$OBJDUMP" 15203 15204# Used on cygwin: assembler. 15205AS="$AS" 15206 15207# The name of the directory that contains temporary libtool files. 15208objdir=$objdir 15209 15210# How to create reloadable object files. 15211reload_flag=$lt_reload_flag 15212reload_cmds=$lt_reload_cmds 15213 15214# How to pass a linker flag through the compiler. 15215wl=$lt_lt_prog_compiler_wl_F77 15216 15217# Object file suffix (normally "o"). 15218objext="$ac_objext" 15219 15220# Old archive suffix (normally "a"). 15221libext="$libext" 15222 15223# Shared library suffix (normally ".so"). 15224shrext_cmds='$shrext_cmds' 15225 15226# Executable file suffix (normally ""). 15227exeext="$exeext" 15228 15229# Additional compiler flags for building library objects. 15230pic_flag=$lt_lt_prog_compiler_pic_F77 15231pic_mode=$pic_mode 15232 15233# What is the maximum length of a command? 15234max_cmd_len=$lt_cv_sys_max_cmd_len 15235 15236# Does compiler simultaneously support -c and -o options? 15237compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15238 15239# Must we lock files when doing compilation? 15240need_locks=$lt_need_locks 15241 15242# Do we need the lib prefix for modules? 15243need_lib_prefix=$need_lib_prefix 15244 15245# Do we need a version for libraries? 15246need_version=$need_version 15247 15248# Whether dlopen is supported. 15249dlopen_support=$enable_dlopen 15250 15251# Whether dlopen of programs is supported. 15252dlopen_self=$enable_dlopen_self 15253 15254# Whether dlopen of statically linked programs is supported. 15255dlopen_self_static=$enable_dlopen_self_static 15256 15257# Compiler flag to prevent dynamic linking. 15258link_static_flag=$lt_lt_prog_compiler_static_F77 15259 15260# Compiler flag to turn off builtin functions. 15261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15262 15263# Compiler flag to allow reflexive dlopens. 15264export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15265 15266# Compiler flag to generate shared objects directly from archives. 15267whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15268 15269# Compiler flag to generate thread-safe objects. 15270thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15271 15272# Library versioning type. 15273version_type=$version_type 15274 15275# Format of library name prefix. 15276libname_spec=$lt_libname_spec 15277 15278# List of archive names. First name is the real one, the rest are links. 15279# The last name is the one that the linker finds with -lNAME. 15280library_names_spec=$lt_library_names_spec 15281 15282# The coded name of the library, if different from the real name. 15283soname_spec=$lt_soname_spec 15284 15285# Commands used to build and install an old-style archive. 15286RANLIB=$lt_RANLIB 15287old_archive_cmds=$lt_old_archive_cmds_F77 15288old_postinstall_cmds=$lt_old_postinstall_cmds 15289old_postuninstall_cmds=$lt_old_postuninstall_cmds 15290 15291# Create an old-style archive from a shared archive. 15292old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15293 15294# Create a temporary old-style archive to link instead of a shared archive. 15295old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15296 15297# Commands used to build and install a shared archive. 15298archive_cmds=$lt_archive_cmds_F77 15299archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15300postinstall_cmds=$lt_postinstall_cmds 15301postuninstall_cmds=$lt_postuninstall_cmds 15302 15303# Commands used to build a loadable module (assumed same as above if empty) 15304module_cmds=$lt_module_cmds_F77 15305module_expsym_cmds=$lt_module_expsym_cmds_F77 15306 15307# Commands to strip libraries. 15308old_striplib=$lt_old_striplib 15309striplib=$lt_striplib 15310 15311# Dependencies to place before the objects being linked to create a 15312# shared library. 15313predep_objects=$lt_predep_objects_F77 15314 15315# Dependencies to place after the objects being linked to create a 15316# shared library. 15317postdep_objects=$lt_postdep_objects_F77 15318 15319# Dependencies to place before the objects being linked to create a 15320# shared library. 15321predeps=$lt_predeps_F77 15322 15323# Dependencies to place after the objects being linked to create a 15324# shared library. 15325postdeps=$lt_postdeps_F77 15326 15327# The directories searched by this compiler when creating a shared 15328# library 15329compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 15330 15331# The library search path used internally by the compiler when linking 15332# a shared library. 15333compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15334 15335# Method to check whether dependent libraries are shared objects. 15336deplibs_check_method=$lt_deplibs_check_method 15337 15338# Command to use when deplibs_check_method == file_magic. 15339file_magic_cmd=$lt_file_magic_cmd 15340 15341# Flag that allows shared libraries with undefined symbols to be built. 15342allow_undefined_flag=$lt_allow_undefined_flag_F77 15343 15344# Flag that forces no undefined symbols. 15345no_undefined_flag=$lt_no_undefined_flag_F77 15346 15347# Commands used to finish a libtool library installation in a directory. 15348finish_cmds=$lt_finish_cmds 15349 15350# Same as above, but a single script fragment to be evaled but not shown. 15351finish_eval=$lt_finish_eval 15352 15353# Take the output of nm and produce a listing of raw symbols and C names. 15354global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15355 15356# Transform the output of nm in a proper C declaration 15357global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15358 15359# Transform the output of nm in a C name address pair 15360global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15361 15362# This is the shared library runtime path variable. 15363runpath_var=$runpath_var 15364 15365# This is the shared library path variable. 15366shlibpath_var=$shlibpath_var 15367 15368# Is shlibpath searched before the hard-coded library search path? 15369shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15370 15371# How to hardcode a shared library path into an executable. 15372hardcode_action=$hardcode_action_F77 15373 15374# Whether we should hardcode library paths into libraries. 15375hardcode_into_libs=$hardcode_into_libs 15376 15377# Flag to hardcode \$libdir into a binary during linking. 15378# This must work even if \$libdir does not exist. 15379hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15380 15381# If ld is used when linking, flag to hardcode \$libdir into 15382# a binary during linking. This must work even if \$libdir does 15383# not exist. 15384hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15385 15386# Whether we need a single -rpath flag with a separated argument. 15387hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15388 15389# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15390# resulting binary. 15391hardcode_direct=$hardcode_direct_F77 15392 15393# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15394# resulting binary. 15395hardcode_minus_L=$hardcode_minus_L_F77 15396 15397# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15398# the resulting binary. 15399hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15400 15401# Set to yes if building a shared library automatically hardcodes DIR into the library 15402# and all subsequent libraries and executables linked against it. 15403hardcode_automatic=$hardcode_automatic_F77 15404 15405# Variables whose values should be saved in libtool wrapper scripts and 15406# restored at relink time. 15407variables_saved_for_relink="$variables_saved_for_relink" 15408 15409# Whether libtool must link a program against all its dependency libraries. 15410link_all_deplibs=$link_all_deplibs_F77 15411 15412# Compile-time system search path for libraries 15413sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15414 15415# Run-time system search path for libraries 15416sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15417 15418# Fix the shell variable \$srcfile for the compiler. 15419fix_srcfile_path=$lt_fix_srcfile_path 15420 15421# Set to yes if exported symbols are required. 15422always_export_symbols=$always_export_symbols_F77 15423 15424# The commands to list exported symbols. 15425export_symbols_cmds=$lt_export_symbols_cmds_F77 15426 15427# The commands to extract the exported symbol list from a shared archive. 15428extract_expsyms_cmds=$lt_extract_expsyms_cmds 15429 15430# Symbols that should not be listed in the preloaded symbols. 15431exclude_expsyms=$lt_exclude_expsyms_F77 15432 15433# Symbols that must always be exported. 15434include_expsyms=$lt_include_expsyms_F77 15435 15436# ### END LIBTOOL TAG CONFIG: $tagname 15437 15438__EOF__ 15439 15440 15441else 15442 # If there is no Makefile yet, we rely on a make rule to execute 15443 # `config.status --recheck' to rerun these tests and create the 15444 # libtool script then. 15445 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15446 if test -f "$ltmain_in"; then 15447 test -f Makefile && make "$ltmain" 15448 fi 15449fi 15450 15451 15452ac_ext=c 15453ac_cpp='$CPP $CPPFLAGS' 15454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15456ac_compiler_gnu=$ac_cv_c_compiler_gnu 15457 15458CC="$lt_save_CC" 15459 15460 else 15461 tagname="" 15462 fi 15463 ;; 15464 15465 GCJ) 15466 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15467 15468 15469# Source file extension for Java test sources. 15470ac_ext=java 15471 15472# Object file extension for compiled Java test sources. 15473objext=o 15474objext_GCJ=$objext 15475 15476# Code to be used in simple compile tests 15477lt_simple_compile_test_code="class foo {}" 15478 15479# Code to be used in simple link tests 15480lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 15481 15482# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15483 15484# If no C compiler was specified, use CC. 15485LTCC=${LTCC-"$CC"} 15486 15487# If no C compiler flags were specified, use CFLAGS. 15488LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15489 15490# Allow CC to be a program name with arguments. 15491compiler=$CC 15492 15493 15494# save warnings/boilerplate of simple test code 15495ac_outfile=conftest.$ac_objext 15496echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15497eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15498_lt_compiler_boilerplate=`cat conftest.err` 15499$rm conftest* 15500 15501ac_outfile=conftest.$ac_objext 15502echo "$lt_simple_link_test_code" >conftest.$ac_ext 15503eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15504_lt_linker_boilerplate=`cat conftest.err` 15505$rm -r conftest* 15506 15507 15508# Allow CC to be a program name with arguments. 15509lt_save_CC="$CC" 15510CC=${GCJ-"gcj"} 15511compiler=$CC 15512compiler_GCJ=$CC 15513for cc_temp in $compiler""; do 15514 case $cc_temp in 15515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15517 \-*) ;; 15518 *) break;; 15519 esac 15520done 15521cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15522 15523 15524# GCJ did not exist at the time GCC didn't implicitly link libc in. 15525archive_cmds_need_lc_GCJ=no 15526 15527old_archive_cmds_GCJ=$old_archive_cmds 15528 15529## CAVEAT EMPTOR: 15530## There is no encapsulation within the following macros, do not change 15531## the running order or otherwise move them around unless you know exactly 15532## what you are doing... 15533 15534lt_prog_compiler_no_builtin_flag_GCJ= 15535 15536if test "$GCC" = yes; then 15537 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15538 15539 15540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15541$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15542if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 15543 $as_echo_n "(cached) " >&6 15544else 15545 lt_cv_prog_compiler_rtti_exceptions=no 15546 ac_outfile=conftest.$ac_objext 15547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15548 lt_compiler_flag="-fno-rtti -fno-exceptions" 15549 # Insert the option either (1) after the last *FLAGS variable, or 15550 # (2) before a word containing "conftest.", or (3) at the end. 15551 # Note that $ac_compile itself does not contain backslashes and begins 15552 # with a dollar sign (not a hyphen), so the echo should work correctly. 15553 # The option is referenced via a variable to avoid confusing sed. 15554 lt_compile=`echo "$ac_compile" | $SED \ 15555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15557 -e 's:$: $lt_compiler_flag:'` 15558 (eval echo "\"\$as_me:15558: $lt_compile\"" >&5) 15559 (eval "$lt_compile" 2>conftest.err) 15560 ac_status=$? 15561 cat conftest.err >&5 15562 echo "$as_me:15562: \$? = $ac_status" >&5 15563 if (exit $ac_status) && test -s "$ac_outfile"; then 15564 # The compiler can only warn and ignore the option if not recognized 15565 # So say no if there are warnings other than the usual output. 15566 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15569 lt_cv_prog_compiler_rtti_exceptions=yes 15570 fi 15571 fi 15572 $rm conftest* 15573 15574fi 15575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15576$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15577 15578if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15579 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15580else 15581 : 15582fi 15583 15584fi 15585 15586lt_prog_compiler_wl_GCJ= 15587lt_prog_compiler_pic_GCJ= 15588lt_prog_compiler_static_GCJ= 15589 15590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15591$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15592 15593 if test "$GCC" = yes; then 15594 lt_prog_compiler_wl_GCJ='-Wl,' 15595 lt_prog_compiler_static_GCJ='-static' 15596 15597 case $host_os in 15598 aix*) 15599 # All AIX code is PIC. 15600 if test "$host_cpu" = ia64; then 15601 # AIX 5 now supports IA64 processor 15602 lt_prog_compiler_static_GCJ='-Bstatic' 15603 fi 15604 ;; 15605 15606 amigaos*) 15607 # FIXME: we need at least 68020 code to build shared libraries, but 15608 # adding the `-m68020' flag to GCC prevents building anything better, 15609 # like `-m68040'. 15610 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15611 ;; 15612 15613 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15614 # PIC is the default for these OSes. 15615 ;; 15616 15617 mingw* | cygwin* | pw32* | os2*) 15618 # This hack is so that the source file can tell whether it is being 15619 # built for inclusion in a dll (and should export symbols for example). 15620 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15621 # (--disable-auto-import) libraries 15622 15623 ;; 15624 15625 darwin* | rhapsody*) 15626 # PIC is the default on this platform 15627 # Common symbols not allowed in MH_DYLIB files 15628 lt_prog_compiler_pic_GCJ='-fno-common' 15629 ;; 15630 15631 interix[3-9]*) 15632 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15633 # Instead, we relocate shared libraries at runtime. 15634 ;; 15635 15636 msdosdjgpp*) 15637 # Just because we use GCC doesn't mean we suddenly get shared libraries 15638 # on systems that don't support them. 15639 lt_prog_compiler_can_build_shared_GCJ=no 15640 enable_shared=no 15641 ;; 15642 15643 sysv4*MP*) 15644 if test -d /usr/nec; then 15645 lt_prog_compiler_pic_GCJ=-Kconform_pic 15646 fi 15647 ;; 15648 15649 hpux*) 15650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15651 # not for PA HP-UX. 15652 case $host_cpu in 15653 hppa*64*|ia64*) 15654 # +Z the default 15655 ;; 15656 *) 15657 lt_prog_compiler_pic_GCJ='-fPIC' 15658 ;; 15659 esac 15660 ;; 15661 15662 *) 15663 lt_prog_compiler_pic_GCJ='-fPIC' 15664 ;; 15665 esac 15666 else 15667 # PORTME Check for flag to pass linker flags through the system compiler. 15668 case $host_os in 15669 aix*) 15670 lt_prog_compiler_wl_GCJ='-Wl,' 15671 if test "$host_cpu" = ia64; then 15672 # AIX 5 now supports IA64 processor 15673 lt_prog_compiler_static_GCJ='-Bstatic' 15674 else 15675 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15676 fi 15677 ;; 15678 darwin*) 15679 # PIC is the default on this platform 15680 # Common symbols not allowed in MH_DYLIB files 15681 case $cc_basename in 15682 xlc*) 15683 lt_prog_compiler_pic_GCJ='-qnocommon' 15684 lt_prog_compiler_wl_GCJ='-Wl,' 15685 ;; 15686 esac 15687 ;; 15688 15689 mingw* | cygwin* | pw32* | os2*) 15690 # This hack is so that the source file can tell whether it is being 15691 # built for inclusion in a dll (and should export symbols for example). 15692 15693 ;; 15694 15695 hpux9* | hpux10* | hpux11*) 15696 lt_prog_compiler_wl_GCJ='-Wl,' 15697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15698 # not for PA HP-UX. 15699 case $host_cpu in 15700 hppa*64*|ia64*) 15701 # +Z the default 15702 ;; 15703 *) 15704 lt_prog_compiler_pic_GCJ='+Z' 15705 ;; 15706 esac 15707 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15708 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15709 ;; 15710 15711 irix5* | irix6* | nonstopux*) 15712 lt_prog_compiler_wl_GCJ='-Wl,' 15713 # PIC (with -KPIC) is the default. 15714 lt_prog_compiler_static_GCJ='-non_shared' 15715 ;; 15716 15717 newsos6) 15718 lt_prog_compiler_pic_GCJ='-KPIC' 15719 lt_prog_compiler_static_GCJ='-Bstatic' 15720 ;; 15721 15722 linux* | k*bsd*-gnu) 15723 case $cc_basename in 15724 icc* | ecc*) 15725 lt_prog_compiler_wl_GCJ='-Wl,' 15726 lt_prog_compiler_pic_GCJ='-KPIC' 15727 lt_prog_compiler_static_GCJ='-static' 15728 ;; 15729 pgcc* | pgf77* | pgf90* | pgf95*) 15730 # Portland Group compilers (*not* the Pentium gcc compiler, 15731 # which looks to be a dead project) 15732 lt_prog_compiler_wl_GCJ='-Wl,' 15733 lt_prog_compiler_pic_GCJ='-fpic' 15734 lt_prog_compiler_static_GCJ='-Bstatic' 15735 ;; 15736 ccc*) 15737 lt_prog_compiler_wl_GCJ='-Wl,' 15738 # All Alpha code is PIC. 15739 lt_prog_compiler_static_GCJ='-non_shared' 15740 ;; 15741 *) 15742 case `$CC -V 2>&1 | sed 5q` in 15743 *Sun\ C*) 15744 # Sun C 5.9 15745 lt_prog_compiler_pic_GCJ='-KPIC' 15746 lt_prog_compiler_static_GCJ='-Bstatic' 15747 lt_prog_compiler_wl_GCJ='-Wl,' 15748 ;; 15749 *Sun\ F*) 15750 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15751 lt_prog_compiler_pic_GCJ='-KPIC' 15752 lt_prog_compiler_static_GCJ='-Bstatic' 15753 lt_prog_compiler_wl_GCJ='' 15754 ;; 15755 esac 15756 ;; 15757 esac 15758 ;; 15759 15760 osf3* | osf4* | osf5*) 15761 lt_prog_compiler_wl_GCJ='-Wl,' 15762 # All OSF/1 code is PIC. 15763 lt_prog_compiler_static_GCJ='-non_shared' 15764 ;; 15765 15766 rdos*) 15767 lt_prog_compiler_static_GCJ='-non_shared' 15768 ;; 15769 15770 solaris*) 15771 lt_prog_compiler_pic_GCJ='-KPIC' 15772 lt_prog_compiler_static_GCJ='-Bstatic' 15773 case $cc_basename in 15774 f77* | f90* | f95*) 15775 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15776 *) 15777 lt_prog_compiler_wl_GCJ='-Wl,';; 15778 esac 15779 ;; 15780 15781 sunos4*) 15782 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15783 lt_prog_compiler_pic_GCJ='-PIC' 15784 lt_prog_compiler_static_GCJ='-Bstatic' 15785 ;; 15786 15787 sysv4 | sysv4.2uw2* | sysv4.3*) 15788 lt_prog_compiler_wl_GCJ='-Wl,' 15789 lt_prog_compiler_pic_GCJ='-KPIC' 15790 lt_prog_compiler_static_GCJ='-Bstatic' 15791 ;; 15792 15793 sysv4*MP*) 15794 if test -d /usr/nec ;then 15795 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15796 lt_prog_compiler_static_GCJ='-Bstatic' 15797 fi 15798 ;; 15799 15800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15801 lt_prog_compiler_wl_GCJ='-Wl,' 15802 lt_prog_compiler_pic_GCJ='-KPIC' 15803 lt_prog_compiler_static_GCJ='-Bstatic' 15804 ;; 15805 15806 unicos*) 15807 lt_prog_compiler_wl_GCJ='-Wl,' 15808 lt_prog_compiler_can_build_shared_GCJ=no 15809 ;; 15810 15811 uts4*) 15812 lt_prog_compiler_pic_GCJ='-pic' 15813 lt_prog_compiler_static_GCJ='-Bstatic' 15814 ;; 15815 15816 *) 15817 lt_prog_compiler_can_build_shared_GCJ=no 15818 ;; 15819 esac 15820 fi 15821 15822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 15823$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 15824 15825# 15826# Check to make sure the PIC flag actually works. 15827# 15828if test -n "$lt_prog_compiler_pic_GCJ"; then 15829 15830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15831$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 15832if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then : 15833 $as_echo_n "(cached) " >&6 15834else 15835 lt_cv_prog_compiler_pic_works_GCJ=no 15836 ac_outfile=conftest.$ac_objext 15837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15838 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15839 # Insert the option either (1) after the last *FLAGS variable, or 15840 # (2) before a word containing "conftest.", or (3) at the end. 15841 # Note that $ac_compile itself does not contain backslashes and begins 15842 # with a dollar sign (not a hyphen), so the echo should work correctly. 15843 # The option is referenced via a variable to avoid confusing sed. 15844 lt_compile=`echo "$ac_compile" | $SED \ 15845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15847 -e 's:$: $lt_compiler_flag:'` 15848 (eval echo "\"\$as_me:15848: $lt_compile\"" >&5) 15849 (eval "$lt_compile" 2>conftest.err) 15850 ac_status=$? 15851 cat conftest.err >&5 15852 echo "$as_me:15852: \$? = $ac_status" >&5 15853 if (exit $ac_status) && test -s "$ac_outfile"; then 15854 # The compiler can only warn and ignore the option if not recognized 15855 # So say no if there are warnings other than the usual output. 15856 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15859 lt_cv_prog_compiler_pic_works_GCJ=yes 15860 fi 15861 fi 15862 $rm conftest* 15863 15864fi 15865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 15866$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 15867 15868if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 15869 case $lt_prog_compiler_pic_GCJ in 15870 "" | " "*) ;; 15871 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15872 esac 15873else 15874 lt_prog_compiler_pic_GCJ= 15875 lt_prog_compiler_can_build_shared_GCJ=no 15876fi 15877 15878fi 15879case $host_os in 15880 # For platforms which do not support PIC, -DPIC is meaningless: 15881 *djgpp*) 15882 lt_prog_compiler_pic_GCJ= 15883 ;; 15884 *) 15885 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15886 ;; 15887esac 15888 15889# 15890# Check to make sure the static flag actually works. 15891# 15892wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15894$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15895if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then : 15896 $as_echo_n "(cached) " >&6 15897else 15898 lt_cv_prog_compiler_static_works_GCJ=no 15899 save_LDFLAGS="$LDFLAGS" 15900 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15901 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15903 # The linker can only warn and ignore the option if not recognized 15904 # So say no if there are warnings 15905 if test -s conftest.err; then 15906 # Append any errors to the config.log. 15907 cat conftest.err 1>&5 15908 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15910 if diff conftest.exp conftest.er2 >/dev/null; then 15911 lt_cv_prog_compiler_static_works_GCJ=yes 15912 fi 15913 else 15914 lt_cv_prog_compiler_static_works_GCJ=yes 15915 fi 15916 fi 15917 $rm -r conftest* 15918 LDFLAGS="$save_LDFLAGS" 15919 15920fi 15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 15922$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 15923 15924if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 15925 : 15926else 15927 lt_prog_compiler_static_GCJ= 15928fi 15929 15930 15931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15932$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15933if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 15934 $as_echo_n "(cached) " >&6 15935else 15936 lt_cv_prog_compiler_c_o_GCJ=no 15937 $rm -r conftest 2>/dev/null 15938 mkdir conftest 15939 cd conftest 15940 mkdir out 15941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15942 15943 lt_compiler_flag="-o out/conftest2.$ac_objext" 15944 # Insert the option either (1) after the last *FLAGS variable, or 15945 # (2) before a word containing "conftest.", or (3) at the end. 15946 # Note that $ac_compile itself does not contain backslashes and begins 15947 # with a dollar sign (not a hyphen), so the echo should work correctly. 15948 lt_compile=`echo "$ac_compile" | $SED \ 15949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15951 -e 's:$: $lt_compiler_flag:'` 15952 (eval echo "\"\$as_me:15952: $lt_compile\"" >&5) 15953 (eval "$lt_compile" 2>out/conftest.err) 15954 ac_status=$? 15955 cat out/conftest.err >&5 15956 echo "$as_me:15956: \$? = $ac_status" >&5 15957 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15958 then 15959 # The compiler can only warn and ignore the option if not recognized 15960 # So say no if there are warnings 15961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15962 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15963 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15964 lt_cv_prog_compiler_c_o_GCJ=yes 15965 fi 15966 fi 15967 chmod u+w . 2>&5 15968 $rm conftest* 15969 # SGI C++ compiler will create directory out/ii_files/ for 15970 # template instantiation 15971 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15972 $rm out/* && rmdir out 15973 cd .. 15974 rmdir conftest 15975 $rm conftest* 15976 15977fi 15978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15979$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 15980 15981 15982hard_links="nottested" 15983if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15984 # do not overwrite the value of need_locks provided by the user 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15986$as_echo_n "checking if we can lock with hard links... " >&6; } 15987 hard_links=yes 15988 $rm conftest* 15989 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15990 touch conftest.a 15991 ln conftest.a conftest.b 2>&5 || hard_links=no 15992 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15994$as_echo "$hard_links" >&6; } 15995 if test "$hard_links" = no; then 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15997$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15998 need_locks=warn 15999 fi 16000else 16001 need_locks=no 16002fi 16003 16004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16005$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16006 16007 runpath_var= 16008 allow_undefined_flag_GCJ= 16009 enable_shared_with_static_runtimes_GCJ=no 16010 archive_cmds_GCJ= 16011 archive_expsym_cmds_GCJ= 16012 old_archive_From_new_cmds_GCJ= 16013 old_archive_from_expsyms_cmds_GCJ= 16014 export_dynamic_flag_spec_GCJ= 16015 whole_archive_flag_spec_GCJ= 16016 thread_safe_flag_spec_GCJ= 16017 hardcode_libdir_flag_spec_GCJ= 16018 hardcode_libdir_flag_spec_ld_GCJ= 16019 hardcode_libdir_separator_GCJ= 16020 hardcode_direct_GCJ=no 16021 hardcode_minus_L_GCJ=no 16022 hardcode_shlibpath_var_GCJ=unsupported 16023 link_all_deplibs_GCJ=unknown 16024 hardcode_automatic_GCJ=no 16025 module_cmds_GCJ= 16026 module_expsym_cmds_GCJ= 16027 always_export_symbols_GCJ=no 16028 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16029 # include_expsyms should be a list of space-separated symbols to be *always* 16030 # included in the symbol list 16031 include_expsyms_GCJ= 16032 # exclude_expsyms can be an extended regexp of symbols to exclude 16033 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16035 # as well as any symbol that contains `d'. 16036 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16038 # platforms (ab)use it in PIC code, but their linkers get confused if 16039 # the symbol is explicitly referenced. Since portable code cannot 16040 # rely on this symbol name, it's probably fine to never include it in 16041 # preloaded symbol tables. 16042 # Exclude shared library initialization/finalization symbols. 16043 extract_expsyms_cmds= 16044 # Just being paranoid about ensuring that cc_basename is set. 16045 for cc_temp in $compiler""; do 16046 case $cc_temp in 16047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16049 \-*) ;; 16050 *) break;; 16051 esac 16052done 16053cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16054 16055 case $host_os in 16056 cygwin* | mingw* | pw32*) 16057 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16058 # When not using gcc, we currently assume that we are using 16059 # Microsoft Visual C++. 16060 if test "$GCC" != yes; then 16061 with_gnu_ld=no 16062 fi 16063 ;; 16064 interix*) 16065 # we just hope/assume this is gcc and not c89 (= MSVC++) 16066 with_gnu_ld=yes 16067 ;; 16068 openbsd*) 16069 with_gnu_ld=no 16070 ;; 16071 esac 16072 16073 ld_shlibs_GCJ=yes 16074 if test "$with_gnu_ld" = yes; then 16075 # If archive_cmds runs LD, not CC, wlarc should be empty 16076 wlarc='${wl}' 16077 16078 # Set some defaults for GNU ld with shared library support. These 16079 # are reset later if shared libraries are not supported. Putting them 16080 # here allows them to be overridden if necessary. 16081 runpath_var=LD_RUN_PATH 16082 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16083 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16084 # ancient GNU ld didn't support --whole-archive et. al. 16085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16086 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16087 else 16088 whole_archive_flag_spec_GCJ= 16089 fi 16090 supports_anon_versioning=no 16091 case `$LD -v 2>/dev/null` in 16092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16095 *\ 2.11.*) ;; # other 2.11 versions 16096 *) supports_anon_versioning=yes ;; 16097 esac 16098 16099 # See if GNU ld supports shared libraries. 16100 case $host_os in 16101 aix[3-9]*) 16102 # On AIX/PPC, the GNU linker is very broken 16103 if test "$host_cpu" != ia64; then 16104 ld_shlibs_GCJ=no 16105 cat <<EOF 1>&2 16106 16107*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16108*** to be unable to reliably create shared libraries on AIX. 16109*** Therefore, libtool is disabling shared libraries support. If you 16110*** really care for shared libraries, you may want to modify your PATH 16111*** so that a non-GNU linker is found, and then restart. 16112 16113EOF 16114 fi 16115 ;; 16116 16117 amigaos*) 16118 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)' 16119 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16120 hardcode_minus_L_GCJ=yes 16121 16122 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16123 # that the semantics of dynamic libraries on AmigaOS, at least up 16124 # to version 4, is to share data among multiple programs linked 16125 # with the same dynamic library. Since this doesn't match the 16126 # behavior of shared libraries on other platforms, we can't use 16127 # them. 16128 ld_shlibs_GCJ=no 16129 ;; 16130 16131 beos*) 16132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16133 allow_undefined_flag_GCJ=unsupported 16134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16135 # support --undefined. This deserves some investigation. FIXME 16136 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16137 else 16138 ld_shlibs_GCJ=no 16139 fi 16140 ;; 16141 16142 cygwin* | mingw* | pw32*) 16143 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16144 # as there is no search path for DLLs. 16145 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16146 allow_undefined_flag_GCJ=unsupported 16147 always_export_symbols_GCJ=no 16148 enable_shared_with_static_runtimes_GCJ=yes 16149 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16150 16151 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16152 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16153 # If the export-symbols file already is a .def file (1st line 16154 # is EXPORTS), use it as is; otherwise, prepend... 16155 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16156 cp $export_symbols $output_objdir/$soname.def; 16157 else 16158 echo EXPORTS > $output_objdir/$soname.def; 16159 cat $export_symbols >> $output_objdir/$soname.def; 16160 fi~ 16161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16162 else 16163 ld_shlibs_GCJ=no 16164 fi 16165 ;; 16166 16167 interix[3-9]*) 16168 hardcode_direct_GCJ=no 16169 hardcode_shlibpath_var_GCJ=no 16170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16171 export_dynamic_flag_spec_GCJ='${wl}-E' 16172 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16173 # Instead, shared libraries are loaded at an image base (0x10000000 by 16174 # default) and relocated if they conflict, which is a slow very memory 16175 # consuming and fragmenting process. To avoid this, we pick a random, 16176 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16177 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16178 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16179 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16180 ;; 16181 16182 gnu* | linux* | k*bsd*-gnu) 16183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16184 tmp_addflag= 16185 case $cc_basename,$host_cpu in 16186 pgcc*) # Portland Group C compiler 16187 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' 16188 tmp_addflag=' $pic_flag' 16189 ;; 16190 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16191 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' 16192 tmp_addflag=' $pic_flag -Mnomain' ;; 16193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16194 tmp_addflag=' -i_dynamic' ;; 16195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16196 tmp_addflag=' -i_dynamic -nofor_main' ;; 16197 ifc* | ifort*) # Intel Fortran compiler 16198 tmp_addflag=' -nofor_main' ;; 16199 esac 16200 case `$CC -V 2>&1 | sed 5q` in 16201 *Sun\ C*) # Sun C 5.9 16202 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16203 tmp_sharedflag='-G' ;; 16204 *Sun\ F*) # Sun Fortran 8.3 16205 tmp_sharedflag='-G' ;; 16206 *) 16207 tmp_sharedflag='-shared' ;; 16208 esac 16209 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16210 16211 if test $supports_anon_versioning = yes; then 16212 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16214 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16215 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16216 fi 16217 else 16218 ld_shlibs_GCJ=no 16219 fi 16220 ;; 16221 16222 netbsd*) 16223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16224 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16225 wlarc= 16226 else 16227 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16228 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16229 fi 16230 ;; 16231 16232 solaris*) 16233 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16234 ld_shlibs_GCJ=no 16235 cat <<EOF 1>&2 16236 16237*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16238*** create shared libraries on Solaris systems. Therefore, libtool 16239*** is disabling shared libraries support. We urge you to upgrade GNU 16240*** binutils to release 2.9.1 or newer. Another option is to modify 16241*** your PATH or compiler configuration so that the native linker is 16242*** used, and then restart. 16243 16244EOF 16245 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16246 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16247 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16248 else 16249 ld_shlibs_GCJ=no 16250 fi 16251 ;; 16252 16253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16254 case `$LD -v 2>&1` in 16255 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16256 ld_shlibs_GCJ=no 16257 cat <<_LT_EOF 1>&2 16258 16259*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16260*** reliably create shared libraries on SCO systems. Therefore, libtool 16261*** is disabling shared libraries support. We urge you to upgrade GNU 16262*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16263*** your PATH or compiler configuration so that the native linker is 16264*** used, and then restart. 16265 16266_LT_EOF 16267 ;; 16268 *) 16269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16270 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16271 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16272 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16273 else 16274 ld_shlibs_GCJ=no 16275 fi 16276 ;; 16277 esac 16278 ;; 16279 16280 sunos4*) 16281 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16282 wlarc= 16283 hardcode_direct_GCJ=yes 16284 hardcode_shlibpath_var_GCJ=no 16285 ;; 16286 16287 *) 16288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16289 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16290 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16291 else 16292 ld_shlibs_GCJ=no 16293 fi 16294 ;; 16295 esac 16296 16297 if test "$ld_shlibs_GCJ" = no; then 16298 runpath_var= 16299 hardcode_libdir_flag_spec_GCJ= 16300 export_dynamic_flag_spec_GCJ= 16301 whole_archive_flag_spec_GCJ= 16302 fi 16303 else 16304 # PORTME fill in a description of your system's linker (not GNU ld) 16305 case $host_os in 16306 aix3*) 16307 allow_undefined_flag_GCJ=unsupported 16308 always_export_symbols_GCJ=yes 16309 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' 16310 # Note: this linker hardcodes the directories in LIBPATH if there 16311 # are no directories specified by -L. 16312 hardcode_minus_L_GCJ=yes 16313 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16314 # Neither direct hardcoding nor static linking is supported with a 16315 # broken collect2. 16316 hardcode_direct_GCJ=unsupported 16317 fi 16318 ;; 16319 16320 aix[4-9]*) 16321 if test "$host_cpu" = ia64; then 16322 # On IA64, the linker does run time linking by default, so we don't 16323 # have to do anything special. 16324 aix_use_runtimelinking=no 16325 exp_sym_flag='-Bexport' 16326 no_entry_flag="" 16327 else 16328 # If we're using GNU nm, then we don't want the "-C" option. 16329 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16330 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16331 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' 16332 else 16333 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' 16334 fi 16335 aix_use_runtimelinking=no 16336 16337 # Test if we are trying to use run time linking or normal 16338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16339 # need to do runtime linking. 16340 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16341 for ld_flag in $LDFLAGS; do 16342 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16343 aix_use_runtimelinking=yes 16344 break 16345 fi 16346 done 16347 ;; 16348 esac 16349 16350 exp_sym_flag='-bexport' 16351 no_entry_flag='-bnoentry' 16352 fi 16353 16354 # When large executables or shared objects are built, AIX ld can 16355 # have problems creating the table of contents. If linking a library 16356 # or program results in "error TOC overflow" add -mminimal-toc to 16357 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16358 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16359 16360 archive_cmds_GCJ='' 16361 hardcode_direct_GCJ=yes 16362 hardcode_libdir_separator_GCJ=':' 16363 link_all_deplibs_GCJ=yes 16364 16365 if test "$GCC" = yes; then 16366 case $host_os in aix4.[012]|aix4.[012].*) 16367 # We only want to do this on AIX 4.2 and lower, the check 16368 # below for broken collect2 doesn't work under 4.3+ 16369 collect2name=`${CC} -print-prog-name=collect2` 16370 if test -f "$collect2name" && \ 16371 strings "$collect2name" | grep resolve_lib_name >/dev/null 16372 then 16373 # We have reworked collect2 16374 : 16375 else 16376 # We have old collect2 16377 hardcode_direct_GCJ=unsupported 16378 # It fails to find uninstalled libraries when the uninstalled 16379 # path is not listed in the libpath. Setting hardcode_minus_L 16380 # to unsupported forces relinking 16381 hardcode_minus_L_GCJ=yes 16382 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16383 hardcode_libdir_separator_GCJ= 16384 fi 16385 ;; 16386 esac 16387 shared_flag='-shared' 16388 if test "$aix_use_runtimelinking" = yes; then 16389 shared_flag="$shared_flag "'${wl}-G' 16390 fi 16391 else 16392 # not using gcc 16393 if test "$host_cpu" = ia64; then 16394 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16395 # chokes on -Wl,-G. The following line is correct: 16396 shared_flag='-G' 16397 else 16398 if test "$aix_use_runtimelinking" = yes; then 16399 shared_flag='${wl}-G' 16400 else 16401 shared_flag='${wl}-bM:SRE' 16402 fi 16403 fi 16404 fi 16405 16406 # It seems that -bexpall does not export symbols beginning with 16407 # underscore (_), so it is better to generate a list of symbols to export. 16408 always_export_symbols_GCJ=yes 16409 if test "$aix_use_runtimelinking" = yes; then 16410 # Warning - without using the other runtime loading flags (-brtl), 16411 # -berok will link without error, but may produce a broken library. 16412 allow_undefined_flag_GCJ='-berok' 16413 # Determine the default libpath from the value encoded in an empty executable. 16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415/* end confdefs.h. */ 16416 16417int 16418main () 16419{ 16420 16421 ; 16422 return 0; 16423} 16424_ACEOF 16425if ac_fn_c_try_link "$LINENO"; then : 16426 16427lt_aix_libpath_sed=' 16428 /Import File Strings/,/^$/ { 16429 /^0/ { 16430 s/^0 *\(.*\)$/\1/ 16431 p 16432 } 16433 }' 16434aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16435# Check for a 64-bit object if we didn't find anything. 16436if test -z "$aix_libpath"; then 16437 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16438fi 16439fi 16440rm -f core conftest.err conftest.$ac_objext \ 16441 conftest$ac_exeext conftest.$ac_ext 16442if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16443 16444 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16445 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16446 else 16447 if test "$host_cpu" = ia64; then 16448 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16449 allow_undefined_flag_GCJ="-z nodefs" 16450 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16451 else 16452 # Determine the default libpath from the value encoded in an empty executable. 16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16454/* end confdefs.h. */ 16455 16456int 16457main () 16458{ 16459 16460 ; 16461 return 0; 16462} 16463_ACEOF 16464if ac_fn_c_try_link "$LINENO"; then : 16465 16466lt_aix_libpath_sed=' 16467 /Import File Strings/,/^$/ { 16468 /^0/ { 16469 s/^0 *\(.*\)$/\1/ 16470 p 16471 } 16472 }' 16473aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16474# Check for a 64-bit object if we didn't find anything. 16475if test -z "$aix_libpath"; then 16476 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16477fi 16478fi 16479rm -f core conftest.err conftest.$ac_objext \ 16480 conftest$ac_exeext conftest.$ac_ext 16481if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16482 16483 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16484 # Warning - without using the other run time loading flags, 16485 # -berok will link without error, but may produce a broken library. 16486 no_undefined_flag_GCJ=' ${wl}-bernotok' 16487 allow_undefined_flag_GCJ=' ${wl}-berok' 16488 # Exported symbols can be pulled into shared objects from archives 16489 whole_archive_flag_spec_GCJ='$convenience' 16490 archive_cmds_need_lc_GCJ=yes 16491 # This is similar to how AIX traditionally builds its shared libraries. 16492 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16493 fi 16494 fi 16495 ;; 16496 16497 amigaos*) 16498 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)' 16499 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16500 hardcode_minus_L_GCJ=yes 16501 # see comment about different semantics on the GNU ld section 16502 ld_shlibs_GCJ=no 16503 ;; 16504 16505 bsdi[45]*) 16506 export_dynamic_flag_spec_GCJ=-rdynamic 16507 ;; 16508 16509 cygwin* | mingw* | pw32*) 16510 # When not using gcc, we currently assume that we are using 16511 # Microsoft Visual C++. 16512 # hardcode_libdir_flag_spec is actually meaningless, as there is 16513 # no search path for DLLs. 16514 hardcode_libdir_flag_spec_GCJ=' ' 16515 allow_undefined_flag_GCJ=unsupported 16516 # Tell ltmain to make .lib files, not .a files. 16517 libext=lib 16518 # Tell ltmain to make .dll files, not .so files. 16519 shrext_cmds=".dll" 16520 # FIXME: Setting linknames here is a bad hack. 16521 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16522 # The linker will automatically build a .lib file if we build a DLL. 16523 old_archive_From_new_cmds_GCJ='true' 16524 # FIXME: Should let the user specify the lib program. 16525 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 16526 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16527 enable_shared_with_static_runtimes_GCJ=yes 16528 ;; 16529 16530 darwin* | rhapsody*) 16531 case $host_os in 16532 rhapsody* | darwin1.[012]) 16533 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16534 ;; 16535 *) # Darwin 1.3 on 16536 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16537 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16538 else 16539 case ${MACOSX_DEPLOYMENT_TARGET} in 16540 10.[012]) 16541 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16542 ;; 16543 10.*) 16544 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16545 ;; 16546 esac 16547 fi 16548 ;; 16549 esac 16550 archive_cmds_need_lc_GCJ=no 16551 hardcode_direct_GCJ=no 16552 hardcode_automatic_GCJ=yes 16553 hardcode_shlibpath_var_GCJ=unsupported 16554 whole_archive_flag_spec_GCJ='' 16555 link_all_deplibs_GCJ=yes 16556 if test "$GCC" = yes ; then 16557 output_verbose_link_cmd='echo' 16558 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 16559 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 16560 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 16561 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 16562 else 16563 case $cc_basename in 16564 xlc*) 16565 output_verbose_link_cmd='echo' 16566 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 16567 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16568 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16569 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16570 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}' 16571 ;; 16572 *) 16573 ld_shlibs_GCJ=no 16574 ;; 16575 esac 16576 fi 16577 ;; 16578 16579 dgux*) 16580 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16581 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16582 hardcode_shlibpath_var_GCJ=no 16583 ;; 16584 16585 freebsd1*) 16586 ld_shlibs_GCJ=no 16587 ;; 16588 16589 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16590 # support. Future versions do this automatically, but an explicit c++rt0.o 16591 # does not break anything, and helps significantly (at the cost of a little 16592 # extra space). 16593 freebsd2.2*) 16594 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16595 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16596 hardcode_direct_GCJ=yes 16597 hardcode_shlibpath_var_GCJ=no 16598 ;; 16599 16600 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16601 freebsd2*) 16602 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16603 hardcode_direct_GCJ=yes 16604 hardcode_minus_L_GCJ=yes 16605 hardcode_shlibpath_var_GCJ=no 16606 ;; 16607 16608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16609 freebsd* | dragonfly*) 16610 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16611 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16612 hardcode_direct_GCJ=yes 16613 hardcode_shlibpath_var_GCJ=no 16614 ;; 16615 16616 hpux9*) 16617 if test "$GCC" = yes; then 16618 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' 16619 else 16620 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' 16621 fi 16622 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16623 hardcode_libdir_separator_GCJ=: 16624 hardcode_direct_GCJ=yes 16625 16626 # hardcode_minus_L: Not really in the search PATH, 16627 # but as the default location of the library. 16628 hardcode_minus_L_GCJ=yes 16629 export_dynamic_flag_spec_GCJ='${wl}-E' 16630 ;; 16631 16632 hpux10*) 16633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16634 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16635 else 16636 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16637 fi 16638 if test "$with_gnu_ld" = no; then 16639 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16640 hardcode_libdir_separator_GCJ=: 16641 16642 hardcode_direct_GCJ=yes 16643 export_dynamic_flag_spec_GCJ='${wl}-E' 16644 16645 # hardcode_minus_L: Not really in the search PATH, 16646 # but as the default location of the library. 16647 hardcode_minus_L_GCJ=yes 16648 fi 16649 ;; 16650 16651 hpux11*) 16652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16653 case $host_cpu in 16654 hppa*64*) 16655 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16656 ;; 16657 ia64*) 16658 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16659 ;; 16660 *) 16661 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16662 ;; 16663 esac 16664 else 16665 case $host_cpu in 16666 hppa*64*) 16667 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16668 ;; 16669 ia64*) 16670 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16671 ;; 16672 *) 16673 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16674 ;; 16675 esac 16676 fi 16677 if test "$with_gnu_ld" = no; then 16678 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16679 hardcode_libdir_separator_GCJ=: 16680 16681 case $host_cpu in 16682 hppa*64*|ia64*) 16683 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16684 hardcode_direct_GCJ=no 16685 hardcode_shlibpath_var_GCJ=no 16686 ;; 16687 *) 16688 hardcode_direct_GCJ=yes 16689 export_dynamic_flag_spec_GCJ='${wl}-E' 16690 16691 # hardcode_minus_L: Not really in the search PATH, 16692 # but as the default location of the library. 16693 hardcode_minus_L_GCJ=yes 16694 ;; 16695 esac 16696 fi 16697 ;; 16698 16699 irix5* | irix6* | nonstopux*) 16700 if test "$GCC" = yes; then 16701 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' 16702 else 16703 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' 16704 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16705 fi 16706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16707 hardcode_libdir_separator_GCJ=: 16708 link_all_deplibs_GCJ=yes 16709 ;; 16710 16711 netbsd*) 16712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16713 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16714 else 16715 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16716 fi 16717 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16718 hardcode_direct_GCJ=yes 16719 hardcode_shlibpath_var_GCJ=no 16720 ;; 16721 16722 newsos6) 16723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16724 hardcode_direct_GCJ=yes 16725 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16726 hardcode_libdir_separator_GCJ=: 16727 hardcode_shlibpath_var_GCJ=no 16728 ;; 16729 16730 openbsd*) 16731 if test -f /usr/libexec/ld.so; then 16732 hardcode_direct_GCJ=yes 16733 hardcode_shlibpath_var_GCJ=no 16734 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16735 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16736 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16737 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16738 export_dynamic_flag_spec_GCJ='${wl}-E' 16739 else 16740 case $host_os in 16741 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16742 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16743 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16744 ;; 16745 *) 16746 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16748 ;; 16749 esac 16750 fi 16751 else 16752 ld_shlibs_GCJ=no 16753 fi 16754 ;; 16755 16756 os2*) 16757 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16758 hardcode_minus_L_GCJ=yes 16759 allow_undefined_flag_GCJ=unsupported 16760 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' 16761 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16762 ;; 16763 16764 osf3*) 16765 if test "$GCC" = yes; then 16766 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16767 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' 16768 else 16769 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16770 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' 16771 fi 16772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16773 hardcode_libdir_separator_GCJ=: 16774 ;; 16775 16776 osf4* | osf5*) # as osf3* with the addition of -msym flag 16777 if test "$GCC" = yes; then 16778 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16779 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' 16780 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16781 else 16782 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16783 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' 16784 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~ 16785 $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' 16786 16787 # Both c and cxx compiler support -rpath directly 16788 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16789 fi 16790 hardcode_libdir_separator_GCJ=: 16791 ;; 16792 16793 solaris*) 16794 no_undefined_flag_GCJ=' -z text' 16795 if test "$GCC" = yes; then 16796 wlarc='${wl}' 16797 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16798 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16799 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16800 else 16801 wlarc='' 16802 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16803 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16804 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16805 fi 16806 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16807 hardcode_shlibpath_var_GCJ=no 16808 case $host_os in 16809 solaris2.[0-5] | solaris2.[0-5].*) ;; 16810 *) 16811 # The compiler driver will combine and reorder linker options, 16812 # but understands `-z linker_flag'. GCC discards it without `$wl', 16813 # but is careful enough not to reorder. 16814 # Supported since Solaris 2.6 (maybe 2.5.1?) 16815 if test "$GCC" = yes; then 16816 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16817 else 16818 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 16819 fi 16820 ;; 16821 esac 16822 link_all_deplibs_GCJ=yes 16823 ;; 16824 16825 sunos4*) 16826 if test "x$host_vendor" = xsequent; then 16827 # Use $CC to link under sequent, because it throws in some extra .o 16828 # files that make .init and .fini sections work. 16829 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16830 else 16831 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16832 fi 16833 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16834 hardcode_direct_GCJ=yes 16835 hardcode_minus_L_GCJ=yes 16836 hardcode_shlibpath_var_GCJ=no 16837 ;; 16838 16839 sysv4) 16840 case $host_vendor in 16841 sni) 16842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16843 hardcode_direct_GCJ=yes # is this really true??? 16844 ;; 16845 siemens) 16846 ## LD is ld it makes a PLAMLIB 16847 ## CC just makes a GrossModule. 16848 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16849 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16850 hardcode_direct_GCJ=no 16851 ;; 16852 motorola) 16853 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16854 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16855 ;; 16856 esac 16857 runpath_var='LD_RUN_PATH' 16858 hardcode_shlibpath_var_GCJ=no 16859 ;; 16860 16861 sysv4.3*) 16862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16863 hardcode_shlibpath_var_GCJ=no 16864 export_dynamic_flag_spec_GCJ='-Bexport' 16865 ;; 16866 16867 sysv4*MP*) 16868 if test -d /usr/nec; then 16869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16870 hardcode_shlibpath_var_GCJ=no 16871 runpath_var=LD_RUN_PATH 16872 hardcode_runpath_var=yes 16873 ld_shlibs_GCJ=yes 16874 fi 16875 ;; 16876 16877 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16878 no_undefined_flag_GCJ='${wl}-z,text' 16879 archive_cmds_need_lc_GCJ=no 16880 hardcode_shlibpath_var_GCJ=no 16881 runpath_var='LD_RUN_PATH' 16882 16883 if test "$GCC" = yes; then 16884 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16885 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16886 else 16887 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16888 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16889 fi 16890 ;; 16891 16892 sysv5* | sco3.2v5* | sco5v6*) 16893 # Note: We can NOT use -z defs as we might desire, because we do not 16894 # link with -lc, and that would cause any symbols used from libc to 16895 # always be unresolved, which means just about no library would 16896 # ever link correctly. If we're not using GNU ld we use -z text 16897 # though, which does catch some bad symbols but isn't as heavy-handed 16898 # as -z defs. 16899 no_undefined_flag_GCJ='${wl}-z,text' 16900 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16901 archive_cmds_need_lc_GCJ=no 16902 hardcode_shlibpath_var_GCJ=no 16903 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16904 hardcode_libdir_separator_GCJ=':' 16905 link_all_deplibs_GCJ=yes 16906 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16907 runpath_var='LD_RUN_PATH' 16908 16909 if test "$GCC" = yes; then 16910 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16911 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16912 else 16913 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16914 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16915 fi 16916 ;; 16917 16918 uts4*) 16919 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16920 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16921 hardcode_shlibpath_var_GCJ=no 16922 ;; 16923 16924 *) 16925 ld_shlibs_GCJ=no 16926 ;; 16927 esac 16928 fi 16929 16930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 16931$as_echo "$ld_shlibs_GCJ" >&6; } 16932test "$ld_shlibs_GCJ" = no && can_build_shared=no 16933 16934# 16935# Do we need to explicitly link libc? 16936# 16937case "x$archive_cmds_need_lc_GCJ" in 16938x|xyes) 16939 # Assume -lc should be added 16940 archive_cmds_need_lc_GCJ=yes 16941 16942 if test "$enable_shared" = yes && test "$GCC" = yes; then 16943 case $archive_cmds_GCJ in 16944 *'~'*) 16945 # FIXME: we may have to deal with multi-command sequences. 16946 ;; 16947 '$CC '*) 16948 # Test whether the compiler implicitly links with -lc since on some 16949 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16950 # to ld, don't add -lc before -lgcc. 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16952$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16953 $rm conftest* 16954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16955 16956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16957 (eval $ac_compile) 2>&5 16958 ac_status=$? 16959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16960 test $ac_status = 0; } 2>conftest.err; then 16961 soname=conftest 16962 lib=conftest 16963 libobjs=conftest.$ac_objext 16964 deplibs= 16965 wl=$lt_prog_compiler_wl_GCJ 16966 pic_flag=$lt_prog_compiler_pic_GCJ 16967 compiler_flags=-v 16968 linker_flags=-v 16969 verstring= 16970 output_objdir=. 16971 libname=conftest 16972 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16973 allow_undefined_flag_GCJ= 16974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16975 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16976 ac_status=$? 16977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16978 test $ac_status = 0; } 16979 then 16980 archive_cmds_need_lc_GCJ=no 16981 else 16982 archive_cmds_need_lc_GCJ=yes 16983 fi 16984 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16985 else 16986 cat conftest.err 1>&5 16987 fi 16988 $rm conftest* 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 16990$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 16991 ;; 16992 esac 16993 fi 16994 ;; 16995esac 16996 16997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16998$as_echo_n "checking dynamic linker characteristics... " >&6; } 16999library_names_spec= 17000libname_spec='lib$name' 17001soname_spec= 17002shrext_cmds=".so" 17003postinstall_cmds= 17004postuninstall_cmds= 17005finish_cmds= 17006finish_eval= 17007shlibpath_var= 17008shlibpath_overrides_runpath=unknown 17009version_type=none 17010dynamic_linker="$host_os ld.so" 17011sys_lib_dlsearch_path_spec="/lib /usr/lib" 17012 17013need_lib_prefix=unknown 17014hardcode_into_libs=no 17015 17016# when you set need_version to no, make sure it does not cause -set_version 17017# flags to be left without arguments 17018need_version=unknown 17019 17020case $host_os in 17021aix3*) 17022 version_type=linux 17023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17024 shlibpath_var=LIBPATH 17025 17026 # AIX 3 has no versioning support, so we append a major version to the name. 17027 soname_spec='${libname}${release}${shared_ext}$major' 17028 ;; 17029 17030aix[4-9]*) 17031 version_type=linux 17032 need_lib_prefix=no 17033 need_version=no 17034 hardcode_into_libs=yes 17035 if test "$host_cpu" = ia64; then 17036 # AIX 5 supports IA64 17037 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17038 shlibpath_var=LD_LIBRARY_PATH 17039 else 17040 # With GCC up to 2.95.x, collect2 would create an import file 17041 # for dependence libraries. The import file would start with 17042 # the line `#! .'. This would cause the generated library to 17043 # depend on `.', always an invalid library. This was fixed in 17044 # development snapshots of GCC prior to 3.0. 17045 case $host_os in 17046 aix4 | aix4.[01] | aix4.[01].*) 17047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17048 echo ' yes ' 17049 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17050 : 17051 else 17052 can_build_shared=no 17053 fi 17054 ;; 17055 esac 17056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17057 # soname into executable. Probably we can add versioning support to 17058 # collect2, so additional links can be useful in future. 17059 if test "$aix_use_runtimelinking" = yes; then 17060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17061 # instead of lib<name>.a to let people know that these are not 17062 # typical AIX shared libraries. 17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17064 else 17065 # We preserve .a as extension for shared libraries through AIX4.2 17066 # and later when we are not doing run time linking. 17067 library_names_spec='${libname}${release}.a $libname.a' 17068 soname_spec='${libname}${release}${shared_ext}$major' 17069 fi 17070 shlibpath_var=LIBPATH 17071 fi 17072 ;; 17073 17074amigaos*) 17075 library_names_spec='$libname.ixlibrary $libname.a' 17076 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17077 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' 17078 ;; 17079 17080beos*) 17081 library_names_spec='${libname}${shared_ext}' 17082 dynamic_linker="$host_os ld.so" 17083 shlibpath_var=LIBRARY_PATH 17084 ;; 17085 17086bsdi[45]*) 17087 version_type=linux 17088 need_version=no 17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17090 soname_spec='${libname}${release}${shared_ext}$major' 17091 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17092 shlibpath_var=LD_LIBRARY_PATH 17093 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17094 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17095 # the default ld.so.conf also contains /usr/contrib/lib and 17096 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17097 # libtool to hard-code these into programs 17098 ;; 17099 17100cygwin* | mingw* | pw32*) 17101 version_type=windows 17102 shrext_cmds=".dll" 17103 need_version=no 17104 need_lib_prefix=no 17105 17106 case $GCC,$host_os in 17107 yes,cygwin* | yes,mingw* | yes,pw32*) 17108 library_names_spec='$libname.dll.a' 17109 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17110 postinstall_cmds='base_file=`basename \${file}`~ 17111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17112 dldir=$destdir/`dirname \$dlpath`~ 17113 test -d \$dldir || mkdir -p \$dldir~ 17114 $install_prog $dir/$dlname \$dldir/$dlname~ 17115 chmod a+x \$dldir/$dlname' 17116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17117 dlpath=$dir/\$dldll~ 17118 $rm \$dlpath' 17119 shlibpath_overrides_runpath=yes 17120 17121 case $host_os in 17122 cygwin*) 17123 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17124 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17125 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17126 ;; 17127 mingw*) 17128 # MinGW DLLs use traditional 'lib' prefix 17129 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17130 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17131 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17132 # It is most probably a Windows format PATH printed by 17133 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17134 # path with ; separators, and with drive letters. We can handle the 17135 # drive letters (cygwin fileutils understands them), so leave them, 17136 # especially as we might pass files found there to a mingw objdump, 17137 # which wouldn't understand a cygwinified path. Ahh. 17138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17139 else 17140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17141 fi 17142 ;; 17143 pw32*) 17144 # pw32 DLLs use 'pw' prefix rather than 'lib' 17145 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17146 ;; 17147 esac 17148 ;; 17149 17150 *) 17151 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17152 ;; 17153 esac 17154 dynamic_linker='Win32 ld.exe' 17155 # FIXME: first we should search . and the directory the executable is in 17156 shlibpath_var=PATH 17157 ;; 17158 17159darwin* | rhapsody*) 17160 dynamic_linker="$host_os dyld" 17161 version_type=darwin 17162 need_lib_prefix=no 17163 need_version=no 17164 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17165 soname_spec='${libname}${release}${major}$shared_ext' 17166 shlibpath_overrides_runpath=yes 17167 shlibpath_var=DYLD_LIBRARY_PATH 17168 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17169 17170 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17171 ;; 17172 17173dgux*) 17174 version_type=linux 17175 need_lib_prefix=no 17176 need_version=no 17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17178 soname_spec='${libname}${release}${shared_ext}$major' 17179 shlibpath_var=LD_LIBRARY_PATH 17180 ;; 17181 17182freebsd1*) 17183 dynamic_linker=no 17184 ;; 17185 17186freebsd* | dragonfly*) 17187 # DragonFly does not have aout. When/if they implement a new 17188 # versioning mechanism, adjust this. 17189 if test -x /usr/bin/objformat; then 17190 objformat=`/usr/bin/objformat` 17191 else 17192 case $host_os in 17193 freebsd[123]*) objformat=aout ;; 17194 *) objformat=elf ;; 17195 esac 17196 fi 17197 version_type=freebsd-$objformat 17198 case $version_type in 17199 freebsd-elf*) 17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17201 need_version=no 17202 need_lib_prefix=no 17203 ;; 17204 freebsd-*) 17205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17206 need_version=yes 17207 ;; 17208 esac 17209 shlibpath_var=LD_LIBRARY_PATH 17210 case $host_os in 17211 freebsd2*) 17212 shlibpath_overrides_runpath=yes 17213 ;; 17214 freebsd3.[01]* | freebsdelf3.[01]*) 17215 shlibpath_overrides_runpath=yes 17216 hardcode_into_libs=yes 17217 ;; 17218 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17219 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17220 shlibpath_overrides_runpath=no 17221 hardcode_into_libs=yes 17222 ;; 17223 *) # from 4.6 on, and DragonFly 17224 shlibpath_overrides_runpath=yes 17225 hardcode_into_libs=yes 17226 ;; 17227 esac 17228 ;; 17229 17230gnu*) 17231 version_type=linux 17232 need_lib_prefix=no 17233 need_version=no 17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17235 soname_spec='${libname}${release}${shared_ext}$major' 17236 shlibpath_var=LD_LIBRARY_PATH 17237 hardcode_into_libs=yes 17238 ;; 17239 17240hpux9* | hpux10* | hpux11*) 17241 # Give a soname corresponding to the major version so that dld.sl refuses to 17242 # link against other versions. 17243 version_type=sunos 17244 need_lib_prefix=no 17245 need_version=no 17246 case $host_cpu in 17247 ia64*) 17248 shrext_cmds='.so' 17249 hardcode_into_libs=yes 17250 dynamic_linker="$host_os dld.so" 17251 shlibpath_var=LD_LIBRARY_PATH 17252 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17254 soname_spec='${libname}${release}${shared_ext}$major' 17255 if test "X$HPUX_IA64_MODE" = X32; then 17256 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17257 else 17258 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17259 fi 17260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17261 ;; 17262 hppa*64*) 17263 shrext_cmds='.sl' 17264 hardcode_into_libs=yes 17265 dynamic_linker="$host_os dld.sl" 17266 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17269 soname_spec='${libname}${release}${shared_ext}$major' 17270 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17272 ;; 17273 *) 17274 shrext_cmds='.sl' 17275 dynamic_linker="$host_os dld.sl" 17276 shlibpath_var=SHLIB_PATH 17277 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17279 soname_spec='${libname}${release}${shared_ext}$major' 17280 ;; 17281 esac 17282 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17283 postinstall_cmds='chmod 555 $lib' 17284 ;; 17285 17286interix[3-9]*) 17287 version_type=linux 17288 need_lib_prefix=no 17289 need_version=no 17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17291 soname_spec='${libname}${release}${shared_ext}$major' 17292 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17293 shlibpath_var=LD_LIBRARY_PATH 17294 shlibpath_overrides_runpath=no 17295 hardcode_into_libs=yes 17296 ;; 17297 17298irix5* | irix6* | nonstopux*) 17299 case $host_os in 17300 nonstopux*) version_type=nonstopux ;; 17301 *) 17302 if test "$lt_cv_prog_gnu_ld" = yes; then 17303 version_type=linux 17304 else 17305 version_type=irix 17306 fi ;; 17307 esac 17308 need_lib_prefix=no 17309 need_version=no 17310 soname_spec='${libname}${release}${shared_ext}$major' 17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17312 case $host_os in 17313 irix5* | nonstopux*) 17314 libsuff= shlibsuff= 17315 ;; 17316 *) 17317 case $LD in # libtool.m4 will add one of these switches to LD 17318 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17319 libsuff= shlibsuff= libmagic=32-bit;; 17320 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17321 libsuff=32 shlibsuff=N32 libmagic=N32;; 17322 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17323 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17324 *) libsuff= shlibsuff= libmagic=never-match;; 17325 esac 17326 ;; 17327 esac 17328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17329 shlibpath_overrides_runpath=no 17330 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17331 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17332 hardcode_into_libs=yes 17333 ;; 17334 17335# No shared lib support for Linux oldld, aout, or coff. 17336linux*oldld* | linux*aout* | linux*coff*) 17337 dynamic_linker=no 17338 ;; 17339 17340# This must be Linux ELF. 17341linux* | k*bsd*-gnu) 17342 version_type=linux 17343 need_lib_prefix=no 17344 need_version=no 17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17346 soname_spec='${libname}${release}${shared_ext}$major' 17347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17348 shlibpath_var=LD_LIBRARY_PATH 17349 shlibpath_overrides_runpath=no 17350 # This implies no fast_install, which is unacceptable. 17351 # Some rework will be needed to allow for fast_install 17352 # before this can be enabled. 17353 hardcode_into_libs=yes 17354 17355 # Append ld.so.conf contents to the search path 17356 if test -f /etc/ld.so.conf; then 17357 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17358 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17359 fi 17360 17361 # We used to test for /lib/ld.so.1 and disable shared libraries on 17362 # powerpc, because MkLinux only supported shared libraries with the 17363 # GNU dynamic linker. Since this was broken with cross compilers, 17364 # most powerpc-linux boxes support dynamic linking these days and 17365 # people can always --disable-shared, the test was removed, and we 17366 # assume the GNU/Linux dynamic linker is in use. 17367 dynamic_linker='GNU/Linux ld.so' 17368 ;; 17369 17370netbsd*) 17371 version_type=sunos 17372 need_lib_prefix=no 17373 need_version=no 17374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17377 dynamic_linker='NetBSD (a.out) ld.so' 17378 else 17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17380 soname_spec='${libname}${release}${shared_ext}$major' 17381 dynamic_linker='NetBSD ld.elf_so' 17382 fi 17383 shlibpath_var=LD_LIBRARY_PATH 17384 shlibpath_overrides_runpath=yes 17385 hardcode_into_libs=yes 17386 ;; 17387 17388newsos6) 17389 version_type=linux 17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17391 shlibpath_var=LD_LIBRARY_PATH 17392 shlibpath_overrides_runpath=yes 17393 ;; 17394 17395nto-qnx*) 17396 version_type=linux 17397 need_lib_prefix=no 17398 need_version=no 17399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17400 soname_spec='${libname}${release}${shared_ext}$major' 17401 shlibpath_var=LD_LIBRARY_PATH 17402 shlibpath_overrides_runpath=yes 17403 ;; 17404 17405openbsd*) 17406 version_type=sunos 17407 sys_lib_dlsearch_path_spec="/usr/lib" 17408 need_lib_prefix=no 17409 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17410 case $host_os in 17411 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17412 *) need_version=no ;; 17413 esac 17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17416 shlibpath_var=LD_LIBRARY_PATH 17417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17418 case $host_os in 17419 openbsd2.[89] | openbsd2.[89].*) 17420 shlibpath_overrides_runpath=no 17421 ;; 17422 *) 17423 shlibpath_overrides_runpath=yes 17424 ;; 17425 esac 17426 else 17427 shlibpath_overrides_runpath=yes 17428 fi 17429 ;; 17430 17431os2*) 17432 libname_spec='$name' 17433 shrext_cmds=".dll" 17434 need_lib_prefix=no 17435 library_names_spec='$libname${shared_ext} $libname.a' 17436 dynamic_linker='OS/2 ld.exe' 17437 shlibpath_var=LIBPATH 17438 ;; 17439 17440osf3* | osf4* | osf5*) 17441 version_type=osf 17442 need_lib_prefix=no 17443 need_version=no 17444 soname_spec='${libname}${release}${shared_ext}$major' 17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17446 shlibpath_var=LD_LIBRARY_PATH 17447 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17448 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17449 ;; 17450 17451rdos*) 17452 dynamic_linker=no 17453 ;; 17454 17455solaris*) 17456 version_type=linux 17457 need_lib_prefix=no 17458 need_version=no 17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17460 soname_spec='${libname}${release}${shared_ext}$major' 17461 shlibpath_var=LD_LIBRARY_PATH 17462 shlibpath_overrides_runpath=yes 17463 hardcode_into_libs=yes 17464 # ldd complains unless libraries are executable 17465 postinstall_cmds='chmod +x $lib' 17466 ;; 17467 17468sunos4*) 17469 version_type=sunos 17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17472 shlibpath_var=LD_LIBRARY_PATH 17473 shlibpath_overrides_runpath=yes 17474 if test "$with_gnu_ld" = yes; then 17475 need_lib_prefix=no 17476 fi 17477 need_version=yes 17478 ;; 17479 17480sysv4 | sysv4.3*) 17481 version_type=linux 17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17483 soname_spec='${libname}${release}${shared_ext}$major' 17484 shlibpath_var=LD_LIBRARY_PATH 17485 case $host_vendor in 17486 sni) 17487 shlibpath_overrides_runpath=no 17488 need_lib_prefix=no 17489 export_dynamic_flag_spec='${wl}-Blargedynsym' 17490 runpath_var=LD_RUN_PATH 17491 ;; 17492 siemens) 17493 need_lib_prefix=no 17494 ;; 17495 motorola) 17496 need_lib_prefix=no 17497 need_version=no 17498 shlibpath_overrides_runpath=no 17499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17500 ;; 17501 esac 17502 ;; 17503 17504sysv4*MP*) 17505 if test -d /usr/nec ;then 17506 version_type=linux 17507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17508 soname_spec='$libname${shared_ext}.$major' 17509 shlibpath_var=LD_LIBRARY_PATH 17510 fi 17511 ;; 17512 17513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17514 version_type=freebsd-elf 17515 need_lib_prefix=no 17516 need_version=no 17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17518 soname_spec='${libname}${release}${shared_ext}$major' 17519 shlibpath_var=LD_LIBRARY_PATH 17520 hardcode_into_libs=yes 17521 if test "$with_gnu_ld" = yes; then 17522 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17523 shlibpath_overrides_runpath=no 17524 else 17525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17526 shlibpath_overrides_runpath=yes 17527 case $host_os in 17528 sco3.2v5*) 17529 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17530 ;; 17531 esac 17532 fi 17533 sys_lib_dlsearch_path_spec='/usr/lib' 17534 ;; 17535 17536uts4*) 17537 version_type=linux 17538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17539 soname_spec='${libname}${release}${shared_ext}$major' 17540 shlibpath_var=LD_LIBRARY_PATH 17541 ;; 17542 17543*) 17544 dynamic_linker=no 17545 ;; 17546esac 17547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17548$as_echo "$dynamic_linker" >&6; } 17549test "$dynamic_linker" = no && can_build_shared=no 17550 17551if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 17552 $as_echo_n "(cached) " >&6 17553else 17554 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 17555fi 17556 17557sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17558if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 17559 $as_echo_n "(cached) " >&6 17560else 17561 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 17562fi 17563 17564sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17565 17566variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17567if test "$GCC" = yes; then 17568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17569fi 17570 17571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17572$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17573hardcode_action_GCJ= 17574if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17575 test -n "$runpath_var_GCJ" || \ 17576 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17577 17578 # We can hardcode non-existant directories. 17579 if test "$hardcode_direct_GCJ" != no && 17580 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17581 # have to relink, otherwise we might link with an installed library 17582 # when we should be linking with a yet-to-be-installed one 17583 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17584 test "$hardcode_minus_L_GCJ" != no; then 17585 # Linking always hardcodes the temporary library directory. 17586 hardcode_action_GCJ=relink 17587 else 17588 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17589 hardcode_action_GCJ=immediate 17590 fi 17591else 17592 # We cannot hardcode anything, or else we can only hardcode existing 17593 # directories. 17594 hardcode_action_GCJ=unsupported 17595fi 17596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 17597$as_echo "$hardcode_action_GCJ" >&6; } 17598 17599if test "$hardcode_action_GCJ" = relink; then 17600 # Fast installation is not supported 17601 enable_fast_install=no 17602elif test "$shlibpath_overrides_runpath" = yes || 17603 test "$enable_shared" = no; then 17604 # Fast installation is not necessary 17605 enable_fast_install=needless 17606fi 17607 17608 17609# The else clause should only fire when bootstrapping the 17610# libtool distribution, otherwise you forgot to ship ltmain.sh 17611# with your package, and you will get complaints that there are 17612# no rules to generate ltmain.sh. 17613if test -f "$ltmain"; then 17614 # See if we are running on zsh, and set the options which allow our commands through 17615 # without removal of \ escapes. 17616 if test -n "${ZSH_VERSION+set}" ; then 17617 setopt NO_GLOB_SUBST 17618 fi 17619 # Now quote all the things that may contain metacharacters while being 17620 # careful not to overquote the AC_SUBSTed values. We take copies of the 17621 # variables and quote the copies for generation of the libtool script. 17622 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17623 SED SHELL STRIP \ 17624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17626 deplibs_check_method reload_flag reload_cmds need_locks \ 17627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17628 lt_cv_sys_global_symbol_to_c_name_address \ 17629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17630 old_postinstall_cmds old_postuninstall_cmds \ 17631 compiler_GCJ \ 17632 CC_GCJ \ 17633 LD_GCJ \ 17634 lt_prog_compiler_wl_GCJ \ 17635 lt_prog_compiler_pic_GCJ \ 17636 lt_prog_compiler_static_GCJ \ 17637 lt_prog_compiler_no_builtin_flag_GCJ \ 17638 export_dynamic_flag_spec_GCJ \ 17639 thread_safe_flag_spec_GCJ \ 17640 whole_archive_flag_spec_GCJ \ 17641 enable_shared_with_static_runtimes_GCJ \ 17642 old_archive_cmds_GCJ \ 17643 old_archive_from_new_cmds_GCJ \ 17644 predep_objects_GCJ \ 17645 postdep_objects_GCJ \ 17646 predeps_GCJ \ 17647 postdeps_GCJ \ 17648 compiler_lib_search_path_GCJ \ 17649 compiler_lib_search_dirs_GCJ \ 17650 archive_cmds_GCJ \ 17651 archive_expsym_cmds_GCJ \ 17652 postinstall_cmds_GCJ \ 17653 postuninstall_cmds_GCJ \ 17654 old_archive_from_expsyms_cmds_GCJ \ 17655 allow_undefined_flag_GCJ \ 17656 no_undefined_flag_GCJ \ 17657 export_symbols_cmds_GCJ \ 17658 hardcode_libdir_flag_spec_GCJ \ 17659 hardcode_libdir_flag_spec_ld_GCJ \ 17660 hardcode_libdir_separator_GCJ \ 17661 hardcode_automatic_GCJ \ 17662 module_cmds_GCJ \ 17663 module_expsym_cmds_GCJ \ 17664 lt_cv_prog_compiler_c_o_GCJ \ 17665 fix_srcfile_path_GCJ \ 17666 exclude_expsyms_GCJ \ 17667 include_expsyms_GCJ; do 17668 17669 case $var in 17670 old_archive_cmds_GCJ | \ 17671 old_archive_from_new_cmds_GCJ | \ 17672 archive_cmds_GCJ | \ 17673 archive_expsym_cmds_GCJ | \ 17674 module_cmds_GCJ | \ 17675 module_expsym_cmds_GCJ | \ 17676 old_archive_from_expsyms_cmds_GCJ | \ 17677 export_symbols_cmds_GCJ | \ 17678 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17679 postinstall_cmds | postuninstall_cmds | \ 17680 old_postinstall_cmds | old_postuninstall_cmds | \ 17681 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17682 # Double-quote double-evaled strings. 17683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17684 ;; 17685 *) 17686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17687 ;; 17688 esac 17689 done 17690 17691 case $lt_echo in 17692 *'\$0 --fallback-echo"') 17693 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17694 ;; 17695 esac 17696 17697cfgfile="$ofile" 17698 17699 cat <<__EOF__ >> "$cfgfile" 17700# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17701 17702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17703 17704# Shell to use when invoking shell scripts. 17705SHELL=$lt_SHELL 17706 17707# Whether or not to build shared libraries. 17708build_libtool_libs=$enable_shared 17709 17710# Whether or not to build static libraries. 17711build_old_libs=$enable_static 17712 17713# Whether or not to add -lc for building shared libraries. 17714build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17715 17716# Whether or not to disallow shared libs when runtime libs are static 17717allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17718 17719# Whether or not to optimize for fast installation. 17720fast_install=$enable_fast_install 17721 17722# The host system. 17723host_alias=$host_alias 17724host=$host 17725host_os=$host_os 17726 17727# The build system. 17728build_alias=$build_alias 17729build=$build 17730build_os=$build_os 17731 17732# An echo program that does not interpret backslashes. 17733echo=$lt_echo 17734 17735# The archiver. 17736AR=$lt_AR 17737AR_FLAGS=$lt_AR_FLAGS 17738 17739# A C compiler. 17740LTCC=$lt_LTCC 17741 17742# LTCC compiler flags. 17743LTCFLAGS=$lt_LTCFLAGS 17744 17745# A language-specific compiler. 17746CC=$lt_compiler_GCJ 17747 17748# Is the compiler the GNU C compiler? 17749with_gcc=$GCC_GCJ 17750 17751# An ERE matcher. 17752EGREP=$lt_EGREP 17753 17754# The linker used to build libraries. 17755LD=$lt_LD_GCJ 17756 17757# Whether we need hard or soft links. 17758LN_S=$lt_LN_S 17759 17760# A BSD-compatible nm program. 17761NM=$lt_NM 17762 17763# A symbol stripping program 17764STRIP=$lt_STRIP 17765 17766# Used to examine libraries when file_magic_cmd begins "file" 17767MAGIC_CMD=$MAGIC_CMD 17768 17769# Used on cygwin: DLL creation program. 17770DLLTOOL="$DLLTOOL" 17771 17772# Used on cygwin: object dumper. 17773OBJDUMP="$OBJDUMP" 17774 17775# Used on cygwin: assembler. 17776AS="$AS" 17777 17778# The name of the directory that contains temporary libtool files. 17779objdir=$objdir 17780 17781# How to create reloadable object files. 17782reload_flag=$lt_reload_flag 17783reload_cmds=$lt_reload_cmds 17784 17785# How to pass a linker flag through the compiler. 17786wl=$lt_lt_prog_compiler_wl_GCJ 17787 17788# Object file suffix (normally "o"). 17789objext="$ac_objext" 17790 17791# Old archive suffix (normally "a"). 17792libext="$libext" 17793 17794# Shared library suffix (normally ".so"). 17795shrext_cmds='$shrext_cmds' 17796 17797# Executable file suffix (normally ""). 17798exeext="$exeext" 17799 17800# Additional compiler flags for building library objects. 17801pic_flag=$lt_lt_prog_compiler_pic_GCJ 17802pic_mode=$pic_mode 17803 17804# What is the maximum length of a command? 17805max_cmd_len=$lt_cv_sys_max_cmd_len 17806 17807# Does compiler simultaneously support -c and -o options? 17808compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17809 17810# Must we lock files when doing compilation? 17811need_locks=$lt_need_locks 17812 17813# Do we need the lib prefix for modules? 17814need_lib_prefix=$need_lib_prefix 17815 17816# Do we need a version for libraries? 17817need_version=$need_version 17818 17819# Whether dlopen is supported. 17820dlopen_support=$enable_dlopen 17821 17822# Whether dlopen of programs is supported. 17823dlopen_self=$enable_dlopen_self 17824 17825# Whether dlopen of statically linked programs is supported. 17826dlopen_self_static=$enable_dlopen_self_static 17827 17828# Compiler flag to prevent dynamic linking. 17829link_static_flag=$lt_lt_prog_compiler_static_GCJ 17830 17831# Compiler flag to turn off builtin functions. 17832no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17833 17834# Compiler flag to allow reflexive dlopens. 17835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17836 17837# Compiler flag to generate shared objects directly from archives. 17838whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17839 17840# Compiler flag to generate thread-safe objects. 17841thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17842 17843# Library versioning type. 17844version_type=$version_type 17845 17846# Format of library name prefix. 17847libname_spec=$lt_libname_spec 17848 17849# List of archive names. First name is the real one, the rest are links. 17850# The last name is the one that the linker finds with -lNAME. 17851library_names_spec=$lt_library_names_spec 17852 17853# The coded name of the library, if different from the real name. 17854soname_spec=$lt_soname_spec 17855 17856# Commands used to build and install an old-style archive. 17857RANLIB=$lt_RANLIB 17858old_archive_cmds=$lt_old_archive_cmds_GCJ 17859old_postinstall_cmds=$lt_old_postinstall_cmds 17860old_postuninstall_cmds=$lt_old_postuninstall_cmds 17861 17862# Create an old-style archive from a shared archive. 17863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17864 17865# Create a temporary old-style archive to link instead of a shared archive. 17866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17867 17868# Commands used to build and install a shared archive. 17869archive_cmds=$lt_archive_cmds_GCJ 17870archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17871postinstall_cmds=$lt_postinstall_cmds 17872postuninstall_cmds=$lt_postuninstall_cmds 17873 17874# Commands used to build a loadable module (assumed same as above if empty) 17875module_cmds=$lt_module_cmds_GCJ 17876module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17877 17878# Commands to strip libraries. 17879old_striplib=$lt_old_striplib 17880striplib=$lt_striplib 17881 17882# Dependencies to place before the objects being linked to create a 17883# shared library. 17884predep_objects=$lt_predep_objects_GCJ 17885 17886# Dependencies to place after the objects being linked to create a 17887# shared library. 17888postdep_objects=$lt_postdep_objects_GCJ 17889 17890# Dependencies to place before the objects being linked to create a 17891# shared library. 17892predeps=$lt_predeps_GCJ 17893 17894# Dependencies to place after the objects being linked to create a 17895# shared library. 17896postdeps=$lt_postdeps_GCJ 17897 17898# The directories searched by this compiler when creating a shared 17899# library 17900compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 17901 17902# The library search path used internally by the compiler when linking 17903# a shared library. 17904compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17905 17906# Method to check whether dependent libraries are shared objects. 17907deplibs_check_method=$lt_deplibs_check_method 17908 17909# Command to use when deplibs_check_method == file_magic. 17910file_magic_cmd=$lt_file_magic_cmd 17911 17912# Flag that allows shared libraries with undefined symbols to be built. 17913allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17914 17915# Flag that forces no undefined symbols. 17916no_undefined_flag=$lt_no_undefined_flag_GCJ 17917 17918# Commands used to finish a libtool library installation in a directory. 17919finish_cmds=$lt_finish_cmds 17920 17921# Same as above, but a single script fragment to be evaled but not shown. 17922finish_eval=$lt_finish_eval 17923 17924# Take the output of nm and produce a listing of raw symbols and C names. 17925global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17926 17927# Transform the output of nm in a proper C declaration 17928global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17929 17930# Transform the output of nm in a C name address pair 17931global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17932 17933# This is the shared library runtime path variable. 17934runpath_var=$runpath_var 17935 17936# This is the shared library path variable. 17937shlibpath_var=$shlibpath_var 17938 17939# Is shlibpath searched before the hard-coded library search path? 17940shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17941 17942# How to hardcode a shared library path into an executable. 17943hardcode_action=$hardcode_action_GCJ 17944 17945# Whether we should hardcode library paths into libraries. 17946hardcode_into_libs=$hardcode_into_libs 17947 17948# Flag to hardcode \$libdir into a binary during linking. 17949# This must work even if \$libdir does not exist. 17950hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17951 17952# If ld is used when linking, flag to hardcode \$libdir into 17953# a binary during linking. This must work even if \$libdir does 17954# not exist. 17955hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17956 17957# Whether we need a single -rpath flag with a separated argument. 17958hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17959 17960# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17961# resulting binary. 17962hardcode_direct=$hardcode_direct_GCJ 17963 17964# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17965# resulting binary. 17966hardcode_minus_L=$hardcode_minus_L_GCJ 17967 17968# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17969# the resulting binary. 17970hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17971 17972# Set to yes if building a shared library automatically hardcodes DIR into the library 17973# and all subsequent libraries and executables linked against it. 17974hardcode_automatic=$hardcode_automatic_GCJ 17975 17976# Variables whose values should be saved in libtool wrapper scripts and 17977# restored at relink time. 17978variables_saved_for_relink="$variables_saved_for_relink" 17979 17980# Whether libtool must link a program against all its dependency libraries. 17981link_all_deplibs=$link_all_deplibs_GCJ 17982 17983# Compile-time system search path for libraries 17984sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17985 17986# Run-time system search path for libraries 17987sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17988 17989# Fix the shell variable \$srcfile for the compiler. 17990fix_srcfile_path=$lt_fix_srcfile_path 17991 17992# Set to yes if exported symbols are required. 17993always_export_symbols=$always_export_symbols_GCJ 17994 17995# The commands to list exported symbols. 17996export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17997 17998# The commands to extract the exported symbol list from a shared archive. 17999extract_expsyms_cmds=$lt_extract_expsyms_cmds 18000 18001# Symbols that should not be listed in the preloaded symbols. 18002exclude_expsyms=$lt_exclude_expsyms_GCJ 18003 18004# Symbols that must always be exported. 18005include_expsyms=$lt_include_expsyms_GCJ 18006 18007# ### END LIBTOOL TAG CONFIG: $tagname 18008 18009__EOF__ 18010 18011 18012else 18013 # If there is no Makefile yet, we rely on a make rule to execute 18014 # `config.status --recheck' to rerun these tests and create the 18015 # libtool script then. 18016 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18017 if test -f "$ltmain_in"; then 18018 test -f Makefile && make "$ltmain" 18019 fi 18020fi 18021 18022 18023ac_ext=c 18024ac_cpp='$CPP $CPPFLAGS' 18025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18027ac_compiler_gnu=$ac_cv_c_compiler_gnu 18028 18029CC="$lt_save_CC" 18030 18031 else 18032 tagname="" 18033 fi 18034 ;; 18035 18036 RC) 18037 18038 18039# Source file extension for RC test sources. 18040ac_ext=rc 18041 18042# Object file extension for compiled RC test sources. 18043objext=o 18044objext_RC=$objext 18045 18046# Code to be used in simple compile tests 18047lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18048 18049# Code to be used in simple link tests 18050lt_simple_link_test_code="$lt_simple_compile_test_code" 18051 18052# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18053 18054# If no C compiler was specified, use CC. 18055LTCC=${LTCC-"$CC"} 18056 18057# If no C compiler flags were specified, use CFLAGS. 18058LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18059 18060# Allow CC to be a program name with arguments. 18061compiler=$CC 18062 18063 18064# save warnings/boilerplate of simple test code 18065ac_outfile=conftest.$ac_objext 18066echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18067eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18068_lt_compiler_boilerplate=`cat conftest.err` 18069$rm conftest* 18070 18071ac_outfile=conftest.$ac_objext 18072echo "$lt_simple_link_test_code" >conftest.$ac_ext 18073eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18074_lt_linker_boilerplate=`cat conftest.err` 18075$rm -r conftest* 18076 18077 18078# Allow CC to be a program name with arguments. 18079lt_save_CC="$CC" 18080CC=${RC-"windres"} 18081compiler=$CC 18082compiler_RC=$CC 18083for cc_temp in $compiler""; do 18084 case $cc_temp in 18085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18087 \-*) ;; 18088 *) break;; 18089 esac 18090done 18091cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18092 18093lt_cv_prog_compiler_c_o_RC=yes 18094 18095# The else clause should only fire when bootstrapping the 18096# libtool distribution, otherwise you forgot to ship ltmain.sh 18097# with your package, and you will get complaints that there are 18098# no rules to generate ltmain.sh. 18099if test -f "$ltmain"; then 18100 # See if we are running on zsh, and set the options which allow our commands through 18101 # without removal of \ escapes. 18102 if test -n "${ZSH_VERSION+set}" ; then 18103 setopt NO_GLOB_SUBST 18104 fi 18105 # Now quote all the things that may contain metacharacters while being 18106 # careful not to overquote the AC_SUBSTed values. We take copies of the 18107 # variables and quote the copies for generation of the libtool script. 18108 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18109 SED SHELL STRIP \ 18110 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18111 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18112 deplibs_check_method reload_flag reload_cmds need_locks \ 18113 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18114 lt_cv_sys_global_symbol_to_c_name_address \ 18115 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18116 old_postinstall_cmds old_postuninstall_cmds \ 18117 compiler_RC \ 18118 CC_RC \ 18119 LD_RC \ 18120 lt_prog_compiler_wl_RC \ 18121 lt_prog_compiler_pic_RC \ 18122 lt_prog_compiler_static_RC \ 18123 lt_prog_compiler_no_builtin_flag_RC \ 18124 export_dynamic_flag_spec_RC \ 18125 thread_safe_flag_spec_RC \ 18126 whole_archive_flag_spec_RC \ 18127 enable_shared_with_static_runtimes_RC \ 18128 old_archive_cmds_RC \ 18129 old_archive_from_new_cmds_RC \ 18130 predep_objects_RC \ 18131 postdep_objects_RC \ 18132 predeps_RC \ 18133 postdeps_RC \ 18134 compiler_lib_search_path_RC \ 18135 compiler_lib_search_dirs_RC \ 18136 archive_cmds_RC \ 18137 archive_expsym_cmds_RC \ 18138 postinstall_cmds_RC \ 18139 postuninstall_cmds_RC \ 18140 old_archive_from_expsyms_cmds_RC \ 18141 allow_undefined_flag_RC \ 18142 no_undefined_flag_RC \ 18143 export_symbols_cmds_RC \ 18144 hardcode_libdir_flag_spec_RC \ 18145 hardcode_libdir_flag_spec_ld_RC \ 18146 hardcode_libdir_separator_RC \ 18147 hardcode_automatic_RC \ 18148 module_cmds_RC \ 18149 module_expsym_cmds_RC \ 18150 lt_cv_prog_compiler_c_o_RC \ 18151 fix_srcfile_path_RC \ 18152 exclude_expsyms_RC \ 18153 include_expsyms_RC; do 18154 18155 case $var in 18156 old_archive_cmds_RC | \ 18157 old_archive_from_new_cmds_RC | \ 18158 archive_cmds_RC | \ 18159 archive_expsym_cmds_RC | \ 18160 module_cmds_RC | \ 18161 module_expsym_cmds_RC | \ 18162 old_archive_from_expsyms_cmds_RC | \ 18163 export_symbols_cmds_RC | \ 18164 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18165 postinstall_cmds | postuninstall_cmds | \ 18166 old_postinstall_cmds | old_postuninstall_cmds | \ 18167 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18168 # Double-quote double-evaled strings. 18169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18170 ;; 18171 *) 18172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18173 ;; 18174 esac 18175 done 18176 18177 case $lt_echo in 18178 *'\$0 --fallback-echo"') 18179 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18180 ;; 18181 esac 18182 18183cfgfile="$ofile" 18184 18185 cat <<__EOF__ >> "$cfgfile" 18186# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18187 18188# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18189 18190# Shell to use when invoking shell scripts. 18191SHELL=$lt_SHELL 18192 18193# Whether or not to build shared libraries. 18194build_libtool_libs=$enable_shared 18195 18196# Whether or not to build static libraries. 18197build_old_libs=$enable_static 18198 18199# Whether or not to add -lc for building shared libraries. 18200build_libtool_need_lc=$archive_cmds_need_lc_RC 18201 18202# Whether or not to disallow shared libs when runtime libs are static 18203allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18204 18205# Whether or not to optimize for fast installation. 18206fast_install=$enable_fast_install 18207 18208# The host system. 18209host_alias=$host_alias 18210host=$host 18211host_os=$host_os 18212 18213# The build system. 18214build_alias=$build_alias 18215build=$build 18216build_os=$build_os 18217 18218# An echo program that does not interpret backslashes. 18219echo=$lt_echo 18220 18221# The archiver. 18222AR=$lt_AR 18223AR_FLAGS=$lt_AR_FLAGS 18224 18225# A C compiler. 18226LTCC=$lt_LTCC 18227 18228# LTCC compiler flags. 18229LTCFLAGS=$lt_LTCFLAGS 18230 18231# A language-specific compiler. 18232CC=$lt_compiler_RC 18233 18234# Is the compiler the GNU C compiler? 18235with_gcc=$GCC_RC 18236 18237# An ERE matcher. 18238EGREP=$lt_EGREP 18239 18240# The linker used to build libraries. 18241LD=$lt_LD_RC 18242 18243# Whether we need hard or soft links. 18244LN_S=$lt_LN_S 18245 18246# A BSD-compatible nm program. 18247NM=$lt_NM 18248 18249# A symbol stripping program 18250STRIP=$lt_STRIP 18251 18252# Used to examine libraries when file_magic_cmd begins "file" 18253MAGIC_CMD=$MAGIC_CMD 18254 18255# Used on cygwin: DLL creation program. 18256DLLTOOL="$DLLTOOL" 18257 18258# Used on cygwin: object dumper. 18259OBJDUMP="$OBJDUMP" 18260 18261# Used on cygwin: assembler. 18262AS="$AS" 18263 18264# The name of the directory that contains temporary libtool files. 18265objdir=$objdir 18266 18267# How to create reloadable object files. 18268reload_flag=$lt_reload_flag 18269reload_cmds=$lt_reload_cmds 18270 18271# How to pass a linker flag through the compiler. 18272wl=$lt_lt_prog_compiler_wl_RC 18273 18274# Object file suffix (normally "o"). 18275objext="$ac_objext" 18276 18277# Old archive suffix (normally "a"). 18278libext="$libext" 18279 18280# Shared library suffix (normally ".so"). 18281shrext_cmds='$shrext_cmds' 18282 18283# Executable file suffix (normally ""). 18284exeext="$exeext" 18285 18286# Additional compiler flags for building library objects. 18287pic_flag=$lt_lt_prog_compiler_pic_RC 18288pic_mode=$pic_mode 18289 18290# What is the maximum length of a command? 18291max_cmd_len=$lt_cv_sys_max_cmd_len 18292 18293# Does compiler simultaneously support -c and -o options? 18294compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18295 18296# Must we lock files when doing compilation? 18297need_locks=$lt_need_locks 18298 18299# Do we need the lib prefix for modules? 18300need_lib_prefix=$need_lib_prefix 18301 18302# Do we need a version for libraries? 18303need_version=$need_version 18304 18305# Whether dlopen is supported. 18306dlopen_support=$enable_dlopen 18307 18308# Whether dlopen of programs is supported. 18309dlopen_self=$enable_dlopen_self 18310 18311# Whether dlopen of statically linked programs is supported. 18312dlopen_self_static=$enable_dlopen_self_static 18313 18314# Compiler flag to prevent dynamic linking. 18315link_static_flag=$lt_lt_prog_compiler_static_RC 18316 18317# Compiler flag to turn off builtin functions. 18318no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18319 18320# Compiler flag to allow reflexive dlopens. 18321export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18322 18323# Compiler flag to generate shared objects directly from archives. 18324whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18325 18326# Compiler flag to generate thread-safe objects. 18327thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18328 18329# Library versioning type. 18330version_type=$version_type 18331 18332# Format of library name prefix. 18333libname_spec=$lt_libname_spec 18334 18335# List of archive names. First name is the real one, the rest are links. 18336# The last name is the one that the linker finds with -lNAME. 18337library_names_spec=$lt_library_names_spec 18338 18339# The coded name of the library, if different from the real name. 18340soname_spec=$lt_soname_spec 18341 18342# Commands used to build and install an old-style archive. 18343RANLIB=$lt_RANLIB 18344old_archive_cmds=$lt_old_archive_cmds_RC 18345old_postinstall_cmds=$lt_old_postinstall_cmds 18346old_postuninstall_cmds=$lt_old_postuninstall_cmds 18347 18348# Create an old-style archive from a shared archive. 18349old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18350 18351# Create a temporary old-style archive to link instead of a shared archive. 18352old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18353 18354# Commands used to build and install a shared archive. 18355archive_cmds=$lt_archive_cmds_RC 18356archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18357postinstall_cmds=$lt_postinstall_cmds 18358postuninstall_cmds=$lt_postuninstall_cmds 18359 18360# Commands used to build a loadable module (assumed same as above if empty) 18361module_cmds=$lt_module_cmds_RC 18362module_expsym_cmds=$lt_module_expsym_cmds_RC 18363 18364# Commands to strip libraries. 18365old_striplib=$lt_old_striplib 18366striplib=$lt_striplib 18367 18368# Dependencies to place before the objects being linked to create a 18369# shared library. 18370predep_objects=$lt_predep_objects_RC 18371 18372# Dependencies to place after the objects being linked to create a 18373# shared library. 18374postdep_objects=$lt_postdep_objects_RC 18375 18376# Dependencies to place before the objects being linked to create a 18377# shared library. 18378predeps=$lt_predeps_RC 18379 18380# Dependencies to place after the objects being linked to create a 18381# shared library. 18382postdeps=$lt_postdeps_RC 18383 18384# The directories searched by this compiler when creating a shared 18385# library 18386compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 18387 18388# The library search path used internally by the compiler when linking 18389# a shared library. 18390compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18391 18392# Method to check whether dependent libraries are shared objects. 18393deplibs_check_method=$lt_deplibs_check_method 18394 18395# Command to use when deplibs_check_method == file_magic. 18396file_magic_cmd=$lt_file_magic_cmd 18397 18398# Flag that allows shared libraries with undefined symbols to be built. 18399allow_undefined_flag=$lt_allow_undefined_flag_RC 18400 18401# Flag that forces no undefined symbols. 18402no_undefined_flag=$lt_no_undefined_flag_RC 18403 18404# Commands used to finish a libtool library installation in a directory. 18405finish_cmds=$lt_finish_cmds 18406 18407# Same as above, but a single script fragment to be evaled but not shown. 18408finish_eval=$lt_finish_eval 18409 18410# Take the output of nm and produce a listing of raw symbols and C names. 18411global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18412 18413# Transform the output of nm in a proper C declaration 18414global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18415 18416# Transform the output of nm in a C name address pair 18417global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18418 18419# This is the shared library runtime path variable. 18420runpath_var=$runpath_var 18421 18422# This is the shared library path variable. 18423shlibpath_var=$shlibpath_var 18424 18425# Is shlibpath searched before the hard-coded library search path? 18426shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18427 18428# How to hardcode a shared library path into an executable. 18429hardcode_action=$hardcode_action_RC 18430 18431# Whether we should hardcode library paths into libraries. 18432hardcode_into_libs=$hardcode_into_libs 18433 18434# Flag to hardcode \$libdir into a binary during linking. 18435# This must work even if \$libdir does not exist. 18436hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18437 18438# If ld is used when linking, flag to hardcode \$libdir into 18439# a binary during linking. This must work even if \$libdir does 18440# not exist. 18441hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18442 18443# Whether we need a single -rpath flag with a separated argument. 18444hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18445 18446# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18447# resulting binary. 18448hardcode_direct=$hardcode_direct_RC 18449 18450# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18451# resulting binary. 18452hardcode_minus_L=$hardcode_minus_L_RC 18453 18454# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18455# the resulting binary. 18456hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18457 18458# Set to yes if building a shared library automatically hardcodes DIR into the library 18459# and all subsequent libraries and executables linked against it. 18460hardcode_automatic=$hardcode_automatic_RC 18461 18462# Variables whose values should be saved in libtool wrapper scripts and 18463# restored at relink time. 18464variables_saved_for_relink="$variables_saved_for_relink" 18465 18466# Whether libtool must link a program against all its dependency libraries. 18467link_all_deplibs=$link_all_deplibs_RC 18468 18469# Compile-time system search path for libraries 18470sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18471 18472# Run-time system search path for libraries 18473sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18474 18475# Fix the shell variable \$srcfile for the compiler. 18476fix_srcfile_path=$lt_fix_srcfile_path 18477 18478# Set to yes if exported symbols are required. 18479always_export_symbols=$always_export_symbols_RC 18480 18481# The commands to list exported symbols. 18482export_symbols_cmds=$lt_export_symbols_cmds_RC 18483 18484# The commands to extract the exported symbol list from a shared archive. 18485extract_expsyms_cmds=$lt_extract_expsyms_cmds 18486 18487# Symbols that should not be listed in the preloaded symbols. 18488exclude_expsyms=$lt_exclude_expsyms_RC 18489 18490# Symbols that must always be exported. 18491include_expsyms=$lt_include_expsyms_RC 18492 18493# ### END LIBTOOL TAG CONFIG: $tagname 18494 18495__EOF__ 18496 18497 18498else 18499 # If there is no Makefile yet, we rely on a make rule to execute 18500 # `config.status --recheck' to rerun these tests and create the 18501 # libtool script then. 18502 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18503 if test -f "$ltmain_in"; then 18504 test -f Makefile && make "$ltmain" 18505 fi 18506fi 18507 18508 18509ac_ext=c 18510ac_cpp='$CPP $CPPFLAGS' 18511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18513ac_compiler_gnu=$ac_cv_c_compiler_gnu 18514 18515CC="$lt_save_CC" 18516 18517 ;; 18518 18519 *) 18520 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5 18521 ;; 18522 esac 18523 18524 # Append the new tag name to the list of available tags. 18525 if test -n "$tagname" ; then 18526 available_tags="$available_tags $tagname" 18527 fi 18528 fi 18529 done 18530 IFS="$lt_save_ifs" 18531 18532 # Now substitute the updated list of available tags. 18533 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18534 mv "${ofile}T" "$ofile" 18535 chmod +x "$ofile" 18536 else 18537 rm -f "${ofile}T" 18538 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5 18539 fi 18540fi 18541 18542 18543 18544# This can be used to rebuild libtool when needed 18545LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18546 18547# Always use our own libtool. 18548LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18549 18550# Prevent multiple expansion 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 ;; 18572esac 18573 18574 18575 18576 18577 18578ac_ext=c 18579ac_cpp='$CPP $CPPFLAGS' 18580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18582ac_compiler_gnu=$ac_cv_c_compiler_gnu 18583if test -n "$ac_tool_prefix"; then 18584 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18585set dummy ${ac_tool_prefix}gcc; ac_word=$2 18586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18587$as_echo_n "checking for $ac_word... " >&6; } 18588if test "${ac_cv_prog_CC+set}" = set; then : 18589 $as_echo_n "(cached) " >&6 18590else 18591 if test -n "$CC"; then 18592 ac_cv_prog_CC="$CC" # Let the user override the test. 18593else 18594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18595for as_dir in $PATH 18596do 18597 IFS=$as_save_IFS 18598 test -z "$as_dir" && as_dir=. 18599 for ac_exec_ext in '' $ac_executable_extensions; do 18600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18601 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18603 break 2 18604 fi 18605done 18606 done 18607IFS=$as_save_IFS 18608 18609fi 18610fi 18611CC=$ac_cv_prog_CC 18612if test -n "$CC"; then 18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18614$as_echo "$CC" >&6; } 18615else 18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18617$as_echo "no" >&6; } 18618fi 18619 18620 18621fi 18622if test -z "$ac_cv_prog_CC"; then 18623 ac_ct_CC=$CC 18624 # Extract the first word of "gcc", so it can be a program name with args. 18625set dummy gcc; ac_word=$2 18626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18627$as_echo_n "checking for $ac_word... " >&6; } 18628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 18629 $as_echo_n "(cached) " >&6 18630else 18631 if test -n "$ac_ct_CC"; then 18632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18633else 18634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18635for as_dir in $PATH 18636do 18637 IFS=$as_save_IFS 18638 test -z "$as_dir" && as_dir=. 18639 for ac_exec_ext in '' $ac_executable_extensions; do 18640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18641 ac_cv_prog_ac_ct_CC="gcc" 18642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18643 break 2 18644 fi 18645done 18646 done 18647IFS=$as_save_IFS 18648 18649fi 18650fi 18651ac_ct_CC=$ac_cv_prog_ac_ct_CC 18652if test -n "$ac_ct_CC"; then 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 18654$as_echo "$ac_ct_CC" >&6; } 18655else 18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18657$as_echo "no" >&6; } 18658fi 18659 18660 if test "x$ac_ct_CC" = x; then 18661 CC="" 18662 else 18663 case $cross_compiling:$ac_tool_warned in 18664yes:) 18665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18667ac_tool_warned=yes ;; 18668esac 18669 CC=$ac_ct_CC 18670 fi 18671else 18672 CC="$ac_cv_prog_CC" 18673fi 18674 18675if test -z "$CC"; then 18676 if test -n "$ac_tool_prefix"; then 18677 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18678set dummy ${ac_tool_prefix}cc; ac_word=$2 18679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18680$as_echo_n "checking for $ac_word... " >&6; } 18681if test "${ac_cv_prog_CC+set}" = set; then : 18682 $as_echo_n "(cached) " >&6 18683else 18684 if test -n "$CC"; then 18685 ac_cv_prog_CC="$CC" # Let the user override the test. 18686else 18687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18688for as_dir in $PATH 18689do 18690 IFS=$as_save_IFS 18691 test -z "$as_dir" && as_dir=. 18692 for ac_exec_ext in '' $ac_executable_extensions; do 18693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18694 ac_cv_prog_CC="${ac_tool_prefix}cc" 18695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18696 break 2 18697 fi 18698done 18699 done 18700IFS=$as_save_IFS 18701 18702fi 18703fi 18704CC=$ac_cv_prog_CC 18705if test -n "$CC"; then 18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18707$as_echo "$CC" >&6; } 18708else 18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18710$as_echo "no" >&6; } 18711fi 18712 18713 18714 fi 18715fi 18716if test -z "$CC"; then 18717 # Extract the first word of "cc", so it can be a program name with args. 18718set dummy cc; ac_word=$2 18719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18720$as_echo_n "checking for $ac_word... " >&6; } 18721if test "${ac_cv_prog_CC+set}" = set; then : 18722 $as_echo_n "(cached) " >&6 18723else 18724 if test -n "$CC"; then 18725 ac_cv_prog_CC="$CC" # Let the user override the test. 18726else 18727 ac_prog_rejected=no 18728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18729for as_dir in $PATH 18730do 18731 IFS=$as_save_IFS 18732 test -z "$as_dir" && as_dir=. 18733 for ac_exec_ext in '' $ac_executable_extensions; do 18734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18735 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18736 ac_prog_rejected=yes 18737 continue 18738 fi 18739 ac_cv_prog_CC="cc" 18740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18741 break 2 18742 fi 18743done 18744 done 18745IFS=$as_save_IFS 18746 18747if test $ac_prog_rejected = yes; then 18748 # We found a bogon in the path, so make sure we never use it. 18749 set dummy $ac_cv_prog_CC 18750 shift 18751 if test $# != 0; then 18752 # We chose a different compiler from the bogus one. 18753 # However, it has the same basename, so the bogon will be chosen 18754 # first if we set CC to just the basename; use the full file name. 18755 shift 18756 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18757 fi 18758fi 18759fi 18760fi 18761CC=$ac_cv_prog_CC 18762if test -n "$CC"; then 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18764$as_echo "$CC" >&6; } 18765else 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18767$as_echo "no" >&6; } 18768fi 18769 18770 18771fi 18772if test -z "$CC"; then 18773 if test -n "$ac_tool_prefix"; then 18774 for ac_prog in cl.exe 18775 do 18776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18777set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18779$as_echo_n "checking for $ac_word... " >&6; } 18780if test "${ac_cv_prog_CC+set}" = set; then : 18781 $as_echo_n "(cached) " >&6 18782else 18783 if test -n "$CC"; then 18784 ac_cv_prog_CC="$CC" # Let the user override the test. 18785else 18786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18787for as_dir in $PATH 18788do 18789 IFS=$as_save_IFS 18790 test -z "$as_dir" && as_dir=. 18791 for ac_exec_ext in '' $ac_executable_extensions; do 18792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18793 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18795 break 2 18796 fi 18797done 18798 done 18799IFS=$as_save_IFS 18800 18801fi 18802fi 18803CC=$ac_cv_prog_CC 18804if test -n "$CC"; then 18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18806$as_echo "$CC" >&6; } 18807else 18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18809$as_echo "no" >&6; } 18810fi 18811 18812 18813 test -n "$CC" && break 18814 done 18815fi 18816if test -z "$CC"; then 18817 ac_ct_CC=$CC 18818 for ac_prog in cl.exe 18819do 18820 # Extract the first word of "$ac_prog", so it can be a program name with args. 18821set dummy $ac_prog; ac_word=$2 18822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18823$as_echo_n "checking for $ac_word... " >&6; } 18824if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 18825 $as_echo_n "(cached) " >&6 18826else 18827 if test -n "$ac_ct_CC"; then 18828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18829else 18830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18831for as_dir in $PATH 18832do 18833 IFS=$as_save_IFS 18834 test -z "$as_dir" && as_dir=. 18835 for ac_exec_ext in '' $ac_executable_extensions; do 18836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18837 ac_cv_prog_ac_ct_CC="$ac_prog" 18838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18839 break 2 18840 fi 18841done 18842 done 18843IFS=$as_save_IFS 18844 18845fi 18846fi 18847ac_ct_CC=$ac_cv_prog_ac_ct_CC 18848if test -n "$ac_ct_CC"; then 18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 18850$as_echo "$ac_ct_CC" >&6; } 18851else 18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18853$as_echo "no" >&6; } 18854fi 18855 18856 18857 test -n "$ac_ct_CC" && break 18858done 18859 18860 if test "x$ac_ct_CC" = x; then 18861 CC="" 18862 else 18863 case $cross_compiling:$ac_tool_warned in 18864yes:) 18865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18867ac_tool_warned=yes ;; 18868esac 18869 CC=$ac_ct_CC 18870 fi 18871fi 18872 18873fi 18874 18875 18876test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18878as_fn_error "no acceptable C compiler found in \$PATH 18879See \`config.log' for more details." "$LINENO" 5; } 18880 18881# Provide some information about the compiler. 18882$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 18883set X $ac_compile 18884ac_compiler=$2 18885for ac_option in --version -v -V -qversion; do 18886 { { ac_try="$ac_compiler $ac_option >&5" 18887case "(($ac_try" in 18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18889 *) ac_try_echo=$ac_try;; 18890esac 18891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18892$as_echo "$ac_try_echo"; } >&5 18893 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 18894 ac_status=$? 18895 if test -s conftest.err; then 18896 sed '10a\ 18897... rest of stderr output deleted ... 18898 10q' conftest.err >conftest.er1 18899 cat conftest.er1 >&5 18900 rm -f conftest.er1 conftest.err 18901 fi 18902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18903 test $ac_status = 0; } 18904done 18905 18906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 18907$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 18908if test "${ac_cv_c_compiler_gnu+set}" = set; then : 18909 $as_echo_n "(cached) " >&6 18910else 18911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18912/* end confdefs.h. */ 18913 18914int 18915main () 18916{ 18917#ifndef __GNUC__ 18918 choke me 18919#endif 18920 18921 ; 18922 return 0; 18923} 18924_ACEOF 18925if ac_fn_c_try_compile "$LINENO"; then : 18926 ac_compiler_gnu=yes 18927else 18928 ac_compiler_gnu=no 18929fi 18930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18931ac_cv_c_compiler_gnu=$ac_compiler_gnu 18932 18933fi 18934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 18935$as_echo "$ac_cv_c_compiler_gnu" >&6; } 18936if test $ac_compiler_gnu = yes; then 18937 GCC=yes 18938else 18939 GCC= 18940fi 18941ac_test_CFLAGS=${CFLAGS+set} 18942ac_save_CFLAGS=$CFLAGS 18943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 18944$as_echo_n "checking whether $CC accepts -g... " >&6; } 18945if test "${ac_cv_prog_cc_g+set}" = set; then : 18946 $as_echo_n "(cached) " >&6 18947else 18948 ac_save_c_werror_flag=$ac_c_werror_flag 18949 ac_c_werror_flag=yes 18950 ac_cv_prog_cc_g=no 18951 CFLAGS="-g" 18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953/* end confdefs.h. */ 18954 18955int 18956main () 18957{ 18958 18959 ; 18960 return 0; 18961} 18962_ACEOF 18963if ac_fn_c_try_compile "$LINENO"; then : 18964 ac_cv_prog_cc_g=yes 18965else 18966 CFLAGS="" 18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18968/* end confdefs.h. */ 18969 18970int 18971main () 18972{ 18973 18974 ; 18975 return 0; 18976} 18977_ACEOF 18978if ac_fn_c_try_compile "$LINENO"; then : 18979 18980else 18981 ac_c_werror_flag=$ac_save_c_werror_flag 18982 CFLAGS="-g" 18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18984/* end confdefs.h. */ 18985 18986int 18987main () 18988{ 18989 18990 ; 18991 return 0; 18992} 18993_ACEOF 18994if ac_fn_c_try_compile "$LINENO"; then : 18995 ac_cv_prog_cc_g=yes 18996fi 18997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18998fi 18999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19000fi 19001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19002 ac_c_werror_flag=$ac_save_c_werror_flag 19003fi 19004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 19005$as_echo "$ac_cv_prog_cc_g" >&6; } 19006if test "$ac_test_CFLAGS" = set; then 19007 CFLAGS=$ac_save_CFLAGS 19008elif test $ac_cv_prog_cc_g = yes; then 19009 if test "$GCC" = yes; then 19010 CFLAGS="-g -O2" 19011 else 19012 CFLAGS="-g" 19013 fi 19014else 19015 if test "$GCC" = yes; then 19016 CFLAGS="-O2" 19017 else 19018 CFLAGS= 19019 fi 19020fi 19021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 19022$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 19023if test "${ac_cv_prog_cc_c89+set}" = set; then : 19024 $as_echo_n "(cached) " >&6 19025else 19026 ac_cv_prog_cc_c89=no 19027ac_save_CC=$CC 19028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19029/* end confdefs.h. */ 19030#include <stdarg.h> 19031#include <stdio.h> 19032#include <sys/types.h> 19033#include <sys/stat.h> 19034/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19035struct buf { int x; }; 19036FILE * (*rcsopen) (struct buf *, struct stat *, int); 19037static char *e (p, i) 19038 char **p; 19039 int i; 19040{ 19041 return p[i]; 19042} 19043static char *f (char * (*g) (char **, int), char **p, ...) 19044{ 19045 char *s; 19046 va_list v; 19047 va_start (v,p); 19048 s = g (p, va_arg (v,int)); 19049 va_end (v); 19050 return s; 19051} 19052 19053/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19054 function prototypes and stuff, but not '\xHH' hex character constants. 19055 These don't provoke an error unfortunately, instead are silently treated 19056 as 'x'. The following induces an error, until -std is added to get 19057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19058 array size at least. It's necessary to write '\x00'==0 to get something 19059 that's true only with -std. */ 19060int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19061 19062/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 19063 inside strings and character constants. */ 19064#define FOO(x) 'x' 19065int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 19066 19067int test (int i, double x); 19068struct s1 {int (*f) (int a);}; 19069struct s2 {int (*f) (double a);}; 19070int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19071int argc; 19072char **argv; 19073int 19074main () 19075{ 19076return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19077 ; 19078 return 0; 19079} 19080_ACEOF 19081for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 19082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19083do 19084 CC="$ac_save_CC $ac_arg" 19085 if ac_fn_c_try_compile "$LINENO"; then : 19086 ac_cv_prog_cc_c89=$ac_arg 19087fi 19088rm -f core conftest.err conftest.$ac_objext 19089 test "x$ac_cv_prog_cc_c89" != "xno" && break 19090done 19091rm -f conftest.$ac_ext 19092CC=$ac_save_CC 19093 19094fi 19095# AC_CACHE_VAL 19096case "x$ac_cv_prog_cc_c89" in 19097 x) 19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 19099$as_echo "none needed" >&6; } ;; 19100 xno) 19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 19102$as_echo "unsupported" >&6; } ;; 19103 *) 19104 CC="$CC $ac_cv_prog_cc_c89" 19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 19106$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 19107esac 19108if test "x$ac_cv_prog_cc_c89" != xno; then : 19109 19110fi 19111 19112ac_ext=c 19113ac_cpp='$CPP $CPPFLAGS' 19114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19116ac_compiler_gnu=$ac_cv_c_compiler_gnu 19117 19118# Find a good install program. We prefer a C program (faster), 19119# so one script is as good as another. But avoid the broken or 19120# incompatible versions: 19121# SysV /etc/install, /usr/sbin/install 19122# SunOS /usr/etc/install 19123# IRIX /sbin/install 19124# AIX /bin/install 19125# AmigaOS /C/install, which installs bootblocks on floppy discs 19126# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19127# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19128# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19129# OS/2's system install, which has a completely different semantic 19130# ./install, which can be erroneously created by make from ./install.sh. 19131# Reject install programs that cannot install multiple files. 19132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 19133$as_echo_n "checking for a BSD-compatible install... " >&6; } 19134if test -z "$INSTALL"; then 19135if test "${ac_cv_path_install+set}" = set; then : 19136 $as_echo_n "(cached) " >&6 19137else 19138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19139for as_dir in $PATH 19140do 19141 IFS=$as_save_IFS 19142 test -z "$as_dir" && as_dir=. 19143 # Account for people who put trailing slashes in PATH elements. 19144case $as_dir/ in #(( 19145 ./ | .// | /[cC]/* | \ 19146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19147 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 19148 /usr/ucb/* ) ;; 19149 *) 19150 # OSF1 and SCO ODT 3.0 have their own names for install. 19151 # Don't use installbsd from OSF since it installs stuff as root 19152 # by default. 19153 for ac_prog in ginstall scoinst install; do 19154 for ac_exec_ext in '' $ac_executable_extensions; do 19155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 19156 if test $ac_prog = install && 19157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19158 # AIX install. It has an incompatible calling convention. 19159 : 19160 elif test $ac_prog = install && 19161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19162 # program-specific install script used by HP pwplus--don't use. 19163 : 19164 else 19165 rm -rf conftest.one conftest.two conftest.dir 19166 echo one > conftest.one 19167 echo two > conftest.two 19168 mkdir conftest.dir 19169 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 19170 test -s conftest.one && test -s conftest.two && 19171 test -s conftest.dir/conftest.one && 19172 test -s conftest.dir/conftest.two 19173 then 19174 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 19175 break 3 19176 fi 19177 fi 19178 fi 19179 done 19180 done 19181 ;; 19182esac 19183 19184 done 19185IFS=$as_save_IFS 19186 19187rm -rf conftest.one conftest.two conftest.dir 19188 19189fi 19190 if test "${ac_cv_path_install+set}" = set; then 19191 INSTALL=$ac_cv_path_install 19192 else 19193 # As a last resort, use the slow shell script. Don't cache a 19194 # value for INSTALL within a source directory, because that will 19195 # break other packages using the cache if that directory is 19196 # removed, or if the value is a relative name. 19197 INSTALL=$ac_install_sh 19198 fi 19199fi 19200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 19201$as_echo "$INSTALL" >&6; } 19202 19203# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 19204# It thinks the first close brace ends the variable substitution. 19205test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 19206 19207test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 19208 19209test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 19210 19211 19212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19213$as_echo_n "checking for ANSI C header files... " >&6; } 19214if test "${ac_cv_header_stdc+set}" = set; then : 19215 $as_echo_n "(cached) " >&6 19216else 19217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19218/* end confdefs.h. */ 19219#include <stdlib.h> 19220#include <stdarg.h> 19221#include <string.h> 19222#include <float.h> 19223 19224int 19225main () 19226{ 19227 19228 ; 19229 return 0; 19230} 19231_ACEOF 19232if ac_fn_c_try_compile "$LINENO"; then : 19233 ac_cv_header_stdc=yes 19234else 19235 ac_cv_header_stdc=no 19236fi 19237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19238 19239if test $ac_cv_header_stdc = yes; then 19240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19242/* end confdefs.h. */ 19243#include <string.h> 19244 19245_ACEOF 19246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19247 $EGREP "memchr" >/dev/null 2>&1; then : 19248 19249else 19250 ac_cv_header_stdc=no 19251fi 19252rm -f conftest* 19253 19254fi 19255 19256if test $ac_cv_header_stdc = yes; then 19257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19259/* end confdefs.h. */ 19260#include <stdlib.h> 19261 19262_ACEOF 19263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19264 $EGREP "free" >/dev/null 2>&1; then : 19265 19266else 19267 ac_cv_header_stdc=no 19268fi 19269rm -f conftest* 19270 19271fi 19272 19273if test $ac_cv_header_stdc = yes; then 19274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19275 if test "$cross_compiling" = yes; then : 19276 : 19277else 19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19279/* end confdefs.h. */ 19280#include <ctype.h> 19281#include <stdlib.h> 19282#if ((' ' & 0x0FF) == 0x020) 19283# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19284# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19285#else 19286# define ISLOWER(c) \ 19287 (('a' <= (c) && (c) <= 'i') \ 19288 || ('j' <= (c) && (c) <= 'r') \ 19289 || ('s' <= (c) && (c) <= 'z')) 19290# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19291#endif 19292 19293#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19294int 19295main () 19296{ 19297 int i; 19298 for (i = 0; i < 256; i++) 19299 if (XOR (islower (i), ISLOWER (i)) 19300 || toupper (i) != TOUPPER (i)) 19301 return 2; 19302 return 0; 19303} 19304_ACEOF 19305if ac_fn_c_try_run "$LINENO"; then : 19306 19307else 19308 ac_cv_header_stdc=no 19309fi 19310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19311 conftest.$ac_objext conftest.beam conftest.$ac_ext 19312fi 19313 19314fi 19315fi 19316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19317$as_echo "$ac_cv_header_stdc" >&6; } 19318if test $ac_cv_header_stdc = yes; then 19319 19320$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19321 19322fi 19323 19324 19325if test "$cross_compiling" = "no"; then 19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 19327$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 19328if test "${ac_cv_c_bigendian+set}" = set; then : 19329 $as_echo_n "(cached) " >&6 19330else 19331 ac_cv_c_bigendian=unknown 19332 # See if we're dealing with a universal compiler. 19333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19334/* end confdefs.h. */ 19335#ifndef __APPLE_CC__ 19336 not a universal capable compiler 19337 #endif 19338 typedef int dummy; 19339 19340_ACEOF 19341if ac_fn_c_try_compile "$LINENO"; then : 19342 19343 # Check for potential -arch flags. It is not universal unless 19344 # there are at least two -arch flags with different values. 19345 ac_arch= 19346 ac_prev= 19347 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 19348 if test -n "$ac_prev"; then 19349 case $ac_word in 19350 i?86 | x86_64 | ppc | ppc64) 19351 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 19352 ac_arch=$ac_word 19353 else 19354 ac_cv_c_bigendian=universal 19355 break 19356 fi 19357 ;; 19358 esac 19359 ac_prev= 19360 elif test "x$ac_word" = "x-arch"; then 19361 ac_prev=arch 19362 fi 19363 done 19364fi 19365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19366 if test $ac_cv_c_bigendian = unknown; then 19367 # See if sys/param.h defines the BYTE_ORDER macro. 19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19369/* end confdefs.h. */ 19370#include <sys/types.h> 19371 #include <sys/param.h> 19372 19373int 19374main () 19375{ 19376#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 19377 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 19378 && LITTLE_ENDIAN) 19379 bogus endian macros 19380 #endif 19381 19382 ; 19383 return 0; 19384} 19385_ACEOF 19386if ac_fn_c_try_compile "$LINENO"; then : 19387 # It does; now see whether it defined to BIG_ENDIAN or not. 19388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19389/* end confdefs.h. */ 19390#include <sys/types.h> 19391 #include <sys/param.h> 19392 19393int 19394main () 19395{ 19396#if BYTE_ORDER != BIG_ENDIAN 19397 not big endian 19398 #endif 19399 19400 ; 19401 return 0; 19402} 19403_ACEOF 19404if ac_fn_c_try_compile "$LINENO"; then : 19405 ac_cv_c_bigendian=yes 19406else 19407 ac_cv_c_bigendian=no 19408fi 19409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19410fi 19411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19412 fi 19413 if test $ac_cv_c_bigendian = unknown; then 19414 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416/* end confdefs.h. */ 19417#include <limits.h> 19418 19419int 19420main () 19421{ 19422#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 19423 bogus endian macros 19424 #endif 19425 19426 ; 19427 return 0; 19428} 19429_ACEOF 19430if ac_fn_c_try_compile "$LINENO"; then : 19431 # It does; now see whether it defined to _BIG_ENDIAN or not. 19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19433/* end confdefs.h. */ 19434#include <limits.h> 19435 19436int 19437main () 19438{ 19439#ifndef _BIG_ENDIAN 19440 not big endian 19441 #endif 19442 19443 ; 19444 return 0; 19445} 19446_ACEOF 19447if ac_fn_c_try_compile "$LINENO"; then : 19448 ac_cv_c_bigendian=yes 19449else 19450 ac_cv_c_bigendian=no 19451fi 19452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19453fi 19454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19455 fi 19456 if test $ac_cv_c_bigendian = unknown; then 19457 # Compile a test program. 19458 if test "$cross_compiling" = yes; then : 19459 # Try to guess by grepping values from an object file. 19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19461/* end confdefs.h. */ 19462short int ascii_mm[] = 19463 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 19464 short int ascii_ii[] = 19465 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 19466 int use_ascii (int i) { 19467 return ascii_mm[i] + ascii_ii[i]; 19468 } 19469 short int ebcdic_ii[] = 19470 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 19471 short int ebcdic_mm[] = 19472 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 19473 int use_ebcdic (int i) { 19474 return ebcdic_mm[i] + ebcdic_ii[i]; 19475 } 19476 extern int foo; 19477 19478int 19479main () 19480{ 19481return use_ascii (foo) == use_ebcdic (foo); 19482 ; 19483 return 0; 19484} 19485_ACEOF 19486if ac_fn_c_try_compile "$LINENO"; then : 19487 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 19488 ac_cv_c_bigendian=yes 19489 fi 19490 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 19491 if test "$ac_cv_c_bigendian" = unknown; then 19492 ac_cv_c_bigendian=no 19493 else 19494 # finding both strings is unlikely to happen, but who knows? 19495 ac_cv_c_bigendian=unknown 19496 fi 19497 fi 19498fi 19499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19500else 19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19502/* end confdefs.h. */ 19503$ac_includes_default 19504int 19505main () 19506{ 19507 19508 /* Are we little or big endian? From Harbison&Steele. */ 19509 union 19510 { 19511 long int l; 19512 char c[sizeof (long int)]; 19513 } u; 19514 u.l = 1; 19515 return u.c[sizeof (long int) - 1] == 1; 19516 19517 ; 19518 return 0; 19519} 19520_ACEOF 19521if ac_fn_c_try_run "$LINENO"; then : 19522 ac_cv_c_bigendian=no 19523else 19524 ac_cv_c_bigendian=yes 19525fi 19526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19527 conftest.$ac_objext conftest.beam conftest.$ac_ext 19528fi 19529 19530 fi 19531fi 19532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 19533$as_echo "$ac_cv_c_bigendian" >&6; } 19534 case $ac_cv_c_bigendian in #( 19535 yes) 19536 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 19537;; #( 19538 no) 19539 ;; #( 19540 universal) 19541 19542$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 19543 19544 ;; #( 19545 *) 19546 as_fn_error "unknown endianness 19547 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 19548 esac 19549 19550else 19551 19552$as_echo "#define AP_UNKNOWN_BYTE_ORDER 1" >>confdefs.h 19553 19554fi 19555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19556$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19557if test "${ac_cv_c_const+set}" = set; then : 19558 $as_echo_n "(cached) " >&6 19559else 19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19561/* end confdefs.h. */ 19562 19563int 19564main () 19565{ 19566/* FIXME: Include the comments suggested by Paul. */ 19567#ifndef __cplusplus 19568 /* Ultrix mips cc rejects this. */ 19569 typedef int charset[2]; 19570 const charset cs; 19571 /* SunOS 4.1.1 cc rejects this. */ 19572 char const *const *pcpcc; 19573 char **ppc; 19574 /* NEC SVR4.0.2 mips cc rejects this. */ 19575 struct point {int x, y;}; 19576 static struct point const zero = {0,0}; 19577 /* AIX XL C 1.02.0.0 rejects this. 19578 It does not let you subtract one const X* pointer from another in 19579 an arm of an if-expression whose if-part is not a constant 19580 expression */ 19581 const char *g = "string"; 19582 pcpcc = &g + (g ? g-g : 0); 19583 /* HPUX 7.0 cc rejects these. */ 19584 ++pcpcc; 19585 ppc = (char**) pcpcc; 19586 pcpcc = (char const *const *) ppc; 19587 { /* SCO 3.2v4 cc rejects this. */ 19588 char *t; 19589 char const *s = 0 ? (char *) 0 : (char const *) 0; 19590 19591 *t++ = 0; 19592 if (s) return 0; 19593 } 19594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19595 int x[] = {25, 17}; 19596 const int *foo = &x[0]; 19597 ++foo; 19598 } 19599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19600 typedef const int *iptr; 19601 iptr p = 0; 19602 ++p; 19603 } 19604 { /* AIX XL C 1.02.0.0 rejects this saying 19605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19606 struct s { int j; const int *ap[3]; }; 19607 struct s *b; b->j = 5; 19608 } 19609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19610 const int foo = 10; 19611 if (!foo) return 0; 19612 } 19613 return !cs[0] && !zero.x; 19614#endif 19615 19616 ; 19617 return 0; 19618} 19619_ACEOF 19620if ac_fn_c_try_compile "$LINENO"; then : 19621 ac_cv_c_const=yes 19622else 19623 ac_cv_c_const=no 19624fi 19625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19626fi 19627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 19628$as_echo "$ac_cv_c_const" >&6; } 19629if test $ac_cv_c_const = no; then 19630 19631$as_echo "#define const /**/" >>confdefs.h 19632 19633fi 19634 19635ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19636if test "x$ac_cv_type_size_t" = x""yes; then : 19637 19638else 19639 19640cat >>confdefs.h <<_ACEOF 19641#define size_t unsigned int 19642_ACEOF 19643 19644fi 19645 19646for ac_func in memmove bcopy 19647do : 19648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19649ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19650eval as_val=\$$as_ac_var 19651 if test "x$as_val" = x""yes; then : 19652 cat >>confdefs.h <<_ACEOF 19653#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19654_ACEOF 19655 19656fi 19657done 19658 19659 19660for ac_header in check.h 19661do : 19662 ac_fn_c_check_header_mongrel "$LINENO" "check.h" "ac_cv_header_check_h" "$ac_includes_default" 19663if test "x$ac_cv_header_check_h" = x""yes; then : 19664 cat >>confdefs.h <<_ACEOF 19665#define HAVE_CHECK_H 1 19666_ACEOF 19667 19668fi 19669 19670done 19671 19672 19673 19674$as_echo "#define XML_NS 1" >>confdefs.h 19675 19676 19677$as_echo "#define XML_DTD 1" >>confdefs.h 19678 19679 19680$as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h 19681 19682 19683ac_config_files="$ac_config_files Makefile" 19684 19685cat >confcache <<\_ACEOF 19686# This file is a shell script that caches the results of configure 19687# tests run on this system so they can be shared between configure 19688# scripts and configure runs, see configure's option --config-cache. 19689# It is not useful on other systems. If it contains results you don't 19690# want to keep, you may remove or edit it. 19691# 19692# config.status only pays attention to the cache file if you give it 19693# the --recheck option to rerun configure. 19694# 19695# `ac_cv_env_foo' variables (set or unset) will be overridden when 19696# loading this file, other *unset* `ac_cv_foo' will be assigned the 19697# following values. 19698 19699_ACEOF 19700 19701# The following way of writing the cache mishandles newlines in values, 19702# but we know of no workaround that is simple, portable, and efficient. 19703# So, we kill variables containing newlines. 19704# Ultrix sh set writes to stderr and can't be redirected directly, 19705# and sets the high bit in the cache file unless we assign to the vars. 19706( 19707 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19708 eval ac_val=\$$ac_var 19709 case $ac_val in #( 19710 *${as_nl}*) 19711 case $ac_var in #( 19712 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19713$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19714 esac 19715 case $ac_var in #( 19716 _ | IFS | as_nl) ;; #( 19717 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19718 *) { eval $ac_var=; unset $ac_var;} ;; 19719 esac ;; 19720 esac 19721 done 19722 19723 (set) 2>&1 | 19724 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19725 *${as_nl}ac_space=\ *) 19726 # `set' does not quote correctly, so add quotes: double-quote 19727 # substitution turns \\\\ into \\, and sed turns \\ into \. 19728 sed -n \ 19729 "s/'/'\\\\''/g; 19730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19731 ;; #( 19732 *) 19733 # `set' quotes correctly as required by POSIX, so do not add quotes. 19734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19735 ;; 19736 esac | 19737 sort 19738) | 19739 sed ' 19740 /^ac_cv_env_/b end 19741 t clear 19742 :clear 19743 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19744 t end 19745 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19746 :end' >>confcache 19747if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19748 if test -w "$cache_file"; then 19749 test "x$cache_file" != "x/dev/null" && 19750 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19751$as_echo "$as_me: updating cache $cache_file" >&6;} 19752 cat confcache >$cache_file 19753 else 19754 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19755$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19756 fi 19757fi 19758rm -f confcache 19759 19760test "x$prefix" = xNONE && prefix=$ac_default_prefix 19761# Let make expand exec_prefix. 19762test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19763 19764DEFS=-DHAVE_CONFIG_H 19765 19766ac_libobjs= 19767ac_ltlibobjs= 19768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19769 # 1. Remove the extension, and $U if already installed. 19770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19773 # will be set to the directory where LIBOBJS objects are built. 19774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19776done 19777LIBOBJS=$ac_libobjs 19778 19779LTLIBOBJS=$ac_ltlibobjs 19780 19781 19782 19783 19784: ${CONFIG_STATUS=./config.status} 19785ac_write_fail=0 19786ac_clean_files_save=$ac_clean_files 19787ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19788{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19789$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19790as_write_fail=0 19791cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19792#! $SHELL 19793# Generated by $as_me. 19794# Run this file to recreate the current configuration. 19795# Compiler output produced by configure, useful for debugging 19796# configure, is in config.log if it exists. 19797 19798debug=false 19799ac_cs_recheck=false 19800ac_cs_silent=false 19801 19802SHELL=\${CONFIG_SHELL-$SHELL} 19803export SHELL 19804_ASEOF 19805cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19806## -------------------- ## 19807## M4sh Initialization. ## 19808## -------------------- ## 19809 19810# Be more Bourne compatible 19811DUALCASE=1; export DUALCASE # for MKS sh 19812if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19813 emulate sh 19814 NULLCMD=: 19815 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19816 # is contrary to our usage. Disable this feature. 19817 alias -g '${1+"$@"}'='"$@"' 19818 setopt NO_GLOB_SUBST 19819else 19820 case `(set -o) 2>/dev/null` in #( 19821 *posix*) : 19822 set -o posix ;; #( 19823 *) : 19824 ;; 19825esac 19826fi 19827 19828 19829as_nl=' 19830' 19831export as_nl 19832# Printing a long string crashes Solaris 7 /usr/bin/printf. 19833as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19834as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19835as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19836# Prefer a ksh shell builtin over an external printf program on Solaris, 19837# but without wasting forks for bash or zsh. 19838if test -z "$BASH_VERSION$ZSH_VERSION" \ 19839 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19840 as_echo='print -r --' 19841 as_echo_n='print -rn --' 19842elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19843 as_echo='printf %s\n' 19844 as_echo_n='printf %s' 19845else 19846 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19847 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19848 as_echo_n='/usr/ucb/echo -n' 19849 else 19850 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19851 as_echo_n_body='eval 19852 arg=$1; 19853 case $arg in #( 19854 *"$as_nl"*) 19855 expr "X$arg" : "X\\(.*\\)$as_nl"; 19856 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19857 esac; 19858 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19859 ' 19860 export as_echo_n_body 19861 as_echo_n='sh -c $as_echo_n_body as_echo' 19862 fi 19863 export as_echo_body 19864 as_echo='sh -c $as_echo_body as_echo' 19865fi 19866 19867# The user is always right. 19868if test "${PATH_SEPARATOR+set}" != set; then 19869 PATH_SEPARATOR=: 19870 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19871 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19872 PATH_SEPARATOR=';' 19873 } 19874fi 19875 19876 19877# IFS 19878# We need space, tab and new line, in precisely that order. Quoting is 19879# there to prevent editors from complaining about space-tab. 19880# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19881# splitting by setting IFS to empty value.) 19882IFS=" "" $as_nl" 19883 19884# Find who we are. Look in the path if we contain no directory separator. 19885case $0 in #(( 19886 *[\\/]* ) as_myself=$0 ;; 19887 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19888for as_dir in $PATH 19889do 19890 IFS=$as_save_IFS 19891 test -z "$as_dir" && as_dir=. 19892 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19893 done 19894IFS=$as_save_IFS 19895 19896 ;; 19897esac 19898# We did not find ourselves, most probably we were run as `sh COMMAND' 19899# in which case we are not to be found in the path. 19900if test "x$as_myself" = x; then 19901 as_myself=$0 19902fi 19903if test ! -f "$as_myself"; then 19904 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19905 exit 1 19906fi 19907 19908# Unset variables that we do not need and which cause bugs (e.g. in 19909# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19910# suppresses any "Segmentation fault" message there. '((' could 19911# trigger a bug in pdksh 5.2.14. 19912for as_var in BASH_ENV ENV MAIL MAILPATH 19913do eval test x\${$as_var+set} = xset \ 19914 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19915done 19916PS1='$ ' 19917PS2='> ' 19918PS4='+ ' 19919 19920# NLS nuisances. 19921LC_ALL=C 19922export LC_ALL 19923LANGUAGE=C 19924export LANGUAGE 19925 19926# CDPATH. 19927(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19928 19929 19930# as_fn_error ERROR [LINENO LOG_FD] 19931# --------------------------------- 19932# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19933# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19934# script with status $?, using 1 if that was 0. 19935as_fn_error () 19936{ 19937 as_status=$?; test $as_status -eq 0 && as_status=1 19938 if test "$3"; then 19939 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19940 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 19941 fi 19942 $as_echo "$as_me: error: $1" >&2 19943 as_fn_exit $as_status 19944} # as_fn_error 19945 19946 19947# as_fn_set_status STATUS 19948# ----------------------- 19949# Set $? to STATUS, without forking. 19950as_fn_set_status () 19951{ 19952 return $1 19953} # as_fn_set_status 19954 19955# as_fn_exit STATUS 19956# ----------------- 19957# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19958as_fn_exit () 19959{ 19960 set +e 19961 as_fn_set_status $1 19962 exit $1 19963} # as_fn_exit 19964 19965# as_fn_unset VAR 19966# --------------- 19967# Portably unset VAR. 19968as_fn_unset () 19969{ 19970 { eval $1=; unset $1;} 19971} 19972as_unset=as_fn_unset 19973# as_fn_append VAR VALUE 19974# ---------------------- 19975# Append the text in VALUE to the end of the definition contained in VAR. Take 19976# advantage of any shell optimizations that allow amortized linear growth over 19977# repeated appends, instead of the typical quadratic growth present in naive 19978# implementations. 19979if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19980 eval 'as_fn_append () 19981 { 19982 eval $1+=\$2 19983 }' 19984else 19985 as_fn_append () 19986 { 19987 eval $1=\$$1\$2 19988 } 19989fi # as_fn_append 19990 19991# as_fn_arith ARG... 19992# ------------------ 19993# Perform arithmetic evaluation on the ARGs, and store the result in the 19994# global $as_val. Take advantage of shells that can avoid forks. The arguments 19995# must be portable across $(()) and expr. 19996if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19997 eval 'as_fn_arith () 19998 { 19999 as_val=$(( $* )) 20000 }' 20001else 20002 as_fn_arith () 20003 { 20004 as_val=`expr "$@" || test $? -eq 1` 20005 } 20006fi # as_fn_arith 20007 20008 20009if expr a : '\(a\)' >/dev/null 2>&1 && 20010 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20011 as_expr=expr 20012else 20013 as_expr=false 20014fi 20015 20016if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20017 as_basename=basename 20018else 20019 as_basename=false 20020fi 20021 20022if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20023 as_dirname=dirname 20024else 20025 as_dirname=false 20026fi 20027 20028as_me=`$as_basename -- "$0" || 20029$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20030 X"$0" : 'X\(//\)$' \| \ 20031 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20032$as_echo X/"$0" | 20033 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20034 s//\1/ 20035 q 20036 } 20037 /^X\/\(\/\/\)$/{ 20038 s//\1/ 20039 q 20040 } 20041 /^X\/\(\/\).*/{ 20042 s//\1/ 20043 q 20044 } 20045 s/.*/./; q'` 20046 20047# Avoid depending upon Character Ranges. 20048as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20049as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20050as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20051as_cr_digits='0123456789' 20052as_cr_alnum=$as_cr_Letters$as_cr_digits 20053 20054ECHO_C= ECHO_N= ECHO_T= 20055case `echo -n x` in #((((( 20056-n*) 20057 case `echo 'xy\c'` in 20058 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20059 xy) ECHO_C='\c';; 20060 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20061 ECHO_T=' ';; 20062 esac;; 20063*) 20064 ECHO_N='-n';; 20065esac 20066 20067rm -f conf$$ conf$$.exe conf$$.file 20068if test -d conf$$.dir; then 20069 rm -f conf$$.dir/conf$$.file 20070else 20071 rm -f conf$$.dir 20072 mkdir conf$$.dir 2>/dev/null 20073fi 20074if (echo >conf$$.file) 2>/dev/null; then 20075 if ln -s conf$$.file conf$$ 2>/dev/null; then 20076 as_ln_s='ln -s' 20077 # ... but there are two gotchas: 20078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20080 # In both cases, we have to default to `cp -p'. 20081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20082 as_ln_s='cp -p' 20083 elif ln conf$$.file conf$$ 2>/dev/null; then 20084 as_ln_s=ln 20085 else 20086 as_ln_s='cp -p' 20087 fi 20088else 20089 as_ln_s='cp -p' 20090fi 20091rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20092rmdir conf$$.dir 2>/dev/null 20093 20094 20095# as_fn_mkdir_p 20096# ------------- 20097# Create "$as_dir" as a directory, including parents if necessary. 20098as_fn_mkdir_p () 20099{ 20100 20101 case $as_dir in #( 20102 -*) as_dir=./$as_dir;; 20103 esac 20104 test -d "$as_dir" || eval $as_mkdir_p || { 20105 as_dirs= 20106 while :; do 20107 case $as_dir in #( 20108 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20109 *) as_qdir=$as_dir;; 20110 esac 20111 as_dirs="'$as_qdir' $as_dirs" 20112 as_dir=`$as_dirname -- "$as_dir" || 20113$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20114 X"$as_dir" : 'X\(//\)[^/]' \| \ 20115 X"$as_dir" : 'X\(//\)$' \| \ 20116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20117$as_echo X"$as_dir" | 20118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20119 s//\1/ 20120 q 20121 } 20122 /^X\(\/\/\)[^/].*/{ 20123 s//\1/ 20124 q 20125 } 20126 /^X\(\/\/\)$/{ 20127 s//\1/ 20128 q 20129 } 20130 /^X\(\/\).*/{ 20131 s//\1/ 20132 q 20133 } 20134 s/.*/./; q'` 20135 test -d "$as_dir" && break 20136 done 20137 test -z "$as_dirs" || eval "mkdir $as_dirs" 20138 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 20139 20140 20141} # as_fn_mkdir_p 20142if mkdir -p . 2>/dev/null; then 20143 as_mkdir_p='mkdir -p "$as_dir"' 20144else 20145 test -d ./-p && rmdir ./-p 20146 as_mkdir_p=false 20147fi 20148 20149if test -x / >/dev/null 2>&1; then 20150 as_test_x='test -x' 20151else 20152 if ls -dL / >/dev/null 2>&1; then 20153 as_ls_L_option=L 20154 else 20155 as_ls_L_option= 20156 fi 20157 as_test_x=' 20158 eval sh -c '\'' 20159 if test -d "$1"; then 20160 test -d "$1/."; 20161 else 20162 case $1 in #( 20163 -*)set "./$1";; 20164 esac; 20165 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 20166 ???[sx]*):;;*)false;;esac;fi 20167 '\'' sh 20168 ' 20169fi 20170as_executable_p=$as_test_x 20171 20172# Sed expression to map a string onto a valid CPP name. 20173as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20174 20175# Sed expression to map a string onto a valid variable name. 20176as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20177 20178 20179exec 6>&1 20180## ----------------------------------- ## 20181## Main body of $CONFIG_STATUS script. ## 20182## ----------------------------------- ## 20183_ASEOF 20184test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20185 20186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20187# Save the log message, to keep $0 and so on meaningful, and to 20188# report actual input values of CONFIG_FILES etc. instead of their 20189# values after options handling. 20190ac_log=" 20191This file was extended by expat $as_me 1.95.7, which was 20192generated by GNU Autoconf 2.64. Invocation command line was 20193 20194 CONFIG_FILES = $CONFIG_FILES 20195 CONFIG_HEADERS = $CONFIG_HEADERS 20196 CONFIG_LINKS = $CONFIG_LINKS 20197 CONFIG_COMMANDS = $CONFIG_COMMANDS 20198 $ $0 $@ 20199 20200on `(hostname || uname -n) 2>/dev/null | sed 1q` 20201" 20202 20203_ACEOF 20204 20205case $ac_config_files in *" 20206"*) set x $ac_config_files; shift; ac_config_files=$*;; 20207esac 20208 20209case $ac_config_headers in *" 20210"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20211esac 20212 20213 20214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20215# Files that config.status was made for. 20216config_files="$ac_config_files" 20217config_headers="$ac_config_headers" 20218 20219_ACEOF 20220 20221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20222ac_cs_usage="\ 20223\`$as_me' instantiates files and other configuration actions 20224from templates according to the current configuration. Unless the files 20225and actions are specified as TAGs, all are instantiated by default. 20226 20227Usage: $0 [OPTION]... [TAG]... 20228 20229 -h, --help print this help, then exit 20230 -V, --version print version number and configuration settings, then exit 20231 -q, --quiet, --silent 20232 do not print progress messages 20233 -d, --debug don't remove temporary files 20234 --recheck update $as_me by reconfiguring in the same conditions 20235 --file=FILE[:TEMPLATE] 20236 instantiate the configuration file FILE 20237 --header=FILE[:TEMPLATE] 20238 instantiate the configuration header FILE 20239 20240Configuration files: 20241$config_files 20242 20243Configuration headers: 20244$config_headers 20245 20246Report bugs to <expat-bugs@mail.libexpat.org>." 20247 20248_ACEOF 20249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20250ac_cs_version="\\ 20251expat config.status 1.95.7 20252configured by $0, generated by GNU Autoconf 2.64, 20253 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20254 20255Copyright (C) 2009 Free Software Foundation, Inc. 20256This config.status script is free software; the Free Software Foundation 20257gives unlimited permission to copy, distribute and modify it." 20258 20259ac_pwd='$ac_pwd' 20260srcdir='$srcdir' 20261INSTALL='$INSTALL' 20262test -n "\$AWK" || AWK=awk 20263_ACEOF 20264 20265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20266# The default lists apply if the user does not specify any file. 20267ac_need_defaults=: 20268while test $# != 0 20269do 20270 case $1 in 20271 --*=*) 20272 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20273 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20274 ac_shift=: 20275 ;; 20276 *) 20277 ac_option=$1 20278 ac_optarg=$2 20279 ac_shift=shift 20280 ;; 20281 esac 20282 20283 case $ac_option in 20284 # Handling of the options. 20285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20286 ac_cs_recheck=: ;; 20287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20288 $as_echo "$ac_cs_version"; exit ;; 20289 --debug | --debu | --deb | --de | --d | -d ) 20290 debug=: ;; 20291 --file | --fil | --fi | --f ) 20292 $ac_shift 20293 case $ac_optarg in 20294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20295 esac 20296 as_fn_append CONFIG_FILES " '$ac_optarg'" 20297 ac_need_defaults=false;; 20298 --header | --heade | --head | --hea ) 20299 $ac_shift 20300 case $ac_optarg in 20301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20302 esac 20303 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20304 ac_need_defaults=false;; 20305 --he | --h) 20306 # Conflict between --help and --header 20307 as_fn_error "ambiguous option: \`$1' 20308Try \`$0 --help' for more information.";; 20309 --help | --hel | -h ) 20310 $as_echo "$ac_cs_usage"; exit ;; 20311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20312 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20313 ac_cs_silent=: ;; 20314 20315 # This is an error. 20316 -*) as_fn_error "unrecognized option: \`$1' 20317Try \`$0 --help' for more information." ;; 20318 20319 *) as_fn_append ac_config_targets " $1" 20320 ac_need_defaults=false ;; 20321 20322 esac 20323 shift 20324done 20325 20326ac_configure_extra_args= 20327 20328if $ac_cs_silent; then 20329 exec 6>/dev/null 20330 ac_configure_extra_args="$ac_configure_extra_args --silent" 20331fi 20332 20333_ACEOF 20334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20335if \$ac_cs_recheck; then 20336 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20337 shift 20338 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20339 CONFIG_SHELL='$SHELL' 20340 export CONFIG_SHELL 20341 exec "\$@" 20342fi 20343 20344_ACEOF 20345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20346exec 5>>config.log 20347{ 20348 echo 20349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20350## Running $as_me. ## 20351_ASBOX 20352 $as_echo "$ac_log" 20353} >&5 20354 20355_ACEOF 20356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20357_ACEOF 20358 20359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20360 20361# Handling of arguments. 20362for ac_config_target in $ac_config_targets 20363do 20364 case $ac_config_target in 20365 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;; 20366 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20367 20368 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20369 esac 20370done 20371 20372 20373# If the user did not use the arguments to specify the items to instantiate, 20374# then the envvar interface is used. Set only those that are not. 20375# We use the long form for the default assignment because of an extremely 20376# bizarre bug on SunOS 4.1.3. 20377if $ac_need_defaults; then 20378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20380fi 20381 20382# Have a temporary directory for convenience. Make it in the build tree 20383# simply because there is no reason against having it here, and in addition, 20384# creating and moving files from /tmp can sometimes cause problems. 20385# Hook for its removal unless debugging. 20386# Note that there is a small window in which the directory will not be cleaned: 20387# after its creation but before its name has been assigned to `$tmp'. 20388$debug || 20389{ 20390 tmp= 20391 trap 'exit_status=$? 20392 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20393' 0 20394 trap 'as_fn_exit 1' 1 2 13 15 20395} 20396# Create a (secure) tmp directory for tmp files. 20397 20398{ 20399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20400 test -n "$tmp" && test -d "$tmp" 20401} || 20402{ 20403 tmp=./conf$$-$RANDOM 20404 (umask 077 && mkdir "$tmp") 20405} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 20406 20407# Set up the scripts for CONFIG_FILES section. 20408# No need to generate them if there are no CONFIG_FILES. 20409# This happens for instance with `./config.status config.h'. 20410if test -n "$CONFIG_FILES"; then 20411 20412 20413ac_cr=`echo X | tr X '\015'` 20414# On cygwin, bash can eat \r inside `` if the user requested igncr. 20415# But we know of no other shell where ac_cr would be empty at this 20416# point, so we can use a bashism as a fallback. 20417if test "x$ac_cr" = x; then 20418 eval ac_cr=\$\'\\r\' 20419fi 20420ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20421if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20422 ac_cs_awk_cr='\r' 20423else 20424 ac_cs_awk_cr=$ac_cr 20425fi 20426 20427echo 'BEGIN {' >"$tmp/subs1.awk" && 20428_ACEOF 20429 20430 20431{ 20432 echo "cat >conf$$subs.awk <<_ACEOF" && 20433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20434 echo "_ACEOF" 20435} >conf$$subs.sh || 20436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 20437ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 20438ac_delim='%!_!# ' 20439for ac_last_try in false false false false false :; do 20440 . ./conf$$subs.sh || 20441 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 20442 20443 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20444 if test $ac_delim_n = $ac_delim_num; then 20445 break 20446 elif $ac_last_try; then 20447 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 20448 else 20449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20450 fi 20451done 20452rm -f conf$$subs.sh 20453 20454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20455cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 20456_ACEOF 20457sed -n ' 20458h 20459s/^/S["/; s/!.*/"]=/ 20460p 20461g 20462s/^[^!]*!// 20463:repl 20464t repl 20465s/'"$ac_delim"'$// 20466t delim 20467:nl 20468h 20469s/\(.\{148\}\).*/\1/ 20470t more1 20471s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20472p 20473n 20474b repl 20475:more1 20476s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20477p 20478g 20479s/.\{148\}// 20480t nl 20481:delim 20482h 20483s/\(.\{148\}\).*/\1/ 20484t more2 20485s/["\\]/\\&/g; s/^/"/; s/$/"/ 20486p 20487b 20488:more2 20489s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20490p 20491g 20492s/.\{148\}// 20493t delim 20494' <conf$$subs.awk | sed ' 20495/^[^""]/{ 20496 N 20497 s/\n// 20498} 20499' >>$CONFIG_STATUS || ac_write_fail=1 20500rm -f conf$$subs.awk 20501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20502_ACAWK 20503cat >>"\$tmp/subs1.awk" <<_ACAWK && 20504 for (key in S) S_is_set[key] = 1 20505 FS = "" 20506 20507} 20508{ 20509 line = $ 0 20510 nfields = split(line, field, "@") 20511 substed = 0 20512 len = length(field[1]) 20513 for (i = 2; i < nfields; i++) { 20514 key = field[i] 20515 keylen = length(key) 20516 if (S_is_set[key]) { 20517 value = S[key] 20518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20519 len += length(value) + length(field[++i]) 20520 substed = 1 20521 } else 20522 len += 1 + keylen 20523 } 20524 20525 print line 20526} 20527 20528_ACAWK 20529_ACEOF 20530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20531if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20532 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20533else 20534 cat 20535fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 20536 || as_fn_error "could not setup config files machinery" "$LINENO" 5 20537_ACEOF 20538 20539# VPATH may cause trouble with some makes, so we remove $(srcdir), 20540# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20541# trailing colons and then remove the whole line if VPATH becomes empty 20542# (actually we leave an empty line to preserve line numbers). 20543if test "x$srcdir" = x.; then 20544 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20545s/:*\$(srcdir):*/:/ 20546s/:*\${srcdir}:*/:/ 20547s/:*@srcdir@:*/:/ 20548s/^\([^=]*=[ ]*\):*/\1/ 20549s/:*$// 20550s/^[^=]*=[ ]*$// 20551}' 20552fi 20553 20554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20555fi # test -n "$CONFIG_FILES" 20556 20557# Set up the scripts for CONFIG_HEADERS section. 20558# No need to generate them if there are no CONFIG_HEADERS. 20559# This happens for instance with `./config.status Makefile'. 20560if test -n "$CONFIG_HEADERS"; then 20561cat >"$tmp/defines.awk" <<\_ACAWK || 20562BEGIN { 20563_ACEOF 20564 20565# Transform confdefs.h into an awk script `defines.awk', embedded as 20566# here-document in config.status, that substitutes the proper values into 20567# config.h.in to produce config.h. 20568 20569# Create a delimiter string that does not exist in confdefs.h, to ease 20570# handling of long lines. 20571ac_delim='%!_!# ' 20572for ac_last_try in false false :; do 20573 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 20574 if test -z "$ac_t"; then 20575 break 20576 elif $ac_last_try; then 20577 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 20578 else 20579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20580 fi 20581done 20582 20583# For the awk script, D is an array of macro values keyed by name, 20584# likewise P contains macro parameters if any. Preserve backslash 20585# newline sequences. 20586 20587ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20588sed -n ' 20589s/.\{148\}/&'"$ac_delim"'/g 20590t rset 20591:rset 20592s/^[ ]*#[ ]*define[ ][ ]*/ / 20593t def 20594d 20595:def 20596s/\\$// 20597t bsnl 20598s/["\\]/\\&/g 20599s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20600D["\1"]=" \3"/p 20601s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20602d 20603:bsnl 20604s/["\\]/\\&/g 20605s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20606D["\1"]=" \3\\\\\\n"\\/p 20607t cont 20608s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20609t cont 20610d 20611:cont 20612n 20613s/.\{148\}/&'"$ac_delim"'/g 20614t clear 20615:clear 20616s/\\$// 20617t bsnlc 20618s/["\\]/\\&/g; s/^/"/; s/$/"/p 20619d 20620:bsnlc 20621s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20622b cont 20623' <confdefs.h | sed ' 20624s/'"$ac_delim"'/"\\\ 20625"/g' >>$CONFIG_STATUS || ac_write_fail=1 20626 20627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20628 for (key in D) D_is_set[key] = 1 20629 FS = "" 20630} 20631/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20632 line = \$ 0 20633 split(line, arg, " ") 20634 if (arg[1] == "#") { 20635 defundef = arg[2] 20636 mac1 = arg[3] 20637 } else { 20638 defundef = substr(arg[1], 2) 20639 mac1 = arg[2] 20640 } 20641 split(mac1, mac2, "(") #) 20642 macro = mac2[1] 20643 prefix = substr(line, 1, index(line, defundef) - 1) 20644 if (D_is_set[macro]) { 20645 # Preserve the white space surrounding the "#". 20646 print prefix "define", macro P[macro] D[macro] 20647 next 20648 } else { 20649 # Replace #undef with comments. This is necessary, for example, 20650 # in the case of _POSIX_SOURCE, which is predefined and required 20651 # on some systems where configure will not decide to define it. 20652 if (defundef == "undef") { 20653 print "/*", prefix defundef, macro, "*/" 20654 next 20655 } 20656 } 20657} 20658{ print } 20659_ACAWK 20660_ACEOF 20661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20662 as_fn_error "could not setup config headers machinery" "$LINENO" 5 20663fi # test -n "$CONFIG_HEADERS" 20664 20665 20666eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 20667shift 20668for ac_tag 20669do 20670 case $ac_tag in 20671 :[FHLC]) ac_mode=$ac_tag; continue;; 20672 esac 20673 case $ac_mode$ac_tag in 20674 :[FHL]*:*);; 20675 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 20676 :[FH]-) ac_tag=-:-;; 20677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20678 esac 20679 ac_save_IFS=$IFS 20680 IFS=: 20681 set x $ac_tag 20682 IFS=$ac_save_IFS 20683 shift 20684 ac_file=$1 20685 shift 20686 20687 case $ac_mode in 20688 :L) ac_source=$1;; 20689 :[FH]) 20690 ac_file_inputs= 20691 for ac_f 20692 do 20693 case $ac_f in 20694 -) ac_f="$tmp/stdin";; 20695 *) # Look for the file first in the build tree, then in the source tree 20696 # (if the path is not absolute). The absolute path cannot be DOS-style, 20697 # because $ac_f cannot contain `:'. 20698 test -f "$ac_f" || 20699 case $ac_f in 20700 [\\/$]*) false;; 20701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20702 esac || 20703 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20704 esac 20705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20706 as_fn_append ac_file_inputs " '$ac_f'" 20707 done 20708 20709 # Let's still pretend it is `configure' which instantiates (i.e., don't 20710 # use $as_me), people would be surprised to read: 20711 # /* config.h. Generated by config.status. */ 20712 configure_input='Generated from '` 20713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20714 `' by configure.' 20715 if test x"$ac_file" != x-; then 20716 configure_input="$ac_file. $configure_input" 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20718$as_echo "$as_me: creating $ac_file" >&6;} 20719 fi 20720 # Neutralize special characters interpreted by sed in replacement strings. 20721 case $configure_input in #( 20722 *\&* | *\|* | *\\* ) 20723 ac_sed_conf_input=`$as_echo "$configure_input" | 20724 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20725 *) ac_sed_conf_input=$configure_input;; 20726 esac 20727 20728 case $ac_tag in 20729 *:-:* | *:-) cat >"$tmp/stdin" \ 20730 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 20731 esac 20732 ;; 20733 esac 20734 20735 ac_dir=`$as_dirname -- "$ac_file" || 20736$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20737 X"$ac_file" : 'X\(//\)[^/]' \| \ 20738 X"$ac_file" : 'X\(//\)$' \| \ 20739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20740$as_echo X"$ac_file" | 20741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20742 s//\1/ 20743 q 20744 } 20745 /^X\(\/\/\)[^/].*/{ 20746 s//\1/ 20747 q 20748 } 20749 /^X\(\/\/\)$/{ 20750 s//\1/ 20751 q 20752 } 20753 /^X\(\/\).*/{ 20754 s//\1/ 20755 q 20756 } 20757 s/.*/./; q'` 20758 as_dir="$ac_dir"; as_fn_mkdir_p 20759 ac_builddir=. 20760 20761case "$ac_dir" in 20762.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20763*) 20764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20765 # A ".." for each directory in $ac_dir_suffix. 20766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20767 case $ac_top_builddir_sub in 20768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20770 esac ;; 20771esac 20772ac_abs_top_builddir=$ac_pwd 20773ac_abs_builddir=$ac_pwd$ac_dir_suffix 20774# for backward compatibility: 20775ac_top_builddir=$ac_top_build_prefix 20776 20777case $srcdir in 20778 .) # We are building in place. 20779 ac_srcdir=. 20780 ac_top_srcdir=$ac_top_builddir_sub 20781 ac_abs_top_srcdir=$ac_pwd ;; 20782 [\\/]* | ?:[\\/]* ) # Absolute name. 20783 ac_srcdir=$srcdir$ac_dir_suffix; 20784 ac_top_srcdir=$srcdir 20785 ac_abs_top_srcdir=$srcdir ;; 20786 *) # Relative name. 20787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20788 ac_top_srcdir=$ac_top_build_prefix$srcdir 20789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20790esac 20791ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20792 20793 20794 case $ac_mode in 20795 :F) 20796 # 20797 # CONFIG_FILE 20798 # 20799 20800 case $INSTALL in 20801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20802 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20803 esac 20804_ACEOF 20805 20806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20807# If the template does not know about datarootdir, expand it. 20808# FIXME: This hack should be removed a few years after 2.60. 20809ac_datarootdir_hack=; ac_datarootdir_seen= 20810ac_sed_dataroot=' 20811/datarootdir/ { 20812 p 20813 q 20814} 20815/@datadir@/p 20816/@docdir@/p 20817/@infodir@/p 20818/@localedir@/p 20819/@mandir@/p' 20820case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20821*datarootdir*) ac_datarootdir_seen=yes;; 20822*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20824$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20825_ACEOF 20826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20827 ac_datarootdir_hack=' 20828 s&@datadir@&$datadir&g 20829 s&@docdir@&$docdir&g 20830 s&@infodir@&$infodir&g 20831 s&@localedir@&$localedir&g 20832 s&@mandir@&$mandir&g 20833 s&\\\${datarootdir}&$datarootdir&g' ;; 20834esac 20835_ACEOF 20836 20837# Neutralize VPATH when `$srcdir' = `.'. 20838# Shell code in configure.ac might set extrasub. 20839# FIXME: do we really want to maintain this feature? 20840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20841ac_sed_extra="$ac_vpsub 20842$extrasub 20843_ACEOF 20844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20845:t 20846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20847s|@configure_input@|$ac_sed_conf_input|;t t 20848s&@top_builddir@&$ac_top_builddir_sub&;t t 20849s&@top_build_prefix@&$ac_top_build_prefix&;t t 20850s&@srcdir@&$ac_srcdir&;t t 20851s&@abs_srcdir@&$ac_abs_srcdir&;t t 20852s&@top_srcdir@&$ac_top_srcdir&;t t 20853s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20854s&@builddir@&$ac_builddir&;t t 20855s&@abs_builddir@&$ac_abs_builddir&;t t 20856s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20857s&@INSTALL@&$ac_INSTALL&;t t 20858$ac_datarootdir_hack 20859" 20860eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 20861 || as_fn_error "could not create $ac_file" "$LINENO" 5 20862 20863test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20864 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20865 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20867which seems to be undefined. Please make sure it is defined." >&5 20868$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20869which seems to be undefined. Please make sure it is defined." >&2;} 20870 20871 rm -f "$tmp/stdin" 20872 case $ac_file in 20873 -) cat "$tmp/out" && rm -f "$tmp/out";; 20874 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 20875 esac \ 20876 || as_fn_error "could not create $ac_file" "$LINENO" 5 20877 ;; 20878 :H) 20879 # 20880 # CONFIG_HEADER 20881 # 20882 if test x"$ac_file" != x-; then 20883 { 20884 $as_echo "/* $configure_input */" \ 20885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 20886 } >"$tmp/config.h" \ 20887 || as_fn_error "could not create $ac_file" "$LINENO" 5 20888 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 20889 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20890$as_echo "$as_me: $ac_file is unchanged" >&6;} 20891 else 20892 rm -f "$ac_file" 20893 mv "$tmp/config.h" "$ac_file" \ 20894 || as_fn_error "could not create $ac_file" "$LINENO" 5 20895 fi 20896 else 20897 $as_echo "/* $configure_input */" \ 20898 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 20899 || as_fn_error "could not create -" "$LINENO" 5 20900 fi 20901 ;; 20902 20903 20904 esac 20905 20906done # for ac_tag 20907 20908 20909as_fn_exit 0 20910_ACEOF 20911ac_clean_files=$ac_clean_files_save 20912 20913test $ac_write_fail = 0 || 20914 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 20915 20916 20917# configure is writing to config.log, and then calls config.status. 20918# config.status does its own redirection, appending to config.log. 20919# Unfortunately, on DOS this fails, as config.log is still kept open 20920# by configure, so config.status won't be able to write to it; its 20921# output is simply discarded. So we exec the FD to /dev/null, 20922# effectively closing config.log, so it can be properly (re)opened and 20923# appended to by config.status. When coming back to configure, we 20924# need to make the FD available again. 20925if test "$no_create" != yes; then 20926 ac_cs_success=: 20927 ac_config_status_args= 20928 test "$silent" = yes && 20929 ac_config_status_args="$ac_config_status_args --quiet" 20930 exec 5>/dev/null 20931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20932 exec 5>>config.log 20933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20934 # would make configure fail if this is the last instruction. 20935 $ac_cs_success || as_fn_exit $? 20936fi 20937if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20939$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20940fi 20941 20942 20943abs_srcdir="`cd $srcdir && pwd`" 20944abs_builddir="`pwd`" 20945if test "$abs_srcdir" != "$abs_builddir"; then 20946 mkdir lib 20947fi 20948 20949