1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for sqlite 3.6.22. 4# 5# Report bugs to <http://www.sqlite.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: http://www.sqlite.org about your system, including any 235$0: error possibly output before this message. Then install 236$0: a modern shell, or manually run the script under such a 237$0: shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error ERROR [LINENO LOG_FD] 363# --------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with status $?, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$?; test $as_status -eq 0 && as_status=1 370 if test "$3"; then 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 373 fi 374 $as_echo "$as_me: error: $1" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533# Check that we are running under the correct shell. 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536case X$ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543echo=${ECHO-echo} 544if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $echo works! 552 : 553else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556fi 557 558if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<EOF 562$* 563EOF 564 exit 0 565fi 566 567# The HP-UX ksh and POSIX shell print the target directory to stdout 568# if CDPATH is set. 569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571if test -z "$ECHO"; then 572if test "X${echo_test_string+set}" != Xset; then 573# find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if (echo_test_string=`eval $cmd`) 2>/dev/null && 577 echo_test_string=`eval $cmd` && 578 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 579 then 580 break 581 fi 582 done 583fi 584 585if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 echo="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$echo" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 echo='print -r' 616 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 echo='printf %s\n' 627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 echo="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 echo="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 echo=echo 665 fi 666 fi 667 fi 668 fi 669fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674ECHO=$echo 675if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682tagnames=${tagnames+${tagnames},}CXX 683 684tagnames=${tagnames+${tagnames},}F77 685 686test -n "$DJDIR" || exec 7<&0 </dev/null 687exec 6>&1 688 689# Name of the host. 690# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 691# so uname gets run too. 692ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 693 694# 695# Initializations. 696# 697ac_default_prefix=/usr/local 698ac_clean_files= 699ac_config_libobj_dir=. 700LIBOBJS= 701cross_compiling=no 702subdirs= 703MFLAGS= 704MAKEFLAGS= 705 706# Identity of this package. 707PACKAGE_NAME='sqlite' 708PACKAGE_TARNAME='sqlite' 709PACKAGE_VERSION='3.6.22' 710PACKAGE_STRING='sqlite 3.6.22' 711PACKAGE_BUGREPORT='http://www.sqlite.org' 712PACKAGE_URL='' 713 714ac_unique_file="sqlite3.c" 715# Factoring default headers for most tests. 716ac_includes_default="\ 717#include <stdio.h> 718#ifdef HAVE_SYS_TYPES_H 719# include <sys/types.h> 720#endif 721#ifdef HAVE_SYS_STAT_H 722# include <sys/stat.h> 723#endif 724#ifdef STDC_HEADERS 725# include <stdlib.h> 726# include <stddef.h> 727#else 728# ifdef HAVE_STDLIB_H 729# include <stdlib.h> 730# endif 731#endif 732#ifdef HAVE_STRING_H 733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 734# include <memory.h> 735# endif 736# include <string.h> 737#endif 738#ifdef HAVE_STRINGS_H 739# include <strings.h> 740#endif 741#ifdef HAVE_INTTYPES_H 742# include <inttypes.h> 743#endif 744#ifdef HAVE_STDINT_H 745# include <stdint.h> 746#endif 747#ifdef HAVE_UNISTD_H 748# include <unistd.h> 749#endif" 750 751ac_subst_vars='LTLIBOBJS 752LIBOBJS 753DYNAMIC_EXTENSION_FLAGS 754THREADSAFE_FLAGS 755READLINE_LIBS 756BUILD_CFLAGS 757LIBTOOL 758ac_ct_F77 759FFLAGS 760F77 761CXXCPP 762am__fastdepCXX_FALSE 763am__fastdepCXX_TRUE 764CXXDEPMODE 765ac_ct_CXX 766CXXFLAGS 767CXX 768CPP 769AR 770ECHO 771LN_S 772EGREP 773GREP 774host_os 775host_vendor 776host_cpu 777host 778build_os 779build_vendor 780build_cpu 781build 782RANLIB 783am__fastdepCC_FALSE 784am__fastdepCC_TRUE 785CCDEPMODE 786AMDEPBACKSLASH 787AMDEP_FALSE 788AMDEP_TRUE 789am__quote 790am__include 791DEPDIR 792OBJEXT 793EXEEXT 794ac_ct_CC 795CPPFLAGS 796LDFLAGS 797CFLAGS 798CC 799am__untar 800am__tar 801AMTAR 802am__leading_dot 803SET_MAKE 804AWK 805mkdir_p 806INSTALL_STRIP_PROGRAM 807STRIP 808install_sh 809MAKEINFO 810AUTOHEADER 811AUTOMAKE 812AUTOCONF 813ACLOCAL 814VERSION 815PACKAGE 816CYGPATH_W 817INSTALL_DATA 818INSTALL_SCRIPT 819INSTALL_PROGRAM 820target_alias 821host_alias 822build_alias 823LIBS 824ECHO_T 825ECHO_N 826ECHO_C 827DEFS 828mandir 829localedir 830libdir 831psdir 832pdfdir 833dvidir 834htmldir 835infodir 836docdir 837oldincludedir 838includedir 839localstatedir 840sharedstatedir 841sysconfdir 842datadir 843datarootdir 844libexecdir 845sbindir 846bindir 847program_transform_name 848prefix 849exec_prefix 850PACKAGE_URL 851PACKAGE_BUGREPORT 852PACKAGE_STRING 853PACKAGE_VERSION 854PACKAGE_TARNAME 855PACKAGE_NAME 856PATH_SEPARATOR 857SHELL' 858ac_subst_files='' 859ac_user_opts=' 860enable_option_checking 861enable_largefile 862enable_dependency_tracking 863enable_shared 864enable_static 865enable_fast_install 866with_gnu_ld 867enable_libtool_lock 868with_pic 869with_tags 870enable_readline 871enable_threadsafe 872enable_dynamic_extensions 873' 874 ac_precious_vars='build_alias 875host_alias 876target_alias 877CC 878CFLAGS 879LDFLAGS 880LIBS 881CPPFLAGS 882CPP 883CXX 884CXXFLAGS 885CCC 886CXXCPP 887F77 888FFLAGS' 889 890 891# Initialize some variables set by options. 892ac_init_help= 893ac_init_version=false 894ac_unrecognized_opts= 895ac_unrecognized_sep= 896# The variables have the same names as the options, with 897# dashes changed to underlines. 898cache_file=/dev/null 899exec_prefix=NONE 900no_create= 901no_recursion= 902prefix=NONE 903program_prefix=NONE 904program_suffix=NONE 905program_transform_name=s,x,x, 906silent= 907site= 908srcdir= 909verbose= 910x_includes=NONE 911x_libraries=NONE 912 913# Installation directory options. 914# These are left unexpanded so users can "make install exec_prefix=/foo" 915# and all the variables that are supposed to be based on exec_prefix 916# by default will actually change. 917# Use braces instead of parens because sh, perl, etc. also accept them. 918# (The list follows the same order as the GNU Coding Standards.) 919bindir='${exec_prefix}/bin' 920sbindir='${exec_prefix}/sbin' 921libexecdir='${exec_prefix}/libexec' 922datarootdir='${prefix}/share' 923datadir='${datarootdir}' 924sysconfdir='${prefix}/etc' 925sharedstatedir='${prefix}/com' 926localstatedir='${prefix}/var' 927includedir='${prefix}/include' 928oldincludedir='/usr/include' 929docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 930infodir='${datarootdir}/info' 931htmldir='${docdir}' 932dvidir='${docdir}' 933pdfdir='${docdir}' 934psdir='${docdir}' 935libdir='${exec_prefix}/lib' 936localedir='${datarootdir}/locale' 937mandir='${datarootdir}/man' 938 939ac_prev= 940ac_dashdash= 941for ac_option 942do 943 # If the previous option needs an argument, assign it. 944 if test -n "$ac_prev"; then 945 eval $ac_prev=\$ac_option 946 ac_prev= 947 continue 948 fi 949 950 case $ac_option in 951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 952 *) ac_optarg=yes ;; 953 esac 954 955 # Accept the important Cygnus configure options, so we can diagnose typos. 956 957 case $ac_dashdash$ac_option in 958 --) 959 ac_dashdash=yes ;; 960 961 -bindir | --bindir | --bindi | --bind | --bin | --bi) 962 ac_prev=bindir ;; 963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 964 bindir=$ac_optarg ;; 965 966 -build | --build | --buil | --bui | --bu) 967 ac_prev=build_alias ;; 968 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 969 build_alias=$ac_optarg ;; 970 971 -cache-file | --cache-file | --cache-fil | --cache-fi \ 972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 973 ac_prev=cache_file ;; 974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 976 cache_file=$ac_optarg ;; 977 978 --config-cache | -C) 979 cache_file=config.cache ;; 980 981 -datadir | --datadir | --datadi | --datad) 982 ac_prev=datadir ;; 983 -datadir=* | --datadir=* | --datadi=* | --datad=*) 984 datadir=$ac_optarg ;; 985 986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 987 | --dataroo | --dataro | --datar) 988 ac_prev=datarootdir ;; 989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 991 datarootdir=$ac_optarg ;; 992 993 -disable-* | --disable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=no ;; 1008 1009 -docdir | --docdir | --docdi | --doc | --do) 1010 ac_prev=docdir ;; 1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1012 docdir=$ac_optarg ;; 1013 1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1015 ac_prev=dvidir ;; 1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1017 dvidir=$ac_optarg ;; 1018 1019 -enable-* | --enable-*) 1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1021 # Reject names that are not valid shell variable names. 1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1023 as_fn_error "invalid feature name: $ac_useropt" 1024 ac_useropt_orig=$ac_useropt 1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1026 case $ac_user_opts in 1027 *" 1028"enable_$ac_useropt" 1029"*) ;; 1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1031 ac_unrecognized_sep=', ';; 1032 esac 1033 eval enable_$ac_useropt=\$ac_optarg ;; 1034 1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1037 | --exec | --exe | --ex) 1038 ac_prev=exec_prefix ;; 1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1041 | --exec=* | --exe=* | --ex=*) 1042 exec_prefix=$ac_optarg ;; 1043 1044 -gas | --gas | --ga | --g) 1045 # Obsolete; use --with-gas. 1046 with_gas=yes ;; 1047 1048 -help | --help | --hel | --he | -h) 1049 ac_init_help=long ;; 1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1051 ac_init_help=recursive ;; 1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1053 ac_init_help=short ;; 1054 1055 -host | --host | --hos | --ho) 1056 ac_prev=host_alias ;; 1057 -host=* | --host=* | --hos=* | --ho=*) 1058 host_alias=$ac_optarg ;; 1059 1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1061 ac_prev=htmldir ;; 1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1063 | --ht=*) 1064 htmldir=$ac_optarg ;; 1065 1066 -includedir | --includedir | --includedi | --included | --include \ 1067 | --includ | --inclu | --incl | --inc) 1068 ac_prev=includedir ;; 1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1070 | --includ=* | --inclu=* | --incl=* | --inc=*) 1071 includedir=$ac_optarg ;; 1072 1073 -infodir | --infodir | --infodi | --infod | --info | --inf) 1074 ac_prev=infodir ;; 1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1076 infodir=$ac_optarg ;; 1077 1078 -libdir | --libdir | --libdi | --libd) 1079 ac_prev=libdir ;; 1080 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1081 libdir=$ac_optarg ;; 1082 1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1084 | --libexe | --libex | --libe) 1085 ac_prev=libexecdir ;; 1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1087 | --libexe=* | --libex=* | --libe=*) 1088 libexecdir=$ac_optarg ;; 1089 1090 -localedir | --localedir | --localedi | --localed | --locale) 1091 ac_prev=localedir ;; 1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1093 localedir=$ac_optarg ;; 1094 1095 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1096 | --localstate | --localstat | --localsta | --localst | --locals) 1097 ac_prev=localstatedir ;; 1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1100 localstatedir=$ac_optarg ;; 1101 1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1103 ac_prev=mandir ;; 1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1105 mandir=$ac_optarg ;; 1106 1107 -nfp | --nfp | --nf) 1108 # Obsolete; use --without-fp. 1109 with_fp=no ;; 1110 1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1112 | --no-cr | --no-c | -n) 1113 no_create=yes ;; 1114 1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1117 no_recursion=yes ;; 1118 1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1121 | --oldin | --oldi | --old | --ol | --o) 1122 ac_prev=oldincludedir ;; 1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1126 oldincludedir=$ac_optarg ;; 1127 1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1129 ac_prev=prefix ;; 1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1131 prefix=$ac_optarg ;; 1132 1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1134 | --program-pre | --program-pr | --program-p) 1135 ac_prev=program_prefix ;; 1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1138 program_prefix=$ac_optarg ;; 1139 1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1141 | --program-suf | --program-su | --program-s) 1142 ac_prev=program_suffix ;; 1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1145 program_suffix=$ac_optarg ;; 1146 1147 -program-transform-name | --program-transform-name \ 1148 | --program-transform-nam | --program-transform-na \ 1149 | --program-transform-n | --program-transform- \ 1150 | --program-transform | --program-transfor \ 1151 | --program-transfo | --program-transf \ 1152 | --program-trans | --program-tran \ 1153 | --progr-tra | --program-tr | --program-t) 1154 ac_prev=program_transform_name ;; 1155 -program-transform-name=* | --program-transform-name=* \ 1156 | --program-transform-nam=* | --program-transform-na=* \ 1157 | --program-transform-n=* | --program-transform-=* \ 1158 | --program-transform=* | --program-transfor=* \ 1159 | --program-transfo=* | --program-transf=* \ 1160 | --program-trans=* | --program-tran=* \ 1161 | --progr-tra=* | --program-tr=* | --program-t=*) 1162 program_transform_name=$ac_optarg ;; 1163 1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1165 ac_prev=pdfdir ;; 1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1167 pdfdir=$ac_optarg ;; 1168 1169 -psdir | --psdir | --psdi | --psd | --ps) 1170 ac_prev=psdir ;; 1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1172 psdir=$ac_optarg ;; 1173 1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1175 | -silent | --silent | --silen | --sile | --sil) 1176 silent=yes ;; 1177 1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1179 ac_prev=sbindir ;; 1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1181 | --sbi=* | --sb=*) 1182 sbindir=$ac_optarg ;; 1183 1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1186 | --sharedst | --shareds | --shared | --share | --shar \ 1187 | --sha | --sh) 1188 ac_prev=sharedstatedir ;; 1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1192 | --sha=* | --sh=*) 1193 sharedstatedir=$ac_optarg ;; 1194 1195 -site | --site | --sit) 1196 ac_prev=site ;; 1197 -site=* | --site=* | --sit=*) 1198 site=$ac_optarg ;; 1199 1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1201 ac_prev=srcdir ;; 1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1203 srcdir=$ac_optarg ;; 1204 1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1206 | --syscon | --sysco | --sysc | --sys | --sy) 1207 ac_prev=sysconfdir ;; 1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1210 sysconfdir=$ac_optarg ;; 1211 1212 -target | --target | --targe | --targ | --tar | --ta | --t) 1213 ac_prev=target_alias ;; 1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1215 target_alias=$ac_optarg ;; 1216 1217 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1218 verbose=yes ;; 1219 1220 -version | --version | --versio | --versi | --vers | -V) 1221 ac_init_version=: ;; 1222 1223 -with-* | --with-*) 1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1225 # Reject names that are not valid shell variable names. 1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1227 as_fn_error "invalid package name: $ac_useropt" 1228 ac_useropt_orig=$ac_useropt 1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1230 case $ac_user_opts in 1231 *" 1232"with_$ac_useropt" 1233"*) ;; 1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1235 ac_unrecognized_sep=', ';; 1236 esac 1237 eval with_$ac_useropt=\$ac_optarg ;; 1238 1239 -without-* | --without-*) 1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1243 as_fn_error "invalid package name: $ac_useropt" 1244 ac_useropt_orig=$ac_useropt 1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1246 case $ac_user_opts in 1247 *" 1248"with_$ac_useropt" 1249"*) ;; 1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1251 ac_unrecognized_sep=', ';; 1252 esac 1253 eval with_$ac_useropt=no ;; 1254 1255 --x) 1256 # Obsolete; use --with-x. 1257 with_x=yes ;; 1258 1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1260 | --x-incl | --x-inc | --x-in | --x-i) 1261 ac_prev=x_includes ;; 1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1264 x_includes=$ac_optarg ;; 1265 1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1268 ac_prev=x_libraries ;; 1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1271 x_libraries=$ac_optarg ;; 1272 1273 -*) as_fn_error "unrecognized option: \`$ac_option' 1274Try \`$0 --help' for more information." 1275 ;; 1276 1277 *=*) 1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1279 # Reject names that are not valid shell variable names. 1280 case $ac_envvar in #( 1281 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1282 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1283 esac 1284 eval $ac_envvar=\$ac_optarg 1285 export $ac_envvar ;; 1286 1287 *) 1288 # FIXME: should be removed in autoconf 3.0. 1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1293 ;; 1294 1295 esac 1296done 1297 1298if test -n "$ac_prev"; then 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1300 as_fn_error "missing argument to $ac_option" 1301fi 1302 1303if test -n "$ac_unrecognized_opts"; then 1304 case $enable_option_checking in 1305 no) ;; 1306 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1308 esac 1309fi 1310 1311# Check all directory arguments for consistency. 1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1313 datadir sysconfdir sharedstatedir localstatedir includedir \ 1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1315 libdir localedir mandir 1316do 1317 eval ac_val=\$$ac_var 1318 # Remove trailing slashes. 1319 case $ac_val in 1320 */ ) 1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1322 eval $ac_var=\$ac_val;; 1323 esac 1324 # Be sure to have absolute directory names. 1325 case $ac_val in 1326 [\\/$]* | ?:[\\/]* ) continue;; 1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1328 esac 1329 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1330done 1331 1332# There might be people who depend on the old broken behavior: `$host' 1333# used to hold the argument of --host etc. 1334# FIXME: To remove some day. 1335build=$build_alias 1336host=$host_alias 1337target=$target_alias 1338 1339# FIXME: To remove some day. 1340if test "x$host_alias" != x; then 1341 if test "x$build_alias" = x; then 1342 cross_compiling=maybe 1343 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1344 If a cross compiler is detected then cross compile mode will be used." >&2 1345 elif test "x$build_alias" != "x$host_alias"; then 1346 cross_compiling=yes 1347 fi 1348fi 1349 1350ac_tool_prefix= 1351test -n "$host_alias" && ac_tool_prefix=$host_alias- 1352 1353test "$silent" = yes && exec 6>/dev/null 1354 1355 1356ac_pwd=`pwd` && test -n "$ac_pwd" && 1357ac_ls_di=`ls -di .` && 1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1359 as_fn_error "working directory cannot be determined" 1360test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1361 as_fn_error "pwd does not report name of working directory" 1362 1363 1364# Find the source files, if location was not specified. 1365if test -z "$srcdir"; then 1366 ac_srcdir_defaulted=yes 1367 # Try the directory containing this script, then the parent directory. 1368 ac_confdir=`$as_dirname -- "$as_myself" || 1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1370 X"$as_myself" : 'X\(//\)[^/]' \| \ 1371 X"$as_myself" : 'X\(//\)$' \| \ 1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1373$as_echo X"$as_myself" | 1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\/\)[^/].*/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\/\)$/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\).*/{ 1387 s//\1/ 1388 q 1389 } 1390 s/.*/./; q'` 1391 srcdir=$ac_confdir 1392 if test ! -r "$srcdir/$ac_unique_file"; then 1393 srcdir=.. 1394 fi 1395else 1396 ac_srcdir_defaulted=no 1397fi 1398if test ! -r "$srcdir/$ac_unique_file"; then 1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1400 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1401fi 1402ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1403ac_abs_confdir=`( 1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1405 pwd)` 1406# When building in place, set srcdir=. 1407if test "$ac_abs_confdir" = "$ac_pwd"; then 1408 srcdir=. 1409fi 1410# Remove unnecessary trailing slashes from srcdir. 1411# Double slashes in file names in object file debugging info 1412# mess up M-x gdb in Emacs. 1413case $srcdir in 1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1415esac 1416for ac_var in $ac_precious_vars; do 1417 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1418 eval ac_env_${ac_var}_value=\$${ac_var} 1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1420 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1421done 1422 1423# 1424# Report the --help message. 1425# 1426if test "$ac_init_help" = "long"; then 1427 # Omit some internal or obsolete options to make the list less imposing. 1428 # This message is too long to be a string in the A/UX 3.1 sh. 1429 cat <<_ACEOF 1430\`configure' configures sqlite 3.6.22 to adapt to many kinds of systems. 1431 1432Usage: $0 [OPTION]... [VAR=VALUE]... 1433 1434To assign environment variables (e.g., CC, CFLAGS...), specify them as 1435VAR=VALUE. See below for descriptions of some of the useful variables. 1436 1437Defaults for the options are specified in brackets. 1438 1439Configuration: 1440 -h, --help display this help and exit 1441 --help=short display options specific to this package 1442 --help=recursive display the short help of all the included packages 1443 -V, --version display version information and exit 1444 -q, --quiet, --silent do not print \`checking...' messages 1445 --cache-file=FILE cache test results in FILE [disabled] 1446 -C, --config-cache alias for \`--cache-file=config.cache' 1447 -n, --no-create do not create output files 1448 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1449 1450Installation directories: 1451 --prefix=PREFIX install architecture-independent files in PREFIX 1452 [$ac_default_prefix] 1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1454 [PREFIX] 1455 1456By default, \`make install' will install all the files in 1457\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1458an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1459for instance \`--prefix=\$HOME'. 1460 1461For better control, use the options below. 1462 1463Fine tuning of the installation directories: 1464 --bindir=DIR user executables [EPREFIX/bin] 1465 --sbindir=DIR system admin executables [EPREFIX/sbin] 1466 --libexecdir=DIR program executables [EPREFIX/libexec] 1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1470 --libdir=DIR object code libraries [EPREFIX/lib] 1471 --includedir=DIR C header files [PREFIX/include] 1472 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1475 --infodir=DIR info documentation [DATAROOTDIR/info] 1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1477 --mandir=DIR man documentation [DATAROOTDIR/man] 1478 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1479 --htmldir=DIR html documentation [DOCDIR] 1480 --dvidir=DIR dvi documentation [DOCDIR] 1481 --pdfdir=DIR pdf documentation [DOCDIR] 1482 --psdir=DIR ps documentation [DOCDIR] 1483_ACEOF 1484 1485 cat <<\_ACEOF 1486 1487Program names: 1488 --program-prefix=PREFIX prepend PREFIX to installed program names 1489 --program-suffix=SUFFIX append SUFFIX to installed program names 1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1491 1492System types: 1493 --build=BUILD configure for building on BUILD [guessed] 1494 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1495_ACEOF 1496fi 1497 1498if test -n "$ac_init_help"; then 1499 case $ac_init_help in 1500 short | recursive ) echo "Configuration of sqlite 3.6.22:";; 1501 esac 1502 cat <<\_ACEOF 1503 1504Optional Features: 1505 --disable-option-checking ignore unrecognized --enable/--with options 1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1508 --disable-largefile omit support for large files 1509 --disable-dependency-tracking speeds up one-time build 1510 --enable-dependency-tracking do not reject slow dependency extractors 1511 --enable-shared[=PKGS] build shared libraries [default=yes] 1512 --enable-static[=PKGS] build static libraries [default=yes] 1513 --enable-fast-install[=PKGS] 1514 optimize for fast installation [default=yes] 1515 --disable-libtool-lock avoid locking (might break parallel builds) 1516 --enable-readline use readline in shell tool (yes, no) [default=yes] 1517 --enable-threadsafe build a thread-safe library [default=yes] 1518 --enable-dynamic-extensions 1519 support loadable extensions [default=yes] 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1525 --with-pic try to use only PIC/non-PIC objects [default=use 1526 both] 1527 --with-tags[=TAGS] include additional configurations [automatic] 1528 1529Some influential environment variables: 1530 CC C compiler command 1531 CFLAGS C compiler flags 1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1533 nonstandard directory <lib dir> 1534 LIBS libraries to pass to the linker, e.g. -l<library> 1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1536 you have headers in a nonstandard directory <include dir> 1537 CPP C preprocessor 1538 CXX C++ compiler command 1539 CXXFLAGS C++ compiler flags 1540 CXXCPP C++ preprocessor 1541 F77 Fortran 77 compiler command 1542 FFLAGS Fortran 77 compiler flags 1543 1544Use these variables to override the choices made by `configure' or to help 1545it to find libraries and programs with nonstandard names/locations. 1546 1547Report bugs to <http://www.sqlite.org>. 1548_ACEOF 1549ac_status=$? 1550fi 1551 1552if test "$ac_init_help" = "recursive"; then 1553 # If there are subdirs, report their specific --help. 1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1555 test -d "$ac_dir" || 1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1557 continue 1558 ac_builddir=. 1559 1560case "$ac_dir" in 1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1562*) 1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1564 # A ".." for each directory in $ac_dir_suffix. 1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1566 case $ac_top_builddir_sub in 1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1569 esac ;; 1570esac 1571ac_abs_top_builddir=$ac_pwd 1572ac_abs_builddir=$ac_pwd$ac_dir_suffix 1573# for backward compatibility: 1574ac_top_builddir=$ac_top_build_prefix 1575 1576case $srcdir in 1577 .) # We are building in place. 1578 ac_srcdir=. 1579 ac_top_srcdir=$ac_top_builddir_sub 1580 ac_abs_top_srcdir=$ac_pwd ;; 1581 [\\/]* | ?:[\\/]* ) # Absolute name. 1582 ac_srcdir=$srcdir$ac_dir_suffix; 1583 ac_top_srcdir=$srcdir 1584 ac_abs_top_srcdir=$srcdir ;; 1585 *) # Relative name. 1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1587 ac_top_srcdir=$ac_top_build_prefix$srcdir 1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1589esac 1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1591 1592 cd "$ac_dir" || { ac_status=$?; continue; } 1593 # Check for guested configure. 1594 if test -f "$ac_srcdir/configure.gnu"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1597 elif test -f "$ac_srcdir/configure"; then 1598 echo && 1599 $SHELL "$ac_srcdir/configure" --help=recursive 1600 else 1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1602 fi || ac_status=$? 1603 cd "$ac_pwd" || { ac_status=$?; break; } 1604 done 1605fi 1606 1607test -n "$ac_init_help" && exit $ac_status 1608if $ac_init_version; then 1609 cat <<\_ACEOF 1610sqlite configure 3.6.22 1611generated by GNU Autoconf 2.65 1612 1613Copyright (C) 2009 Free Software Foundation, Inc. 1614This configure script is free software; the Free Software Foundation 1615gives unlimited permission to copy, distribute and modify it. 1616_ACEOF 1617 exit 1618fi 1619 1620## ------------------------ ## 1621## Autoconf initialization. ## 1622## ------------------------ ## 1623 1624# ac_fn_c_try_compile LINENO 1625# -------------------------- 1626# Try to compile conftest.$ac_ext, and return whether this succeeded. 1627ac_fn_c_try_compile () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 rm -f conftest.$ac_objext 1631 if { { ac_try="$ac_compile" 1632case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635esac 1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637$as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_compile") 2>conftest.err 1639 ac_status=$? 1640 if test -s conftest.err; then 1641 grep -v '^ *+' conftest.err >conftest.er1 1642 cat conftest.er1 >&5 1643 mv -f conftest.er1 conftest.err 1644 fi 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { 1647 test -z "$ac_c_werror_flag" || 1648 test ! -s conftest.err 1649 } && test -s conftest.$ac_objext; then : 1650 ac_retval=0 1651else 1652 $as_echo "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 1656fi 1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1658 as_fn_set_status $ac_retval 1659 1660} # ac_fn_c_try_compile 1661 1662# ac_fn_c_try_link LINENO 1663# ----------------------- 1664# Try to link conftest.$ac_ext, and return whether this succeeded. 1665ac_fn_c_try_link () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 rm -f conftest.$ac_objext conftest$ac_exeext 1669 if { { ac_try="$ac_link" 1670case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673esac 1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675$as_echo "$ac_try_echo"; } >&5 1676 (eval "$ac_link") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { 1685 test -z "$ac_c_werror_flag" || 1686 test ! -s conftest.err 1687 } && test -s conftest$ac_exeext && { 1688 test "$cross_compiling" = yes || 1689 $as_test_x conftest$ac_exeext 1690 }; then : 1691 ac_retval=0 1692else 1693 $as_echo "$as_me: failed program was:" >&5 1694sed 's/^/| /' conftest.$ac_ext >&5 1695 1696 ac_retval=1 1697fi 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1700 # interfere with the next link command; also delete a directory that is 1701 # left behind by Apple's compiler. We do this before executing the actions. 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_link 1707 1708# ac_fn_c_try_cpp LINENO 1709# ---------------------- 1710# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_cpp () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if { { ac_try="$ac_cpp conftest.$ac_ext" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1722 ac_status=$? 1723 if test -s conftest.err; then 1724 grep -v '^ *+' conftest.err >conftest.er1 1725 cat conftest.er1 >&5 1726 mv -f conftest.er1 conftest.err 1727 fi 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } >/dev/null && { 1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1731 test ! -s conftest.err 1732 }; then : 1733 ac_retval=0 1734else 1735 $as_echo "$as_me: failed program was:" >&5 1736sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=1 1739fi 1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1741 as_fn_set_status $ac_retval 1742 1743} # ac_fn_c_try_cpp 1744 1745# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1746# ------------------------------------------------------- 1747# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1748# the include files in INCLUDES and setting the cache variable VAR 1749# accordingly. 1750ac_fn_c_check_header_mongrel () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755$as_echo_n "checking for $2... " >&6; } 1756if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1757 $as_echo_n "(cached) " >&6 1758fi 1759eval ac_res=\$$3 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1761$as_echo "$ac_res" >&6; } 1762else 1763 # Is the header compilable? 1764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1765$as_echo_n "checking $2 usability... " >&6; } 1766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768$4 1769#include <$2> 1770_ACEOF 1771if ac_fn_c_try_compile "$LINENO"; then : 1772 ac_header_compiler=yes 1773else 1774 ac_header_compiler=no 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1778$as_echo "$ac_header_compiler" >&6; } 1779 1780# Is the header present? 1781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1782$as_echo_n "checking $2 presence... " >&6; } 1783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1784/* end confdefs.h. */ 1785#include <$2> 1786_ACEOF 1787if ac_fn_c_try_cpp "$LINENO"; then : 1788 ac_header_preproc=yes 1789else 1790 ac_header_preproc=no 1791fi 1792rm -f conftest.err conftest.$ac_ext 1793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1794$as_echo "$ac_header_preproc" >&6; } 1795 1796# So? What about this header? 1797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1798 yes:no: ) 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1800$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1802$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1803 ;; 1804 no:yes:* ) 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1806$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1808$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1810$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1812$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1814$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1815( cat <<\_ASBOX 1816## ------------------------------------ ## 1817## Report this to http://www.sqlite.org ## 1818## ------------------------------------ ## 1819_ASBOX 1820 ) | sed "s/^/$as_me: WARNING: /" >&2 1821 ;; 1822esac 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1824$as_echo_n "checking for $2... " >&6; } 1825if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1826 $as_echo_n "(cached) " >&6 1827else 1828 eval "$3=\$ac_header_compiler" 1829fi 1830eval ac_res=\$$3 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1832$as_echo "$ac_res" >&6; } 1833fi 1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1835 1836} # ac_fn_c_check_header_mongrel 1837 1838# ac_fn_c_try_run LINENO 1839# ---------------------- 1840# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1841# that executables *can* be run. 1842ac_fn_c_try_run () 1843{ 1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1845 if { { ac_try="$ac_link" 1846case "(($ac_try" in 1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1848 *) ac_try_echo=$ac_try;; 1849esac 1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1851$as_echo "$ac_try_echo"; } >&5 1852 (eval "$ac_link") 2>&5 1853 ac_status=$? 1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1855 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1856 { { case "(($ac_try" in 1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1858 *) ac_try_echo=$ac_try;; 1859esac 1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1861$as_echo "$ac_try_echo"; } >&5 1862 (eval "$ac_try") 2>&5 1863 ac_status=$? 1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1865 test $ac_status = 0; }; }; then : 1866 ac_retval=0 1867else 1868 $as_echo "$as_me: program exited with status $ac_status" >&5 1869 $as_echo "$as_me: failed program was:" >&5 1870sed 's/^/| /' conftest.$ac_ext >&5 1871 1872 ac_retval=$ac_status 1873fi 1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1876 as_fn_set_status $ac_retval 1877 1878} # ac_fn_c_try_run 1879 1880# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1881# ------------------------------------------------------- 1882# Tests whether HEADER exists and can be compiled using the include files in 1883# INCLUDES, setting the cache variable VAR accordingly. 1884ac_fn_c_check_header_compile () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1888$as_echo_n "checking for $2... " >&6; } 1889if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1890 $as_echo_n "(cached) " >&6 1891else 1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1893/* end confdefs.h. */ 1894$4 1895#include <$2> 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO"; then : 1898 eval "$3=yes" 1899else 1900 eval "$3=no" 1901fi 1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1903fi 1904eval ac_res=\$$3 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1906$as_echo "$ac_res" >&6; } 1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1908 1909} # ac_fn_c_check_header_compile 1910 1911# ac_fn_c_check_func LINENO FUNC VAR 1912# ---------------------------------- 1913# Tests whether FUNC exists, setting the cache variable VAR accordingly 1914ac_fn_c_check_func () 1915{ 1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1918$as_echo_n "checking for $2... " >&6; } 1919if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1920 $as_echo_n "(cached) " >&6 1921else 1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1926#define $2 innocuous_$2 1927 1928/* System header to define __stub macros and hopefully few prototypes, 1929 which can conflict with char $2 (); below. 1930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1931 <limits.h> exists even on freestanding compilers. */ 1932 1933#ifdef __STDC__ 1934# include <limits.h> 1935#else 1936# include <assert.h> 1937#endif 1938 1939#undef $2 1940 1941/* Override any GCC internal prototype to avoid an error. 1942 Use char because int might match the return type of a GCC 1943 builtin and then its argument prototype would still apply. */ 1944#ifdef __cplusplus 1945extern "C" 1946#endif 1947char $2 (); 1948/* The GNU C library defines this for functions which it implements 1949 to always fail with ENOSYS. Some functions are actually named 1950 something starting with __ and the normal name is an alias. */ 1951#if defined __stub_$2 || defined __stub___$2 1952choke me 1953#endif 1954 1955int 1956main () 1957{ 1958return $2 (); 1959 ; 1960 return 0; 1961} 1962_ACEOF 1963if ac_fn_c_try_link "$LINENO"; then : 1964 eval "$3=yes" 1965else 1966 eval "$3=no" 1967fi 1968rm -f core conftest.err conftest.$ac_objext \ 1969 conftest$ac_exeext conftest.$ac_ext 1970fi 1971eval ac_res=\$$3 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1973$as_echo "$ac_res" >&6; } 1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1975 1976} # ac_fn_c_check_func 1977 1978# ac_fn_cxx_try_compile LINENO 1979# ---------------------------- 1980# Try to compile conftest.$ac_ext, and return whether this succeeded. 1981ac_fn_cxx_try_compile () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 rm -f conftest.$ac_objext 1985 if { { ac_try="$ac_compile" 1986case "(($ac_try" in 1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1988 *) ac_try_echo=$ac_try;; 1989esac 1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1991$as_echo "$ac_try_echo"; } >&5 1992 (eval "$ac_compile") 2>conftest.err 1993 ac_status=$? 1994 if test -s conftest.err; then 1995 grep -v '^ *+' conftest.err >conftest.er1 1996 cat conftest.er1 >&5 1997 mv -f conftest.er1 conftest.err 1998 fi 1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2000 test $ac_status = 0; } && { 2001 test -z "$ac_cxx_werror_flag" || 2002 test ! -s conftest.err 2003 } && test -s conftest.$ac_objext; then : 2004 ac_retval=0 2005else 2006 $as_echo "$as_me: failed program was:" >&5 2007sed 's/^/| /' conftest.$ac_ext >&5 2008 2009 ac_retval=1 2010fi 2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2012 as_fn_set_status $ac_retval 2013 2014} # ac_fn_cxx_try_compile 2015 2016# ac_fn_cxx_try_cpp LINENO 2017# ------------------------ 2018# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2019ac_fn_cxx_try_cpp () 2020{ 2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2022 if { { ac_try="$ac_cpp conftest.$ac_ext" 2023case "(($ac_try" in 2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2025 *) ac_try_echo=$ac_try;; 2026esac 2027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2028$as_echo "$ac_try_echo"; } >&5 2029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2030 ac_status=$? 2031 if test -s conftest.err; then 2032 grep -v '^ *+' conftest.err >conftest.er1 2033 cat conftest.er1 >&5 2034 mv -f conftest.er1 conftest.err 2035 fi 2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2037 test $ac_status = 0; } >/dev/null && { 2038 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2039 test ! -s conftest.err 2040 }; then : 2041 ac_retval=0 2042else 2043 $as_echo "$as_me: failed program was:" >&5 2044sed 's/^/| /' conftest.$ac_ext >&5 2045 2046 ac_retval=1 2047fi 2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2049 as_fn_set_status $ac_retval 2050 2051} # ac_fn_cxx_try_cpp 2052 2053# ac_fn_cxx_try_link LINENO 2054# ------------------------- 2055# Try to link conftest.$ac_ext, and return whether this succeeded. 2056ac_fn_cxx_try_link () 2057{ 2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2059 rm -f conftest.$ac_objext conftest$ac_exeext 2060 if { { ac_try="$ac_link" 2061case "(($ac_try" in 2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2063 *) ac_try_echo=$ac_try;; 2064esac 2065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2066$as_echo "$ac_try_echo"; } >&5 2067 (eval "$ac_link") 2>conftest.err 2068 ac_status=$? 2069 if test -s conftest.err; then 2070 grep -v '^ *+' conftest.err >conftest.er1 2071 cat conftest.er1 >&5 2072 mv -f conftest.er1 conftest.err 2073 fi 2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2075 test $ac_status = 0; } && { 2076 test -z "$ac_cxx_werror_flag" || 2077 test ! -s conftest.err 2078 } && test -s conftest$ac_exeext && { 2079 test "$cross_compiling" = yes || 2080 $as_test_x conftest$ac_exeext 2081 }; then : 2082 ac_retval=0 2083else 2084 $as_echo "$as_me: failed program was:" >&5 2085sed 's/^/| /' conftest.$ac_ext >&5 2086 2087 ac_retval=1 2088fi 2089 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2090 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2091 # interfere with the next link command; also delete a directory that is 2092 # left behind by Apple's compiler. We do this before executing the actions. 2093 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2094 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2095 as_fn_set_status $ac_retval 2096 2097} # ac_fn_cxx_try_link 2098 2099# ac_fn_f77_try_compile LINENO 2100# ---------------------------- 2101# Try to compile conftest.$ac_ext, and return whether this succeeded. 2102ac_fn_f77_try_compile () 2103{ 2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2105 rm -f conftest.$ac_objext 2106 if { { ac_try="$ac_compile" 2107case "(($ac_try" in 2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2109 *) ac_try_echo=$ac_try;; 2110esac 2111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2112$as_echo "$ac_try_echo"; } >&5 2113 (eval "$ac_compile") 2>conftest.err 2114 ac_status=$? 2115 if test -s conftest.err; then 2116 grep -v '^ *+' conftest.err >conftest.er1 2117 cat conftest.er1 >&5 2118 mv -f conftest.er1 conftest.err 2119 fi 2120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2121 test $ac_status = 0; } && { 2122 test -z "$ac_f77_werror_flag" || 2123 test ! -s conftest.err 2124 } && test -s conftest.$ac_objext; then : 2125 ac_retval=0 2126else 2127 $as_echo "$as_me: failed program was:" >&5 2128sed 's/^/| /' conftest.$ac_ext >&5 2129 2130 ac_retval=1 2131fi 2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2133 as_fn_set_status $ac_retval 2134 2135} # ac_fn_f77_try_compile 2136 2137# ac_fn_f77_try_link LINENO 2138# ------------------------- 2139# Try to link conftest.$ac_ext, and return whether this succeeded. 2140ac_fn_f77_try_link () 2141{ 2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2143 rm -f conftest.$ac_objext conftest$ac_exeext 2144 if { { ac_try="$ac_link" 2145case "(($ac_try" in 2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2147 *) ac_try_echo=$ac_try;; 2148esac 2149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2150$as_echo "$ac_try_echo"; } >&5 2151 (eval "$ac_link") 2>conftest.err 2152 ac_status=$? 2153 if test -s conftest.err; then 2154 grep -v '^ *+' conftest.err >conftest.er1 2155 cat conftest.er1 >&5 2156 mv -f conftest.er1 conftest.err 2157 fi 2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2159 test $ac_status = 0; } && { 2160 test -z "$ac_f77_werror_flag" || 2161 test ! -s conftest.err 2162 } && test -s conftest$ac_exeext && { 2163 test "$cross_compiling" = yes || 2164 $as_test_x conftest$ac_exeext 2165 }; then : 2166 ac_retval=0 2167else 2168 $as_echo "$as_me: failed program was:" >&5 2169sed 's/^/| /' conftest.$ac_ext >&5 2170 2171 ac_retval=1 2172fi 2173 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2174 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2175 # interfere with the next link command; also delete a directory that is 2176 # left behind by Apple's compiler. We do this before executing the actions. 2177 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2178 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2179 as_fn_set_status $ac_retval 2180 2181} # ac_fn_f77_try_link 2182cat >config.log <<_ACEOF 2183This file contains any messages produced by compilers while 2184running configure, to aid debugging if configure makes a mistake. 2185 2186It was created by sqlite $as_me 3.6.22, which was 2187generated by GNU Autoconf 2.65. Invocation command line was 2188 2189 $ $0 $@ 2190 2191_ACEOF 2192exec 5>>config.log 2193{ 2194cat <<_ASUNAME 2195## --------- ## 2196## Platform. ## 2197## --------- ## 2198 2199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2200uname -m = `(uname -m) 2>/dev/null || echo unknown` 2201uname -r = `(uname -r) 2>/dev/null || echo unknown` 2202uname -s = `(uname -s) 2>/dev/null || echo unknown` 2203uname -v = `(uname -v) 2>/dev/null || echo unknown` 2204 2205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2206/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2207 2208/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2209/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2211/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2212/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2213/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2214/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2215 2216_ASUNAME 2217 2218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2219for as_dir in $PATH 2220do 2221 IFS=$as_save_IFS 2222 test -z "$as_dir" && as_dir=. 2223 $as_echo "PATH: $as_dir" 2224 done 2225IFS=$as_save_IFS 2226 2227} >&5 2228 2229cat >&5 <<_ACEOF 2230 2231 2232## ----------- ## 2233## Core tests. ## 2234## ----------- ## 2235 2236_ACEOF 2237 2238 2239# Keep a trace of the command line. 2240# Strip out --no-create and --no-recursion so they do not pile up. 2241# Strip out --silent because we don't want to record it for future runs. 2242# Also quote any args containing shell meta-characters. 2243# Make two passes to allow for proper duplicate-argument suppression. 2244ac_configure_args= 2245ac_configure_args0= 2246ac_configure_args1= 2247ac_must_keep_next=false 2248for ac_pass in 1 2 2249do 2250 for ac_arg 2251 do 2252 case $ac_arg in 2253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2255 | -silent | --silent | --silen | --sile | --sil) 2256 continue ;; 2257 *\'*) 2258 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2259 esac 2260 case $ac_pass in 2261 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2262 2) 2263 as_fn_append ac_configure_args1 " '$ac_arg'" 2264 if test $ac_must_keep_next = true; then 2265 ac_must_keep_next=false # Got value, back to normal. 2266 else 2267 case $ac_arg in 2268 *=* | --config-cache | -C | -disable-* | --disable-* \ 2269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2271 | -with-* | --with-* | -without-* | --without-* | --x) 2272 case "$ac_configure_args0 " in 2273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2274 esac 2275 ;; 2276 -* ) ac_must_keep_next=true ;; 2277 esac 2278 fi 2279 as_fn_append ac_configure_args " '$ac_arg'" 2280 ;; 2281 esac 2282 done 2283done 2284{ ac_configure_args0=; unset ac_configure_args0;} 2285{ ac_configure_args1=; unset ac_configure_args1;} 2286 2287# When interrupted or exit'd, cleanup temporary files, and complete 2288# config.log. We remove comments because anyway the quotes in there 2289# would cause problems or look ugly. 2290# WARNING: Use '\'' to represent an apostrophe within the trap. 2291# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2292trap 'exit_status=$? 2293 # Save into config.log some information that might help in debugging. 2294 { 2295 echo 2296 2297 cat <<\_ASBOX 2298## ---------------- ## 2299## Cache variables. ## 2300## ---------------- ## 2301_ASBOX 2302 echo 2303 # The following way of writing the cache mishandles newlines in values, 2304( 2305 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2306 eval ac_val=\$$ac_var 2307 case $ac_val in #( 2308 *${as_nl}*) 2309 case $ac_var in #( 2310 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2311$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2312 esac 2313 case $ac_var in #( 2314 _ | IFS | as_nl) ;; #( 2315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2316 *) { eval $ac_var=; unset $ac_var;} ;; 2317 esac ;; 2318 esac 2319 done 2320 (set) 2>&1 | 2321 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2322 *${as_nl}ac_space=\ *) 2323 sed -n \ 2324 "s/'\''/'\''\\\\'\'''\''/g; 2325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2326 ;; #( 2327 *) 2328 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2329 ;; 2330 esac | 2331 sort 2332) 2333 echo 2334 2335 cat <<\_ASBOX 2336## ----------------- ## 2337## Output variables. ## 2338## ----------------- ## 2339_ASBOX 2340 echo 2341 for ac_var in $ac_subst_vars 2342 do 2343 eval ac_val=\$$ac_var 2344 case $ac_val in 2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2346 esac 2347 $as_echo "$ac_var='\''$ac_val'\''" 2348 done | sort 2349 echo 2350 2351 if test -n "$ac_subst_files"; then 2352 cat <<\_ASBOX 2353## ------------------- ## 2354## File substitutions. ## 2355## ------------------- ## 2356_ASBOX 2357 echo 2358 for ac_var in $ac_subst_files 2359 do 2360 eval ac_val=\$$ac_var 2361 case $ac_val in 2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2363 esac 2364 $as_echo "$ac_var='\''$ac_val'\''" 2365 done | sort 2366 echo 2367 fi 2368 2369 if test -s confdefs.h; then 2370 cat <<\_ASBOX 2371## ----------- ## 2372## confdefs.h. ## 2373## ----------- ## 2374_ASBOX 2375 echo 2376 cat confdefs.h 2377 echo 2378 fi 2379 test "$ac_signal" != 0 && 2380 $as_echo "$as_me: caught signal $ac_signal" 2381 $as_echo "$as_me: exit $exit_status" 2382 } >&5 2383 rm -f core *.core core.conftest.* && 2384 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2385 exit $exit_status 2386' 0 2387for ac_signal in 1 2 13 15; do 2388 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2389done 2390ac_signal=0 2391 2392# confdefs.h avoids OS command line length limits that DEFS can exceed. 2393rm -f -r conftest* confdefs.h 2394 2395$as_echo "/* confdefs.h */" > confdefs.h 2396 2397# Predefined preprocessor variables. 2398 2399cat >>confdefs.h <<_ACEOF 2400#define PACKAGE_NAME "$PACKAGE_NAME" 2401_ACEOF 2402 2403cat >>confdefs.h <<_ACEOF 2404#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2405_ACEOF 2406 2407cat >>confdefs.h <<_ACEOF 2408#define PACKAGE_VERSION "$PACKAGE_VERSION" 2409_ACEOF 2410 2411cat >>confdefs.h <<_ACEOF 2412#define PACKAGE_STRING "$PACKAGE_STRING" 2413_ACEOF 2414 2415cat >>confdefs.h <<_ACEOF 2416#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2417_ACEOF 2418 2419cat >>confdefs.h <<_ACEOF 2420#define PACKAGE_URL "$PACKAGE_URL" 2421_ACEOF 2422 2423 2424# Let the site file select an alternate cache file if it wants to. 2425# Prefer an explicitly selected file to automatically selected ones. 2426ac_site_file1=NONE 2427ac_site_file2=NONE 2428if test -n "$CONFIG_SITE"; then 2429 ac_site_file1=$CONFIG_SITE 2430elif test "x$prefix" != xNONE; then 2431 ac_site_file1=$prefix/share/config.site 2432 ac_site_file2=$prefix/etc/config.site 2433else 2434 ac_site_file1=$ac_default_prefix/share/config.site 2435 ac_site_file2=$ac_default_prefix/etc/config.site 2436fi 2437for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2438do 2439 test "x$ac_site_file" = xNONE && continue 2440 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2442$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2443 sed 's/^/| /' "$ac_site_file" >&5 2444 . "$ac_site_file" 2445 fi 2446done 2447 2448if test -r "$cache_file"; then 2449 # Some versions of bash will fail to source /dev/null (special files 2450 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2451 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2453$as_echo "$as_me: loading cache $cache_file" >&6;} 2454 case $cache_file in 2455 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2456 *) . "./$cache_file";; 2457 esac 2458 fi 2459else 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2461$as_echo "$as_me: creating cache $cache_file" >&6;} 2462 >$cache_file 2463fi 2464 2465# Check that the precious variables saved in the cache have kept the same 2466# value. 2467ac_cache_corrupted=false 2468for ac_var in $ac_precious_vars; do 2469 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2470 eval ac_new_set=\$ac_env_${ac_var}_set 2471 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2472 eval ac_new_val=\$ac_env_${ac_var}_value 2473 case $ac_old_set,$ac_new_set in 2474 set,) 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2476$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2477 ac_cache_corrupted=: ;; 2478 ,set) 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2480$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2481 ac_cache_corrupted=: ;; 2482 ,);; 2483 *) 2484 if test "x$ac_old_val" != "x$ac_new_val"; then 2485 # differences in whitespace do not lead to failure. 2486 ac_old_val_w=`echo x $ac_old_val` 2487 ac_new_val_w=`echo x $ac_new_val` 2488 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2490$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2491 ac_cache_corrupted=: 2492 else 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2494$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2495 eval $ac_var=\$ac_old_val 2496 fi 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2498$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2500$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2501 fi;; 2502 esac 2503 # Pass precious variables to config.status. 2504 if test "$ac_new_set" = set; then 2505 case $ac_new_val in 2506 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2507 *) ac_arg=$ac_var=$ac_new_val ;; 2508 esac 2509 case " $ac_configure_args " in 2510 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2511 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2512 esac 2513 fi 2514done 2515if $ac_cache_corrupted; then 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2519$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2520 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2521fi 2522## -------------------- ## 2523## Main body of script. ## 2524## -------------------- ## 2525 2526ac_ext=c 2527ac_cpp='$CPP $CPPFLAGS' 2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2530ac_compiler_gnu=$ac_cv_c_compiler_gnu 2531 2532 2533 2534 2535# Use automake. 2536am__api_version="1.9" 2537ac_aux_dir= 2538for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2539 for ac_t in install-sh install.sh shtool; do 2540 if test -f "$ac_dir/$ac_t"; then 2541 ac_aux_dir=$ac_dir 2542 ac_install_sh="$ac_aux_dir/$ac_t -c" 2543 break 2 2544 fi 2545 done 2546done 2547if test -z "$ac_aux_dir"; then 2548 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2549fi 2550 2551# These three variables are undocumented and unsupported, 2552# and are intended to be withdrawn in a future Autoconf release. 2553# They can cause serious problems if a builder's source tree is in a directory 2554# whose full name contains unusual characters. 2555ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2556ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2557ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2558 2559 2560# Find a good install program. We prefer a C program (faster), 2561# so one script is as good as another. But avoid the broken or 2562# incompatible versions: 2563# SysV /etc/install, /usr/sbin/install 2564# SunOS /usr/etc/install 2565# IRIX /sbin/install 2566# AIX /bin/install 2567# AmigaOS /C/install, which installs bootblocks on floppy discs 2568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2569# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2571# OS/2's system install, which has a completely different semantic 2572# ./install, which can be erroneously created by make from ./install.sh. 2573# Reject install programs that cannot install multiple files. 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2575$as_echo_n "checking for a BSD-compatible install... " >&6; } 2576if test -z "$INSTALL"; then 2577if test "${ac_cv_path_install+set}" = set; then : 2578 $as_echo_n "(cached) " >&6 2579else 2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581for as_dir in $PATH 2582do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 # Account for people who put trailing slashes in PATH elements. 2586case $as_dir/ in #(( 2587 ./ | .// | /[cC]/* | \ 2588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2589 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2590 /usr/ucb/* ) ;; 2591 *) 2592 # OSF1 and SCO ODT 3.0 have their own names for install. 2593 # Don't use installbsd from OSF since it installs stuff as root 2594 # by default. 2595 for ac_prog in ginstall scoinst install; do 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2598 if test $ac_prog = install && 2599 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2600 # AIX install. It has an incompatible calling convention. 2601 : 2602 elif test $ac_prog = install && 2603 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2604 # program-specific install script used by HP pwplus--don't use. 2605 : 2606 else 2607 rm -rf conftest.one conftest.two conftest.dir 2608 echo one > conftest.one 2609 echo two > conftest.two 2610 mkdir conftest.dir 2611 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2612 test -s conftest.one && test -s conftest.two && 2613 test -s conftest.dir/conftest.one && 2614 test -s conftest.dir/conftest.two 2615 then 2616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2617 break 3 2618 fi 2619 fi 2620 fi 2621 done 2622 done 2623 ;; 2624esac 2625 2626 done 2627IFS=$as_save_IFS 2628 2629rm -rf conftest.one conftest.two conftest.dir 2630 2631fi 2632 if test "${ac_cv_path_install+set}" = set; then 2633 INSTALL=$ac_cv_path_install 2634 else 2635 # As a last resort, use the slow shell script. Don't cache a 2636 # value for INSTALL within a source directory, because that will 2637 # break other packages using the cache if that directory is 2638 # removed, or if the value is a relative name. 2639 INSTALL=$ac_install_sh 2640 fi 2641fi 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2643$as_echo "$INSTALL" >&6; } 2644 2645# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2646# It thinks the first close brace ends the variable substitution. 2647test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2648 2649test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2650 2651test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2652 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2654$as_echo_n "checking whether build environment is sane... " >&6; } 2655# Just in case 2656sleep 1 2657echo timestamp > conftest.file 2658# Do `set' in a subshell so we don't clobber the current shell's 2659# arguments. Must try -L first in case configure is actually a 2660# symlink; some systems play weird games with the mod time of symlinks 2661# (eg FreeBSD returns the mod time of the symlink's containing 2662# directory). 2663if ( 2664 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2665 if test "$*" = "X"; then 2666 # -L didn't work. 2667 set X `ls -t $srcdir/configure conftest.file` 2668 fi 2669 rm -f conftest.file 2670 if test "$*" != "X $srcdir/configure conftest.file" \ 2671 && test "$*" != "X conftest.file $srcdir/configure"; then 2672 2673 # If neither matched, then we have a broken ls. This can happen 2674 # if, for instance, CONFIG_SHELL is bash and it inherits a 2675 # broken ls alias from the environment. This has actually 2676 # happened. Such a system could not be considered "sane". 2677 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2678alias in your environment" "$LINENO" 5 2679 fi 2680 2681 test "$2" = conftest.file 2682 ) 2683then 2684 # Ok. 2685 : 2686else 2687 as_fn_error "newly created file is older than distributed files! 2688Check your system clock" "$LINENO" 5 2689fi 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2691$as_echo "yes" >&6; } 2692test "$program_prefix" != NONE && 2693 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2694# Use a double $ so make ignores it. 2695test "$program_suffix" != NONE && 2696 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2697# Double any \ or $. 2698# By default was `s,x,x', remove it if useless. 2699ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2700program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2701 2702# expand $ac_aux_dir to an absolute path 2703am_aux_dir=`cd $ac_aux_dir && pwd` 2704 2705test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2706# Use eval to expand $SHELL 2707if eval "$MISSING --run true"; then 2708 am_missing_run="$MISSING --run " 2709else 2710 am_missing_run= 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2712$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2713fi 2714 2715if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2716 # We used to keeping the `.' as first argument, in order to 2717 # allow $(mkdir_p) to be used without argument. As in 2718 # $(mkdir_p) $(somedir) 2719 # where $(somedir) is conditionally defined. However this is wrong 2720 # for two reasons: 2721 # 1. if the package is installed by a user who cannot write `.' 2722 # make install will fail, 2723 # 2. the above comment should most certainly read 2724 # $(mkdir_p) $(DESTDIR)$(somedir) 2725 # so it does not work when $(somedir) is undefined and 2726 # $(DESTDIR) is not. 2727 # To support the latter case, we have to write 2728 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2729 # so the `.' trick is pointless. 2730 mkdir_p='mkdir -p --' 2731else 2732 # On NextStep and OpenStep, the `mkdir' command does not 2733 # recognize any option. It will interpret all options as 2734 # directories to create, and then abort because `.' already 2735 # exists. 2736 for d in ./-p ./--version; 2737 do 2738 test -d $d && rmdir $d 2739 done 2740 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2741 if test -f "$ac_aux_dir/mkinstalldirs"; then 2742 mkdir_p='$(mkinstalldirs)' 2743 else 2744 mkdir_p='$(install_sh) -d' 2745 fi 2746fi 2747 2748for ac_prog in gawk mawk nawk awk 2749do 2750 # Extract the first word of "$ac_prog", so it can be a program name with args. 2751set dummy $ac_prog; ac_word=$2 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2753$as_echo_n "checking for $ac_word... " >&6; } 2754if test "${ac_cv_prog_AWK+set}" = set; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 if test -n "$AWK"; then 2758 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2759else 2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2761for as_dir in $PATH 2762do 2763 IFS=$as_save_IFS 2764 test -z "$as_dir" && as_dir=. 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2767 ac_cv_prog_AWK="$ac_prog" 2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2769 break 2 2770 fi 2771done 2772 done 2773IFS=$as_save_IFS 2774 2775fi 2776fi 2777AWK=$ac_cv_prog_AWK 2778if test -n "$AWK"; then 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2780$as_echo "$AWK" >&6; } 2781else 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2783$as_echo "no" >&6; } 2784fi 2785 2786 2787 test -n "$AWK" && break 2788done 2789 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2791$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2792set x ${MAKE-make} 2793ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2794if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 cat >conftest.make <<\_ACEOF 2798SHELL = /bin/sh 2799all: 2800 @echo '@@@%%%=$(MAKE)=@@@%%%' 2801_ACEOF 2802# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2803case `${MAKE-make} -f conftest.make 2>/dev/null` in 2804 *@@@%%%=?*=@@@%%%*) 2805 eval ac_cv_prog_make_${ac_make}_set=yes;; 2806 *) 2807 eval ac_cv_prog_make_${ac_make}_set=no;; 2808esac 2809rm -f conftest.make 2810fi 2811if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2813$as_echo "yes" >&6; } 2814 SET_MAKE= 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817$as_echo "no" >&6; } 2818 SET_MAKE="MAKE=${MAKE-make}" 2819fi 2820 2821rm -rf .tst 2>/dev/null 2822mkdir .tst 2>/dev/null 2823if test -d .tst; then 2824 am__leading_dot=. 2825else 2826 am__leading_dot=_ 2827fi 2828rmdir .tst 2>/dev/null 2829 2830# test to see if srcdir already configured 2831if test "`cd $srcdir && pwd`" != "`pwd`" && 2832 test -f $srcdir/config.status; then 2833 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2834fi 2835 2836# test whether we have cygpath 2837if test -z "$CYGPATH_W"; then 2838 if (cygpath --version) >/dev/null 2>/dev/null; then 2839 CYGPATH_W='cygpath -w' 2840 else 2841 CYGPATH_W=echo 2842 fi 2843fi 2844 2845 2846# Define the identity of the package. 2847 PACKAGE='sqlite' 2848 VERSION='3.6.22' 2849 2850 2851cat >>confdefs.h <<_ACEOF 2852#define PACKAGE "$PACKAGE" 2853_ACEOF 2854 2855 2856cat >>confdefs.h <<_ACEOF 2857#define VERSION "$VERSION" 2858_ACEOF 2859 2860# Some tools Automake needs. 2861 2862ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2863 2864 2865AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2866 2867 2868AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2869 2870 2871AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2872 2873 2874MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2875 2876install_sh=${install_sh-"$am_aux_dir/install-sh"} 2877 2878# Installed binaries are usually stripped using `strip' when the user 2879# run `make install-strip'. However `strip' might not be the right 2880# tool to use in cross-compilation environments, therefore Automake 2881# will honor the `STRIP' environment variable to overrule this program. 2882if test "$cross_compiling" != no; then 2883 if test -n "$ac_tool_prefix"; then 2884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2885set dummy ${ac_tool_prefix}strip; ac_word=$2 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2887$as_echo_n "checking for $ac_word... " >&6; } 2888if test "${ac_cv_prog_STRIP+set}" = set; then : 2889 $as_echo_n "(cached) " >&6 2890else 2891 if test -n "$STRIP"; then 2892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2893else 2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2895for as_dir in $PATH 2896do 2897 IFS=$as_save_IFS 2898 test -z "$as_dir" && as_dir=. 2899 for ac_exec_ext in '' $ac_executable_extensions; do 2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2901 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2903 break 2 2904 fi 2905done 2906 done 2907IFS=$as_save_IFS 2908 2909fi 2910fi 2911STRIP=$ac_cv_prog_STRIP 2912if test -n "$STRIP"; then 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2914$as_echo "$STRIP" >&6; } 2915else 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917$as_echo "no" >&6; } 2918fi 2919 2920 2921fi 2922if test -z "$ac_cv_prog_STRIP"; then 2923 ac_ct_STRIP=$STRIP 2924 # Extract the first word of "strip", so it can be a program name with args. 2925set dummy strip; ac_word=$2 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2927$as_echo_n "checking for $ac_word... " >&6; } 2928if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2929 $as_echo_n "(cached) " >&6 2930else 2931 if test -n "$ac_ct_STRIP"; then 2932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2933else 2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2935for as_dir in $PATH 2936do 2937 IFS=$as_save_IFS 2938 test -z "$as_dir" && as_dir=. 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2941 ac_cv_prog_ac_ct_STRIP="strip" 2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2952if test -n "$ac_ct_STRIP"; then 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2954$as_echo "$ac_ct_STRIP" >&6; } 2955else 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957$as_echo "no" >&6; } 2958fi 2959 2960 if test "x$ac_ct_STRIP" = x; then 2961 STRIP=":" 2962 else 2963 case $cross_compiling:$ac_tool_warned in 2964yes:) 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2967ac_tool_warned=yes ;; 2968esac 2969 STRIP=$ac_ct_STRIP 2970 fi 2971else 2972 STRIP="$ac_cv_prog_STRIP" 2973fi 2974 2975fi 2976INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2977 2978# We need awk for the "check" target. The system "awk" is bad on 2979# some platforms. 2980# Always define AMTAR for backward compatibility. 2981 2982AMTAR=${AMTAR-"${am_missing_run}tar"} 2983 2984am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2985 2986 2987 2988 2989 2990 2991DEPDIR="${am__leading_dot}deps" 2992 2993ac_config_commands="$ac_config_commands depfiles" 2994 2995 2996am_make=${MAKE-make} 2997cat > confinc << 'END' 2998am__doit: 2999 @echo done 3000.PHONY: am__doit 3001END 3002# If we don't find an include directive, just comment out the code. 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3004$as_echo_n "checking for style of include used by $am_make... " >&6; } 3005am__include="#" 3006am__quote= 3007_am_result=none 3008# First try GNU make style include. 3009echo "include confinc" > confmf 3010# We grep out `Entering directory' and `Leaving directory' 3011# messages which can occur if `w' ends up in MAKEFLAGS. 3012# In particular we don't look at `^make:' because GNU make might 3013# be invoked under some other name (usually "gmake"), in which 3014# case it prints its new name instead of `make'. 3015if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3016 am__include=include 3017 am__quote= 3018 _am_result=GNU 3019fi 3020# Now try BSD make style include. 3021if test "$am__include" = "#"; then 3022 echo '.include "confinc"' > confmf 3023 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3024 am__include=.include 3025 am__quote="\"" 3026 _am_result=BSD 3027 fi 3028fi 3029 3030 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3032$as_echo "$_am_result" >&6; } 3033rm -f confinc confmf 3034 3035# Check whether --enable-dependency-tracking was given. 3036if test "${enable_dependency_tracking+set}" = set; then : 3037 enableval=$enable_dependency_tracking; 3038fi 3039 3040if test "x$enable_dependency_tracking" != xno; then 3041 am_depcomp="$ac_aux_dir/depcomp" 3042 AMDEPBACKSLASH='\' 3043fi 3044 3045 3046if test "x$enable_dependency_tracking" != xno; then 3047 AMDEP_TRUE= 3048 AMDEP_FALSE='#' 3049else 3050 AMDEP_TRUE='#' 3051 AMDEP_FALSE= 3052fi 3053 3054 3055 3056ac_ext=c 3057ac_cpp='$CPP $CPPFLAGS' 3058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3060ac_compiler_gnu=$ac_cv_c_compiler_gnu 3061if test -n "$ac_tool_prefix"; then 3062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3063set dummy ${ac_tool_prefix}gcc; ac_word=$2 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3065$as_echo_n "checking for $ac_word... " >&6; } 3066if test "${ac_cv_prog_CC+set}" = set; then : 3067 $as_echo_n "(cached) " >&6 3068else 3069 if test -n "$CC"; then 3070 ac_cv_prog_CC="$CC" # Let the user override the test. 3071else 3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3073for as_dir in $PATH 3074do 3075 IFS=$as_save_IFS 3076 test -z "$as_dir" && as_dir=. 3077 for ac_exec_ext in '' $ac_executable_extensions; do 3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3079 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3081 break 2 3082 fi 3083done 3084 done 3085IFS=$as_save_IFS 3086 3087fi 3088fi 3089CC=$ac_cv_prog_CC 3090if test -n "$CC"; then 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3092$as_echo "$CC" >&6; } 3093else 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3095$as_echo "no" >&6; } 3096fi 3097 3098 3099fi 3100if test -z "$ac_cv_prog_CC"; then 3101 ac_ct_CC=$CC 3102 # Extract the first word of "gcc", so it can be a program name with args. 3103set dummy gcc; ac_word=$2 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3105$as_echo_n "checking for $ac_word... " >&6; } 3106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3107 $as_echo_n "(cached) " >&6 3108else 3109 if test -n "$ac_ct_CC"; then 3110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3111else 3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3113for as_dir in $PATH 3114do 3115 IFS=$as_save_IFS 3116 test -z "$as_dir" && as_dir=. 3117 for ac_exec_ext in '' $ac_executable_extensions; do 3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3119 ac_cv_prog_ac_ct_CC="gcc" 3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3121 break 2 3122 fi 3123done 3124 done 3125IFS=$as_save_IFS 3126 3127fi 3128fi 3129ac_ct_CC=$ac_cv_prog_ac_ct_CC 3130if test -n "$ac_ct_CC"; then 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3132$as_echo "$ac_ct_CC" >&6; } 3133else 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135$as_echo "no" >&6; } 3136fi 3137 3138 if test "x$ac_ct_CC" = x; then 3139 CC="" 3140 else 3141 case $cross_compiling:$ac_tool_warned in 3142yes:) 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3145ac_tool_warned=yes ;; 3146esac 3147 CC=$ac_ct_CC 3148 fi 3149else 3150 CC="$ac_cv_prog_CC" 3151fi 3152 3153if test -z "$CC"; then 3154 if test -n "$ac_tool_prefix"; then 3155 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3156set dummy ${ac_tool_prefix}cc; ac_word=$2 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3158$as_echo_n "checking for $ac_word... " >&6; } 3159if test "${ac_cv_prog_CC+set}" = set; then : 3160 $as_echo_n "(cached) " >&6 3161else 3162 if test -n "$CC"; then 3163 ac_cv_prog_CC="$CC" # Let the user override the test. 3164else 3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3166for as_dir in $PATH 3167do 3168 IFS=$as_save_IFS 3169 test -z "$as_dir" && as_dir=. 3170 for ac_exec_ext in '' $ac_executable_extensions; do 3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3172 ac_cv_prog_CC="${ac_tool_prefix}cc" 3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3174 break 2 3175 fi 3176done 3177 done 3178IFS=$as_save_IFS 3179 3180fi 3181fi 3182CC=$ac_cv_prog_CC 3183if test -n "$CC"; then 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3185$as_echo "$CC" >&6; } 3186else 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3188$as_echo "no" >&6; } 3189fi 3190 3191 3192 fi 3193fi 3194if test -z "$CC"; then 3195 # Extract the first word of "cc", so it can be a program name with args. 3196set dummy cc; ac_word=$2 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3198$as_echo_n "checking for $ac_word... " >&6; } 3199if test "${ac_cv_prog_CC+set}" = set; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 if test -n "$CC"; then 3203 ac_cv_prog_CC="$CC" # Let the user override the test. 3204else 3205 ac_prog_rejected=no 3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3207for as_dir in $PATH 3208do 3209 IFS=$as_save_IFS 3210 test -z "$as_dir" && as_dir=. 3211 for ac_exec_ext in '' $ac_executable_extensions; do 3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3213 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3214 ac_prog_rejected=yes 3215 continue 3216 fi 3217 ac_cv_prog_CC="cc" 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225if test $ac_prog_rejected = yes; then 3226 # We found a bogon in the path, so make sure we never use it. 3227 set dummy $ac_cv_prog_CC 3228 shift 3229 if test $# != 0; then 3230 # We chose a different compiler from the bogus one. 3231 # However, it has the same basename, so the bogon will be chosen 3232 # first if we set CC to just the basename; use the full file name. 3233 shift 3234 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3235 fi 3236fi 3237fi 3238fi 3239CC=$ac_cv_prog_CC 3240if test -n "$CC"; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3242$as_echo "$CC" >&6; } 3243else 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3245$as_echo "no" >&6; } 3246fi 3247 3248 3249fi 3250if test -z "$CC"; then 3251 if test -n "$ac_tool_prefix"; then 3252 for ac_prog in cl.exe 3253 do 3254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3255set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257$as_echo_n "checking for $ac_word... " >&6; } 3258if test "${ac_cv_prog_CC+set}" = set; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$CC"; then 3262 ac_cv_prog_CC="$CC" # Let the user override the test. 3263else 3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3265for as_dir in $PATH 3266do 3267 IFS=$as_save_IFS 3268 test -z "$as_dir" && as_dir=. 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3271 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281CC=$ac_cv_prog_CC 3282if test -n "$CC"; then 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3284$as_echo "$CC" >&6; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 3291 test -n "$CC" && break 3292 done 3293fi 3294if test -z "$CC"; then 3295 ac_ct_CC=$CC 3296 for ac_prog in cl.exe 3297do 3298 # Extract the first word of "$ac_prog", so it can be a program name with args. 3299set dummy $ac_prog; ac_word=$2 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3301$as_echo_n "checking for $ac_word... " >&6; } 3302if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3303 $as_echo_n "(cached) " >&6 3304else 3305 if test -n "$ac_ct_CC"; then 3306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3307else 3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3309for as_dir in $PATH 3310do 3311 IFS=$as_save_IFS 3312 test -z "$as_dir" && as_dir=. 3313 for ac_exec_ext in '' $ac_executable_extensions; do 3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3315 ac_cv_prog_ac_ct_CC="$ac_prog" 3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3317 break 2 3318 fi 3319done 3320 done 3321IFS=$as_save_IFS 3322 3323fi 3324fi 3325ac_ct_CC=$ac_cv_prog_ac_ct_CC 3326if test -n "$ac_ct_CC"; then 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3328$as_echo "$ac_ct_CC" >&6; } 3329else 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3331$as_echo "no" >&6; } 3332fi 3333 3334 3335 test -n "$ac_ct_CC" && break 3336done 3337 3338 if test "x$ac_ct_CC" = x; then 3339 CC="" 3340 else 3341 case $cross_compiling:$ac_tool_warned in 3342yes:) 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3345ac_tool_warned=yes ;; 3346esac 3347 CC=$ac_ct_CC 3348 fi 3349fi 3350 3351fi 3352 3353 3354test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3356as_fn_error "no acceptable C compiler found in \$PATH 3357See \`config.log' for more details." "$LINENO" 5; } 3358 3359# Provide some information about the compiler. 3360$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3361set X $ac_compile 3362ac_compiler=$2 3363for ac_option in --version -v -V -qversion; do 3364 { { ac_try="$ac_compiler $ac_option >&5" 3365case "(($ac_try" in 3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3367 *) ac_try_echo=$ac_try;; 3368esac 3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3370$as_echo "$ac_try_echo"; } >&5 3371 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3372 ac_status=$? 3373 if test -s conftest.err; then 3374 sed '10a\ 3375... rest of stderr output deleted ... 3376 10q' conftest.err >conftest.er1 3377 cat conftest.er1 >&5 3378 fi 3379 rm -f conftest.er1 conftest.err 3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3381 test $ac_status = 0; } 3382done 3383 3384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3385/* end confdefs.h. */ 3386 3387int 3388main () 3389{ 3390 3391 ; 3392 return 0; 3393} 3394_ACEOF 3395ac_clean_files_save=$ac_clean_files 3396ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3397# Try to create an executable without -o first, disregard a.out. 3398# It will help us diagnose broken compilers, and finding out an intuition 3399# of exeext. 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3401$as_echo_n "checking whether the C compiler works... " >&6; } 3402ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3403 3404# The possible output files: 3405ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3406 3407ac_rmfiles= 3408for ac_file in $ac_files 3409do 3410 case $ac_file in 3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3412 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3413 esac 3414done 3415rm -f $ac_rmfiles 3416 3417if { { ac_try="$ac_link_default" 3418case "(($ac_try" in 3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3420 *) ac_try_echo=$ac_try;; 3421esac 3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3423$as_echo "$ac_try_echo"; } >&5 3424 (eval "$ac_link_default") 2>&5 3425 ac_status=$? 3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3427 test $ac_status = 0; }; then : 3428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3429# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3430# in a Makefile. We should not override ac_cv_exeext if it was cached, 3431# so that the user can short-circuit this test for compilers unknown to 3432# Autoconf. 3433for ac_file in $ac_files '' 3434do 3435 test -f "$ac_file" || continue 3436 case $ac_file in 3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3438 ;; 3439 [ab].out ) 3440 # We found the default executable, but exeext='' is most 3441 # certainly right. 3442 break;; 3443 *.* ) 3444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3445 then :; else 3446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3447 fi 3448 # We set ac_cv_exeext here because the later test for it is not 3449 # safe: cross compilers may not add the suffix if given an `-o' 3450 # argument, so we may need to know it at that point already. 3451 # Even if this section looks crufty: it has the advantage of 3452 # actually working. 3453 break;; 3454 * ) 3455 break;; 3456 esac 3457done 3458test "$ac_cv_exeext" = no && ac_cv_exeext= 3459 3460else 3461 ac_file='' 3462fi 3463if test -z "$ac_file"; then : 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3465$as_echo "no" >&6; } 3466$as_echo "$as_me: failed program was:" >&5 3467sed 's/^/| /' conftest.$ac_ext >&5 3468 3469{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3471{ as_fn_set_status 77 3472as_fn_error "C compiler cannot create executables 3473See \`config.log' for more details." "$LINENO" 5; }; } 3474else 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3476$as_echo "yes" >&6; } 3477fi 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3479$as_echo_n "checking for C compiler default output file name... " >&6; } 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3481$as_echo "$ac_file" >&6; } 3482ac_exeext=$ac_cv_exeext 3483 3484rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3485ac_clean_files=$ac_clean_files_save 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3487$as_echo_n "checking for suffix of executables... " >&6; } 3488if { { ac_try="$ac_link" 3489case "(($ac_try" in 3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3491 *) ac_try_echo=$ac_try;; 3492esac 3493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3494$as_echo "$ac_try_echo"; } >&5 3495 (eval "$ac_link") 2>&5 3496 ac_status=$? 3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3498 test $ac_status = 0; }; then : 3499 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3500# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3501# work properly (i.e., refer to `conftest.exe'), while it won't with 3502# `rm'. 3503for ac_file in conftest.exe conftest conftest.*; do 3504 test -f "$ac_file" || continue 3505 case $ac_file in 3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3508 break;; 3509 * ) break;; 3510 esac 3511done 3512else 3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3515as_fn_error "cannot compute suffix of executables: cannot compile and link 3516See \`config.log' for more details." "$LINENO" 5; } 3517fi 3518rm -f conftest conftest$ac_cv_exeext 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3520$as_echo "$ac_cv_exeext" >&6; } 3521 3522rm -f conftest.$ac_ext 3523EXEEXT=$ac_cv_exeext 3524ac_exeext=$EXEEXT 3525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527#include <stdio.h> 3528int 3529main () 3530{ 3531FILE *f = fopen ("conftest.out", "w"); 3532 return ferror (f) || fclose (f) != 0; 3533 3534 ; 3535 return 0; 3536} 3537_ACEOF 3538ac_clean_files="$ac_clean_files conftest.out" 3539# Check that the compiler produces executables we can run. If not, either 3540# the compiler is broken, or we cross compile. 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3542$as_echo_n "checking whether we are cross compiling... " >&6; } 3543if test "$cross_compiling" != yes; then 3544 { { ac_try="$ac_link" 3545case "(($ac_try" in 3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3547 *) ac_try_echo=$ac_try;; 3548esac 3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3550$as_echo "$ac_try_echo"; } >&5 3551 (eval "$ac_link") 2>&5 3552 ac_status=$? 3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3554 test $ac_status = 0; } 3555 if { ac_try='./conftest$ac_cv_exeext' 3556 { { case "(($ac_try" in 3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3558 *) ac_try_echo=$ac_try;; 3559esac 3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3561$as_echo "$ac_try_echo"; } >&5 3562 (eval "$ac_try") 2>&5 3563 ac_status=$? 3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3565 test $ac_status = 0; }; }; then 3566 cross_compiling=no 3567 else 3568 if test "$cross_compiling" = maybe; then 3569 cross_compiling=yes 3570 else 3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3573as_fn_error "cannot run C compiled programs. 3574If you meant to cross compile, use \`--host'. 3575See \`config.log' for more details." "$LINENO" 5; } 3576 fi 3577 fi 3578fi 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3580$as_echo "$cross_compiling" >&6; } 3581 3582rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3583ac_clean_files=$ac_clean_files_save 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3585$as_echo_n "checking for suffix of object files... " >&6; } 3586if test "${ac_cv_objext+set}" = set; then : 3587 $as_echo_n "(cached) " >&6 3588else 3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3590/* end confdefs.h. */ 3591 3592int 3593main () 3594{ 3595 3596 ; 3597 return 0; 3598} 3599_ACEOF 3600rm -f conftest.o conftest.obj 3601if { { ac_try="$ac_compile" 3602case "(($ac_try" in 3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3604 *) ac_try_echo=$ac_try;; 3605esac 3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3607$as_echo "$ac_try_echo"; } >&5 3608 (eval "$ac_compile") 2>&5 3609 ac_status=$? 3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3611 test $ac_status = 0; }; then : 3612 for ac_file in conftest.o conftest.obj conftest.*; do 3613 test -f "$ac_file" || continue; 3614 case $ac_file in 3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3617 break;; 3618 esac 3619done 3620else 3621 $as_echo "$as_me: failed program was:" >&5 3622sed 's/^/| /' conftest.$ac_ext >&5 3623 3624{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3626as_fn_error "cannot compute suffix of object files: cannot compile 3627See \`config.log' for more details." "$LINENO" 5; } 3628fi 3629rm -f conftest.$ac_cv_objext conftest.$ac_ext 3630fi 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3632$as_echo "$ac_cv_objext" >&6; } 3633OBJEXT=$ac_cv_objext 3634ac_objext=$OBJEXT 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3636$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3637if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641/* end confdefs.h. */ 3642 3643int 3644main () 3645{ 3646#ifndef __GNUC__ 3647 choke me 3648#endif 3649 3650 ; 3651 return 0; 3652} 3653_ACEOF 3654if ac_fn_c_try_compile "$LINENO"; then : 3655 ac_compiler_gnu=yes 3656else 3657 ac_compiler_gnu=no 3658fi 3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3660ac_cv_c_compiler_gnu=$ac_compiler_gnu 3661 3662fi 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3664$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3665if test $ac_compiler_gnu = yes; then 3666 GCC=yes 3667else 3668 GCC= 3669fi 3670ac_test_CFLAGS=${CFLAGS+set} 3671ac_save_CFLAGS=$CFLAGS 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3673$as_echo_n "checking whether $CC accepts -g... " >&6; } 3674if test "${ac_cv_prog_cc_g+set}" = set; then : 3675 $as_echo_n "(cached) " >&6 3676else 3677 ac_save_c_werror_flag=$ac_c_werror_flag 3678 ac_c_werror_flag=yes 3679 ac_cv_prog_cc_g=no 3680 CFLAGS="-g" 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683 3684int 3685main () 3686{ 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692if ac_fn_c_try_compile "$LINENO"; then : 3693 ac_cv_prog_cc_g=yes 3694else 3695 CFLAGS="" 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699int 3700main () 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO"; then : 3708 3709else 3710 ac_c_werror_flag=$ac_save_c_werror_flag 3711 CFLAGS="-g" 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723if ac_fn_c_try_compile "$LINENO"; then : 3724 ac_cv_prog_cc_g=yes 3725fi 3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3727fi 3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3729fi 3730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3731 ac_c_werror_flag=$ac_save_c_werror_flag 3732fi 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3734$as_echo "$ac_cv_prog_cc_g" >&6; } 3735if test "$ac_test_CFLAGS" = set; then 3736 CFLAGS=$ac_save_CFLAGS 3737elif test $ac_cv_prog_cc_g = yes; then 3738 if test "$GCC" = yes; then 3739 CFLAGS="-g -O2" 3740 else 3741 CFLAGS="-g" 3742 fi 3743else 3744 if test "$GCC" = yes; then 3745 CFLAGS="-O2" 3746 else 3747 CFLAGS= 3748 fi 3749fi 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3751$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3752if test "${ac_cv_prog_cc_c89+set}" = set; then : 3753 $as_echo_n "(cached) " >&6 3754else 3755 ac_cv_prog_cc_c89=no 3756ac_save_CC=$CC 3757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3758/* end confdefs.h. */ 3759#include <stdarg.h> 3760#include <stdio.h> 3761#include <sys/types.h> 3762#include <sys/stat.h> 3763/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3764struct buf { int x; }; 3765FILE * (*rcsopen) (struct buf *, struct stat *, int); 3766static char *e (p, i) 3767 char **p; 3768 int i; 3769{ 3770 return p[i]; 3771} 3772static char *f (char * (*g) (char **, int), char **p, ...) 3773{ 3774 char *s; 3775 va_list v; 3776 va_start (v,p); 3777 s = g (p, va_arg (v,int)); 3778 va_end (v); 3779 return s; 3780} 3781 3782/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3783 function prototypes and stuff, but not '\xHH' hex character constants. 3784 These don't provoke an error unfortunately, instead are silently treated 3785 as 'x'. The following induces an error, until -std is added to get 3786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3787 array size at least. It's necessary to write '\x00'==0 to get something 3788 that's true only with -std. */ 3789int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3790 3791/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3792 inside strings and character constants. */ 3793#define FOO(x) 'x' 3794int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3795 3796int test (int i, double x); 3797struct s1 {int (*f) (int a);}; 3798struct s2 {int (*f) (double a);}; 3799int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3800int argc; 3801char **argv; 3802int 3803main () 3804{ 3805return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3806 ; 3807 return 0; 3808} 3809_ACEOF 3810for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3812do 3813 CC="$ac_save_CC $ac_arg" 3814 if ac_fn_c_try_compile "$LINENO"; then : 3815 ac_cv_prog_cc_c89=$ac_arg 3816fi 3817rm -f core conftest.err conftest.$ac_objext 3818 test "x$ac_cv_prog_cc_c89" != "xno" && break 3819done 3820rm -f conftest.$ac_ext 3821CC=$ac_save_CC 3822 3823fi 3824# AC_CACHE_VAL 3825case "x$ac_cv_prog_cc_c89" in 3826 x) 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3828$as_echo "none needed" >&6; } ;; 3829 xno) 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3831$as_echo "unsupported" >&6; } ;; 3832 *) 3833 CC="$CC $ac_cv_prog_cc_c89" 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3835$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3836esac 3837if test "x$ac_cv_prog_cc_c89" != xno; then : 3838 3839fi 3840 3841ac_ext=c 3842ac_cpp='$CPP $CPPFLAGS' 3843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3845ac_compiler_gnu=$ac_cv_c_compiler_gnu 3846 3847depcc="$CC" am_compiler_list= 3848 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3850$as_echo_n "checking dependency style of $depcc... " >&6; } 3851if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3852 $as_echo_n "(cached) " >&6 3853else 3854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3855 # We make a subdir and do the tests there. Otherwise we can end up 3856 # making bogus files that we don't know about and never remove. For 3857 # instance it was reported that on HP-UX the gcc test will end up 3858 # making a dummy file named `D' -- because `-MD' means `put the output 3859 # in D'. 3860 mkdir conftest.dir 3861 # Copy depcomp to subdir because otherwise we won't find it if we're 3862 # using a relative directory. 3863 cp "$am_depcomp" conftest.dir 3864 cd conftest.dir 3865 # We will build objects and dependencies in a subdirectory because 3866 # it helps to detect inapplicable dependency modes. For instance 3867 # both Tru64's cc and ICC support -MD to output dependencies as a 3868 # side effect of compilation, but ICC will put the dependencies in 3869 # the current directory while Tru64 will put them in the object 3870 # directory. 3871 mkdir sub 3872 3873 am_cv_CC_dependencies_compiler_type=none 3874 if test "$am_compiler_list" = ""; then 3875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3876 fi 3877 for depmode in $am_compiler_list; do 3878 # Setup a source with many dependencies, because some compilers 3879 # like to wrap large dependency lists on column 80 (with \), and 3880 # we should not choose a depcomp mode which is confused by this. 3881 # 3882 # We need to recreate these files for each test, as the compiler may 3883 # overwrite some of them when testing with obscure command lines. 3884 # This happens at least with the AIX C compiler. 3885 : > sub/conftest.c 3886 for i in 1 2 3 4 5 6; do 3887 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3888 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3889 # Solaris 8's {/usr,}/bin/sh. 3890 touch sub/conftst$i.h 3891 done 3892 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3893 3894 case $depmode in 3895 nosideeffect) 3896 # after this tag, mechanisms are not by side-effect, so they'll 3897 # only be used when explicitly requested 3898 if test "x$enable_dependency_tracking" = xyes; then 3899 continue 3900 else 3901 break 3902 fi 3903 ;; 3904 none) break ;; 3905 esac 3906 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3907 # mode. It turns out that the SunPro C++ compiler does not properly 3908 # handle `-M -o', and we need to detect this. 3909 if depmode=$depmode \ 3910 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3912 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3913 >/dev/null 2>conftest.err && 3914 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3915 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3916 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3917 # icc doesn't choke on unknown options, it will just issue warnings 3918 # or remarks (even with -Werror). So we grep stderr for any message 3919 # that says an option was ignored or not supported. 3920 # When given -MP, icc 7.0 and 7.1 complain thusly: 3921 # icc: Command line warning: ignoring option '-M'; no argument required 3922 # The diagnosis changed in icc 8.0: 3923 # icc: Command line remark: option '-MP' not supported 3924 if (grep 'ignoring option' conftest.err || 3925 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3926 am_cv_CC_dependencies_compiler_type=$depmode 3927 break 3928 fi 3929 fi 3930 done 3931 3932 cd .. 3933 rm -rf conftest.dir 3934else 3935 am_cv_CC_dependencies_compiler_type=none 3936fi 3937 3938fi 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3940$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3941CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3942 3943 3944 3945if 3946 test "x$enable_dependency_tracking" != xno \ 3947 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3948 am__fastdepCC_TRUE= 3949 am__fastdepCC_FALSE='#' 3950else 3951 am__fastdepCC_TRUE='#' 3952 am__fastdepCC_FALSE= 3953fi 3954 3955 3956 3957# Check whether --enable-largefile was given. 3958if test "${enable_largefile+set}" = set; then : 3959 enableval=$enable_largefile; 3960fi 3961 3962if test "$enable_largefile" != no; then 3963 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3965$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3966if test "${ac_cv_sys_largefile_CC+set}" = set; then : 3967 $as_echo_n "(cached) " >&6 3968else 3969 ac_cv_sys_largefile_CC=no 3970 if test "$GCC" != yes; then 3971 ac_save_CC=$CC 3972 while :; do 3973 # IRIX 6.2 and later do not support large files by default, 3974 # so use the C compiler's -n32 option if that helps. 3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976/* end confdefs.h. */ 3977#include <sys/types.h> 3978 /* Check that off_t can represent 2**63 - 1 correctly. 3979 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3980 since some C++ compilers masquerading as C compilers 3981 incorrectly reject 9223372036854775807. */ 3982#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3984 && LARGE_OFF_T % 2147483647 == 1) 3985 ? 1 : -1]; 3986int 3987main () 3988{ 3989 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994 if ac_fn_c_try_compile "$LINENO"; then : 3995 break 3996fi 3997rm -f core conftest.err conftest.$ac_objext 3998 CC="$CC -n32" 3999 if ac_fn_c_try_compile "$LINENO"; then : 4000 ac_cv_sys_largefile_CC=' -n32'; break 4001fi 4002rm -f core conftest.err conftest.$ac_objext 4003 break 4004 done 4005 CC=$ac_save_CC 4006 rm -f conftest.$ac_ext 4007 fi 4008fi 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4010$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4011 if test "$ac_cv_sys_largefile_CC" != no; then 4012 CC=$CC$ac_cv_sys_largefile_CC 4013 fi 4014 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4016$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4017if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 4018 $as_echo_n "(cached) " >&6 4019else 4020 while :; do 4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4022/* end confdefs.h. */ 4023#include <sys/types.h> 4024 /* Check that off_t can represent 2**63 - 1 correctly. 4025 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4026 since some C++ compilers masquerading as C compilers 4027 incorrectly reject 9223372036854775807. */ 4028#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4030 && LARGE_OFF_T % 2147483647 == 1) 4031 ? 1 : -1]; 4032int 4033main () 4034{ 4035 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040if ac_fn_c_try_compile "$LINENO"; then : 4041 ac_cv_sys_file_offset_bits=no; break 4042fi 4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045/* end confdefs.h. */ 4046#define _FILE_OFFSET_BITS 64 4047#include <sys/types.h> 4048 /* Check that off_t can represent 2**63 - 1 correctly. 4049 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4050 since some C++ compilers masquerading as C compilers 4051 incorrectly reject 9223372036854775807. */ 4052#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4054 && LARGE_OFF_T % 2147483647 == 1) 4055 ? 1 : -1]; 4056int 4057main () 4058{ 4059 4060 ; 4061 return 0; 4062} 4063_ACEOF 4064if ac_fn_c_try_compile "$LINENO"; then : 4065 ac_cv_sys_file_offset_bits=64; break 4066fi 4067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4068 ac_cv_sys_file_offset_bits=unknown 4069 break 4070done 4071fi 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4073$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4074case $ac_cv_sys_file_offset_bits in #( 4075 no | unknown) ;; 4076 *) 4077cat >>confdefs.h <<_ACEOF 4078#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4079_ACEOF 4080;; 4081esac 4082rm -rf conftest* 4083 if test $ac_cv_sys_file_offset_bits = unknown; then 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4085$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4086if test "${ac_cv_sys_large_files+set}" = set; then : 4087 $as_echo_n "(cached) " >&6 4088else 4089 while :; do 4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092#include <sys/types.h> 4093 /* Check that off_t can represent 2**63 - 1 correctly. 4094 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4095 since some C++ compilers masquerading as C compilers 4096 incorrectly reject 9223372036854775807. */ 4097#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4099 && LARGE_OFF_T % 2147483647 == 1) 4100 ? 1 : -1]; 4101int 4102main () 4103{ 4104 4105 ; 4106 return 0; 4107} 4108_ACEOF 4109if ac_fn_c_try_compile "$LINENO"; then : 4110 ac_cv_sys_large_files=no; break 4111fi 4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115#define _LARGE_FILES 1 4116#include <sys/types.h> 4117 /* Check that off_t can represent 2**63 - 1 correctly. 4118 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4119 since some C++ compilers masquerading as C compilers 4120 incorrectly reject 9223372036854775807. */ 4121#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4123 && LARGE_OFF_T % 2147483647 == 1) 4124 ? 1 : -1]; 4125int 4126main () 4127{ 4128 4129 ; 4130 return 0; 4131} 4132_ACEOF 4133if ac_fn_c_try_compile "$LINENO"; then : 4134 ac_cv_sys_large_files=1; break 4135fi 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4137 ac_cv_sys_large_files=unknown 4138 break 4139done 4140fi 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4142$as_echo "$ac_cv_sys_large_files" >&6; } 4143case $ac_cv_sys_large_files in #( 4144 no | unknown) ;; 4145 *) 4146cat >>confdefs.h <<_ACEOF 4147#define _LARGE_FILES $ac_cv_sys_large_files 4148_ACEOF 4149;; 4150esac 4151rm -rf conftest* 4152 fi 4153fi 4154 4155 4156# Check for required programs. 4157ac_ext=c 4158ac_cpp='$CPP $CPPFLAGS' 4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4161ac_compiler_gnu=$ac_cv_c_compiler_gnu 4162if test -n "$ac_tool_prefix"; then 4163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4164set dummy ${ac_tool_prefix}gcc; ac_word=$2 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4166$as_echo_n "checking for $ac_word... " >&6; } 4167if test "${ac_cv_prog_CC+set}" = set; then : 4168 $as_echo_n "(cached) " >&6 4169else 4170 if test -n "$CC"; then 4171 ac_cv_prog_CC="$CC" # Let the user override the test. 4172else 4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4174for as_dir in $PATH 4175do 4176 IFS=$as_save_IFS 4177 test -z "$as_dir" && as_dir=. 4178 for ac_exec_ext in '' $ac_executable_extensions; do 4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4180 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4182 break 2 4183 fi 4184done 4185 done 4186IFS=$as_save_IFS 4187 4188fi 4189fi 4190CC=$ac_cv_prog_CC 4191if test -n "$CC"; then 4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4193$as_echo "$CC" >&6; } 4194else 4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4196$as_echo "no" >&6; } 4197fi 4198 4199 4200fi 4201if test -z "$ac_cv_prog_CC"; then 4202 ac_ct_CC=$CC 4203 # Extract the first word of "gcc", so it can be a program name with args. 4204set dummy gcc; ac_word=$2 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4206$as_echo_n "checking for $ac_word... " >&6; } 4207if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4208 $as_echo_n "(cached) " >&6 4209else 4210 if test -n "$ac_ct_CC"; then 4211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4212else 4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4214for as_dir in $PATH 4215do 4216 IFS=$as_save_IFS 4217 test -z "$as_dir" && as_dir=. 4218 for ac_exec_ext in '' $ac_executable_extensions; do 4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4220 ac_cv_prog_ac_ct_CC="gcc" 4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4222 break 2 4223 fi 4224done 4225 done 4226IFS=$as_save_IFS 4227 4228fi 4229fi 4230ac_ct_CC=$ac_cv_prog_ac_ct_CC 4231if test -n "$ac_ct_CC"; then 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4233$as_echo "$ac_ct_CC" >&6; } 4234else 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4236$as_echo "no" >&6; } 4237fi 4238 4239 if test "x$ac_ct_CC" = x; then 4240 CC="" 4241 else 4242 case $cross_compiling:$ac_tool_warned in 4243yes:) 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4246ac_tool_warned=yes ;; 4247esac 4248 CC=$ac_ct_CC 4249 fi 4250else 4251 CC="$ac_cv_prog_CC" 4252fi 4253 4254if test -z "$CC"; then 4255 if test -n "$ac_tool_prefix"; then 4256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4257set dummy ${ac_tool_prefix}cc; ac_word=$2 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4259$as_echo_n "checking for $ac_word... " >&6; } 4260if test "${ac_cv_prog_CC+set}" = set; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 if test -n "$CC"; then 4264 ac_cv_prog_CC="$CC" # Let the user override the test. 4265else 4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4267for as_dir in $PATH 4268do 4269 IFS=$as_save_IFS 4270 test -z "$as_dir" && as_dir=. 4271 for ac_exec_ext in '' $ac_executable_extensions; do 4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4273 ac_cv_prog_CC="${ac_tool_prefix}cc" 4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4275 break 2 4276 fi 4277done 4278 done 4279IFS=$as_save_IFS 4280 4281fi 4282fi 4283CC=$ac_cv_prog_CC 4284if test -n "$CC"; then 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4286$as_echo "$CC" >&6; } 4287else 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4289$as_echo "no" >&6; } 4290fi 4291 4292 4293 fi 4294fi 4295if test -z "$CC"; then 4296 # Extract the first word of "cc", so it can be a program name with args. 4297set dummy cc; ac_word=$2 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4299$as_echo_n "checking for $ac_word... " >&6; } 4300if test "${ac_cv_prog_CC+set}" = set; then : 4301 $as_echo_n "(cached) " >&6 4302else 4303 if test -n "$CC"; then 4304 ac_cv_prog_CC="$CC" # Let the user override the test. 4305else 4306 ac_prog_rejected=no 4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4308for as_dir in $PATH 4309do 4310 IFS=$as_save_IFS 4311 test -z "$as_dir" && as_dir=. 4312 for ac_exec_ext in '' $ac_executable_extensions; do 4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4315 ac_prog_rejected=yes 4316 continue 4317 fi 4318 ac_cv_prog_CC="cc" 4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4320 break 2 4321 fi 4322done 4323 done 4324IFS=$as_save_IFS 4325 4326if test $ac_prog_rejected = yes; then 4327 # We found a bogon in the path, so make sure we never use it. 4328 set dummy $ac_cv_prog_CC 4329 shift 4330 if test $# != 0; then 4331 # We chose a different compiler from the bogus one. 4332 # However, it has the same basename, so the bogon will be chosen 4333 # first if we set CC to just the basename; use the full file name. 4334 shift 4335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4336 fi 4337fi 4338fi 4339fi 4340CC=$ac_cv_prog_CC 4341if test -n "$CC"; then 4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4343$as_echo "$CC" >&6; } 4344else 4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4346$as_echo "no" >&6; } 4347fi 4348 4349 4350fi 4351if test -z "$CC"; then 4352 if test -n "$ac_tool_prefix"; then 4353 for ac_prog in cl.exe 4354 do 4355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4356set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4358$as_echo_n "checking for $ac_word... " >&6; } 4359if test "${ac_cv_prog_CC+set}" = set; then : 4360 $as_echo_n "(cached) " >&6 4361else 4362 if test -n "$CC"; then 4363 ac_cv_prog_CC="$CC" # Let the user override the test. 4364else 4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366for as_dir in $PATH 4367do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4374 break 2 4375 fi 4376done 4377 done 4378IFS=$as_save_IFS 4379 4380fi 4381fi 4382CC=$ac_cv_prog_CC 4383if test -n "$CC"; then 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4385$as_echo "$CC" >&6; } 4386else 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4388$as_echo "no" >&6; } 4389fi 4390 4391 4392 test -n "$CC" && break 4393 done 4394fi 4395if test -z "$CC"; then 4396 ac_ct_CC=$CC 4397 for ac_prog in cl.exe 4398do 4399 # Extract the first word of "$ac_prog", so it can be a program name with args. 4400set dummy $ac_prog; ac_word=$2 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4402$as_echo_n "checking for $ac_word... " >&6; } 4403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 if test -n "$ac_ct_CC"; then 4407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4408else 4409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4410for as_dir in $PATH 4411do 4412 IFS=$as_save_IFS 4413 test -z "$as_dir" && as_dir=. 4414 for ac_exec_ext in '' $ac_executable_extensions; do 4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4416 ac_cv_prog_ac_ct_CC="$ac_prog" 4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4418 break 2 4419 fi 4420done 4421 done 4422IFS=$as_save_IFS 4423 4424fi 4425fi 4426ac_ct_CC=$ac_cv_prog_ac_ct_CC 4427if test -n "$ac_ct_CC"; then 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4429$as_echo "$ac_ct_CC" >&6; } 4430else 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4432$as_echo "no" >&6; } 4433fi 4434 4435 4436 test -n "$ac_ct_CC" && break 4437done 4438 4439 if test "x$ac_ct_CC" = x; then 4440 CC="" 4441 else 4442 case $cross_compiling:$ac_tool_warned in 4443yes:) 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4446ac_tool_warned=yes ;; 4447esac 4448 CC=$ac_ct_CC 4449 fi 4450fi 4451 4452fi 4453 4454 4455test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4457as_fn_error "no acceptable C compiler found in \$PATH 4458See \`config.log' for more details." "$LINENO" 5; } 4459 4460# Provide some information about the compiler. 4461$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4462set X $ac_compile 4463ac_compiler=$2 4464for ac_option in --version -v -V -qversion; do 4465 { { ac_try="$ac_compiler $ac_option >&5" 4466case "(($ac_try" in 4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4468 *) ac_try_echo=$ac_try;; 4469esac 4470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4471$as_echo "$ac_try_echo"; } >&5 4472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4473 ac_status=$? 4474 if test -s conftest.err; then 4475 sed '10a\ 4476... rest of stderr output deleted ... 4477 10q' conftest.err >conftest.er1 4478 cat conftest.er1 >&5 4479 fi 4480 rm -f conftest.er1 conftest.err 4481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4482 test $ac_status = 0; } 4483done 4484 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4486$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4487if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492 4493int 4494main () 4495{ 4496#ifndef __GNUC__ 4497 choke me 4498#endif 4499 4500 ; 4501 return 0; 4502} 4503_ACEOF 4504if ac_fn_c_try_compile "$LINENO"; then : 4505 ac_compiler_gnu=yes 4506else 4507 ac_compiler_gnu=no 4508fi 4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4510ac_cv_c_compiler_gnu=$ac_compiler_gnu 4511 4512fi 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4514$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4515if test $ac_compiler_gnu = yes; then 4516 GCC=yes 4517else 4518 GCC= 4519fi 4520ac_test_CFLAGS=${CFLAGS+set} 4521ac_save_CFLAGS=$CFLAGS 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4523$as_echo_n "checking whether $CC accepts -g... " >&6; } 4524if test "${ac_cv_prog_cc_g+set}" = set; then : 4525 $as_echo_n "(cached) " >&6 4526else 4527 ac_save_c_werror_flag=$ac_c_werror_flag 4528 ac_c_werror_flag=yes 4529 ac_cv_prog_cc_g=no 4530 CFLAGS="-g" 4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4532/* end confdefs.h. */ 4533 4534int 4535main () 4536{ 4537 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542if ac_fn_c_try_compile "$LINENO"; then : 4543 ac_cv_prog_cc_g=yes 4544else 4545 CFLAGS="" 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548 4549int 4550main () 4551{ 4552 4553 ; 4554 return 0; 4555} 4556_ACEOF 4557if ac_fn_c_try_compile "$LINENO"; then : 4558 4559else 4560 ac_c_werror_flag=$ac_save_c_werror_flag 4561 CFLAGS="-g" 4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4563/* end confdefs.h. */ 4564 4565int 4566main () 4567{ 4568 4569 ; 4570 return 0; 4571} 4572_ACEOF 4573if ac_fn_c_try_compile "$LINENO"; then : 4574 ac_cv_prog_cc_g=yes 4575fi 4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4577fi 4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4579fi 4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4581 ac_c_werror_flag=$ac_save_c_werror_flag 4582fi 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4584$as_echo "$ac_cv_prog_cc_g" >&6; } 4585if test "$ac_test_CFLAGS" = set; then 4586 CFLAGS=$ac_save_CFLAGS 4587elif test $ac_cv_prog_cc_g = yes; then 4588 if test "$GCC" = yes; then 4589 CFLAGS="-g -O2" 4590 else 4591 CFLAGS="-g" 4592 fi 4593else 4594 if test "$GCC" = yes; then 4595 CFLAGS="-O2" 4596 else 4597 CFLAGS= 4598 fi 4599fi 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4601$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4602if test "${ac_cv_prog_cc_c89+set}" = set; then : 4603 $as_echo_n "(cached) " >&6 4604else 4605 ac_cv_prog_cc_c89=no 4606ac_save_CC=$CC 4607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4608/* end confdefs.h. */ 4609#include <stdarg.h> 4610#include <stdio.h> 4611#include <sys/types.h> 4612#include <sys/stat.h> 4613/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4614struct buf { int x; }; 4615FILE * (*rcsopen) (struct buf *, struct stat *, int); 4616static char *e (p, i) 4617 char **p; 4618 int i; 4619{ 4620 return p[i]; 4621} 4622static char *f (char * (*g) (char **, int), char **p, ...) 4623{ 4624 char *s; 4625 va_list v; 4626 va_start (v,p); 4627 s = g (p, va_arg (v,int)); 4628 va_end (v); 4629 return s; 4630} 4631 4632/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4633 function prototypes and stuff, but not '\xHH' hex character constants. 4634 These don't provoke an error unfortunately, instead are silently treated 4635 as 'x'. The following induces an error, until -std is added to get 4636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4637 array size at least. It's necessary to write '\x00'==0 to get something 4638 that's true only with -std. */ 4639int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4640 4641/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4642 inside strings and character constants. */ 4643#define FOO(x) 'x' 4644int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4645 4646int test (int i, double x); 4647struct s1 {int (*f) (int a);}; 4648struct s2 {int (*f) (double a);}; 4649int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4650int argc; 4651char **argv; 4652int 4653main () 4654{ 4655return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4656 ; 4657 return 0; 4658} 4659_ACEOF 4660for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4662do 4663 CC="$ac_save_CC $ac_arg" 4664 if ac_fn_c_try_compile "$LINENO"; then : 4665 ac_cv_prog_cc_c89=$ac_arg 4666fi 4667rm -f core conftest.err conftest.$ac_objext 4668 test "x$ac_cv_prog_cc_c89" != "xno" && break 4669done 4670rm -f conftest.$ac_ext 4671CC=$ac_save_CC 4672 4673fi 4674# AC_CACHE_VAL 4675case "x$ac_cv_prog_cc_c89" in 4676 x) 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4678$as_echo "none needed" >&6; } ;; 4679 xno) 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4681$as_echo "unsupported" >&6; } ;; 4682 *) 4683 CC="$CC $ac_cv_prog_cc_c89" 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4685$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4686esac 4687if test "x$ac_cv_prog_cc_c89" != xno; then : 4688 4689fi 4690 4691ac_ext=c 4692ac_cpp='$CPP $CPPFLAGS' 4693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4695ac_compiler_gnu=$ac_cv_c_compiler_gnu 4696 4697depcc="$CC" am_compiler_list= 4698 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4700$as_echo_n "checking dependency style of $depcc... " >&6; } 4701if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4702 $as_echo_n "(cached) " >&6 4703else 4704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4705 # We make a subdir and do the tests there. Otherwise we can end up 4706 # making bogus files that we don't know about and never remove. For 4707 # instance it was reported that on HP-UX the gcc test will end up 4708 # making a dummy file named `D' -- because `-MD' means `put the output 4709 # in D'. 4710 mkdir conftest.dir 4711 # Copy depcomp to subdir because otherwise we won't find it if we're 4712 # using a relative directory. 4713 cp "$am_depcomp" conftest.dir 4714 cd conftest.dir 4715 # We will build objects and dependencies in a subdirectory because 4716 # it helps to detect inapplicable dependency modes. For instance 4717 # both Tru64's cc and ICC support -MD to output dependencies as a 4718 # side effect of compilation, but ICC will put the dependencies in 4719 # the current directory while Tru64 will put them in the object 4720 # directory. 4721 mkdir sub 4722 4723 am_cv_CC_dependencies_compiler_type=none 4724 if test "$am_compiler_list" = ""; then 4725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4726 fi 4727 for depmode in $am_compiler_list; do 4728 # Setup a source with many dependencies, because some compilers 4729 # like to wrap large dependency lists on column 80 (with \), and 4730 # we should not choose a depcomp mode which is confused by this. 4731 # 4732 # We need to recreate these files for each test, as the compiler may 4733 # overwrite some of them when testing with obscure command lines. 4734 # This happens at least with the AIX C compiler. 4735 : > sub/conftest.c 4736 for i in 1 2 3 4 5 6; do 4737 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4738 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4739 # Solaris 8's {/usr,}/bin/sh. 4740 touch sub/conftst$i.h 4741 done 4742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4743 4744 case $depmode in 4745 nosideeffect) 4746 # after this tag, mechanisms are not by side-effect, so they'll 4747 # only be used when explicitly requested 4748 if test "x$enable_dependency_tracking" = xyes; then 4749 continue 4750 else 4751 break 4752 fi 4753 ;; 4754 none) break ;; 4755 esac 4756 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4757 # mode. It turns out that the SunPro C++ compiler does not properly 4758 # handle `-M -o', and we need to detect this. 4759 if depmode=$depmode \ 4760 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4761 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4762 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4763 >/dev/null 2>conftest.err && 4764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4765 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4767 # icc doesn't choke on unknown options, it will just issue warnings 4768 # or remarks (even with -Werror). So we grep stderr for any message 4769 # that says an option was ignored or not supported. 4770 # When given -MP, icc 7.0 and 7.1 complain thusly: 4771 # icc: Command line warning: ignoring option '-M'; no argument required 4772 # The diagnosis changed in icc 8.0: 4773 # icc: Command line remark: option '-MP' not supported 4774 if (grep 'ignoring option' conftest.err || 4775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4776 am_cv_CC_dependencies_compiler_type=$depmode 4777 break 4778 fi 4779 fi 4780 done 4781 4782 cd .. 4783 rm -rf conftest.dir 4784else 4785 am_cv_CC_dependencies_compiler_type=none 4786fi 4787 4788fi 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4790$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4791CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4792 4793 4794 4795if 4796 test "x$enable_dependency_tracking" != xno \ 4797 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4798 am__fastdepCC_TRUE= 4799 am__fastdepCC_FALSE='#' 4800else 4801 am__fastdepCC_TRUE='#' 4802 am__fastdepCC_FALSE= 4803fi 4804 4805 4806if test -n "$ac_tool_prefix"; then 4807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4808set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4810$as_echo_n "checking for $ac_word... " >&6; } 4811if test "${ac_cv_prog_RANLIB+set}" = set; then : 4812 $as_echo_n "(cached) " >&6 4813else 4814 if test -n "$RANLIB"; then 4815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4816else 4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818for as_dir in $PATH 4819do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829 done 4830IFS=$as_save_IFS 4831 4832fi 4833fi 4834RANLIB=$ac_cv_prog_RANLIB 4835if test -n "$RANLIB"; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4837$as_echo "$RANLIB" >&6; } 4838else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4840$as_echo "no" >&6; } 4841fi 4842 4843 4844fi 4845if test -z "$ac_cv_prog_RANLIB"; then 4846 ac_ct_RANLIB=$RANLIB 4847 # Extract the first word of "ranlib", so it can be a program name with args. 4848set dummy ranlib; ac_word=$2 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4850$as_echo_n "checking for $ac_word... " >&6; } 4851if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4852 $as_echo_n "(cached) " >&6 4853else 4854 if test -n "$ac_ct_RANLIB"; then 4855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4856else 4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4858for as_dir in $PATH 4859do 4860 IFS=$as_save_IFS 4861 test -z "$as_dir" && as_dir=. 4862 for ac_exec_ext in '' $ac_executable_extensions; do 4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4864 ac_cv_prog_ac_ct_RANLIB="ranlib" 4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4866 break 2 4867 fi 4868done 4869 done 4870IFS=$as_save_IFS 4871 4872fi 4873fi 4874ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4875if test -n "$ac_ct_RANLIB"; then 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4877$as_echo "$ac_ct_RANLIB" >&6; } 4878else 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4880$as_echo "no" >&6; } 4881fi 4882 4883 if test "x$ac_ct_RANLIB" = x; then 4884 RANLIB=":" 4885 else 4886 case $cross_compiling:$ac_tool_warned in 4887yes:) 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4890ac_tool_warned=yes ;; 4891esac 4892 RANLIB=$ac_ct_RANLIB 4893 fi 4894else 4895 RANLIB="$ac_cv_prog_RANLIB" 4896fi 4897 4898# Check whether --enable-shared was given. 4899if test "${enable_shared+set}" = set; then : 4900 enableval=$enable_shared; p=${PACKAGE-default} 4901 case $enableval in 4902 yes) enable_shared=yes ;; 4903 no) enable_shared=no ;; 4904 *) 4905 enable_shared=no 4906 # Look at the argument we got. We use all the common list separators. 4907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4908 for pkg in $enableval; do 4909 IFS="$lt_save_ifs" 4910 if test "X$pkg" = "X$p"; then 4911 enable_shared=yes 4912 fi 4913 done 4914 IFS="$lt_save_ifs" 4915 ;; 4916 esac 4917else 4918 enable_shared=yes 4919fi 4920 4921 4922# Check whether --enable-static was given. 4923if test "${enable_static+set}" = set; then : 4924 enableval=$enable_static; p=${PACKAGE-default} 4925 case $enableval in 4926 yes) enable_static=yes ;; 4927 no) enable_static=no ;; 4928 *) 4929 enable_static=no 4930 # Look at the argument we got. We use all the common list separators. 4931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4932 for pkg in $enableval; do 4933 IFS="$lt_save_ifs" 4934 if test "X$pkg" = "X$p"; then 4935 enable_static=yes 4936 fi 4937 done 4938 IFS="$lt_save_ifs" 4939 ;; 4940 esac 4941else 4942 enable_static=yes 4943fi 4944 4945 4946# Check whether --enable-fast-install was given. 4947if test "${enable_fast_install+set}" = set; then : 4948 enableval=$enable_fast_install; p=${PACKAGE-default} 4949 case $enableval in 4950 yes) enable_fast_install=yes ;; 4951 no) enable_fast_install=no ;; 4952 *) 4953 enable_fast_install=no 4954 # Look at the argument we got. We use all the common list separators. 4955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4956 for pkg in $enableval; do 4957 IFS="$lt_save_ifs" 4958 if test "X$pkg" = "X$p"; then 4959 enable_fast_install=yes 4960 fi 4961 done 4962 IFS="$lt_save_ifs" 4963 ;; 4964 esac 4965else 4966 enable_fast_install=yes 4967fi 4968 4969 4970# Make sure we can run config.sub. 4971$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4972 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4973 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4975$as_echo_n "checking build system type... " >&6; } 4976if test "${ac_cv_build+set}" = set; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 ac_build_alias=$build_alias 4980test "x$ac_build_alias" = x && 4981 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4982test "x$ac_build_alias" = x && 4983 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4984ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4985 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4986 4987fi 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4989$as_echo "$ac_cv_build" >&6; } 4990case $ac_cv_build in 4991*-*-*) ;; 4992*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4993esac 4994build=$ac_cv_build 4995ac_save_IFS=$IFS; IFS='-' 4996set x $ac_cv_build 4997shift 4998build_cpu=$1 4999build_vendor=$2 5000shift; shift 5001# Remember, the first character of IFS is used to create $*, 5002# except with old shells: 5003build_os=$* 5004IFS=$ac_save_IFS 5005case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5006 5007 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5009$as_echo_n "checking host system type... " >&6; } 5010if test "${ac_cv_host+set}" = set; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 if test "x$host_alias" = x; then 5014 ac_cv_host=$ac_cv_build 5015else 5016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5017 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5018fi 5019 5020fi 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5022$as_echo "$ac_cv_host" >&6; } 5023case $ac_cv_host in 5024*-*-*) ;; 5025*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 5026esac 5027host=$ac_cv_host 5028ac_save_IFS=$IFS; IFS='-' 5029set x $ac_cv_host 5030shift 5031host_cpu=$1 5032host_vendor=$2 5033shift; shift 5034# Remember, the first character of IFS is used to create $*, 5035# except with old shells: 5036host_os=$* 5037IFS=$ac_save_IFS 5038case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5039 5040 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5042$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5043if test "${lt_cv_path_SED+set}" = set; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 # Loop through the user's path and test for sed and gsed. 5047# Then use that list of sed's as ones to test for truncation. 5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5049for as_dir in $PATH 5050do 5051 IFS=$as_save_IFS 5052 test -z "$as_dir" && as_dir=. 5053 for lt_ac_prog in sed gsed; do 5054 for ac_exec_ext in '' $ac_executable_extensions; do 5055 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5056 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5057 fi 5058 done 5059 done 5060done 5061lt_ac_max=0 5062lt_ac_count=0 5063# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5064# along with /bin/sed that truncates output. 5065for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5066 test ! -f $lt_ac_sed && continue 5067 cat /dev/null > conftest.in 5068 lt_ac_count=0 5069 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5070 # Check for GNU sed and select it if it is found. 5071 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5072 lt_cv_path_SED=$lt_ac_sed 5073 break 5074 fi 5075 while true; do 5076 cat conftest.in conftest.in >conftest.tmp 5077 mv conftest.tmp conftest.in 5078 cp conftest.in conftest.nl 5079 echo >>conftest.nl 5080 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5081 cmp -s conftest.out conftest.nl || break 5082 # 10000 chars as input seems more than enough 5083 test $lt_ac_count -gt 10 && break 5084 lt_ac_count=`expr $lt_ac_count + 1` 5085 if test $lt_ac_count -gt $lt_ac_max; then 5086 lt_ac_max=$lt_ac_count 5087 lt_cv_path_SED=$lt_ac_sed 5088 fi 5089 done 5090done 5091 5092fi 5093 5094SED=$lt_cv_path_SED 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 5096$as_echo "$SED" >&6; } 5097 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5099$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5100if test "${ac_cv_path_GREP+set}" = set; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 if test -z "$GREP"; then 5104 ac_path_GREP_found=false 5105 # Loop through the user's path and test for each of PROGNAME-LIST 5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5108do 5109 IFS=$as_save_IFS 5110 test -z "$as_dir" && as_dir=. 5111 for ac_prog in grep ggrep; do 5112 for ac_exec_ext in '' $ac_executable_extensions; do 5113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5114 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5115# Check for GNU ac_path_GREP and select it if it is found. 5116 # Check for GNU $ac_path_GREP 5117case `"$ac_path_GREP" --version 2>&1` in 5118*GNU*) 5119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5120*) 5121 ac_count=0 5122 $as_echo_n 0123456789 >"conftest.in" 5123 while : 5124 do 5125 cat "conftest.in" "conftest.in" >"conftest.tmp" 5126 mv "conftest.tmp" "conftest.in" 5127 cp "conftest.in" "conftest.nl" 5128 $as_echo 'GREP' >> "conftest.nl" 5129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5131 as_fn_arith $ac_count + 1 && ac_count=$as_val 5132 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5133 # Best one so far, save it but keep looking for a better one 5134 ac_cv_path_GREP="$ac_path_GREP" 5135 ac_path_GREP_max=$ac_count 5136 fi 5137 # 10*(2^10) chars as input seems more than enough 5138 test $ac_count -gt 10 && break 5139 done 5140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5141esac 5142 5143 $ac_path_GREP_found && break 3 5144 done 5145 done 5146 done 5147IFS=$as_save_IFS 5148 if test -z "$ac_cv_path_GREP"; then 5149 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5150 fi 5151else 5152 ac_cv_path_GREP=$GREP 5153fi 5154 5155fi 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5157$as_echo "$ac_cv_path_GREP" >&6; } 5158 GREP="$ac_cv_path_GREP" 5159 5160 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5162$as_echo_n "checking for egrep... " >&6; } 5163if test "${ac_cv_path_EGREP+set}" = set; then : 5164 $as_echo_n "(cached) " >&6 5165else 5166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5167 then ac_cv_path_EGREP="$GREP -E" 5168 else 5169 if test -z "$EGREP"; then 5170 ac_path_EGREP_found=false 5171 # Loop through the user's path and test for each of PROGNAME-LIST 5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5174do 5175 IFS=$as_save_IFS 5176 test -z "$as_dir" && as_dir=. 5177 for ac_prog in egrep; do 5178 for ac_exec_ext in '' $ac_executable_extensions; do 5179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5181# Check for GNU ac_path_EGREP and select it if it is found. 5182 # Check for GNU $ac_path_EGREP 5183case `"$ac_path_EGREP" --version 2>&1` in 5184*GNU*) 5185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5186*) 5187 ac_count=0 5188 $as_echo_n 0123456789 >"conftest.in" 5189 while : 5190 do 5191 cat "conftest.in" "conftest.in" >"conftest.tmp" 5192 mv "conftest.tmp" "conftest.in" 5193 cp "conftest.in" "conftest.nl" 5194 $as_echo 'EGREP' >> "conftest.nl" 5195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5197 as_fn_arith $ac_count + 1 && ac_count=$as_val 5198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5199 # Best one so far, save it but keep looking for a better one 5200 ac_cv_path_EGREP="$ac_path_EGREP" 5201 ac_path_EGREP_max=$ac_count 5202 fi 5203 # 10*(2^10) chars as input seems more than enough 5204 test $ac_count -gt 10 && break 5205 done 5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5207esac 5208 5209 $ac_path_EGREP_found && break 3 5210 done 5211 done 5212 done 5213IFS=$as_save_IFS 5214 if test -z "$ac_cv_path_EGREP"; then 5215 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5216 fi 5217else 5218 ac_cv_path_EGREP=$EGREP 5219fi 5220 5221 fi 5222fi 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5224$as_echo "$ac_cv_path_EGREP" >&6; } 5225 EGREP="$ac_cv_path_EGREP" 5226 5227 5228 5229# Check whether --with-gnu-ld was given. 5230if test "${with_gnu_ld+set}" = set; then : 5231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5232else 5233 with_gnu_ld=no 5234fi 5235 5236ac_prog=ld 5237if test "$GCC" = yes; then 5238 # Check if gcc -print-prog-name=ld gives a path. 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5240$as_echo_n "checking for ld used by $CC... " >&6; } 5241 case $host in 5242 *-*-mingw*) 5243 # gcc leaves a trailing carriage return which upsets mingw 5244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5245 *) 5246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5247 esac 5248 case $ac_prog in 5249 # Accept absolute paths. 5250 [\\/]* | ?:[\\/]*) 5251 re_direlt='/[^/][^/]*/\.\./' 5252 # Canonicalize the pathname of ld 5253 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5254 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5255 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5256 done 5257 test -z "$LD" && LD="$ac_prog" 5258 ;; 5259 "") 5260 # If it fails, then pretend we aren't using GCC. 5261 ac_prog=ld 5262 ;; 5263 *) 5264 # If it is relative, then search for the first ld in PATH. 5265 with_gnu_ld=unknown 5266 ;; 5267 esac 5268elif test "$with_gnu_ld" = yes; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5270$as_echo_n "checking for GNU ld... " >&6; } 5271else 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5273$as_echo_n "checking for non-GNU ld... " >&6; } 5274fi 5275if test "${lt_cv_path_LD+set}" = set; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 if test -z "$LD"; then 5279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5280 for ac_dir in $PATH; do 5281 IFS="$lt_save_ifs" 5282 test -z "$ac_dir" && ac_dir=. 5283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5284 lt_cv_path_LD="$ac_dir/$ac_prog" 5285 # Check to see if the program is GNU ld. I'd rather use --version, 5286 # but apparently some variants of GNU ld only accept -v. 5287 # Break only if it was the GNU/non-GNU ld that we prefer. 5288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5289 *GNU* | *'with BFD'*) 5290 test "$with_gnu_ld" != no && break 5291 ;; 5292 *) 5293 test "$with_gnu_ld" != yes && break 5294 ;; 5295 esac 5296 fi 5297 done 5298 IFS="$lt_save_ifs" 5299else 5300 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5301fi 5302fi 5303 5304LD="$lt_cv_path_LD" 5305if test -n "$LD"; then 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5307$as_echo "$LD" >&6; } 5308else 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5310$as_echo "no" >&6; } 5311fi 5312test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5314$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5315if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5316 $as_echo_n "(cached) " >&6 5317else 5318 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5319case `$LD -v 2>&1 </dev/null` in 5320*GNU* | *'with BFD'*) 5321 lt_cv_prog_gnu_ld=yes 5322 ;; 5323*) 5324 lt_cv_prog_gnu_ld=no 5325 ;; 5326esac 5327fi 5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5329$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5330with_gnu_ld=$lt_cv_prog_gnu_ld 5331 5332 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5334$as_echo_n "checking for $LD option to reload object files... " >&6; } 5335if test "${lt_cv_ld_reload_flag+set}" = set; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 lt_cv_ld_reload_flag='-r' 5339fi 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5341$as_echo "$lt_cv_ld_reload_flag" >&6; } 5342reload_flag=$lt_cv_ld_reload_flag 5343case $reload_flag in 5344"" | " "*) ;; 5345*) reload_flag=" $reload_flag" ;; 5346esac 5347reload_cmds='$LD$reload_flag -o $output$reload_objs' 5348case $host_os in 5349 darwin*) 5350 if test "$GCC" = yes; then 5351 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5352 else 5353 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5354 fi 5355 ;; 5356esac 5357 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 5359$as_echo_n "checking for BSD-compatible nm... " >&6; } 5360if test "${lt_cv_path_NM+set}" = set; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 if test -n "$NM"; then 5364 # Let the user override the test. 5365 lt_cv_path_NM="$NM" 5366else 5367 lt_nm_to_check="${ac_tool_prefix}nm" 5368 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5369 lt_nm_to_check="$lt_nm_to_check nm" 5370 fi 5371 for lt_tmp_nm in $lt_nm_to_check; do 5372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5373 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5374 IFS="$lt_save_ifs" 5375 test -z "$ac_dir" && ac_dir=. 5376 tmp_nm="$ac_dir/$lt_tmp_nm" 5377 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5378 # Check to see if the nm accepts a BSD-compat flag. 5379 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5380 # nm: unknown option "B" ignored 5381 # Tru64's nm complains that /dev/null is an invalid object file 5382 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5383 */dev/null* | *'Invalid file or object type'*) 5384 lt_cv_path_NM="$tmp_nm -B" 5385 break 5386 ;; 5387 *) 5388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5389 */dev/null*) 5390 lt_cv_path_NM="$tmp_nm -p" 5391 break 5392 ;; 5393 *) 5394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5395 continue # so that we can try to find one that supports BSD flags 5396 ;; 5397 esac 5398 ;; 5399 esac 5400 fi 5401 done 5402 IFS="$lt_save_ifs" 5403 done 5404 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5405fi 5406fi 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5408$as_echo "$lt_cv_path_NM" >&6; } 5409NM="$lt_cv_path_NM" 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5412$as_echo_n "checking whether ln -s works... " >&6; } 5413LN_S=$as_ln_s 5414if test "$LN_S" = "ln -s"; then 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5416$as_echo "yes" >&6; } 5417else 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5419$as_echo "no, using $LN_S" >&6; } 5420fi 5421 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5 5423$as_echo_n "checking how to recognise dependent libraries... " >&6; } 5424if test "${lt_cv_deplibs_check_method+set}" = set; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 lt_cv_file_magic_cmd='$MAGIC_CMD' 5428lt_cv_file_magic_test_file= 5429lt_cv_deplibs_check_method='unknown' 5430# Need to set the preceding variable on all platforms that support 5431# interlibrary dependencies. 5432# 'none' -- dependencies not supported. 5433# `unknown' -- same as none, but documents that we really don't know. 5434# 'pass_all' -- all dependencies passed with no checks. 5435# 'test_compile' -- check by making test program. 5436# 'file_magic [[regex]]' -- check by looking for files in library path 5437# which responds to the $file_magic_cmd with a given extended regex. 5438# If you have `file' or equivalent on your system and you're not sure 5439# whether `pass_all' will *always* work, you probably want this one. 5440 5441case $host_os in 5442aix4* | aix5*) 5443 lt_cv_deplibs_check_method=pass_all 5444 ;; 5445 5446beos*) 5447 lt_cv_deplibs_check_method=pass_all 5448 ;; 5449 5450bsdi[45]*) 5451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5452 lt_cv_file_magic_cmd='/usr/bin/file -L' 5453 lt_cv_file_magic_test_file=/shlib/libc.so 5454 ;; 5455 5456cygwin*) 5457 # func_win32_libid is a shell function defined in ltmain.sh 5458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5459 lt_cv_file_magic_cmd='func_win32_libid' 5460 ;; 5461 5462mingw* | pw32*) 5463 # Base MSYS/MinGW do not provide the 'file' command needed by 5464 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5465 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5466 lt_cv_file_magic_cmd='$OBJDUMP -f' 5467 ;; 5468 5469darwin* | rhapsody*) 5470 lt_cv_deplibs_check_method=pass_all 5471 ;; 5472 5473freebsd* | kfreebsd*-gnu | dragonfly*) 5474 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5475 case $host_cpu in 5476 i*86 ) 5477 # Not sure whether the presence of OpenBSD here was a mistake. 5478 # Let's accept both of them until this is cleared up. 5479 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5480 lt_cv_file_magic_cmd=/usr/bin/file 5481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5482 ;; 5483 esac 5484 else 5485 lt_cv_deplibs_check_method=pass_all 5486 fi 5487 ;; 5488 5489gnu*) 5490 lt_cv_deplibs_check_method=pass_all 5491 ;; 5492 5493hpux10.20* | hpux11*) 5494 lt_cv_file_magic_cmd=/usr/bin/file 5495 case $host_cpu in 5496 ia64*) 5497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5498 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5499 ;; 5500 hppa*64*) 5501 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]' 5502 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5503 ;; 5504 *) 5505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5506 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5507 ;; 5508 esac 5509 ;; 5510 5511interix3*) 5512 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5514 ;; 5515 5516irix5* | irix6* | nonstopux*) 5517 case $LD in 5518 *-32|*"-32 ") libmagic=32-bit;; 5519 *-n32|*"-n32 ") libmagic=N32;; 5520 *-64|*"-64 ") libmagic=64-bit;; 5521 *) libmagic=never-match;; 5522 esac 5523 lt_cv_deplibs_check_method=pass_all 5524 ;; 5525 5526# This must be Linux ELF. 5527linux*) 5528 lt_cv_deplibs_check_method=pass_all 5529 ;; 5530 5531netbsd*) 5532 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5534 else 5535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5536 fi 5537 ;; 5538 5539newos6*) 5540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5541 lt_cv_file_magic_cmd=/usr/bin/file 5542 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5543 ;; 5544 5545nto-qnx*) 5546 lt_cv_deplibs_check_method=unknown 5547 ;; 5548 5549openbsd*) 5550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5552 else 5553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5554 fi 5555 ;; 5556 5557osf3* | osf4* | osf5*) 5558 lt_cv_deplibs_check_method=pass_all 5559 ;; 5560 5561solaris*) 5562 lt_cv_deplibs_check_method=pass_all 5563 ;; 5564 5565sysv4 | sysv4.3*) 5566 case $host_vendor in 5567 motorola) 5568 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]' 5569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5570 ;; 5571 ncr) 5572 lt_cv_deplibs_check_method=pass_all 5573 ;; 5574 sequent) 5575 lt_cv_file_magic_cmd='/bin/file' 5576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5577 ;; 5578 sni) 5579 lt_cv_file_magic_cmd='/bin/file' 5580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5581 lt_cv_file_magic_test_file=/lib/libc.so 5582 ;; 5583 siemens) 5584 lt_cv_deplibs_check_method=pass_all 5585 ;; 5586 pc) 5587 lt_cv_deplibs_check_method=pass_all 5588 ;; 5589 esac 5590 ;; 5591 5592sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5593 lt_cv_deplibs_check_method=pass_all 5594 ;; 5595esac 5596 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5599$as_echo "$lt_cv_deplibs_check_method" >&6; } 5600file_magic_cmd=$lt_cv_file_magic_cmd 5601deplibs_check_method=$lt_cv_deplibs_check_method 5602test -z "$deplibs_check_method" && deplibs_check_method=unknown 5603 5604 5605 5606 5607# If no C compiler was specified, use CC. 5608LTCC=${LTCC-"$CC"} 5609 5610# If no C compiler flags were specified, use CFLAGS. 5611LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5612 5613# Allow CC to be a program name with arguments. 5614compiler=$CC 5615 5616# Check whether --enable-libtool-lock was given. 5617if test "${enable_libtool_lock+set}" = set; then : 5618 enableval=$enable_libtool_lock; 5619fi 5620 5621test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5622 5623# Some flags need to be propagated to the compiler or linker for good 5624# libtool support. 5625case $host in 5626ia64-*-hpux*) 5627 # Find out which ABI we are using. 5628 echo 'int i;' > conftest.$ac_ext 5629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5630 (eval $ac_compile) 2>&5 5631 ac_status=$? 5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5633 test $ac_status = 0; }; then 5634 case `/usr/bin/file conftest.$ac_objext` in 5635 *ELF-32*) 5636 HPUX_IA64_MODE="32" 5637 ;; 5638 *ELF-64*) 5639 HPUX_IA64_MODE="64" 5640 ;; 5641 esac 5642 fi 5643 rm -rf conftest* 5644 ;; 5645*-*-irix6*) 5646 # Find out which ABI we are using. 5647 echo '#line 5647 "configure"' > conftest.$ac_ext 5648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5649 (eval $ac_compile) 2>&5 5650 ac_status=$? 5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5652 test $ac_status = 0; }; then 5653 if test "$lt_cv_prog_gnu_ld" = yes; then 5654 case `/usr/bin/file conftest.$ac_objext` in 5655 *32-bit*) 5656 LD="${LD-ld} -melf32bsmip" 5657 ;; 5658 *N32*) 5659 LD="${LD-ld} -melf32bmipn32" 5660 ;; 5661 *64-bit*) 5662 LD="${LD-ld} -melf64bmip" 5663 ;; 5664 esac 5665 else 5666 case `/usr/bin/file conftest.$ac_objext` in 5667 *32-bit*) 5668 LD="${LD-ld} -32" 5669 ;; 5670 *N32*) 5671 LD="${LD-ld} -n32" 5672 ;; 5673 *64-bit*) 5674 LD="${LD-ld} -64" 5675 ;; 5676 esac 5677 fi 5678 fi 5679 rm -rf conftest* 5680 ;; 5681 5682x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5683 # Find out which ABI we are using. 5684 echo 'int i;' > conftest.$ac_ext 5685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5686 (eval $ac_compile) 2>&5 5687 ac_status=$? 5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5689 test $ac_status = 0; }; then 5690 case `/usr/bin/file conftest.o` in 5691 *32-bit*) 5692 case $host in 5693 x86_64-*linux*) 5694 LD="${LD-ld} -m elf_i386" 5695 ;; 5696 ppc64-*linux*|powerpc64-*linux*) 5697 LD="${LD-ld} -m elf32ppclinux" 5698 ;; 5699 s390x-*linux*) 5700 LD="${LD-ld} -m elf_s390" 5701 ;; 5702 sparc64-*linux*) 5703 LD="${LD-ld} -m elf32_sparc" 5704 ;; 5705 esac 5706 ;; 5707 *64-bit*) 5708 case $host in 5709 x86_64-*linux*) 5710 LD="${LD-ld} -m elf_x86_64" 5711 ;; 5712 ppc*-*linux*|powerpc*-*linux*) 5713 LD="${LD-ld} -m elf64ppc" 5714 ;; 5715 s390*-*linux*) 5716 LD="${LD-ld} -m elf64_s390" 5717 ;; 5718 sparc*-*linux*) 5719 LD="${LD-ld} -m elf64_sparc" 5720 ;; 5721 esac 5722 ;; 5723 esac 5724 fi 5725 rm -rf conftest* 5726 ;; 5727 5728*-*-sco3.2v5*) 5729 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5730 SAVE_CFLAGS="$CFLAGS" 5731 CFLAGS="$CFLAGS -belf" 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5733$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5734if test "${lt_cv_cc_needs_belf+set}" = set; then : 5735 $as_echo_n "(cached) " >&6 5736else 5737 ac_ext=c 5738ac_cpp='$CPP $CPPFLAGS' 5739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5741ac_compiler_gnu=$ac_cv_c_compiler_gnu 5742 5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5744/* end confdefs.h. */ 5745 5746int 5747main () 5748{ 5749 5750 ; 5751 return 0; 5752} 5753_ACEOF 5754if ac_fn_c_try_link "$LINENO"; then : 5755 lt_cv_cc_needs_belf=yes 5756else 5757 lt_cv_cc_needs_belf=no 5758fi 5759rm -f core conftest.err conftest.$ac_objext \ 5760 conftest$ac_exeext conftest.$ac_ext 5761 ac_ext=c 5762ac_cpp='$CPP $CPPFLAGS' 5763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5765ac_compiler_gnu=$ac_cv_c_compiler_gnu 5766 5767fi 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5769$as_echo "$lt_cv_cc_needs_belf" >&6; } 5770 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5771 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5772 CFLAGS="$SAVE_CFLAGS" 5773 fi 5774 ;; 5775sparc*-*solaris*) 5776 # Find out which ABI we are using. 5777 echo 'int i;' > conftest.$ac_ext 5778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5779 (eval $ac_compile) 2>&5 5780 ac_status=$? 5781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5782 test $ac_status = 0; }; then 5783 case `/usr/bin/file conftest.o` in 5784 *64-bit*) 5785 case $lt_cv_prog_gnu_ld in 5786 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5787 *) LD="${LD-ld} -64" ;; 5788 esac 5789 ;; 5790 esac 5791 fi 5792 rm -rf conftest* 5793 ;; 5794 5795 5796esac 5797 5798need_locks="$enable_libtool_lock" 5799 5800 5801ac_ext=c 5802ac_cpp='$CPP $CPPFLAGS' 5803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5805ac_compiler_gnu=$ac_cv_c_compiler_gnu 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5807$as_echo_n "checking how to run the C preprocessor... " >&6; } 5808# On Suns, sometimes $CPP names a directory. 5809if test -n "$CPP" && test -d "$CPP"; then 5810 CPP= 5811fi 5812if test -z "$CPP"; then 5813 if test "${ac_cv_prog_CPP+set}" = set; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 # Double quotes because CPP needs to be expanded 5817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5818 do 5819 ac_preproc_ok=false 5820for ac_c_preproc_warn_flag in '' yes 5821do 5822 # Use a header file that comes with gcc, so configuring glibc 5823 # with a fresh cross-compiler works. 5824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5825 # <limits.h> exists even on freestanding compilers. 5826 # On the NeXT, cc -E runs the code through the compiler's parser, 5827 # not just through cpp. "Syntax error" is here to catch this case. 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829/* end confdefs.h. */ 5830#ifdef __STDC__ 5831# include <limits.h> 5832#else 5833# include <assert.h> 5834#endif 5835 Syntax error 5836_ACEOF 5837if ac_fn_c_try_cpp "$LINENO"; then : 5838 5839else 5840 # Broken: fails on valid input. 5841continue 5842fi 5843rm -f conftest.err conftest.$ac_ext 5844 5845 # OK, works on sane cases. Now check whether nonexistent headers 5846 # can be detected and how. 5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848/* end confdefs.h. */ 5849#include <ac_nonexistent.h> 5850_ACEOF 5851if ac_fn_c_try_cpp "$LINENO"; then : 5852 # Broken: success on invalid input. 5853continue 5854else 5855 # Passes both tests. 5856ac_preproc_ok=: 5857break 5858fi 5859rm -f conftest.err conftest.$ac_ext 5860 5861done 5862# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5863rm -f conftest.err conftest.$ac_ext 5864if $ac_preproc_ok; then : 5865 break 5866fi 5867 5868 done 5869 ac_cv_prog_CPP=$CPP 5870 5871fi 5872 CPP=$ac_cv_prog_CPP 5873else 5874 ac_cv_prog_CPP=$CPP 5875fi 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5877$as_echo "$CPP" >&6; } 5878ac_preproc_ok=false 5879for ac_c_preproc_warn_flag in '' yes 5880do 5881 # Use a header file that comes with gcc, so configuring glibc 5882 # with a fresh cross-compiler works. 5883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5884 # <limits.h> exists even on freestanding compilers. 5885 # On the NeXT, cc -E runs the code through the compiler's parser, 5886 # not just through cpp. "Syntax error" is here to catch this case. 5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888/* end confdefs.h. */ 5889#ifdef __STDC__ 5890# include <limits.h> 5891#else 5892# include <assert.h> 5893#endif 5894 Syntax error 5895_ACEOF 5896if ac_fn_c_try_cpp "$LINENO"; then : 5897 5898else 5899 # Broken: fails on valid input. 5900continue 5901fi 5902rm -f conftest.err conftest.$ac_ext 5903 5904 # OK, works on sane cases. Now check whether nonexistent headers 5905 # can be detected and how. 5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907/* end confdefs.h. */ 5908#include <ac_nonexistent.h> 5909_ACEOF 5910if ac_fn_c_try_cpp "$LINENO"; then : 5911 # Broken: success on invalid input. 5912continue 5913else 5914 # Passes both tests. 5915ac_preproc_ok=: 5916break 5917fi 5918rm -f conftest.err conftest.$ac_ext 5919 5920done 5921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5922rm -f conftest.err conftest.$ac_ext 5923if $ac_preproc_ok; then : 5924 5925else 5926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5928as_fn_error "C preprocessor \"$CPP\" fails sanity check 5929See \`config.log' for more details." "$LINENO" 5; } 5930fi 5931 5932ac_ext=c 5933ac_cpp='$CPP $CPPFLAGS' 5934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5936ac_compiler_gnu=$ac_cv_c_compiler_gnu 5937 5938 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5940$as_echo_n "checking for ANSI C header files... " >&6; } 5941if test "${ac_cv_header_stdc+set}" = set; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5945/* end confdefs.h. */ 5946#include <stdlib.h> 5947#include <stdarg.h> 5948#include <string.h> 5949#include <float.h> 5950 5951int 5952main () 5953{ 5954 5955 ; 5956 return 0; 5957} 5958_ACEOF 5959if ac_fn_c_try_compile "$LINENO"; then : 5960 ac_cv_header_stdc=yes 5961else 5962 ac_cv_header_stdc=no 5963fi 5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5965 5966if test $ac_cv_header_stdc = yes; then 5967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5969/* end confdefs.h. */ 5970#include <string.h> 5971 5972_ACEOF 5973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5974 $EGREP "memchr" >/dev/null 2>&1; then : 5975 5976else 5977 ac_cv_header_stdc=no 5978fi 5979rm -f conftest* 5980 5981fi 5982 5983if test $ac_cv_header_stdc = yes; then 5984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986/* end confdefs.h. */ 5987#include <stdlib.h> 5988 5989_ACEOF 5990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5991 $EGREP "free" >/dev/null 2>&1; then : 5992 5993else 5994 ac_cv_header_stdc=no 5995fi 5996rm -f conftest* 5997 5998fi 5999 6000if test $ac_cv_header_stdc = yes; then 6001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6002 if test "$cross_compiling" = yes; then : 6003 : 6004else 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006/* end confdefs.h. */ 6007#include <ctype.h> 6008#include <stdlib.h> 6009#if ((' ' & 0x0FF) == 0x020) 6010# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6011# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6012#else 6013# define ISLOWER(c) \ 6014 (('a' <= (c) && (c) <= 'i') \ 6015 || ('j' <= (c) && (c) <= 'r') \ 6016 || ('s' <= (c) && (c) <= 'z')) 6017# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6018#endif 6019 6020#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6021int 6022main () 6023{ 6024 int i; 6025 for (i = 0; i < 256; i++) 6026 if (XOR (islower (i), ISLOWER (i)) 6027 || toupper (i) != TOUPPER (i)) 6028 return 2; 6029 return 0; 6030} 6031_ACEOF 6032if ac_fn_c_try_run "$LINENO"; then : 6033 6034else 6035 ac_cv_header_stdc=no 6036fi 6037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6038 conftest.$ac_objext conftest.beam conftest.$ac_ext 6039fi 6040 6041fi 6042fi 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6044$as_echo "$ac_cv_header_stdc" >&6; } 6045if test $ac_cv_header_stdc = yes; then 6046 6047$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6048 6049fi 6050 6051# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6052for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6053 inttypes.h stdint.h unistd.h 6054do : 6055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6056ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6057" 6058eval as_val=\$$as_ac_Header 6059 if test "x$as_val" = x""yes; then : 6060 cat >>confdefs.h <<_ACEOF 6061#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6062_ACEOF 6063 6064fi 6065 6066done 6067 6068 6069for ac_header in dlfcn.h 6070do : 6071 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 6072if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6073 cat >>confdefs.h <<_ACEOF 6074#define HAVE_DLFCN_H 1 6075_ACEOF 6076 6077fi 6078 6079done 6080 6081ac_ext=cpp 6082ac_cpp='$CXXCPP $CPPFLAGS' 6083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6086if test -z "$CXX"; then 6087 if test -n "$CCC"; then 6088 CXX=$CCC 6089 else 6090 if test -n "$ac_tool_prefix"; then 6091 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6092 do 6093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6094set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6096$as_echo_n "checking for $ac_word... " >&6; } 6097if test "${ac_cv_prog_CXX+set}" = set; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 if test -n "$CXX"; then 6101 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6102else 6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104for as_dir in $PATH 6105do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6110 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114done 6115 done 6116IFS=$as_save_IFS 6117 6118fi 6119fi 6120CXX=$ac_cv_prog_CXX 6121if test -n "$CXX"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6123$as_echo "$CXX" >&6; } 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 6129 6130 test -n "$CXX" && break 6131 done 6132fi 6133if test -z "$CXX"; then 6134 ac_ct_CXX=$CXX 6135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6136do 6137 # Extract the first word of "$ac_prog", so it can be a program name with args. 6138set dummy $ac_prog; ac_word=$2 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6140$as_echo_n "checking for $ac_word... " >&6; } 6141if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 6142 $as_echo_n "(cached) " >&6 6143else 6144 if test -n "$ac_ct_CXX"; then 6145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6146else 6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6148for as_dir in $PATH 6149do 6150 IFS=$as_save_IFS 6151 test -z "$as_dir" && as_dir=. 6152 for ac_exec_ext in '' $ac_executable_extensions; do 6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6154 ac_cv_prog_ac_ct_CXX="$ac_prog" 6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6156 break 2 6157 fi 6158done 6159 done 6160IFS=$as_save_IFS 6161 6162fi 6163fi 6164ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6165if test -n "$ac_ct_CXX"; then 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6167$as_echo "$ac_ct_CXX" >&6; } 6168else 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6170$as_echo "no" >&6; } 6171fi 6172 6173 6174 test -n "$ac_ct_CXX" && break 6175done 6176 6177 if test "x$ac_ct_CXX" = x; then 6178 CXX="g++" 6179 else 6180 case $cross_compiling:$ac_tool_warned in 6181yes:) 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6184ac_tool_warned=yes ;; 6185esac 6186 CXX=$ac_ct_CXX 6187 fi 6188fi 6189 6190 fi 6191fi 6192# Provide some information about the compiler. 6193$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6194set X $ac_compile 6195ac_compiler=$2 6196for ac_option in --version -v -V -qversion; do 6197 { { ac_try="$ac_compiler $ac_option >&5" 6198case "(($ac_try" in 6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6200 *) ac_try_echo=$ac_try;; 6201esac 6202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6203$as_echo "$ac_try_echo"; } >&5 6204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6205 ac_status=$? 6206 if test -s conftest.err; then 6207 sed '10a\ 6208... rest of stderr output deleted ... 6209 10q' conftest.err >conftest.er1 6210 cat conftest.er1 >&5 6211 fi 6212 rm -f conftest.er1 conftest.err 6213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6214 test $ac_status = 0; } 6215done 6216 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6218$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6219if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 6220 $as_echo_n "(cached) " >&6 6221else 6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224 6225int 6226main () 6227{ 6228#ifndef __GNUC__ 6229 choke me 6230#endif 6231 6232 ; 6233 return 0; 6234} 6235_ACEOF 6236if ac_fn_cxx_try_compile "$LINENO"; then : 6237 ac_compiler_gnu=yes 6238else 6239 ac_compiler_gnu=no 6240fi 6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6242ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6243 6244fi 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6246$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6247if test $ac_compiler_gnu = yes; then 6248 GXX=yes 6249else 6250 GXX= 6251fi 6252ac_test_CXXFLAGS=${CXXFLAGS+set} 6253ac_save_CXXFLAGS=$CXXFLAGS 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6255$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6256if test "${ac_cv_prog_cxx_g+set}" = set; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6260 ac_cxx_werror_flag=yes 6261 ac_cv_prog_cxx_g=no 6262 CXXFLAGS="-g" 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265 6266int 6267main () 6268{ 6269 6270 ; 6271 return 0; 6272} 6273_ACEOF 6274if ac_fn_cxx_try_compile "$LINENO"; then : 6275 ac_cv_prog_cxx_g=yes 6276else 6277 CXXFLAGS="" 6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279/* end confdefs.h. */ 6280 6281int 6282main () 6283{ 6284 6285 ; 6286 return 0; 6287} 6288_ACEOF 6289if ac_fn_cxx_try_compile "$LINENO"; then : 6290 6291else 6292 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6293 CXXFLAGS="-g" 6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6295/* end confdefs.h. */ 6296 6297int 6298main () 6299{ 6300 6301 ; 6302 return 0; 6303} 6304_ACEOF 6305if ac_fn_cxx_try_compile "$LINENO"; then : 6306 ac_cv_prog_cxx_g=yes 6307fi 6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6309fi 6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6311fi 6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6314fi 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6316$as_echo "$ac_cv_prog_cxx_g" >&6; } 6317if test "$ac_test_CXXFLAGS" = set; then 6318 CXXFLAGS=$ac_save_CXXFLAGS 6319elif test $ac_cv_prog_cxx_g = yes; then 6320 if test "$GXX" = yes; then 6321 CXXFLAGS="-g -O2" 6322 else 6323 CXXFLAGS="-g" 6324 fi 6325else 6326 if test "$GXX" = yes; then 6327 CXXFLAGS="-O2" 6328 else 6329 CXXFLAGS= 6330 fi 6331fi 6332ac_ext=cpp 6333ac_cpp='$CXXCPP $CPPFLAGS' 6334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6337 6338depcc="$CXX" am_compiler_list= 6339 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6341$as_echo_n "checking dependency style of $depcc... " >&6; } 6342if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6346 # We make a subdir and do the tests there. Otherwise we can end up 6347 # making bogus files that we don't know about and never remove. For 6348 # instance it was reported that on HP-UX the gcc test will end up 6349 # making a dummy file named `D' -- because `-MD' means `put the output 6350 # in D'. 6351 mkdir conftest.dir 6352 # Copy depcomp to subdir because otherwise we won't find it if we're 6353 # using a relative directory. 6354 cp "$am_depcomp" conftest.dir 6355 cd conftest.dir 6356 # We will build objects and dependencies in a subdirectory because 6357 # it helps to detect inapplicable dependency modes. For instance 6358 # both Tru64's cc and ICC support -MD to output dependencies as a 6359 # side effect of compilation, but ICC will put the dependencies in 6360 # the current directory while Tru64 will put them in the object 6361 # directory. 6362 mkdir sub 6363 6364 am_cv_CXX_dependencies_compiler_type=none 6365 if test "$am_compiler_list" = ""; then 6366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6367 fi 6368 for depmode in $am_compiler_list; do 6369 # Setup a source with many dependencies, because some compilers 6370 # like to wrap large dependency lists on column 80 (with \), and 6371 # we should not choose a depcomp mode which is confused by this. 6372 # 6373 # We need to recreate these files for each test, as the compiler may 6374 # overwrite some of them when testing with obscure command lines. 6375 # This happens at least with the AIX C compiler. 6376 : > sub/conftest.c 6377 for i in 1 2 3 4 5 6; do 6378 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6379 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6380 # Solaris 8's {/usr,}/bin/sh. 6381 touch sub/conftst$i.h 6382 done 6383 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6384 6385 case $depmode in 6386 nosideeffect) 6387 # after this tag, mechanisms are not by side-effect, so they'll 6388 # only be used when explicitly requested 6389 if test "x$enable_dependency_tracking" = xyes; then 6390 continue 6391 else 6392 break 6393 fi 6394 ;; 6395 none) break ;; 6396 esac 6397 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6398 # mode. It turns out that the SunPro C++ compiler does not properly 6399 # handle `-M -o', and we need to detect this. 6400 if depmode=$depmode \ 6401 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6402 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6403 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6404 >/dev/null 2>conftest.err && 6405 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6406 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6407 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6408 # icc doesn't choke on unknown options, it will just issue warnings 6409 # or remarks (even with -Werror). So we grep stderr for any message 6410 # that says an option was ignored or not supported. 6411 # When given -MP, icc 7.0 and 7.1 complain thusly: 6412 # icc: Command line warning: ignoring option '-M'; no argument required 6413 # The diagnosis changed in icc 8.0: 6414 # icc: Command line remark: option '-MP' not supported 6415 if (grep 'ignoring option' conftest.err || 6416 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6417 am_cv_CXX_dependencies_compiler_type=$depmode 6418 break 6419 fi 6420 fi 6421 done 6422 6423 cd .. 6424 rm -rf conftest.dir 6425else 6426 am_cv_CXX_dependencies_compiler_type=none 6427fi 6428 6429fi 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6431$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6432CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6433 6434 6435 6436if 6437 test "x$enable_dependency_tracking" != xno \ 6438 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6439 am__fastdepCXX_TRUE= 6440 am__fastdepCXX_FALSE='#' 6441else 6442 am__fastdepCXX_TRUE='#' 6443 am__fastdepCXX_FALSE= 6444fi 6445 6446 6447 6448 6449if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6450 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6451 (test "X$CXX" != "Xg++"))) ; then 6452 ac_ext=cpp 6453ac_cpp='$CXXCPP $CPPFLAGS' 6454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 6458$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6459if test -z "$CXXCPP"; then 6460 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 6461 $as_echo_n "(cached) " >&6 6462else 6463 # Double quotes because CXXCPP needs to be expanded 6464 for CXXCPP in "$CXX -E" "/lib/cpp" 6465 do 6466 ac_preproc_ok=false 6467for ac_cxx_preproc_warn_flag in '' yes 6468do 6469 # Use a header file that comes with gcc, so configuring glibc 6470 # with a fresh cross-compiler works. 6471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6472 # <limits.h> exists even on freestanding compilers. 6473 # On the NeXT, cc -E runs the code through the compiler's parser, 6474 # not just through cpp. "Syntax error" is here to catch this case. 6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476/* end confdefs.h. */ 6477#ifdef __STDC__ 6478# include <limits.h> 6479#else 6480# include <assert.h> 6481#endif 6482 Syntax error 6483_ACEOF 6484if ac_fn_cxx_try_cpp "$LINENO"; then : 6485 6486else 6487 # Broken: fails on valid input. 6488continue 6489fi 6490rm -f conftest.err conftest.$ac_ext 6491 6492 # OK, works on sane cases. Now check whether nonexistent headers 6493 # can be detected and how. 6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6495/* end confdefs.h. */ 6496#include <ac_nonexistent.h> 6497_ACEOF 6498if ac_fn_cxx_try_cpp "$LINENO"; then : 6499 # Broken: success on invalid input. 6500continue 6501else 6502 # Passes both tests. 6503ac_preproc_ok=: 6504break 6505fi 6506rm -f conftest.err conftest.$ac_ext 6507 6508done 6509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6510rm -f conftest.err conftest.$ac_ext 6511if $ac_preproc_ok; then : 6512 break 6513fi 6514 6515 done 6516 ac_cv_prog_CXXCPP=$CXXCPP 6517 6518fi 6519 CXXCPP=$ac_cv_prog_CXXCPP 6520else 6521 ac_cv_prog_CXXCPP=$CXXCPP 6522fi 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 6524$as_echo "$CXXCPP" >&6; } 6525ac_preproc_ok=false 6526for ac_cxx_preproc_warn_flag in '' yes 6527do 6528 # Use a header file that comes with gcc, so configuring glibc 6529 # with a fresh cross-compiler works. 6530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6531 # <limits.h> exists even on freestanding compilers. 6532 # On the NeXT, cc -E runs the code through the compiler's parser, 6533 # not just through cpp. "Syntax error" is here to catch this case. 6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6535/* end confdefs.h. */ 6536#ifdef __STDC__ 6537# include <limits.h> 6538#else 6539# include <assert.h> 6540#endif 6541 Syntax error 6542_ACEOF 6543if ac_fn_cxx_try_cpp "$LINENO"; then : 6544 6545else 6546 # Broken: fails on valid input. 6547continue 6548fi 6549rm -f conftest.err conftest.$ac_ext 6550 6551 # OK, works on sane cases. Now check whether nonexistent headers 6552 # can be detected and how. 6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554/* end confdefs.h. */ 6555#include <ac_nonexistent.h> 6556_ACEOF 6557if ac_fn_cxx_try_cpp "$LINENO"; then : 6558 # Broken: success on invalid input. 6559continue 6560else 6561 # Passes both tests. 6562ac_preproc_ok=: 6563break 6564fi 6565rm -f conftest.err conftest.$ac_ext 6566 6567done 6568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6569rm -f conftest.err conftest.$ac_ext 6570if $ac_preproc_ok; then : 6571 6572else 6573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6575as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 6576See \`config.log' for more details." "$LINENO" 5; } 6577fi 6578 6579ac_ext=cpp 6580ac_cpp='$CXXCPP $CPPFLAGS' 6581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6584 6585fi 6586 6587 6588ac_ext=f 6589ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6590ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6591ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6592if test -n "$ac_tool_prefix"; then 6593 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 6594 do 6595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6596set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6598$as_echo_n "checking for $ac_word... " >&6; } 6599if test "${ac_cv_prog_F77+set}" = set; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 if test -n "$F77"; then 6603 ac_cv_prog_F77="$F77" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6612 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617 done 6618IFS=$as_save_IFS 6619 6620fi 6621fi 6622F77=$ac_cv_prog_F77 6623if test -n "$F77"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 6625$as_echo "$F77" >&6; } 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628$as_echo "no" >&6; } 6629fi 6630 6631 6632 test -n "$F77" && break 6633 done 6634fi 6635if test -z "$F77"; then 6636 ac_ct_F77=$F77 6637 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 6638do 6639 # Extract the first word of "$ac_prog", so it can be a program name with args. 6640set dummy $ac_prog; ac_word=$2 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6642$as_echo_n "checking for $ac_word... " >&6; } 6643if test "${ac_cv_prog_ac_ct_F77+set}" = set; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 if test -n "$ac_ct_F77"; then 6647 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6648else 6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6650for as_dir in $PATH 6651do 6652 IFS=$as_save_IFS 6653 test -z "$as_dir" && as_dir=. 6654 for ac_exec_ext in '' $ac_executable_extensions; do 6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6656 ac_cv_prog_ac_ct_F77="$ac_prog" 6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6658 break 2 6659 fi 6660done 6661 done 6662IFS=$as_save_IFS 6663 6664fi 6665fi 6666ac_ct_F77=$ac_cv_prog_ac_ct_F77 6667if test -n "$ac_ct_F77"; then 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 6669$as_echo "$ac_ct_F77" >&6; } 6670else 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6672$as_echo "no" >&6; } 6673fi 6674 6675 6676 test -n "$ac_ct_F77" && break 6677done 6678 6679 if test "x$ac_ct_F77" = x; then 6680 F77="" 6681 else 6682 case $cross_compiling:$ac_tool_warned in 6683yes:) 6684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6686ac_tool_warned=yes ;; 6687esac 6688 F77=$ac_ct_F77 6689 fi 6690fi 6691 6692 6693# Provide some information about the compiler. 6694$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 6695set X $ac_compile 6696ac_compiler=$2 6697for ac_option in --version -v -V -qversion; do 6698 { { ac_try="$ac_compiler $ac_option >&5" 6699case "(($ac_try" in 6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6701 *) ac_try_echo=$ac_try;; 6702esac 6703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6704$as_echo "$ac_try_echo"; } >&5 6705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6706 ac_status=$? 6707 if test -s conftest.err; then 6708 sed '10a\ 6709... rest of stderr output deleted ... 6710 10q' conftest.err >conftest.er1 6711 cat conftest.er1 >&5 6712 fi 6713 rm -f conftest.er1 conftest.err 6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6715 test $ac_status = 0; } 6716done 6717rm -f a.out 6718 6719# If we don't use `.F' as extension, the preprocessor is not run on the 6720# input file. (Note that this only needs to work for GNU compilers.) 6721ac_save_ext=$ac_ext 6722ac_ext=F 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 6724$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6725if test "${ac_cv_f77_compiler_gnu+set}" = set; then : 6726 $as_echo_n "(cached) " >&6 6727else 6728 cat > conftest.$ac_ext <<_ACEOF 6729 program main 6730#ifndef __GNUC__ 6731 choke me 6732#endif 6733 6734 end 6735_ACEOF 6736if ac_fn_f77_try_compile "$LINENO"; then : 6737 ac_compiler_gnu=yes 6738else 6739 ac_compiler_gnu=no 6740fi 6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6742ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6743 6744fi 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 6746$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6747ac_ext=$ac_save_ext 6748ac_test_FFLAGS=${FFLAGS+set} 6749ac_save_FFLAGS=$FFLAGS 6750FFLAGS= 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 6752$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6753if test "${ac_cv_prog_f77_g+set}" = set; then : 6754 $as_echo_n "(cached) " >&6 6755else 6756 FFLAGS=-g 6757cat > conftest.$ac_ext <<_ACEOF 6758 program main 6759 6760 end 6761_ACEOF 6762if ac_fn_f77_try_compile "$LINENO"; then : 6763 ac_cv_prog_f77_g=yes 6764else 6765 ac_cv_prog_f77_g=no 6766fi 6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6768 6769fi 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 6771$as_echo "$ac_cv_prog_f77_g" >&6; } 6772if test "$ac_test_FFLAGS" = set; then 6773 FFLAGS=$ac_save_FFLAGS 6774elif test $ac_cv_prog_f77_g = yes; then 6775 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6776 FFLAGS="-g -O2" 6777 else 6778 FFLAGS="-g" 6779 fi 6780else 6781 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6782 FFLAGS="-O2" 6783 else 6784 FFLAGS= 6785 fi 6786fi 6787 6788if test $ac_compiler_gnu = yes; then 6789 G77=yes 6790else 6791 G77= 6792fi 6793ac_ext=c 6794ac_cpp='$CPP $CPPFLAGS' 6795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6797ac_compiler_gnu=$ac_cv_c_compiler_gnu 6798 6799 6800 6801# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6802 6803# find the maximum length of command line arguments 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6805$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6806if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 i=0 6810 teststring="ABCD" 6811 6812 case $build_os in 6813 msdosdjgpp*) 6814 # On DJGPP, this test can blow up pretty badly due to problems in libc 6815 # (any single argument exceeding 2000 bytes causes a buffer overrun 6816 # during glob expansion). Even if it were fixed, the result of this 6817 # check would be larger than it should be. 6818 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6819 ;; 6820 6821 gnu*) 6822 # Under GNU Hurd, this test is not required because there is 6823 # no limit to the length of command line arguments. 6824 # Libtool will interpret -1 as no limit whatsoever 6825 lt_cv_sys_max_cmd_len=-1; 6826 ;; 6827 6828 cygwin* | mingw*) 6829 # On Win9x/ME, this test blows up -- it succeeds, but takes 6830 # about 5 minutes as the teststring grows exponentially. 6831 # Worse, since 9x/ME are not pre-emptively multitasking, 6832 # you end up with a "frozen" computer, even though with patience 6833 # the test eventually succeeds (with a max line length of 256k). 6834 # Instead, let's just punt: use the minimum linelength reported by 6835 # all of the supported platforms: 8192 (on NT/2K/XP). 6836 lt_cv_sys_max_cmd_len=8192; 6837 ;; 6838 6839 amigaos*) 6840 # On AmigaOS with pdksh, this test takes hours, literally. 6841 # So we just punt and use a minimum line length of 8192. 6842 lt_cv_sys_max_cmd_len=8192; 6843 ;; 6844 6845 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6846 # This has been around since 386BSD, at least. Likely further. 6847 if test -x /sbin/sysctl; then 6848 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6849 elif test -x /usr/sbin/sysctl; then 6850 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6851 else 6852 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6853 fi 6854 # And add a safety zone 6855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6857 ;; 6858 6859 interix*) 6860 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6861 lt_cv_sys_max_cmd_len=196608 6862 ;; 6863 6864 osf*) 6865 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6866 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6867 # nice to cause kernel panics so lets avoid the loop below. 6868 # First set a reasonable default. 6869 lt_cv_sys_max_cmd_len=16384 6870 # 6871 if test -x /sbin/sysconfig; then 6872 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6873 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6874 esac 6875 fi 6876 ;; 6877 sco3.2v5*) 6878 lt_cv_sys_max_cmd_len=102400 6879 ;; 6880 sysv5* | sco5v6* | sysv4.2uw2*) 6881 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6882 if test -n "$kargmax"; then 6883 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6884 else 6885 lt_cv_sys_max_cmd_len=32768 6886 fi 6887 ;; 6888 *) 6889 # If test is not a shell built-in, we'll probably end up computing a 6890 # maximum length that is only half of the actual maximum length, but 6891 # we can't tell. 6892 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6893 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6894 = "XX$teststring") >/dev/null 2>&1 && 6895 new_result=`expr "X$teststring" : ".*" 2>&1` && 6896 lt_cv_sys_max_cmd_len=$new_result && 6897 test $i != 17 # 1/2 MB should be enough 6898 do 6899 i=`expr $i + 1` 6900 teststring=$teststring$teststring 6901 done 6902 teststring= 6903 # Add a significant safety factor because C++ compilers can tack on massive 6904 # amounts of additional arguments before passing them to the linker. 6905 # It appears as though 1/2 is a usable value. 6906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6907 ;; 6908 esac 6909 6910fi 6911 6912if test -n $lt_cv_sys_max_cmd_len ; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6914$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6917$as_echo "none" >&6; } 6918fi 6919 6920 6921 6922 6923# Check for command to grab the raw symbol name followed by C symbol from nm. 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6925$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6926if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 6930# These are sane defaults that work on at least a few old systems. 6931# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6932 6933# Character class describing NM global symbol codes. 6934symcode='[BCDEGRST]' 6935 6936# Regexp to match symbols that can be accessed directly from C. 6937sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6938 6939# Transform an extracted symbol line into a proper C declaration 6940lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6941 6942# Transform an extracted symbol line into symbol name and symbol address 6943lt_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'" 6944 6945# Define system-specific variables. 6946case $host_os in 6947aix*) 6948 symcode='[BCDT]' 6949 ;; 6950cygwin* | mingw* | pw32*) 6951 symcode='[ABCDGISTW]' 6952 ;; 6953hpux*) # Its linker distinguishes data from code symbols 6954 if test "$host_cpu" = ia64; then 6955 symcode='[ABCDEGRST]' 6956 fi 6957 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6958 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'" 6959 ;; 6960linux*) 6961 if test "$host_cpu" = ia64; then 6962 symcode='[ABCDGIRSTW]' 6963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6964 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'" 6965 fi 6966 ;; 6967irix* | nonstopux*) 6968 symcode='[BCDEGRST]' 6969 ;; 6970osf*) 6971 symcode='[BCDEGQRST]' 6972 ;; 6973solaris*) 6974 symcode='[BDRT]' 6975 ;; 6976sco3.2v5*) 6977 symcode='[DT]' 6978 ;; 6979sysv4.2uw2*) 6980 symcode='[DT]' 6981 ;; 6982sysv5* | sco5v6* | unixware* | OpenUNIX*) 6983 symcode='[ABDT]' 6984 ;; 6985sysv4) 6986 symcode='[DFNSTU]' 6987 ;; 6988esac 6989 6990# Handle CRLF in mingw tool chain 6991opt_cr= 6992case $build_os in 6993mingw*) 6994 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6995 ;; 6996esac 6997 6998# If we're using GNU nm, then use its standard symbol codes. 6999case `$NM -V 2>&1` in 7000*GNU* | *'with BFD'*) 7001 symcode='[ABCDGIRSTW]' ;; 7002esac 7003 7004# Try without a prefix undercore, then with it. 7005for ac_symprfx in "" "_"; do 7006 7007 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7008 symxfrm="\\1 $ac_symprfx\\2 \\2" 7009 7010 # Write the raw and C identifiers. 7011 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7012 7013 # Check to see that the pipe works correctly. 7014 pipe_works=no 7015 7016 rm -f conftest* 7017 cat > conftest.$ac_ext <<EOF 7018#ifdef __cplusplus 7019extern "C" { 7020#endif 7021char nm_test_var; 7022void nm_test_func(){} 7023#ifdef __cplusplus 7024} 7025#endif 7026int main(){nm_test_var='a';nm_test_func();return(0);} 7027EOF 7028 7029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7030 (eval $ac_compile) 2>&5 7031 ac_status=$? 7032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7033 test $ac_status = 0; }; then 7034 # Now try to grab the symbols. 7035 nlist=conftest.nm 7036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7037 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7038 ac_status=$? 7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7040 test $ac_status = 0; } && test -s "$nlist"; then 7041 # Try sorting and uniquifying the output. 7042 if sort "$nlist" | uniq > "$nlist"T; then 7043 mv -f "$nlist"T "$nlist" 7044 else 7045 rm -f "$nlist"T 7046 fi 7047 7048 # Make sure that we snagged all the symbols we need. 7049 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7050 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7051 cat <<EOF > conftest.$ac_ext 7052#ifdef __cplusplus 7053extern "C" { 7054#endif 7055 7056EOF 7057 # Now generate the symbol file. 7058 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7059 7060 cat <<EOF >> conftest.$ac_ext 7061#if defined (__STDC__) && __STDC__ 7062# define lt_ptr_t void * 7063#else 7064# define lt_ptr_t char * 7065# define const 7066#endif 7067 7068/* The mapping between symbol names and symbols. */ 7069const struct { 7070 const char *name; 7071 lt_ptr_t address; 7072} 7073lt_preloaded_symbols[] = 7074{ 7075EOF 7076 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7077 cat <<\EOF >> conftest.$ac_ext 7078 {0, (lt_ptr_t) 0} 7079}; 7080 7081#ifdef __cplusplus 7082} 7083#endif 7084EOF 7085 # Now try linking the two files. 7086 mv conftest.$ac_objext conftstm.$ac_objext 7087 lt_save_LIBS="$LIBS" 7088 lt_save_CFLAGS="$CFLAGS" 7089 LIBS="conftstm.$ac_objext" 7090 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7092 (eval $ac_link) 2>&5 7093 ac_status=$? 7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7095 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7096 pipe_works=yes 7097 fi 7098 LIBS="$lt_save_LIBS" 7099 CFLAGS="$lt_save_CFLAGS" 7100 else 7101 echo "cannot find nm_test_func in $nlist" >&5 7102 fi 7103 else 7104 echo "cannot find nm_test_var in $nlist" >&5 7105 fi 7106 else 7107 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7108 fi 7109 else 7110 echo "$progname: failed program was:" >&5 7111 cat conftest.$ac_ext >&5 7112 fi 7113 rm -f conftest* conftst* 7114 7115 # Do not use the global_symbol_pipe unless it works. 7116 if test "$pipe_works" = yes; then 7117 break 7118 else 7119 lt_cv_sys_global_symbol_pipe= 7120 fi 7121done 7122 7123fi 7124 7125if test -z "$lt_cv_sys_global_symbol_pipe"; then 7126 lt_cv_sys_global_symbol_to_cdecl= 7127fi 7128if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7130$as_echo "failed" >&6; } 7131else 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7133$as_echo "ok" >&6; } 7134fi 7135 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7137$as_echo_n "checking for objdir... " >&6; } 7138if test "${lt_cv_objdir+set}" = set; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 rm -f .libs 2>/dev/null 7142mkdir .libs 2>/dev/null 7143if test -d .libs; then 7144 lt_cv_objdir=.libs 7145else 7146 # MS-DOS does not allow filenames that begin with a dot. 7147 lt_cv_objdir=_libs 7148fi 7149rmdir .libs 2>/dev/null 7150fi 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7152$as_echo "$lt_cv_objdir" >&6; } 7153objdir=$lt_cv_objdir 7154 7155 7156 7157 7158 7159case $host_os in 7160aix3*) 7161 # AIX sometimes has problems with the GCC collect2 program. For some 7162 # reason, if we set the COLLECT_NAMES environment variable, the problems 7163 # vanish in a puff of smoke. 7164 if test "X${COLLECT_NAMES+set}" != Xset; then 7165 COLLECT_NAMES= 7166 export COLLECT_NAMES 7167 fi 7168 ;; 7169esac 7170 7171# Sed substitution that helps us do robust quoting. It backslashifies 7172# metacharacters that are still active within double-quoted strings. 7173Xsed='sed -e 1s/^X//' 7174sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7175 7176# Same as above, but do not quote variable references. 7177double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7178 7179# Sed substitution to delay expansion of an escaped shell variable in a 7180# double_quote_subst'ed string. 7181delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7182 7183# Sed substitution to avoid accidental globbing in evaled expressions 7184no_glob_subst='s/\*/\\\*/g' 7185 7186# Constants: 7187rm="rm -f" 7188 7189# Global variables: 7190default_ofile=libtool 7191can_build_shared=yes 7192 7193# All known linkers require a `.a' archive for static linking (except MSVC, 7194# which needs '.lib'). 7195libext=a 7196ltmain="$ac_aux_dir/ltmain.sh" 7197ofile="$default_ofile" 7198with_gnu_ld="$lt_cv_prog_gnu_ld" 7199 7200if test -n "$ac_tool_prefix"; then 7201 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7202set dummy ${ac_tool_prefix}ar; ac_word=$2 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204$as_echo_n "checking for $ac_word... " >&6; } 7205if test "${ac_cv_prog_AR+set}" = set; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 if test -n "$AR"; then 7209 ac_cv_prog_AR="$AR" # Let the user override the test. 7210else 7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7218 ac_cv_prog_AR="${ac_tool_prefix}ar" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223 done 7224IFS=$as_save_IFS 7225 7226fi 7227fi 7228AR=$ac_cv_prog_AR 7229if test -n "$AR"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7231$as_echo "$AR" >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 7238fi 7239if test -z "$ac_cv_prog_AR"; then 7240 ac_ct_AR=$AR 7241 # Extract the first word of "ar", so it can be a program name with args. 7242set dummy ar; ac_word=$2 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7244$as_echo_n "checking for $ac_word... " >&6; } 7245if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7246 $as_echo_n "(cached) " >&6 7247else 7248 if test -n "$ac_ct_AR"; then 7249 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7250else 7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252for as_dir in $PATH 7253do 7254 IFS=$as_save_IFS 7255 test -z "$as_dir" && as_dir=. 7256 for ac_exec_ext in '' $ac_executable_extensions; do 7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7258 ac_cv_prog_ac_ct_AR="ar" 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7260 break 2 7261 fi 7262done 7263 done 7264IFS=$as_save_IFS 7265 7266fi 7267fi 7268ac_ct_AR=$ac_cv_prog_ac_ct_AR 7269if test -n "$ac_ct_AR"; then 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7271$as_echo "$ac_ct_AR" >&6; } 7272else 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7274$as_echo "no" >&6; } 7275fi 7276 7277 if test "x$ac_ct_AR" = x; then 7278 AR="false" 7279 else 7280 case $cross_compiling:$ac_tool_warned in 7281yes:) 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7284ac_tool_warned=yes ;; 7285esac 7286 AR=$ac_ct_AR 7287 fi 7288else 7289 AR="$ac_cv_prog_AR" 7290fi 7291 7292if test -n "$ac_tool_prefix"; then 7293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7294set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if test "${ac_cv_prog_RANLIB+set}" = set; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -n "$RANLIB"; then 7301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7302else 7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315 done 7316IFS=$as_save_IFS 7317 7318fi 7319fi 7320RANLIB=$ac_cv_prog_RANLIB 7321if test -n "$RANLIB"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7323$as_echo "$RANLIB" >&6; } 7324else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326$as_echo "no" >&6; } 7327fi 7328 7329 7330fi 7331if test -z "$ac_cv_prog_RANLIB"; then 7332 ac_ct_RANLIB=$RANLIB 7333 # Extract the first word of "ranlib", so it can be a program name with args. 7334set dummy ranlib; ac_word=$2 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7336$as_echo_n "checking for $ac_word... " >&6; } 7337if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 if test -n "$ac_ct_RANLIB"; then 7341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7342else 7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344for as_dir in $PATH 7345do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7350 ac_cv_prog_ac_ct_RANLIB="ranlib" 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358fi 7359fi 7360ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7361if test -n "$ac_ct_RANLIB"; then 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7363$as_echo "$ac_ct_RANLIB" >&6; } 7364else 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7366$as_echo "no" >&6; } 7367fi 7368 7369 if test "x$ac_ct_RANLIB" = x; then 7370 RANLIB=":" 7371 else 7372 case $cross_compiling:$ac_tool_warned in 7373yes:) 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7376ac_tool_warned=yes ;; 7377esac 7378 RANLIB=$ac_ct_RANLIB 7379 fi 7380else 7381 RANLIB="$ac_cv_prog_RANLIB" 7382fi 7383 7384if test -n "$ac_tool_prefix"; then 7385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7386set dummy ${ac_tool_prefix}strip; ac_word=$2 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7388$as_echo_n "checking for $ac_word... " >&6; } 7389if test "${ac_cv_prog_STRIP+set}" = set; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 if test -n "$STRIP"; then 7393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7394else 7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396for as_dir in $PATH 7397do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7402 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406done 7407 done 7408IFS=$as_save_IFS 7409 7410fi 7411fi 7412STRIP=$ac_cv_prog_STRIP 7413if test -n "$STRIP"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7415$as_echo "$STRIP" >&6; } 7416else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418$as_echo "no" >&6; } 7419fi 7420 7421 7422fi 7423if test -z "$ac_cv_prog_STRIP"; then 7424 ac_ct_STRIP=$STRIP 7425 # Extract the first word of "strip", so it can be a program name with args. 7426set dummy strip; ac_word=$2 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7428$as_echo_n "checking for $ac_word... " >&6; } 7429if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 if test -n "$ac_ct_STRIP"; then 7433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7434else 7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7436for as_dir in $PATH 7437do 7438 IFS=$as_save_IFS 7439 test -z "$as_dir" && as_dir=. 7440 for ac_exec_ext in '' $ac_executable_extensions; do 7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7442 ac_cv_prog_ac_ct_STRIP="strip" 7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7444 break 2 7445 fi 7446done 7447 done 7448IFS=$as_save_IFS 7449 7450fi 7451fi 7452ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7453if test -n "$ac_ct_STRIP"; then 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7455$as_echo "$ac_ct_STRIP" >&6; } 7456else 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7458$as_echo "no" >&6; } 7459fi 7460 7461 if test "x$ac_ct_STRIP" = x; then 7462 STRIP=":" 7463 else 7464 case $cross_compiling:$ac_tool_warned in 7465yes:) 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7468ac_tool_warned=yes ;; 7469esac 7470 STRIP=$ac_ct_STRIP 7471 fi 7472else 7473 STRIP="$ac_cv_prog_STRIP" 7474fi 7475 7476 7477old_CC="$CC" 7478old_CFLAGS="$CFLAGS" 7479 7480# Set sane defaults for various variables 7481test -z "$AR" && AR=ar 7482test -z "$AR_FLAGS" && AR_FLAGS=cru 7483test -z "$AS" && AS=as 7484test -z "$CC" && CC=cc 7485test -z "$LTCC" && LTCC=$CC 7486test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7487test -z "$DLLTOOL" && DLLTOOL=dlltool 7488test -z "$LD" && LD=ld 7489test -z "$LN_S" && LN_S="ln -s" 7490test -z "$MAGIC_CMD" && MAGIC_CMD=file 7491test -z "$NM" && NM=nm 7492test -z "$SED" && SED=sed 7493test -z "$OBJDUMP" && OBJDUMP=objdump 7494test -z "$RANLIB" && RANLIB=: 7495test -z "$STRIP" && STRIP=: 7496test -z "$ac_objext" && ac_objext=o 7497 7498# Determine commands to create old-style static archives. 7499old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7500old_postinstall_cmds='chmod 644 $oldlib' 7501old_postuninstall_cmds= 7502 7503if test -n "$RANLIB"; then 7504 case $host_os in 7505 openbsd*) 7506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7507 ;; 7508 *) 7509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7510 ;; 7511 esac 7512 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7513fi 7514 7515for cc_temp in $compiler""; do 7516 case $cc_temp in 7517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7519 \-*) ;; 7520 *) break;; 7521 esac 7522done 7523cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7524 7525 7526# Only perform the check for file, if the check method requires it 7527case $deplibs_check_method in 7528file_magic*) 7529 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7531$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7532if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7533 $as_echo_n "(cached) " >&6 7534else 7535 case $MAGIC_CMD in 7536[\\/*] | ?:[\\/]*) 7537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7538 ;; 7539*) 7540 lt_save_MAGIC_CMD="$MAGIC_CMD" 7541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7542 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7543 for ac_dir in $ac_dummy; do 7544 IFS="$lt_save_ifs" 7545 test -z "$ac_dir" && ac_dir=. 7546 if test -f $ac_dir/${ac_tool_prefix}file; then 7547 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7548 if test -n "$file_magic_test_file"; then 7549 case $deplibs_check_method in 7550 "file_magic "*) 7551 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7553 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7554 $EGREP "$file_magic_regex" > /dev/null; then 7555 : 7556 else 7557 cat <<EOF 1>&2 7558 7559*** Warning: the command libtool uses to detect shared libraries, 7560*** $file_magic_cmd, produces output that libtool cannot recognize. 7561*** The result is that libtool may fail to recognize shared libraries 7562*** as such. This will affect the creation of libtool libraries that 7563*** depend on shared libraries, but programs linked with such libtool 7564*** libraries will work regardless of this problem. Nevertheless, you 7565*** may want to report the problem to your system manager and/or to 7566*** bug-libtool@gnu.org 7567 7568EOF 7569 fi ;; 7570 esac 7571 fi 7572 break 7573 fi 7574 done 7575 IFS="$lt_save_ifs" 7576 MAGIC_CMD="$lt_save_MAGIC_CMD" 7577 ;; 7578esac 7579fi 7580 7581MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7582if test -n "$MAGIC_CMD"; then 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7584$as_echo "$MAGIC_CMD" >&6; } 7585else 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7587$as_echo "no" >&6; } 7588fi 7589 7590if test -z "$lt_cv_path_MAGIC_CMD"; then 7591 if test -n "$ac_tool_prefix"; then 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7593$as_echo_n "checking for file... " >&6; } 7594if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7595 $as_echo_n "(cached) " >&6 7596else 7597 case $MAGIC_CMD in 7598[\\/*] | ?:[\\/]*) 7599 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7600 ;; 7601*) 7602 lt_save_MAGIC_CMD="$MAGIC_CMD" 7603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7604 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7605 for ac_dir in $ac_dummy; do 7606 IFS="$lt_save_ifs" 7607 test -z "$ac_dir" && ac_dir=. 7608 if test -f $ac_dir/file; then 7609 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7610 if test -n "$file_magic_test_file"; then 7611 case $deplibs_check_method in 7612 "file_magic "*) 7613 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7614 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7615 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7616 $EGREP "$file_magic_regex" > /dev/null; then 7617 : 7618 else 7619 cat <<EOF 1>&2 7620 7621*** Warning: the command libtool uses to detect shared libraries, 7622*** $file_magic_cmd, produces output that libtool cannot recognize. 7623*** The result is that libtool may fail to recognize shared libraries 7624*** as such. This will affect the creation of libtool libraries that 7625*** depend on shared libraries, but programs linked with such libtool 7626*** libraries will work regardless of this problem. Nevertheless, you 7627*** may want to report the problem to your system manager and/or to 7628*** bug-libtool@gnu.org 7629 7630EOF 7631 fi ;; 7632 esac 7633 fi 7634 break 7635 fi 7636 done 7637 IFS="$lt_save_ifs" 7638 MAGIC_CMD="$lt_save_MAGIC_CMD" 7639 ;; 7640esac 7641fi 7642 7643MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7644if test -n "$MAGIC_CMD"; then 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7646$as_echo "$MAGIC_CMD" >&6; } 7647else 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7649$as_echo "no" >&6; } 7650fi 7651 7652 else 7653 MAGIC_CMD=: 7654 fi 7655fi 7656 7657 fi 7658 ;; 7659esac 7660 7661enable_dlopen=no 7662enable_win32_dll=no 7663 7664# Check whether --enable-libtool-lock was given. 7665if test "${enable_libtool_lock+set}" = set; then : 7666 enableval=$enable_libtool_lock; 7667fi 7668 7669test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7670 7671 7672# Check whether --with-pic was given. 7673if test "${with_pic+set}" = set; then : 7674 withval=$with_pic; pic_mode="$withval" 7675else 7676 pic_mode=default 7677fi 7678 7679test -z "$pic_mode" && pic_mode=default 7680 7681# Use C for the default configuration in the libtool script 7682tagname= 7683lt_save_CC="$CC" 7684ac_ext=c 7685ac_cpp='$CPP $CPPFLAGS' 7686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7688ac_compiler_gnu=$ac_cv_c_compiler_gnu 7689 7690 7691# Source file extension for C test sources. 7692ac_ext=c 7693 7694# Object file extension for compiled C test sources. 7695objext=o 7696objext=$objext 7697 7698# Code to be used in simple compile tests 7699lt_simple_compile_test_code="int some_variable = 0;\n" 7700 7701# Code to be used in simple link tests 7702lt_simple_link_test_code='int main(){return(0);}\n' 7703 7704 7705# If no C compiler was specified, use CC. 7706LTCC=${LTCC-"$CC"} 7707 7708# If no C compiler flags were specified, use CFLAGS. 7709LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7710 7711# Allow CC to be a program name with arguments. 7712compiler=$CC 7713 7714 7715# save warnings/boilerplate of simple test code 7716ac_outfile=conftest.$ac_objext 7717printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7718eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7719_lt_compiler_boilerplate=`cat conftest.err` 7720$rm conftest* 7721 7722ac_outfile=conftest.$ac_objext 7723printf "$lt_simple_link_test_code" >conftest.$ac_ext 7724eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7725_lt_linker_boilerplate=`cat conftest.err` 7726$rm conftest* 7727 7728 7729 7730lt_prog_compiler_no_builtin_flag= 7731 7732if test "$GCC" = yes; then 7733 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7734 7735 7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7737$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7738if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7739 $as_echo_n "(cached) " >&6 7740else 7741 lt_cv_prog_compiler_rtti_exceptions=no 7742 ac_outfile=conftest.$ac_objext 7743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7744 lt_compiler_flag="-fno-rtti -fno-exceptions" 7745 # Insert the option either (1) after the last *FLAGS variable, or 7746 # (2) before a word containing "conftest.", or (3) at the end. 7747 # Note that $ac_compile itself does not contain backslashes and begins 7748 # with a dollar sign (not a hyphen), so the echo should work correctly. 7749 # The option is referenced via a variable to avoid confusing sed. 7750 lt_compile=`echo "$ac_compile" | $SED \ 7751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7753 -e 's:$: $lt_compiler_flag:'` 7754 (eval echo "\"\$as_me:7754: $lt_compile\"" >&5) 7755 (eval "$lt_compile" 2>conftest.err) 7756 ac_status=$? 7757 cat conftest.err >&5 7758 echo "$as_me:7758: \$? = $ac_status" >&5 7759 if (exit $ac_status) && test -s "$ac_outfile"; then 7760 # The compiler can only warn and ignore the option if not recognized 7761 # So say no if there are warnings other than the usual output. 7762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7765 lt_cv_prog_compiler_rtti_exceptions=yes 7766 fi 7767 fi 7768 $rm conftest* 7769 7770fi 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7772$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7773 7774if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7775 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7776else 7777 : 7778fi 7779 7780fi 7781 7782lt_prog_compiler_wl= 7783lt_prog_compiler_pic= 7784lt_prog_compiler_static= 7785 7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7787$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7788 7789 if test "$GCC" = yes; then 7790 lt_prog_compiler_wl='-Wl,' 7791 lt_prog_compiler_static='-static' 7792 7793 case $host_os in 7794 aix*) 7795 # All AIX code is PIC. 7796 if test "$host_cpu" = ia64; then 7797 # AIX 5 now supports IA64 processor 7798 lt_prog_compiler_static='-Bstatic' 7799 fi 7800 ;; 7801 7802 amigaos*) 7803 # FIXME: we need at least 68020 code to build shared libraries, but 7804 # adding the `-m68020' flag to GCC prevents building anything better, 7805 # like `-m68040'. 7806 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7807 ;; 7808 7809 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7810 # PIC is the default for these OSes. 7811 ;; 7812 7813 mingw* | pw32* | os2*) 7814 # This hack is so that the source file can tell whether it is being 7815 # built for inclusion in a dll (and should export symbols for example). 7816 lt_prog_compiler_pic='-DDLL_EXPORT' 7817 ;; 7818 7819 darwin* | rhapsody*) 7820 # PIC is the default on this platform 7821 # Common symbols not allowed in MH_DYLIB files 7822 lt_prog_compiler_pic='-fno-common' 7823 ;; 7824 7825 interix3*) 7826 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7827 # Instead, we relocate shared libraries at runtime. 7828 ;; 7829 7830 msdosdjgpp*) 7831 # Just because we use GCC doesn't mean we suddenly get shared libraries 7832 # on systems that don't support them. 7833 lt_prog_compiler_can_build_shared=no 7834 enable_shared=no 7835 ;; 7836 7837 sysv4*MP*) 7838 if test -d /usr/nec; then 7839 lt_prog_compiler_pic=-Kconform_pic 7840 fi 7841 ;; 7842 7843 hpux*) 7844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7845 # not for PA HP-UX. 7846 case $host_cpu in 7847 hppa*64*|ia64*) 7848 # +Z the default 7849 ;; 7850 *) 7851 lt_prog_compiler_pic='-fPIC' 7852 ;; 7853 esac 7854 ;; 7855 7856 *) 7857 lt_prog_compiler_pic='-fPIC' 7858 ;; 7859 esac 7860 else 7861 # PORTME Check for flag to pass linker flags through the system compiler. 7862 case $host_os in 7863 aix*) 7864 lt_prog_compiler_wl='-Wl,' 7865 if test "$host_cpu" = ia64; then 7866 # AIX 5 now supports IA64 processor 7867 lt_prog_compiler_static='-Bstatic' 7868 else 7869 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7870 fi 7871 ;; 7872 darwin*) 7873 # PIC is the default on this platform 7874 # Common symbols not allowed in MH_DYLIB files 7875 case $cc_basename in 7876 xlc*) 7877 lt_prog_compiler_pic='-qnocommon' 7878 lt_prog_compiler_wl='-Wl,' 7879 ;; 7880 esac 7881 ;; 7882 7883 mingw* | pw32* | os2*) 7884 # This hack is so that the source file can tell whether it is being 7885 # built for inclusion in a dll (and should export symbols for example). 7886 lt_prog_compiler_pic='-DDLL_EXPORT' 7887 ;; 7888 7889 hpux9* | hpux10* | hpux11*) 7890 lt_prog_compiler_wl='-Wl,' 7891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7892 # not for PA HP-UX. 7893 case $host_cpu in 7894 hppa*64*|ia64*) 7895 # +Z the default 7896 ;; 7897 *) 7898 lt_prog_compiler_pic='+Z' 7899 ;; 7900 esac 7901 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7902 lt_prog_compiler_static='${wl}-a ${wl}archive' 7903 ;; 7904 7905 irix5* | irix6* | nonstopux*) 7906 lt_prog_compiler_wl='-Wl,' 7907 # PIC (with -KPIC) is the default. 7908 lt_prog_compiler_static='-non_shared' 7909 ;; 7910 7911 newsos6) 7912 lt_prog_compiler_pic='-KPIC' 7913 lt_prog_compiler_static='-Bstatic' 7914 ;; 7915 7916 linux*) 7917 case $cc_basename in 7918 icc* | ecc*) 7919 lt_prog_compiler_wl='-Wl,' 7920 lt_prog_compiler_pic='-KPIC' 7921 lt_prog_compiler_static='-static' 7922 ;; 7923 pgcc* | pgf77* | pgf90* | pgf95*) 7924 # Portland Group compilers (*not* the Pentium gcc compiler, 7925 # which looks to be a dead project) 7926 lt_prog_compiler_wl='-Wl,' 7927 lt_prog_compiler_pic='-fpic' 7928 lt_prog_compiler_static='-Bstatic' 7929 ;; 7930 ccc*) 7931 lt_prog_compiler_wl='-Wl,' 7932 # All Alpha code is PIC. 7933 lt_prog_compiler_static='-non_shared' 7934 ;; 7935 esac 7936 ;; 7937 7938 osf3* | osf4* | osf5*) 7939 lt_prog_compiler_wl='-Wl,' 7940 # All OSF/1 code is PIC. 7941 lt_prog_compiler_static='-non_shared' 7942 ;; 7943 7944 solaris*) 7945 lt_prog_compiler_pic='-KPIC' 7946 lt_prog_compiler_static='-Bstatic' 7947 case $cc_basename in 7948 f77* | f90* | f95*) 7949 lt_prog_compiler_wl='-Qoption ld ';; 7950 *) 7951 lt_prog_compiler_wl='-Wl,';; 7952 esac 7953 ;; 7954 7955 sunos4*) 7956 lt_prog_compiler_wl='-Qoption ld ' 7957 lt_prog_compiler_pic='-PIC' 7958 lt_prog_compiler_static='-Bstatic' 7959 ;; 7960 7961 sysv4 | sysv4.2uw2* | sysv4.3*) 7962 lt_prog_compiler_wl='-Wl,' 7963 lt_prog_compiler_pic='-KPIC' 7964 lt_prog_compiler_static='-Bstatic' 7965 ;; 7966 7967 sysv4*MP*) 7968 if test -d /usr/nec ;then 7969 lt_prog_compiler_pic='-Kconform_pic' 7970 lt_prog_compiler_static='-Bstatic' 7971 fi 7972 ;; 7973 7974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7975 lt_prog_compiler_wl='-Wl,' 7976 lt_prog_compiler_pic='-KPIC' 7977 lt_prog_compiler_static='-Bstatic' 7978 ;; 7979 7980 unicos*) 7981 lt_prog_compiler_wl='-Wl,' 7982 lt_prog_compiler_can_build_shared=no 7983 ;; 7984 7985 uts4*) 7986 lt_prog_compiler_pic='-pic' 7987 lt_prog_compiler_static='-Bstatic' 7988 ;; 7989 7990 *) 7991 lt_prog_compiler_can_build_shared=no 7992 ;; 7993 esac 7994 fi 7995 7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7997$as_echo "$lt_prog_compiler_pic" >&6; } 7998 7999# 8000# Check to make sure the PIC flag actually works. 8001# 8002if test -n "$lt_prog_compiler_pic"; then 8003 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8005$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8006if test "${lt_prog_compiler_pic_works+set}" = set; then : 8007 $as_echo_n "(cached) " >&6 8008else 8009 lt_prog_compiler_pic_works=no 8010 ac_outfile=conftest.$ac_objext 8011 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8012 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8013 # Insert the option either (1) after the last *FLAGS variable, or 8014 # (2) before a word containing "conftest.", or (3) at the end. 8015 # Note that $ac_compile itself does not contain backslashes and begins 8016 # with a dollar sign (not a hyphen), so the echo should work correctly. 8017 # The option is referenced via a variable to avoid confusing sed. 8018 lt_compile=`echo "$ac_compile" | $SED \ 8019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8021 -e 's:$: $lt_compiler_flag:'` 8022 (eval echo "\"\$as_me:8022: $lt_compile\"" >&5) 8023 (eval "$lt_compile" 2>conftest.err) 8024 ac_status=$? 8025 cat conftest.err >&5 8026 echo "$as_me:8026: \$? = $ac_status" >&5 8027 if (exit $ac_status) && test -s "$ac_outfile"; then 8028 # The compiler can only warn and ignore the option if not recognized 8029 # So say no if there are warnings other than the usual output. 8030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8033 lt_prog_compiler_pic_works=yes 8034 fi 8035 fi 8036 $rm conftest* 8037 8038fi 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5 8040$as_echo "$lt_prog_compiler_pic_works" >&6; } 8041 8042if test x"$lt_prog_compiler_pic_works" = xyes; then 8043 case $lt_prog_compiler_pic in 8044 "" | " "*) ;; 8045 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8046 esac 8047else 8048 lt_prog_compiler_pic= 8049 lt_prog_compiler_can_build_shared=no 8050fi 8051 8052fi 8053case $host_os in 8054 # For platforms which do not support PIC, -DPIC is meaningless: 8055 *djgpp*) 8056 lt_prog_compiler_pic= 8057 ;; 8058 *) 8059 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8060 ;; 8061esac 8062 8063# 8064# Check to make sure the static flag actually works. 8065# 8066wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8068$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8069if test "${lt_prog_compiler_static_works+set}" = set; then : 8070 $as_echo_n "(cached) " >&6 8071else 8072 lt_prog_compiler_static_works=no 8073 save_LDFLAGS="$LDFLAGS" 8074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8075 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8077 # The linker can only warn and ignore the option if not recognized 8078 # So say no if there are warnings 8079 if test -s conftest.err; then 8080 # Append any errors to the config.log. 8081 cat conftest.err 1>&5 8082 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8084 if diff conftest.exp conftest.er2 >/dev/null; then 8085 lt_prog_compiler_static_works=yes 8086 fi 8087 else 8088 lt_prog_compiler_static_works=yes 8089 fi 8090 fi 8091 $rm conftest* 8092 LDFLAGS="$save_LDFLAGS" 8093 8094fi 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5 8096$as_echo "$lt_prog_compiler_static_works" >&6; } 8097 8098if test x"$lt_prog_compiler_static_works" = xyes; then 8099 : 8100else 8101 lt_prog_compiler_static= 8102fi 8103 8104 8105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8106$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8107if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 lt_cv_prog_compiler_c_o=no 8111 $rm -r conftest 2>/dev/null 8112 mkdir conftest 8113 cd conftest 8114 mkdir out 8115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8116 8117 lt_compiler_flag="-o out/conftest2.$ac_objext" 8118 # Insert the option either (1) after the last *FLAGS variable, or 8119 # (2) before a word containing "conftest.", or (3) at the end. 8120 # Note that $ac_compile itself does not contain backslashes and begins 8121 # with a dollar sign (not a hyphen), so the echo should work correctly. 8122 lt_compile=`echo "$ac_compile" | $SED \ 8123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8125 -e 's:$: $lt_compiler_flag:'` 8126 (eval echo "\"\$as_me:8126: $lt_compile\"" >&5) 8127 (eval "$lt_compile" 2>out/conftest.err) 8128 ac_status=$? 8129 cat out/conftest.err >&5 8130 echo "$as_me:8130: \$? = $ac_status" >&5 8131 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8132 then 8133 # The compiler can only warn and ignore the option if not recognized 8134 # So say no if there are warnings 8135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8138 lt_cv_prog_compiler_c_o=yes 8139 fi 8140 fi 8141 chmod u+w . 2>&5 8142 $rm conftest* 8143 # SGI C++ compiler will create directory out/ii_files/ for 8144 # template instantiation 8145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8146 $rm out/* && rmdir out 8147 cd .. 8148 rmdir conftest 8149 $rm conftest* 8150 8151fi 8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8153$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8154 8155 8156hard_links="nottested" 8157if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8158 # do not overwrite the value of need_locks provided by the user 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8160$as_echo_n "checking if we can lock with hard links... " >&6; } 8161 hard_links=yes 8162 $rm conftest* 8163 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8164 touch conftest.a 8165 ln conftest.a conftest.b 2>&5 || hard_links=no 8166 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8168$as_echo "$hard_links" >&6; } 8169 if test "$hard_links" = no; then 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8171$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8172 need_locks=warn 8173 fi 8174else 8175 need_locks=no 8176fi 8177 8178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8179$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8180 8181 runpath_var= 8182 allow_undefined_flag= 8183 enable_shared_with_static_runtimes=no 8184 archive_cmds= 8185 archive_expsym_cmds= 8186 old_archive_From_new_cmds= 8187 old_archive_from_expsyms_cmds= 8188 export_dynamic_flag_spec= 8189 whole_archive_flag_spec= 8190 thread_safe_flag_spec= 8191 hardcode_libdir_flag_spec= 8192 hardcode_libdir_flag_spec_ld= 8193 hardcode_libdir_separator= 8194 hardcode_direct=no 8195 hardcode_minus_L=no 8196 hardcode_shlibpath_var=unsupported 8197 link_all_deplibs=unknown 8198 hardcode_automatic=no 8199 module_cmds= 8200 module_expsym_cmds= 8201 always_export_symbols=no 8202 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8203 # include_expsyms should be a list of space-separated symbols to be *always* 8204 # included in the symbol list 8205 include_expsyms= 8206 # exclude_expsyms can be an extended regexp of symbols to exclude 8207 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8208 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8209 # as well as any symbol that contains `d'. 8210 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8212 # platforms (ab)use it in PIC code, but their linkers get confused if 8213 # the symbol is explicitly referenced. Since portable code cannot 8214 # rely on this symbol name, it's probably fine to never include it in 8215 # preloaded symbol tables. 8216 extract_expsyms_cmds= 8217 # Just being paranoid about ensuring that cc_basename is set. 8218 for cc_temp in $compiler""; do 8219 case $cc_temp in 8220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8222 \-*) ;; 8223 *) break;; 8224 esac 8225done 8226cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8227 8228 case $host_os in 8229 cygwin* | mingw* | pw32*) 8230 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8231 # When not using gcc, we currently assume that we are using 8232 # Microsoft Visual C++. 8233 if test "$GCC" != yes; then 8234 with_gnu_ld=no 8235 fi 8236 ;; 8237 interix*) 8238 # we just hope/assume this is gcc and not c89 (= MSVC++) 8239 with_gnu_ld=yes 8240 ;; 8241 openbsd*) 8242 with_gnu_ld=no 8243 ;; 8244 esac 8245 8246 ld_shlibs=yes 8247 if test "$with_gnu_ld" = yes; then 8248 # If archive_cmds runs LD, not CC, wlarc should be empty 8249 wlarc='${wl}' 8250 8251 # Set some defaults for GNU ld with shared library support. These 8252 # are reset later if shared libraries are not supported. Putting them 8253 # here allows them to be overridden if necessary. 8254 runpath_var=LD_RUN_PATH 8255 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8256 export_dynamic_flag_spec='${wl}--export-dynamic' 8257 # ancient GNU ld didn't support --whole-archive et. al. 8258 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8259 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8260 else 8261 whole_archive_flag_spec= 8262 fi 8263 supports_anon_versioning=no 8264 case `$LD -v 2>/dev/null` in 8265 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8268 *\ 2.11.*) ;; # other 2.11 versions 8269 *) supports_anon_versioning=yes ;; 8270 esac 8271 8272 # See if GNU ld supports shared libraries. 8273 case $host_os in 8274 aix3* | aix4* | aix5*) 8275 # On AIX/PPC, the GNU linker is very broken 8276 if test "$host_cpu" != ia64; then 8277 ld_shlibs=no 8278 cat <<EOF 1>&2 8279 8280*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8281*** to be unable to reliably create shared libraries on AIX. 8282*** Therefore, libtool is disabling shared libraries support. If you 8283*** really care for shared libraries, you may want to modify your PATH 8284*** so that a non-GNU linker is found, and then restart. 8285 8286EOF 8287 fi 8288 ;; 8289 8290 amigaos*) 8291 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)' 8292 hardcode_libdir_flag_spec='-L$libdir' 8293 hardcode_minus_L=yes 8294 8295 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8296 # that the semantics of dynamic libraries on AmigaOS, at least up 8297 # to version 4, is to share data among multiple programs linked 8298 # with the same dynamic library. Since this doesn't match the 8299 # behavior of shared libraries on other platforms, we can't use 8300 # them. 8301 ld_shlibs=no 8302 ;; 8303 8304 beos*) 8305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8306 allow_undefined_flag=unsupported 8307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8308 # support --undefined. This deserves some investigation. FIXME 8309 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8310 else 8311 ld_shlibs=no 8312 fi 8313 ;; 8314 8315 cygwin* | mingw* | pw32*) 8316 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8317 # as there is no search path for DLLs. 8318 hardcode_libdir_flag_spec='-L$libdir' 8319 allow_undefined_flag=unsupported 8320 always_export_symbols=no 8321 enable_shared_with_static_runtimes=yes 8322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8323 8324 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8326 # If the export-symbols file already is a .def file (1st line 8327 # is EXPORTS), use it as is; otherwise, prepend... 8328 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8329 cp $export_symbols $output_objdir/$soname.def; 8330 else 8331 echo EXPORTS > $output_objdir/$soname.def; 8332 cat $export_symbols >> $output_objdir/$soname.def; 8333 fi~ 8334 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8335 else 8336 ld_shlibs=no 8337 fi 8338 ;; 8339 8340 interix3*) 8341 hardcode_direct=no 8342 hardcode_shlibpath_var=no 8343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8344 export_dynamic_flag_spec='${wl}-E' 8345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8346 # Instead, shared libraries are loaded at an image base (0x10000000 by 8347 # default) and relocated if they conflict, which is a slow very memory 8348 # consuming and fragmenting process. To avoid this, we pick a random, 8349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8350 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8351 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8352 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' 8353 ;; 8354 8355 linux*) 8356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8357 tmp_addflag= 8358 case $cc_basename,$host_cpu in 8359 pgcc*) # Portland Group C compiler 8360 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' 8361 tmp_addflag=' $pic_flag' 8362 ;; 8363 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8364 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' 8365 tmp_addflag=' $pic_flag -Mnomain' ;; 8366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8367 tmp_addflag=' -i_dynamic' ;; 8368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8369 tmp_addflag=' -i_dynamic -nofor_main' ;; 8370 ifc* | ifort*) # Intel Fortran compiler 8371 tmp_addflag=' -nofor_main' ;; 8372 esac 8373 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8374 8375 if test $supports_anon_versioning = yes; then 8376 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8378 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8379 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8380 fi 8381 else 8382 ld_shlibs=no 8383 fi 8384 ;; 8385 8386 netbsd*) 8387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8388 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8389 wlarc= 8390 else 8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8393 fi 8394 ;; 8395 8396 solaris*) 8397 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8398 ld_shlibs=no 8399 cat <<EOF 1>&2 8400 8401*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8402*** create shared libraries on Solaris systems. Therefore, libtool 8403*** is disabling shared libraries support. We urge you to upgrade GNU 8404*** binutils to release 2.9.1 or newer. Another option is to modify 8405*** your PATH or compiler configuration so that the native linker is 8406*** used, and then restart. 8407 8408EOF 8409 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8412 else 8413 ld_shlibs=no 8414 fi 8415 ;; 8416 8417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8418 case `$LD -v 2>&1` in 8419 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8420 ld_shlibs=no 8421 cat <<_LT_EOF 1>&2 8422 8423*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8424*** reliably create shared libraries on SCO systems. Therefore, libtool 8425*** is disabling shared libraries support. We urge you to upgrade GNU 8426*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8427*** your PATH or compiler configuration so that the native linker is 8428*** used, and then restart. 8429 8430_LT_EOF 8431 ;; 8432 *) 8433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8434 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8437 else 8438 ld_shlibs=no 8439 fi 8440 ;; 8441 esac 8442 ;; 8443 8444 sunos4*) 8445 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8446 wlarc= 8447 hardcode_direct=yes 8448 hardcode_shlibpath_var=no 8449 ;; 8450 8451 *) 8452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8455 else 8456 ld_shlibs=no 8457 fi 8458 ;; 8459 esac 8460 8461 if test "$ld_shlibs" = no; then 8462 runpath_var= 8463 hardcode_libdir_flag_spec= 8464 export_dynamic_flag_spec= 8465 whole_archive_flag_spec= 8466 fi 8467 else 8468 # PORTME fill in a description of your system's linker (not GNU ld) 8469 case $host_os in 8470 aix3*) 8471 allow_undefined_flag=unsupported 8472 always_export_symbols=yes 8473 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' 8474 # Note: this linker hardcodes the directories in LIBPATH if there 8475 # are no directories specified by -L. 8476 hardcode_minus_L=yes 8477 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8478 # Neither direct hardcoding nor static linking is supported with a 8479 # broken collect2. 8480 hardcode_direct=unsupported 8481 fi 8482 ;; 8483 8484 aix4* | aix5*) 8485 if test "$host_cpu" = ia64; then 8486 # On IA64, the linker does run time linking by default, so we don't 8487 # have to do anything special. 8488 aix_use_runtimelinking=no 8489 exp_sym_flag='-Bexport' 8490 no_entry_flag="" 8491 else 8492 # If we're using GNU nm, then we don't want the "-C" option. 8493 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8495 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' 8496 else 8497 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' 8498 fi 8499 aix_use_runtimelinking=no 8500 8501 # Test if we are trying to use run time linking or normal 8502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8503 # need to do runtime linking. 8504 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8505 for ld_flag in $LDFLAGS; do 8506 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8507 aix_use_runtimelinking=yes 8508 break 8509 fi 8510 done 8511 ;; 8512 esac 8513 8514 exp_sym_flag='-bexport' 8515 no_entry_flag='-bnoentry' 8516 fi 8517 8518 # When large executables or shared objects are built, AIX ld can 8519 # have problems creating the table of contents. If linking a library 8520 # or program results in "error TOC overflow" add -mminimal-toc to 8521 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8522 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8523 8524 archive_cmds='' 8525 hardcode_direct=yes 8526 hardcode_libdir_separator=':' 8527 link_all_deplibs=yes 8528 8529 if test "$GCC" = yes; then 8530 case $host_os in aix4.[012]|aix4.[012].*) 8531 # We only want to do this on AIX 4.2 and lower, the check 8532 # below for broken collect2 doesn't work under 4.3+ 8533 collect2name=`${CC} -print-prog-name=collect2` 8534 if test -f "$collect2name" && \ 8535 strings "$collect2name" | grep resolve_lib_name >/dev/null 8536 then 8537 # We have reworked collect2 8538 hardcode_direct=yes 8539 else 8540 # We have old collect2 8541 hardcode_direct=unsupported 8542 # It fails to find uninstalled libraries when the uninstalled 8543 # path is not listed in the libpath. Setting hardcode_minus_L 8544 # to unsupported forces relinking 8545 hardcode_minus_L=yes 8546 hardcode_libdir_flag_spec='-L$libdir' 8547 hardcode_libdir_separator= 8548 fi 8549 ;; 8550 esac 8551 shared_flag='-shared' 8552 if test "$aix_use_runtimelinking" = yes; then 8553 shared_flag="$shared_flag "'${wl}-G' 8554 fi 8555 else 8556 # not using gcc 8557 if test "$host_cpu" = ia64; then 8558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8559 # chokes on -Wl,-G. The following line is correct: 8560 shared_flag='-G' 8561 else 8562 if test "$aix_use_runtimelinking" = yes; then 8563 shared_flag='${wl}-G' 8564 else 8565 shared_flag='${wl}-bM:SRE' 8566 fi 8567 fi 8568 fi 8569 8570 # It seems that -bexpall does not export symbols beginning with 8571 # underscore (_), so it is better to generate a list of symbols to export. 8572 always_export_symbols=yes 8573 if test "$aix_use_runtimelinking" = yes; then 8574 # Warning - without using the other runtime loading flags (-brtl), 8575 # -berok will link without error, but may produce a broken library. 8576 allow_undefined_flag='-berok' 8577 # Determine the default libpath from the value encoded in an empty executable. 8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8579/* end confdefs.h. */ 8580 8581int 8582main () 8583{ 8584 8585 ; 8586 return 0; 8587} 8588_ACEOF 8589if ac_fn_c_try_link "$LINENO"; then : 8590 8591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8592}'` 8593# Check for a 64-bit object if we didn't find anything. 8594if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8595}'`; fi 8596fi 8597rm -f core conftest.err conftest.$ac_objext \ 8598 conftest$ac_exeext conftest.$ac_ext 8599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8600 8601 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8602 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" 8603 else 8604 if test "$host_cpu" = ia64; then 8605 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8606 allow_undefined_flag="-z nodefs" 8607 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" 8608 else 8609 # Determine the default libpath from the value encoded in an empty executable. 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612 8613int 8614main () 8615{ 8616 8617 ; 8618 return 0; 8619} 8620_ACEOF 8621if ac_fn_c_try_link "$LINENO"; then : 8622 8623aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8624}'` 8625# Check for a 64-bit object if we didn't find anything. 8626if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8627}'`; fi 8628fi 8629rm -f core conftest.err conftest.$ac_objext \ 8630 conftest$ac_exeext conftest.$ac_ext 8631if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8632 8633 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8634 # Warning - without using the other run time loading flags, 8635 # -berok will link without error, but may produce a broken library. 8636 no_undefined_flag=' ${wl}-bernotok' 8637 allow_undefined_flag=' ${wl}-berok' 8638 # Exported symbols can be pulled into shared objects from archives 8639 whole_archive_flag_spec='$convenience' 8640 archive_cmds_need_lc=yes 8641 # This is similar to how AIX traditionally builds its shared libraries. 8642 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' 8643 fi 8644 fi 8645 ;; 8646 8647 amigaos*) 8648 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)' 8649 hardcode_libdir_flag_spec='-L$libdir' 8650 hardcode_minus_L=yes 8651 # see comment about different semantics on the GNU ld section 8652 ld_shlibs=no 8653 ;; 8654 8655 bsdi[45]*) 8656 export_dynamic_flag_spec=-rdynamic 8657 ;; 8658 8659 cygwin* | mingw* | pw32*) 8660 # When not using gcc, we currently assume that we are using 8661 # Microsoft Visual C++. 8662 # hardcode_libdir_flag_spec is actually meaningless, as there is 8663 # no search path for DLLs. 8664 hardcode_libdir_flag_spec=' ' 8665 allow_undefined_flag=unsupported 8666 # Tell ltmain to make .lib files, not .a files. 8667 libext=lib 8668 # Tell ltmain to make .dll files, not .so files. 8669 shrext_cmds=".dll" 8670 # FIXME: Setting linknames here is a bad hack. 8671 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8672 # The linker will automatically build a .lib file if we build a DLL. 8673 old_archive_From_new_cmds='true' 8674 # FIXME: Should let the user specify the lib program. 8675 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8676 fix_srcfile_path='`cygpath -w "$srcfile"`' 8677 enable_shared_with_static_runtimes=yes 8678 ;; 8679 8680 darwin* | rhapsody*) 8681 case $host_os in 8682 rhapsody* | darwin1.[012]) 8683 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8684 ;; 8685 *) # Darwin 1.3 on 8686 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8687 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8688 else 8689 case ${MACOSX_DEPLOYMENT_TARGET} in 8690 10.[012]) 8691 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8692 ;; 8693 10.*) 8694 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8695 ;; 8696 esac 8697 fi 8698 ;; 8699 esac 8700 archive_cmds_need_lc=no 8701 hardcode_direct=no 8702 hardcode_automatic=yes 8703 hardcode_shlibpath_var=unsupported 8704 whole_archive_flag_spec='' 8705 link_all_deplibs=yes 8706 if test "$GCC" = yes ; then 8707 output_verbose_link_cmd='echo' 8708 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8709 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8710 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8711 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8712 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}' 8713 else 8714 case $cc_basename in 8715 xlc*) 8716 output_verbose_link_cmd='echo' 8717 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8718 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8719 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8720 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8721 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}' 8722 ;; 8723 *) 8724 ld_shlibs=no 8725 ;; 8726 esac 8727 fi 8728 ;; 8729 8730 dgux*) 8731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8732 hardcode_libdir_flag_spec='-L$libdir' 8733 hardcode_shlibpath_var=no 8734 ;; 8735 8736 freebsd1*) 8737 ld_shlibs=no 8738 ;; 8739 8740 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8741 # support. Future versions do this automatically, but an explicit c++rt0.o 8742 # does not break anything, and helps significantly (at the cost of a little 8743 # extra space). 8744 freebsd2.2*) 8745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8746 hardcode_libdir_flag_spec='-R$libdir' 8747 hardcode_direct=yes 8748 hardcode_shlibpath_var=no 8749 ;; 8750 8751 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8752 freebsd2*) 8753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8754 hardcode_direct=yes 8755 hardcode_minus_L=yes 8756 hardcode_shlibpath_var=no 8757 ;; 8758 8759 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8760 freebsd* | kfreebsd*-gnu | dragonfly*) 8761 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8762 hardcode_libdir_flag_spec='-R$libdir' 8763 hardcode_direct=yes 8764 hardcode_shlibpath_var=no 8765 ;; 8766 8767 hpux9*) 8768 if test "$GCC" = yes; then 8769 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' 8770 else 8771 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' 8772 fi 8773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8774 hardcode_libdir_separator=: 8775 hardcode_direct=yes 8776 8777 # hardcode_minus_L: Not really in the search PATH, 8778 # but as the default location of the library. 8779 hardcode_minus_L=yes 8780 export_dynamic_flag_spec='${wl}-E' 8781 ;; 8782 8783 hpux10*) 8784 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8786 else 8787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8788 fi 8789 if test "$with_gnu_ld" = no; then 8790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8791 hardcode_libdir_separator=: 8792 8793 hardcode_direct=yes 8794 export_dynamic_flag_spec='${wl}-E' 8795 8796 # hardcode_minus_L: Not really in the search PATH, 8797 # but as the default location of the library. 8798 hardcode_minus_L=yes 8799 fi 8800 ;; 8801 8802 hpux11*) 8803 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8804 case $host_cpu in 8805 hppa*64*) 8806 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8807 ;; 8808 ia64*) 8809 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8810 ;; 8811 *) 8812 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8813 ;; 8814 esac 8815 else 8816 case $host_cpu in 8817 hppa*64*) 8818 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8819 ;; 8820 ia64*) 8821 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8822 ;; 8823 *) 8824 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8825 ;; 8826 esac 8827 fi 8828 if test "$with_gnu_ld" = no; then 8829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8830 hardcode_libdir_separator=: 8831 8832 case $host_cpu in 8833 hppa*64*|ia64*) 8834 hardcode_libdir_flag_spec_ld='+b $libdir' 8835 hardcode_direct=no 8836 hardcode_shlibpath_var=no 8837 ;; 8838 *) 8839 hardcode_direct=yes 8840 export_dynamic_flag_spec='${wl}-E' 8841 8842 # hardcode_minus_L: Not really in the search PATH, 8843 # but as the default location of the library. 8844 hardcode_minus_L=yes 8845 ;; 8846 esac 8847 fi 8848 ;; 8849 8850 irix5* | irix6* | nonstopux*) 8851 if test "$GCC" = yes; then 8852 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' 8853 else 8854 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' 8855 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8856 fi 8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8858 hardcode_libdir_separator=: 8859 link_all_deplibs=yes 8860 ;; 8861 8862 netbsd*) 8863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8865 else 8866 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8867 fi 8868 hardcode_libdir_flag_spec='-R$libdir' 8869 hardcode_direct=yes 8870 hardcode_shlibpath_var=no 8871 ;; 8872 8873 newsos6) 8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8875 hardcode_direct=yes 8876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8877 hardcode_libdir_separator=: 8878 hardcode_shlibpath_var=no 8879 ;; 8880 8881 openbsd*) 8882 hardcode_direct=yes 8883 hardcode_shlibpath_var=no 8884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8886 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8887 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8888 export_dynamic_flag_spec='${wl}-E' 8889 else 8890 case $host_os in 8891 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8893 hardcode_libdir_flag_spec='-R$libdir' 8894 ;; 8895 *) 8896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8898 ;; 8899 esac 8900 fi 8901 ;; 8902 8903 os2*) 8904 hardcode_libdir_flag_spec='-L$libdir' 8905 hardcode_minus_L=yes 8906 allow_undefined_flag=unsupported 8907 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' 8908 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8909 ;; 8910 8911 osf3*) 8912 if test "$GCC" = yes; then 8913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8914 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' 8915 else 8916 allow_undefined_flag=' -expect_unresolved \*' 8917 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' 8918 fi 8919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8920 hardcode_libdir_separator=: 8921 ;; 8922 8923 osf4* | osf5*) # as osf3* with the addition of -msym flag 8924 if test "$GCC" = yes; then 8925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8926 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' 8927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8928 else 8929 allow_undefined_flag=' -expect_unresolved \*' 8930 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' 8931 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8932 $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' 8933 8934 # Both c and cxx compiler support -rpath directly 8935 hardcode_libdir_flag_spec='-rpath $libdir' 8936 fi 8937 hardcode_libdir_separator=: 8938 ;; 8939 8940 solaris*) 8941 no_undefined_flag=' -z text' 8942 if test "$GCC" = yes; then 8943 wlarc='${wl}' 8944 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8945 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8946 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8947 else 8948 wlarc='' 8949 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8950 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8951 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8952 fi 8953 hardcode_libdir_flag_spec='-R$libdir' 8954 hardcode_shlibpath_var=no 8955 case $host_os in 8956 solaris2.[0-5] | solaris2.[0-5].*) ;; 8957 *) 8958 # The compiler driver will combine linker options so we 8959 # cannot just pass the convience library names through 8960 # without $wl, iff we do not link with $LD. 8961 # Luckily, gcc supports the same syntax we need for Sun Studio. 8962 # Supported since Solaris 2.6 (maybe 2.5.1?) 8963 case $wlarc in 8964 '') 8965 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8966 *) 8967 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8968 esac ;; 8969 esac 8970 link_all_deplibs=yes 8971 ;; 8972 8973 sunos4*) 8974 if test "x$host_vendor" = xsequent; then 8975 # Use $CC to link under sequent, because it throws in some extra .o 8976 # files that make .init and .fini sections work. 8977 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8978 else 8979 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8980 fi 8981 hardcode_libdir_flag_spec='-L$libdir' 8982 hardcode_direct=yes 8983 hardcode_minus_L=yes 8984 hardcode_shlibpath_var=no 8985 ;; 8986 8987 sysv4) 8988 case $host_vendor in 8989 sni) 8990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8991 hardcode_direct=yes # is this really true??? 8992 ;; 8993 siemens) 8994 ## LD is ld it makes a PLAMLIB 8995 ## CC just makes a GrossModule. 8996 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8997 reload_cmds='$CC -r -o $output$reload_objs' 8998 hardcode_direct=no 8999 ;; 9000 motorola) 9001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9002 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9003 ;; 9004 esac 9005 runpath_var='LD_RUN_PATH' 9006 hardcode_shlibpath_var=no 9007 ;; 9008 9009 sysv4.3*) 9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9011 hardcode_shlibpath_var=no 9012 export_dynamic_flag_spec='-Bexport' 9013 ;; 9014 9015 sysv4*MP*) 9016 if test -d /usr/nec; then 9017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9018 hardcode_shlibpath_var=no 9019 runpath_var=LD_RUN_PATH 9020 hardcode_runpath_var=yes 9021 ld_shlibs=yes 9022 fi 9023 ;; 9024 9025 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9026 no_undefined_flag='${wl}-z,text' 9027 archive_cmds_need_lc=no 9028 hardcode_shlibpath_var=no 9029 runpath_var='LD_RUN_PATH' 9030 9031 if test "$GCC" = yes; then 9032 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9033 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9034 else 9035 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9036 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9037 fi 9038 ;; 9039 9040 sysv5* | sco3.2v5* | sco5v6*) 9041 # Note: We can NOT use -z defs as we might desire, because we do not 9042 # link with -lc, and that would cause any symbols used from libc to 9043 # always be unresolved, which means just about no library would 9044 # ever link correctly. If we're not using GNU ld we use -z text 9045 # though, which does catch some bad symbols but isn't as heavy-handed 9046 # as -z defs. 9047 no_undefined_flag='${wl}-z,text' 9048 allow_undefined_flag='${wl}-z,nodefs' 9049 archive_cmds_need_lc=no 9050 hardcode_shlibpath_var=no 9051 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9052 hardcode_libdir_separator=':' 9053 link_all_deplibs=yes 9054 export_dynamic_flag_spec='${wl}-Bexport' 9055 runpath_var='LD_RUN_PATH' 9056 9057 if test "$GCC" = yes; then 9058 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9060 else 9061 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9063 fi 9064 ;; 9065 9066 uts4*) 9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9068 hardcode_libdir_flag_spec='-L$libdir' 9069 hardcode_shlibpath_var=no 9070 ;; 9071 9072 *) 9073 ld_shlibs=no 9074 ;; 9075 esac 9076 fi 9077 9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9079$as_echo "$ld_shlibs" >&6; } 9080test "$ld_shlibs" = no && can_build_shared=no 9081 9082# 9083# Do we need to explicitly link libc? 9084# 9085case "x$archive_cmds_need_lc" in 9086x|xyes) 9087 # Assume -lc should be added 9088 archive_cmds_need_lc=yes 9089 9090 if test "$enable_shared" = yes && test "$GCC" = yes; then 9091 case $archive_cmds in 9092 *'~'*) 9093 # FIXME: we may have to deal with multi-command sequences. 9094 ;; 9095 '$CC '*) 9096 # Test whether the compiler implicitly links with -lc since on some 9097 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9098 # to ld, don't add -lc before -lgcc. 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9100$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9101 $rm conftest* 9102 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9103 9104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9105 (eval $ac_compile) 2>&5 9106 ac_status=$? 9107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9108 test $ac_status = 0; } 2>conftest.err; then 9109 soname=conftest 9110 lib=conftest 9111 libobjs=conftest.$ac_objext 9112 deplibs= 9113 wl=$lt_prog_compiler_wl 9114 pic_flag=$lt_prog_compiler_pic 9115 compiler_flags=-v 9116 linker_flags=-v 9117 verstring= 9118 output_objdir=. 9119 libname=conftest 9120 lt_save_allow_undefined_flag=$allow_undefined_flag 9121 allow_undefined_flag= 9122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9123 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9124 ac_status=$? 9125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9126 test $ac_status = 0; } 9127 then 9128 archive_cmds_need_lc=no 9129 else 9130 archive_cmds_need_lc=yes 9131 fi 9132 allow_undefined_flag=$lt_save_allow_undefined_flag 9133 else 9134 cat conftest.err 1>&5 9135 fi 9136 $rm conftest* 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9138$as_echo "$archive_cmds_need_lc" >&6; } 9139 ;; 9140 esac 9141 fi 9142 ;; 9143esac 9144 9145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9146$as_echo_n "checking dynamic linker characteristics... " >&6; } 9147library_names_spec= 9148libname_spec='lib$name' 9149soname_spec= 9150shrext_cmds=".so" 9151postinstall_cmds= 9152postuninstall_cmds= 9153finish_cmds= 9154finish_eval= 9155shlibpath_var= 9156shlibpath_overrides_runpath=unknown 9157version_type=none 9158dynamic_linker="$host_os ld.so" 9159sys_lib_dlsearch_path_spec="/lib /usr/lib" 9160if test "$GCC" = yes; then 9161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9162 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9163 # if the path contains ";" then we assume it to be the separator 9164 # otherwise default to the standard path separator (i.e. ":") - it is 9165 # assumed that no part of a normal pathname contains ";" but that should 9166 # okay in the real world where ";" in dirpaths is itself problematic. 9167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9168 else 9169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9170 fi 9171else 9172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9173fi 9174need_lib_prefix=unknown 9175hardcode_into_libs=no 9176 9177# when you set need_version to no, make sure it does not cause -set_version 9178# flags to be left without arguments 9179need_version=unknown 9180 9181case $host_os in 9182aix3*) 9183 version_type=linux 9184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9185 shlibpath_var=LIBPATH 9186 9187 # AIX 3 has no versioning support, so we append a major version to the name. 9188 soname_spec='${libname}${release}${shared_ext}$major' 9189 ;; 9190 9191aix4* | aix5*) 9192 version_type=linux 9193 need_lib_prefix=no 9194 need_version=no 9195 hardcode_into_libs=yes 9196 if test "$host_cpu" = ia64; then 9197 # AIX 5 supports IA64 9198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9199 shlibpath_var=LD_LIBRARY_PATH 9200 else 9201 # With GCC up to 2.95.x, collect2 would create an import file 9202 # for dependence libraries. The import file would start with 9203 # the line `#! .'. This would cause the generated library to 9204 # depend on `.', always an invalid library. This was fixed in 9205 # development snapshots of GCC prior to 3.0. 9206 case $host_os in 9207 aix4 | aix4.[01] | aix4.[01].*) 9208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9209 echo ' yes ' 9210 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9211 : 9212 else 9213 can_build_shared=no 9214 fi 9215 ;; 9216 esac 9217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9218 # soname into executable. Probably we can add versioning support to 9219 # collect2, so additional links can be useful in future. 9220 if test "$aix_use_runtimelinking" = yes; then 9221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9222 # instead of lib<name>.a to let people know that these are not 9223 # typical AIX shared libraries. 9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9225 else 9226 # We preserve .a as extension for shared libraries through AIX4.2 9227 # and later when we are not doing run time linking. 9228 library_names_spec='${libname}${release}.a $libname.a' 9229 soname_spec='${libname}${release}${shared_ext}$major' 9230 fi 9231 shlibpath_var=LIBPATH 9232 fi 9233 ;; 9234 9235amigaos*) 9236 library_names_spec='$libname.ixlibrary $libname.a' 9237 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9238 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' 9239 ;; 9240 9241beos*) 9242 library_names_spec='${libname}${shared_ext}' 9243 dynamic_linker="$host_os ld.so" 9244 shlibpath_var=LIBRARY_PATH 9245 ;; 9246 9247bsdi[45]*) 9248 version_type=linux 9249 need_version=no 9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9251 soname_spec='${libname}${release}${shared_ext}$major' 9252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9253 shlibpath_var=LD_LIBRARY_PATH 9254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9256 # the default ld.so.conf also contains /usr/contrib/lib and 9257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9258 # libtool to hard-code these into programs 9259 ;; 9260 9261cygwin* | mingw* | pw32*) 9262 version_type=windows 9263 shrext_cmds=".dll" 9264 need_version=no 9265 need_lib_prefix=no 9266 9267 case $GCC,$host_os in 9268 yes,cygwin* | yes,mingw* | yes,pw32*) 9269 library_names_spec='$libname.dll.a' 9270 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9271 postinstall_cmds='base_file=`basename \${file}`~ 9272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9273 dldir=$destdir/`dirname \$dlpath`~ 9274 test -d \$dldir || mkdir -p \$dldir~ 9275 $install_prog $dir/$dlname \$dldir/$dlname~ 9276 chmod a+x \$dldir/$dlname' 9277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9278 dlpath=$dir/\$dldll~ 9279 $rm \$dlpath' 9280 shlibpath_overrides_runpath=yes 9281 9282 case $host_os in 9283 cygwin*) 9284 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9285 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9286 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9287 ;; 9288 mingw*) 9289 # MinGW DLLs use traditional 'lib' prefix 9290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9292 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9293 # It is most probably a Windows format PATH printed by 9294 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9295 # path with ; separators, and with drive letters. We can handle the 9296 # drive letters (cygwin fileutils understands them), so leave them, 9297 # especially as we might pass files found there to a mingw objdump, 9298 # which wouldn't understand a cygwinified path. Ahh. 9299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9300 else 9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9302 fi 9303 ;; 9304 pw32*) 9305 # pw32 DLLs use 'pw' prefix rather than 'lib' 9306 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9307 ;; 9308 esac 9309 ;; 9310 9311 *) 9312 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9313 ;; 9314 esac 9315 dynamic_linker='Win32 ld.exe' 9316 # FIXME: first we should search . and the directory the executable is in 9317 shlibpath_var=PATH 9318 ;; 9319 9320darwin* | rhapsody*) 9321 dynamic_linker="$host_os dyld" 9322 version_type=darwin 9323 need_lib_prefix=no 9324 need_version=no 9325 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9326 soname_spec='${libname}${release}${major}$shared_ext' 9327 shlibpath_overrides_runpath=yes 9328 shlibpath_var=DYLD_LIBRARY_PATH 9329 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9330 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9331 if test "$GCC" = yes; then 9332 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9333 else 9334 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9335 fi 9336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9337 ;; 9338 9339dgux*) 9340 version_type=linux 9341 need_lib_prefix=no 9342 need_version=no 9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9344 soname_spec='${libname}${release}${shared_ext}$major' 9345 shlibpath_var=LD_LIBRARY_PATH 9346 ;; 9347 9348freebsd1*) 9349 dynamic_linker=no 9350 ;; 9351 9352kfreebsd*-gnu) 9353 version_type=linux 9354 need_lib_prefix=no 9355 need_version=no 9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9357 soname_spec='${libname}${release}${shared_ext}$major' 9358 shlibpath_var=LD_LIBRARY_PATH 9359 shlibpath_overrides_runpath=no 9360 hardcode_into_libs=yes 9361 dynamic_linker='GNU ld.so' 9362 ;; 9363 9364freebsd* | dragonfly*) 9365 # DragonFly does not have aout. When/if they implement a new 9366 # versioning mechanism, adjust this. 9367 if test -x /usr/bin/objformat; then 9368 objformat=`/usr/bin/objformat` 9369 else 9370 case $host_os in 9371 freebsd[123]*) objformat=aout ;; 9372 *) objformat=elf ;; 9373 esac 9374 fi 9375 version_type=freebsd-$objformat 9376 case $version_type in 9377 freebsd-elf*) 9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9379 need_version=no 9380 need_lib_prefix=no 9381 ;; 9382 freebsd-*) 9383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9384 need_version=yes 9385 ;; 9386 esac 9387 shlibpath_var=LD_LIBRARY_PATH 9388 case $host_os in 9389 freebsd2*) 9390 shlibpath_overrides_runpath=yes 9391 ;; 9392 freebsd3.[01]* | freebsdelf3.[01]*) 9393 shlibpath_overrides_runpath=yes 9394 hardcode_into_libs=yes 9395 ;; 9396 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9397 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9398 shlibpath_overrides_runpath=no 9399 hardcode_into_libs=yes 9400 ;; 9401 freebsd*) # from 4.6 on 9402 shlibpath_overrides_runpath=yes 9403 hardcode_into_libs=yes 9404 ;; 9405 esac 9406 ;; 9407 9408gnu*) 9409 version_type=linux 9410 need_lib_prefix=no 9411 need_version=no 9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9413 soname_spec='${libname}${release}${shared_ext}$major' 9414 shlibpath_var=LD_LIBRARY_PATH 9415 hardcode_into_libs=yes 9416 ;; 9417 9418hpux9* | hpux10* | hpux11*) 9419 # Give a soname corresponding to the major version so that dld.sl refuses to 9420 # link against other versions. 9421 version_type=sunos 9422 need_lib_prefix=no 9423 need_version=no 9424 case $host_cpu in 9425 ia64*) 9426 shrext_cmds='.so' 9427 hardcode_into_libs=yes 9428 dynamic_linker="$host_os dld.so" 9429 shlibpath_var=LD_LIBRARY_PATH 9430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9432 soname_spec='${libname}${release}${shared_ext}$major' 9433 if test "X$HPUX_IA64_MODE" = X32; then 9434 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9435 else 9436 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9437 fi 9438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9439 ;; 9440 hppa*64*) 9441 shrext_cmds='.sl' 9442 hardcode_into_libs=yes 9443 dynamic_linker="$host_os dld.sl" 9444 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9445 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9447 soname_spec='${libname}${release}${shared_ext}$major' 9448 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9450 ;; 9451 *) 9452 shrext_cmds='.sl' 9453 dynamic_linker="$host_os dld.sl" 9454 shlibpath_var=SHLIB_PATH 9455 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9457 soname_spec='${libname}${release}${shared_ext}$major' 9458 ;; 9459 esac 9460 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9461 postinstall_cmds='chmod 555 $lib' 9462 ;; 9463 9464interix3*) 9465 version_type=linux 9466 need_lib_prefix=no 9467 need_version=no 9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9469 soname_spec='${libname}${release}${shared_ext}$major' 9470 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9471 shlibpath_var=LD_LIBRARY_PATH 9472 shlibpath_overrides_runpath=no 9473 hardcode_into_libs=yes 9474 ;; 9475 9476irix5* | irix6* | nonstopux*) 9477 case $host_os in 9478 nonstopux*) version_type=nonstopux ;; 9479 *) 9480 if test "$lt_cv_prog_gnu_ld" = yes; then 9481 version_type=linux 9482 else 9483 version_type=irix 9484 fi ;; 9485 esac 9486 need_lib_prefix=no 9487 need_version=no 9488 soname_spec='${libname}${release}${shared_ext}$major' 9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9490 case $host_os in 9491 irix5* | nonstopux*) 9492 libsuff= shlibsuff= 9493 ;; 9494 *) 9495 case $LD in # libtool.m4 will add one of these switches to LD 9496 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9497 libsuff= shlibsuff= libmagic=32-bit;; 9498 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9499 libsuff=32 shlibsuff=N32 libmagic=N32;; 9500 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9501 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9502 *) libsuff= shlibsuff= libmagic=never-match;; 9503 esac 9504 ;; 9505 esac 9506 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9507 shlibpath_overrides_runpath=no 9508 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9509 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9510 hardcode_into_libs=yes 9511 ;; 9512 9513# No shared lib support for Linux oldld, aout, or coff. 9514linux*oldld* | linux*aout* | linux*coff*) 9515 dynamic_linker=no 9516 ;; 9517 9518# This must be Linux ELF. 9519linux*) 9520 version_type=linux 9521 need_lib_prefix=no 9522 need_version=no 9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9524 soname_spec='${libname}${release}${shared_ext}$major' 9525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9526 shlibpath_var=LD_LIBRARY_PATH 9527 shlibpath_overrides_runpath=no 9528 # This implies no fast_install, which is unacceptable. 9529 # Some rework will be needed to allow for fast_install 9530 # before this can be enabled. 9531 hardcode_into_libs=yes 9532 9533 # Append ld.so.conf contents to the search path 9534 if test -f /etc/ld.so.conf; then 9535 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9537 fi 9538 9539 # We used to test for /lib/ld.so.1 and disable shared libraries on 9540 # powerpc, because MkLinux only supported shared libraries with the 9541 # GNU dynamic linker. Since this was broken with cross compilers, 9542 # most powerpc-linux boxes support dynamic linking these days and 9543 # people can always --disable-shared, the test was removed, and we 9544 # assume the GNU/Linux dynamic linker is in use. 9545 dynamic_linker='GNU/Linux ld.so' 9546 ;; 9547 9548knetbsd*-gnu) 9549 version_type=linux 9550 need_lib_prefix=no 9551 need_version=no 9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9553 soname_spec='${libname}${release}${shared_ext}$major' 9554 shlibpath_var=LD_LIBRARY_PATH 9555 shlibpath_overrides_runpath=no 9556 hardcode_into_libs=yes 9557 dynamic_linker='GNU ld.so' 9558 ;; 9559 9560netbsd*) 9561 version_type=sunos 9562 need_lib_prefix=no 9563 need_version=no 9564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9567 dynamic_linker='NetBSD (a.out) ld.so' 9568 else 9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9570 soname_spec='${libname}${release}${shared_ext}$major' 9571 dynamic_linker='NetBSD ld.elf_so' 9572 fi 9573 shlibpath_var=LD_LIBRARY_PATH 9574 shlibpath_overrides_runpath=yes 9575 hardcode_into_libs=yes 9576 ;; 9577 9578newsos6) 9579 version_type=linux 9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9581 shlibpath_var=LD_LIBRARY_PATH 9582 shlibpath_overrides_runpath=yes 9583 ;; 9584 9585nto-qnx*) 9586 version_type=linux 9587 need_lib_prefix=no 9588 need_version=no 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9590 soname_spec='${libname}${release}${shared_ext}$major' 9591 shlibpath_var=LD_LIBRARY_PATH 9592 shlibpath_overrides_runpath=yes 9593 ;; 9594 9595openbsd*) 9596 version_type=sunos 9597 sys_lib_dlsearch_path_spec="/usr/lib" 9598 need_lib_prefix=no 9599 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9600 case $host_os in 9601 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9602 *) need_version=no ;; 9603 esac 9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9606 shlibpath_var=LD_LIBRARY_PATH 9607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9608 case $host_os in 9609 openbsd2.[89] | openbsd2.[89].*) 9610 shlibpath_overrides_runpath=no 9611 ;; 9612 *) 9613 shlibpath_overrides_runpath=yes 9614 ;; 9615 esac 9616 else 9617 shlibpath_overrides_runpath=yes 9618 fi 9619 ;; 9620 9621os2*) 9622 libname_spec='$name' 9623 shrext_cmds=".dll" 9624 need_lib_prefix=no 9625 library_names_spec='$libname${shared_ext} $libname.a' 9626 dynamic_linker='OS/2 ld.exe' 9627 shlibpath_var=LIBPATH 9628 ;; 9629 9630osf3* | osf4* | osf5*) 9631 version_type=osf 9632 need_lib_prefix=no 9633 need_version=no 9634 soname_spec='${libname}${release}${shared_ext}$major' 9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9636 shlibpath_var=LD_LIBRARY_PATH 9637 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9638 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9639 ;; 9640 9641solaris*) 9642 version_type=linux 9643 need_lib_prefix=no 9644 need_version=no 9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9646 soname_spec='${libname}${release}${shared_ext}$major' 9647 shlibpath_var=LD_LIBRARY_PATH 9648 shlibpath_overrides_runpath=yes 9649 hardcode_into_libs=yes 9650 # ldd complains unless libraries are executable 9651 postinstall_cmds='chmod +x $lib' 9652 ;; 9653 9654sunos4*) 9655 version_type=sunos 9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9657 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9658 shlibpath_var=LD_LIBRARY_PATH 9659 shlibpath_overrides_runpath=yes 9660 if test "$with_gnu_ld" = yes; then 9661 need_lib_prefix=no 9662 fi 9663 need_version=yes 9664 ;; 9665 9666sysv4 | sysv4.3*) 9667 version_type=linux 9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9669 soname_spec='${libname}${release}${shared_ext}$major' 9670 shlibpath_var=LD_LIBRARY_PATH 9671 case $host_vendor in 9672 sni) 9673 shlibpath_overrides_runpath=no 9674 need_lib_prefix=no 9675 export_dynamic_flag_spec='${wl}-Blargedynsym' 9676 runpath_var=LD_RUN_PATH 9677 ;; 9678 siemens) 9679 need_lib_prefix=no 9680 ;; 9681 motorola) 9682 need_lib_prefix=no 9683 need_version=no 9684 shlibpath_overrides_runpath=no 9685 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9686 ;; 9687 esac 9688 ;; 9689 9690sysv4*MP*) 9691 if test -d /usr/nec ;then 9692 version_type=linux 9693 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9694 soname_spec='$libname${shared_ext}.$major' 9695 shlibpath_var=LD_LIBRARY_PATH 9696 fi 9697 ;; 9698 9699sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9700 version_type=freebsd-elf 9701 need_lib_prefix=no 9702 need_version=no 9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9704 soname_spec='${libname}${release}${shared_ext}$major' 9705 shlibpath_var=LD_LIBRARY_PATH 9706 hardcode_into_libs=yes 9707 if test "$with_gnu_ld" = yes; then 9708 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9709 shlibpath_overrides_runpath=no 9710 else 9711 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9712 shlibpath_overrides_runpath=yes 9713 case $host_os in 9714 sco3.2v5*) 9715 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9716 ;; 9717 esac 9718 fi 9719 sys_lib_dlsearch_path_spec='/usr/lib' 9720 ;; 9721 9722uts4*) 9723 version_type=linux 9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9725 soname_spec='${libname}${release}${shared_ext}$major' 9726 shlibpath_var=LD_LIBRARY_PATH 9727 ;; 9728 9729*) 9730 dynamic_linker=no 9731 ;; 9732esac 9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9734$as_echo "$dynamic_linker" >&6; } 9735test "$dynamic_linker" = no && can_build_shared=no 9736 9737variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9738if test "$GCC" = yes; then 9739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9740fi 9741 9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9743$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9744hardcode_action= 9745if test -n "$hardcode_libdir_flag_spec" || \ 9746 test -n "$runpath_var" || \ 9747 test "X$hardcode_automatic" = "Xyes" ; then 9748 9749 # We can hardcode non-existant directories. 9750 if test "$hardcode_direct" != no && 9751 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9752 # have to relink, otherwise we might link with an installed library 9753 # when we should be linking with a yet-to-be-installed one 9754 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9755 test "$hardcode_minus_L" != no; then 9756 # Linking always hardcodes the temporary library directory. 9757 hardcode_action=relink 9758 else 9759 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9760 hardcode_action=immediate 9761 fi 9762else 9763 # We cannot hardcode anything, or else we can only hardcode existing 9764 # directories. 9765 hardcode_action=unsupported 9766fi 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9768$as_echo "$hardcode_action" >&6; } 9769 9770if test "$hardcode_action" = relink; then 9771 # Fast installation is not supported 9772 enable_fast_install=no 9773elif test "$shlibpath_overrides_runpath" = yes || 9774 test "$enable_shared" = no; then 9775 # Fast installation is not necessary 9776 enable_fast_install=needless 9777fi 9778 9779striplib= 9780old_striplib= 9781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 9782$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9783if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9784 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9785 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9787$as_echo "yes" >&6; } 9788else 9789# FIXME - insert some real tests, host_os isn't really good enough 9790 case $host_os in 9791 darwin*) 9792 if test -n "$STRIP" ; then 9793 striplib="$STRIP -x" 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9795$as_echo "yes" >&6; } 9796 else 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9798$as_echo "no" >&6; } 9799fi 9800 ;; 9801 *) 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9803$as_echo "no" >&6; } 9804 ;; 9805 esac 9806fi 9807 9808if test "x$enable_dlopen" != xyes; then 9809 enable_dlopen=unknown 9810 enable_dlopen_self=unknown 9811 enable_dlopen_self_static=unknown 9812else 9813 lt_cv_dlopen=no 9814 lt_cv_dlopen_libs= 9815 9816 case $host_os in 9817 beos*) 9818 lt_cv_dlopen="load_add_on" 9819 lt_cv_dlopen_libs= 9820 lt_cv_dlopen_self=yes 9821 ;; 9822 9823 mingw* | pw32*) 9824 lt_cv_dlopen="LoadLibrary" 9825 lt_cv_dlopen_libs= 9826 ;; 9827 9828 cygwin*) 9829 lt_cv_dlopen="dlopen" 9830 lt_cv_dlopen_libs= 9831 ;; 9832 9833 darwin*) 9834 # if libdl is installed we need to link against it 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9836$as_echo_n "checking for dlopen in -ldl... " >&6; } 9837if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9838 $as_echo_n "(cached) " >&6 9839else 9840 ac_check_lib_save_LIBS=$LIBS 9841LIBS="-ldl $LIBS" 9842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9843/* end confdefs.h. */ 9844 9845/* Override any GCC internal prototype to avoid an error. 9846 Use char because int might match the return type of a GCC 9847 builtin and then its argument prototype would still apply. */ 9848#ifdef __cplusplus 9849extern "C" 9850#endif 9851char dlopen (); 9852int 9853main () 9854{ 9855return dlopen (); 9856 ; 9857 return 0; 9858} 9859_ACEOF 9860if ac_fn_c_try_link "$LINENO"; then : 9861 ac_cv_lib_dl_dlopen=yes 9862else 9863 ac_cv_lib_dl_dlopen=no 9864fi 9865rm -f core conftest.err conftest.$ac_objext \ 9866 conftest$ac_exeext conftest.$ac_ext 9867LIBS=$ac_check_lib_save_LIBS 9868fi 9869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9870$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9871if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9873else 9874 9875 lt_cv_dlopen="dyld" 9876 lt_cv_dlopen_libs= 9877 lt_cv_dlopen_self=yes 9878 9879fi 9880 9881 ;; 9882 9883 *) 9884 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9885if test "x$ac_cv_func_shl_load" = x""yes; then : 9886 lt_cv_dlopen="shl_load" 9887else 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9889$as_echo_n "checking for shl_load in -ldld... " >&6; } 9890if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 9891 $as_echo_n "(cached) " >&6 9892else 9893 ac_check_lib_save_LIBS=$LIBS 9894LIBS="-ldld $LIBS" 9895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896/* end confdefs.h. */ 9897 9898/* Override any GCC internal prototype to avoid an error. 9899 Use char because int might match the return type of a GCC 9900 builtin and then its argument prototype would still apply. */ 9901#ifdef __cplusplus 9902extern "C" 9903#endif 9904char shl_load (); 9905int 9906main () 9907{ 9908return shl_load (); 9909 ; 9910 return 0; 9911} 9912_ACEOF 9913if ac_fn_c_try_link "$LINENO"; then : 9914 ac_cv_lib_dld_shl_load=yes 9915else 9916 ac_cv_lib_dld_shl_load=no 9917fi 9918rm -f core conftest.err conftest.$ac_objext \ 9919 conftest$ac_exeext conftest.$ac_ext 9920LIBS=$ac_check_lib_save_LIBS 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9923$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9924if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 9925 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9926else 9927 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9928if test "x$ac_cv_func_dlopen" = x""yes; then : 9929 lt_cv_dlopen="dlopen" 9930else 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9932$as_echo_n "checking for dlopen in -ldl... " >&6; } 9933if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9934 $as_echo_n "(cached) " >&6 9935else 9936 ac_check_lib_save_LIBS=$LIBS 9937LIBS="-ldl $LIBS" 9938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9939/* end confdefs.h. */ 9940 9941/* Override any GCC internal prototype to avoid an error. 9942 Use char because int might match the return type of a GCC 9943 builtin and then its argument prototype would still apply. */ 9944#ifdef __cplusplus 9945extern "C" 9946#endif 9947char dlopen (); 9948int 9949main () 9950{ 9951return dlopen (); 9952 ; 9953 return 0; 9954} 9955_ACEOF 9956if ac_fn_c_try_link "$LINENO"; then : 9957 ac_cv_lib_dl_dlopen=yes 9958else 9959 ac_cv_lib_dl_dlopen=no 9960fi 9961rm -f core conftest.err conftest.$ac_objext \ 9962 conftest$ac_exeext conftest.$ac_ext 9963LIBS=$ac_check_lib_save_LIBS 9964fi 9965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9966$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9967if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9969else 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9971$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9972if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 9973 $as_echo_n "(cached) " >&6 9974else 9975 ac_check_lib_save_LIBS=$LIBS 9976LIBS="-lsvld $LIBS" 9977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9978/* end confdefs.h. */ 9979 9980/* Override any GCC internal prototype to avoid an error. 9981 Use char because int might match the return type of a GCC 9982 builtin and then its argument prototype would still apply. */ 9983#ifdef __cplusplus 9984extern "C" 9985#endif 9986char dlopen (); 9987int 9988main () 9989{ 9990return dlopen (); 9991 ; 9992 return 0; 9993} 9994_ACEOF 9995if ac_fn_c_try_link "$LINENO"; then : 9996 ac_cv_lib_svld_dlopen=yes 9997else 9998 ac_cv_lib_svld_dlopen=no 9999fi 10000rm -f core conftest.err conftest.$ac_objext \ 10001 conftest$ac_exeext conftest.$ac_ext 10002LIBS=$ac_check_lib_save_LIBS 10003fi 10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10005$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10006if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10008else 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10010$as_echo_n "checking for dld_link in -ldld... " >&6; } 10011if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10012 $as_echo_n "(cached) " >&6 10013else 10014 ac_check_lib_save_LIBS=$LIBS 10015LIBS="-ldld $LIBS" 10016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018 10019/* Override any GCC internal prototype to avoid an error. 10020 Use char because int might match the return type of a GCC 10021 builtin and then its argument prototype would still apply. */ 10022#ifdef __cplusplus 10023extern "C" 10024#endif 10025char dld_link (); 10026int 10027main () 10028{ 10029return dld_link (); 10030 ; 10031 return 0; 10032} 10033_ACEOF 10034if ac_fn_c_try_link "$LINENO"; then : 10035 ac_cv_lib_dld_dld_link=yes 10036else 10037 ac_cv_lib_dld_dld_link=no 10038fi 10039rm -f core conftest.err conftest.$ac_objext \ 10040 conftest$ac_exeext conftest.$ac_ext 10041LIBS=$ac_check_lib_save_LIBS 10042fi 10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10044$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10045if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10046 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10047fi 10048 10049 10050fi 10051 10052 10053fi 10054 10055 10056fi 10057 10058 10059fi 10060 10061 10062fi 10063 10064 ;; 10065 esac 10066 10067 if test "x$lt_cv_dlopen" != xno; then 10068 enable_dlopen=yes 10069 else 10070 enable_dlopen=no 10071 fi 10072 10073 case $lt_cv_dlopen in 10074 dlopen) 10075 save_CPPFLAGS="$CPPFLAGS" 10076 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10077 10078 save_LDFLAGS="$LDFLAGS" 10079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10080 10081 save_LIBS="$LIBS" 10082 LIBS="$lt_cv_dlopen_libs $LIBS" 10083 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10085$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10086if test "${lt_cv_dlopen_self+set}" = set; then : 10087 $as_echo_n "(cached) " >&6 10088else 10089 if test "$cross_compiling" = yes; then : 10090 lt_cv_dlopen_self=cross 10091else 10092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10093 lt_status=$lt_dlunknown 10094 cat > conftest.$ac_ext <<EOF 10095#line 10095 "configure" 10096#include "confdefs.h" 10097 10098#if HAVE_DLFCN_H 10099#include <dlfcn.h> 10100#endif 10101 10102#include <stdio.h> 10103 10104#ifdef RTLD_GLOBAL 10105# define LT_DLGLOBAL RTLD_GLOBAL 10106#else 10107# ifdef DL_GLOBAL 10108# define LT_DLGLOBAL DL_GLOBAL 10109# else 10110# define LT_DLGLOBAL 0 10111# endif 10112#endif 10113 10114/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10115 find out it does not work in some platform. */ 10116#ifndef LT_DLLAZY_OR_NOW 10117# ifdef RTLD_LAZY 10118# define LT_DLLAZY_OR_NOW RTLD_LAZY 10119# else 10120# ifdef DL_LAZY 10121# define LT_DLLAZY_OR_NOW DL_LAZY 10122# else 10123# ifdef RTLD_NOW 10124# define LT_DLLAZY_OR_NOW RTLD_NOW 10125# else 10126# ifdef DL_NOW 10127# define LT_DLLAZY_OR_NOW DL_NOW 10128# else 10129# define LT_DLLAZY_OR_NOW 0 10130# endif 10131# endif 10132# endif 10133# endif 10134#endif 10135 10136#ifdef __cplusplus 10137extern "C" void exit (int); 10138#endif 10139 10140void fnord() { int i=42;} 10141int main () 10142{ 10143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10144 int status = $lt_dlunknown; 10145 10146 if (self) 10147 { 10148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10149 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10150 /* dlclose (self); */ 10151 } 10152 else 10153 puts (dlerror ()); 10154 10155 exit (status); 10156} 10157EOF 10158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10159 (eval $ac_link) 2>&5 10160 ac_status=$? 10161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10162 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10163 (./conftest; exit; ) >&5 2>/dev/null 10164 lt_status=$? 10165 case x$lt_status in 10166 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10167 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10168 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10169 esac 10170 else : 10171 # compilation failed 10172 lt_cv_dlopen_self=no 10173 fi 10174fi 10175rm -fr conftest* 10176 10177 10178fi 10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10180$as_echo "$lt_cv_dlopen_self" >&6; } 10181 10182 if test "x$lt_cv_dlopen_self" = xyes; then 10183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10185$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10186if test "${lt_cv_dlopen_self_static+set}" = set; then : 10187 $as_echo_n "(cached) " >&6 10188else 10189 if test "$cross_compiling" = yes; then : 10190 lt_cv_dlopen_self_static=cross 10191else 10192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10193 lt_status=$lt_dlunknown 10194 cat > conftest.$ac_ext <<EOF 10195#line 10195 "configure" 10196#include "confdefs.h" 10197 10198#if HAVE_DLFCN_H 10199#include <dlfcn.h> 10200#endif 10201 10202#include <stdio.h> 10203 10204#ifdef RTLD_GLOBAL 10205# define LT_DLGLOBAL RTLD_GLOBAL 10206#else 10207# ifdef DL_GLOBAL 10208# define LT_DLGLOBAL DL_GLOBAL 10209# else 10210# define LT_DLGLOBAL 0 10211# endif 10212#endif 10213 10214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10215 find out it does not work in some platform. */ 10216#ifndef LT_DLLAZY_OR_NOW 10217# ifdef RTLD_LAZY 10218# define LT_DLLAZY_OR_NOW RTLD_LAZY 10219# else 10220# ifdef DL_LAZY 10221# define LT_DLLAZY_OR_NOW DL_LAZY 10222# else 10223# ifdef RTLD_NOW 10224# define LT_DLLAZY_OR_NOW RTLD_NOW 10225# else 10226# ifdef DL_NOW 10227# define LT_DLLAZY_OR_NOW DL_NOW 10228# else 10229# define LT_DLLAZY_OR_NOW 0 10230# endif 10231# endif 10232# endif 10233# endif 10234#endif 10235 10236#ifdef __cplusplus 10237extern "C" void exit (int); 10238#endif 10239 10240void fnord() { int i=42;} 10241int main () 10242{ 10243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10244 int status = $lt_dlunknown; 10245 10246 if (self) 10247 { 10248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10250 /* dlclose (self); */ 10251 } 10252 else 10253 puts (dlerror ()); 10254 10255 exit (status); 10256} 10257EOF 10258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10259 (eval $ac_link) 2>&5 10260 ac_status=$? 10261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10263 (./conftest; exit; ) >&5 2>/dev/null 10264 lt_status=$? 10265 case x$lt_status in 10266 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10267 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10268 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10269 esac 10270 else : 10271 # compilation failed 10272 lt_cv_dlopen_self_static=no 10273 fi 10274fi 10275rm -fr conftest* 10276 10277 10278fi 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10280$as_echo "$lt_cv_dlopen_self_static" >&6; } 10281 fi 10282 10283 CPPFLAGS="$save_CPPFLAGS" 10284 LDFLAGS="$save_LDFLAGS" 10285 LIBS="$save_LIBS" 10286 ;; 10287 esac 10288 10289 case $lt_cv_dlopen_self in 10290 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10291 *) enable_dlopen_self=unknown ;; 10292 esac 10293 10294 case $lt_cv_dlopen_self_static in 10295 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10296 *) enable_dlopen_self_static=unknown ;; 10297 esac 10298fi 10299 10300 10301# Report which library types will actually be built 10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10303$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10305$as_echo "$can_build_shared" >&6; } 10306 10307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10308$as_echo_n "checking whether to build shared libraries... " >&6; } 10309test "$can_build_shared" = "no" && enable_shared=no 10310 10311# On AIX, shared libraries and static libraries use the same namespace, and 10312# are all built from PIC. 10313case $host_os in 10314aix3*) 10315 test "$enable_shared" = yes && enable_static=no 10316 if test -n "$RANLIB"; then 10317 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10318 postinstall_cmds='$RANLIB $lib' 10319 fi 10320 ;; 10321 10322aix4* | aix5*) 10323 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10324 test "$enable_shared" = yes && enable_static=no 10325 fi 10326 ;; 10327esac 10328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10329$as_echo "$enable_shared" >&6; } 10330 10331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10332$as_echo_n "checking whether to build static libraries... " >&6; } 10333# Make sure either enable_shared or enable_static is yes. 10334test "$enable_shared" = yes || enable_static=yes 10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10336$as_echo "$enable_static" >&6; } 10337 10338# The else clause should only fire when bootstrapping the 10339# libtool distribution, otherwise you forgot to ship ltmain.sh 10340# with your package, and you will get complaints that there are 10341# no rules to generate ltmain.sh. 10342if test -f "$ltmain"; then 10343 # See if we are running on zsh, and set the options which allow our commands through 10344 # without removal of \ escapes. 10345 if test -n "${ZSH_VERSION+set}" ; then 10346 setopt NO_GLOB_SUBST 10347 fi 10348 # Now quote all the things that may contain metacharacters while being 10349 # careful not to overquote the AC_SUBSTed values. We take copies of the 10350 # variables and quote the copies for generation of the libtool script. 10351 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10352 SED SHELL STRIP \ 10353 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10354 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10355 deplibs_check_method reload_flag reload_cmds need_locks \ 10356 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10357 lt_cv_sys_global_symbol_to_c_name_address \ 10358 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10359 old_postinstall_cmds old_postuninstall_cmds \ 10360 compiler \ 10361 CC \ 10362 LD \ 10363 lt_prog_compiler_wl \ 10364 lt_prog_compiler_pic \ 10365 lt_prog_compiler_static \ 10366 lt_prog_compiler_no_builtin_flag \ 10367 export_dynamic_flag_spec \ 10368 thread_safe_flag_spec \ 10369 whole_archive_flag_spec \ 10370 enable_shared_with_static_runtimes \ 10371 old_archive_cmds \ 10372 old_archive_from_new_cmds \ 10373 predep_objects \ 10374 postdep_objects \ 10375 predeps \ 10376 postdeps \ 10377 compiler_lib_search_path \ 10378 archive_cmds \ 10379 archive_expsym_cmds \ 10380 postinstall_cmds \ 10381 postuninstall_cmds \ 10382 old_archive_from_expsyms_cmds \ 10383 allow_undefined_flag \ 10384 no_undefined_flag \ 10385 export_symbols_cmds \ 10386 hardcode_libdir_flag_spec \ 10387 hardcode_libdir_flag_spec_ld \ 10388 hardcode_libdir_separator \ 10389 hardcode_automatic \ 10390 module_cmds \ 10391 module_expsym_cmds \ 10392 lt_cv_prog_compiler_c_o \ 10393 exclude_expsyms \ 10394 include_expsyms; do 10395 10396 case $var in 10397 old_archive_cmds | \ 10398 old_archive_from_new_cmds | \ 10399 archive_cmds | \ 10400 archive_expsym_cmds | \ 10401 module_cmds | \ 10402 module_expsym_cmds | \ 10403 old_archive_from_expsyms_cmds | \ 10404 export_symbols_cmds | \ 10405 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10406 postinstall_cmds | postuninstall_cmds | \ 10407 old_postinstall_cmds | old_postuninstall_cmds | \ 10408 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10409 # Double-quote double-evaled strings. 10410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10411 ;; 10412 *) 10413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10414 ;; 10415 esac 10416 done 10417 10418 case $lt_echo in 10419 *'\$0 --fallback-echo"') 10420 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10421 ;; 10422 esac 10423 10424cfgfile="${ofile}T" 10425 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10426 $rm -f "$cfgfile" 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 10428$as_echo "$as_me: creating $ofile" >&6;} 10429 10430 cat <<__EOF__ >> "$cfgfile" 10431#! $SHELL 10432 10433# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10434# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10435# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10436# 10437# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10438# Free Software Foundation, Inc. 10439# 10440# This file is part of GNU Libtool: 10441# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10442# 10443# This program is free software; you can redistribute it and/or modify 10444# it under the terms of the GNU General Public License as published by 10445# the Free Software Foundation; either version 2 of the License, or 10446# (at your option) any later version. 10447# 10448# This program is distributed in the hope that it will be useful, but 10449# WITHOUT ANY WARRANTY; without even the implied warranty of 10450# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10451# General Public License for more details. 10452# 10453# You should have received a copy of the GNU General Public License 10454# along with this program; if not, write to the Free Software 10455# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10456# 10457# As a special exception to the GNU General Public License, if you 10458# distribute this file as part of a program that contains a 10459# configuration script generated by Autoconf, you may include it under 10460# the same distribution terms that you use for the rest of that program. 10461 10462# A sed program that does not truncate output. 10463SED=$lt_SED 10464 10465# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10466Xsed="$SED -e 1s/^X//" 10467 10468# The HP-UX ksh and POSIX shell print the target directory to stdout 10469# if CDPATH is set. 10470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10471 10472# The names of the tagged configurations supported by this script. 10473available_tags= 10474 10475# ### BEGIN LIBTOOL CONFIG 10476 10477# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10478 10479# Shell to use when invoking shell scripts. 10480SHELL=$lt_SHELL 10481 10482# Whether or not to build shared libraries. 10483build_libtool_libs=$enable_shared 10484 10485# Whether or not to build static libraries. 10486build_old_libs=$enable_static 10487 10488# Whether or not to add -lc for building shared libraries. 10489build_libtool_need_lc=$archive_cmds_need_lc 10490 10491# Whether or not to disallow shared libs when runtime libs are static 10492allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10493 10494# Whether or not to optimize for fast installation. 10495fast_install=$enable_fast_install 10496 10497# The host system. 10498host_alias=$host_alias 10499host=$host 10500host_os=$host_os 10501 10502# The build system. 10503build_alias=$build_alias 10504build=$build 10505build_os=$build_os 10506 10507# An echo program that does not interpret backslashes. 10508echo=$lt_echo 10509 10510# The archiver. 10511AR=$lt_AR 10512AR_FLAGS=$lt_AR_FLAGS 10513 10514# A C compiler. 10515LTCC=$lt_LTCC 10516 10517# LTCC compiler flags. 10518LTCFLAGS=$lt_LTCFLAGS 10519 10520# A language-specific compiler. 10521CC=$lt_compiler 10522 10523# Is the compiler the GNU C compiler? 10524with_gcc=$GCC 10525 10526# An ERE matcher. 10527EGREP=$lt_EGREP 10528 10529# The linker used to build libraries. 10530LD=$lt_LD 10531 10532# Whether we need hard or soft links. 10533LN_S=$lt_LN_S 10534 10535# A BSD-compatible nm program. 10536NM=$lt_NM 10537 10538# A symbol stripping program 10539STRIP=$lt_STRIP 10540 10541# Used to examine libraries when file_magic_cmd begins "file" 10542MAGIC_CMD=$MAGIC_CMD 10543 10544# Used on cygwin: DLL creation program. 10545DLLTOOL="$DLLTOOL" 10546 10547# Used on cygwin: object dumper. 10548OBJDUMP="$OBJDUMP" 10549 10550# Used on cygwin: assembler. 10551AS="$AS" 10552 10553# The name of the directory that contains temporary libtool files. 10554objdir=$objdir 10555 10556# How to create reloadable object files. 10557reload_flag=$lt_reload_flag 10558reload_cmds=$lt_reload_cmds 10559 10560# How to pass a linker flag through the compiler. 10561wl=$lt_lt_prog_compiler_wl 10562 10563# Object file suffix (normally "o"). 10564objext="$ac_objext" 10565 10566# Old archive suffix (normally "a"). 10567libext="$libext" 10568 10569# Shared library suffix (normally ".so"). 10570shrext_cmds='$shrext_cmds' 10571 10572# Executable file suffix (normally ""). 10573exeext="$exeext" 10574 10575# Additional compiler flags for building library objects. 10576pic_flag=$lt_lt_prog_compiler_pic 10577pic_mode=$pic_mode 10578 10579# What is the maximum length of a command? 10580max_cmd_len=$lt_cv_sys_max_cmd_len 10581 10582# Does compiler simultaneously support -c and -o options? 10583compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10584 10585# Must we lock files when doing compilation? 10586need_locks=$lt_need_locks 10587 10588# Do we need the lib prefix for modules? 10589need_lib_prefix=$need_lib_prefix 10590 10591# Do we need a version for libraries? 10592need_version=$need_version 10593 10594# Whether dlopen is supported. 10595dlopen_support=$enable_dlopen 10596 10597# Whether dlopen of programs is supported. 10598dlopen_self=$enable_dlopen_self 10599 10600# Whether dlopen of statically linked programs is supported. 10601dlopen_self_static=$enable_dlopen_self_static 10602 10603# Compiler flag to prevent dynamic linking. 10604link_static_flag=$lt_lt_prog_compiler_static 10605 10606# Compiler flag to turn off builtin functions. 10607no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10608 10609# Compiler flag to allow reflexive dlopens. 10610export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10611 10612# Compiler flag to generate shared objects directly from archives. 10613whole_archive_flag_spec=$lt_whole_archive_flag_spec 10614 10615# Compiler flag to generate thread-safe objects. 10616thread_safe_flag_spec=$lt_thread_safe_flag_spec 10617 10618# Library versioning type. 10619version_type=$version_type 10620 10621# Format of library name prefix. 10622libname_spec=$lt_libname_spec 10623 10624# List of archive names. First name is the real one, the rest are links. 10625# The last name is the one that the linker finds with -lNAME. 10626library_names_spec=$lt_library_names_spec 10627 10628# The coded name of the library, if different from the real name. 10629soname_spec=$lt_soname_spec 10630 10631# Commands used to build and install an old-style archive. 10632RANLIB=$lt_RANLIB 10633old_archive_cmds=$lt_old_archive_cmds 10634old_postinstall_cmds=$lt_old_postinstall_cmds 10635old_postuninstall_cmds=$lt_old_postuninstall_cmds 10636 10637# Create an old-style archive from a shared archive. 10638old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10639 10640# Create a temporary old-style archive to link instead of a shared archive. 10641old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10642 10643# Commands used to build and install a shared archive. 10644archive_cmds=$lt_archive_cmds 10645archive_expsym_cmds=$lt_archive_expsym_cmds 10646postinstall_cmds=$lt_postinstall_cmds 10647postuninstall_cmds=$lt_postuninstall_cmds 10648 10649# Commands used to build a loadable module (assumed same as above if empty) 10650module_cmds=$lt_module_cmds 10651module_expsym_cmds=$lt_module_expsym_cmds 10652 10653# Commands to strip libraries. 10654old_striplib=$lt_old_striplib 10655striplib=$lt_striplib 10656 10657# Dependencies to place before the objects being linked to create a 10658# shared library. 10659predep_objects=$lt_predep_objects 10660 10661# Dependencies to place after the objects being linked to create a 10662# shared library. 10663postdep_objects=$lt_postdep_objects 10664 10665# Dependencies to place before the objects being linked to create a 10666# shared library. 10667predeps=$lt_predeps 10668 10669# Dependencies to place after the objects being linked to create a 10670# shared library. 10671postdeps=$lt_postdeps 10672 10673# The library search path used internally by the compiler when linking 10674# a shared library. 10675compiler_lib_search_path=$lt_compiler_lib_search_path 10676 10677# Method to check whether dependent libraries are shared objects. 10678deplibs_check_method=$lt_deplibs_check_method 10679 10680# Command to use when deplibs_check_method == file_magic. 10681file_magic_cmd=$lt_file_magic_cmd 10682 10683# Flag that allows shared libraries with undefined symbols to be built. 10684allow_undefined_flag=$lt_allow_undefined_flag 10685 10686# Flag that forces no undefined symbols. 10687no_undefined_flag=$lt_no_undefined_flag 10688 10689# Commands used to finish a libtool library installation in a directory. 10690finish_cmds=$lt_finish_cmds 10691 10692# Same as above, but a single script fragment to be evaled but not shown. 10693finish_eval=$lt_finish_eval 10694 10695# Take the output of nm and produce a listing of raw symbols and C names. 10696global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10697 10698# Transform the output of nm in a proper C declaration 10699global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10700 10701# Transform the output of nm in a C name address pair 10702global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10703 10704# This is the shared library runtime path variable. 10705runpath_var=$runpath_var 10706 10707# This is the shared library path variable. 10708shlibpath_var=$shlibpath_var 10709 10710# Is shlibpath searched before the hard-coded library search path? 10711shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10712 10713# How to hardcode a shared library path into an executable. 10714hardcode_action=$hardcode_action 10715 10716# Whether we should hardcode library paths into libraries. 10717hardcode_into_libs=$hardcode_into_libs 10718 10719# Flag to hardcode \$libdir into a binary during linking. 10720# This must work even if \$libdir does not exist. 10721hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10722 10723# If ld is used when linking, flag to hardcode \$libdir into 10724# a binary during linking. This must work even if \$libdir does 10725# not exist. 10726hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10727 10728# Whether we need a single -rpath flag with a separated argument. 10729hardcode_libdir_separator=$lt_hardcode_libdir_separator 10730 10731# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10732# resulting binary. 10733hardcode_direct=$hardcode_direct 10734 10735# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10736# resulting binary. 10737hardcode_minus_L=$hardcode_minus_L 10738 10739# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10740# the resulting binary. 10741hardcode_shlibpath_var=$hardcode_shlibpath_var 10742 10743# Set to yes if building a shared library automatically hardcodes DIR into the library 10744# and all subsequent libraries and executables linked against it. 10745hardcode_automatic=$hardcode_automatic 10746 10747# Variables whose values should be saved in libtool wrapper scripts and 10748# restored at relink time. 10749variables_saved_for_relink="$variables_saved_for_relink" 10750 10751# Whether libtool must link a program against all its dependency libraries. 10752link_all_deplibs=$link_all_deplibs 10753 10754# Compile-time system search path for libraries 10755sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10756 10757# Run-time system search path for libraries 10758sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10759 10760# Fix the shell variable \$srcfile for the compiler. 10761fix_srcfile_path="$fix_srcfile_path" 10762 10763# Set to yes if exported symbols are required. 10764always_export_symbols=$always_export_symbols 10765 10766# The commands to list exported symbols. 10767export_symbols_cmds=$lt_export_symbols_cmds 10768 10769# The commands to extract the exported symbol list from a shared archive. 10770extract_expsyms_cmds=$lt_extract_expsyms_cmds 10771 10772# Symbols that should not be listed in the preloaded symbols. 10773exclude_expsyms=$lt_exclude_expsyms 10774 10775# Symbols that must always be exported. 10776include_expsyms=$lt_include_expsyms 10777 10778# ### END LIBTOOL CONFIG 10779 10780__EOF__ 10781 10782 10783 case $host_os in 10784 aix3*) 10785 cat <<\EOF >> "$cfgfile" 10786 10787# AIX sometimes has problems with the GCC collect2 program. For some 10788# reason, if we set the COLLECT_NAMES environment variable, the problems 10789# vanish in a puff of smoke. 10790if test "X${COLLECT_NAMES+set}" != Xset; then 10791 COLLECT_NAMES= 10792 export COLLECT_NAMES 10793fi 10794EOF 10795 ;; 10796 esac 10797 10798 # We use sed instead of cat because bash on DJGPP gets confused if 10799 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10800 # text mode, it properly converts lines to CR/LF. This bash problem 10801 # is reportedly fixed, but why not run on old versions too? 10802 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10803 10804 mv -f "$cfgfile" "$ofile" || \ 10805 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10806 chmod +x "$ofile" 10807 10808else 10809 # If there is no Makefile yet, we rely on a make rule to execute 10810 # `config.status --recheck' to rerun these tests and create the 10811 # libtool script then. 10812 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10813 if test -f "$ltmain_in"; then 10814 test -f Makefile && make "$ltmain" 10815 fi 10816fi 10817 10818 10819ac_ext=c 10820ac_cpp='$CPP $CPPFLAGS' 10821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10823ac_compiler_gnu=$ac_cv_c_compiler_gnu 10824 10825CC="$lt_save_CC" 10826 10827 10828# Check whether --with-tags was given. 10829if test "${with_tags+set}" = set; then : 10830 withval=$with_tags; tagnames="$withval" 10831fi 10832 10833 10834if test -f "$ltmain" && test -n "$tagnames"; then 10835 if test ! -f "${ofile}"; then 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 10837$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10838 fi 10839 10840 if test -z "$LTCC"; then 10841 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10842 if test -z "$LTCC"; then 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10844$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10845 else 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10847$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10848 fi 10849 fi 10850 if test -z "$LTCFLAGS"; then 10851 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10852 fi 10853 10854 # Extract list of available tagged configurations in $ofile. 10855 # Note that this assumes the entire list is on one line. 10856 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10857 10858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10859 for tagname in $tagnames; do 10860 IFS="$lt_save_ifs" 10861 # Check whether tagname contains only valid characters 10862 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10863 "") ;; 10864 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 10865 ;; 10866 esac 10867 10868 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10869 then 10870 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 10871 fi 10872 10873 # Update the list of available tags. 10874 if test -n "$tagname"; then 10875 echo appending configuration tag \"$tagname\" to $ofile 10876 10877 case $tagname in 10878 CXX) 10879 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10880 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10881 (test "X$CXX" != "Xg++"))) ; then 10882 ac_ext=cpp 10883ac_cpp='$CXXCPP $CPPFLAGS' 10884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10887 10888 10889 10890 10891archive_cmds_need_lc_CXX=no 10892allow_undefined_flag_CXX= 10893always_export_symbols_CXX=no 10894archive_expsym_cmds_CXX= 10895export_dynamic_flag_spec_CXX= 10896hardcode_direct_CXX=no 10897hardcode_libdir_flag_spec_CXX= 10898hardcode_libdir_flag_spec_ld_CXX= 10899hardcode_libdir_separator_CXX= 10900hardcode_minus_L_CXX=no 10901hardcode_shlibpath_var_CXX=unsupported 10902hardcode_automatic_CXX=no 10903module_cmds_CXX= 10904module_expsym_cmds_CXX= 10905link_all_deplibs_CXX=unknown 10906old_archive_cmds_CXX=$old_archive_cmds 10907no_undefined_flag_CXX= 10908whole_archive_flag_spec_CXX= 10909enable_shared_with_static_runtimes_CXX=no 10910 10911# Dependencies to place before and after the object being linked: 10912predep_objects_CXX= 10913postdep_objects_CXX= 10914predeps_CXX= 10915postdeps_CXX= 10916compiler_lib_search_path_CXX= 10917 10918# Source file extension for C++ test sources. 10919ac_ext=cpp 10920 10921# Object file extension for compiled C++ test sources. 10922objext=o 10923objext_CXX=$objext 10924 10925# Code to be used in simple compile tests 10926lt_simple_compile_test_code="int some_variable = 0;\n" 10927 10928# Code to be used in simple link tests 10929lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10930 10931# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10932 10933# If no C compiler was specified, use CC. 10934LTCC=${LTCC-"$CC"} 10935 10936# If no C compiler flags were specified, use CFLAGS. 10937LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10938 10939# Allow CC to be a program name with arguments. 10940compiler=$CC 10941 10942 10943# save warnings/boilerplate of simple test code 10944ac_outfile=conftest.$ac_objext 10945printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10946eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10947_lt_compiler_boilerplate=`cat conftest.err` 10948$rm conftest* 10949 10950ac_outfile=conftest.$ac_objext 10951printf "$lt_simple_link_test_code" >conftest.$ac_ext 10952eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10953_lt_linker_boilerplate=`cat conftest.err` 10954$rm conftest* 10955 10956 10957# Allow CC to be a program name with arguments. 10958lt_save_CC=$CC 10959lt_save_LD=$LD 10960lt_save_GCC=$GCC 10961GCC=$GXX 10962lt_save_with_gnu_ld=$with_gnu_ld 10963lt_save_path_LD=$lt_cv_path_LD 10964if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10965 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10966else 10967 $as_unset lt_cv_prog_gnu_ld 10968fi 10969if test -n "${lt_cv_path_LDCXX+set}"; then 10970 lt_cv_path_LD=$lt_cv_path_LDCXX 10971else 10972 $as_unset lt_cv_path_LD 10973fi 10974test -z "${LDCXX+set}" || LD=$LDCXX 10975CC=${CXX-"c++"} 10976compiler=$CC 10977compiler_CXX=$CC 10978for cc_temp in $compiler""; do 10979 case $cc_temp in 10980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10982 \-*) ;; 10983 *) break;; 10984 esac 10985done 10986cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10987 10988 10989# We don't want -fno-exception wen compiling C++ code, so set the 10990# no_builtin_flag separately 10991if test "$GXX" = yes; then 10992 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10993else 10994 lt_prog_compiler_no_builtin_flag_CXX= 10995fi 10996 10997if test "$GXX" = yes; then 10998 # Set up default GNU C++ configuration 10999 11000 11001# Check whether --with-gnu-ld was given. 11002if test "${with_gnu_ld+set}" = set; then : 11003 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11004else 11005 with_gnu_ld=no 11006fi 11007 11008ac_prog=ld 11009if test "$GCC" = yes; then 11010 # Check if gcc -print-prog-name=ld gives a path. 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11012$as_echo_n "checking for ld used by $CC... " >&6; } 11013 case $host in 11014 *-*-mingw*) 11015 # gcc leaves a trailing carriage return which upsets mingw 11016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11017 *) 11018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11019 esac 11020 case $ac_prog in 11021 # Accept absolute paths. 11022 [\\/]* | ?:[\\/]*) 11023 re_direlt='/[^/][^/]*/\.\./' 11024 # Canonicalize the pathname of ld 11025 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11026 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11027 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11028 done 11029 test -z "$LD" && LD="$ac_prog" 11030 ;; 11031 "") 11032 # If it fails, then pretend we aren't using GCC. 11033 ac_prog=ld 11034 ;; 11035 *) 11036 # If it is relative, then search for the first ld in PATH. 11037 with_gnu_ld=unknown 11038 ;; 11039 esac 11040elif test "$with_gnu_ld" = yes; then 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11042$as_echo_n "checking for GNU ld... " >&6; } 11043else 11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11045$as_echo_n "checking for non-GNU ld... " >&6; } 11046fi 11047if test "${lt_cv_path_LD+set}" = set; then : 11048 $as_echo_n "(cached) " >&6 11049else 11050 if test -z "$LD"; then 11051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11052 for ac_dir in $PATH; do 11053 IFS="$lt_save_ifs" 11054 test -z "$ac_dir" && ac_dir=. 11055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11056 lt_cv_path_LD="$ac_dir/$ac_prog" 11057 # Check to see if the program is GNU ld. I'd rather use --version, 11058 # but apparently some variants of GNU ld only accept -v. 11059 # Break only if it was the GNU/non-GNU ld that we prefer. 11060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11061 *GNU* | *'with BFD'*) 11062 test "$with_gnu_ld" != no && break 11063 ;; 11064 *) 11065 test "$with_gnu_ld" != yes && break 11066 ;; 11067 esac 11068 fi 11069 done 11070 IFS="$lt_save_ifs" 11071else 11072 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11073fi 11074fi 11075 11076LD="$lt_cv_path_LD" 11077if test -n "$LD"; then 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11079$as_echo "$LD" >&6; } 11080else 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11082$as_echo "no" >&6; } 11083fi 11084test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11086$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11087if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11088 $as_echo_n "(cached) " >&6 11089else 11090 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11091case `$LD -v 2>&1 </dev/null` in 11092*GNU* | *'with BFD'*) 11093 lt_cv_prog_gnu_ld=yes 11094 ;; 11095*) 11096 lt_cv_prog_gnu_ld=no 11097 ;; 11098esac 11099fi 11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11101$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11102with_gnu_ld=$lt_cv_prog_gnu_ld 11103 11104 11105 11106 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11107 # archiving commands below assume that GNU ld is being used. 11108 if test "$with_gnu_ld" = yes; then 11109 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11110 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' 11111 11112 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11113 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11114 11115 # If archive_cmds runs LD, not CC, wlarc should be empty 11116 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11117 # investigate it a little bit more. (MM) 11118 wlarc='${wl}' 11119 11120 # ancient GNU ld didn't support --whole-archive et. al. 11121 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11122 grep 'no-whole-archive' > /dev/null; then 11123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11124 else 11125 whole_archive_flag_spec_CXX= 11126 fi 11127 else 11128 with_gnu_ld=no 11129 wlarc= 11130 11131 # A generic and very simple default shared library creation 11132 # command for GNU C++ for the case where it uses the native 11133 # linker, instead of GNU ld. If possible, this setting should 11134 # overridden to take advantage of the native linker features on 11135 # the platform it is being used on. 11136 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11137 fi 11138 11139 # Commands to make compiler produce verbose output that lists 11140 # what "hidden" libraries, object files and flags are used when 11141 # linking a shared library. 11142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11143 11144else 11145 GXX=no 11146 with_gnu_ld=no 11147 wlarc= 11148fi 11149 11150# PORTME: fill in a description of your system's C++ link characteristics 11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11152$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11153ld_shlibs_CXX=yes 11154case $host_os in 11155 aix3*) 11156 # FIXME: insert proper C++ library support 11157 ld_shlibs_CXX=no 11158 ;; 11159 aix4* | aix5*) 11160 if test "$host_cpu" = ia64; then 11161 # On IA64, the linker does run time linking by default, so we don't 11162 # have to do anything special. 11163 aix_use_runtimelinking=no 11164 exp_sym_flag='-Bexport' 11165 no_entry_flag="" 11166 else 11167 aix_use_runtimelinking=no 11168 11169 # Test if we are trying to use run time linking or normal 11170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11171 # need to do runtime linking. 11172 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11173 for ld_flag in $LDFLAGS; do 11174 case $ld_flag in 11175 *-brtl*) 11176 aix_use_runtimelinking=yes 11177 break 11178 ;; 11179 esac 11180 done 11181 ;; 11182 esac 11183 11184 exp_sym_flag='-bexport' 11185 no_entry_flag='-bnoentry' 11186 fi 11187 11188 # When large executables or shared objects are built, AIX ld can 11189 # have problems creating the table of contents. If linking a library 11190 # or program results in "error TOC overflow" add -mminimal-toc to 11191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11193 11194 archive_cmds_CXX='' 11195 hardcode_direct_CXX=yes 11196 hardcode_libdir_separator_CXX=':' 11197 link_all_deplibs_CXX=yes 11198 11199 if test "$GXX" = yes; then 11200 case $host_os in aix4.[012]|aix4.[012].*) 11201 # We only want to do this on AIX 4.2 and lower, the check 11202 # below for broken collect2 doesn't work under 4.3+ 11203 collect2name=`${CC} -print-prog-name=collect2` 11204 if test -f "$collect2name" && \ 11205 strings "$collect2name" | grep resolve_lib_name >/dev/null 11206 then 11207 # We have reworked collect2 11208 hardcode_direct_CXX=yes 11209 else 11210 # We have old collect2 11211 hardcode_direct_CXX=unsupported 11212 # It fails to find uninstalled libraries when the uninstalled 11213 # path is not listed in the libpath. Setting hardcode_minus_L 11214 # to unsupported forces relinking 11215 hardcode_minus_L_CXX=yes 11216 hardcode_libdir_flag_spec_CXX='-L$libdir' 11217 hardcode_libdir_separator_CXX= 11218 fi 11219 ;; 11220 esac 11221 shared_flag='-shared' 11222 if test "$aix_use_runtimelinking" = yes; then 11223 shared_flag="$shared_flag "'${wl}-G' 11224 fi 11225 else 11226 # not using gcc 11227 if test "$host_cpu" = ia64; then 11228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11229 # chokes on -Wl,-G. The following line is correct: 11230 shared_flag='-G' 11231 else 11232 if test "$aix_use_runtimelinking" = yes; then 11233 shared_flag='${wl}-G' 11234 else 11235 shared_flag='${wl}-bM:SRE' 11236 fi 11237 fi 11238 fi 11239 11240 # It seems that -bexpall does not export symbols beginning with 11241 # underscore (_), so it is better to generate a list of symbols to export. 11242 always_export_symbols_CXX=yes 11243 if test "$aix_use_runtimelinking" = yes; then 11244 # Warning - without using the other runtime loading flags (-brtl), 11245 # -berok will link without error, but may produce a broken library. 11246 allow_undefined_flag_CXX='-berok' 11247 # Determine the default libpath from the value encoded in an empty executable. 11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11249/* end confdefs.h. */ 11250 11251int 11252main () 11253{ 11254 11255 ; 11256 return 0; 11257} 11258_ACEOF 11259if ac_fn_cxx_try_link "$LINENO"; then : 11260 11261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11262}'` 11263# Check for a 64-bit object if we didn't find anything. 11264if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11265}'`; fi 11266fi 11267rm -f core conftest.err conftest.$ac_objext \ 11268 conftest$ac_exeext conftest.$ac_ext 11269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11270 11271 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11272 11273 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" 11274 else 11275 if test "$host_cpu" = ia64; then 11276 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11277 allow_undefined_flag_CXX="-z nodefs" 11278 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" 11279 else 11280 # Determine the default libpath from the value encoded in an empty executable. 11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11282/* end confdefs.h. */ 11283 11284int 11285main () 11286{ 11287 11288 ; 11289 return 0; 11290} 11291_ACEOF 11292if ac_fn_cxx_try_link "$LINENO"; then : 11293 11294aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11295}'` 11296# Check for a 64-bit object if we didn't find anything. 11297if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11298}'`; fi 11299fi 11300rm -f core conftest.err conftest.$ac_objext \ 11301 conftest$ac_exeext conftest.$ac_ext 11302if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11303 11304 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11305 # Warning - without using the other run time loading flags, 11306 # -berok will link without error, but may produce a broken library. 11307 no_undefined_flag_CXX=' ${wl}-bernotok' 11308 allow_undefined_flag_CXX=' ${wl}-berok' 11309 # Exported symbols can be pulled into shared objects from archives 11310 whole_archive_flag_spec_CXX='$convenience' 11311 archive_cmds_need_lc_CXX=yes 11312 # This is similar to how AIX traditionally builds its shared libraries. 11313 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' 11314 fi 11315 fi 11316 ;; 11317 11318 beos*) 11319 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11320 allow_undefined_flag_CXX=unsupported 11321 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11322 # support --undefined. This deserves some investigation. FIXME 11323 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11324 else 11325 ld_shlibs_CXX=no 11326 fi 11327 ;; 11328 11329 chorus*) 11330 case $cc_basename in 11331 *) 11332 # FIXME: insert proper C++ library support 11333 ld_shlibs_CXX=no 11334 ;; 11335 esac 11336 ;; 11337 11338 cygwin* | mingw* | pw32*) 11339 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11340 # as there is no search path for DLLs. 11341 hardcode_libdir_flag_spec_CXX='-L$libdir' 11342 allow_undefined_flag_CXX=unsupported 11343 always_export_symbols_CXX=no 11344 enable_shared_with_static_runtimes_CXX=yes 11345 11346 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11347 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' 11348 # If the export-symbols file already is a .def file (1st line 11349 # is EXPORTS), use it as is; otherwise, prepend... 11350 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11351 cp $export_symbols $output_objdir/$soname.def; 11352 else 11353 echo EXPORTS > $output_objdir/$soname.def; 11354 cat $export_symbols >> $output_objdir/$soname.def; 11355 fi~ 11356 $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' 11357 else 11358 ld_shlibs_CXX=no 11359 fi 11360 ;; 11361 darwin* | rhapsody*) 11362 case $host_os in 11363 rhapsody* | darwin1.[012]) 11364 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11365 ;; 11366 *) # Darwin 1.3 on 11367 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11368 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11369 else 11370 case ${MACOSX_DEPLOYMENT_TARGET} in 11371 10.[012]) 11372 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11373 ;; 11374 10.*) 11375 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11376 ;; 11377 esac 11378 fi 11379 ;; 11380 esac 11381 archive_cmds_need_lc_CXX=no 11382 hardcode_direct_CXX=no 11383 hardcode_automatic_CXX=yes 11384 hardcode_shlibpath_var_CXX=unsupported 11385 whole_archive_flag_spec_CXX='' 11386 link_all_deplibs_CXX=yes 11387 11388 if test "$GXX" = yes ; then 11389 lt_int_apple_cc_single_mod=no 11390 output_verbose_link_cmd='echo' 11391 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11392 lt_int_apple_cc_single_mod=yes 11393 fi 11394 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11395 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11396 else 11397 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' 11398 fi 11399 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11400 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11401 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11402 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11403 else 11404 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11405 fi 11406 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}' 11407 else 11408 case $cc_basename in 11409 xlc*) 11410 output_verbose_link_cmd='echo' 11411 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11412 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11414 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11415 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}' 11416 ;; 11417 *) 11418 ld_shlibs_CXX=no 11419 ;; 11420 esac 11421 fi 11422 ;; 11423 11424 dgux*) 11425 case $cc_basename in 11426 ec++*) 11427 # FIXME: insert proper C++ library support 11428 ld_shlibs_CXX=no 11429 ;; 11430 ghcx*) 11431 # Green Hills C++ Compiler 11432 # FIXME: insert proper C++ library support 11433 ld_shlibs_CXX=no 11434 ;; 11435 *) 11436 # FIXME: insert proper C++ library support 11437 ld_shlibs_CXX=no 11438 ;; 11439 esac 11440 ;; 11441 freebsd[12]*) 11442 # C++ shared libraries reported to be fairly broken before switch to ELF 11443 ld_shlibs_CXX=no 11444 ;; 11445 freebsd-elf*) 11446 archive_cmds_need_lc_CXX=no 11447 ;; 11448 freebsd* | kfreebsd*-gnu | dragonfly*) 11449 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11450 # conventions 11451 ld_shlibs_CXX=yes 11452 ;; 11453 gnu*) 11454 ;; 11455 hpux9*) 11456 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11457 hardcode_libdir_separator_CXX=: 11458 export_dynamic_flag_spec_CXX='${wl}-E' 11459 hardcode_direct_CXX=yes 11460 hardcode_minus_L_CXX=yes # Not in the search PATH, 11461 # but as the default 11462 # location of the library. 11463 11464 case $cc_basename in 11465 CC*) 11466 # FIXME: insert proper C++ library support 11467 ld_shlibs_CXX=no 11468 ;; 11469 aCC*) 11470 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' 11471 # Commands to make compiler produce verbose output that lists 11472 # what "hidden" libraries, object files and flags are used when 11473 # linking a shared library. 11474 # 11475 # There doesn't appear to be a way to prevent this compiler from 11476 # explicitly linking system object files so we need to strip them 11477 # from the output so that they don't get included in the library 11478 # dependencies. 11479 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' 11480 ;; 11481 *) 11482 if test "$GXX" = yes; then 11483 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' 11484 else 11485 # FIXME: insert proper C++ library support 11486 ld_shlibs_CXX=no 11487 fi 11488 ;; 11489 esac 11490 ;; 11491 hpux10*|hpux11*) 11492 if test $with_gnu_ld = no; then 11493 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11494 hardcode_libdir_separator_CXX=: 11495 11496 case $host_cpu in 11497 hppa*64*|ia64*) 11498 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11499 ;; 11500 *) 11501 export_dynamic_flag_spec_CXX='${wl}-E' 11502 ;; 11503 esac 11504 fi 11505 case $host_cpu in 11506 hppa*64*|ia64*) 11507 hardcode_direct_CXX=no 11508 hardcode_shlibpath_var_CXX=no 11509 ;; 11510 *) 11511 hardcode_direct_CXX=yes 11512 hardcode_minus_L_CXX=yes # Not in the search PATH, 11513 # but as the default 11514 # location of the library. 11515 ;; 11516 esac 11517 11518 case $cc_basename in 11519 CC*) 11520 # FIXME: insert proper C++ library support 11521 ld_shlibs_CXX=no 11522 ;; 11523 aCC*) 11524 case $host_cpu in 11525 hppa*64*) 11526 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11527 ;; 11528 ia64*) 11529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11530 ;; 11531 *) 11532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11533 ;; 11534 esac 11535 # Commands to make compiler produce verbose output that lists 11536 # what "hidden" libraries, object files and flags are used when 11537 # linking a shared library. 11538 # 11539 # There doesn't appear to be a way to prevent this compiler from 11540 # explicitly linking system object files so we need to strip them 11541 # from the output so that they don't get included in the library 11542 # dependencies. 11543 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' 11544 ;; 11545 *) 11546 if test "$GXX" = yes; then 11547 if test $with_gnu_ld = no; then 11548 case $host_cpu in 11549 hppa*64*) 11550 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11551 ;; 11552 ia64*) 11553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11554 ;; 11555 *) 11556 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' 11557 ;; 11558 esac 11559 fi 11560 else 11561 # FIXME: insert proper C++ library support 11562 ld_shlibs_CXX=no 11563 fi 11564 ;; 11565 esac 11566 ;; 11567 interix3*) 11568 hardcode_direct_CXX=no 11569 hardcode_shlibpath_var_CXX=no 11570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11571 export_dynamic_flag_spec_CXX='${wl}-E' 11572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11573 # Instead, shared libraries are loaded at an image base (0x10000000 by 11574 # default) and relocated if they conflict, which is a slow very memory 11575 # consuming and fragmenting process. To avoid this, we pick a random, 11576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11577 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11578 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' 11579 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' 11580 ;; 11581 irix5* | irix6*) 11582 case $cc_basename in 11583 CC*) 11584 # SGI C++ 11585 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' 11586 11587 # Archives containing C++ object files must be created using 11588 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11589 # necessary to make sure instantiated templates are included 11590 # in the archive. 11591 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11592 ;; 11593 *) 11594 if test "$GXX" = yes; then 11595 if test "$with_gnu_ld" = no; then 11596 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' 11597 else 11598 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' 11599 fi 11600 fi 11601 link_all_deplibs_CXX=yes 11602 ;; 11603 esac 11604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11605 hardcode_libdir_separator_CXX=: 11606 ;; 11607 linux*) 11608 case $cc_basename in 11609 KCC*) 11610 # Kuck and Associates, Inc. (KAI) C++ Compiler 11611 11612 # KCC will only create a shared library if the output file 11613 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11614 # to its proper name (with version) after linking. 11615 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' 11616 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' 11617 # Commands to make compiler produce verbose output that lists 11618 # what "hidden" libraries, object files and flags are used when 11619 # linking a shared library. 11620 # 11621 # There doesn't appear to be a way to prevent this compiler from 11622 # explicitly linking system object files so we need to strip them 11623 # from the output so that they don't get included in the library 11624 # dependencies. 11625 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' 11626 11627 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11629 11630 # Archives containing C++ object files must be created using 11631 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11632 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11633 ;; 11634 icpc*) 11635 # Intel C++ 11636 with_gnu_ld=yes 11637 # version 8.0 and above of icpc choke on multiply defined symbols 11638 # if we add $predep_objects and $postdep_objects, however 7.1 and 11639 # earlier do not add the objects themselves. 11640 case `$CC -V 2>&1` in 11641 *"Version 7."*) 11642 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11643 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' 11644 ;; 11645 *) # Version 8.0 or newer 11646 tmp_idyn= 11647 case $host_cpu in 11648 ia64*) tmp_idyn=' -i_dynamic';; 11649 esac 11650 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11651 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' 11652 ;; 11653 esac 11654 archive_cmds_need_lc_CXX=no 11655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11657 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11658 ;; 11659 pgCC*) 11660 # Portland Group C++ compiler 11661 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11662 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' 11663 11664 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11666 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' 11667 ;; 11668 cxx*) 11669 # Compaq C++ 11670 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11671 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' 11672 11673 runpath_var=LD_RUN_PATH 11674 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11675 hardcode_libdir_separator_CXX=: 11676 11677 # Commands to make compiler produce verbose output that lists 11678 # what "hidden" libraries, object files and flags are used when 11679 # linking a shared library. 11680 # 11681 # There doesn't appear to be a way to prevent this compiler from 11682 # explicitly linking system object files so we need to strip them 11683 # from the output so that they don't get included in the library 11684 # dependencies. 11685 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' 11686 ;; 11687 esac 11688 ;; 11689 lynxos*) 11690 # FIXME: insert proper C++ library support 11691 ld_shlibs_CXX=no 11692 ;; 11693 m88k*) 11694 # FIXME: insert proper C++ library support 11695 ld_shlibs_CXX=no 11696 ;; 11697 mvs*) 11698 case $cc_basename in 11699 cxx*) 11700 # FIXME: insert proper C++ library support 11701 ld_shlibs_CXX=no 11702 ;; 11703 *) 11704 # FIXME: insert proper C++ library support 11705 ld_shlibs_CXX=no 11706 ;; 11707 esac 11708 ;; 11709 netbsd*) 11710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11711 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11712 wlarc= 11713 hardcode_libdir_flag_spec_CXX='-R$libdir' 11714 hardcode_direct_CXX=yes 11715 hardcode_shlibpath_var_CXX=no 11716 fi 11717 # Workaround some broken pre-1.5 toolchains 11718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11719 ;; 11720 openbsd2*) 11721 # C++ shared libraries are fairly broken 11722 ld_shlibs_CXX=no 11723 ;; 11724 openbsd*) 11725 hardcode_direct_CXX=yes 11726 hardcode_shlibpath_var_CXX=no 11727 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11730 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11731 export_dynamic_flag_spec_CXX='${wl}-E' 11732 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11733 fi 11734 output_verbose_link_cmd='echo' 11735 ;; 11736 osf3*) 11737 case $cc_basename in 11738 KCC*) 11739 # Kuck and Associates, Inc. (KAI) C++ Compiler 11740 11741 # KCC will only create a shared library if the output file 11742 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11743 # to its proper name (with version) after linking. 11744 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' 11745 11746 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11747 hardcode_libdir_separator_CXX=: 11748 11749 # Archives containing C++ object files must be created using 11750 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11751 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11752 11753 ;; 11754 RCC*) 11755 # Rational C++ 2.4.1 11756 # FIXME: insert proper C++ library support 11757 ld_shlibs_CXX=no 11758 ;; 11759 cxx*) 11760 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11761 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' 11762 11763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11764 hardcode_libdir_separator_CXX=: 11765 11766 # Commands to make compiler produce verbose output that lists 11767 # what "hidden" libraries, object files and flags are used when 11768 # linking a shared library. 11769 # 11770 # There doesn't appear to be a way to prevent this compiler from 11771 # explicitly linking system object files so we need to strip them 11772 # from the output so that they don't get included in the library 11773 # dependencies. 11774 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' 11775 ;; 11776 *) 11777 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11778 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11779 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' 11780 11781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11782 hardcode_libdir_separator_CXX=: 11783 11784 # Commands to make compiler produce verbose output that lists 11785 # what "hidden" libraries, object files and flags are used when 11786 # linking a shared library. 11787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11788 11789 else 11790 # FIXME: insert proper C++ library support 11791 ld_shlibs_CXX=no 11792 fi 11793 ;; 11794 esac 11795 ;; 11796 osf4* | osf5*) 11797 case $cc_basename in 11798 KCC*) 11799 # Kuck and Associates, Inc. (KAI) C++ Compiler 11800 11801 # KCC will only create a shared library if the output file 11802 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11803 # to its proper name (with version) after linking. 11804 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' 11805 11806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11807 hardcode_libdir_separator_CXX=: 11808 11809 # Archives containing C++ object files must be created using 11810 # the KAI C++ compiler. 11811 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11812 ;; 11813 RCC*) 11814 # Rational C++ 2.4.1 11815 # FIXME: insert proper C++ library support 11816 ld_shlibs_CXX=no 11817 ;; 11818 cxx*) 11819 allow_undefined_flag_CXX=' -expect_unresolved \*' 11820 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' 11821 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11822 echo "-hidden">> $lib.exp~ 11823 $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~ 11824 $rm $lib.exp' 11825 11826 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11827 hardcode_libdir_separator_CXX=: 11828 11829 # Commands to make compiler produce verbose output that lists 11830 # what "hidden" libraries, object files and flags are used when 11831 # linking a shared library. 11832 # 11833 # There doesn't appear to be a way to prevent this compiler from 11834 # explicitly linking system object files so we need to strip them 11835 # from the output so that they don't get included in the library 11836 # dependencies. 11837 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' 11838 ;; 11839 *) 11840 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11841 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11842 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' 11843 11844 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11845 hardcode_libdir_separator_CXX=: 11846 11847 # Commands to make compiler produce verbose output that lists 11848 # what "hidden" libraries, object files and flags are used when 11849 # linking a shared library. 11850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11851 11852 else 11853 # FIXME: insert proper C++ library support 11854 ld_shlibs_CXX=no 11855 fi 11856 ;; 11857 esac 11858 ;; 11859 psos*) 11860 # FIXME: insert proper C++ library support 11861 ld_shlibs_CXX=no 11862 ;; 11863 sunos4*) 11864 case $cc_basename in 11865 CC*) 11866 # Sun C++ 4.x 11867 # FIXME: insert proper C++ library support 11868 ld_shlibs_CXX=no 11869 ;; 11870 lcc*) 11871 # Lucid 11872 # FIXME: insert proper C++ library support 11873 ld_shlibs_CXX=no 11874 ;; 11875 *) 11876 # FIXME: insert proper C++ library support 11877 ld_shlibs_CXX=no 11878 ;; 11879 esac 11880 ;; 11881 solaris*) 11882 case $cc_basename in 11883 CC*) 11884 # Sun C++ 4.2, 5.x and Centerline C++ 11885 archive_cmds_need_lc_CXX=yes 11886 no_undefined_flag_CXX=' -zdefs' 11887 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11888 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11889 $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' 11890 11891 hardcode_libdir_flag_spec_CXX='-R$libdir' 11892 hardcode_shlibpath_var_CXX=no 11893 case $host_os in 11894 solaris2.[0-5] | solaris2.[0-5].*) ;; 11895 *) 11896 # The C++ compiler is used as linker so we must use $wl 11897 # flag to pass the commands to the underlying system 11898 # linker. We must also pass each convience library through 11899 # to the system linker between allextract/defaultextract. 11900 # The C++ compiler will combine linker options so we 11901 # cannot just pass the convience library names through 11902 # without $wl. 11903 # Supported since Solaris 2.6 (maybe 2.5.1?) 11904 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11905 ;; 11906 esac 11907 link_all_deplibs_CXX=yes 11908 11909 output_verbose_link_cmd='echo' 11910 11911 # Archives containing C++ object files must be created using 11912 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11913 # necessary to make sure instantiated templates are included 11914 # in the archive. 11915 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11916 ;; 11917 gcx*) 11918 # Green Hills C++ Compiler 11919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11920 11921 # The C++ compiler must be used to create the archive. 11922 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11923 ;; 11924 *) 11925 # GNU C++ compiler with Solaris linker 11926 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11927 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11928 if $CC --version | grep -v '^2\.7' > /dev/null; then 11929 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11930 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11931 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11932 11933 # Commands to make compiler produce verbose output that lists 11934 # what "hidden" libraries, object files and flags are used when 11935 # linking a shared library. 11936 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11937 else 11938 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11939 # platform. 11940 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11941 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11942 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11943 11944 # Commands to make compiler produce verbose output that lists 11945 # what "hidden" libraries, object files and flags are used when 11946 # linking a shared library. 11947 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11948 fi 11949 11950 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11951 fi 11952 ;; 11953 esac 11954 ;; 11955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11956 no_undefined_flag_CXX='${wl}-z,text' 11957 archive_cmds_need_lc_CXX=no 11958 hardcode_shlibpath_var_CXX=no 11959 runpath_var='LD_RUN_PATH' 11960 11961 case $cc_basename in 11962 CC*) 11963 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11964 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11965 ;; 11966 *) 11967 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11968 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11969 ;; 11970 esac 11971 ;; 11972 sysv5* | sco3.2v5* | sco5v6*) 11973 # Note: We can NOT use -z defs as we might desire, because we do not 11974 # link with -lc, and that would cause any symbols used from libc to 11975 # always be unresolved, which means just about no library would 11976 # ever link correctly. If we're not using GNU ld we use -z text 11977 # though, which does catch some bad symbols but isn't as heavy-handed 11978 # as -z defs. 11979 # For security reasons, it is highly recommended that you always 11980 # use absolute paths for naming shared libraries, and exclude the 11981 # DT_RUNPATH tag from executables and libraries. But doing so 11982 # requires that you compile everything twice, which is a pain. 11983 # So that behaviour is only enabled if SCOABSPATH is set to a 11984 # non-empty value in the environment. Most likely only useful for 11985 # creating official distributions of packages. 11986 # This is a hack until libtool officially supports absolute path 11987 # names for shared libraries. 11988 no_undefined_flag_CXX='${wl}-z,text' 11989 allow_undefined_flag_CXX='${wl}-z,nodefs' 11990 archive_cmds_need_lc_CXX=no 11991 hardcode_shlibpath_var_CXX=no 11992 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11993 hardcode_libdir_separator_CXX=':' 11994 link_all_deplibs_CXX=yes 11995 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11996 runpath_var='LD_RUN_PATH' 11997 11998 case $cc_basename in 11999 CC*) 12000 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12001 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12002 ;; 12003 *) 12004 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12005 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12006 ;; 12007 esac 12008 ;; 12009 tandem*) 12010 case $cc_basename in 12011 NCC*) 12012 # NonStop-UX NCC 3.20 12013 # FIXME: insert proper C++ library support 12014 ld_shlibs_CXX=no 12015 ;; 12016 *) 12017 # FIXME: insert proper C++ library support 12018 ld_shlibs_CXX=no 12019 ;; 12020 esac 12021 ;; 12022 vxworks*) 12023 # FIXME: insert proper C++ library support 12024 ld_shlibs_CXX=no 12025 ;; 12026 *) 12027 # FIXME: insert proper C++ library support 12028 ld_shlibs_CXX=no 12029 ;; 12030esac 12031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12032$as_echo "$ld_shlibs_CXX" >&6; } 12033test "$ld_shlibs_CXX" = no && can_build_shared=no 12034 12035GCC_CXX="$GXX" 12036LD_CXX="$LD" 12037 12038 12039cat > conftest.$ac_ext <<EOF 12040class Foo 12041{ 12042public: 12043 Foo (void) { a = 0; } 12044private: 12045 int a; 12046}; 12047EOF 12048 12049if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12050 (eval $ac_compile) 2>&5 12051 ac_status=$? 12052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12053 test $ac_status = 0; }; then 12054 # Parse the compiler output and extract the necessary 12055 # objects, libraries and library flags. 12056 12057 # Sentinel used to keep track of whether or not we are before 12058 # the conftest object file. 12059 pre_test_object_deps_done=no 12060 12061 # The `*' in the case matches for architectures that use `case' in 12062 # $output_verbose_cmd can trigger glob expansion during the loop 12063 # eval without this substitution. 12064 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12065 12066 for p in `eval $output_verbose_link_cmd`; do 12067 case $p in 12068 12069 -L* | -R* | -l*) 12070 # Some compilers place space between "-{L,R}" and the path. 12071 # Remove the space. 12072 if test $p = "-L" \ 12073 || test $p = "-R"; then 12074 prev=$p 12075 continue 12076 else 12077 prev= 12078 fi 12079 12080 if test "$pre_test_object_deps_done" = no; then 12081 case $p in 12082 -L* | -R*) 12083 # Internal compiler library paths should come after those 12084 # provided the user. The postdeps already come after the 12085 # user supplied libs so there is no need to process them. 12086 if test -z "$compiler_lib_search_path_CXX"; then 12087 compiler_lib_search_path_CXX="${prev}${p}" 12088 else 12089 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12090 fi 12091 ;; 12092 # The "-l" case would never come before the object being 12093 # linked, so don't bother handling this case. 12094 esac 12095 else 12096 if test -z "$postdeps_CXX"; then 12097 postdeps_CXX="${prev}${p}" 12098 else 12099 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12100 fi 12101 fi 12102 ;; 12103 12104 *.$objext) 12105 # This assumes that the test object file only shows up 12106 # once in the compiler output. 12107 if test "$p" = "conftest.$objext"; then 12108 pre_test_object_deps_done=yes 12109 continue 12110 fi 12111 12112 if test "$pre_test_object_deps_done" = no; then 12113 if test -z "$predep_objects_CXX"; then 12114 predep_objects_CXX="$p" 12115 else 12116 predep_objects_CXX="$predep_objects_CXX $p" 12117 fi 12118 else 12119 if test -z "$postdep_objects_CXX"; then 12120 postdep_objects_CXX="$p" 12121 else 12122 postdep_objects_CXX="$postdep_objects_CXX $p" 12123 fi 12124 fi 12125 ;; 12126 12127 *) ;; # Ignore the rest. 12128 12129 esac 12130 done 12131 12132 # Clean up. 12133 rm -f a.out a.exe 12134else 12135 echo "libtool.m4: error: problem compiling CXX test program" 12136fi 12137 12138$rm -f confest.$objext 12139 12140# PORTME: override above test on systems where it is broken 12141case $host_os in 12142interix3*) 12143 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12144 # hack all around it, let's just trust "g++" to DTRT. 12145 predep_objects_CXX= 12146 postdep_objects_CXX= 12147 postdeps_CXX= 12148 ;; 12149 12150solaris*) 12151 case $cc_basename in 12152 CC*) 12153 # Adding this requires a known-good setup of shared libraries for 12154 # Sun compiler versions before 5.6, else PIC objects from an old 12155 # archive will be linked into the output, leading to subtle bugs. 12156 postdeps_CXX='-lCstd -lCrun' 12157 ;; 12158 esac 12159 ;; 12160esac 12161 12162 12163case " $postdeps_CXX " in 12164*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12165esac 12166 12167lt_prog_compiler_wl_CXX= 12168lt_prog_compiler_pic_CXX= 12169lt_prog_compiler_static_CXX= 12170 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12172$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12173 12174 # C++ specific cases for pic, static, wl, etc. 12175 if test "$GXX" = yes; then 12176 lt_prog_compiler_wl_CXX='-Wl,' 12177 lt_prog_compiler_static_CXX='-static' 12178 12179 case $host_os in 12180 aix*) 12181 # All AIX code is PIC. 12182 if test "$host_cpu" = ia64; then 12183 # AIX 5 now supports IA64 processor 12184 lt_prog_compiler_static_CXX='-Bstatic' 12185 fi 12186 ;; 12187 amigaos*) 12188 # FIXME: we need at least 68020 code to build shared libraries, but 12189 # adding the `-m68020' flag to GCC prevents building anything better, 12190 # like `-m68040'. 12191 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12192 ;; 12193 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12194 # PIC is the default for these OSes. 12195 ;; 12196 mingw* | os2* | pw32*) 12197 # This hack is so that the source file can tell whether it is being 12198 # built for inclusion in a dll (and should export symbols for example). 12199 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12200 ;; 12201 darwin* | rhapsody*) 12202 # PIC is the default on this platform 12203 # Common symbols not allowed in MH_DYLIB files 12204 lt_prog_compiler_pic_CXX='-fno-common' 12205 ;; 12206 *djgpp*) 12207 # DJGPP does not support shared libraries at all 12208 lt_prog_compiler_pic_CXX= 12209 ;; 12210 interix3*) 12211 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12212 # Instead, we relocate shared libraries at runtime. 12213 ;; 12214 sysv4*MP*) 12215 if test -d /usr/nec; then 12216 lt_prog_compiler_pic_CXX=-Kconform_pic 12217 fi 12218 ;; 12219 hpux*) 12220 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12221 # not for PA HP-UX. 12222 case $host_cpu in 12223 hppa*64*|ia64*) 12224 ;; 12225 *) 12226 lt_prog_compiler_pic_CXX='-fPIC' 12227 ;; 12228 esac 12229 ;; 12230 *) 12231 lt_prog_compiler_pic_CXX='-fPIC' 12232 ;; 12233 esac 12234 else 12235 case $host_os in 12236 aix4* | aix5*) 12237 # All AIX code is PIC. 12238 if test "$host_cpu" = ia64; then 12239 # AIX 5 now supports IA64 processor 12240 lt_prog_compiler_static_CXX='-Bstatic' 12241 else 12242 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12243 fi 12244 ;; 12245 chorus*) 12246 case $cc_basename in 12247 cxch68*) 12248 # Green Hills C++ Compiler 12249 # _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" 12250 ;; 12251 esac 12252 ;; 12253 darwin*) 12254 # PIC is the default on this platform 12255 # Common symbols not allowed in MH_DYLIB files 12256 case $cc_basename in 12257 xlc*) 12258 lt_prog_compiler_pic_CXX='-qnocommon' 12259 lt_prog_compiler_wl_CXX='-Wl,' 12260 ;; 12261 esac 12262 ;; 12263 dgux*) 12264 case $cc_basename in 12265 ec++*) 12266 lt_prog_compiler_pic_CXX='-KPIC' 12267 ;; 12268 ghcx*) 12269 # Green Hills C++ Compiler 12270 lt_prog_compiler_pic_CXX='-pic' 12271 ;; 12272 *) 12273 ;; 12274 esac 12275 ;; 12276 freebsd* | kfreebsd*-gnu | dragonfly*) 12277 # FreeBSD uses GNU C++ 12278 ;; 12279 hpux9* | hpux10* | hpux11*) 12280 case $cc_basename in 12281 CC*) 12282 lt_prog_compiler_wl_CXX='-Wl,' 12283 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12284 if test "$host_cpu" != ia64; then 12285 lt_prog_compiler_pic_CXX='+Z' 12286 fi 12287 ;; 12288 aCC*) 12289 lt_prog_compiler_wl_CXX='-Wl,' 12290 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12291 case $host_cpu in 12292 hppa*64*|ia64*) 12293 # +Z the default 12294 ;; 12295 *) 12296 lt_prog_compiler_pic_CXX='+Z' 12297 ;; 12298 esac 12299 ;; 12300 *) 12301 ;; 12302 esac 12303 ;; 12304 interix*) 12305 # This is c89, which is MS Visual C++ (no shared libs) 12306 # Anyone wants to do a port? 12307 ;; 12308 irix5* | irix6* | nonstopux*) 12309 case $cc_basename in 12310 CC*) 12311 lt_prog_compiler_wl_CXX='-Wl,' 12312 lt_prog_compiler_static_CXX='-non_shared' 12313 # CC pic flag -KPIC is the default. 12314 ;; 12315 *) 12316 ;; 12317 esac 12318 ;; 12319 linux*) 12320 case $cc_basename in 12321 KCC*) 12322 # KAI C++ Compiler 12323 lt_prog_compiler_wl_CXX='--backend -Wl,' 12324 lt_prog_compiler_pic_CXX='-fPIC' 12325 ;; 12326 icpc* | ecpc*) 12327 # Intel C++ 12328 lt_prog_compiler_wl_CXX='-Wl,' 12329 lt_prog_compiler_pic_CXX='-KPIC' 12330 lt_prog_compiler_static_CXX='-static' 12331 ;; 12332 pgCC*) 12333 # Portland Group C++ compiler. 12334 lt_prog_compiler_wl_CXX='-Wl,' 12335 lt_prog_compiler_pic_CXX='-fpic' 12336 lt_prog_compiler_static_CXX='-Bstatic' 12337 ;; 12338 cxx*) 12339 # Compaq C++ 12340 # Make sure the PIC flag is empty. It appears that all Alpha 12341 # Linux and Compaq Tru64 Unix objects are PIC. 12342 lt_prog_compiler_pic_CXX= 12343 lt_prog_compiler_static_CXX='-non_shared' 12344 ;; 12345 *) 12346 ;; 12347 esac 12348 ;; 12349 lynxos*) 12350 ;; 12351 m88k*) 12352 ;; 12353 mvs*) 12354 case $cc_basename in 12355 cxx*) 12356 lt_prog_compiler_pic_CXX='-W c,exportall' 12357 ;; 12358 *) 12359 ;; 12360 esac 12361 ;; 12362 netbsd*) 12363 ;; 12364 osf3* | osf4* | osf5*) 12365 case $cc_basename in 12366 KCC*) 12367 lt_prog_compiler_wl_CXX='--backend -Wl,' 12368 ;; 12369 RCC*) 12370 # Rational C++ 2.4.1 12371 lt_prog_compiler_pic_CXX='-pic' 12372 ;; 12373 cxx*) 12374 # Digital/Compaq C++ 12375 lt_prog_compiler_wl_CXX='-Wl,' 12376 # Make sure the PIC flag is empty. It appears that all Alpha 12377 # Linux and Compaq Tru64 Unix objects are PIC. 12378 lt_prog_compiler_pic_CXX= 12379 lt_prog_compiler_static_CXX='-non_shared' 12380 ;; 12381 *) 12382 ;; 12383 esac 12384 ;; 12385 psos*) 12386 ;; 12387 solaris*) 12388 case $cc_basename in 12389 CC*) 12390 # Sun C++ 4.2, 5.x and Centerline C++ 12391 lt_prog_compiler_pic_CXX='-KPIC' 12392 lt_prog_compiler_static_CXX='-Bstatic' 12393 lt_prog_compiler_wl_CXX='-Qoption ld ' 12394 ;; 12395 gcx*) 12396 # Green Hills C++ Compiler 12397 lt_prog_compiler_pic_CXX='-PIC' 12398 ;; 12399 *) 12400 ;; 12401 esac 12402 ;; 12403 sunos4*) 12404 case $cc_basename in 12405 CC*) 12406 # Sun C++ 4.x 12407 lt_prog_compiler_pic_CXX='-pic' 12408 lt_prog_compiler_static_CXX='-Bstatic' 12409 ;; 12410 lcc*) 12411 # Lucid 12412 lt_prog_compiler_pic_CXX='-pic' 12413 ;; 12414 *) 12415 ;; 12416 esac 12417 ;; 12418 tandem*) 12419 case $cc_basename in 12420 NCC*) 12421 # NonStop-UX NCC 3.20 12422 lt_prog_compiler_pic_CXX='-KPIC' 12423 ;; 12424 *) 12425 ;; 12426 esac 12427 ;; 12428 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12429 case $cc_basename in 12430 CC*) 12431 lt_prog_compiler_wl_CXX='-Wl,' 12432 lt_prog_compiler_pic_CXX='-KPIC' 12433 lt_prog_compiler_static_CXX='-Bstatic' 12434 ;; 12435 esac 12436 ;; 12437 vxworks*) 12438 ;; 12439 *) 12440 lt_prog_compiler_can_build_shared_CXX=no 12441 ;; 12442 esac 12443 fi 12444 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 12446$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12447 12448# 12449# Check to make sure the PIC flag actually works. 12450# 12451if test -n "$lt_prog_compiler_pic_CXX"; then 12452 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12454$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12455if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then : 12456 $as_echo_n "(cached) " >&6 12457else 12458 lt_prog_compiler_pic_works_CXX=no 12459 ac_outfile=conftest.$ac_objext 12460 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12461 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12462 # Insert the option either (1) after the last *FLAGS variable, or 12463 # (2) before a word containing "conftest.", or (3) at the end. 12464 # Note that $ac_compile itself does not contain backslashes and begins 12465 # with a dollar sign (not a hyphen), so the echo should work correctly. 12466 # The option is referenced via a variable to avoid confusing sed. 12467 lt_compile=`echo "$ac_compile" | $SED \ 12468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12470 -e 's:$: $lt_compiler_flag:'` 12471 (eval echo "\"\$as_me:12471: $lt_compile\"" >&5) 12472 (eval "$lt_compile" 2>conftest.err) 12473 ac_status=$? 12474 cat conftest.err >&5 12475 echo "$as_me:12475: \$? = $ac_status" >&5 12476 if (exit $ac_status) && test -s "$ac_outfile"; then 12477 # The compiler can only warn and ignore the option if not recognized 12478 # So say no if there are warnings other than the usual output. 12479 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12482 lt_prog_compiler_pic_works_CXX=yes 12483 fi 12484 fi 12485 $rm conftest* 12486 12487fi 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5 12489$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; } 12490 12491if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12492 case $lt_prog_compiler_pic_CXX in 12493 "" | " "*) ;; 12494 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12495 esac 12496else 12497 lt_prog_compiler_pic_CXX= 12498 lt_prog_compiler_can_build_shared_CXX=no 12499fi 12500 12501fi 12502case $host_os in 12503 # For platforms which do not support PIC, -DPIC is meaningless: 12504 *djgpp*) 12505 lt_prog_compiler_pic_CXX= 12506 ;; 12507 *) 12508 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12509 ;; 12510esac 12511 12512# 12513# Check to make sure the static flag actually works. 12514# 12515wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12517$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12518if test "${lt_prog_compiler_static_works_CXX+set}" = set; then : 12519 $as_echo_n "(cached) " >&6 12520else 12521 lt_prog_compiler_static_works_CXX=no 12522 save_LDFLAGS="$LDFLAGS" 12523 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12524 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12526 # The linker can only warn and ignore the option if not recognized 12527 # So say no if there are warnings 12528 if test -s conftest.err; then 12529 # Append any errors to the config.log. 12530 cat conftest.err 1>&5 12531 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12533 if diff conftest.exp conftest.er2 >/dev/null; then 12534 lt_prog_compiler_static_works_CXX=yes 12535 fi 12536 else 12537 lt_prog_compiler_static_works_CXX=yes 12538 fi 12539 fi 12540 $rm conftest* 12541 LDFLAGS="$save_LDFLAGS" 12542 12543fi 12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5 12545$as_echo "$lt_prog_compiler_static_works_CXX" >&6; } 12546 12547if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12548 : 12549else 12550 lt_prog_compiler_static_CXX= 12551fi 12552 12553 12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12555$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12556if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 12557 $as_echo_n "(cached) " >&6 12558else 12559 lt_cv_prog_compiler_c_o_CXX=no 12560 $rm -r conftest 2>/dev/null 12561 mkdir conftest 12562 cd conftest 12563 mkdir out 12564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12565 12566 lt_compiler_flag="-o out/conftest2.$ac_objext" 12567 # Insert the option either (1) after the last *FLAGS variable, or 12568 # (2) before a word containing "conftest.", or (3) at the end. 12569 # Note that $ac_compile itself does not contain backslashes and begins 12570 # with a dollar sign (not a hyphen), so the echo should work correctly. 12571 lt_compile=`echo "$ac_compile" | $SED \ 12572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12574 -e 's:$: $lt_compiler_flag:'` 12575 (eval echo "\"\$as_me:12575: $lt_compile\"" >&5) 12576 (eval "$lt_compile" 2>out/conftest.err) 12577 ac_status=$? 12578 cat out/conftest.err >&5 12579 echo "$as_me:12579: \$? = $ac_status" >&5 12580 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12581 then 12582 # The compiler can only warn and ignore the option if not recognized 12583 # So say no if there are warnings 12584 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12587 lt_cv_prog_compiler_c_o_CXX=yes 12588 fi 12589 fi 12590 chmod u+w . 2>&5 12591 $rm conftest* 12592 # SGI C++ compiler will create directory out/ii_files/ for 12593 # template instantiation 12594 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12595 $rm out/* && rmdir out 12596 cd .. 12597 rmdir conftest 12598 $rm conftest* 12599 12600fi 12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12602$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 12603 12604 12605hard_links="nottested" 12606if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12607 # do not overwrite the value of need_locks provided by the user 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12609$as_echo_n "checking if we can lock with hard links... " >&6; } 12610 hard_links=yes 12611 $rm conftest* 12612 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12613 touch conftest.a 12614 ln conftest.a conftest.b 2>&5 || hard_links=no 12615 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12617$as_echo "$hard_links" >&6; } 12618 if test "$hard_links" = no; then 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12620$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12621 need_locks=warn 12622 fi 12623else 12624 need_locks=no 12625fi 12626 12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12628$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12629 12630 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12631 case $host_os in 12632 aix4* | aix5*) 12633 # If we're using GNU nm, then we don't want the "-C" option. 12634 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12635 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12636 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' 12637 else 12638 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' 12639 fi 12640 ;; 12641 pw32*) 12642 export_symbols_cmds_CXX="$ltdll_cmds" 12643 ;; 12644 cygwin* | mingw*) 12645 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' 12646 ;; 12647 *) 12648 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12649 ;; 12650 esac 12651 12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12653$as_echo "$ld_shlibs_CXX" >&6; } 12654test "$ld_shlibs_CXX" = no && can_build_shared=no 12655 12656# 12657# Do we need to explicitly link libc? 12658# 12659case "x$archive_cmds_need_lc_CXX" in 12660x|xyes) 12661 # Assume -lc should be added 12662 archive_cmds_need_lc_CXX=yes 12663 12664 if test "$enable_shared" = yes && test "$GCC" = yes; then 12665 case $archive_cmds_CXX in 12666 *'~'*) 12667 # FIXME: we may have to deal with multi-command sequences. 12668 ;; 12669 '$CC '*) 12670 # Test whether the compiler implicitly links with -lc since on some 12671 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12672 # to ld, don't add -lc before -lgcc. 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12674$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12675 $rm conftest* 12676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12677 12678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12679 (eval $ac_compile) 2>&5 12680 ac_status=$? 12681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12682 test $ac_status = 0; } 2>conftest.err; then 12683 soname=conftest 12684 lib=conftest 12685 libobjs=conftest.$ac_objext 12686 deplibs= 12687 wl=$lt_prog_compiler_wl_CXX 12688 pic_flag=$lt_prog_compiler_pic_CXX 12689 compiler_flags=-v 12690 linker_flags=-v 12691 verstring= 12692 output_objdir=. 12693 libname=conftest 12694 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12695 allow_undefined_flag_CXX= 12696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12697 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12698 ac_status=$? 12699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12700 test $ac_status = 0; } 12701 then 12702 archive_cmds_need_lc_CXX=no 12703 else 12704 archive_cmds_need_lc_CXX=yes 12705 fi 12706 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12707 else 12708 cat conftest.err 1>&5 12709 fi 12710 $rm conftest* 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 12712$as_echo "$archive_cmds_need_lc_CXX" >&6; } 12713 ;; 12714 esac 12715 fi 12716 ;; 12717esac 12718 12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12720$as_echo_n "checking dynamic linker characteristics... " >&6; } 12721library_names_spec= 12722libname_spec='lib$name' 12723soname_spec= 12724shrext_cmds=".so" 12725postinstall_cmds= 12726postuninstall_cmds= 12727finish_cmds= 12728finish_eval= 12729shlibpath_var= 12730shlibpath_overrides_runpath=unknown 12731version_type=none 12732dynamic_linker="$host_os ld.so" 12733sys_lib_dlsearch_path_spec="/lib /usr/lib" 12734if test "$GCC" = yes; then 12735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12736 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12737 # if the path contains ";" then we assume it to be the separator 12738 # otherwise default to the standard path separator (i.e. ":") - it is 12739 # assumed that no part of a normal pathname contains ";" but that should 12740 # okay in the real world where ";" in dirpaths is itself problematic. 12741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12742 else 12743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12744 fi 12745else 12746 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12747fi 12748need_lib_prefix=unknown 12749hardcode_into_libs=no 12750 12751# when you set need_version to no, make sure it does not cause -set_version 12752# flags to be left without arguments 12753need_version=unknown 12754 12755case $host_os in 12756aix3*) 12757 version_type=linux 12758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12759 shlibpath_var=LIBPATH 12760 12761 # AIX 3 has no versioning support, so we append a major version to the name. 12762 soname_spec='${libname}${release}${shared_ext}$major' 12763 ;; 12764 12765aix4* | aix5*) 12766 version_type=linux 12767 need_lib_prefix=no 12768 need_version=no 12769 hardcode_into_libs=yes 12770 if test "$host_cpu" = ia64; then 12771 # AIX 5 supports IA64 12772 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12773 shlibpath_var=LD_LIBRARY_PATH 12774 else 12775 # With GCC up to 2.95.x, collect2 would create an import file 12776 # for dependence libraries. The import file would start with 12777 # the line `#! .'. This would cause the generated library to 12778 # depend on `.', always an invalid library. This was fixed in 12779 # development snapshots of GCC prior to 3.0. 12780 case $host_os in 12781 aix4 | aix4.[01] | aix4.[01].*) 12782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12783 echo ' yes ' 12784 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12785 : 12786 else 12787 can_build_shared=no 12788 fi 12789 ;; 12790 esac 12791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12792 # soname into executable. Probably we can add versioning support to 12793 # collect2, so additional links can be useful in future. 12794 if test "$aix_use_runtimelinking" = yes; then 12795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12796 # instead of lib<name>.a to let people know that these are not 12797 # typical AIX shared libraries. 12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12799 else 12800 # We preserve .a as extension for shared libraries through AIX4.2 12801 # and later when we are not doing run time linking. 12802 library_names_spec='${libname}${release}.a $libname.a' 12803 soname_spec='${libname}${release}${shared_ext}$major' 12804 fi 12805 shlibpath_var=LIBPATH 12806 fi 12807 ;; 12808 12809amigaos*) 12810 library_names_spec='$libname.ixlibrary $libname.a' 12811 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12812 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' 12813 ;; 12814 12815beos*) 12816 library_names_spec='${libname}${shared_ext}' 12817 dynamic_linker="$host_os ld.so" 12818 shlibpath_var=LIBRARY_PATH 12819 ;; 12820 12821bsdi[45]*) 12822 version_type=linux 12823 need_version=no 12824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12825 soname_spec='${libname}${release}${shared_ext}$major' 12826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12827 shlibpath_var=LD_LIBRARY_PATH 12828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12830 # the default ld.so.conf also contains /usr/contrib/lib and 12831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12832 # libtool to hard-code these into programs 12833 ;; 12834 12835cygwin* | mingw* | pw32*) 12836 version_type=windows 12837 shrext_cmds=".dll" 12838 need_version=no 12839 need_lib_prefix=no 12840 12841 case $GCC,$host_os in 12842 yes,cygwin* | yes,mingw* | yes,pw32*) 12843 library_names_spec='$libname.dll.a' 12844 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12845 postinstall_cmds='base_file=`basename \${file}`~ 12846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12847 dldir=$destdir/`dirname \$dlpath`~ 12848 test -d \$dldir || mkdir -p \$dldir~ 12849 $install_prog $dir/$dlname \$dldir/$dlname~ 12850 chmod a+x \$dldir/$dlname' 12851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12852 dlpath=$dir/\$dldll~ 12853 $rm \$dlpath' 12854 shlibpath_overrides_runpath=yes 12855 12856 case $host_os in 12857 cygwin*) 12858 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12859 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12860 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12861 ;; 12862 mingw*) 12863 # MinGW DLLs use traditional 'lib' prefix 12864 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12865 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12866 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12867 # It is most probably a Windows format PATH printed by 12868 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12869 # path with ; separators, and with drive letters. We can handle the 12870 # drive letters (cygwin fileutils understands them), so leave them, 12871 # especially as we might pass files found there to a mingw objdump, 12872 # which wouldn't understand a cygwinified path. Ahh. 12873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12874 else 12875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12876 fi 12877 ;; 12878 pw32*) 12879 # pw32 DLLs use 'pw' prefix rather than 'lib' 12880 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12881 ;; 12882 esac 12883 ;; 12884 12885 *) 12886 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12887 ;; 12888 esac 12889 dynamic_linker='Win32 ld.exe' 12890 # FIXME: first we should search . and the directory the executable is in 12891 shlibpath_var=PATH 12892 ;; 12893 12894darwin* | rhapsody*) 12895 dynamic_linker="$host_os dyld" 12896 version_type=darwin 12897 need_lib_prefix=no 12898 need_version=no 12899 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12900 soname_spec='${libname}${release}${major}$shared_ext' 12901 shlibpath_overrides_runpath=yes 12902 shlibpath_var=DYLD_LIBRARY_PATH 12903 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12904 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12905 if test "$GCC" = yes; then 12906 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12907 else 12908 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12909 fi 12910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12911 ;; 12912 12913dgux*) 12914 version_type=linux 12915 need_lib_prefix=no 12916 need_version=no 12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12918 soname_spec='${libname}${release}${shared_ext}$major' 12919 shlibpath_var=LD_LIBRARY_PATH 12920 ;; 12921 12922freebsd1*) 12923 dynamic_linker=no 12924 ;; 12925 12926kfreebsd*-gnu) 12927 version_type=linux 12928 need_lib_prefix=no 12929 need_version=no 12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12931 soname_spec='${libname}${release}${shared_ext}$major' 12932 shlibpath_var=LD_LIBRARY_PATH 12933 shlibpath_overrides_runpath=no 12934 hardcode_into_libs=yes 12935 dynamic_linker='GNU ld.so' 12936 ;; 12937 12938freebsd* | dragonfly*) 12939 # DragonFly does not have aout. When/if they implement a new 12940 # versioning mechanism, adjust this. 12941 if test -x /usr/bin/objformat; then 12942 objformat=`/usr/bin/objformat` 12943 else 12944 case $host_os in 12945 freebsd[123]*) objformat=aout ;; 12946 *) objformat=elf ;; 12947 esac 12948 fi 12949 version_type=freebsd-$objformat 12950 case $version_type in 12951 freebsd-elf*) 12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12953 need_version=no 12954 need_lib_prefix=no 12955 ;; 12956 freebsd-*) 12957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12958 need_version=yes 12959 ;; 12960 esac 12961 shlibpath_var=LD_LIBRARY_PATH 12962 case $host_os in 12963 freebsd2*) 12964 shlibpath_overrides_runpath=yes 12965 ;; 12966 freebsd3.[01]* | freebsdelf3.[01]*) 12967 shlibpath_overrides_runpath=yes 12968 hardcode_into_libs=yes 12969 ;; 12970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12972 shlibpath_overrides_runpath=no 12973 hardcode_into_libs=yes 12974 ;; 12975 freebsd*) # from 4.6 on 12976 shlibpath_overrides_runpath=yes 12977 hardcode_into_libs=yes 12978 ;; 12979 esac 12980 ;; 12981 12982gnu*) 12983 version_type=linux 12984 need_lib_prefix=no 12985 need_version=no 12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12987 soname_spec='${libname}${release}${shared_ext}$major' 12988 shlibpath_var=LD_LIBRARY_PATH 12989 hardcode_into_libs=yes 12990 ;; 12991 12992hpux9* | hpux10* | hpux11*) 12993 # Give a soname corresponding to the major version so that dld.sl refuses to 12994 # link against other versions. 12995 version_type=sunos 12996 need_lib_prefix=no 12997 need_version=no 12998 case $host_cpu in 12999 ia64*) 13000 shrext_cmds='.so' 13001 hardcode_into_libs=yes 13002 dynamic_linker="$host_os dld.so" 13003 shlibpath_var=LD_LIBRARY_PATH 13004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13006 soname_spec='${libname}${release}${shared_ext}$major' 13007 if test "X$HPUX_IA64_MODE" = X32; then 13008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13009 else 13010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13011 fi 13012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13013 ;; 13014 hppa*64*) 13015 shrext_cmds='.sl' 13016 hardcode_into_libs=yes 13017 dynamic_linker="$host_os dld.sl" 13018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13021 soname_spec='${libname}${release}${shared_ext}$major' 13022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13024 ;; 13025 *) 13026 shrext_cmds='.sl' 13027 dynamic_linker="$host_os dld.sl" 13028 shlibpath_var=SHLIB_PATH 13029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13031 soname_spec='${libname}${release}${shared_ext}$major' 13032 ;; 13033 esac 13034 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13035 postinstall_cmds='chmod 555 $lib' 13036 ;; 13037 13038interix3*) 13039 version_type=linux 13040 need_lib_prefix=no 13041 need_version=no 13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13043 soname_spec='${libname}${release}${shared_ext}$major' 13044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13045 shlibpath_var=LD_LIBRARY_PATH 13046 shlibpath_overrides_runpath=no 13047 hardcode_into_libs=yes 13048 ;; 13049 13050irix5* | irix6* | nonstopux*) 13051 case $host_os in 13052 nonstopux*) version_type=nonstopux ;; 13053 *) 13054 if test "$lt_cv_prog_gnu_ld" = yes; then 13055 version_type=linux 13056 else 13057 version_type=irix 13058 fi ;; 13059 esac 13060 need_lib_prefix=no 13061 need_version=no 13062 soname_spec='${libname}${release}${shared_ext}$major' 13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13064 case $host_os in 13065 irix5* | nonstopux*) 13066 libsuff= shlibsuff= 13067 ;; 13068 *) 13069 case $LD in # libtool.m4 will add one of these switches to LD 13070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13071 libsuff= shlibsuff= libmagic=32-bit;; 13072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13073 libsuff=32 shlibsuff=N32 libmagic=N32;; 13074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13075 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13076 *) libsuff= shlibsuff= libmagic=never-match;; 13077 esac 13078 ;; 13079 esac 13080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13081 shlibpath_overrides_runpath=no 13082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13084 hardcode_into_libs=yes 13085 ;; 13086 13087# No shared lib support for Linux oldld, aout, or coff. 13088linux*oldld* | linux*aout* | linux*coff*) 13089 dynamic_linker=no 13090 ;; 13091 13092# This must be Linux ELF. 13093linux*) 13094 version_type=linux 13095 need_lib_prefix=no 13096 need_version=no 13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13098 soname_spec='${libname}${release}${shared_ext}$major' 13099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13100 shlibpath_var=LD_LIBRARY_PATH 13101 shlibpath_overrides_runpath=no 13102 # This implies no fast_install, which is unacceptable. 13103 # Some rework will be needed to allow for fast_install 13104 # before this can be enabled. 13105 hardcode_into_libs=yes 13106 13107 # Append ld.so.conf contents to the search path 13108 if test -f /etc/ld.so.conf; then 13109 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13111 fi 13112 13113 # We used to test for /lib/ld.so.1 and disable shared libraries on 13114 # powerpc, because MkLinux only supported shared libraries with the 13115 # GNU dynamic linker. Since this was broken with cross compilers, 13116 # most powerpc-linux boxes support dynamic linking these days and 13117 # people can always --disable-shared, the test was removed, and we 13118 # assume the GNU/Linux dynamic linker is in use. 13119 dynamic_linker='GNU/Linux ld.so' 13120 ;; 13121 13122knetbsd*-gnu) 13123 version_type=linux 13124 need_lib_prefix=no 13125 need_version=no 13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13127 soname_spec='${libname}${release}${shared_ext}$major' 13128 shlibpath_var=LD_LIBRARY_PATH 13129 shlibpath_overrides_runpath=no 13130 hardcode_into_libs=yes 13131 dynamic_linker='GNU ld.so' 13132 ;; 13133 13134netbsd*) 13135 version_type=sunos 13136 need_lib_prefix=no 13137 need_version=no 13138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13141 dynamic_linker='NetBSD (a.out) ld.so' 13142 else 13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13144 soname_spec='${libname}${release}${shared_ext}$major' 13145 dynamic_linker='NetBSD ld.elf_so' 13146 fi 13147 shlibpath_var=LD_LIBRARY_PATH 13148 shlibpath_overrides_runpath=yes 13149 hardcode_into_libs=yes 13150 ;; 13151 13152newsos6) 13153 version_type=linux 13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13155 shlibpath_var=LD_LIBRARY_PATH 13156 shlibpath_overrides_runpath=yes 13157 ;; 13158 13159nto-qnx*) 13160 version_type=linux 13161 need_lib_prefix=no 13162 need_version=no 13163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13164 soname_spec='${libname}${release}${shared_ext}$major' 13165 shlibpath_var=LD_LIBRARY_PATH 13166 shlibpath_overrides_runpath=yes 13167 ;; 13168 13169openbsd*) 13170 version_type=sunos 13171 sys_lib_dlsearch_path_spec="/usr/lib" 13172 need_lib_prefix=no 13173 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13174 case $host_os in 13175 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13176 *) need_version=no ;; 13177 esac 13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13180 shlibpath_var=LD_LIBRARY_PATH 13181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13182 case $host_os in 13183 openbsd2.[89] | openbsd2.[89].*) 13184 shlibpath_overrides_runpath=no 13185 ;; 13186 *) 13187 shlibpath_overrides_runpath=yes 13188 ;; 13189 esac 13190 else 13191 shlibpath_overrides_runpath=yes 13192 fi 13193 ;; 13194 13195os2*) 13196 libname_spec='$name' 13197 shrext_cmds=".dll" 13198 need_lib_prefix=no 13199 library_names_spec='$libname${shared_ext} $libname.a' 13200 dynamic_linker='OS/2 ld.exe' 13201 shlibpath_var=LIBPATH 13202 ;; 13203 13204osf3* | osf4* | osf5*) 13205 version_type=osf 13206 need_lib_prefix=no 13207 need_version=no 13208 soname_spec='${libname}${release}${shared_ext}$major' 13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13210 shlibpath_var=LD_LIBRARY_PATH 13211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13213 ;; 13214 13215solaris*) 13216 version_type=linux 13217 need_lib_prefix=no 13218 need_version=no 13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13220 soname_spec='${libname}${release}${shared_ext}$major' 13221 shlibpath_var=LD_LIBRARY_PATH 13222 shlibpath_overrides_runpath=yes 13223 hardcode_into_libs=yes 13224 # ldd complains unless libraries are executable 13225 postinstall_cmds='chmod +x $lib' 13226 ;; 13227 13228sunos4*) 13229 version_type=sunos 13230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13232 shlibpath_var=LD_LIBRARY_PATH 13233 shlibpath_overrides_runpath=yes 13234 if test "$with_gnu_ld" = yes; then 13235 need_lib_prefix=no 13236 fi 13237 need_version=yes 13238 ;; 13239 13240sysv4 | sysv4.3*) 13241 version_type=linux 13242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13243 soname_spec='${libname}${release}${shared_ext}$major' 13244 shlibpath_var=LD_LIBRARY_PATH 13245 case $host_vendor in 13246 sni) 13247 shlibpath_overrides_runpath=no 13248 need_lib_prefix=no 13249 export_dynamic_flag_spec='${wl}-Blargedynsym' 13250 runpath_var=LD_RUN_PATH 13251 ;; 13252 siemens) 13253 need_lib_prefix=no 13254 ;; 13255 motorola) 13256 need_lib_prefix=no 13257 need_version=no 13258 shlibpath_overrides_runpath=no 13259 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13260 ;; 13261 esac 13262 ;; 13263 13264sysv4*MP*) 13265 if test -d /usr/nec ;then 13266 version_type=linux 13267 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13268 soname_spec='$libname${shared_ext}.$major' 13269 shlibpath_var=LD_LIBRARY_PATH 13270 fi 13271 ;; 13272 13273sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13274 version_type=freebsd-elf 13275 need_lib_prefix=no 13276 need_version=no 13277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13278 soname_spec='${libname}${release}${shared_ext}$major' 13279 shlibpath_var=LD_LIBRARY_PATH 13280 hardcode_into_libs=yes 13281 if test "$with_gnu_ld" = yes; then 13282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13283 shlibpath_overrides_runpath=no 13284 else 13285 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13286 shlibpath_overrides_runpath=yes 13287 case $host_os in 13288 sco3.2v5*) 13289 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13290 ;; 13291 esac 13292 fi 13293 sys_lib_dlsearch_path_spec='/usr/lib' 13294 ;; 13295 13296uts4*) 13297 version_type=linux 13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13299 soname_spec='${libname}${release}${shared_ext}$major' 13300 shlibpath_var=LD_LIBRARY_PATH 13301 ;; 13302 13303*) 13304 dynamic_linker=no 13305 ;; 13306esac 13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13308$as_echo "$dynamic_linker" >&6; } 13309test "$dynamic_linker" = no && can_build_shared=no 13310 13311variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13312if test "$GCC" = yes; then 13313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13314fi 13315 13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13317$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13318hardcode_action_CXX= 13319if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13320 test -n "$runpath_var_CXX" || \ 13321 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13322 13323 # We can hardcode non-existant directories. 13324 if test "$hardcode_direct_CXX" != no && 13325 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13326 # have to relink, otherwise we might link with an installed library 13327 # when we should be linking with a yet-to-be-installed one 13328 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13329 test "$hardcode_minus_L_CXX" != no; then 13330 # Linking always hardcodes the temporary library directory. 13331 hardcode_action_CXX=relink 13332 else 13333 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13334 hardcode_action_CXX=immediate 13335 fi 13336else 13337 # We cannot hardcode anything, or else we can only hardcode existing 13338 # directories. 13339 hardcode_action_CXX=unsupported 13340fi 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 13342$as_echo "$hardcode_action_CXX" >&6; } 13343 13344if test "$hardcode_action_CXX" = relink; then 13345 # Fast installation is not supported 13346 enable_fast_install=no 13347elif test "$shlibpath_overrides_runpath" = yes || 13348 test "$enable_shared" = no; then 13349 # Fast installation is not necessary 13350 enable_fast_install=needless 13351fi 13352 13353 13354# The else clause should only fire when bootstrapping the 13355# libtool distribution, otherwise you forgot to ship ltmain.sh 13356# with your package, and you will get complaints that there are 13357# no rules to generate ltmain.sh. 13358if test -f "$ltmain"; then 13359 # See if we are running on zsh, and set the options which allow our commands through 13360 # without removal of \ escapes. 13361 if test -n "${ZSH_VERSION+set}" ; then 13362 setopt NO_GLOB_SUBST 13363 fi 13364 # Now quote all the things that may contain metacharacters while being 13365 # careful not to overquote the AC_SUBSTed values. We take copies of the 13366 # variables and quote the copies for generation of the libtool script. 13367 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13368 SED SHELL STRIP \ 13369 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13370 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13371 deplibs_check_method reload_flag reload_cmds need_locks \ 13372 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13373 lt_cv_sys_global_symbol_to_c_name_address \ 13374 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13375 old_postinstall_cmds old_postuninstall_cmds \ 13376 compiler_CXX \ 13377 CC_CXX \ 13378 LD_CXX \ 13379 lt_prog_compiler_wl_CXX \ 13380 lt_prog_compiler_pic_CXX \ 13381 lt_prog_compiler_static_CXX \ 13382 lt_prog_compiler_no_builtin_flag_CXX \ 13383 export_dynamic_flag_spec_CXX \ 13384 thread_safe_flag_spec_CXX \ 13385 whole_archive_flag_spec_CXX \ 13386 enable_shared_with_static_runtimes_CXX \ 13387 old_archive_cmds_CXX \ 13388 old_archive_from_new_cmds_CXX \ 13389 predep_objects_CXX \ 13390 postdep_objects_CXX \ 13391 predeps_CXX \ 13392 postdeps_CXX \ 13393 compiler_lib_search_path_CXX \ 13394 archive_cmds_CXX \ 13395 archive_expsym_cmds_CXX \ 13396 postinstall_cmds_CXX \ 13397 postuninstall_cmds_CXX \ 13398 old_archive_from_expsyms_cmds_CXX \ 13399 allow_undefined_flag_CXX \ 13400 no_undefined_flag_CXX \ 13401 export_symbols_cmds_CXX \ 13402 hardcode_libdir_flag_spec_CXX \ 13403 hardcode_libdir_flag_spec_ld_CXX \ 13404 hardcode_libdir_separator_CXX \ 13405 hardcode_automatic_CXX \ 13406 module_cmds_CXX \ 13407 module_expsym_cmds_CXX \ 13408 lt_cv_prog_compiler_c_o_CXX \ 13409 exclude_expsyms_CXX \ 13410 include_expsyms_CXX; do 13411 13412 case $var in 13413 old_archive_cmds_CXX | \ 13414 old_archive_from_new_cmds_CXX | \ 13415 archive_cmds_CXX | \ 13416 archive_expsym_cmds_CXX | \ 13417 module_cmds_CXX | \ 13418 module_expsym_cmds_CXX | \ 13419 old_archive_from_expsyms_cmds_CXX | \ 13420 export_symbols_cmds_CXX | \ 13421 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13422 postinstall_cmds | postuninstall_cmds | \ 13423 old_postinstall_cmds | old_postuninstall_cmds | \ 13424 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13425 # Double-quote double-evaled strings. 13426 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13427 ;; 13428 *) 13429 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13430 ;; 13431 esac 13432 done 13433 13434 case $lt_echo in 13435 *'\$0 --fallback-echo"') 13436 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13437 ;; 13438 esac 13439 13440cfgfile="$ofile" 13441 13442 cat <<__EOF__ >> "$cfgfile" 13443# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13444 13445# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13446 13447# Shell to use when invoking shell scripts. 13448SHELL=$lt_SHELL 13449 13450# Whether or not to build shared libraries. 13451build_libtool_libs=$enable_shared 13452 13453# Whether or not to build static libraries. 13454build_old_libs=$enable_static 13455 13456# Whether or not to add -lc for building shared libraries. 13457build_libtool_need_lc=$archive_cmds_need_lc_CXX 13458 13459# Whether or not to disallow shared libs when runtime libs are static 13460allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13461 13462# Whether or not to optimize for fast installation. 13463fast_install=$enable_fast_install 13464 13465# The host system. 13466host_alias=$host_alias 13467host=$host 13468host_os=$host_os 13469 13470# The build system. 13471build_alias=$build_alias 13472build=$build 13473build_os=$build_os 13474 13475# An echo program that does not interpret backslashes. 13476echo=$lt_echo 13477 13478# The archiver. 13479AR=$lt_AR 13480AR_FLAGS=$lt_AR_FLAGS 13481 13482# A C compiler. 13483LTCC=$lt_LTCC 13484 13485# LTCC compiler flags. 13486LTCFLAGS=$lt_LTCFLAGS 13487 13488# A language-specific compiler. 13489CC=$lt_compiler_CXX 13490 13491# Is the compiler the GNU C compiler? 13492with_gcc=$GCC_CXX 13493 13494# An ERE matcher. 13495EGREP=$lt_EGREP 13496 13497# The linker used to build libraries. 13498LD=$lt_LD_CXX 13499 13500# Whether we need hard or soft links. 13501LN_S=$lt_LN_S 13502 13503# A BSD-compatible nm program. 13504NM=$lt_NM 13505 13506# A symbol stripping program 13507STRIP=$lt_STRIP 13508 13509# Used to examine libraries when file_magic_cmd begins "file" 13510MAGIC_CMD=$MAGIC_CMD 13511 13512# Used on cygwin: DLL creation program. 13513DLLTOOL="$DLLTOOL" 13514 13515# Used on cygwin: object dumper. 13516OBJDUMP="$OBJDUMP" 13517 13518# Used on cygwin: assembler. 13519AS="$AS" 13520 13521# The name of the directory that contains temporary libtool files. 13522objdir=$objdir 13523 13524# How to create reloadable object files. 13525reload_flag=$lt_reload_flag 13526reload_cmds=$lt_reload_cmds 13527 13528# How to pass a linker flag through the compiler. 13529wl=$lt_lt_prog_compiler_wl_CXX 13530 13531# Object file suffix (normally "o"). 13532objext="$ac_objext" 13533 13534# Old archive suffix (normally "a"). 13535libext="$libext" 13536 13537# Shared library suffix (normally ".so"). 13538shrext_cmds='$shrext_cmds' 13539 13540# Executable file suffix (normally ""). 13541exeext="$exeext" 13542 13543# Additional compiler flags for building library objects. 13544pic_flag=$lt_lt_prog_compiler_pic_CXX 13545pic_mode=$pic_mode 13546 13547# What is the maximum length of a command? 13548max_cmd_len=$lt_cv_sys_max_cmd_len 13549 13550# Does compiler simultaneously support -c and -o options? 13551compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13552 13553# Must we lock files when doing compilation? 13554need_locks=$lt_need_locks 13555 13556# Do we need the lib prefix for modules? 13557need_lib_prefix=$need_lib_prefix 13558 13559# Do we need a version for libraries? 13560need_version=$need_version 13561 13562# Whether dlopen is supported. 13563dlopen_support=$enable_dlopen 13564 13565# Whether dlopen of programs is supported. 13566dlopen_self=$enable_dlopen_self 13567 13568# Whether dlopen of statically linked programs is supported. 13569dlopen_self_static=$enable_dlopen_self_static 13570 13571# Compiler flag to prevent dynamic linking. 13572link_static_flag=$lt_lt_prog_compiler_static_CXX 13573 13574# Compiler flag to turn off builtin functions. 13575no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13576 13577# Compiler flag to allow reflexive dlopens. 13578export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13579 13580# Compiler flag to generate shared objects directly from archives. 13581whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13582 13583# Compiler flag to generate thread-safe objects. 13584thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13585 13586# Library versioning type. 13587version_type=$version_type 13588 13589# Format of library name prefix. 13590libname_spec=$lt_libname_spec 13591 13592# List of archive names. First name is the real one, the rest are links. 13593# The last name is the one that the linker finds with -lNAME. 13594library_names_spec=$lt_library_names_spec 13595 13596# The coded name of the library, if different from the real name. 13597soname_spec=$lt_soname_spec 13598 13599# Commands used to build and install an old-style archive. 13600RANLIB=$lt_RANLIB 13601old_archive_cmds=$lt_old_archive_cmds_CXX 13602old_postinstall_cmds=$lt_old_postinstall_cmds 13603old_postuninstall_cmds=$lt_old_postuninstall_cmds 13604 13605# Create an old-style archive from a shared archive. 13606old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13607 13608# Create a temporary old-style archive to link instead of a shared archive. 13609old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13610 13611# Commands used to build and install a shared archive. 13612archive_cmds=$lt_archive_cmds_CXX 13613archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13614postinstall_cmds=$lt_postinstall_cmds 13615postuninstall_cmds=$lt_postuninstall_cmds 13616 13617# Commands used to build a loadable module (assumed same as above if empty) 13618module_cmds=$lt_module_cmds_CXX 13619module_expsym_cmds=$lt_module_expsym_cmds_CXX 13620 13621# Commands to strip libraries. 13622old_striplib=$lt_old_striplib 13623striplib=$lt_striplib 13624 13625# Dependencies to place before the objects being linked to create a 13626# shared library. 13627predep_objects=$lt_predep_objects_CXX 13628 13629# Dependencies to place after the objects being linked to create a 13630# shared library. 13631postdep_objects=$lt_postdep_objects_CXX 13632 13633# Dependencies to place before the objects being linked to create a 13634# shared library. 13635predeps=$lt_predeps_CXX 13636 13637# Dependencies to place after the objects being linked to create a 13638# shared library. 13639postdeps=$lt_postdeps_CXX 13640 13641# The library search path used internally by the compiler when linking 13642# a shared library. 13643compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13644 13645# Method to check whether dependent libraries are shared objects. 13646deplibs_check_method=$lt_deplibs_check_method 13647 13648# Command to use when deplibs_check_method == file_magic. 13649file_magic_cmd=$lt_file_magic_cmd 13650 13651# Flag that allows shared libraries with undefined symbols to be built. 13652allow_undefined_flag=$lt_allow_undefined_flag_CXX 13653 13654# Flag that forces no undefined symbols. 13655no_undefined_flag=$lt_no_undefined_flag_CXX 13656 13657# Commands used to finish a libtool library installation in a directory. 13658finish_cmds=$lt_finish_cmds 13659 13660# Same as above, but a single script fragment to be evaled but not shown. 13661finish_eval=$lt_finish_eval 13662 13663# Take the output of nm and produce a listing of raw symbols and C names. 13664global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13665 13666# Transform the output of nm in a proper C declaration 13667global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13668 13669# Transform the output of nm in a C name address pair 13670global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13671 13672# This is the shared library runtime path variable. 13673runpath_var=$runpath_var 13674 13675# This is the shared library path variable. 13676shlibpath_var=$shlibpath_var 13677 13678# Is shlibpath searched before the hard-coded library search path? 13679shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13680 13681# How to hardcode a shared library path into an executable. 13682hardcode_action=$hardcode_action_CXX 13683 13684# Whether we should hardcode library paths into libraries. 13685hardcode_into_libs=$hardcode_into_libs 13686 13687# Flag to hardcode \$libdir into a binary during linking. 13688# This must work even if \$libdir does not exist. 13689hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13690 13691# If ld is used when linking, flag to hardcode \$libdir into 13692# a binary during linking. This must work even if \$libdir does 13693# not exist. 13694hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13695 13696# Whether we need a single -rpath flag with a separated argument. 13697hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13698 13699# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13700# resulting binary. 13701hardcode_direct=$hardcode_direct_CXX 13702 13703# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13704# resulting binary. 13705hardcode_minus_L=$hardcode_minus_L_CXX 13706 13707# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13708# the resulting binary. 13709hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13710 13711# Set to yes if building a shared library automatically hardcodes DIR into the library 13712# and all subsequent libraries and executables linked against it. 13713hardcode_automatic=$hardcode_automatic_CXX 13714 13715# Variables whose values should be saved in libtool wrapper scripts and 13716# restored at relink time. 13717variables_saved_for_relink="$variables_saved_for_relink" 13718 13719# Whether libtool must link a program against all its dependency libraries. 13720link_all_deplibs=$link_all_deplibs_CXX 13721 13722# Compile-time system search path for libraries 13723sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13724 13725# Run-time system search path for libraries 13726sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13727 13728# Fix the shell variable \$srcfile for the compiler. 13729fix_srcfile_path="$fix_srcfile_path_CXX" 13730 13731# Set to yes if exported symbols are required. 13732always_export_symbols=$always_export_symbols_CXX 13733 13734# The commands to list exported symbols. 13735export_symbols_cmds=$lt_export_symbols_cmds_CXX 13736 13737# The commands to extract the exported symbol list from a shared archive. 13738extract_expsyms_cmds=$lt_extract_expsyms_cmds 13739 13740# Symbols that should not be listed in the preloaded symbols. 13741exclude_expsyms=$lt_exclude_expsyms_CXX 13742 13743# Symbols that must always be exported. 13744include_expsyms=$lt_include_expsyms_CXX 13745 13746# ### END LIBTOOL TAG CONFIG: $tagname 13747 13748__EOF__ 13749 13750 13751else 13752 # If there is no Makefile yet, we rely on a make rule to execute 13753 # `config.status --recheck' to rerun these tests and create the 13754 # libtool script then. 13755 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13756 if test -f "$ltmain_in"; then 13757 test -f Makefile && make "$ltmain" 13758 fi 13759fi 13760 13761 13762ac_ext=c 13763ac_cpp='$CPP $CPPFLAGS' 13764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13766ac_compiler_gnu=$ac_cv_c_compiler_gnu 13767 13768CC=$lt_save_CC 13769LDCXX=$LD 13770LD=$lt_save_LD 13771GCC=$lt_save_GCC 13772with_gnu_ldcxx=$with_gnu_ld 13773with_gnu_ld=$lt_save_with_gnu_ld 13774lt_cv_path_LDCXX=$lt_cv_path_LD 13775lt_cv_path_LD=$lt_save_path_LD 13776lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13777lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13778 13779 else 13780 tagname="" 13781 fi 13782 ;; 13783 13784 F77) 13785 if test -n "$F77" && test "X$F77" != "Xno"; then 13786 13787ac_ext=f 13788ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13789ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13790ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13791 13792 13793archive_cmds_need_lc_F77=no 13794allow_undefined_flag_F77= 13795always_export_symbols_F77=no 13796archive_expsym_cmds_F77= 13797export_dynamic_flag_spec_F77= 13798hardcode_direct_F77=no 13799hardcode_libdir_flag_spec_F77= 13800hardcode_libdir_flag_spec_ld_F77= 13801hardcode_libdir_separator_F77= 13802hardcode_minus_L_F77=no 13803hardcode_automatic_F77=no 13804module_cmds_F77= 13805module_expsym_cmds_F77= 13806link_all_deplibs_F77=unknown 13807old_archive_cmds_F77=$old_archive_cmds 13808no_undefined_flag_F77= 13809whole_archive_flag_spec_F77= 13810enable_shared_with_static_runtimes_F77=no 13811 13812# Source file extension for f77 test sources. 13813ac_ext=f 13814 13815# Object file extension for compiled f77 test sources. 13816objext=o 13817objext_F77=$objext 13818 13819# Code to be used in simple compile tests 13820lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13821 13822# Code to be used in simple link tests 13823lt_simple_link_test_code=" program t\n end\n" 13824 13825# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13826 13827# If no C compiler was specified, use CC. 13828LTCC=${LTCC-"$CC"} 13829 13830# If no C compiler flags were specified, use CFLAGS. 13831LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13832 13833# Allow CC to be a program name with arguments. 13834compiler=$CC 13835 13836 13837# save warnings/boilerplate of simple test code 13838ac_outfile=conftest.$ac_objext 13839printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13840eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13841_lt_compiler_boilerplate=`cat conftest.err` 13842$rm conftest* 13843 13844ac_outfile=conftest.$ac_objext 13845printf "$lt_simple_link_test_code" >conftest.$ac_ext 13846eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13847_lt_linker_boilerplate=`cat conftest.err` 13848$rm conftest* 13849 13850 13851# Allow CC to be a program name with arguments. 13852lt_save_CC="$CC" 13853CC=${F77-"f77"} 13854compiler=$CC 13855compiler_F77=$CC 13856for cc_temp in $compiler""; do 13857 case $cc_temp in 13858 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13859 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13860 \-*) ;; 13861 *) break;; 13862 esac 13863done 13864cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13865 13866 13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13868$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13870$as_echo "$can_build_shared" >&6; } 13871 13872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13873$as_echo_n "checking whether to build shared libraries... " >&6; } 13874test "$can_build_shared" = "no" && enable_shared=no 13875 13876# On AIX, shared libraries and static libraries use the same namespace, and 13877# are all built from PIC. 13878case $host_os in 13879aix3*) 13880 test "$enable_shared" = yes && enable_static=no 13881 if test -n "$RANLIB"; then 13882 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13883 postinstall_cmds='$RANLIB $lib' 13884 fi 13885 ;; 13886aix4* | aix5*) 13887 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13888 test "$enable_shared" = yes && enable_static=no 13889 fi 13890 ;; 13891esac 13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13893$as_echo "$enable_shared" >&6; } 13894 13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13896$as_echo_n "checking whether to build static libraries... " >&6; } 13897# Make sure either enable_shared or enable_static is yes. 13898test "$enable_shared" = yes || enable_static=yes 13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13900$as_echo "$enable_static" >&6; } 13901 13902GCC_F77="$G77" 13903LD_F77="$LD" 13904 13905lt_prog_compiler_wl_F77= 13906lt_prog_compiler_pic_F77= 13907lt_prog_compiler_static_F77= 13908 13909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13910$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13911 13912 if test "$GCC" = yes; then 13913 lt_prog_compiler_wl_F77='-Wl,' 13914 lt_prog_compiler_static_F77='-static' 13915 13916 case $host_os in 13917 aix*) 13918 # All AIX code is PIC. 13919 if test "$host_cpu" = ia64; then 13920 # AIX 5 now supports IA64 processor 13921 lt_prog_compiler_static_F77='-Bstatic' 13922 fi 13923 ;; 13924 13925 amigaos*) 13926 # FIXME: we need at least 68020 code to build shared libraries, but 13927 # adding the `-m68020' flag to GCC prevents building anything better, 13928 # like `-m68040'. 13929 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13930 ;; 13931 13932 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13933 # PIC is the default for these OSes. 13934 ;; 13935 13936 mingw* | pw32* | os2*) 13937 # This hack is so that the source file can tell whether it is being 13938 # built for inclusion in a dll (and should export symbols for example). 13939 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13940 ;; 13941 13942 darwin* | rhapsody*) 13943 # PIC is the default on this platform 13944 # Common symbols not allowed in MH_DYLIB files 13945 lt_prog_compiler_pic_F77='-fno-common' 13946 ;; 13947 13948 interix3*) 13949 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13950 # Instead, we relocate shared libraries at runtime. 13951 ;; 13952 13953 msdosdjgpp*) 13954 # Just because we use GCC doesn't mean we suddenly get shared libraries 13955 # on systems that don't support them. 13956 lt_prog_compiler_can_build_shared_F77=no 13957 enable_shared=no 13958 ;; 13959 13960 sysv4*MP*) 13961 if test -d /usr/nec; then 13962 lt_prog_compiler_pic_F77=-Kconform_pic 13963 fi 13964 ;; 13965 13966 hpux*) 13967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13968 # not for PA HP-UX. 13969 case $host_cpu in 13970 hppa*64*|ia64*) 13971 # +Z the default 13972 ;; 13973 *) 13974 lt_prog_compiler_pic_F77='-fPIC' 13975 ;; 13976 esac 13977 ;; 13978 13979 *) 13980 lt_prog_compiler_pic_F77='-fPIC' 13981 ;; 13982 esac 13983 else 13984 # PORTME Check for flag to pass linker flags through the system compiler. 13985 case $host_os in 13986 aix*) 13987 lt_prog_compiler_wl_F77='-Wl,' 13988 if test "$host_cpu" = ia64; then 13989 # AIX 5 now supports IA64 processor 13990 lt_prog_compiler_static_F77='-Bstatic' 13991 else 13992 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13993 fi 13994 ;; 13995 darwin*) 13996 # PIC is the default on this platform 13997 # Common symbols not allowed in MH_DYLIB files 13998 case $cc_basename in 13999 xlc*) 14000 lt_prog_compiler_pic_F77='-qnocommon' 14001 lt_prog_compiler_wl_F77='-Wl,' 14002 ;; 14003 esac 14004 ;; 14005 14006 mingw* | pw32* | os2*) 14007 # This hack is so that the source file can tell whether it is being 14008 # built for inclusion in a dll (and should export symbols for example). 14009 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14010 ;; 14011 14012 hpux9* | hpux10* | hpux11*) 14013 lt_prog_compiler_wl_F77='-Wl,' 14014 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14015 # not for PA HP-UX. 14016 case $host_cpu in 14017 hppa*64*|ia64*) 14018 # +Z the default 14019 ;; 14020 *) 14021 lt_prog_compiler_pic_F77='+Z' 14022 ;; 14023 esac 14024 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14025 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14026 ;; 14027 14028 irix5* | irix6* | nonstopux*) 14029 lt_prog_compiler_wl_F77='-Wl,' 14030 # PIC (with -KPIC) is the default. 14031 lt_prog_compiler_static_F77='-non_shared' 14032 ;; 14033 14034 newsos6) 14035 lt_prog_compiler_pic_F77='-KPIC' 14036 lt_prog_compiler_static_F77='-Bstatic' 14037 ;; 14038 14039 linux*) 14040 case $cc_basename in 14041 icc* | ecc*) 14042 lt_prog_compiler_wl_F77='-Wl,' 14043 lt_prog_compiler_pic_F77='-KPIC' 14044 lt_prog_compiler_static_F77='-static' 14045 ;; 14046 pgcc* | pgf77* | pgf90* | pgf95*) 14047 # Portland Group compilers (*not* the Pentium gcc compiler, 14048 # which looks to be a dead project) 14049 lt_prog_compiler_wl_F77='-Wl,' 14050 lt_prog_compiler_pic_F77='-fpic' 14051 lt_prog_compiler_static_F77='-Bstatic' 14052 ;; 14053 ccc*) 14054 lt_prog_compiler_wl_F77='-Wl,' 14055 # All Alpha code is PIC. 14056 lt_prog_compiler_static_F77='-non_shared' 14057 ;; 14058 esac 14059 ;; 14060 14061 osf3* | osf4* | osf5*) 14062 lt_prog_compiler_wl_F77='-Wl,' 14063 # All OSF/1 code is PIC. 14064 lt_prog_compiler_static_F77='-non_shared' 14065 ;; 14066 14067 solaris*) 14068 lt_prog_compiler_pic_F77='-KPIC' 14069 lt_prog_compiler_static_F77='-Bstatic' 14070 case $cc_basename in 14071 f77* | f90* | f95*) 14072 lt_prog_compiler_wl_F77='-Qoption ld ';; 14073 *) 14074 lt_prog_compiler_wl_F77='-Wl,';; 14075 esac 14076 ;; 14077 14078 sunos4*) 14079 lt_prog_compiler_wl_F77='-Qoption ld ' 14080 lt_prog_compiler_pic_F77='-PIC' 14081 lt_prog_compiler_static_F77='-Bstatic' 14082 ;; 14083 14084 sysv4 | sysv4.2uw2* | sysv4.3*) 14085 lt_prog_compiler_wl_F77='-Wl,' 14086 lt_prog_compiler_pic_F77='-KPIC' 14087 lt_prog_compiler_static_F77='-Bstatic' 14088 ;; 14089 14090 sysv4*MP*) 14091 if test -d /usr/nec ;then 14092 lt_prog_compiler_pic_F77='-Kconform_pic' 14093 lt_prog_compiler_static_F77='-Bstatic' 14094 fi 14095 ;; 14096 14097 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14098 lt_prog_compiler_wl_F77='-Wl,' 14099 lt_prog_compiler_pic_F77='-KPIC' 14100 lt_prog_compiler_static_F77='-Bstatic' 14101 ;; 14102 14103 unicos*) 14104 lt_prog_compiler_wl_F77='-Wl,' 14105 lt_prog_compiler_can_build_shared_F77=no 14106 ;; 14107 14108 uts4*) 14109 lt_prog_compiler_pic_F77='-pic' 14110 lt_prog_compiler_static_F77='-Bstatic' 14111 ;; 14112 14113 *) 14114 lt_prog_compiler_can_build_shared_F77=no 14115 ;; 14116 esac 14117 fi 14118 14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5 14120$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14121 14122# 14123# Check to make sure the PIC flag actually works. 14124# 14125if test -n "$lt_prog_compiler_pic_F77"; then 14126 14127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14128$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14129if test "${lt_prog_compiler_pic_works_F77+set}" = set; then : 14130 $as_echo_n "(cached) " >&6 14131else 14132 lt_prog_compiler_pic_works_F77=no 14133 ac_outfile=conftest.$ac_objext 14134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14135 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14136 # Insert the option either (1) after the last *FLAGS variable, or 14137 # (2) before a word containing "conftest.", or (3) at the end. 14138 # Note that $ac_compile itself does not contain backslashes and begins 14139 # with a dollar sign (not a hyphen), so the echo should work correctly. 14140 # The option is referenced via a variable to avoid confusing sed. 14141 lt_compile=`echo "$ac_compile" | $SED \ 14142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14144 -e 's:$: $lt_compiler_flag:'` 14145 (eval echo "\"\$as_me:14145: $lt_compile\"" >&5) 14146 (eval "$lt_compile" 2>conftest.err) 14147 ac_status=$? 14148 cat conftest.err >&5 14149 echo "$as_me:14149: \$? = $ac_status" >&5 14150 if (exit $ac_status) && test -s "$ac_outfile"; then 14151 # The compiler can only warn and ignore the option if not recognized 14152 # So say no if there are warnings other than the usual output. 14153 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14156 lt_prog_compiler_pic_works_F77=yes 14157 fi 14158 fi 14159 $rm conftest* 14160 14161fi 14162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5 14163$as_echo "$lt_prog_compiler_pic_works_F77" >&6; } 14164 14165if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14166 case $lt_prog_compiler_pic_F77 in 14167 "" | " "*) ;; 14168 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14169 esac 14170else 14171 lt_prog_compiler_pic_F77= 14172 lt_prog_compiler_can_build_shared_F77=no 14173fi 14174 14175fi 14176case $host_os in 14177 # For platforms which do not support PIC, -DPIC is meaningless: 14178 *djgpp*) 14179 lt_prog_compiler_pic_F77= 14180 ;; 14181 *) 14182 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14183 ;; 14184esac 14185 14186# 14187# Check to make sure the static flag actually works. 14188# 14189wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14191$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14192if test "${lt_prog_compiler_static_works_F77+set}" = set; then : 14193 $as_echo_n "(cached) " >&6 14194else 14195 lt_prog_compiler_static_works_F77=no 14196 save_LDFLAGS="$LDFLAGS" 14197 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14198 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14200 # The linker can only warn and ignore the option if not recognized 14201 # So say no if there are warnings 14202 if test -s conftest.err; then 14203 # Append any errors to the config.log. 14204 cat conftest.err 1>&5 14205 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14207 if diff conftest.exp conftest.er2 >/dev/null; then 14208 lt_prog_compiler_static_works_F77=yes 14209 fi 14210 else 14211 lt_prog_compiler_static_works_F77=yes 14212 fi 14213 fi 14214 $rm conftest* 14215 LDFLAGS="$save_LDFLAGS" 14216 14217fi 14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5 14219$as_echo "$lt_prog_compiler_static_works_F77" >&6; } 14220 14221if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14222 : 14223else 14224 lt_prog_compiler_static_F77= 14225fi 14226 14227 14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14229$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14230if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then : 14231 $as_echo_n "(cached) " >&6 14232else 14233 lt_cv_prog_compiler_c_o_F77=no 14234 $rm -r conftest 2>/dev/null 14235 mkdir conftest 14236 cd conftest 14237 mkdir out 14238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14239 14240 lt_compiler_flag="-o out/conftest2.$ac_objext" 14241 # Insert the option either (1) after the last *FLAGS variable, or 14242 # (2) before a word containing "conftest.", or (3) at the end. 14243 # Note that $ac_compile itself does not contain backslashes and begins 14244 # with a dollar sign (not a hyphen), so the echo should work correctly. 14245 lt_compile=`echo "$ac_compile" | $SED \ 14246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14248 -e 's:$: $lt_compiler_flag:'` 14249 (eval echo "\"\$as_me:14249: $lt_compile\"" >&5) 14250 (eval "$lt_compile" 2>out/conftest.err) 14251 ac_status=$? 14252 cat out/conftest.err >&5 14253 echo "$as_me:14253: \$? = $ac_status" >&5 14254 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14255 then 14256 # The compiler can only warn and ignore the option if not recognized 14257 # So say no if there are warnings 14258 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14261 lt_cv_prog_compiler_c_o_F77=yes 14262 fi 14263 fi 14264 chmod u+w . 2>&5 14265 $rm conftest* 14266 # SGI C++ compiler will create directory out/ii_files/ for 14267 # template instantiation 14268 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14269 $rm out/* && rmdir out 14270 cd .. 14271 rmdir conftest 14272 $rm conftest* 14273 14274fi 14275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 14276$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14277 14278 14279hard_links="nottested" 14280if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14281 # do not overwrite the value of need_locks provided by the user 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14283$as_echo_n "checking if we can lock with hard links... " >&6; } 14284 hard_links=yes 14285 $rm conftest* 14286 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14287 touch conftest.a 14288 ln conftest.a conftest.b 2>&5 || hard_links=no 14289 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14291$as_echo "$hard_links" >&6; } 14292 if test "$hard_links" = no; then 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14294$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14295 need_locks=warn 14296 fi 14297else 14298 need_locks=no 14299fi 14300 14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14302$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14303 14304 runpath_var= 14305 allow_undefined_flag_F77= 14306 enable_shared_with_static_runtimes_F77=no 14307 archive_cmds_F77= 14308 archive_expsym_cmds_F77= 14309 old_archive_From_new_cmds_F77= 14310 old_archive_from_expsyms_cmds_F77= 14311 export_dynamic_flag_spec_F77= 14312 whole_archive_flag_spec_F77= 14313 thread_safe_flag_spec_F77= 14314 hardcode_libdir_flag_spec_F77= 14315 hardcode_libdir_flag_spec_ld_F77= 14316 hardcode_libdir_separator_F77= 14317 hardcode_direct_F77=no 14318 hardcode_minus_L_F77=no 14319 hardcode_shlibpath_var_F77=unsupported 14320 link_all_deplibs_F77=unknown 14321 hardcode_automatic_F77=no 14322 module_cmds_F77= 14323 module_expsym_cmds_F77= 14324 always_export_symbols_F77=no 14325 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14326 # include_expsyms should be a list of space-separated symbols to be *always* 14327 # included in the symbol list 14328 include_expsyms_F77= 14329 # exclude_expsyms can be an extended regexp of symbols to exclude 14330 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14331 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14332 # as well as any symbol that contains `d'. 14333 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14334 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14335 # platforms (ab)use it in PIC code, but their linkers get confused if 14336 # the symbol is explicitly referenced. Since portable code cannot 14337 # rely on this symbol name, it's probably fine to never include it in 14338 # preloaded symbol tables. 14339 extract_expsyms_cmds= 14340 # Just being paranoid about ensuring that cc_basename is set. 14341 for cc_temp in $compiler""; do 14342 case $cc_temp in 14343 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14344 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14345 \-*) ;; 14346 *) break;; 14347 esac 14348done 14349cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14350 14351 case $host_os in 14352 cygwin* | mingw* | pw32*) 14353 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14354 # When not using gcc, we currently assume that we are using 14355 # Microsoft Visual C++. 14356 if test "$GCC" != yes; then 14357 with_gnu_ld=no 14358 fi 14359 ;; 14360 interix*) 14361 # we just hope/assume this is gcc and not c89 (= MSVC++) 14362 with_gnu_ld=yes 14363 ;; 14364 openbsd*) 14365 with_gnu_ld=no 14366 ;; 14367 esac 14368 14369 ld_shlibs_F77=yes 14370 if test "$with_gnu_ld" = yes; then 14371 # If archive_cmds runs LD, not CC, wlarc should be empty 14372 wlarc='${wl}' 14373 14374 # Set some defaults for GNU ld with shared library support. These 14375 # are reset later if shared libraries are not supported. Putting them 14376 # here allows them to be overridden if necessary. 14377 runpath_var=LD_RUN_PATH 14378 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14379 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14380 # ancient GNU ld didn't support --whole-archive et. al. 14381 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14382 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14383 else 14384 whole_archive_flag_spec_F77= 14385 fi 14386 supports_anon_versioning=no 14387 case `$LD -v 2>/dev/null` in 14388 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14389 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14390 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14391 *\ 2.11.*) ;; # other 2.11 versions 14392 *) supports_anon_versioning=yes ;; 14393 esac 14394 14395 # See if GNU ld supports shared libraries. 14396 case $host_os in 14397 aix3* | aix4* | aix5*) 14398 # On AIX/PPC, the GNU linker is very broken 14399 if test "$host_cpu" != ia64; then 14400 ld_shlibs_F77=no 14401 cat <<EOF 1>&2 14402 14403*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14404*** to be unable to reliably create shared libraries on AIX. 14405*** Therefore, libtool is disabling shared libraries support. If you 14406*** really care for shared libraries, you may want to modify your PATH 14407*** so that a non-GNU linker is found, and then restart. 14408 14409EOF 14410 fi 14411 ;; 14412 14413 amigaos*) 14414 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)' 14415 hardcode_libdir_flag_spec_F77='-L$libdir' 14416 hardcode_minus_L_F77=yes 14417 14418 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14419 # that the semantics of dynamic libraries on AmigaOS, at least up 14420 # to version 4, is to share data among multiple programs linked 14421 # with the same dynamic library. Since this doesn't match the 14422 # behavior of shared libraries on other platforms, we can't use 14423 # them. 14424 ld_shlibs_F77=no 14425 ;; 14426 14427 beos*) 14428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14429 allow_undefined_flag_F77=unsupported 14430 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14431 # support --undefined. This deserves some investigation. FIXME 14432 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14433 else 14434 ld_shlibs_F77=no 14435 fi 14436 ;; 14437 14438 cygwin* | mingw* | pw32*) 14439 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14440 # as there is no search path for DLLs. 14441 hardcode_libdir_flag_spec_F77='-L$libdir' 14442 allow_undefined_flag_F77=unsupported 14443 always_export_symbols_F77=no 14444 enable_shared_with_static_runtimes_F77=yes 14445 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14446 14447 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14449 # If the export-symbols file already is a .def file (1st line 14450 # is EXPORTS), use it as is; otherwise, prepend... 14451 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14452 cp $export_symbols $output_objdir/$soname.def; 14453 else 14454 echo EXPORTS > $output_objdir/$soname.def; 14455 cat $export_symbols >> $output_objdir/$soname.def; 14456 fi~ 14457 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14458 else 14459 ld_shlibs_F77=no 14460 fi 14461 ;; 14462 14463 interix3*) 14464 hardcode_direct_F77=no 14465 hardcode_shlibpath_var_F77=no 14466 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14467 export_dynamic_flag_spec_F77='${wl}-E' 14468 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14469 # Instead, shared libraries are loaded at an image base (0x10000000 by 14470 # default) and relocated if they conflict, which is a slow very memory 14471 # consuming and fragmenting process. To avoid this, we pick a random, 14472 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14473 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14474 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' 14475 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' 14476 ;; 14477 14478 linux*) 14479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14480 tmp_addflag= 14481 case $cc_basename,$host_cpu in 14482 pgcc*) # Portland Group C compiler 14483 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' 14484 tmp_addflag=' $pic_flag' 14485 ;; 14486 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14487 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' 14488 tmp_addflag=' $pic_flag -Mnomain' ;; 14489 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14490 tmp_addflag=' -i_dynamic' ;; 14491 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14492 tmp_addflag=' -i_dynamic -nofor_main' ;; 14493 ifc* | ifort*) # Intel Fortran compiler 14494 tmp_addflag=' -nofor_main' ;; 14495 esac 14496 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14497 14498 if test $supports_anon_versioning = yes; then 14499 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14501 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14502 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14503 fi 14504 else 14505 ld_shlibs_F77=no 14506 fi 14507 ;; 14508 14509 netbsd*) 14510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14511 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14512 wlarc= 14513 else 14514 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14515 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14516 fi 14517 ;; 14518 14519 solaris*) 14520 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14521 ld_shlibs_F77=no 14522 cat <<EOF 1>&2 14523 14524*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14525*** create shared libraries on Solaris systems. Therefore, libtool 14526*** is disabling shared libraries support. We urge you to upgrade GNU 14527*** binutils to release 2.9.1 or newer. Another option is to modify 14528*** your PATH or compiler configuration so that the native linker is 14529*** used, and then restart. 14530 14531EOF 14532 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14533 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14534 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14535 else 14536 ld_shlibs_F77=no 14537 fi 14538 ;; 14539 14540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14541 case `$LD -v 2>&1` in 14542 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14543 ld_shlibs_F77=no 14544 cat <<_LT_EOF 1>&2 14545 14546*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14547*** reliably create shared libraries on SCO systems. Therefore, libtool 14548*** is disabling shared libraries support. We urge you to upgrade GNU 14549*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14550*** your PATH or compiler configuration so that the native linker is 14551*** used, and then restart. 14552 14553_LT_EOF 14554 ;; 14555 *) 14556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14557 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14558 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14559 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14560 else 14561 ld_shlibs_F77=no 14562 fi 14563 ;; 14564 esac 14565 ;; 14566 14567 sunos4*) 14568 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14569 wlarc= 14570 hardcode_direct_F77=yes 14571 hardcode_shlibpath_var_F77=no 14572 ;; 14573 14574 *) 14575 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14576 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14577 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14578 else 14579 ld_shlibs_F77=no 14580 fi 14581 ;; 14582 esac 14583 14584 if test "$ld_shlibs_F77" = no; then 14585 runpath_var= 14586 hardcode_libdir_flag_spec_F77= 14587 export_dynamic_flag_spec_F77= 14588 whole_archive_flag_spec_F77= 14589 fi 14590 else 14591 # PORTME fill in a description of your system's linker (not GNU ld) 14592 case $host_os in 14593 aix3*) 14594 allow_undefined_flag_F77=unsupported 14595 always_export_symbols_F77=yes 14596 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' 14597 # Note: this linker hardcodes the directories in LIBPATH if there 14598 # are no directories specified by -L. 14599 hardcode_minus_L_F77=yes 14600 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14601 # Neither direct hardcoding nor static linking is supported with a 14602 # broken collect2. 14603 hardcode_direct_F77=unsupported 14604 fi 14605 ;; 14606 14607 aix4* | aix5*) 14608 if test "$host_cpu" = ia64; then 14609 # On IA64, the linker does run time linking by default, so we don't 14610 # have to do anything special. 14611 aix_use_runtimelinking=no 14612 exp_sym_flag='-Bexport' 14613 no_entry_flag="" 14614 else 14615 # If we're using GNU nm, then we don't want the "-C" option. 14616 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14617 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14618 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' 14619 else 14620 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' 14621 fi 14622 aix_use_runtimelinking=no 14623 14624 # Test if we are trying to use run time linking or normal 14625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14626 # need to do runtime linking. 14627 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14628 for ld_flag in $LDFLAGS; do 14629 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14630 aix_use_runtimelinking=yes 14631 break 14632 fi 14633 done 14634 ;; 14635 esac 14636 14637 exp_sym_flag='-bexport' 14638 no_entry_flag='-bnoentry' 14639 fi 14640 14641 # When large executables or shared objects are built, AIX ld can 14642 # have problems creating the table of contents. If linking a library 14643 # or program results in "error TOC overflow" add -mminimal-toc to 14644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14646 14647 archive_cmds_F77='' 14648 hardcode_direct_F77=yes 14649 hardcode_libdir_separator_F77=':' 14650 link_all_deplibs_F77=yes 14651 14652 if test "$GCC" = yes; then 14653 case $host_os in aix4.[012]|aix4.[012].*) 14654 # We only want to do this on AIX 4.2 and lower, the check 14655 # below for broken collect2 doesn't work under 4.3+ 14656 collect2name=`${CC} -print-prog-name=collect2` 14657 if test -f "$collect2name" && \ 14658 strings "$collect2name" | grep resolve_lib_name >/dev/null 14659 then 14660 # We have reworked collect2 14661 hardcode_direct_F77=yes 14662 else 14663 # We have old collect2 14664 hardcode_direct_F77=unsupported 14665 # It fails to find uninstalled libraries when the uninstalled 14666 # path is not listed in the libpath. Setting hardcode_minus_L 14667 # to unsupported forces relinking 14668 hardcode_minus_L_F77=yes 14669 hardcode_libdir_flag_spec_F77='-L$libdir' 14670 hardcode_libdir_separator_F77= 14671 fi 14672 ;; 14673 esac 14674 shared_flag='-shared' 14675 if test "$aix_use_runtimelinking" = yes; then 14676 shared_flag="$shared_flag "'${wl}-G' 14677 fi 14678 else 14679 # not using gcc 14680 if test "$host_cpu" = ia64; then 14681 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14682 # chokes on -Wl,-G. The following line is correct: 14683 shared_flag='-G' 14684 else 14685 if test "$aix_use_runtimelinking" = yes; then 14686 shared_flag='${wl}-G' 14687 else 14688 shared_flag='${wl}-bM:SRE' 14689 fi 14690 fi 14691 fi 14692 14693 # It seems that -bexpall does not export symbols beginning with 14694 # underscore (_), so it is better to generate a list of symbols to export. 14695 always_export_symbols_F77=yes 14696 if test "$aix_use_runtimelinking" = yes; then 14697 # Warning - without using the other runtime loading flags (-brtl), 14698 # -berok will link without error, but may produce a broken library. 14699 allow_undefined_flag_F77='-berok' 14700 # Determine the default libpath from the value encoded in an empty executable. 14701 cat > conftest.$ac_ext <<_ACEOF 14702 program main 14703 14704 end 14705_ACEOF 14706if ac_fn_f77_try_link "$LINENO"; then : 14707 14708aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14709}'` 14710# Check for a 64-bit object if we didn't find anything. 14711if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14712}'`; fi 14713fi 14714rm -f core conftest.err conftest.$ac_objext \ 14715 conftest$ac_exeext conftest.$ac_ext 14716if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14717 14718 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14719 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" 14720 else 14721 if test "$host_cpu" = ia64; then 14722 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14723 allow_undefined_flag_F77="-z nodefs" 14724 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" 14725 else 14726 # Determine the default libpath from the value encoded in an empty executable. 14727 cat > conftest.$ac_ext <<_ACEOF 14728 program main 14729 14730 end 14731_ACEOF 14732if ac_fn_f77_try_link "$LINENO"; then : 14733 14734aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14735}'` 14736# Check for a 64-bit object if we didn't find anything. 14737if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14738}'`; fi 14739fi 14740rm -f core conftest.err conftest.$ac_objext \ 14741 conftest$ac_exeext conftest.$ac_ext 14742if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14743 14744 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14745 # Warning - without using the other run time loading flags, 14746 # -berok will link without error, but may produce a broken library. 14747 no_undefined_flag_F77=' ${wl}-bernotok' 14748 allow_undefined_flag_F77=' ${wl}-berok' 14749 # Exported symbols can be pulled into shared objects from archives 14750 whole_archive_flag_spec_F77='$convenience' 14751 archive_cmds_need_lc_F77=yes 14752 # This is similar to how AIX traditionally builds its shared libraries. 14753 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' 14754 fi 14755 fi 14756 ;; 14757 14758 amigaos*) 14759 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)' 14760 hardcode_libdir_flag_spec_F77='-L$libdir' 14761 hardcode_minus_L_F77=yes 14762 # see comment about different semantics on the GNU ld section 14763 ld_shlibs_F77=no 14764 ;; 14765 14766 bsdi[45]*) 14767 export_dynamic_flag_spec_F77=-rdynamic 14768 ;; 14769 14770 cygwin* | mingw* | pw32*) 14771 # When not using gcc, we currently assume that we are using 14772 # Microsoft Visual C++. 14773 # hardcode_libdir_flag_spec is actually meaningless, as there is 14774 # no search path for DLLs. 14775 hardcode_libdir_flag_spec_F77=' ' 14776 allow_undefined_flag_F77=unsupported 14777 # Tell ltmain to make .lib files, not .a files. 14778 libext=lib 14779 # Tell ltmain to make .dll files, not .so files. 14780 shrext_cmds=".dll" 14781 # FIXME: Setting linknames here is a bad hack. 14782 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14783 # The linker will automatically build a .lib file if we build a DLL. 14784 old_archive_From_new_cmds_F77='true' 14785 # FIXME: Should let the user specify the lib program. 14786 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14787 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14788 enable_shared_with_static_runtimes_F77=yes 14789 ;; 14790 14791 darwin* | rhapsody*) 14792 case $host_os in 14793 rhapsody* | darwin1.[012]) 14794 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14795 ;; 14796 *) # Darwin 1.3 on 14797 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14798 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14799 else 14800 case ${MACOSX_DEPLOYMENT_TARGET} in 14801 10.[012]) 14802 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14803 ;; 14804 10.*) 14805 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14806 ;; 14807 esac 14808 fi 14809 ;; 14810 esac 14811 archive_cmds_need_lc_F77=no 14812 hardcode_direct_F77=no 14813 hardcode_automatic_F77=yes 14814 hardcode_shlibpath_var_F77=unsupported 14815 whole_archive_flag_spec_F77='' 14816 link_all_deplibs_F77=yes 14817 if test "$GCC" = yes ; then 14818 output_verbose_link_cmd='echo' 14819 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14820 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14821 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14822 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14823 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}' 14824 else 14825 case $cc_basename in 14826 xlc*) 14827 output_verbose_link_cmd='echo' 14828 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14829 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14831 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14832 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}' 14833 ;; 14834 *) 14835 ld_shlibs_F77=no 14836 ;; 14837 esac 14838 fi 14839 ;; 14840 14841 dgux*) 14842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14843 hardcode_libdir_flag_spec_F77='-L$libdir' 14844 hardcode_shlibpath_var_F77=no 14845 ;; 14846 14847 freebsd1*) 14848 ld_shlibs_F77=no 14849 ;; 14850 14851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14852 # support. Future versions do this automatically, but an explicit c++rt0.o 14853 # does not break anything, and helps significantly (at the cost of a little 14854 # extra space). 14855 freebsd2.2*) 14856 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14857 hardcode_libdir_flag_spec_F77='-R$libdir' 14858 hardcode_direct_F77=yes 14859 hardcode_shlibpath_var_F77=no 14860 ;; 14861 14862 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14863 freebsd2*) 14864 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14865 hardcode_direct_F77=yes 14866 hardcode_minus_L_F77=yes 14867 hardcode_shlibpath_var_F77=no 14868 ;; 14869 14870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14871 freebsd* | kfreebsd*-gnu | dragonfly*) 14872 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14873 hardcode_libdir_flag_spec_F77='-R$libdir' 14874 hardcode_direct_F77=yes 14875 hardcode_shlibpath_var_F77=no 14876 ;; 14877 14878 hpux9*) 14879 if test "$GCC" = yes; then 14880 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' 14881 else 14882 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' 14883 fi 14884 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14885 hardcode_libdir_separator_F77=: 14886 hardcode_direct_F77=yes 14887 14888 # hardcode_minus_L: Not really in the search PATH, 14889 # but as the default location of the library. 14890 hardcode_minus_L_F77=yes 14891 export_dynamic_flag_spec_F77='${wl}-E' 14892 ;; 14893 14894 hpux10*) 14895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14896 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14897 else 14898 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14899 fi 14900 if test "$with_gnu_ld" = no; then 14901 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14902 hardcode_libdir_separator_F77=: 14903 14904 hardcode_direct_F77=yes 14905 export_dynamic_flag_spec_F77='${wl}-E' 14906 14907 # hardcode_minus_L: Not really in the search PATH, 14908 # but as the default location of the library. 14909 hardcode_minus_L_F77=yes 14910 fi 14911 ;; 14912 14913 hpux11*) 14914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14915 case $host_cpu in 14916 hppa*64*) 14917 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14918 ;; 14919 ia64*) 14920 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14921 ;; 14922 *) 14923 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14924 ;; 14925 esac 14926 else 14927 case $host_cpu in 14928 hppa*64*) 14929 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14930 ;; 14931 ia64*) 14932 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14933 ;; 14934 *) 14935 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14936 ;; 14937 esac 14938 fi 14939 if test "$with_gnu_ld" = no; then 14940 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14941 hardcode_libdir_separator_F77=: 14942 14943 case $host_cpu in 14944 hppa*64*|ia64*) 14945 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14946 hardcode_direct_F77=no 14947 hardcode_shlibpath_var_F77=no 14948 ;; 14949 *) 14950 hardcode_direct_F77=yes 14951 export_dynamic_flag_spec_F77='${wl}-E' 14952 14953 # hardcode_minus_L: Not really in the search PATH, 14954 # but as the default location of the library. 14955 hardcode_minus_L_F77=yes 14956 ;; 14957 esac 14958 fi 14959 ;; 14960 14961 irix5* | irix6* | nonstopux*) 14962 if test "$GCC" = yes; then 14963 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' 14964 else 14965 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' 14966 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14967 fi 14968 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14969 hardcode_libdir_separator_F77=: 14970 link_all_deplibs_F77=yes 14971 ;; 14972 14973 netbsd*) 14974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14975 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14976 else 14977 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14978 fi 14979 hardcode_libdir_flag_spec_F77='-R$libdir' 14980 hardcode_direct_F77=yes 14981 hardcode_shlibpath_var_F77=no 14982 ;; 14983 14984 newsos6) 14985 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14986 hardcode_direct_F77=yes 14987 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14988 hardcode_libdir_separator_F77=: 14989 hardcode_shlibpath_var_F77=no 14990 ;; 14991 14992 openbsd*) 14993 hardcode_direct_F77=yes 14994 hardcode_shlibpath_var_F77=no 14995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14996 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14997 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14998 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14999 export_dynamic_flag_spec_F77='${wl}-E' 15000 else 15001 case $host_os in 15002 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15003 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15004 hardcode_libdir_flag_spec_F77='-R$libdir' 15005 ;; 15006 *) 15007 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15008 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15009 ;; 15010 esac 15011 fi 15012 ;; 15013 15014 os2*) 15015 hardcode_libdir_flag_spec_F77='-L$libdir' 15016 hardcode_minus_L_F77=yes 15017 allow_undefined_flag_F77=unsupported 15018 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' 15019 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15020 ;; 15021 15022 osf3*) 15023 if test "$GCC" = yes; then 15024 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15025 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' 15026 else 15027 allow_undefined_flag_F77=' -expect_unresolved \*' 15028 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' 15029 fi 15030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15031 hardcode_libdir_separator_F77=: 15032 ;; 15033 15034 osf4* | osf5*) # as osf3* with the addition of -msym flag 15035 if test "$GCC" = yes; then 15036 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15037 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' 15038 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15039 else 15040 allow_undefined_flag_F77=' -expect_unresolved \*' 15041 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' 15042 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~ 15043 $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' 15044 15045 # Both c and cxx compiler support -rpath directly 15046 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15047 fi 15048 hardcode_libdir_separator_F77=: 15049 ;; 15050 15051 solaris*) 15052 no_undefined_flag_F77=' -z text' 15053 if test "$GCC" = yes; then 15054 wlarc='${wl}' 15055 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15057 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15058 else 15059 wlarc='' 15060 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15061 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15063 fi 15064 hardcode_libdir_flag_spec_F77='-R$libdir' 15065 hardcode_shlibpath_var_F77=no 15066 case $host_os in 15067 solaris2.[0-5] | solaris2.[0-5].*) ;; 15068 *) 15069 # The compiler driver will combine linker options so we 15070 # cannot just pass the convience library names through 15071 # without $wl, iff we do not link with $LD. 15072 # Luckily, gcc supports the same syntax we need for Sun Studio. 15073 # Supported since Solaris 2.6 (maybe 2.5.1?) 15074 case $wlarc in 15075 '') 15076 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15077 *) 15078 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15079 esac ;; 15080 esac 15081 link_all_deplibs_F77=yes 15082 ;; 15083 15084 sunos4*) 15085 if test "x$host_vendor" = xsequent; then 15086 # Use $CC to link under sequent, because it throws in some extra .o 15087 # files that make .init and .fini sections work. 15088 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15089 else 15090 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15091 fi 15092 hardcode_libdir_flag_spec_F77='-L$libdir' 15093 hardcode_direct_F77=yes 15094 hardcode_minus_L_F77=yes 15095 hardcode_shlibpath_var_F77=no 15096 ;; 15097 15098 sysv4) 15099 case $host_vendor in 15100 sni) 15101 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15102 hardcode_direct_F77=yes # is this really true??? 15103 ;; 15104 siemens) 15105 ## LD is ld it makes a PLAMLIB 15106 ## CC just makes a GrossModule. 15107 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15108 reload_cmds_F77='$CC -r -o $output$reload_objs' 15109 hardcode_direct_F77=no 15110 ;; 15111 motorola) 15112 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15113 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15114 ;; 15115 esac 15116 runpath_var='LD_RUN_PATH' 15117 hardcode_shlibpath_var_F77=no 15118 ;; 15119 15120 sysv4.3*) 15121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15122 hardcode_shlibpath_var_F77=no 15123 export_dynamic_flag_spec_F77='-Bexport' 15124 ;; 15125 15126 sysv4*MP*) 15127 if test -d /usr/nec; then 15128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15129 hardcode_shlibpath_var_F77=no 15130 runpath_var=LD_RUN_PATH 15131 hardcode_runpath_var=yes 15132 ld_shlibs_F77=yes 15133 fi 15134 ;; 15135 15136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15137 no_undefined_flag_F77='${wl}-z,text' 15138 archive_cmds_need_lc_F77=no 15139 hardcode_shlibpath_var_F77=no 15140 runpath_var='LD_RUN_PATH' 15141 15142 if test "$GCC" = yes; then 15143 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15144 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15145 else 15146 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15147 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15148 fi 15149 ;; 15150 15151 sysv5* | sco3.2v5* | sco5v6*) 15152 # Note: We can NOT use -z defs as we might desire, because we do not 15153 # link with -lc, and that would cause any symbols used from libc to 15154 # always be unresolved, which means just about no library would 15155 # ever link correctly. If we're not using GNU ld we use -z text 15156 # though, which does catch some bad symbols but isn't as heavy-handed 15157 # as -z defs. 15158 no_undefined_flag_F77='${wl}-z,text' 15159 allow_undefined_flag_F77='${wl}-z,nodefs' 15160 archive_cmds_need_lc_F77=no 15161 hardcode_shlibpath_var_F77=no 15162 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15163 hardcode_libdir_separator_F77=':' 15164 link_all_deplibs_F77=yes 15165 export_dynamic_flag_spec_F77='${wl}-Bexport' 15166 runpath_var='LD_RUN_PATH' 15167 15168 if test "$GCC" = yes; then 15169 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15170 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15171 else 15172 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15173 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15174 fi 15175 ;; 15176 15177 uts4*) 15178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15179 hardcode_libdir_flag_spec_F77='-L$libdir' 15180 hardcode_shlibpath_var_F77=no 15181 ;; 15182 15183 *) 15184 ld_shlibs_F77=no 15185 ;; 15186 esac 15187 fi 15188 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 15190$as_echo "$ld_shlibs_F77" >&6; } 15191test "$ld_shlibs_F77" = no && can_build_shared=no 15192 15193# 15194# Do we need to explicitly link libc? 15195# 15196case "x$archive_cmds_need_lc_F77" in 15197x|xyes) 15198 # Assume -lc should be added 15199 archive_cmds_need_lc_F77=yes 15200 15201 if test "$enable_shared" = yes && test "$GCC" = yes; then 15202 case $archive_cmds_F77 in 15203 *'~'*) 15204 # FIXME: we may have to deal with multi-command sequences. 15205 ;; 15206 '$CC '*) 15207 # Test whether the compiler implicitly links with -lc since on some 15208 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15209 # to ld, don't add -lc before -lgcc. 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15211$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15212 $rm conftest* 15213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15214 15215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15216 (eval $ac_compile) 2>&5 15217 ac_status=$? 15218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15219 test $ac_status = 0; } 2>conftest.err; then 15220 soname=conftest 15221 lib=conftest 15222 libobjs=conftest.$ac_objext 15223 deplibs= 15224 wl=$lt_prog_compiler_wl_F77 15225 pic_flag=$lt_prog_compiler_pic_F77 15226 compiler_flags=-v 15227 linker_flags=-v 15228 verstring= 15229 output_objdir=. 15230 libname=conftest 15231 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15232 allow_undefined_flag_F77= 15233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15234 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15235 ac_status=$? 15236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15237 test $ac_status = 0; } 15238 then 15239 archive_cmds_need_lc_F77=no 15240 else 15241 archive_cmds_need_lc_F77=yes 15242 fi 15243 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15244 else 15245 cat conftest.err 1>&5 15246 fi 15247 $rm conftest* 15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5 15249$as_echo "$archive_cmds_need_lc_F77" >&6; } 15250 ;; 15251 esac 15252 fi 15253 ;; 15254esac 15255 15256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15257$as_echo_n "checking dynamic linker characteristics... " >&6; } 15258library_names_spec= 15259libname_spec='lib$name' 15260soname_spec= 15261shrext_cmds=".so" 15262postinstall_cmds= 15263postuninstall_cmds= 15264finish_cmds= 15265finish_eval= 15266shlibpath_var= 15267shlibpath_overrides_runpath=unknown 15268version_type=none 15269dynamic_linker="$host_os ld.so" 15270sys_lib_dlsearch_path_spec="/lib /usr/lib" 15271if test "$GCC" = yes; then 15272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15273 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15274 # if the path contains ";" then we assume it to be the separator 15275 # otherwise default to the standard path separator (i.e. ":") - it is 15276 # assumed that no part of a normal pathname contains ";" but that should 15277 # okay in the real world where ";" in dirpaths is itself problematic. 15278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15279 else 15280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15281 fi 15282else 15283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15284fi 15285need_lib_prefix=unknown 15286hardcode_into_libs=no 15287 15288# when you set need_version to no, make sure it does not cause -set_version 15289# flags to be left without arguments 15290need_version=unknown 15291 15292case $host_os in 15293aix3*) 15294 version_type=linux 15295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15296 shlibpath_var=LIBPATH 15297 15298 # AIX 3 has no versioning support, so we append a major version to the name. 15299 soname_spec='${libname}${release}${shared_ext}$major' 15300 ;; 15301 15302aix4* | aix5*) 15303 version_type=linux 15304 need_lib_prefix=no 15305 need_version=no 15306 hardcode_into_libs=yes 15307 if test "$host_cpu" = ia64; then 15308 # AIX 5 supports IA64 15309 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15310 shlibpath_var=LD_LIBRARY_PATH 15311 else 15312 # With GCC up to 2.95.x, collect2 would create an import file 15313 # for dependence libraries. The import file would start with 15314 # the line `#! .'. This would cause the generated library to 15315 # depend on `.', always an invalid library. This was fixed in 15316 # development snapshots of GCC prior to 3.0. 15317 case $host_os in 15318 aix4 | aix4.[01] | aix4.[01].*) 15319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15320 echo ' yes ' 15321 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15322 : 15323 else 15324 can_build_shared=no 15325 fi 15326 ;; 15327 esac 15328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15329 # soname into executable. Probably we can add versioning support to 15330 # collect2, so additional links can be useful in future. 15331 if test "$aix_use_runtimelinking" = yes; then 15332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15333 # instead of lib<name>.a to let people know that these are not 15334 # typical AIX shared libraries. 15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15336 else 15337 # We preserve .a as extension for shared libraries through AIX4.2 15338 # and later when we are not doing run time linking. 15339 library_names_spec='${libname}${release}.a $libname.a' 15340 soname_spec='${libname}${release}${shared_ext}$major' 15341 fi 15342 shlibpath_var=LIBPATH 15343 fi 15344 ;; 15345 15346amigaos*) 15347 library_names_spec='$libname.ixlibrary $libname.a' 15348 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15349 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' 15350 ;; 15351 15352beos*) 15353 library_names_spec='${libname}${shared_ext}' 15354 dynamic_linker="$host_os ld.so" 15355 shlibpath_var=LIBRARY_PATH 15356 ;; 15357 15358bsdi[45]*) 15359 version_type=linux 15360 need_version=no 15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15362 soname_spec='${libname}${release}${shared_ext}$major' 15363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15364 shlibpath_var=LD_LIBRARY_PATH 15365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15367 # the default ld.so.conf also contains /usr/contrib/lib and 15368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15369 # libtool to hard-code these into programs 15370 ;; 15371 15372cygwin* | mingw* | pw32*) 15373 version_type=windows 15374 shrext_cmds=".dll" 15375 need_version=no 15376 need_lib_prefix=no 15377 15378 case $GCC,$host_os in 15379 yes,cygwin* | yes,mingw* | yes,pw32*) 15380 library_names_spec='$libname.dll.a' 15381 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15382 postinstall_cmds='base_file=`basename \${file}`~ 15383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15384 dldir=$destdir/`dirname \$dlpath`~ 15385 test -d \$dldir || mkdir -p \$dldir~ 15386 $install_prog $dir/$dlname \$dldir/$dlname~ 15387 chmod a+x \$dldir/$dlname' 15388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15389 dlpath=$dir/\$dldll~ 15390 $rm \$dlpath' 15391 shlibpath_overrides_runpath=yes 15392 15393 case $host_os in 15394 cygwin*) 15395 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15396 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15397 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15398 ;; 15399 mingw*) 15400 # MinGW DLLs use traditional 'lib' prefix 15401 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15402 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15403 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15404 # It is most probably a Windows format PATH printed by 15405 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15406 # path with ; separators, and with drive letters. We can handle the 15407 # drive letters (cygwin fileutils understands them), so leave them, 15408 # especially as we might pass files found there to a mingw objdump, 15409 # which wouldn't understand a cygwinified path. Ahh. 15410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15411 else 15412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15413 fi 15414 ;; 15415 pw32*) 15416 # pw32 DLLs use 'pw' prefix rather than 'lib' 15417 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15418 ;; 15419 esac 15420 ;; 15421 15422 *) 15423 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15424 ;; 15425 esac 15426 dynamic_linker='Win32 ld.exe' 15427 # FIXME: first we should search . and the directory the executable is in 15428 shlibpath_var=PATH 15429 ;; 15430 15431darwin* | rhapsody*) 15432 dynamic_linker="$host_os dyld" 15433 version_type=darwin 15434 need_lib_prefix=no 15435 need_version=no 15436 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15437 soname_spec='${libname}${release}${major}$shared_ext' 15438 shlibpath_overrides_runpath=yes 15439 shlibpath_var=DYLD_LIBRARY_PATH 15440 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15441 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15442 if test "$GCC" = yes; then 15443 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15444 else 15445 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15446 fi 15447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15448 ;; 15449 15450dgux*) 15451 version_type=linux 15452 need_lib_prefix=no 15453 need_version=no 15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15455 soname_spec='${libname}${release}${shared_ext}$major' 15456 shlibpath_var=LD_LIBRARY_PATH 15457 ;; 15458 15459freebsd1*) 15460 dynamic_linker=no 15461 ;; 15462 15463kfreebsd*-gnu) 15464 version_type=linux 15465 need_lib_prefix=no 15466 need_version=no 15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15468 soname_spec='${libname}${release}${shared_ext}$major' 15469 shlibpath_var=LD_LIBRARY_PATH 15470 shlibpath_overrides_runpath=no 15471 hardcode_into_libs=yes 15472 dynamic_linker='GNU ld.so' 15473 ;; 15474 15475freebsd* | dragonfly*) 15476 # DragonFly does not have aout. When/if they implement a new 15477 # versioning mechanism, adjust this. 15478 if test -x /usr/bin/objformat; then 15479 objformat=`/usr/bin/objformat` 15480 else 15481 case $host_os in 15482 freebsd[123]*) objformat=aout ;; 15483 *) objformat=elf ;; 15484 esac 15485 fi 15486 version_type=freebsd-$objformat 15487 case $version_type in 15488 freebsd-elf*) 15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15490 need_version=no 15491 need_lib_prefix=no 15492 ;; 15493 freebsd-*) 15494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15495 need_version=yes 15496 ;; 15497 esac 15498 shlibpath_var=LD_LIBRARY_PATH 15499 case $host_os in 15500 freebsd2*) 15501 shlibpath_overrides_runpath=yes 15502 ;; 15503 freebsd3.[01]* | freebsdelf3.[01]*) 15504 shlibpath_overrides_runpath=yes 15505 hardcode_into_libs=yes 15506 ;; 15507 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15508 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15509 shlibpath_overrides_runpath=no 15510 hardcode_into_libs=yes 15511 ;; 15512 freebsd*) # from 4.6 on 15513 shlibpath_overrides_runpath=yes 15514 hardcode_into_libs=yes 15515 ;; 15516 esac 15517 ;; 15518 15519gnu*) 15520 version_type=linux 15521 need_lib_prefix=no 15522 need_version=no 15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15524 soname_spec='${libname}${release}${shared_ext}$major' 15525 shlibpath_var=LD_LIBRARY_PATH 15526 hardcode_into_libs=yes 15527 ;; 15528 15529hpux9* | hpux10* | hpux11*) 15530 # Give a soname corresponding to the major version so that dld.sl refuses to 15531 # link against other versions. 15532 version_type=sunos 15533 need_lib_prefix=no 15534 need_version=no 15535 case $host_cpu in 15536 ia64*) 15537 shrext_cmds='.so' 15538 hardcode_into_libs=yes 15539 dynamic_linker="$host_os dld.so" 15540 shlibpath_var=LD_LIBRARY_PATH 15541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15543 soname_spec='${libname}${release}${shared_ext}$major' 15544 if test "X$HPUX_IA64_MODE" = X32; then 15545 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15546 else 15547 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15548 fi 15549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15550 ;; 15551 hppa*64*) 15552 shrext_cmds='.sl' 15553 hardcode_into_libs=yes 15554 dynamic_linker="$host_os dld.sl" 15555 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15558 soname_spec='${libname}${release}${shared_ext}$major' 15559 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15561 ;; 15562 *) 15563 shrext_cmds='.sl' 15564 dynamic_linker="$host_os dld.sl" 15565 shlibpath_var=SHLIB_PATH 15566 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15568 soname_spec='${libname}${release}${shared_ext}$major' 15569 ;; 15570 esac 15571 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15572 postinstall_cmds='chmod 555 $lib' 15573 ;; 15574 15575interix3*) 15576 version_type=linux 15577 need_lib_prefix=no 15578 need_version=no 15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15580 soname_spec='${libname}${release}${shared_ext}$major' 15581 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15582 shlibpath_var=LD_LIBRARY_PATH 15583 shlibpath_overrides_runpath=no 15584 hardcode_into_libs=yes 15585 ;; 15586 15587irix5* | irix6* | nonstopux*) 15588 case $host_os in 15589 nonstopux*) version_type=nonstopux ;; 15590 *) 15591 if test "$lt_cv_prog_gnu_ld" = yes; then 15592 version_type=linux 15593 else 15594 version_type=irix 15595 fi ;; 15596 esac 15597 need_lib_prefix=no 15598 need_version=no 15599 soname_spec='${libname}${release}${shared_ext}$major' 15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15601 case $host_os in 15602 irix5* | nonstopux*) 15603 libsuff= shlibsuff= 15604 ;; 15605 *) 15606 case $LD in # libtool.m4 will add one of these switches to LD 15607 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15608 libsuff= shlibsuff= libmagic=32-bit;; 15609 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15610 libsuff=32 shlibsuff=N32 libmagic=N32;; 15611 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15612 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15613 *) libsuff= shlibsuff= libmagic=never-match;; 15614 esac 15615 ;; 15616 esac 15617 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15618 shlibpath_overrides_runpath=no 15619 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15620 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15621 hardcode_into_libs=yes 15622 ;; 15623 15624# No shared lib support for Linux oldld, aout, or coff. 15625linux*oldld* | linux*aout* | linux*coff*) 15626 dynamic_linker=no 15627 ;; 15628 15629# This must be Linux ELF. 15630linux*) 15631 version_type=linux 15632 need_lib_prefix=no 15633 need_version=no 15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15635 soname_spec='${libname}${release}${shared_ext}$major' 15636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15637 shlibpath_var=LD_LIBRARY_PATH 15638 shlibpath_overrides_runpath=no 15639 # This implies no fast_install, which is unacceptable. 15640 # Some rework will be needed to allow for fast_install 15641 # before this can be enabled. 15642 hardcode_into_libs=yes 15643 15644 # Append ld.so.conf contents to the search path 15645 if test -f /etc/ld.so.conf; then 15646 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15647 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15648 fi 15649 15650 # We used to test for /lib/ld.so.1 and disable shared libraries on 15651 # powerpc, because MkLinux only supported shared libraries with the 15652 # GNU dynamic linker. Since this was broken with cross compilers, 15653 # most powerpc-linux boxes support dynamic linking these days and 15654 # people can always --disable-shared, the test was removed, and we 15655 # assume the GNU/Linux dynamic linker is in use. 15656 dynamic_linker='GNU/Linux ld.so' 15657 ;; 15658 15659knetbsd*-gnu) 15660 version_type=linux 15661 need_lib_prefix=no 15662 need_version=no 15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15664 soname_spec='${libname}${release}${shared_ext}$major' 15665 shlibpath_var=LD_LIBRARY_PATH 15666 shlibpath_overrides_runpath=no 15667 hardcode_into_libs=yes 15668 dynamic_linker='GNU ld.so' 15669 ;; 15670 15671netbsd*) 15672 version_type=sunos 15673 need_lib_prefix=no 15674 need_version=no 15675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15678 dynamic_linker='NetBSD (a.out) ld.so' 15679 else 15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15681 soname_spec='${libname}${release}${shared_ext}$major' 15682 dynamic_linker='NetBSD ld.elf_so' 15683 fi 15684 shlibpath_var=LD_LIBRARY_PATH 15685 shlibpath_overrides_runpath=yes 15686 hardcode_into_libs=yes 15687 ;; 15688 15689newsos6) 15690 version_type=linux 15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15692 shlibpath_var=LD_LIBRARY_PATH 15693 shlibpath_overrides_runpath=yes 15694 ;; 15695 15696nto-qnx*) 15697 version_type=linux 15698 need_lib_prefix=no 15699 need_version=no 15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15701 soname_spec='${libname}${release}${shared_ext}$major' 15702 shlibpath_var=LD_LIBRARY_PATH 15703 shlibpath_overrides_runpath=yes 15704 ;; 15705 15706openbsd*) 15707 version_type=sunos 15708 sys_lib_dlsearch_path_spec="/usr/lib" 15709 need_lib_prefix=no 15710 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15711 case $host_os in 15712 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15713 *) need_version=no ;; 15714 esac 15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15717 shlibpath_var=LD_LIBRARY_PATH 15718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15719 case $host_os in 15720 openbsd2.[89] | openbsd2.[89].*) 15721 shlibpath_overrides_runpath=no 15722 ;; 15723 *) 15724 shlibpath_overrides_runpath=yes 15725 ;; 15726 esac 15727 else 15728 shlibpath_overrides_runpath=yes 15729 fi 15730 ;; 15731 15732os2*) 15733 libname_spec='$name' 15734 shrext_cmds=".dll" 15735 need_lib_prefix=no 15736 library_names_spec='$libname${shared_ext} $libname.a' 15737 dynamic_linker='OS/2 ld.exe' 15738 shlibpath_var=LIBPATH 15739 ;; 15740 15741osf3* | osf4* | osf5*) 15742 version_type=osf 15743 need_lib_prefix=no 15744 need_version=no 15745 soname_spec='${libname}${release}${shared_ext}$major' 15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15747 shlibpath_var=LD_LIBRARY_PATH 15748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15750 ;; 15751 15752solaris*) 15753 version_type=linux 15754 need_lib_prefix=no 15755 need_version=no 15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15757 soname_spec='${libname}${release}${shared_ext}$major' 15758 shlibpath_var=LD_LIBRARY_PATH 15759 shlibpath_overrides_runpath=yes 15760 hardcode_into_libs=yes 15761 # ldd complains unless libraries are executable 15762 postinstall_cmds='chmod +x $lib' 15763 ;; 15764 15765sunos4*) 15766 version_type=sunos 15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15768 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15769 shlibpath_var=LD_LIBRARY_PATH 15770 shlibpath_overrides_runpath=yes 15771 if test "$with_gnu_ld" = yes; then 15772 need_lib_prefix=no 15773 fi 15774 need_version=yes 15775 ;; 15776 15777sysv4 | sysv4.3*) 15778 version_type=linux 15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15780 soname_spec='${libname}${release}${shared_ext}$major' 15781 shlibpath_var=LD_LIBRARY_PATH 15782 case $host_vendor in 15783 sni) 15784 shlibpath_overrides_runpath=no 15785 need_lib_prefix=no 15786 export_dynamic_flag_spec='${wl}-Blargedynsym' 15787 runpath_var=LD_RUN_PATH 15788 ;; 15789 siemens) 15790 need_lib_prefix=no 15791 ;; 15792 motorola) 15793 need_lib_prefix=no 15794 need_version=no 15795 shlibpath_overrides_runpath=no 15796 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15797 ;; 15798 esac 15799 ;; 15800 15801sysv4*MP*) 15802 if test -d /usr/nec ;then 15803 version_type=linux 15804 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15805 soname_spec='$libname${shared_ext}.$major' 15806 shlibpath_var=LD_LIBRARY_PATH 15807 fi 15808 ;; 15809 15810sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15811 version_type=freebsd-elf 15812 need_lib_prefix=no 15813 need_version=no 15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15815 soname_spec='${libname}${release}${shared_ext}$major' 15816 shlibpath_var=LD_LIBRARY_PATH 15817 hardcode_into_libs=yes 15818 if test "$with_gnu_ld" = yes; then 15819 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15820 shlibpath_overrides_runpath=no 15821 else 15822 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15823 shlibpath_overrides_runpath=yes 15824 case $host_os in 15825 sco3.2v5*) 15826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15827 ;; 15828 esac 15829 fi 15830 sys_lib_dlsearch_path_spec='/usr/lib' 15831 ;; 15832 15833uts4*) 15834 version_type=linux 15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15836 soname_spec='${libname}${release}${shared_ext}$major' 15837 shlibpath_var=LD_LIBRARY_PATH 15838 ;; 15839 15840*) 15841 dynamic_linker=no 15842 ;; 15843esac 15844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15845$as_echo "$dynamic_linker" >&6; } 15846test "$dynamic_linker" = no && can_build_shared=no 15847 15848variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15849if test "$GCC" = yes; then 15850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15851fi 15852 15853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15854$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15855hardcode_action_F77= 15856if test -n "$hardcode_libdir_flag_spec_F77" || \ 15857 test -n "$runpath_var_F77" || \ 15858 test "X$hardcode_automatic_F77" = "Xyes" ; then 15859 15860 # We can hardcode non-existant directories. 15861 if test "$hardcode_direct_F77" != no && 15862 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15863 # have to relink, otherwise we might link with an installed library 15864 # when we should be linking with a yet-to-be-installed one 15865 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15866 test "$hardcode_minus_L_F77" != no; then 15867 # Linking always hardcodes the temporary library directory. 15868 hardcode_action_F77=relink 15869 else 15870 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15871 hardcode_action_F77=immediate 15872 fi 15873else 15874 # We cannot hardcode anything, or else we can only hardcode existing 15875 # directories. 15876 hardcode_action_F77=unsupported 15877fi 15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 15879$as_echo "$hardcode_action_F77" >&6; } 15880 15881if test "$hardcode_action_F77" = relink; then 15882 # Fast installation is not supported 15883 enable_fast_install=no 15884elif test "$shlibpath_overrides_runpath" = yes || 15885 test "$enable_shared" = no; then 15886 # Fast installation is not necessary 15887 enable_fast_install=needless 15888fi 15889 15890 15891# The else clause should only fire when bootstrapping the 15892# libtool distribution, otherwise you forgot to ship ltmain.sh 15893# with your package, and you will get complaints that there are 15894# no rules to generate ltmain.sh. 15895if test -f "$ltmain"; then 15896 # See if we are running on zsh, and set the options which allow our commands through 15897 # without removal of \ escapes. 15898 if test -n "${ZSH_VERSION+set}" ; then 15899 setopt NO_GLOB_SUBST 15900 fi 15901 # Now quote all the things that may contain metacharacters while being 15902 # careful not to overquote the AC_SUBSTed values. We take copies of the 15903 # variables and quote the copies for generation of the libtool script. 15904 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15905 SED SHELL STRIP \ 15906 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15907 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15908 deplibs_check_method reload_flag reload_cmds need_locks \ 15909 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15910 lt_cv_sys_global_symbol_to_c_name_address \ 15911 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15912 old_postinstall_cmds old_postuninstall_cmds \ 15913 compiler_F77 \ 15914 CC_F77 \ 15915 LD_F77 \ 15916 lt_prog_compiler_wl_F77 \ 15917 lt_prog_compiler_pic_F77 \ 15918 lt_prog_compiler_static_F77 \ 15919 lt_prog_compiler_no_builtin_flag_F77 \ 15920 export_dynamic_flag_spec_F77 \ 15921 thread_safe_flag_spec_F77 \ 15922 whole_archive_flag_spec_F77 \ 15923 enable_shared_with_static_runtimes_F77 \ 15924 old_archive_cmds_F77 \ 15925 old_archive_from_new_cmds_F77 \ 15926 predep_objects_F77 \ 15927 postdep_objects_F77 \ 15928 predeps_F77 \ 15929 postdeps_F77 \ 15930 compiler_lib_search_path_F77 \ 15931 archive_cmds_F77 \ 15932 archive_expsym_cmds_F77 \ 15933 postinstall_cmds_F77 \ 15934 postuninstall_cmds_F77 \ 15935 old_archive_from_expsyms_cmds_F77 \ 15936 allow_undefined_flag_F77 \ 15937 no_undefined_flag_F77 \ 15938 export_symbols_cmds_F77 \ 15939 hardcode_libdir_flag_spec_F77 \ 15940 hardcode_libdir_flag_spec_ld_F77 \ 15941 hardcode_libdir_separator_F77 \ 15942 hardcode_automatic_F77 \ 15943 module_cmds_F77 \ 15944 module_expsym_cmds_F77 \ 15945 lt_cv_prog_compiler_c_o_F77 \ 15946 exclude_expsyms_F77 \ 15947 include_expsyms_F77; do 15948 15949 case $var in 15950 old_archive_cmds_F77 | \ 15951 old_archive_from_new_cmds_F77 | \ 15952 archive_cmds_F77 | \ 15953 archive_expsym_cmds_F77 | \ 15954 module_cmds_F77 | \ 15955 module_expsym_cmds_F77 | \ 15956 old_archive_from_expsyms_cmds_F77 | \ 15957 export_symbols_cmds_F77 | \ 15958 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15959 postinstall_cmds | postuninstall_cmds | \ 15960 old_postinstall_cmds | old_postuninstall_cmds | \ 15961 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15962 # Double-quote double-evaled strings. 15963 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15964 ;; 15965 *) 15966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15967 ;; 15968 esac 15969 done 15970 15971 case $lt_echo in 15972 *'\$0 --fallback-echo"') 15973 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15974 ;; 15975 esac 15976 15977cfgfile="$ofile" 15978 15979 cat <<__EOF__ >> "$cfgfile" 15980# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15981 15982# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15983 15984# Shell to use when invoking shell scripts. 15985SHELL=$lt_SHELL 15986 15987# Whether or not to build shared libraries. 15988build_libtool_libs=$enable_shared 15989 15990# Whether or not to build static libraries. 15991build_old_libs=$enable_static 15992 15993# Whether or not to add -lc for building shared libraries. 15994build_libtool_need_lc=$archive_cmds_need_lc_F77 15995 15996# Whether or not to disallow shared libs when runtime libs are static 15997allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15998 15999# Whether or not to optimize for fast installation. 16000fast_install=$enable_fast_install 16001 16002# The host system. 16003host_alias=$host_alias 16004host=$host 16005host_os=$host_os 16006 16007# The build system. 16008build_alias=$build_alias 16009build=$build 16010build_os=$build_os 16011 16012# An echo program that does not interpret backslashes. 16013echo=$lt_echo 16014 16015# The archiver. 16016AR=$lt_AR 16017AR_FLAGS=$lt_AR_FLAGS 16018 16019# A C compiler. 16020LTCC=$lt_LTCC 16021 16022# LTCC compiler flags. 16023LTCFLAGS=$lt_LTCFLAGS 16024 16025# A language-specific compiler. 16026CC=$lt_compiler_F77 16027 16028# Is the compiler the GNU C compiler? 16029with_gcc=$GCC_F77 16030 16031# An ERE matcher. 16032EGREP=$lt_EGREP 16033 16034# The linker used to build libraries. 16035LD=$lt_LD_F77 16036 16037# Whether we need hard or soft links. 16038LN_S=$lt_LN_S 16039 16040# A BSD-compatible nm program. 16041NM=$lt_NM 16042 16043# A symbol stripping program 16044STRIP=$lt_STRIP 16045 16046# Used to examine libraries when file_magic_cmd begins "file" 16047MAGIC_CMD=$MAGIC_CMD 16048 16049# Used on cygwin: DLL creation program. 16050DLLTOOL="$DLLTOOL" 16051 16052# Used on cygwin: object dumper. 16053OBJDUMP="$OBJDUMP" 16054 16055# Used on cygwin: assembler. 16056AS="$AS" 16057 16058# The name of the directory that contains temporary libtool files. 16059objdir=$objdir 16060 16061# How to create reloadable object files. 16062reload_flag=$lt_reload_flag 16063reload_cmds=$lt_reload_cmds 16064 16065# How to pass a linker flag through the compiler. 16066wl=$lt_lt_prog_compiler_wl_F77 16067 16068# Object file suffix (normally "o"). 16069objext="$ac_objext" 16070 16071# Old archive suffix (normally "a"). 16072libext="$libext" 16073 16074# Shared library suffix (normally ".so"). 16075shrext_cmds='$shrext_cmds' 16076 16077# Executable file suffix (normally ""). 16078exeext="$exeext" 16079 16080# Additional compiler flags for building library objects. 16081pic_flag=$lt_lt_prog_compiler_pic_F77 16082pic_mode=$pic_mode 16083 16084# What is the maximum length of a command? 16085max_cmd_len=$lt_cv_sys_max_cmd_len 16086 16087# Does compiler simultaneously support -c and -o options? 16088compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16089 16090# Must we lock files when doing compilation? 16091need_locks=$lt_need_locks 16092 16093# Do we need the lib prefix for modules? 16094need_lib_prefix=$need_lib_prefix 16095 16096# Do we need a version for libraries? 16097need_version=$need_version 16098 16099# Whether dlopen is supported. 16100dlopen_support=$enable_dlopen 16101 16102# Whether dlopen of programs is supported. 16103dlopen_self=$enable_dlopen_self 16104 16105# Whether dlopen of statically linked programs is supported. 16106dlopen_self_static=$enable_dlopen_self_static 16107 16108# Compiler flag to prevent dynamic linking. 16109link_static_flag=$lt_lt_prog_compiler_static_F77 16110 16111# Compiler flag to turn off builtin functions. 16112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16113 16114# Compiler flag to allow reflexive dlopens. 16115export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16116 16117# Compiler flag to generate shared objects directly from archives. 16118whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16119 16120# Compiler flag to generate thread-safe objects. 16121thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16122 16123# Library versioning type. 16124version_type=$version_type 16125 16126# Format of library name prefix. 16127libname_spec=$lt_libname_spec 16128 16129# List of archive names. First name is the real one, the rest are links. 16130# The last name is the one that the linker finds with -lNAME. 16131library_names_spec=$lt_library_names_spec 16132 16133# The coded name of the library, if different from the real name. 16134soname_spec=$lt_soname_spec 16135 16136# Commands used to build and install an old-style archive. 16137RANLIB=$lt_RANLIB 16138old_archive_cmds=$lt_old_archive_cmds_F77 16139old_postinstall_cmds=$lt_old_postinstall_cmds 16140old_postuninstall_cmds=$lt_old_postuninstall_cmds 16141 16142# Create an old-style archive from a shared archive. 16143old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16144 16145# Create a temporary old-style archive to link instead of a shared archive. 16146old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16147 16148# Commands used to build and install a shared archive. 16149archive_cmds=$lt_archive_cmds_F77 16150archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16151postinstall_cmds=$lt_postinstall_cmds 16152postuninstall_cmds=$lt_postuninstall_cmds 16153 16154# Commands used to build a loadable module (assumed same as above if empty) 16155module_cmds=$lt_module_cmds_F77 16156module_expsym_cmds=$lt_module_expsym_cmds_F77 16157 16158# Commands to strip libraries. 16159old_striplib=$lt_old_striplib 16160striplib=$lt_striplib 16161 16162# Dependencies to place before the objects being linked to create a 16163# shared library. 16164predep_objects=$lt_predep_objects_F77 16165 16166# Dependencies to place after the objects being linked to create a 16167# shared library. 16168postdep_objects=$lt_postdep_objects_F77 16169 16170# Dependencies to place before the objects being linked to create a 16171# shared library. 16172predeps=$lt_predeps_F77 16173 16174# Dependencies to place after the objects being linked to create a 16175# shared library. 16176postdeps=$lt_postdeps_F77 16177 16178# The library search path used internally by the compiler when linking 16179# a shared library. 16180compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16181 16182# Method to check whether dependent libraries are shared objects. 16183deplibs_check_method=$lt_deplibs_check_method 16184 16185# Command to use when deplibs_check_method == file_magic. 16186file_magic_cmd=$lt_file_magic_cmd 16187 16188# Flag that allows shared libraries with undefined symbols to be built. 16189allow_undefined_flag=$lt_allow_undefined_flag_F77 16190 16191# Flag that forces no undefined symbols. 16192no_undefined_flag=$lt_no_undefined_flag_F77 16193 16194# Commands used to finish a libtool library installation in a directory. 16195finish_cmds=$lt_finish_cmds 16196 16197# Same as above, but a single script fragment to be evaled but not shown. 16198finish_eval=$lt_finish_eval 16199 16200# Take the output of nm and produce a listing of raw symbols and C names. 16201global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16202 16203# Transform the output of nm in a proper C declaration 16204global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16205 16206# Transform the output of nm in a C name address pair 16207global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16208 16209# This is the shared library runtime path variable. 16210runpath_var=$runpath_var 16211 16212# This is the shared library path variable. 16213shlibpath_var=$shlibpath_var 16214 16215# Is shlibpath searched before the hard-coded library search path? 16216shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16217 16218# How to hardcode a shared library path into an executable. 16219hardcode_action=$hardcode_action_F77 16220 16221# Whether we should hardcode library paths into libraries. 16222hardcode_into_libs=$hardcode_into_libs 16223 16224# Flag to hardcode \$libdir into a binary during linking. 16225# This must work even if \$libdir does not exist. 16226hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16227 16228# If ld is used when linking, flag to hardcode \$libdir into 16229# a binary during linking. This must work even if \$libdir does 16230# not exist. 16231hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16232 16233# Whether we need a single -rpath flag with a separated argument. 16234hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16235 16236# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16237# resulting binary. 16238hardcode_direct=$hardcode_direct_F77 16239 16240# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16241# resulting binary. 16242hardcode_minus_L=$hardcode_minus_L_F77 16243 16244# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16245# the resulting binary. 16246hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16247 16248# Set to yes if building a shared library automatically hardcodes DIR into the library 16249# and all subsequent libraries and executables linked against it. 16250hardcode_automatic=$hardcode_automatic_F77 16251 16252# Variables whose values should be saved in libtool wrapper scripts and 16253# restored at relink time. 16254variables_saved_for_relink="$variables_saved_for_relink" 16255 16256# Whether libtool must link a program against all its dependency libraries. 16257link_all_deplibs=$link_all_deplibs_F77 16258 16259# Compile-time system search path for libraries 16260sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16261 16262# Run-time system search path for libraries 16263sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16264 16265# Fix the shell variable \$srcfile for the compiler. 16266fix_srcfile_path="$fix_srcfile_path_F77" 16267 16268# Set to yes if exported symbols are required. 16269always_export_symbols=$always_export_symbols_F77 16270 16271# The commands to list exported symbols. 16272export_symbols_cmds=$lt_export_symbols_cmds_F77 16273 16274# The commands to extract the exported symbol list from a shared archive. 16275extract_expsyms_cmds=$lt_extract_expsyms_cmds 16276 16277# Symbols that should not be listed in the preloaded symbols. 16278exclude_expsyms=$lt_exclude_expsyms_F77 16279 16280# Symbols that must always be exported. 16281include_expsyms=$lt_include_expsyms_F77 16282 16283# ### END LIBTOOL TAG CONFIG: $tagname 16284 16285__EOF__ 16286 16287 16288else 16289 # If there is no Makefile yet, we rely on a make rule to execute 16290 # `config.status --recheck' to rerun these tests and create the 16291 # libtool script then. 16292 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16293 if test -f "$ltmain_in"; then 16294 test -f Makefile && make "$ltmain" 16295 fi 16296fi 16297 16298 16299ac_ext=c 16300ac_cpp='$CPP $CPPFLAGS' 16301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16303ac_compiler_gnu=$ac_cv_c_compiler_gnu 16304 16305CC="$lt_save_CC" 16306 16307 else 16308 tagname="" 16309 fi 16310 ;; 16311 16312 GCJ) 16313 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16314 16315 16316# Source file extension for Java test sources. 16317ac_ext=java 16318 16319# Object file extension for compiled Java test sources. 16320objext=o 16321objext_GCJ=$objext 16322 16323# Code to be used in simple compile tests 16324lt_simple_compile_test_code="class foo {}\n" 16325 16326# Code to be used in simple link tests 16327lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16328 16329# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16330 16331# If no C compiler was specified, use CC. 16332LTCC=${LTCC-"$CC"} 16333 16334# If no C compiler flags were specified, use CFLAGS. 16335LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16336 16337# Allow CC to be a program name with arguments. 16338compiler=$CC 16339 16340 16341# save warnings/boilerplate of simple test code 16342ac_outfile=conftest.$ac_objext 16343printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16344eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16345_lt_compiler_boilerplate=`cat conftest.err` 16346$rm conftest* 16347 16348ac_outfile=conftest.$ac_objext 16349printf "$lt_simple_link_test_code" >conftest.$ac_ext 16350eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16351_lt_linker_boilerplate=`cat conftest.err` 16352$rm conftest* 16353 16354 16355# Allow CC to be a program name with arguments. 16356lt_save_CC="$CC" 16357CC=${GCJ-"gcj"} 16358compiler=$CC 16359compiler_GCJ=$CC 16360for cc_temp in $compiler""; do 16361 case $cc_temp in 16362 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16363 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16364 \-*) ;; 16365 *) break;; 16366 esac 16367done 16368cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16369 16370 16371# GCJ did not exist at the time GCC didn't implicitly link libc in. 16372archive_cmds_need_lc_GCJ=no 16373 16374old_archive_cmds_GCJ=$old_archive_cmds 16375 16376 16377lt_prog_compiler_no_builtin_flag_GCJ= 16378 16379if test "$GCC" = yes; then 16380 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16381 16382 16383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16384$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16385if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 16386 $as_echo_n "(cached) " >&6 16387else 16388 lt_cv_prog_compiler_rtti_exceptions=no 16389 ac_outfile=conftest.$ac_objext 16390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16391 lt_compiler_flag="-fno-rtti -fno-exceptions" 16392 # Insert the option either (1) after the last *FLAGS variable, or 16393 # (2) before a word containing "conftest.", or (3) at the end. 16394 # Note that $ac_compile itself does not contain backslashes and begins 16395 # with a dollar sign (not a hyphen), so the echo should work correctly. 16396 # The option is referenced via a variable to avoid confusing sed. 16397 lt_compile=`echo "$ac_compile" | $SED \ 16398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16400 -e 's:$: $lt_compiler_flag:'` 16401 (eval echo "\"\$as_me:16401: $lt_compile\"" >&5) 16402 (eval "$lt_compile" 2>conftest.err) 16403 ac_status=$? 16404 cat conftest.err >&5 16405 echo "$as_me:16405: \$? = $ac_status" >&5 16406 if (exit $ac_status) && test -s "$ac_outfile"; then 16407 # The compiler can only warn and ignore the option if not recognized 16408 # So say no if there are warnings other than the usual output. 16409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16412 lt_cv_prog_compiler_rtti_exceptions=yes 16413 fi 16414 fi 16415 $rm conftest* 16416 16417fi 16418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16419$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16420 16421if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16422 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16423else 16424 : 16425fi 16426 16427fi 16428 16429lt_prog_compiler_wl_GCJ= 16430lt_prog_compiler_pic_GCJ= 16431lt_prog_compiler_static_GCJ= 16432 16433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16434$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16435 16436 if test "$GCC" = yes; then 16437 lt_prog_compiler_wl_GCJ='-Wl,' 16438 lt_prog_compiler_static_GCJ='-static' 16439 16440 case $host_os in 16441 aix*) 16442 # All AIX code is PIC. 16443 if test "$host_cpu" = ia64; then 16444 # AIX 5 now supports IA64 processor 16445 lt_prog_compiler_static_GCJ='-Bstatic' 16446 fi 16447 ;; 16448 16449 amigaos*) 16450 # FIXME: we need at least 68020 code to build shared libraries, but 16451 # adding the `-m68020' flag to GCC prevents building anything better, 16452 # like `-m68040'. 16453 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16454 ;; 16455 16456 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16457 # PIC is the default for these OSes. 16458 ;; 16459 16460 mingw* | pw32* | os2*) 16461 # This hack is so that the source file can tell whether it is being 16462 # built for inclusion in a dll (and should export symbols for example). 16463 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16464 ;; 16465 16466 darwin* | rhapsody*) 16467 # PIC is the default on this platform 16468 # Common symbols not allowed in MH_DYLIB files 16469 lt_prog_compiler_pic_GCJ='-fno-common' 16470 ;; 16471 16472 interix3*) 16473 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16474 # Instead, we relocate shared libraries at runtime. 16475 ;; 16476 16477 msdosdjgpp*) 16478 # Just because we use GCC doesn't mean we suddenly get shared libraries 16479 # on systems that don't support them. 16480 lt_prog_compiler_can_build_shared_GCJ=no 16481 enable_shared=no 16482 ;; 16483 16484 sysv4*MP*) 16485 if test -d /usr/nec; then 16486 lt_prog_compiler_pic_GCJ=-Kconform_pic 16487 fi 16488 ;; 16489 16490 hpux*) 16491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16492 # not for PA HP-UX. 16493 case $host_cpu in 16494 hppa*64*|ia64*) 16495 # +Z the default 16496 ;; 16497 *) 16498 lt_prog_compiler_pic_GCJ='-fPIC' 16499 ;; 16500 esac 16501 ;; 16502 16503 *) 16504 lt_prog_compiler_pic_GCJ='-fPIC' 16505 ;; 16506 esac 16507 else 16508 # PORTME Check for flag to pass linker flags through the system compiler. 16509 case $host_os in 16510 aix*) 16511 lt_prog_compiler_wl_GCJ='-Wl,' 16512 if test "$host_cpu" = ia64; then 16513 # AIX 5 now supports IA64 processor 16514 lt_prog_compiler_static_GCJ='-Bstatic' 16515 else 16516 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16517 fi 16518 ;; 16519 darwin*) 16520 # PIC is the default on this platform 16521 # Common symbols not allowed in MH_DYLIB files 16522 case $cc_basename in 16523 xlc*) 16524 lt_prog_compiler_pic_GCJ='-qnocommon' 16525 lt_prog_compiler_wl_GCJ='-Wl,' 16526 ;; 16527 esac 16528 ;; 16529 16530 mingw* | pw32* | os2*) 16531 # This hack is so that the source file can tell whether it is being 16532 # built for inclusion in a dll (and should export symbols for example). 16533 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16534 ;; 16535 16536 hpux9* | hpux10* | hpux11*) 16537 lt_prog_compiler_wl_GCJ='-Wl,' 16538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16539 # not for PA HP-UX. 16540 case $host_cpu in 16541 hppa*64*|ia64*) 16542 # +Z the default 16543 ;; 16544 *) 16545 lt_prog_compiler_pic_GCJ='+Z' 16546 ;; 16547 esac 16548 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16549 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16550 ;; 16551 16552 irix5* | irix6* | nonstopux*) 16553 lt_prog_compiler_wl_GCJ='-Wl,' 16554 # PIC (with -KPIC) is the default. 16555 lt_prog_compiler_static_GCJ='-non_shared' 16556 ;; 16557 16558 newsos6) 16559 lt_prog_compiler_pic_GCJ='-KPIC' 16560 lt_prog_compiler_static_GCJ='-Bstatic' 16561 ;; 16562 16563 linux*) 16564 case $cc_basename in 16565 icc* | ecc*) 16566 lt_prog_compiler_wl_GCJ='-Wl,' 16567 lt_prog_compiler_pic_GCJ='-KPIC' 16568 lt_prog_compiler_static_GCJ='-static' 16569 ;; 16570 pgcc* | pgf77* | pgf90* | pgf95*) 16571 # Portland Group compilers (*not* the Pentium gcc compiler, 16572 # which looks to be a dead project) 16573 lt_prog_compiler_wl_GCJ='-Wl,' 16574 lt_prog_compiler_pic_GCJ='-fpic' 16575 lt_prog_compiler_static_GCJ='-Bstatic' 16576 ;; 16577 ccc*) 16578 lt_prog_compiler_wl_GCJ='-Wl,' 16579 # All Alpha code is PIC. 16580 lt_prog_compiler_static_GCJ='-non_shared' 16581 ;; 16582 esac 16583 ;; 16584 16585 osf3* | osf4* | osf5*) 16586 lt_prog_compiler_wl_GCJ='-Wl,' 16587 # All OSF/1 code is PIC. 16588 lt_prog_compiler_static_GCJ='-non_shared' 16589 ;; 16590 16591 solaris*) 16592 lt_prog_compiler_pic_GCJ='-KPIC' 16593 lt_prog_compiler_static_GCJ='-Bstatic' 16594 case $cc_basename in 16595 f77* | f90* | f95*) 16596 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16597 *) 16598 lt_prog_compiler_wl_GCJ='-Wl,';; 16599 esac 16600 ;; 16601 16602 sunos4*) 16603 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16604 lt_prog_compiler_pic_GCJ='-PIC' 16605 lt_prog_compiler_static_GCJ='-Bstatic' 16606 ;; 16607 16608 sysv4 | sysv4.2uw2* | sysv4.3*) 16609 lt_prog_compiler_wl_GCJ='-Wl,' 16610 lt_prog_compiler_pic_GCJ='-KPIC' 16611 lt_prog_compiler_static_GCJ='-Bstatic' 16612 ;; 16613 16614 sysv4*MP*) 16615 if test -d /usr/nec ;then 16616 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16617 lt_prog_compiler_static_GCJ='-Bstatic' 16618 fi 16619 ;; 16620 16621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16622 lt_prog_compiler_wl_GCJ='-Wl,' 16623 lt_prog_compiler_pic_GCJ='-KPIC' 16624 lt_prog_compiler_static_GCJ='-Bstatic' 16625 ;; 16626 16627 unicos*) 16628 lt_prog_compiler_wl_GCJ='-Wl,' 16629 lt_prog_compiler_can_build_shared_GCJ=no 16630 ;; 16631 16632 uts4*) 16633 lt_prog_compiler_pic_GCJ='-pic' 16634 lt_prog_compiler_static_GCJ='-Bstatic' 16635 ;; 16636 16637 *) 16638 lt_prog_compiler_can_build_shared_GCJ=no 16639 ;; 16640 esac 16641 fi 16642 16643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 16644$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 16645 16646# 16647# Check to make sure the PIC flag actually works. 16648# 16649if test -n "$lt_prog_compiler_pic_GCJ"; then 16650 16651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16652$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 16653if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then : 16654 $as_echo_n "(cached) " >&6 16655else 16656 lt_prog_compiler_pic_works_GCJ=no 16657 ac_outfile=conftest.$ac_objext 16658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16659 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16660 # Insert the option either (1) after the last *FLAGS variable, or 16661 # (2) before a word containing "conftest.", or (3) at the end. 16662 # Note that $ac_compile itself does not contain backslashes and begins 16663 # with a dollar sign (not a hyphen), so the echo should work correctly. 16664 # The option is referenced via a variable to avoid confusing sed. 16665 lt_compile=`echo "$ac_compile" | $SED \ 16666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16668 -e 's:$: $lt_compiler_flag:'` 16669 (eval echo "\"\$as_me:16669: $lt_compile\"" >&5) 16670 (eval "$lt_compile" 2>conftest.err) 16671 ac_status=$? 16672 cat conftest.err >&5 16673 echo "$as_me:16673: \$? = $ac_status" >&5 16674 if (exit $ac_status) && test -s "$ac_outfile"; then 16675 # The compiler can only warn and ignore the option if not recognized 16676 # So say no if there are warnings other than the usual output. 16677 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16680 lt_prog_compiler_pic_works_GCJ=yes 16681 fi 16682 fi 16683 $rm conftest* 16684 16685fi 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5 16687$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; } 16688 16689if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16690 case $lt_prog_compiler_pic_GCJ in 16691 "" | " "*) ;; 16692 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16693 esac 16694else 16695 lt_prog_compiler_pic_GCJ= 16696 lt_prog_compiler_can_build_shared_GCJ=no 16697fi 16698 16699fi 16700case $host_os in 16701 # For platforms which do not support PIC, -DPIC is meaningless: 16702 *djgpp*) 16703 lt_prog_compiler_pic_GCJ= 16704 ;; 16705 *) 16706 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16707 ;; 16708esac 16709 16710# 16711# Check to make sure the static flag actually works. 16712# 16713wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16715$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16716if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then : 16717 $as_echo_n "(cached) " >&6 16718else 16719 lt_prog_compiler_static_works_GCJ=no 16720 save_LDFLAGS="$LDFLAGS" 16721 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16722 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16724 # The linker can only warn and ignore the option if not recognized 16725 # So say no if there are warnings 16726 if test -s conftest.err; then 16727 # Append any errors to the config.log. 16728 cat conftest.err 1>&5 16729 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16731 if diff conftest.exp conftest.er2 >/dev/null; then 16732 lt_prog_compiler_static_works_GCJ=yes 16733 fi 16734 else 16735 lt_prog_compiler_static_works_GCJ=yes 16736 fi 16737 fi 16738 $rm conftest* 16739 LDFLAGS="$save_LDFLAGS" 16740 16741fi 16742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5 16743$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; } 16744 16745if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16746 : 16747else 16748 lt_prog_compiler_static_GCJ= 16749fi 16750 16751 16752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16753$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16754if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 16755 $as_echo_n "(cached) " >&6 16756else 16757 lt_cv_prog_compiler_c_o_GCJ=no 16758 $rm -r conftest 2>/dev/null 16759 mkdir conftest 16760 cd conftest 16761 mkdir out 16762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16763 16764 lt_compiler_flag="-o out/conftest2.$ac_objext" 16765 # Insert the option either (1) after the last *FLAGS variable, or 16766 # (2) before a word containing "conftest.", or (3) at the end. 16767 # Note that $ac_compile itself does not contain backslashes and begins 16768 # with a dollar sign (not a hyphen), so the echo should work correctly. 16769 lt_compile=`echo "$ac_compile" | $SED \ 16770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16772 -e 's:$: $lt_compiler_flag:'` 16773 (eval echo "\"\$as_me:16773: $lt_compile\"" >&5) 16774 (eval "$lt_compile" 2>out/conftest.err) 16775 ac_status=$? 16776 cat out/conftest.err >&5 16777 echo "$as_me:16777: \$? = $ac_status" >&5 16778 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16779 then 16780 # The compiler can only warn and ignore the option if not recognized 16781 # So say no if there are warnings 16782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16785 lt_cv_prog_compiler_c_o_GCJ=yes 16786 fi 16787 fi 16788 chmod u+w . 2>&5 16789 $rm conftest* 16790 # SGI C++ compiler will create directory out/ii_files/ for 16791 # template instantiation 16792 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16793 $rm out/* && rmdir out 16794 cd .. 16795 rmdir conftest 16796 $rm conftest* 16797 16798fi 16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16800$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16801 16802 16803hard_links="nottested" 16804if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16805 # do not overwrite the value of need_locks provided by the user 16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16807$as_echo_n "checking if we can lock with hard links... " >&6; } 16808 hard_links=yes 16809 $rm conftest* 16810 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16811 touch conftest.a 16812 ln conftest.a conftest.b 2>&5 || hard_links=no 16813 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16815$as_echo "$hard_links" >&6; } 16816 if test "$hard_links" = no; then 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16818$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16819 need_locks=warn 16820 fi 16821else 16822 need_locks=no 16823fi 16824 16825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16826$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16827 16828 runpath_var= 16829 allow_undefined_flag_GCJ= 16830 enable_shared_with_static_runtimes_GCJ=no 16831 archive_cmds_GCJ= 16832 archive_expsym_cmds_GCJ= 16833 old_archive_From_new_cmds_GCJ= 16834 old_archive_from_expsyms_cmds_GCJ= 16835 export_dynamic_flag_spec_GCJ= 16836 whole_archive_flag_spec_GCJ= 16837 thread_safe_flag_spec_GCJ= 16838 hardcode_libdir_flag_spec_GCJ= 16839 hardcode_libdir_flag_spec_ld_GCJ= 16840 hardcode_libdir_separator_GCJ= 16841 hardcode_direct_GCJ=no 16842 hardcode_minus_L_GCJ=no 16843 hardcode_shlibpath_var_GCJ=unsupported 16844 link_all_deplibs_GCJ=unknown 16845 hardcode_automatic_GCJ=no 16846 module_cmds_GCJ= 16847 module_expsym_cmds_GCJ= 16848 always_export_symbols_GCJ=no 16849 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16850 # include_expsyms should be a list of space-separated symbols to be *always* 16851 # included in the symbol list 16852 include_expsyms_GCJ= 16853 # exclude_expsyms can be an extended regexp of symbols to exclude 16854 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16856 # as well as any symbol that contains `d'. 16857 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16859 # platforms (ab)use it in PIC code, but their linkers get confused if 16860 # the symbol is explicitly referenced. Since portable code cannot 16861 # rely on this symbol name, it's probably fine to never include it in 16862 # preloaded symbol tables. 16863 extract_expsyms_cmds= 16864 # Just being paranoid about ensuring that cc_basename is set. 16865 for cc_temp in $compiler""; do 16866 case $cc_temp in 16867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16869 \-*) ;; 16870 *) break;; 16871 esac 16872done 16873cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16874 16875 case $host_os in 16876 cygwin* | mingw* | pw32*) 16877 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16878 # When not using gcc, we currently assume that we are using 16879 # Microsoft Visual C++. 16880 if test "$GCC" != yes; then 16881 with_gnu_ld=no 16882 fi 16883 ;; 16884 interix*) 16885 # we just hope/assume this is gcc and not c89 (= MSVC++) 16886 with_gnu_ld=yes 16887 ;; 16888 openbsd*) 16889 with_gnu_ld=no 16890 ;; 16891 esac 16892 16893 ld_shlibs_GCJ=yes 16894 if test "$with_gnu_ld" = yes; then 16895 # If archive_cmds runs LD, not CC, wlarc should be empty 16896 wlarc='${wl}' 16897 16898 # Set some defaults for GNU ld with shared library support. These 16899 # are reset later if shared libraries are not supported. Putting them 16900 # here allows them to be overridden if necessary. 16901 runpath_var=LD_RUN_PATH 16902 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16903 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16904 # ancient GNU ld didn't support --whole-archive et. al. 16905 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16906 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16907 else 16908 whole_archive_flag_spec_GCJ= 16909 fi 16910 supports_anon_versioning=no 16911 case `$LD -v 2>/dev/null` in 16912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16915 *\ 2.11.*) ;; # other 2.11 versions 16916 *) supports_anon_versioning=yes ;; 16917 esac 16918 16919 # See if GNU ld supports shared libraries. 16920 case $host_os in 16921 aix3* | aix4* | aix5*) 16922 # On AIX/PPC, the GNU linker is very broken 16923 if test "$host_cpu" != ia64; then 16924 ld_shlibs_GCJ=no 16925 cat <<EOF 1>&2 16926 16927*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16928*** to be unable to reliably create shared libraries on AIX. 16929*** Therefore, libtool is disabling shared libraries support. If you 16930*** really care for shared libraries, you may want to modify your PATH 16931*** so that a non-GNU linker is found, and then restart. 16932 16933EOF 16934 fi 16935 ;; 16936 16937 amigaos*) 16938 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)' 16939 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16940 hardcode_minus_L_GCJ=yes 16941 16942 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16943 # that the semantics of dynamic libraries on AmigaOS, at least up 16944 # to version 4, is to share data among multiple programs linked 16945 # with the same dynamic library. Since this doesn't match the 16946 # behavior of shared libraries on other platforms, we can't use 16947 # them. 16948 ld_shlibs_GCJ=no 16949 ;; 16950 16951 beos*) 16952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16953 allow_undefined_flag_GCJ=unsupported 16954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16955 # support --undefined. This deserves some investigation. FIXME 16956 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16957 else 16958 ld_shlibs_GCJ=no 16959 fi 16960 ;; 16961 16962 cygwin* | mingw* | pw32*) 16963 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16964 # as there is no search path for DLLs. 16965 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16966 allow_undefined_flag_GCJ=unsupported 16967 always_export_symbols_GCJ=no 16968 enable_shared_with_static_runtimes_GCJ=yes 16969 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16970 16971 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16972 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16973 # If the export-symbols file already is a .def file (1st line 16974 # is EXPORTS), use it as is; otherwise, prepend... 16975 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16976 cp $export_symbols $output_objdir/$soname.def; 16977 else 16978 echo EXPORTS > $output_objdir/$soname.def; 16979 cat $export_symbols >> $output_objdir/$soname.def; 16980 fi~ 16981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16982 else 16983 ld_shlibs_GCJ=no 16984 fi 16985 ;; 16986 16987 interix3*) 16988 hardcode_direct_GCJ=no 16989 hardcode_shlibpath_var_GCJ=no 16990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16991 export_dynamic_flag_spec_GCJ='${wl}-E' 16992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16993 # Instead, shared libraries are loaded at an image base (0x10000000 by 16994 # default) and relocated if they conflict, which is a slow very memory 16995 # consuming and fragmenting process. To avoid this, we pick a random, 16996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16997 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16998 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' 16999 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' 17000 ;; 17001 17002 linux*) 17003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17004 tmp_addflag= 17005 case $cc_basename,$host_cpu in 17006 pgcc*) # Portland Group C compiler 17007 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' 17008 tmp_addflag=' $pic_flag' 17009 ;; 17010 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17011 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' 17012 tmp_addflag=' $pic_flag -Mnomain' ;; 17013 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17014 tmp_addflag=' -i_dynamic' ;; 17015 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17016 tmp_addflag=' -i_dynamic -nofor_main' ;; 17017 ifc* | ifort*) # Intel Fortran compiler 17018 tmp_addflag=' -nofor_main' ;; 17019 esac 17020 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17021 17022 if test $supports_anon_versioning = yes; then 17023 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17025 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17026 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17027 fi 17028 else 17029 ld_shlibs_GCJ=no 17030 fi 17031 ;; 17032 17033 netbsd*) 17034 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17035 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17036 wlarc= 17037 else 17038 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17039 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17040 fi 17041 ;; 17042 17043 solaris*) 17044 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17045 ld_shlibs_GCJ=no 17046 cat <<EOF 1>&2 17047 17048*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17049*** create shared libraries on Solaris systems. Therefore, libtool 17050*** is disabling shared libraries support. We urge you to upgrade GNU 17051*** binutils to release 2.9.1 or newer. Another option is to modify 17052*** your PATH or compiler configuration so that the native linker is 17053*** used, and then restart. 17054 17055EOF 17056 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17059 else 17060 ld_shlibs_GCJ=no 17061 fi 17062 ;; 17063 17064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17065 case `$LD -v 2>&1` in 17066 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17067 ld_shlibs_GCJ=no 17068 cat <<_LT_EOF 1>&2 17069 17070*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17071*** reliably create shared libraries on SCO systems. Therefore, libtool 17072*** is disabling shared libraries support. We urge you to upgrade GNU 17073*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17074*** your PATH or compiler configuration so that the native linker is 17075*** used, and then restart. 17076 17077_LT_EOF 17078 ;; 17079 *) 17080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17081 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17082 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17083 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17084 else 17085 ld_shlibs_GCJ=no 17086 fi 17087 ;; 17088 esac 17089 ;; 17090 17091 sunos4*) 17092 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17093 wlarc= 17094 hardcode_direct_GCJ=yes 17095 hardcode_shlibpath_var_GCJ=no 17096 ;; 17097 17098 *) 17099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17100 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17101 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17102 else 17103 ld_shlibs_GCJ=no 17104 fi 17105 ;; 17106 esac 17107 17108 if test "$ld_shlibs_GCJ" = no; then 17109 runpath_var= 17110 hardcode_libdir_flag_spec_GCJ= 17111 export_dynamic_flag_spec_GCJ= 17112 whole_archive_flag_spec_GCJ= 17113 fi 17114 else 17115 # PORTME fill in a description of your system's linker (not GNU ld) 17116 case $host_os in 17117 aix3*) 17118 allow_undefined_flag_GCJ=unsupported 17119 always_export_symbols_GCJ=yes 17120 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' 17121 # Note: this linker hardcodes the directories in LIBPATH if there 17122 # are no directories specified by -L. 17123 hardcode_minus_L_GCJ=yes 17124 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17125 # Neither direct hardcoding nor static linking is supported with a 17126 # broken collect2. 17127 hardcode_direct_GCJ=unsupported 17128 fi 17129 ;; 17130 17131 aix4* | aix5*) 17132 if test "$host_cpu" = ia64; then 17133 # On IA64, the linker does run time linking by default, so we don't 17134 # have to do anything special. 17135 aix_use_runtimelinking=no 17136 exp_sym_flag='-Bexport' 17137 no_entry_flag="" 17138 else 17139 # If we're using GNU nm, then we don't want the "-C" option. 17140 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17141 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17142 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' 17143 else 17144 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' 17145 fi 17146 aix_use_runtimelinking=no 17147 17148 # Test if we are trying to use run time linking or normal 17149 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17150 # need to do runtime linking. 17151 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17152 for ld_flag in $LDFLAGS; do 17153 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17154 aix_use_runtimelinking=yes 17155 break 17156 fi 17157 done 17158 ;; 17159 esac 17160 17161 exp_sym_flag='-bexport' 17162 no_entry_flag='-bnoentry' 17163 fi 17164 17165 # When large executables or shared objects are built, AIX ld can 17166 # have problems creating the table of contents. If linking a library 17167 # or program results in "error TOC overflow" add -mminimal-toc to 17168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17170 17171 archive_cmds_GCJ='' 17172 hardcode_direct_GCJ=yes 17173 hardcode_libdir_separator_GCJ=':' 17174 link_all_deplibs_GCJ=yes 17175 17176 if test "$GCC" = yes; then 17177 case $host_os in aix4.[012]|aix4.[012].*) 17178 # We only want to do this on AIX 4.2 and lower, the check 17179 # below for broken collect2 doesn't work under 4.3+ 17180 collect2name=`${CC} -print-prog-name=collect2` 17181 if test -f "$collect2name" && \ 17182 strings "$collect2name" | grep resolve_lib_name >/dev/null 17183 then 17184 # We have reworked collect2 17185 hardcode_direct_GCJ=yes 17186 else 17187 # We have old collect2 17188 hardcode_direct_GCJ=unsupported 17189 # It fails to find uninstalled libraries when the uninstalled 17190 # path is not listed in the libpath. Setting hardcode_minus_L 17191 # to unsupported forces relinking 17192 hardcode_minus_L_GCJ=yes 17193 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17194 hardcode_libdir_separator_GCJ= 17195 fi 17196 ;; 17197 esac 17198 shared_flag='-shared' 17199 if test "$aix_use_runtimelinking" = yes; then 17200 shared_flag="$shared_flag "'${wl}-G' 17201 fi 17202 else 17203 # not using gcc 17204 if test "$host_cpu" = ia64; then 17205 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17206 # chokes on -Wl,-G. The following line is correct: 17207 shared_flag='-G' 17208 else 17209 if test "$aix_use_runtimelinking" = yes; then 17210 shared_flag='${wl}-G' 17211 else 17212 shared_flag='${wl}-bM:SRE' 17213 fi 17214 fi 17215 fi 17216 17217 # It seems that -bexpall does not export symbols beginning with 17218 # underscore (_), so it is better to generate a list of symbols to export. 17219 always_export_symbols_GCJ=yes 17220 if test "$aix_use_runtimelinking" = yes; then 17221 # Warning - without using the other runtime loading flags (-brtl), 17222 # -berok will link without error, but may produce a broken library. 17223 allow_undefined_flag_GCJ='-berok' 17224 # Determine the default libpath from the value encoded in an empty executable. 17225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17226/* end confdefs.h. */ 17227 17228int 17229main () 17230{ 17231 17232 ; 17233 return 0; 17234} 17235_ACEOF 17236if ac_fn_c_try_link "$LINENO"; then : 17237 17238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17239}'` 17240# Check for a 64-bit object if we didn't find anything. 17241if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17242}'`; fi 17243fi 17244rm -f core conftest.err conftest.$ac_objext \ 17245 conftest$ac_exeext conftest.$ac_ext 17246if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17247 17248 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17249 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" 17250 else 17251 if test "$host_cpu" = ia64; then 17252 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17253 allow_undefined_flag_GCJ="-z nodefs" 17254 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" 17255 else 17256 # Determine the default libpath from the value encoded in an empty executable. 17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17258/* end confdefs.h. */ 17259 17260int 17261main () 17262{ 17263 17264 ; 17265 return 0; 17266} 17267_ACEOF 17268if ac_fn_c_try_link "$LINENO"; then : 17269 17270aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17271}'` 17272# Check for a 64-bit object if we didn't find anything. 17273if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17274}'`; fi 17275fi 17276rm -f core conftest.err conftest.$ac_objext \ 17277 conftest$ac_exeext conftest.$ac_ext 17278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17279 17280 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17281 # Warning - without using the other run time loading flags, 17282 # -berok will link without error, but may produce a broken library. 17283 no_undefined_flag_GCJ=' ${wl}-bernotok' 17284 allow_undefined_flag_GCJ=' ${wl}-berok' 17285 # Exported symbols can be pulled into shared objects from archives 17286 whole_archive_flag_spec_GCJ='$convenience' 17287 archive_cmds_need_lc_GCJ=yes 17288 # This is similar to how AIX traditionally builds its shared libraries. 17289 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' 17290 fi 17291 fi 17292 ;; 17293 17294 amigaos*) 17295 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)' 17296 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17297 hardcode_minus_L_GCJ=yes 17298 # see comment about different semantics on the GNU ld section 17299 ld_shlibs_GCJ=no 17300 ;; 17301 17302 bsdi[45]*) 17303 export_dynamic_flag_spec_GCJ=-rdynamic 17304 ;; 17305 17306 cygwin* | mingw* | pw32*) 17307 # When not using gcc, we currently assume that we are using 17308 # Microsoft Visual C++. 17309 # hardcode_libdir_flag_spec is actually meaningless, as there is 17310 # no search path for DLLs. 17311 hardcode_libdir_flag_spec_GCJ=' ' 17312 allow_undefined_flag_GCJ=unsupported 17313 # Tell ltmain to make .lib files, not .a files. 17314 libext=lib 17315 # Tell ltmain to make .dll files, not .so files. 17316 shrext_cmds=".dll" 17317 # FIXME: Setting linknames here is a bad hack. 17318 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17319 # The linker will automatically build a .lib file if we build a DLL. 17320 old_archive_From_new_cmds_GCJ='true' 17321 # FIXME: Should let the user specify the lib program. 17322 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17323 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17324 enable_shared_with_static_runtimes_GCJ=yes 17325 ;; 17326 17327 darwin* | rhapsody*) 17328 case $host_os in 17329 rhapsody* | darwin1.[012]) 17330 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17331 ;; 17332 *) # Darwin 1.3 on 17333 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17334 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17335 else 17336 case ${MACOSX_DEPLOYMENT_TARGET} in 17337 10.[012]) 17338 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17339 ;; 17340 10.*) 17341 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17342 ;; 17343 esac 17344 fi 17345 ;; 17346 esac 17347 archive_cmds_need_lc_GCJ=no 17348 hardcode_direct_GCJ=no 17349 hardcode_automatic_GCJ=yes 17350 hardcode_shlibpath_var_GCJ=unsupported 17351 whole_archive_flag_spec_GCJ='' 17352 link_all_deplibs_GCJ=yes 17353 if test "$GCC" = yes ; then 17354 output_verbose_link_cmd='echo' 17355 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17356 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17357 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17358 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17359 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}' 17360 else 17361 case $cc_basename in 17362 xlc*) 17363 output_verbose_link_cmd='echo' 17364 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17365 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17367 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17368 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}' 17369 ;; 17370 *) 17371 ld_shlibs_GCJ=no 17372 ;; 17373 esac 17374 fi 17375 ;; 17376 17377 dgux*) 17378 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17379 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17380 hardcode_shlibpath_var_GCJ=no 17381 ;; 17382 17383 freebsd1*) 17384 ld_shlibs_GCJ=no 17385 ;; 17386 17387 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17388 # support. Future versions do this automatically, but an explicit c++rt0.o 17389 # does not break anything, and helps significantly (at the cost of a little 17390 # extra space). 17391 freebsd2.2*) 17392 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17393 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17394 hardcode_direct_GCJ=yes 17395 hardcode_shlibpath_var_GCJ=no 17396 ;; 17397 17398 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17399 freebsd2*) 17400 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17401 hardcode_direct_GCJ=yes 17402 hardcode_minus_L_GCJ=yes 17403 hardcode_shlibpath_var_GCJ=no 17404 ;; 17405 17406 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17407 freebsd* | kfreebsd*-gnu | dragonfly*) 17408 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17409 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17410 hardcode_direct_GCJ=yes 17411 hardcode_shlibpath_var_GCJ=no 17412 ;; 17413 17414 hpux9*) 17415 if test "$GCC" = yes; then 17416 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' 17417 else 17418 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' 17419 fi 17420 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17421 hardcode_libdir_separator_GCJ=: 17422 hardcode_direct_GCJ=yes 17423 17424 # hardcode_minus_L: Not really in the search PATH, 17425 # but as the default location of the library. 17426 hardcode_minus_L_GCJ=yes 17427 export_dynamic_flag_spec_GCJ='${wl}-E' 17428 ;; 17429 17430 hpux10*) 17431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17432 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17433 else 17434 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17435 fi 17436 if test "$with_gnu_ld" = no; then 17437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17438 hardcode_libdir_separator_GCJ=: 17439 17440 hardcode_direct_GCJ=yes 17441 export_dynamic_flag_spec_GCJ='${wl}-E' 17442 17443 # hardcode_minus_L: Not really in the search PATH, 17444 # but as the default location of the library. 17445 hardcode_minus_L_GCJ=yes 17446 fi 17447 ;; 17448 17449 hpux11*) 17450 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17451 case $host_cpu in 17452 hppa*64*) 17453 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17454 ;; 17455 ia64*) 17456 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17457 ;; 17458 *) 17459 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17460 ;; 17461 esac 17462 else 17463 case $host_cpu in 17464 hppa*64*) 17465 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17466 ;; 17467 ia64*) 17468 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17469 ;; 17470 *) 17471 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17472 ;; 17473 esac 17474 fi 17475 if test "$with_gnu_ld" = no; then 17476 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17477 hardcode_libdir_separator_GCJ=: 17478 17479 case $host_cpu in 17480 hppa*64*|ia64*) 17481 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17482 hardcode_direct_GCJ=no 17483 hardcode_shlibpath_var_GCJ=no 17484 ;; 17485 *) 17486 hardcode_direct_GCJ=yes 17487 export_dynamic_flag_spec_GCJ='${wl}-E' 17488 17489 # hardcode_minus_L: Not really in the search PATH, 17490 # but as the default location of the library. 17491 hardcode_minus_L_GCJ=yes 17492 ;; 17493 esac 17494 fi 17495 ;; 17496 17497 irix5* | irix6* | nonstopux*) 17498 if test "$GCC" = yes; then 17499 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' 17500 else 17501 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' 17502 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17503 fi 17504 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17505 hardcode_libdir_separator_GCJ=: 17506 link_all_deplibs_GCJ=yes 17507 ;; 17508 17509 netbsd*) 17510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17512 else 17513 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17514 fi 17515 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17516 hardcode_direct_GCJ=yes 17517 hardcode_shlibpath_var_GCJ=no 17518 ;; 17519 17520 newsos6) 17521 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17522 hardcode_direct_GCJ=yes 17523 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17524 hardcode_libdir_separator_GCJ=: 17525 hardcode_shlibpath_var_GCJ=no 17526 ;; 17527 17528 openbsd*) 17529 hardcode_direct_GCJ=yes 17530 hardcode_shlibpath_var_GCJ=no 17531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17532 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17533 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17534 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17535 export_dynamic_flag_spec_GCJ='${wl}-E' 17536 else 17537 case $host_os in 17538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17539 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17540 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17541 ;; 17542 *) 17543 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17544 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17545 ;; 17546 esac 17547 fi 17548 ;; 17549 17550 os2*) 17551 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17552 hardcode_minus_L_GCJ=yes 17553 allow_undefined_flag_GCJ=unsupported 17554 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' 17555 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17556 ;; 17557 17558 osf3*) 17559 if test "$GCC" = yes; then 17560 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17561 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' 17562 else 17563 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17564 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' 17565 fi 17566 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17567 hardcode_libdir_separator_GCJ=: 17568 ;; 17569 17570 osf4* | osf5*) # as osf3* with the addition of -msym flag 17571 if test "$GCC" = yes; then 17572 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17573 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' 17574 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17575 else 17576 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17577 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' 17578 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~ 17579 $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' 17580 17581 # Both c and cxx compiler support -rpath directly 17582 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17583 fi 17584 hardcode_libdir_separator_GCJ=: 17585 ;; 17586 17587 solaris*) 17588 no_undefined_flag_GCJ=' -z text' 17589 if test "$GCC" = yes; then 17590 wlarc='${wl}' 17591 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17592 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17593 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17594 else 17595 wlarc='' 17596 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17597 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17598 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17599 fi 17600 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17601 hardcode_shlibpath_var_GCJ=no 17602 case $host_os in 17603 solaris2.[0-5] | solaris2.[0-5].*) ;; 17604 *) 17605 # The compiler driver will combine linker options so we 17606 # cannot just pass the convience library names through 17607 # without $wl, iff we do not link with $LD. 17608 # Luckily, gcc supports the same syntax we need for Sun Studio. 17609 # Supported since Solaris 2.6 (maybe 2.5.1?) 17610 case $wlarc in 17611 '') 17612 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17613 *) 17614 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17615 esac ;; 17616 esac 17617 link_all_deplibs_GCJ=yes 17618 ;; 17619 17620 sunos4*) 17621 if test "x$host_vendor" = xsequent; then 17622 # Use $CC to link under sequent, because it throws in some extra .o 17623 # files that make .init and .fini sections work. 17624 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17625 else 17626 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17627 fi 17628 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17629 hardcode_direct_GCJ=yes 17630 hardcode_minus_L_GCJ=yes 17631 hardcode_shlibpath_var_GCJ=no 17632 ;; 17633 17634 sysv4) 17635 case $host_vendor in 17636 sni) 17637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17638 hardcode_direct_GCJ=yes # is this really true??? 17639 ;; 17640 siemens) 17641 ## LD is ld it makes a PLAMLIB 17642 ## CC just makes a GrossModule. 17643 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17644 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17645 hardcode_direct_GCJ=no 17646 ;; 17647 motorola) 17648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17649 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17650 ;; 17651 esac 17652 runpath_var='LD_RUN_PATH' 17653 hardcode_shlibpath_var_GCJ=no 17654 ;; 17655 17656 sysv4.3*) 17657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17658 hardcode_shlibpath_var_GCJ=no 17659 export_dynamic_flag_spec_GCJ='-Bexport' 17660 ;; 17661 17662 sysv4*MP*) 17663 if test -d /usr/nec; then 17664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17665 hardcode_shlibpath_var_GCJ=no 17666 runpath_var=LD_RUN_PATH 17667 hardcode_runpath_var=yes 17668 ld_shlibs_GCJ=yes 17669 fi 17670 ;; 17671 17672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17673 no_undefined_flag_GCJ='${wl}-z,text' 17674 archive_cmds_need_lc_GCJ=no 17675 hardcode_shlibpath_var_GCJ=no 17676 runpath_var='LD_RUN_PATH' 17677 17678 if test "$GCC" = yes; then 17679 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17680 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17681 else 17682 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17683 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17684 fi 17685 ;; 17686 17687 sysv5* | sco3.2v5* | sco5v6*) 17688 # Note: We can NOT use -z defs as we might desire, because we do not 17689 # link with -lc, and that would cause any symbols used from libc to 17690 # always be unresolved, which means just about no library would 17691 # ever link correctly. If we're not using GNU ld we use -z text 17692 # though, which does catch some bad symbols but isn't as heavy-handed 17693 # as -z defs. 17694 no_undefined_flag_GCJ='${wl}-z,text' 17695 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17696 archive_cmds_need_lc_GCJ=no 17697 hardcode_shlibpath_var_GCJ=no 17698 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17699 hardcode_libdir_separator_GCJ=':' 17700 link_all_deplibs_GCJ=yes 17701 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17702 runpath_var='LD_RUN_PATH' 17703 17704 if test "$GCC" = yes; then 17705 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17706 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17707 else 17708 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17709 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17710 fi 17711 ;; 17712 17713 uts4*) 17714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17715 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17716 hardcode_shlibpath_var_GCJ=no 17717 ;; 17718 17719 *) 17720 ld_shlibs_GCJ=no 17721 ;; 17722 esac 17723 fi 17724 17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 17726$as_echo "$ld_shlibs_GCJ" >&6; } 17727test "$ld_shlibs_GCJ" = no && can_build_shared=no 17728 17729# 17730# Do we need to explicitly link libc? 17731# 17732case "x$archive_cmds_need_lc_GCJ" in 17733x|xyes) 17734 # Assume -lc should be added 17735 archive_cmds_need_lc_GCJ=yes 17736 17737 if test "$enable_shared" = yes && test "$GCC" = yes; then 17738 case $archive_cmds_GCJ in 17739 *'~'*) 17740 # FIXME: we may have to deal with multi-command sequences. 17741 ;; 17742 '$CC '*) 17743 # Test whether the compiler implicitly links with -lc since on some 17744 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17745 # to ld, don't add -lc before -lgcc. 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17747$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17748 $rm conftest* 17749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17750 17751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17752 (eval $ac_compile) 2>&5 17753 ac_status=$? 17754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17755 test $ac_status = 0; } 2>conftest.err; then 17756 soname=conftest 17757 lib=conftest 17758 libobjs=conftest.$ac_objext 17759 deplibs= 17760 wl=$lt_prog_compiler_wl_GCJ 17761 pic_flag=$lt_prog_compiler_pic_GCJ 17762 compiler_flags=-v 17763 linker_flags=-v 17764 verstring= 17765 output_objdir=. 17766 libname=conftest 17767 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17768 allow_undefined_flag_GCJ= 17769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17770 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17771 ac_status=$? 17772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17773 test $ac_status = 0; } 17774 then 17775 archive_cmds_need_lc_GCJ=no 17776 else 17777 archive_cmds_need_lc_GCJ=yes 17778 fi 17779 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17780 else 17781 cat conftest.err 1>&5 17782 fi 17783 $rm conftest* 17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 17785$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 17786 ;; 17787 esac 17788 fi 17789 ;; 17790esac 17791 17792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17793$as_echo_n "checking dynamic linker characteristics... " >&6; } 17794library_names_spec= 17795libname_spec='lib$name' 17796soname_spec= 17797shrext_cmds=".so" 17798postinstall_cmds= 17799postuninstall_cmds= 17800finish_cmds= 17801finish_eval= 17802shlibpath_var= 17803shlibpath_overrides_runpath=unknown 17804version_type=none 17805dynamic_linker="$host_os ld.so" 17806sys_lib_dlsearch_path_spec="/lib /usr/lib" 17807if test "$GCC" = yes; then 17808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17810 # if the path contains ";" then we assume it to be the separator 17811 # otherwise default to the standard path separator (i.e. ":") - it is 17812 # assumed that no part of a normal pathname contains ";" but that should 17813 # okay in the real world where ";" in dirpaths is itself problematic. 17814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17815 else 17816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17817 fi 17818else 17819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17820fi 17821need_lib_prefix=unknown 17822hardcode_into_libs=no 17823 17824# when you set need_version to no, make sure it does not cause -set_version 17825# flags to be left without arguments 17826need_version=unknown 17827 17828case $host_os in 17829aix3*) 17830 version_type=linux 17831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17832 shlibpath_var=LIBPATH 17833 17834 # AIX 3 has no versioning support, so we append a major version to the name. 17835 soname_spec='${libname}${release}${shared_ext}$major' 17836 ;; 17837 17838aix4* | aix5*) 17839 version_type=linux 17840 need_lib_prefix=no 17841 need_version=no 17842 hardcode_into_libs=yes 17843 if test "$host_cpu" = ia64; then 17844 # AIX 5 supports IA64 17845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17846 shlibpath_var=LD_LIBRARY_PATH 17847 else 17848 # With GCC up to 2.95.x, collect2 would create an import file 17849 # for dependence libraries. The import file would start with 17850 # the line `#! .'. This would cause the generated library to 17851 # depend on `.', always an invalid library. This was fixed in 17852 # development snapshots of GCC prior to 3.0. 17853 case $host_os in 17854 aix4 | aix4.[01] | aix4.[01].*) 17855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17856 echo ' yes ' 17857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17858 : 17859 else 17860 can_build_shared=no 17861 fi 17862 ;; 17863 esac 17864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17865 # soname into executable. Probably we can add versioning support to 17866 # collect2, so additional links can be useful in future. 17867 if test "$aix_use_runtimelinking" = yes; then 17868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17869 # instead of lib<name>.a to let people know that these are not 17870 # typical AIX shared libraries. 17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17872 else 17873 # We preserve .a as extension for shared libraries through AIX4.2 17874 # and later when we are not doing run time linking. 17875 library_names_spec='${libname}${release}.a $libname.a' 17876 soname_spec='${libname}${release}${shared_ext}$major' 17877 fi 17878 shlibpath_var=LIBPATH 17879 fi 17880 ;; 17881 17882amigaos*) 17883 library_names_spec='$libname.ixlibrary $libname.a' 17884 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17885 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' 17886 ;; 17887 17888beos*) 17889 library_names_spec='${libname}${shared_ext}' 17890 dynamic_linker="$host_os ld.so" 17891 shlibpath_var=LIBRARY_PATH 17892 ;; 17893 17894bsdi[45]*) 17895 version_type=linux 17896 need_version=no 17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17898 soname_spec='${libname}${release}${shared_ext}$major' 17899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17900 shlibpath_var=LD_LIBRARY_PATH 17901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17903 # the default ld.so.conf also contains /usr/contrib/lib and 17904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17905 # libtool to hard-code these into programs 17906 ;; 17907 17908cygwin* | mingw* | pw32*) 17909 version_type=windows 17910 shrext_cmds=".dll" 17911 need_version=no 17912 need_lib_prefix=no 17913 17914 case $GCC,$host_os in 17915 yes,cygwin* | yes,mingw* | yes,pw32*) 17916 library_names_spec='$libname.dll.a' 17917 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17918 postinstall_cmds='base_file=`basename \${file}`~ 17919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17920 dldir=$destdir/`dirname \$dlpath`~ 17921 test -d \$dldir || mkdir -p \$dldir~ 17922 $install_prog $dir/$dlname \$dldir/$dlname~ 17923 chmod a+x \$dldir/$dlname' 17924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17925 dlpath=$dir/\$dldll~ 17926 $rm \$dlpath' 17927 shlibpath_overrides_runpath=yes 17928 17929 case $host_os in 17930 cygwin*) 17931 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17933 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17934 ;; 17935 mingw*) 17936 # MinGW DLLs use traditional 'lib' prefix 17937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17939 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17940 # It is most probably a Windows format PATH printed by 17941 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17942 # path with ; separators, and with drive letters. We can handle the 17943 # drive letters (cygwin fileutils understands them), so leave them, 17944 # especially as we might pass files found there to a mingw objdump, 17945 # which wouldn't understand a cygwinified path. Ahh. 17946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17947 else 17948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17949 fi 17950 ;; 17951 pw32*) 17952 # pw32 DLLs use 'pw' prefix rather than 'lib' 17953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17954 ;; 17955 esac 17956 ;; 17957 17958 *) 17959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17960 ;; 17961 esac 17962 dynamic_linker='Win32 ld.exe' 17963 # FIXME: first we should search . and the directory the executable is in 17964 shlibpath_var=PATH 17965 ;; 17966 17967darwin* | rhapsody*) 17968 dynamic_linker="$host_os dyld" 17969 version_type=darwin 17970 need_lib_prefix=no 17971 need_version=no 17972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17973 soname_spec='${libname}${release}${major}$shared_ext' 17974 shlibpath_overrides_runpath=yes 17975 shlibpath_var=DYLD_LIBRARY_PATH 17976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17978 if test "$GCC" = yes; then 17979 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17980 else 17981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17982 fi 17983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17984 ;; 17985 17986dgux*) 17987 version_type=linux 17988 need_lib_prefix=no 17989 need_version=no 17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17991 soname_spec='${libname}${release}${shared_ext}$major' 17992 shlibpath_var=LD_LIBRARY_PATH 17993 ;; 17994 17995freebsd1*) 17996 dynamic_linker=no 17997 ;; 17998 17999kfreebsd*-gnu) 18000 version_type=linux 18001 need_lib_prefix=no 18002 need_version=no 18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18004 soname_spec='${libname}${release}${shared_ext}$major' 18005 shlibpath_var=LD_LIBRARY_PATH 18006 shlibpath_overrides_runpath=no 18007 hardcode_into_libs=yes 18008 dynamic_linker='GNU ld.so' 18009 ;; 18010 18011freebsd* | dragonfly*) 18012 # DragonFly does not have aout. When/if they implement a new 18013 # versioning mechanism, adjust this. 18014 if test -x /usr/bin/objformat; then 18015 objformat=`/usr/bin/objformat` 18016 else 18017 case $host_os in 18018 freebsd[123]*) objformat=aout ;; 18019 *) objformat=elf ;; 18020 esac 18021 fi 18022 version_type=freebsd-$objformat 18023 case $version_type in 18024 freebsd-elf*) 18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18026 need_version=no 18027 need_lib_prefix=no 18028 ;; 18029 freebsd-*) 18030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18031 need_version=yes 18032 ;; 18033 esac 18034 shlibpath_var=LD_LIBRARY_PATH 18035 case $host_os in 18036 freebsd2*) 18037 shlibpath_overrides_runpath=yes 18038 ;; 18039 freebsd3.[01]* | freebsdelf3.[01]*) 18040 shlibpath_overrides_runpath=yes 18041 hardcode_into_libs=yes 18042 ;; 18043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18045 shlibpath_overrides_runpath=no 18046 hardcode_into_libs=yes 18047 ;; 18048 freebsd*) # from 4.6 on 18049 shlibpath_overrides_runpath=yes 18050 hardcode_into_libs=yes 18051 ;; 18052 esac 18053 ;; 18054 18055gnu*) 18056 version_type=linux 18057 need_lib_prefix=no 18058 need_version=no 18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18060 soname_spec='${libname}${release}${shared_ext}$major' 18061 shlibpath_var=LD_LIBRARY_PATH 18062 hardcode_into_libs=yes 18063 ;; 18064 18065hpux9* | hpux10* | hpux11*) 18066 # Give a soname corresponding to the major version so that dld.sl refuses to 18067 # link against other versions. 18068 version_type=sunos 18069 need_lib_prefix=no 18070 need_version=no 18071 case $host_cpu in 18072 ia64*) 18073 shrext_cmds='.so' 18074 hardcode_into_libs=yes 18075 dynamic_linker="$host_os dld.so" 18076 shlibpath_var=LD_LIBRARY_PATH 18077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18079 soname_spec='${libname}${release}${shared_ext}$major' 18080 if test "X$HPUX_IA64_MODE" = X32; then 18081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18082 else 18083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18084 fi 18085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18086 ;; 18087 hppa*64*) 18088 shrext_cmds='.sl' 18089 hardcode_into_libs=yes 18090 dynamic_linker="$host_os dld.sl" 18091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18094 soname_spec='${libname}${release}${shared_ext}$major' 18095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18097 ;; 18098 *) 18099 shrext_cmds='.sl' 18100 dynamic_linker="$host_os dld.sl" 18101 shlibpath_var=SHLIB_PATH 18102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18104 soname_spec='${libname}${release}${shared_ext}$major' 18105 ;; 18106 esac 18107 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18108 postinstall_cmds='chmod 555 $lib' 18109 ;; 18110 18111interix3*) 18112 version_type=linux 18113 need_lib_prefix=no 18114 need_version=no 18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18116 soname_spec='${libname}${release}${shared_ext}$major' 18117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18118 shlibpath_var=LD_LIBRARY_PATH 18119 shlibpath_overrides_runpath=no 18120 hardcode_into_libs=yes 18121 ;; 18122 18123irix5* | irix6* | nonstopux*) 18124 case $host_os in 18125 nonstopux*) version_type=nonstopux ;; 18126 *) 18127 if test "$lt_cv_prog_gnu_ld" = yes; then 18128 version_type=linux 18129 else 18130 version_type=irix 18131 fi ;; 18132 esac 18133 need_lib_prefix=no 18134 need_version=no 18135 soname_spec='${libname}${release}${shared_ext}$major' 18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18137 case $host_os in 18138 irix5* | nonstopux*) 18139 libsuff= shlibsuff= 18140 ;; 18141 *) 18142 case $LD in # libtool.m4 will add one of these switches to LD 18143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18144 libsuff= shlibsuff= libmagic=32-bit;; 18145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18146 libsuff=32 shlibsuff=N32 libmagic=N32;; 18147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18148 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18149 *) libsuff= shlibsuff= libmagic=never-match;; 18150 esac 18151 ;; 18152 esac 18153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18154 shlibpath_overrides_runpath=no 18155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18157 hardcode_into_libs=yes 18158 ;; 18159 18160# No shared lib support for Linux oldld, aout, or coff. 18161linux*oldld* | linux*aout* | linux*coff*) 18162 dynamic_linker=no 18163 ;; 18164 18165# This must be Linux ELF. 18166linux*) 18167 version_type=linux 18168 need_lib_prefix=no 18169 need_version=no 18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18171 soname_spec='${libname}${release}${shared_ext}$major' 18172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18173 shlibpath_var=LD_LIBRARY_PATH 18174 shlibpath_overrides_runpath=no 18175 # This implies no fast_install, which is unacceptable. 18176 # Some rework will be needed to allow for fast_install 18177 # before this can be enabled. 18178 hardcode_into_libs=yes 18179 18180 # Append ld.so.conf contents to the search path 18181 if test -f /etc/ld.so.conf; then 18182 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18184 fi 18185 18186 # We used to test for /lib/ld.so.1 and disable shared libraries on 18187 # powerpc, because MkLinux only supported shared libraries with the 18188 # GNU dynamic linker. Since this was broken with cross compilers, 18189 # most powerpc-linux boxes support dynamic linking these days and 18190 # people can always --disable-shared, the test was removed, and we 18191 # assume the GNU/Linux dynamic linker is in use. 18192 dynamic_linker='GNU/Linux ld.so' 18193 ;; 18194 18195knetbsd*-gnu) 18196 version_type=linux 18197 need_lib_prefix=no 18198 need_version=no 18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18200 soname_spec='${libname}${release}${shared_ext}$major' 18201 shlibpath_var=LD_LIBRARY_PATH 18202 shlibpath_overrides_runpath=no 18203 hardcode_into_libs=yes 18204 dynamic_linker='GNU ld.so' 18205 ;; 18206 18207netbsd*) 18208 version_type=sunos 18209 need_lib_prefix=no 18210 need_version=no 18211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18214 dynamic_linker='NetBSD (a.out) ld.so' 18215 else 18216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18217 soname_spec='${libname}${release}${shared_ext}$major' 18218 dynamic_linker='NetBSD ld.elf_so' 18219 fi 18220 shlibpath_var=LD_LIBRARY_PATH 18221 shlibpath_overrides_runpath=yes 18222 hardcode_into_libs=yes 18223 ;; 18224 18225newsos6) 18226 version_type=linux 18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18228 shlibpath_var=LD_LIBRARY_PATH 18229 shlibpath_overrides_runpath=yes 18230 ;; 18231 18232nto-qnx*) 18233 version_type=linux 18234 need_lib_prefix=no 18235 need_version=no 18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18237 soname_spec='${libname}${release}${shared_ext}$major' 18238 shlibpath_var=LD_LIBRARY_PATH 18239 shlibpath_overrides_runpath=yes 18240 ;; 18241 18242openbsd*) 18243 version_type=sunos 18244 sys_lib_dlsearch_path_spec="/usr/lib" 18245 need_lib_prefix=no 18246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18247 case $host_os in 18248 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18249 *) need_version=no ;; 18250 esac 18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18253 shlibpath_var=LD_LIBRARY_PATH 18254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18255 case $host_os in 18256 openbsd2.[89] | openbsd2.[89].*) 18257 shlibpath_overrides_runpath=no 18258 ;; 18259 *) 18260 shlibpath_overrides_runpath=yes 18261 ;; 18262 esac 18263 else 18264 shlibpath_overrides_runpath=yes 18265 fi 18266 ;; 18267 18268os2*) 18269 libname_spec='$name' 18270 shrext_cmds=".dll" 18271 need_lib_prefix=no 18272 library_names_spec='$libname${shared_ext} $libname.a' 18273 dynamic_linker='OS/2 ld.exe' 18274 shlibpath_var=LIBPATH 18275 ;; 18276 18277osf3* | osf4* | osf5*) 18278 version_type=osf 18279 need_lib_prefix=no 18280 need_version=no 18281 soname_spec='${libname}${release}${shared_ext}$major' 18282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18283 shlibpath_var=LD_LIBRARY_PATH 18284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18286 ;; 18287 18288solaris*) 18289 version_type=linux 18290 need_lib_prefix=no 18291 need_version=no 18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18293 soname_spec='${libname}${release}${shared_ext}$major' 18294 shlibpath_var=LD_LIBRARY_PATH 18295 shlibpath_overrides_runpath=yes 18296 hardcode_into_libs=yes 18297 # ldd complains unless libraries are executable 18298 postinstall_cmds='chmod +x $lib' 18299 ;; 18300 18301sunos4*) 18302 version_type=sunos 18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18305 shlibpath_var=LD_LIBRARY_PATH 18306 shlibpath_overrides_runpath=yes 18307 if test "$with_gnu_ld" = yes; then 18308 need_lib_prefix=no 18309 fi 18310 need_version=yes 18311 ;; 18312 18313sysv4 | sysv4.3*) 18314 version_type=linux 18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18316 soname_spec='${libname}${release}${shared_ext}$major' 18317 shlibpath_var=LD_LIBRARY_PATH 18318 case $host_vendor in 18319 sni) 18320 shlibpath_overrides_runpath=no 18321 need_lib_prefix=no 18322 export_dynamic_flag_spec='${wl}-Blargedynsym' 18323 runpath_var=LD_RUN_PATH 18324 ;; 18325 siemens) 18326 need_lib_prefix=no 18327 ;; 18328 motorola) 18329 need_lib_prefix=no 18330 need_version=no 18331 shlibpath_overrides_runpath=no 18332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18333 ;; 18334 esac 18335 ;; 18336 18337sysv4*MP*) 18338 if test -d /usr/nec ;then 18339 version_type=linux 18340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18341 soname_spec='$libname${shared_ext}.$major' 18342 shlibpath_var=LD_LIBRARY_PATH 18343 fi 18344 ;; 18345 18346sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18347 version_type=freebsd-elf 18348 need_lib_prefix=no 18349 need_version=no 18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18351 soname_spec='${libname}${release}${shared_ext}$major' 18352 shlibpath_var=LD_LIBRARY_PATH 18353 hardcode_into_libs=yes 18354 if test "$with_gnu_ld" = yes; then 18355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18356 shlibpath_overrides_runpath=no 18357 else 18358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18359 shlibpath_overrides_runpath=yes 18360 case $host_os in 18361 sco3.2v5*) 18362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18363 ;; 18364 esac 18365 fi 18366 sys_lib_dlsearch_path_spec='/usr/lib' 18367 ;; 18368 18369uts4*) 18370 version_type=linux 18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18372 soname_spec='${libname}${release}${shared_ext}$major' 18373 shlibpath_var=LD_LIBRARY_PATH 18374 ;; 18375 18376*) 18377 dynamic_linker=no 18378 ;; 18379esac 18380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18381$as_echo "$dynamic_linker" >&6; } 18382test "$dynamic_linker" = no && can_build_shared=no 18383 18384variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18385if test "$GCC" = yes; then 18386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18387fi 18388 18389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18390$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18391hardcode_action_GCJ= 18392if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18393 test -n "$runpath_var_GCJ" || \ 18394 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18395 18396 # We can hardcode non-existant directories. 18397 if test "$hardcode_direct_GCJ" != no && 18398 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18399 # have to relink, otherwise we might link with an installed library 18400 # when we should be linking with a yet-to-be-installed one 18401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18402 test "$hardcode_minus_L_GCJ" != no; then 18403 # Linking always hardcodes the temporary library directory. 18404 hardcode_action_GCJ=relink 18405 else 18406 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18407 hardcode_action_GCJ=immediate 18408 fi 18409else 18410 # We cannot hardcode anything, or else we can only hardcode existing 18411 # directories. 18412 hardcode_action_GCJ=unsupported 18413fi 18414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 18415$as_echo "$hardcode_action_GCJ" >&6; } 18416 18417if test "$hardcode_action_GCJ" = relink; then 18418 # Fast installation is not supported 18419 enable_fast_install=no 18420elif test "$shlibpath_overrides_runpath" = yes || 18421 test "$enable_shared" = no; then 18422 # Fast installation is not necessary 18423 enable_fast_install=needless 18424fi 18425 18426 18427# The else clause should only fire when bootstrapping the 18428# libtool distribution, otherwise you forgot to ship ltmain.sh 18429# with your package, and you will get complaints that there are 18430# no rules to generate ltmain.sh. 18431if test -f "$ltmain"; then 18432 # See if we are running on zsh, and set the options which allow our commands through 18433 # without removal of \ escapes. 18434 if test -n "${ZSH_VERSION+set}" ; then 18435 setopt NO_GLOB_SUBST 18436 fi 18437 # Now quote all the things that may contain metacharacters while being 18438 # careful not to overquote the AC_SUBSTed values. We take copies of the 18439 # variables and quote the copies for generation of the libtool script. 18440 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18441 SED SHELL STRIP \ 18442 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18443 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18444 deplibs_check_method reload_flag reload_cmds need_locks \ 18445 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18446 lt_cv_sys_global_symbol_to_c_name_address \ 18447 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18448 old_postinstall_cmds old_postuninstall_cmds \ 18449 compiler_GCJ \ 18450 CC_GCJ \ 18451 LD_GCJ \ 18452 lt_prog_compiler_wl_GCJ \ 18453 lt_prog_compiler_pic_GCJ \ 18454 lt_prog_compiler_static_GCJ \ 18455 lt_prog_compiler_no_builtin_flag_GCJ \ 18456 export_dynamic_flag_spec_GCJ \ 18457 thread_safe_flag_spec_GCJ \ 18458 whole_archive_flag_spec_GCJ \ 18459 enable_shared_with_static_runtimes_GCJ \ 18460 old_archive_cmds_GCJ \ 18461 old_archive_from_new_cmds_GCJ \ 18462 predep_objects_GCJ \ 18463 postdep_objects_GCJ \ 18464 predeps_GCJ \ 18465 postdeps_GCJ \ 18466 compiler_lib_search_path_GCJ \ 18467 archive_cmds_GCJ \ 18468 archive_expsym_cmds_GCJ \ 18469 postinstall_cmds_GCJ \ 18470 postuninstall_cmds_GCJ \ 18471 old_archive_from_expsyms_cmds_GCJ \ 18472 allow_undefined_flag_GCJ \ 18473 no_undefined_flag_GCJ \ 18474 export_symbols_cmds_GCJ \ 18475 hardcode_libdir_flag_spec_GCJ \ 18476 hardcode_libdir_flag_spec_ld_GCJ \ 18477 hardcode_libdir_separator_GCJ \ 18478 hardcode_automatic_GCJ \ 18479 module_cmds_GCJ \ 18480 module_expsym_cmds_GCJ \ 18481 lt_cv_prog_compiler_c_o_GCJ \ 18482 exclude_expsyms_GCJ \ 18483 include_expsyms_GCJ; do 18484 18485 case $var in 18486 old_archive_cmds_GCJ | \ 18487 old_archive_from_new_cmds_GCJ | \ 18488 archive_cmds_GCJ | \ 18489 archive_expsym_cmds_GCJ | \ 18490 module_cmds_GCJ | \ 18491 module_expsym_cmds_GCJ | \ 18492 old_archive_from_expsyms_cmds_GCJ | \ 18493 export_symbols_cmds_GCJ | \ 18494 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18495 postinstall_cmds | postuninstall_cmds | \ 18496 old_postinstall_cmds | old_postuninstall_cmds | \ 18497 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18498 # Double-quote double-evaled strings. 18499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18500 ;; 18501 *) 18502 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18503 ;; 18504 esac 18505 done 18506 18507 case $lt_echo in 18508 *'\$0 --fallback-echo"') 18509 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18510 ;; 18511 esac 18512 18513cfgfile="$ofile" 18514 18515 cat <<__EOF__ >> "$cfgfile" 18516# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18517 18518# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18519 18520# Shell to use when invoking shell scripts. 18521SHELL=$lt_SHELL 18522 18523# Whether or not to build shared libraries. 18524build_libtool_libs=$enable_shared 18525 18526# Whether or not to build static libraries. 18527build_old_libs=$enable_static 18528 18529# Whether or not to add -lc for building shared libraries. 18530build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18531 18532# Whether or not to disallow shared libs when runtime libs are static 18533allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18534 18535# Whether or not to optimize for fast installation. 18536fast_install=$enable_fast_install 18537 18538# The host system. 18539host_alias=$host_alias 18540host=$host 18541host_os=$host_os 18542 18543# The build system. 18544build_alias=$build_alias 18545build=$build 18546build_os=$build_os 18547 18548# An echo program that does not interpret backslashes. 18549echo=$lt_echo 18550 18551# The archiver. 18552AR=$lt_AR 18553AR_FLAGS=$lt_AR_FLAGS 18554 18555# A C compiler. 18556LTCC=$lt_LTCC 18557 18558# LTCC compiler flags. 18559LTCFLAGS=$lt_LTCFLAGS 18560 18561# A language-specific compiler. 18562CC=$lt_compiler_GCJ 18563 18564# Is the compiler the GNU C compiler? 18565with_gcc=$GCC_GCJ 18566 18567# An ERE matcher. 18568EGREP=$lt_EGREP 18569 18570# The linker used to build libraries. 18571LD=$lt_LD_GCJ 18572 18573# Whether we need hard or soft links. 18574LN_S=$lt_LN_S 18575 18576# A BSD-compatible nm program. 18577NM=$lt_NM 18578 18579# A symbol stripping program 18580STRIP=$lt_STRIP 18581 18582# Used to examine libraries when file_magic_cmd begins "file" 18583MAGIC_CMD=$MAGIC_CMD 18584 18585# Used on cygwin: DLL creation program. 18586DLLTOOL="$DLLTOOL" 18587 18588# Used on cygwin: object dumper. 18589OBJDUMP="$OBJDUMP" 18590 18591# Used on cygwin: assembler. 18592AS="$AS" 18593 18594# The name of the directory that contains temporary libtool files. 18595objdir=$objdir 18596 18597# How to create reloadable object files. 18598reload_flag=$lt_reload_flag 18599reload_cmds=$lt_reload_cmds 18600 18601# How to pass a linker flag through the compiler. 18602wl=$lt_lt_prog_compiler_wl_GCJ 18603 18604# Object file suffix (normally "o"). 18605objext="$ac_objext" 18606 18607# Old archive suffix (normally "a"). 18608libext="$libext" 18609 18610# Shared library suffix (normally ".so"). 18611shrext_cmds='$shrext_cmds' 18612 18613# Executable file suffix (normally ""). 18614exeext="$exeext" 18615 18616# Additional compiler flags for building library objects. 18617pic_flag=$lt_lt_prog_compiler_pic_GCJ 18618pic_mode=$pic_mode 18619 18620# What is the maximum length of a command? 18621max_cmd_len=$lt_cv_sys_max_cmd_len 18622 18623# Does compiler simultaneously support -c and -o options? 18624compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18625 18626# Must we lock files when doing compilation? 18627need_locks=$lt_need_locks 18628 18629# Do we need the lib prefix for modules? 18630need_lib_prefix=$need_lib_prefix 18631 18632# Do we need a version for libraries? 18633need_version=$need_version 18634 18635# Whether dlopen is supported. 18636dlopen_support=$enable_dlopen 18637 18638# Whether dlopen of programs is supported. 18639dlopen_self=$enable_dlopen_self 18640 18641# Whether dlopen of statically linked programs is supported. 18642dlopen_self_static=$enable_dlopen_self_static 18643 18644# Compiler flag to prevent dynamic linking. 18645link_static_flag=$lt_lt_prog_compiler_static_GCJ 18646 18647# Compiler flag to turn off builtin functions. 18648no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18649 18650# Compiler flag to allow reflexive dlopens. 18651export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18652 18653# Compiler flag to generate shared objects directly from archives. 18654whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18655 18656# Compiler flag to generate thread-safe objects. 18657thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18658 18659# Library versioning type. 18660version_type=$version_type 18661 18662# Format of library name prefix. 18663libname_spec=$lt_libname_spec 18664 18665# List of archive names. First name is the real one, the rest are links. 18666# The last name is the one that the linker finds with -lNAME. 18667library_names_spec=$lt_library_names_spec 18668 18669# The coded name of the library, if different from the real name. 18670soname_spec=$lt_soname_spec 18671 18672# Commands used to build and install an old-style archive. 18673RANLIB=$lt_RANLIB 18674old_archive_cmds=$lt_old_archive_cmds_GCJ 18675old_postinstall_cmds=$lt_old_postinstall_cmds 18676old_postuninstall_cmds=$lt_old_postuninstall_cmds 18677 18678# Create an old-style archive from a shared archive. 18679old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18680 18681# Create a temporary old-style archive to link instead of a shared archive. 18682old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18683 18684# Commands used to build and install a shared archive. 18685archive_cmds=$lt_archive_cmds_GCJ 18686archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18687postinstall_cmds=$lt_postinstall_cmds 18688postuninstall_cmds=$lt_postuninstall_cmds 18689 18690# Commands used to build a loadable module (assumed same as above if empty) 18691module_cmds=$lt_module_cmds_GCJ 18692module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18693 18694# Commands to strip libraries. 18695old_striplib=$lt_old_striplib 18696striplib=$lt_striplib 18697 18698# Dependencies to place before the objects being linked to create a 18699# shared library. 18700predep_objects=$lt_predep_objects_GCJ 18701 18702# Dependencies to place after the objects being linked to create a 18703# shared library. 18704postdep_objects=$lt_postdep_objects_GCJ 18705 18706# Dependencies to place before the objects being linked to create a 18707# shared library. 18708predeps=$lt_predeps_GCJ 18709 18710# Dependencies to place after the objects being linked to create a 18711# shared library. 18712postdeps=$lt_postdeps_GCJ 18713 18714# The library search path used internally by the compiler when linking 18715# a shared library. 18716compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18717 18718# Method to check whether dependent libraries are shared objects. 18719deplibs_check_method=$lt_deplibs_check_method 18720 18721# Command to use when deplibs_check_method == file_magic. 18722file_magic_cmd=$lt_file_magic_cmd 18723 18724# Flag that allows shared libraries with undefined symbols to be built. 18725allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18726 18727# Flag that forces no undefined symbols. 18728no_undefined_flag=$lt_no_undefined_flag_GCJ 18729 18730# Commands used to finish a libtool library installation in a directory. 18731finish_cmds=$lt_finish_cmds 18732 18733# Same as above, but a single script fragment to be evaled but not shown. 18734finish_eval=$lt_finish_eval 18735 18736# Take the output of nm and produce a listing of raw symbols and C names. 18737global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18738 18739# Transform the output of nm in a proper C declaration 18740global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18741 18742# Transform the output of nm in a C name address pair 18743global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18744 18745# This is the shared library runtime path variable. 18746runpath_var=$runpath_var 18747 18748# This is the shared library path variable. 18749shlibpath_var=$shlibpath_var 18750 18751# Is shlibpath searched before the hard-coded library search path? 18752shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18753 18754# How to hardcode a shared library path into an executable. 18755hardcode_action=$hardcode_action_GCJ 18756 18757# Whether we should hardcode library paths into libraries. 18758hardcode_into_libs=$hardcode_into_libs 18759 18760# Flag to hardcode \$libdir into a binary during linking. 18761# This must work even if \$libdir does not exist. 18762hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18763 18764# If ld is used when linking, flag to hardcode \$libdir into 18765# a binary during linking. This must work even if \$libdir does 18766# not exist. 18767hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18768 18769# Whether we need a single -rpath flag with a separated argument. 18770hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18771 18772# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18773# resulting binary. 18774hardcode_direct=$hardcode_direct_GCJ 18775 18776# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18777# resulting binary. 18778hardcode_minus_L=$hardcode_minus_L_GCJ 18779 18780# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18781# the resulting binary. 18782hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18783 18784# Set to yes if building a shared library automatically hardcodes DIR into the library 18785# and all subsequent libraries and executables linked against it. 18786hardcode_automatic=$hardcode_automatic_GCJ 18787 18788# Variables whose values should be saved in libtool wrapper scripts and 18789# restored at relink time. 18790variables_saved_for_relink="$variables_saved_for_relink" 18791 18792# Whether libtool must link a program against all its dependency libraries. 18793link_all_deplibs=$link_all_deplibs_GCJ 18794 18795# Compile-time system search path for libraries 18796sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18797 18798# Run-time system search path for libraries 18799sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18800 18801# Fix the shell variable \$srcfile for the compiler. 18802fix_srcfile_path="$fix_srcfile_path_GCJ" 18803 18804# Set to yes if exported symbols are required. 18805always_export_symbols=$always_export_symbols_GCJ 18806 18807# The commands to list exported symbols. 18808export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18809 18810# The commands to extract the exported symbol list from a shared archive. 18811extract_expsyms_cmds=$lt_extract_expsyms_cmds 18812 18813# Symbols that should not be listed in the preloaded symbols. 18814exclude_expsyms=$lt_exclude_expsyms_GCJ 18815 18816# Symbols that must always be exported. 18817include_expsyms=$lt_include_expsyms_GCJ 18818 18819# ### END LIBTOOL TAG CONFIG: $tagname 18820 18821__EOF__ 18822 18823 18824else 18825 # If there is no Makefile yet, we rely on a make rule to execute 18826 # `config.status --recheck' to rerun these tests and create the 18827 # libtool script then. 18828 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18829 if test -f "$ltmain_in"; then 18830 test -f Makefile && make "$ltmain" 18831 fi 18832fi 18833 18834 18835ac_ext=c 18836ac_cpp='$CPP $CPPFLAGS' 18837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18839ac_compiler_gnu=$ac_cv_c_compiler_gnu 18840 18841CC="$lt_save_CC" 18842 18843 else 18844 tagname="" 18845 fi 18846 ;; 18847 18848 RC) 18849 18850 18851# Source file extension for RC test sources. 18852ac_ext=rc 18853 18854# Object file extension for compiled RC test sources. 18855objext=o 18856objext_RC=$objext 18857 18858# Code to be used in simple compile tests 18859lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18860 18861# Code to be used in simple link tests 18862lt_simple_link_test_code="$lt_simple_compile_test_code" 18863 18864# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18865 18866# If no C compiler was specified, use CC. 18867LTCC=${LTCC-"$CC"} 18868 18869# If no C compiler flags were specified, use CFLAGS. 18870LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18871 18872# Allow CC to be a program name with arguments. 18873compiler=$CC 18874 18875 18876# save warnings/boilerplate of simple test code 18877ac_outfile=conftest.$ac_objext 18878printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18879eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18880_lt_compiler_boilerplate=`cat conftest.err` 18881$rm conftest* 18882 18883ac_outfile=conftest.$ac_objext 18884printf "$lt_simple_link_test_code" >conftest.$ac_ext 18885eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18886_lt_linker_boilerplate=`cat conftest.err` 18887$rm conftest* 18888 18889 18890# Allow CC to be a program name with arguments. 18891lt_save_CC="$CC" 18892CC=${RC-"windres"} 18893compiler=$CC 18894compiler_RC=$CC 18895for cc_temp in $compiler""; do 18896 case $cc_temp in 18897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18899 \-*) ;; 18900 *) break;; 18901 esac 18902done 18903cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18904 18905lt_cv_prog_compiler_c_o_RC=yes 18906 18907# The else clause should only fire when bootstrapping the 18908# libtool distribution, otherwise you forgot to ship ltmain.sh 18909# with your package, and you will get complaints that there are 18910# no rules to generate ltmain.sh. 18911if test -f "$ltmain"; then 18912 # See if we are running on zsh, and set the options which allow our commands through 18913 # without removal of \ escapes. 18914 if test -n "${ZSH_VERSION+set}" ; then 18915 setopt NO_GLOB_SUBST 18916 fi 18917 # Now quote all the things that may contain metacharacters while being 18918 # careful not to overquote the AC_SUBSTed values. We take copies of the 18919 # variables and quote the copies for generation of the libtool script. 18920 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18921 SED SHELL STRIP \ 18922 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18923 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18924 deplibs_check_method reload_flag reload_cmds need_locks \ 18925 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18926 lt_cv_sys_global_symbol_to_c_name_address \ 18927 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18928 old_postinstall_cmds old_postuninstall_cmds \ 18929 compiler_RC \ 18930 CC_RC \ 18931 LD_RC \ 18932 lt_prog_compiler_wl_RC \ 18933 lt_prog_compiler_pic_RC \ 18934 lt_prog_compiler_static_RC \ 18935 lt_prog_compiler_no_builtin_flag_RC \ 18936 export_dynamic_flag_spec_RC \ 18937 thread_safe_flag_spec_RC \ 18938 whole_archive_flag_spec_RC \ 18939 enable_shared_with_static_runtimes_RC \ 18940 old_archive_cmds_RC \ 18941 old_archive_from_new_cmds_RC \ 18942 predep_objects_RC \ 18943 postdep_objects_RC \ 18944 predeps_RC \ 18945 postdeps_RC \ 18946 compiler_lib_search_path_RC \ 18947 archive_cmds_RC \ 18948 archive_expsym_cmds_RC \ 18949 postinstall_cmds_RC \ 18950 postuninstall_cmds_RC \ 18951 old_archive_from_expsyms_cmds_RC \ 18952 allow_undefined_flag_RC \ 18953 no_undefined_flag_RC \ 18954 export_symbols_cmds_RC \ 18955 hardcode_libdir_flag_spec_RC \ 18956 hardcode_libdir_flag_spec_ld_RC \ 18957 hardcode_libdir_separator_RC \ 18958 hardcode_automatic_RC \ 18959 module_cmds_RC \ 18960 module_expsym_cmds_RC \ 18961 lt_cv_prog_compiler_c_o_RC \ 18962 exclude_expsyms_RC \ 18963 include_expsyms_RC; do 18964 18965 case $var in 18966 old_archive_cmds_RC | \ 18967 old_archive_from_new_cmds_RC | \ 18968 archive_cmds_RC | \ 18969 archive_expsym_cmds_RC | \ 18970 module_cmds_RC | \ 18971 module_expsym_cmds_RC | \ 18972 old_archive_from_expsyms_cmds_RC | \ 18973 export_symbols_cmds_RC | \ 18974 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18975 postinstall_cmds | postuninstall_cmds | \ 18976 old_postinstall_cmds | old_postuninstall_cmds | \ 18977 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18978 # Double-quote double-evaled strings. 18979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18980 ;; 18981 *) 18982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18983 ;; 18984 esac 18985 done 18986 18987 case $lt_echo in 18988 *'\$0 --fallback-echo"') 18989 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18990 ;; 18991 esac 18992 18993cfgfile="$ofile" 18994 18995 cat <<__EOF__ >> "$cfgfile" 18996# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18997 18998# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18999 19000# Shell to use when invoking shell scripts. 19001SHELL=$lt_SHELL 19002 19003# Whether or not to build shared libraries. 19004build_libtool_libs=$enable_shared 19005 19006# Whether or not to build static libraries. 19007build_old_libs=$enable_static 19008 19009# Whether or not to add -lc for building shared libraries. 19010build_libtool_need_lc=$archive_cmds_need_lc_RC 19011 19012# Whether or not to disallow shared libs when runtime libs are static 19013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19014 19015# Whether or not to optimize for fast installation. 19016fast_install=$enable_fast_install 19017 19018# The host system. 19019host_alias=$host_alias 19020host=$host 19021host_os=$host_os 19022 19023# The build system. 19024build_alias=$build_alias 19025build=$build 19026build_os=$build_os 19027 19028# An echo program that does not interpret backslashes. 19029echo=$lt_echo 19030 19031# The archiver. 19032AR=$lt_AR 19033AR_FLAGS=$lt_AR_FLAGS 19034 19035# A C compiler. 19036LTCC=$lt_LTCC 19037 19038# LTCC compiler flags. 19039LTCFLAGS=$lt_LTCFLAGS 19040 19041# A language-specific compiler. 19042CC=$lt_compiler_RC 19043 19044# Is the compiler the GNU C compiler? 19045with_gcc=$GCC_RC 19046 19047# An ERE matcher. 19048EGREP=$lt_EGREP 19049 19050# The linker used to build libraries. 19051LD=$lt_LD_RC 19052 19053# Whether we need hard or soft links. 19054LN_S=$lt_LN_S 19055 19056# A BSD-compatible nm program. 19057NM=$lt_NM 19058 19059# A symbol stripping program 19060STRIP=$lt_STRIP 19061 19062# Used to examine libraries when file_magic_cmd begins "file" 19063MAGIC_CMD=$MAGIC_CMD 19064 19065# Used on cygwin: DLL creation program. 19066DLLTOOL="$DLLTOOL" 19067 19068# Used on cygwin: object dumper. 19069OBJDUMP="$OBJDUMP" 19070 19071# Used on cygwin: assembler. 19072AS="$AS" 19073 19074# The name of the directory that contains temporary libtool files. 19075objdir=$objdir 19076 19077# How to create reloadable object files. 19078reload_flag=$lt_reload_flag 19079reload_cmds=$lt_reload_cmds 19080 19081# How to pass a linker flag through the compiler. 19082wl=$lt_lt_prog_compiler_wl_RC 19083 19084# Object file suffix (normally "o"). 19085objext="$ac_objext" 19086 19087# Old archive suffix (normally "a"). 19088libext="$libext" 19089 19090# Shared library suffix (normally ".so"). 19091shrext_cmds='$shrext_cmds' 19092 19093# Executable file suffix (normally ""). 19094exeext="$exeext" 19095 19096# Additional compiler flags for building library objects. 19097pic_flag=$lt_lt_prog_compiler_pic_RC 19098pic_mode=$pic_mode 19099 19100# What is the maximum length of a command? 19101max_cmd_len=$lt_cv_sys_max_cmd_len 19102 19103# Does compiler simultaneously support -c and -o options? 19104compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19105 19106# Must we lock files when doing compilation? 19107need_locks=$lt_need_locks 19108 19109# Do we need the lib prefix for modules? 19110need_lib_prefix=$need_lib_prefix 19111 19112# Do we need a version for libraries? 19113need_version=$need_version 19114 19115# Whether dlopen is supported. 19116dlopen_support=$enable_dlopen 19117 19118# Whether dlopen of programs is supported. 19119dlopen_self=$enable_dlopen_self 19120 19121# Whether dlopen of statically linked programs is supported. 19122dlopen_self_static=$enable_dlopen_self_static 19123 19124# Compiler flag to prevent dynamic linking. 19125link_static_flag=$lt_lt_prog_compiler_static_RC 19126 19127# Compiler flag to turn off builtin functions. 19128no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19129 19130# Compiler flag to allow reflexive dlopens. 19131export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19132 19133# Compiler flag to generate shared objects directly from archives. 19134whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19135 19136# Compiler flag to generate thread-safe objects. 19137thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19138 19139# Library versioning type. 19140version_type=$version_type 19141 19142# Format of library name prefix. 19143libname_spec=$lt_libname_spec 19144 19145# List of archive names. First name is the real one, the rest are links. 19146# The last name is the one that the linker finds with -lNAME. 19147library_names_spec=$lt_library_names_spec 19148 19149# The coded name of the library, if different from the real name. 19150soname_spec=$lt_soname_spec 19151 19152# Commands used to build and install an old-style archive. 19153RANLIB=$lt_RANLIB 19154old_archive_cmds=$lt_old_archive_cmds_RC 19155old_postinstall_cmds=$lt_old_postinstall_cmds 19156old_postuninstall_cmds=$lt_old_postuninstall_cmds 19157 19158# Create an old-style archive from a shared archive. 19159old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19160 19161# Create a temporary old-style archive to link instead of a shared archive. 19162old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19163 19164# Commands used to build and install a shared archive. 19165archive_cmds=$lt_archive_cmds_RC 19166archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19167postinstall_cmds=$lt_postinstall_cmds 19168postuninstall_cmds=$lt_postuninstall_cmds 19169 19170# Commands used to build a loadable module (assumed same as above if empty) 19171module_cmds=$lt_module_cmds_RC 19172module_expsym_cmds=$lt_module_expsym_cmds_RC 19173 19174# Commands to strip libraries. 19175old_striplib=$lt_old_striplib 19176striplib=$lt_striplib 19177 19178# Dependencies to place before the objects being linked to create a 19179# shared library. 19180predep_objects=$lt_predep_objects_RC 19181 19182# Dependencies to place after the objects being linked to create a 19183# shared library. 19184postdep_objects=$lt_postdep_objects_RC 19185 19186# Dependencies to place before the objects being linked to create a 19187# shared library. 19188predeps=$lt_predeps_RC 19189 19190# Dependencies to place after the objects being linked to create a 19191# shared library. 19192postdeps=$lt_postdeps_RC 19193 19194# The library search path used internally by the compiler when linking 19195# a shared library. 19196compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19197 19198# Method to check whether dependent libraries are shared objects. 19199deplibs_check_method=$lt_deplibs_check_method 19200 19201# Command to use when deplibs_check_method == file_magic. 19202file_magic_cmd=$lt_file_magic_cmd 19203 19204# Flag that allows shared libraries with undefined symbols to be built. 19205allow_undefined_flag=$lt_allow_undefined_flag_RC 19206 19207# Flag that forces no undefined symbols. 19208no_undefined_flag=$lt_no_undefined_flag_RC 19209 19210# Commands used to finish a libtool library installation in a directory. 19211finish_cmds=$lt_finish_cmds 19212 19213# Same as above, but a single script fragment to be evaled but not shown. 19214finish_eval=$lt_finish_eval 19215 19216# Take the output of nm and produce a listing of raw symbols and C names. 19217global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19218 19219# Transform the output of nm in a proper C declaration 19220global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19221 19222# Transform the output of nm in a C name address pair 19223global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19224 19225# This is the shared library runtime path variable. 19226runpath_var=$runpath_var 19227 19228# This is the shared library path variable. 19229shlibpath_var=$shlibpath_var 19230 19231# Is shlibpath searched before the hard-coded library search path? 19232shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19233 19234# How to hardcode a shared library path into an executable. 19235hardcode_action=$hardcode_action_RC 19236 19237# Whether we should hardcode library paths into libraries. 19238hardcode_into_libs=$hardcode_into_libs 19239 19240# Flag to hardcode \$libdir into a binary during linking. 19241# This must work even if \$libdir does not exist. 19242hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19243 19244# If ld is used when linking, flag to hardcode \$libdir into 19245# a binary during linking. This must work even if \$libdir does 19246# not exist. 19247hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19248 19249# Whether we need a single -rpath flag with a separated argument. 19250hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19251 19252# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19253# resulting binary. 19254hardcode_direct=$hardcode_direct_RC 19255 19256# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19257# resulting binary. 19258hardcode_minus_L=$hardcode_minus_L_RC 19259 19260# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19261# the resulting binary. 19262hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19263 19264# Set to yes if building a shared library automatically hardcodes DIR into the library 19265# and all subsequent libraries and executables linked against it. 19266hardcode_automatic=$hardcode_automatic_RC 19267 19268# Variables whose values should be saved in libtool wrapper scripts and 19269# restored at relink time. 19270variables_saved_for_relink="$variables_saved_for_relink" 19271 19272# Whether libtool must link a program against all its dependency libraries. 19273link_all_deplibs=$link_all_deplibs_RC 19274 19275# Compile-time system search path for libraries 19276sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19277 19278# Run-time system search path for libraries 19279sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19280 19281# Fix the shell variable \$srcfile for the compiler. 19282fix_srcfile_path="$fix_srcfile_path_RC" 19283 19284# Set to yes if exported symbols are required. 19285always_export_symbols=$always_export_symbols_RC 19286 19287# The commands to list exported symbols. 19288export_symbols_cmds=$lt_export_symbols_cmds_RC 19289 19290# The commands to extract the exported symbol list from a shared archive. 19291extract_expsyms_cmds=$lt_extract_expsyms_cmds 19292 19293# Symbols that should not be listed in the preloaded symbols. 19294exclude_expsyms=$lt_exclude_expsyms_RC 19295 19296# Symbols that must always be exported. 19297include_expsyms=$lt_include_expsyms_RC 19298 19299# ### END LIBTOOL TAG CONFIG: $tagname 19300 19301__EOF__ 19302 19303 19304else 19305 # If there is no Makefile yet, we rely on a make rule to execute 19306 # `config.status --recheck' to rerun these tests and create the 19307 # libtool script then. 19308 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19309 if test -f "$ltmain_in"; then 19310 test -f Makefile && make "$ltmain" 19311 fi 19312fi 19313 19314 19315ac_ext=c 19316ac_cpp='$CPP $CPPFLAGS' 19317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19319ac_compiler_gnu=$ac_cv_c_compiler_gnu 19320 19321CC="$lt_save_CC" 19322 19323 ;; 19324 19325 *) 19326 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5 19327 ;; 19328 esac 19329 19330 # Append the new tag name to the list of available tags. 19331 if test -n "$tagname" ; then 19332 available_tags="$available_tags $tagname" 19333 fi 19334 fi 19335 done 19336 IFS="$lt_save_ifs" 19337 19338 # Now substitute the updated list of available tags. 19339 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19340 mv "${ofile}T" "$ofile" 19341 chmod +x "$ofile" 19342 else 19343 rm -f "${ofile}T" 19344 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5 19345 fi 19346fi 19347 19348 19349 19350# This can be used to rebuild libtool when needed 19351LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19352 19353# Always use our own libtool. 19354LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19355 19356# Prevent multiple expansion 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378# Check for library functions that SQLite can optionally use. 19379for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r 19380do : 19381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19382ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19383eval as_val=\$$as_ac_var 19384 if test "x$as_val" = x""yes; then : 19385 cat >>confdefs.h <<_ACEOF 19386#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19387_ACEOF 19388 19389fi 19390done 19391 19392 19393ac_config_files="$ac_config_files Makefile sqlite3.pc" 19394 19395 19396 19397#----------------------------------------------------------------------- 19398# --enable-readline 19399# 19400# Check whether --enable-readline was given. 19401if test "${enable_readline+set}" = set; then : 19402 enableval=$enable_readline; 19403else 19404 enable_readline=yes 19405fi 19406 19407if test x"$enable_readline" != xno ; then 19408 sLIBS=$LIBS 19409 LIBS="" 19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 19411$as_echo_n "checking for library containing tgetent... " >&6; } 19412if test "${ac_cv_search_tgetent+set}" = set; then : 19413 $as_echo_n "(cached) " >&6 19414else 19415 ac_func_search_save_LIBS=$LIBS 19416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19417/* end confdefs.h. */ 19418 19419/* Override any GCC internal prototype to avoid an error. 19420 Use char because int might match the return type of a GCC 19421 builtin and then its argument prototype would still apply. */ 19422#ifdef __cplusplus 19423extern "C" 19424#endif 19425char tgetent (); 19426int 19427main () 19428{ 19429return tgetent (); 19430 ; 19431 return 0; 19432} 19433_ACEOF 19434for ac_lib in '' curses; do 19435 if test -z "$ac_lib"; then 19436 ac_res="none required" 19437 else 19438 ac_res=-l$ac_lib 19439 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19440 fi 19441 if ac_fn_c_try_link "$LINENO"; then : 19442 ac_cv_search_tgetent=$ac_res 19443fi 19444rm -f core conftest.err conftest.$ac_objext \ 19445 conftest$ac_exeext 19446 if test "${ac_cv_search_tgetent+set}" = set; then : 19447 break 19448fi 19449done 19450if test "${ac_cv_search_tgetent+set}" = set; then : 19451 19452else 19453 ac_cv_search_tgetent=no 19454fi 19455rm conftest.$ac_ext 19456LIBS=$ac_func_search_save_LIBS 19457fi 19458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 19459$as_echo "$ac_cv_search_tgetent" >&6; } 19460ac_res=$ac_cv_search_tgetent 19461if test "$ac_res" != no; then : 19462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19463 19464fi 19465 19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5 19467$as_echo_n "checking for library containing readline... " >&6; } 19468if test "${ac_cv_search_readline+set}" = set; then : 19469 $as_echo_n "(cached) " >&6 19470else 19471 ac_func_search_save_LIBS=$LIBS 19472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19473/* end confdefs.h. */ 19474 19475/* Override any GCC internal prototype to avoid an error. 19476 Use char because int might match the return type of a GCC 19477 builtin and then its argument prototype would still apply. */ 19478#ifdef __cplusplus 19479extern "C" 19480#endif 19481char readline (); 19482int 19483main () 19484{ 19485return readline (); 19486 ; 19487 return 0; 19488} 19489_ACEOF 19490for ac_lib in '' readline; do 19491 if test -z "$ac_lib"; then 19492 ac_res="none required" 19493 else 19494 ac_res=-l$ac_lib 19495 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19496 fi 19497 if ac_fn_c_try_link "$LINENO"; then : 19498 ac_cv_search_readline=$ac_res 19499fi 19500rm -f core conftest.err conftest.$ac_objext \ 19501 conftest$ac_exeext 19502 if test "${ac_cv_search_readline+set}" = set; then : 19503 break 19504fi 19505done 19506if test "${ac_cv_search_readline+set}" = set; then : 19507 19508else 19509 ac_cv_search_readline=no 19510fi 19511rm conftest.$ac_ext 19512LIBS=$ac_func_search_save_LIBS 19513fi 19514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5 19515$as_echo "$ac_cv_search_readline" >&6; } 19516ac_res=$ac_cv_search_readline 19517if test "$ac_res" != no; then : 19518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19519 19520else 19521 enable_readline=no 19522fi 19523 19524 for ac_func in readline 19525do : 19526 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline" 19527if test "x$ac_cv_func_readline" = x""yes; then : 19528 cat >>confdefs.h <<_ACEOF 19529#define HAVE_READLINE 1 19530_ACEOF 19531 19532fi 19533done 19534 19535 READLINE_LIBS=$LIBS 19536 LIBS=$sLIBS 19537fi 19538 19539#----------------------------------------------------------------------- 19540 19541#----------------------------------------------------------------------- 19542# --enable-threadsafe 19543# 19544# Check whether --enable-threadsafe was given. 19545if test "${enable_threadsafe+set}" = set; then : 19546 enableval=$enable_threadsafe; 19547else 19548 enable_threadsafe=no 19549fi 19550 19551THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0 19552if test x"$enable_threadsafe" != "xno"; then 19553 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=1 19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 19555$as_echo_n "checking for library containing pthread_create... " >&6; } 19556if test "${ac_cv_search_pthread_create+set}" = set; then : 19557 $as_echo_n "(cached) " >&6 19558else 19559 ac_func_search_save_LIBS=$LIBS 19560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19561/* end confdefs.h. */ 19562 19563/* Override any GCC internal prototype to avoid an error. 19564 Use char because int might match the return type of a GCC 19565 builtin and then its argument prototype would still apply. */ 19566#ifdef __cplusplus 19567extern "C" 19568#endif 19569char pthread_create (); 19570int 19571main () 19572{ 19573return pthread_create (); 19574 ; 19575 return 0; 19576} 19577_ACEOF 19578for ac_lib in '' pthread; do 19579 if test -z "$ac_lib"; then 19580 ac_res="none required" 19581 else 19582 ac_res=-l$ac_lib 19583 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19584 fi 19585 if ac_fn_c_try_link "$LINENO"; then : 19586 ac_cv_search_pthread_create=$ac_res 19587fi 19588rm -f core conftest.err conftest.$ac_objext \ 19589 conftest$ac_exeext 19590 if test "${ac_cv_search_pthread_create+set}" = set; then : 19591 break 19592fi 19593done 19594if test "${ac_cv_search_pthread_create+set}" = set; then : 19595 19596else 19597 ac_cv_search_pthread_create=no 19598fi 19599rm conftest.$ac_ext 19600LIBS=$ac_func_search_save_LIBS 19601fi 19602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 19603$as_echo "$ac_cv_search_pthread_create" >&6; } 19604ac_res=$ac_cv_search_pthread_create 19605if test "$ac_res" != no; then : 19606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19607 19608fi 19609 19610fi 19611 19612#----------------------------------------------------------------------- 19613 19614#----------------------------------------------------------------------- 19615# --enable-dynamic-extensions 19616# 19617# Check whether --enable-dynamic-extensions was given. 19618if test "${enable_dynamic_extensions+set}" = set; then : 19619 enableval=$enable_dynamic_extensions; 19620else 19621 enable_dynamic_extensions=yes 19622fi 19623 19624if test x"$enable_dynamic_extensions" != "xno"; then 19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 19626$as_echo_n "checking for library containing dlopen... " >&6; } 19627if test "${ac_cv_search_dlopen+set}" = set; then : 19628 $as_echo_n "(cached) " >&6 19629else 19630 ac_func_search_save_LIBS=$LIBS 19631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19632/* end confdefs.h. */ 19633 19634/* Override any GCC internal prototype to avoid an error. 19635 Use char because int might match the return type of a GCC 19636 builtin and then its argument prototype would still apply. */ 19637#ifdef __cplusplus 19638extern "C" 19639#endif 19640char dlopen (); 19641int 19642main () 19643{ 19644return dlopen (); 19645 ; 19646 return 0; 19647} 19648_ACEOF 19649for ac_lib in '' dl; do 19650 if test -z "$ac_lib"; then 19651 ac_res="none required" 19652 else 19653 ac_res=-l$ac_lib 19654 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19655 fi 19656 if ac_fn_c_try_link "$LINENO"; then : 19657 ac_cv_search_dlopen=$ac_res 19658fi 19659rm -f core conftest.err conftest.$ac_objext \ 19660 conftest$ac_exeext 19661 if test "${ac_cv_search_dlopen+set}" = set; then : 19662 break 19663fi 19664done 19665if test "${ac_cv_search_dlopen+set}" = set; then : 19666 19667else 19668 ac_cv_search_dlopen=no 19669fi 19670rm conftest.$ac_ext 19671LIBS=$ac_func_search_save_LIBS 19672fi 19673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 19674$as_echo "$ac_cv_search_dlopen" >&6; } 19675ac_res=$ac_cv_search_dlopen 19676if test "$ac_res" != no; then : 19677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19678 19679fi 19680 19681else 19682 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1 19683fi 19684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5 19685$as_echo_n "checking for whether to support dynamic extensions... " >&6; } 19686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5 19687$as_echo "$enable_dynamic_extensions" >&6; } 19688 19689#----------------------------------------------------------------------- 19690 19691#----------------------------------------------------------------------- 19692# UPDATE: Maybe it's better if users just set CFLAGS before invoking 19693# configure. This option doesn't really add much... 19694# 19695# --enable-tempstore 19696# 19697# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING( 19698# [--enable-tempstore], 19699# [in-memory temporary tables (never, no, yes, always) [default=no]])], 19700# [], [enable_tempstore=no]) 19701# AC_MSG_CHECKING([for whether or not to store temp tables in-memory]) 19702# case "$enable_tempstore" in 19703# never ) TEMP_STORE=0 ;; 19704# no ) TEMP_STORE=1 ;; 19705# always ) TEMP_STORE=3 ;; 19706# yes ) TEMP_STORE=3 ;; 19707# * ) 19708# TEMP_STORE=1 19709# enable_tempstore=yes 19710# ;; 19711# esac 19712# AC_MSG_RESULT($enable_tempstore) 19713# AC_SUBST(TEMP_STORE) 19714#----------------------------------------------------------------------- 19715 19716cat >confcache <<\_ACEOF 19717# This file is a shell script that caches the results of configure 19718# tests run on this system so they can be shared between configure 19719# scripts and configure runs, see configure's option --config-cache. 19720# It is not useful on other systems. If it contains results you don't 19721# want to keep, you may remove or edit it. 19722# 19723# config.status only pays attention to the cache file if you give it 19724# the --recheck option to rerun configure. 19725# 19726# `ac_cv_env_foo' variables (set or unset) will be overridden when 19727# loading this file, other *unset* `ac_cv_foo' will be assigned the 19728# following values. 19729 19730_ACEOF 19731 19732# The following way of writing the cache mishandles newlines in values, 19733# but we know of no workaround that is simple, portable, and efficient. 19734# So, we kill variables containing newlines. 19735# Ultrix sh set writes to stderr and can't be redirected directly, 19736# and sets the high bit in the cache file unless we assign to the vars. 19737( 19738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19739 eval ac_val=\$$ac_var 19740 case $ac_val in #( 19741 *${as_nl}*) 19742 case $ac_var in #( 19743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19744$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19745 esac 19746 case $ac_var in #( 19747 _ | IFS | as_nl) ;; #( 19748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19749 *) { eval $ac_var=; unset $ac_var;} ;; 19750 esac ;; 19751 esac 19752 done 19753 19754 (set) 2>&1 | 19755 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19756 *${as_nl}ac_space=\ *) 19757 # `set' does not quote correctly, so add quotes: double-quote 19758 # substitution turns \\\\ into \\, and sed turns \\ into \. 19759 sed -n \ 19760 "s/'/'\\\\''/g; 19761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19762 ;; #( 19763 *) 19764 # `set' quotes correctly as required by POSIX, so do not add quotes. 19765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19766 ;; 19767 esac | 19768 sort 19769) | 19770 sed ' 19771 /^ac_cv_env_/b end 19772 t clear 19773 :clear 19774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19775 t end 19776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19777 :end' >>confcache 19778if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19779 if test -w "$cache_file"; then 19780 test "x$cache_file" != "x/dev/null" && 19781 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19782$as_echo "$as_me: updating cache $cache_file" >&6;} 19783 cat confcache >$cache_file 19784 else 19785 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19786$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19787 fi 19788fi 19789rm -f confcache 19790 19791test "x$prefix" = xNONE && prefix=$ac_default_prefix 19792# Let make expand exec_prefix. 19793test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19794 19795# Transform confdefs.h into DEFS. 19796# Protect against shell expansion while executing Makefile rules. 19797# Protect against Makefile macro expansion. 19798# 19799# If the first sed substitution is executed (which looks for macros that 19800# take arguments), then branch to the quote section. Otherwise, 19801# look for a macro that doesn't take arguments. 19802ac_script=' 19803:mline 19804/\\$/{ 19805 N 19806 s,\\\n,, 19807 b mline 19808} 19809t clear 19810:clear 19811s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19812t quote 19813s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19814t quote 19815b any 19816:quote 19817s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19818s/\[/\\&/g 19819s/\]/\\&/g 19820s/\$/$$/g 19821H 19822:any 19823${ 19824 g 19825 s/^\n// 19826 s/\n/ /g 19827 p 19828} 19829' 19830DEFS=`sed -n "$ac_script" confdefs.h` 19831 19832 19833ac_libobjs= 19834ac_ltlibobjs= 19835for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19836 # 1. Remove the extension, and $U if already installed. 19837 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19838 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19839 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19840 # will be set to the directory where LIBOBJS objects are built. 19841 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19842 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19843done 19844LIBOBJS=$ac_libobjs 19845 19846LTLIBOBJS=$ac_ltlibobjs 19847 19848 19849if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19850 as_fn_error "conditional \"AMDEP\" was never defined. 19851Usually this means the macro was only invoked conditionally." "$LINENO" 5 19852fi 19853if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19854 as_fn_error "conditional \"am__fastdepCC\" was never defined. 19855Usually this means the macro was only invoked conditionally." "$LINENO" 5 19856fi 19857if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19858 as_fn_error "conditional \"am__fastdepCC\" was never defined. 19859Usually this means the macro was only invoked conditionally." "$LINENO" 5 19860fi 19861if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19862 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 19863Usually this means the macro was only invoked conditionally." "$LINENO" 5 19864fi 19865 19866: ${CONFIG_STATUS=./config.status} 19867ac_write_fail=0 19868ac_clean_files_save=$ac_clean_files 19869ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19870{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19871$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19872as_write_fail=0 19873cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19874#! $SHELL 19875# Generated by $as_me. 19876# Run this file to recreate the current configuration. 19877# Compiler output produced by configure, useful for debugging 19878# configure, is in config.log if it exists. 19879 19880debug=false 19881ac_cs_recheck=false 19882ac_cs_silent=false 19883 19884SHELL=\${CONFIG_SHELL-$SHELL} 19885export SHELL 19886_ASEOF 19887cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19888## -------------------- ## 19889## M4sh Initialization. ## 19890## -------------------- ## 19891 19892# Be more Bourne compatible 19893DUALCASE=1; export DUALCASE # for MKS sh 19894if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19895 emulate sh 19896 NULLCMD=: 19897 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19898 # is contrary to our usage. Disable this feature. 19899 alias -g '${1+"$@"}'='"$@"' 19900 setopt NO_GLOB_SUBST 19901else 19902 case `(set -o) 2>/dev/null` in #( 19903 *posix*) : 19904 set -o posix ;; #( 19905 *) : 19906 ;; 19907esac 19908fi 19909 19910 19911as_nl=' 19912' 19913export as_nl 19914# Printing a long string crashes Solaris 7 /usr/bin/printf. 19915as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19916as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19917as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19918# Prefer a ksh shell builtin over an external printf program on Solaris, 19919# but without wasting forks for bash or zsh. 19920if test -z "$BASH_VERSION$ZSH_VERSION" \ 19921 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19922 as_echo='print -r --' 19923 as_echo_n='print -rn --' 19924elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19925 as_echo='printf %s\n' 19926 as_echo_n='printf %s' 19927else 19928 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19929 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19930 as_echo_n='/usr/ucb/echo -n' 19931 else 19932 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19933 as_echo_n_body='eval 19934 arg=$1; 19935 case $arg in #( 19936 *"$as_nl"*) 19937 expr "X$arg" : "X\\(.*\\)$as_nl"; 19938 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19939 esac; 19940 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19941 ' 19942 export as_echo_n_body 19943 as_echo_n='sh -c $as_echo_n_body as_echo' 19944 fi 19945 export as_echo_body 19946 as_echo='sh -c $as_echo_body as_echo' 19947fi 19948 19949# The user is always right. 19950if test "${PATH_SEPARATOR+set}" != set; then 19951 PATH_SEPARATOR=: 19952 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19953 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19954 PATH_SEPARATOR=';' 19955 } 19956fi 19957 19958 19959# IFS 19960# We need space, tab and new line, in precisely that order. Quoting is 19961# there to prevent editors from complaining about space-tab. 19962# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19963# splitting by setting IFS to empty value.) 19964IFS=" "" $as_nl" 19965 19966# Find who we are. Look in the path if we contain no directory separator. 19967case $0 in #(( 19968 *[\\/]* ) as_myself=$0 ;; 19969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19970for as_dir in $PATH 19971do 19972 IFS=$as_save_IFS 19973 test -z "$as_dir" && as_dir=. 19974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19975 done 19976IFS=$as_save_IFS 19977 19978 ;; 19979esac 19980# We did not find ourselves, most probably we were run as `sh COMMAND' 19981# in which case we are not to be found in the path. 19982if test "x$as_myself" = x; then 19983 as_myself=$0 19984fi 19985if test ! -f "$as_myself"; then 19986 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19987 exit 1 19988fi 19989 19990# Unset variables that we do not need and which cause bugs (e.g. in 19991# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19992# suppresses any "Segmentation fault" message there. '((' could 19993# trigger a bug in pdksh 5.2.14. 19994for as_var in BASH_ENV ENV MAIL MAILPATH 19995do eval test x\${$as_var+set} = xset \ 19996 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19997done 19998PS1='$ ' 19999PS2='> ' 20000PS4='+ ' 20001 20002# NLS nuisances. 20003LC_ALL=C 20004export LC_ALL 20005LANGUAGE=C 20006export LANGUAGE 20007 20008# CDPATH. 20009(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20010 20011 20012# as_fn_error ERROR [LINENO LOG_FD] 20013# --------------------------------- 20014# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20015# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20016# script with status $?, using 1 if that was 0. 20017as_fn_error () 20018{ 20019 as_status=$?; test $as_status -eq 0 && as_status=1 20020 if test "$3"; then 20021 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20022 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 20023 fi 20024 $as_echo "$as_me: error: $1" >&2 20025 as_fn_exit $as_status 20026} # as_fn_error 20027 20028 20029# as_fn_set_status STATUS 20030# ----------------------- 20031# Set $? to STATUS, without forking. 20032as_fn_set_status () 20033{ 20034 return $1 20035} # as_fn_set_status 20036 20037# as_fn_exit STATUS 20038# ----------------- 20039# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20040as_fn_exit () 20041{ 20042 set +e 20043 as_fn_set_status $1 20044 exit $1 20045} # as_fn_exit 20046 20047# as_fn_unset VAR 20048# --------------- 20049# Portably unset VAR. 20050as_fn_unset () 20051{ 20052 { eval $1=; unset $1;} 20053} 20054as_unset=as_fn_unset 20055# as_fn_append VAR VALUE 20056# ---------------------- 20057# Append the text in VALUE to the end of the definition contained in VAR. Take 20058# advantage of any shell optimizations that allow amortized linear growth over 20059# repeated appends, instead of the typical quadratic growth present in naive 20060# implementations. 20061if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20062 eval 'as_fn_append () 20063 { 20064 eval $1+=\$2 20065 }' 20066else 20067 as_fn_append () 20068 { 20069 eval $1=\$$1\$2 20070 } 20071fi # as_fn_append 20072 20073# as_fn_arith ARG... 20074# ------------------ 20075# Perform arithmetic evaluation on the ARGs, and store the result in the 20076# global $as_val. Take advantage of shells that can avoid forks. The arguments 20077# must be portable across $(()) and expr. 20078if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20079 eval 'as_fn_arith () 20080 { 20081 as_val=$(( $* )) 20082 }' 20083else 20084 as_fn_arith () 20085 { 20086 as_val=`expr "$@" || test $? -eq 1` 20087 } 20088fi # as_fn_arith 20089 20090 20091if expr a : '\(a\)' >/dev/null 2>&1 && 20092 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20093 as_expr=expr 20094else 20095 as_expr=false 20096fi 20097 20098if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20099 as_basename=basename 20100else 20101 as_basename=false 20102fi 20103 20104if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20105 as_dirname=dirname 20106else 20107 as_dirname=false 20108fi 20109 20110as_me=`$as_basename -- "$0" || 20111$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20112 X"$0" : 'X\(//\)$' \| \ 20113 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20114$as_echo X/"$0" | 20115 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20116 s//\1/ 20117 q 20118 } 20119 /^X\/\(\/\/\)$/{ 20120 s//\1/ 20121 q 20122 } 20123 /^X\/\(\/\).*/{ 20124 s//\1/ 20125 q 20126 } 20127 s/.*/./; q'` 20128 20129# Avoid depending upon Character Ranges. 20130as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20131as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20132as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20133as_cr_digits='0123456789' 20134as_cr_alnum=$as_cr_Letters$as_cr_digits 20135 20136ECHO_C= ECHO_N= ECHO_T= 20137case `echo -n x` in #((((( 20138-n*) 20139 case `echo 'xy\c'` in 20140 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20141 xy) ECHO_C='\c';; 20142 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20143 ECHO_T=' ';; 20144 esac;; 20145*) 20146 ECHO_N='-n';; 20147esac 20148 20149rm -f conf$$ conf$$.exe conf$$.file 20150if test -d conf$$.dir; then 20151 rm -f conf$$.dir/conf$$.file 20152else 20153 rm -f conf$$.dir 20154 mkdir conf$$.dir 2>/dev/null 20155fi 20156if (echo >conf$$.file) 2>/dev/null; then 20157 if ln -s conf$$.file conf$$ 2>/dev/null; then 20158 as_ln_s='ln -s' 20159 # ... but there are two gotchas: 20160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20162 # In both cases, we have to default to `cp -p'. 20163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20164 as_ln_s='cp -p' 20165 elif ln conf$$.file conf$$ 2>/dev/null; then 20166 as_ln_s=ln 20167 else 20168 as_ln_s='cp -p' 20169 fi 20170else 20171 as_ln_s='cp -p' 20172fi 20173rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20174rmdir conf$$.dir 2>/dev/null 20175 20176 20177# as_fn_mkdir_p 20178# ------------- 20179# Create "$as_dir" as a directory, including parents if necessary. 20180as_fn_mkdir_p () 20181{ 20182 20183 case $as_dir in #( 20184 -*) as_dir=./$as_dir;; 20185 esac 20186 test -d "$as_dir" || eval $as_mkdir_p || { 20187 as_dirs= 20188 while :; do 20189 case $as_dir in #( 20190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20191 *) as_qdir=$as_dir;; 20192 esac 20193 as_dirs="'$as_qdir' $as_dirs" 20194 as_dir=`$as_dirname -- "$as_dir" || 20195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20196 X"$as_dir" : 'X\(//\)[^/]' \| \ 20197 X"$as_dir" : 'X\(//\)$' \| \ 20198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20199$as_echo X"$as_dir" | 20200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20201 s//\1/ 20202 q 20203 } 20204 /^X\(\/\/\)[^/].*/{ 20205 s//\1/ 20206 q 20207 } 20208 /^X\(\/\/\)$/{ 20209 s//\1/ 20210 q 20211 } 20212 /^X\(\/\).*/{ 20213 s//\1/ 20214 q 20215 } 20216 s/.*/./; q'` 20217 test -d "$as_dir" && break 20218 done 20219 test -z "$as_dirs" || eval "mkdir $as_dirs" 20220 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 20221 20222 20223} # as_fn_mkdir_p 20224if mkdir -p . 2>/dev/null; then 20225 as_mkdir_p='mkdir -p "$as_dir"' 20226else 20227 test -d ./-p && rmdir ./-p 20228 as_mkdir_p=false 20229fi 20230 20231if test -x / >/dev/null 2>&1; then 20232 as_test_x='test -x' 20233else 20234 if ls -dL / >/dev/null 2>&1; then 20235 as_ls_L_option=L 20236 else 20237 as_ls_L_option= 20238 fi 20239 as_test_x=' 20240 eval sh -c '\'' 20241 if test -d "$1"; then 20242 test -d "$1/."; 20243 else 20244 case $1 in #( 20245 -*)set "./$1";; 20246 esac; 20247 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 20248 ???[sx]*):;;*)false;;esac;fi 20249 '\'' sh 20250 ' 20251fi 20252as_executable_p=$as_test_x 20253 20254# Sed expression to map a string onto a valid CPP name. 20255as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20256 20257# Sed expression to map a string onto a valid variable name. 20258as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20259 20260 20261exec 6>&1 20262## ----------------------------------- ## 20263## Main body of $CONFIG_STATUS script. ## 20264## ----------------------------------- ## 20265_ASEOF 20266test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20267 20268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20269# Save the log message, to keep $0 and so on meaningful, and to 20270# report actual input values of CONFIG_FILES etc. instead of their 20271# values after options handling. 20272ac_log=" 20273This file was extended by sqlite $as_me 3.6.22, which was 20274generated by GNU Autoconf 2.65. Invocation command line was 20275 20276 CONFIG_FILES = $CONFIG_FILES 20277 CONFIG_HEADERS = $CONFIG_HEADERS 20278 CONFIG_LINKS = $CONFIG_LINKS 20279 CONFIG_COMMANDS = $CONFIG_COMMANDS 20280 $ $0 $@ 20281 20282on `(hostname || uname -n) 2>/dev/null | sed 1q` 20283" 20284 20285_ACEOF 20286 20287case $ac_config_files in *" 20288"*) set x $ac_config_files; shift; ac_config_files=$*;; 20289esac 20290 20291 20292 20293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20294# Files that config.status was made for. 20295config_files="$ac_config_files" 20296config_commands="$ac_config_commands" 20297 20298_ACEOF 20299 20300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20301ac_cs_usage="\ 20302\`$as_me' instantiates files and other configuration actions 20303from templates according to the current configuration. Unless the files 20304and actions are specified as TAGs, all are instantiated by default. 20305 20306Usage: $0 [OPTION]... [TAG]... 20307 20308 -h, --help print this help, then exit 20309 -V, --version print version number and configuration settings, then exit 20310 --config print configuration, then exit 20311 -q, --quiet, --silent 20312 do not print progress messages 20313 -d, --debug don't remove temporary files 20314 --recheck update $as_me by reconfiguring in the same conditions 20315 --file=FILE[:TEMPLATE] 20316 instantiate the configuration file FILE 20317 20318Configuration files: 20319$config_files 20320 20321Configuration commands: 20322$config_commands 20323 20324Report bugs to <http://www.sqlite.org>." 20325 20326_ACEOF 20327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20328ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20329ac_cs_version="\\ 20330sqlite config.status 3.6.22 20331configured by $0, generated by GNU Autoconf 2.65, 20332 with options \\"\$ac_cs_config\\" 20333 20334Copyright (C) 2009 Free Software Foundation, Inc. 20335This config.status script is free software; the Free Software Foundation 20336gives unlimited permission to copy, distribute and modify it." 20337 20338ac_pwd='$ac_pwd' 20339srcdir='$srcdir' 20340INSTALL='$INSTALL' 20341AWK='$AWK' 20342test -n "\$AWK" || AWK=awk 20343_ACEOF 20344 20345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20346# The default lists apply if the user does not specify any file. 20347ac_need_defaults=: 20348while test $# != 0 20349do 20350 case $1 in 20351 --*=*) 20352 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20354 ac_shift=: 20355 ;; 20356 *) 20357 ac_option=$1 20358 ac_optarg=$2 20359 ac_shift=shift 20360 ;; 20361 esac 20362 20363 case $ac_option in 20364 # Handling of the options. 20365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20366 ac_cs_recheck=: ;; 20367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20368 $as_echo "$ac_cs_version"; exit ;; 20369 --config | --confi | --conf | --con | --co | --c ) 20370 $as_echo "$ac_cs_config"; exit ;; 20371 --debug | --debu | --deb | --de | --d | -d ) 20372 debug=: ;; 20373 --file | --fil | --fi | --f ) 20374 $ac_shift 20375 case $ac_optarg in 20376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20377 esac 20378 as_fn_append CONFIG_FILES " '$ac_optarg'" 20379 ac_need_defaults=false;; 20380 --he | --h | --help | --hel | -h ) 20381 $as_echo "$ac_cs_usage"; exit ;; 20382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20383 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20384 ac_cs_silent=: ;; 20385 20386 # This is an error. 20387 -*) as_fn_error "unrecognized option: \`$1' 20388Try \`$0 --help' for more information." ;; 20389 20390 *) as_fn_append ac_config_targets " $1" 20391 ac_need_defaults=false ;; 20392 20393 esac 20394 shift 20395done 20396 20397ac_configure_extra_args= 20398 20399if $ac_cs_silent; then 20400 exec 6>/dev/null 20401 ac_configure_extra_args="$ac_configure_extra_args --silent" 20402fi 20403 20404_ACEOF 20405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20406if \$ac_cs_recheck; then 20407 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20408 shift 20409 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20410 CONFIG_SHELL='$SHELL' 20411 export CONFIG_SHELL 20412 exec "\$@" 20413fi 20414 20415_ACEOF 20416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20417exec 5>>config.log 20418{ 20419 echo 20420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20421## Running $as_me. ## 20422_ASBOX 20423 $as_echo "$ac_log" 20424} >&5 20425 20426_ACEOF 20427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20428# 20429# INIT-COMMANDS 20430# 20431AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20432 20433_ACEOF 20434 20435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20436 20437# Handling of arguments. 20438for ac_config_target in $ac_config_targets 20439do 20440 case $ac_config_target in 20441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20442 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20443 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 20444 20445 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20446 esac 20447done 20448 20449 20450# If the user did not use the arguments to specify the items to instantiate, 20451# then the envvar interface is used. Set only those that are not. 20452# We use the long form for the default assignment because of an extremely 20453# bizarre bug on SunOS 4.1.3. 20454if $ac_need_defaults; then 20455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20457fi 20458 20459# Have a temporary directory for convenience. Make it in the build tree 20460# simply because there is no reason against having it here, and in addition, 20461# creating and moving files from /tmp can sometimes cause problems. 20462# Hook for its removal unless debugging. 20463# Note that there is a small window in which the directory will not be cleaned: 20464# after its creation but before its name has been assigned to `$tmp'. 20465$debug || 20466{ 20467 tmp= 20468 trap 'exit_status=$? 20469 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20470' 0 20471 trap 'as_fn_exit 1' 1 2 13 15 20472} 20473# Create a (secure) tmp directory for tmp files. 20474 20475{ 20476 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20477 test -n "$tmp" && test -d "$tmp" 20478} || 20479{ 20480 tmp=./conf$$-$RANDOM 20481 (umask 077 && mkdir "$tmp") 20482} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 20483 20484# Set up the scripts for CONFIG_FILES section. 20485# No need to generate them if there are no CONFIG_FILES. 20486# This happens for instance with `./config.status config.h'. 20487if test -n "$CONFIG_FILES"; then 20488 20489 20490ac_cr=`echo X | tr X '\015'` 20491# On cygwin, bash can eat \r inside `` if the user requested igncr. 20492# But we know of no other shell where ac_cr would be empty at this 20493# point, so we can use a bashism as a fallback. 20494if test "x$ac_cr" = x; then 20495 eval ac_cr=\$\'\\r\' 20496fi 20497ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20498if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20499 ac_cs_awk_cr='\r' 20500else 20501 ac_cs_awk_cr=$ac_cr 20502fi 20503 20504echo 'BEGIN {' >"$tmp/subs1.awk" && 20505_ACEOF 20506 20507 20508{ 20509 echo "cat >conf$$subs.awk <<_ACEOF" && 20510 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20511 echo "_ACEOF" 20512} >conf$$subs.sh || 20513 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 20514ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 20515ac_delim='%!_!# ' 20516for ac_last_try in false false false false false :; do 20517 . ./conf$$subs.sh || 20518 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 20519 20520 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20521 if test $ac_delim_n = $ac_delim_num; then 20522 break 20523 elif $ac_last_try; then 20524 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 20525 else 20526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20527 fi 20528done 20529rm -f conf$$subs.sh 20530 20531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20532cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 20533_ACEOF 20534sed -n ' 20535h 20536s/^/S["/; s/!.*/"]=/ 20537p 20538g 20539s/^[^!]*!// 20540:repl 20541t repl 20542s/'"$ac_delim"'$// 20543t delim 20544:nl 20545h 20546s/\(.\{148\}\)..*/\1/ 20547t more1 20548s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20549p 20550n 20551b repl 20552:more1 20553s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20554p 20555g 20556s/.\{148\}// 20557t nl 20558:delim 20559h 20560s/\(.\{148\}\)..*/\1/ 20561t more2 20562s/["\\]/\\&/g; s/^/"/; s/$/"/ 20563p 20564b 20565:more2 20566s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20567p 20568g 20569s/.\{148\}// 20570t delim 20571' <conf$$subs.awk | sed ' 20572/^[^""]/{ 20573 N 20574 s/\n// 20575} 20576' >>$CONFIG_STATUS || ac_write_fail=1 20577rm -f conf$$subs.awk 20578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20579_ACAWK 20580cat >>"\$tmp/subs1.awk" <<_ACAWK && 20581 for (key in S) S_is_set[key] = 1 20582 FS = "" 20583 20584} 20585{ 20586 line = $ 0 20587 nfields = split(line, field, "@") 20588 substed = 0 20589 len = length(field[1]) 20590 for (i = 2; i < nfields; i++) { 20591 key = field[i] 20592 keylen = length(key) 20593 if (S_is_set[key]) { 20594 value = S[key] 20595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20596 len += length(value) + length(field[++i]) 20597 substed = 1 20598 } else 20599 len += 1 + keylen 20600 } 20601 20602 print line 20603} 20604 20605_ACAWK 20606_ACEOF 20607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20608if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20609 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20610else 20611 cat 20612fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 20613 || as_fn_error "could not setup config files machinery" "$LINENO" 5 20614_ACEOF 20615 20616# VPATH may cause trouble with some makes, so we remove $(srcdir), 20617# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20618# trailing colons and then remove the whole line if VPATH becomes empty 20619# (actually we leave an empty line to preserve line numbers). 20620if test "x$srcdir" = x.; then 20621 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20622s/:*\$(srcdir):*/:/ 20623s/:*\${srcdir}:*/:/ 20624s/:*@srcdir@:*/:/ 20625s/^\([^=]*=[ ]*\):*/\1/ 20626s/:*$// 20627s/^[^=]*=[ ]*$// 20628}' 20629fi 20630 20631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20632fi # test -n "$CONFIG_FILES" 20633 20634 20635eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 20636shift 20637for ac_tag 20638do 20639 case $ac_tag in 20640 :[FHLC]) ac_mode=$ac_tag; continue;; 20641 esac 20642 case $ac_mode$ac_tag in 20643 :[FHL]*:*);; 20644 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 20645 :[FH]-) ac_tag=-:-;; 20646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20647 esac 20648 ac_save_IFS=$IFS 20649 IFS=: 20650 set x $ac_tag 20651 IFS=$ac_save_IFS 20652 shift 20653 ac_file=$1 20654 shift 20655 20656 case $ac_mode in 20657 :L) ac_source=$1;; 20658 :[FH]) 20659 ac_file_inputs= 20660 for ac_f 20661 do 20662 case $ac_f in 20663 -) ac_f="$tmp/stdin";; 20664 *) # Look for the file first in the build tree, then in the source tree 20665 # (if the path is not absolute). The absolute path cannot be DOS-style, 20666 # because $ac_f cannot contain `:'. 20667 test -f "$ac_f" || 20668 case $ac_f in 20669 [\\/$]*) false;; 20670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20671 esac || 20672 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20673 esac 20674 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20675 as_fn_append ac_file_inputs " '$ac_f'" 20676 done 20677 20678 # Let's still pretend it is `configure' which instantiates (i.e., don't 20679 # use $as_me), people would be surprised to read: 20680 # /* config.h. Generated by config.status. */ 20681 configure_input='Generated from '` 20682 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20683 `' by configure.' 20684 if test x"$ac_file" != x-; then 20685 configure_input="$ac_file. $configure_input" 20686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20687$as_echo "$as_me: creating $ac_file" >&6;} 20688 fi 20689 # Neutralize special characters interpreted by sed in replacement strings. 20690 case $configure_input in #( 20691 *\&* | *\|* | *\\* ) 20692 ac_sed_conf_input=`$as_echo "$configure_input" | 20693 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20694 *) ac_sed_conf_input=$configure_input;; 20695 esac 20696 20697 case $ac_tag in 20698 *:-:* | *:-) cat >"$tmp/stdin" \ 20699 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 20700 esac 20701 ;; 20702 esac 20703 20704 ac_dir=`$as_dirname -- "$ac_file" || 20705$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20706 X"$ac_file" : 'X\(//\)[^/]' \| \ 20707 X"$ac_file" : 'X\(//\)$' \| \ 20708 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20709$as_echo X"$ac_file" | 20710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20711 s//\1/ 20712 q 20713 } 20714 /^X\(\/\/\)[^/].*/{ 20715 s//\1/ 20716 q 20717 } 20718 /^X\(\/\/\)$/{ 20719 s//\1/ 20720 q 20721 } 20722 /^X\(\/\).*/{ 20723 s//\1/ 20724 q 20725 } 20726 s/.*/./; q'` 20727 as_dir="$ac_dir"; as_fn_mkdir_p 20728 ac_builddir=. 20729 20730case "$ac_dir" in 20731.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20732*) 20733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20734 # A ".." for each directory in $ac_dir_suffix. 20735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20736 case $ac_top_builddir_sub in 20737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20739 esac ;; 20740esac 20741ac_abs_top_builddir=$ac_pwd 20742ac_abs_builddir=$ac_pwd$ac_dir_suffix 20743# for backward compatibility: 20744ac_top_builddir=$ac_top_build_prefix 20745 20746case $srcdir in 20747 .) # We are building in place. 20748 ac_srcdir=. 20749 ac_top_srcdir=$ac_top_builddir_sub 20750 ac_abs_top_srcdir=$ac_pwd ;; 20751 [\\/]* | ?:[\\/]* ) # Absolute name. 20752 ac_srcdir=$srcdir$ac_dir_suffix; 20753 ac_top_srcdir=$srcdir 20754 ac_abs_top_srcdir=$srcdir ;; 20755 *) # Relative name. 20756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20757 ac_top_srcdir=$ac_top_build_prefix$srcdir 20758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20759esac 20760ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20761 20762 20763 case $ac_mode in 20764 :F) 20765 # 20766 # CONFIG_FILE 20767 # 20768 20769 case $INSTALL in 20770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20771 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20772 esac 20773_ACEOF 20774 20775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20776# If the template does not know about datarootdir, expand it. 20777# FIXME: This hack should be removed a few years after 2.60. 20778ac_datarootdir_hack=; ac_datarootdir_seen= 20779ac_sed_dataroot=' 20780/datarootdir/ { 20781 p 20782 q 20783} 20784/@datadir@/p 20785/@docdir@/p 20786/@infodir@/p 20787/@localedir@/p 20788/@mandir@/p' 20789case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20790*datarootdir*) ac_datarootdir_seen=yes;; 20791*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20793$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20794_ACEOF 20795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20796 ac_datarootdir_hack=' 20797 s&@datadir@&$datadir&g 20798 s&@docdir@&$docdir&g 20799 s&@infodir@&$infodir&g 20800 s&@localedir@&$localedir&g 20801 s&@mandir@&$mandir&g 20802 s&\\\${datarootdir}&$datarootdir&g' ;; 20803esac 20804_ACEOF 20805 20806# Neutralize VPATH when `$srcdir' = `.'. 20807# Shell code in configure.ac might set extrasub. 20808# FIXME: do we really want to maintain this feature? 20809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20810ac_sed_extra="$ac_vpsub 20811$extrasub 20812_ACEOF 20813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20814:t 20815/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20816s|@configure_input@|$ac_sed_conf_input|;t t 20817s&@top_builddir@&$ac_top_builddir_sub&;t t 20818s&@top_build_prefix@&$ac_top_build_prefix&;t t 20819s&@srcdir@&$ac_srcdir&;t t 20820s&@abs_srcdir@&$ac_abs_srcdir&;t t 20821s&@top_srcdir@&$ac_top_srcdir&;t t 20822s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20823s&@builddir@&$ac_builddir&;t t 20824s&@abs_builddir@&$ac_abs_builddir&;t t 20825s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20826s&@INSTALL@&$ac_INSTALL&;t t 20827$ac_datarootdir_hack 20828" 20829eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 20830 || as_fn_error "could not create $ac_file" "$LINENO" 5 20831 20832test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20833 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20836which seems to be undefined. Please make sure it is defined." >&5 20837$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20838which seems to be undefined. Please make sure it is defined." >&2;} 20839 20840 rm -f "$tmp/stdin" 20841 case $ac_file in 20842 -) cat "$tmp/out" && rm -f "$tmp/out";; 20843 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 20844 esac \ 20845 || as_fn_error "could not create $ac_file" "$LINENO" 5 20846 ;; 20847 20848 20849 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20850$as_echo "$as_me: executing $ac_file commands" >&6;} 20851 ;; 20852 esac 20853 20854 20855 case $ac_file$ac_mode in 20856 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20857 # Strip MF so we end up with the name of the file. 20858 mf=`echo "$mf" | sed -e 's/:.*$//'` 20859 # Check whether this is an Automake generated Makefile or not. 20860 # We used to match only the files named `Makefile.in', but 20861 # some people rename them; so instead we look at the file content. 20862 # Grep'ing the first line is not enough: some people post-process 20863 # each Makefile.in and add a new line on top of each file to say so. 20864 # So let's grep whole file. 20865 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 20866 dirpart=`$as_dirname -- "$mf" || 20867$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20868 X"$mf" : 'X\(//\)[^/]' \| \ 20869 X"$mf" : 'X\(//\)$' \| \ 20870 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20871$as_echo X"$mf" | 20872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20873 s//\1/ 20874 q 20875 } 20876 /^X\(\/\/\)[^/].*/{ 20877 s//\1/ 20878 q 20879 } 20880 /^X\(\/\/\)$/{ 20881 s//\1/ 20882 q 20883 } 20884 /^X\(\/\).*/{ 20885 s//\1/ 20886 q 20887 } 20888 s/.*/./; q'` 20889 else 20890 continue 20891 fi 20892 # Extract the definition of DEPDIR, am__include, and am__quote 20893 # from the Makefile without running `make'. 20894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20895 test -z "$DEPDIR" && continue 20896 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20897 test -z "am__include" && continue 20898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20899 # When using ansi2knr, U may be empty or an underscore; expand it 20900 U=`sed -n 's/^U = //p' < "$mf"` 20901 # Find all dependency output files, they are included files with 20902 # $(DEPDIR) in their names. We invoke sed twice because it is the 20903 # simplest approach to changing $(DEPDIR) to its actual value in the 20904 # expansion. 20905 for file in `sed -n " 20906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20908 # Make sure the directory exists. 20909 test -f "$dirpart/$file" && continue 20910 fdir=`$as_dirname -- "$file" || 20911$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20912 X"$file" : 'X\(//\)[^/]' \| \ 20913 X"$file" : 'X\(//\)$' \| \ 20914 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20915$as_echo X"$file" | 20916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20917 s//\1/ 20918 q 20919 } 20920 /^X\(\/\/\)[^/].*/{ 20921 s//\1/ 20922 q 20923 } 20924 /^X\(\/\/\)$/{ 20925 s//\1/ 20926 q 20927 } 20928 /^X\(\/\).*/{ 20929 s//\1/ 20930 q 20931 } 20932 s/.*/./; q'` 20933 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20934 # echo "creating $dirpart/$file" 20935 echo '# dummy' > "$dirpart/$file" 20936 done 20937done 20938 ;; 20939 20940 esac 20941done # for ac_tag 20942 20943 20944as_fn_exit 0 20945_ACEOF 20946ac_clean_files=$ac_clean_files_save 20947 20948test $ac_write_fail = 0 || 20949 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 20950 20951 20952# configure is writing to config.log, and then calls config.status. 20953# config.status does its own redirection, appending to config.log. 20954# Unfortunately, on DOS this fails, as config.log is still kept open 20955# by configure, so config.status won't be able to write to it; its 20956# output is simply discarded. So we exec the FD to /dev/null, 20957# effectively closing config.log, so it can be properly (re)opened and 20958# appended to by config.status. When coming back to configure, we 20959# need to make the FD available again. 20960if test "$no_create" != yes; then 20961 ac_cs_success=: 20962 ac_config_status_args= 20963 test "$silent" = yes && 20964 ac_config_status_args="$ac_config_status_args --quiet" 20965 exec 5>/dev/null 20966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20967 exec 5>>config.log 20968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20969 # would make configure fail if this is the last instruction. 20970 $ac_cs_success || as_fn_exit $? 20971fi 20972if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20974$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20975fi 20976 20977