1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for libtool 1.5.20. 4# 5# Report bugs to <bug-libtool@gnu.org>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string=`eval $cmd`) 2>/dev/null && 291 echo_test_string=`eval $cmd` && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400tagnames=${tagnames+${tagnames},}GCJ 401 402# Name of the host. 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 404# so uname gets run too. 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 406 407exec 6>&1 408 409# 410# Initializations. 411# 412ac_default_prefix=/usr/local 413ac_config_libobj_dir=. 414cross_compiling=no 415subdirs= 416MFLAGS= 417MAKEFLAGS= 418SHELL=${CONFIG_SHELL-/bin/sh} 419 420# Maximum number of lines to put in a shell here document. 421# This variable seems obsolete. It should probably be removed, and 422# only ac_max_sed_lines should be used. 423: ${ac_max_here_lines=38} 424 425# Identity of this package. 426PACKAGE_NAME='libtool' 427PACKAGE_TARNAME='libtool' 428PACKAGE_VERSION='1.5.20' 429PACKAGE_STRING='libtool 1.5.20' 430PACKAGE_BUGREPORT='bug-libtool@gnu.org' 431 432ac_unique_file="ltmain.in" 433ac_subdirs_all="$ac_subdirs_all libltdl" 434# Factoring default headers for most tests. 435ac_includes_default="\ 436#include <stdio.h> 437#if HAVE_SYS_TYPES_H 438# include <sys/types.h> 439#endif 440#if HAVE_SYS_STAT_H 441# include <sys/stat.h> 442#endif 443#if STDC_HEADERS 444# include <stdlib.h> 445# include <stddef.h> 446#else 447# if HAVE_STDLIB_H 448# include <stdlib.h> 449# endif 450#endif 451#if HAVE_STRING_H 452# if !STDC_HEADERS && HAVE_MEMORY_H 453# include <memory.h> 454# endif 455# include <string.h> 456#endif 457#if HAVE_STRINGS_H 458# include <strings.h> 459#endif 460#if HAVE_INTTYPES_H 461# include <inttypes.h> 462#else 463# if HAVE_STDINT_H 464# include <stdint.h> 465# endif 466#endif 467#if HAVE_UNISTD_H 468# include <unistd.h> 469#endif" 470 471ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TIMESTAMP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar pkgdatadir aclocaldir subdirs CONF_SUBDIRS ACINCLUDE_M4_LIST DIST_MAKEFILE_LIST CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LD NM LN_S CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE HAVE_CXX_TRUE HAVE_CXX_FALSE F77 FFLAGS ac_ct_F77 HAVE_F77_TRUE HAVE_F77_FALSE GCJ ac_ct_GCJ GCJFLAGS HAVE_GCJ_TRUE HAVE_GCJ_FALSE RC ac_ct_RC HAVE_RC_TRUE HAVE_RC_FALSE ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP LIBTOOL LIBOBJS LTLIBOBJS' 472ac_subst_files='' 473 474# Initialize some variables set by options. 475ac_init_help= 476ac_init_version=false 477# The variables have the same names as the options, with 478# dashes changed to underlines. 479cache_file=/dev/null 480exec_prefix=NONE 481no_create= 482no_recursion= 483prefix=NONE 484program_prefix=NONE 485program_suffix=NONE 486program_transform_name=s,x,x, 487silent= 488site= 489srcdir= 490verbose= 491x_includes=NONE 492x_libraries=NONE 493 494# Installation directory options. 495# These are left unexpanded so users can "make install exec_prefix=/foo" 496# and all the variables that are supposed to be based on exec_prefix 497# by default will actually change. 498# Use braces instead of parens because sh, perl, etc. also accept them. 499bindir='${exec_prefix}/bin' 500sbindir='${exec_prefix}/sbin' 501libexecdir='${exec_prefix}/libexec' 502datadir='${prefix}/share' 503sysconfdir='${prefix}/etc' 504sharedstatedir='${prefix}/com' 505localstatedir='${prefix}/var' 506libdir='${exec_prefix}/lib' 507includedir='${prefix}/include' 508oldincludedir='/usr/include' 509infodir='${prefix}/info' 510mandir='${prefix}/man' 511 512ac_prev= 513for ac_option 514do 515 # If the previous option needs an argument, assign it. 516 if test -n "$ac_prev"; then 517 eval "$ac_prev=\$ac_option" 518 ac_prev= 519 continue 520 fi 521 522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 523 524 # Accept the important Cygnus configure options, so we can diagnose typos. 525 526 case $ac_option in 527 528 -bindir | --bindir | --bindi | --bind | --bin | --bi) 529 ac_prev=bindir ;; 530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 531 bindir=$ac_optarg ;; 532 533 -build | --build | --buil | --bui | --bu) 534 ac_prev=build_alias ;; 535 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 536 build_alias=$ac_optarg ;; 537 538 -cache-file | --cache-file | --cache-fil | --cache-fi \ 539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 540 ac_prev=cache_file ;; 541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 543 cache_file=$ac_optarg ;; 544 545 --config-cache | -C) 546 cache_file=config.cache ;; 547 548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 549 ac_prev=datadir ;; 550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 551 | --da=*) 552 datadir=$ac_optarg ;; 553 554 -disable-* | --disable-*) 555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 556 # Reject names that are not valid shell variable names. 557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 559 { (exit 1); exit 1; }; } 560 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 561 eval "enable_$ac_feature=no" ;; 562 563 -enable-* | --enable-*) 564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 565 # Reject names that are not valid shell variable names. 566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 568 { (exit 1); exit 1; }; } 569 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 570 case $ac_option in 571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 572 *) ac_optarg=yes ;; 573 esac 574 eval "enable_$ac_feature='$ac_optarg'" ;; 575 576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 578 | --exec | --exe | --ex) 579 ac_prev=exec_prefix ;; 580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 582 | --exec=* | --exe=* | --ex=*) 583 exec_prefix=$ac_optarg ;; 584 585 -gas | --gas | --ga | --g) 586 # Obsolete; use --with-gas. 587 with_gas=yes ;; 588 589 -help | --help | --hel | --he | -h) 590 ac_init_help=long ;; 591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 592 ac_init_help=recursive ;; 593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 594 ac_init_help=short ;; 595 596 -host | --host | --hos | --ho) 597 ac_prev=host_alias ;; 598 -host=* | --host=* | --hos=* | --ho=*) 599 host_alias=$ac_optarg ;; 600 601 -includedir | --includedir | --includedi | --included | --include \ 602 | --includ | --inclu | --incl | --inc) 603 ac_prev=includedir ;; 604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 605 | --includ=* | --inclu=* | --incl=* | --inc=*) 606 includedir=$ac_optarg ;; 607 608 -infodir | --infodir | --infodi | --infod | --info | --inf) 609 ac_prev=infodir ;; 610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 611 infodir=$ac_optarg ;; 612 613 -libdir | --libdir | --libdi | --libd) 614 ac_prev=libdir ;; 615 -libdir=* | --libdir=* | --libdi=* | --libd=*) 616 libdir=$ac_optarg ;; 617 618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 619 | --libexe | --libex | --libe) 620 ac_prev=libexecdir ;; 621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 622 | --libexe=* | --libex=* | --libe=*) 623 libexecdir=$ac_optarg ;; 624 625 -localstatedir | --localstatedir | --localstatedi | --localstated \ 626 | --localstate | --localstat | --localsta | --localst \ 627 | --locals | --local | --loca | --loc | --lo) 628 ac_prev=localstatedir ;; 629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 632 localstatedir=$ac_optarg ;; 633 634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 635 ac_prev=mandir ;; 636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 637 mandir=$ac_optarg ;; 638 639 -nfp | --nfp | --nf) 640 # Obsolete; use --without-fp. 641 with_fp=no ;; 642 643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 644 | --no-cr | --no-c | -n) 645 no_create=yes ;; 646 647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 649 no_recursion=yes ;; 650 651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 653 | --oldin | --oldi | --old | --ol | --o) 654 ac_prev=oldincludedir ;; 655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 658 oldincludedir=$ac_optarg ;; 659 660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 661 ac_prev=prefix ;; 662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 663 prefix=$ac_optarg ;; 664 665 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 666 | --program-pre | --program-pr | --program-p) 667 ac_prev=program_prefix ;; 668 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 670 program_prefix=$ac_optarg ;; 671 672 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 673 | --program-suf | --program-su | --program-s) 674 ac_prev=program_suffix ;; 675 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 677 program_suffix=$ac_optarg ;; 678 679 -program-transform-name | --program-transform-name \ 680 | --program-transform-nam | --program-transform-na \ 681 | --program-transform-n | --program-transform- \ 682 | --program-transform | --program-transfor \ 683 | --program-transfo | --program-transf \ 684 | --program-trans | --program-tran \ 685 | --progr-tra | --program-tr | --program-t) 686 ac_prev=program_transform_name ;; 687 -program-transform-name=* | --program-transform-name=* \ 688 | --program-transform-nam=* | --program-transform-na=* \ 689 | --program-transform-n=* | --program-transform-=* \ 690 | --program-transform=* | --program-transfor=* \ 691 | --program-transfo=* | --program-transf=* \ 692 | --program-trans=* | --program-tran=* \ 693 | --progr-tra=* | --program-tr=* | --program-t=*) 694 program_transform_name=$ac_optarg ;; 695 696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 697 | -silent | --silent | --silen | --sile | --sil) 698 silent=yes ;; 699 700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 701 ac_prev=sbindir ;; 702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 703 | --sbi=* | --sb=*) 704 sbindir=$ac_optarg ;; 705 706 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 708 | --sharedst | --shareds | --shared | --share | --shar \ 709 | --sha | --sh) 710 ac_prev=sharedstatedir ;; 711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 714 | --sha=* | --sh=*) 715 sharedstatedir=$ac_optarg ;; 716 717 -site | --site | --sit) 718 ac_prev=site ;; 719 -site=* | --site=* | --sit=*) 720 site=$ac_optarg ;; 721 722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 723 ac_prev=srcdir ;; 724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 725 srcdir=$ac_optarg ;; 726 727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 728 | --syscon | --sysco | --sysc | --sys | --sy) 729 ac_prev=sysconfdir ;; 730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 732 sysconfdir=$ac_optarg ;; 733 734 -target | --target | --targe | --targ | --tar | --ta | --t) 735 ac_prev=target_alias ;; 736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 737 target_alias=$ac_optarg ;; 738 739 -v | -verbose | --verbose | --verbos | --verbo | --verb) 740 verbose=yes ;; 741 742 -version | --version | --versio | --versi | --vers | -V) 743 ac_init_version=: ;; 744 745 -with-* | --with-*) 746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 747 # Reject names that are not valid shell variable names. 748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 749 { echo "$as_me: error: invalid package name: $ac_package" >&2 750 { (exit 1); exit 1; }; } 751 ac_package=`echo $ac_package| sed 's/-/_/g'` 752 case $ac_option in 753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 754 *) ac_optarg=yes ;; 755 esac 756 eval "with_$ac_package='$ac_optarg'" ;; 757 758 -without-* | --without-*) 759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 760 # Reject names that are not valid shell variable names. 761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 762 { echo "$as_me: error: invalid package name: $ac_package" >&2 763 { (exit 1); exit 1; }; } 764 ac_package=`echo $ac_package | sed 's/-/_/g'` 765 eval "with_$ac_package=no" ;; 766 767 --x) 768 # Obsolete; use --with-x. 769 with_x=yes ;; 770 771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 772 | --x-incl | --x-inc | --x-in | --x-i) 773 ac_prev=x_includes ;; 774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 776 x_includes=$ac_optarg ;; 777 778 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 780 ac_prev=x_libraries ;; 781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 783 x_libraries=$ac_optarg ;; 784 785 -*) { echo "$as_me: error: unrecognized option: $ac_option 786Try \`$0 --help' for more information." >&2 787 { (exit 1); exit 1; }; } 788 ;; 789 790 *=*) 791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 792 # Reject names that are not valid shell variable names. 793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 795 { (exit 1); exit 1; }; } 796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 797 eval "$ac_envvar='$ac_optarg'" 798 export $ac_envvar ;; 799 800 *) 801 # FIXME: should be removed in autoconf 3.0. 802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 806 ;; 807 808 esac 809done 810 811if test -n "$ac_prev"; then 812 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 813 { echo "$as_me: error: missing argument to $ac_option" >&2 814 { (exit 1); exit 1; }; } 815fi 816 817# Be sure to have absolute paths. 818for ac_var in exec_prefix prefix 819do 820 eval ac_val=$`echo $ac_var` 821 case $ac_val in 822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 824 { (exit 1); exit 1; }; };; 825 esac 826done 827 828# Be sure to have absolute paths. 829for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 830 localstatedir libdir includedir oldincludedir infodir mandir 831do 832 eval ac_val=$`echo $ac_var` 833 case $ac_val in 834 [\\/$]* | ?:[\\/]* ) ;; 835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 836 { (exit 1); exit 1; }; };; 837 esac 838done 839 840# There might be people who depend on the old broken behavior: `$host' 841# used to hold the argument of --host etc. 842# FIXME: To remove some day. 843build=$build_alias 844host=$host_alias 845target=$target_alias 846 847# FIXME: To remove some day. 848if test "x$host_alias" != x; then 849 if test "x$build_alias" = x; then 850 cross_compiling=maybe 851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 852 If a cross compiler is detected then cross compile mode will be used." >&2 853 elif test "x$build_alias" != "x$host_alias"; then 854 cross_compiling=yes 855 fi 856fi 857 858ac_tool_prefix= 859test -n "$host_alias" && ac_tool_prefix=$host_alias- 860 861test "$silent" = yes && exec 6>/dev/null 862 863 864# Find the source files, if location was not specified. 865if test -z "$srcdir"; then 866 ac_srcdir_defaulted=yes 867 # Try the directory containing this script, then its parent. 868 ac_confdir=`(dirname "$0") 2>/dev/null || 869$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 870 X"$0" : 'X\(//\)[^/]' \| \ 871 X"$0" : 'X\(//\)$' \| \ 872 X"$0" : 'X\(/\)' \| \ 873 . : '\(.\)' 2>/dev/null || 874echo X"$0" | 875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 876 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 877 /^X\(\/\/\)$/{ s//\1/; q; } 878 /^X\(\/\).*/{ s//\1/; q; } 879 s/.*/./; q'` 880 srcdir=$ac_confdir 881 if test ! -r $srcdir/$ac_unique_file; then 882 srcdir=.. 883 fi 884else 885 ac_srcdir_defaulted=no 886fi 887if test ! -r $srcdir/$ac_unique_file; then 888 if test "$ac_srcdir_defaulted" = yes; then 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 890 { (exit 1); exit 1; }; } 891 else 892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 893 { (exit 1); exit 1; }; } 894 fi 895fi 896(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 898 { (exit 1); exit 1; }; } 899srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 900ac_env_build_alias_set=${build_alias+set} 901ac_env_build_alias_value=$build_alias 902ac_cv_env_build_alias_set=${build_alias+set} 903ac_cv_env_build_alias_value=$build_alias 904ac_env_host_alias_set=${host_alias+set} 905ac_env_host_alias_value=$host_alias 906ac_cv_env_host_alias_set=${host_alias+set} 907ac_cv_env_host_alias_value=$host_alias 908ac_env_target_alias_set=${target_alias+set} 909ac_env_target_alias_value=$target_alias 910ac_cv_env_target_alias_set=${target_alias+set} 911ac_cv_env_target_alias_value=$target_alias 912ac_env_CC_set=${CC+set} 913ac_env_CC_value=$CC 914ac_cv_env_CC_set=${CC+set} 915ac_cv_env_CC_value=$CC 916ac_env_CFLAGS_set=${CFLAGS+set} 917ac_env_CFLAGS_value=$CFLAGS 918ac_cv_env_CFLAGS_set=${CFLAGS+set} 919ac_cv_env_CFLAGS_value=$CFLAGS 920ac_env_LDFLAGS_set=${LDFLAGS+set} 921ac_env_LDFLAGS_value=$LDFLAGS 922ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 923ac_cv_env_LDFLAGS_value=$LDFLAGS 924ac_env_CPPFLAGS_set=${CPPFLAGS+set} 925ac_env_CPPFLAGS_value=$CPPFLAGS 926ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 927ac_cv_env_CPPFLAGS_value=$CPPFLAGS 928ac_env_CXX_set=${CXX+set} 929ac_env_CXX_value=$CXX 930ac_cv_env_CXX_set=${CXX+set} 931ac_cv_env_CXX_value=$CXX 932ac_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_env_CXXFLAGS_value=$CXXFLAGS 934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 935ac_cv_env_CXXFLAGS_value=$CXXFLAGS 936ac_env_F77_set=${F77+set} 937ac_env_F77_value=$F77 938ac_cv_env_F77_set=${F77+set} 939ac_cv_env_F77_value=$F77 940ac_env_FFLAGS_set=${FFLAGS+set} 941ac_env_FFLAGS_value=$FFLAGS 942ac_cv_env_FFLAGS_set=${FFLAGS+set} 943ac_cv_env_FFLAGS_value=$FFLAGS 944ac_env_CPP_set=${CPP+set} 945ac_env_CPP_value=$CPP 946ac_cv_env_CPP_set=${CPP+set} 947ac_cv_env_CPP_value=$CPP 948ac_env_CXXCPP_set=${CXXCPP+set} 949ac_env_CXXCPP_value=$CXXCPP 950ac_cv_env_CXXCPP_set=${CXXCPP+set} 951ac_cv_env_CXXCPP_value=$CXXCPP 952 953# 954# Report the --help message. 955# 956if test "$ac_init_help" = "long"; then 957 # Omit some internal or obsolete options to make the list less imposing. 958 # This message is too long to be a string in the A/UX 3.1 sh. 959 cat <<_ACEOF 960\`configure' configures libtool 1.5.20 to adapt to many kinds of systems. 961 962Usage: $0 [OPTION]... [VAR=VALUE]... 963 964To assign environment variables (e.g., CC, CFLAGS...), specify them as 965VAR=VALUE. See below for descriptions of some of the useful variables. 966 967Defaults for the options are specified in brackets. 968 969Configuration: 970 -h, --help display this help and exit 971 --help=short display options specific to this package 972 --help=recursive display the short help of all the included packages 973 -V, --version display version information and exit 974 -q, --quiet, --silent do not print \`checking...' messages 975 --cache-file=FILE cache test results in FILE [disabled] 976 -C, --config-cache alias for \`--cache-file=config.cache' 977 -n, --no-create do not create output files 978 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 979 980_ACEOF 981 982 cat <<_ACEOF 983Installation directories: 984 --prefix=PREFIX install architecture-independent files in PREFIX 985 [$ac_default_prefix] 986 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 987 [PREFIX] 988 989By default, \`make install' will install all the files in 990\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 991an installation prefix other than \`$ac_default_prefix' using \`--prefix', 992for instance \`--prefix=\$HOME'. 993 994For better control, use the options below. 995 996Fine tuning of the installation directories: 997 --bindir=DIR user executables [EPREFIX/bin] 998 --sbindir=DIR system admin executables [EPREFIX/sbin] 999 --libexecdir=DIR program executables [EPREFIX/libexec] 1000 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1001 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1002 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1003 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1004 --libdir=DIR object code libraries [EPREFIX/lib] 1005 --includedir=DIR C header files [PREFIX/include] 1006 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1007 --infodir=DIR info documentation [PREFIX/info] 1008 --mandir=DIR man documentation [PREFIX/man] 1009_ACEOF 1010 1011 cat <<\_ACEOF 1012 1013Program names: 1014 --program-prefix=PREFIX prepend PREFIX to installed program names 1015 --program-suffix=SUFFIX append SUFFIX to installed program names 1016 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1017 1018System types: 1019 --build=BUILD configure for building on BUILD [guessed] 1020 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1021_ACEOF 1022fi 1023 1024if test -n "$ac_init_help"; then 1025 case $ac_init_help in 1026 short | recursive ) echo "Configuration of libtool 1.5.20:";; 1027 esac 1028 cat <<\_ACEOF 1029 1030Optional Features: 1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1033 --disable-ltdl-install do not install libltdl 1034 --disable-dependency-tracking speeds up one-time build 1035 --enable-dependency-tracking do not reject slow dependency extractors 1036 --enable-shared[=PKGS] 1037 build shared libraries [default=yes] 1038 --enable-static[=PKGS] 1039 build static libraries [default=yes] 1040 --enable-fast-install[=PKGS] 1041 optimize for fast installation [default=yes] 1042 --disable-libtool-lock avoid locking (might break parallel builds) 1043 1044Optional Packages: 1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1048 --with-pic try to use only PIC/non-PIC objects [default=use 1049 both] 1050 --with-tags[=TAGS] 1051 include additional configurations [automatic] 1052 1053Some influential environment variables: 1054 CC C compiler command 1055 CFLAGS C compiler flags 1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1057 nonstandard directory <lib dir> 1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1059 headers in a nonstandard directory <include dir> 1060 CXX C++ compiler command 1061 CXXFLAGS C++ compiler flags 1062 F77 Fortran 77 compiler command 1063 FFLAGS Fortran 77 compiler flags 1064 CPP C preprocessor 1065 CXXCPP C++ preprocessor 1066 1067Use these variables to override the choices made by `configure' or to help 1068it to find libraries and programs with nonstandard names/locations. 1069 1070Report bugs to <bug-libtool@gnu.org>. 1071_ACEOF 1072fi 1073 1074if test "$ac_init_help" = "recursive"; then 1075 # If there are subdirs, report their specific --help. 1076 ac_popdir=`pwd` 1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1078 test -d $ac_dir || continue 1079 ac_builddir=. 1080 1081if test "$ac_dir" != .; then 1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1083 # A "../" for each directory in $ac_dir_suffix. 1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1085else 1086 ac_dir_suffix= ac_top_builddir= 1087fi 1088 1089case $srcdir in 1090 .) # No --srcdir option. We are building in place. 1091 ac_srcdir=. 1092 if test -z "$ac_top_builddir"; then 1093 ac_top_srcdir=. 1094 else 1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1096 fi ;; 1097 [\\/]* | ?:[\\/]* ) # Absolute path. 1098 ac_srcdir=$srcdir$ac_dir_suffix; 1099 ac_top_srcdir=$srcdir ;; 1100 *) # Relative path. 1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1102 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1103esac 1104 1105# Do not use `cd foo && pwd` to compute absolute paths, because 1106# the directories may not exist. 1107case `pwd` in 1108.) ac_abs_builddir="$ac_dir";; 1109*) 1110 case "$ac_dir" in 1111 .) ac_abs_builddir=`pwd`;; 1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1113 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1114 esac;; 1115esac 1116case $ac_abs_builddir in 1117.) ac_abs_top_builddir=${ac_top_builddir}.;; 1118*) 1119 case ${ac_top_builddir}. in 1120 .) ac_abs_top_builddir=$ac_abs_builddir;; 1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1123 esac;; 1124esac 1125case $ac_abs_builddir in 1126.) ac_abs_srcdir=$ac_srcdir;; 1127*) 1128 case $ac_srcdir in 1129 .) ac_abs_srcdir=$ac_abs_builddir;; 1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1132 esac;; 1133esac 1134case $ac_abs_builddir in 1135.) ac_abs_top_srcdir=$ac_top_srcdir;; 1136*) 1137 case $ac_top_srcdir in 1138 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1141 esac;; 1142esac 1143 1144 cd $ac_dir 1145 # Check for guested configure; otherwise get Cygnus style configure. 1146 if test -f $ac_srcdir/configure.gnu; then 1147 echo 1148 $SHELL $ac_srcdir/configure.gnu --help=recursive 1149 elif test -f $ac_srcdir/configure; then 1150 echo 1151 $SHELL $ac_srcdir/configure --help=recursive 1152 elif test -f $ac_srcdir/configure.ac || 1153 test -f $ac_srcdir/configure.in; then 1154 echo 1155 $ac_configure --help 1156 else 1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1158 fi 1159 cd $ac_popdir 1160 done 1161fi 1162 1163test -n "$ac_init_help" && exit 0 1164if $ac_init_version; then 1165 cat <<\_ACEOF 1166libtool configure 1.5.20 1167generated by GNU Autoconf 2.59 1168 1169Copyright (C) 2003 Free Software Foundation, Inc. 1170This configure script is free software; the Free Software Foundation 1171gives unlimited permission to copy, distribute and modify it. 1172_ACEOF 1173 exit 0 1174fi 1175exec 5>config.log 1176cat >&5 <<_ACEOF 1177This file contains any messages produced by compilers while 1178running configure, to aid debugging if configure makes a mistake. 1179 1180It was created by libtool $as_me 1.5.20, which was 1181generated by GNU Autoconf 2.59. Invocation command line was 1182 1183 $ $0 $@ 1184 1185_ACEOF 1186{ 1187cat <<_ASUNAME 1188## --------- ## 1189## Platform. ## 1190## --------- ## 1191 1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1193uname -m = `(uname -m) 2>/dev/null || echo unknown` 1194uname -r = `(uname -r) 2>/dev/null || echo unknown` 1195uname -s = `(uname -s) 2>/dev/null || echo unknown` 1196uname -v = `(uname -v) 2>/dev/null || echo unknown` 1197 1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1200 1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1208 1209_ASUNAME 1210 1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1212for as_dir in $PATH 1213do 1214 IFS=$as_save_IFS 1215 test -z "$as_dir" && as_dir=. 1216 echo "PATH: $as_dir" 1217done 1218 1219} >&5 1220 1221cat >&5 <<_ACEOF 1222 1223 1224## ----------- ## 1225## Core tests. ## 1226## ----------- ## 1227 1228_ACEOF 1229 1230 1231# Keep a trace of the command line. 1232# Strip out --no-create and --no-recursion so they do not pile up. 1233# Strip out --silent because we don't want to record it for future runs. 1234# Also quote any args containing shell meta-characters. 1235# Make two passes to allow for proper duplicate-argument suppression. 1236ac_configure_args= 1237ac_configure_args0= 1238ac_configure_args1= 1239ac_sep= 1240ac_must_keep_next=false 1241for ac_pass in 1 2 1242do 1243 for ac_arg 1244 do 1245 case $ac_arg in 1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1248 | -silent | --silent | --silen | --sile | --sil) 1249 continue ;; 1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1252 esac 1253 case $ac_pass in 1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1255 2) 1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1257 if test $ac_must_keep_next = true; then 1258 ac_must_keep_next=false # Got value, back to normal. 1259 else 1260 case $ac_arg in 1261 *=* | --config-cache | -C | -disable-* | --disable-* \ 1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1264 | -with-* | --with-* | -without-* | --without-* | --x) 1265 case "$ac_configure_args0 " in 1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1267 esac 1268 ;; 1269 -* ) ac_must_keep_next=true ;; 1270 esac 1271 fi 1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1273 # Get rid of the leading space. 1274 ac_sep=" " 1275 ;; 1276 esac 1277 done 1278done 1279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1281 1282# When interrupted or exit'd, cleanup temporary files, and complete 1283# config.log. We remove comments because anyway the quotes in there 1284# would cause problems or look ugly. 1285# WARNING: Be sure not to use single quotes in there, as some shells, 1286# such as our DU 5.0 friend, will then `close' the trap. 1287trap 'exit_status=$? 1288 # Save into config.log some information that might help in debugging. 1289 { 1290 echo 1291 1292 cat <<\_ASBOX 1293## ---------------- ## 1294## Cache variables. ## 1295## ---------------- ## 1296_ASBOX 1297 echo 1298 # The following way of writing the cache mishandles newlines in values, 1299{ 1300 (set) 2>&1 | 1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1302 *ac_space=\ *) 1303 sed -n \ 1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1306 ;; 1307 *) 1308 sed -n \ 1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1310 ;; 1311 esac; 1312} 1313 echo 1314 1315 cat <<\_ASBOX 1316## ----------------- ## 1317## Output variables. ## 1318## ----------------- ## 1319_ASBOX 1320 echo 1321 for ac_var in $ac_subst_vars 1322 do 1323 eval ac_val=$`echo $ac_var` 1324 echo "$ac_var='"'"'$ac_val'"'"'" 1325 done | sort 1326 echo 1327 1328 if test -n "$ac_subst_files"; then 1329 cat <<\_ASBOX 1330## ------------- ## 1331## Output files. ## 1332## ------------- ## 1333_ASBOX 1334 echo 1335 for ac_var in $ac_subst_files 1336 do 1337 eval ac_val=$`echo $ac_var` 1338 echo "$ac_var='"'"'$ac_val'"'"'" 1339 done | sort 1340 echo 1341 fi 1342 1343 if test -s confdefs.h; then 1344 cat <<\_ASBOX 1345## ----------- ## 1346## confdefs.h. ## 1347## ----------- ## 1348_ASBOX 1349 echo 1350 sed "/^$/d" confdefs.h | sort 1351 echo 1352 fi 1353 test "$ac_signal" != 0 && 1354 echo "$as_me: caught signal $ac_signal" 1355 echo "$as_me: exit $exit_status" 1356 } >&5 1357 rm -f core *.core && 1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1359 exit $exit_status 1360 ' 0 1361for ac_signal in 1 2 13 15; do 1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1363done 1364ac_signal=0 1365 1366# confdefs.h avoids OS command line length limits that DEFS can exceed. 1367rm -rf conftest* confdefs.h 1368# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1369echo >confdefs.h 1370 1371# Predefined preprocessor variables. 1372 1373cat >>confdefs.h <<_ACEOF 1374#define PACKAGE_NAME "$PACKAGE_NAME" 1375_ACEOF 1376 1377 1378cat >>confdefs.h <<_ACEOF 1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1380_ACEOF 1381 1382 1383cat >>confdefs.h <<_ACEOF 1384#define PACKAGE_VERSION "$PACKAGE_VERSION" 1385_ACEOF 1386 1387 1388cat >>confdefs.h <<_ACEOF 1389#define PACKAGE_STRING "$PACKAGE_STRING" 1390_ACEOF 1391 1392 1393cat >>confdefs.h <<_ACEOF 1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1395_ACEOF 1396 1397 1398# Let the site file select an alternate cache file if it wants to. 1399# Prefer explicitly selected file to automatically selected ones. 1400if test -z "$CONFIG_SITE"; then 1401 if test "x$prefix" != xNONE; then 1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1403 else 1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1405 fi 1406fi 1407for ac_site_file in $CONFIG_SITE; do 1408 if test -r "$ac_site_file"; then 1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1410echo "$as_me: loading site script $ac_site_file" >&6;} 1411 sed 's/^/| /' "$ac_site_file" >&5 1412 . "$ac_site_file" 1413 fi 1414done 1415 1416if test -r "$cache_file"; then 1417 # Some versions of bash will fail to source /dev/null (special 1418 # files actually), so we avoid doing that. 1419 if test -f "$cache_file"; then 1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1421echo "$as_me: loading cache $cache_file" >&6;} 1422 case $cache_file in 1423 [\\/]* | ?:[\\/]* ) . $cache_file;; 1424 *) . ./$cache_file;; 1425 esac 1426 fi 1427else 1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1429echo "$as_me: creating cache $cache_file" >&6;} 1430 >$cache_file 1431fi 1432 1433# Check that the precious variables saved in the cache have kept the same 1434# value. 1435ac_cache_corrupted=false 1436for ac_var in `(set) 2>&1 | 1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1439 eval ac_new_set=\$ac_env_${ac_var}_set 1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1441 eval ac_new_val="\$ac_env_${ac_var}_value" 1442 case $ac_old_set,$ac_new_set in 1443 set,) 1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1446 ac_cache_corrupted=: ;; 1447 ,set) 1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1450 ac_cache_corrupted=: ;; 1451 ,);; 1452 *) 1453 if test "x$ac_old_val" != "x$ac_new_val"; then 1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1457echo "$as_me: former value: $ac_old_val" >&2;} 1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1459echo "$as_me: current value: $ac_new_val" >&2;} 1460 ac_cache_corrupted=: 1461 fi;; 1462 esac 1463 # Pass precious variables to config.status. 1464 if test "$ac_new_set" = set; then 1465 case $ac_new_val in 1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1468 *) ac_arg=$ac_var=$ac_new_val ;; 1469 esac 1470 case " $ac_configure_args " in 1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1473 esac 1474 fi 1475done 1476if $ac_cache_corrupted; then 1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1478echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1481 { (exit 1); exit 1; }; } 1482fi 1483 1484ac_ext=c 1485ac_cpp='$CPP $CPPFLAGS' 1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1488ac_compiler_gnu=$ac_cv_c_compiler_gnu 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520## ---------------------------------------- ## 1521## Display a configure time version banner. ## 1522## ---------------------------------------- ## 1523 1524# This is a sanity check so we can see which version is used in bug reports. 1525# It is assumed that we only want to see the date extension for cvs libtool 1526# versions (i.e. "odd" letters) and not actual alpha releases. 1527TIMESTAMP= 1528case 1.5.20 in 1529 *[acegikmoqsuwy]) 1530 TIMESTAMP=`${CONFIG_SHELL} ${srcdir}/mkstamp < ${srcdir}/ChangeLog` 1531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 1532## Configuring libtool 1.5.20$TIMESTAMP ## 1533_ASBOX 1534 echo 1535 ;; 1536esac 1537 1538 1539 1540 1541## ------------------------ ## 1542## Automake Initialisation. ## 1543## ------------------------ ## 1544am__api_version="1.9" 1545ac_aux_dir= 1546for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1547 if test -f $ac_dir/install-sh; then 1548 ac_aux_dir=$ac_dir 1549 ac_install_sh="$ac_aux_dir/install-sh -c" 1550 break 1551 elif test -f $ac_dir/install.sh; then 1552 ac_aux_dir=$ac_dir 1553 ac_install_sh="$ac_aux_dir/install.sh -c" 1554 break 1555 elif test -f $ac_dir/shtool; then 1556 ac_aux_dir=$ac_dir 1557 ac_install_sh="$ac_aux_dir/shtool install -c" 1558 break 1559 fi 1560done 1561if test -z "$ac_aux_dir"; then 1562 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1563echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1564 { (exit 1); exit 1; }; } 1565fi 1566ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1567ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1568ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1569 1570# Find a good install program. We prefer a C program (faster), 1571# so one script is as good as another. But avoid the broken or 1572# incompatible versions: 1573# SysV /etc/install, /usr/sbin/install 1574# SunOS /usr/etc/install 1575# IRIX /sbin/install 1576# AIX /bin/install 1577# AmigaOS /C/install, which installs bootblocks on floppy discs 1578# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1579# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1580# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1581# OS/2's system install, which has a completely different semantic 1582# ./install, which can be erroneously created by make from ./install.sh. 1583echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1584echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1585if test -z "$INSTALL"; then 1586if test "${ac_cv_path_install+set}" = set; then 1587 echo $ECHO_N "(cached) $ECHO_C" >&6 1588else 1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1590for as_dir in $PATH 1591do 1592 IFS=$as_save_IFS 1593 test -z "$as_dir" && as_dir=. 1594 # Account for people who put trailing slashes in PATH elements. 1595case $as_dir/ in 1596 ./ | .// | /cC/* | \ 1597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1599 /usr/ucb/* ) ;; 1600 *) 1601 # OSF1 and SCO ODT 3.0 have their own names for install. 1602 # Don't use installbsd from OSF since it installs stuff as root 1603 # by default. 1604 for ac_prog in ginstall scoinst install; do 1605 for ac_exec_ext in '' $ac_executable_extensions; do 1606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1607 if test $ac_prog = install && 1608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1609 # AIX install. It has an incompatible calling convention. 1610 : 1611 elif test $ac_prog = install && 1612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1613 # program-specific install script used by HP pwplus--don't use. 1614 : 1615 else 1616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1617 break 3 1618 fi 1619 fi 1620 done 1621 done 1622 ;; 1623esac 1624done 1625 1626 1627fi 1628 if test "${ac_cv_path_install+set}" = set; then 1629 INSTALL=$ac_cv_path_install 1630 else 1631 # As a last resort, use the slow shell script. We don't cache a 1632 # path for INSTALL within a source directory, because that will 1633 # break other packages using the cache if that directory is 1634 # removed, or if the path is relative. 1635 INSTALL=$ac_install_sh 1636 fi 1637fi 1638echo "$as_me:$LINENO: result: $INSTALL" >&5 1639echo "${ECHO_T}$INSTALL" >&6 1640 1641# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1642# It thinks the first close brace ends the variable substitution. 1643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1644 1645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1646 1647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1648 1649echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1650echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1651# Just in case 1652sleep 1 1653echo timestamp > conftest.file 1654# Do `set' in a subshell so we don't clobber the current shell's 1655# arguments. Must try -L first in case configure is actually a 1656# symlink; some systems play weird games with the mod time of symlinks 1657# (eg FreeBSD returns the mod time of the symlink's containing 1658# directory). 1659if ( 1660 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1661 if test "$*" = "X"; then 1662 # -L didn't work. 1663 set X `ls -t $srcdir/configure conftest.file` 1664 fi 1665 rm -f conftest.file 1666 if test "$*" != "X $srcdir/configure conftest.file" \ 1667 && test "$*" != "X conftest.file $srcdir/configure"; then 1668 1669 # If neither matched, then we have a broken ls. This can happen 1670 # if, for instance, CONFIG_SHELL is bash and it inherits a 1671 # broken ls alias from the environment. This has actually 1672 # happened. Such a system could not be considered "sane". 1673 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1674alias in your environment" >&5 1675echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1676alias in your environment" >&2;} 1677 { (exit 1); exit 1; }; } 1678 fi 1679 1680 test "$2" = conftest.file 1681 ) 1682then 1683 # Ok. 1684 : 1685else 1686 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1687Check your system clock" >&5 1688echo "$as_me: error: newly created file is older than distributed files! 1689Check your system clock" >&2;} 1690 { (exit 1); exit 1; }; } 1691fi 1692echo "$as_me:$LINENO: result: yes" >&5 1693echo "${ECHO_T}yes" >&6 1694test "$program_prefix" != NONE && 1695 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1696# Use a double $ so make ignores it. 1697test "$program_suffix" != NONE && 1698 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1699# Double any \ or $. echo might interpret backslashes. 1700# By default was `s,x,x', remove it if useless. 1701cat <<\_ACEOF >conftest.sed 1702s/[\\$]/&&/g;s/;s,x,x,$// 1703_ACEOF 1704program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1705rm conftest.sed 1706 1707# expand $ac_aux_dir to an absolute path 1708am_aux_dir=`cd $ac_aux_dir && pwd` 1709 1710test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1711# Use eval to expand $SHELL 1712if eval "$MISSING --run true"; then 1713 am_missing_run="$MISSING --run " 1714else 1715 am_missing_run= 1716 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1717echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1718fi 1719 1720if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1721 # We used to keeping the `.' as first argument, in order to 1722 # allow $(mkdir_p) to be used without argument. As in 1723 # $(mkdir_p) $(somedir) 1724 # where $(somedir) is conditionally defined. However this is wrong 1725 # for two reasons: 1726 # 1. if the package is installed by a user who cannot write `.' 1727 # make install will fail, 1728 # 2. the above comment should most certainly read 1729 # $(mkdir_p) $(DESTDIR)$(somedir) 1730 # so it does not work when $(somedir) is undefined and 1731 # $(DESTDIR) is not. 1732 # To support the latter case, we have to write 1733 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1734 # so the `.' trick is pointless. 1735 mkdir_p='mkdir -p --' 1736else 1737 # On NextStep and OpenStep, the `mkdir' command does not 1738 # recognize any option. It will interpret all options as 1739 # directories to create, and then abort because `.' already 1740 # exists. 1741 for d in ./-p ./--version; 1742 do 1743 test -d $d && rmdir $d 1744 done 1745 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1746 if test -f "$ac_aux_dir/mkinstalldirs"; then 1747 mkdir_p='$(mkinstalldirs)' 1748 else 1749 mkdir_p='$(install_sh) -d' 1750 fi 1751fi 1752 1753for ac_prog in gawk mawk nawk awk 1754do 1755 # Extract the first word of "$ac_prog", so it can be a program name with args. 1756set dummy $ac_prog; ac_word=$2 1757echo "$as_me:$LINENO: checking for $ac_word" >&5 1758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1759if test "${ac_cv_prog_AWK+set}" = set; then 1760 echo $ECHO_N "(cached) $ECHO_C" >&6 1761else 1762 if test -n "$AWK"; then 1763 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1764else 1765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1766for as_dir in $PATH 1767do 1768 IFS=$as_save_IFS 1769 test -z "$as_dir" && as_dir=. 1770 for ac_exec_ext in '' $ac_executable_extensions; do 1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1772 ac_cv_prog_AWK="$ac_prog" 1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1774 break 2 1775 fi 1776done 1777done 1778 1779fi 1780fi 1781AWK=$ac_cv_prog_AWK 1782if test -n "$AWK"; then 1783 echo "$as_me:$LINENO: result: $AWK" >&5 1784echo "${ECHO_T}$AWK" >&6 1785else 1786 echo "$as_me:$LINENO: result: no" >&5 1787echo "${ECHO_T}no" >&6 1788fi 1789 1790 test -n "$AWK" && break 1791done 1792 1793echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1794echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1795set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1796if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1797 echo $ECHO_N "(cached) $ECHO_C" >&6 1798else 1799 cat >conftest.make <<\_ACEOF 1800all: 1801 @echo 'ac_maketemp="$(MAKE)"' 1802_ACEOF 1803# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1804eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1805if test -n "$ac_maketemp"; then 1806 eval ac_cv_prog_make_${ac_make}_set=yes 1807else 1808 eval ac_cv_prog_make_${ac_make}_set=no 1809fi 1810rm -f conftest.make 1811fi 1812if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1813 echo "$as_me:$LINENO: result: yes" >&5 1814echo "${ECHO_T}yes" >&6 1815 SET_MAKE= 1816else 1817 echo "$as_me:$LINENO: result: no" >&5 1818echo "${ECHO_T}no" >&6 1819 SET_MAKE="MAKE=${MAKE-make}" 1820fi 1821 1822rm -rf .tst 2>/dev/null 1823mkdir .tst 2>/dev/null 1824if test -d .tst; then 1825 am__leading_dot=. 1826else 1827 am__leading_dot=_ 1828fi 1829rmdir .tst 2>/dev/null 1830 1831# test to see if srcdir already configured 1832if test "`cd $srcdir && pwd`" != "`pwd`" && 1833 test -f $srcdir/config.status; then 1834 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1835echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1836 { (exit 1); exit 1; }; } 1837fi 1838 1839# test whether we have cygpath 1840if test -z "$CYGPATH_W"; then 1841 if (cygpath --version) >/dev/null 2>/dev/null; then 1842 CYGPATH_W='cygpath -w' 1843 else 1844 CYGPATH_W=echo 1845 fi 1846fi 1847 1848 1849# Define the identity of the package. 1850 PACKAGE=libtool 1851 VERSION=1.5.20 1852 1853 1854cat >>confdefs.h <<_ACEOF 1855#define PACKAGE "$PACKAGE" 1856_ACEOF 1857 1858 1859cat >>confdefs.h <<_ACEOF 1860#define VERSION "$VERSION" 1861_ACEOF 1862 1863# Some tools Automake needs. 1864 1865ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1866 1867 1868AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1869 1870 1871AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1872 1873 1874AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1875 1876 1877MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1878 1879install_sh=${install_sh-"$am_aux_dir/install-sh"} 1880 1881# Installed binaries are usually stripped using `strip' when the user 1882# run `make install-strip'. However `strip' might not be the right 1883# tool to use in cross-compilation environments, therefore Automake 1884# will honor the `STRIP' environment variable to overrule this program. 1885if test "$cross_compiling" != no; then 1886 if test -n "$ac_tool_prefix"; then 1887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1888set dummy ${ac_tool_prefix}strip; ac_word=$2 1889echo "$as_me:$LINENO: checking for $ac_word" >&5 1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1891if test "${ac_cv_prog_STRIP+set}" = set; then 1892 echo $ECHO_N "(cached) $ECHO_C" >&6 1893else 1894 if test -n "$STRIP"; then 1895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1896else 1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1898for as_dir in $PATH 1899do 1900 IFS=$as_save_IFS 1901 test -z "$as_dir" && as_dir=. 1902 for ac_exec_ext in '' $ac_executable_extensions; do 1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1904 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1906 break 2 1907 fi 1908done 1909done 1910 1911fi 1912fi 1913STRIP=$ac_cv_prog_STRIP 1914if test -n "$STRIP"; then 1915 echo "$as_me:$LINENO: result: $STRIP" >&5 1916echo "${ECHO_T}$STRIP" >&6 1917else 1918 echo "$as_me:$LINENO: result: no" >&5 1919echo "${ECHO_T}no" >&6 1920fi 1921 1922fi 1923if test -z "$ac_cv_prog_STRIP"; then 1924 ac_ct_STRIP=$STRIP 1925 # Extract the first word of "strip", so it can be a program name with args. 1926set dummy strip; ac_word=$2 1927echo "$as_me:$LINENO: checking for $ac_word" >&5 1928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1929if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1930 echo $ECHO_N "(cached) $ECHO_C" >&6 1931else 1932 if test -n "$ac_ct_STRIP"; then 1933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1934else 1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1936for as_dir in $PATH 1937do 1938 IFS=$as_save_IFS 1939 test -z "$as_dir" && as_dir=. 1940 for ac_exec_ext in '' $ac_executable_extensions; do 1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1942 ac_cv_prog_ac_ct_STRIP="strip" 1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1944 break 2 1945 fi 1946done 1947done 1948 1949 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1950fi 1951fi 1952ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1953if test -n "$ac_ct_STRIP"; then 1954 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1955echo "${ECHO_T}$ac_ct_STRIP" >&6 1956else 1957 echo "$as_me:$LINENO: result: no" >&5 1958echo "${ECHO_T}no" >&6 1959fi 1960 1961 STRIP=$ac_ct_STRIP 1962else 1963 STRIP="$ac_cv_prog_STRIP" 1964fi 1965 1966fi 1967INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1968 1969# We need awk for the "check" target. The system "awk" is bad on 1970# some platforms. 1971# Always define AMTAR for backward compatibility. 1972 1973AMTAR=${AMTAR-"${am_missing_run}tar"} 1974 1975am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1976 1977 1978 1979 1980 1981 1982 1983## ------------------------------- ## 1984## Libtool specific configuration. ## 1985## ------------------------------- ## 1986pkgdatadir='${datadir}'"/${PACKAGE}" 1987 # automake does not need this, but libtoolize does 1988 1989aclocaldir='${datadir}/aclocal' 1990 1991 1992# Check whether --enable-ltdl-install or --disable-ltdl-install was given. 1993if test "${enable_ltdl_install+set}" = set; then 1994 enableval="$enable_ltdl_install" 1995 1996fi; 1997if test x"${enable_ltdl_install+set}" != xset; then 1998 enable_ltdl_install=yes 1999 ac_configure_args="$ac_configure_args --enable-ltdl-install" 2000fi 2001 2002 2003subdirs="$subdirs libltdl" 2004 2005 2006# all subdirectories that are configured on demand, but that must be 2007# included in the distribution 2008CONF_SUBDIRS="cdemo pdemo demo depdemo mdemo mdemo2 tagdemo f77demo" 2009 2010 2011ACINCLUDE_M4_LIST="${srcdir}/acinclude.m4" 2012DIST_MAKEFILE_LIST= 2013for dir in $CONF_SUBDIRS; do 2014 ACINCLUDE_M4_LIST="$ACINCLUDE_M4_LIST ${srcdir}/$dir/acinclude.m4" 2015 DIST_MAKEFILE_LIST="$DIST_MAKEFILE_LIST$dir/Makefile " 2016done 2017 2018 2019 2020 2021 2022## ---------------- ## 2023## compiler checks. ## 2024## ---------------- ## 2025 2026# Use the specified CC and LD 2027ac_ext=c 2028ac_cpp='$CPP $CPPFLAGS' 2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2031ac_compiler_gnu=$ac_cv_c_compiler_gnu 2032if test -n "$ac_tool_prefix"; then 2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2034set dummy ${ac_tool_prefix}gcc; ac_word=$2 2035echo "$as_me:$LINENO: checking for $ac_word" >&5 2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2037if test "${ac_cv_prog_CC+set}" = set; then 2038 echo $ECHO_N "(cached) $ECHO_C" >&6 2039else 2040 if test -n "$CC"; then 2041 ac_cv_prog_CC="$CC" # Let the user override the test. 2042else 2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2044for as_dir in $PATH 2045do 2046 IFS=$as_save_IFS 2047 test -z "$as_dir" && as_dir=. 2048 for ac_exec_ext in '' $ac_executable_extensions; do 2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2050 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2052 break 2 2053 fi 2054done 2055done 2056 2057fi 2058fi 2059CC=$ac_cv_prog_CC 2060if test -n "$CC"; then 2061 echo "$as_me:$LINENO: result: $CC" >&5 2062echo "${ECHO_T}$CC" >&6 2063else 2064 echo "$as_me:$LINENO: result: no" >&5 2065echo "${ECHO_T}no" >&6 2066fi 2067 2068fi 2069if test -z "$ac_cv_prog_CC"; then 2070 ac_ct_CC=$CC 2071 # Extract the first word of "gcc", so it can be a program name with args. 2072set dummy gcc; ac_word=$2 2073echo "$as_me:$LINENO: checking for $ac_word" >&5 2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2076 echo $ECHO_N "(cached) $ECHO_C" >&6 2077else 2078 if test -n "$ac_ct_CC"; then 2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2080else 2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2082for as_dir in $PATH 2083do 2084 IFS=$as_save_IFS 2085 test -z "$as_dir" && as_dir=. 2086 for ac_exec_ext in '' $ac_executable_extensions; do 2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2088 ac_cv_prog_ac_ct_CC="gcc" 2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2090 break 2 2091 fi 2092done 2093done 2094 2095fi 2096fi 2097ac_ct_CC=$ac_cv_prog_ac_ct_CC 2098if test -n "$ac_ct_CC"; then 2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2100echo "${ECHO_T}$ac_ct_CC" >&6 2101else 2102 echo "$as_me:$LINENO: result: no" >&5 2103echo "${ECHO_T}no" >&6 2104fi 2105 2106 CC=$ac_ct_CC 2107else 2108 CC="$ac_cv_prog_CC" 2109fi 2110 2111if test -z "$CC"; then 2112 if test -n "$ac_tool_prefix"; then 2113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2114set dummy ${ac_tool_prefix}cc; ac_word=$2 2115echo "$as_me:$LINENO: checking for $ac_word" >&5 2116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2117if test "${ac_cv_prog_CC+set}" = set; then 2118 echo $ECHO_N "(cached) $ECHO_C" >&6 2119else 2120 if test -n "$CC"; then 2121 ac_cv_prog_CC="$CC" # Let the user override the test. 2122else 2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2124for as_dir in $PATH 2125do 2126 IFS=$as_save_IFS 2127 test -z "$as_dir" && as_dir=. 2128 for ac_exec_ext in '' $ac_executable_extensions; do 2129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2130 ac_cv_prog_CC="${ac_tool_prefix}cc" 2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2132 break 2 2133 fi 2134done 2135done 2136 2137fi 2138fi 2139CC=$ac_cv_prog_CC 2140if test -n "$CC"; then 2141 echo "$as_me:$LINENO: result: $CC" >&5 2142echo "${ECHO_T}$CC" >&6 2143else 2144 echo "$as_me:$LINENO: result: no" >&5 2145echo "${ECHO_T}no" >&6 2146fi 2147 2148fi 2149if test -z "$ac_cv_prog_CC"; then 2150 ac_ct_CC=$CC 2151 # Extract the first word of "cc", so it can be a program name with args. 2152set dummy cc; ac_word=$2 2153echo "$as_me:$LINENO: checking for $ac_word" >&5 2154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2155if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2156 echo $ECHO_N "(cached) $ECHO_C" >&6 2157else 2158 if test -n "$ac_ct_CC"; then 2159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2160else 2161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2162for as_dir in $PATH 2163do 2164 IFS=$as_save_IFS 2165 test -z "$as_dir" && as_dir=. 2166 for ac_exec_ext in '' $ac_executable_extensions; do 2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2168 ac_cv_prog_ac_ct_CC="cc" 2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2170 break 2 2171 fi 2172done 2173done 2174 2175fi 2176fi 2177ac_ct_CC=$ac_cv_prog_ac_ct_CC 2178if test -n "$ac_ct_CC"; then 2179 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2180echo "${ECHO_T}$ac_ct_CC" >&6 2181else 2182 echo "$as_me:$LINENO: result: no" >&5 2183echo "${ECHO_T}no" >&6 2184fi 2185 2186 CC=$ac_ct_CC 2187else 2188 CC="$ac_cv_prog_CC" 2189fi 2190 2191fi 2192if test -z "$CC"; then 2193 # Extract the first word of "cc", so it can be a program name with args. 2194set dummy cc; ac_word=$2 2195echo "$as_me:$LINENO: checking for $ac_word" >&5 2196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2197if test "${ac_cv_prog_CC+set}" = set; then 2198 echo $ECHO_N "(cached) $ECHO_C" >&6 2199else 2200 if test -n "$CC"; then 2201 ac_cv_prog_CC="$CC" # Let the user override the test. 2202else 2203 ac_prog_rejected=no 2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2205for as_dir in $PATH 2206do 2207 IFS=$as_save_IFS 2208 test -z "$as_dir" && as_dir=. 2209 for ac_exec_ext in '' $ac_executable_extensions; do 2210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2211 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2212 ac_prog_rejected=yes 2213 continue 2214 fi 2215 ac_cv_prog_CC="cc" 2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2217 break 2 2218 fi 2219done 2220done 2221 2222if test $ac_prog_rejected = yes; then 2223 # We found a bogon in the path, so make sure we never use it. 2224 set dummy $ac_cv_prog_CC 2225 shift 2226 if test $# != 0; then 2227 # We chose a different compiler from the bogus one. 2228 # However, it has the same basename, so the bogon will be chosen 2229 # first if we set CC to just the basename; use the full file name. 2230 shift 2231 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2232 fi 2233fi 2234fi 2235fi 2236CC=$ac_cv_prog_CC 2237if test -n "$CC"; then 2238 echo "$as_me:$LINENO: result: $CC" >&5 2239echo "${ECHO_T}$CC" >&6 2240else 2241 echo "$as_me:$LINENO: result: no" >&5 2242echo "${ECHO_T}no" >&6 2243fi 2244 2245fi 2246if test -z "$CC"; then 2247 if test -n "$ac_tool_prefix"; then 2248 for ac_prog in cl 2249 do 2250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2251set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2252echo "$as_me:$LINENO: checking for $ac_word" >&5 2253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2254if test "${ac_cv_prog_CC+set}" = set; then 2255 echo $ECHO_N "(cached) $ECHO_C" >&6 2256else 2257 if test -n "$CC"; then 2258 ac_cv_prog_CC="$CC" # Let the user override the test. 2259else 2260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2261for as_dir in $PATH 2262do 2263 IFS=$as_save_IFS 2264 test -z "$as_dir" && as_dir=. 2265 for ac_exec_ext in '' $ac_executable_extensions; do 2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2269 break 2 2270 fi 2271done 2272done 2273 2274fi 2275fi 2276CC=$ac_cv_prog_CC 2277if test -n "$CC"; then 2278 echo "$as_me:$LINENO: result: $CC" >&5 2279echo "${ECHO_T}$CC" >&6 2280else 2281 echo "$as_me:$LINENO: result: no" >&5 2282echo "${ECHO_T}no" >&6 2283fi 2284 2285 test -n "$CC" && break 2286 done 2287fi 2288if test -z "$CC"; then 2289 ac_ct_CC=$CC 2290 for ac_prog in cl 2291do 2292 # Extract the first word of "$ac_prog", so it can be a program name with args. 2293set dummy $ac_prog; ac_word=$2 2294echo "$as_me:$LINENO: checking for $ac_word" >&5 2295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2296if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2297 echo $ECHO_N "(cached) $ECHO_C" >&6 2298else 2299 if test -n "$ac_ct_CC"; then 2300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2301else 2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2303for as_dir in $PATH 2304do 2305 IFS=$as_save_IFS 2306 test -z "$as_dir" && as_dir=. 2307 for ac_exec_ext in '' $ac_executable_extensions; do 2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2309 ac_cv_prog_ac_ct_CC="$ac_prog" 2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2311 break 2 2312 fi 2313done 2314done 2315 2316fi 2317fi 2318ac_ct_CC=$ac_cv_prog_ac_ct_CC 2319if test -n "$ac_ct_CC"; then 2320 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2321echo "${ECHO_T}$ac_ct_CC" >&6 2322else 2323 echo "$as_me:$LINENO: result: no" >&5 2324echo "${ECHO_T}no" >&6 2325fi 2326 2327 test -n "$ac_ct_CC" && break 2328done 2329 2330 CC=$ac_ct_CC 2331fi 2332 2333fi 2334 2335 2336test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2337See \`config.log' for more details." >&5 2338echo "$as_me: error: no acceptable C compiler found in \$PATH 2339See \`config.log' for more details." >&2;} 2340 { (exit 1); exit 1; }; } 2341 2342# Provide some information about the compiler. 2343echo "$as_me:$LINENO:" \ 2344 "checking for C compiler version" >&5 2345ac_compiler=`set X $ac_compile; echo $2` 2346{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2347 (eval $ac_compiler --version </dev/null >&5) 2>&5 2348 ac_status=$? 2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350 (exit $ac_status); } 2351{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2352 (eval $ac_compiler -v </dev/null >&5) 2>&5 2353 ac_status=$? 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2355 (exit $ac_status); } 2356{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2357 (eval $ac_compiler -V </dev/null >&5) 2>&5 2358 ac_status=$? 2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 (exit $ac_status); } 2361 2362cat >conftest.$ac_ext <<_ACEOF 2363/* confdefs.h. */ 2364_ACEOF 2365cat confdefs.h >>conftest.$ac_ext 2366cat >>conftest.$ac_ext <<_ACEOF 2367/* end confdefs.h. */ 2368 2369int 2370main () 2371{ 2372 2373 ; 2374 return 0; 2375} 2376_ACEOF 2377ac_clean_files_save=$ac_clean_files 2378ac_clean_files="$ac_clean_files a.out a.exe b.out" 2379# Try to create an executable without -o first, disregard a.out. 2380# It will help us diagnose broken compilers, and finding out an intuition 2381# of exeext. 2382echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2383echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2384ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2385if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2386 (eval $ac_link_default) 2>&5 2387 ac_status=$? 2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2389 (exit $ac_status); }; then 2390 # Find the output, starting from the most likely. This scheme is 2391# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2392# resort. 2393 2394# Be careful to initialize this variable, since it used to be cached. 2395# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2396ac_cv_exeext= 2397# b.out is created by i960 compilers. 2398for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2399do 2400 test -f "$ac_file" || continue 2401 case $ac_file in 2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2403 ;; 2404 conftest.$ac_ext ) 2405 # This is the source file. 2406 ;; 2407 [ab].out ) 2408 # We found the default executable, but exeext='' is most 2409 # certainly right. 2410 break;; 2411 *.* ) 2412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2413 # FIXME: I believe we export ac_cv_exeext for Libtool, 2414 # but it would be cool to find out if it's true. Does anybody 2415 # maintain Libtool? --akim. 2416 export ac_cv_exeext 2417 break;; 2418 * ) 2419 break;; 2420 esac 2421done 2422else 2423 echo "$as_me: failed program was:" >&5 2424sed 's/^/| /' conftest.$ac_ext >&5 2425 2426{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2427See \`config.log' for more details." >&5 2428echo "$as_me: error: C compiler cannot create executables 2429See \`config.log' for more details." >&2;} 2430 { (exit 77); exit 77; }; } 2431fi 2432 2433ac_exeext=$ac_cv_exeext 2434echo "$as_me:$LINENO: result: $ac_file" >&5 2435echo "${ECHO_T}$ac_file" >&6 2436 2437# Check the compiler produces executables we can run. If not, either 2438# the compiler is broken, or we cross compile. 2439echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2440echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2441# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2442# If not cross compiling, check that we can run a simple program. 2443if test "$cross_compiling" != yes; then 2444 if { ac_try='./$ac_file' 2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2446 (eval $ac_try) 2>&5 2447 ac_status=$? 2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2449 (exit $ac_status); }; }; then 2450 cross_compiling=no 2451 else 2452 if test "$cross_compiling" = maybe; then 2453 cross_compiling=yes 2454 else 2455 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2456If you meant to cross compile, use \`--host'. 2457See \`config.log' for more details." >&5 2458echo "$as_me: error: cannot run C compiled programs. 2459If you meant to cross compile, use \`--host'. 2460See \`config.log' for more details." >&2;} 2461 { (exit 1); exit 1; }; } 2462 fi 2463 fi 2464fi 2465echo "$as_me:$LINENO: result: yes" >&5 2466echo "${ECHO_T}yes" >&6 2467 2468rm -f a.out a.exe conftest$ac_cv_exeext b.out 2469ac_clean_files=$ac_clean_files_save 2470# Check the compiler produces executables we can run. If not, either 2471# the compiler is broken, or we cross compile. 2472echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2473echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2474echo "$as_me:$LINENO: result: $cross_compiling" >&5 2475echo "${ECHO_T}$cross_compiling" >&6 2476 2477echo "$as_me:$LINENO: checking for suffix of executables" >&5 2478echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2480 (eval $ac_link) 2>&5 2481 ac_status=$? 2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2483 (exit $ac_status); }; then 2484 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2485# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2486# work properly (i.e., refer to `conftest.exe'), while it won't with 2487# `rm'. 2488for ac_file in conftest.exe conftest conftest.*; do 2489 test -f "$ac_file" || continue 2490 case $ac_file in 2491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2492 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2493 export ac_cv_exeext 2494 break;; 2495 * ) break;; 2496 esac 2497done 2498else 2499 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2500See \`config.log' for more details." >&5 2501echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2502See \`config.log' for more details." >&2;} 2503 { (exit 1); exit 1; }; } 2504fi 2505 2506rm -f conftest$ac_cv_exeext 2507echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2508echo "${ECHO_T}$ac_cv_exeext" >&6 2509 2510rm -f conftest.$ac_ext 2511EXEEXT=$ac_cv_exeext 2512ac_exeext=$EXEEXT 2513echo "$as_me:$LINENO: checking for suffix of object files" >&5 2514echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2515if test "${ac_cv_objext+set}" = set; then 2516 echo $ECHO_N "(cached) $ECHO_C" >&6 2517else 2518 cat >conftest.$ac_ext <<_ACEOF 2519/* confdefs.h. */ 2520_ACEOF 2521cat confdefs.h >>conftest.$ac_ext 2522cat >>conftest.$ac_ext <<_ACEOF 2523/* end confdefs.h. */ 2524 2525int 2526main () 2527{ 2528 2529 ; 2530 return 0; 2531} 2532_ACEOF 2533rm -f conftest.o conftest.obj 2534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2535 (eval $ac_compile) 2>&5 2536 ac_status=$? 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); }; then 2539 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2540 case $ac_file in 2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2542 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2543 break;; 2544 esac 2545done 2546else 2547 echo "$as_me: failed program was:" >&5 2548sed 's/^/| /' conftest.$ac_ext >&5 2549 2550{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2551See \`config.log' for more details." >&5 2552echo "$as_me: error: cannot compute suffix of object files: cannot compile 2553See \`config.log' for more details." >&2;} 2554 { (exit 1); exit 1; }; } 2555fi 2556 2557rm -f conftest.$ac_cv_objext conftest.$ac_ext 2558fi 2559echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2560echo "${ECHO_T}$ac_cv_objext" >&6 2561OBJEXT=$ac_cv_objext 2562ac_objext=$OBJEXT 2563echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2564echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2565if test "${ac_cv_c_compiler_gnu+set}" = set; then 2566 echo $ECHO_N "(cached) $ECHO_C" >&6 2567else 2568 cat >conftest.$ac_ext <<_ACEOF 2569/* confdefs.h. */ 2570_ACEOF 2571cat confdefs.h >>conftest.$ac_ext 2572cat >>conftest.$ac_ext <<_ACEOF 2573/* end confdefs.h. */ 2574 2575int 2576main () 2577{ 2578#ifndef __GNUC__ 2579 choke me 2580#endif 2581 2582 ; 2583 return 0; 2584} 2585_ACEOF 2586rm -f conftest.$ac_objext 2587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2588 (eval $ac_compile) 2>conftest.er1 2589 ac_status=$? 2590 grep -v '^ *+' conftest.er1 >conftest.err 2591 rm -f conftest.er1 2592 cat conftest.err >&5 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); } && 2595 { ac_try='test -z "$ac_c_werror_flag" 2596 || test ! -s conftest.err' 2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2598 (eval $ac_try) 2>&5 2599 ac_status=$? 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); }; } && 2602 { ac_try='test -s conftest.$ac_objext' 2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2604 (eval $ac_try) 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); }; }; then 2608 ac_compiler_gnu=yes 2609else 2610 echo "$as_me: failed program was:" >&5 2611sed 's/^/| /' conftest.$ac_ext >&5 2612 2613ac_compiler_gnu=no 2614fi 2615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2616ac_cv_c_compiler_gnu=$ac_compiler_gnu 2617 2618fi 2619echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2620echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2621GCC=`test $ac_compiler_gnu = yes && echo yes` 2622ac_test_CFLAGS=${CFLAGS+set} 2623ac_save_CFLAGS=$CFLAGS 2624CFLAGS="-g" 2625echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2626echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2627if test "${ac_cv_prog_cc_g+set}" = set; then 2628 echo $ECHO_N "(cached) $ECHO_C" >&6 2629else 2630 cat >conftest.$ac_ext <<_ACEOF 2631/* confdefs.h. */ 2632_ACEOF 2633cat confdefs.h >>conftest.$ac_ext 2634cat >>conftest.$ac_ext <<_ACEOF 2635/* end confdefs.h. */ 2636 2637int 2638main () 2639{ 2640 2641 ; 2642 return 0; 2643} 2644_ACEOF 2645rm -f conftest.$ac_objext 2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2647 (eval $ac_compile) 2>conftest.er1 2648 ac_status=$? 2649 grep -v '^ *+' conftest.er1 >conftest.err 2650 rm -f conftest.er1 2651 cat conftest.err >&5 2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2653 (exit $ac_status); } && 2654 { ac_try='test -z "$ac_c_werror_flag" 2655 || test ! -s conftest.err' 2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2657 (eval $ac_try) 2>&5 2658 ac_status=$? 2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2660 (exit $ac_status); }; } && 2661 { ac_try='test -s conftest.$ac_objext' 2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2663 (eval $ac_try) 2>&5 2664 ac_status=$? 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); }; }; then 2667 ac_cv_prog_cc_g=yes 2668else 2669 echo "$as_me: failed program was:" >&5 2670sed 's/^/| /' conftest.$ac_ext >&5 2671 2672ac_cv_prog_cc_g=no 2673fi 2674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2675fi 2676echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2677echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2678if test "$ac_test_CFLAGS" = set; then 2679 CFLAGS=$ac_save_CFLAGS 2680elif test $ac_cv_prog_cc_g = yes; then 2681 if test "$GCC" = yes; then 2682 CFLAGS="-g -O2" 2683 else 2684 CFLAGS="-g" 2685 fi 2686else 2687 if test "$GCC" = yes; then 2688 CFLAGS="-O2" 2689 else 2690 CFLAGS= 2691 fi 2692fi 2693echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2694echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2695if test "${ac_cv_prog_cc_stdc+set}" = set; then 2696 echo $ECHO_N "(cached) $ECHO_C" >&6 2697else 2698 ac_cv_prog_cc_stdc=no 2699ac_save_CC=$CC 2700cat >conftest.$ac_ext <<_ACEOF 2701/* confdefs.h. */ 2702_ACEOF 2703cat confdefs.h >>conftest.$ac_ext 2704cat >>conftest.$ac_ext <<_ACEOF 2705/* end confdefs.h. */ 2706#include <stdarg.h> 2707#include <stdio.h> 2708#include <sys/types.h> 2709#include <sys/stat.h> 2710/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2711struct buf { int x; }; 2712FILE * (*rcsopen) (struct buf *, struct stat *, int); 2713static char *e (p, i) 2714 char **p; 2715 int i; 2716{ 2717 return p[i]; 2718} 2719static char *f (char * (*g) (char **, int), char **p, ...) 2720{ 2721 char *s; 2722 va_list v; 2723 va_start (v,p); 2724 s = g (p, va_arg (v,int)); 2725 va_end (v); 2726 return s; 2727} 2728 2729/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2730 function prototypes and stuff, but not '\xHH' hex character constants. 2731 These don't provoke an error unfortunately, instead are silently treated 2732 as 'x'. The following induces an error, until -std1 is added to get 2733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2734 array size at least. It's necessary to write '\x00'==0 to get something 2735 that's true only with -std1. */ 2736int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2737 2738int test (int i, double x); 2739struct s1 {int (*f) (int a);}; 2740struct s2 {int (*f) (double a);}; 2741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2742int argc; 2743char **argv; 2744int 2745main () 2746{ 2747return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2748 ; 2749 return 0; 2750} 2751_ACEOF 2752# Don't try gcc -ansi; that turns off useful extensions and 2753# breaks some systems' header files. 2754# AIX -qlanglvl=ansi 2755# Ultrix and OSF/1 -std1 2756# HP-UX 10.20 and later -Ae 2757# HP-UX older versions -Aa -D_HPUX_SOURCE 2758# SVR4 -Xc -D__EXTENSIONS__ 2759for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2760do 2761 CC="$ac_save_CC $ac_arg" 2762 rm -f conftest.$ac_objext 2763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2764 (eval $ac_compile) 2>conftest.er1 2765 ac_status=$? 2766 grep -v '^ *+' conftest.er1 >conftest.err 2767 rm -f conftest.er1 2768 cat conftest.err >&5 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); } && 2771 { ac_try='test -z "$ac_c_werror_flag" 2772 || test ! -s conftest.err' 2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2774 (eval $ac_try) 2>&5 2775 ac_status=$? 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); }; } && 2778 { ac_try='test -s conftest.$ac_objext' 2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2780 (eval $ac_try) 2>&5 2781 ac_status=$? 2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2783 (exit $ac_status); }; }; then 2784 ac_cv_prog_cc_stdc=$ac_arg 2785break 2786else 2787 echo "$as_me: failed program was:" >&5 2788sed 's/^/| /' conftest.$ac_ext >&5 2789 2790fi 2791rm -f conftest.err conftest.$ac_objext 2792done 2793rm -f conftest.$ac_ext conftest.$ac_objext 2794CC=$ac_save_CC 2795 2796fi 2797 2798case "x$ac_cv_prog_cc_stdc" in 2799 x|xno) 2800 echo "$as_me:$LINENO: result: none needed" >&5 2801echo "${ECHO_T}none needed" >&6 ;; 2802 *) 2803 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2804echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2805 CC="$CC $ac_cv_prog_cc_stdc" ;; 2806esac 2807 2808# Some people use a C++ compiler to compile C. Since we use `exit', 2809# in C++ we need to declare it. In case someone uses the same compiler 2810# for both compiling C and C++ we need to have the C++ compiler decide 2811# the declaration of exit, since it's the most demanding environment. 2812cat >conftest.$ac_ext <<_ACEOF 2813#ifndef __cplusplus 2814 choke me 2815#endif 2816_ACEOF 2817rm -f conftest.$ac_objext 2818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2819 (eval $ac_compile) 2>conftest.er1 2820 ac_status=$? 2821 grep -v '^ *+' conftest.er1 >conftest.err 2822 rm -f conftest.er1 2823 cat conftest.err >&5 2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2825 (exit $ac_status); } && 2826 { ac_try='test -z "$ac_c_werror_flag" 2827 || test ! -s conftest.err' 2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2829 (eval $ac_try) 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); }; } && 2833 { ac_try='test -s conftest.$ac_objext' 2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2835 (eval $ac_try) 2>&5 2836 ac_status=$? 2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2838 (exit $ac_status); }; }; then 2839 for ac_declaration in \ 2840 '' \ 2841 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2842 'extern "C" void std::exit (int); using std::exit;' \ 2843 'extern "C" void exit (int) throw ();' \ 2844 'extern "C" void exit (int);' \ 2845 'void exit (int);' 2846do 2847 cat >conftest.$ac_ext <<_ACEOF 2848/* confdefs.h. */ 2849_ACEOF 2850cat confdefs.h >>conftest.$ac_ext 2851cat >>conftest.$ac_ext <<_ACEOF 2852/* end confdefs.h. */ 2853$ac_declaration 2854#include <stdlib.h> 2855int 2856main () 2857{ 2858exit (42); 2859 ; 2860 return 0; 2861} 2862_ACEOF 2863rm -f conftest.$ac_objext 2864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2865 (eval $ac_compile) 2>conftest.er1 2866 ac_status=$? 2867 grep -v '^ *+' conftest.er1 >conftest.err 2868 rm -f conftest.er1 2869 cat conftest.err >&5 2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2871 (exit $ac_status); } && 2872 { ac_try='test -z "$ac_c_werror_flag" 2873 || test ! -s conftest.err' 2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2875 (eval $ac_try) 2>&5 2876 ac_status=$? 2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2878 (exit $ac_status); }; } && 2879 { ac_try='test -s conftest.$ac_objext' 2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2881 (eval $ac_try) 2>&5 2882 ac_status=$? 2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2884 (exit $ac_status); }; }; then 2885 : 2886else 2887 echo "$as_me: failed program was:" >&5 2888sed 's/^/| /' conftest.$ac_ext >&5 2889 2890continue 2891fi 2892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2893 cat >conftest.$ac_ext <<_ACEOF 2894/* confdefs.h. */ 2895_ACEOF 2896cat confdefs.h >>conftest.$ac_ext 2897cat >>conftest.$ac_ext <<_ACEOF 2898/* end confdefs.h. */ 2899$ac_declaration 2900int 2901main () 2902{ 2903exit (42); 2904 ; 2905 return 0; 2906} 2907_ACEOF 2908rm -f conftest.$ac_objext 2909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2910 (eval $ac_compile) 2>conftest.er1 2911 ac_status=$? 2912 grep -v '^ *+' conftest.er1 >conftest.err 2913 rm -f conftest.er1 2914 cat conftest.err >&5 2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2916 (exit $ac_status); } && 2917 { ac_try='test -z "$ac_c_werror_flag" 2918 || test ! -s conftest.err' 2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2920 (eval $ac_try) 2>&5 2921 ac_status=$? 2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923 (exit $ac_status); }; } && 2924 { ac_try='test -s conftest.$ac_objext' 2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2926 (eval $ac_try) 2>&5 2927 ac_status=$? 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); }; }; then 2930 break 2931else 2932 echo "$as_me: failed program was:" >&5 2933sed 's/^/| /' conftest.$ac_ext >&5 2934 2935fi 2936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2937done 2938rm -f conftest* 2939if test -n "$ac_declaration"; then 2940 echo '#ifdef __cplusplus' >>confdefs.h 2941 echo $ac_declaration >>confdefs.h 2942 echo '#endif' >>confdefs.h 2943fi 2944 2945else 2946 echo "$as_me: failed program was:" >&5 2947sed 's/^/| /' conftest.$ac_ext >&5 2948 2949fi 2950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2951ac_ext=c 2952ac_cpp='$CPP $CPPFLAGS' 2953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2955ac_compiler_gnu=$ac_cv_c_compiler_gnu 2956DEPDIR="${am__leading_dot}deps" 2957 2958 ac_config_commands="$ac_config_commands depfiles" 2959 2960 2961am_make=${MAKE-make} 2962cat > confinc << 'END' 2963am__doit: 2964 @echo done 2965.PHONY: am__doit 2966END 2967# If we don't find an include directive, just comment out the code. 2968echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2969echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2970am__include="#" 2971am__quote= 2972_am_result=none 2973# First try GNU make style include. 2974echo "include confinc" > confmf 2975# We grep out `Entering directory' and `Leaving directory' 2976# messages which can occur if `w' ends up in MAKEFLAGS. 2977# In particular we don't look at `^make:' because GNU make might 2978# be invoked under some other name (usually "gmake"), in which 2979# case it prints its new name instead of `make'. 2980if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2981 am__include=include 2982 am__quote= 2983 _am_result=GNU 2984fi 2985# Now try BSD make style include. 2986if test "$am__include" = "#"; then 2987 echo '.include "confinc"' > confmf 2988 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2989 am__include=.include 2990 am__quote="\"" 2991 _am_result=BSD 2992 fi 2993fi 2994 2995 2996echo "$as_me:$LINENO: result: $_am_result" >&5 2997echo "${ECHO_T}$_am_result" >&6 2998rm -f confinc confmf 2999 3000# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3001if test "${enable_dependency_tracking+set}" = set; then 3002 enableval="$enable_dependency_tracking" 3003 3004fi; 3005if test "x$enable_dependency_tracking" != xno; then 3006 am_depcomp="$ac_aux_dir/depcomp" 3007 AMDEPBACKSLASH='\' 3008fi 3009 3010 3011if test "x$enable_dependency_tracking" != xno; then 3012 AMDEP_TRUE= 3013 AMDEP_FALSE='#' 3014else 3015 AMDEP_TRUE='#' 3016 AMDEP_FALSE= 3017fi 3018 3019 3020 3021 3022depcc="$CC" am_compiler_list= 3023 3024echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3025echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3026if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3027 echo $ECHO_N "(cached) $ECHO_C" >&6 3028else 3029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3030 # We make a subdir and do the tests there. Otherwise we can end up 3031 # making bogus files that we don't know about and never remove. For 3032 # instance it was reported that on HP-UX the gcc test will end up 3033 # making a dummy file named `D' -- because `-MD' means `put the output 3034 # in D'. 3035 mkdir conftest.dir 3036 # Copy depcomp to subdir because otherwise we won't find it if we're 3037 # using a relative directory. 3038 cp "$am_depcomp" conftest.dir 3039 cd conftest.dir 3040 # We will build objects and dependencies in a subdirectory because 3041 # it helps to detect inapplicable dependency modes. For instance 3042 # both Tru64's cc and ICC support -MD to output dependencies as a 3043 # side effect of compilation, but ICC will put the dependencies in 3044 # the current directory while Tru64 will put them in the object 3045 # directory. 3046 mkdir sub 3047 3048 am_cv_CC_dependencies_compiler_type=none 3049 if test "$am_compiler_list" = ""; then 3050 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3051 fi 3052 for depmode in $am_compiler_list; do 3053 # Setup a source with many dependencies, because some compilers 3054 # like to wrap large dependency lists on column 80 (with \), and 3055 # we should not choose a depcomp mode which is confused by this. 3056 # 3057 # We need to recreate these files for each test, as the compiler may 3058 # overwrite some of them when testing with obscure command lines. 3059 # This happens at least with the AIX C compiler. 3060 : > sub/conftest.c 3061 for i in 1 2 3 4 5 6; do 3062 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3064 # Solaris 8's {/usr,}/bin/sh. 3065 touch sub/conftst$i.h 3066 done 3067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3068 3069 case $depmode in 3070 nosideeffect) 3071 # after this tag, mechanisms are not by side-effect, so they'll 3072 # only be used when explicitly requested 3073 if test "x$enable_dependency_tracking" = xyes; then 3074 continue 3075 else 3076 break 3077 fi 3078 ;; 3079 none) break ;; 3080 esac 3081 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3082 # mode. It turns out that the SunPro C++ compiler does not properly 3083 # handle `-M -o', and we need to detect this. 3084 if depmode=$depmode \ 3085 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3087 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3088 >/dev/null 2>conftest.err && 3089 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3090 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3091 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3092 # icc doesn't choke on unknown options, it will just issue warnings 3093 # or remarks (even with -Werror). So we grep stderr for any message 3094 # that says an option was ignored or not supported. 3095 # When given -MP, icc 7.0 and 7.1 complain thusly: 3096 # icc: Command line warning: ignoring option '-M'; no argument required 3097 # The diagnosis changed in icc 8.0: 3098 # icc: Command line remark: option '-MP' not supported 3099 if (grep 'ignoring option' conftest.err || 3100 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3101 am_cv_CC_dependencies_compiler_type=$depmode 3102 break 3103 fi 3104 fi 3105 done 3106 3107 cd .. 3108 rm -rf conftest.dir 3109else 3110 am_cv_CC_dependencies_compiler_type=none 3111fi 3112 3113fi 3114echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3115echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3116CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3117 3118 3119 3120if 3121 test "x$enable_dependency_tracking" != xno \ 3122 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3123 am__fastdepCC_TRUE= 3124 am__fastdepCC_FALSE='#' 3125else 3126 am__fastdepCC_TRUE='#' 3127 am__fastdepCC_FALSE= 3128fi 3129 3130 3131 3132echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3133echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3134if test "${lt_cv_path_SED+set}" = set; then 3135 echo $ECHO_N "(cached) $ECHO_C" >&6 3136else 3137 # Loop through the user's path and test for sed and gsed. 3138# Then use that list of sed's as ones to test for truncation. 3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3140for as_dir in $PATH 3141do 3142 IFS=$as_save_IFS 3143 test -z "$as_dir" && as_dir=. 3144 for lt_ac_prog in sed gsed; do 3145 for ac_exec_ext in '' $ac_executable_extensions; do 3146 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3147 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3148 fi 3149 done 3150 done 3151done 3152lt_ac_max=0 3153lt_ac_count=0 3154# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3155# along with /bin/sed that truncates output. 3156for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3157 test ! -f $lt_ac_sed && continue 3158 cat /dev/null > conftest.in 3159 lt_ac_count=0 3160 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3161 # Check for GNU sed and select it if it is found. 3162 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3163 lt_cv_path_SED=$lt_ac_sed 3164 break 3165 fi 3166 while true; do 3167 cat conftest.in conftest.in >conftest.tmp 3168 mv conftest.tmp conftest.in 3169 cp conftest.in conftest.nl 3170 echo >>conftest.nl 3171 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3172 cmp -s conftest.out conftest.nl || break 3173 # 10000 chars as input seems more than enough 3174 test $lt_ac_count -gt 10 && break 3175 lt_ac_count=`expr $lt_ac_count + 1` 3176 if test $lt_ac_count -gt $lt_ac_max; then 3177 lt_ac_max=$lt_ac_count 3178 lt_cv_path_SED=$lt_ac_sed 3179 fi 3180 done 3181done 3182 3183fi 3184 3185SED=$lt_cv_path_SED 3186echo "$as_me:$LINENO: result: $SED" >&5 3187echo "${ECHO_T}$SED" >&6 3188 3189# Make sure we can run config.sub. 3190$ac_config_sub sun4 >/dev/null 2>&1 || 3191 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3192echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3193 { (exit 1); exit 1; }; } 3194 3195echo "$as_me:$LINENO: checking build system type" >&5 3196echo $ECHO_N "checking build system type... $ECHO_C" >&6 3197if test "${ac_cv_build+set}" = set; then 3198 echo $ECHO_N "(cached) $ECHO_C" >&6 3199else 3200 ac_cv_build_alias=$build_alias 3201test -z "$ac_cv_build_alias" && 3202 ac_cv_build_alias=`$ac_config_guess` 3203test -z "$ac_cv_build_alias" && 3204 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3205echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3206 { (exit 1); exit 1; }; } 3207ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3208 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3209echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3210 { (exit 1); exit 1; }; } 3211 3212fi 3213echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3214echo "${ECHO_T}$ac_cv_build" >&6 3215build=$ac_cv_build 3216build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3217build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3218build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3219 3220 3221echo "$as_me:$LINENO: checking host system type" >&5 3222echo $ECHO_N "checking host system type... $ECHO_C" >&6 3223if test "${ac_cv_host+set}" = set; then 3224 echo $ECHO_N "(cached) $ECHO_C" >&6 3225else 3226 ac_cv_host_alias=$host_alias 3227test -z "$ac_cv_host_alias" && 3228 ac_cv_host_alias=$ac_cv_build_alias 3229ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3230 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3231echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3232 { (exit 1); exit 1; }; } 3233 3234fi 3235echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3236echo "${ECHO_T}$ac_cv_host" >&6 3237host=$ac_cv_host 3238host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3239host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3240host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3241 3242 3243echo "$as_me:$LINENO: checking for egrep" >&5 3244echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3245if test "${ac_cv_prog_egrep+set}" = set; then 3246 echo $ECHO_N "(cached) $ECHO_C" >&6 3247else 3248 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3249 then ac_cv_prog_egrep='grep -E' 3250 else ac_cv_prog_egrep='egrep' 3251 fi 3252fi 3253echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3254echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3255 EGREP=$ac_cv_prog_egrep 3256 3257 3258 3259# Check whether --with-gnu-ld or --without-gnu-ld was given. 3260if test "${with_gnu_ld+set}" = set; then 3261 withval="$with_gnu_ld" 3262 test "$withval" = no || with_gnu_ld=yes 3263else 3264 with_gnu_ld=no 3265fi; 3266ac_prog=ld 3267if test "$GCC" = yes; then 3268 # Check if gcc -print-prog-name=ld gives a path. 3269 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3270echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3271 case $host in 3272 *-*-mingw*) 3273 # gcc leaves a trailing carriage return which upsets mingw 3274 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3275 *) 3276 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3277 esac 3278 case $ac_prog in 3279 # Accept absolute paths. 3280 [\\/]* | ?:[\\/]*) 3281 re_direlt='/[^/][^/]*/\.\./' 3282 # Canonicalize the pathname of ld 3283 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3284 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3285 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3286 done 3287 test -z "$LD" && LD="$ac_prog" 3288 ;; 3289 "") 3290 # If it fails, then pretend we aren't using GCC. 3291 ac_prog=ld 3292 ;; 3293 *) 3294 # If it is relative, then search for the first ld in PATH. 3295 with_gnu_ld=unknown 3296 ;; 3297 esac 3298elif test "$with_gnu_ld" = yes; then 3299 echo "$as_me:$LINENO: checking for GNU ld" >&5 3300echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3301else 3302 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3303echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3304fi 3305if test "${lt_cv_path_LD+set}" = set; then 3306 echo $ECHO_N "(cached) $ECHO_C" >&6 3307else 3308 if test -z "$LD"; then 3309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3310 for ac_dir in $PATH; do 3311 IFS="$lt_save_ifs" 3312 test -z "$ac_dir" && ac_dir=. 3313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3314 lt_cv_path_LD="$ac_dir/$ac_prog" 3315 # Check to see if the program is GNU ld. I'd rather use --version, 3316 # but apparently some variants of GNU ld only accept -v. 3317 # Break only if it was the GNU/non-GNU ld that we prefer. 3318 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3319 *GNU* | *'with BFD'*) 3320 test "$with_gnu_ld" != no && break 3321 ;; 3322 *) 3323 test "$with_gnu_ld" != yes && break 3324 ;; 3325 esac 3326 fi 3327 done 3328 IFS="$lt_save_ifs" 3329else 3330 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3331fi 3332fi 3333 3334LD="$lt_cv_path_LD" 3335if test -n "$LD"; then 3336 echo "$as_me:$LINENO: result: $LD" >&5 3337echo "${ECHO_T}$LD" >&6 3338else 3339 echo "$as_me:$LINENO: result: no" >&5 3340echo "${ECHO_T}no" >&6 3341fi 3342test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3343echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3344 { (exit 1); exit 1; }; } 3345echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3346echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3347if test "${lt_cv_prog_gnu_ld+set}" = set; then 3348 echo $ECHO_N "(cached) $ECHO_C" >&6 3349else 3350 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3351case `$LD -v 2>&1 </dev/null` in 3352*GNU* | *'with BFD'*) 3353 lt_cv_prog_gnu_ld=yes 3354 ;; 3355*) 3356 lt_cv_prog_gnu_ld=no 3357 ;; 3358esac 3359fi 3360echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3361echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3362with_gnu_ld=$lt_cv_prog_gnu_ld 3363 3364 3365 3366echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3367echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3368if test "${lt_cv_path_NM+set}" = set; then 3369 echo $ECHO_N "(cached) $ECHO_C" >&6 3370else 3371 if test -n "$NM"; then 3372 # Let the user override the test. 3373 lt_cv_path_NM="$NM" 3374else 3375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3376 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3377 IFS="$lt_save_ifs" 3378 test -z "$ac_dir" && ac_dir=. 3379 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3380 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3381 # Check to see if the nm accepts a BSD-compat flag. 3382 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3383 # nm: unknown option "B" ignored 3384 # Tru64's nm complains that /dev/null is an invalid object file 3385 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3386 */dev/null* | *'Invalid file or object type'*) 3387 lt_cv_path_NM="$tmp_nm -B" 3388 break 3389 ;; 3390 *) 3391 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3392 */dev/null*) 3393 lt_cv_path_NM="$tmp_nm -p" 3394 break 3395 ;; 3396 *) 3397 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3398 continue # so that we can try to find one that supports BSD flags 3399 ;; 3400 esac 3401 esac 3402 fi 3403 done 3404 IFS="$lt_save_ifs" 3405 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3406fi 3407fi 3408echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3409echo "${ECHO_T}$lt_cv_path_NM" >&6 3410NM="$lt_cv_path_NM" 3411 3412 3413echo "$as_me:$LINENO: checking whether ln -s works" >&5 3414echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3415LN_S=$as_ln_s 3416if test "$LN_S" = "ln -s"; then 3417 echo "$as_me:$LINENO: result: yes" >&5 3418echo "${ECHO_T}yes" >&6 3419else 3420 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3421echo "${ECHO_T}no, using $LN_S" >&6 3422fi 3423 3424 3425 3426ac_ext=cc 3427ac_cpp='$CXXCPP $CPPFLAGS' 3428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3431if test -n "$ac_tool_prefix"; then 3432 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3433 do 3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3435set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3436echo "$as_me:$LINENO: checking for $ac_word" >&5 3437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3438if test "${ac_cv_prog_CXX+set}" = set; then 3439 echo $ECHO_N "(cached) $ECHO_C" >&6 3440else 3441 if test -n "$CXX"; then 3442 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3443else 3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3445for as_dir in $PATH 3446do 3447 IFS=$as_save_IFS 3448 test -z "$as_dir" && as_dir=. 3449 for ac_exec_ext in '' $ac_executable_extensions; do 3450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3451 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3453 break 2 3454 fi 3455done 3456done 3457 3458fi 3459fi 3460CXX=$ac_cv_prog_CXX 3461if test -n "$CXX"; then 3462 echo "$as_me:$LINENO: result: $CXX" >&5 3463echo "${ECHO_T}$CXX" >&6 3464else 3465 echo "$as_me:$LINENO: result: no" >&5 3466echo "${ECHO_T}no" >&6 3467fi 3468 3469 test -n "$CXX" && break 3470 done 3471fi 3472if test -z "$CXX"; then 3473 ac_ct_CXX=$CXX 3474 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3475do 3476 # Extract the first word of "$ac_prog", so it can be a program name with args. 3477set dummy $ac_prog; ac_word=$2 3478echo "$as_me:$LINENO: checking for $ac_word" >&5 3479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3480if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3481 echo $ECHO_N "(cached) $ECHO_C" >&6 3482else 3483 if test -n "$ac_ct_CXX"; then 3484 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3485else 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 3489 IFS=$as_save_IFS 3490 test -z "$as_dir" && as_dir=. 3491 for ac_exec_ext in '' $ac_executable_extensions; do 3492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3493 ac_cv_prog_ac_ct_CXX="$ac_prog" 3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3495 break 2 3496 fi 3497done 3498done 3499 3500fi 3501fi 3502ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3503if test -n "$ac_ct_CXX"; then 3504 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3505echo "${ECHO_T}$ac_ct_CXX" >&6 3506else 3507 echo "$as_me:$LINENO: result: no" >&5 3508echo "${ECHO_T}no" >&6 3509fi 3510 3511 test -n "$ac_ct_CXX" && break 3512done 3513test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3514 3515 CXX=$ac_ct_CXX 3516fi 3517 3518 3519# Provide some information about the compiler. 3520echo "$as_me:$LINENO:" \ 3521 "checking for C++ compiler version" >&5 3522ac_compiler=`set X $ac_compile; echo $2` 3523{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3524 (eval $ac_compiler --version </dev/null >&5) 2>&5 3525 ac_status=$? 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); } 3528{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3529 (eval $ac_compiler -v </dev/null >&5) 2>&5 3530 ac_status=$? 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); } 3533{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3534 (eval $ac_compiler -V </dev/null >&5) 2>&5 3535 ac_status=$? 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3537 (exit $ac_status); } 3538 3539echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3540echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3541if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3542 echo $ECHO_N "(cached) $ECHO_C" >&6 3543else 3544 cat >conftest.$ac_ext <<_ACEOF 3545/* confdefs.h. */ 3546_ACEOF 3547cat confdefs.h >>conftest.$ac_ext 3548cat >>conftest.$ac_ext <<_ACEOF 3549/* end confdefs.h. */ 3550 3551int 3552main () 3553{ 3554#ifndef __GNUC__ 3555 choke me 3556#endif 3557 3558 ; 3559 return 0; 3560} 3561_ACEOF 3562rm -f conftest.$ac_objext 3563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3564 (eval $ac_compile) 2>conftest.er1 3565 ac_status=$? 3566 grep -v '^ *+' conftest.er1 >conftest.err 3567 rm -f conftest.er1 3568 cat conftest.err >&5 3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3570 (exit $ac_status); } && 3571 { ac_try='test -z "$ac_cxx_werror_flag" 3572 || test ! -s conftest.err' 3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3574 (eval $ac_try) 2>&5 3575 ac_status=$? 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3577 (exit $ac_status); }; } && 3578 { ac_try='test -s conftest.$ac_objext' 3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3580 (eval $ac_try) 2>&5 3581 ac_status=$? 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3583 (exit $ac_status); }; }; then 3584 ac_compiler_gnu=yes 3585else 3586 echo "$as_me: failed program was:" >&5 3587sed 's/^/| /' conftest.$ac_ext >&5 3588 3589ac_compiler_gnu=no 3590fi 3591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3592ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3593 3594fi 3595echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3596echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3597GXX=`test $ac_compiler_gnu = yes && echo yes` 3598ac_test_CXXFLAGS=${CXXFLAGS+set} 3599ac_save_CXXFLAGS=$CXXFLAGS 3600CXXFLAGS="-g" 3601echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3602echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3603if test "${ac_cv_prog_cxx_g+set}" = set; then 3604 echo $ECHO_N "(cached) $ECHO_C" >&6 3605else 3606 cat >conftest.$ac_ext <<_ACEOF 3607/* confdefs.h. */ 3608_ACEOF 3609cat confdefs.h >>conftest.$ac_ext 3610cat >>conftest.$ac_ext <<_ACEOF 3611/* end confdefs.h. */ 3612 3613int 3614main () 3615{ 3616 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621rm -f conftest.$ac_objext 3622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3623 (eval $ac_compile) 2>conftest.er1 3624 ac_status=$? 3625 grep -v '^ *+' conftest.er1 >conftest.err 3626 rm -f conftest.er1 3627 cat conftest.err >&5 3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3629 (exit $ac_status); } && 3630 { ac_try='test -z "$ac_cxx_werror_flag" 3631 || test ! -s conftest.err' 3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3633 (eval $ac_try) 2>&5 3634 ac_status=$? 3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3636 (exit $ac_status); }; } && 3637 { ac_try='test -s conftest.$ac_objext' 3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3639 (eval $ac_try) 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); }; }; then 3643 ac_cv_prog_cxx_g=yes 3644else 3645 echo "$as_me: failed program was:" >&5 3646sed 's/^/| /' conftest.$ac_ext >&5 3647 3648ac_cv_prog_cxx_g=no 3649fi 3650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3651fi 3652echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3653echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3654if test "$ac_test_CXXFLAGS" = set; then 3655 CXXFLAGS=$ac_save_CXXFLAGS 3656elif test $ac_cv_prog_cxx_g = yes; then 3657 if test "$GXX" = yes; then 3658 CXXFLAGS="-g -O2" 3659 else 3660 CXXFLAGS="-g" 3661 fi 3662else 3663 if test "$GXX" = yes; then 3664 CXXFLAGS="-O2" 3665 else 3666 CXXFLAGS= 3667 fi 3668fi 3669for ac_declaration in \ 3670 '' \ 3671 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3672 'extern "C" void std::exit (int); using std::exit;' \ 3673 'extern "C" void exit (int) throw ();' \ 3674 'extern "C" void exit (int);' \ 3675 'void exit (int);' 3676do 3677 cat >conftest.$ac_ext <<_ACEOF 3678/* confdefs.h. */ 3679_ACEOF 3680cat confdefs.h >>conftest.$ac_ext 3681cat >>conftest.$ac_ext <<_ACEOF 3682/* end confdefs.h. */ 3683$ac_declaration 3684#include <stdlib.h> 3685int 3686main () 3687{ 3688exit (42); 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693rm -f conftest.$ac_objext 3694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3695 (eval $ac_compile) 2>conftest.er1 3696 ac_status=$? 3697 grep -v '^ *+' conftest.er1 >conftest.err 3698 rm -f conftest.er1 3699 cat conftest.err >&5 3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3701 (exit $ac_status); } && 3702 { ac_try='test -z "$ac_cxx_werror_flag" 3703 || test ! -s conftest.err' 3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3705 (eval $ac_try) 2>&5 3706 ac_status=$? 3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 (exit $ac_status); }; } && 3709 { ac_try='test -s conftest.$ac_objext' 3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3711 (eval $ac_try) 2>&5 3712 ac_status=$? 3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3714 (exit $ac_status); }; }; then 3715 : 3716else 3717 echo "$as_me: failed program was:" >&5 3718sed 's/^/| /' conftest.$ac_ext >&5 3719 3720continue 3721fi 3722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3723 cat >conftest.$ac_ext <<_ACEOF 3724/* confdefs.h. */ 3725_ACEOF 3726cat confdefs.h >>conftest.$ac_ext 3727cat >>conftest.$ac_ext <<_ACEOF 3728/* end confdefs.h. */ 3729$ac_declaration 3730int 3731main () 3732{ 3733exit (42); 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738rm -f conftest.$ac_objext 3739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3740 (eval $ac_compile) 2>conftest.er1 3741 ac_status=$? 3742 grep -v '^ *+' conftest.er1 >conftest.err 3743 rm -f conftest.er1 3744 cat conftest.err >&5 3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3746 (exit $ac_status); } && 3747 { ac_try='test -z "$ac_cxx_werror_flag" 3748 || test ! -s conftest.err' 3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3750 (eval $ac_try) 2>&5 3751 ac_status=$? 3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3753 (exit $ac_status); }; } && 3754 { ac_try='test -s conftest.$ac_objext' 3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3756 (eval $ac_try) 2>&5 3757 ac_status=$? 3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3759 (exit $ac_status); }; }; then 3760 break 3761else 3762 echo "$as_me: failed program was:" >&5 3763sed 's/^/| /' conftest.$ac_ext >&5 3764 3765fi 3766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3767done 3768rm -f conftest* 3769if test -n "$ac_declaration"; then 3770 echo '#ifdef __cplusplus' >>confdefs.h 3771 echo $ac_declaration >>confdefs.h 3772 echo '#endif' >>confdefs.h 3773fi 3774 3775ac_ext=c 3776ac_cpp='$CPP $CPPFLAGS' 3777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3779ac_compiler_gnu=$ac_cv_c_compiler_gnu 3780 3781depcc="$CXX" am_compiler_list= 3782 3783echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3784echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3785if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3786 echo $ECHO_N "(cached) $ECHO_C" >&6 3787else 3788 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3789 # We make a subdir and do the tests there. Otherwise we can end up 3790 # making bogus files that we don't know about and never remove. For 3791 # instance it was reported that on HP-UX the gcc test will end up 3792 # making a dummy file named `D' -- because `-MD' means `put the output 3793 # in D'. 3794 mkdir conftest.dir 3795 # Copy depcomp to subdir because otherwise we won't find it if we're 3796 # using a relative directory. 3797 cp "$am_depcomp" conftest.dir 3798 cd conftest.dir 3799 # We will build objects and dependencies in a subdirectory because 3800 # it helps to detect inapplicable dependency modes. For instance 3801 # both Tru64's cc and ICC support -MD to output dependencies as a 3802 # side effect of compilation, but ICC will put the dependencies in 3803 # the current directory while Tru64 will put them in the object 3804 # directory. 3805 mkdir sub 3806 3807 am_cv_CXX_dependencies_compiler_type=none 3808 if test "$am_compiler_list" = ""; then 3809 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3810 fi 3811 for depmode in $am_compiler_list; do 3812 # Setup a source with many dependencies, because some compilers 3813 # like to wrap large dependency lists on column 80 (with \), and 3814 # we should not choose a depcomp mode which is confused by this. 3815 # 3816 # We need to recreate these files for each test, as the compiler may 3817 # overwrite some of them when testing with obscure command lines. 3818 # This happens at least with the AIX C compiler. 3819 : > sub/conftest.c 3820 for i in 1 2 3 4 5 6; do 3821 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3823 # Solaris 8's {/usr,}/bin/sh. 3824 touch sub/conftst$i.h 3825 done 3826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3827 3828 case $depmode in 3829 nosideeffect) 3830 # after this tag, mechanisms are not by side-effect, so they'll 3831 # only be used when explicitly requested 3832 if test "x$enable_dependency_tracking" = xyes; then 3833 continue 3834 else 3835 break 3836 fi 3837 ;; 3838 none) break ;; 3839 esac 3840 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3841 # mode. It turns out that the SunPro C++ compiler does not properly 3842 # handle `-M -o', and we need to detect this. 3843 if depmode=$depmode \ 3844 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3846 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3847 >/dev/null 2>conftest.err && 3848 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3849 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3850 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3851 # icc doesn't choke on unknown options, it will just issue warnings 3852 # or remarks (even with -Werror). So we grep stderr for any message 3853 # that says an option was ignored or not supported. 3854 # When given -MP, icc 7.0 and 7.1 complain thusly: 3855 # icc: Command line warning: ignoring option '-M'; no argument required 3856 # The diagnosis changed in icc 8.0: 3857 # icc: Command line remark: option '-MP' not supported 3858 if (grep 'ignoring option' conftest.err || 3859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3860 am_cv_CXX_dependencies_compiler_type=$depmode 3861 break 3862 fi 3863 fi 3864 done 3865 3866 cd .. 3867 rm -rf conftest.dir 3868else 3869 am_cv_CXX_dependencies_compiler_type=none 3870fi 3871 3872fi 3873echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3874echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 3875CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3876 3877 3878 3879if 3880 test "x$enable_dependency_tracking" != xno \ 3881 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3882 am__fastdepCXX_TRUE= 3883 am__fastdepCXX_FALSE='#' 3884else 3885 am__fastdepCXX_TRUE='#' 3886 am__fastdepCXX_FALSE= 3887fi 3888 3889 3890 3891 3892 3893if test -n "$CXX" && ( test "X$CXX" != "Xno" && 3894 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 3895 (test "X$CXX" != "Xg++"))); then 3896 HAVE_CXX_TRUE= 3897 HAVE_CXX_FALSE='#' 3898else 3899 HAVE_CXX_TRUE='#' 3900 HAVE_CXX_FALSE= 3901fi 3902 3903 3904 3905ac_ext=f 3906ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3907ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3908ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3909if test -n "$ac_tool_prefix"; then 3910 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 3911 do 3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3913set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3914echo "$as_me:$LINENO: checking for $ac_word" >&5 3915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3916if test "${ac_cv_prog_F77+set}" = set; then 3917 echo $ECHO_N "(cached) $ECHO_C" >&6 3918else 3919 if test -n "$F77"; then 3920 ac_cv_prog_F77="$F77" # Let the user override the test. 3921else 3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3923for as_dir in $PATH 3924do 3925 IFS=$as_save_IFS 3926 test -z "$as_dir" && as_dir=. 3927 for ac_exec_ext in '' $ac_executable_extensions; do 3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3929 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3931 break 2 3932 fi 3933done 3934done 3935 3936fi 3937fi 3938F77=$ac_cv_prog_F77 3939if test -n "$F77"; then 3940 echo "$as_me:$LINENO: result: $F77" >&5 3941echo "${ECHO_T}$F77" >&6 3942else 3943 echo "$as_me:$LINENO: result: no" >&5 3944echo "${ECHO_T}no" >&6 3945fi 3946 3947 test -n "$F77" && break 3948 done 3949fi 3950if test -z "$F77"; then 3951 ac_ct_F77=$F77 3952 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 3953do 3954 # Extract the first word of "$ac_prog", so it can be a program name with args. 3955set dummy $ac_prog; ac_word=$2 3956echo "$as_me:$LINENO: checking for $ac_word" >&5 3957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3958if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 3959 echo $ECHO_N "(cached) $ECHO_C" >&6 3960else 3961 if test -n "$ac_ct_F77"; then 3962 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 3963else 3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3965for as_dir in $PATH 3966do 3967 IFS=$as_save_IFS 3968 test -z "$as_dir" && as_dir=. 3969 for ac_exec_ext in '' $ac_executable_extensions; do 3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3971 ac_cv_prog_ac_ct_F77="$ac_prog" 3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3973 break 2 3974 fi 3975done 3976done 3977 3978fi 3979fi 3980ac_ct_F77=$ac_cv_prog_ac_ct_F77 3981if test -n "$ac_ct_F77"; then 3982 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 3983echo "${ECHO_T}$ac_ct_F77" >&6 3984else 3985 echo "$as_me:$LINENO: result: no" >&5 3986echo "${ECHO_T}no" >&6 3987fi 3988 3989 test -n "$ac_ct_F77" && break 3990done 3991 3992 F77=$ac_ct_F77 3993fi 3994 3995 3996# Provide some information about the compiler. 3997echo "$as_me:3997:" \ 3998 "checking for Fortran 77 compiler version" >&5 3999ac_compiler=`set X $ac_compile; echo $2` 4000{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4001 (eval $ac_compiler --version </dev/null >&5) 2>&5 4002 ac_status=$? 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); } 4005{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4006 (eval $ac_compiler -v </dev/null >&5) 2>&5 4007 ac_status=$? 4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4009 (exit $ac_status); } 4010{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4011 (eval $ac_compiler -V </dev/null >&5) 2>&5 4012 ac_status=$? 4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4014 (exit $ac_status); } 4015rm -f a.out 4016 4017# If we don't use `.F' as extension, the preprocessor is not run on the 4018# input file. (Note that this only needs to work for GNU compilers.) 4019ac_save_ext=$ac_ext 4020ac_ext=F 4021echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4022echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4023if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4024 echo $ECHO_N "(cached) $ECHO_C" >&6 4025else 4026 cat >conftest.$ac_ext <<_ACEOF 4027 program main 4028#ifndef __GNUC__ 4029 choke me 4030#endif 4031 4032 end 4033_ACEOF 4034rm -f conftest.$ac_objext 4035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4036 (eval $ac_compile) 2>conftest.er1 4037 ac_status=$? 4038 grep -v '^ *+' conftest.er1 >conftest.err 4039 rm -f conftest.er1 4040 cat conftest.err >&5 4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4042 (exit $ac_status); } && 4043 { ac_try='test -z "$ac_f77_werror_flag" 4044 || test ! -s conftest.err' 4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4046 (eval $ac_try) 2>&5 4047 ac_status=$? 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); }; } && 4050 { ac_try='test -s conftest.$ac_objext' 4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4052 (eval $ac_try) 2>&5 4053 ac_status=$? 4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4055 (exit $ac_status); }; }; then 4056 ac_compiler_gnu=yes 4057else 4058 echo "$as_me: failed program was:" >&5 4059sed 's/^/| /' conftest.$ac_ext >&5 4060 4061ac_compiler_gnu=no 4062fi 4063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4064ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4065 4066fi 4067echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4068echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4069ac_ext=$ac_save_ext 4070ac_test_FFLAGS=${FFLAGS+set} 4071ac_save_FFLAGS=$FFLAGS 4072FFLAGS= 4073echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4074echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4075if test "${ac_cv_prog_f77_g+set}" = set; then 4076 echo $ECHO_N "(cached) $ECHO_C" >&6 4077else 4078 FFLAGS=-g 4079cat >conftest.$ac_ext <<_ACEOF 4080 program main 4081 4082 end 4083_ACEOF 4084rm -f conftest.$ac_objext 4085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4086 (eval $ac_compile) 2>conftest.er1 4087 ac_status=$? 4088 grep -v '^ *+' conftest.er1 >conftest.err 4089 rm -f conftest.er1 4090 cat conftest.err >&5 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4092 (exit $ac_status); } && 4093 { ac_try='test -z "$ac_f77_werror_flag" 4094 || test ! -s conftest.err' 4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4096 (eval $ac_try) 2>&5 4097 ac_status=$? 4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4099 (exit $ac_status); }; } && 4100 { ac_try='test -s conftest.$ac_objext' 4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4102 (eval $ac_try) 2>&5 4103 ac_status=$? 4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4105 (exit $ac_status); }; }; then 4106 ac_cv_prog_f77_g=yes 4107else 4108 echo "$as_me: failed program was:" >&5 4109sed 's/^/| /' conftest.$ac_ext >&5 4110 4111ac_cv_prog_f77_g=no 4112fi 4113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4114 4115fi 4116echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4117echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4118if test "$ac_test_FFLAGS" = set; then 4119 FFLAGS=$ac_save_FFLAGS 4120elif test $ac_cv_prog_f77_g = yes; then 4121 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4122 FFLAGS="-g -O2" 4123 else 4124 FFLAGS="-g" 4125 fi 4126else 4127 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4128 FFLAGS="-O2" 4129 else 4130 FFLAGS= 4131 fi 4132fi 4133 4134G77=`test $ac_compiler_gnu = yes && echo yes` 4135ac_ext=c 4136ac_cpp='$CPP $CPPFLAGS' 4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4139ac_compiler_gnu=$ac_cv_c_compiler_gnu 4140 4141 4142if test -z "$F77"; then 4143 F77="no" 4144fi 4145 4146 4147if test "x$F77" != xno; then 4148 HAVE_F77_TRUE= 4149 HAVE_F77_FALSE='#' 4150else 4151 HAVE_F77_TRUE='#' 4152 HAVE_F77_FALSE= 4153fi 4154 4155 4156if test -n "$ac_tool_prefix"; then 4157 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args. 4158set dummy ${ac_tool_prefix}gcj; ac_word=$2 4159echo "$as_me:$LINENO: checking for $ac_word" >&5 4160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4161if test "${ac_cv_prog_GCJ+set}" = set; then 4162 echo $ECHO_N "(cached) $ECHO_C" >&6 4163else 4164 if test -n "$GCJ"; then 4165 ac_cv_prog_GCJ="$GCJ" # Let the user override the test. 4166else 4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4168for as_dir in $PATH 4169do 4170 IFS=$as_save_IFS 4171 test -z "$as_dir" && as_dir=. 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4174 ac_cv_prog_GCJ="${ac_tool_prefix}gcj" 4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4176 break 2 4177 fi 4178done 4179done 4180 4181fi 4182fi 4183GCJ=$ac_cv_prog_GCJ 4184if test -n "$GCJ"; then 4185 echo "$as_me:$LINENO: result: $GCJ" >&5 4186echo "${ECHO_T}$GCJ" >&6 4187else 4188 echo "$as_me:$LINENO: result: no" >&5 4189echo "${ECHO_T}no" >&6 4190fi 4191 4192fi 4193if test -z "$ac_cv_prog_GCJ"; then 4194 ac_ct_GCJ=$GCJ 4195 # Extract the first word of "gcj", so it can be a program name with args. 4196set dummy gcj; ac_word=$2 4197echo "$as_me:$LINENO: checking for $ac_word" >&5 4198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4199if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then 4200 echo $ECHO_N "(cached) $ECHO_C" >&6 4201else 4202 if test -n "$ac_ct_GCJ"; then 4203 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. 4204else 4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4206for as_dir in $PATH 4207do 4208 IFS=$as_save_IFS 4209 test -z "$as_dir" && as_dir=. 4210 for ac_exec_ext in '' $ac_executable_extensions; do 4211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4212 ac_cv_prog_ac_ct_GCJ="gcj" 4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4214 break 2 4215 fi 4216done 4217done 4218 4219 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no" 4220fi 4221fi 4222ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ 4223if test -n "$ac_ct_GCJ"; then 4224 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5 4225echo "${ECHO_T}$ac_ct_GCJ" >&6 4226else 4227 echo "$as_me:$LINENO: result: no" >&5 4228echo "${ECHO_T}no" >&6 4229fi 4230 4231 GCJ=$ac_ct_GCJ 4232else 4233 GCJ="$ac_cv_prog_GCJ" 4234fi 4235 4236 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 4237 4238 4239 4240 4241if test "x$GCJ" != xno; then 4242 HAVE_GCJ_TRUE= 4243 HAVE_GCJ_FALSE='#' 4244else 4245 HAVE_GCJ_TRUE='#' 4246 HAVE_GCJ_FALSE= 4247fi 4248 4249 4250if test -n "$ac_tool_prefix"; then 4251 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 4252set dummy ${ac_tool_prefix}windres; ac_word=$2 4253echo "$as_me:$LINENO: checking for $ac_word" >&5 4254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4255if test "${ac_cv_prog_RC+set}" = set; then 4256 echo $ECHO_N "(cached) $ECHO_C" >&6 4257else 4258 if test -n "$RC"; then 4259 ac_cv_prog_RC="$RC" # Let the user override the test. 4260else 4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4262for as_dir in $PATH 4263do 4264 IFS=$as_save_IFS 4265 test -z "$as_dir" && as_dir=. 4266 for ac_exec_ext in '' $ac_executable_extensions; do 4267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4268 ac_cv_prog_RC="${ac_tool_prefix}windres" 4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4270 break 2 4271 fi 4272done 4273done 4274 4275fi 4276fi 4277RC=$ac_cv_prog_RC 4278if test -n "$RC"; then 4279 echo "$as_me:$LINENO: result: $RC" >&5 4280echo "${ECHO_T}$RC" >&6 4281else 4282 echo "$as_me:$LINENO: result: no" >&5 4283echo "${ECHO_T}no" >&6 4284fi 4285 4286fi 4287if test -z "$ac_cv_prog_RC"; then 4288 ac_ct_RC=$RC 4289 # Extract the first word of "windres", so it can be a program name with args. 4290set dummy windres; ac_word=$2 4291echo "$as_me:$LINENO: checking for $ac_word" >&5 4292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4293if test "${ac_cv_prog_ac_ct_RC+set}" = set; then 4294 echo $ECHO_N "(cached) $ECHO_C" >&6 4295else 4296 if test -n "$ac_ct_RC"; then 4297 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 4298else 4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300for as_dir in $PATH 4301do 4302 IFS=$as_save_IFS 4303 test -z "$as_dir" && as_dir=. 4304 for ac_exec_ext in '' $ac_executable_extensions; do 4305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4306 ac_cv_prog_ac_ct_RC="windres" 4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4308 break 2 4309 fi 4310done 4311done 4312 4313 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC="no" 4314fi 4315fi 4316ac_ct_RC=$ac_cv_prog_ac_ct_RC 4317if test -n "$ac_ct_RC"; then 4318 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5 4319echo "${ECHO_T}$ac_ct_RC" >&6 4320else 4321 echo "$as_me:$LINENO: result: no" >&5 4322echo "${ECHO_T}no" >&6 4323fi 4324 4325 RC=$ac_ct_RC 4326else 4327 RC="$ac_cv_prog_RC" 4328fi 4329 4330 4331 4332 4333if test "x$RC" != xno; then 4334 HAVE_RC_TRUE= 4335 HAVE_RC_FALSE='#' 4336else 4337 HAVE_RC_TRUE='#' 4338 HAVE_RC_FALSE= 4339fi 4340 4341 4342 4343 4344## ----------------------- ## 4345## Libtool initialisation. ## 4346## ----------------------- ## 4347 4348 4349 4350 4351# Check whether --enable-shared or --disable-shared was given. 4352if test "${enable_shared+set}" = set; then 4353 enableval="$enable_shared" 4354 p=${PACKAGE-default} 4355 case $enableval in 4356 yes) enable_shared=yes ;; 4357 no) enable_shared=no ;; 4358 *) 4359 enable_shared=no 4360 # Look at the argument we got. We use all the common list separators. 4361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4362 for pkg in $enableval; do 4363 IFS="$lt_save_ifs" 4364 if test "X$pkg" = "X$p"; then 4365 enable_shared=yes 4366 fi 4367 done 4368 IFS="$lt_save_ifs" 4369 ;; 4370 esac 4371else 4372 enable_shared=yes 4373fi; 4374 4375# Check whether --enable-static or --disable-static was given. 4376if test "${enable_static+set}" = set; then 4377 enableval="$enable_static" 4378 p=${PACKAGE-default} 4379 case $enableval in 4380 yes) enable_static=yes ;; 4381 no) enable_static=no ;; 4382 *) 4383 enable_static=no 4384 # Look at the argument we got. We use all the common list separators. 4385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4386 for pkg in $enableval; do 4387 IFS="$lt_save_ifs" 4388 if test "X$pkg" = "X$p"; then 4389 enable_static=yes 4390 fi 4391 done 4392 IFS="$lt_save_ifs" 4393 ;; 4394 esac 4395else 4396 enable_static=yes 4397fi; 4398 4399# Check whether --enable-fast-install or --disable-fast-install was given. 4400if test "${enable_fast_install+set}" = set; then 4401 enableval="$enable_fast_install" 4402 p=${PACKAGE-default} 4403 case $enableval in 4404 yes) enable_fast_install=yes ;; 4405 no) enable_fast_install=no ;; 4406 *) 4407 enable_fast_install=no 4408 # Look at the argument we got. We use all the common list separators. 4409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4410 for pkg in $enableval; do 4411 IFS="$lt_save_ifs" 4412 if test "X$pkg" = "X$p"; then 4413 enable_fast_install=yes 4414 fi 4415 done 4416 IFS="$lt_save_ifs" 4417 ;; 4418 esac 4419else 4420 enable_fast_install=yes 4421fi; 4422 4423echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4424echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4425if test "${lt_cv_ld_reload_flag+set}" = set; then 4426 echo $ECHO_N "(cached) $ECHO_C" >&6 4427else 4428 lt_cv_ld_reload_flag='-r' 4429fi 4430echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4431echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4432reload_flag=$lt_cv_ld_reload_flag 4433case $reload_flag in 4434"" | " "*) ;; 4435*) reload_flag=" $reload_flag" ;; 4436esac 4437reload_cmds='$LD$reload_flag -o $output$reload_objs' 4438case $host_os in 4439 darwin*) 4440 if test "$GCC" = yes; then 4441 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 4442 else 4443 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4444 fi 4445 ;; 4446esac 4447 4448echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4449echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4450if test "${lt_cv_deplibs_check_method+set}" = set; then 4451 echo $ECHO_N "(cached) $ECHO_C" >&6 4452else 4453 lt_cv_file_magic_cmd='$MAGIC_CMD' 4454lt_cv_file_magic_test_file= 4455lt_cv_deplibs_check_method='unknown' 4456# Need to set the preceding variable on all platforms that support 4457# interlibrary dependencies. 4458# 'none' -- dependencies not supported. 4459# `unknown' -- same as none, but documents that we really don't know. 4460# 'pass_all' -- all dependencies passed with no checks. 4461# 'test_compile' -- check by making test program. 4462# 'file_magic [[regex]]' -- check by looking for files in library path 4463# which responds to the $file_magic_cmd with a given extended regex. 4464# If you have `file' or equivalent on your system and you're not sure 4465# whether `pass_all' will *always* work, you probably want this one. 4466 4467case $host_os in 4468aix4* | aix5*) 4469 lt_cv_deplibs_check_method=pass_all 4470 ;; 4471 4472beos*) 4473 lt_cv_deplibs_check_method=pass_all 4474 ;; 4475 4476bsdi[45]*) 4477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4478 lt_cv_file_magic_cmd='/usr/bin/file -L' 4479 lt_cv_file_magic_test_file=/shlib/libc.so 4480 ;; 4481 4482cygwin*) 4483 # func_win32_libid is a shell function defined in ltmain.sh 4484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4485 lt_cv_file_magic_cmd='func_win32_libid' 4486 ;; 4487 4488mingw* | pw32*) 4489 # Base MSYS/MinGW do not provide the 'file' command needed by 4490 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4491 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4492 lt_cv_file_magic_cmd='$OBJDUMP -f' 4493 ;; 4494 4495darwin* | rhapsody*) 4496 lt_cv_deplibs_check_method=pass_all 4497 ;; 4498 4499freebsd* | kfreebsd*-gnu | dragonfly*) 4500 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4501 case $host_cpu in 4502 i*86 ) 4503 # Not sure whether the presence of OpenBSD here was a mistake. 4504 # Let's accept both of them until this is cleared up. 4505 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4506 lt_cv_file_magic_cmd=/usr/bin/file 4507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4508 ;; 4509 esac 4510 else 4511 lt_cv_deplibs_check_method=pass_all 4512 fi 4513 ;; 4514 4515gnu*) 4516 lt_cv_deplibs_check_method=pass_all 4517 ;; 4518 4519haiku*) 4520 lt_cv_deplibs_check_method=pass_all 4521 ;; 4522 4523hpux10.20* | hpux11*) 4524 lt_cv_file_magic_cmd=/usr/bin/file 4525 case $host_cpu in 4526 ia64*) 4527 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4528 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4529 ;; 4530 hppa*64*) 4531 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]' 4532 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4533 ;; 4534 *) 4535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4536 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4537 ;; 4538 esac 4539 ;; 4540 4541irix5* | irix6* | nonstopux*) 4542 case $LD in 4543 *-32|*"-32 ") libmagic=32-bit;; 4544 *-n32|*"-n32 ") libmagic=N32;; 4545 *-64|*"-64 ") libmagic=64-bit;; 4546 *) libmagic=never-match;; 4547 esac 4548 lt_cv_deplibs_check_method=pass_all 4549 ;; 4550 4551# This must be Linux ELF. 4552linux*) 4553 lt_cv_deplibs_check_method=pass_all 4554 ;; 4555 4556netbsd*) 4557 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4559 else 4560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4561 fi 4562 ;; 4563 4564newos6*) 4565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4566 lt_cv_file_magic_cmd=/usr/bin/file 4567 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4568 ;; 4569 4570nto-qnx*) 4571 lt_cv_deplibs_check_method=unknown 4572 ;; 4573 4574openbsd*) 4575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4577 else 4578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4579 fi 4580 ;; 4581 4582osf3* | osf4* | osf5*) 4583 lt_cv_deplibs_check_method=pass_all 4584 ;; 4585 4586sco3.2v5*) 4587 lt_cv_deplibs_check_method=pass_all 4588 ;; 4589 4590solaris*) 4591 lt_cv_deplibs_check_method=pass_all 4592 ;; 4593 4594sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4595 case $host_vendor in 4596 motorola) 4597 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]' 4598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4599 ;; 4600 ncr) 4601 lt_cv_deplibs_check_method=pass_all 4602 ;; 4603 sequent) 4604 lt_cv_file_magic_cmd='/bin/file' 4605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4606 ;; 4607 sni) 4608 lt_cv_file_magic_cmd='/bin/file' 4609 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4610 lt_cv_file_magic_test_file=/lib/libc.so 4611 ;; 4612 siemens) 4613 lt_cv_deplibs_check_method=pass_all 4614 ;; 4615 esac 4616 ;; 4617 4618sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4619 lt_cv_deplibs_check_method=pass_all 4620 ;; 4621esac 4622 4623fi 4624echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4625echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4626file_magic_cmd=$lt_cv_file_magic_cmd 4627deplibs_check_method=$lt_cv_deplibs_check_method 4628test -z "$deplibs_check_method" && deplibs_check_method=unknown 4629 4630 4631 4632# If no C compiler was specified, use CC. 4633LTCC=${LTCC-"$CC"} 4634 4635# Allow CC to be a program name with arguments. 4636compiler=$CC 4637 4638 4639# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4640if test "${enable_libtool_lock+set}" = set; then 4641 enableval="$enable_libtool_lock" 4642 4643fi; 4644test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4645 4646# Some flags need to be propagated to the compiler or linker for good 4647# libtool support. 4648case $host in 4649ia64-*-hpux*) 4650 # Find out which ABI we are using. 4651 echo 'int i;' > conftest.$ac_ext 4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4653 (eval $ac_compile) 2>&5 4654 ac_status=$? 4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4656 (exit $ac_status); }; then 4657 case `/usr/bin/file conftest.$ac_objext` in 4658 *ELF-32*) 4659 HPUX_IA64_MODE="32" 4660 ;; 4661 *ELF-64*) 4662 HPUX_IA64_MODE="64" 4663 ;; 4664 esac 4665 fi 4666 rm -rf conftest* 4667 ;; 4668*-*-irix6*) 4669 # Find out which ABI we are using. 4670 echo '#line 4670 "configure"' > conftest.$ac_ext 4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4672 (eval $ac_compile) 2>&5 4673 ac_status=$? 4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4675 (exit $ac_status); }; then 4676 if test "$lt_cv_prog_gnu_ld" = yes; then 4677 case `/usr/bin/file conftest.$ac_objext` in 4678 *32-bit*) 4679 LD="${LD-ld} -melf32bsmip" 4680 ;; 4681 *N32*) 4682 LD="${LD-ld} -melf32bmipn32" 4683 ;; 4684 *64-bit*) 4685 LD="${LD-ld} -melf64bmip" 4686 ;; 4687 esac 4688 else 4689 case `/usr/bin/file conftest.$ac_objext` in 4690 *32-bit*) 4691 LD="${LD-ld} -32" 4692 ;; 4693 *N32*) 4694 LD="${LD-ld} -n32" 4695 ;; 4696 *64-bit*) 4697 LD="${LD-ld} -64" 4698 ;; 4699 esac 4700 fi 4701 fi 4702 rm -rf conftest* 4703 ;; 4704 4705x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4706 # Find out which ABI we are using. 4707 echo 'int i;' > conftest.$ac_ext 4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4709 (eval $ac_compile) 2>&5 4710 ac_status=$? 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4712 (exit $ac_status); }; then 4713 case `/usr/bin/file conftest.o` in 4714 *32-bit*) 4715 case $host in 4716 x86_64-*linux*) 4717 LD="${LD-ld} -m elf_i386" 4718 ;; 4719 ppc64-*linux*|powerpc64-*linux*) 4720 LD="${LD-ld} -m elf32ppclinux" 4721 ;; 4722 s390x-*linux*) 4723 LD="${LD-ld} -m elf_s390" 4724 ;; 4725 sparc64-*linux*) 4726 LD="${LD-ld} -m elf32_sparc" 4727 ;; 4728 esac 4729 ;; 4730 *64-bit*) 4731 case $host in 4732 x86_64-*linux*) 4733 LD="${LD-ld} -m elf_x86_64" 4734 ;; 4735 ppc*-*linux*|powerpc*-*linux*) 4736 LD="${LD-ld} -m elf64ppc" 4737 ;; 4738 s390*-*linux*) 4739 LD="${LD-ld} -m elf64_s390" 4740 ;; 4741 sparc*-*linux*) 4742 LD="${LD-ld} -m elf64_sparc" 4743 ;; 4744 esac 4745 ;; 4746 esac 4747 fi 4748 rm -rf conftest* 4749 ;; 4750 4751*-*-sco3.2v5*) 4752 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4753 SAVE_CFLAGS="$CFLAGS" 4754 CFLAGS="$CFLAGS -belf" 4755 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4756echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4757if test "${lt_cv_cc_needs_belf+set}" = set; then 4758 echo $ECHO_N "(cached) $ECHO_C" >&6 4759else 4760 ac_ext=c 4761ac_cpp='$CPP $CPPFLAGS' 4762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4764ac_compiler_gnu=$ac_cv_c_compiler_gnu 4765 4766 cat >conftest.$ac_ext <<_ACEOF 4767/* confdefs.h. */ 4768_ACEOF 4769cat confdefs.h >>conftest.$ac_ext 4770cat >>conftest.$ac_ext <<_ACEOF 4771/* end confdefs.h. */ 4772 4773int 4774main () 4775{ 4776 4777 ; 4778 return 0; 4779} 4780_ACEOF 4781rm -f conftest.$ac_objext conftest$ac_exeext 4782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4783 (eval $ac_link) 2>conftest.er1 4784 ac_status=$? 4785 grep -v '^ *+' conftest.er1 >conftest.err 4786 rm -f conftest.er1 4787 cat conftest.err >&5 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); } && 4790 { ac_try='test -z "$ac_c_werror_flag" 4791 || test ! -s conftest.err' 4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4793 (eval $ac_try) 2>&5 4794 ac_status=$? 4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4796 (exit $ac_status); }; } && 4797 { ac_try='test -s conftest$ac_exeext' 4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4799 (eval $ac_try) 2>&5 4800 ac_status=$? 4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4802 (exit $ac_status); }; }; then 4803 lt_cv_cc_needs_belf=yes 4804else 4805 echo "$as_me: failed program was:" >&5 4806sed 's/^/| /' conftest.$ac_ext >&5 4807 4808lt_cv_cc_needs_belf=no 4809fi 4810rm -f conftest.err conftest.$ac_objext \ 4811 conftest$ac_exeext conftest.$ac_ext 4812 ac_ext=c 4813ac_cpp='$CPP $CPPFLAGS' 4814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4816ac_compiler_gnu=$ac_cv_c_compiler_gnu 4817 4818fi 4819echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4820echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4821 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4822 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4823 CFLAGS="$SAVE_CFLAGS" 4824 fi 4825 ;; 4826*-*-cygwin* | *-*-mingw* | *-*-pw32*) 4827 if test -n "$ac_tool_prefix"; then 4828 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4829set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4830echo "$as_me:$LINENO: checking for $ac_word" >&5 4831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4832if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4833 echo $ECHO_N "(cached) $ECHO_C" >&6 4834else 4835 if test -n "$DLLTOOL"; then 4836 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4837else 4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4839for as_dir in $PATH 4840do 4841 IFS=$as_save_IFS 4842 test -z "$as_dir" && as_dir=. 4843 for ac_exec_ext in '' $ac_executable_extensions; do 4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4845 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4847 break 2 4848 fi 4849done 4850done 4851 4852fi 4853fi 4854DLLTOOL=$ac_cv_prog_DLLTOOL 4855if test -n "$DLLTOOL"; then 4856 echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4857echo "${ECHO_T}$DLLTOOL" >&6 4858else 4859 echo "$as_me:$LINENO: result: no" >&5 4860echo "${ECHO_T}no" >&6 4861fi 4862 4863fi 4864if test -z "$ac_cv_prog_DLLTOOL"; then 4865 ac_ct_DLLTOOL=$DLLTOOL 4866 # Extract the first word of "dlltool", so it can be a program name with args. 4867set dummy dlltool; ac_word=$2 4868echo "$as_me:$LINENO: checking for $ac_word" >&5 4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4870if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4871 echo $ECHO_N "(cached) $ECHO_C" >&6 4872else 4873 if test -n "$ac_ct_DLLTOOL"; then 4874 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4875else 4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4877for as_dir in $PATH 4878do 4879 IFS=$as_save_IFS 4880 test -z "$as_dir" && as_dir=. 4881 for ac_exec_ext in '' $ac_executable_extensions; do 4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4883 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4885 break 2 4886 fi 4887done 4888done 4889 4890 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" 4891fi 4892fi 4893ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4894if test -n "$ac_ct_DLLTOOL"; then 4895 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4896echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 4897else 4898 echo "$as_me:$LINENO: result: no" >&5 4899echo "${ECHO_T}no" >&6 4900fi 4901 4902 DLLTOOL=$ac_ct_DLLTOOL 4903else 4904 DLLTOOL="$ac_cv_prog_DLLTOOL" 4905fi 4906 4907 if test -n "$ac_tool_prefix"; then 4908 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4909set dummy ${ac_tool_prefix}as; ac_word=$2 4910echo "$as_me:$LINENO: checking for $ac_word" >&5 4911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4912if test "${ac_cv_prog_AS+set}" = set; then 4913 echo $ECHO_N "(cached) $ECHO_C" >&6 4914else 4915 if test -n "$AS"; then 4916 ac_cv_prog_AS="$AS" # Let the user override the test. 4917else 4918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4919for as_dir in $PATH 4920do 4921 IFS=$as_save_IFS 4922 test -z "$as_dir" && as_dir=. 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4925 ac_cv_prog_AS="${ac_tool_prefix}as" 4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4927 break 2 4928 fi 4929done 4930done 4931 4932fi 4933fi 4934AS=$ac_cv_prog_AS 4935if test -n "$AS"; then 4936 echo "$as_me:$LINENO: result: $AS" >&5 4937echo "${ECHO_T}$AS" >&6 4938else 4939 echo "$as_me:$LINENO: result: no" >&5 4940echo "${ECHO_T}no" >&6 4941fi 4942 4943fi 4944if test -z "$ac_cv_prog_AS"; then 4945 ac_ct_AS=$AS 4946 # Extract the first word of "as", so it can be a program name with args. 4947set dummy as; ac_word=$2 4948echo "$as_me:$LINENO: checking for $ac_word" >&5 4949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4950if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4951 echo $ECHO_N "(cached) $ECHO_C" >&6 4952else 4953 if test -n "$ac_ct_AS"; then 4954 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4955else 4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4957for as_dir in $PATH 4958do 4959 IFS=$as_save_IFS 4960 test -z "$as_dir" && as_dir=. 4961 for ac_exec_ext in '' $ac_executable_extensions; do 4962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4963 ac_cv_prog_ac_ct_AS="as" 4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4965 break 2 4966 fi 4967done 4968done 4969 4970 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" 4971fi 4972fi 4973ac_ct_AS=$ac_cv_prog_ac_ct_AS 4974if test -n "$ac_ct_AS"; then 4975 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4976echo "${ECHO_T}$ac_ct_AS" >&6 4977else 4978 echo "$as_me:$LINENO: result: no" >&5 4979echo "${ECHO_T}no" >&6 4980fi 4981 4982 AS=$ac_ct_AS 4983else 4984 AS="$ac_cv_prog_AS" 4985fi 4986 4987 if test -n "$ac_tool_prefix"; then 4988 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4989set dummy ${ac_tool_prefix}objdump; ac_word=$2 4990echo "$as_me:$LINENO: checking for $ac_word" >&5 4991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4992if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4993 echo $ECHO_N "(cached) $ECHO_C" >&6 4994else 4995 if test -n "$OBJDUMP"; then 4996 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4997else 4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4999for as_dir in $PATH 5000do 5001 IFS=$as_save_IFS 5002 test -z "$as_dir" && as_dir=. 5003 for ac_exec_ext in '' $ac_executable_extensions; do 5004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5005 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5007 break 2 5008 fi 5009done 5010done 5011 5012fi 5013fi 5014OBJDUMP=$ac_cv_prog_OBJDUMP 5015if test -n "$OBJDUMP"; then 5016 echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5017echo "${ECHO_T}$OBJDUMP" >&6 5018else 5019 echo "$as_me:$LINENO: result: no" >&5 5020echo "${ECHO_T}no" >&6 5021fi 5022 5023fi 5024if test -z "$ac_cv_prog_OBJDUMP"; then 5025 ac_ct_OBJDUMP=$OBJDUMP 5026 # Extract the first word of "objdump", so it can be a program name with args. 5027set dummy objdump; ac_word=$2 5028echo "$as_me:$LINENO: checking for $ac_word" >&5 5029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5030if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5031 echo $ECHO_N "(cached) $ECHO_C" >&6 5032else 5033 if test -n "$ac_ct_OBJDUMP"; then 5034 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5035else 5036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5037for as_dir in $PATH 5038do 5039 IFS=$as_save_IFS 5040 test -z "$as_dir" && as_dir=. 5041 for ac_exec_ext in '' $ac_executable_extensions; do 5042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5043 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5045 break 2 5046 fi 5047done 5048done 5049 5050 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" 5051fi 5052fi 5053ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5054if test -n "$ac_ct_OBJDUMP"; then 5055 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5056echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 5057else 5058 echo "$as_me:$LINENO: result: no" >&5 5059echo "${ECHO_T}no" >&6 5060fi 5061 5062 OBJDUMP=$ac_ct_OBJDUMP 5063else 5064 OBJDUMP="$ac_cv_prog_OBJDUMP" 5065fi 5066 5067 ;; 5068 5069esac 5070 5071need_locks="$enable_libtool_lock" 5072 5073 5074ac_ext=c 5075ac_cpp='$CPP $CPPFLAGS' 5076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5078ac_compiler_gnu=$ac_cv_c_compiler_gnu 5079echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5080echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 5081# On Suns, sometimes $CPP names a directory. 5082if test -n "$CPP" && test -d "$CPP"; then 5083 CPP= 5084fi 5085if test -z "$CPP"; then 5086 if test "${ac_cv_prog_CPP+set}" = set; then 5087 echo $ECHO_N "(cached) $ECHO_C" >&6 5088else 5089 # Double quotes because CPP needs to be expanded 5090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5091 do 5092 ac_preproc_ok=false 5093for ac_c_preproc_warn_flag in '' yes 5094do 5095 # Use a header file that comes with gcc, so configuring glibc 5096 # with a fresh cross-compiler works. 5097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5098 # <limits.h> exists even on freestanding compilers. 5099 # On the NeXT, cc -E runs the code through the compiler's parser, 5100 # not just through cpp. "Syntax error" is here to catch this case. 5101 cat >conftest.$ac_ext <<_ACEOF 5102/* confdefs.h. */ 5103_ACEOF 5104cat confdefs.h >>conftest.$ac_ext 5105cat >>conftest.$ac_ext <<_ACEOF 5106/* end confdefs.h. */ 5107#ifdef __STDC__ 5108# include <limits.h> 5109#else 5110# include <assert.h> 5111#endif 5112 Syntax error 5113_ACEOF 5114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5116 ac_status=$? 5117 grep -v '^ *+' conftest.er1 >conftest.err 5118 rm -f conftest.er1 5119 cat conftest.err >&5 5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5121 (exit $ac_status); } >/dev/null; then 5122 if test -s conftest.err; then 5123 ac_cpp_err=$ac_c_preproc_warn_flag 5124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5125 else 5126 ac_cpp_err= 5127 fi 5128else 5129 ac_cpp_err=yes 5130fi 5131if test -z "$ac_cpp_err"; then 5132 : 5133else 5134 echo "$as_me: failed program was:" >&5 5135sed 's/^/| /' conftest.$ac_ext >&5 5136 5137 # Broken: fails on valid input. 5138continue 5139fi 5140rm -f conftest.err conftest.$ac_ext 5141 5142 # OK, works on sane cases. Now check whether non-existent headers 5143 # can be detected and how. 5144 cat >conftest.$ac_ext <<_ACEOF 5145/* confdefs.h. */ 5146_ACEOF 5147cat confdefs.h >>conftest.$ac_ext 5148cat >>conftest.$ac_ext <<_ACEOF 5149/* end confdefs.h. */ 5150#include <ac_nonexistent.h> 5151_ACEOF 5152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5154 ac_status=$? 5155 grep -v '^ *+' conftest.er1 >conftest.err 5156 rm -f conftest.er1 5157 cat conftest.err >&5 5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5159 (exit $ac_status); } >/dev/null; then 5160 if test -s conftest.err; then 5161 ac_cpp_err=$ac_c_preproc_warn_flag 5162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5163 else 5164 ac_cpp_err= 5165 fi 5166else 5167 ac_cpp_err=yes 5168fi 5169if test -z "$ac_cpp_err"; then 5170 # Broken: success on invalid input. 5171continue 5172else 5173 echo "$as_me: failed program was:" >&5 5174sed 's/^/| /' conftest.$ac_ext >&5 5175 5176 # Passes both tests. 5177ac_preproc_ok=: 5178break 5179fi 5180rm -f conftest.err conftest.$ac_ext 5181 5182done 5183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5184rm -f conftest.err conftest.$ac_ext 5185if $ac_preproc_ok; then 5186 break 5187fi 5188 5189 done 5190 ac_cv_prog_CPP=$CPP 5191 5192fi 5193 CPP=$ac_cv_prog_CPP 5194else 5195 ac_cv_prog_CPP=$CPP 5196fi 5197echo "$as_me:$LINENO: result: $CPP" >&5 5198echo "${ECHO_T}$CPP" >&6 5199ac_preproc_ok=false 5200for ac_c_preproc_warn_flag in '' yes 5201do 5202 # Use a header file that comes with gcc, so configuring glibc 5203 # with a fresh cross-compiler works. 5204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5205 # <limits.h> exists even on freestanding compilers. 5206 # On the NeXT, cc -E runs the code through the compiler's parser, 5207 # not just through cpp. "Syntax error" is here to catch this case. 5208 cat >conftest.$ac_ext <<_ACEOF 5209/* confdefs.h. */ 5210_ACEOF 5211cat confdefs.h >>conftest.$ac_ext 5212cat >>conftest.$ac_ext <<_ACEOF 5213/* end confdefs.h. */ 5214#ifdef __STDC__ 5215# include <limits.h> 5216#else 5217# include <assert.h> 5218#endif 5219 Syntax error 5220_ACEOF 5221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5223 ac_status=$? 5224 grep -v '^ *+' conftest.er1 >conftest.err 5225 rm -f conftest.er1 5226 cat conftest.err >&5 5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5228 (exit $ac_status); } >/dev/null; then 5229 if test -s conftest.err; then 5230 ac_cpp_err=$ac_c_preproc_warn_flag 5231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5232 else 5233 ac_cpp_err= 5234 fi 5235else 5236 ac_cpp_err=yes 5237fi 5238if test -z "$ac_cpp_err"; then 5239 : 5240else 5241 echo "$as_me: failed program was:" >&5 5242sed 's/^/| /' conftest.$ac_ext >&5 5243 5244 # Broken: fails on valid input. 5245continue 5246fi 5247rm -f conftest.err conftest.$ac_ext 5248 5249 # OK, works on sane cases. Now check whether non-existent headers 5250 # can be detected and how. 5251 cat >conftest.$ac_ext <<_ACEOF 5252/* confdefs.h. */ 5253_ACEOF 5254cat confdefs.h >>conftest.$ac_ext 5255cat >>conftest.$ac_ext <<_ACEOF 5256/* end confdefs.h. */ 5257#include <ac_nonexistent.h> 5258_ACEOF 5259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5261 ac_status=$? 5262 grep -v '^ *+' conftest.er1 >conftest.err 5263 rm -f conftest.er1 5264 cat conftest.err >&5 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 (exit $ac_status); } >/dev/null; then 5267 if test -s conftest.err; then 5268 ac_cpp_err=$ac_c_preproc_warn_flag 5269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5270 else 5271 ac_cpp_err= 5272 fi 5273else 5274 ac_cpp_err=yes 5275fi 5276if test -z "$ac_cpp_err"; then 5277 # Broken: success on invalid input. 5278continue 5279else 5280 echo "$as_me: failed program was:" >&5 5281sed 's/^/| /' conftest.$ac_ext >&5 5282 5283 # Passes both tests. 5284ac_preproc_ok=: 5285break 5286fi 5287rm -f conftest.err conftest.$ac_ext 5288 5289done 5290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5291rm -f conftest.err conftest.$ac_ext 5292if $ac_preproc_ok; then 5293 : 5294else 5295 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5296See \`config.log' for more details." >&5 5297echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5298See \`config.log' for more details." >&2;} 5299 { (exit 1); exit 1; }; } 5300fi 5301 5302ac_ext=c 5303ac_cpp='$CPP $CPPFLAGS' 5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5306ac_compiler_gnu=$ac_cv_c_compiler_gnu 5307 5308 5309echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5310echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5311if test "${ac_cv_header_stdc+set}" = set; then 5312 echo $ECHO_N "(cached) $ECHO_C" >&6 5313else 5314 cat >conftest.$ac_ext <<_ACEOF 5315/* confdefs.h. */ 5316_ACEOF 5317cat confdefs.h >>conftest.$ac_ext 5318cat >>conftest.$ac_ext <<_ACEOF 5319/* end confdefs.h. */ 5320#include <stdlib.h> 5321#include <stdarg.h> 5322#include <string.h> 5323#include <float.h> 5324 5325int 5326main () 5327{ 5328 5329 ; 5330 return 0; 5331} 5332_ACEOF 5333rm -f conftest.$ac_objext 5334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5335 (eval $ac_compile) 2>conftest.er1 5336 ac_status=$? 5337 grep -v '^ *+' conftest.er1 >conftest.err 5338 rm -f conftest.er1 5339 cat conftest.err >&5 5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); } && 5342 { ac_try='test -z "$ac_c_werror_flag" 5343 || test ! -s conftest.err' 5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5345 (eval $ac_try) 2>&5 5346 ac_status=$? 5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5348 (exit $ac_status); }; } && 5349 { ac_try='test -s conftest.$ac_objext' 5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5351 (eval $ac_try) 2>&5 5352 ac_status=$? 5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5354 (exit $ac_status); }; }; then 5355 ac_cv_header_stdc=yes 5356else 5357 echo "$as_me: failed program was:" >&5 5358sed 's/^/| /' conftest.$ac_ext >&5 5359 5360ac_cv_header_stdc=no 5361fi 5362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5363 5364if test $ac_cv_header_stdc = yes; then 5365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5366 cat >conftest.$ac_ext <<_ACEOF 5367/* confdefs.h. */ 5368_ACEOF 5369cat confdefs.h >>conftest.$ac_ext 5370cat >>conftest.$ac_ext <<_ACEOF 5371/* end confdefs.h. */ 5372#include <string.h> 5373 5374_ACEOF 5375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5376 $EGREP "memchr" >/dev/null 2>&1; then 5377 : 5378else 5379 ac_cv_header_stdc=no 5380fi 5381rm -f conftest* 5382 5383fi 5384 5385if test $ac_cv_header_stdc = yes; then 5386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5387 cat >conftest.$ac_ext <<_ACEOF 5388/* confdefs.h. */ 5389_ACEOF 5390cat confdefs.h >>conftest.$ac_ext 5391cat >>conftest.$ac_ext <<_ACEOF 5392/* end confdefs.h. */ 5393#include <stdlib.h> 5394 5395_ACEOF 5396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5397 $EGREP "free" >/dev/null 2>&1; then 5398 : 5399else 5400 ac_cv_header_stdc=no 5401fi 5402rm -f conftest* 5403 5404fi 5405 5406if test $ac_cv_header_stdc = yes; then 5407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5408 if test "$cross_compiling" = yes; then 5409 : 5410else 5411 cat >conftest.$ac_ext <<_ACEOF 5412/* confdefs.h. */ 5413_ACEOF 5414cat confdefs.h >>conftest.$ac_ext 5415cat >>conftest.$ac_ext <<_ACEOF 5416/* end confdefs.h. */ 5417#include <ctype.h> 5418#if ((' ' & 0x0FF) == 0x020) 5419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5421#else 5422# define ISLOWER(c) \ 5423 (('a' <= (c) && (c) <= 'i') \ 5424 || ('j' <= (c) && (c) <= 'r') \ 5425 || ('s' <= (c) && (c) <= 'z')) 5426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5427#endif 5428 5429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5430int 5431main () 5432{ 5433 int i; 5434 for (i = 0; i < 256; i++) 5435 if (XOR (islower (i), ISLOWER (i)) 5436 || toupper (i) != TOUPPER (i)) 5437 exit(2); 5438 exit (0); 5439} 5440_ACEOF 5441rm -f conftest$ac_exeext 5442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5443 (eval $ac_link) 2>&5 5444 ac_status=$? 5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5448 (eval $ac_try) 2>&5 5449 ac_status=$? 5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5451 (exit $ac_status); }; }; then 5452 : 5453else 5454 echo "$as_me: program exited with status $ac_status" >&5 5455echo "$as_me: failed program was:" >&5 5456sed 's/^/| /' conftest.$ac_ext >&5 5457 5458( exit $ac_status ) 5459ac_cv_header_stdc=no 5460fi 5461rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5462fi 5463fi 5464fi 5465echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5466echo "${ECHO_T}$ac_cv_header_stdc" >&6 5467if test $ac_cv_header_stdc = yes; then 5468 5469cat >>confdefs.h <<\_ACEOF 5470#define STDC_HEADERS 1 5471_ACEOF 5472 5473fi 5474 5475# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5486 inttypes.h stdint.h unistd.h 5487do 5488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5489echo "$as_me:$LINENO: checking for $ac_header" >&5 5490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5491if eval "test \"\${$as_ac_Header+set}\" = set"; then 5492 echo $ECHO_N "(cached) $ECHO_C" >&6 5493else 5494 cat >conftest.$ac_ext <<_ACEOF 5495/* confdefs.h. */ 5496_ACEOF 5497cat confdefs.h >>conftest.$ac_ext 5498cat >>conftest.$ac_ext <<_ACEOF 5499/* end confdefs.h. */ 5500$ac_includes_default 5501 5502#include <$ac_header> 5503_ACEOF 5504rm -f conftest.$ac_objext 5505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5506 (eval $ac_compile) 2>conftest.er1 5507 ac_status=$? 5508 grep -v '^ *+' conftest.er1 >conftest.err 5509 rm -f conftest.er1 5510 cat conftest.err >&5 5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 (exit $ac_status); } && 5513 { ac_try='test -z "$ac_c_werror_flag" 5514 || test ! -s conftest.err' 5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5516 (eval $ac_try) 2>&5 5517 ac_status=$? 5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 (exit $ac_status); }; } && 5520 { ac_try='test -s conftest.$ac_objext' 5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5522 (eval $ac_try) 2>&5 5523 ac_status=$? 5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); }; }; then 5526 eval "$as_ac_Header=yes" 5527else 5528 echo "$as_me: failed program was:" >&5 5529sed 's/^/| /' conftest.$ac_ext >&5 5530 5531eval "$as_ac_Header=no" 5532fi 5533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5534fi 5535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5537if test `eval echo '${'$as_ac_Header'}'` = yes; then 5538 cat >>confdefs.h <<_ACEOF 5539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5540_ACEOF 5541 5542fi 5543 5544done 5545 5546 5547 5548for ac_header in dlfcn.h 5549do 5550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5551if eval "test \"\${$as_ac_Header+set}\" = set"; then 5552 echo "$as_me:$LINENO: checking for $ac_header" >&5 5553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5554if eval "test \"\${$as_ac_Header+set}\" = set"; then 5555 echo $ECHO_N "(cached) $ECHO_C" >&6 5556fi 5557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5559else 5560 # Is the header compilable? 5561echo "$as_me:$LINENO: checking $ac_header usability" >&5 5562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5563cat >conftest.$ac_ext <<_ACEOF 5564/* confdefs.h. */ 5565_ACEOF 5566cat confdefs.h >>conftest.$ac_ext 5567cat >>conftest.$ac_ext <<_ACEOF 5568/* end confdefs.h. */ 5569$ac_includes_default 5570#include <$ac_header> 5571_ACEOF 5572rm -f conftest.$ac_objext 5573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5574 (eval $ac_compile) 2>conftest.er1 5575 ac_status=$? 5576 grep -v '^ *+' conftest.er1 >conftest.err 5577 rm -f conftest.er1 5578 cat conftest.err >&5 5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5580 (exit $ac_status); } && 5581 { ac_try='test -z "$ac_c_werror_flag" 5582 || test ! -s conftest.err' 5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5584 (eval $ac_try) 2>&5 5585 ac_status=$? 5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); }; } && 5588 { ac_try='test -s conftest.$ac_objext' 5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5590 (eval $ac_try) 2>&5 5591 ac_status=$? 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5593 (exit $ac_status); }; }; then 5594 ac_header_compiler=yes 5595else 5596 echo "$as_me: failed program was:" >&5 5597sed 's/^/| /' conftest.$ac_ext >&5 5598 5599ac_header_compiler=no 5600fi 5601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5603echo "${ECHO_T}$ac_header_compiler" >&6 5604 5605# Is the header present? 5606echo "$as_me:$LINENO: checking $ac_header presence" >&5 5607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5608cat >conftest.$ac_ext <<_ACEOF 5609/* confdefs.h. */ 5610_ACEOF 5611cat confdefs.h >>conftest.$ac_ext 5612cat >>conftest.$ac_ext <<_ACEOF 5613/* end confdefs.h. */ 5614#include <$ac_header> 5615_ACEOF 5616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5618 ac_status=$? 5619 grep -v '^ *+' conftest.er1 >conftest.err 5620 rm -f conftest.er1 5621 cat conftest.err >&5 5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5623 (exit $ac_status); } >/dev/null; then 5624 if test -s conftest.err; then 5625 ac_cpp_err=$ac_c_preproc_warn_flag 5626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5627 else 5628 ac_cpp_err= 5629 fi 5630else 5631 ac_cpp_err=yes 5632fi 5633if test -z "$ac_cpp_err"; then 5634 ac_header_preproc=yes 5635else 5636 echo "$as_me: failed program was:" >&5 5637sed 's/^/| /' conftest.$ac_ext >&5 5638 5639 ac_header_preproc=no 5640fi 5641rm -f conftest.err conftest.$ac_ext 5642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5643echo "${ECHO_T}$ac_header_preproc" >&6 5644 5645# So? What about this header? 5646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5647 yes:no: ) 5648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5652 ac_header_preproc=yes 5653 ;; 5654 no:yes:* ) 5655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5667 ( 5668 cat <<\_ASBOX 5669## ---------------------------------- ## 5670## Report this to bug-libtool@gnu.org ## 5671## ---------------------------------- ## 5672_ASBOX 5673 ) | 5674 sed "s/^/$as_me: WARNING: /" >&2 5675 ;; 5676esac 5677echo "$as_me:$LINENO: checking for $ac_header" >&5 5678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5679if eval "test \"\${$as_ac_Header+set}\" = set"; then 5680 echo $ECHO_N "(cached) $ECHO_C" >&6 5681else 5682 eval "$as_ac_Header=\$ac_header_preproc" 5683fi 5684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5686 5687fi 5688if test `eval echo '${'$as_ac_Header'}'` = yes; then 5689 cat >>confdefs.h <<_ACEOF 5690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5691_ACEOF 5692 5693fi 5694 5695done 5696 5697 5698 5699if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5700 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5701 (test "X$CXX" != "Xg++"))) ; then 5702 ac_ext=cc 5703ac_cpp='$CXXCPP $CPPFLAGS' 5704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5707echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5708echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5709if test -z "$CXXCPP"; then 5710 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5711 echo $ECHO_N "(cached) $ECHO_C" >&6 5712else 5713 # Double quotes because CXXCPP needs to be expanded 5714 for CXXCPP in "$CXX -E" "/lib/cpp" 5715 do 5716 ac_preproc_ok=false 5717for ac_cxx_preproc_warn_flag in '' yes 5718do 5719 # Use a header file that comes with gcc, so configuring glibc 5720 # with a fresh cross-compiler works. 5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5722 # <limits.h> exists even on freestanding compilers. 5723 # On the NeXT, cc -E runs the code through the compiler's parser, 5724 # not just through cpp. "Syntax error" is here to catch this case. 5725 cat >conftest.$ac_ext <<_ACEOF 5726/* confdefs.h. */ 5727_ACEOF 5728cat confdefs.h >>conftest.$ac_ext 5729cat >>conftest.$ac_ext <<_ACEOF 5730/* end confdefs.h. */ 5731#ifdef __STDC__ 5732# include <limits.h> 5733#else 5734# include <assert.h> 5735#endif 5736 Syntax error 5737_ACEOF 5738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5740 ac_status=$? 5741 grep -v '^ *+' conftest.er1 >conftest.err 5742 rm -f conftest.er1 5743 cat conftest.err >&5 5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5745 (exit $ac_status); } >/dev/null; then 5746 if test -s conftest.err; then 5747 ac_cpp_err=$ac_cxx_preproc_warn_flag 5748 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5749 else 5750 ac_cpp_err= 5751 fi 5752else 5753 ac_cpp_err=yes 5754fi 5755if test -z "$ac_cpp_err"; then 5756 : 5757else 5758 echo "$as_me: failed program was:" >&5 5759sed 's/^/| /' conftest.$ac_ext >&5 5760 5761 # Broken: fails on valid input. 5762continue 5763fi 5764rm -f conftest.err conftest.$ac_ext 5765 5766 # OK, works on sane cases. Now check whether non-existent headers 5767 # can be detected and how. 5768 cat >conftest.$ac_ext <<_ACEOF 5769/* confdefs.h. */ 5770_ACEOF 5771cat confdefs.h >>conftest.$ac_ext 5772cat >>conftest.$ac_ext <<_ACEOF 5773/* end confdefs.h. */ 5774#include <ac_nonexistent.h> 5775_ACEOF 5776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5778 ac_status=$? 5779 grep -v '^ *+' conftest.er1 >conftest.err 5780 rm -f conftest.er1 5781 cat conftest.err >&5 5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5783 (exit $ac_status); } >/dev/null; then 5784 if test -s conftest.err; then 5785 ac_cpp_err=$ac_cxx_preproc_warn_flag 5786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5787 else 5788 ac_cpp_err= 5789 fi 5790else 5791 ac_cpp_err=yes 5792fi 5793if test -z "$ac_cpp_err"; then 5794 # Broken: success on invalid input. 5795continue 5796else 5797 echo "$as_me: failed program was:" >&5 5798sed 's/^/| /' conftest.$ac_ext >&5 5799 5800 # Passes both tests. 5801ac_preproc_ok=: 5802break 5803fi 5804rm -f conftest.err conftest.$ac_ext 5805 5806done 5807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5808rm -f conftest.err conftest.$ac_ext 5809if $ac_preproc_ok; then 5810 break 5811fi 5812 5813 done 5814 ac_cv_prog_CXXCPP=$CXXCPP 5815 5816fi 5817 CXXCPP=$ac_cv_prog_CXXCPP 5818else 5819 ac_cv_prog_CXXCPP=$CXXCPP 5820fi 5821echo "$as_me:$LINENO: result: $CXXCPP" >&5 5822echo "${ECHO_T}$CXXCPP" >&6 5823ac_preproc_ok=false 5824for ac_cxx_preproc_warn_flag in '' yes 5825do 5826 # Use a header file that comes with gcc, so configuring glibc 5827 # with a fresh cross-compiler works. 5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5829 # <limits.h> exists even on freestanding compilers. 5830 # On the NeXT, cc -E runs the code through the compiler's parser, 5831 # not just through cpp. "Syntax error" is here to catch this case. 5832 cat >conftest.$ac_ext <<_ACEOF 5833/* confdefs.h. */ 5834_ACEOF 5835cat confdefs.h >>conftest.$ac_ext 5836cat >>conftest.$ac_ext <<_ACEOF 5837/* end confdefs.h. */ 5838#ifdef __STDC__ 5839# include <limits.h> 5840#else 5841# include <assert.h> 5842#endif 5843 Syntax error 5844_ACEOF 5845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5847 ac_status=$? 5848 grep -v '^ *+' conftest.er1 >conftest.err 5849 rm -f conftest.er1 5850 cat conftest.err >&5 5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5852 (exit $ac_status); } >/dev/null; then 5853 if test -s conftest.err; then 5854 ac_cpp_err=$ac_cxx_preproc_warn_flag 5855 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5856 else 5857 ac_cpp_err= 5858 fi 5859else 5860 ac_cpp_err=yes 5861fi 5862if test -z "$ac_cpp_err"; then 5863 : 5864else 5865 echo "$as_me: failed program was:" >&5 5866sed 's/^/| /' conftest.$ac_ext >&5 5867 5868 # Broken: fails on valid input. 5869continue 5870fi 5871rm -f conftest.err conftest.$ac_ext 5872 5873 # OK, works on sane cases. Now check whether non-existent headers 5874 # can be detected and how. 5875 cat >conftest.$ac_ext <<_ACEOF 5876/* confdefs.h. */ 5877_ACEOF 5878cat confdefs.h >>conftest.$ac_ext 5879cat >>conftest.$ac_ext <<_ACEOF 5880/* end confdefs.h. */ 5881#include <ac_nonexistent.h> 5882_ACEOF 5883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5885 ac_status=$? 5886 grep -v '^ *+' conftest.er1 >conftest.err 5887 rm -f conftest.er1 5888 cat conftest.err >&5 5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5890 (exit $ac_status); } >/dev/null; then 5891 if test -s conftest.err; then 5892 ac_cpp_err=$ac_cxx_preproc_warn_flag 5893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5894 else 5895 ac_cpp_err= 5896 fi 5897else 5898 ac_cpp_err=yes 5899fi 5900if test -z "$ac_cpp_err"; then 5901 # Broken: success on invalid input. 5902continue 5903else 5904 echo "$as_me: failed program was:" >&5 5905sed 's/^/| /' conftest.$ac_ext >&5 5906 5907 # Passes both tests. 5908ac_preproc_ok=: 5909break 5910fi 5911rm -f conftest.err conftest.$ac_ext 5912 5913done 5914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5915rm -f conftest.err conftest.$ac_ext 5916if $ac_preproc_ok; then 5917 : 5918else 5919 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5920See \`config.log' for more details." >&5 5921echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5922See \`config.log' for more details." >&2;} 5923 { (exit 1); exit 1; }; } 5924fi 5925 5926ac_ext=cc 5927ac_cpp='$CXXCPP $CPPFLAGS' 5928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5931 5932fi 5933 5934 5935 5936 5937# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5938 5939# find the maximum length of command line arguments 5940echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5941echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5942if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5943 echo $ECHO_N "(cached) $ECHO_C" >&6 5944else 5945 i=0 5946 teststring="ABCD" 5947 5948 case $build_os in 5949 msdosdjgpp*) 5950 # On DJGPP, this test can blow up pretty badly due to problems in libc 5951 # (any single argument exceeding 2000 bytes causes a buffer overrun 5952 # during glob expansion). Even if it were fixed, the result of this 5953 # check would be larger than it should be. 5954 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5955 ;; 5956 5957 gnu*) 5958 # Under GNU Hurd, this test is not required because there is 5959 # no limit to the length of command line arguments. 5960 # Libtool will interpret -1 as no limit whatsoever 5961 lt_cv_sys_max_cmd_len=-1; 5962 ;; 5963 5964 cygwin* | mingw*) 5965 # On Win9x/ME, this test blows up -- it succeeds, but takes 5966 # about 5 minutes as the teststring grows exponentially. 5967 # Worse, since 9x/ME are not pre-emptively multitasking, 5968 # you end up with a "frozen" computer, even though with patience 5969 # the test eventually succeeds (with a max line length of 256k). 5970 # Instead, let's just punt: use the minimum linelength reported by 5971 # all of the supported platforms: 8192 (on NT/2K/XP). 5972 lt_cv_sys_max_cmd_len=8192; 5973 ;; 5974 5975 amigaos*) 5976 # On AmigaOS with pdksh, this test takes hours, literally. 5977 # So we just punt and use a minimum line length of 8192. 5978 lt_cv_sys_max_cmd_len=8192; 5979 ;; 5980 5981 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5982 # This has been around since 386BSD, at least. Likely further. 5983 if test -x /sbin/sysctl; then 5984 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5985 elif test -x /usr/sbin/sysctl; then 5986 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5987 else 5988 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5989 fi 5990 # And add a safety zone 5991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5993 ;; 5994 osf*) 5995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5997 # nice to cause kernel panics so lets avoid the loop below. 5998 # First set a reasonable default. 5999 lt_cv_sys_max_cmd_len=16384 6000 # 6001 if test -x /sbin/sysconfig; then 6002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6003 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6004 esac 6005 fi 6006 ;; 6007 *) 6008 # If test is not a shell built-in, we'll probably end up computing a 6009 # maximum length that is only half of the actual maximum length, but 6010 # we can't tell. 6011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6012 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6013 = "XX$teststring") >/dev/null 2>&1 && 6014 new_result=`expr "X$teststring" : ".*" 2>&1` && 6015 lt_cv_sys_max_cmd_len=$new_result && 6016 test $i != 17 # 1/2 MB should be enough 6017 do 6018 i=`expr $i + 1` 6019 teststring=$teststring$teststring 6020 done 6021 teststring= 6022 # Add a significant safety factor because C++ compilers can tack on massive 6023 # amounts of additional arguments before passing them to the linker. 6024 # It appears as though 1/2 is a usable value. 6025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6026 ;; 6027 esac 6028 6029fi 6030 6031if test -n $lt_cv_sys_max_cmd_len ; then 6032 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6033echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6034else 6035 echo "$as_me:$LINENO: result: none" >&5 6036echo "${ECHO_T}none" >&6 6037fi 6038 6039 6040 6041 6042# Check for command to grab the raw symbol name followed by C symbol from nm. 6043echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6044echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6045if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6046 echo $ECHO_N "(cached) $ECHO_C" >&6 6047else 6048 6049# These are sane defaults that work on at least a few old systems. 6050# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6051 6052# Character class describing NM global symbol codes. 6053symcode='[BCDEGRST]' 6054 6055# Regexp to match symbols that can be accessed directly from C. 6056sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6057 6058# Transform an extracted symbol line into a proper C declaration 6059lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6060 6061# Transform an extracted symbol line into symbol name and symbol address 6062lt_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'" 6063 6064# Define system-specific variables. 6065case $host_os in 6066aix*) 6067 symcode='[BCDT]' 6068 ;; 6069cygwin* | mingw* | pw32*) 6070 symcode='[ABCDGISTW]' 6071 ;; 6072hpux*) # Its linker distinguishes data from code symbols 6073 if test "$host_cpu" = ia64; then 6074 symcode='[ABCDEGRST]' 6075 fi 6076 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6077 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'" 6078 ;; 6079linux*) 6080 if test "$host_cpu" = ia64; then 6081 symcode='[ABCDGIRSTW]' 6082 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6083 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'" 6084 fi 6085 ;; 6086irix* | nonstopux*) 6087 symcode='[BCDEGRST]' 6088 ;; 6089osf*) 6090 symcode='[BCDEGQRST]' 6091 ;; 6092solaris* | sysv5*) 6093 symcode='[BDRT]' 6094 ;; 6095sysv4) 6096 symcode='[DFNSTU]' 6097 ;; 6098esac 6099 6100# Handle CRLF in mingw tool chain 6101opt_cr= 6102case $build_os in 6103mingw*) 6104 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6105 ;; 6106esac 6107 6108# If we're using GNU nm, then use its standard symbol codes. 6109case `$NM -V 2>&1` in 6110*GNU* | *'with BFD'*) 6111 symcode='[ABCDGIRSTW]' ;; 6112esac 6113 6114# Try without a prefix undercore, then with it. 6115for ac_symprfx in "" "_"; do 6116 6117 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6118 symxfrm="\\1 $ac_symprfx\\2 \\2" 6119 6120 # Write the raw and C identifiers. 6121 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6122 6123 # Check to see that the pipe works correctly. 6124 pipe_works=no 6125 6126 rm -f conftest* 6127 cat > conftest.$ac_ext <<EOF 6128#ifdef __cplusplus 6129extern "C" { 6130#endif 6131char nm_test_var; 6132void nm_test_func(){} 6133#ifdef __cplusplus 6134} 6135#endif 6136int main(){nm_test_var='a';nm_test_func();return(0);} 6137EOF 6138 6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6140 (eval $ac_compile) 2>&5 6141 ac_status=$? 6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6143 (exit $ac_status); }; then 6144 # Now try to grab the symbols. 6145 nlist=conftest.nm 6146 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6147 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6148 ac_status=$? 6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6150 (exit $ac_status); } && test -s "$nlist"; then 6151 # Try sorting and uniquifying the output. 6152 if sort "$nlist" | uniq > "$nlist"T; then 6153 mv -f "$nlist"T "$nlist" 6154 else 6155 rm -f "$nlist"T 6156 fi 6157 6158 # Make sure that we snagged all the symbols we need. 6159 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6160 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6161 cat <<EOF > conftest.$ac_ext 6162#ifdef __cplusplus 6163extern "C" { 6164#endif 6165 6166EOF 6167 # Now generate the symbol file. 6168 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6169 6170 cat <<EOF >> conftest.$ac_ext 6171#if defined (__STDC__) && __STDC__ 6172# define lt_ptr_t void * 6173#else 6174# define lt_ptr_t char * 6175# define const 6176#endif 6177 6178/* The mapping between symbol names and symbols. */ 6179const struct { 6180 const char *name; 6181 lt_ptr_t address; 6182} 6183lt_preloaded_symbols[] = 6184{ 6185EOF 6186 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6187 cat <<\EOF >> conftest.$ac_ext 6188 {0, (lt_ptr_t) 0} 6189}; 6190 6191#ifdef __cplusplus 6192} 6193#endif 6194EOF 6195 # Now try linking the two files. 6196 mv conftest.$ac_objext conftstm.$ac_objext 6197 lt_save_LIBS="$LIBS" 6198 lt_save_CFLAGS="$CFLAGS" 6199 LIBS="conftstm.$ac_objext" 6200 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6202 (eval $ac_link) 2>&5 6203 ac_status=$? 6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6205 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6206 pipe_works=yes 6207 fi 6208 LIBS="$lt_save_LIBS" 6209 CFLAGS="$lt_save_CFLAGS" 6210 else 6211 echo "cannot find nm_test_func in $nlist" >&5 6212 fi 6213 else 6214 echo "cannot find nm_test_var in $nlist" >&5 6215 fi 6216 else 6217 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6218 fi 6219 else 6220 echo "$progname: failed program was:" >&5 6221 cat conftest.$ac_ext >&5 6222 fi 6223 rm -f conftest* conftst* 6224 6225 # Do not use the global_symbol_pipe unless it works. 6226 if test "$pipe_works" = yes; then 6227 break 6228 else 6229 lt_cv_sys_global_symbol_pipe= 6230 fi 6231done 6232 6233fi 6234 6235if test -z "$lt_cv_sys_global_symbol_pipe"; then 6236 lt_cv_sys_global_symbol_to_cdecl= 6237fi 6238if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6239 echo "$as_me:$LINENO: result: failed" >&5 6240echo "${ECHO_T}failed" >&6 6241else 6242 echo "$as_me:$LINENO: result: ok" >&5 6243echo "${ECHO_T}ok" >&6 6244fi 6245 6246echo "$as_me:$LINENO: checking for objdir" >&5 6247echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6248if test "${lt_cv_objdir+set}" = set; then 6249 echo $ECHO_N "(cached) $ECHO_C" >&6 6250else 6251 rm -f .libs 2>/dev/null 6252mkdir .libs 2>/dev/null 6253if test -d .libs; then 6254 lt_cv_objdir=.libs 6255else 6256 # MS-DOS does not allow filenames that begin with a dot. 6257 lt_cv_objdir=_libs 6258fi 6259rmdir .libs 2>/dev/null 6260fi 6261echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6262echo "${ECHO_T}$lt_cv_objdir" >&6 6263objdir=$lt_cv_objdir 6264 6265 6266 6267 6268 6269case $host_os in 6270aix3*) 6271 # AIX sometimes has problems with the GCC collect2 program. For some 6272 # reason, if we set the COLLECT_NAMES environment variable, the problems 6273 # vanish in a puff of smoke. 6274 if test "X${COLLECT_NAMES+set}" != Xset; then 6275 COLLECT_NAMES= 6276 export COLLECT_NAMES 6277 fi 6278 ;; 6279esac 6280 6281# Sed substitution that helps us do robust quoting. It backslashifies 6282# metacharacters that are still active within double-quoted strings. 6283Xsed='sed -e 1s/^X//' 6284sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6285 6286# Same as above, but do not quote variable references. 6287double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6288 6289# Sed substitution to delay expansion of an escaped shell variable in a 6290# double_quote_subst'ed string. 6291delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6292 6293# Sed substitution to avoid accidental globbing in evaled expressions 6294no_glob_subst='s/\*/\\\*/g' 6295 6296# Constants: 6297rm="rm -f" 6298 6299# Global variables: 6300default_ofile=libtool 6301can_build_shared=yes 6302 6303# All known linkers require a `.a' archive for static linking (except MSVC, 6304# which needs '.lib'). 6305libext=a 6306ltmain="$ac_aux_dir/ltmain.sh" 6307ofile="$default_ofile" 6308with_gnu_ld="$lt_cv_prog_gnu_ld" 6309 6310if test -n "$ac_tool_prefix"; then 6311 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6312set dummy ${ac_tool_prefix}ar; ac_word=$2 6313echo "$as_me:$LINENO: checking for $ac_word" >&5 6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6315if test "${ac_cv_prog_AR+set}" = set; then 6316 echo $ECHO_N "(cached) $ECHO_C" >&6 6317else 6318 if test -n "$AR"; then 6319 ac_cv_prog_AR="$AR" # Let the user override the test. 6320else 6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6322for as_dir in $PATH 6323do 6324 IFS=$as_save_IFS 6325 test -z "$as_dir" && as_dir=. 6326 for ac_exec_ext in '' $ac_executable_extensions; do 6327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6328 ac_cv_prog_AR="${ac_tool_prefix}ar" 6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6330 break 2 6331 fi 6332done 6333done 6334 6335fi 6336fi 6337AR=$ac_cv_prog_AR 6338if test -n "$AR"; then 6339 echo "$as_me:$LINENO: result: $AR" >&5 6340echo "${ECHO_T}$AR" >&6 6341else 6342 echo "$as_me:$LINENO: result: no" >&5 6343echo "${ECHO_T}no" >&6 6344fi 6345 6346fi 6347if test -z "$ac_cv_prog_AR"; then 6348 ac_ct_AR=$AR 6349 # Extract the first word of "ar", so it can be a program name with args. 6350set dummy ar; ac_word=$2 6351echo "$as_me:$LINENO: checking for $ac_word" >&5 6352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6353if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6354 echo $ECHO_N "(cached) $ECHO_C" >&6 6355else 6356 if test -n "$ac_ct_AR"; then 6357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6358else 6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360for as_dir in $PATH 6361do 6362 IFS=$as_save_IFS 6363 test -z "$as_dir" && as_dir=. 6364 for ac_exec_ext in '' $ac_executable_extensions; do 6365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6366 ac_cv_prog_ac_ct_AR="ar" 6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6368 break 2 6369 fi 6370done 6371done 6372 6373 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6374fi 6375fi 6376ac_ct_AR=$ac_cv_prog_ac_ct_AR 6377if test -n "$ac_ct_AR"; then 6378 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6379echo "${ECHO_T}$ac_ct_AR" >&6 6380else 6381 echo "$as_me:$LINENO: result: no" >&5 6382echo "${ECHO_T}no" >&6 6383fi 6384 6385 AR=$ac_ct_AR 6386else 6387 AR="$ac_cv_prog_AR" 6388fi 6389 6390if test -n "$ac_tool_prefix"; then 6391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6392set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6393echo "$as_me:$LINENO: checking for $ac_word" >&5 6394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6395if test "${ac_cv_prog_RANLIB+set}" = set; then 6396 echo $ECHO_N "(cached) $ECHO_C" >&6 6397else 6398 if test -n "$RANLIB"; then 6399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6400else 6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6402for as_dir in $PATH 6403do 6404 IFS=$as_save_IFS 6405 test -z "$as_dir" && as_dir=. 6406 for ac_exec_ext in '' $ac_executable_extensions; do 6407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6410 break 2 6411 fi 6412done 6413done 6414 6415fi 6416fi 6417RANLIB=$ac_cv_prog_RANLIB 6418if test -n "$RANLIB"; then 6419 echo "$as_me:$LINENO: result: $RANLIB" >&5 6420echo "${ECHO_T}$RANLIB" >&6 6421else 6422 echo "$as_me:$LINENO: result: no" >&5 6423echo "${ECHO_T}no" >&6 6424fi 6425 6426fi 6427if test -z "$ac_cv_prog_RANLIB"; then 6428 ac_ct_RANLIB=$RANLIB 6429 # Extract the first word of "ranlib", so it can be a program name with args. 6430set dummy ranlib; ac_word=$2 6431echo "$as_me:$LINENO: checking for $ac_word" >&5 6432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6433if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6434 echo $ECHO_N "(cached) $ECHO_C" >&6 6435else 6436 if test -n "$ac_ct_RANLIB"; then 6437 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6438else 6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH 6441do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6446 ac_cv_prog_ac_ct_RANLIB="ranlib" 6447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450done 6451done 6452 6453 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6454fi 6455fi 6456ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6457if test -n "$ac_ct_RANLIB"; then 6458 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6459echo "${ECHO_T}$ac_ct_RANLIB" >&6 6460else 6461 echo "$as_me:$LINENO: result: no" >&5 6462echo "${ECHO_T}no" >&6 6463fi 6464 6465 RANLIB=$ac_ct_RANLIB 6466else 6467 RANLIB="$ac_cv_prog_RANLIB" 6468fi 6469 6470if test -n "$ac_tool_prefix"; then 6471 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6472set dummy ${ac_tool_prefix}strip; ac_word=$2 6473echo "$as_me:$LINENO: checking for $ac_word" >&5 6474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6475if test "${ac_cv_prog_STRIP+set}" = set; then 6476 echo $ECHO_N "(cached) $ECHO_C" >&6 6477else 6478 if test -n "$STRIP"; then 6479 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6480else 6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in $PATH 6483do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6488 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493done 6494 6495fi 6496fi 6497STRIP=$ac_cv_prog_STRIP 6498if test -n "$STRIP"; then 6499 echo "$as_me:$LINENO: result: $STRIP" >&5 6500echo "${ECHO_T}$STRIP" >&6 6501else 6502 echo "$as_me:$LINENO: result: no" >&5 6503echo "${ECHO_T}no" >&6 6504fi 6505 6506fi 6507if test -z "$ac_cv_prog_STRIP"; then 6508 ac_ct_STRIP=$STRIP 6509 # Extract the first word of "strip", so it can be a program name with args. 6510set dummy strip; ac_word=$2 6511echo "$as_me:$LINENO: checking for $ac_word" >&5 6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6513if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6514 echo $ECHO_N "(cached) $ECHO_C" >&6 6515else 6516 if test -n "$ac_ct_STRIP"; then 6517 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6518else 6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6520for as_dir in $PATH 6521do 6522 IFS=$as_save_IFS 6523 test -z "$as_dir" && as_dir=. 6524 for ac_exec_ext in '' $ac_executable_extensions; do 6525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6526 ac_cv_prog_ac_ct_STRIP="strip" 6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6528 break 2 6529 fi 6530done 6531done 6532 6533 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6534fi 6535fi 6536ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6537if test -n "$ac_ct_STRIP"; then 6538 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6539echo "${ECHO_T}$ac_ct_STRIP" >&6 6540else 6541 echo "$as_me:$LINENO: result: no" >&5 6542echo "${ECHO_T}no" >&6 6543fi 6544 6545 STRIP=$ac_ct_STRIP 6546else 6547 STRIP="$ac_cv_prog_STRIP" 6548fi 6549 6550 6551old_CC="$CC" 6552old_CFLAGS="$CFLAGS" 6553 6554# Set sane defaults for various variables 6555test -z "$AR" && AR=ar 6556test -z "$AR_FLAGS" && AR_FLAGS=cru 6557test -z "$AS" && AS=as 6558test -z "$CC" && CC=cc 6559test -z "$LTCC" && LTCC=$CC 6560test -z "$DLLTOOL" && DLLTOOL=dlltool 6561test -z "$LD" && LD=ld 6562test -z "$LN_S" && LN_S="ln -s" 6563test -z "$MAGIC_CMD" && MAGIC_CMD=file 6564test -z "$NM" && NM=nm 6565test -z "$SED" && SED=sed 6566test -z "$OBJDUMP" && OBJDUMP=objdump 6567test -z "$RANLIB" && RANLIB=: 6568test -z "$STRIP" && STRIP=: 6569test -z "$ac_objext" && ac_objext=o 6570 6571# Determine commands to create old-style static archives. 6572old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6573old_postinstall_cmds='chmod 644 $oldlib' 6574old_postuninstall_cmds= 6575 6576if test -n "$RANLIB"; then 6577 case $host_os in 6578 openbsd*) 6579 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6580 ;; 6581 *) 6582 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6583 ;; 6584 esac 6585 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6586fi 6587 6588for cc_temp in $compiler""; do 6589 case $cc_temp in 6590 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6591 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6592 \-*) ;; 6593 *) break;; 6594 esac 6595done 6596cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6597 6598 6599# Only perform the check for file, if the check method requires it 6600case $deplibs_check_method in 6601file_magic*) 6602 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6603 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6604echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6605if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6606 echo $ECHO_N "(cached) $ECHO_C" >&6 6607else 6608 case $MAGIC_CMD in 6609[\\/*] | ?:[\\/]*) 6610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6611 ;; 6612*) 6613 lt_save_MAGIC_CMD="$MAGIC_CMD" 6614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6615 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6616 for ac_dir in $ac_dummy; do 6617 IFS="$lt_save_ifs" 6618 test -z "$ac_dir" && ac_dir=. 6619 if test -f $ac_dir/${ac_tool_prefix}file; then 6620 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6621 if test -n "$file_magic_test_file"; then 6622 case $deplibs_check_method in 6623 "file_magic "*) 6624 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6626 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6627 $EGREP "$file_magic_regex" > /dev/null; then 6628 : 6629 else 6630 cat <<EOF 1>&2 6631 6632*** Warning: the command libtool uses to detect shared libraries, 6633*** $file_magic_cmd, produces output that libtool cannot recognize. 6634*** The result is that libtool may fail to recognize shared libraries 6635*** as such. This will affect the creation of libtool libraries that 6636*** depend on shared libraries, but programs linked with such libtool 6637*** libraries will work regardless of this problem. Nevertheless, you 6638*** may want to report the problem to your system manager and/or to 6639*** bug-libtool@gnu.org 6640 6641EOF 6642 fi ;; 6643 esac 6644 fi 6645 break 6646 fi 6647 done 6648 IFS="$lt_save_ifs" 6649 MAGIC_CMD="$lt_save_MAGIC_CMD" 6650 ;; 6651esac 6652fi 6653 6654MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6655if test -n "$MAGIC_CMD"; then 6656 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6657echo "${ECHO_T}$MAGIC_CMD" >&6 6658else 6659 echo "$as_me:$LINENO: result: no" >&5 6660echo "${ECHO_T}no" >&6 6661fi 6662 6663if test -z "$lt_cv_path_MAGIC_CMD"; then 6664 if test -n "$ac_tool_prefix"; then 6665 echo "$as_me:$LINENO: checking for file" >&5 6666echo $ECHO_N "checking for file... $ECHO_C" >&6 6667if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6668 echo $ECHO_N "(cached) $ECHO_C" >&6 6669else 6670 case $MAGIC_CMD in 6671[\\/*] | ?:[\\/]*) 6672 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6673 ;; 6674*) 6675 lt_save_MAGIC_CMD="$MAGIC_CMD" 6676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6678 for ac_dir in $ac_dummy; do 6679 IFS="$lt_save_ifs" 6680 test -z "$ac_dir" && ac_dir=. 6681 if test -f $ac_dir/file; then 6682 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6683 if test -n "$file_magic_test_file"; then 6684 case $deplibs_check_method in 6685 "file_magic "*) 6686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6689 $EGREP "$file_magic_regex" > /dev/null; then 6690 : 6691 else 6692 cat <<EOF 1>&2 6693 6694*** Warning: the command libtool uses to detect shared libraries, 6695*** $file_magic_cmd, produces output that libtool cannot recognize. 6696*** The result is that libtool may fail to recognize shared libraries 6697*** as such. This will affect the creation of libtool libraries that 6698*** depend on shared libraries, but programs linked with such libtool 6699*** libraries will work regardless of this problem. Nevertheless, you 6700*** may want to report the problem to your system manager and/or to 6701*** bug-libtool@gnu.org 6702 6703EOF 6704 fi ;; 6705 esac 6706 fi 6707 break 6708 fi 6709 done 6710 IFS="$lt_save_ifs" 6711 MAGIC_CMD="$lt_save_MAGIC_CMD" 6712 ;; 6713esac 6714fi 6715 6716MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6717if test -n "$MAGIC_CMD"; then 6718 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6719echo "${ECHO_T}$MAGIC_CMD" >&6 6720else 6721 echo "$as_me:$LINENO: result: no" >&5 6722echo "${ECHO_T}no" >&6 6723fi 6724 6725 else 6726 MAGIC_CMD=: 6727 fi 6728fi 6729 6730 fi 6731 ;; 6732esac 6733 6734enable_dlopen=yes 6735enable_win32_dll=yes 6736 6737# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6738if test "${enable_libtool_lock+set}" = set; then 6739 enableval="$enable_libtool_lock" 6740 6741fi; 6742test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6743 6744 6745# Check whether --with-pic or --without-pic was given. 6746if test "${with_pic+set}" = set; then 6747 withval="$with_pic" 6748 pic_mode="$withval" 6749else 6750 pic_mode=default 6751fi; 6752test -z "$pic_mode" && pic_mode=default 6753 6754# Use C for the default configuration in the libtool script 6755tagname= 6756lt_save_CC="$CC" 6757ac_ext=c 6758ac_cpp='$CPP $CPPFLAGS' 6759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6761ac_compiler_gnu=$ac_cv_c_compiler_gnu 6762 6763 6764# Source file extension for C test sources. 6765ac_ext=c 6766 6767# Object file extension for compiled C test sources. 6768objext=o 6769objext=$objext 6770 6771# Code to be used in simple compile tests 6772lt_simple_compile_test_code="int some_variable = 0;\n" 6773 6774# Code to be used in simple link tests 6775lt_simple_link_test_code='int main(){return(0);}\n' 6776 6777 6778# If no C compiler was specified, use CC. 6779LTCC=${LTCC-"$CC"} 6780 6781# Allow CC to be a program name with arguments. 6782compiler=$CC 6783 6784 6785# save warnings/boilerplate of simple test code 6786ac_outfile=conftest.$ac_objext 6787printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6789_lt_compiler_boilerplate=`cat conftest.err` 6790$rm conftest* 6791 6792ac_outfile=conftest.$ac_objext 6793printf "$lt_simple_link_test_code" >conftest.$ac_ext 6794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6795_lt_linker_boilerplate=`cat conftest.err` 6796$rm conftest* 6797 6798 6799# 6800# Check for any special shared library compilation flags. 6801# 6802lt_prog_cc_shlib= 6803if test "$GCC" = no; then 6804 case $host_os in 6805 sco3.2v5*) 6806 lt_prog_cc_shlib='-belf' 6807 ;; 6808 esac 6809fi 6810if test -n "$lt_prog_cc_shlib"; then 6811 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6812echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6813 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6814 else 6815 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6816echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6817 lt_cv_prog_cc_can_build_shared=no 6818 fi 6819fi 6820 6821 6822# 6823# Check to make sure the static flag actually works. 6824# 6825echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6826echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6827if test "${lt_prog_compiler_static_works+set}" = set; then 6828 echo $ECHO_N "(cached) $ECHO_C" >&6 6829else 6830 lt_prog_compiler_static_works=no 6831 save_LDFLAGS="$LDFLAGS" 6832 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6833 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6835 # The linker can only warn and ignore the option if not recognized 6836 # So say no if there are warnings 6837 if test -s conftest.err; then 6838 # Append any errors to the config.log. 6839 cat conftest.err 1>&5 6840 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6841 $SED '/^$/d' conftest.err >conftest.er2 6842 if diff conftest.exp conftest.er2 >/dev/null; then 6843 lt_prog_compiler_static_works=yes 6844 fi 6845 else 6846 lt_prog_compiler_static_works=yes 6847 fi 6848 fi 6849 $rm conftest* 6850 LDFLAGS="$save_LDFLAGS" 6851 6852fi 6853echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6854echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6855 6856if test x"$lt_prog_compiler_static_works" = xyes; then 6857 : 6858else 6859 lt_prog_compiler_static= 6860fi 6861 6862 6863 6864## CAVEAT EMPTOR: 6865## There is no encapsulation within the following macros, do not change 6866## the running order or otherwise move them around unless you know exactly 6867## what you are doing... 6868 6869lt_prog_compiler_no_builtin_flag= 6870 6871if test "$GCC" = yes; then 6872 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6873 6874 6875echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6876echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6877if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6878 echo $ECHO_N "(cached) $ECHO_C" >&6 6879else 6880 lt_cv_prog_compiler_rtti_exceptions=no 6881 ac_outfile=conftest.$ac_objext 6882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6883 lt_compiler_flag="-fno-rtti -fno-exceptions" 6884 # Insert the option either (1) after the last *FLAGS variable, or 6885 # (2) before a word containing "conftest.", or (3) at the end. 6886 # Note that $ac_compile itself does not contain backslashes and begins 6887 # with a dollar sign (not a hyphen), so the echo should work correctly. 6888 # The option is referenced via a variable to avoid confusing sed. 6889 lt_compile=`echo "$ac_compile" | $SED \ 6890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6892 -e 's:$: $lt_compiler_flag:'` 6893 (eval echo "\"\$as_me:6893: $lt_compile\"" >&5) 6894 (eval "$lt_compile" 2>conftest.err) 6895 ac_status=$? 6896 cat conftest.err >&5 6897 echo "$as_me:6897: \$? = $ac_status" >&5 6898 if (exit $ac_status) && test -s "$ac_outfile"; then 6899 # The compiler can only warn and ignore the option if not recognized 6900 # So say no if there are warnings other than the usual output. 6901 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6902 $SED '/^$/d' conftest.err >conftest.er2 6903 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6904 lt_cv_prog_compiler_rtti_exceptions=yes 6905 fi 6906 fi 6907 $rm conftest* 6908 6909fi 6910echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6911echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6912 6913if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6914 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6915else 6916 : 6917fi 6918 6919fi 6920 6921lt_prog_compiler_wl= 6922lt_prog_compiler_pic= 6923lt_prog_compiler_static= 6924 6925echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6926echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6927 6928 if test "$GCC" = yes; then 6929 lt_prog_compiler_wl='-Wl,' 6930 lt_prog_compiler_static='-static' 6931 6932 case $host_os in 6933 aix*) 6934 # All AIX code is PIC. 6935 if test "$host_cpu" = ia64; then 6936 # AIX 5 now supports IA64 processor 6937 lt_prog_compiler_static='-Bstatic' 6938 fi 6939 ;; 6940 6941 amigaos*) 6942 # FIXME: we need at least 68020 code to build shared libraries, but 6943 # adding the `-m68020' flag to GCC prevents building anything better, 6944 # like `-m68040'. 6945 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6946 ;; 6947 6948 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 6949 | osf5*) 6950 # PIC is the default for these OSes. 6951 ;; 6952 6953 mingw* | pw32* | os2*) 6954 # This hack is so that the source file can tell whether it is being 6955 # built for inclusion in a dll (and should export symbols for example). 6956 lt_prog_compiler_pic='-DDLL_EXPORT' 6957 ;; 6958 6959 darwin* | rhapsody*) 6960 # PIC is the default on this platform 6961 # Common symbols not allowed in MH_DYLIB files 6962 lt_prog_compiler_pic='-fno-common' 6963 ;; 6964 6965 msdosdjgpp*) 6966 # Just because we use GCC doesn't mean we suddenly get shared libraries 6967 # on systems that don't support them. 6968 lt_prog_compiler_can_build_shared=no 6969 enable_shared=no 6970 ;; 6971 6972 sysv4*MP*) 6973 if test -d /usr/nec; then 6974 lt_prog_compiler_pic=-Kconform_pic 6975 fi 6976 ;; 6977 6978 hpux*) 6979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6980 # not for PA HP-UX. 6981 case $host_cpu in 6982 hppa*64*|ia64*) 6983 # +Z the default 6984 ;; 6985 *) 6986 lt_prog_compiler_pic='-fPIC' 6987 ;; 6988 esac 6989 ;; 6990 6991 *) 6992 lt_prog_compiler_pic='-fPIC' 6993 ;; 6994 esac 6995 else 6996 # PORTME Check for flag to pass linker flags through the system compiler. 6997 case $host_os in 6998 aix*) 6999 lt_prog_compiler_wl='-Wl,' 7000 if test "$host_cpu" = ia64; then 7001 # AIX 5 now supports IA64 processor 7002 lt_prog_compiler_static='-Bstatic' 7003 else 7004 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7005 fi 7006 ;; 7007 darwin*) 7008 # PIC is the default on this platform 7009 # Common symbols not allowed in MH_DYLIB files 7010 case $cc_basename in 7011 xlc*) 7012 lt_prog_compiler_pic='-qnocommon' 7013 lt_prog_compiler_wl='-Wl,' 7014 ;; 7015 esac 7016 ;; 7017 7018 mingw* | pw32* | os2*) 7019 # This hack is so that the source file can tell whether it is being 7020 # built for inclusion in a dll (and should export symbols for example). 7021 lt_prog_compiler_pic='-DDLL_EXPORT' 7022 ;; 7023 7024 hpux9* | hpux10* | hpux11*) 7025 lt_prog_compiler_wl='-Wl,' 7026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7027 # not for PA HP-UX. 7028 case $host_cpu in 7029 hppa*64*|ia64*) 7030 # +Z the default 7031 ;; 7032 *) 7033 lt_prog_compiler_pic='+Z' 7034 ;; 7035 esac 7036 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7037 lt_prog_compiler_static='${wl}-a ${wl}archive' 7038 ;; 7039 7040 irix5* | irix6* | nonstopux*) 7041 lt_prog_compiler_wl='-Wl,' 7042 # PIC (with -KPIC) is the default. 7043 lt_prog_compiler_static='-non_shared' 7044 ;; 7045 7046 newsos6) 7047 lt_prog_compiler_pic='-KPIC' 7048 lt_prog_compiler_static='-Bstatic' 7049 ;; 7050 7051 linux*) 7052 case $cc_basename in 7053 icc* | ecc*) 7054 lt_prog_compiler_wl='-Wl,' 7055 lt_prog_compiler_pic='-KPIC' 7056 lt_prog_compiler_static='-static' 7057 ;; 7058 pgcc* | pgf77* | pgf90* | pgf95*) 7059 # Portland Group compilers (*not* the Pentium gcc compiler, 7060 # which looks to be a dead project) 7061 lt_prog_compiler_wl='-Wl,' 7062 lt_prog_compiler_pic='-fpic' 7063 lt_prog_compiler_static='-Bstatic' 7064 ;; 7065 ccc*) 7066 lt_prog_compiler_wl='-Wl,' 7067 # All Alpha code is PIC. 7068 lt_prog_compiler_static='-non_shared' 7069 ;; 7070 esac 7071 ;; 7072 7073 osf3* | osf4* | osf5*) 7074 lt_prog_compiler_wl='-Wl,' 7075 # All OSF/1 code is PIC. 7076 lt_prog_compiler_static='-non_shared' 7077 ;; 7078 7079 sco3.2v5*) 7080 lt_prog_compiler_pic='-Kpic' 7081 lt_prog_compiler_static='-dn' 7082 ;; 7083 7084 solaris*) 7085 lt_prog_compiler_pic='-KPIC' 7086 lt_prog_compiler_static='-Bstatic' 7087 case $cc_basename in 7088 f77* | f90* | f95*) 7089 lt_prog_compiler_wl='-Qoption ld ';; 7090 *) 7091 lt_prog_compiler_wl='-Wl,';; 7092 esac 7093 ;; 7094 7095 sunos4*) 7096 lt_prog_compiler_wl='-Qoption ld ' 7097 lt_prog_compiler_pic='-PIC' 7098 lt_prog_compiler_static='-Bstatic' 7099 ;; 7100 7101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7102 lt_prog_compiler_wl='-Wl,' 7103 lt_prog_compiler_pic='-KPIC' 7104 lt_prog_compiler_static='-Bstatic' 7105 ;; 7106 7107 sysv4*MP*) 7108 if test -d /usr/nec ;then 7109 lt_prog_compiler_pic='-Kconform_pic' 7110 lt_prog_compiler_static='-Bstatic' 7111 fi 7112 ;; 7113 7114 unicos*) 7115 lt_prog_compiler_wl='-Wl,' 7116 lt_prog_compiler_can_build_shared=no 7117 ;; 7118 7119 uts4*) 7120 lt_prog_compiler_pic='-pic' 7121 lt_prog_compiler_static='-Bstatic' 7122 ;; 7123 7124 *) 7125 lt_prog_compiler_can_build_shared=no 7126 ;; 7127 esac 7128 fi 7129 7130echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7131echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7132 7133# 7134# Check to make sure the PIC flag actually works. 7135# 7136if test -n "$lt_prog_compiler_pic"; then 7137 7138echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7139echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7140if test "${lt_prog_compiler_pic_works+set}" = set; then 7141 echo $ECHO_N "(cached) $ECHO_C" >&6 7142else 7143 lt_prog_compiler_pic_works=no 7144 ac_outfile=conftest.$ac_objext 7145 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7146 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7147 # Insert the option either (1) after the last *FLAGS variable, or 7148 # (2) before a word containing "conftest.", or (3) at the end. 7149 # Note that $ac_compile itself does not contain backslashes and begins 7150 # with a dollar sign (not a hyphen), so the echo should work correctly. 7151 # The option is referenced via a variable to avoid confusing sed. 7152 lt_compile=`echo "$ac_compile" | $SED \ 7153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7155 -e 's:$: $lt_compiler_flag:'` 7156 (eval echo "\"\$as_me:7156: $lt_compile\"" >&5) 7157 (eval "$lt_compile" 2>conftest.err) 7158 ac_status=$? 7159 cat conftest.err >&5 7160 echo "$as_me:7160: \$? = $ac_status" >&5 7161 if (exit $ac_status) && test -s "$ac_outfile"; then 7162 # The compiler can only warn and ignore the option if not recognized 7163 # So say no if there are warnings other than the usual output. 7164 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 7165 $SED '/^$/d' conftest.err >conftest.er2 7166 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 7167 lt_prog_compiler_pic_works=yes 7168 fi 7169 fi 7170 $rm conftest* 7171 7172fi 7173echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7174echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7175 7176if test x"$lt_prog_compiler_pic_works" = xyes; then 7177 case $lt_prog_compiler_pic in 7178 "" | " "*) ;; 7179 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7180 esac 7181else 7182 lt_prog_compiler_pic= 7183 lt_prog_compiler_can_build_shared=no 7184fi 7185 7186fi 7187case $host_os in 7188 # For platforms which do not support PIC, -DPIC is meaningless: 7189 *djgpp*) 7190 lt_prog_compiler_pic= 7191 ;; 7192 *) 7193 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7194 ;; 7195esac 7196 7197echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7198echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7199if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7200 echo $ECHO_N "(cached) $ECHO_C" >&6 7201else 7202 lt_cv_prog_compiler_c_o=no 7203 $rm -r conftest 2>/dev/null 7204 mkdir conftest 7205 cd conftest 7206 mkdir out 7207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7208 7209 lt_compiler_flag="-o out/conftest2.$ac_objext" 7210 # Insert the option either (1) after the last *FLAGS variable, or 7211 # (2) before a word containing "conftest.", or (3) at the end. 7212 # Note that $ac_compile itself does not contain backslashes and begins 7213 # with a dollar sign (not a hyphen), so the echo should work correctly. 7214 lt_compile=`echo "$ac_compile" | $SED \ 7215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7217 -e 's:$: $lt_compiler_flag:'` 7218 (eval echo "\"\$as_me:7218: $lt_compile\"" >&5) 7219 (eval "$lt_compile" 2>out/conftest.err) 7220 ac_status=$? 7221 cat out/conftest.err >&5 7222 echo "$as_me:7222: \$? = $ac_status" >&5 7223 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7224 then 7225 # The compiler can only warn and ignore the option if not recognized 7226 # So say no if there are warnings 7227 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 7228 $SED '/^$/d' out/conftest.err >out/conftest.er2 7229 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7230 lt_cv_prog_compiler_c_o=yes 7231 fi 7232 fi 7233 chmod u+w . 2>&5 7234 $rm conftest* 7235 # SGI C++ compiler will create directory out/ii_files/ for 7236 # template instantiation 7237 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7238 $rm out/* && rmdir out 7239 cd .. 7240 rmdir conftest 7241 $rm conftest* 7242 7243fi 7244echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7245echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7246 7247 7248hard_links="nottested" 7249if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7250 # do not overwrite the value of need_locks provided by the user 7251 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7252echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7253 hard_links=yes 7254 $rm conftest* 7255 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7256 touch conftest.a 7257 ln conftest.a conftest.b 2>&5 || hard_links=no 7258 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7259 echo "$as_me:$LINENO: result: $hard_links" >&5 7260echo "${ECHO_T}$hard_links" >&6 7261 if test "$hard_links" = no; then 7262 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7263echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7264 need_locks=warn 7265 fi 7266else 7267 need_locks=no 7268fi 7269 7270echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7271echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7272 7273 runpath_var= 7274 allow_undefined_flag= 7275 enable_shared_with_static_runtimes=no 7276 archive_cmds= 7277 archive_expsym_cmds= 7278 old_archive_From_new_cmds= 7279 old_archive_from_expsyms_cmds= 7280 export_dynamic_flag_spec= 7281 whole_archive_flag_spec= 7282 thread_safe_flag_spec= 7283 hardcode_libdir_flag_spec= 7284 hardcode_libdir_flag_spec_ld= 7285 hardcode_libdir_separator= 7286 hardcode_direct=no 7287 hardcode_minus_L=no 7288 hardcode_shlibpath_var=unsupported 7289 link_all_deplibs=unknown 7290 hardcode_automatic=no 7291 module_cmds= 7292 module_expsym_cmds= 7293 always_export_symbols=no 7294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7295 # include_expsyms should be a list of space-separated symbols to be *always* 7296 # included in the symbol list 7297 include_expsyms= 7298 # exclude_expsyms can be an extended regexp of symbols to exclude 7299 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7300 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7301 # as well as any symbol that contains `d'. 7302 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7303 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7304 # platforms (ab)use it in PIC code, but their linkers get confused if 7305 # the symbol is explicitly referenced. Since portable code cannot 7306 # rely on this symbol name, it's probably fine to never include it in 7307 # preloaded symbol tables. 7308 extract_expsyms_cmds= 7309 # Just being paranoid about ensuring that cc_basename is set. 7310 for cc_temp in $compiler""; do 7311 case $cc_temp in 7312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7314 \-*) ;; 7315 *) break;; 7316 esac 7317done 7318cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7319 7320 case $host_os in 7321 cygwin* | mingw* | pw32*) 7322 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7323 # When not using gcc, we currently assume that we are using 7324 # Microsoft Visual C++. 7325 if test "$GCC" != yes; then 7326 with_gnu_ld=no 7327 fi 7328 ;; 7329 openbsd*) 7330 with_gnu_ld=no 7331 ;; 7332 esac 7333 7334 ld_shlibs=yes 7335 if test "$with_gnu_ld" = yes; then 7336 # If archive_cmds runs LD, not CC, wlarc should be empty 7337 wlarc='${wl}' 7338 7339 # Set some defaults for GNU ld with shared library support. These 7340 # are reset later if shared libraries are not supported. Putting them 7341 # here allows them to be overridden if necessary. 7342 runpath_var=LD_RUN_PATH 7343 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7344 export_dynamic_flag_spec='${wl}--export-dynamic' 7345 # ancient GNU ld didn't support --whole-archive et. al. 7346 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7347 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7348 else 7349 whole_archive_flag_spec= 7350 fi 7351 supports_anon_versioning=no 7352 case `$LD -v 2>/dev/null` in 7353 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7354 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7355 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7356 *\ 2.11.*) ;; # other 2.11 versions 7357 *) supports_anon_versioning=yes ;; 7358 esac 7359 7360 # See if GNU ld supports shared libraries. 7361 case $host_os in 7362 aix3* | aix4* | aix5*) 7363 # On AIX/PPC, the GNU linker is very broken 7364 if test "$host_cpu" != ia64; then 7365 ld_shlibs=no 7366 cat <<EOF 1>&2 7367 7368*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7369*** to be unable to reliably create shared libraries on AIX. 7370*** Therefore, libtool is disabling shared libraries support. If you 7371*** really care for shared libraries, you may want to modify your PATH 7372*** so that a non-GNU linker is found, and then restart. 7373 7374EOF 7375 fi 7376 ;; 7377 7378 amigaos*) 7379 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)' 7380 hardcode_libdir_flag_spec='-L$libdir' 7381 hardcode_minus_L=yes 7382 7383 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7384 # that the semantics of dynamic libraries on AmigaOS, at least up 7385 # to version 4, is to share data among multiple programs linked 7386 # with the same dynamic library. Since this doesn't match the 7387 # behavior of shared libraries on other platforms, we can't use 7388 # them. 7389 ld_shlibs=no 7390 ;; 7391 7392 beos*) 7393 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7394 allow_undefined_flag=unsupported 7395 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7396 # support --undefined. This deserves some investigation. FIXME 7397 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7398 else 7399 ld_shlibs=no 7400 fi 7401 ;; 7402 7403 cygwin* | mingw* | pw32*) 7404 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7405 # as there is no search path for DLLs. 7406 hardcode_libdir_flag_spec='-L$libdir' 7407 allow_undefined_flag=unsupported 7408 always_export_symbols=no 7409 enable_shared_with_static_runtimes=yes 7410 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7411 7412 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7414 # If the export-symbols file already is a .def file (1st line 7415 # is EXPORTS), use it as is; otherwise, prepend... 7416 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7417 cp $export_symbols $output_objdir/$soname.def; 7418 else 7419 echo EXPORTS > $output_objdir/$soname.def; 7420 cat $export_symbols >> $output_objdir/$soname.def; 7421 fi~ 7422 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7423 else 7424 ld_shlibs=no 7425 fi 7426 ;; 7427 7428 haiku*) 7429 allow_undefined_flag=unsupported 7430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7431 ;; 7432 7433 linux*) 7434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7435 tmp_addflag= 7436 case $cc_basename,$host_cpu in 7437 pgcc*) # Portland Group C compiler 7438 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' 7439 tmp_addflag=' $pic_flag' 7440 ;; 7441 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7442 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' 7443 tmp_addflag=' $pic_flag -Mnomain' ;; 7444 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7445 tmp_addflag=' -i_dynamic' ;; 7446 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7447 tmp_addflag=' -i_dynamic -nofor_main' ;; 7448 ifc* | ifort*) # Intel Fortran compiler 7449 tmp_addflag=' -nofor_main' ;; 7450 esac 7451 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7452 7453 if test $supports_anon_versioning = yes; then 7454 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7456 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7457 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7458 fi 7459 else 7460 ld_shlibs=no 7461 fi 7462 ;; 7463 7464 netbsd*) 7465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7466 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7467 wlarc= 7468 else 7469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7471 fi 7472 ;; 7473 7474 solaris* | sysv5*) 7475 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7476 ld_shlibs=no 7477 cat <<EOF 1>&2 7478 7479*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7480*** create shared libraries on Solaris systems. Therefore, libtool 7481*** is disabling shared libraries support. We urge you to upgrade GNU 7482*** binutils to release 2.9.1 or newer. Another option is to modify 7483*** your PATH or compiler configuration so that the native linker is 7484*** used, and then restart. 7485 7486EOF 7487 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7490 else 7491 ld_shlibs=no 7492 fi 7493 ;; 7494 7495 sunos4*) 7496 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7497 wlarc= 7498 hardcode_direct=yes 7499 hardcode_shlibpath_var=no 7500 ;; 7501 7502 *) 7503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7505 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7506 else 7507 ld_shlibs=no 7508 fi 7509 ;; 7510 esac 7511 7512 if test "$ld_shlibs" = no; then 7513 runpath_var= 7514 hardcode_libdir_flag_spec= 7515 export_dynamic_flag_spec= 7516 whole_archive_flag_spec= 7517 fi 7518 else 7519 # PORTME fill in a description of your system's linker (not GNU ld) 7520 case $host_os in 7521 aix3*) 7522 allow_undefined_flag=unsupported 7523 always_export_symbols=yes 7524 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' 7525 # Note: this linker hardcodes the directories in LIBPATH if there 7526 # are no directories specified by -L. 7527 hardcode_minus_L=yes 7528 if test "$GCC" = yes && test -z "$link_static_flag"; then 7529 # Neither direct hardcoding nor static linking is supported with a 7530 # broken collect2. 7531 hardcode_direct=unsupported 7532 fi 7533 ;; 7534 7535 aix4* | aix5*) 7536 if test "$host_cpu" = ia64; then 7537 # On IA64, the linker does run time linking by default, so we don't 7538 # have to do anything special. 7539 aix_use_runtimelinking=no 7540 exp_sym_flag='-Bexport' 7541 no_entry_flag="" 7542 else 7543 # If we're using GNU nm, then we don't want the "-C" option. 7544 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7545 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7546 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' 7547 else 7548 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' 7549 fi 7550 aix_use_runtimelinking=no 7551 7552 # Test if we are trying to use run time linking or normal 7553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7554 # need to do runtime linking. 7555 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7556 for ld_flag in $LDFLAGS; do 7557 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7558 aix_use_runtimelinking=yes 7559 break 7560 fi 7561 done 7562 esac 7563 7564 exp_sym_flag='-bexport' 7565 no_entry_flag='-bnoentry' 7566 fi 7567 7568 # When large executables or shared objects are built, AIX ld can 7569 # have problems creating the table of contents. If linking a library 7570 # or program results in "error TOC overflow" add -mminimal-toc to 7571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7573 7574 archive_cmds='' 7575 hardcode_direct=yes 7576 hardcode_libdir_separator=':' 7577 link_all_deplibs=yes 7578 7579 if test "$GCC" = yes; then 7580 case $host_os in aix4.[012]|aix4.[012].*) 7581 # We only want to do this on AIX 4.2 and lower, the check 7582 # below for broken collect2 doesn't work under 4.3+ 7583 collect2name=`${CC} -print-prog-name=collect2` 7584 if test -f "$collect2name" && \ 7585 strings "$collect2name" | grep resolve_lib_name >/dev/null 7586 then 7587 # We have reworked collect2 7588 hardcode_direct=yes 7589 else 7590 # We have old collect2 7591 hardcode_direct=unsupported 7592 # It fails to find uninstalled libraries when the uninstalled 7593 # path is not listed in the libpath. Setting hardcode_minus_L 7594 # to unsupported forces relinking 7595 hardcode_minus_L=yes 7596 hardcode_libdir_flag_spec='-L$libdir' 7597 hardcode_libdir_separator= 7598 fi 7599 esac 7600 shared_flag='-shared' 7601 if test "$aix_use_runtimelinking" = yes; then 7602 shared_flag="$shared_flag "'${wl}-G' 7603 fi 7604 else 7605 # not using gcc 7606 if test "$host_cpu" = ia64; then 7607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7608 # chokes on -Wl,-G. The following line is correct: 7609 shared_flag='-G' 7610 else 7611 if test "$aix_use_runtimelinking" = yes; then 7612 shared_flag='${wl}-G' 7613 else 7614 shared_flag='${wl}-bM:SRE' 7615 fi 7616 fi 7617 fi 7618 7619 # It seems that -bexpall does not export symbols beginning with 7620 # underscore (_), so it is better to generate a list of symbols to export. 7621 always_export_symbols=yes 7622 if test "$aix_use_runtimelinking" = yes; then 7623 # Warning - without using the other runtime loading flags (-brtl), 7624 # -berok will link without error, but may produce a broken library. 7625 allow_undefined_flag='-berok' 7626 # Determine the default libpath from the value encoded in an empty executable. 7627 cat >conftest.$ac_ext <<_ACEOF 7628/* confdefs.h. */ 7629_ACEOF 7630cat confdefs.h >>conftest.$ac_ext 7631cat >>conftest.$ac_ext <<_ACEOF 7632/* end confdefs.h. */ 7633 7634int 7635main () 7636{ 7637 7638 ; 7639 return 0; 7640} 7641_ACEOF 7642rm -f conftest.$ac_objext conftest$ac_exeext 7643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7644 (eval $ac_link) 2>conftest.er1 7645 ac_status=$? 7646 grep -v '^ *+' conftest.er1 >conftest.err 7647 rm -f conftest.er1 7648 cat conftest.err >&5 7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7650 (exit $ac_status); } && 7651 { ac_try='test -z "$ac_c_werror_flag" 7652 || test ! -s conftest.err' 7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7654 (eval $ac_try) 2>&5 7655 ac_status=$? 7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7657 (exit $ac_status); }; } && 7658 { ac_try='test -s conftest$ac_exeext' 7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7660 (eval $ac_try) 2>&5 7661 ac_status=$? 7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7663 (exit $ac_status); }; }; then 7664 7665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7666}'` 7667# Check for a 64-bit object if we didn't find anything. 7668if 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; } 7669}'`; fi 7670else 7671 echo "$as_me: failed program was:" >&5 7672sed 's/^/| /' conftest.$ac_ext >&5 7673 7674fi 7675rm -f conftest.err conftest.$ac_objext \ 7676 conftest$ac_exeext conftest.$ac_ext 7677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7678 7679 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7680 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7681 else 7682 if test "$host_cpu" = ia64; then 7683 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7684 allow_undefined_flag="-z nodefs" 7685 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7686 else 7687 # Determine the default libpath from the value encoded in an empty executable. 7688 cat >conftest.$ac_ext <<_ACEOF 7689/* confdefs.h. */ 7690_ACEOF 7691cat confdefs.h >>conftest.$ac_ext 7692cat >>conftest.$ac_ext <<_ACEOF 7693/* end confdefs.h. */ 7694 7695int 7696main () 7697{ 7698 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703rm -f conftest.$ac_objext conftest$ac_exeext 7704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7705 (eval $ac_link) 2>conftest.er1 7706 ac_status=$? 7707 grep -v '^ *+' conftest.er1 >conftest.err 7708 rm -f conftest.er1 7709 cat conftest.err >&5 7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7711 (exit $ac_status); } && 7712 { ac_try='test -z "$ac_c_werror_flag" 7713 || test ! -s conftest.err' 7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7715 (eval $ac_try) 2>&5 7716 ac_status=$? 7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7718 (exit $ac_status); }; } && 7719 { ac_try='test -s conftest$ac_exeext' 7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7721 (eval $ac_try) 2>&5 7722 ac_status=$? 7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7724 (exit $ac_status); }; }; then 7725 7726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7727}'` 7728# Check for a 64-bit object if we didn't find anything. 7729if 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; } 7730}'`; fi 7731else 7732 echo "$as_me: failed program was:" >&5 7733sed 's/^/| /' conftest.$ac_ext >&5 7734 7735fi 7736rm -f conftest.err conftest.$ac_objext \ 7737 conftest$ac_exeext conftest.$ac_ext 7738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7739 7740 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7741 # Warning - without using the other run time loading flags, 7742 # -berok will link without error, but may produce a broken library. 7743 no_undefined_flag=' ${wl}-bernotok' 7744 allow_undefined_flag=' ${wl}-berok' 7745 # -bexpall does not export symbols beginning with underscore (_) 7746 always_export_symbols=yes 7747 # Exported symbols can be pulled into shared objects from archives 7748 whole_archive_flag_spec=' ' 7749 archive_cmds_need_lc=yes 7750 # This is similar to how AIX traditionally builds its shared libraries. 7751 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7752 fi 7753 fi 7754 ;; 7755 7756 amigaos*) 7757 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)' 7758 hardcode_libdir_flag_spec='-L$libdir' 7759 hardcode_minus_L=yes 7760 # see comment about different semantics on the GNU ld section 7761 ld_shlibs=no 7762 ;; 7763 7764 bsdi[45]*) 7765 export_dynamic_flag_spec=-rdynamic 7766 ;; 7767 7768 cygwin* | mingw* | pw32*) 7769 # When not using gcc, we currently assume that we are using 7770 # Microsoft Visual C++. 7771 # hardcode_libdir_flag_spec is actually meaningless, as there is 7772 # no search path for DLLs. 7773 hardcode_libdir_flag_spec=' ' 7774 allow_undefined_flag=unsupported 7775 # Tell ltmain to make .lib files, not .a files. 7776 libext=lib 7777 # Tell ltmain to make .dll files, not .so files. 7778 shrext_cmds=".dll" 7779 # FIXME: Setting linknames here is a bad hack. 7780 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7781 # The linker will automatically build a .lib file if we build a DLL. 7782 old_archive_From_new_cmds='true' 7783 # FIXME: Should let the user specify the lib program. 7784 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7785 fix_srcfile_path='`cygpath -w "$srcfile"`' 7786 enable_shared_with_static_runtimes=yes 7787 ;; 7788 7789 darwin* | rhapsody*) 7790 case $host_os in 7791 rhapsody* | darwin1.[012]) 7792 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7793 ;; 7794 *) # Darwin 1.3 on 7795 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7796 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7797 else 7798 case ${MACOSX_DEPLOYMENT_TARGET} in 7799 10.[012]) 7800 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7801 ;; 7802 10.*) 7803 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7804 ;; 7805 esac 7806 fi 7807 ;; 7808 esac 7809 archive_cmds_need_lc=no 7810 hardcode_direct=no 7811 hardcode_automatic=yes 7812 hardcode_shlibpath_var=unsupported 7813 whole_archive_flag_spec='' 7814 link_all_deplibs=yes 7815 if test "$GCC" = yes ; then 7816 output_verbose_link_cmd='echo' 7817 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7818 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7820 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}' 7821 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}' 7822 else 7823 case $cc_basename in 7824 xlc*) 7825 output_verbose_link_cmd='echo' 7826 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7827 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7829 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}' 7830 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}' 7831 ;; 7832 *) 7833 ld_shlibs=no 7834 ;; 7835 esac 7836 fi 7837 ;; 7838 7839 dgux*) 7840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7841 hardcode_libdir_flag_spec='-L$libdir' 7842 hardcode_shlibpath_var=no 7843 ;; 7844 7845 freebsd1*) 7846 ld_shlibs=no 7847 ;; 7848 7849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7850 # support. Future versions do this automatically, but an explicit c++rt0.o 7851 # does not break anything, and helps significantly (at the cost of a little 7852 # extra space). 7853 freebsd2.2*) 7854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7855 hardcode_libdir_flag_spec='-R$libdir' 7856 hardcode_direct=yes 7857 hardcode_shlibpath_var=no 7858 ;; 7859 7860 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7861 freebsd2*) 7862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7863 hardcode_direct=yes 7864 hardcode_minus_L=yes 7865 hardcode_shlibpath_var=no 7866 ;; 7867 7868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7869 freebsd* | kfreebsd*-gnu | dragonfly*) 7870 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7871 hardcode_libdir_flag_spec='-R$libdir' 7872 hardcode_direct=yes 7873 hardcode_shlibpath_var=no 7874 ;; 7875 7876 hpux9*) 7877 if test "$GCC" = yes; then 7878 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' 7879 else 7880 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' 7881 fi 7882 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7883 hardcode_libdir_separator=: 7884 hardcode_direct=yes 7885 7886 # hardcode_minus_L: Not really in the search PATH, 7887 # but as the default location of the library. 7888 hardcode_minus_L=yes 7889 export_dynamic_flag_spec='${wl}-E' 7890 ;; 7891 7892 hpux10* | hpux11*) 7893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7894 case $host_cpu in 7895 hppa*64*|ia64*) 7896 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7897 ;; 7898 *) 7899 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7900 ;; 7901 esac 7902 else 7903 case $host_cpu in 7904 hppa*64*|ia64*) 7905 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7906 ;; 7907 *) 7908 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7909 ;; 7910 esac 7911 fi 7912 if test "$with_gnu_ld" = no; then 7913 case $host_cpu in 7914 hppa*64*) 7915 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7916 hardcode_libdir_flag_spec_ld='+b $libdir' 7917 hardcode_libdir_separator=: 7918 hardcode_direct=no 7919 hardcode_shlibpath_var=no 7920 ;; 7921 ia64*) 7922 hardcode_libdir_flag_spec='-L$libdir' 7923 hardcode_direct=no 7924 hardcode_shlibpath_var=no 7925 7926 # hardcode_minus_L: Not really in the search PATH, 7927 # but as the default location of the library. 7928 hardcode_minus_L=yes 7929 ;; 7930 *) 7931 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7932 hardcode_libdir_separator=: 7933 hardcode_direct=yes 7934 export_dynamic_flag_spec='${wl}-E' 7935 7936 # hardcode_minus_L: Not really in the search PATH, 7937 # but as the default location of the library. 7938 hardcode_minus_L=yes 7939 ;; 7940 esac 7941 fi 7942 ;; 7943 7944 irix5* | irix6* | nonstopux*) 7945 if test "$GCC" = yes; then 7946 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' 7947 else 7948 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' 7949 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7950 fi 7951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7952 hardcode_libdir_separator=: 7953 link_all_deplibs=yes 7954 ;; 7955 7956 netbsd*) 7957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7959 else 7960 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7961 fi 7962 hardcode_libdir_flag_spec='-R$libdir' 7963 hardcode_direct=yes 7964 hardcode_shlibpath_var=no 7965 ;; 7966 7967 newsos6) 7968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7969 hardcode_direct=yes 7970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7971 hardcode_libdir_separator=: 7972 hardcode_shlibpath_var=no 7973 ;; 7974 7975 openbsd*) 7976 hardcode_direct=yes 7977 hardcode_shlibpath_var=no 7978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7980 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7982 export_dynamic_flag_spec='${wl}-E' 7983 else 7984 case $host_os in 7985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7987 hardcode_libdir_flag_spec='-R$libdir' 7988 ;; 7989 *) 7990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7992 ;; 7993 esac 7994 fi 7995 ;; 7996 7997 os2*) 7998 hardcode_libdir_flag_spec='-L$libdir' 7999 hardcode_minus_L=yes 8000 allow_undefined_flag=unsupported 8001 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' 8002 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8003 ;; 8004 8005 osf3*) 8006 if test "$GCC" = yes; then 8007 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8008 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' 8009 else 8010 allow_undefined_flag=' -expect_unresolved \*' 8011 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' 8012 fi 8013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8014 hardcode_libdir_separator=: 8015 ;; 8016 8017 osf4* | osf5*) # as osf3* with the addition of -msym flag 8018 if test "$GCC" = yes; then 8019 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8020 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' 8021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8022 else 8023 allow_undefined_flag=' -expect_unresolved \*' 8024 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' 8025 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8026 $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' 8027 8028 # Both c and cxx compiler support -rpath directly 8029 hardcode_libdir_flag_spec='-rpath $libdir' 8030 fi 8031 hardcode_libdir_separator=: 8032 ;; 8033 8034 sco3.2v5*) 8035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8036 hardcode_shlibpath_var=no 8037 export_dynamic_flag_spec='${wl}-Bexport' 8038 runpath_var=LD_RUN_PATH 8039 hardcode_runpath_var=yes 8040 ;; 8041 8042 solaris*) 8043 no_undefined_flag=' -z text' 8044 if test "$GCC" = yes; then 8045 wlarc='${wl}' 8046 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8047 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8048 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8049 else 8050 wlarc='' 8051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8052 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8054 fi 8055 hardcode_libdir_flag_spec='-R$libdir' 8056 hardcode_shlibpath_var=no 8057 case $host_os in 8058 solaris2.[0-5] | solaris2.[0-5].*) ;; 8059 *) 8060 # The compiler driver will combine linker options so we 8061 # cannot just pass the convience library names through 8062 # without $wl, iff we do not link with $LD. 8063 # Luckily, gcc supports the same syntax we need for Sun Studio. 8064 # Supported since Solaris 2.6 (maybe 2.5.1?) 8065 case $wlarc in 8066 '') 8067 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8068 *) 8069 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' ;; 8070 esac ;; 8071 esac 8072 link_all_deplibs=yes 8073 ;; 8074 8075 sunos4*) 8076 if test "x$host_vendor" = xsequent; then 8077 # Use $CC to link under sequent, because it throws in some extra .o 8078 # files that make .init and .fini sections work. 8079 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8080 else 8081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8082 fi 8083 hardcode_libdir_flag_spec='-L$libdir' 8084 hardcode_direct=yes 8085 hardcode_minus_L=yes 8086 hardcode_shlibpath_var=no 8087 ;; 8088 8089 sysv4) 8090 case $host_vendor in 8091 sni) 8092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8093 hardcode_direct=yes # is this really true??? 8094 ;; 8095 siemens) 8096 ## LD is ld it makes a PLAMLIB 8097 ## CC just makes a GrossModule. 8098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8099 reload_cmds='$CC -r -o $output$reload_objs' 8100 hardcode_direct=no 8101 ;; 8102 motorola) 8103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8105 ;; 8106 esac 8107 runpath_var='LD_RUN_PATH' 8108 hardcode_shlibpath_var=no 8109 ;; 8110 8111 sysv4.3*) 8112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8113 hardcode_shlibpath_var=no 8114 export_dynamic_flag_spec='-Bexport' 8115 ;; 8116 8117 sysv4*MP*) 8118 if test -d /usr/nec; then 8119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8120 hardcode_shlibpath_var=no 8121 runpath_var=LD_RUN_PATH 8122 hardcode_runpath_var=yes 8123 ld_shlibs=yes 8124 fi 8125 ;; 8126 8127 sysv4.2uw2*) 8128 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8129 hardcode_direct=yes 8130 hardcode_minus_L=no 8131 hardcode_shlibpath_var=no 8132 hardcode_runpath_var=yes 8133 runpath_var=LD_RUN_PATH 8134 ;; 8135 8136 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 8137 no_undefined_flag='${wl}-z ${wl}text' 8138 if test "$GCC" = yes; then 8139 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8140 else 8141 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8142 fi 8143 runpath_var='LD_RUN_PATH' 8144 hardcode_shlibpath_var=no 8145 ;; 8146 8147 sysv5*) 8148 no_undefined_flag=' -z text' 8149 # $CC -shared without GNU ld will not create a library from C++ 8150 # object files and a static libstdc++, better avoid it by now 8151 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8152 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8154 hardcode_libdir_flag_spec= 8155 hardcode_shlibpath_var=no 8156 runpath_var='LD_RUN_PATH' 8157 ;; 8158 8159 uts4*) 8160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8161 hardcode_libdir_flag_spec='-L$libdir' 8162 hardcode_shlibpath_var=no 8163 ;; 8164 8165 *) 8166 ld_shlibs=no 8167 ;; 8168 esac 8169 fi 8170 8171echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8172echo "${ECHO_T}$ld_shlibs" >&6 8173test "$ld_shlibs" = no && can_build_shared=no 8174 8175variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8176if test "$GCC" = yes; then 8177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8178fi 8179 8180# 8181# Do we need to explicitly link libc? 8182# 8183case "x$archive_cmds_need_lc" in 8184x|xyes) 8185 # Assume -lc should be added 8186 archive_cmds_need_lc=yes 8187 8188 if test "$enable_shared" = yes && test "$GCC" = yes; then 8189 case $archive_cmds in 8190 *'~'*) 8191 # FIXME: we may have to deal with multi-command sequences. 8192 ;; 8193 '$CC '*) 8194 # Test whether the compiler implicitly links with -lc since on some 8195 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8196 # to ld, don't add -lc before -lgcc. 8197 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8198echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8199 $rm conftest* 8200 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8201 8202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8203 (eval $ac_compile) 2>&5 8204 ac_status=$? 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8206 (exit $ac_status); } 2>conftest.err; then 8207 soname=conftest 8208 lib=conftest 8209 libobjs=conftest.$ac_objext 8210 deplibs= 8211 wl=$lt_prog_compiler_wl 8212 compiler_flags=-v 8213 linker_flags=-v 8214 verstring= 8215 output_objdir=. 8216 libname=conftest 8217 lt_save_allow_undefined_flag=$allow_undefined_flag 8218 allow_undefined_flag= 8219 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8220 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8221 ac_status=$? 8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8223 (exit $ac_status); } 8224 then 8225 archive_cmds_need_lc=no 8226 else 8227 archive_cmds_need_lc=yes 8228 fi 8229 allow_undefined_flag=$lt_save_allow_undefined_flag 8230 else 8231 cat conftest.err 1>&5 8232 fi 8233 $rm conftest* 8234 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8235echo "${ECHO_T}$archive_cmds_need_lc" >&6 8236 ;; 8237 esac 8238 fi 8239 ;; 8240esac 8241 8242echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8243echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8244library_names_spec= 8245libname_spec='lib$name' 8246soname_spec= 8247shrext_cmds=".so" 8248postinstall_cmds= 8249postuninstall_cmds= 8250finish_cmds= 8251finish_eval= 8252shlibpath_var= 8253shlibpath_overrides_runpath=unknown 8254version_type=none 8255dynamic_linker="$host_os ld.so" 8256sys_lib_dlsearch_path_spec="/lib /usr/lib" 8257if test "$GCC" = yes; then 8258 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8259 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8260 # if the path contains ";" then we assume it to be the separator 8261 # otherwise default to the standard path separator (i.e. ":") - it is 8262 # assumed that no part of a normal pathname contains ";" but that should 8263 # okay in the real world where ";" in dirpaths is itself problematic. 8264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8265 else 8266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8267 fi 8268else 8269 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8270fi 8271need_lib_prefix=unknown 8272hardcode_into_libs=no 8273 8274# when you set need_version to no, make sure it does not cause -set_version 8275# flags to be left without arguments 8276need_version=unknown 8277 8278case $host_os in 8279aix3*) 8280 version_type=linux 8281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8282 shlibpath_var=LIBPATH 8283 8284 # AIX 3 has no versioning support, so we append a major version to the name. 8285 soname_spec='${libname}${release}${shared_ext}$major' 8286 ;; 8287 8288aix4* | aix5*) 8289 version_type=linux 8290 need_lib_prefix=no 8291 need_version=no 8292 hardcode_into_libs=yes 8293 if test "$host_cpu" = ia64; then 8294 # AIX 5 supports IA64 8295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8296 shlibpath_var=LD_LIBRARY_PATH 8297 else 8298 # With GCC up to 2.95.x, collect2 would create an import file 8299 # for dependence libraries. The import file would start with 8300 # the line `#! .'. This would cause the generated library to 8301 # depend on `.', always an invalid library. This was fixed in 8302 # development snapshots of GCC prior to 3.0. 8303 case $host_os in 8304 aix4 | aix4.[01] | aix4.[01].*) 8305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8306 echo ' yes ' 8307 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8308 : 8309 else 8310 can_build_shared=no 8311 fi 8312 ;; 8313 esac 8314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8315 # soname into executable. Probably we can add versioning support to 8316 # collect2, so additional links can be useful in future. 8317 if test "$aix_use_runtimelinking" = yes; then 8318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8319 # instead of lib<name>.a to let people know that these are not 8320 # typical AIX shared libraries. 8321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8322 else 8323 # We preserve .a as extension for shared libraries through AIX4.2 8324 # and later when we are not doing run time linking. 8325 library_names_spec='${libname}${release}.a $libname.a' 8326 soname_spec='${libname}${release}${shared_ext}$major' 8327 fi 8328 shlibpath_var=LIBPATH 8329 fi 8330 ;; 8331 8332amigaos*) 8333 library_names_spec='$libname.ixlibrary $libname.a' 8334 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8335 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' 8336 ;; 8337 8338beos*) 8339 library_names_spec='${libname}${shared_ext}' 8340 dynamic_linker="$host_os ld.so" 8341 shlibpath_var=LIBRARY_PATH 8342 ;; 8343 8344bsdi[45]*) 8345 version_type=linux 8346 need_version=no 8347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8348 soname_spec='${libname}${release}${shared_ext}$major' 8349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8350 shlibpath_var=LD_LIBRARY_PATH 8351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8353 # the default ld.so.conf also contains /usr/contrib/lib and 8354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8355 # libtool to hard-code these into programs 8356 ;; 8357 8358cygwin* | mingw* | pw32*) 8359 version_type=windows 8360 shrext_cmds=".dll" 8361 need_version=no 8362 need_lib_prefix=no 8363 8364 case $GCC,$host_os in 8365 yes,cygwin* | yes,mingw* | yes,pw32*) 8366 library_names_spec='$libname.dll.a' 8367 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8368 postinstall_cmds='base_file=`basename \${file}`~ 8369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8370 dldir=$destdir/`dirname \$dlpath`~ 8371 test -d \$dldir || mkdir -p \$dldir~ 8372 $install_prog $dir/$dlname \$dldir/$dlname~ 8373 chmod a+x \$dldir/$dlname' 8374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8375 dlpath=$dir/\$dldll~ 8376 $rm \$dlpath' 8377 shlibpath_overrides_runpath=yes 8378 8379 case $host_os in 8380 cygwin*) 8381 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8384 ;; 8385 mingw*) 8386 # MinGW DLLs use traditional 'lib' prefix 8387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8390 # It is most probably a Windows format PATH printed by 8391 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8392 # path with ; separators, and with drive letters. We can handle the 8393 # drive letters (cygwin fileutils understands them), so leave them, 8394 # especially as we might pass files found there to a mingw objdump, 8395 # which wouldn't understand a cygwinified path. Ahh. 8396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8397 else 8398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8399 fi 8400 ;; 8401 pw32*) 8402 # pw32 DLLs use 'pw' prefix rather than 'lib' 8403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8404 ;; 8405 esac 8406 ;; 8407 8408 *) 8409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8410 ;; 8411 esac 8412 dynamic_linker='Win32 ld.exe' 8413 # FIXME: first we should search . and the directory the executable is in 8414 shlibpath_var=PATH 8415 ;; 8416 8417darwin* | rhapsody*) 8418 dynamic_linker="$host_os dyld" 8419 version_type=darwin 8420 need_lib_prefix=no 8421 need_version=no 8422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8423 soname_spec='${libname}${release}${major}$shared_ext' 8424 shlibpath_overrides_runpath=yes 8425 shlibpath_var=DYLD_LIBRARY_PATH 8426 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8427 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8428 if test "$GCC" = yes; then 8429 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"` 8430 else 8431 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8432 fi 8433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8434 ;; 8435 8436dgux*) 8437 version_type=linux 8438 need_lib_prefix=no 8439 need_version=no 8440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8441 soname_spec='${libname}${release}${shared_ext}$major' 8442 shlibpath_var=LD_LIBRARY_PATH 8443 ;; 8444 8445freebsd1*) 8446 dynamic_linker=no 8447 ;; 8448 8449haiku*) 8450 library_names_spec='${libname}${shared_ext}' 8451 dynamic_linker="$host_os ld.so" 8452 shlibpath_var=LIBRARY_PATH 8453 ;; 8454 8455kfreebsd*-gnu) 8456 version_type=linux 8457 need_lib_prefix=no 8458 need_version=no 8459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8460 soname_spec='${libname}${release}${shared_ext}$major' 8461 shlibpath_var=LD_LIBRARY_PATH 8462 shlibpath_overrides_runpath=no 8463 hardcode_into_libs=yes 8464 dynamic_linker='GNU ld.so' 8465 ;; 8466 8467freebsd* | dragonfly*) 8468 # DragonFly does not have aout. When/if they implement a new 8469 # versioning mechanism, adjust this. 8470 if test -x /usr/bin/objformat; then 8471 objformat=`/usr/bin/objformat` 8472 else 8473 case $host_os in 8474 freebsd[123]*) objformat=aout ;; 8475 *) objformat=elf ;; 8476 esac 8477 fi 8478 version_type=freebsd-$objformat 8479 case $version_type in 8480 freebsd-elf*) 8481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8482 need_version=no 8483 need_lib_prefix=no 8484 ;; 8485 freebsd-*) 8486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8487 need_version=yes 8488 ;; 8489 esac 8490 shlibpath_var=LD_LIBRARY_PATH 8491 case $host_os in 8492 freebsd2*) 8493 shlibpath_overrides_runpath=yes 8494 ;; 8495 freebsd3.[01]* | freebsdelf3.[01]*) 8496 shlibpath_overrides_runpath=yes 8497 hardcode_into_libs=yes 8498 ;; 8499 *) # from 3.2 on 8500 shlibpath_overrides_runpath=no 8501 hardcode_into_libs=yes 8502 ;; 8503 esac 8504 ;; 8505 8506gnu*) 8507 version_type=linux 8508 need_lib_prefix=no 8509 need_version=no 8510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8511 soname_spec='${libname}${release}${shared_ext}$major' 8512 shlibpath_var=LD_LIBRARY_PATH 8513 hardcode_into_libs=yes 8514 ;; 8515 8516hpux9* | hpux10* | hpux11*) 8517 # Give a soname corresponding to the major version so that dld.sl refuses to 8518 # link against other versions. 8519 version_type=sunos 8520 need_lib_prefix=no 8521 need_version=no 8522 case $host_cpu in 8523 ia64*) 8524 shrext_cmds='.so' 8525 hardcode_into_libs=yes 8526 dynamic_linker="$host_os dld.so" 8527 shlibpath_var=LD_LIBRARY_PATH 8528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8530 soname_spec='${libname}${release}${shared_ext}$major' 8531 if test "X$HPUX_IA64_MODE" = X32; then 8532 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8533 else 8534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8535 fi 8536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8537 ;; 8538 hppa*64*) 8539 shrext_cmds='.sl' 8540 hardcode_into_libs=yes 8541 dynamic_linker="$host_os dld.sl" 8542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8545 soname_spec='${libname}${release}${shared_ext}$major' 8546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8548 ;; 8549 *) 8550 shrext_cmds='.sl' 8551 dynamic_linker="$host_os dld.sl" 8552 shlibpath_var=SHLIB_PATH 8553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8555 soname_spec='${libname}${release}${shared_ext}$major' 8556 ;; 8557 esac 8558 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8559 postinstall_cmds='chmod 555 $lib' 8560 ;; 8561 8562irix5* | irix6* | nonstopux*) 8563 case $host_os in 8564 nonstopux*) version_type=nonstopux ;; 8565 *) 8566 if test "$lt_cv_prog_gnu_ld" = yes; then 8567 version_type=linux 8568 else 8569 version_type=irix 8570 fi ;; 8571 esac 8572 need_lib_prefix=no 8573 need_version=no 8574 soname_spec='${libname}${release}${shared_ext}$major' 8575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8576 case $host_os in 8577 irix5* | nonstopux*) 8578 libsuff= shlibsuff= 8579 ;; 8580 *) 8581 case $LD in # libtool.m4 will add one of these switches to LD 8582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8583 libsuff= shlibsuff= libmagic=32-bit;; 8584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8585 libsuff=32 shlibsuff=N32 libmagic=N32;; 8586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8587 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8588 *) libsuff= shlibsuff= libmagic=never-match;; 8589 esac 8590 ;; 8591 esac 8592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8593 shlibpath_overrides_runpath=no 8594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8596 hardcode_into_libs=yes 8597 ;; 8598 8599# No shared lib support for Linux oldld, aout, or coff. 8600linux*oldld* | linux*aout* | linux*coff*) 8601 dynamic_linker=no 8602 ;; 8603 8604# This must be Linux ELF. 8605linux*) 8606 version_type=linux 8607 need_lib_prefix=no 8608 need_version=no 8609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8610 soname_spec='${libname}${release}${shared_ext}$major' 8611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8612 shlibpath_var=LD_LIBRARY_PATH 8613 shlibpath_overrides_runpath=no 8614 # This implies no fast_install, which is unacceptable. 8615 # Some rework will be needed to allow for fast_install 8616 # before this can be enabled. 8617 hardcode_into_libs=yes 8618 8619 # Append ld.so.conf contents to the search path 8620 if test -f /etc/ld.so.conf; then 8621 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' ' '` 8622 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8623 fi 8624 8625 # We used to test for /lib/ld.so.1 and disable shared libraries on 8626 # powerpc, because MkLinux only supported shared libraries with the 8627 # GNU dynamic linker. Since this was broken with cross compilers, 8628 # most powerpc-linux boxes support dynamic linking these days and 8629 # people can always --disable-shared, the test was removed, and we 8630 # assume the GNU/Linux dynamic linker is in use. 8631 dynamic_linker='GNU/Linux ld.so' 8632 ;; 8633 8634knetbsd*-gnu) 8635 version_type=linux 8636 need_lib_prefix=no 8637 need_version=no 8638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8639 soname_spec='${libname}${release}${shared_ext}$major' 8640 shlibpath_var=LD_LIBRARY_PATH 8641 shlibpath_overrides_runpath=no 8642 hardcode_into_libs=yes 8643 dynamic_linker='GNU ld.so' 8644 ;; 8645 8646netbsd*) 8647 version_type=sunos 8648 need_lib_prefix=no 8649 need_version=no 8650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8653 dynamic_linker='NetBSD (a.out) ld.so' 8654 else 8655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8656 soname_spec='${libname}${release}${shared_ext}$major' 8657 dynamic_linker='NetBSD ld.elf_so' 8658 fi 8659 shlibpath_var=LD_LIBRARY_PATH 8660 shlibpath_overrides_runpath=yes 8661 hardcode_into_libs=yes 8662 ;; 8663 8664newsos6) 8665 version_type=linux 8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8667 shlibpath_var=LD_LIBRARY_PATH 8668 shlibpath_overrides_runpath=yes 8669 ;; 8670 8671nto-qnx*) 8672 version_type=linux 8673 need_lib_prefix=no 8674 need_version=no 8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8676 soname_spec='${libname}${release}${shared_ext}$major' 8677 shlibpath_var=LD_LIBRARY_PATH 8678 shlibpath_overrides_runpath=yes 8679 ;; 8680 8681openbsd*) 8682 version_type=sunos 8683 need_lib_prefix=no 8684 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8685 case $host_os in 8686 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8687 *) need_version=no ;; 8688 esac 8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8691 shlibpath_var=LD_LIBRARY_PATH 8692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8693 case $host_os in 8694 openbsd2.[89] | openbsd2.[89].*) 8695 shlibpath_overrides_runpath=no 8696 ;; 8697 *) 8698 shlibpath_overrides_runpath=yes 8699 ;; 8700 esac 8701 else 8702 shlibpath_overrides_runpath=yes 8703 fi 8704 ;; 8705 8706os2*) 8707 libname_spec='$name' 8708 shrext_cmds=".dll" 8709 need_lib_prefix=no 8710 library_names_spec='$libname${shared_ext} $libname.a' 8711 dynamic_linker='OS/2 ld.exe' 8712 shlibpath_var=LIBPATH 8713 ;; 8714 8715osf3* | osf4* | osf5*) 8716 version_type=osf 8717 need_lib_prefix=no 8718 need_version=no 8719 soname_spec='${libname}${release}${shared_ext}$major' 8720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8721 shlibpath_var=LD_LIBRARY_PATH 8722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8723 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8724 ;; 8725 8726sco3.2v5*) 8727 version_type=osf 8728 soname_spec='${libname}${release}${shared_ext}$major' 8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8730 shlibpath_var=LD_LIBRARY_PATH 8731 ;; 8732 8733solaris*) 8734 version_type=linux 8735 need_lib_prefix=no 8736 need_version=no 8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8738 soname_spec='${libname}${release}${shared_ext}$major' 8739 shlibpath_var=LD_LIBRARY_PATH 8740 shlibpath_overrides_runpath=yes 8741 hardcode_into_libs=yes 8742 # ldd complains unless libraries are executable 8743 postinstall_cmds='chmod +x $lib' 8744 ;; 8745 8746sunos4*) 8747 version_type=sunos 8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8750 shlibpath_var=LD_LIBRARY_PATH 8751 shlibpath_overrides_runpath=yes 8752 if test "$with_gnu_ld" = yes; then 8753 need_lib_prefix=no 8754 fi 8755 need_version=yes 8756 ;; 8757 8758sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8759 version_type=linux 8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8761 soname_spec='${libname}${release}${shared_ext}$major' 8762 shlibpath_var=LD_LIBRARY_PATH 8763 case $host_vendor in 8764 sni) 8765 shlibpath_overrides_runpath=no 8766 need_lib_prefix=no 8767 export_dynamic_flag_spec='${wl}-Blargedynsym' 8768 runpath_var=LD_RUN_PATH 8769 ;; 8770 siemens) 8771 need_lib_prefix=no 8772 ;; 8773 motorola) 8774 need_lib_prefix=no 8775 need_version=no 8776 shlibpath_overrides_runpath=no 8777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8778 ;; 8779 esac 8780 ;; 8781 8782sysv4*MP*) 8783 if test -d /usr/nec ;then 8784 version_type=linux 8785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8786 soname_spec='$libname${shared_ext}.$major' 8787 shlibpath_var=LD_LIBRARY_PATH 8788 fi 8789 ;; 8790 8791uts4*) 8792 version_type=linux 8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8794 soname_spec='${libname}${release}${shared_ext}$major' 8795 shlibpath_var=LD_LIBRARY_PATH 8796 ;; 8797 8798*) 8799 dynamic_linker=no 8800 ;; 8801esac 8802echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8803echo "${ECHO_T}$dynamic_linker" >&6 8804test "$dynamic_linker" = no && can_build_shared=no 8805 8806echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8807echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8808hardcode_action= 8809if test -n "$hardcode_libdir_flag_spec" || \ 8810 test -n "$runpath_var" || \ 8811 test "X$hardcode_automatic" = "Xyes" ; then 8812 8813 # We can hardcode non-existant directories. 8814 if test "$hardcode_direct" != no && 8815 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8816 # have to relink, otherwise we might link with an installed library 8817 # when we should be linking with a yet-to-be-installed one 8818 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8819 test "$hardcode_minus_L" != no; then 8820 # Linking always hardcodes the temporary library directory. 8821 hardcode_action=relink 8822 else 8823 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8824 hardcode_action=immediate 8825 fi 8826else 8827 # We cannot hardcode anything, or else we can only hardcode existing 8828 # directories. 8829 hardcode_action=unsupported 8830fi 8831echo "$as_me:$LINENO: result: $hardcode_action" >&5 8832echo "${ECHO_T}$hardcode_action" >&6 8833 8834if test "$hardcode_action" = relink; then 8835 # Fast installation is not supported 8836 enable_fast_install=no 8837elif test "$shlibpath_overrides_runpath" = yes || 8838 test "$enable_shared" = no; then 8839 # Fast installation is not necessary 8840 enable_fast_install=needless 8841fi 8842 8843striplib= 8844old_striplib= 8845echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8846echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8847if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8848 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8849 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8850 echo "$as_me:$LINENO: result: yes" >&5 8851echo "${ECHO_T}yes" >&6 8852else 8853# FIXME - insert some real tests, host_os isn't really good enough 8854 case $host_os in 8855 darwin*) 8856 if test -n "$STRIP" ; then 8857 striplib="$STRIP -x" 8858 echo "$as_me:$LINENO: result: yes" >&5 8859echo "${ECHO_T}yes" >&6 8860 else 8861 echo "$as_me:$LINENO: result: no" >&5 8862echo "${ECHO_T}no" >&6 8863fi 8864 ;; 8865 *) 8866 echo "$as_me:$LINENO: result: no" >&5 8867echo "${ECHO_T}no" >&6 8868 ;; 8869 esac 8870fi 8871 8872if test "x$enable_dlopen" != xyes; then 8873 enable_dlopen=unknown 8874 enable_dlopen_self=unknown 8875 enable_dlopen_self_static=unknown 8876else 8877 lt_cv_dlopen=no 8878 lt_cv_dlopen_libs= 8879 8880 case $host_os in 8881 beos*) 8882 lt_cv_dlopen="load_add_on" 8883 lt_cv_dlopen_libs= 8884 lt_cv_dlopen_self=yes 8885 ;; 8886 8887 mingw* | pw32*) 8888 lt_cv_dlopen="LoadLibrary" 8889 lt_cv_dlopen_libs= 8890 ;; 8891 8892 cygwin*) 8893 lt_cv_dlopen="dlopen" 8894 lt_cv_dlopen_libs= 8895 ;; 8896 8897 darwin*) 8898 # if libdl is installed we need to link against it 8899 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8900echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8901if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8902 echo $ECHO_N "(cached) $ECHO_C" >&6 8903else 8904 ac_check_lib_save_LIBS=$LIBS 8905LIBS="-ldl $LIBS" 8906cat >conftest.$ac_ext <<_ACEOF 8907/* confdefs.h. */ 8908_ACEOF 8909cat confdefs.h >>conftest.$ac_ext 8910cat >>conftest.$ac_ext <<_ACEOF 8911/* end confdefs.h. */ 8912 8913/* Override any gcc2 internal prototype to avoid an error. */ 8914#ifdef __cplusplus 8915extern "C" 8916#endif 8917/* We use char because int might match the return type of a gcc2 8918 builtin and then its argument prototype would still apply. */ 8919char dlopen (); 8920int 8921main () 8922{ 8923dlopen (); 8924 ; 8925 return 0; 8926} 8927_ACEOF 8928rm -f conftest.$ac_objext conftest$ac_exeext 8929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8930 (eval $ac_link) 2>conftest.er1 8931 ac_status=$? 8932 grep -v '^ *+' conftest.er1 >conftest.err 8933 rm -f conftest.er1 8934 cat conftest.err >&5 8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8936 (exit $ac_status); } && 8937 { ac_try='test -z "$ac_c_werror_flag" 8938 || test ! -s conftest.err' 8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8940 (eval $ac_try) 2>&5 8941 ac_status=$? 8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8943 (exit $ac_status); }; } && 8944 { ac_try='test -s conftest$ac_exeext' 8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8946 (eval $ac_try) 2>&5 8947 ac_status=$? 8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8949 (exit $ac_status); }; }; then 8950 ac_cv_lib_dl_dlopen=yes 8951else 8952 echo "$as_me: failed program was:" >&5 8953sed 's/^/| /' conftest.$ac_ext >&5 8954 8955ac_cv_lib_dl_dlopen=no 8956fi 8957rm -f conftest.err conftest.$ac_objext \ 8958 conftest$ac_exeext conftest.$ac_ext 8959LIBS=$ac_check_lib_save_LIBS 8960fi 8961echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8962echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8963if test $ac_cv_lib_dl_dlopen = yes; then 8964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8965else 8966 8967 lt_cv_dlopen="dyld" 8968 lt_cv_dlopen_libs= 8969 lt_cv_dlopen_self=yes 8970 8971fi 8972 8973 ;; 8974 8975 haiku*) 8976 lt_cv_dlopen="load_add_on" 8977 lt_cv_dlopen_libs= 8978 lt_cv_dlopen_self=yes 8979 ;; 8980 8981 *) 8982 echo "$as_me:$LINENO: checking for shl_load" >&5 8983echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8984if test "${ac_cv_func_shl_load+set}" = set; then 8985 echo $ECHO_N "(cached) $ECHO_C" >&6 8986else 8987 cat >conftest.$ac_ext <<_ACEOF 8988/* confdefs.h. */ 8989_ACEOF 8990cat confdefs.h >>conftest.$ac_ext 8991cat >>conftest.$ac_ext <<_ACEOF 8992/* end confdefs.h. */ 8993/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8994 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8995#define shl_load innocuous_shl_load 8996 8997/* System header to define __stub macros and hopefully few prototypes, 8998 which can conflict with char shl_load (); below. 8999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9000 <limits.h> exists even on freestanding compilers. */ 9001 9002#ifdef __STDC__ 9003# include <limits.h> 9004#else 9005# include <assert.h> 9006#endif 9007 9008#undef shl_load 9009 9010/* Override any gcc2 internal prototype to avoid an error. */ 9011#ifdef __cplusplus 9012extern "C" 9013{ 9014#endif 9015/* We use char because int might match the return type of a gcc2 9016 builtin and then its argument prototype would still apply. */ 9017char shl_load (); 9018/* The GNU C library defines this for functions which it implements 9019 to always fail with ENOSYS. Some functions are actually named 9020 something starting with __ and the normal name is an alias. */ 9021#if defined (__stub_shl_load) || defined (__stub___shl_load) 9022choke me 9023#else 9024char (*f) () = shl_load; 9025#endif 9026#ifdef __cplusplus 9027} 9028#endif 9029 9030int 9031main () 9032{ 9033return f != shl_load; 9034 ; 9035 return 0; 9036} 9037_ACEOF 9038rm -f conftest.$ac_objext conftest$ac_exeext 9039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9040 (eval $ac_link) 2>conftest.er1 9041 ac_status=$? 9042 grep -v '^ *+' conftest.er1 >conftest.err 9043 rm -f conftest.er1 9044 cat conftest.err >&5 9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9046 (exit $ac_status); } && 9047 { ac_try='test -z "$ac_c_werror_flag" 9048 || test ! -s conftest.err' 9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9050 (eval $ac_try) 2>&5 9051 ac_status=$? 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9053 (exit $ac_status); }; } && 9054 { ac_try='test -s conftest$ac_exeext' 9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9056 (eval $ac_try) 2>&5 9057 ac_status=$? 9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9059 (exit $ac_status); }; }; then 9060 ac_cv_func_shl_load=yes 9061else 9062 echo "$as_me: failed program was:" >&5 9063sed 's/^/| /' conftest.$ac_ext >&5 9064 9065ac_cv_func_shl_load=no 9066fi 9067rm -f conftest.err conftest.$ac_objext \ 9068 conftest$ac_exeext conftest.$ac_ext 9069fi 9070echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9071echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9072if test $ac_cv_func_shl_load = yes; then 9073 lt_cv_dlopen="shl_load" 9074else 9075 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9076echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9077if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9078 echo $ECHO_N "(cached) $ECHO_C" >&6 9079else 9080 ac_check_lib_save_LIBS=$LIBS 9081LIBS="-ldld $LIBS" 9082cat >conftest.$ac_ext <<_ACEOF 9083/* confdefs.h. */ 9084_ACEOF 9085cat confdefs.h >>conftest.$ac_ext 9086cat >>conftest.$ac_ext <<_ACEOF 9087/* end confdefs.h. */ 9088 9089/* Override any gcc2 internal prototype to avoid an error. */ 9090#ifdef __cplusplus 9091extern "C" 9092#endif 9093/* We use char because int might match the return type of a gcc2 9094 builtin and then its argument prototype would still apply. */ 9095char shl_load (); 9096int 9097main () 9098{ 9099shl_load (); 9100 ; 9101 return 0; 9102} 9103_ACEOF 9104rm -f conftest.$ac_objext conftest$ac_exeext 9105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9106 (eval $ac_link) 2>conftest.er1 9107 ac_status=$? 9108 grep -v '^ *+' conftest.er1 >conftest.err 9109 rm -f conftest.er1 9110 cat conftest.err >&5 9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9112 (exit $ac_status); } && 9113 { ac_try='test -z "$ac_c_werror_flag" 9114 || test ! -s conftest.err' 9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9116 (eval $ac_try) 2>&5 9117 ac_status=$? 9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9119 (exit $ac_status); }; } && 9120 { ac_try='test -s conftest$ac_exeext' 9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9122 (eval $ac_try) 2>&5 9123 ac_status=$? 9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9125 (exit $ac_status); }; }; then 9126 ac_cv_lib_dld_shl_load=yes 9127else 9128 echo "$as_me: failed program was:" >&5 9129sed 's/^/| /' conftest.$ac_ext >&5 9130 9131ac_cv_lib_dld_shl_load=no 9132fi 9133rm -f conftest.err conftest.$ac_objext \ 9134 conftest$ac_exeext conftest.$ac_ext 9135LIBS=$ac_check_lib_save_LIBS 9136fi 9137echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9138echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9139if test $ac_cv_lib_dld_shl_load = yes; then 9140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9141else 9142 echo "$as_me:$LINENO: checking for dlopen" >&5 9143echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9144if test "${ac_cv_func_dlopen+set}" = set; then 9145 echo $ECHO_N "(cached) $ECHO_C" >&6 9146else 9147 cat >conftest.$ac_ext <<_ACEOF 9148/* confdefs.h. */ 9149_ACEOF 9150cat confdefs.h >>conftest.$ac_ext 9151cat >>conftest.$ac_ext <<_ACEOF 9152/* end confdefs.h. */ 9153/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9154 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9155#define dlopen innocuous_dlopen 9156 9157/* System header to define __stub macros and hopefully few prototypes, 9158 which can conflict with char dlopen (); below. 9159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9160 <limits.h> exists even on freestanding compilers. */ 9161 9162#ifdef __STDC__ 9163# include <limits.h> 9164#else 9165# include <assert.h> 9166#endif 9167 9168#undef dlopen 9169 9170/* Override any gcc2 internal prototype to avoid an error. */ 9171#ifdef __cplusplus 9172extern "C" 9173{ 9174#endif 9175/* We use char because int might match the return type of a gcc2 9176 builtin and then its argument prototype would still apply. */ 9177char dlopen (); 9178/* The GNU C library defines this for functions which it implements 9179 to always fail with ENOSYS. Some functions are actually named 9180 something starting with __ and the normal name is an alias. */ 9181#if defined (__stub_dlopen) || defined (__stub___dlopen) 9182choke me 9183#else 9184char (*f) () = dlopen; 9185#endif 9186#ifdef __cplusplus 9187} 9188#endif 9189 9190int 9191main () 9192{ 9193return f != dlopen; 9194 ; 9195 return 0; 9196} 9197_ACEOF 9198rm -f conftest.$ac_objext conftest$ac_exeext 9199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9200 (eval $ac_link) 2>conftest.er1 9201 ac_status=$? 9202 grep -v '^ *+' conftest.er1 >conftest.err 9203 rm -f conftest.er1 9204 cat conftest.err >&5 9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9206 (exit $ac_status); } && 9207 { ac_try='test -z "$ac_c_werror_flag" 9208 || test ! -s conftest.err' 9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9210 (eval $ac_try) 2>&5 9211 ac_status=$? 9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9213 (exit $ac_status); }; } && 9214 { ac_try='test -s conftest$ac_exeext' 9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9216 (eval $ac_try) 2>&5 9217 ac_status=$? 9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9219 (exit $ac_status); }; }; then 9220 ac_cv_func_dlopen=yes 9221else 9222 echo "$as_me: failed program was:" >&5 9223sed 's/^/| /' conftest.$ac_ext >&5 9224 9225ac_cv_func_dlopen=no 9226fi 9227rm -f conftest.err conftest.$ac_objext \ 9228 conftest$ac_exeext conftest.$ac_ext 9229fi 9230echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9231echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9232if test $ac_cv_func_dlopen = yes; then 9233 lt_cv_dlopen="dlopen" 9234else 9235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9236echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9237if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9238 echo $ECHO_N "(cached) $ECHO_C" >&6 9239else 9240 ac_check_lib_save_LIBS=$LIBS 9241LIBS="-ldl $LIBS" 9242cat >conftest.$ac_ext <<_ACEOF 9243/* confdefs.h. */ 9244_ACEOF 9245cat confdefs.h >>conftest.$ac_ext 9246cat >>conftest.$ac_ext <<_ACEOF 9247/* end confdefs.h. */ 9248 9249/* Override any gcc2 internal prototype to avoid an error. */ 9250#ifdef __cplusplus 9251extern "C" 9252#endif 9253/* We use char because int might match the return type of a gcc2 9254 builtin and then its argument prototype would still apply. */ 9255char dlopen (); 9256int 9257main () 9258{ 9259dlopen (); 9260 ; 9261 return 0; 9262} 9263_ACEOF 9264rm -f conftest.$ac_objext conftest$ac_exeext 9265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9266 (eval $ac_link) 2>conftest.er1 9267 ac_status=$? 9268 grep -v '^ *+' conftest.er1 >conftest.err 9269 rm -f conftest.er1 9270 cat conftest.err >&5 9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9272 (exit $ac_status); } && 9273 { ac_try='test -z "$ac_c_werror_flag" 9274 || test ! -s conftest.err' 9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9276 (eval $ac_try) 2>&5 9277 ac_status=$? 9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 (exit $ac_status); }; } && 9280 { ac_try='test -s conftest$ac_exeext' 9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9282 (eval $ac_try) 2>&5 9283 ac_status=$? 9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9285 (exit $ac_status); }; }; then 9286 ac_cv_lib_dl_dlopen=yes 9287else 9288 echo "$as_me: failed program was:" >&5 9289sed 's/^/| /' conftest.$ac_ext >&5 9290 9291ac_cv_lib_dl_dlopen=no 9292fi 9293rm -f conftest.err conftest.$ac_objext \ 9294 conftest$ac_exeext conftest.$ac_ext 9295LIBS=$ac_check_lib_save_LIBS 9296fi 9297echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9298echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9299if test $ac_cv_lib_dl_dlopen = yes; then 9300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9301else 9302 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9303echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9304if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9305 echo $ECHO_N "(cached) $ECHO_C" >&6 9306else 9307 ac_check_lib_save_LIBS=$LIBS 9308LIBS="-lsvld $LIBS" 9309cat >conftest.$ac_ext <<_ACEOF 9310/* confdefs.h. */ 9311_ACEOF 9312cat confdefs.h >>conftest.$ac_ext 9313cat >>conftest.$ac_ext <<_ACEOF 9314/* end confdefs.h. */ 9315 9316/* Override any gcc2 internal prototype to avoid an error. */ 9317#ifdef __cplusplus 9318extern "C" 9319#endif 9320/* We use char because int might match the return type of a gcc2 9321 builtin and then its argument prototype would still apply. */ 9322char dlopen (); 9323int 9324main () 9325{ 9326dlopen (); 9327 ; 9328 return 0; 9329} 9330_ACEOF 9331rm -f conftest.$ac_objext conftest$ac_exeext 9332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9333 (eval $ac_link) 2>conftest.er1 9334 ac_status=$? 9335 grep -v '^ *+' conftest.er1 >conftest.err 9336 rm -f conftest.er1 9337 cat conftest.err >&5 9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9339 (exit $ac_status); } && 9340 { ac_try='test -z "$ac_c_werror_flag" 9341 || test ! -s conftest.err' 9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9343 (eval $ac_try) 2>&5 9344 ac_status=$? 9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 (exit $ac_status); }; } && 9347 { ac_try='test -s conftest$ac_exeext' 9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9349 (eval $ac_try) 2>&5 9350 ac_status=$? 9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9352 (exit $ac_status); }; }; then 9353 ac_cv_lib_svld_dlopen=yes 9354else 9355 echo "$as_me: failed program was:" >&5 9356sed 's/^/| /' conftest.$ac_ext >&5 9357 9358ac_cv_lib_svld_dlopen=no 9359fi 9360rm -f conftest.err conftest.$ac_objext \ 9361 conftest$ac_exeext conftest.$ac_ext 9362LIBS=$ac_check_lib_save_LIBS 9363fi 9364echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9365echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9366if test $ac_cv_lib_svld_dlopen = yes; then 9367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9368else 9369 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9370echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9371if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9372 echo $ECHO_N "(cached) $ECHO_C" >&6 9373else 9374 ac_check_lib_save_LIBS=$LIBS 9375LIBS="-ldld $LIBS" 9376cat >conftest.$ac_ext <<_ACEOF 9377/* confdefs.h. */ 9378_ACEOF 9379cat confdefs.h >>conftest.$ac_ext 9380cat >>conftest.$ac_ext <<_ACEOF 9381/* end confdefs.h. */ 9382 9383/* Override any gcc2 internal prototype to avoid an error. */ 9384#ifdef __cplusplus 9385extern "C" 9386#endif 9387/* We use char because int might match the return type of a gcc2 9388 builtin and then its argument prototype would still apply. */ 9389char dld_link (); 9390int 9391main () 9392{ 9393dld_link (); 9394 ; 9395 return 0; 9396} 9397_ACEOF 9398rm -f conftest.$ac_objext conftest$ac_exeext 9399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9400 (eval $ac_link) 2>conftest.er1 9401 ac_status=$? 9402 grep -v '^ *+' conftest.er1 >conftest.err 9403 rm -f conftest.er1 9404 cat conftest.err >&5 9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9406 (exit $ac_status); } && 9407 { ac_try='test -z "$ac_c_werror_flag" 9408 || test ! -s conftest.err' 9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9410 (eval $ac_try) 2>&5 9411 ac_status=$? 9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9413 (exit $ac_status); }; } && 9414 { ac_try='test -s conftest$ac_exeext' 9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9416 (eval $ac_try) 2>&5 9417 ac_status=$? 9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9419 (exit $ac_status); }; }; then 9420 ac_cv_lib_dld_dld_link=yes 9421else 9422 echo "$as_me: failed program was:" >&5 9423sed 's/^/| /' conftest.$ac_ext >&5 9424 9425ac_cv_lib_dld_dld_link=no 9426fi 9427rm -f conftest.err conftest.$ac_objext \ 9428 conftest$ac_exeext conftest.$ac_ext 9429LIBS=$ac_check_lib_save_LIBS 9430fi 9431echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9432echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9433if test $ac_cv_lib_dld_dld_link = yes; then 9434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9435fi 9436 9437 9438fi 9439 9440 9441fi 9442 9443 9444fi 9445 9446 9447fi 9448 9449 9450fi 9451 9452 ;; 9453 esac 9454 9455 if test "x$lt_cv_dlopen" != xno; then 9456 enable_dlopen=yes 9457 else 9458 enable_dlopen=no 9459 fi 9460 9461 case $lt_cv_dlopen in 9462 dlopen) 9463 save_CPPFLAGS="$CPPFLAGS" 9464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9465 9466 save_LDFLAGS="$LDFLAGS" 9467 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9468 9469 save_LIBS="$LIBS" 9470 LIBS="$lt_cv_dlopen_libs $LIBS" 9471 9472 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9473echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9474if test "${lt_cv_dlopen_self+set}" = set; then 9475 echo $ECHO_N "(cached) $ECHO_C" >&6 9476else 9477 if test "$cross_compiling" = yes; then : 9478 lt_cv_dlopen_self=cross 9479else 9480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9481 lt_status=$lt_dlunknown 9482 cat > conftest.$ac_ext <<EOF 9483#line 9483 "configure" 9484#include "confdefs.h" 9485 9486#if HAVE_DLFCN_H 9487#include <dlfcn.h> 9488#endif 9489 9490#include <stdio.h> 9491 9492#ifdef RTLD_GLOBAL 9493# define LT_DLGLOBAL RTLD_GLOBAL 9494#else 9495# ifdef DL_GLOBAL 9496# define LT_DLGLOBAL DL_GLOBAL 9497# else 9498# define LT_DLGLOBAL 0 9499# endif 9500#endif 9501 9502/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9503 find out it does not work in some platform. */ 9504#ifndef LT_DLLAZY_OR_NOW 9505# ifdef RTLD_LAZY 9506# define LT_DLLAZY_OR_NOW RTLD_LAZY 9507# else 9508# ifdef DL_LAZY 9509# define LT_DLLAZY_OR_NOW DL_LAZY 9510# else 9511# ifdef RTLD_NOW 9512# define LT_DLLAZY_OR_NOW RTLD_NOW 9513# else 9514# ifdef DL_NOW 9515# define LT_DLLAZY_OR_NOW DL_NOW 9516# else 9517# define LT_DLLAZY_OR_NOW 0 9518# endif 9519# endif 9520# endif 9521# endif 9522#endif 9523 9524#ifdef __cplusplus 9525extern "C" void exit (int); 9526#endif 9527 9528void fnord() { int i=42;} 9529int main () 9530{ 9531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9532 int status = $lt_dlunknown; 9533 9534 if (self) 9535 { 9536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9537 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9538 /* dlclose (self); */ 9539 } 9540 9541 exit (status); 9542} 9543EOF 9544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9545 (eval $ac_link) 2>&5 9546 ac_status=$? 9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9549 (./conftest; exit; ) >&5 2>/dev/null 9550 lt_status=$? 9551 case x$lt_status in 9552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9554 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9555 esac 9556 else : 9557 # compilation failed 9558 lt_cv_dlopen_self=no 9559 fi 9560fi 9561rm -fr conftest* 9562 9563 9564fi 9565echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9566echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9567 9568 if test "x$lt_cv_dlopen_self" = xyes; then 9569 LDFLAGS="$LDFLAGS $link_static_flag" 9570 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9571echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9572if test "${lt_cv_dlopen_self_static+set}" = set; then 9573 echo $ECHO_N "(cached) $ECHO_C" >&6 9574else 9575 if test "$cross_compiling" = yes; then : 9576 lt_cv_dlopen_self_static=cross 9577else 9578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9579 lt_status=$lt_dlunknown 9580 cat > conftest.$ac_ext <<EOF 9581#line 9581 "configure" 9582#include "confdefs.h" 9583 9584#if HAVE_DLFCN_H 9585#include <dlfcn.h> 9586#endif 9587 9588#include <stdio.h> 9589 9590#ifdef RTLD_GLOBAL 9591# define LT_DLGLOBAL RTLD_GLOBAL 9592#else 9593# ifdef DL_GLOBAL 9594# define LT_DLGLOBAL DL_GLOBAL 9595# else 9596# define LT_DLGLOBAL 0 9597# endif 9598#endif 9599 9600/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9601 find out it does not work in some platform. */ 9602#ifndef LT_DLLAZY_OR_NOW 9603# ifdef RTLD_LAZY 9604# define LT_DLLAZY_OR_NOW RTLD_LAZY 9605# else 9606# ifdef DL_LAZY 9607# define LT_DLLAZY_OR_NOW DL_LAZY 9608# else 9609# ifdef RTLD_NOW 9610# define LT_DLLAZY_OR_NOW RTLD_NOW 9611# else 9612# ifdef DL_NOW 9613# define LT_DLLAZY_OR_NOW DL_NOW 9614# else 9615# define LT_DLLAZY_OR_NOW 0 9616# endif 9617# endif 9618# endif 9619# endif 9620#endif 9621 9622#ifdef __cplusplus 9623extern "C" void exit (int); 9624#endif 9625 9626void fnord() { int i=42;} 9627int main () 9628{ 9629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9630 int status = $lt_dlunknown; 9631 9632 if (self) 9633 { 9634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9636 /* dlclose (self); */ 9637 } 9638 9639 exit (status); 9640} 9641EOF 9642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9643 (eval $ac_link) 2>&5 9644 ac_status=$? 9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9646 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9647 (./conftest; exit; ) >&5 2>/dev/null 9648 lt_status=$? 9649 case x$lt_status in 9650 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9651 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9652 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9653 esac 9654 else : 9655 # compilation failed 9656 lt_cv_dlopen_self_static=no 9657 fi 9658fi 9659rm -fr conftest* 9660 9661 9662fi 9663echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9664echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9665 fi 9666 9667 CPPFLAGS="$save_CPPFLAGS" 9668 LDFLAGS="$save_LDFLAGS" 9669 LIBS="$save_LIBS" 9670 ;; 9671 esac 9672 9673 case $lt_cv_dlopen_self in 9674 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9675 *) enable_dlopen_self=unknown ;; 9676 esac 9677 9678 case $lt_cv_dlopen_self_static in 9679 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9680 *) enable_dlopen_self_static=unknown ;; 9681 esac 9682fi 9683 9684 9685# Report which librarie types wil actually be built 9686echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9687echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9688echo "$as_me:$LINENO: result: $can_build_shared" >&5 9689echo "${ECHO_T}$can_build_shared" >&6 9690 9691echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9692echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9693test "$can_build_shared" = "no" && enable_shared=no 9694 9695# On AIX, shared libraries and static libraries use the same namespace, and 9696# are all built from PIC. 9697case $host_os in 9698aix3*) 9699 test "$enable_shared" = yes && enable_static=no 9700 if test -n "$RANLIB"; then 9701 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9702 postinstall_cmds='$RANLIB $lib' 9703 fi 9704 ;; 9705 9706aix4* | aix5*) 9707 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9708 test "$enable_shared" = yes && enable_static=no 9709 fi 9710 ;; 9711esac 9712echo "$as_me:$LINENO: result: $enable_shared" >&5 9713echo "${ECHO_T}$enable_shared" >&6 9714 9715echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9716echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9717# Make sure either enable_shared or enable_static is yes. 9718test "$enable_shared" = yes || enable_static=yes 9719echo "$as_me:$LINENO: result: $enable_static" >&5 9720echo "${ECHO_T}$enable_static" >&6 9721 9722# The else clause should only fire when bootstrapping the 9723# libtool distribution, otherwise you forgot to ship ltmain.sh 9724# with your package, and you will get complaints that there are 9725# no rules to generate ltmain.sh. 9726if test -f "$ltmain"; then 9727 # See if we are running on zsh, and set the options which allow our commands through 9728 # without removal of \ escapes. 9729 if test -n "${ZSH_VERSION+set}" ; then 9730 setopt NO_GLOB_SUBST 9731 fi 9732 # Now quote all the things that may contain metacharacters while being 9733 # careful not to overquote the AC_SUBSTed values. We take copies of the 9734 # variables and quote the copies for generation of the libtool script. 9735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9736 SED SHELL STRIP \ 9737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9739 deplibs_check_method reload_flag reload_cmds need_locks \ 9740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9741 lt_cv_sys_global_symbol_to_c_name_address \ 9742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9743 old_postinstall_cmds old_postuninstall_cmds \ 9744 compiler \ 9745 CC \ 9746 LD \ 9747 lt_prog_compiler_wl \ 9748 lt_prog_compiler_pic \ 9749 lt_prog_compiler_static \ 9750 lt_prog_compiler_no_builtin_flag \ 9751 export_dynamic_flag_spec \ 9752 thread_safe_flag_spec \ 9753 whole_archive_flag_spec \ 9754 enable_shared_with_static_runtimes \ 9755 old_archive_cmds \ 9756 old_archive_from_new_cmds \ 9757 predep_objects \ 9758 postdep_objects \ 9759 predeps \ 9760 postdeps \ 9761 compiler_lib_search_path \ 9762 archive_cmds \ 9763 archive_expsym_cmds \ 9764 postinstall_cmds \ 9765 postuninstall_cmds \ 9766 old_archive_from_expsyms_cmds \ 9767 allow_undefined_flag \ 9768 no_undefined_flag \ 9769 export_symbols_cmds \ 9770 hardcode_libdir_flag_spec \ 9771 hardcode_libdir_flag_spec_ld \ 9772 hardcode_libdir_separator \ 9773 hardcode_automatic \ 9774 module_cmds \ 9775 module_expsym_cmds \ 9776 lt_cv_prog_compiler_c_o \ 9777 exclude_expsyms \ 9778 include_expsyms; do 9779 9780 case $var in 9781 old_archive_cmds | \ 9782 old_archive_from_new_cmds | \ 9783 archive_cmds | \ 9784 archive_expsym_cmds | \ 9785 module_cmds | \ 9786 module_expsym_cmds | \ 9787 old_archive_from_expsyms_cmds | \ 9788 export_symbols_cmds | \ 9789 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9790 postinstall_cmds | postuninstall_cmds | \ 9791 old_postinstall_cmds | old_postuninstall_cmds | \ 9792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9793 # Double-quote double-evaled strings. 9794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9795 ;; 9796 *) 9797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9798 ;; 9799 esac 9800 done 9801 9802 case $lt_echo in 9803 *'\$0 --fallback-echo"') 9804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9805 ;; 9806 esac 9807 9808cfgfile="${ofile}T" 9809 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9810 $rm -f "$cfgfile" 9811 { echo "$as_me:$LINENO: creating $ofile" >&5 9812echo "$as_me: creating $ofile" >&6;} 9813 9814 cat <<__EOF__ >> "$cfgfile" 9815#! $SHELL 9816 9817# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9818# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9819# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9820# 9821# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9822# Free Software Foundation, Inc. 9823# 9824# This file is part of GNU Libtool: 9825# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9826# 9827# This program is free software; you can redistribute it and/or modify 9828# it under the terms of the GNU General Public License as published by 9829# the Free Software Foundation; either version 2 of the License, or 9830# (at your option) any later version. 9831# 9832# This program is distributed in the hope that it will be useful, but 9833# WITHOUT ANY WARRANTY; without even the implied warranty of 9834# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9835# General Public License for more details. 9836# 9837# You should have received a copy of the GNU General Public License 9838# along with this program; if not, write to the Free Software 9839# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9840# 9841# As a special exception to the GNU General Public License, if you 9842# distribute this file as part of a program that contains a 9843# configuration script generated by Autoconf, you may include it under 9844# the same distribution terms that you use for the rest of that program. 9845 9846# A sed program that does not truncate output. 9847SED=$lt_SED 9848 9849# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9850Xsed="$SED -e 1s/^X//" 9851 9852# The HP-UX ksh and POSIX shell print the target directory to stdout 9853# if CDPATH is set. 9854(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9855 9856# The names of the tagged configurations supported by this script. 9857available_tags= 9858 9859# ### BEGIN LIBTOOL CONFIG 9860 9861# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9862 9863# Shell to use when invoking shell scripts. 9864SHELL=$lt_SHELL 9865 9866# Whether or not to build shared libraries. 9867build_libtool_libs=$enable_shared 9868 9869# Whether or not to build static libraries. 9870build_old_libs=$enable_static 9871 9872# Whether or not to add -lc for building shared libraries. 9873build_libtool_need_lc=$archive_cmds_need_lc 9874 9875# Whether or not to disallow shared libs when runtime libs are static 9876allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9877 9878# Whether or not to optimize for fast installation. 9879fast_install=$enable_fast_install 9880 9881# The host system. 9882host_alias=$host_alias 9883host=$host 9884host_os=$host_os 9885 9886# The build system. 9887build_alias=$build_alias 9888build=$build 9889build_os=$build_os 9890 9891# An echo program that does not interpret backslashes. 9892echo=$lt_echo 9893 9894# The archiver. 9895AR=$lt_AR 9896AR_FLAGS=$lt_AR_FLAGS 9897 9898# A C compiler. 9899LTCC=$lt_LTCC 9900 9901# A language-specific compiler. 9902CC=$lt_compiler 9903 9904# Is the compiler the GNU C compiler? 9905with_gcc=$GCC 9906 9907# An ERE matcher. 9908EGREP=$lt_EGREP 9909 9910# The linker used to build libraries. 9911LD=$lt_LD 9912 9913# Whether we need hard or soft links. 9914LN_S=$lt_LN_S 9915 9916# A BSD-compatible nm program. 9917NM=$lt_NM 9918 9919# A symbol stripping program 9920STRIP=$lt_STRIP 9921 9922# Used to examine libraries when file_magic_cmd begins "file" 9923MAGIC_CMD=$MAGIC_CMD 9924 9925# Used on cygwin: DLL creation program. 9926DLLTOOL="$DLLTOOL" 9927 9928# Used on cygwin: object dumper. 9929OBJDUMP="$OBJDUMP" 9930 9931# Used on cygwin: assembler. 9932AS="$AS" 9933 9934# The name of the directory that contains temporary libtool files. 9935objdir=$objdir 9936 9937# How to create reloadable object files. 9938reload_flag=$lt_reload_flag 9939reload_cmds=$lt_reload_cmds 9940 9941# How to pass a linker flag through the compiler. 9942wl=$lt_lt_prog_compiler_wl 9943 9944# Object file suffix (normally "o"). 9945objext="$ac_objext" 9946 9947# Old archive suffix (normally "a"). 9948libext="$libext" 9949 9950# Shared library suffix (normally ".so"). 9951shrext_cmds='$shrext_cmds' 9952 9953# Executable file suffix (normally ""). 9954exeext="$exeext" 9955 9956# Additional compiler flags for building library objects. 9957pic_flag=$lt_lt_prog_compiler_pic 9958pic_mode=$pic_mode 9959 9960# What is the maximum length of a command? 9961max_cmd_len=$lt_cv_sys_max_cmd_len 9962 9963# Does compiler simultaneously support -c and -o options? 9964compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9965 9966# Must we lock files when doing compilation? 9967need_locks=$lt_need_locks 9968 9969# Do we need the lib prefix for modules? 9970need_lib_prefix=$need_lib_prefix 9971 9972# Do we need a version for libraries? 9973need_version=$need_version 9974 9975# Whether dlopen is supported. 9976dlopen_support=$enable_dlopen 9977 9978# Whether dlopen of programs is supported. 9979dlopen_self=$enable_dlopen_self 9980 9981# Whether dlopen of statically linked programs is supported. 9982dlopen_self_static=$enable_dlopen_self_static 9983 9984# Compiler flag to prevent dynamic linking. 9985link_static_flag=$lt_lt_prog_compiler_static 9986 9987# Compiler flag to turn off builtin functions. 9988no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9989 9990# Compiler flag to allow reflexive dlopens. 9991export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9992 9993# Compiler flag to generate shared objects directly from archives. 9994whole_archive_flag_spec=$lt_whole_archive_flag_spec 9995 9996# Compiler flag to generate thread-safe objects. 9997thread_safe_flag_spec=$lt_thread_safe_flag_spec 9998 9999# Library versioning type. 10000version_type=$version_type 10001 10002# Format of library name prefix. 10003libname_spec=$lt_libname_spec 10004 10005# List of archive names. First name is the real one, the rest are links. 10006# The last name is the one that the linker finds with -lNAME. 10007library_names_spec=$lt_library_names_spec 10008 10009# The coded name of the library, if different from the real name. 10010soname_spec=$lt_soname_spec 10011 10012# Commands used to build and install an old-style archive. 10013RANLIB=$lt_RANLIB 10014old_archive_cmds=$lt_old_archive_cmds 10015old_postinstall_cmds=$lt_old_postinstall_cmds 10016old_postuninstall_cmds=$lt_old_postuninstall_cmds 10017 10018# Create an old-style archive from a shared archive. 10019old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10020 10021# Create a temporary old-style archive to link instead of a shared archive. 10022old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10023 10024# Commands used to build and install a shared archive. 10025archive_cmds=$lt_archive_cmds 10026archive_expsym_cmds=$lt_archive_expsym_cmds 10027postinstall_cmds=$lt_postinstall_cmds 10028postuninstall_cmds=$lt_postuninstall_cmds 10029 10030# Commands used to build a loadable module (assumed same as above if empty) 10031module_cmds=$lt_module_cmds 10032module_expsym_cmds=$lt_module_expsym_cmds 10033 10034# Commands to strip libraries. 10035old_striplib=$lt_old_striplib 10036striplib=$lt_striplib 10037 10038# Dependencies to place before the objects being linked to create a 10039# shared library. 10040predep_objects=$lt_predep_objects 10041 10042# Dependencies to place after the objects being linked to create a 10043# shared library. 10044postdep_objects=$lt_postdep_objects 10045 10046# Dependencies to place before the objects being linked to create a 10047# shared library. 10048predeps=$lt_predeps 10049 10050# Dependencies to place after the objects being linked to create a 10051# shared library. 10052postdeps=$lt_postdeps 10053 10054# The library search path used internally by the compiler when linking 10055# a shared library. 10056compiler_lib_search_path=$lt_compiler_lib_search_path 10057 10058# Method to check whether dependent libraries are shared objects. 10059deplibs_check_method=$lt_deplibs_check_method 10060 10061# Command to use when deplibs_check_method == file_magic. 10062file_magic_cmd=$lt_file_magic_cmd 10063 10064# Flag that allows shared libraries with undefined symbols to be built. 10065allow_undefined_flag=$lt_allow_undefined_flag 10066 10067# Flag that forces no undefined symbols. 10068no_undefined_flag=$lt_no_undefined_flag 10069 10070# Commands used to finish a libtool library installation in a directory. 10071finish_cmds=$lt_finish_cmds 10072 10073# Same as above, but a single script fragment to be evaled but not shown. 10074finish_eval=$lt_finish_eval 10075 10076# Take the output of nm and produce a listing of raw symbols and C names. 10077global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10078 10079# Transform the output of nm in a proper C declaration 10080global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10081 10082# Transform the output of nm in a C name address pair 10083global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10084 10085# This is the shared library runtime path variable. 10086runpath_var=$runpath_var 10087 10088# This is the shared library path variable. 10089shlibpath_var=$shlibpath_var 10090 10091# Is shlibpath searched before the hard-coded library search path? 10092shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10093 10094# How to hardcode a shared library path into an executable. 10095hardcode_action=$hardcode_action 10096 10097# Whether we should hardcode library paths into libraries. 10098hardcode_into_libs=$hardcode_into_libs 10099 10100# Flag to hardcode \$libdir into a binary during linking. 10101# This must work even if \$libdir does not exist. 10102hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10103 10104# If ld is used when linking, flag to hardcode \$libdir into 10105# a binary during linking. This must work even if \$libdir does 10106# not exist. 10107hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10108 10109# Whether we need a single -rpath flag with a separated argument. 10110hardcode_libdir_separator=$lt_hardcode_libdir_separator 10111 10112# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10113# resulting binary. 10114hardcode_direct=$hardcode_direct 10115 10116# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10117# resulting binary. 10118hardcode_minus_L=$hardcode_minus_L 10119 10120# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10121# the resulting binary. 10122hardcode_shlibpath_var=$hardcode_shlibpath_var 10123 10124# Set to yes if building a shared library automatically hardcodes DIR into the library 10125# and all subsequent libraries and executables linked against it. 10126hardcode_automatic=$hardcode_automatic 10127 10128# Variables whose values should be saved in libtool wrapper scripts and 10129# restored at relink time. 10130variables_saved_for_relink="$variables_saved_for_relink" 10131 10132# Whether libtool must link a program against all its dependency libraries. 10133link_all_deplibs=$link_all_deplibs 10134 10135# Compile-time system search path for libraries 10136sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10137 10138# Run-time system search path for libraries 10139sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10140 10141# Fix the shell variable \$srcfile for the compiler. 10142fix_srcfile_path="$fix_srcfile_path" 10143 10144# Set to yes if exported symbols are required. 10145always_export_symbols=$always_export_symbols 10146 10147# The commands to list exported symbols. 10148export_symbols_cmds=$lt_export_symbols_cmds 10149 10150# The commands to extract the exported symbol list from a shared archive. 10151extract_expsyms_cmds=$lt_extract_expsyms_cmds 10152 10153# Symbols that should not be listed in the preloaded symbols. 10154exclude_expsyms=$lt_exclude_expsyms 10155 10156# Symbols that must always be exported. 10157include_expsyms=$lt_include_expsyms 10158 10159# ### END LIBTOOL CONFIG 10160 10161__EOF__ 10162 10163 10164 case $host_os in 10165 aix3*) 10166 cat <<\EOF >> "$cfgfile" 10167 10168# AIX sometimes has problems with the GCC collect2 program. For some 10169# reason, if we set the COLLECT_NAMES environment variable, the problems 10170# vanish in a puff of smoke. 10171if test "X${COLLECT_NAMES+set}" != Xset; then 10172 COLLECT_NAMES= 10173 export COLLECT_NAMES 10174fi 10175EOF 10176 ;; 10177 esac 10178 10179 # We use sed instead of cat because bash on DJGPP gets confused if 10180 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10181 # text mode, it properly converts lines to CR/LF. This bash problem 10182 # is reportedly fixed, but why not run on old versions too? 10183 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10184 10185 mv -f "$cfgfile" "$ofile" || \ 10186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10187 chmod +x "$ofile" 10188 10189else 10190 # If there is no Makefile yet, we rely on a make rule to execute 10191 # `config.status --recheck' to rerun these tests and create the 10192 # libtool script then. 10193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10194 if test -f "$ltmain_in"; then 10195 test -f Makefile && make "$ltmain" 10196 fi 10197fi 10198 10199 10200ac_ext=c 10201ac_cpp='$CPP $CPPFLAGS' 10202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10204ac_compiler_gnu=$ac_cv_c_compiler_gnu 10205 10206CC="$lt_save_CC" 10207 10208 10209# Check whether --with-tags or --without-tags was given. 10210if test "${with_tags+set}" = set; then 10211 withval="$with_tags" 10212 tagnames="$withval" 10213fi; 10214 10215if test -f "$ltmain" && test -n "$tagnames"; then 10216 if test ! -f "${ofile}"; then 10217 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10218echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10219 fi 10220 10221 if test -z "$LTCC"; then 10222 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10223 if test -z "$LTCC"; then 10224 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10225echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10226 else 10227 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10228echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10229 fi 10230 fi 10231 10232 # Extract list of available tagged configurations in $ofile. 10233 # Note that this assumes the entire list is on one line. 10234 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10235 10236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10237 for tagname in $tagnames; do 10238 IFS="$lt_save_ifs" 10239 # Check whether tagname contains only valid characters 10240 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10241 "") ;; 10242 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10243echo "$as_me: error: invalid tag name: $tagname" >&2;} 10244 { (exit 1); exit 1; }; } 10245 ;; 10246 esac 10247 10248 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10249 then 10250 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10251echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10252 { (exit 1); exit 1; }; } 10253 fi 10254 10255 # Update the list of available tags. 10256 if test -n "$tagname"; then 10257 echo appending configuration tag \"$tagname\" to $ofile 10258 10259 case $tagname in 10260 CXX) 10261 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10263 (test "X$CXX" != "Xg++"))) ; then 10264 ac_ext=cc 10265ac_cpp='$CXXCPP $CPPFLAGS' 10266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10269 10270 10271 10272 10273archive_cmds_need_lc_CXX=no 10274allow_undefined_flag_CXX= 10275always_export_symbols_CXX=no 10276archive_expsym_cmds_CXX= 10277export_dynamic_flag_spec_CXX= 10278hardcode_direct_CXX=no 10279hardcode_libdir_flag_spec_CXX= 10280hardcode_libdir_flag_spec_ld_CXX= 10281hardcode_libdir_separator_CXX= 10282hardcode_minus_L_CXX=no 10283hardcode_automatic_CXX=no 10284module_cmds_CXX= 10285module_expsym_cmds_CXX= 10286link_all_deplibs_CXX=unknown 10287old_archive_cmds_CXX=$old_archive_cmds 10288no_undefined_flag_CXX= 10289whole_archive_flag_spec_CXX= 10290enable_shared_with_static_runtimes_CXX=no 10291 10292# Dependencies to place before and after the object being linked: 10293predep_objects_CXX= 10294postdep_objects_CXX= 10295predeps_CXX= 10296postdeps_CXX= 10297compiler_lib_search_path_CXX= 10298 10299# Source file extension for C++ test sources. 10300ac_ext=cpp 10301 10302# Object file extension for compiled C++ test sources. 10303objext=o 10304objext_CXX=$objext 10305 10306# Code to be used in simple compile tests 10307lt_simple_compile_test_code="int some_variable = 0;\n" 10308 10309# Code to be used in simple link tests 10310lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 10311 10312# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10313 10314# If no C compiler was specified, use CC. 10315LTCC=${LTCC-"$CC"} 10316 10317# Allow CC to be a program name with arguments. 10318compiler=$CC 10319 10320 10321# save warnings/boilerplate of simple test code 10322ac_outfile=conftest.$ac_objext 10323printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10324eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10325_lt_compiler_boilerplate=`cat conftest.err` 10326$rm conftest* 10327 10328ac_outfile=conftest.$ac_objext 10329printf "$lt_simple_link_test_code" >conftest.$ac_ext 10330eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10331_lt_linker_boilerplate=`cat conftest.err` 10332$rm conftest* 10333 10334 10335# Allow CC to be a program name with arguments. 10336lt_save_CC=$CC 10337lt_save_LD=$LD 10338lt_save_GCC=$GCC 10339GCC=$GXX 10340lt_save_with_gnu_ld=$with_gnu_ld 10341lt_save_path_LD=$lt_cv_path_LD 10342if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10343 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10344else 10345 unset lt_cv_prog_gnu_ld 10346fi 10347if test -n "${lt_cv_path_LDCXX+set}"; then 10348 lt_cv_path_LD=$lt_cv_path_LDCXX 10349else 10350 unset lt_cv_path_LD 10351fi 10352test -z "${LDCXX+set}" || LD=$LDCXX 10353CC=${CXX-"c++"} 10354compiler=$CC 10355compiler_CXX=$CC 10356for cc_temp in $compiler""; do 10357 case $cc_temp in 10358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10360 \-*) ;; 10361 *) break;; 10362 esac 10363done 10364cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10365 10366 10367# We don't want -fno-exception wen compiling C++ code, so set the 10368# no_builtin_flag separately 10369if test "$GXX" = yes; then 10370 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10371else 10372 lt_prog_compiler_no_builtin_flag_CXX= 10373fi 10374 10375if test "$GXX" = yes; then 10376 # Set up default GNU C++ configuration 10377 10378 10379# Check whether --with-gnu-ld or --without-gnu-ld was given. 10380if test "${with_gnu_ld+set}" = set; then 10381 withval="$with_gnu_ld" 10382 test "$withval" = no || with_gnu_ld=yes 10383else 10384 with_gnu_ld=no 10385fi; 10386ac_prog=ld 10387if test "$GCC" = yes; then 10388 # Check if gcc -print-prog-name=ld gives a path. 10389 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10390echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10391 case $host in 10392 *-*-mingw*) 10393 # gcc leaves a trailing carriage return which upsets mingw 10394 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10395 *) 10396 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10397 esac 10398 case $ac_prog in 10399 # Accept absolute paths. 10400 [\\/]* | ?:[\\/]*) 10401 re_direlt='/[^/][^/]*/\.\./' 10402 # Canonicalize the pathname of ld 10403 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10404 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10405 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10406 done 10407 test -z "$LD" && LD="$ac_prog" 10408 ;; 10409 "") 10410 # If it fails, then pretend we aren't using GCC. 10411 ac_prog=ld 10412 ;; 10413 *) 10414 # If it is relative, then search for the first ld in PATH. 10415 with_gnu_ld=unknown 10416 ;; 10417 esac 10418elif test "$with_gnu_ld" = yes; then 10419 echo "$as_me:$LINENO: checking for GNU ld" >&5 10420echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10421else 10422 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10423echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10424fi 10425if test "${lt_cv_path_LD+set}" = set; then 10426 echo $ECHO_N "(cached) $ECHO_C" >&6 10427else 10428 if test -z "$LD"; then 10429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10430 for ac_dir in $PATH; do 10431 IFS="$lt_save_ifs" 10432 test -z "$ac_dir" && ac_dir=. 10433 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10434 lt_cv_path_LD="$ac_dir/$ac_prog" 10435 # Check to see if the program is GNU ld. I'd rather use --version, 10436 # but apparently some variants of GNU ld only accept -v. 10437 # Break only if it was the GNU/non-GNU ld that we prefer. 10438 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10439 *GNU* | *'with BFD'*) 10440 test "$with_gnu_ld" != no && break 10441 ;; 10442 *) 10443 test "$with_gnu_ld" != yes && break 10444 ;; 10445 esac 10446 fi 10447 done 10448 IFS="$lt_save_ifs" 10449else 10450 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10451fi 10452fi 10453 10454LD="$lt_cv_path_LD" 10455if test -n "$LD"; then 10456 echo "$as_me:$LINENO: result: $LD" >&5 10457echo "${ECHO_T}$LD" >&6 10458else 10459 echo "$as_me:$LINENO: result: no" >&5 10460echo "${ECHO_T}no" >&6 10461fi 10462test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10463echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10464 { (exit 1); exit 1; }; } 10465echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10466echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10467if test "${lt_cv_prog_gnu_ld+set}" = set; then 10468 echo $ECHO_N "(cached) $ECHO_C" >&6 10469else 10470 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10471case `$LD -v 2>&1 </dev/null` in 10472*GNU* | *'with BFD'*) 10473 lt_cv_prog_gnu_ld=yes 10474 ;; 10475*) 10476 lt_cv_prog_gnu_ld=no 10477 ;; 10478esac 10479fi 10480echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10481echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10482with_gnu_ld=$lt_cv_prog_gnu_ld 10483 10484 10485 10486 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10487 # archiving commands below assume that GNU ld is being used. 10488 if test "$with_gnu_ld" = yes; then 10489 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10490 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' 10491 10492 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10493 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10494 10495 # If archive_cmds runs LD, not CC, wlarc should be empty 10496 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10497 # investigate it a little bit more. (MM) 10498 wlarc='${wl}' 10499 10500 # ancient GNU ld didn't support --whole-archive et. al. 10501 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10502 grep 'no-whole-archive' > /dev/null; then 10503 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10504 else 10505 whole_archive_flag_spec_CXX= 10506 fi 10507 else 10508 with_gnu_ld=no 10509 wlarc= 10510 10511 # A generic and very simple default shared library creation 10512 # command for GNU C++ for the case where it uses the native 10513 # linker, instead of GNU ld. If possible, this setting should 10514 # overridden to take advantage of the native linker features on 10515 # the platform it is being used on. 10516 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10517 fi 10518 10519 # Commands to make compiler produce verbose output that lists 10520 # what "hidden" libraries, object files and flags are used when 10521 # linking a shared library. 10522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10523 10524else 10525 GXX=no 10526 with_gnu_ld=no 10527 wlarc= 10528fi 10529 10530# PORTME: fill in a description of your system's C++ link characteristics 10531echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10533ld_shlibs_CXX=yes 10534case $host_os in 10535 aix3*) 10536 # FIXME: insert proper C++ library support 10537 ld_shlibs_CXX=no 10538 ;; 10539 aix4* | aix5*) 10540 if test "$host_cpu" = ia64; then 10541 # On IA64, the linker does run time linking by default, so we don't 10542 # have to do anything special. 10543 aix_use_runtimelinking=no 10544 exp_sym_flag='-Bexport' 10545 no_entry_flag="" 10546 else 10547 aix_use_runtimelinking=no 10548 10549 # Test if we are trying to use run time linking or normal 10550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10551 # need to do runtime linking. 10552 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10553 for ld_flag in $LDFLAGS; do 10554 case $ld_flag in 10555 *-brtl*) 10556 aix_use_runtimelinking=yes 10557 break 10558 ;; 10559 esac 10560 done 10561 esac 10562 10563 exp_sym_flag='-bexport' 10564 no_entry_flag='-bnoentry' 10565 fi 10566 10567 # When large executables or shared objects are built, AIX ld can 10568 # have problems creating the table of contents. If linking a library 10569 # or program results in "error TOC overflow" add -mminimal-toc to 10570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10572 10573 archive_cmds_CXX='' 10574 hardcode_direct_CXX=yes 10575 hardcode_libdir_separator_CXX=':' 10576 link_all_deplibs_CXX=yes 10577 10578 if test "$GXX" = yes; then 10579 case $host_os in aix4.[012]|aix4.[012].*) 10580 # We only want to do this on AIX 4.2 and lower, the check 10581 # below for broken collect2 doesn't work under 4.3+ 10582 collect2name=`${CC} -print-prog-name=collect2` 10583 if test -f "$collect2name" && \ 10584 strings "$collect2name" | grep resolve_lib_name >/dev/null 10585 then 10586 # We have reworked collect2 10587 hardcode_direct_CXX=yes 10588 else 10589 # We have old collect2 10590 hardcode_direct_CXX=unsupported 10591 # It fails to find uninstalled libraries when the uninstalled 10592 # path is not listed in the libpath. Setting hardcode_minus_L 10593 # to unsupported forces relinking 10594 hardcode_minus_L_CXX=yes 10595 hardcode_libdir_flag_spec_CXX='-L$libdir' 10596 hardcode_libdir_separator_CXX= 10597 fi 10598 esac 10599 shared_flag='-shared' 10600 if test "$aix_use_runtimelinking" = yes; then 10601 shared_flag="$shared_flag "'${wl}-G' 10602 fi 10603 else 10604 # not using gcc 10605 if test "$host_cpu" = ia64; then 10606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10607 # chokes on -Wl,-G. The following line is correct: 10608 shared_flag='-G' 10609 else 10610 if test "$aix_use_runtimelinking" = yes; then 10611 shared_flag='${wl}-G' 10612 else 10613 shared_flag='${wl}-bM:SRE' 10614 fi 10615 fi 10616 fi 10617 10618 # It seems that -bexpall does not export symbols beginning with 10619 # underscore (_), so it is better to generate a list of symbols to export. 10620 always_export_symbols_CXX=yes 10621 if test "$aix_use_runtimelinking" = yes; then 10622 # Warning - without using the other runtime loading flags (-brtl), 10623 # -berok will link without error, but may produce a broken library. 10624 allow_undefined_flag_CXX='-berok' 10625 # Determine the default libpath from the value encoded in an empty executable. 10626 cat >conftest.$ac_ext <<_ACEOF 10627/* confdefs.h. */ 10628_ACEOF 10629cat confdefs.h >>conftest.$ac_ext 10630cat >>conftest.$ac_ext <<_ACEOF 10631/* end confdefs.h. */ 10632 10633int 10634main () 10635{ 10636 10637 ; 10638 return 0; 10639} 10640_ACEOF 10641rm -f conftest.$ac_objext conftest$ac_exeext 10642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10643 (eval $ac_link) 2>conftest.er1 10644 ac_status=$? 10645 grep -v '^ *+' conftest.er1 >conftest.err 10646 rm -f conftest.er1 10647 cat conftest.err >&5 10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10649 (exit $ac_status); } && 10650 { ac_try='test -z "$ac_cxx_werror_flag" 10651 || test ! -s conftest.err' 10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10653 (eval $ac_try) 2>&5 10654 ac_status=$? 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10656 (exit $ac_status); }; } && 10657 { ac_try='test -s conftest$ac_exeext' 10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10659 (eval $ac_try) 2>&5 10660 ac_status=$? 10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10662 (exit $ac_status); }; }; then 10663 10664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10665}'` 10666# Check for a 64-bit object if we didn't find anything. 10667if 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; } 10668}'`; fi 10669else 10670 echo "$as_me: failed program was:" >&5 10671sed 's/^/| /' conftest.$ac_ext >&5 10672 10673fi 10674rm -f conftest.err conftest.$ac_objext \ 10675 conftest$ac_exeext conftest.$ac_ext 10676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10677 10678 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10679 10680 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10681 else 10682 if test "$host_cpu" = ia64; then 10683 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10684 allow_undefined_flag_CXX="-z nodefs" 10685 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10686 else 10687 # Determine the default libpath from the value encoded in an empty executable. 10688 cat >conftest.$ac_ext <<_ACEOF 10689/* confdefs.h. */ 10690_ACEOF 10691cat confdefs.h >>conftest.$ac_ext 10692cat >>conftest.$ac_ext <<_ACEOF 10693/* end confdefs.h. */ 10694 10695int 10696main () 10697{ 10698 10699 ; 10700 return 0; 10701} 10702_ACEOF 10703rm -f conftest.$ac_objext conftest$ac_exeext 10704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10705 (eval $ac_link) 2>conftest.er1 10706 ac_status=$? 10707 grep -v '^ *+' conftest.er1 >conftest.err 10708 rm -f conftest.er1 10709 cat conftest.err >&5 10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10711 (exit $ac_status); } && 10712 { ac_try='test -z "$ac_cxx_werror_flag" 10713 || test ! -s conftest.err' 10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10715 (eval $ac_try) 2>&5 10716 ac_status=$? 10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10718 (exit $ac_status); }; } && 10719 { ac_try='test -s conftest$ac_exeext' 10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10721 (eval $ac_try) 2>&5 10722 ac_status=$? 10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10724 (exit $ac_status); }; }; then 10725 10726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10727}'` 10728# Check for a 64-bit object if we didn't find anything. 10729if 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; } 10730}'`; fi 10731else 10732 echo "$as_me: failed program was:" >&5 10733sed 's/^/| /' conftest.$ac_ext >&5 10734 10735fi 10736rm -f conftest.err conftest.$ac_objext \ 10737 conftest$ac_exeext conftest.$ac_ext 10738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10739 10740 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10741 # Warning - without using the other run time loading flags, 10742 # -berok will link without error, but may produce a broken library. 10743 no_undefined_flag_CXX=' ${wl}-bernotok' 10744 allow_undefined_flag_CXX=' ${wl}-berok' 10745 # -bexpall does not export symbols beginning with underscore (_) 10746 always_export_symbols_CXX=yes 10747 # Exported symbols can be pulled into shared objects from archives 10748 whole_archive_flag_spec_CXX=' ' 10749 archive_cmds_need_lc_CXX=yes 10750 # This is similar to how AIX traditionally builds its shared libraries. 10751 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10752 fi 10753 fi 10754 ;; 10755 chorus*) 10756 case $cc_basename in 10757 *) 10758 # FIXME: insert proper C++ library support 10759 ld_shlibs_CXX=no 10760 ;; 10761 esac 10762 ;; 10763 10764 10765 cygwin* | mingw* | pw32*) 10766 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10767 # as there is no search path for DLLs. 10768 hardcode_libdir_flag_spec_CXX='-L$libdir' 10769 allow_undefined_flag_CXX=unsupported 10770 always_export_symbols_CXX=no 10771 enable_shared_with_static_runtimes_CXX=yes 10772 10773 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10775 # If the export-symbols file already is a .def file (1st line 10776 # is EXPORTS), use it as is; otherwise, prepend... 10777 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10778 cp $export_symbols $output_objdir/$soname.def; 10779 else 10780 echo EXPORTS > $output_objdir/$soname.def; 10781 cat $export_symbols >> $output_objdir/$soname.def; 10782 fi~ 10783 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10784 else 10785 ld_shlibs_CXX=no 10786 fi 10787 ;; 10788 darwin* | rhapsody*) 10789 case $host_os in 10790 rhapsody* | darwin1.[012]) 10791 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10792 ;; 10793 *) # Darwin 1.3 on 10794 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10795 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10796 else 10797 case ${MACOSX_DEPLOYMENT_TARGET} in 10798 10.[012]) 10799 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10800 ;; 10801 10.*) 10802 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10803 ;; 10804 esac 10805 fi 10806 ;; 10807 esac 10808 archive_cmds_need_lc_CXX=no 10809 hardcode_direct_CXX=no 10810 hardcode_automatic_CXX=yes 10811 hardcode_shlibpath_var_CXX=unsupported 10812 whole_archive_flag_spec_CXX='' 10813 link_all_deplibs_CXX=yes 10814 10815 if test "$GXX" = yes ; then 10816 lt_int_apple_cc_single_mod=no 10817 output_verbose_link_cmd='echo' 10818 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10819 lt_int_apple_cc_single_mod=yes 10820 fi 10821 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10822 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10823 else 10824 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' 10825 fi 10826 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10828 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10829 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}' 10830 else 10831 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}' 10832 fi 10833 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}' 10834 else 10835 case $cc_basename in 10836 xlc*) 10837 output_verbose_link_cmd='echo' 10838 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' 10839 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10840 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10841 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}' 10842 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}' 10843 ;; 10844 *) 10845 ld_shlibs_CXX=no 10846 ;; 10847 esac 10848 fi 10849 ;; 10850 10851 dgux*) 10852 case $cc_basename in 10853 ec++*) 10854 # FIXME: insert proper C++ library support 10855 ld_shlibs_CXX=no 10856 ;; 10857 ghcx*) 10858 # Green Hills C++ Compiler 10859 # FIXME: insert proper C++ library support 10860 ld_shlibs_CXX=no 10861 ;; 10862 *) 10863 # FIXME: insert proper C++ library support 10864 ld_shlibs_CXX=no 10865 ;; 10866 esac 10867 ;; 10868 freebsd[12]*) 10869 # C++ shared libraries reported to be fairly broken before switch to ELF 10870 ld_shlibs_CXX=no 10871 ;; 10872 freebsd-elf*) 10873 archive_cmds_need_lc_CXX=no 10874 ;; 10875 freebsd* | kfreebsd*-gnu | dragonfly*) 10876 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10877 # conventions 10878 ld_shlibs_CXX=yes 10879 ;; 10880 gnu*) 10881 ;; 10882 hpux9*) 10883 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10884 hardcode_libdir_separator_CXX=: 10885 export_dynamic_flag_spec_CXX='${wl}-E' 10886 hardcode_direct_CXX=yes 10887 hardcode_minus_L_CXX=yes # Not in the search PATH, 10888 # but as the default 10889 # location of the library. 10890 10891 case $cc_basename in 10892 CC*) 10893 # FIXME: insert proper C++ library support 10894 ld_shlibs_CXX=no 10895 ;; 10896 aCC*) 10897 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' 10898 # Commands to make compiler produce verbose output that lists 10899 # what "hidden" libraries, object files and flags are used when 10900 # linking a shared library. 10901 # 10902 # There doesn't appear to be a way to prevent this compiler from 10903 # explicitly linking system object files so we need to strip them 10904 # from the output so that they don't get included in the library 10905 # dependencies. 10906 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' 10907 ;; 10908 *) 10909 if test "$GXX" = yes; then 10910 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' 10911 else 10912 # FIXME: insert proper C++ library support 10913 ld_shlibs_CXX=no 10914 fi 10915 ;; 10916 esac 10917 ;; 10918 hpux10*|hpux11*) 10919 if test $with_gnu_ld = no; then 10920 case $host_cpu in 10921 hppa*64*) 10922 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10923 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10924 hardcode_libdir_separator_CXX=: 10925 ;; 10926 ia64*) 10927 hardcode_libdir_flag_spec_CXX='-L$libdir' 10928 ;; 10929 *) 10930 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10931 hardcode_libdir_separator_CXX=: 10932 export_dynamic_flag_spec_CXX='${wl}-E' 10933 ;; 10934 esac 10935 fi 10936 case $host_cpu in 10937 hppa*64*) 10938 hardcode_direct_CXX=no 10939 hardcode_shlibpath_var_CXX=no 10940 ;; 10941 ia64*) 10942 hardcode_direct_CXX=no 10943 hardcode_shlibpath_var_CXX=no 10944 hardcode_minus_L_CXX=yes # Not in the search PATH, 10945 # but as the default 10946 # location of the library. 10947 ;; 10948 *) 10949 hardcode_direct_CXX=yes 10950 hardcode_minus_L_CXX=yes # Not in the search PATH, 10951 # but as the default 10952 # location of the library. 10953 ;; 10954 esac 10955 10956 case $cc_basename in 10957 CC*) 10958 # FIXME: insert proper C++ library support 10959 ld_shlibs_CXX=no 10960 ;; 10961 aCC*) 10962 case $host_cpu in 10963 hppa*64*|ia64*) 10964 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10965 ;; 10966 *) 10967 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10968 ;; 10969 esac 10970 # Commands to make compiler produce verbose output that lists 10971 # what "hidden" libraries, object files and flags are used when 10972 # linking a shared library. 10973 # 10974 # There doesn't appear to be a way to prevent this compiler from 10975 # explicitly linking system object files so we need to strip them 10976 # from the output so that they don't get included in the library 10977 # dependencies. 10978 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' 10979 ;; 10980 *) 10981 if test "$GXX" = yes; then 10982 if test $with_gnu_ld = no; then 10983 case $host_cpu in 10984 ia64*|hppa*64*) 10985 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10986 ;; 10987 *) 10988 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' 10989 ;; 10990 esac 10991 fi 10992 else 10993 # FIXME: insert proper C++ library support 10994 ld_shlibs_CXX=no 10995 fi 10996 ;; 10997 esac 10998 ;; 10999 irix5* | irix6*) 11000 case $cc_basename in 11001 CC*) 11002 # SGI C++ 11003 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' 11004 11005 # Archives containing C++ object files must be created using 11006 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11007 # necessary to make sure instantiated templates are included 11008 # in the archive. 11009 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11010 ;; 11011 *) 11012 if test "$GXX" = yes; then 11013 if test "$with_gnu_ld" = no; then 11014 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' 11015 else 11016 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' 11017 fi 11018 fi 11019 link_all_deplibs_CXX=yes 11020 ;; 11021 esac 11022 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11023 hardcode_libdir_separator_CXX=: 11024 ;; 11025 linux*) 11026 case $cc_basename in 11027 KCC*) 11028 # Kuck and Associates, Inc. (KAI) C++ Compiler 11029 11030 # KCC will only create a shared library if the output file 11031 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11032 # to its proper name (with version) after linking. 11033 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' 11034 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' 11035 # Commands to make compiler produce verbose output that lists 11036 # what "hidden" libraries, object files and flags are used when 11037 # linking a shared library. 11038 # 11039 # There doesn't appear to be a way to prevent this compiler from 11040 # explicitly linking system object files so we need to strip them 11041 # from the output so that they don't get included in the library 11042 # dependencies. 11043 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' 11044 11045 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11047 11048 # Archives containing C++ object files must be created using 11049 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11050 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11051 ;; 11052 icpc*) 11053 # Intel C++ 11054 with_gnu_ld=yes 11055 # version 8.0 and above of icpc choke on multiply defined symbols 11056 # if we add $predep_objects and $postdep_objects, however 7.1 and 11057 # earlier do not add the objects themselves. 11058 case `$CC -V 2>&1` in 11059 *"Version 7."*) 11060 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11061 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' 11062 ;; 11063 *) # Version 8.0 or newer 11064 tmp_idyn= 11065 case $host_cpu in 11066 ia64*) tmp_idyn=' -i_dynamic';; 11067 esac 11068 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11069 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' 11070 ;; 11071 esac 11072 archive_cmds_need_lc_CXX=no 11073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11074 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11075 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11076 ;; 11077 pgCC*) 11078 # Portland Group C++ compiler 11079 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11080 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' 11081 11082 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11084 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' 11085 ;; 11086 cxx*) 11087 # Compaq C++ 11088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11089 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' 11090 11091 runpath_var=LD_RUN_PATH 11092 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11093 hardcode_libdir_separator_CXX=: 11094 11095 # Commands to make compiler produce verbose output that lists 11096 # what "hidden" libraries, object files and flags are used when 11097 # linking a shared library. 11098 # 11099 # There doesn't appear to be a way to prevent this compiler from 11100 # explicitly linking system object files so we need to strip them 11101 # from the output so that they don't get included in the library 11102 # dependencies. 11103 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' 11104 ;; 11105 esac 11106 ;; 11107 lynxos*) 11108 # FIXME: insert proper C++ library support 11109 ld_shlibs_CXX=no 11110 ;; 11111 m88k*) 11112 # FIXME: insert proper C++ library support 11113 ld_shlibs_CXX=no 11114 ;; 11115 mvs*) 11116 case $cc_basename in 11117 cxx*) 11118 # FIXME: insert proper C++ library support 11119 ld_shlibs_CXX=no 11120 ;; 11121 *) 11122 # FIXME: insert proper C++ library support 11123 ld_shlibs_CXX=no 11124 ;; 11125 esac 11126 ;; 11127 netbsd*) 11128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11129 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11130 wlarc= 11131 hardcode_libdir_flag_spec_CXX='-R$libdir' 11132 hardcode_direct_CXX=yes 11133 hardcode_shlibpath_var_CXX=no 11134 fi 11135 # Workaround some broken pre-1.5 toolchains 11136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11137 ;; 11138 openbsd2*) 11139 # C++ shared libraries are fairly broken 11140 ld_shlibs_CXX=no 11141 ;; 11142 openbsd*) 11143 hardcode_direct_CXX=yes 11144 hardcode_shlibpath_var_CXX=no 11145 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11148 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11149 export_dynamic_flag_spec_CXX='${wl}-E' 11150 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11151 fi 11152 output_verbose_link_cmd='echo' 11153 ;; 11154 osf3*) 11155 case $cc_basename in 11156 KCC*) 11157 # Kuck and Associates, Inc. (KAI) C++ Compiler 11158 11159 # KCC will only create a shared library if the output file 11160 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11161 # to its proper name (with version) after linking. 11162 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' 11163 11164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11165 hardcode_libdir_separator_CXX=: 11166 11167 # Archives containing C++ object files must be created using 11168 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11169 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11170 11171 ;; 11172 RCC*) 11173 # Rational C++ 2.4.1 11174 # FIXME: insert proper C++ library support 11175 ld_shlibs_CXX=no 11176 ;; 11177 cxx*) 11178 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11179 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' 11180 11181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11182 hardcode_libdir_separator_CXX=: 11183 11184 # Commands to make compiler produce verbose output that lists 11185 # what "hidden" libraries, object files and flags are used when 11186 # linking a shared library. 11187 # 11188 # There doesn't appear to be a way to prevent this compiler from 11189 # explicitly linking system object files so we need to strip them 11190 # from the output so that they don't get included in the library 11191 # dependencies. 11192 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' 11193 ;; 11194 *) 11195 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11196 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11197 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' 11198 11199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11200 hardcode_libdir_separator_CXX=: 11201 11202 # Commands to make compiler produce verbose output that lists 11203 # what "hidden" libraries, object files and flags are used when 11204 # linking a shared library. 11205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11206 11207 else 11208 # FIXME: insert proper C++ library support 11209 ld_shlibs_CXX=no 11210 fi 11211 ;; 11212 esac 11213 ;; 11214 osf4* | osf5*) 11215 case $cc_basename in 11216 KCC*) 11217 # Kuck and Associates, Inc. (KAI) C++ Compiler 11218 11219 # KCC will only create a shared library if the output file 11220 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11221 # to its proper name (with version) after linking. 11222 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' 11223 11224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11225 hardcode_libdir_separator_CXX=: 11226 11227 # Archives containing C++ object files must be created using 11228 # the KAI C++ compiler. 11229 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11230 ;; 11231 RCC*) 11232 # Rational C++ 2.4.1 11233 # FIXME: insert proper C++ library support 11234 ld_shlibs_CXX=no 11235 ;; 11236 cxx*) 11237 allow_undefined_flag_CXX=' -expect_unresolved \*' 11238 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' 11239 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11240 echo "-hidden">> $lib.exp~ 11241 $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~ 11242 $rm $lib.exp' 11243 11244 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11245 hardcode_libdir_separator_CXX=: 11246 11247 # Commands to make compiler produce verbose output that lists 11248 # what "hidden" libraries, object files and flags are used when 11249 # linking a shared library. 11250 # 11251 # There doesn't appear to be a way to prevent this compiler from 11252 # explicitly linking system object files so we need to strip them 11253 # from the output so that they don't get included in the library 11254 # dependencies. 11255 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' 11256 ;; 11257 *) 11258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11260 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' 11261 11262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11263 hardcode_libdir_separator_CXX=: 11264 11265 # Commands to make compiler produce verbose output that lists 11266 # what "hidden" libraries, object files and flags are used when 11267 # linking a shared library. 11268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11269 11270 else 11271 # FIXME: insert proper C++ library support 11272 ld_shlibs_CXX=no 11273 fi 11274 ;; 11275 esac 11276 ;; 11277 psos*) 11278 # FIXME: insert proper C++ library support 11279 ld_shlibs_CXX=no 11280 ;; 11281 sco*) 11282 archive_cmds_need_lc_CXX=no 11283 case $cc_basename in 11284 CC*) 11285 # FIXME: insert proper C++ library support 11286 ld_shlibs_CXX=no 11287 ;; 11288 *) 11289 # FIXME: insert proper C++ library support 11290 ld_shlibs_CXX=no 11291 ;; 11292 esac 11293 ;; 11294 sunos4*) 11295 case $cc_basename in 11296 CC*) 11297 # Sun C++ 4.x 11298 # FIXME: insert proper C++ library support 11299 ld_shlibs_CXX=no 11300 ;; 11301 lcc*) 11302 # Lucid 11303 # FIXME: insert proper C++ library support 11304 ld_shlibs_CXX=no 11305 ;; 11306 *) 11307 # FIXME: insert proper C++ library support 11308 ld_shlibs_CXX=no 11309 ;; 11310 esac 11311 ;; 11312 solaris*) 11313 case $cc_basename in 11314 CC*) 11315 # Sun C++ 4.2, 5.x and Centerline C++ 11316 archive_cmds_need_lc_CXX=yes 11317 no_undefined_flag_CXX=' -zdefs' 11318 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11319 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11320 $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' 11321 11322 hardcode_libdir_flag_spec_CXX='-R$libdir' 11323 hardcode_shlibpath_var_CXX=no 11324 case $host_os in 11325 solaris2.[0-5] | solaris2.[0-5].*) ;; 11326 *) 11327 # The C++ compiler is used as linker so we must use $wl 11328 # flag to pass the commands to the underlying system 11329 # linker. We must also pass each convience library through 11330 # to the system linker between allextract/defaultextract. 11331 # The C++ compiler will combine linker options so we 11332 # cannot just pass the convience library names through 11333 # without $wl. 11334 # Supported since Solaris 2.6 (maybe 2.5.1?) 11335 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' 11336 ;; 11337 esac 11338 link_all_deplibs_CXX=yes 11339 11340 output_verbose_link_cmd='echo' 11341 11342 # Archives containing C++ object files must be created using 11343 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11344 # necessary to make sure instantiated templates are included 11345 # in the archive. 11346 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11347 ;; 11348 gcx*) 11349 # Green Hills C++ Compiler 11350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11351 11352 # The C++ compiler must be used to create the archive. 11353 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11354 ;; 11355 *) 11356 # GNU C++ compiler with Solaris linker 11357 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11358 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11359 if $CC --version | grep -v '^2\.7' > /dev/null; then 11360 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11361 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11362 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11363 11364 # Commands to make compiler produce verbose output that lists 11365 # what "hidden" libraries, object files and flags are used when 11366 # linking a shared library. 11367 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11368 else 11369 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11370 # platform. 11371 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11372 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11373 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11374 11375 # Commands to make compiler produce verbose output that lists 11376 # what "hidden" libraries, object files and flags are used when 11377 # linking a shared library. 11378 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11379 fi 11380 11381 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11382 fi 11383 ;; 11384 esac 11385 ;; 11386 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11387 archive_cmds_need_lc_CXX=no 11388 ;; 11389 tandem*) 11390 case $cc_basename in 11391 NCC*) 11392 # NonStop-UX NCC 3.20 11393 # FIXME: insert proper C++ library support 11394 ld_shlibs_CXX=no 11395 ;; 11396 *) 11397 # FIXME: insert proper C++ library support 11398 ld_shlibs_CXX=no 11399 ;; 11400 esac 11401 ;; 11402 vxworks*) 11403 # FIXME: insert proper C++ library support 11404 ld_shlibs_CXX=no 11405 ;; 11406 *) 11407 # FIXME: insert proper C++ library support 11408 ld_shlibs_CXX=no 11409 ;; 11410esac 11411echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11412echo "${ECHO_T}$ld_shlibs_CXX" >&6 11413test "$ld_shlibs_CXX" = no && can_build_shared=no 11414 11415GCC_CXX="$GXX" 11416LD_CXX="$LD" 11417 11418## CAVEAT EMPTOR: 11419## There is no encapsulation within the following macros, do not change 11420## the running order or otherwise move them around unless you know exactly 11421## what you are doing... 11422 11423cat > conftest.$ac_ext <<EOF 11424class Foo 11425{ 11426public: 11427 Foo (void) { a = 0; } 11428private: 11429 int a; 11430}; 11431EOF 11432 11433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11434 (eval $ac_compile) 2>&5 11435 ac_status=$? 11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11437 (exit $ac_status); }; then 11438 # Parse the compiler output and extract the necessary 11439 # objects, libraries and library flags. 11440 11441 # Sentinel used to keep track of whether or not we are before 11442 # the conftest object file. 11443 pre_test_object_deps_done=no 11444 11445 # The `*' in the case matches for architectures that use `case' in 11446 # $output_verbose_cmd can trigger glob expansion during the loop 11447 # eval without this substitution. 11448 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11449 11450 for p in `eval $output_verbose_link_cmd`; do 11451 case $p in 11452 11453 -L* | -R* | -l*) 11454 # Some compilers place space between "-{L,R}" and the path. 11455 # Remove the space. 11456 if test $p = "-L" \ 11457 || test $p = "-R"; then 11458 prev=$p 11459 continue 11460 else 11461 prev= 11462 fi 11463 11464 if test "$pre_test_object_deps_done" = no; then 11465 case $p in 11466 -L* | -R*) 11467 # Internal compiler library paths should come after those 11468 # provided the user. The postdeps already come after the 11469 # user supplied libs so there is no need to process them. 11470 if test -z "$compiler_lib_search_path_CXX"; then 11471 compiler_lib_search_path_CXX="${prev}${p}" 11472 else 11473 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11474 fi 11475 ;; 11476 # The "-l" case would never come before the object being 11477 # linked, so don't bother handling this case. 11478 esac 11479 else 11480 if test -z "$postdeps_CXX"; then 11481 postdeps_CXX="${prev}${p}" 11482 else 11483 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11484 fi 11485 fi 11486 ;; 11487 11488 *.$objext) 11489 # This assumes that the test object file only shows up 11490 # once in the compiler output. 11491 if test "$p" = "conftest.$objext"; then 11492 pre_test_object_deps_done=yes 11493 continue 11494 fi 11495 11496 if test "$pre_test_object_deps_done" = no; then 11497 if test -z "$predep_objects_CXX"; then 11498 predep_objects_CXX="$p" 11499 else 11500 predep_objects_CXX="$predep_objects_CXX $p" 11501 fi 11502 else 11503 if test -z "$postdep_objects_CXX"; then 11504 postdep_objects_CXX="$p" 11505 else 11506 postdep_objects_CXX="$postdep_objects_CXX $p" 11507 fi 11508 fi 11509 ;; 11510 11511 *) ;; # Ignore the rest. 11512 11513 esac 11514 done 11515 11516 # Clean up. 11517 rm -f a.out a.exe 11518else 11519 echo "libtool.m4: error: problem compiling CXX test program" 11520fi 11521 11522$rm -f confest.$objext 11523 11524# PORTME: override above test on systems where it is broken 11525case $host_os in 11526solaris*) 11527 case $cc_basename in 11528 CC*) 11529 # Adding this requires a known-good setup of shared libraries for 11530 # Sun compiler versions before 5.6, else PIC objects from an old 11531 # archive will be linked into the output, leading to subtle bugs. 11532 postdeps_CXX='-lCstd -lCrun' 11533 ;; 11534 esac 11535esac 11536 11537 11538case " $postdeps_CXX " in 11539*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11540esac 11541 11542lt_prog_compiler_wl_CXX= 11543lt_prog_compiler_pic_CXX= 11544lt_prog_compiler_static_CXX= 11545 11546echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11547echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11548 11549 # C++ specific cases for pic, static, wl, etc. 11550 if test "$GXX" = yes; then 11551 lt_prog_compiler_wl_CXX='-Wl,' 11552 lt_prog_compiler_static_CXX='-static' 11553 11554 case $host_os in 11555 aix*) 11556 # All AIX code is PIC. 11557 if test "$host_cpu" = ia64; then 11558 # AIX 5 now supports IA64 processor 11559 lt_prog_compiler_static_CXX='-Bstatic' 11560 fi 11561 ;; 11562 amigaos*) 11563 # FIXME: we need at least 68020 code to build shared libraries, but 11564 # adding the `-m68020' flag to GCC prevents building anything better, 11565 # like `-m68040'. 11566 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11567 ;; 11568 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 11569 | osf5*) 11570 # PIC is the default for these OSes. 11571 ;; 11572 mingw* | os2* | pw32*) 11573 # This hack is so that the source file can tell whether it is being 11574 # built for inclusion in a dll (and should export symbols for example). 11575 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11576 ;; 11577 darwin* | rhapsody*) 11578 # PIC is the default on this platform 11579 # Common symbols not allowed in MH_DYLIB files 11580 lt_prog_compiler_pic_CXX='-fno-common' 11581 ;; 11582 *djgpp*) 11583 # DJGPP does not support shared libraries at all 11584 lt_prog_compiler_pic_CXX= 11585 ;; 11586 sysv4*MP*) 11587 if test -d /usr/nec; then 11588 lt_prog_compiler_pic_CXX=-Kconform_pic 11589 fi 11590 ;; 11591 hpux*) 11592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11593 # not for PA HP-UX. 11594 case $host_cpu in 11595 hppa*64*|ia64*) 11596 ;; 11597 *) 11598 lt_prog_compiler_pic_CXX='-fPIC' 11599 ;; 11600 esac 11601 ;; 11602 *) 11603 lt_prog_compiler_pic_CXX='-fPIC' 11604 ;; 11605 esac 11606 else 11607 case $host_os in 11608 aix4* | aix5*) 11609 # All AIX code is PIC. 11610 if test "$host_cpu" = ia64; then 11611 # AIX 5 now supports IA64 processor 11612 lt_prog_compiler_static_CXX='-Bstatic' 11613 else 11614 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11615 fi 11616 ;; 11617 chorus*) 11618 case $cc_basename in 11619 cxch68*) 11620 # Green Hills C++ Compiler 11621 # _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" 11622 ;; 11623 esac 11624 ;; 11625 darwin*) 11626 # PIC is the default on this platform 11627 # Common symbols not allowed in MH_DYLIB files 11628 case $cc_basename in 11629 xlc*) 11630 lt_prog_compiler_pic_CXX='-qnocommon' 11631 lt_prog_compiler_wl_CXX='-Wl,' 11632 ;; 11633 esac 11634 ;; 11635 dgux*) 11636 case $cc_basename in 11637 ec++*) 11638 lt_prog_compiler_pic_CXX='-KPIC' 11639 ;; 11640 ghcx*) 11641 # Green Hills C++ Compiler 11642 lt_prog_compiler_pic_CXX='-pic' 11643 ;; 11644 *) 11645 ;; 11646 esac 11647 ;; 11648 freebsd* | kfreebsd*-gnu | dragonfly*) 11649 # FreeBSD uses GNU C++ 11650 ;; 11651 hpux9* | hpux10* | hpux11*) 11652 case $cc_basename in 11653 CC*) 11654 lt_prog_compiler_wl_CXX='-Wl,' 11655 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11656 if test "$host_cpu" != ia64; then 11657 lt_prog_compiler_pic_CXX='+Z' 11658 fi 11659 ;; 11660 aCC*) 11661 lt_prog_compiler_wl_CXX='-Wl,' 11662 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11663 case $host_cpu in 11664 hppa*64*|ia64*) 11665 # +Z the default 11666 ;; 11667 *) 11668 lt_prog_compiler_pic_CXX='+Z' 11669 ;; 11670 esac 11671 ;; 11672 *) 11673 ;; 11674 esac 11675 ;; 11676 irix5* | irix6* | nonstopux*) 11677 case $cc_basename in 11678 CC*) 11679 lt_prog_compiler_wl_CXX='-Wl,' 11680 lt_prog_compiler_static_CXX='-non_shared' 11681 # CC pic flag -KPIC is the default. 11682 ;; 11683 *) 11684 ;; 11685 esac 11686 ;; 11687 linux*) 11688 case $cc_basename in 11689 KCC*) 11690 # KAI C++ Compiler 11691 lt_prog_compiler_wl_CXX='--backend -Wl,' 11692 lt_prog_compiler_pic_CXX='-fPIC' 11693 ;; 11694 icpc* | ecpc*) 11695 # Intel C++ 11696 lt_prog_compiler_wl_CXX='-Wl,' 11697 lt_prog_compiler_pic_CXX='-KPIC' 11698 lt_prog_compiler_static_CXX='-static' 11699 ;; 11700 pgCC*) 11701 # Portland Group C++ compiler. 11702 lt_prog_compiler_wl_CXX='-Wl,' 11703 lt_prog_compiler_pic_CXX='-fpic' 11704 lt_prog_compiler_static_CXX='-Bstatic' 11705 ;; 11706 cxx*) 11707 # Compaq C++ 11708 # Make sure the PIC flag is empty. It appears that all Alpha 11709 # Linux and Compaq Tru64 Unix objects are PIC. 11710 lt_prog_compiler_pic_CXX= 11711 lt_prog_compiler_static_CXX='-non_shared' 11712 ;; 11713 *) 11714 ;; 11715 esac 11716 ;; 11717 lynxos*) 11718 ;; 11719 m88k*) 11720 ;; 11721 mvs*) 11722 case $cc_basename in 11723 cxx*) 11724 lt_prog_compiler_pic_CXX='-W c,exportall' 11725 ;; 11726 *) 11727 ;; 11728 esac 11729 ;; 11730 netbsd*) 11731 ;; 11732 osf3* | osf4* | osf5*) 11733 case $cc_basename in 11734 KCC*) 11735 lt_prog_compiler_wl_CXX='--backend -Wl,' 11736 ;; 11737 RCC*) 11738 # Rational C++ 2.4.1 11739 lt_prog_compiler_pic_CXX='-pic' 11740 ;; 11741 cxx*) 11742 # Digital/Compaq C++ 11743 lt_prog_compiler_wl_CXX='-Wl,' 11744 # Make sure the PIC flag is empty. It appears that all Alpha 11745 # Linux and Compaq Tru64 Unix objects are PIC. 11746 lt_prog_compiler_pic_CXX= 11747 lt_prog_compiler_static_CXX='-non_shared' 11748 ;; 11749 *) 11750 ;; 11751 esac 11752 ;; 11753 psos*) 11754 ;; 11755 sco*) 11756 case $cc_basename in 11757 CC*) 11758 lt_prog_compiler_pic_CXX='-fPIC' 11759 ;; 11760 *) 11761 ;; 11762 esac 11763 ;; 11764 solaris*) 11765 case $cc_basename in 11766 CC*) 11767 # Sun C++ 4.2, 5.x and Centerline C++ 11768 lt_prog_compiler_pic_CXX='-KPIC' 11769 lt_prog_compiler_static_CXX='-Bstatic' 11770 lt_prog_compiler_wl_CXX='-Qoption ld ' 11771 ;; 11772 gcx*) 11773 # Green Hills C++ Compiler 11774 lt_prog_compiler_pic_CXX='-PIC' 11775 ;; 11776 *) 11777 ;; 11778 esac 11779 ;; 11780 sunos4*) 11781 case $cc_basename in 11782 CC*) 11783 # Sun C++ 4.x 11784 lt_prog_compiler_pic_CXX='-pic' 11785 lt_prog_compiler_static_CXX='-Bstatic' 11786 ;; 11787 lcc*) 11788 # Lucid 11789 lt_prog_compiler_pic_CXX='-pic' 11790 ;; 11791 *) 11792 ;; 11793 esac 11794 ;; 11795 tandem*) 11796 case $cc_basename in 11797 NCC*) 11798 # NonStop-UX NCC 3.20 11799 lt_prog_compiler_pic_CXX='-KPIC' 11800 ;; 11801 *) 11802 ;; 11803 esac 11804 ;; 11805 unixware*) 11806 ;; 11807 vxworks*) 11808 ;; 11809 *) 11810 lt_prog_compiler_can_build_shared_CXX=no 11811 ;; 11812 esac 11813 fi 11814 11815echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11816echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11817 11818# 11819# Check to make sure the PIC flag actually works. 11820# 11821if test -n "$lt_prog_compiler_pic_CXX"; then 11822 11823echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11824echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11825if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11826 echo $ECHO_N "(cached) $ECHO_C" >&6 11827else 11828 lt_prog_compiler_pic_works_CXX=no 11829 ac_outfile=conftest.$ac_objext 11830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11831 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11832 # Insert the option either (1) after the last *FLAGS variable, or 11833 # (2) before a word containing "conftest.", or (3) at the end. 11834 # Note that $ac_compile itself does not contain backslashes and begins 11835 # with a dollar sign (not a hyphen), so the echo should work correctly. 11836 # The option is referenced via a variable to avoid confusing sed. 11837 lt_compile=`echo "$ac_compile" | $SED \ 11838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11840 -e 's:$: $lt_compiler_flag:'` 11841 (eval echo "\"\$as_me:11841: $lt_compile\"" >&5) 11842 (eval "$lt_compile" 2>conftest.err) 11843 ac_status=$? 11844 cat conftest.err >&5 11845 echo "$as_me:11845: \$? = $ac_status" >&5 11846 if (exit $ac_status) && test -s "$ac_outfile"; then 11847 # The compiler can only warn and ignore the option if not recognized 11848 # So say no if there are warnings other than the usual output. 11849 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11850 $SED '/^$/d' conftest.err >conftest.er2 11851 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11852 lt_prog_compiler_pic_works_CXX=yes 11853 fi 11854 fi 11855 $rm conftest* 11856 11857fi 11858echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11859echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11860 11861if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11862 case $lt_prog_compiler_pic_CXX in 11863 "" | " "*) ;; 11864 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11865 esac 11866else 11867 lt_prog_compiler_pic_CXX= 11868 lt_prog_compiler_can_build_shared_CXX=no 11869fi 11870 11871fi 11872case $host_os in 11873 # For platforms which do not support PIC, -DPIC is meaningless: 11874 *djgpp*) 11875 lt_prog_compiler_pic_CXX= 11876 ;; 11877 *) 11878 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11879 ;; 11880esac 11881 11882echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11883echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11884if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11885 echo $ECHO_N "(cached) $ECHO_C" >&6 11886else 11887 lt_cv_prog_compiler_c_o_CXX=no 11888 $rm -r conftest 2>/dev/null 11889 mkdir conftest 11890 cd conftest 11891 mkdir out 11892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11893 11894 lt_compiler_flag="-o out/conftest2.$ac_objext" 11895 # Insert the option either (1) after the last *FLAGS variable, or 11896 # (2) before a word containing "conftest.", or (3) at the end. 11897 # Note that $ac_compile itself does not contain backslashes and begins 11898 # with a dollar sign (not a hyphen), so the echo should work correctly. 11899 lt_compile=`echo "$ac_compile" | $SED \ 11900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11902 -e 's:$: $lt_compiler_flag:'` 11903 (eval echo "\"\$as_me:11903: $lt_compile\"" >&5) 11904 (eval "$lt_compile" 2>out/conftest.err) 11905 ac_status=$? 11906 cat out/conftest.err >&5 11907 echo "$as_me:11907: \$? = $ac_status" >&5 11908 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11909 then 11910 # The compiler can only warn and ignore the option if not recognized 11911 # So say no if there are warnings 11912 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11913 $SED '/^$/d' out/conftest.err >out/conftest.er2 11914 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11915 lt_cv_prog_compiler_c_o_CXX=yes 11916 fi 11917 fi 11918 chmod u+w . 2>&5 11919 $rm conftest* 11920 # SGI C++ compiler will create directory out/ii_files/ for 11921 # template instantiation 11922 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11923 $rm out/* && rmdir out 11924 cd .. 11925 rmdir conftest 11926 $rm conftest* 11927 11928fi 11929echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11930echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11931 11932 11933hard_links="nottested" 11934if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11935 # do not overwrite the value of need_locks provided by the user 11936 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11937echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11938 hard_links=yes 11939 $rm conftest* 11940 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11941 touch conftest.a 11942 ln conftest.a conftest.b 2>&5 || hard_links=no 11943 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11944 echo "$as_me:$LINENO: result: $hard_links" >&5 11945echo "${ECHO_T}$hard_links" >&6 11946 if test "$hard_links" = no; then 11947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11948echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11949 need_locks=warn 11950 fi 11951else 11952 need_locks=no 11953fi 11954 11955echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11956echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11957 11958 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11959 case $host_os in 11960 aix4* | aix5*) 11961 # If we're using GNU nm, then we don't want the "-C" option. 11962 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11963 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11964 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' 11965 else 11966 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' 11967 fi 11968 ;; 11969 pw32*) 11970 export_symbols_cmds_CXX="$ltdll_cmds" 11971 ;; 11972 cygwin* | mingw*) 11973 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' 11974 ;; 11975 *) 11976 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11977 ;; 11978 esac 11979 11980echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11981echo "${ECHO_T}$ld_shlibs_CXX" >&6 11982test "$ld_shlibs_CXX" = no && can_build_shared=no 11983 11984variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11985if test "$GCC" = yes; then 11986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11987fi 11988 11989# 11990# Do we need to explicitly link libc? 11991# 11992case "x$archive_cmds_need_lc_CXX" in 11993x|xyes) 11994 # Assume -lc should be added 11995 archive_cmds_need_lc_CXX=yes 11996 11997 if test "$enable_shared" = yes && test "$GCC" = yes; then 11998 case $archive_cmds_CXX in 11999 *'~'*) 12000 # FIXME: we may have to deal with multi-command sequences. 12001 ;; 12002 '$CC '*) 12003 # Test whether the compiler implicitly links with -lc since on some 12004 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12005 # to ld, don't add -lc before -lgcc. 12006 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12007echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12008 $rm conftest* 12009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12010 12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12012 (eval $ac_compile) 2>&5 12013 ac_status=$? 12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12015 (exit $ac_status); } 2>conftest.err; then 12016 soname=conftest 12017 lib=conftest 12018 libobjs=conftest.$ac_objext 12019 deplibs= 12020 wl=$lt_prog_compiler_wl_CXX 12021 compiler_flags=-v 12022 linker_flags=-v 12023 verstring= 12024 output_objdir=. 12025 libname=conftest 12026 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12027 allow_undefined_flag_CXX= 12028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12029 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12030 ac_status=$? 12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12032 (exit $ac_status); } 12033 then 12034 archive_cmds_need_lc_CXX=no 12035 else 12036 archive_cmds_need_lc_CXX=yes 12037 fi 12038 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12039 else 12040 cat conftest.err 1>&5 12041 fi 12042 $rm conftest* 12043 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12044echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12045 ;; 12046 esac 12047 fi 12048 ;; 12049esac 12050 12051echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12052echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12053library_names_spec= 12054libname_spec='lib$name' 12055soname_spec= 12056shrext_cmds=".so" 12057postinstall_cmds= 12058postuninstall_cmds= 12059finish_cmds= 12060finish_eval= 12061shlibpath_var= 12062shlibpath_overrides_runpath=unknown 12063version_type=none 12064dynamic_linker="$host_os ld.so" 12065sys_lib_dlsearch_path_spec="/lib /usr/lib" 12066if test "$GCC" = yes; then 12067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12069 # if the path contains ";" then we assume it to be the separator 12070 # otherwise default to the standard path separator (i.e. ":") - it is 12071 # assumed that no part of a normal pathname contains ";" but that should 12072 # okay in the real world where ";" in dirpaths is itself problematic. 12073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12074 else 12075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12076 fi 12077else 12078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12079fi 12080need_lib_prefix=unknown 12081hardcode_into_libs=no 12082 12083# when you set need_version to no, make sure it does not cause -set_version 12084# flags to be left without arguments 12085need_version=unknown 12086 12087case $host_os in 12088aix3*) 12089 version_type=linux 12090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12091 shlibpath_var=LIBPATH 12092 12093 # AIX 3 has no versioning support, so we append a major version to the name. 12094 soname_spec='${libname}${release}${shared_ext}$major' 12095 ;; 12096 12097aix4* | aix5*) 12098 version_type=linux 12099 need_lib_prefix=no 12100 need_version=no 12101 hardcode_into_libs=yes 12102 if test "$host_cpu" = ia64; then 12103 # AIX 5 supports IA64 12104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12105 shlibpath_var=LD_LIBRARY_PATH 12106 else 12107 # With GCC up to 2.95.x, collect2 would create an import file 12108 # for dependence libraries. The import file would start with 12109 # the line `#! .'. This would cause the generated library to 12110 # depend on `.', always an invalid library. This was fixed in 12111 # development snapshots of GCC prior to 3.0. 12112 case $host_os in 12113 aix4 | aix4.[01] | aix4.[01].*) 12114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12115 echo ' yes ' 12116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12117 : 12118 else 12119 can_build_shared=no 12120 fi 12121 ;; 12122 esac 12123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12124 # soname into executable. Probably we can add versioning support to 12125 # collect2, so additional links can be useful in future. 12126 if test "$aix_use_runtimelinking" = yes; then 12127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12128 # instead of lib<name>.a to let people know that these are not 12129 # typical AIX shared libraries. 12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12131 else 12132 # We preserve .a as extension for shared libraries through AIX4.2 12133 # and later when we are not doing run time linking. 12134 library_names_spec='${libname}${release}.a $libname.a' 12135 soname_spec='${libname}${release}${shared_ext}$major' 12136 fi 12137 shlibpath_var=LIBPATH 12138 fi 12139 ;; 12140 12141amigaos*) 12142 library_names_spec='$libname.ixlibrary $libname.a' 12143 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12144 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' 12145 ;; 12146 12147beos*) 12148 library_names_spec='${libname}${shared_ext}' 12149 dynamic_linker="$host_os ld.so" 12150 shlibpath_var=LIBRARY_PATH 12151 ;; 12152 12153bsdi[45]*) 12154 version_type=linux 12155 need_version=no 12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12157 soname_spec='${libname}${release}${shared_ext}$major' 12158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12159 shlibpath_var=LD_LIBRARY_PATH 12160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12162 # the default ld.so.conf also contains /usr/contrib/lib and 12163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12164 # libtool to hard-code these into programs 12165 ;; 12166 12167cygwin* | mingw* | pw32*) 12168 version_type=windows 12169 shrext_cmds=".dll" 12170 need_version=no 12171 need_lib_prefix=no 12172 12173 case $GCC,$host_os in 12174 yes,cygwin* | yes,mingw* | yes,pw32*) 12175 library_names_spec='$libname.dll.a' 12176 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12177 postinstall_cmds='base_file=`basename \${file}`~ 12178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12179 dldir=$destdir/`dirname \$dlpath`~ 12180 test -d \$dldir || mkdir -p \$dldir~ 12181 $install_prog $dir/$dlname \$dldir/$dlname~ 12182 chmod a+x \$dldir/$dlname' 12183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12184 dlpath=$dir/\$dldll~ 12185 $rm \$dlpath' 12186 shlibpath_overrides_runpath=yes 12187 12188 case $host_os in 12189 cygwin*) 12190 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12192 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12193 ;; 12194 mingw*) 12195 # MinGW DLLs use traditional 'lib' prefix 12196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12198 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12199 # It is most probably a Windows format PATH printed by 12200 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12201 # path with ; separators, and with drive letters. We can handle the 12202 # drive letters (cygwin fileutils understands them), so leave them, 12203 # especially as we might pass files found there to a mingw objdump, 12204 # which wouldn't understand a cygwinified path. Ahh. 12205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12206 else 12207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12208 fi 12209 ;; 12210 pw32*) 12211 # pw32 DLLs use 'pw' prefix rather than 'lib' 12212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12213 ;; 12214 esac 12215 ;; 12216 12217 *) 12218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12219 ;; 12220 esac 12221 dynamic_linker='Win32 ld.exe' 12222 # FIXME: first we should search . and the directory the executable is in 12223 shlibpath_var=PATH 12224 ;; 12225 12226darwin* | rhapsody*) 12227 dynamic_linker="$host_os dyld" 12228 version_type=darwin 12229 need_lib_prefix=no 12230 need_version=no 12231 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12232 soname_spec='${libname}${release}${major}$shared_ext' 12233 shlibpath_overrides_runpath=yes 12234 shlibpath_var=DYLD_LIBRARY_PATH 12235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12236 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12237 if test "$GCC" = yes; then 12238 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"` 12239 else 12240 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12241 fi 12242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12243 ;; 12244 12245dgux*) 12246 version_type=linux 12247 need_lib_prefix=no 12248 need_version=no 12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12250 soname_spec='${libname}${release}${shared_ext}$major' 12251 shlibpath_var=LD_LIBRARY_PATH 12252 ;; 12253 12254freebsd1*) 12255 dynamic_linker=no 12256 ;; 12257 12258haiku*) 12259 library_names_spec='${libname}${shared_ext}' 12260 dynamic_linker="$host_os ld.so" 12261 shlibpath_var=LIBRARY_PATH 12262 ;; 12263 12264kfreebsd*-gnu) 12265 version_type=linux 12266 need_lib_prefix=no 12267 need_version=no 12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12269 soname_spec='${libname}${release}${shared_ext}$major' 12270 shlibpath_var=LD_LIBRARY_PATH 12271 shlibpath_overrides_runpath=no 12272 hardcode_into_libs=yes 12273 dynamic_linker='GNU ld.so' 12274 ;; 12275 12276freebsd* | dragonfly*) 12277 # DragonFly does not have aout. When/if they implement a new 12278 # versioning mechanism, adjust this. 12279 if test -x /usr/bin/objformat; then 12280 objformat=`/usr/bin/objformat` 12281 else 12282 case $host_os in 12283 freebsd[123]*) objformat=aout ;; 12284 *) objformat=elf ;; 12285 esac 12286 fi 12287 version_type=freebsd-$objformat 12288 case $version_type in 12289 freebsd-elf*) 12290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12291 need_version=no 12292 need_lib_prefix=no 12293 ;; 12294 freebsd-*) 12295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12296 need_version=yes 12297 ;; 12298 esac 12299 shlibpath_var=LD_LIBRARY_PATH 12300 case $host_os in 12301 freebsd2*) 12302 shlibpath_overrides_runpath=yes 12303 ;; 12304 freebsd3.[01]* | freebsdelf3.[01]*) 12305 shlibpath_overrides_runpath=yes 12306 hardcode_into_libs=yes 12307 ;; 12308 *) # from 3.2 on 12309 shlibpath_overrides_runpath=no 12310 hardcode_into_libs=yes 12311 ;; 12312 esac 12313 ;; 12314 12315gnu*) 12316 version_type=linux 12317 need_lib_prefix=no 12318 need_version=no 12319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12320 soname_spec='${libname}${release}${shared_ext}$major' 12321 shlibpath_var=LD_LIBRARY_PATH 12322 hardcode_into_libs=yes 12323 ;; 12324 12325hpux9* | hpux10* | hpux11*) 12326 # Give a soname corresponding to the major version so that dld.sl refuses to 12327 # link against other versions. 12328 version_type=sunos 12329 need_lib_prefix=no 12330 need_version=no 12331 case $host_cpu in 12332 ia64*) 12333 shrext_cmds='.so' 12334 hardcode_into_libs=yes 12335 dynamic_linker="$host_os dld.so" 12336 shlibpath_var=LD_LIBRARY_PATH 12337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12339 soname_spec='${libname}${release}${shared_ext}$major' 12340 if test "X$HPUX_IA64_MODE" = X32; then 12341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12342 else 12343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12344 fi 12345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12346 ;; 12347 hppa*64*) 12348 shrext_cmds='.sl' 12349 hardcode_into_libs=yes 12350 dynamic_linker="$host_os dld.sl" 12351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12354 soname_spec='${libname}${release}${shared_ext}$major' 12355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12357 ;; 12358 *) 12359 shrext_cmds='.sl' 12360 dynamic_linker="$host_os dld.sl" 12361 shlibpath_var=SHLIB_PATH 12362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12364 soname_spec='${libname}${release}${shared_ext}$major' 12365 ;; 12366 esac 12367 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12368 postinstall_cmds='chmod 555 $lib' 12369 ;; 12370 12371irix5* | irix6* | nonstopux*) 12372 case $host_os in 12373 nonstopux*) version_type=nonstopux ;; 12374 *) 12375 if test "$lt_cv_prog_gnu_ld" = yes; then 12376 version_type=linux 12377 else 12378 version_type=irix 12379 fi ;; 12380 esac 12381 need_lib_prefix=no 12382 need_version=no 12383 soname_spec='${libname}${release}${shared_ext}$major' 12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12385 case $host_os in 12386 irix5* | nonstopux*) 12387 libsuff= shlibsuff= 12388 ;; 12389 *) 12390 case $LD in # libtool.m4 will add one of these switches to LD 12391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12392 libsuff= shlibsuff= libmagic=32-bit;; 12393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12394 libsuff=32 shlibsuff=N32 libmagic=N32;; 12395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12396 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12397 *) libsuff= shlibsuff= libmagic=never-match;; 12398 esac 12399 ;; 12400 esac 12401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12402 shlibpath_overrides_runpath=no 12403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12405 hardcode_into_libs=yes 12406 ;; 12407 12408# No shared lib support for Linux oldld, aout, or coff. 12409linux*oldld* | linux*aout* | linux*coff*) 12410 dynamic_linker=no 12411 ;; 12412 12413# This must be Linux ELF. 12414linux*) 12415 version_type=linux 12416 need_lib_prefix=no 12417 need_version=no 12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12419 soname_spec='${libname}${release}${shared_ext}$major' 12420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12421 shlibpath_var=LD_LIBRARY_PATH 12422 shlibpath_overrides_runpath=no 12423 # This implies no fast_install, which is unacceptable. 12424 # Some rework will be needed to allow for fast_install 12425 # before this can be enabled. 12426 hardcode_into_libs=yes 12427 12428 # Append ld.so.conf contents to the search path 12429 if test -f /etc/ld.so.conf; then 12430 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' ' '` 12431 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12432 fi 12433 12434 # We used to test for /lib/ld.so.1 and disable shared libraries on 12435 # powerpc, because MkLinux only supported shared libraries with the 12436 # GNU dynamic linker. Since this was broken with cross compilers, 12437 # most powerpc-linux boxes support dynamic linking these days and 12438 # people can always --disable-shared, the test was removed, and we 12439 # assume the GNU/Linux dynamic linker is in use. 12440 dynamic_linker='GNU/Linux ld.so' 12441 ;; 12442 12443knetbsd*-gnu) 12444 version_type=linux 12445 need_lib_prefix=no 12446 need_version=no 12447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12448 soname_spec='${libname}${release}${shared_ext}$major' 12449 shlibpath_var=LD_LIBRARY_PATH 12450 shlibpath_overrides_runpath=no 12451 hardcode_into_libs=yes 12452 dynamic_linker='GNU ld.so' 12453 ;; 12454 12455netbsd*) 12456 version_type=sunos 12457 need_lib_prefix=no 12458 need_version=no 12459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12462 dynamic_linker='NetBSD (a.out) ld.so' 12463 else 12464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12465 soname_spec='${libname}${release}${shared_ext}$major' 12466 dynamic_linker='NetBSD ld.elf_so' 12467 fi 12468 shlibpath_var=LD_LIBRARY_PATH 12469 shlibpath_overrides_runpath=yes 12470 hardcode_into_libs=yes 12471 ;; 12472 12473newsos6) 12474 version_type=linux 12475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12476 shlibpath_var=LD_LIBRARY_PATH 12477 shlibpath_overrides_runpath=yes 12478 ;; 12479 12480nto-qnx*) 12481 version_type=linux 12482 need_lib_prefix=no 12483 need_version=no 12484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12485 soname_spec='${libname}${release}${shared_ext}$major' 12486 shlibpath_var=LD_LIBRARY_PATH 12487 shlibpath_overrides_runpath=yes 12488 ;; 12489 12490openbsd*) 12491 version_type=sunos 12492 need_lib_prefix=no 12493 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12494 case $host_os in 12495 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12496 *) need_version=no ;; 12497 esac 12498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12500 shlibpath_var=LD_LIBRARY_PATH 12501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12502 case $host_os in 12503 openbsd2.[89] | openbsd2.[89].*) 12504 shlibpath_overrides_runpath=no 12505 ;; 12506 *) 12507 shlibpath_overrides_runpath=yes 12508 ;; 12509 esac 12510 else 12511 shlibpath_overrides_runpath=yes 12512 fi 12513 ;; 12514 12515os2*) 12516 libname_spec='$name' 12517 shrext_cmds=".dll" 12518 need_lib_prefix=no 12519 library_names_spec='$libname${shared_ext} $libname.a' 12520 dynamic_linker='OS/2 ld.exe' 12521 shlibpath_var=LIBPATH 12522 ;; 12523 12524osf3* | osf4* | osf5*) 12525 version_type=osf 12526 need_lib_prefix=no 12527 need_version=no 12528 soname_spec='${libname}${release}${shared_ext}$major' 12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12530 shlibpath_var=LD_LIBRARY_PATH 12531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12533 ;; 12534 12535sco3.2v5*) 12536 version_type=osf 12537 soname_spec='${libname}${release}${shared_ext}$major' 12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12539 shlibpath_var=LD_LIBRARY_PATH 12540 ;; 12541 12542solaris*) 12543 version_type=linux 12544 need_lib_prefix=no 12545 need_version=no 12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12547 soname_spec='${libname}${release}${shared_ext}$major' 12548 shlibpath_var=LD_LIBRARY_PATH 12549 shlibpath_overrides_runpath=yes 12550 hardcode_into_libs=yes 12551 # ldd complains unless libraries are executable 12552 postinstall_cmds='chmod +x $lib' 12553 ;; 12554 12555sunos4*) 12556 version_type=sunos 12557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12559 shlibpath_var=LD_LIBRARY_PATH 12560 shlibpath_overrides_runpath=yes 12561 if test "$with_gnu_ld" = yes; then 12562 need_lib_prefix=no 12563 fi 12564 need_version=yes 12565 ;; 12566 12567sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12568 version_type=linux 12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12570 soname_spec='${libname}${release}${shared_ext}$major' 12571 shlibpath_var=LD_LIBRARY_PATH 12572 case $host_vendor in 12573 sni) 12574 shlibpath_overrides_runpath=no 12575 need_lib_prefix=no 12576 export_dynamic_flag_spec='${wl}-Blargedynsym' 12577 runpath_var=LD_RUN_PATH 12578 ;; 12579 siemens) 12580 need_lib_prefix=no 12581 ;; 12582 motorola) 12583 need_lib_prefix=no 12584 need_version=no 12585 shlibpath_overrides_runpath=no 12586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12587 ;; 12588 esac 12589 ;; 12590 12591sysv4*MP*) 12592 if test -d /usr/nec ;then 12593 version_type=linux 12594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12595 soname_spec='$libname${shared_ext}.$major' 12596 shlibpath_var=LD_LIBRARY_PATH 12597 fi 12598 ;; 12599 12600uts4*) 12601 version_type=linux 12602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12603 soname_spec='${libname}${release}${shared_ext}$major' 12604 shlibpath_var=LD_LIBRARY_PATH 12605 ;; 12606 12607*) 12608 dynamic_linker=no 12609 ;; 12610esac 12611echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12612echo "${ECHO_T}$dynamic_linker" >&6 12613test "$dynamic_linker" = no && can_build_shared=no 12614 12615echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12616echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12617hardcode_action_CXX= 12618if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12619 test -n "$runpath_var_CXX" || \ 12620 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12621 12622 # We can hardcode non-existant directories. 12623 if test "$hardcode_direct_CXX" != no && 12624 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12625 # have to relink, otherwise we might link with an installed library 12626 # when we should be linking with a yet-to-be-installed one 12627 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12628 test "$hardcode_minus_L_CXX" != no; then 12629 # Linking always hardcodes the temporary library directory. 12630 hardcode_action_CXX=relink 12631 else 12632 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12633 hardcode_action_CXX=immediate 12634 fi 12635else 12636 # We cannot hardcode anything, or else we can only hardcode existing 12637 # directories. 12638 hardcode_action_CXX=unsupported 12639fi 12640echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12641echo "${ECHO_T}$hardcode_action_CXX" >&6 12642 12643if test "$hardcode_action_CXX" = relink; then 12644 # Fast installation is not supported 12645 enable_fast_install=no 12646elif test "$shlibpath_overrides_runpath" = yes || 12647 test "$enable_shared" = no; then 12648 # Fast installation is not necessary 12649 enable_fast_install=needless 12650fi 12651 12652striplib= 12653old_striplib= 12654echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12655echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12656if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12657 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12658 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12659 echo "$as_me:$LINENO: result: yes" >&5 12660echo "${ECHO_T}yes" >&6 12661else 12662# FIXME - insert some real tests, host_os isn't really good enough 12663 case $host_os in 12664 darwin*) 12665 if test -n "$STRIP" ; then 12666 striplib="$STRIP -x" 12667 echo "$as_me:$LINENO: result: yes" >&5 12668echo "${ECHO_T}yes" >&6 12669 else 12670 echo "$as_me:$LINENO: result: no" >&5 12671echo "${ECHO_T}no" >&6 12672fi 12673 ;; 12674 *) 12675 echo "$as_me:$LINENO: result: no" >&5 12676echo "${ECHO_T}no" >&6 12677 ;; 12678 esac 12679fi 12680 12681if test "x$enable_dlopen" != xyes; then 12682 enable_dlopen=unknown 12683 enable_dlopen_self=unknown 12684 enable_dlopen_self_static=unknown 12685else 12686 lt_cv_dlopen=no 12687 lt_cv_dlopen_libs= 12688 12689 case $host_os in 12690 beos*) 12691 lt_cv_dlopen="load_add_on" 12692 lt_cv_dlopen_libs= 12693 lt_cv_dlopen_self=yes 12694 ;; 12695 12696 mingw* | pw32*) 12697 lt_cv_dlopen="LoadLibrary" 12698 lt_cv_dlopen_libs= 12699 ;; 12700 12701 cygwin*) 12702 lt_cv_dlopen="dlopen" 12703 lt_cv_dlopen_libs= 12704 ;; 12705 12706 darwin*) 12707 # if libdl is installed we need to link against it 12708 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12709echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12710if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12711 echo $ECHO_N "(cached) $ECHO_C" >&6 12712else 12713 ac_check_lib_save_LIBS=$LIBS 12714LIBS="-ldl $LIBS" 12715cat >conftest.$ac_ext <<_ACEOF 12716/* confdefs.h. */ 12717_ACEOF 12718cat confdefs.h >>conftest.$ac_ext 12719cat >>conftest.$ac_ext <<_ACEOF 12720/* end confdefs.h. */ 12721 12722/* Override any gcc2 internal prototype to avoid an error. */ 12723#ifdef __cplusplus 12724extern "C" 12725#endif 12726/* We use char because int might match the return type of a gcc2 12727 builtin and then its argument prototype would still apply. */ 12728char dlopen (); 12729int 12730main () 12731{ 12732dlopen (); 12733 ; 12734 return 0; 12735} 12736_ACEOF 12737rm -f conftest.$ac_objext conftest$ac_exeext 12738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12739 (eval $ac_link) 2>conftest.er1 12740 ac_status=$? 12741 grep -v '^ *+' conftest.er1 >conftest.err 12742 rm -f conftest.er1 12743 cat conftest.err >&5 12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12745 (exit $ac_status); } && 12746 { ac_try='test -z "$ac_cxx_werror_flag" 12747 || test ! -s conftest.err' 12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12749 (eval $ac_try) 2>&5 12750 ac_status=$? 12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12752 (exit $ac_status); }; } && 12753 { ac_try='test -s conftest$ac_exeext' 12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12755 (eval $ac_try) 2>&5 12756 ac_status=$? 12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12758 (exit $ac_status); }; }; then 12759 ac_cv_lib_dl_dlopen=yes 12760else 12761 echo "$as_me: failed program was:" >&5 12762sed 's/^/| /' conftest.$ac_ext >&5 12763 12764ac_cv_lib_dl_dlopen=no 12765fi 12766rm -f conftest.err conftest.$ac_objext \ 12767 conftest$ac_exeext conftest.$ac_ext 12768LIBS=$ac_check_lib_save_LIBS 12769fi 12770echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12771echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12772if test $ac_cv_lib_dl_dlopen = yes; then 12773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12774else 12775 12776 lt_cv_dlopen="dyld" 12777 lt_cv_dlopen_libs= 12778 lt_cv_dlopen_self=yes 12779 12780fi 12781 12782 ;; 12783 12784 haiku*) 12785 lt_cv_dlopen="load_add_on" 12786 lt_cv_dlopen_libs= 12787 lt_cv_dlopen_self=yes 12788 ;; 12789 12790 *) 12791 echo "$as_me:$LINENO: checking for shl_load" >&5 12792echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12793if test "${ac_cv_func_shl_load+set}" = set; then 12794 echo $ECHO_N "(cached) $ECHO_C" >&6 12795else 12796 cat >conftest.$ac_ext <<_ACEOF 12797/* confdefs.h. */ 12798_ACEOF 12799cat confdefs.h >>conftest.$ac_ext 12800cat >>conftest.$ac_ext <<_ACEOF 12801/* end confdefs.h. */ 12802/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12803 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12804#define shl_load innocuous_shl_load 12805 12806/* System header to define __stub macros and hopefully few prototypes, 12807 which can conflict with char shl_load (); below. 12808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12809 <limits.h> exists even on freestanding compilers. */ 12810 12811#ifdef __STDC__ 12812# include <limits.h> 12813#else 12814# include <assert.h> 12815#endif 12816 12817#undef shl_load 12818 12819/* Override any gcc2 internal prototype to avoid an error. */ 12820#ifdef __cplusplus 12821extern "C" 12822{ 12823#endif 12824/* We use char because int might match the return type of a gcc2 12825 builtin and then its argument prototype would still apply. */ 12826char shl_load (); 12827/* The GNU C library defines this for functions which it implements 12828 to always fail with ENOSYS. Some functions are actually named 12829 something starting with __ and the normal name is an alias. */ 12830#if defined (__stub_shl_load) || defined (__stub___shl_load) 12831choke me 12832#else 12833char (*f) () = shl_load; 12834#endif 12835#ifdef __cplusplus 12836} 12837#endif 12838 12839int 12840main () 12841{ 12842return f != shl_load; 12843 ; 12844 return 0; 12845} 12846_ACEOF 12847rm -f conftest.$ac_objext conftest$ac_exeext 12848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12849 (eval $ac_link) 2>conftest.er1 12850 ac_status=$? 12851 grep -v '^ *+' conftest.er1 >conftest.err 12852 rm -f conftest.er1 12853 cat conftest.err >&5 12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12855 (exit $ac_status); } && 12856 { ac_try='test -z "$ac_cxx_werror_flag" 12857 || test ! -s conftest.err' 12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12859 (eval $ac_try) 2>&5 12860 ac_status=$? 12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12862 (exit $ac_status); }; } && 12863 { ac_try='test -s conftest$ac_exeext' 12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12865 (eval $ac_try) 2>&5 12866 ac_status=$? 12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12868 (exit $ac_status); }; }; then 12869 ac_cv_func_shl_load=yes 12870else 12871 echo "$as_me: failed program was:" >&5 12872sed 's/^/| /' conftest.$ac_ext >&5 12873 12874ac_cv_func_shl_load=no 12875fi 12876rm -f conftest.err conftest.$ac_objext \ 12877 conftest$ac_exeext conftest.$ac_ext 12878fi 12879echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12880echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12881if test $ac_cv_func_shl_load = yes; then 12882 lt_cv_dlopen="shl_load" 12883else 12884 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12885echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12886if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12887 echo $ECHO_N "(cached) $ECHO_C" >&6 12888else 12889 ac_check_lib_save_LIBS=$LIBS 12890LIBS="-ldld $LIBS" 12891cat >conftest.$ac_ext <<_ACEOF 12892/* confdefs.h. */ 12893_ACEOF 12894cat confdefs.h >>conftest.$ac_ext 12895cat >>conftest.$ac_ext <<_ACEOF 12896/* end confdefs.h. */ 12897 12898/* Override any gcc2 internal prototype to avoid an error. */ 12899#ifdef __cplusplus 12900extern "C" 12901#endif 12902/* We use char because int might match the return type of a gcc2 12903 builtin and then its argument prototype would still apply. */ 12904char shl_load (); 12905int 12906main () 12907{ 12908shl_load (); 12909 ; 12910 return 0; 12911} 12912_ACEOF 12913rm -f conftest.$ac_objext conftest$ac_exeext 12914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12915 (eval $ac_link) 2>conftest.er1 12916 ac_status=$? 12917 grep -v '^ *+' conftest.er1 >conftest.err 12918 rm -f conftest.er1 12919 cat conftest.err >&5 12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12921 (exit $ac_status); } && 12922 { ac_try='test -z "$ac_cxx_werror_flag" 12923 || test ! -s conftest.err' 12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12925 (eval $ac_try) 2>&5 12926 ac_status=$? 12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12928 (exit $ac_status); }; } && 12929 { ac_try='test -s conftest$ac_exeext' 12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12931 (eval $ac_try) 2>&5 12932 ac_status=$? 12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12934 (exit $ac_status); }; }; then 12935 ac_cv_lib_dld_shl_load=yes 12936else 12937 echo "$as_me: failed program was:" >&5 12938sed 's/^/| /' conftest.$ac_ext >&5 12939 12940ac_cv_lib_dld_shl_load=no 12941fi 12942rm -f conftest.err conftest.$ac_objext \ 12943 conftest$ac_exeext conftest.$ac_ext 12944LIBS=$ac_check_lib_save_LIBS 12945fi 12946echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12947echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12948if test $ac_cv_lib_dld_shl_load = yes; then 12949 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12950else 12951 echo "$as_me:$LINENO: checking for dlopen" >&5 12952echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12953if test "${ac_cv_func_dlopen+set}" = set; then 12954 echo $ECHO_N "(cached) $ECHO_C" >&6 12955else 12956 cat >conftest.$ac_ext <<_ACEOF 12957/* confdefs.h. */ 12958_ACEOF 12959cat confdefs.h >>conftest.$ac_ext 12960cat >>conftest.$ac_ext <<_ACEOF 12961/* end confdefs.h. */ 12962/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12964#define dlopen innocuous_dlopen 12965 12966/* System header to define __stub macros and hopefully few prototypes, 12967 which can conflict with char dlopen (); below. 12968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12969 <limits.h> exists even on freestanding compilers. */ 12970 12971#ifdef __STDC__ 12972# include <limits.h> 12973#else 12974# include <assert.h> 12975#endif 12976 12977#undef dlopen 12978 12979/* Override any gcc2 internal prototype to avoid an error. */ 12980#ifdef __cplusplus 12981extern "C" 12982{ 12983#endif 12984/* We use char because int might match the return type of a gcc2 12985 builtin and then its argument prototype would still apply. */ 12986char dlopen (); 12987/* The GNU C library defines this for functions which it implements 12988 to always fail with ENOSYS. Some functions are actually named 12989 something starting with __ and the normal name is an alias. */ 12990#if defined (__stub_dlopen) || defined (__stub___dlopen) 12991choke me 12992#else 12993char (*f) () = dlopen; 12994#endif 12995#ifdef __cplusplus 12996} 12997#endif 12998 12999int 13000main () 13001{ 13002return f != dlopen; 13003 ; 13004 return 0; 13005} 13006_ACEOF 13007rm -f conftest.$ac_objext conftest$ac_exeext 13008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13009 (eval $ac_link) 2>conftest.er1 13010 ac_status=$? 13011 grep -v '^ *+' conftest.er1 >conftest.err 13012 rm -f conftest.er1 13013 cat conftest.err >&5 13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13015 (exit $ac_status); } && 13016 { ac_try='test -z "$ac_cxx_werror_flag" 13017 || test ! -s conftest.err' 13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13019 (eval $ac_try) 2>&5 13020 ac_status=$? 13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13022 (exit $ac_status); }; } && 13023 { ac_try='test -s conftest$ac_exeext' 13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13025 (eval $ac_try) 2>&5 13026 ac_status=$? 13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13028 (exit $ac_status); }; }; then 13029 ac_cv_func_dlopen=yes 13030else 13031 echo "$as_me: failed program was:" >&5 13032sed 's/^/| /' conftest.$ac_ext >&5 13033 13034ac_cv_func_dlopen=no 13035fi 13036rm -f conftest.err conftest.$ac_objext \ 13037 conftest$ac_exeext conftest.$ac_ext 13038fi 13039echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 13040echo "${ECHO_T}$ac_cv_func_dlopen" >&6 13041if test $ac_cv_func_dlopen = yes; then 13042 lt_cv_dlopen="dlopen" 13043else 13044 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 13045echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13046if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13047 echo $ECHO_N "(cached) $ECHO_C" >&6 13048else 13049 ac_check_lib_save_LIBS=$LIBS 13050LIBS="-ldl $LIBS" 13051cat >conftest.$ac_ext <<_ACEOF 13052/* confdefs.h. */ 13053_ACEOF 13054cat confdefs.h >>conftest.$ac_ext 13055cat >>conftest.$ac_ext <<_ACEOF 13056/* end confdefs.h. */ 13057 13058/* Override any gcc2 internal prototype to avoid an error. */ 13059#ifdef __cplusplus 13060extern "C" 13061#endif 13062/* We use char because int might match the return type of a gcc2 13063 builtin and then its argument prototype would still apply. */ 13064char dlopen (); 13065int 13066main () 13067{ 13068dlopen (); 13069 ; 13070 return 0; 13071} 13072_ACEOF 13073rm -f conftest.$ac_objext conftest$ac_exeext 13074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13075 (eval $ac_link) 2>conftest.er1 13076 ac_status=$? 13077 grep -v '^ *+' conftest.er1 >conftest.err 13078 rm -f conftest.er1 13079 cat conftest.err >&5 13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); } && 13082 { ac_try='test -z "$ac_cxx_werror_flag" 13083 || test ! -s conftest.err' 13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13085 (eval $ac_try) 2>&5 13086 ac_status=$? 13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13088 (exit $ac_status); }; } && 13089 { ac_try='test -s conftest$ac_exeext' 13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13091 (eval $ac_try) 2>&5 13092 ac_status=$? 13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13094 (exit $ac_status); }; }; then 13095 ac_cv_lib_dl_dlopen=yes 13096else 13097 echo "$as_me: failed program was:" >&5 13098sed 's/^/| /' conftest.$ac_ext >&5 13099 13100ac_cv_lib_dl_dlopen=no 13101fi 13102rm -f conftest.err conftest.$ac_objext \ 13103 conftest$ac_exeext conftest.$ac_ext 13104LIBS=$ac_check_lib_save_LIBS 13105fi 13106echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13107echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13108if test $ac_cv_lib_dl_dlopen = yes; then 13109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13110else 13111 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 13112echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 13113if test "${ac_cv_lib_svld_dlopen+set}" = set; then 13114 echo $ECHO_N "(cached) $ECHO_C" >&6 13115else 13116 ac_check_lib_save_LIBS=$LIBS 13117LIBS="-lsvld $LIBS" 13118cat >conftest.$ac_ext <<_ACEOF 13119/* confdefs.h. */ 13120_ACEOF 13121cat confdefs.h >>conftest.$ac_ext 13122cat >>conftest.$ac_ext <<_ACEOF 13123/* end confdefs.h. */ 13124 13125/* Override any gcc2 internal prototype to avoid an error. */ 13126#ifdef __cplusplus 13127extern "C" 13128#endif 13129/* We use char because int might match the return type of a gcc2 13130 builtin and then its argument prototype would still apply. */ 13131char dlopen (); 13132int 13133main () 13134{ 13135dlopen (); 13136 ; 13137 return 0; 13138} 13139_ACEOF 13140rm -f conftest.$ac_objext conftest$ac_exeext 13141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13142 (eval $ac_link) 2>conftest.er1 13143 ac_status=$? 13144 grep -v '^ *+' conftest.er1 >conftest.err 13145 rm -f conftest.er1 13146 cat conftest.err >&5 13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13148 (exit $ac_status); } && 13149 { ac_try='test -z "$ac_cxx_werror_flag" 13150 || test ! -s conftest.err' 13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13152 (eval $ac_try) 2>&5 13153 ac_status=$? 13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13155 (exit $ac_status); }; } && 13156 { ac_try='test -s conftest$ac_exeext' 13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13158 (eval $ac_try) 2>&5 13159 ac_status=$? 13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13161 (exit $ac_status); }; }; then 13162 ac_cv_lib_svld_dlopen=yes 13163else 13164 echo "$as_me: failed program was:" >&5 13165sed 's/^/| /' conftest.$ac_ext >&5 13166 13167ac_cv_lib_svld_dlopen=no 13168fi 13169rm -f conftest.err conftest.$ac_objext \ 13170 conftest$ac_exeext conftest.$ac_ext 13171LIBS=$ac_check_lib_save_LIBS 13172fi 13173echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 13174echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 13175if test $ac_cv_lib_svld_dlopen = yes; then 13176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13177else 13178 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 13179echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 13180if test "${ac_cv_lib_dld_dld_link+set}" = set; then 13181 echo $ECHO_N "(cached) $ECHO_C" >&6 13182else 13183 ac_check_lib_save_LIBS=$LIBS 13184LIBS="-ldld $LIBS" 13185cat >conftest.$ac_ext <<_ACEOF 13186/* confdefs.h. */ 13187_ACEOF 13188cat confdefs.h >>conftest.$ac_ext 13189cat >>conftest.$ac_ext <<_ACEOF 13190/* end confdefs.h. */ 13191 13192/* Override any gcc2 internal prototype to avoid an error. */ 13193#ifdef __cplusplus 13194extern "C" 13195#endif 13196/* We use char because int might match the return type of a gcc2 13197 builtin and then its argument prototype would still apply. */ 13198char dld_link (); 13199int 13200main () 13201{ 13202dld_link (); 13203 ; 13204 return 0; 13205} 13206_ACEOF 13207rm -f conftest.$ac_objext conftest$ac_exeext 13208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13209 (eval $ac_link) 2>conftest.er1 13210 ac_status=$? 13211 grep -v '^ *+' conftest.er1 >conftest.err 13212 rm -f conftest.er1 13213 cat conftest.err >&5 13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13215 (exit $ac_status); } && 13216 { ac_try='test -z "$ac_cxx_werror_flag" 13217 || test ! -s conftest.err' 13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13219 (eval $ac_try) 2>&5 13220 ac_status=$? 13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13222 (exit $ac_status); }; } && 13223 { ac_try='test -s conftest$ac_exeext' 13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13225 (eval $ac_try) 2>&5 13226 ac_status=$? 13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13228 (exit $ac_status); }; }; then 13229 ac_cv_lib_dld_dld_link=yes 13230else 13231 echo "$as_me: failed program was:" >&5 13232sed 's/^/| /' conftest.$ac_ext >&5 13233 13234ac_cv_lib_dld_dld_link=no 13235fi 13236rm -f conftest.err conftest.$ac_objext \ 13237 conftest$ac_exeext conftest.$ac_ext 13238LIBS=$ac_check_lib_save_LIBS 13239fi 13240echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 13241echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 13242if test $ac_cv_lib_dld_dld_link = yes; then 13243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 13244fi 13245 13246 13247fi 13248 13249 13250fi 13251 13252 13253fi 13254 13255 13256fi 13257 13258 13259fi 13260 13261 ;; 13262 esac 13263 13264 if test "x$lt_cv_dlopen" != xno; then 13265 enable_dlopen=yes 13266 else 13267 enable_dlopen=no 13268 fi 13269 13270 case $lt_cv_dlopen in 13271 dlopen) 13272 save_CPPFLAGS="$CPPFLAGS" 13273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13274 13275 save_LDFLAGS="$LDFLAGS" 13276 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13277 13278 save_LIBS="$LIBS" 13279 LIBS="$lt_cv_dlopen_libs $LIBS" 13280 13281 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 13282echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 13283if test "${lt_cv_dlopen_self+set}" = set; then 13284 echo $ECHO_N "(cached) $ECHO_C" >&6 13285else 13286 if test "$cross_compiling" = yes; then : 13287 lt_cv_dlopen_self=cross 13288else 13289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13290 lt_status=$lt_dlunknown 13291 cat > conftest.$ac_ext <<EOF 13292#line 13292 "configure" 13293#include "confdefs.h" 13294 13295#if HAVE_DLFCN_H 13296#include <dlfcn.h> 13297#endif 13298 13299#include <stdio.h> 13300 13301#ifdef RTLD_GLOBAL 13302# define LT_DLGLOBAL RTLD_GLOBAL 13303#else 13304# ifdef DL_GLOBAL 13305# define LT_DLGLOBAL DL_GLOBAL 13306# else 13307# define LT_DLGLOBAL 0 13308# endif 13309#endif 13310 13311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13312 find out it does not work in some platform. */ 13313#ifndef LT_DLLAZY_OR_NOW 13314# ifdef RTLD_LAZY 13315# define LT_DLLAZY_OR_NOW RTLD_LAZY 13316# else 13317# ifdef DL_LAZY 13318# define LT_DLLAZY_OR_NOW DL_LAZY 13319# else 13320# ifdef RTLD_NOW 13321# define LT_DLLAZY_OR_NOW RTLD_NOW 13322# else 13323# ifdef DL_NOW 13324# define LT_DLLAZY_OR_NOW DL_NOW 13325# else 13326# define LT_DLLAZY_OR_NOW 0 13327# endif 13328# endif 13329# endif 13330# endif 13331#endif 13332 13333#ifdef __cplusplus 13334extern "C" void exit (int); 13335#endif 13336 13337void fnord() { int i=42;} 13338int main () 13339{ 13340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13341 int status = $lt_dlunknown; 13342 13343 if (self) 13344 { 13345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13347 /* dlclose (self); */ 13348 } 13349 13350 exit (status); 13351} 13352EOF 13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13354 (eval $ac_link) 2>&5 13355 ac_status=$? 13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13357 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13358 (./conftest; exit; ) >&5 2>/dev/null 13359 lt_status=$? 13360 case x$lt_status in 13361 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13362 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13363 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13364 esac 13365 else : 13366 # compilation failed 13367 lt_cv_dlopen_self=no 13368 fi 13369fi 13370rm -fr conftest* 13371 13372 13373fi 13374echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13375echo "${ECHO_T}$lt_cv_dlopen_self" >&6 13376 13377 if test "x$lt_cv_dlopen_self" = xyes; then 13378 LDFLAGS="$LDFLAGS $link_static_flag" 13379 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13380echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 13381if test "${lt_cv_dlopen_self_static+set}" = set; then 13382 echo $ECHO_N "(cached) $ECHO_C" >&6 13383else 13384 if test "$cross_compiling" = yes; then : 13385 lt_cv_dlopen_self_static=cross 13386else 13387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13388 lt_status=$lt_dlunknown 13389 cat > conftest.$ac_ext <<EOF 13390#line 13390 "configure" 13391#include "confdefs.h" 13392 13393#if HAVE_DLFCN_H 13394#include <dlfcn.h> 13395#endif 13396 13397#include <stdio.h> 13398 13399#ifdef RTLD_GLOBAL 13400# define LT_DLGLOBAL RTLD_GLOBAL 13401#else 13402# ifdef DL_GLOBAL 13403# define LT_DLGLOBAL DL_GLOBAL 13404# else 13405# define LT_DLGLOBAL 0 13406# endif 13407#endif 13408 13409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13410 find out it does not work in some platform. */ 13411#ifndef LT_DLLAZY_OR_NOW 13412# ifdef RTLD_LAZY 13413# define LT_DLLAZY_OR_NOW RTLD_LAZY 13414# else 13415# ifdef DL_LAZY 13416# define LT_DLLAZY_OR_NOW DL_LAZY 13417# else 13418# ifdef RTLD_NOW 13419# define LT_DLLAZY_OR_NOW RTLD_NOW 13420# else 13421# ifdef DL_NOW 13422# define LT_DLLAZY_OR_NOW DL_NOW 13423# else 13424# define LT_DLLAZY_OR_NOW 0 13425# endif 13426# endif 13427# endif 13428# endif 13429#endif 13430 13431#ifdef __cplusplus 13432extern "C" void exit (int); 13433#endif 13434 13435void fnord() { int i=42;} 13436int main () 13437{ 13438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13439 int status = $lt_dlunknown; 13440 13441 if (self) 13442 { 13443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13444 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13445 /* dlclose (self); */ 13446 } 13447 13448 exit (status); 13449} 13450EOF 13451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13452 (eval $ac_link) 2>&5 13453 ac_status=$? 13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13455 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13456 (./conftest; exit; ) >&5 2>/dev/null 13457 lt_status=$? 13458 case x$lt_status in 13459 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13460 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13461 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13462 esac 13463 else : 13464 # compilation failed 13465 lt_cv_dlopen_self_static=no 13466 fi 13467fi 13468rm -fr conftest* 13469 13470 13471fi 13472echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13473echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13474 fi 13475 13476 CPPFLAGS="$save_CPPFLAGS" 13477 LDFLAGS="$save_LDFLAGS" 13478 LIBS="$save_LIBS" 13479 ;; 13480 esac 13481 13482 case $lt_cv_dlopen_self in 13483 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13484 *) enable_dlopen_self=unknown ;; 13485 esac 13486 13487 case $lt_cv_dlopen_self_static in 13488 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13489 *) enable_dlopen_self_static=unknown ;; 13490 esac 13491fi 13492 13493 13494# The else clause should only fire when bootstrapping the 13495# libtool distribution, otherwise you forgot to ship ltmain.sh 13496# with your package, and you will get complaints that there are 13497# no rules to generate ltmain.sh. 13498if test -f "$ltmain"; then 13499 # See if we are running on zsh, and set the options which allow our commands through 13500 # without removal of \ escapes. 13501 if test -n "${ZSH_VERSION+set}" ; then 13502 setopt NO_GLOB_SUBST 13503 fi 13504 # Now quote all the things that may contain metacharacters while being 13505 # careful not to overquote the AC_SUBSTed values. We take copies of the 13506 # variables and quote the copies for generation of the libtool script. 13507 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13508 SED SHELL STRIP \ 13509 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13510 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13511 deplibs_check_method reload_flag reload_cmds need_locks \ 13512 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13513 lt_cv_sys_global_symbol_to_c_name_address \ 13514 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13515 old_postinstall_cmds old_postuninstall_cmds \ 13516 compiler_CXX \ 13517 CC_CXX \ 13518 LD_CXX \ 13519 lt_prog_compiler_wl_CXX \ 13520 lt_prog_compiler_pic_CXX \ 13521 lt_prog_compiler_static_CXX \ 13522 lt_prog_compiler_no_builtin_flag_CXX \ 13523 export_dynamic_flag_spec_CXX \ 13524 thread_safe_flag_spec_CXX \ 13525 whole_archive_flag_spec_CXX \ 13526 enable_shared_with_static_runtimes_CXX \ 13527 old_archive_cmds_CXX \ 13528 old_archive_from_new_cmds_CXX \ 13529 predep_objects_CXX \ 13530 postdep_objects_CXX \ 13531 predeps_CXX \ 13532 postdeps_CXX \ 13533 compiler_lib_search_path_CXX \ 13534 archive_cmds_CXX \ 13535 archive_expsym_cmds_CXX \ 13536 postinstall_cmds_CXX \ 13537 postuninstall_cmds_CXX \ 13538 old_archive_from_expsyms_cmds_CXX \ 13539 allow_undefined_flag_CXX \ 13540 no_undefined_flag_CXX \ 13541 export_symbols_cmds_CXX \ 13542 hardcode_libdir_flag_spec_CXX \ 13543 hardcode_libdir_flag_spec_ld_CXX \ 13544 hardcode_libdir_separator_CXX \ 13545 hardcode_automatic_CXX \ 13546 module_cmds_CXX \ 13547 module_expsym_cmds_CXX \ 13548 lt_cv_prog_compiler_c_o_CXX \ 13549 exclude_expsyms_CXX \ 13550 include_expsyms_CXX; do 13551 13552 case $var in 13553 old_archive_cmds_CXX | \ 13554 old_archive_from_new_cmds_CXX | \ 13555 archive_cmds_CXX | \ 13556 archive_expsym_cmds_CXX | \ 13557 module_cmds_CXX | \ 13558 module_expsym_cmds_CXX | \ 13559 old_archive_from_expsyms_cmds_CXX | \ 13560 export_symbols_cmds_CXX | \ 13561 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13562 postinstall_cmds | postuninstall_cmds | \ 13563 old_postinstall_cmds | old_postuninstall_cmds | \ 13564 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13565 # Double-quote double-evaled strings. 13566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13567 ;; 13568 *) 13569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13570 ;; 13571 esac 13572 done 13573 13574 case $lt_echo in 13575 *'\$0 --fallback-echo"') 13576 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13577 ;; 13578 esac 13579 13580cfgfile="$ofile" 13581 13582 cat <<__EOF__ >> "$cfgfile" 13583# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13584 13585# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13586 13587# Shell to use when invoking shell scripts. 13588SHELL=$lt_SHELL 13589 13590# Whether or not to build shared libraries. 13591build_libtool_libs=$enable_shared 13592 13593# Whether or not to build static libraries. 13594build_old_libs=$enable_static 13595 13596# Whether or not to add -lc for building shared libraries. 13597build_libtool_need_lc=$archive_cmds_need_lc_CXX 13598 13599# Whether or not to disallow shared libs when runtime libs are static 13600allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13601 13602# Whether or not to optimize for fast installation. 13603fast_install=$enable_fast_install 13604 13605# The host system. 13606host_alias=$host_alias 13607host=$host 13608host_os=$host_os 13609 13610# The build system. 13611build_alias=$build_alias 13612build=$build 13613build_os=$build_os 13614 13615# An echo program that does not interpret backslashes. 13616echo=$lt_echo 13617 13618# The archiver. 13619AR=$lt_AR 13620AR_FLAGS=$lt_AR_FLAGS 13621 13622# A C compiler. 13623LTCC=$lt_LTCC 13624 13625# A language-specific compiler. 13626CC=$lt_compiler_CXX 13627 13628# Is the compiler the GNU C compiler? 13629with_gcc=$GCC_CXX 13630 13631# An ERE matcher. 13632EGREP=$lt_EGREP 13633 13634# The linker used to build libraries. 13635LD=$lt_LD_CXX 13636 13637# Whether we need hard or soft links. 13638LN_S=$lt_LN_S 13639 13640# A BSD-compatible nm program. 13641NM=$lt_NM 13642 13643# A symbol stripping program 13644STRIP=$lt_STRIP 13645 13646# Used to examine libraries when file_magic_cmd begins "file" 13647MAGIC_CMD=$MAGIC_CMD 13648 13649# Used on cygwin: DLL creation program. 13650DLLTOOL="$DLLTOOL" 13651 13652# Used on cygwin: object dumper. 13653OBJDUMP="$OBJDUMP" 13654 13655# Used on cygwin: assembler. 13656AS="$AS" 13657 13658# The name of the directory that contains temporary libtool files. 13659objdir=$objdir 13660 13661# How to create reloadable object files. 13662reload_flag=$lt_reload_flag 13663reload_cmds=$lt_reload_cmds 13664 13665# How to pass a linker flag through the compiler. 13666wl=$lt_lt_prog_compiler_wl_CXX 13667 13668# Object file suffix (normally "o"). 13669objext="$ac_objext" 13670 13671# Old archive suffix (normally "a"). 13672libext="$libext" 13673 13674# Shared library suffix (normally ".so"). 13675shrext_cmds='$shrext_cmds' 13676 13677# Executable file suffix (normally ""). 13678exeext="$exeext" 13679 13680# Additional compiler flags for building library objects. 13681pic_flag=$lt_lt_prog_compiler_pic_CXX 13682pic_mode=$pic_mode 13683 13684# What is the maximum length of a command? 13685max_cmd_len=$lt_cv_sys_max_cmd_len 13686 13687# Does compiler simultaneously support -c and -o options? 13688compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13689 13690# Must we lock files when doing compilation? 13691need_locks=$lt_need_locks 13692 13693# Do we need the lib prefix for modules? 13694need_lib_prefix=$need_lib_prefix 13695 13696# Do we need a version for libraries? 13697need_version=$need_version 13698 13699# Whether dlopen is supported. 13700dlopen_support=$enable_dlopen 13701 13702# Whether dlopen of programs is supported. 13703dlopen_self=$enable_dlopen_self 13704 13705# Whether dlopen of statically linked programs is supported. 13706dlopen_self_static=$enable_dlopen_self_static 13707 13708# Compiler flag to prevent dynamic linking. 13709link_static_flag=$lt_lt_prog_compiler_static_CXX 13710 13711# Compiler flag to turn off builtin functions. 13712no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13713 13714# Compiler flag to allow reflexive dlopens. 13715export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13716 13717# Compiler flag to generate shared objects directly from archives. 13718whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13719 13720# Compiler flag to generate thread-safe objects. 13721thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13722 13723# Library versioning type. 13724version_type=$version_type 13725 13726# Format of library name prefix. 13727libname_spec=$lt_libname_spec 13728 13729# List of archive names. First name is the real one, the rest are links. 13730# The last name is the one that the linker finds with -lNAME. 13731library_names_spec=$lt_library_names_spec 13732 13733# The coded name of the library, if different from the real name. 13734soname_spec=$lt_soname_spec 13735 13736# Commands used to build and install an old-style archive. 13737RANLIB=$lt_RANLIB 13738old_archive_cmds=$lt_old_archive_cmds_CXX 13739old_postinstall_cmds=$lt_old_postinstall_cmds 13740old_postuninstall_cmds=$lt_old_postuninstall_cmds 13741 13742# Create an old-style archive from a shared archive. 13743old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13744 13745# Create a temporary old-style archive to link instead of a shared archive. 13746old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13747 13748# Commands used to build and install a shared archive. 13749archive_cmds=$lt_archive_cmds_CXX 13750archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13751postinstall_cmds=$lt_postinstall_cmds 13752postuninstall_cmds=$lt_postuninstall_cmds 13753 13754# Commands used to build a loadable module (assumed same as above if empty) 13755module_cmds=$lt_module_cmds_CXX 13756module_expsym_cmds=$lt_module_expsym_cmds_CXX 13757 13758# Commands to strip libraries. 13759old_striplib=$lt_old_striplib 13760striplib=$lt_striplib 13761 13762# Dependencies to place before the objects being linked to create a 13763# shared library. 13764predep_objects=$lt_predep_objects_CXX 13765 13766# Dependencies to place after the objects being linked to create a 13767# shared library. 13768postdep_objects=$lt_postdep_objects_CXX 13769 13770# Dependencies to place before the objects being linked to create a 13771# shared library. 13772predeps=$lt_predeps_CXX 13773 13774# Dependencies to place after the objects being linked to create a 13775# shared library. 13776postdeps=$lt_postdeps_CXX 13777 13778# The library search path used internally by the compiler when linking 13779# a shared library. 13780compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13781 13782# Method to check whether dependent libraries are shared objects. 13783deplibs_check_method=$lt_deplibs_check_method 13784 13785# Command to use when deplibs_check_method == file_magic. 13786file_magic_cmd=$lt_file_magic_cmd 13787 13788# Flag that allows shared libraries with undefined symbols to be built. 13789allow_undefined_flag=$lt_allow_undefined_flag_CXX 13790 13791# Flag that forces no undefined symbols. 13792no_undefined_flag=$lt_no_undefined_flag_CXX 13793 13794# Commands used to finish a libtool library installation in a directory. 13795finish_cmds=$lt_finish_cmds 13796 13797# Same as above, but a single script fragment to be evaled but not shown. 13798finish_eval=$lt_finish_eval 13799 13800# Take the output of nm and produce a listing of raw symbols and C names. 13801global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13802 13803# Transform the output of nm in a proper C declaration 13804global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13805 13806# Transform the output of nm in a C name address pair 13807global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13808 13809# This is the shared library runtime path variable. 13810runpath_var=$runpath_var 13811 13812# This is the shared library path variable. 13813shlibpath_var=$shlibpath_var 13814 13815# Is shlibpath searched before the hard-coded library search path? 13816shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13817 13818# How to hardcode a shared library path into an executable. 13819hardcode_action=$hardcode_action_CXX 13820 13821# Whether we should hardcode library paths into libraries. 13822hardcode_into_libs=$hardcode_into_libs 13823 13824# Flag to hardcode \$libdir into a binary during linking. 13825# This must work even if \$libdir does not exist. 13826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13827 13828# If ld is used when linking, flag to hardcode \$libdir into 13829# a binary during linking. This must work even if \$libdir does 13830# not exist. 13831hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13832 13833# Whether we need a single -rpath flag with a separated argument. 13834hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13835 13836# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13837# resulting binary. 13838hardcode_direct=$hardcode_direct_CXX 13839 13840# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13841# resulting binary. 13842hardcode_minus_L=$hardcode_minus_L_CXX 13843 13844# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13845# the resulting binary. 13846hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13847 13848# Set to yes if building a shared library automatically hardcodes DIR into the library 13849# and all subsequent libraries and executables linked against it. 13850hardcode_automatic=$hardcode_automatic_CXX 13851 13852# Variables whose values should be saved in libtool wrapper scripts and 13853# restored at relink time. 13854variables_saved_for_relink="$variables_saved_for_relink" 13855 13856# Whether libtool must link a program against all its dependency libraries. 13857link_all_deplibs=$link_all_deplibs_CXX 13858 13859# Compile-time system search path for libraries 13860sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13861 13862# Run-time system search path for libraries 13863sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13864 13865# Fix the shell variable \$srcfile for the compiler. 13866fix_srcfile_path="$fix_srcfile_path_CXX" 13867 13868# Set to yes if exported symbols are required. 13869always_export_symbols=$always_export_symbols_CXX 13870 13871# The commands to list exported symbols. 13872export_symbols_cmds=$lt_export_symbols_cmds_CXX 13873 13874# The commands to extract the exported symbol list from a shared archive. 13875extract_expsyms_cmds=$lt_extract_expsyms_cmds 13876 13877# Symbols that should not be listed in the preloaded symbols. 13878exclude_expsyms=$lt_exclude_expsyms_CXX 13879 13880# Symbols that must always be exported. 13881include_expsyms=$lt_include_expsyms_CXX 13882 13883# ### END LIBTOOL TAG CONFIG: $tagname 13884 13885__EOF__ 13886 13887 13888else 13889 # If there is no Makefile yet, we rely on a make rule to execute 13890 # `config.status --recheck' to rerun these tests and create the 13891 # libtool script then. 13892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13893 if test -f "$ltmain_in"; then 13894 test -f Makefile && make "$ltmain" 13895 fi 13896fi 13897 13898 13899ac_ext=c 13900ac_cpp='$CPP $CPPFLAGS' 13901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13903ac_compiler_gnu=$ac_cv_c_compiler_gnu 13904 13905CC=$lt_save_CC 13906LDCXX=$LD 13907LD=$lt_save_LD 13908GCC=$lt_save_GCC 13909with_gnu_ldcxx=$with_gnu_ld 13910with_gnu_ld=$lt_save_with_gnu_ld 13911lt_cv_path_LDCXX=$lt_cv_path_LD 13912lt_cv_path_LD=$lt_save_path_LD 13913lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13914lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13915 13916 else 13917 tagname="" 13918 fi 13919 ;; 13920 13921 F77) 13922 if test -n "$F77" && test "X$F77" != "Xno"; then 13923 13924ac_ext=f 13925ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13926ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13927ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13928 13929 13930archive_cmds_need_lc_F77=no 13931allow_undefined_flag_F77= 13932always_export_symbols_F77=no 13933archive_expsym_cmds_F77= 13934export_dynamic_flag_spec_F77= 13935hardcode_direct_F77=no 13936hardcode_libdir_flag_spec_F77= 13937hardcode_libdir_flag_spec_ld_F77= 13938hardcode_libdir_separator_F77= 13939hardcode_minus_L_F77=no 13940hardcode_automatic_F77=no 13941module_cmds_F77= 13942module_expsym_cmds_F77= 13943link_all_deplibs_F77=unknown 13944old_archive_cmds_F77=$old_archive_cmds 13945no_undefined_flag_F77= 13946whole_archive_flag_spec_F77= 13947enable_shared_with_static_runtimes_F77=no 13948 13949# Source file extension for f77 test sources. 13950ac_ext=f 13951 13952# Object file extension for compiled f77 test sources. 13953objext=o 13954objext_F77=$objext 13955 13956# Code to be used in simple compile tests 13957lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13958 13959# Code to be used in simple link tests 13960lt_simple_link_test_code=" program t\n end\n" 13961 13962# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13963 13964# If no C compiler was specified, use CC. 13965LTCC=${LTCC-"$CC"} 13966 13967# Allow CC to be a program name with arguments. 13968compiler=$CC 13969 13970 13971# save warnings/boilerplate of simple test code 13972ac_outfile=conftest.$ac_objext 13973printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13974eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13975_lt_compiler_boilerplate=`cat conftest.err` 13976$rm conftest* 13977 13978ac_outfile=conftest.$ac_objext 13979printf "$lt_simple_link_test_code" >conftest.$ac_ext 13980eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13981_lt_linker_boilerplate=`cat conftest.err` 13982$rm conftest* 13983 13984 13985# Allow CC to be a program name with arguments. 13986lt_save_CC="$CC" 13987CC=${F77-"f77"} 13988compiler=$CC 13989compiler_F77=$CC 13990for cc_temp in $compiler""; do 13991 case $cc_temp in 13992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13994 \-*) ;; 13995 *) break;; 13996 esac 13997done 13998cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13999 14000 14001echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14002echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14003echo "$as_me:$LINENO: result: $can_build_shared" >&5 14004echo "${ECHO_T}$can_build_shared" >&6 14005 14006echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14007echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14008test "$can_build_shared" = "no" && enable_shared=no 14009 14010# On AIX, shared libraries and static libraries use the same namespace, and 14011# are all built from PIC. 14012case $host_os in 14013aix3*) 14014 test "$enable_shared" = yes && enable_static=no 14015 if test -n "$RANLIB"; then 14016 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14017 postinstall_cmds='$RANLIB $lib' 14018 fi 14019 ;; 14020aix4* | aix5*) 14021 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14022 test "$enable_shared" = yes && enable_static=no 14023 fi 14024 ;; 14025esac 14026echo "$as_me:$LINENO: result: $enable_shared" >&5 14027echo "${ECHO_T}$enable_shared" >&6 14028 14029echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14030echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14031# Make sure either enable_shared or enable_static is yes. 14032test "$enable_shared" = yes || enable_static=yes 14033echo "$as_me:$LINENO: result: $enable_static" >&5 14034echo "${ECHO_T}$enable_static" >&6 14035 14036test "$ld_shlibs_F77" = no && can_build_shared=no 14037 14038GCC_F77="$G77" 14039LD_F77="$LD" 14040 14041lt_prog_compiler_wl_F77= 14042lt_prog_compiler_pic_F77= 14043lt_prog_compiler_static_F77= 14044 14045echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14046echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14047 14048 if test "$GCC" = yes; then 14049 lt_prog_compiler_wl_F77='-Wl,' 14050 lt_prog_compiler_static_F77='-static' 14051 14052 case $host_os in 14053 aix*) 14054 # All AIX code is PIC. 14055 if test "$host_cpu" = ia64; then 14056 # AIX 5 now supports IA64 processor 14057 lt_prog_compiler_static_F77='-Bstatic' 14058 fi 14059 ;; 14060 14061 amigaos*) 14062 # FIXME: we need at least 68020 code to build shared libraries, but 14063 # adding the `-m68020' flag to GCC prevents building anything better, 14064 # like `-m68040'. 14065 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14066 ;; 14067 14068 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 14069 | osf5*) 14070 # PIC is the default for these OSes. 14071 ;; 14072 14073 mingw* | pw32* | os2*) 14074 # This hack is so that the source file can tell whether it is being 14075 # built for inclusion in a dll (and should export symbols for example). 14076 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14077 ;; 14078 14079 darwin* | rhapsody*) 14080 # PIC is the default on this platform 14081 # Common symbols not allowed in MH_DYLIB files 14082 lt_prog_compiler_pic_F77='-fno-common' 14083 ;; 14084 14085 msdosdjgpp*) 14086 # Just because we use GCC doesn't mean we suddenly get shared libraries 14087 # on systems that don't support them. 14088 lt_prog_compiler_can_build_shared_F77=no 14089 enable_shared=no 14090 ;; 14091 14092 sysv4*MP*) 14093 if test -d /usr/nec; then 14094 lt_prog_compiler_pic_F77=-Kconform_pic 14095 fi 14096 ;; 14097 14098 hpux*) 14099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14100 # not for PA HP-UX. 14101 case $host_cpu in 14102 hppa*64*|ia64*) 14103 # +Z the default 14104 ;; 14105 *) 14106 lt_prog_compiler_pic_F77='-fPIC' 14107 ;; 14108 esac 14109 ;; 14110 14111 *) 14112 lt_prog_compiler_pic_F77='-fPIC' 14113 ;; 14114 esac 14115 else 14116 # PORTME Check for flag to pass linker flags through the system compiler. 14117 case $host_os in 14118 aix*) 14119 lt_prog_compiler_wl_F77='-Wl,' 14120 if test "$host_cpu" = ia64; then 14121 # AIX 5 now supports IA64 processor 14122 lt_prog_compiler_static_F77='-Bstatic' 14123 else 14124 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14125 fi 14126 ;; 14127 darwin*) 14128 # PIC is the default on this platform 14129 # Common symbols not allowed in MH_DYLIB files 14130 case $cc_basename in 14131 xlc*) 14132 lt_prog_compiler_pic_F77='-qnocommon' 14133 lt_prog_compiler_wl_F77='-Wl,' 14134 ;; 14135 esac 14136 ;; 14137 14138 mingw* | pw32* | os2*) 14139 # This hack is so that the source file can tell whether it is being 14140 # built for inclusion in a dll (and should export symbols for example). 14141 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14142 ;; 14143 14144 hpux9* | hpux10* | hpux11*) 14145 lt_prog_compiler_wl_F77='-Wl,' 14146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14147 # not for PA HP-UX. 14148 case $host_cpu in 14149 hppa*64*|ia64*) 14150 # +Z the default 14151 ;; 14152 *) 14153 lt_prog_compiler_pic_F77='+Z' 14154 ;; 14155 esac 14156 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14157 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14158 ;; 14159 14160 irix5* | irix6* | nonstopux*) 14161 lt_prog_compiler_wl_F77='-Wl,' 14162 # PIC (with -KPIC) is the default. 14163 lt_prog_compiler_static_F77='-non_shared' 14164 ;; 14165 14166 newsos6) 14167 lt_prog_compiler_pic_F77='-KPIC' 14168 lt_prog_compiler_static_F77='-Bstatic' 14169 ;; 14170 14171 linux*) 14172 case $cc_basename in 14173 icc* | ecc*) 14174 lt_prog_compiler_wl_F77='-Wl,' 14175 lt_prog_compiler_pic_F77='-KPIC' 14176 lt_prog_compiler_static_F77='-static' 14177 ;; 14178 pgcc* | pgf77* | pgf90* | pgf95*) 14179 # Portland Group compilers (*not* the Pentium gcc compiler, 14180 # which looks to be a dead project) 14181 lt_prog_compiler_wl_F77='-Wl,' 14182 lt_prog_compiler_pic_F77='-fpic' 14183 lt_prog_compiler_static_F77='-Bstatic' 14184 ;; 14185 ccc*) 14186 lt_prog_compiler_wl_F77='-Wl,' 14187 # All Alpha code is PIC. 14188 lt_prog_compiler_static_F77='-non_shared' 14189 ;; 14190 esac 14191 ;; 14192 14193 osf3* | osf4* | osf5*) 14194 lt_prog_compiler_wl_F77='-Wl,' 14195 # All OSF/1 code is PIC. 14196 lt_prog_compiler_static_F77='-non_shared' 14197 ;; 14198 14199 sco3.2v5*) 14200 lt_prog_compiler_pic_F77='-Kpic' 14201 lt_prog_compiler_static_F77='-dn' 14202 ;; 14203 14204 solaris*) 14205 lt_prog_compiler_pic_F77='-KPIC' 14206 lt_prog_compiler_static_F77='-Bstatic' 14207 case $cc_basename in 14208 f77* | f90* | f95*) 14209 lt_prog_compiler_wl_F77='-Qoption ld ';; 14210 *) 14211 lt_prog_compiler_wl_F77='-Wl,';; 14212 esac 14213 ;; 14214 14215 sunos4*) 14216 lt_prog_compiler_wl_F77='-Qoption ld ' 14217 lt_prog_compiler_pic_F77='-PIC' 14218 lt_prog_compiler_static_F77='-Bstatic' 14219 ;; 14220 14221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14222 lt_prog_compiler_wl_F77='-Wl,' 14223 lt_prog_compiler_pic_F77='-KPIC' 14224 lt_prog_compiler_static_F77='-Bstatic' 14225 ;; 14226 14227 sysv4*MP*) 14228 if test -d /usr/nec ;then 14229 lt_prog_compiler_pic_F77='-Kconform_pic' 14230 lt_prog_compiler_static_F77='-Bstatic' 14231 fi 14232 ;; 14233 14234 unicos*) 14235 lt_prog_compiler_wl_F77='-Wl,' 14236 lt_prog_compiler_can_build_shared_F77=no 14237 ;; 14238 14239 uts4*) 14240 lt_prog_compiler_pic_F77='-pic' 14241 lt_prog_compiler_static_F77='-Bstatic' 14242 ;; 14243 14244 *) 14245 lt_prog_compiler_can_build_shared_F77=no 14246 ;; 14247 esac 14248 fi 14249 14250echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14251echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14252 14253# 14254# Check to make sure the PIC flag actually works. 14255# 14256if test -n "$lt_prog_compiler_pic_F77"; then 14257 14258echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14259echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14260if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14261 echo $ECHO_N "(cached) $ECHO_C" >&6 14262else 14263 lt_prog_compiler_pic_works_F77=no 14264 ac_outfile=conftest.$ac_objext 14265 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14266 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14267 # Insert the option either (1) after the last *FLAGS variable, or 14268 # (2) before a word containing "conftest.", or (3) at the end. 14269 # Note that $ac_compile itself does not contain backslashes and begins 14270 # with a dollar sign (not a hyphen), so the echo should work correctly. 14271 # The option is referenced via a variable to avoid confusing sed. 14272 lt_compile=`echo "$ac_compile" | $SED \ 14273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14275 -e 's:$: $lt_compiler_flag:'` 14276 (eval echo "\"\$as_me:14276: $lt_compile\"" >&5) 14277 (eval "$lt_compile" 2>conftest.err) 14278 ac_status=$? 14279 cat conftest.err >&5 14280 echo "$as_me:14280: \$? = $ac_status" >&5 14281 if (exit $ac_status) && test -s "$ac_outfile"; then 14282 # The compiler can only warn and ignore the option if not recognized 14283 # So say no if there are warnings other than the usual output. 14284 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 14285 $SED '/^$/d' conftest.err >conftest.er2 14286 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 14287 lt_prog_compiler_pic_works_F77=yes 14288 fi 14289 fi 14290 $rm conftest* 14291 14292fi 14293echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14294echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14295 14296if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14297 case $lt_prog_compiler_pic_F77 in 14298 "" | " "*) ;; 14299 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14300 esac 14301else 14302 lt_prog_compiler_pic_F77= 14303 lt_prog_compiler_can_build_shared_F77=no 14304fi 14305 14306fi 14307case $host_os in 14308 # For platforms which do not support PIC, -DPIC is meaningless: 14309 *djgpp*) 14310 lt_prog_compiler_pic_F77= 14311 ;; 14312 *) 14313 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14314 ;; 14315esac 14316 14317echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14318echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14319if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14320 echo $ECHO_N "(cached) $ECHO_C" >&6 14321else 14322 lt_cv_prog_compiler_c_o_F77=no 14323 $rm -r conftest 2>/dev/null 14324 mkdir conftest 14325 cd conftest 14326 mkdir out 14327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14328 14329 lt_compiler_flag="-o out/conftest2.$ac_objext" 14330 # Insert the option either (1) after the last *FLAGS variable, or 14331 # (2) before a word containing "conftest.", or (3) at the end. 14332 # Note that $ac_compile itself does not contain backslashes and begins 14333 # with a dollar sign (not a hyphen), so the echo should work correctly. 14334 lt_compile=`echo "$ac_compile" | $SED \ 14335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14337 -e 's:$: $lt_compiler_flag:'` 14338 (eval echo "\"\$as_me:14338: $lt_compile\"" >&5) 14339 (eval "$lt_compile" 2>out/conftest.err) 14340 ac_status=$? 14341 cat out/conftest.err >&5 14342 echo "$as_me:14342: \$? = $ac_status" >&5 14343 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14344 then 14345 # The compiler can only warn and ignore the option if not recognized 14346 # So say no if there are warnings 14347 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 14348 $SED '/^$/d' out/conftest.err >out/conftest.er2 14349 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14350 lt_cv_prog_compiler_c_o_F77=yes 14351 fi 14352 fi 14353 chmod u+w . 2>&5 14354 $rm conftest* 14355 # SGI C++ compiler will create directory out/ii_files/ for 14356 # template instantiation 14357 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14358 $rm out/* && rmdir out 14359 cd .. 14360 rmdir conftest 14361 $rm conftest* 14362 14363fi 14364echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14365echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14366 14367 14368hard_links="nottested" 14369if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14370 # do not overwrite the value of need_locks provided by the user 14371 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14372echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14373 hard_links=yes 14374 $rm conftest* 14375 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14376 touch conftest.a 14377 ln conftest.a conftest.b 2>&5 || hard_links=no 14378 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14379 echo "$as_me:$LINENO: result: $hard_links" >&5 14380echo "${ECHO_T}$hard_links" >&6 14381 if test "$hard_links" = no; then 14382 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14383echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14384 need_locks=warn 14385 fi 14386else 14387 need_locks=no 14388fi 14389 14390echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14391echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14392 14393 runpath_var= 14394 allow_undefined_flag_F77= 14395 enable_shared_with_static_runtimes_F77=no 14396 archive_cmds_F77= 14397 archive_expsym_cmds_F77= 14398 old_archive_From_new_cmds_F77= 14399 old_archive_from_expsyms_cmds_F77= 14400 export_dynamic_flag_spec_F77= 14401 whole_archive_flag_spec_F77= 14402 thread_safe_flag_spec_F77= 14403 hardcode_libdir_flag_spec_F77= 14404 hardcode_libdir_flag_spec_ld_F77= 14405 hardcode_libdir_separator_F77= 14406 hardcode_direct_F77=no 14407 hardcode_minus_L_F77=no 14408 hardcode_shlibpath_var_F77=unsupported 14409 link_all_deplibs_F77=unknown 14410 hardcode_automatic_F77=no 14411 module_cmds_F77= 14412 module_expsym_cmds_F77= 14413 always_export_symbols_F77=no 14414 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14415 # include_expsyms should be a list of space-separated symbols to be *always* 14416 # included in the symbol list 14417 include_expsyms_F77= 14418 # exclude_expsyms can be an extended regexp of symbols to exclude 14419 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14421 # as well as any symbol that contains `d'. 14422 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14424 # platforms (ab)use it in PIC code, but their linkers get confused if 14425 # the symbol is explicitly referenced. Since portable code cannot 14426 # rely on this symbol name, it's probably fine to never include it in 14427 # preloaded symbol tables. 14428 extract_expsyms_cmds= 14429 # Just being paranoid about ensuring that cc_basename is set. 14430 for cc_temp in $compiler""; do 14431 case $cc_temp in 14432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14434 \-*) ;; 14435 *) break;; 14436 esac 14437done 14438cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14439 14440 case $host_os in 14441 cygwin* | mingw* | pw32*) 14442 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14443 # When not using gcc, we currently assume that we are using 14444 # Microsoft Visual C++. 14445 if test "$GCC" != yes; then 14446 with_gnu_ld=no 14447 fi 14448 ;; 14449 openbsd*) 14450 with_gnu_ld=no 14451 ;; 14452 esac 14453 14454 ld_shlibs_F77=yes 14455 if test "$with_gnu_ld" = yes; then 14456 # If archive_cmds runs LD, not CC, wlarc should be empty 14457 wlarc='${wl}' 14458 14459 # Set some defaults for GNU ld with shared library support. These 14460 # are reset later if shared libraries are not supported. Putting them 14461 # here allows them to be overridden if necessary. 14462 runpath_var=LD_RUN_PATH 14463 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14464 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14465 # ancient GNU ld didn't support --whole-archive et. al. 14466 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14467 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14468 else 14469 whole_archive_flag_spec_F77= 14470 fi 14471 supports_anon_versioning=no 14472 case `$LD -v 2>/dev/null` in 14473 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14474 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14475 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14476 *\ 2.11.*) ;; # other 2.11 versions 14477 *) supports_anon_versioning=yes ;; 14478 esac 14479 14480 # See if GNU ld supports shared libraries. 14481 case $host_os in 14482 aix3* | aix4* | aix5*) 14483 # On AIX/PPC, the GNU linker is very broken 14484 if test "$host_cpu" != ia64; then 14485 ld_shlibs_F77=no 14486 cat <<EOF 1>&2 14487 14488*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14489*** to be unable to reliably create shared libraries on AIX. 14490*** Therefore, libtool is disabling shared libraries support. If you 14491*** really care for shared libraries, you may want to modify your PATH 14492*** so that a non-GNU linker is found, and then restart. 14493 14494EOF 14495 fi 14496 ;; 14497 14498 amigaos*) 14499 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)' 14500 hardcode_libdir_flag_spec_F77='-L$libdir' 14501 hardcode_minus_L_F77=yes 14502 14503 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14504 # that the semantics of dynamic libraries on AmigaOS, at least up 14505 # to version 4, is to share data among multiple programs linked 14506 # with the same dynamic library. Since this doesn't match the 14507 # behavior of shared libraries on other platforms, we can't use 14508 # them. 14509 ld_shlibs_F77=no 14510 ;; 14511 14512 beos*) 14513 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14514 allow_undefined_flag_F77=unsupported 14515 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14516 # support --undefined. This deserves some investigation. FIXME 14517 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14518 else 14519 ld_shlibs_F77=no 14520 fi 14521 ;; 14522 14523 cygwin* | mingw* | pw32*) 14524 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14525 # as there is no search path for DLLs. 14526 hardcode_libdir_flag_spec_F77='-L$libdir' 14527 allow_undefined_flag_F77=unsupported 14528 always_export_symbols_F77=no 14529 enable_shared_with_static_runtimes_F77=yes 14530 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14531 14532 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14533 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14534 # If the export-symbols file already is a .def file (1st line 14535 # is EXPORTS), use it as is; otherwise, prepend... 14536 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14537 cp $export_symbols $output_objdir/$soname.def; 14538 else 14539 echo EXPORTS > $output_objdir/$soname.def; 14540 cat $export_symbols >> $output_objdir/$soname.def; 14541 fi~ 14542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14543 else 14544 ld_shlibs_F77=no 14545 fi 14546 ;; 14547 14548 haiku*) 14549 allow_undefined_flag_F77=unsupported 14550 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14551 ;; 14552 14553 linux*) 14554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14555 tmp_addflag= 14556 case $cc_basename,$host_cpu in 14557 pgcc*) # Portland Group C compiler 14558 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' 14559 tmp_addflag=' $pic_flag' 14560 ;; 14561 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14562 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' 14563 tmp_addflag=' $pic_flag -Mnomain' ;; 14564 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14565 tmp_addflag=' -i_dynamic' ;; 14566 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14567 tmp_addflag=' -i_dynamic -nofor_main' ;; 14568 ifc* | ifort*) # Intel Fortran compiler 14569 tmp_addflag=' -nofor_main' ;; 14570 esac 14571 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14572 14573 if test $supports_anon_versioning = yes; then 14574 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14575 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14576 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14577 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14578 fi 14579 else 14580 ld_shlibs_F77=no 14581 fi 14582 ;; 14583 14584 netbsd*) 14585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14586 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14587 wlarc= 14588 else 14589 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14590 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14591 fi 14592 ;; 14593 14594 solaris* | sysv5*) 14595 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14596 ld_shlibs_F77=no 14597 cat <<EOF 1>&2 14598 14599*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14600*** create shared libraries on Solaris systems. Therefore, libtool 14601*** is disabling shared libraries support. We urge you to upgrade GNU 14602*** binutils to release 2.9.1 or newer. Another option is to modify 14603*** your PATH or compiler configuration so that the native linker is 14604*** used, and then restart. 14605 14606EOF 14607 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14608 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14609 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14610 else 14611 ld_shlibs_F77=no 14612 fi 14613 ;; 14614 14615 sunos4*) 14616 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14617 wlarc= 14618 hardcode_direct_F77=yes 14619 hardcode_shlibpath_var_F77=no 14620 ;; 14621 14622 *) 14623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14624 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14625 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14626 else 14627 ld_shlibs_F77=no 14628 fi 14629 ;; 14630 esac 14631 14632 if test "$ld_shlibs_F77" = no; then 14633 runpath_var= 14634 hardcode_libdir_flag_spec_F77= 14635 export_dynamic_flag_spec_F77= 14636 whole_archive_flag_spec_F77= 14637 fi 14638 else 14639 # PORTME fill in a description of your system's linker (not GNU ld) 14640 case $host_os in 14641 aix3*) 14642 allow_undefined_flag_F77=unsupported 14643 always_export_symbols_F77=yes 14644 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' 14645 # Note: this linker hardcodes the directories in LIBPATH if there 14646 # are no directories specified by -L. 14647 hardcode_minus_L_F77=yes 14648 if test "$GCC" = yes && test -z "$link_static_flag"; then 14649 # Neither direct hardcoding nor static linking is supported with a 14650 # broken collect2. 14651 hardcode_direct_F77=unsupported 14652 fi 14653 ;; 14654 14655 aix4* | aix5*) 14656 if test "$host_cpu" = ia64; then 14657 # On IA64, the linker does run time linking by default, so we don't 14658 # have to do anything special. 14659 aix_use_runtimelinking=no 14660 exp_sym_flag='-Bexport' 14661 no_entry_flag="" 14662 else 14663 # If we're using GNU nm, then we don't want the "-C" option. 14664 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14665 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14666 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' 14667 else 14668 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' 14669 fi 14670 aix_use_runtimelinking=no 14671 14672 # Test if we are trying to use run time linking or normal 14673 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14674 # need to do runtime linking. 14675 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14676 for ld_flag in $LDFLAGS; do 14677 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14678 aix_use_runtimelinking=yes 14679 break 14680 fi 14681 done 14682 esac 14683 14684 exp_sym_flag='-bexport' 14685 no_entry_flag='-bnoentry' 14686 fi 14687 14688 # When large executables or shared objects are built, AIX ld can 14689 # have problems creating the table of contents. If linking a library 14690 # or program results in "error TOC overflow" add -mminimal-toc to 14691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14693 14694 archive_cmds_F77='' 14695 hardcode_direct_F77=yes 14696 hardcode_libdir_separator_F77=':' 14697 link_all_deplibs_F77=yes 14698 14699 if test "$GCC" = yes; then 14700 case $host_os in aix4.[012]|aix4.[012].*) 14701 # We only want to do this on AIX 4.2 and lower, the check 14702 # below for broken collect2 doesn't work under 4.3+ 14703 collect2name=`${CC} -print-prog-name=collect2` 14704 if test -f "$collect2name" && \ 14705 strings "$collect2name" | grep resolve_lib_name >/dev/null 14706 then 14707 # We have reworked collect2 14708 hardcode_direct_F77=yes 14709 else 14710 # We have old collect2 14711 hardcode_direct_F77=unsupported 14712 # It fails to find uninstalled libraries when the uninstalled 14713 # path is not listed in the libpath. Setting hardcode_minus_L 14714 # to unsupported forces relinking 14715 hardcode_minus_L_F77=yes 14716 hardcode_libdir_flag_spec_F77='-L$libdir' 14717 hardcode_libdir_separator_F77= 14718 fi 14719 esac 14720 shared_flag='-shared' 14721 if test "$aix_use_runtimelinking" = yes; then 14722 shared_flag="$shared_flag "'${wl}-G' 14723 fi 14724 else 14725 # not using gcc 14726 if test "$host_cpu" = ia64; then 14727 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14728 # chokes on -Wl,-G. The following line is correct: 14729 shared_flag='-G' 14730 else 14731 if test "$aix_use_runtimelinking" = yes; then 14732 shared_flag='${wl}-G' 14733 else 14734 shared_flag='${wl}-bM:SRE' 14735 fi 14736 fi 14737 fi 14738 14739 # It seems that -bexpall does not export symbols beginning with 14740 # underscore (_), so it is better to generate a list of symbols to export. 14741 always_export_symbols_F77=yes 14742 if test "$aix_use_runtimelinking" = yes; then 14743 # Warning - without using the other runtime loading flags (-brtl), 14744 # -berok will link without error, but may produce a broken library. 14745 allow_undefined_flag_F77='-berok' 14746 # Determine the default libpath from the value encoded in an empty executable. 14747 cat >conftest.$ac_ext <<_ACEOF 14748 program main 14749 14750 end 14751_ACEOF 14752rm -f conftest.$ac_objext conftest$ac_exeext 14753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14754 (eval $ac_link) 2>conftest.er1 14755 ac_status=$? 14756 grep -v '^ *+' conftest.er1 >conftest.err 14757 rm -f conftest.er1 14758 cat conftest.err >&5 14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14760 (exit $ac_status); } && 14761 { ac_try='test -z "$ac_f77_werror_flag" 14762 || test ! -s conftest.err' 14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14764 (eval $ac_try) 2>&5 14765 ac_status=$? 14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14767 (exit $ac_status); }; } && 14768 { ac_try='test -s conftest$ac_exeext' 14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14770 (eval $ac_try) 2>&5 14771 ac_status=$? 14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14773 (exit $ac_status); }; }; then 14774 14775aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14776}'` 14777# Check for a 64-bit object if we didn't find anything. 14778if 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; } 14779}'`; fi 14780else 14781 echo "$as_me: failed program was:" >&5 14782sed 's/^/| /' conftest.$ac_ext >&5 14783 14784fi 14785rm -f conftest.err conftest.$ac_objext \ 14786 conftest$ac_exeext conftest.$ac_ext 14787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14788 14789 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14790 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14791 else 14792 if test "$host_cpu" = ia64; then 14793 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14794 allow_undefined_flag_F77="-z nodefs" 14795 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14796 else 14797 # Determine the default libpath from the value encoded in an empty executable. 14798 cat >conftest.$ac_ext <<_ACEOF 14799 program main 14800 14801 end 14802_ACEOF 14803rm -f conftest.$ac_objext conftest$ac_exeext 14804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14805 (eval $ac_link) 2>conftest.er1 14806 ac_status=$? 14807 grep -v '^ *+' conftest.er1 >conftest.err 14808 rm -f conftest.er1 14809 cat conftest.err >&5 14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14811 (exit $ac_status); } && 14812 { ac_try='test -z "$ac_f77_werror_flag" 14813 || test ! -s conftest.err' 14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14815 (eval $ac_try) 2>&5 14816 ac_status=$? 14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14818 (exit $ac_status); }; } && 14819 { ac_try='test -s conftest$ac_exeext' 14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14821 (eval $ac_try) 2>&5 14822 ac_status=$? 14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14824 (exit $ac_status); }; }; then 14825 14826aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14827}'` 14828# Check for a 64-bit object if we didn't find anything. 14829if 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; } 14830}'`; fi 14831else 14832 echo "$as_me: failed program was:" >&5 14833sed 's/^/| /' conftest.$ac_ext >&5 14834 14835fi 14836rm -f conftest.err conftest.$ac_objext \ 14837 conftest$ac_exeext conftest.$ac_ext 14838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14839 14840 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14841 # Warning - without using the other run time loading flags, 14842 # -berok will link without error, but may produce a broken library. 14843 no_undefined_flag_F77=' ${wl}-bernotok' 14844 allow_undefined_flag_F77=' ${wl}-berok' 14845 # -bexpall does not export symbols beginning with underscore (_) 14846 always_export_symbols_F77=yes 14847 # Exported symbols can be pulled into shared objects from archives 14848 whole_archive_flag_spec_F77=' ' 14849 archive_cmds_need_lc_F77=yes 14850 # This is similar to how AIX traditionally builds its shared libraries. 14851 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14852 fi 14853 fi 14854 ;; 14855 14856 amigaos*) 14857 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)' 14858 hardcode_libdir_flag_spec_F77='-L$libdir' 14859 hardcode_minus_L_F77=yes 14860 # see comment about different semantics on the GNU ld section 14861 ld_shlibs_F77=no 14862 ;; 14863 14864 bsdi[45]*) 14865 export_dynamic_flag_spec_F77=-rdynamic 14866 ;; 14867 14868 cygwin* | mingw* | pw32*) 14869 # When not using gcc, we currently assume that we are using 14870 # Microsoft Visual C++. 14871 # hardcode_libdir_flag_spec is actually meaningless, as there is 14872 # no search path for DLLs. 14873 hardcode_libdir_flag_spec_F77=' ' 14874 allow_undefined_flag_F77=unsupported 14875 # Tell ltmain to make .lib files, not .a files. 14876 libext=lib 14877 # Tell ltmain to make .dll files, not .so files. 14878 shrext_cmds=".dll" 14879 # FIXME: Setting linknames here is a bad hack. 14880 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14881 # The linker will automatically build a .lib file if we build a DLL. 14882 old_archive_From_new_cmds_F77='true' 14883 # FIXME: Should let the user specify the lib program. 14884 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14885 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14886 enable_shared_with_static_runtimes_F77=yes 14887 ;; 14888 14889 darwin* | rhapsody*) 14890 case $host_os in 14891 rhapsody* | darwin1.[012]) 14892 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14893 ;; 14894 *) # Darwin 1.3 on 14895 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14896 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14897 else 14898 case ${MACOSX_DEPLOYMENT_TARGET} in 14899 10.[012]) 14900 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14901 ;; 14902 10.*) 14903 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14904 ;; 14905 esac 14906 fi 14907 ;; 14908 esac 14909 archive_cmds_need_lc_F77=no 14910 hardcode_direct_F77=no 14911 hardcode_automatic_F77=yes 14912 hardcode_shlibpath_var_F77=unsupported 14913 whole_archive_flag_spec_F77='' 14914 link_all_deplibs_F77=yes 14915 if test "$GCC" = yes ; then 14916 output_verbose_link_cmd='echo' 14917 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14918 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14919 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14920 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}' 14921 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}' 14922 else 14923 case $cc_basename in 14924 xlc*) 14925 output_verbose_link_cmd='echo' 14926 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14927 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14928 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14929 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}' 14930 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}' 14931 ;; 14932 *) 14933 ld_shlibs_F77=no 14934 ;; 14935 esac 14936 fi 14937 ;; 14938 14939 dgux*) 14940 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14941 hardcode_libdir_flag_spec_F77='-L$libdir' 14942 hardcode_shlibpath_var_F77=no 14943 ;; 14944 14945 freebsd1*) 14946 ld_shlibs_F77=no 14947 ;; 14948 14949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14950 # support. Future versions do this automatically, but an explicit c++rt0.o 14951 # does not break anything, and helps significantly (at the cost of a little 14952 # extra space). 14953 freebsd2.2*) 14954 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14955 hardcode_libdir_flag_spec_F77='-R$libdir' 14956 hardcode_direct_F77=yes 14957 hardcode_shlibpath_var_F77=no 14958 ;; 14959 14960 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14961 freebsd2*) 14962 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14963 hardcode_direct_F77=yes 14964 hardcode_minus_L_F77=yes 14965 hardcode_shlibpath_var_F77=no 14966 ;; 14967 14968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14969 freebsd* | kfreebsd*-gnu | dragonfly*) 14970 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14971 hardcode_libdir_flag_spec_F77='-R$libdir' 14972 hardcode_direct_F77=yes 14973 hardcode_shlibpath_var_F77=no 14974 ;; 14975 14976 hpux9*) 14977 if test "$GCC" = yes; then 14978 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' 14979 else 14980 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' 14981 fi 14982 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14983 hardcode_libdir_separator_F77=: 14984 hardcode_direct_F77=yes 14985 14986 # hardcode_minus_L: Not really in the search PATH, 14987 # but as the default location of the library. 14988 hardcode_minus_L_F77=yes 14989 export_dynamic_flag_spec_F77='${wl}-E' 14990 ;; 14991 14992 hpux10* | hpux11*) 14993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14994 case $host_cpu in 14995 hppa*64*|ia64*) 14996 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14997 ;; 14998 *) 14999 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15000 ;; 15001 esac 15002 else 15003 case $host_cpu in 15004 hppa*64*|ia64*) 15005 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15006 ;; 15007 *) 15008 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15009 ;; 15010 esac 15011 fi 15012 if test "$with_gnu_ld" = no; then 15013 case $host_cpu in 15014 hppa*64*) 15015 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15016 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15017 hardcode_libdir_separator_F77=: 15018 hardcode_direct_F77=no 15019 hardcode_shlibpath_var_F77=no 15020 ;; 15021 ia64*) 15022 hardcode_libdir_flag_spec_F77='-L$libdir' 15023 hardcode_direct_F77=no 15024 hardcode_shlibpath_var_F77=no 15025 15026 # hardcode_minus_L: Not really in the search PATH, 15027 # but as the default location of the library. 15028 hardcode_minus_L_F77=yes 15029 ;; 15030 *) 15031 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15032 hardcode_libdir_separator_F77=: 15033 hardcode_direct_F77=yes 15034 export_dynamic_flag_spec_F77='${wl}-E' 15035 15036 # hardcode_minus_L: Not really in the search PATH, 15037 # but as the default location of the library. 15038 hardcode_minus_L_F77=yes 15039 ;; 15040 esac 15041 fi 15042 ;; 15043 15044 irix5* | irix6* | nonstopux*) 15045 if test "$GCC" = yes; then 15046 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' 15047 else 15048 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' 15049 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15050 fi 15051 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15052 hardcode_libdir_separator_F77=: 15053 link_all_deplibs_F77=yes 15054 ;; 15055 15056 netbsd*) 15057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15058 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15059 else 15060 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15061 fi 15062 hardcode_libdir_flag_spec_F77='-R$libdir' 15063 hardcode_direct_F77=yes 15064 hardcode_shlibpath_var_F77=no 15065 ;; 15066 15067 newsos6) 15068 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15069 hardcode_direct_F77=yes 15070 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15071 hardcode_libdir_separator_F77=: 15072 hardcode_shlibpath_var_F77=no 15073 ;; 15074 15075 openbsd*) 15076 hardcode_direct_F77=yes 15077 hardcode_shlibpath_var_F77=no 15078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15079 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15080 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15081 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15082 export_dynamic_flag_spec_F77='${wl}-E' 15083 else 15084 case $host_os in 15085 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15086 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15087 hardcode_libdir_flag_spec_F77='-R$libdir' 15088 ;; 15089 *) 15090 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15091 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15092 ;; 15093 esac 15094 fi 15095 ;; 15096 15097 os2*) 15098 hardcode_libdir_flag_spec_F77='-L$libdir' 15099 hardcode_minus_L_F77=yes 15100 allow_undefined_flag_F77=unsupported 15101 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' 15102 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15103 ;; 15104 15105 osf3*) 15106 if test "$GCC" = yes; then 15107 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15108 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' 15109 else 15110 allow_undefined_flag_F77=' -expect_unresolved \*' 15111 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' 15112 fi 15113 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15114 hardcode_libdir_separator_F77=: 15115 ;; 15116 15117 osf4* | osf5*) # as osf3* with the addition of -msym flag 15118 if test "$GCC" = yes; then 15119 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15120 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' 15121 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15122 else 15123 allow_undefined_flag_F77=' -expect_unresolved \*' 15124 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' 15125 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~ 15126 $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' 15127 15128 # Both c and cxx compiler support -rpath directly 15129 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15130 fi 15131 hardcode_libdir_separator_F77=: 15132 ;; 15133 15134 sco3.2v5*) 15135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15136 hardcode_shlibpath_var_F77=no 15137 export_dynamic_flag_spec_F77='${wl}-Bexport' 15138 runpath_var=LD_RUN_PATH 15139 hardcode_runpath_var=yes 15140 ;; 15141 15142 solaris*) 15143 no_undefined_flag_F77=' -z text' 15144 if test "$GCC" = yes; then 15145 wlarc='${wl}' 15146 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15147 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15148 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15149 else 15150 wlarc='' 15151 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15154 fi 15155 hardcode_libdir_flag_spec_F77='-R$libdir' 15156 hardcode_shlibpath_var_F77=no 15157 case $host_os in 15158 solaris2.[0-5] | solaris2.[0-5].*) ;; 15159 *) 15160 # The compiler driver will combine linker options so we 15161 # cannot just pass the convience library names through 15162 # without $wl, iff we do not link with $LD. 15163 # Luckily, gcc supports the same syntax we need for Sun Studio. 15164 # Supported since Solaris 2.6 (maybe 2.5.1?) 15165 case $wlarc in 15166 '') 15167 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15168 *) 15169 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' ;; 15170 esac ;; 15171 esac 15172 link_all_deplibs_F77=yes 15173 ;; 15174 15175 sunos4*) 15176 if test "x$host_vendor" = xsequent; then 15177 # Use $CC to link under sequent, because it throws in some extra .o 15178 # files that make .init and .fini sections work. 15179 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15180 else 15181 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15182 fi 15183 hardcode_libdir_flag_spec_F77='-L$libdir' 15184 hardcode_direct_F77=yes 15185 hardcode_minus_L_F77=yes 15186 hardcode_shlibpath_var_F77=no 15187 ;; 15188 15189 sysv4) 15190 case $host_vendor in 15191 sni) 15192 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15193 hardcode_direct_F77=yes # is this really true??? 15194 ;; 15195 siemens) 15196 ## LD is ld it makes a PLAMLIB 15197 ## CC just makes a GrossModule. 15198 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15199 reload_cmds_F77='$CC -r -o $output$reload_objs' 15200 hardcode_direct_F77=no 15201 ;; 15202 motorola) 15203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15204 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15205 ;; 15206 esac 15207 runpath_var='LD_RUN_PATH' 15208 hardcode_shlibpath_var_F77=no 15209 ;; 15210 15211 sysv4.3*) 15212 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15213 hardcode_shlibpath_var_F77=no 15214 export_dynamic_flag_spec_F77='-Bexport' 15215 ;; 15216 15217 sysv4*MP*) 15218 if test -d /usr/nec; then 15219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15220 hardcode_shlibpath_var_F77=no 15221 runpath_var=LD_RUN_PATH 15222 hardcode_runpath_var=yes 15223 ld_shlibs_F77=yes 15224 fi 15225 ;; 15226 15227 sysv4.2uw2*) 15228 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15229 hardcode_direct_F77=yes 15230 hardcode_minus_L_F77=no 15231 hardcode_shlibpath_var_F77=no 15232 hardcode_runpath_var=yes 15233 runpath_var=LD_RUN_PATH 15234 ;; 15235 15236 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15237 no_undefined_flag_F77='${wl}-z ${wl}text' 15238 if test "$GCC" = yes; then 15239 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15240 else 15241 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15242 fi 15243 runpath_var='LD_RUN_PATH' 15244 hardcode_shlibpath_var_F77=no 15245 ;; 15246 15247 sysv5*) 15248 no_undefined_flag_F77=' -z text' 15249 # $CC -shared without GNU ld will not create a library from C++ 15250 # object files and a static libstdc++, better avoid it by now 15251 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15252 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15254 hardcode_libdir_flag_spec_F77= 15255 hardcode_shlibpath_var_F77=no 15256 runpath_var='LD_RUN_PATH' 15257 ;; 15258 15259 uts4*) 15260 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15261 hardcode_libdir_flag_spec_F77='-L$libdir' 15262 hardcode_shlibpath_var_F77=no 15263 ;; 15264 15265 *) 15266 ld_shlibs_F77=no 15267 ;; 15268 esac 15269 fi 15270 15271echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15272echo "${ECHO_T}$ld_shlibs_F77" >&6 15273test "$ld_shlibs_F77" = no && can_build_shared=no 15274 15275variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15276if test "$GCC" = yes; then 15277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15278fi 15279 15280# 15281# Do we need to explicitly link libc? 15282# 15283case "x$archive_cmds_need_lc_F77" in 15284x|xyes) 15285 # Assume -lc should be added 15286 archive_cmds_need_lc_F77=yes 15287 15288 if test "$enable_shared" = yes && test "$GCC" = yes; then 15289 case $archive_cmds_F77 in 15290 *'~'*) 15291 # FIXME: we may have to deal with multi-command sequences. 15292 ;; 15293 '$CC '*) 15294 # Test whether the compiler implicitly links with -lc since on some 15295 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15296 # to ld, don't add -lc before -lgcc. 15297 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15298echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15299 $rm conftest* 15300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15301 15302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15303 (eval $ac_compile) 2>&5 15304 ac_status=$? 15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15306 (exit $ac_status); } 2>conftest.err; then 15307 soname=conftest 15308 lib=conftest 15309 libobjs=conftest.$ac_objext 15310 deplibs= 15311 wl=$lt_prog_compiler_wl_F77 15312 compiler_flags=-v 15313 linker_flags=-v 15314 verstring= 15315 output_objdir=. 15316 libname=conftest 15317 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15318 allow_undefined_flag_F77= 15319 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15320 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15321 ac_status=$? 15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15323 (exit $ac_status); } 15324 then 15325 archive_cmds_need_lc_F77=no 15326 else 15327 archive_cmds_need_lc_F77=yes 15328 fi 15329 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15330 else 15331 cat conftest.err 1>&5 15332 fi 15333 $rm conftest* 15334 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15335echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15336 ;; 15337 esac 15338 fi 15339 ;; 15340esac 15341 15342echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15343echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15344library_names_spec= 15345libname_spec='lib$name' 15346soname_spec= 15347shrext_cmds=".so" 15348postinstall_cmds= 15349postuninstall_cmds= 15350finish_cmds= 15351finish_eval= 15352shlibpath_var= 15353shlibpath_overrides_runpath=unknown 15354version_type=none 15355dynamic_linker="$host_os ld.so" 15356sys_lib_dlsearch_path_spec="/lib /usr/lib" 15357if test "$GCC" = yes; then 15358 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15359 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15360 # if the path contains ";" then we assume it to be the separator 15361 # otherwise default to the standard path separator (i.e. ":") - it is 15362 # assumed that no part of a normal pathname contains ";" but that should 15363 # okay in the real world where ";" in dirpaths is itself problematic. 15364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15365 else 15366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15367 fi 15368else 15369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15370fi 15371need_lib_prefix=unknown 15372hardcode_into_libs=no 15373 15374# when you set need_version to no, make sure it does not cause -set_version 15375# flags to be left without arguments 15376need_version=unknown 15377 15378case $host_os in 15379aix3*) 15380 version_type=linux 15381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15382 shlibpath_var=LIBPATH 15383 15384 # AIX 3 has no versioning support, so we append a major version to the name. 15385 soname_spec='${libname}${release}${shared_ext}$major' 15386 ;; 15387 15388aix4* | aix5*) 15389 version_type=linux 15390 need_lib_prefix=no 15391 need_version=no 15392 hardcode_into_libs=yes 15393 if test "$host_cpu" = ia64; then 15394 # AIX 5 supports IA64 15395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15396 shlibpath_var=LD_LIBRARY_PATH 15397 else 15398 # With GCC up to 2.95.x, collect2 would create an import file 15399 # for dependence libraries. The import file would start with 15400 # the line `#! .'. This would cause the generated library to 15401 # depend on `.', always an invalid library. This was fixed in 15402 # development snapshots of GCC prior to 3.0. 15403 case $host_os in 15404 aix4 | aix4.[01] | aix4.[01].*) 15405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15406 echo ' yes ' 15407 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15408 : 15409 else 15410 can_build_shared=no 15411 fi 15412 ;; 15413 esac 15414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15415 # soname into executable. Probably we can add versioning support to 15416 # collect2, so additional links can be useful in future. 15417 if test "$aix_use_runtimelinking" = yes; then 15418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15419 # instead of lib<name>.a to let people know that these are not 15420 # typical AIX shared libraries. 15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15422 else 15423 # We preserve .a as extension for shared libraries through AIX4.2 15424 # and later when we are not doing run time linking. 15425 library_names_spec='${libname}${release}.a $libname.a' 15426 soname_spec='${libname}${release}${shared_ext}$major' 15427 fi 15428 shlibpath_var=LIBPATH 15429 fi 15430 ;; 15431 15432amigaos*) 15433 library_names_spec='$libname.ixlibrary $libname.a' 15434 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15435 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' 15436 ;; 15437 15438beos*) 15439 library_names_spec='${libname}${shared_ext}' 15440 dynamic_linker="$host_os ld.so" 15441 shlibpath_var=LIBRARY_PATH 15442 ;; 15443 15444bsdi[45]*) 15445 version_type=linux 15446 need_version=no 15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15448 soname_spec='${libname}${release}${shared_ext}$major' 15449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15450 shlibpath_var=LD_LIBRARY_PATH 15451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15453 # the default ld.so.conf also contains /usr/contrib/lib and 15454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15455 # libtool to hard-code these into programs 15456 ;; 15457 15458cygwin* | mingw* | pw32*) 15459 version_type=windows 15460 shrext_cmds=".dll" 15461 need_version=no 15462 need_lib_prefix=no 15463 15464 case $GCC,$host_os in 15465 yes,cygwin* | yes,mingw* | yes,pw32*) 15466 library_names_spec='$libname.dll.a' 15467 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15468 postinstall_cmds='base_file=`basename \${file}`~ 15469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15470 dldir=$destdir/`dirname \$dlpath`~ 15471 test -d \$dldir || mkdir -p \$dldir~ 15472 $install_prog $dir/$dlname \$dldir/$dlname~ 15473 chmod a+x \$dldir/$dlname' 15474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15475 dlpath=$dir/\$dldll~ 15476 $rm \$dlpath' 15477 shlibpath_overrides_runpath=yes 15478 15479 case $host_os in 15480 cygwin*) 15481 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15482 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15483 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15484 ;; 15485 mingw*) 15486 # MinGW DLLs use traditional 'lib' prefix 15487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15488 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15489 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15490 # It is most probably a Windows format PATH printed by 15491 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15492 # path with ; separators, and with drive letters. We can handle the 15493 # drive letters (cygwin fileutils understands them), so leave them, 15494 # especially as we might pass files found there to a mingw objdump, 15495 # which wouldn't understand a cygwinified path. Ahh. 15496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15497 else 15498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15499 fi 15500 ;; 15501 pw32*) 15502 # pw32 DLLs use 'pw' prefix rather than 'lib' 15503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15504 ;; 15505 esac 15506 ;; 15507 15508 *) 15509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15510 ;; 15511 esac 15512 dynamic_linker='Win32 ld.exe' 15513 # FIXME: first we should search . and the directory the executable is in 15514 shlibpath_var=PATH 15515 ;; 15516 15517darwin* | rhapsody*) 15518 dynamic_linker="$host_os dyld" 15519 version_type=darwin 15520 need_lib_prefix=no 15521 need_version=no 15522 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15523 soname_spec='${libname}${release}${major}$shared_ext' 15524 shlibpath_overrides_runpath=yes 15525 shlibpath_var=DYLD_LIBRARY_PATH 15526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15527 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15528 if test "$GCC" = yes; then 15529 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"` 15530 else 15531 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15532 fi 15533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15534 ;; 15535 15536dgux*) 15537 version_type=linux 15538 need_lib_prefix=no 15539 need_version=no 15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15541 soname_spec='${libname}${release}${shared_ext}$major' 15542 shlibpath_var=LD_LIBRARY_PATH 15543 ;; 15544 15545freebsd1*) 15546 dynamic_linker=no 15547 ;; 15548 15549haiku*) 15550 library_names_spec='${libname}${shared_ext}' 15551 dynamic_linker="$host_os ld.so" 15552 shlibpath_var=LIBRARY_PATH 15553 ;; 15554 15555kfreebsd*-gnu) 15556 version_type=linux 15557 need_lib_prefix=no 15558 need_version=no 15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15560 soname_spec='${libname}${release}${shared_ext}$major' 15561 shlibpath_var=LD_LIBRARY_PATH 15562 shlibpath_overrides_runpath=no 15563 hardcode_into_libs=yes 15564 dynamic_linker='GNU ld.so' 15565 ;; 15566 15567freebsd* | dragonfly*) 15568 # DragonFly does not have aout. When/if they implement a new 15569 # versioning mechanism, adjust this. 15570 if test -x /usr/bin/objformat; then 15571 objformat=`/usr/bin/objformat` 15572 else 15573 case $host_os in 15574 freebsd[123]*) objformat=aout ;; 15575 *) objformat=elf ;; 15576 esac 15577 fi 15578 version_type=freebsd-$objformat 15579 case $version_type in 15580 freebsd-elf*) 15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15582 need_version=no 15583 need_lib_prefix=no 15584 ;; 15585 freebsd-*) 15586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15587 need_version=yes 15588 ;; 15589 esac 15590 shlibpath_var=LD_LIBRARY_PATH 15591 case $host_os in 15592 freebsd2*) 15593 shlibpath_overrides_runpath=yes 15594 ;; 15595 freebsd3.[01]* | freebsdelf3.[01]*) 15596 shlibpath_overrides_runpath=yes 15597 hardcode_into_libs=yes 15598 ;; 15599 *) # from 3.2 on 15600 shlibpath_overrides_runpath=no 15601 hardcode_into_libs=yes 15602 ;; 15603 esac 15604 ;; 15605 15606gnu*) 15607 version_type=linux 15608 need_lib_prefix=no 15609 need_version=no 15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15611 soname_spec='${libname}${release}${shared_ext}$major' 15612 shlibpath_var=LD_LIBRARY_PATH 15613 hardcode_into_libs=yes 15614 ;; 15615 15616hpux9* | hpux10* | hpux11*) 15617 # Give a soname corresponding to the major version so that dld.sl refuses to 15618 # link against other versions. 15619 version_type=sunos 15620 need_lib_prefix=no 15621 need_version=no 15622 case $host_cpu in 15623 ia64*) 15624 shrext_cmds='.so' 15625 hardcode_into_libs=yes 15626 dynamic_linker="$host_os dld.so" 15627 shlibpath_var=LD_LIBRARY_PATH 15628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15630 soname_spec='${libname}${release}${shared_ext}$major' 15631 if test "X$HPUX_IA64_MODE" = X32; then 15632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15633 else 15634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15635 fi 15636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15637 ;; 15638 hppa*64*) 15639 shrext_cmds='.sl' 15640 hardcode_into_libs=yes 15641 dynamic_linker="$host_os dld.sl" 15642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15645 soname_spec='${libname}${release}${shared_ext}$major' 15646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15648 ;; 15649 *) 15650 shrext_cmds='.sl' 15651 dynamic_linker="$host_os dld.sl" 15652 shlibpath_var=SHLIB_PATH 15653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15655 soname_spec='${libname}${release}${shared_ext}$major' 15656 ;; 15657 esac 15658 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15659 postinstall_cmds='chmod 555 $lib' 15660 ;; 15661 15662irix5* | irix6* | nonstopux*) 15663 case $host_os in 15664 nonstopux*) version_type=nonstopux ;; 15665 *) 15666 if test "$lt_cv_prog_gnu_ld" = yes; then 15667 version_type=linux 15668 else 15669 version_type=irix 15670 fi ;; 15671 esac 15672 need_lib_prefix=no 15673 need_version=no 15674 soname_spec='${libname}${release}${shared_ext}$major' 15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15676 case $host_os in 15677 irix5* | nonstopux*) 15678 libsuff= shlibsuff= 15679 ;; 15680 *) 15681 case $LD in # libtool.m4 will add one of these switches to LD 15682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15683 libsuff= shlibsuff= libmagic=32-bit;; 15684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15685 libsuff=32 shlibsuff=N32 libmagic=N32;; 15686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15687 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15688 *) libsuff= shlibsuff= libmagic=never-match;; 15689 esac 15690 ;; 15691 esac 15692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15693 shlibpath_overrides_runpath=no 15694 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15695 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15696 hardcode_into_libs=yes 15697 ;; 15698 15699# No shared lib support for Linux oldld, aout, or coff. 15700linux*oldld* | linux*aout* | linux*coff*) 15701 dynamic_linker=no 15702 ;; 15703 15704# This must be Linux ELF. 15705linux*) 15706 version_type=linux 15707 need_lib_prefix=no 15708 need_version=no 15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15710 soname_spec='${libname}${release}${shared_ext}$major' 15711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15712 shlibpath_var=LD_LIBRARY_PATH 15713 shlibpath_overrides_runpath=no 15714 # This implies no fast_install, which is unacceptable. 15715 # Some rework will be needed to allow for fast_install 15716 # before this can be enabled. 15717 hardcode_into_libs=yes 15718 15719 # Append ld.so.conf contents to the search path 15720 if test -f /etc/ld.so.conf; then 15721 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' ' '` 15722 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15723 fi 15724 15725 # We used to test for /lib/ld.so.1 and disable shared libraries on 15726 # powerpc, because MkLinux only supported shared libraries with the 15727 # GNU dynamic linker. Since this was broken with cross compilers, 15728 # most powerpc-linux boxes support dynamic linking these days and 15729 # people can always --disable-shared, the test was removed, and we 15730 # assume the GNU/Linux dynamic linker is in use. 15731 dynamic_linker='GNU/Linux ld.so' 15732 ;; 15733 15734knetbsd*-gnu) 15735 version_type=linux 15736 need_lib_prefix=no 15737 need_version=no 15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15739 soname_spec='${libname}${release}${shared_ext}$major' 15740 shlibpath_var=LD_LIBRARY_PATH 15741 shlibpath_overrides_runpath=no 15742 hardcode_into_libs=yes 15743 dynamic_linker='GNU ld.so' 15744 ;; 15745 15746netbsd*) 15747 version_type=sunos 15748 need_lib_prefix=no 15749 need_version=no 15750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15753 dynamic_linker='NetBSD (a.out) ld.so' 15754 else 15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15756 soname_spec='${libname}${release}${shared_ext}$major' 15757 dynamic_linker='NetBSD ld.elf_so' 15758 fi 15759 shlibpath_var=LD_LIBRARY_PATH 15760 shlibpath_overrides_runpath=yes 15761 hardcode_into_libs=yes 15762 ;; 15763 15764newsos6) 15765 version_type=linux 15766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15767 shlibpath_var=LD_LIBRARY_PATH 15768 shlibpath_overrides_runpath=yes 15769 ;; 15770 15771nto-qnx*) 15772 version_type=linux 15773 need_lib_prefix=no 15774 need_version=no 15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15776 soname_spec='${libname}${release}${shared_ext}$major' 15777 shlibpath_var=LD_LIBRARY_PATH 15778 shlibpath_overrides_runpath=yes 15779 ;; 15780 15781openbsd*) 15782 version_type=sunos 15783 need_lib_prefix=no 15784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15785 case $host_os in 15786 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15787 *) need_version=no ;; 15788 esac 15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15791 shlibpath_var=LD_LIBRARY_PATH 15792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15793 case $host_os in 15794 openbsd2.[89] | openbsd2.[89].*) 15795 shlibpath_overrides_runpath=no 15796 ;; 15797 *) 15798 shlibpath_overrides_runpath=yes 15799 ;; 15800 esac 15801 else 15802 shlibpath_overrides_runpath=yes 15803 fi 15804 ;; 15805 15806os2*) 15807 libname_spec='$name' 15808 shrext_cmds=".dll" 15809 need_lib_prefix=no 15810 library_names_spec='$libname${shared_ext} $libname.a' 15811 dynamic_linker='OS/2 ld.exe' 15812 shlibpath_var=LIBPATH 15813 ;; 15814 15815osf3* | osf4* | osf5*) 15816 version_type=osf 15817 need_lib_prefix=no 15818 need_version=no 15819 soname_spec='${libname}${release}${shared_ext}$major' 15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15821 shlibpath_var=LD_LIBRARY_PATH 15822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15824 ;; 15825 15826sco3.2v5*) 15827 version_type=osf 15828 soname_spec='${libname}${release}${shared_ext}$major' 15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15830 shlibpath_var=LD_LIBRARY_PATH 15831 ;; 15832 15833solaris*) 15834 version_type=linux 15835 need_lib_prefix=no 15836 need_version=no 15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15838 soname_spec='${libname}${release}${shared_ext}$major' 15839 shlibpath_var=LD_LIBRARY_PATH 15840 shlibpath_overrides_runpath=yes 15841 hardcode_into_libs=yes 15842 # ldd complains unless libraries are executable 15843 postinstall_cmds='chmod +x $lib' 15844 ;; 15845 15846sunos4*) 15847 version_type=sunos 15848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15850 shlibpath_var=LD_LIBRARY_PATH 15851 shlibpath_overrides_runpath=yes 15852 if test "$with_gnu_ld" = yes; then 15853 need_lib_prefix=no 15854 fi 15855 need_version=yes 15856 ;; 15857 15858sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15859 version_type=linux 15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15861 soname_spec='${libname}${release}${shared_ext}$major' 15862 shlibpath_var=LD_LIBRARY_PATH 15863 case $host_vendor in 15864 sni) 15865 shlibpath_overrides_runpath=no 15866 need_lib_prefix=no 15867 export_dynamic_flag_spec='${wl}-Blargedynsym' 15868 runpath_var=LD_RUN_PATH 15869 ;; 15870 siemens) 15871 need_lib_prefix=no 15872 ;; 15873 motorola) 15874 need_lib_prefix=no 15875 need_version=no 15876 shlibpath_overrides_runpath=no 15877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15878 ;; 15879 esac 15880 ;; 15881 15882sysv4*MP*) 15883 if test -d /usr/nec ;then 15884 version_type=linux 15885 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15886 soname_spec='$libname${shared_ext}.$major' 15887 shlibpath_var=LD_LIBRARY_PATH 15888 fi 15889 ;; 15890 15891uts4*) 15892 version_type=linux 15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15894 soname_spec='${libname}${release}${shared_ext}$major' 15895 shlibpath_var=LD_LIBRARY_PATH 15896 ;; 15897 15898*) 15899 dynamic_linker=no 15900 ;; 15901esac 15902echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15903echo "${ECHO_T}$dynamic_linker" >&6 15904test "$dynamic_linker" = no && can_build_shared=no 15905 15906echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15907echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15908hardcode_action_F77= 15909if test -n "$hardcode_libdir_flag_spec_F77" || \ 15910 test -n "$runpath_var_F77" || \ 15911 test "X$hardcode_automatic_F77" = "Xyes" ; then 15912 15913 # We can hardcode non-existant directories. 15914 if test "$hardcode_direct_F77" != no && 15915 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15916 # have to relink, otherwise we might link with an installed library 15917 # when we should be linking with a yet-to-be-installed one 15918 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15919 test "$hardcode_minus_L_F77" != no; then 15920 # Linking always hardcodes the temporary library directory. 15921 hardcode_action_F77=relink 15922 else 15923 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15924 hardcode_action_F77=immediate 15925 fi 15926else 15927 # We cannot hardcode anything, or else we can only hardcode existing 15928 # directories. 15929 hardcode_action_F77=unsupported 15930fi 15931echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15932echo "${ECHO_T}$hardcode_action_F77" >&6 15933 15934if test "$hardcode_action_F77" = relink; then 15935 # Fast installation is not supported 15936 enable_fast_install=no 15937elif test "$shlibpath_overrides_runpath" = yes || 15938 test "$enable_shared" = no; then 15939 # Fast installation is not necessary 15940 enable_fast_install=needless 15941fi 15942 15943striplib= 15944old_striplib= 15945echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15946echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15947if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15948 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15949 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15950 echo "$as_me:$LINENO: result: yes" >&5 15951echo "${ECHO_T}yes" >&6 15952else 15953# FIXME - insert some real tests, host_os isn't really good enough 15954 case $host_os in 15955 darwin*) 15956 if test -n "$STRIP" ; then 15957 striplib="$STRIP -x" 15958 echo "$as_me:$LINENO: result: yes" >&5 15959echo "${ECHO_T}yes" >&6 15960 else 15961 echo "$as_me:$LINENO: result: no" >&5 15962echo "${ECHO_T}no" >&6 15963fi 15964 ;; 15965 *) 15966 echo "$as_me:$LINENO: result: no" >&5 15967echo "${ECHO_T}no" >&6 15968 ;; 15969 esac 15970fi 15971 15972 15973 15974# The else clause should only fire when bootstrapping the 15975# libtool distribution, otherwise you forgot to ship ltmain.sh 15976# with your package, and you will get complaints that there are 15977# no rules to generate ltmain.sh. 15978if test -f "$ltmain"; then 15979 # See if we are running on zsh, and set the options which allow our commands through 15980 # without removal of \ escapes. 15981 if test -n "${ZSH_VERSION+set}" ; then 15982 setopt NO_GLOB_SUBST 15983 fi 15984 # Now quote all the things that may contain metacharacters while being 15985 # careful not to overquote the AC_SUBSTed values. We take copies of the 15986 # variables and quote the copies for generation of the libtool script. 15987 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15988 SED SHELL STRIP \ 15989 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15990 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15991 deplibs_check_method reload_flag reload_cmds need_locks \ 15992 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15993 lt_cv_sys_global_symbol_to_c_name_address \ 15994 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15995 old_postinstall_cmds old_postuninstall_cmds \ 15996 compiler_F77 \ 15997 CC_F77 \ 15998 LD_F77 \ 15999 lt_prog_compiler_wl_F77 \ 16000 lt_prog_compiler_pic_F77 \ 16001 lt_prog_compiler_static_F77 \ 16002 lt_prog_compiler_no_builtin_flag_F77 \ 16003 export_dynamic_flag_spec_F77 \ 16004 thread_safe_flag_spec_F77 \ 16005 whole_archive_flag_spec_F77 \ 16006 enable_shared_with_static_runtimes_F77 \ 16007 old_archive_cmds_F77 \ 16008 old_archive_from_new_cmds_F77 \ 16009 predep_objects_F77 \ 16010 postdep_objects_F77 \ 16011 predeps_F77 \ 16012 postdeps_F77 \ 16013 compiler_lib_search_path_F77 \ 16014 archive_cmds_F77 \ 16015 archive_expsym_cmds_F77 \ 16016 postinstall_cmds_F77 \ 16017 postuninstall_cmds_F77 \ 16018 old_archive_from_expsyms_cmds_F77 \ 16019 allow_undefined_flag_F77 \ 16020 no_undefined_flag_F77 \ 16021 export_symbols_cmds_F77 \ 16022 hardcode_libdir_flag_spec_F77 \ 16023 hardcode_libdir_flag_spec_ld_F77 \ 16024 hardcode_libdir_separator_F77 \ 16025 hardcode_automatic_F77 \ 16026 module_cmds_F77 \ 16027 module_expsym_cmds_F77 \ 16028 lt_cv_prog_compiler_c_o_F77 \ 16029 exclude_expsyms_F77 \ 16030 include_expsyms_F77; do 16031 16032 case $var in 16033 old_archive_cmds_F77 | \ 16034 old_archive_from_new_cmds_F77 | \ 16035 archive_cmds_F77 | \ 16036 archive_expsym_cmds_F77 | \ 16037 module_cmds_F77 | \ 16038 module_expsym_cmds_F77 | \ 16039 old_archive_from_expsyms_cmds_F77 | \ 16040 export_symbols_cmds_F77 | \ 16041 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16042 postinstall_cmds | postuninstall_cmds | \ 16043 old_postinstall_cmds | old_postuninstall_cmds | \ 16044 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16045 # Double-quote double-evaled strings. 16046 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16047 ;; 16048 *) 16049 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16050 ;; 16051 esac 16052 done 16053 16054 case $lt_echo in 16055 *'\$0 --fallback-echo"') 16056 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16057 ;; 16058 esac 16059 16060cfgfile="$ofile" 16061 16062 cat <<__EOF__ >> "$cfgfile" 16063# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16064 16065# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16066 16067# Shell to use when invoking shell scripts. 16068SHELL=$lt_SHELL 16069 16070# Whether or not to build shared libraries. 16071build_libtool_libs=$enable_shared 16072 16073# Whether or not to build static libraries. 16074build_old_libs=$enable_static 16075 16076# Whether or not to add -lc for building shared libraries. 16077build_libtool_need_lc=$archive_cmds_need_lc_F77 16078 16079# Whether or not to disallow shared libs when runtime libs are static 16080allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16081 16082# Whether or not to optimize for fast installation. 16083fast_install=$enable_fast_install 16084 16085# The host system. 16086host_alias=$host_alias 16087host=$host 16088host_os=$host_os 16089 16090# The build system. 16091build_alias=$build_alias 16092build=$build 16093build_os=$build_os 16094 16095# An echo program that does not interpret backslashes. 16096echo=$lt_echo 16097 16098# The archiver. 16099AR=$lt_AR 16100AR_FLAGS=$lt_AR_FLAGS 16101 16102# A C compiler. 16103LTCC=$lt_LTCC 16104 16105# A language-specific compiler. 16106CC=$lt_compiler_F77 16107 16108# Is the compiler the GNU C compiler? 16109with_gcc=$GCC_F77 16110 16111# An ERE matcher. 16112EGREP=$lt_EGREP 16113 16114# The linker used to build libraries. 16115LD=$lt_LD_F77 16116 16117# Whether we need hard or soft links. 16118LN_S=$lt_LN_S 16119 16120# A BSD-compatible nm program. 16121NM=$lt_NM 16122 16123# A symbol stripping program 16124STRIP=$lt_STRIP 16125 16126# Used to examine libraries when file_magic_cmd begins "file" 16127MAGIC_CMD=$MAGIC_CMD 16128 16129# Used on cygwin: DLL creation program. 16130DLLTOOL="$DLLTOOL" 16131 16132# Used on cygwin: object dumper. 16133OBJDUMP="$OBJDUMP" 16134 16135# Used on cygwin: assembler. 16136AS="$AS" 16137 16138# The name of the directory that contains temporary libtool files. 16139objdir=$objdir 16140 16141# How to create reloadable object files. 16142reload_flag=$lt_reload_flag 16143reload_cmds=$lt_reload_cmds 16144 16145# How to pass a linker flag through the compiler. 16146wl=$lt_lt_prog_compiler_wl_F77 16147 16148# Object file suffix (normally "o"). 16149objext="$ac_objext" 16150 16151# Old archive suffix (normally "a"). 16152libext="$libext" 16153 16154# Shared library suffix (normally ".so"). 16155shrext_cmds='$shrext_cmds' 16156 16157# Executable file suffix (normally ""). 16158exeext="$exeext" 16159 16160# Additional compiler flags for building library objects. 16161pic_flag=$lt_lt_prog_compiler_pic_F77 16162pic_mode=$pic_mode 16163 16164# What is the maximum length of a command? 16165max_cmd_len=$lt_cv_sys_max_cmd_len 16166 16167# Does compiler simultaneously support -c and -o options? 16168compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16169 16170# Must we lock files when doing compilation? 16171need_locks=$lt_need_locks 16172 16173# Do we need the lib prefix for modules? 16174need_lib_prefix=$need_lib_prefix 16175 16176# Do we need a version for libraries? 16177need_version=$need_version 16178 16179# Whether dlopen is supported. 16180dlopen_support=$enable_dlopen 16181 16182# Whether dlopen of programs is supported. 16183dlopen_self=$enable_dlopen_self 16184 16185# Whether dlopen of statically linked programs is supported. 16186dlopen_self_static=$enable_dlopen_self_static 16187 16188# Compiler flag to prevent dynamic linking. 16189link_static_flag=$lt_lt_prog_compiler_static_F77 16190 16191# Compiler flag to turn off builtin functions. 16192no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16193 16194# Compiler flag to allow reflexive dlopens. 16195export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16196 16197# Compiler flag to generate shared objects directly from archives. 16198whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16199 16200# Compiler flag to generate thread-safe objects. 16201thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16202 16203# Library versioning type. 16204version_type=$version_type 16205 16206# Format of library name prefix. 16207libname_spec=$lt_libname_spec 16208 16209# List of archive names. First name is the real one, the rest are links. 16210# The last name is the one that the linker finds with -lNAME. 16211library_names_spec=$lt_library_names_spec 16212 16213# The coded name of the library, if different from the real name. 16214soname_spec=$lt_soname_spec 16215 16216# Commands used to build and install an old-style archive. 16217RANLIB=$lt_RANLIB 16218old_archive_cmds=$lt_old_archive_cmds_F77 16219old_postinstall_cmds=$lt_old_postinstall_cmds 16220old_postuninstall_cmds=$lt_old_postuninstall_cmds 16221 16222# Create an old-style archive from a shared archive. 16223old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16224 16225# Create a temporary old-style archive to link instead of a shared archive. 16226old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16227 16228# Commands used to build and install a shared archive. 16229archive_cmds=$lt_archive_cmds_F77 16230archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16231postinstall_cmds=$lt_postinstall_cmds 16232postuninstall_cmds=$lt_postuninstall_cmds 16233 16234# Commands used to build a loadable module (assumed same as above if empty) 16235module_cmds=$lt_module_cmds_F77 16236module_expsym_cmds=$lt_module_expsym_cmds_F77 16237 16238# Commands to strip libraries. 16239old_striplib=$lt_old_striplib 16240striplib=$lt_striplib 16241 16242# Dependencies to place before the objects being linked to create a 16243# shared library. 16244predep_objects=$lt_predep_objects_F77 16245 16246# Dependencies to place after the objects being linked to create a 16247# shared library. 16248postdep_objects=$lt_postdep_objects_F77 16249 16250# Dependencies to place before the objects being linked to create a 16251# shared library. 16252predeps=$lt_predeps_F77 16253 16254# Dependencies to place after the objects being linked to create a 16255# shared library. 16256postdeps=$lt_postdeps_F77 16257 16258# The library search path used internally by the compiler when linking 16259# a shared library. 16260compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16261 16262# Method to check whether dependent libraries are shared objects. 16263deplibs_check_method=$lt_deplibs_check_method 16264 16265# Command to use when deplibs_check_method == file_magic. 16266file_magic_cmd=$lt_file_magic_cmd 16267 16268# Flag that allows shared libraries with undefined symbols to be built. 16269allow_undefined_flag=$lt_allow_undefined_flag_F77 16270 16271# Flag that forces no undefined symbols. 16272no_undefined_flag=$lt_no_undefined_flag_F77 16273 16274# Commands used to finish a libtool library installation in a directory. 16275finish_cmds=$lt_finish_cmds 16276 16277# Same as above, but a single script fragment to be evaled but not shown. 16278finish_eval=$lt_finish_eval 16279 16280# Take the output of nm and produce a listing of raw symbols and C names. 16281global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16282 16283# Transform the output of nm in a proper C declaration 16284global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16285 16286# Transform the output of nm in a C name address pair 16287global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16288 16289# This is the shared library runtime path variable. 16290runpath_var=$runpath_var 16291 16292# This is the shared library path variable. 16293shlibpath_var=$shlibpath_var 16294 16295# Is shlibpath searched before the hard-coded library search path? 16296shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16297 16298# How to hardcode a shared library path into an executable. 16299hardcode_action=$hardcode_action_F77 16300 16301# Whether we should hardcode library paths into libraries. 16302hardcode_into_libs=$hardcode_into_libs 16303 16304# Flag to hardcode \$libdir into a binary during linking. 16305# This must work even if \$libdir does not exist. 16306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16307 16308# If ld is used when linking, flag to hardcode \$libdir into 16309# a binary during linking. This must work even if \$libdir does 16310# not exist. 16311hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16312 16313# Whether we need a single -rpath flag with a separated argument. 16314hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16315 16316# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16317# resulting binary. 16318hardcode_direct=$hardcode_direct_F77 16319 16320# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16321# resulting binary. 16322hardcode_minus_L=$hardcode_minus_L_F77 16323 16324# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16325# the resulting binary. 16326hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16327 16328# Set to yes if building a shared library automatically hardcodes DIR into the library 16329# and all subsequent libraries and executables linked against it. 16330hardcode_automatic=$hardcode_automatic_F77 16331 16332# Variables whose values should be saved in libtool wrapper scripts and 16333# restored at relink time. 16334variables_saved_for_relink="$variables_saved_for_relink" 16335 16336# Whether libtool must link a program against all its dependency libraries. 16337link_all_deplibs=$link_all_deplibs_F77 16338 16339# Compile-time system search path for libraries 16340sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16341 16342# Run-time system search path for libraries 16343sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16344 16345# Fix the shell variable \$srcfile for the compiler. 16346fix_srcfile_path="$fix_srcfile_path_F77" 16347 16348# Set to yes if exported symbols are required. 16349always_export_symbols=$always_export_symbols_F77 16350 16351# The commands to list exported symbols. 16352export_symbols_cmds=$lt_export_symbols_cmds_F77 16353 16354# The commands to extract the exported symbol list from a shared archive. 16355extract_expsyms_cmds=$lt_extract_expsyms_cmds 16356 16357# Symbols that should not be listed in the preloaded symbols. 16358exclude_expsyms=$lt_exclude_expsyms_F77 16359 16360# Symbols that must always be exported. 16361include_expsyms=$lt_include_expsyms_F77 16362 16363# ### END LIBTOOL TAG CONFIG: $tagname 16364 16365__EOF__ 16366 16367 16368else 16369 # If there is no Makefile yet, we rely on a make rule to execute 16370 # `config.status --recheck' to rerun these tests and create the 16371 # libtool script then. 16372 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16373 if test -f "$ltmain_in"; then 16374 test -f Makefile && make "$ltmain" 16375 fi 16376fi 16377 16378 16379ac_ext=c 16380ac_cpp='$CPP $CPPFLAGS' 16381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16383ac_compiler_gnu=$ac_cv_c_compiler_gnu 16384 16385CC="$lt_save_CC" 16386 16387 else 16388 tagname="" 16389 fi 16390 ;; 16391 16392 GCJ) 16393 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16394 16395 16396 16397# Source file extension for Java test sources. 16398ac_ext=java 16399 16400# Object file extension for compiled Java test sources. 16401objext=o 16402objext_GCJ=$objext 16403 16404# Code to be used in simple compile tests 16405lt_simple_compile_test_code="class foo {}\n" 16406 16407# Code to be used in simple link tests 16408lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16409 16410# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16411 16412# If no C compiler was specified, use CC. 16413LTCC=${LTCC-"$CC"} 16414 16415# Allow CC to be a program name with arguments. 16416compiler=$CC 16417 16418 16419# save warnings/boilerplate of simple test code 16420ac_outfile=conftest.$ac_objext 16421printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16422eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16423_lt_compiler_boilerplate=`cat conftest.err` 16424$rm conftest* 16425 16426ac_outfile=conftest.$ac_objext 16427printf "$lt_simple_link_test_code" >conftest.$ac_ext 16428eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16429_lt_linker_boilerplate=`cat conftest.err` 16430$rm conftest* 16431 16432 16433# Allow CC to be a program name with arguments. 16434lt_save_CC="$CC" 16435CC=${GCJ-"gcj"} 16436compiler=$CC 16437compiler_GCJ=$CC 16438for cc_temp in $compiler""; do 16439 case $cc_temp in 16440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16442 \-*) ;; 16443 *) break;; 16444 esac 16445done 16446cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16447 16448 16449# GCJ did not exist at the time GCC didn't implicitly link libc in. 16450archive_cmds_need_lc_GCJ=no 16451 16452old_archive_cmds_GCJ=$old_archive_cmds 16453 16454## CAVEAT EMPTOR: 16455## There is no encapsulation within the following macros, do not change 16456## the running order or otherwise move them around unless you know exactly 16457## what you are doing... 16458 16459lt_prog_compiler_no_builtin_flag_GCJ= 16460 16461if test "$GCC" = yes; then 16462 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16463 16464 16465echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16466echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16467if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16468 echo $ECHO_N "(cached) $ECHO_C" >&6 16469else 16470 lt_cv_prog_compiler_rtti_exceptions=no 16471 ac_outfile=conftest.$ac_objext 16472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16473 lt_compiler_flag="-fno-rtti -fno-exceptions" 16474 # Insert the option either (1) after the last *FLAGS variable, or 16475 # (2) before a word containing "conftest.", or (3) at the end. 16476 # Note that $ac_compile itself does not contain backslashes and begins 16477 # with a dollar sign (not a hyphen), so the echo should work correctly. 16478 # The option is referenced via a variable to avoid confusing sed. 16479 lt_compile=`echo "$ac_compile" | $SED \ 16480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16482 -e 's:$: $lt_compiler_flag:'` 16483 (eval echo "\"\$as_me:16483: $lt_compile\"" >&5) 16484 (eval "$lt_compile" 2>conftest.err) 16485 ac_status=$? 16486 cat conftest.err >&5 16487 echo "$as_me:16487: \$? = $ac_status" >&5 16488 if (exit $ac_status) && test -s "$ac_outfile"; then 16489 # The compiler can only warn and ignore the option if not recognized 16490 # So say no if there are warnings other than the usual output. 16491 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16492 $SED '/^$/d' conftest.err >conftest.er2 16493 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16494 lt_cv_prog_compiler_rtti_exceptions=yes 16495 fi 16496 fi 16497 $rm conftest* 16498 16499fi 16500echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16501echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16502 16503if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16504 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16505else 16506 : 16507fi 16508 16509fi 16510 16511lt_prog_compiler_wl_GCJ= 16512lt_prog_compiler_pic_GCJ= 16513lt_prog_compiler_static_GCJ= 16514 16515echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16516echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16517 16518 if test "$GCC" = yes; then 16519 lt_prog_compiler_wl_GCJ='-Wl,' 16520 lt_prog_compiler_static_GCJ='-static' 16521 16522 case $host_os in 16523 aix*) 16524 # All AIX code is PIC. 16525 if test "$host_cpu" = ia64; then 16526 # AIX 5 now supports IA64 processor 16527 lt_prog_compiler_static_GCJ='-Bstatic' 16528 fi 16529 ;; 16530 16531 amigaos*) 16532 # FIXME: we need at least 68020 code to build shared libraries, but 16533 # adding the `-m68020' flag to GCC prevents building anything better, 16534 # like `-m68040'. 16535 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16536 ;; 16537 16538 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 16539 | osf5*) 16540 # PIC is the default for these OSes. 16541 ;; 16542 16543 mingw* | pw32* | os2*) 16544 # This hack is so that the source file can tell whether it is being 16545 # built for inclusion in a dll (and should export symbols for example). 16546 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16547 ;; 16548 16549 darwin* | rhapsody*) 16550 # PIC is the default on this platform 16551 # Common symbols not allowed in MH_DYLIB files 16552 lt_prog_compiler_pic_GCJ='-fno-common' 16553 ;; 16554 16555 msdosdjgpp*) 16556 # Just because we use GCC doesn't mean we suddenly get shared libraries 16557 # on systems that don't support them. 16558 lt_prog_compiler_can_build_shared_GCJ=no 16559 enable_shared=no 16560 ;; 16561 16562 sysv4*MP*) 16563 if test -d /usr/nec; then 16564 lt_prog_compiler_pic_GCJ=-Kconform_pic 16565 fi 16566 ;; 16567 16568 hpux*) 16569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16570 # not for PA HP-UX. 16571 case $host_cpu in 16572 hppa*64*|ia64*) 16573 # +Z the default 16574 ;; 16575 *) 16576 lt_prog_compiler_pic_GCJ='-fPIC' 16577 ;; 16578 esac 16579 ;; 16580 16581 *) 16582 lt_prog_compiler_pic_GCJ='-fPIC' 16583 ;; 16584 esac 16585 else 16586 # PORTME Check for flag to pass linker flags through the system compiler. 16587 case $host_os in 16588 aix*) 16589 lt_prog_compiler_wl_GCJ='-Wl,' 16590 if test "$host_cpu" = ia64; then 16591 # AIX 5 now supports IA64 processor 16592 lt_prog_compiler_static_GCJ='-Bstatic' 16593 else 16594 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16595 fi 16596 ;; 16597 darwin*) 16598 # PIC is the default on this platform 16599 # Common symbols not allowed in MH_DYLIB files 16600 case $cc_basename in 16601 xlc*) 16602 lt_prog_compiler_pic_GCJ='-qnocommon' 16603 lt_prog_compiler_wl_GCJ='-Wl,' 16604 ;; 16605 esac 16606 ;; 16607 16608 mingw* | pw32* | os2*) 16609 # This hack is so that the source file can tell whether it is being 16610 # built for inclusion in a dll (and should export symbols for example). 16611 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16612 ;; 16613 16614 hpux9* | hpux10* | hpux11*) 16615 lt_prog_compiler_wl_GCJ='-Wl,' 16616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16617 # not for PA HP-UX. 16618 case $host_cpu in 16619 hppa*64*|ia64*) 16620 # +Z the default 16621 ;; 16622 *) 16623 lt_prog_compiler_pic_GCJ='+Z' 16624 ;; 16625 esac 16626 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16627 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16628 ;; 16629 16630 irix5* | irix6* | nonstopux*) 16631 lt_prog_compiler_wl_GCJ='-Wl,' 16632 # PIC (with -KPIC) is the default. 16633 lt_prog_compiler_static_GCJ='-non_shared' 16634 ;; 16635 16636 newsos6) 16637 lt_prog_compiler_pic_GCJ='-KPIC' 16638 lt_prog_compiler_static_GCJ='-Bstatic' 16639 ;; 16640 16641 linux*) 16642 case $cc_basename in 16643 icc* | ecc*) 16644 lt_prog_compiler_wl_GCJ='-Wl,' 16645 lt_prog_compiler_pic_GCJ='-KPIC' 16646 lt_prog_compiler_static_GCJ='-static' 16647 ;; 16648 pgcc* | pgf77* | pgf90* | pgf95*) 16649 # Portland Group compilers (*not* the Pentium gcc compiler, 16650 # which looks to be a dead project) 16651 lt_prog_compiler_wl_GCJ='-Wl,' 16652 lt_prog_compiler_pic_GCJ='-fpic' 16653 lt_prog_compiler_static_GCJ='-Bstatic' 16654 ;; 16655 ccc*) 16656 lt_prog_compiler_wl_GCJ='-Wl,' 16657 # All Alpha code is PIC. 16658 lt_prog_compiler_static_GCJ='-non_shared' 16659 ;; 16660 esac 16661 ;; 16662 16663 osf3* | osf4* | osf5*) 16664 lt_prog_compiler_wl_GCJ='-Wl,' 16665 # All OSF/1 code is PIC. 16666 lt_prog_compiler_static_GCJ='-non_shared' 16667 ;; 16668 16669 sco3.2v5*) 16670 lt_prog_compiler_pic_GCJ='-Kpic' 16671 lt_prog_compiler_static_GCJ='-dn' 16672 ;; 16673 16674 solaris*) 16675 lt_prog_compiler_pic_GCJ='-KPIC' 16676 lt_prog_compiler_static_GCJ='-Bstatic' 16677 case $cc_basename in 16678 f77* | f90* | f95*) 16679 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16680 *) 16681 lt_prog_compiler_wl_GCJ='-Wl,';; 16682 esac 16683 ;; 16684 16685 sunos4*) 16686 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16687 lt_prog_compiler_pic_GCJ='-PIC' 16688 lt_prog_compiler_static_GCJ='-Bstatic' 16689 ;; 16690 16691 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16692 lt_prog_compiler_wl_GCJ='-Wl,' 16693 lt_prog_compiler_pic_GCJ='-KPIC' 16694 lt_prog_compiler_static_GCJ='-Bstatic' 16695 ;; 16696 16697 sysv4*MP*) 16698 if test -d /usr/nec ;then 16699 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16700 lt_prog_compiler_static_GCJ='-Bstatic' 16701 fi 16702 ;; 16703 16704 unicos*) 16705 lt_prog_compiler_wl_GCJ='-Wl,' 16706 lt_prog_compiler_can_build_shared_GCJ=no 16707 ;; 16708 16709 uts4*) 16710 lt_prog_compiler_pic_GCJ='-pic' 16711 lt_prog_compiler_static_GCJ='-Bstatic' 16712 ;; 16713 16714 *) 16715 lt_prog_compiler_can_build_shared_GCJ=no 16716 ;; 16717 esac 16718 fi 16719 16720echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16721echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16722 16723# 16724# Check to make sure the PIC flag actually works. 16725# 16726if test -n "$lt_prog_compiler_pic_GCJ"; then 16727 16728echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16729echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16730if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16731 echo $ECHO_N "(cached) $ECHO_C" >&6 16732else 16733 lt_prog_compiler_pic_works_GCJ=no 16734 ac_outfile=conftest.$ac_objext 16735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16736 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16737 # Insert the option either (1) after the last *FLAGS variable, or 16738 # (2) before a word containing "conftest.", or (3) at the end. 16739 # Note that $ac_compile itself does not contain backslashes and begins 16740 # with a dollar sign (not a hyphen), so the echo should work correctly. 16741 # The option is referenced via a variable to avoid confusing sed. 16742 lt_compile=`echo "$ac_compile" | $SED \ 16743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16745 -e 's:$: $lt_compiler_flag:'` 16746 (eval echo "\"\$as_me:16746: $lt_compile\"" >&5) 16747 (eval "$lt_compile" 2>conftest.err) 16748 ac_status=$? 16749 cat conftest.err >&5 16750 echo "$as_me:16750: \$? = $ac_status" >&5 16751 if (exit $ac_status) && test -s "$ac_outfile"; then 16752 # The compiler can only warn and ignore the option if not recognized 16753 # So say no if there are warnings other than the usual output. 16754 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16755 $SED '/^$/d' conftest.err >conftest.er2 16756 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16757 lt_prog_compiler_pic_works_GCJ=yes 16758 fi 16759 fi 16760 $rm conftest* 16761 16762fi 16763echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16764echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16765 16766if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16767 case $lt_prog_compiler_pic_GCJ in 16768 "" | " "*) ;; 16769 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16770 esac 16771else 16772 lt_prog_compiler_pic_GCJ= 16773 lt_prog_compiler_can_build_shared_GCJ=no 16774fi 16775 16776fi 16777case $host_os in 16778 # For platforms which do not support PIC, -DPIC is meaningless: 16779 *djgpp*) 16780 lt_prog_compiler_pic_GCJ= 16781 ;; 16782 *) 16783 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16784 ;; 16785esac 16786 16787echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16788echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16789if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16790 echo $ECHO_N "(cached) $ECHO_C" >&6 16791else 16792 lt_cv_prog_compiler_c_o_GCJ=no 16793 $rm -r conftest 2>/dev/null 16794 mkdir conftest 16795 cd conftest 16796 mkdir out 16797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16798 16799 lt_compiler_flag="-o out/conftest2.$ac_objext" 16800 # Insert the option either (1) after the last *FLAGS variable, or 16801 # (2) before a word containing "conftest.", or (3) at the end. 16802 # Note that $ac_compile itself does not contain backslashes and begins 16803 # with a dollar sign (not a hyphen), so the echo should work correctly. 16804 lt_compile=`echo "$ac_compile" | $SED \ 16805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16807 -e 's:$: $lt_compiler_flag:'` 16808 (eval echo "\"\$as_me:16808: $lt_compile\"" >&5) 16809 (eval "$lt_compile" 2>out/conftest.err) 16810 ac_status=$? 16811 cat out/conftest.err >&5 16812 echo "$as_me:16812: \$? = $ac_status" >&5 16813 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16814 then 16815 # The compiler can only warn and ignore the option if not recognized 16816 # So say no if there are warnings 16817 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16818 $SED '/^$/d' out/conftest.err >out/conftest.er2 16819 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16820 lt_cv_prog_compiler_c_o_GCJ=yes 16821 fi 16822 fi 16823 chmod u+w . 2>&5 16824 $rm conftest* 16825 # SGI C++ compiler will create directory out/ii_files/ for 16826 # template instantiation 16827 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16828 $rm out/* && rmdir out 16829 cd .. 16830 rmdir conftest 16831 $rm conftest* 16832 16833fi 16834echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16835echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16836 16837 16838hard_links="nottested" 16839if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16840 # do not overwrite the value of need_locks provided by the user 16841 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16842echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16843 hard_links=yes 16844 $rm conftest* 16845 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16846 touch conftest.a 16847 ln conftest.a conftest.b 2>&5 || hard_links=no 16848 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16849 echo "$as_me:$LINENO: result: $hard_links" >&5 16850echo "${ECHO_T}$hard_links" >&6 16851 if test "$hard_links" = no; then 16852 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16853echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16854 need_locks=warn 16855 fi 16856else 16857 need_locks=no 16858fi 16859 16860echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16861echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16862 16863 runpath_var= 16864 allow_undefined_flag_GCJ= 16865 enable_shared_with_static_runtimes_GCJ=no 16866 archive_cmds_GCJ= 16867 archive_expsym_cmds_GCJ= 16868 old_archive_From_new_cmds_GCJ= 16869 old_archive_from_expsyms_cmds_GCJ= 16870 export_dynamic_flag_spec_GCJ= 16871 whole_archive_flag_spec_GCJ= 16872 thread_safe_flag_spec_GCJ= 16873 hardcode_libdir_flag_spec_GCJ= 16874 hardcode_libdir_flag_spec_ld_GCJ= 16875 hardcode_libdir_separator_GCJ= 16876 hardcode_direct_GCJ=no 16877 hardcode_minus_L_GCJ=no 16878 hardcode_shlibpath_var_GCJ=unsupported 16879 link_all_deplibs_GCJ=unknown 16880 hardcode_automatic_GCJ=no 16881 module_cmds_GCJ= 16882 module_expsym_cmds_GCJ= 16883 always_export_symbols_GCJ=no 16884 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16885 # include_expsyms should be a list of space-separated symbols to be *always* 16886 # included in the symbol list 16887 include_expsyms_GCJ= 16888 # exclude_expsyms can be an extended regexp of symbols to exclude 16889 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16890 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16891 # as well as any symbol that contains `d'. 16892 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16893 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16894 # platforms (ab)use it in PIC code, but their linkers get confused if 16895 # the symbol is explicitly referenced. Since portable code cannot 16896 # rely on this symbol name, it's probably fine to never include it in 16897 # preloaded symbol tables. 16898 extract_expsyms_cmds= 16899 # Just being paranoid about ensuring that cc_basename is set. 16900 for cc_temp in $compiler""; do 16901 case $cc_temp in 16902 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16903 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16904 \-*) ;; 16905 *) break;; 16906 esac 16907done 16908cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16909 16910 case $host_os in 16911 cygwin* | mingw* | pw32*) 16912 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16913 # When not using gcc, we currently assume that we are using 16914 # Microsoft Visual C++. 16915 if test "$GCC" != yes; then 16916 with_gnu_ld=no 16917 fi 16918 ;; 16919 openbsd*) 16920 with_gnu_ld=no 16921 ;; 16922 esac 16923 16924 ld_shlibs_GCJ=yes 16925 if test "$with_gnu_ld" = yes; then 16926 # If archive_cmds runs LD, not CC, wlarc should be empty 16927 wlarc='${wl}' 16928 16929 # Set some defaults for GNU ld with shared library support. These 16930 # are reset later if shared libraries are not supported. Putting them 16931 # here allows them to be overridden if necessary. 16932 runpath_var=LD_RUN_PATH 16933 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16934 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16935 # ancient GNU ld didn't support --whole-archive et. al. 16936 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16937 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16938 else 16939 whole_archive_flag_spec_GCJ= 16940 fi 16941 supports_anon_versioning=no 16942 case `$LD -v 2>/dev/null` in 16943 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16944 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16945 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16946 *\ 2.11.*) ;; # other 2.11 versions 16947 *) supports_anon_versioning=yes ;; 16948 esac 16949 16950 # See if GNU ld supports shared libraries. 16951 case $host_os in 16952 aix3* | aix4* | aix5*) 16953 # On AIX/PPC, the GNU linker is very broken 16954 if test "$host_cpu" != ia64; then 16955 ld_shlibs_GCJ=no 16956 cat <<EOF 1>&2 16957 16958*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16959*** to be unable to reliably create shared libraries on AIX. 16960*** Therefore, libtool is disabling shared libraries support. If you 16961*** really care for shared libraries, you may want to modify your PATH 16962*** so that a non-GNU linker is found, and then restart. 16963 16964EOF 16965 fi 16966 ;; 16967 16968 amigaos*) 16969 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)' 16970 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16971 hardcode_minus_L_GCJ=yes 16972 16973 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16974 # that the semantics of dynamic libraries on AmigaOS, at least up 16975 # to version 4, is to share data among multiple programs linked 16976 # with the same dynamic library. Since this doesn't match the 16977 # behavior of shared libraries on other platforms, we can't use 16978 # them. 16979 ld_shlibs_GCJ=no 16980 ;; 16981 16982 beos*) 16983 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16984 allow_undefined_flag_GCJ=unsupported 16985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16986 # support --undefined. This deserves some investigation. FIXME 16987 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16988 else 16989 ld_shlibs_GCJ=no 16990 fi 16991 ;; 16992 16993 cygwin* | mingw* | pw32*) 16994 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16995 # as there is no search path for DLLs. 16996 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16997 allow_undefined_flag_GCJ=unsupported 16998 always_export_symbols_GCJ=no 16999 enable_shared_with_static_runtimes_GCJ=yes 17000 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17001 17002 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17004 # If the export-symbols file already is a .def file (1st line 17005 # is EXPORTS), use it as is; otherwise, prepend... 17006 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17007 cp $export_symbols $output_objdir/$soname.def; 17008 else 17009 echo EXPORTS > $output_objdir/$soname.def; 17010 cat $export_symbols >> $output_objdir/$soname.def; 17011 fi~ 17012 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17013 else 17014 ld_shlibs_GCJ=no 17015 fi 17016 ;; 17017 17018 haiku*) 17019 allow_undefined_flag_GCJ=unsupported 17020 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17021 ;; 17022 17023 linux*) 17024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17025 tmp_addflag= 17026 case $cc_basename,$host_cpu in 17027 pgcc*) # Portland Group C compiler 17028 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' 17029 tmp_addflag=' $pic_flag' 17030 ;; 17031 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17032 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' 17033 tmp_addflag=' $pic_flag -Mnomain' ;; 17034 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17035 tmp_addflag=' -i_dynamic' ;; 17036 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17037 tmp_addflag=' -i_dynamic -nofor_main' ;; 17038 ifc* | ifort*) # Intel Fortran compiler 17039 tmp_addflag=' -nofor_main' ;; 17040 esac 17041 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17042 17043 if test $supports_anon_versioning = yes; then 17044 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17046 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17047 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17048 fi 17049 else 17050 ld_shlibs_GCJ=no 17051 fi 17052 ;; 17053 17054 netbsd*) 17055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17056 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17057 wlarc= 17058 else 17059 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17060 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17061 fi 17062 ;; 17063 17064 solaris* | sysv5*) 17065 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17066 ld_shlibs_GCJ=no 17067 cat <<EOF 1>&2 17068 17069*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17070*** create shared libraries on Solaris systems. Therefore, libtool 17071*** is disabling shared libraries support. We urge you to upgrade GNU 17072*** binutils to release 2.9.1 or newer. Another option is to modify 17073*** your PATH or compiler configuration so that the native linker is 17074*** used, and then restart. 17075 17076EOF 17077 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17078 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17079 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17080 else 17081 ld_shlibs_GCJ=no 17082 fi 17083 ;; 17084 17085 sunos4*) 17086 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17087 wlarc= 17088 hardcode_direct_GCJ=yes 17089 hardcode_shlibpath_var_GCJ=no 17090 ;; 17091 17092 *) 17093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17094 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17095 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17096 else 17097 ld_shlibs_GCJ=no 17098 fi 17099 ;; 17100 esac 17101 17102 if test "$ld_shlibs_GCJ" = no; then 17103 runpath_var= 17104 hardcode_libdir_flag_spec_GCJ= 17105 export_dynamic_flag_spec_GCJ= 17106 whole_archive_flag_spec_GCJ= 17107 fi 17108 else 17109 # PORTME fill in a description of your system's linker (not GNU ld) 17110 case $host_os in 17111 aix3*) 17112 allow_undefined_flag_GCJ=unsupported 17113 always_export_symbols_GCJ=yes 17114 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' 17115 # Note: this linker hardcodes the directories in LIBPATH if there 17116 # are no directories specified by -L. 17117 hardcode_minus_L_GCJ=yes 17118 if test "$GCC" = yes && test -z "$link_static_flag"; then 17119 # Neither direct hardcoding nor static linking is supported with a 17120 # broken collect2. 17121 hardcode_direct_GCJ=unsupported 17122 fi 17123 ;; 17124 17125 aix4* | aix5*) 17126 if test "$host_cpu" = ia64; then 17127 # On IA64, the linker does run time linking by default, so we don't 17128 # have to do anything special. 17129 aix_use_runtimelinking=no 17130 exp_sym_flag='-Bexport' 17131 no_entry_flag="" 17132 else 17133 # If we're using GNU nm, then we don't want the "-C" option. 17134 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17136 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' 17137 else 17138 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' 17139 fi 17140 aix_use_runtimelinking=no 17141 17142 # Test if we are trying to use run time linking or normal 17143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17144 # need to do runtime linking. 17145 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17146 for ld_flag in $LDFLAGS; do 17147 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17148 aix_use_runtimelinking=yes 17149 break 17150 fi 17151 done 17152 esac 17153 17154 exp_sym_flag='-bexport' 17155 no_entry_flag='-bnoentry' 17156 fi 17157 17158 # When large executables or shared objects are built, AIX ld can 17159 # have problems creating the table of contents. If linking a library 17160 # or program results in "error TOC overflow" add -mminimal-toc to 17161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17163 17164 archive_cmds_GCJ='' 17165 hardcode_direct_GCJ=yes 17166 hardcode_libdir_separator_GCJ=':' 17167 link_all_deplibs_GCJ=yes 17168 17169 if test "$GCC" = yes; then 17170 case $host_os in aix4.[012]|aix4.[012].*) 17171 # We only want to do this on AIX 4.2 and lower, the check 17172 # below for broken collect2 doesn't work under 4.3+ 17173 collect2name=`${CC} -print-prog-name=collect2` 17174 if test -f "$collect2name" && \ 17175 strings "$collect2name" | grep resolve_lib_name >/dev/null 17176 then 17177 # We have reworked collect2 17178 hardcode_direct_GCJ=yes 17179 else 17180 # We have old collect2 17181 hardcode_direct_GCJ=unsupported 17182 # It fails to find uninstalled libraries when the uninstalled 17183 # path is not listed in the libpath. Setting hardcode_minus_L 17184 # to unsupported forces relinking 17185 hardcode_minus_L_GCJ=yes 17186 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17187 hardcode_libdir_separator_GCJ= 17188 fi 17189 esac 17190 shared_flag='-shared' 17191 if test "$aix_use_runtimelinking" = yes; then 17192 shared_flag="$shared_flag "'${wl}-G' 17193 fi 17194 else 17195 # not using gcc 17196 if test "$host_cpu" = ia64; then 17197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17198 # chokes on -Wl,-G. The following line is correct: 17199 shared_flag='-G' 17200 else 17201 if test "$aix_use_runtimelinking" = yes; then 17202 shared_flag='${wl}-G' 17203 else 17204 shared_flag='${wl}-bM:SRE' 17205 fi 17206 fi 17207 fi 17208 17209 # It seems that -bexpall does not export symbols beginning with 17210 # underscore (_), so it is better to generate a list of symbols to export. 17211 always_export_symbols_GCJ=yes 17212 if test "$aix_use_runtimelinking" = yes; then 17213 # Warning - without using the other runtime loading flags (-brtl), 17214 # -berok will link without error, but may produce a broken library. 17215 allow_undefined_flag_GCJ='-berok' 17216 # Determine the default libpath from the value encoded in an empty executable. 17217 cat >conftest.$ac_ext <<_ACEOF 17218/* confdefs.h. */ 17219_ACEOF 17220cat confdefs.h >>conftest.$ac_ext 17221cat >>conftest.$ac_ext <<_ACEOF 17222/* end confdefs.h. */ 17223 17224int 17225main () 17226{ 17227 17228 ; 17229 return 0; 17230} 17231_ACEOF 17232rm -f conftest.$ac_objext conftest$ac_exeext 17233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17234 (eval $ac_link) 2>conftest.er1 17235 ac_status=$? 17236 grep -v '^ *+' conftest.er1 >conftest.err 17237 rm -f conftest.er1 17238 cat conftest.err >&5 17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17240 (exit $ac_status); } && 17241 { ac_try='test -z "$ac_c_werror_flag" 17242 || test ! -s conftest.err' 17243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17244 (eval $ac_try) 2>&5 17245 ac_status=$? 17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17247 (exit $ac_status); }; } && 17248 { ac_try='test -s conftest$ac_exeext' 17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17250 (eval $ac_try) 2>&5 17251 ac_status=$? 17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17253 (exit $ac_status); }; }; then 17254 17255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17256}'` 17257# Check for a 64-bit object if we didn't find anything. 17258if 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; } 17259}'`; fi 17260else 17261 echo "$as_me: failed program was:" >&5 17262sed 's/^/| /' conftest.$ac_ext >&5 17263 17264fi 17265rm -f conftest.err conftest.$ac_objext \ 17266 conftest$ac_exeext conftest.$ac_ext 17267if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17268 17269 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17270 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17271 else 17272 if test "$host_cpu" = ia64; then 17273 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17274 allow_undefined_flag_GCJ="-z nodefs" 17275 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 17276 else 17277 # Determine the default libpath from the value encoded in an empty executable. 17278 cat >conftest.$ac_ext <<_ACEOF 17279/* confdefs.h. */ 17280_ACEOF 17281cat confdefs.h >>conftest.$ac_ext 17282cat >>conftest.$ac_ext <<_ACEOF 17283/* end confdefs.h. */ 17284 17285int 17286main () 17287{ 17288 17289 ; 17290 return 0; 17291} 17292_ACEOF 17293rm -f conftest.$ac_objext conftest$ac_exeext 17294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17295 (eval $ac_link) 2>conftest.er1 17296 ac_status=$? 17297 grep -v '^ *+' conftest.er1 >conftest.err 17298 rm -f conftest.er1 17299 cat conftest.err >&5 17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17301 (exit $ac_status); } && 17302 { ac_try='test -z "$ac_c_werror_flag" 17303 || test ! -s conftest.err' 17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17305 (eval $ac_try) 2>&5 17306 ac_status=$? 17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17308 (exit $ac_status); }; } && 17309 { ac_try='test -s conftest$ac_exeext' 17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17311 (eval $ac_try) 2>&5 17312 ac_status=$? 17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17314 (exit $ac_status); }; }; then 17315 17316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17317}'` 17318# Check for a 64-bit object if we didn't find anything. 17319if 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; } 17320}'`; fi 17321else 17322 echo "$as_me: failed program was:" >&5 17323sed 's/^/| /' conftest.$ac_ext >&5 17324 17325fi 17326rm -f conftest.err conftest.$ac_objext \ 17327 conftest$ac_exeext conftest.$ac_ext 17328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17329 17330 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17331 # Warning - without using the other run time loading flags, 17332 # -berok will link without error, but may produce a broken library. 17333 no_undefined_flag_GCJ=' ${wl}-bernotok' 17334 allow_undefined_flag_GCJ=' ${wl}-berok' 17335 # -bexpall does not export symbols beginning with underscore (_) 17336 always_export_symbols_GCJ=yes 17337 # Exported symbols can be pulled into shared objects from archives 17338 whole_archive_flag_spec_GCJ=' ' 17339 archive_cmds_need_lc_GCJ=yes 17340 # This is similar to how AIX traditionally builds its shared libraries. 17341 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17342 fi 17343 fi 17344 ;; 17345 17346 amigaos*) 17347 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)' 17348 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17349 hardcode_minus_L_GCJ=yes 17350 # see comment about different semantics on the GNU ld section 17351 ld_shlibs_GCJ=no 17352 ;; 17353 17354 bsdi[45]*) 17355 export_dynamic_flag_spec_GCJ=-rdynamic 17356 ;; 17357 17358 cygwin* | mingw* | pw32*) 17359 # When not using gcc, we currently assume that we are using 17360 # Microsoft Visual C++. 17361 # hardcode_libdir_flag_spec is actually meaningless, as there is 17362 # no search path for DLLs. 17363 hardcode_libdir_flag_spec_GCJ=' ' 17364 allow_undefined_flag_GCJ=unsupported 17365 # Tell ltmain to make .lib files, not .a files. 17366 libext=lib 17367 # Tell ltmain to make .dll files, not .so files. 17368 shrext_cmds=".dll" 17369 # FIXME: Setting linknames here is a bad hack. 17370 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17371 # The linker will automatically build a .lib file if we build a DLL. 17372 old_archive_From_new_cmds_GCJ='true' 17373 # FIXME: Should let the user specify the lib program. 17374 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17375 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17376 enable_shared_with_static_runtimes_GCJ=yes 17377 ;; 17378 17379 darwin* | rhapsody*) 17380 case $host_os in 17381 rhapsody* | darwin1.[012]) 17382 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17383 ;; 17384 *) # Darwin 1.3 on 17385 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17386 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17387 else 17388 case ${MACOSX_DEPLOYMENT_TARGET} in 17389 10.[012]) 17390 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17391 ;; 17392 10.*) 17393 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17394 ;; 17395 esac 17396 fi 17397 ;; 17398 esac 17399 archive_cmds_need_lc_GCJ=no 17400 hardcode_direct_GCJ=no 17401 hardcode_automatic_GCJ=yes 17402 hardcode_shlibpath_var_GCJ=unsupported 17403 whole_archive_flag_spec_GCJ='' 17404 link_all_deplibs_GCJ=yes 17405 if test "$GCC" = yes ; then 17406 output_verbose_link_cmd='echo' 17407 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17408 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17409 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17410 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}' 17411 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}' 17412 else 17413 case $cc_basename in 17414 xlc*) 17415 output_verbose_link_cmd='echo' 17416 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17417 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17418 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17419 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}' 17420 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}' 17421 ;; 17422 *) 17423 ld_shlibs_GCJ=no 17424 ;; 17425 esac 17426 fi 17427 ;; 17428 17429 dgux*) 17430 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17431 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17432 hardcode_shlibpath_var_GCJ=no 17433 ;; 17434 17435 freebsd1*) 17436 ld_shlibs_GCJ=no 17437 ;; 17438 17439 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17440 # support. Future versions do this automatically, but an explicit c++rt0.o 17441 # does not break anything, and helps significantly (at the cost of a little 17442 # extra space). 17443 freebsd2.2*) 17444 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17445 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17446 hardcode_direct_GCJ=yes 17447 hardcode_shlibpath_var_GCJ=no 17448 ;; 17449 17450 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17451 freebsd2*) 17452 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17453 hardcode_direct_GCJ=yes 17454 hardcode_minus_L_GCJ=yes 17455 hardcode_shlibpath_var_GCJ=no 17456 ;; 17457 17458 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17459 freebsd* | kfreebsd*-gnu | dragonfly*) 17460 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17461 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17462 hardcode_direct_GCJ=yes 17463 hardcode_shlibpath_var_GCJ=no 17464 ;; 17465 17466 hpux9*) 17467 if test "$GCC" = yes; then 17468 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' 17469 else 17470 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' 17471 fi 17472 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17473 hardcode_libdir_separator_GCJ=: 17474 hardcode_direct_GCJ=yes 17475 17476 # hardcode_minus_L: Not really in the search PATH, 17477 # but as the default location of the library. 17478 hardcode_minus_L_GCJ=yes 17479 export_dynamic_flag_spec_GCJ='${wl}-E' 17480 ;; 17481 17482 hpux10* | hpux11*) 17483 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17484 case $host_cpu in 17485 hppa*64*|ia64*) 17486 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17487 ;; 17488 *) 17489 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17490 ;; 17491 esac 17492 else 17493 case $host_cpu in 17494 hppa*64*|ia64*) 17495 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17496 ;; 17497 *) 17498 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17499 ;; 17500 esac 17501 fi 17502 if test "$with_gnu_ld" = no; then 17503 case $host_cpu in 17504 hppa*64*) 17505 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17506 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17507 hardcode_libdir_separator_GCJ=: 17508 hardcode_direct_GCJ=no 17509 hardcode_shlibpath_var_GCJ=no 17510 ;; 17511 ia64*) 17512 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17513 hardcode_direct_GCJ=no 17514 hardcode_shlibpath_var_GCJ=no 17515 17516 # hardcode_minus_L: Not really in the search PATH, 17517 # but as the default location of the library. 17518 hardcode_minus_L_GCJ=yes 17519 ;; 17520 *) 17521 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17522 hardcode_libdir_separator_GCJ=: 17523 hardcode_direct_GCJ=yes 17524 export_dynamic_flag_spec_GCJ='${wl}-E' 17525 17526 # hardcode_minus_L: Not really in the search PATH, 17527 # but as the default location of the library. 17528 hardcode_minus_L_GCJ=yes 17529 ;; 17530 esac 17531 fi 17532 ;; 17533 17534 irix5* | irix6* | nonstopux*) 17535 if test "$GCC" = yes; then 17536 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' 17537 else 17538 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' 17539 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17540 fi 17541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17542 hardcode_libdir_separator_GCJ=: 17543 link_all_deplibs_GCJ=yes 17544 ;; 17545 17546 netbsd*) 17547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17548 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17549 else 17550 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17551 fi 17552 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17553 hardcode_direct_GCJ=yes 17554 hardcode_shlibpath_var_GCJ=no 17555 ;; 17556 17557 newsos6) 17558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17559 hardcode_direct_GCJ=yes 17560 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17561 hardcode_libdir_separator_GCJ=: 17562 hardcode_shlibpath_var_GCJ=no 17563 ;; 17564 17565 openbsd*) 17566 hardcode_direct_GCJ=yes 17567 hardcode_shlibpath_var_GCJ=no 17568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17569 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17570 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17572 export_dynamic_flag_spec_GCJ='${wl}-E' 17573 else 17574 case $host_os in 17575 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17576 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17577 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17578 ;; 17579 *) 17580 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17581 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17582 ;; 17583 esac 17584 fi 17585 ;; 17586 17587 os2*) 17588 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17589 hardcode_minus_L_GCJ=yes 17590 allow_undefined_flag_GCJ=unsupported 17591 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' 17592 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17593 ;; 17594 17595 osf3*) 17596 if test "$GCC" = yes; then 17597 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17598 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' 17599 else 17600 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17601 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' 17602 fi 17603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17604 hardcode_libdir_separator_GCJ=: 17605 ;; 17606 17607 osf4* | osf5*) # as osf3* with the addition of -msym flag 17608 if test "$GCC" = yes; then 17609 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17610 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' 17611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17612 else 17613 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17614 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' 17615 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~ 17616 $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' 17617 17618 # Both c and cxx compiler support -rpath directly 17619 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17620 fi 17621 hardcode_libdir_separator_GCJ=: 17622 ;; 17623 17624 sco3.2v5*) 17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17626 hardcode_shlibpath_var_GCJ=no 17627 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17628 runpath_var=LD_RUN_PATH 17629 hardcode_runpath_var=yes 17630 ;; 17631 17632 solaris*) 17633 no_undefined_flag_GCJ=' -z text' 17634 if test "$GCC" = yes; then 17635 wlarc='${wl}' 17636 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17637 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17638 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17639 else 17640 wlarc='' 17641 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17642 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17643 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17644 fi 17645 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17646 hardcode_shlibpath_var_GCJ=no 17647 case $host_os in 17648 solaris2.[0-5] | solaris2.[0-5].*) ;; 17649 *) 17650 # The compiler driver will combine linker options so we 17651 # cannot just pass the convience library names through 17652 # without $wl, iff we do not link with $LD. 17653 # Luckily, gcc supports the same syntax we need for Sun Studio. 17654 # Supported since Solaris 2.6 (maybe 2.5.1?) 17655 case $wlarc in 17656 '') 17657 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17658 *) 17659 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' ;; 17660 esac ;; 17661 esac 17662 link_all_deplibs_GCJ=yes 17663 ;; 17664 17665 sunos4*) 17666 if test "x$host_vendor" = xsequent; then 17667 # Use $CC to link under sequent, because it throws in some extra .o 17668 # files that make .init and .fini sections work. 17669 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17670 else 17671 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17672 fi 17673 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17674 hardcode_direct_GCJ=yes 17675 hardcode_minus_L_GCJ=yes 17676 hardcode_shlibpath_var_GCJ=no 17677 ;; 17678 17679 sysv4) 17680 case $host_vendor in 17681 sni) 17682 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17683 hardcode_direct_GCJ=yes # is this really true??? 17684 ;; 17685 siemens) 17686 ## LD is ld it makes a PLAMLIB 17687 ## CC just makes a GrossModule. 17688 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17689 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17690 hardcode_direct_GCJ=no 17691 ;; 17692 motorola) 17693 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17694 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17695 ;; 17696 esac 17697 runpath_var='LD_RUN_PATH' 17698 hardcode_shlibpath_var_GCJ=no 17699 ;; 17700 17701 sysv4.3*) 17702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17703 hardcode_shlibpath_var_GCJ=no 17704 export_dynamic_flag_spec_GCJ='-Bexport' 17705 ;; 17706 17707 sysv4*MP*) 17708 if test -d /usr/nec; then 17709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17710 hardcode_shlibpath_var_GCJ=no 17711 runpath_var=LD_RUN_PATH 17712 hardcode_runpath_var=yes 17713 ld_shlibs_GCJ=yes 17714 fi 17715 ;; 17716 17717 sysv4.2uw2*) 17718 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17719 hardcode_direct_GCJ=yes 17720 hardcode_minus_L_GCJ=no 17721 hardcode_shlibpath_var_GCJ=no 17722 hardcode_runpath_var=yes 17723 runpath_var=LD_RUN_PATH 17724 ;; 17725 17726 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17727 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17728 if test "$GCC" = yes; then 17729 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17730 else 17731 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17732 fi 17733 runpath_var='LD_RUN_PATH' 17734 hardcode_shlibpath_var_GCJ=no 17735 ;; 17736 17737 sysv5*) 17738 no_undefined_flag_GCJ=' -z text' 17739 # $CC -shared without GNU ld will not create a library from C++ 17740 # object files and a static libstdc++, better avoid it by now 17741 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17742 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17744 hardcode_libdir_flag_spec_GCJ= 17745 hardcode_shlibpath_var_GCJ=no 17746 runpath_var='LD_RUN_PATH' 17747 ;; 17748 17749 uts4*) 17750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17751 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17752 hardcode_shlibpath_var_GCJ=no 17753 ;; 17754 17755 *) 17756 ld_shlibs_GCJ=no 17757 ;; 17758 esac 17759 fi 17760 17761echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17762echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17763test "$ld_shlibs_GCJ" = no && can_build_shared=no 17764 17765variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17766if test "$GCC" = yes; then 17767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17768fi 17769 17770# 17771# Do we need to explicitly link libc? 17772# 17773case "x$archive_cmds_need_lc_GCJ" in 17774x|xyes) 17775 # Assume -lc should be added 17776 archive_cmds_need_lc_GCJ=yes 17777 17778 if test "$enable_shared" = yes && test "$GCC" = yes; then 17779 case $archive_cmds_GCJ in 17780 *'~'*) 17781 # FIXME: we may have to deal with multi-command sequences. 17782 ;; 17783 '$CC '*) 17784 # Test whether the compiler implicitly links with -lc since on some 17785 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17786 # to ld, don't add -lc before -lgcc. 17787 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17788echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17789 $rm conftest* 17790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17791 17792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17793 (eval $ac_compile) 2>&5 17794 ac_status=$? 17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17796 (exit $ac_status); } 2>conftest.err; then 17797 soname=conftest 17798 lib=conftest 17799 libobjs=conftest.$ac_objext 17800 deplibs= 17801 wl=$lt_prog_compiler_wl_GCJ 17802 compiler_flags=-v 17803 linker_flags=-v 17804 verstring= 17805 output_objdir=. 17806 libname=conftest 17807 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17808 allow_undefined_flag_GCJ= 17809 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17810 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17811 ac_status=$? 17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17813 (exit $ac_status); } 17814 then 17815 archive_cmds_need_lc_GCJ=no 17816 else 17817 archive_cmds_need_lc_GCJ=yes 17818 fi 17819 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17820 else 17821 cat conftest.err 1>&5 17822 fi 17823 $rm conftest* 17824 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17825echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17826 ;; 17827 esac 17828 fi 17829 ;; 17830esac 17831 17832echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17833echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17834library_names_spec= 17835libname_spec='lib$name' 17836soname_spec= 17837shrext_cmds=".so" 17838postinstall_cmds= 17839postuninstall_cmds= 17840finish_cmds= 17841finish_eval= 17842shlibpath_var= 17843shlibpath_overrides_runpath=unknown 17844version_type=none 17845dynamic_linker="$host_os ld.so" 17846sys_lib_dlsearch_path_spec="/lib /usr/lib" 17847if test "$GCC" = yes; then 17848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17849 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17850 # if the path contains ";" then we assume it to be the separator 17851 # otherwise default to the standard path separator (i.e. ":") - it is 17852 # assumed that no part of a normal pathname contains ";" but that should 17853 # okay in the real world where ";" in dirpaths is itself problematic. 17854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17855 else 17856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17857 fi 17858else 17859 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17860fi 17861need_lib_prefix=unknown 17862hardcode_into_libs=no 17863 17864# when you set need_version to no, make sure it does not cause -set_version 17865# flags to be left without arguments 17866need_version=unknown 17867 17868case $host_os in 17869aix3*) 17870 version_type=linux 17871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17872 shlibpath_var=LIBPATH 17873 17874 # AIX 3 has no versioning support, so we append a major version to the name. 17875 soname_spec='${libname}${release}${shared_ext}$major' 17876 ;; 17877 17878aix4* | aix5*) 17879 version_type=linux 17880 need_lib_prefix=no 17881 need_version=no 17882 hardcode_into_libs=yes 17883 if test "$host_cpu" = ia64; then 17884 # AIX 5 supports IA64 17885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17886 shlibpath_var=LD_LIBRARY_PATH 17887 else 17888 # With GCC up to 2.95.x, collect2 would create an import file 17889 # for dependence libraries. The import file would start with 17890 # the line `#! .'. This would cause the generated library to 17891 # depend on `.', always an invalid library. This was fixed in 17892 # development snapshots of GCC prior to 3.0. 17893 case $host_os in 17894 aix4 | aix4.[01] | aix4.[01].*) 17895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17896 echo ' yes ' 17897 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17898 : 17899 else 17900 can_build_shared=no 17901 fi 17902 ;; 17903 esac 17904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17905 # soname into executable. Probably we can add versioning support to 17906 # collect2, so additional links can be useful in future. 17907 if test "$aix_use_runtimelinking" = yes; then 17908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17909 # instead of lib<name>.a to let people know that these are not 17910 # typical AIX shared libraries. 17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17912 else 17913 # We preserve .a as extension for shared libraries through AIX4.2 17914 # and later when we are not doing run time linking. 17915 library_names_spec='${libname}${release}.a $libname.a' 17916 soname_spec='${libname}${release}${shared_ext}$major' 17917 fi 17918 shlibpath_var=LIBPATH 17919 fi 17920 ;; 17921 17922amigaos*) 17923 library_names_spec='$libname.ixlibrary $libname.a' 17924 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17925 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' 17926 ;; 17927 17928beos*) 17929 library_names_spec='${libname}${shared_ext}' 17930 dynamic_linker="$host_os ld.so" 17931 shlibpath_var=LIBRARY_PATH 17932 ;; 17933 17934bsdi[45]*) 17935 version_type=linux 17936 need_version=no 17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17938 soname_spec='${libname}${release}${shared_ext}$major' 17939 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17940 shlibpath_var=LD_LIBRARY_PATH 17941 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17942 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17943 # the default ld.so.conf also contains /usr/contrib/lib and 17944 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17945 # libtool to hard-code these into programs 17946 ;; 17947 17948cygwin* | mingw* | pw32*) 17949 version_type=windows 17950 shrext_cmds=".dll" 17951 need_version=no 17952 need_lib_prefix=no 17953 17954 case $GCC,$host_os in 17955 yes,cygwin* | yes,mingw* | yes,pw32*) 17956 library_names_spec='$libname.dll.a' 17957 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17958 postinstall_cmds='base_file=`basename \${file}`~ 17959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17960 dldir=$destdir/`dirname \$dlpath`~ 17961 test -d \$dldir || mkdir -p \$dldir~ 17962 $install_prog $dir/$dlname \$dldir/$dlname~ 17963 chmod a+x \$dldir/$dlname' 17964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17965 dlpath=$dir/\$dldll~ 17966 $rm \$dlpath' 17967 shlibpath_overrides_runpath=yes 17968 17969 case $host_os in 17970 cygwin*) 17971 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17973 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17974 ;; 17975 mingw*) 17976 # MinGW DLLs use traditional 'lib' prefix 17977 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17978 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17979 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17980 # It is most probably a Windows format PATH printed by 17981 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17982 # path with ; separators, and with drive letters. We can handle the 17983 # drive letters (cygwin fileutils understands them), so leave them, 17984 # especially as we might pass files found there to a mingw objdump, 17985 # which wouldn't understand a cygwinified path. Ahh. 17986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17987 else 17988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17989 fi 17990 ;; 17991 pw32*) 17992 # pw32 DLLs use 'pw' prefix rather than 'lib' 17993 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17994 ;; 17995 esac 17996 ;; 17997 17998 *) 17999 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18000 ;; 18001 esac 18002 dynamic_linker='Win32 ld.exe' 18003 # FIXME: first we should search . and the directory the executable is in 18004 shlibpath_var=PATH 18005 ;; 18006 18007darwin* | rhapsody*) 18008 dynamic_linker="$host_os dyld" 18009 version_type=darwin 18010 need_lib_prefix=no 18011 need_version=no 18012 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18013 soname_spec='${libname}${release}${major}$shared_ext' 18014 shlibpath_overrides_runpath=yes 18015 shlibpath_var=DYLD_LIBRARY_PATH 18016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18017 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18018 if test "$GCC" = yes; then 18019 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"` 18020 else 18021 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18022 fi 18023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18024 ;; 18025 18026dgux*) 18027 version_type=linux 18028 need_lib_prefix=no 18029 need_version=no 18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18031 soname_spec='${libname}${release}${shared_ext}$major' 18032 shlibpath_var=LD_LIBRARY_PATH 18033 ;; 18034 18035freebsd1*) 18036 dynamic_linker=no 18037 ;; 18038 18039haiku*) 18040 library_names_spec='${libname}${shared_ext}' 18041 dynamic_linker="$host_os ld.so" 18042 shlibpath_var=LIBRARY_PATH 18043 ;; 18044 18045kfreebsd*-gnu) 18046 version_type=linux 18047 need_lib_prefix=no 18048 need_version=no 18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18050 soname_spec='${libname}${release}${shared_ext}$major' 18051 shlibpath_var=LD_LIBRARY_PATH 18052 shlibpath_overrides_runpath=no 18053 hardcode_into_libs=yes 18054 dynamic_linker='GNU ld.so' 18055 ;; 18056 18057freebsd* | dragonfly*) 18058 # DragonFly does not have aout. When/if they implement a new 18059 # versioning mechanism, adjust this. 18060 if test -x /usr/bin/objformat; then 18061 objformat=`/usr/bin/objformat` 18062 else 18063 case $host_os in 18064 freebsd[123]*) objformat=aout ;; 18065 *) objformat=elf ;; 18066 esac 18067 fi 18068 version_type=freebsd-$objformat 18069 case $version_type in 18070 freebsd-elf*) 18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18072 need_version=no 18073 need_lib_prefix=no 18074 ;; 18075 freebsd-*) 18076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18077 need_version=yes 18078 ;; 18079 esac 18080 shlibpath_var=LD_LIBRARY_PATH 18081 case $host_os in 18082 freebsd2*) 18083 shlibpath_overrides_runpath=yes 18084 ;; 18085 freebsd3.[01]* | freebsdelf3.[01]*) 18086 shlibpath_overrides_runpath=yes 18087 hardcode_into_libs=yes 18088 ;; 18089 *) # from 3.2 on 18090 shlibpath_overrides_runpath=no 18091 hardcode_into_libs=yes 18092 ;; 18093 esac 18094 ;; 18095 18096gnu*) 18097 version_type=linux 18098 need_lib_prefix=no 18099 need_version=no 18100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18101 soname_spec='${libname}${release}${shared_ext}$major' 18102 shlibpath_var=LD_LIBRARY_PATH 18103 hardcode_into_libs=yes 18104 ;; 18105 18106hpux9* | hpux10* | hpux11*) 18107 # Give a soname corresponding to the major version so that dld.sl refuses to 18108 # link against other versions. 18109 version_type=sunos 18110 need_lib_prefix=no 18111 need_version=no 18112 case $host_cpu in 18113 ia64*) 18114 shrext_cmds='.so' 18115 hardcode_into_libs=yes 18116 dynamic_linker="$host_os dld.so" 18117 shlibpath_var=LD_LIBRARY_PATH 18118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18120 soname_spec='${libname}${release}${shared_ext}$major' 18121 if test "X$HPUX_IA64_MODE" = X32; then 18122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18123 else 18124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18125 fi 18126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18127 ;; 18128 hppa*64*) 18129 shrext_cmds='.sl' 18130 hardcode_into_libs=yes 18131 dynamic_linker="$host_os dld.sl" 18132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18135 soname_spec='${libname}${release}${shared_ext}$major' 18136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18138 ;; 18139 *) 18140 shrext_cmds='.sl' 18141 dynamic_linker="$host_os dld.sl" 18142 shlibpath_var=SHLIB_PATH 18143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18145 soname_spec='${libname}${release}${shared_ext}$major' 18146 ;; 18147 esac 18148 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18149 postinstall_cmds='chmod 555 $lib' 18150 ;; 18151 18152irix5* | irix6* | nonstopux*) 18153 case $host_os in 18154 nonstopux*) version_type=nonstopux ;; 18155 *) 18156 if test "$lt_cv_prog_gnu_ld" = yes; then 18157 version_type=linux 18158 else 18159 version_type=irix 18160 fi ;; 18161 esac 18162 need_lib_prefix=no 18163 need_version=no 18164 soname_spec='${libname}${release}${shared_ext}$major' 18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18166 case $host_os in 18167 irix5* | nonstopux*) 18168 libsuff= shlibsuff= 18169 ;; 18170 *) 18171 case $LD in # libtool.m4 will add one of these switches to LD 18172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18173 libsuff= shlibsuff= libmagic=32-bit;; 18174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18175 libsuff=32 shlibsuff=N32 libmagic=N32;; 18176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18177 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18178 *) libsuff= shlibsuff= libmagic=never-match;; 18179 esac 18180 ;; 18181 esac 18182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18183 shlibpath_overrides_runpath=no 18184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18186 hardcode_into_libs=yes 18187 ;; 18188 18189# No shared lib support for Linux oldld, aout, or coff. 18190linux*oldld* | linux*aout* | linux*coff*) 18191 dynamic_linker=no 18192 ;; 18193 18194# This must be Linux ELF. 18195linux*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18202 shlibpath_var=LD_LIBRARY_PATH 18203 shlibpath_overrides_runpath=no 18204 # This implies no fast_install, which is unacceptable. 18205 # Some rework will be needed to allow for fast_install 18206 # before this can be enabled. 18207 hardcode_into_libs=yes 18208 18209 # Append ld.so.conf contents to the search path 18210 if test -f /etc/ld.so.conf; then 18211 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' ' '` 18212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18213 fi 18214 18215 # We used to test for /lib/ld.so.1 and disable shared libraries on 18216 # powerpc, because MkLinux only supported shared libraries with the 18217 # GNU dynamic linker. Since this was broken with cross compilers, 18218 # most powerpc-linux boxes support dynamic linking these days and 18219 # people can always --disable-shared, the test was removed, and we 18220 # assume the GNU/Linux dynamic linker is in use. 18221 dynamic_linker='GNU/Linux ld.so' 18222 ;; 18223 18224knetbsd*-gnu) 18225 version_type=linux 18226 need_lib_prefix=no 18227 need_version=no 18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18229 soname_spec='${libname}${release}${shared_ext}$major' 18230 shlibpath_var=LD_LIBRARY_PATH 18231 shlibpath_overrides_runpath=no 18232 hardcode_into_libs=yes 18233 dynamic_linker='GNU ld.so' 18234 ;; 18235 18236netbsd*) 18237 version_type=sunos 18238 need_lib_prefix=no 18239 need_version=no 18240 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18243 dynamic_linker='NetBSD (a.out) ld.so' 18244 else 18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18246 soname_spec='${libname}${release}${shared_ext}$major' 18247 dynamic_linker='NetBSD ld.elf_so' 18248 fi 18249 shlibpath_var=LD_LIBRARY_PATH 18250 shlibpath_overrides_runpath=yes 18251 hardcode_into_libs=yes 18252 ;; 18253 18254newsos6) 18255 version_type=linux 18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18257 shlibpath_var=LD_LIBRARY_PATH 18258 shlibpath_overrides_runpath=yes 18259 ;; 18260 18261nto-qnx*) 18262 version_type=linux 18263 need_lib_prefix=no 18264 need_version=no 18265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18266 soname_spec='${libname}${release}${shared_ext}$major' 18267 shlibpath_var=LD_LIBRARY_PATH 18268 shlibpath_overrides_runpath=yes 18269 ;; 18270 18271openbsd*) 18272 version_type=sunos 18273 need_lib_prefix=no 18274 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18275 case $host_os in 18276 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18277 *) need_version=no ;; 18278 esac 18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18281 shlibpath_var=LD_LIBRARY_PATH 18282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18283 case $host_os in 18284 openbsd2.[89] | openbsd2.[89].*) 18285 shlibpath_overrides_runpath=no 18286 ;; 18287 *) 18288 shlibpath_overrides_runpath=yes 18289 ;; 18290 esac 18291 else 18292 shlibpath_overrides_runpath=yes 18293 fi 18294 ;; 18295 18296os2*) 18297 libname_spec='$name' 18298 shrext_cmds=".dll" 18299 need_lib_prefix=no 18300 library_names_spec='$libname${shared_ext} $libname.a' 18301 dynamic_linker='OS/2 ld.exe' 18302 shlibpath_var=LIBPATH 18303 ;; 18304 18305osf3* | osf4* | osf5*) 18306 version_type=osf 18307 need_lib_prefix=no 18308 need_version=no 18309 soname_spec='${libname}${release}${shared_ext}$major' 18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18311 shlibpath_var=LD_LIBRARY_PATH 18312 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18313 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18314 ;; 18315 18316sco3.2v5*) 18317 version_type=osf 18318 soname_spec='${libname}${release}${shared_ext}$major' 18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18320 shlibpath_var=LD_LIBRARY_PATH 18321 ;; 18322 18323solaris*) 18324 version_type=linux 18325 need_lib_prefix=no 18326 need_version=no 18327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18328 soname_spec='${libname}${release}${shared_ext}$major' 18329 shlibpath_var=LD_LIBRARY_PATH 18330 shlibpath_overrides_runpath=yes 18331 hardcode_into_libs=yes 18332 # ldd complains unless libraries are executable 18333 postinstall_cmds='chmod +x $lib' 18334 ;; 18335 18336sunos4*) 18337 version_type=sunos 18338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18339 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18340 shlibpath_var=LD_LIBRARY_PATH 18341 shlibpath_overrides_runpath=yes 18342 if test "$with_gnu_ld" = yes; then 18343 need_lib_prefix=no 18344 fi 18345 need_version=yes 18346 ;; 18347 18348sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18349 version_type=linux 18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18351 soname_spec='${libname}${release}${shared_ext}$major' 18352 shlibpath_var=LD_LIBRARY_PATH 18353 case $host_vendor in 18354 sni) 18355 shlibpath_overrides_runpath=no 18356 need_lib_prefix=no 18357 export_dynamic_flag_spec='${wl}-Blargedynsym' 18358 runpath_var=LD_RUN_PATH 18359 ;; 18360 siemens) 18361 need_lib_prefix=no 18362 ;; 18363 motorola) 18364 need_lib_prefix=no 18365 need_version=no 18366 shlibpath_overrides_runpath=no 18367 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18368 ;; 18369 esac 18370 ;; 18371 18372sysv4*MP*) 18373 if test -d /usr/nec ;then 18374 version_type=linux 18375 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18376 soname_spec='$libname${shared_ext}.$major' 18377 shlibpath_var=LD_LIBRARY_PATH 18378 fi 18379 ;; 18380 18381uts4*) 18382 version_type=linux 18383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18384 soname_spec='${libname}${release}${shared_ext}$major' 18385 shlibpath_var=LD_LIBRARY_PATH 18386 ;; 18387 18388*) 18389 dynamic_linker=no 18390 ;; 18391esac 18392echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18393echo "${ECHO_T}$dynamic_linker" >&6 18394test "$dynamic_linker" = no && can_build_shared=no 18395 18396echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18397echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18398hardcode_action_GCJ= 18399if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18400 test -n "$runpath_var_GCJ" || \ 18401 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18402 18403 # We can hardcode non-existant directories. 18404 if test "$hardcode_direct_GCJ" != no && 18405 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18406 # have to relink, otherwise we might link with an installed library 18407 # when we should be linking with a yet-to-be-installed one 18408 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18409 test "$hardcode_minus_L_GCJ" != no; then 18410 # Linking always hardcodes the temporary library directory. 18411 hardcode_action_GCJ=relink 18412 else 18413 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18414 hardcode_action_GCJ=immediate 18415 fi 18416else 18417 # We cannot hardcode anything, or else we can only hardcode existing 18418 # directories. 18419 hardcode_action_GCJ=unsupported 18420fi 18421echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18422echo "${ECHO_T}$hardcode_action_GCJ" >&6 18423 18424if test "$hardcode_action_GCJ" = relink; then 18425 # Fast installation is not supported 18426 enable_fast_install=no 18427elif test "$shlibpath_overrides_runpath" = yes || 18428 test "$enable_shared" = no; then 18429 # Fast installation is not necessary 18430 enable_fast_install=needless 18431fi 18432 18433striplib= 18434old_striplib= 18435echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18436echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18437if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18438 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18439 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18440 echo "$as_me:$LINENO: result: yes" >&5 18441echo "${ECHO_T}yes" >&6 18442else 18443# FIXME - insert some real tests, host_os isn't really good enough 18444 case $host_os in 18445 darwin*) 18446 if test -n "$STRIP" ; then 18447 striplib="$STRIP -x" 18448 echo "$as_me:$LINENO: result: yes" >&5 18449echo "${ECHO_T}yes" >&6 18450 else 18451 echo "$as_me:$LINENO: result: no" >&5 18452echo "${ECHO_T}no" >&6 18453fi 18454 ;; 18455 *) 18456 echo "$as_me:$LINENO: result: no" >&5 18457echo "${ECHO_T}no" >&6 18458 ;; 18459 esac 18460fi 18461 18462if test "x$enable_dlopen" != xyes; then 18463 enable_dlopen=unknown 18464 enable_dlopen_self=unknown 18465 enable_dlopen_self_static=unknown 18466else 18467 lt_cv_dlopen=no 18468 lt_cv_dlopen_libs= 18469 18470 case $host_os in 18471 beos*) 18472 lt_cv_dlopen="load_add_on" 18473 lt_cv_dlopen_libs= 18474 lt_cv_dlopen_self=yes 18475 ;; 18476 18477 mingw* | pw32*) 18478 lt_cv_dlopen="LoadLibrary" 18479 lt_cv_dlopen_libs= 18480 ;; 18481 18482 cygwin*) 18483 lt_cv_dlopen="dlopen" 18484 lt_cv_dlopen_libs= 18485 ;; 18486 18487 darwin*) 18488 # if libdl is installed we need to link against it 18489 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18490echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18491if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18492 echo $ECHO_N "(cached) $ECHO_C" >&6 18493else 18494 ac_check_lib_save_LIBS=$LIBS 18495LIBS="-ldl $LIBS" 18496cat >conftest.$ac_ext <<_ACEOF 18497/* confdefs.h. */ 18498_ACEOF 18499cat confdefs.h >>conftest.$ac_ext 18500cat >>conftest.$ac_ext <<_ACEOF 18501/* end confdefs.h. */ 18502 18503/* Override any gcc2 internal prototype to avoid an error. */ 18504#ifdef __cplusplus 18505extern "C" 18506#endif 18507/* We use char because int might match the return type of a gcc2 18508 builtin and then its argument prototype would still apply. */ 18509char dlopen (); 18510int 18511main () 18512{ 18513dlopen (); 18514 ; 18515 return 0; 18516} 18517_ACEOF 18518rm -f conftest.$ac_objext conftest$ac_exeext 18519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18520 (eval $ac_link) 2>conftest.er1 18521 ac_status=$? 18522 grep -v '^ *+' conftest.er1 >conftest.err 18523 rm -f conftest.er1 18524 cat conftest.err >&5 18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18526 (exit $ac_status); } && 18527 { ac_try='test -z "$ac_c_werror_flag" 18528 || test ! -s conftest.err' 18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18530 (eval $ac_try) 2>&5 18531 ac_status=$? 18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18533 (exit $ac_status); }; } && 18534 { ac_try='test -s conftest$ac_exeext' 18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18536 (eval $ac_try) 2>&5 18537 ac_status=$? 18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18539 (exit $ac_status); }; }; then 18540 ac_cv_lib_dl_dlopen=yes 18541else 18542 echo "$as_me: failed program was:" >&5 18543sed 's/^/| /' conftest.$ac_ext >&5 18544 18545ac_cv_lib_dl_dlopen=no 18546fi 18547rm -f conftest.err conftest.$ac_objext \ 18548 conftest$ac_exeext conftest.$ac_ext 18549LIBS=$ac_check_lib_save_LIBS 18550fi 18551echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18552echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18553if test $ac_cv_lib_dl_dlopen = yes; then 18554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18555else 18556 18557 lt_cv_dlopen="dyld" 18558 lt_cv_dlopen_libs= 18559 lt_cv_dlopen_self=yes 18560 18561fi 18562 18563 ;; 18564 18565 haiku*) 18566 lt_cv_dlopen="load_add_on" 18567 lt_cv_dlopen_libs= 18568 lt_cv_dlopen_self=yes 18569 ;; 18570 18571 *) 18572 echo "$as_me:$LINENO: checking for shl_load" >&5 18573echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18574if test "${ac_cv_func_shl_load+set}" = set; then 18575 echo $ECHO_N "(cached) $ECHO_C" >&6 18576else 18577 cat >conftest.$ac_ext <<_ACEOF 18578/* confdefs.h. */ 18579_ACEOF 18580cat confdefs.h >>conftest.$ac_ext 18581cat >>conftest.$ac_ext <<_ACEOF 18582/* end confdefs.h. */ 18583/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18585#define shl_load innocuous_shl_load 18586 18587/* System header to define __stub macros and hopefully few prototypes, 18588 which can conflict with char shl_load (); below. 18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18590 <limits.h> exists even on freestanding compilers. */ 18591 18592#ifdef __STDC__ 18593# include <limits.h> 18594#else 18595# include <assert.h> 18596#endif 18597 18598#undef shl_load 18599 18600/* Override any gcc2 internal prototype to avoid an error. */ 18601#ifdef __cplusplus 18602extern "C" 18603{ 18604#endif 18605/* We use char because int might match the return type of a gcc2 18606 builtin and then its argument prototype would still apply. */ 18607char shl_load (); 18608/* The GNU C library defines this for functions which it implements 18609 to always fail with ENOSYS. Some functions are actually named 18610 something starting with __ and the normal name is an alias. */ 18611#if defined (__stub_shl_load) || defined (__stub___shl_load) 18612choke me 18613#else 18614char (*f) () = shl_load; 18615#endif 18616#ifdef __cplusplus 18617} 18618#endif 18619 18620int 18621main () 18622{ 18623return f != shl_load; 18624 ; 18625 return 0; 18626} 18627_ACEOF 18628rm -f conftest.$ac_objext conftest$ac_exeext 18629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18630 (eval $ac_link) 2>conftest.er1 18631 ac_status=$? 18632 grep -v '^ *+' conftest.er1 >conftest.err 18633 rm -f conftest.er1 18634 cat conftest.err >&5 18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18636 (exit $ac_status); } && 18637 { ac_try='test -z "$ac_c_werror_flag" 18638 || test ! -s conftest.err' 18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18640 (eval $ac_try) 2>&5 18641 ac_status=$? 18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18643 (exit $ac_status); }; } && 18644 { ac_try='test -s conftest$ac_exeext' 18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18646 (eval $ac_try) 2>&5 18647 ac_status=$? 18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18649 (exit $ac_status); }; }; then 18650 ac_cv_func_shl_load=yes 18651else 18652 echo "$as_me: failed program was:" >&5 18653sed 's/^/| /' conftest.$ac_ext >&5 18654 18655ac_cv_func_shl_load=no 18656fi 18657rm -f conftest.err conftest.$ac_objext \ 18658 conftest$ac_exeext conftest.$ac_ext 18659fi 18660echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18661echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18662if test $ac_cv_func_shl_load = yes; then 18663 lt_cv_dlopen="shl_load" 18664else 18665 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18666echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18667if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18668 echo $ECHO_N "(cached) $ECHO_C" >&6 18669else 18670 ac_check_lib_save_LIBS=$LIBS 18671LIBS="-ldld $LIBS" 18672cat >conftest.$ac_ext <<_ACEOF 18673/* confdefs.h. */ 18674_ACEOF 18675cat confdefs.h >>conftest.$ac_ext 18676cat >>conftest.$ac_ext <<_ACEOF 18677/* end confdefs.h. */ 18678 18679/* Override any gcc2 internal prototype to avoid an error. */ 18680#ifdef __cplusplus 18681extern "C" 18682#endif 18683/* We use char because int might match the return type of a gcc2 18684 builtin and then its argument prototype would still apply. */ 18685char shl_load (); 18686int 18687main () 18688{ 18689shl_load (); 18690 ; 18691 return 0; 18692} 18693_ACEOF 18694rm -f conftest.$ac_objext conftest$ac_exeext 18695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18696 (eval $ac_link) 2>conftest.er1 18697 ac_status=$? 18698 grep -v '^ *+' conftest.er1 >conftest.err 18699 rm -f conftest.er1 18700 cat conftest.err >&5 18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18702 (exit $ac_status); } && 18703 { ac_try='test -z "$ac_c_werror_flag" 18704 || test ! -s conftest.err' 18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18706 (eval $ac_try) 2>&5 18707 ac_status=$? 18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18709 (exit $ac_status); }; } && 18710 { ac_try='test -s conftest$ac_exeext' 18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18712 (eval $ac_try) 2>&5 18713 ac_status=$? 18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18715 (exit $ac_status); }; }; then 18716 ac_cv_lib_dld_shl_load=yes 18717else 18718 echo "$as_me: failed program was:" >&5 18719sed 's/^/| /' conftest.$ac_ext >&5 18720 18721ac_cv_lib_dld_shl_load=no 18722fi 18723rm -f conftest.err conftest.$ac_objext \ 18724 conftest$ac_exeext conftest.$ac_ext 18725LIBS=$ac_check_lib_save_LIBS 18726fi 18727echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18728echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18729if test $ac_cv_lib_dld_shl_load = yes; then 18730 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18731else 18732 echo "$as_me:$LINENO: checking for dlopen" >&5 18733echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18734if test "${ac_cv_func_dlopen+set}" = set; then 18735 echo $ECHO_N "(cached) $ECHO_C" >&6 18736else 18737 cat >conftest.$ac_ext <<_ACEOF 18738/* confdefs.h. */ 18739_ACEOF 18740cat confdefs.h >>conftest.$ac_ext 18741cat >>conftest.$ac_ext <<_ACEOF 18742/* end confdefs.h. */ 18743/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18744 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18745#define dlopen innocuous_dlopen 18746 18747/* System header to define __stub macros and hopefully few prototypes, 18748 which can conflict with char dlopen (); below. 18749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18750 <limits.h> exists even on freestanding compilers. */ 18751 18752#ifdef __STDC__ 18753# include <limits.h> 18754#else 18755# include <assert.h> 18756#endif 18757 18758#undef dlopen 18759 18760/* Override any gcc2 internal prototype to avoid an error. */ 18761#ifdef __cplusplus 18762extern "C" 18763{ 18764#endif 18765/* We use char because int might match the return type of a gcc2 18766 builtin and then its argument prototype would still apply. */ 18767char dlopen (); 18768/* The GNU C library defines this for functions which it implements 18769 to always fail with ENOSYS. Some functions are actually named 18770 something starting with __ and the normal name is an alias. */ 18771#if defined (__stub_dlopen) || defined (__stub___dlopen) 18772choke me 18773#else 18774char (*f) () = dlopen; 18775#endif 18776#ifdef __cplusplus 18777} 18778#endif 18779 18780int 18781main () 18782{ 18783return f != dlopen; 18784 ; 18785 return 0; 18786} 18787_ACEOF 18788rm -f conftest.$ac_objext conftest$ac_exeext 18789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18790 (eval $ac_link) 2>conftest.er1 18791 ac_status=$? 18792 grep -v '^ *+' conftest.er1 >conftest.err 18793 rm -f conftest.er1 18794 cat conftest.err >&5 18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18796 (exit $ac_status); } && 18797 { ac_try='test -z "$ac_c_werror_flag" 18798 || test ! -s conftest.err' 18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18800 (eval $ac_try) 2>&5 18801 ac_status=$? 18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18803 (exit $ac_status); }; } && 18804 { ac_try='test -s conftest$ac_exeext' 18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18806 (eval $ac_try) 2>&5 18807 ac_status=$? 18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18809 (exit $ac_status); }; }; then 18810 ac_cv_func_dlopen=yes 18811else 18812 echo "$as_me: failed program was:" >&5 18813sed 's/^/| /' conftest.$ac_ext >&5 18814 18815ac_cv_func_dlopen=no 18816fi 18817rm -f conftest.err conftest.$ac_objext \ 18818 conftest$ac_exeext conftest.$ac_ext 18819fi 18820echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18821echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18822if test $ac_cv_func_dlopen = yes; then 18823 lt_cv_dlopen="dlopen" 18824else 18825 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18826echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18827if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18828 echo $ECHO_N "(cached) $ECHO_C" >&6 18829else 18830 ac_check_lib_save_LIBS=$LIBS 18831LIBS="-ldl $LIBS" 18832cat >conftest.$ac_ext <<_ACEOF 18833/* confdefs.h. */ 18834_ACEOF 18835cat confdefs.h >>conftest.$ac_ext 18836cat >>conftest.$ac_ext <<_ACEOF 18837/* end confdefs.h. */ 18838 18839/* Override any gcc2 internal prototype to avoid an error. */ 18840#ifdef __cplusplus 18841extern "C" 18842#endif 18843/* We use char because int might match the return type of a gcc2 18844 builtin and then its argument prototype would still apply. */ 18845char dlopen (); 18846int 18847main () 18848{ 18849dlopen (); 18850 ; 18851 return 0; 18852} 18853_ACEOF 18854rm -f conftest.$ac_objext conftest$ac_exeext 18855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18856 (eval $ac_link) 2>conftest.er1 18857 ac_status=$? 18858 grep -v '^ *+' conftest.er1 >conftest.err 18859 rm -f conftest.er1 18860 cat conftest.err >&5 18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18862 (exit $ac_status); } && 18863 { ac_try='test -z "$ac_c_werror_flag" 18864 || test ! -s conftest.err' 18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18866 (eval $ac_try) 2>&5 18867 ac_status=$? 18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18869 (exit $ac_status); }; } && 18870 { ac_try='test -s conftest$ac_exeext' 18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18872 (eval $ac_try) 2>&5 18873 ac_status=$? 18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18875 (exit $ac_status); }; }; then 18876 ac_cv_lib_dl_dlopen=yes 18877else 18878 echo "$as_me: failed program was:" >&5 18879sed 's/^/| /' conftest.$ac_ext >&5 18880 18881ac_cv_lib_dl_dlopen=no 18882fi 18883rm -f conftest.err conftest.$ac_objext \ 18884 conftest$ac_exeext conftest.$ac_ext 18885LIBS=$ac_check_lib_save_LIBS 18886fi 18887echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18888echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18889if test $ac_cv_lib_dl_dlopen = yes; then 18890 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18891else 18892 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18893echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18894if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18895 echo $ECHO_N "(cached) $ECHO_C" >&6 18896else 18897 ac_check_lib_save_LIBS=$LIBS 18898LIBS="-lsvld $LIBS" 18899cat >conftest.$ac_ext <<_ACEOF 18900/* confdefs.h. */ 18901_ACEOF 18902cat confdefs.h >>conftest.$ac_ext 18903cat >>conftest.$ac_ext <<_ACEOF 18904/* end confdefs.h. */ 18905 18906/* Override any gcc2 internal prototype to avoid an error. */ 18907#ifdef __cplusplus 18908extern "C" 18909#endif 18910/* We use char because int might match the return type of a gcc2 18911 builtin and then its argument prototype would still apply. */ 18912char dlopen (); 18913int 18914main () 18915{ 18916dlopen (); 18917 ; 18918 return 0; 18919} 18920_ACEOF 18921rm -f conftest.$ac_objext conftest$ac_exeext 18922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18923 (eval $ac_link) 2>conftest.er1 18924 ac_status=$? 18925 grep -v '^ *+' conftest.er1 >conftest.err 18926 rm -f conftest.er1 18927 cat conftest.err >&5 18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18929 (exit $ac_status); } && 18930 { ac_try='test -z "$ac_c_werror_flag" 18931 || test ! -s conftest.err' 18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18933 (eval $ac_try) 2>&5 18934 ac_status=$? 18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18936 (exit $ac_status); }; } && 18937 { ac_try='test -s conftest$ac_exeext' 18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18939 (eval $ac_try) 2>&5 18940 ac_status=$? 18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18942 (exit $ac_status); }; }; then 18943 ac_cv_lib_svld_dlopen=yes 18944else 18945 echo "$as_me: failed program was:" >&5 18946sed 's/^/| /' conftest.$ac_ext >&5 18947 18948ac_cv_lib_svld_dlopen=no 18949fi 18950rm -f conftest.err conftest.$ac_objext \ 18951 conftest$ac_exeext conftest.$ac_ext 18952LIBS=$ac_check_lib_save_LIBS 18953fi 18954echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18955echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18956if test $ac_cv_lib_svld_dlopen = yes; then 18957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18958else 18959 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18960echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18961if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18962 echo $ECHO_N "(cached) $ECHO_C" >&6 18963else 18964 ac_check_lib_save_LIBS=$LIBS 18965LIBS="-ldld $LIBS" 18966cat >conftest.$ac_ext <<_ACEOF 18967/* confdefs.h. */ 18968_ACEOF 18969cat confdefs.h >>conftest.$ac_ext 18970cat >>conftest.$ac_ext <<_ACEOF 18971/* end confdefs.h. */ 18972 18973/* Override any gcc2 internal prototype to avoid an error. */ 18974#ifdef __cplusplus 18975extern "C" 18976#endif 18977/* We use char because int might match the return type of a gcc2 18978 builtin and then its argument prototype would still apply. */ 18979char dld_link (); 18980int 18981main () 18982{ 18983dld_link (); 18984 ; 18985 return 0; 18986} 18987_ACEOF 18988rm -f conftest.$ac_objext conftest$ac_exeext 18989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18990 (eval $ac_link) 2>conftest.er1 18991 ac_status=$? 18992 grep -v '^ *+' conftest.er1 >conftest.err 18993 rm -f conftest.er1 18994 cat conftest.err >&5 18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18996 (exit $ac_status); } && 18997 { ac_try='test -z "$ac_c_werror_flag" 18998 || test ! -s conftest.err' 18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19000 (eval $ac_try) 2>&5 19001 ac_status=$? 19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19003 (exit $ac_status); }; } && 19004 { ac_try='test -s conftest$ac_exeext' 19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19006 (eval $ac_try) 2>&5 19007 ac_status=$? 19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19009 (exit $ac_status); }; }; then 19010 ac_cv_lib_dld_dld_link=yes 19011else 19012 echo "$as_me: failed program was:" >&5 19013sed 's/^/| /' conftest.$ac_ext >&5 19014 19015ac_cv_lib_dld_dld_link=no 19016fi 19017rm -f conftest.err conftest.$ac_objext \ 19018 conftest$ac_exeext conftest.$ac_ext 19019LIBS=$ac_check_lib_save_LIBS 19020fi 19021echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 19022echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 19023if test $ac_cv_lib_dld_dld_link = yes; then 19024 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 19025fi 19026 19027 19028fi 19029 19030 19031fi 19032 19033 19034fi 19035 19036 19037fi 19038 19039 19040fi 19041 19042 ;; 19043 esac 19044 19045 if test "x$lt_cv_dlopen" != xno; then 19046 enable_dlopen=yes 19047 else 19048 enable_dlopen=no 19049 fi 19050 19051 case $lt_cv_dlopen in 19052 dlopen) 19053 save_CPPFLAGS="$CPPFLAGS" 19054 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19055 19056 save_LDFLAGS="$LDFLAGS" 19057 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19058 19059 save_LIBS="$LIBS" 19060 LIBS="$lt_cv_dlopen_libs $LIBS" 19061 19062 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 19063echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 19064if test "${lt_cv_dlopen_self+set}" = set; then 19065 echo $ECHO_N "(cached) $ECHO_C" >&6 19066else 19067 if test "$cross_compiling" = yes; then : 19068 lt_cv_dlopen_self=cross 19069else 19070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19071 lt_status=$lt_dlunknown 19072 cat > conftest.$ac_ext <<EOF 19073#line 19073 "configure" 19074#include "confdefs.h" 19075 19076#if HAVE_DLFCN_H 19077#include <dlfcn.h> 19078#endif 19079 19080#include <stdio.h> 19081 19082#ifdef RTLD_GLOBAL 19083# define LT_DLGLOBAL RTLD_GLOBAL 19084#else 19085# ifdef DL_GLOBAL 19086# define LT_DLGLOBAL DL_GLOBAL 19087# else 19088# define LT_DLGLOBAL 0 19089# endif 19090#endif 19091 19092/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19093 find out it does not work in some platform. */ 19094#ifndef LT_DLLAZY_OR_NOW 19095# ifdef RTLD_LAZY 19096# define LT_DLLAZY_OR_NOW RTLD_LAZY 19097# else 19098# ifdef DL_LAZY 19099# define LT_DLLAZY_OR_NOW DL_LAZY 19100# else 19101# ifdef RTLD_NOW 19102# define LT_DLLAZY_OR_NOW RTLD_NOW 19103# else 19104# ifdef DL_NOW 19105# define LT_DLLAZY_OR_NOW DL_NOW 19106# else 19107# define LT_DLLAZY_OR_NOW 0 19108# endif 19109# endif 19110# endif 19111# endif 19112#endif 19113 19114#ifdef __cplusplus 19115extern "C" void exit (int); 19116#endif 19117 19118void fnord() { int i=42;} 19119int main () 19120{ 19121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19122 int status = $lt_dlunknown; 19123 19124 if (self) 19125 { 19126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19128 /* dlclose (self); */ 19129 } 19130 19131 exit (status); 19132} 19133EOF 19134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19135 (eval $ac_link) 2>&5 19136 ac_status=$? 19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19139 (./conftest; exit; ) >&5 2>/dev/null 19140 lt_status=$? 19141 case x$lt_status in 19142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19144 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 19145 esac 19146 else : 19147 # compilation failed 19148 lt_cv_dlopen_self=no 19149 fi 19150fi 19151rm -fr conftest* 19152 19153 19154fi 19155echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 19156echo "${ECHO_T}$lt_cv_dlopen_self" >&6 19157 19158 if test "x$lt_cv_dlopen_self" = xyes; then 19159 LDFLAGS="$LDFLAGS $link_static_flag" 19160 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 19161echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 19162if test "${lt_cv_dlopen_self_static+set}" = set; then 19163 echo $ECHO_N "(cached) $ECHO_C" >&6 19164else 19165 if test "$cross_compiling" = yes; then : 19166 lt_cv_dlopen_self_static=cross 19167else 19168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19169 lt_status=$lt_dlunknown 19170 cat > conftest.$ac_ext <<EOF 19171#line 19171 "configure" 19172#include "confdefs.h" 19173 19174#if HAVE_DLFCN_H 19175#include <dlfcn.h> 19176#endif 19177 19178#include <stdio.h> 19179 19180#ifdef RTLD_GLOBAL 19181# define LT_DLGLOBAL RTLD_GLOBAL 19182#else 19183# ifdef DL_GLOBAL 19184# define LT_DLGLOBAL DL_GLOBAL 19185# else 19186# define LT_DLGLOBAL 0 19187# endif 19188#endif 19189 19190/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19191 find out it does not work in some platform. */ 19192#ifndef LT_DLLAZY_OR_NOW 19193# ifdef RTLD_LAZY 19194# define LT_DLLAZY_OR_NOW RTLD_LAZY 19195# else 19196# ifdef DL_LAZY 19197# define LT_DLLAZY_OR_NOW DL_LAZY 19198# else 19199# ifdef RTLD_NOW 19200# define LT_DLLAZY_OR_NOW RTLD_NOW 19201# else 19202# ifdef DL_NOW 19203# define LT_DLLAZY_OR_NOW DL_NOW 19204# else 19205# define LT_DLLAZY_OR_NOW 0 19206# endif 19207# endif 19208# endif 19209# endif 19210#endif 19211 19212#ifdef __cplusplus 19213extern "C" void exit (int); 19214#endif 19215 19216void fnord() { int i=42;} 19217int main () 19218{ 19219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19220 int status = $lt_dlunknown; 19221 19222 if (self) 19223 { 19224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19225 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19226 /* dlclose (self); */ 19227 } 19228 19229 exit (status); 19230} 19231EOF 19232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19233 (eval $ac_link) 2>&5 19234 ac_status=$? 19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19236 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19237 (./conftest; exit; ) >&5 2>/dev/null 19238 lt_status=$? 19239 case x$lt_status in 19240 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19241 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19242 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 19243 esac 19244 else : 19245 # compilation failed 19246 lt_cv_dlopen_self_static=no 19247 fi 19248fi 19249rm -fr conftest* 19250 19251 19252fi 19253echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 19254echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 19255 fi 19256 19257 CPPFLAGS="$save_CPPFLAGS" 19258 LDFLAGS="$save_LDFLAGS" 19259 LIBS="$save_LIBS" 19260 ;; 19261 esac 19262 19263 case $lt_cv_dlopen_self in 19264 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19265 *) enable_dlopen_self=unknown ;; 19266 esac 19267 19268 case $lt_cv_dlopen_self_static in 19269 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19270 *) enable_dlopen_self_static=unknown ;; 19271 esac 19272fi 19273 19274 19275# The else clause should only fire when bootstrapping the 19276# libtool distribution, otherwise you forgot to ship ltmain.sh 19277# with your package, and you will get complaints that there are 19278# no rules to generate ltmain.sh. 19279if test -f "$ltmain"; then 19280 # See if we are running on zsh, and set the options which allow our commands through 19281 # without removal of \ escapes. 19282 if test -n "${ZSH_VERSION+set}" ; then 19283 setopt NO_GLOB_SUBST 19284 fi 19285 # Now quote all the things that may contain metacharacters while being 19286 # careful not to overquote the AC_SUBSTed values. We take copies of the 19287 # variables and quote the copies for generation of the libtool script. 19288 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19289 SED SHELL STRIP \ 19290 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19291 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19292 deplibs_check_method reload_flag reload_cmds need_locks \ 19293 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19294 lt_cv_sys_global_symbol_to_c_name_address \ 19295 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19296 old_postinstall_cmds old_postuninstall_cmds \ 19297 compiler_GCJ \ 19298 CC_GCJ \ 19299 LD_GCJ \ 19300 lt_prog_compiler_wl_GCJ \ 19301 lt_prog_compiler_pic_GCJ \ 19302 lt_prog_compiler_static_GCJ \ 19303 lt_prog_compiler_no_builtin_flag_GCJ \ 19304 export_dynamic_flag_spec_GCJ \ 19305 thread_safe_flag_spec_GCJ \ 19306 whole_archive_flag_spec_GCJ \ 19307 enable_shared_with_static_runtimes_GCJ \ 19308 old_archive_cmds_GCJ \ 19309 old_archive_from_new_cmds_GCJ \ 19310 predep_objects_GCJ \ 19311 postdep_objects_GCJ \ 19312 predeps_GCJ \ 19313 postdeps_GCJ \ 19314 compiler_lib_search_path_GCJ \ 19315 archive_cmds_GCJ \ 19316 archive_expsym_cmds_GCJ \ 19317 postinstall_cmds_GCJ \ 19318 postuninstall_cmds_GCJ \ 19319 old_archive_from_expsyms_cmds_GCJ \ 19320 allow_undefined_flag_GCJ \ 19321 no_undefined_flag_GCJ \ 19322 export_symbols_cmds_GCJ \ 19323 hardcode_libdir_flag_spec_GCJ \ 19324 hardcode_libdir_flag_spec_ld_GCJ \ 19325 hardcode_libdir_separator_GCJ \ 19326 hardcode_automatic_GCJ \ 19327 module_cmds_GCJ \ 19328 module_expsym_cmds_GCJ \ 19329 lt_cv_prog_compiler_c_o_GCJ \ 19330 exclude_expsyms_GCJ \ 19331 include_expsyms_GCJ; do 19332 19333 case $var in 19334 old_archive_cmds_GCJ | \ 19335 old_archive_from_new_cmds_GCJ | \ 19336 archive_cmds_GCJ | \ 19337 archive_expsym_cmds_GCJ | \ 19338 module_cmds_GCJ | \ 19339 module_expsym_cmds_GCJ | \ 19340 old_archive_from_expsyms_cmds_GCJ | \ 19341 export_symbols_cmds_GCJ | \ 19342 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19343 postinstall_cmds | postuninstall_cmds | \ 19344 old_postinstall_cmds | old_postuninstall_cmds | \ 19345 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19346 # Double-quote double-evaled strings. 19347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19348 ;; 19349 *) 19350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19351 ;; 19352 esac 19353 done 19354 19355 case $lt_echo in 19356 *'\$0 --fallback-echo"') 19357 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19358 ;; 19359 esac 19360 19361cfgfile="$ofile" 19362 19363 cat <<__EOF__ >> "$cfgfile" 19364# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19365 19366# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19367 19368# Shell to use when invoking shell scripts. 19369SHELL=$lt_SHELL 19370 19371# Whether or not to build shared libraries. 19372build_libtool_libs=$enable_shared 19373 19374# Whether or not to build static libraries. 19375build_old_libs=$enable_static 19376 19377# Whether or not to add -lc for building shared libraries. 19378build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19379 19380# Whether or not to disallow shared libs when runtime libs are static 19381allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19382 19383# Whether or not to optimize for fast installation. 19384fast_install=$enable_fast_install 19385 19386# The host system. 19387host_alias=$host_alias 19388host=$host 19389host_os=$host_os 19390 19391# The build system. 19392build_alias=$build_alias 19393build=$build 19394build_os=$build_os 19395 19396# An echo program that does not interpret backslashes. 19397echo=$lt_echo 19398 19399# The archiver. 19400AR=$lt_AR 19401AR_FLAGS=$lt_AR_FLAGS 19402 19403# A C compiler. 19404LTCC=$lt_LTCC 19405 19406# A language-specific compiler. 19407CC=$lt_compiler_GCJ 19408 19409# Is the compiler the GNU C compiler? 19410with_gcc=$GCC_GCJ 19411 19412# An ERE matcher. 19413EGREP=$lt_EGREP 19414 19415# The linker used to build libraries. 19416LD=$lt_LD_GCJ 19417 19418# Whether we need hard or soft links. 19419LN_S=$lt_LN_S 19420 19421# A BSD-compatible nm program. 19422NM=$lt_NM 19423 19424# A symbol stripping program 19425STRIP=$lt_STRIP 19426 19427# Used to examine libraries when file_magic_cmd begins "file" 19428MAGIC_CMD=$MAGIC_CMD 19429 19430# Used on cygwin: DLL creation program. 19431DLLTOOL="$DLLTOOL" 19432 19433# Used on cygwin: object dumper. 19434OBJDUMP="$OBJDUMP" 19435 19436# Used on cygwin: assembler. 19437AS="$AS" 19438 19439# The name of the directory that contains temporary libtool files. 19440objdir=$objdir 19441 19442# How to create reloadable object files. 19443reload_flag=$lt_reload_flag 19444reload_cmds=$lt_reload_cmds 19445 19446# How to pass a linker flag through the compiler. 19447wl=$lt_lt_prog_compiler_wl_GCJ 19448 19449# Object file suffix (normally "o"). 19450objext="$ac_objext" 19451 19452# Old archive suffix (normally "a"). 19453libext="$libext" 19454 19455# Shared library suffix (normally ".so"). 19456shrext_cmds='$shrext_cmds' 19457 19458# Executable file suffix (normally ""). 19459exeext="$exeext" 19460 19461# Additional compiler flags for building library objects. 19462pic_flag=$lt_lt_prog_compiler_pic_GCJ 19463pic_mode=$pic_mode 19464 19465# What is the maximum length of a command? 19466max_cmd_len=$lt_cv_sys_max_cmd_len 19467 19468# Does compiler simultaneously support -c and -o options? 19469compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19470 19471# Must we lock files when doing compilation? 19472need_locks=$lt_need_locks 19473 19474# Do we need the lib prefix for modules? 19475need_lib_prefix=$need_lib_prefix 19476 19477# Do we need a version for libraries? 19478need_version=$need_version 19479 19480# Whether dlopen is supported. 19481dlopen_support=$enable_dlopen 19482 19483# Whether dlopen of programs is supported. 19484dlopen_self=$enable_dlopen_self 19485 19486# Whether dlopen of statically linked programs is supported. 19487dlopen_self_static=$enable_dlopen_self_static 19488 19489# Compiler flag to prevent dynamic linking. 19490link_static_flag=$lt_lt_prog_compiler_static_GCJ 19491 19492# Compiler flag to turn off builtin functions. 19493no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19494 19495# Compiler flag to allow reflexive dlopens. 19496export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19497 19498# Compiler flag to generate shared objects directly from archives. 19499whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19500 19501# Compiler flag to generate thread-safe objects. 19502thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19503 19504# Library versioning type. 19505version_type=$version_type 19506 19507# Format of library name prefix. 19508libname_spec=$lt_libname_spec 19509 19510# List of archive names. First name is the real one, the rest are links. 19511# The last name is the one that the linker finds with -lNAME. 19512library_names_spec=$lt_library_names_spec 19513 19514# The coded name of the library, if different from the real name. 19515soname_spec=$lt_soname_spec 19516 19517# Commands used to build and install an old-style archive. 19518RANLIB=$lt_RANLIB 19519old_archive_cmds=$lt_old_archive_cmds_GCJ 19520old_postinstall_cmds=$lt_old_postinstall_cmds 19521old_postuninstall_cmds=$lt_old_postuninstall_cmds 19522 19523# Create an old-style archive from a shared archive. 19524old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19525 19526# Create a temporary old-style archive to link instead of a shared archive. 19527old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19528 19529# Commands used to build and install a shared archive. 19530archive_cmds=$lt_archive_cmds_GCJ 19531archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19532postinstall_cmds=$lt_postinstall_cmds 19533postuninstall_cmds=$lt_postuninstall_cmds 19534 19535# Commands used to build a loadable module (assumed same as above if empty) 19536module_cmds=$lt_module_cmds_GCJ 19537module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19538 19539# Commands to strip libraries. 19540old_striplib=$lt_old_striplib 19541striplib=$lt_striplib 19542 19543# Dependencies to place before the objects being linked to create a 19544# shared library. 19545predep_objects=$lt_predep_objects_GCJ 19546 19547# Dependencies to place after the objects being linked to create a 19548# shared library. 19549postdep_objects=$lt_postdep_objects_GCJ 19550 19551# Dependencies to place before the objects being linked to create a 19552# shared library. 19553predeps=$lt_predeps_GCJ 19554 19555# Dependencies to place after the objects being linked to create a 19556# shared library. 19557postdeps=$lt_postdeps_GCJ 19558 19559# The library search path used internally by the compiler when linking 19560# a shared library. 19561compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19562 19563# Method to check whether dependent libraries are shared objects. 19564deplibs_check_method=$lt_deplibs_check_method 19565 19566# Command to use when deplibs_check_method == file_magic. 19567file_magic_cmd=$lt_file_magic_cmd 19568 19569# Flag that allows shared libraries with undefined symbols to be built. 19570allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19571 19572# Flag that forces no undefined symbols. 19573no_undefined_flag=$lt_no_undefined_flag_GCJ 19574 19575# Commands used to finish a libtool library installation in a directory. 19576finish_cmds=$lt_finish_cmds 19577 19578# Same as above, but a single script fragment to be evaled but not shown. 19579finish_eval=$lt_finish_eval 19580 19581# Take the output of nm and produce a listing of raw symbols and C names. 19582global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19583 19584# Transform the output of nm in a proper C declaration 19585global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19586 19587# Transform the output of nm in a C name address pair 19588global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19589 19590# This is the shared library runtime path variable. 19591runpath_var=$runpath_var 19592 19593# This is the shared library path variable. 19594shlibpath_var=$shlibpath_var 19595 19596# Is shlibpath searched before the hard-coded library search path? 19597shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19598 19599# How to hardcode a shared library path into an executable. 19600hardcode_action=$hardcode_action_GCJ 19601 19602# Whether we should hardcode library paths into libraries. 19603hardcode_into_libs=$hardcode_into_libs 19604 19605# Flag to hardcode \$libdir into a binary during linking. 19606# This must work even if \$libdir does not exist. 19607hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19608 19609# If ld is used when linking, flag to hardcode \$libdir into 19610# a binary during linking. This must work even if \$libdir does 19611# not exist. 19612hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19613 19614# Whether we need a single -rpath flag with a separated argument. 19615hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19616 19617# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19618# resulting binary. 19619hardcode_direct=$hardcode_direct_GCJ 19620 19621# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19622# resulting binary. 19623hardcode_minus_L=$hardcode_minus_L_GCJ 19624 19625# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19626# the resulting binary. 19627hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19628 19629# Set to yes if building a shared library automatically hardcodes DIR into the library 19630# and all subsequent libraries and executables linked against it. 19631hardcode_automatic=$hardcode_automatic_GCJ 19632 19633# Variables whose values should be saved in libtool wrapper scripts and 19634# restored at relink time. 19635variables_saved_for_relink="$variables_saved_for_relink" 19636 19637# Whether libtool must link a program against all its dependency libraries. 19638link_all_deplibs=$link_all_deplibs_GCJ 19639 19640# Compile-time system search path for libraries 19641sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19642 19643# Run-time system search path for libraries 19644sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19645 19646# Fix the shell variable \$srcfile for the compiler. 19647fix_srcfile_path="$fix_srcfile_path_GCJ" 19648 19649# Set to yes if exported symbols are required. 19650always_export_symbols=$always_export_symbols_GCJ 19651 19652# The commands to list exported symbols. 19653export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19654 19655# The commands to extract the exported symbol list from a shared archive. 19656extract_expsyms_cmds=$lt_extract_expsyms_cmds 19657 19658# Symbols that should not be listed in the preloaded symbols. 19659exclude_expsyms=$lt_exclude_expsyms_GCJ 19660 19661# Symbols that must always be exported. 19662include_expsyms=$lt_include_expsyms_GCJ 19663 19664# ### END LIBTOOL TAG CONFIG: $tagname 19665 19666__EOF__ 19667 19668 19669else 19670 # If there is no Makefile yet, we rely on a make rule to execute 19671 # `config.status --recheck' to rerun these tests and create the 19672 # libtool script then. 19673 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19674 if test -f "$ltmain_in"; then 19675 test -f Makefile && make "$ltmain" 19676 fi 19677fi 19678 19679 19680ac_ext=c 19681ac_cpp='$CPP $CPPFLAGS' 19682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19684ac_compiler_gnu=$ac_cv_c_compiler_gnu 19685 19686CC="$lt_save_CC" 19687 19688 else 19689 tagname="" 19690 fi 19691 ;; 19692 19693 RC) 19694 19695 19696 19697# Source file extension for RC test sources. 19698ac_ext=rc 19699 19700# Object file extension for compiled RC test sources. 19701objext=o 19702objext_RC=$objext 19703 19704# Code to be used in simple compile tests 19705lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19706 19707# Code to be used in simple link tests 19708lt_simple_link_test_code="$lt_simple_compile_test_code" 19709 19710# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19711 19712# If no C compiler was specified, use CC. 19713LTCC=${LTCC-"$CC"} 19714 19715# Allow CC to be a program name with arguments. 19716compiler=$CC 19717 19718 19719# save warnings/boilerplate of simple test code 19720ac_outfile=conftest.$ac_objext 19721printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19722eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19723_lt_compiler_boilerplate=`cat conftest.err` 19724$rm conftest* 19725 19726ac_outfile=conftest.$ac_objext 19727printf "$lt_simple_link_test_code" >conftest.$ac_ext 19728eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19729_lt_linker_boilerplate=`cat conftest.err` 19730$rm conftest* 19731 19732 19733# Allow CC to be a program name with arguments. 19734lt_save_CC="$CC" 19735CC=${RC-"windres"} 19736compiler=$CC 19737compiler_RC=$CC 19738for cc_temp in $compiler""; do 19739 case $cc_temp in 19740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19742 \-*) ;; 19743 *) break;; 19744 esac 19745done 19746cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19747 19748lt_cv_prog_compiler_c_o_RC=yes 19749 19750# The else clause should only fire when bootstrapping the 19751# libtool distribution, otherwise you forgot to ship ltmain.sh 19752# with your package, and you will get complaints that there are 19753# no rules to generate ltmain.sh. 19754if test -f "$ltmain"; then 19755 # See if we are running on zsh, and set the options which allow our commands through 19756 # without removal of \ escapes. 19757 if test -n "${ZSH_VERSION+set}" ; then 19758 setopt NO_GLOB_SUBST 19759 fi 19760 # Now quote all the things that may contain metacharacters while being 19761 # careful not to overquote the AC_SUBSTed values. We take copies of the 19762 # variables and quote the copies for generation of the libtool script. 19763 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19764 SED SHELL STRIP \ 19765 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19766 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19767 deplibs_check_method reload_flag reload_cmds need_locks \ 19768 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19769 lt_cv_sys_global_symbol_to_c_name_address \ 19770 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19771 old_postinstall_cmds old_postuninstall_cmds \ 19772 compiler_RC \ 19773 CC_RC \ 19774 LD_RC \ 19775 lt_prog_compiler_wl_RC \ 19776 lt_prog_compiler_pic_RC \ 19777 lt_prog_compiler_static_RC \ 19778 lt_prog_compiler_no_builtin_flag_RC \ 19779 export_dynamic_flag_spec_RC \ 19780 thread_safe_flag_spec_RC \ 19781 whole_archive_flag_spec_RC \ 19782 enable_shared_with_static_runtimes_RC \ 19783 old_archive_cmds_RC \ 19784 old_archive_from_new_cmds_RC \ 19785 predep_objects_RC \ 19786 postdep_objects_RC \ 19787 predeps_RC \ 19788 postdeps_RC \ 19789 compiler_lib_search_path_RC \ 19790 archive_cmds_RC \ 19791 archive_expsym_cmds_RC \ 19792 postinstall_cmds_RC \ 19793 postuninstall_cmds_RC \ 19794 old_archive_from_expsyms_cmds_RC \ 19795 allow_undefined_flag_RC \ 19796 no_undefined_flag_RC \ 19797 export_symbols_cmds_RC \ 19798 hardcode_libdir_flag_spec_RC \ 19799 hardcode_libdir_flag_spec_ld_RC \ 19800 hardcode_libdir_separator_RC \ 19801 hardcode_automatic_RC \ 19802 module_cmds_RC \ 19803 module_expsym_cmds_RC \ 19804 lt_cv_prog_compiler_c_o_RC \ 19805 exclude_expsyms_RC \ 19806 include_expsyms_RC; do 19807 19808 case $var in 19809 old_archive_cmds_RC | \ 19810 old_archive_from_new_cmds_RC | \ 19811 archive_cmds_RC | \ 19812 archive_expsym_cmds_RC | \ 19813 module_cmds_RC | \ 19814 module_expsym_cmds_RC | \ 19815 old_archive_from_expsyms_cmds_RC | \ 19816 export_symbols_cmds_RC | \ 19817 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19818 postinstall_cmds | postuninstall_cmds | \ 19819 old_postinstall_cmds | old_postuninstall_cmds | \ 19820 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19821 # Double-quote double-evaled strings. 19822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19823 ;; 19824 *) 19825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19826 ;; 19827 esac 19828 done 19829 19830 case $lt_echo in 19831 *'\$0 --fallback-echo"') 19832 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19833 ;; 19834 esac 19835 19836cfgfile="$ofile" 19837 19838 cat <<__EOF__ >> "$cfgfile" 19839# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19840 19841# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19842 19843# Shell to use when invoking shell scripts. 19844SHELL=$lt_SHELL 19845 19846# Whether or not to build shared libraries. 19847build_libtool_libs=$enable_shared 19848 19849# Whether or not to build static libraries. 19850build_old_libs=$enable_static 19851 19852# Whether or not to add -lc for building shared libraries. 19853build_libtool_need_lc=$archive_cmds_need_lc_RC 19854 19855# Whether or not to disallow shared libs when runtime libs are static 19856allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19857 19858# Whether or not to optimize for fast installation. 19859fast_install=$enable_fast_install 19860 19861# The host system. 19862host_alias=$host_alias 19863host=$host 19864host_os=$host_os 19865 19866# The build system. 19867build_alias=$build_alias 19868build=$build 19869build_os=$build_os 19870 19871# An echo program that does not interpret backslashes. 19872echo=$lt_echo 19873 19874# The archiver. 19875AR=$lt_AR 19876AR_FLAGS=$lt_AR_FLAGS 19877 19878# A C compiler. 19879LTCC=$lt_LTCC 19880 19881# A language-specific compiler. 19882CC=$lt_compiler_RC 19883 19884# Is the compiler the GNU C compiler? 19885with_gcc=$GCC_RC 19886 19887# An ERE matcher. 19888EGREP=$lt_EGREP 19889 19890# The linker used to build libraries. 19891LD=$lt_LD_RC 19892 19893# Whether we need hard or soft links. 19894LN_S=$lt_LN_S 19895 19896# A BSD-compatible nm program. 19897NM=$lt_NM 19898 19899# A symbol stripping program 19900STRIP=$lt_STRIP 19901 19902# Used to examine libraries when file_magic_cmd begins "file" 19903MAGIC_CMD=$MAGIC_CMD 19904 19905# Used on cygwin: DLL creation program. 19906DLLTOOL="$DLLTOOL" 19907 19908# Used on cygwin: object dumper. 19909OBJDUMP="$OBJDUMP" 19910 19911# Used on cygwin: assembler. 19912AS="$AS" 19913 19914# The name of the directory that contains temporary libtool files. 19915objdir=$objdir 19916 19917# How to create reloadable object files. 19918reload_flag=$lt_reload_flag 19919reload_cmds=$lt_reload_cmds 19920 19921# How to pass a linker flag through the compiler. 19922wl=$lt_lt_prog_compiler_wl_RC 19923 19924# Object file suffix (normally "o"). 19925objext="$ac_objext" 19926 19927# Old archive suffix (normally "a"). 19928libext="$libext" 19929 19930# Shared library suffix (normally ".so"). 19931shrext_cmds='$shrext_cmds' 19932 19933# Executable file suffix (normally ""). 19934exeext="$exeext" 19935 19936# Additional compiler flags for building library objects. 19937pic_flag=$lt_lt_prog_compiler_pic_RC 19938pic_mode=$pic_mode 19939 19940# What is the maximum length of a command? 19941max_cmd_len=$lt_cv_sys_max_cmd_len 19942 19943# Does compiler simultaneously support -c and -o options? 19944compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19945 19946# Must we lock files when doing compilation? 19947need_locks=$lt_need_locks 19948 19949# Do we need the lib prefix for modules? 19950need_lib_prefix=$need_lib_prefix 19951 19952# Do we need a version for libraries? 19953need_version=$need_version 19954 19955# Whether dlopen is supported. 19956dlopen_support=$enable_dlopen 19957 19958# Whether dlopen of programs is supported. 19959dlopen_self=$enable_dlopen_self 19960 19961# Whether dlopen of statically linked programs is supported. 19962dlopen_self_static=$enable_dlopen_self_static 19963 19964# Compiler flag to prevent dynamic linking. 19965link_static_flag=$lt_lt_prog_compiler_static_RC 19966 19967# Compiler flag to turn off builtin functions. 19968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19969 19970# Compiler flag to allow reflexive dlopens. 19971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19972 19973# Compiler flag to generate shared objects directly from archives. 19974whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19975 19976# Compiler flag to generate thread-safe objects. 19977thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19978 19979# Library versioning type. 19980version_type=$version_type 19981 19982# Format of library name prefix. 19983libname_spec=$lt_libname_spec 19984 19985# List of archive names. First name is the real one, the rest are links. 19986# The last name is the one that the linker finds with -lNAME. 19987library_names_spec=$lt_library_names_spec 19988 19989# The coded name of the library, if different from the real name. 19990soname_spec=$lt_soname_spec 19991 19992# Commands used to build and install an old-style archive. 19993RANLIB=$lt_RANLIB 19994old_archive_cmds=$lt_old_archive_cmds_RC 19995old_postinstall_cmds=$lt_old_postinstall_cmds 19996old_postuninstall_cmds=$lt_old_postuninstall_cmds 19997 19998# Create an old-style archive from a shared archive. 19999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20000 20001# Create a temporary old-style archive to link instead of a shared archive. 20002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20003 20004# Commands used to build and install a shared archive. 20005archive_cmds=$lt_archive_cmds_RC 20006archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20007postinstall_cmds=$lt_postinstall_cmds 20008postuninstall_cmds=$lt_postuninstall_cmds 20009 20010# Commands used to build a loadable module (assumed same as above if empty) 20011module_cmds=$lt_module_cmds_RC 20012module_expsym_cmds=$lt_module_expsym_cmds_RC 20013 20014# Commands to strip libraries. 20015old_striplib=$lt_old_striplib 20016striplib=$lt_striplib 20017 20018# Dependencies to place before the objects being linked to create a 20019# shared library. 20020predep_objects=$lt_predep_objects_RC 20021 20022# Dependencies to place after the objects being linked to create a 20023# shared library. 20024postdep_objects=$lt_postdep_objects_RC 20025 20026# Dependencies to place before the objects being linked to create a 20027# shared library. 20028predeps=$lt_predeps_RC 20029 20030# Dependencies to place after the objects being linked to create a 20031# shared library. 20032postdeps=$lt_postdeps_RC 20033 20034# The library search path used internally by the compiler when linking 20035# a shared library. 20036compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20037 20038# Method to check whether dependent libraries are shared objects. 20039deplibs_check_method=$lt_deplibs_check_method 20040 20041# Command to use when deplibs_check_method == file_magic. 20042file_magic_cmd=$lt_file_magic_cmd 20043 20044# Flag that allows shared libraries with undefined symbols to be built. 20045allow_undefined_flag=$lt_allow_undefined_flag_RC 20046 20047# Flag that forces no undefined symbols. 20048no_undefined_flag=$lt_no_undefined_flag_RC 20049 20050# Commands used to finish a libtool library installation in a directory. 20051finish_cmds=$lt_finish_cmds 20052 20053# Same as above, but a single script fragment to be evaled but not shown. 20054finish_eval=$lt_finish_eval 20055 20056# Take the output of nm and produce a listing of raw symbols and C names. 20057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20058 20059# Transform the output of nm in a proper C declaration 20060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20061 20062# Transform the output of nm in a C name address pair 20063global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20064 20065# This is the shared library runtime path variable. 20066runpath_var=$runpath_var 20067 20068# This is the shared library path variable. 20069shlibpath_var=$shlibpath_var 20070 20071# Is shlibpath searched before the hard-coded library search path? 20072shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20073 20074# How to hardcode a shared library path into an executable. 20075hardcode_action=$hardcode_action_RC 20076 20077# Whether we should hardcode library paths into libraries. 20078hardcode_into_libs=$hardcode_into_libs 20079 20080# Flag to hardcode \$libdir into a binary during linking. 20081# This must work even if \$libdir does not exist. 20082hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20083 20084# If ld is used when linking, flag to hardcode \$libdir into 20085# a binary during linking. This must work even if \$libdir does 20086# not exist. 20087hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20088 20089# Whether we need a single -rpath flag with a separated argument. 20090hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20091 20092# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20093# resulting binary. 20094hardcode_direct=$hardcode_direct_RC 20095 20096# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20097# resulting binary. 20098hardcode_minus_L=$hardcode_minus_L_RC 20099 20100# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20101# the resulting binary. 20102hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20103 20104# Set to yes if building a shared library automatically hardcodes DIR into the library 20105# and all subsequent libraries and executables linked against it. 20106hardcode_automatic=$hardcode_automatic_RC 20107 20108# Variables whose values should be saved in libtool wrapper scripts and 20109# restored at relink time. 20110variables_saved_for_relink="$variables_saved_for_relink" 20111 20112# Whether libtool must link a program against all its dependency libraries. 20113link_all_deplibs=$link_all_deplibs_RC 20114 20115# Compile-time system search path for libraries 20116sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20117 20118# Run-time system search path for libraries 20119sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20120 20121# Fix the shell variable \$srcfile for the compiler. 20122fix_srcfile_path="$fix_srcfile_path_RC" 20123 20124# Set to yes if exported symbols are required. 20125always_export_symbols=$always_export_symbols_RC 20126 20127# The commands to list exported symbols. 20128export_symbols_cmds=$lt_export_symbols_cmds_RC 20129 20130# The commands to extract the exported symbol list from a shared archive. 20131extract_expsyms_cmds=$lt_extract_expsyms_cmds 20132 20133# Symbols that should not be listed in the preloaded symbols. 20134exclude_expsyms=$lt_exclude_expsyms_RC 20135 20136# Symbols that must always be exported. 20137include_expsyms=$lt_include_expsyms_RC 20138 20139# ### END LIBTOOL TAG CONFIG: $tagname 20140 20141__EOF__ 20142 20143 20144else 20145 # If there is no Makefile yet, we rely on a make rule to execute 20146 # `config.status --recheck' to rerun these tests and create the 20147 # libtool script then. 20148 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20149 if test -f "$ltmain_in"; then 20150 test -f Makefile && make "$ltmain" 20151 fi 20152fi 20153 20154 20155ac_ext=c 20156ac_cpp='$CPP $CPPFLAGS' 20157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20159ac_compiler_gnu=$ac_cv_c_compiler_gnu 20160 20161CC="$lt_save_CC" 20162 20163 ;; 20164 20165 *) 20166 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20167echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20168 { (exit 1); exit 1; }; } 20169 ;; 20170 esac 20171 20172 # Append the new tag name to the list of available tags. 20173 if test -n "$tagname" ; then 20174 available_tags="$available_tags $tagname" 20175 fi 20176 fi 20177 done 20178 IFS="$lt_save_ifs" 20179 20180 # Now substitute the updated list of available tags. 20181 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20182 mv "${ofile}T" "$ofile" 20183 chmod +x "$ofile" 20184 else 20185 rm -f "${ofile}T" 20186 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20187echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20188 { (exit 1); exit 1; }; } 20189 fi 20190fi 20191 20192 20193 20194# This can be used to rebuild libtool when needed 20195LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20196 20197# Always use our own libtool. 20198LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20199 20200# Prevent multiple expansion 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227## -------- ## 20228## Outputs. ## 20229## -------- ## 20230 ac_config_files="$ac_config_files Makefile doc/Makefile tests/Makefile" 20231 20232cat >confcache <<\_ACEOF 20233# This file is a shell script that caches the results of configure 20234# tests run on this system so they can be shared between configure 20235# scripts and configure runs, see configure's option --config-cache. 20236# It is not useful on other systems. If it contains results you don't 20237# want to keep, you may remove or edit it. 20238# 20239# config.status only pays attention to the cache file if you give it 20240# the --recheck option to rerun configure. 20241# 20242# `ac_cv_env_foo' variables (set or unset) will be overridden when 20243# loading this file, other *unset* `ac_cv_foo' will be assigned the 20244# following values. 20245 20246_ACEOF 20247 20248# The following way of writing the cache mishandles newlines in values, 20249# but we know of no workaround that is simple, portable, and efficient. 20250# So, don't put newlines in cache variables' values. 20251# Ultrix sh set writes to stderr and can't be redirected directly, 20252# and sets the high bit in the cache file unless we assign to the vars. 20253{ 20254 (set) 2>&1 | 20255 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20256 *ac_space=\ *) 20257 # `set' does not quote correctly, so add quotes (double-quote 20258 # substitution turns \\\\ into \\, and sed turns \\ into \). 20259 sed -n \ 20260 "s/'/'\\\\''/g; 20261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20262 ;; 20263 *) 20264 # `set' quotes correctly as required by POSIX, so do not add quotes. 20265 sed -n \ 20266 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20267 ;; 20268 esac; 20269} | 20270 sed ' 20271 t clear 20272 : clear 20273 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20274 t end 20275 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20276 : end' >>confcache 20277if diff $cache_file confcache >/dev/null 2>&1; then :; else 20278 if test -w $cache_file; then 20279 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20280 cat confcache >$cache_file 20281 else 20282 echo "not updating unwritable cache $cache_file" 20283 fi 20284fi 20285rm -f confcache 20286 20287test "x$prefix" = xNONE && prefix=$ac_default_prefix 20288# Let make expand exec_prefix. 20289test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20290 20291# VPATH may cause trouble with some makes, so we remove $(srcdir), 20292# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20293# trailing colons and then remove the whole line if VPATH becomes empty 20294# (actually we leave an empty line to preserve line numbers). 20295if test "x$srcdir" = x.; then 20296 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20297s/:*\$(srcdir):*/:/; 20298s/:*\${srcdir}:*/:/; 20299s/:*@srcdir@:*/:/; 20300s/^\([^=]*=[ ]*\):*/\1/; 20301s/:*$//; 20302s/^[^=]*=[ ]*$//; 20303}' 20304fi 20305 20306# Transform confdefs.h into DEFS. 20307# Protect against shell expansion while executing Makefile rules. 20308# Protect against Makefile macro expansion. 20309# 20310# If the first sed substitution is executed (which looks for macros that 20311# take arguments), then we branch to the quote section. Otherwise, 20312# look for a macro that doesn't take arguments. 20313cat >confdef2opt.sed <<\_ACEOF 20314t clear 20315: clear 20316s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 20317t quote 20318s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 20319t quote 20320d 20321: quote 20322s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 20323s,\[,\\&,g 20324s,\],\\&,g 20325s,\$,$$,g 20326p 20327_ACEOF 20328# We use echo to avoid assuming a particular line-breaking character. 20329# The extra dot is to prevent the shell from consuming trailing 20330# line-breaks from the sub-command output. A line-break within 20331# single-quotes doesn't work because, if this script is created in a 20332# platform that uses two characters for line-breaks (e.g., DOS), tr 20333# would break. 20334ac_LF_and_DOT=`echo; echo .` 20335DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 20336rm -f confdef2opt.sed 20337 20338 20339ac_libobjs= 20340ac_ltlibobjs= 20341for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20342 # 1. Remove the extension, and $U if already installed. 20343 ac_i=`echo "$ac_i" | 20344 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20345 # 2. Add them. 20346 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20347 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20348done 20349LIBOBJS=$ac_libobjs 20350 20351LTLIBOBJS=$ac_ltlibobjs 20352 20353 20354if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20355 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20356Usually this means the macro was only invoked conditionally." >&5 20357echo "$as_me: error: conditional \"AMDEP\" was never defined. 20358Usually this means the macro was only invoked conditionally." >&2;} 20359 { (exit 1); exit 1; }; } 20360fi 20361if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20362 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20363Usually this means the macro was only invoked conditionally." >&5 20364echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20365Usually this means the macro was only invoked conditionally." >&2;} 20366 { (exit 1); exit 1; }; } 20367fi 20368if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20369 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20370Usually this means the macro was only invoked conditionally." >&5 20371echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20372Usually this means the macro was only invoked conditionally." >&2;} 20373 { (exit 1); exit 1; }; } 20374fi 20375if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 20376 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined. 20377Usually this means the macro was only invoked conditionally." >&5 20378echo "$as_me: error: conditional \"HAVE_CXX\" was never defined. 20379Usually this means the macro was only invoked conditionally." >&2;} 20380 { (exit 1); exit 1; }; } 20381fi 20382if test -z "${HAVE_F77_TRUE}" && test -z "${HAVE_F77_FALSE}"; then 20383 { { echo "$as_me:$LINENO: error: conditional \"HAVE_F77\" was never defined. 20384Usually this means the macro was only invoked conditionally." >&5 20385echo "$as_me: error: conditional \"HAVE_F77\" was never defined. 20386Usually this means the macro was only invoked conditionally." >&2;} 20387 { (exit 1); exit 1; }; } 20388fi 20389if test -z "${HAVE_GCJ_TRUE}" && test -z "${HAVE_GCJ_FALSE}"; then 20390 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCJ\" was never defined. 20391Usually this means the macro was only invoked conditionally." >&5 20392echo "$as_me: error: conditional \"HAVE_GCJ\" was never defined. 20393Usually this means the macro was only invoked conditionally." >&2;} 20394 { (exit 1); exit 1; }; } 20395fi 20396if test -z "${HAVE_RC_TRUE}" && test -z "${HAVE_RC_FALSE}"; then 20397 { { echo "$as_me:$LINENO: error: conditional \"HAVE_RC\" was never defined. 20398Usually this means the macro was only invoked conditionally." >&5 20399echo "$as_me: error: conditional \"HAVE_RC\" was never defined. 20400Usually this means the macro was only invoked conditionally." >&2;} 20401 { (exit 1); exit 1; }; } 20402fi 20403 20404: ${CONFIG_STATUS=./config.status} 20405ac_clean_files_save=$ac_clean_files 20406ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20407{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20408echo "$as_me: creating $CONFIG_STATUS" >&6;} 20409cat >$CONFIG_STATUS <<_ACEOF 20410#! $SHELL 20411# Generated by $as_me. 20412# Run this file to recreate the current configuration. 20413# Compiler output produced by configure, useful for debugging 20414# configure, is in config.log if it exists. 20415 20416debug=false 20417ac_cs_recheck=false 20418ac_cs_silent=false 20419SHELL=\${CONFIG_SHELL-$SHELL} 20420_ACEOF 20421 20422cat >>$CONFIG_STATUS <<\_ACEOF 20423## --------------------- ## 20424## M4sh Initialization. ## 20425## --------------------- ## 20426 20427# Be Bourne compatible 20428if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20429 emulate sh 20430 NULLCMD=: 20431 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20432 # is contrary to our usage. Disable this feature. 20433 alias -g '${1+"$@"}'='"$@"' 20434elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20435 set -o posix 20436fi 20437DUALCASE=1; export DUALCASE # for MKS sh 20438 20439# Support unset when possible. 20440if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20441 as_unset=unset 20442else 20443 as_unset=false 20444fi 20445 20446 20447# Work around bugs in pre-3.0 UWIN ksh. 20448$as_unset ENV MAIL MAILPATH 20449PS1='$ ' 20450PS2='> ' 20451PS4='+ ' 20452 20453# NLS nuisances. 20454for as_var in \ 20455 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20456 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20457 LC_TELEPHONE LC_TIME 20458do 20459 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20460 eval $as_var=C; export $as_var 20461 else 20462 $as_unset $as_var 20463 fi 20464done 20465 20466# Required to use basename. 20467if expr a : '\(a\)' >/dev/null 2>&1; then 20468 as_expr=expr 20469else 20470 as_expr=false 20471fi 20472 20473if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20474 as_basename=basename 20475else 20476 as_basename=false 20477fi 20478 20479 20480# Name of the executable. 20481as_me=`$as_basename "$0" || 20482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20483 X"$0" : 'X\(//\)$' \| \ 20484 X"$0" : 'X\(/\)$' \| \ 20485 . : '\(.\)' 2>/dev/null || 20486echo X/"$0" | 20487 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20488 /^X\/\(\/\/\)$/{ s//\1/; q; } 20489 /^X\/\(\/\).*/{ s//\1/; q; } 20490 s/.*/./; q'` 20491 20492 20493# PATH needs CR, and LINENO needs CR and PATH. 20494# Avoid depending upon Character Ranges. 20495as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20496as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20497as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20498as_cr_digits='0123456789' 20499as_cr_alnum=$as_cr_Letters$as_cr_digits 20500 20501# The user is always right. 20502if test "${PATH_SEPARATOR+set}" != set; then 20503 echo "#! /bin/sh" >conf$$.sh 20504 echo "exit 0" >>conf$$.sh 20505 chmod +x conf$$.sh 20506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20507 PATH_SEPARATOR=';' 20508 else 20509 PATH_SEPARATOR=: 20510 fi 20511 rm -f conf$$.sh 20512fi 20513 20514 20515 as_lineno_1=$LINENO 20516 as_lineno_2=$LINENO 20517 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20518 test "x$as_lineno_1" != "x$as_lineno_2" && 20519 test "x$as_lineno_3" = "x$as_lineno_2" || { 20520 # Find who we are. Look in the path if we contain no path at all 20521 # relative or not. 20522 case $0 in 20523 *[\\/]* ) as_myself=$0 ;; 20524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20525for as_dir in $PATH 20526do 20527 IFS=$as_save_IFS 20528 test -z "$as_dir" && as_dir=. 20529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20530done 20531 20532 ;; 20533 esac 20534 # We did not find ourselves, most probably we were run as `sh COMMAND' 20535 # in which case we are not to be found in the path. 20536 if test "x$as_myself" = x; then 20537 as_myself=$0 20538 fi 20539 if test ! -f "$as_myself"; then 20540 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20541echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20542 { (exit 1); exit 1; }; } 20543 fi 20544 case $CONFIG_SHELL in 20545 '') 20546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20547for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20548do 20549 IFS=$as_save_IFS 20550 test -z "$as_dir" && as_dir=. 20551 for as_base in sh bash ksh sh5; do 20552 case $as_dir in 20553 /*) 20554 if ("$as_dir/$as_base" -c ' 20555 as_lineno_1=$LINENO 20556 as_lineno_2=$LINENO 20557 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20558 test "x$as_lineno_1" != "x$as_lineno_2" && 20559 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20560 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20561 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20562 CONFIG_SHELL=$as_dir/$as_base 20563 export CONFIG_SHELL 20564 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20565 fi;; 20566 esac 20567 done 20568done 20569;; 20570 esac 20571 20572 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20573 # uniformly replaced by the line number. The first 'sed' inserts a 20574 # line-number line before each line; the second 'sed' does the real 20575 # work. The second script uses 'N' to pair each line-number line 20576 # with the numbered line, and appends trailing '-' during 20577 # substitution so that $LINENO is not a special case at line end. 20578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20579 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20580 sed '=' <$as_myself | 20581 sed ' 20582 N 20583 s,$,-, 20584 : loop 20585 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20586 t loop 20587 s,-$,, 20588 s,^['$as_cr_digits']*\n,, 20589 ' >$as_me.lineno && 20590 chmod +x $as_me.lineno || 20591 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20592echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20593 { (exit 1); exit 1; }; } 20594 20595 # Don't try to exec as it changes $[0], causing all sort of problems 20596 # (the dirname of $[0] is not the place where we might find the 20597 # original and so on. Autoconf is especially sensible to this). 20598 . ./$as_me.lineno 20599 # Exit status is that of the last command. 20600 exit 20601} 20602 20603 20604case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20605 *c*,-n*) ECHO_N= ECHO_C=' 20606' ECHO_T=' ' ;; 20607 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20608 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20609esac 20610 20611if expr a : '\(a\)' >/dev/null 2>&1; then 20612 as_expr=expr 20613else 20614 as_expr=false 20615fi 20616 20617rm -f conf$$ conf$$.exe conf$$.file 20618echo >conf$$.file 20619if ln -s conf$$.file conf$$ 2>/dev/null; then 20620 # We could just check for DJGPP; but this test a) works b) is more generic 20621 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20622 if test -f conf$$.exe; then 20623 # Don't use ln at all; we don't have any links 20624 as_ln_s='cp -p' 20625 else 20626 as_ln_s='ln -s' 20627 fi 20628elif ln conf$$.file conf$$ 2>/dev/null; then 20629 as_ln_s=ln 20630else 20631 as_ln_s='cp -p' 20632fi 20633rm -f conf$$ conf$$.exe conf$$.file 20634 20635if mkdir -p . 2>/dev/null; then 20636 as_mkdir_p=: 20637else 20638 test -d ./-p && rmdir ./-p 20639 as_mkdir_p=false 20640fi 20641 20642as_executable_p="test -f" 20643 20644# Sed expression to map a string onto a valid CPP name. 20645as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20646 20647# Sed expression to map a string onto a valid variable name. 20648as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20649 20650 20651# IFS 20652# We need space, tab and new line, in precisely that order. 20653as_nl=' 20654' 20655IFS=" $as_nl" 20656 20657# CDPATH. 20658$as_unset CDPATH 20659 20660exec 6>&1 20661 20662# Open the log real soon, to keep \$[0] and so on meaningful, and to 20663# report actual input values of CONFIG_FILES etc. instead of their 20664# values after options handling. Logging --version etc. is OK. 20665exec 5>>config.log 20666{ 20667 echo 20668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20669## Running $as_me. ## 20670_ASBOX 20671} >&5 20672cat >&5 <<_CSEOF 20673 20674This file was extended by libtool $as_me 1.5.20, which was 20675generated by GNU Autoconf 2.59. Invocation command line was 20676 20677 CONFIG_FILES = $CONFIG_FILES 20678 CONFIG_HEADERS = $CONFIG_HEADERS 20679 CONFIG_LINKS = $CONFIG_LINKS 20680 CONFIG_COMMANDS = $CONFIG_COMMANDS 20681 $ $0 $@ 20682 20683_CSEOF 20684echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20685echo >&5 20686_ACEOF 20687 20688# Files that config.status was made for. 20689if test -n "$ac_config_files"; then 20690 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20691fi 20692 20693if test -n "$ac_config_headers"; then 20694 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20695fi 20696 20697if test -n "$ac_config_links"; then 20698 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20699fi 20700 20701if test -n "$ac_config_commands"; then 20702 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20703fi 20704 20705cat >>$CONFIG_STATUS <<\_ACEOF 20706 20707ac_cs_usage="\ 20708\`$as_me' instantiates files from templates according to the 20709current configuration. 20710 20711Usage: $0 [OPTIONS] [FILE]... 20712 20713 -h, --help print this help, then exit 20714 -V, --version print version number, then exit 20715 -q, --quiet do not print progress messages 20716 -d, --debug don't remove temporary files 20717 --recheck update $as_me by reconfiguring in the same conditions 20718 --file=FILE[:TEMPLATE] 20719 instantiate the configuration file FILE 20720 20721Configuration files: 20722$config_files 20723 20724Configuration commands: 20725$config_commands 20726 20727Report bugs to <bug-autoconf@gnu.org>." 20728_ACEOF 20729 20730cat >>$CONFIG_STATUS <<_ACEOF 20731ac_cs_version="\\ 20732libtool config.status 1.5.20 20733configured by $0, generated by GNU Autoconf 2.59, 20734 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20735 20736Copyright (C) 2003 Free Software Foundation, Inc. 20737This config.status script is free software; the Free Software Foundation 20738gives unlimited permission to copy, distribute and modify it." 20739srcdir=$srcdir 20740INSTALL="$INSTALL" 20741_ACEOF 20742 20743cat >>$CONFIG_STATUS <<\_ACEOF 20744# If no file are specified by the user, then we need to provide default 20745# value. By we need to know if files were specified by the user. 20746ac_need_defaults=: 20747while test $# != 0 20748do 20749 case $1 in 20750 --*=*) 20751 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20752 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20753 ac_shift=: 20754 ;; 20755 -*) 20756 ac_option=$1 20757 ac_optarg=$2 20758 ac_shift=shift 20759 ;; 20760 *) # This is not an option, so the user has probably given explicit 20761 # arguments. 20762 ac_option=$1 20763 ac_need_defaults=false;; 20764 esac 20765 20766 case $ac_option in 20767 # Handling of the options. 20768_ACEOF 20769cat >>$CONFIG_STATUS <<\_ACEOF 20770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20771 ac_cs_recheck=: ;; 20772 --version | --vers* | -V ) 20773 echo "$ac_cs_version"; exit 0 ;; 20774 --he | --h) 20775 # Conflict between --help and --header 20776 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20777Try \`$0 --help' for more information." >&5 20778echo "$as_me: error: ambiguous option: $1 20779Try \`$0 --help' for more information." >&2;} 20780 { (exit 1); exit 1; }; };; 20781 --help | --hel | -h ) 20782 echo "$ac_cs_usage"; exit 0 ;; 20783 --debug | --d* | -d ) 20784 debug=: ;; 20785 --file | --fil | --fi | --f ) 20786 $ac_shift 20787 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20788 ac_need_defaults=false;; 20789 --header | --heade | --head | --hea ) 20790 $ac_shift 20791 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20792 ac_need_defaults=false;; 20793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20794 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20795 ac_cs_silent=: ;; 20796 20797 # This is an error. 20798 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20799Try \`$0 --help' for more information." >&5 20800echo "$as_me: error: unrecognized option: $1 20801Try \`$0 --help' for more information." >&2;} 20802 { (exit 1); exit 1; }; } ;; 20803 20804 *) ac_config_targets="$ac_config_targets $1" ;; 20805 20806 esac 20807 shift 20808done 20809 20810ac_configure_extra_args= 20811 20812if $ac_cs_silent; then 20813 exec 6>/dev/null 20814 ac_configure_extra_args="$ac_configure_extra_args --silent" 20815fi 20816 20817_ACEOF 20818cat >>$CONFIG_STATUS <<_ACEOF 20819if \$ac_cs_recheck; then 20820 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20821 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20822fi 20823 20824_ACEOF 20825 20826cat >>$CONFIG_STATUS <<_ACEOF 20827# 20828# INIT-COMMANDS section. 20829# 20830 20831AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20832 20833_ACEOF 20834 20835 20836 20837cat >>$CONFIG_STATUS <<\_ACEOF 20838for ac_config_target in $ac_config_targets 20839do 20840 case "$ac_config_target" in 20841 # Handling of arguments. 20842 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20843 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20844 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20845 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20846 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20847echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20848 { (exit 1); exit 1; }; };; 20849 esac 20850done 20851 20852# If the user did not use the arguments to specify the items to instantiate, 20853# then the envvar interface is used. Set only those that are not. 20854# We use the long form for the default assignment because of an extremely 20855# bizarre bug on SunOS 4.1.3. 20856if $ac_need_defaults; then 20857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20859fi 20860 20861# Have a temporary directory for convenience. Make it in the build tree 20862# simply because there is no reason to put it here, and in addition, 20863# creating and moving files from /tmp can sometimes cause problems. 20864# Create a temporary directory, and hook for its removal unless debugging. 20865$debug || 20866{ 20867 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20868 trap '{ (exit 1); exit 1; }' 1 2 13 15 20869} 20870 20871# Create a (secure) tmp directory for tmp files. 20872 20873{ 20874 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20875 test -n "$tmp" && test -d "$tmp" 20876} || 20877{ 20878 tmp=./confstat$$-$RANDOM 20879 (umask 077 && mkdir $tmp) 20880} || 20881{ 20882 echo "$me: cannot create a temporary directory in ." >&2 20883 { (exit 1); exit 1; } 20884} 20885 20886_ACEOF 20887 20888cat >>$CONFIG_STATUS <<_ACEOF 20889 20890# 20891# CONFIG_FILES section. 20892# 20893 20894# No need to generate the scripts if there are no CONFIG_FILES. 20895# This happens for instance when ./config.status config.h 20896if test -n "\$CONFIG_FILES"; then 20897 # Protect against being on the right side of a sed subst in config.status. 20898 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20899 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20900s,@SHELL@,$SHELL,;t t 20901s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20902s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20903s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20904s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20905s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20906s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20907s,@exec_prefix@,$exec_prefix,;t t 20908s,@prefix@,$prefix,;t t 20909s,@program_transform_name@,$program_transform_name,;t t 20910s,@bindir@,$bindir,;t t 20911s,@sbindir@,$sbindir,;t t 20912s,@libexecdir@,$libexecdir,;t t 20913s,@datadir@,$datadir,;t t 20914s,@sysconfdir@,$sysconfdir,;t t 20915s,@sharedstatedir@,$sharedstatedir,;t t 20916s,@localstatedir@,$localstatedir,;t t 20917s,@libdir@,$libdir,;t t 20918s,@includedir@,$includedir,;t t 20919s,@oldincludedir@,$oldincludedir,;t t 20920s,@infodir@,$infodir,;t t 20921s,@mandir@,$mandir,;t t 20922s,@build_alias@,$build_alias,;t t 20923s,@host_alias@,$host_alias,;t t 20924s,@target_alias@,$target_alias,;t t 20925s,@DEFS@,$DEFS,;t t 20926s,@ECHO_C@,$ECHO_C,;t t 20927s,@ECHO_N@,$ECHO_N,;t t 20928s,@ECHO_T@,$ECHO_T,;t t 20929s,@LIBS@,$LIBS,;t t 20930s,@TIMESTAMP@,$TIMESTAMP,;t t 20931s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20932s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20933s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20934s,@CYGPATH_W@,$CYGPATH_W,;t t 20935s,@PACKAGE@,$PACKAGE,;t t 20936s,@VERSION@,$VERSION,;t t 20937s,@ACLOCAL@,$ACLOCAL,;t t 20938s,@AUTOCONF@,$AUTOCONF,;t t 20939s,@AUTOMAKE@,$AUTOMAKE,;t t 20940s,@AUTOHEADER@,$AUTOHEADER,;t t 20941s,@MAKEINFO@,$MAKEINFO,;t t 20942s,@install_sh@,$install_sh,;t t 20943s,@STRIP@,$STRIP,;t t 20944s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20945s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20946s,@mkdir_p@,$mkdir_p,;t t 20947s,@AWK@,$AWK,;t t 20948s,@SET_MAKE@,$SET_MAKE,;t t 20949s,@am__leading_dot@,$am__leading_dot,;t t 20950s,@AMTAR@,$AMTAR,;t t 20951s,@am__tar@,$am__tar,;t t 20952s,@am__untar@,$am__untar,;t t 20953s,@pkgdatadir@,$pkgdatadir,;t t 20954s,@aclocaldir@,$aclocaldir,;t t 20955s,@subdirs@,$subdirs,;t t 20956s,@CONF_SUBDIRS@,$CONF_SUBDIRS,;t t 20957s,@ACINCLUDE_M4_LIST@,$ACINCLUDE_M4_LIST,;t t 20958s,@DIST_MAKEFILE_LIST@,$DIST_MAKEFILE_LIST,;t t 20959s,@CC@,$CC,;t t 20960s,@CFLAGS@,$CFLAGS,;t t 20961s,@LDFLAGS@,$LDFLAGS,;t t 20962s,@CPPFLAGS@,$CPPFLAGS,;t t 20963s,@ac_ct_CC@,$ac_ct_CC,;t t 20964s,@EXEEXT@,$EXEEXT,;t t 20965s,@OBJEXT@,$OBJEXT,;t t 20966s,@DEPDIR@,$DEPDIR,;t t 20967s,@am__include@,$am__include,;t t 20968s,@am__quote@,$am__quote,;t t 20969s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20970s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20971s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20972s,@CCDEPMODE@,$CCDEPMODE,;t t 20973s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20974s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20975s,@build@,$build,;t t 20976s,@build_cpu@,$build_cpu,;t t 20977s,@build_vendor@,$build_vendor,;t t 20978s,@build_os@,$build_os,;t t 20979s,@host@,$host,;t t 20980s,@host_cpu@,$host_cpu,;t t 20981s,@host_vendor@,$host_vendor,;t t 20982s,@host_os@,$host_os,;t t 20983s,@EGREP@,$EGREP,;t t 20984s,@LD@,$LD,;t t 20985s,@NM@,$NM,;t t 20986s,@LN_S@,$LN_S,;t t 20987s,@CXX@,$CXX,;t t 20988s,@CXXFLAGS@,$CXXFLAGS,;t t 20989s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20990s,@CXXDEPMODE@,$CXXDEPMODE,;t t 20991s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 20992s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 20993s,@HAVE_CXX_TRUE@,$HAVE_CXX_TRUE,;t t 20994s,@HAVE_CXX_FALSE@,$HAVE_CXX_FALSE,;t t 20995s,@F77@,$F77,;t t 20996s,@FFLAGS@,$FFLAGS,;t t 20997s,@ac_ct_F77@,$ac_ct_F77,;t t 20998s,@HAVE_F77_TRUE@,$HAVE_F77_TRUE,;t t 20999s,@HAVE_F77_FALSE@,$HAVE_F77_FALSE,;t t 21000s,@GCJ@,$GCJ,;t t 21001s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t 21002s,@GCJFLAGS@,$GCJFLAGS,;t t 21003s,@HAVE_GCJ_TRUE@,$HAVE_GCJ_TRUE,;t t 21004s,@HAVE_GCJ_FALSE@,$HAVE_GCJ_FALSE,;t t 21005s,@RC@,$RC,;t t 21006s,@ac_ct_RC@,$ac_ct_RC,;t t 21007s,@HAVE_RC_TRUE@,$HAVE_RC_TRUE,;t t 21008s,@HAVE_RC_FALSE@,$HAVE_RC_FALSE,;t t 21009s,@ECHO@,$ECHO,;t t 21010s,@AR@,$AR,;t t 21011s,@ac_ct_AR@,$ac_ct_AR,;t t 21012s,@RANLIB@,$RANLIB,;t t 21013s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21014s,@DLLTOOL@,$DLLTOOL,;t t 21015s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t 21016s,@AS@,$AS,;t t 21017s,@ac_ct_AS@,$ac_ct_AS,;t t 21018s,@OBJDUMP@,$OBJDUMP,;t t 21019s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t 21020s,@CPP@,$CPP,;t t 21021s,@CXXCPP@,$CXXCPP,;t t 21022s,@LIBTOOL@,$LIBTOOL,;t t 21023s,@LIBOBJS@,$LIBOBJS,;t t 21024s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21025CEOF 21026 21027_ACEOF 21028 21029 cat >>$CONFIG_STATUS <<\_ACEOF 21030 # Split the substitutions into bite-sized pieces for seds with 21031 # small command number limits, like on Digital OSF/1 and HP-UX. 21032 ac_max_sed_lines=48 21033 ac_sed_frag=1 # Number of current file. 21034 ac_beg=1 # First line for current file. 21035 ac_end=$ac_max_sed_lines # Line after last line for current file. 21036 ac_more_lines=: 21037 ac_sed_cmds= 21038 while $ac_more_lines; do 21039 if test $ac_beg -gt 1; then 21040 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21041 else 21042 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21043 fi 21044 if test ! -s $tmp/subs.frag; then 21045 ac_more_lines=false 21046 else 21047 # The purpose of the label and of the branching condition is to 21048 # speed up the sed processing (if there are no `@' at all, there 21049 # is no need to browse any of the substitutions). 21050 # These are the two extra sed commands mentioned above. 21051 (echo ':t 21052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21053 if test -z "$ac_sed_cmds"; then 21054 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21055 else 21056 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21057 fi 21058 ac_sed_frag=`expr $ac_sed_frag + 1` 21059 ac_beg=$ac_end 21060 ac_end=`expr $ac_end + $ac_max_sed_lines` 21061 fi 21062 done 21063 if test -z "$ac_sed_cmds"; then 21064 ac_sed_cmds=cat 21065 fi 21066fi # test -n "$CONFIG_FILES" 21067 21068_ACEOF 21069cat >>$CONFIG_STATUS <<\_ACEOF 21070for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21072 case $ac_file in 21073 - | *:- | *:-:* ) # input from stdin 21074 cat >$tmp/stdin 21075 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21077 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21079 * ) ac_file_in=$ac_file.in ;; 21080 esac 21081 21082 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21083 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21085 X"$ac_file" : 'X\(//\)[^/]' \| \ 21086 X"$ac_file" : 'X\(//\)$' \| \ 21087 X"$ac_file" : 'X\(/\)' \| \ 21088 . : '\(.\)' 2>/dev/null || 21089echo X"$ac_file" | 21090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21091 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21092 /^X\(\/\/\)$/{ s//\1/; q; } 21093 /^X\(\/\).*/{ s//\1/; q; } 21094 s/.*/./; q'` 21095 { if $as_mkdir_p; then 21096 mkdir -p "$ac_dir" 21097 else 21098 as_dir="$ac_dir" 21099 as_dirs= 21100 while test ! -d "$as_dir"; do 21101 as_dirs="$as_dir $as_dirs" 21102 as_dir=`(dirname "$as_dir") 2>/dev/null || 21103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21104 X"$as_dir" : 'X\(//\)[^/]' \| \ 21105 X"$as_dir" : 'X\(//\)$' \| \ 21106 X"$as_dir" : 'X\(/\)' \| \ 21107 . : '\(.\)' 2>/dev/null || 21108echo X"$as_dir" | 21109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21110 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21111 /^X\(\/\/\)$/{ s//\1/; q; } 21112 /^X\(\/\).*/{ s//\1/; q; } 21113 s/.*/./; q'` 21114 done 21115 test ! -n "$as_dirs" || mkdir $as_dirs 21116 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21117echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21118 { (exit 1); exit 1; }; }; } 21119 21120 ac_builddir=. 21121 21122if test "$ac_dir" != .; then 21123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21124 # A "../" for each directory in $ac_dir_suffix. 21125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21126else 21127 ac_dir_suffix= ac_top_builddir= 21128fi 21129 21130case $srcdir in 21131 .) # No --srcdir option. We are building in place. 21132 ac_srcdir=. 21133 if test -z "$ac_top_builddir"; then 21134 ac_top_srcdir=. 21135 else 21136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21137 fi ;; 21138 [\\/]* | ?:[\\/]* ) # Absolute path. 21139 ac_srcdir=$srcdir$ac_dir_suffix; 21140 ac_top_srcdir=$srcdir ;; 21141 *) # Relative path. 21142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21143 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21144esac 21145 21146# Do not use `cd foo && pwd` to compute absolute paths, because 21147# the directories may not exist. 21148case `pwd` in 21149.) ac_abs_builddir="$ac_dir";; 21150*) 21151 case "$ac_dir" in 21152 .) ac_abs_builddir=`pwd`;; 21153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21154 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21155 esac;; 21156esac 21157case $ac_abs_builddir in 21158.) ac_abs_top_builddir=${ac_top_builddir}.;; 21159*) 21160 case ${ac_top_builddir}. in 21161 .) ac_abs_top_builddir=$ac_abs_builddir;; 21162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21164 esac;; 21165esac 21166case $ac_abs_builddir in 21167.) ac_abs_srcdir=$ac_srcdir;; 21168*) 21169 case $ac_srcdir in 21170 .) ac_abs_srcdir=$ac_abs_builddir;; 21171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21173 esac;; 21174esac 21175case $ac_abs_builddir in 21176.) ac_abs_top_srcdir=$ac_top_srcdir;; 21177*) 21178 case $ac_top_srcdir in 21179 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21182 esac;; 21183esac 21184 21185 21186 case $INSTALL in 21187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21188 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21189 esac 21190 21191 if test x"$ac_file" != x-; then 21192 { echo "$as_me:$LINENO: creating $ac_file" >&5 21193echo "$as_me: creating $ac_file" >&6;} 21194 rm -f "$ac_file" 21195 fi 21196 # Let's still pretend it is `configure' which instantiates (i.e., don't 21197 # use $as_me), people would be surprised to read: 21198 # /* config.h. Generated by config.status. */ 21199 if test x"$ac_file" = x-; then 21200 configure_input= 21201 else 21202 configure_input="$ac_file. " 21203 fi 21204 configure_input=$configure_input"Generated from `echo $ac_file_in | 21205 sed 's,.*/,,'` by configure." 21206 21207 # First look for the input files in the build tree, otherwise in the 21208 # src tree. 21209 ac_file_inputs=`IFS=: 21210 for f in $ac_file_in; do 21211 case $f in 21212 -) echo $tmp/stdin ;; 21213 [\\/$]*) 21214 # Absolute (can't be DOS-style, as IFS=:) 21215 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21216echo "$as_me: error: cannot find input file: $f" >&2;} 21217 { (exit 1); exit 1; }; } 21218 echo "$f";; 21219 *) # Relative 21220 if test -f "$f"; then 21221 # Build tree 21222 echo "$f" 21223 elif test -f "$srcdir/$f"; then 21224 # Source tree 21225 echo "$srcdir/$f" 21226 else 21227 # /dev/null tree 21228 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21229echo "$as_me: error: cannot find input file: $f" >&2;} 21230 { (exit 1); exit 1; }; } 21231 fi;; 21232 esac 21233 done` || { (exit 1); exit 1; } 21234_ACEOF 21235cat >>$CONFIG_STATUS <<_ACEOF 21236 sed "$ac_vpsub 21237$extrasub 21238_ACEOF 21239cat >>$CONFIG_STATUS <<\_ACEOF 21240:t 21241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21242s,@configure_input@,$configure_input,;t t 21243s,@srcdir@,$ac_srcdir,;t t 21244s,@abs_srcdir@,$ac_abs_srcdir,;t t 21245s,@top_srcdir@,$ac_top_srcdir,;t t 21246s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21247s,@builddir@,$ac_builddir,;t t 21248s,@abs_builddir@,$ac_abs_builddir,;t t 21249s,@top_builddir@,$ac_top_builddir,;t t 21250s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21251s,@INSTALL@,$ac_INSTALL,;t t 21252" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21253 rm -f $tmp/stdin 21254 if test x"$ac_file" != x-; then 21255 mv $tmp/out $ac_file 21256 else 21257 cat $tmp/out 21258 rm -f $tmp/out 21259 fi 21260 21261done 21262_ACEOF 21263cat >>$CONFIG_STATUS <<\_ACEOF 21264 21265# 21266# CONFIG_COMMANDS section. 21267# 21268for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21269 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21270 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21271 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21272$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21273 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21274 X"$ac_dest" : 'X\(//\)$' \| \ 21275 X"$ac_dest" : 'X\(/\)' \| \ 21276 . : '\(.\)' 2>/dev/null || 21277echo X"$ac_dest" | 21278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21279 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21280 /^X\(\/\/\)$/{ s//\1/; q; } 21281 /^X\(\/\).*/{ s//\1/; q; } 21282 s/.*/./; q'` 21283 { if $as_mkdir_p; then 21284 mkdir -p "$ac_dir" 21285 else 21286 as_dir="$ac_dir" 21287 as_dirs= 21288 while test ! -d "$as_dir"; do 21289 as_dirs="$as_dir $as_dirs" 21290 as_dir=`(dirname "$as_dir") 2>/dev/null || 21291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21292 X"$as_dir" : 'X\(//\)[^/]' \| \ 21293 X"$as_dir" : 'X\(//\)$' \| \ 21294 X"$as_dir" : 'X\(/\)' \| \ 21295 . : '\(.\)' 2>/dev/null || 21296echo X"$as_dir" | 21297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21298 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21299 /^X\(\/\/\)$/{ s//\1/; q; } 21300 /^X\(\/\).*/{ s//\1/; q; } 21301 s/.*/./; q'` 21302 done 21303 test ! -n "$as_dirs" || mkdir $as_dirs 21304 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21305echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21306 { (exit 1); exit 1; }; }; } 21307 21308 ac_builddir=. 21309 21310if test "$ac_dir" != .; then 21311 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21312 # A "../" for each directory in $ac_dir_suffix. 21313 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21314else 21315 ac_dir_suffix= ac_top_builddir= 21316fi 21317 21318case $srcdir in 21319 .) # No --srcdir option. We are building in place. 21320 ac_srcdir=. 21321 if test -z "$ac_top_builddir"; then 21322 ac_top_srcdir=. 21323 else 21324 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21325 fi ;; 21326 [\\/]* | ?:[\\/]* ) # Absolute path. 21327 ac_srcdir=$srcdir$ac_dir_suffix; 21328 ac_top_srcdir=$srcdir ;; 21329 *) # Relative path. 21330 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21331 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21332esac 21333 21334# Do not use `cd foo && pwd` to compute absolute paths, because 21335# the directories may not exist. 21336case `pwd` in 21337.) ac_abs_builddir="$ac_dir";; 21338*) 21339 case "$ac_dir" in 21340 .) ac_abs_builddir=`pwd`;; 21341 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21342 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21343 esac;; 21344esac 21345case $ac_abs_builddir in 21346.) ac_abs_top_builddir=${ac_top_builddir}.;; 21347*) 21348 case ${ac_top_builddir}. in 21349 .) ac_abs_top_builddir=$ac_abs_builddir;; 21350 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21351 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21352 esac;; 21353esac 21354case $ac_abs_builddir in 21355.) ac_abs_srcdir=$ac_srcdir;; 21356*) 21357 case $ac_srcdir in 21358 .) ac_abs_srcdir=$ac_abs_builddir;; 21359 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21360 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21361 esac;; 21362esac 21363case $ac_abs_builddir in 21364.) ac_abs_top_srcdir=$ac_top_srcdir;; 21365*) 21366 case $ac_top_srcdir in 21367 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21368 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21369 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21370 esac;; 21371esac 21372 21373 21374 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21375echo "$as_me: executing $ac_dest commands" >&6;} 21376 case $ac_dest in 21377 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21378 # Strip MF so we end up with the name of the file. 21379 mf=`echo "$mf" | sed -e 's/:.*$//'` 21380 # Check whether this is an Automake generated Makefile or not. 21381 # We used to match only the files named `Makefile.in', but 21382 # some people rename them; so instead we look at the file content. 21383 # Grep'ing the first line is not enough: some people post-process 21384 # each Makefile.in and add a new line on top of each file to say so. 21385 # So let's grep whole file. 21386 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21387 dirpart=`(dirname "$mf") 2>/dev/null || 21388$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21389 X"$mf" : 'X\(//\)[^/]' \| \ 21390 X"$mf" : 'X\(//\)$' \| \ 21391 X"$mf" : 'X\(/\)' \| \ 21392 . : '\(.\)' 2>/dev/null || 21393echo X"$mf" | 21394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21395 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21396 /^X\(\/\/\)$/{ s//\1/; q; } 21397 /^X\(\/\).*/{ s//\1/; q; } 21398 s/.*/./; q'` 21399 else 21400 continue 21401 fi 21402 # Extract the definition of DEPDIR, am__include, and am__quote 21403 # from the Makefile without running `make'. 21404 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21405 test -z "$DEPDIR" && continue 21406 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21407 test -z "am__include" && continue 21408 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21409 # When using ansi2knr, U may be empty or an underscore; expand it 21410 U=`sed -n 's/^U = //p' < "$mf"` 21411 # Find all dependency output files, they are included files with 21412 # $(DEPDIR) in their names. We invoke sed twice because it is the 21413 # simplest approach to changing $(DEPDIR) to its actual value in the 21414 # expansion. 21415 for file in `sed -n " 21416 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21417 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21418 # Make sure the directory exists. 21419 test -f "$dirpart/$file" && continue 21420 fdir=`(dirname "$file") 2>/dev/null || 21421$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21422 X"$file" : 'X\(//\)[^/]' \| \ 21423 X"$file" : 'X\(//\)$' \| \ 21424 X"$file" : 'X\(/\)' \| \ 21425 . : '\(.\)' 2>/dev/null || 21426echo X"$file" | 21427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21428 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21429 /^X\(\/\/\)$/{ s//\1/; q; } 21430 /^X\(\/\).*/{ s//\1/; q; } 21431 s/.*/./; q'` 21432 { if $as_mkdir_p; then 21433 mkdir -p $dirpart/$fdir 21434 else 21435 as_dir=$dirpart/$fdir 21436 as_dirs= 21437 while test ! -d "$as_dir"; do 21438 as_dirs="$as_dir $as_dirs" 21439 as_dir=`(dirname "$as_dir") 2>/dev/null || 21440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21441 X"$as_dir" : 'X\(//\)[^/]' \| \ 21442 X"$as_dir" : 'X\(//\)$' \| \ 21443 X"$as_dir" : 'X\(/\)' \| \ 21444 . : '\(.\)' 2>/dev/null || 21445echo X"$as_dir" | 21446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21447 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21448 /^X\(\/\/\)$/{ s//\1/; q; } 21449 /^X\(\/\).*/{ s//\1/; q; } 21450 s/.*/./; q'` 21451 done 21452 test ! -n "$as_dirs" || mkdir $as_dirs 21453 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21454echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21455 { (exit 1); exit 1; }; }; } 21456 21457 # echo "creating $dirpart/$file" 21458 echo '# dummy' > "$dirpart/$file" 21459 done 21460done 21461 ;; 21462 esac 21463done 21464_ACEOF 21465 21466cat >>$CONFIG_STATUS <<\_ACEOF 21467 21468{ (exit 0); exit 0; } 21469_ACEOF 21470chmod +x $CONFIG_STATUS 21471ac_clean_files=$ac_clean_files_save 21472 21473 21474# configure is writing to config.log, and then calls config.status. 21475# config.status does its own redirection, appending to config.log. 21476# Unfortunately, on DOS this fails, as config.log is still kept open 21477# by configure, so config.status won't be able to write to it; its 21478# output is simply discarded. So we exec the FD to /dev/null, 21479# effectively closing config.log, so it can be properly (re)opened and 21480# appended to by config.status. When coming back to configure, we 21481# need to make the FD available again. 21482if test "$no_create" != yes; then 21483 ac_cs_success=: 21484 ac_config_status_args= 21485 test "$silent" = yes && 21486 ac_config_status_args="$ac_config_status_args --quiet" 21487 exec 5>/dev/null 21488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21489 exec 5>>config.log 21490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21491 # would make configure fail if this is the last instruction. 21492 $ac_cs_success || { (exit 1); exit 1; } 21493fi 21494 21495# 21496# CONFIG_SUBDIRS section. 21497# 21498if test "$no_recursion" != yes; then 21499 21500 # Remove --cache-file and --srcdir arguments so they do not pile up. 21501 ac_sub_configure_args= 21502 ac_prev= 21503 for ac_arg in $ac_configure_args; do 21504 if test -n "$ac_prev"; then 21505 ac_prev= 21506 continue 21507 fi 21508 case $ac_arg in 21509 -cache-file | --cache-file | --cache-fil | --cache-fi \ 21510 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 21511 ac_prev=cache_file ;; 21512 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 21513 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 21514 | --c=*) 21515 ;; 21516 --config-cache | -C) 21517 ;; 21518 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 21519 ac_prev=srcdir ;; 21520 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 21521 ;; 21522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 21523 ac_prev=prefix ;; 21524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 21525 ;; 21526 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 21527 esac 21528 done 21529 21530 # Always prepend --prefix to ensure using the same prefix 21531 # in subdir configurations. 21532 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 21533 21534 ac_popdir=`pwd` 21535 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 21536 21537 # Do not complain, so a configure script can configure whichever 21538 # parts of a large source tree are present. 21539 test -d $srcdir/$ac_dir || continue 21540 21541 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 21542echo "$as_me: configuring in $ac_dir" >&6;} 21543 { if $as_mkdir_p; then 21544 mkdir -p "$ac_dir" 21545 else 21546 as_dir="$ac_dir" 21547 as_dirs= 21548 while test ! -d "$as_dir"; do 21549 as_dirs="$as_dir $as_dirs" 21550 as_dir=`(dirname "$as_dir") 2>/dev/null || 21551$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21552 X"$as_dir" : 'X\(//\)[^/]' \| \ 21553 X"$as_dir" : 'X\(//\)$' \| \ 21554 X"$as_dir" : 'X\(/\)' \| \ 21555 . : '\(.\)' 2>/dev/null || 21556echo X"$as_dir" | 21557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21558 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21559 /^X\(\/\/\)$/{ s//\1/; q; } 21560 /^X\(\/\).*/{ s//\1/; q; } 21561 s/.*/./; q'` 21562 done 21563 test ! -n "$as_dirs" || mkdir $as_dirs 21564 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21565echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21566 { (exit 1); exit 1; }; }; } 21567 21568 ac_builddir=. 21569 21570if test "$ac_dir" != .; then 21571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21572 # A "../" for each directory in $ac_dir_suffix. 21573 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21574else 21575 ac_dir_suffix= ac_top_builddir= 21576fi 21577 21578case $srcdir in 21579 .) # No --srcdir option. We are building in place. 21580 ac_srcdir=. 21581 if test -z "$ac_top_builddir"; then 21582 ac_top_srcdir=. 21583 else 21584 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21585 fi ;; 21586 [\\/]* | ?:[\\/]* ) # Absolute path. 21587 ac_srcdir=$srcdir$ac_dir_suffix; 21588 ac_top_srcdir=$srcdir ;; 21589 *) # Relative path. 21590 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21591 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21592esac 21593 21594# Do not use `cd foo && pwd` to compute absolute paths, because 21595# the directories may not exist. 21596case `pwd` in 21597.) ac_abs_builddir="$ac_dir";; 21598*) 21599 case "$ac_dir" in 21600 .) ac_abs_builddir=`pwd`;; 21601 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21602 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21603 esac;; 21604esac 21605case $ac_abs_builddir in 21606.) ac_abs_top_builddir=${ac_top_builddir}.;; 21607*) 21608 case ${ac_top_builddir}. in 21609 .) ac_abs_top_builddir=$ac_abs_builddir;; 21610 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21611 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21612 esac;; 21613esac 21614case $ac_abs_builddir in 21615.) ac_abs_srcdir=$ac_srcdir;; 21616*) 21617 case $ac_srcdir in 21618 .) ac_abs_srcdir=$ac_abs_builddir;; 21619 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21620 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21621 esac;; 21622esac 21623case $ac_abs_builddir in 21624.) ac_abs_top_srcdir=$ac_top_srcdir;; 21625*) 21626 case $ac_top_srcdir in 21627 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21628 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21629 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21630 esac;; 21631esac 21632 21633 21634 cd $ac_dir 21635 21636 # Check for guested configure; otherwise get Cygnus style configure. 21637 if test -f $ac_srcdir/configure.gnu; then 21638 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 21639 elif test -f $ac_srcdir/configure; then 21640 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 21641 elif test -f $ac_srcdir/configure.in; then 21642 ac_sub_configure=$ac_configure 21643 else 21644 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 21645echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 21646 ac_sub_configure= 21647 fi 21648 21649 # The recursion is here. 21650 if test -n "$ac_sub_configure"; then 21651 # Make the cache file name correct relative to the subdirectory. 21652 case $cache_file in 21653 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 21654 *) # Relative path. 21655 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 21656 esac 21657 21658 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 21659echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 21660 # The eval makes quoting arguments work. 21661 eval $ac_sub_configure $ac_sub_configure_args \ 21662 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 21663 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 21664echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 21665 { (exit 1); exit 1; }; } 21666 fi 21667 21668 cd $ac_popdir 21669 done 21670fi 21671 21672