1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for nsspgsql 1.4. 4# 5# Report bugs to <libnsspgsql1@packages.debian.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 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='nsspgsql' 425PACKAGE_TARNAME='nsspgsql' 426PACKAGE_VERSION='1.4' 427PACKAGE_STRING='nsspgsql 1.4' 428PACKAGE_BUGREPORT='libnsspgsql1@packages.debian.org' 429 430ac_unique_file="AUTHORS" 431# Factoring default headers for most tests. 432ac_includes_default="\ 433#include <stdio.h> 434#if HAVE_SYS_TYPES_H 435# include <sys/types.h> 436#endif 437#if HAVE_SYS_STAT_H 438# include <sys/stat.h> 439#endif 440#if STDC_HEADERS 441# include <stdlib.h> 442# include <stddef.h> 443#else 444# if HAVE_STDLIB_H 445# include <stdlib.h> 446# endif 447#endif 448#if HAVE_STRING_H 449# if !STDC_HEADERS && HAVE_MEMORY_H 450# include <memory.h> 451# endif 452# include <string.h> 453#endif 454#if HAVE_STRINGS_H 455# include <strings.h> 456#endif 457#if HAVE_INTTYPES_H 458# include <inttypes.h> 459#else 460# if HAVE_STDINT_H 461# include <stdint.h> 462# endif 463#endif 464#if HAVE_UNISTD_H 465# include <unistd.h> 466#endif" 467 468ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE docdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AWK LN_S CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CC_set=${CC+set} 910ac_env_CC_value=$CC 911ac_cv_env_CC_set=${CC+set} 912ac_cv_env_CC_value=$CC 913ac_env_CFLAGS_set=${CFLAGS+set} 914ac_env_CFLAGS_value=$CFLAGS 915ac_cv_env_CFLAGS_set=${CFLAGS+set} 916ac_cv_env_CFLAGS_value=$CFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_CPP_set=${CPP+set} 926ac_env_CPP_value=$CPP 927ac_cv_env_CPP_set=${CPP+set} 928ac_cv_env_CPP_value=$CPP 929ac_env_CXX_set=${CXX+set} 930ac_env_CXX_value=$CXX 931ac_cv_env_CXX_set=${CXX+set} 932ac_cv_env_CXX_value=$CXX 933ac_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_env_CXXFLAGS_value=$CXXFLAGS 935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 936ac_cv_env_CXXFLAGS_value=$CXXFLAGS 937ac_env_CXXCPP_set=${CXXCPP+set} 938ac_env_CXXCPP_value=$CXXCPP 939ac_cv_env_CXXCPP_set=${CXXCPP+set} 940ac_cv_env_CXXCPP_value=$CXXCPP 941ac_env_F77_set=${F77+set} 942ac_env_F77_value=$F77 943ac_cv_env_F77_set=${F77+set} 944ac_cv_env_F77_value=$F77 945ac_env_FFLAGS_set=${FFLAGS+set} 946ac_env_FFLAGS_value=$FFLAGS 947ac_cv_env_FFLAGS_set=${FFLAGS+set} 948ac_cv_env_FFLAGS_value=$FFLAGS 949 950# 951# Report the --help message. 952# 953if test "$ac_init_help" = "long"; then 954 # Omit some internal or obsolete options to make the list less imposing. 955 # This message is too long to be a string in the A/UX 3.1 sh. 956 cat <<_ACEOF 957\`configure' configures nsspgsql 1.4 to adapt to many kinds of systems. 958 959Usage: $0 [OPTION]... [VAR=VALUE]... 960 961To assign environment variables (e.g., CC, CFLAGS...), specify them as 962VAR=VALUE. See below for descriptions of some of the useful variables. 963 964Defaults for the options are specified in brackets. 965 966Configuration: 967 -h, --help display this help and exit 968 --help=short display options specific to this package 969 --help=recursive display the short help of all the included packages 970 -V, --version display version information and exit 971 -q, --quiet, --silent do not print \`checking...' messages 972 --cache-file=FILE cache test results in FILE [disabled] 973 -C, --config-cache alias for \`--cache-file=config.cache' 974 -n, --no-create do not create output files 975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 976 977_ACEOF 978 979 cat <<_ACEOF 980Installation directories: 981 --prefix=PREFIX install architecture-independent files in PREFIX 982 [$ac_default_prefix] 983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 984 [PREFIX] 985 986By default, \`make install' will install all the files in 987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 988an installation prefix other than \`$ac_default_prefix' using \`--prefix', 989for instance \`--prefix=\$HOME'. 990 991For better control, use the options below. 992 993Fine tuning of the installation directories: 994 --bindir=DIR user executables [EPREFIX/bin] 995 --sbindir=DIR system admin executables [EPREFIX/sbin] 996 --libexecdir=DIR program executables [EPREFIX/libexec] 997 --datadir=DIR read-only architecture-independent data [PREFIX/share] 998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1001 --libdir=DIR object code libraries [EPREFIX/lib] 1002 --includedir=DIR C header files [PREFIX/include] 1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1004 --infodir=DIR info documentation [PREFIX/info] 1005 --mandir=DIR man documentation [PREFIX/man] 1006_ACEOF 1007 1008 cat <<\_ACEOF 1009 1010Program names: 1011 --program-prefix=PREFIX prepend PREFIX to installed program names 1012 --program-suffix=SUFFIX append SUFFIX to installed program names 1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1014 1015System types: 1016 --build=BUILD configure for building on BUILD [guessed] 1017 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1018_ACEOF 1019fi 1020 1021if test -n "$ac_init_help"; then 1022 case $ac_init_help in 1023 short | recursive ) echo "Configuration of nsspgsql 1.4:";; 1024 esac 1025 cat <<\_ACEOF 1026 1027Optional Features: 1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1030 --enable-shared[=PKGS] 1031 build shared libraries [default=yes] 1032 --enable-static[=PKGS] 1033 build static libraries [default=yes] 1034 --enable-fast-install[=PKGS] 1035 optimize for fast installation [default=yes] 1036 --disable-libtool-lock avoid locking (might break parallel builds) 1037 1038Optional Packages: 1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1041 --with-docdir Documentation directory (default is $prefix/doc) 1042 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1043 --with-pic try to use only PIC/non-PIC objects [default=use 1044 both] 1045 --with-tags[=TAGS] 1046 include additional configurations [automatic] 1047 1048Some influential environment variables: 1049 CC C compiler command 1050 CFLAGS C compiler flags 1051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1052 nonstandard directory <lib dir> 1053 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1054 headers in a nonstandard directory <include dir> 1055 CPP C preprocessor 1056 CXX C++ compiler command 1057 CXXFLAGS C++ compiler flags 1058 CXXCPP C++ preprocessor 1059 F77 Fortran 77 compiler command 1060 FFLAGS Fortran 77 compiler flags 1061 1062Use these variables to override the choices made by `configure' or to help 1063it to find libraries and programs with nonstandard names/locations. 1064 1065Report bugs to <libnsspgsql1@packages.debian.org>. 1066_ACEOF 1067fi 1068 1069if test "$ac_init_help" = "recursive"; then 1070 # If there are subdirs, report their specific --help. 1071 ac_popdir=`pwd` 1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1073 test -d $ac_dir || continue 1074 ac_builddir=. 1075 1076if test "$ac_dir" != .; then 1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1078 # A "../" for each directory in $ac_dir_suffix. 1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1080else 1081 ac_dir_suffix= ac_top_builddir= 1082fi 1083 1084case $srcdir in 1085 .) # No --srcdir option. We are building in place. 1086 ac_srcdir=. 1087 if test -z "$ac_top_builddir"; then 1088 ac_top_srcdir=. 1089 else 1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1091 fi ;; 1092 [\\/]* | ?:[\\/]* ) # Absolute path. 1093 ac_srcdir=$srcdir$ac_dir_suffix; 1094 ac_top_srcdir=$srcdir ;; 1095 *) # Relative path. 1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1097 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1098esac 1099 1100# Do not use `cd foo && pwd` to compute absolute paths, because 1101# the directories may not exist. 1102case `pwd` in 1103.) ac_abs_builddir="$ac_dir";; 1104*) 1105 case "$ac_dir" in 1106 .) ac_abs_builddir=`pwd`;; 1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1108 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1109 esac;; 1110esac 1111case $ac_abs_builddir in 1112.) ac_abs_top_builddir=${ac_top_builddir}.;; 1113*) 1114 case ${ac_top_builddir}. in 1115 .) ac_abs_top_builddir=$ac_abs_builddir;; 1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1118 esac;; 1119esac 1120case $ac_abs_builddir in 1121.) ac_abs_srcdir=$ac_srcdir;; 1122*) 1123 case $ac_srcdir in 1124 .) ac_abs_srcdir=$ac_abs_builddir;; 1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1127 esac;; 1128esac 1129case $ac_abs_builddir in 1130.) ac_abs_top_srcdir=$ac_top_srcdir;; 1131*) 1132 case $ac_top_srcdir in 1133 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1136 esac;; 1137esac 1138 1139 cd $ac_dir 1140 # Check for guested configure; otherwise get Cygnus style configure. 1141 if test -f $ac_srcdir/configure.gnu; then 1142 echo 1143 $SHELL $ac_srcdir/configure.gnu --help=recursive 1144 elif test -f $ac_srcdir/configure; then 1145 echo 1146 $SHELL $ac_srcdir/configure --help=recursive 1147 elif test -f $ac_srcdir/configure.ac || 1148 test -f $ac_srcdir/configure.in; then 1149 echo 1150 $ac_configure --help 1151 else 1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1153 fi 1154 cd "$ac_popdir" 1155 done 1156fi 1157 1158test -n "$ac_init_help" && exit 0 1159if $ac_init_version; then 1160 cat <<\_ACEOF 1161nsspgsql configure 1.4 1162generated by GNU Autoconf 2.59 1163 1164Copyright (C) 2003 Free Software Foundation, Inc. 1165This configure script is free software; the Free Software Foundation 1166gives unlimited permission to copy, distribute and modify it. 1167_ACEOF 1168 exit 0 1169fi 1170exec 5>config.log 1171cat >&5 <<_ACEOF 1172This file contains any messages produced by compilers while 1173running configure, to aid debugging if configure makes a mistake. 1174 1175It was created by nsspgsql $as_me 1.4, which was 1176generated by GNU Autoconf 2.59. Invocation command line was 1177 1178 $ $0 $@ 1179 1180_ACEOF 1181{ 1182cat <<_ASUNAME 1183## --------- ## 1184## Platform. ## 1185## --------- ## 1186 1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1188uname -m = `(uname -m) 2>/dev/null || echo unknown` 1189uname -r = `(uname -r) 2>/dev/null || echo unknown` 1190uname -s = `(uname -s) 2>/dev/null || echo unknown` 1191uname -v = `(uname -v) 2>/dev/null || echo unknown` 1192 1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1194/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1195 1196/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1197/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1199hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1200/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1201/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1202/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1203 1204_ASUNAME 1205 1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1207for as_dir in $PATH 1208do 1209 IFS=$as_save_IFS 1210 test -z "$as_dir" && as_dir=. 1211 echo "PATH: $as_dir" 1212done 1213 1214} >&5 1215 1216cat >&5 <<_ACEOF 1217 1218 1219## ----------- ## 1220## Core tests. ## 1221## ----------- ## 1222 1223_ACEOF 1224 1225 1226# Keep a trace of the command line. 1227# Strip out --no-create and --no-recursion so they do not pile up. 1228# Strip out --silent because we don't want to record it for future runs. 1229# Also quote any args containing shell meta-characters. 1230# Make two passes to allow for proper duplicate-argument suppression. 1231ac_configure_args= 1232ac_configure_args0= 1233ac_configure_args1= 1234ac_sep= 1235ac_must_keep_next=false 1236for ac_pass in 1 2 1237do 1238 for ac_arg 1239 do 1240 case $ac_arg in 1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1243 | -silent | --silent | --silen | --sile | --sil) 1244 continue ;; 1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1247 esac 1248 case $ac_pass in 1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1250 2) 1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1252 if test $ac_must_keep_next = true; then 1253 ac_must_keep_next=false # Got value, back to normal. 1254 else 1255 case $ac_arg in 1256 *=* | --config-cache | -C | -disable-* | --disable-* \ 1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1259 | -with-* | --with-* | -without-* | --without-* | --x) 1260 case "$ac_configure_args0 " in 1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1262 esac 1263 ;; 1264 -* ) ac_must_keep_next=true ;; 1265 esac 1266 fi 1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1268 # Get rid of the leading space. 1269 ac_sep=" " 1270 ;; 1271 esac 1272 done 1273done 1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1276 1277# When interrupted or exit'd, cleanup temporary files, and complete 1278# config.log. We remove comments because anyway the quotes in there 1279# would cause problems or look ugly. 1280# WARNING: Be sure not to use single quotes in there, as some shells, 1281# such as our DU 5.0 friend, will then `close' the trap. 1282trap 'exit_status=$? 1283 # Save into config.log some information that might help in debugging. 1284 { 1285 echo 1286 1287 cat <<\_ASBOX 1288## ---------------- ## 1289## Cache variables. ## 1290## ---------------- ## 1291_ASBOX 1292 echo 1293 # The following way of writing the cache mishandles newlines in values, 1294{ 1295 (set) 2>&1 | 1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1297 *ac_space=\ *) 1298 sed -n \ 1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1301 ;; 1302 *) 1303 sed -n \ 1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1305 ;; 1306 esac; 1307} 1308 echo 1309 1310 cat <<\_ASBOX 1311## ----------------- ## 1312## Output variables. ## 1313## ----------------- ## 1314_ASBOX 1315 echo 1316 for ac_var in $ac_subst_vars 1317 do 1318 eval ac_val=$`echo $ac_var` 1319 echo "$ac_var='"'"'$ac_val'"'"'" 1320 done | sort 1321 echo 1322 1323 if test -n "$ac_subst_files"; then 1324 cat <<\_ASBOX 1325## ------------- ## 1326## Output files. ## 1327## ------------- ## 1328_ASBOX 1329 echo 1330 for ac_var in $ac_subst_files 1331 do 1332 eval ac_val=$`echo $ac_var` 1333 echo "$ac_var='"'"'$ac_val'"'"'" 1334 done | sort 1335 echo 1336 fi 1337 1338 if test -s confdefs.h; then 1339 cat <<\_ASBOX 1340## ----------- ## 1341## confdefs.h. ## 1342## ----------- ## 1343_ASBOX 1344 echo 1345 sed "/^$/d" confdefs.h | sort 1346 echo 1347 fi 1348 test "$ac_signal" != 0 && 1349 echo "$as_me: caught signal $ac_signal" 1350 echo "$as_me: exit $exit_status" 1351 } >&5 1352 rm -f core *.core && 1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1354 exit $exit_status 1355 ' 0 1356for ac_signal in 1 2 13 15; do 1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1358done 1359ac_signal=0 1360 1361# confdefs.h avoids OS command line length limits that DEFS can exceed. 1362rm -rf conftest* confdefs.h 1363# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1364echo >confdefs.h 1365 1366# Predefined preprocessor variables. 1367 1368cat >>confdefs.h <<_ACEOF 1369#define PACKAGE_NAME "$PACKAGE_NAME" 1370_ACEOF 1371 1372 1373cat >>confdefs.h <<_ACEOF 1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1375_ACEOF 1376 1377 1378cat >>confdefs.h <<_ACEOF 1379#define PACKAGE_VERSION "$PACKAGE_VERSION" 1380_ACEOF 1381 1382 1383cat >>confdefs.h <<_ACEOF 1384#define PACKAGE_STRING "$PACKAGE_STRING" 1385_ACEOF 1386 1387 1388cat >>confdefs.h <<_ACEOF 1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1390_ACEOF 1391 1392 1393# Let the site file select an alternate cache file if it wants to. 1394# Prefer explicitly selected file to automatically selected ones. 1395if test -z "$CONFIG_SITE"; then 1396 if test "x$prefix" != xNONE; then 1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1398 else 1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1400 fi 1401fi 1402for ac_site_file in $CONFIG_SITE; do 1403 if test -r "$ac_site_file"; then 1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1405echo "$as_me: loading site script $ac_site_file" >&6;} 1406 sed 's/^/| /' "$ac_site_file" >&5 1407 . "$ac_site_file" 1408 fi 1409done 1410 1411if test -r "$cache_file"; then 1412 # Some versions of bash will fail to source /dev/null (special 1413 # files actually), so we avoid doing that. 1414 if test -f "$cache_file"; then 1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1416echo "$as_me: loading cache $cache_file" >&6;} 1417 case $cache_file in 1418 [\\/]* | ?:[\\/]* ) . $cache_file;; 1419 *) . ./$cache_file;; 1420 esac 1421 fi 1422else 1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1424echo "$as_me: creating cache $cache_file" >&6;} 1425 >$cache_file 1426fi 1427 1428# Check that the precious variables saved in the cache have kept the same 1429# value. 1430ac_cache_corrupted=false 1431for ac_var in `(set) 2>&1 | 1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1434 eval ac_new_set=\$ac_env_${ac_var}_set 1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1436 eval ac_new_val="\$ac_env_${ac_var}_value" 1437 case $ac_old_set,$ac_new_set in 1438 set,) 1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1441 ac_cache_corrupted=: ;; 1442 ,set) 1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1445 ac_cache_corrupted=: ;; 1446 ,);; 1447 *) 1448 if test "x$ac_old_val" != "x$ac_new_val"; then 1449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1452echo "$as_me: former value: $ac_old_val" >&2;} 1453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1454echo "$as_me: current value: $ac_new_val" >&2;} 1455 ac_cache_corrupted=: 1456 fi;; 1457 esac 1458 # Pass precious variables to config.status. 1459 if test "$ac_new_set" = set; then 1460 case $ac_new_val in 1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1463 *) ac_arg=$ac_var=$ac_new_val ;; 1464 esac 1465 case " $ac_configure_args " in 1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1468 esac 1469 fi 1470done 1471if $ac_cache_corrupted; then 1472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1473echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1476 { (exit 1); exit 1; }; } 1477fi 1478 1479ac_ext=c 1480ac_cpp='$CPP $CPPFLAGS' 1481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1483ac_compiler_gnu=$ac_cv_c_compiler_gnu 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511ac_aux_dir= 1512for ac_dir in autoconf $srcdir/autoconf; do 1513 if test -f $ac_dir/install-sh; then 1514 ac_aux_dir=$ac_dir 1515 ac_install_sh="$ac_aux_dir/install-sh -c" 1516 break 1517 elif test -f $ac_dir/install.sh; then 1518 ac_aux_dir=$ac_dir 1519 ac_install_sh="$ac_aux_dir/install.sh -c" 1520 break 1521 elif test -f $ac_dir/shtool; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/shtool install -c" 1524 break 1525 fi 1526done 1527if test -z "$ac_aux_dir"; then 1528 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1529echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1530 { (exit 1); exit 1; }; } 1531fi 1532ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1533ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1534ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1535 1536am__api_version="1.4" 1537# Find a good install program. We prefer a C program (faster), 1538# so one script is as good as another. But avoid the broken or 1539# incompatible versions: 1540# SysV /etc/install, /usr/sbin/install 1541# SunOS /usr/etc/install 1542# IRIX /sbin/install 1543# AIX /bin/install 1544# AmigaOS /C/install, which installs bootblocks on floppy discs 1545# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1546# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1547# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1548# OS/2's system install, which has a completely different semantic 1549# ./install, which can be erroneously created by make from ./install.sh. 1550echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1551echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1552if test -z "$INSTALL"; then 1553if test "${ac_cv_path_install+set}" = set; then 1554 echo $ECHO_N "(cached) $ECHO_C" >&6 1555else 1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1557for as_dir in $PATH 1558do 1559 IFS=$as_save_IFS 1560 test -z "$as_dir" && as_dir=. 1561 # Account for people who put trailing slashes in PATH elements. 1562case $as_dir/ in 1563 ./ | .// | /cC/* | \ 1564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1565 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1566 /usr/ucb/* ) ;; 1567 *) 1568 # OSF1 and SCO ODT 3.0 have their own names for install. 1569 # Don't use installbsd from OSF since it installs stuff as root 1570 # by default. 1571 for ac_prog in ginstall scoinst install; do 1572 for ac_exec_ext in '' $ac_executable_extensions; do 1573 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1574 if test $ac_prog = install && 1575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1576 # AIX install. It has an incompatible calling convention. 1577 : 1578 elif test $ac_prog = install && 1579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1580 # program-specific install script used by HP pwplus--don't use. 1581 : 1582 else 1583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1584 break 3 1585 fi 1586 fi 1587 done 1588 done 1589 ;; 1590esac 1591done 1592 1593 1594fi 1595 if test "${ac_cv_path_install+set}" = set; then 1596 INSTALL=$ac_cv_path_install 1597 else 1598 # As a last resort, use the slow shell script. We don't cache a 1599 # path for INSTALL within a source directory, because that will 1600 # break other packages using the cache if that directory is 1601 # removed, or if the path is relative. 1602 INSTALL=$ac_install_sh 1603 fi 1604fi 1605echo "$as_me:$LINENO: result: $INSTALL" >&5 1606echo "${ECHO_T}$INSTALL" >&6 1607 1608# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1609# It thinks the first close brace ends the variable substitution. 1610test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1611 1612test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1613 1614test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1615 1616echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1617echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1618# Just in case 1619sleep 1 1620echo timestamp > conftestfile 1621# Do `set' in a subshell so we don't clobber the current shell's 1622# arguments. Must try -L first in case configure is actually a 1623# symlink; some systems play weird games with the mod time of symlinks 1624# (eg FreeBSD returns the mod time of the symlink's containing 1625# directory). 1626if ( 1627 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 1628 if test "$*" = "X"; then 1629 # -L didn't work. 1630 set X `ls -t $srcdir/configure conftestfile` 1631 fi 1632 if test "$*" != "X $srcdir/configure conftestfile" \ 1633 && test "$*" != "X conftestfile $srcdir/configure"; then 1634 1635 # If neither matched, then we have a broken ls. This can happen 1636 # if, for instance, CONFIG_SHELL is bash and it inherits a 1637 # broken ls alias from the environment. This has actually 1638 # happened. Such a system could not be considered "sane". 1639 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1640alias in your environment" >&5 1641echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1642alias in your environment" >&2;} 1643 { (exit 1); exit 1; }; } 1644 fi 1645 1646 test "$2" = conftestfile 1647 ) 1648then 1649 # Ok. 1650 : 1651else 1652 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1653Check your system clock" >&5 1654echo "$as_me: error: newly created file is older than distributed files! 1655Check your system clock" >&2;} 1656 { (exit 1); exit 1; }; } 1657fi 1658rm -f conftest* 1659echo "$as_me:$LINENO: result: yes" >&5 1660echo "${ECHO_T}yes" >&6 1661test "$program_prefix" != NONE && 1662 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1663# Use a double $ so make ignores it. 1664test "$program_suffix" != NONE && 1665 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1666# Double any \ or $. echo might interpret backslashes. 1667# By default was `s,x,x', remove it if useless. 1668cat <<\_ACEOF >conftest.sed 1669s/[\\$]/&&/g;s/;s,x,x,$// 1670_ACEOF 1671program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1672rm conftest.sed 1673 1674echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1675echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1676set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1677if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1678 echo $ECHO_N "(cached) $ECHO_C" >&6 1679else 1680 cat >conftest.make <<\_ACEOF 1681all: 1682 @echo 'ac_maketemp="$(MAKE)"' 1683_ACEOF 1684# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1685eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1686if test -n "$ac_maketemp"; then 1687 eval ac_cv_prog_make_${ac_make}_set=yes 1688else 1689 eval ac_cv_prog_make_${ac_make}_set=no 1690fi 1691rm -f conftest.make 1692fi 1693if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1694 echo "$as_me:$LINENO: result: yes" >&5 1695echo "${ECHO_T}yes" >&6 1696 SET_MAKE= 1697else 1698 echo "$as_me:$LINENO: result: no" >&5 1699echo "${ECHO_T}no" >&6 1700 SET_MAKE="MAKE=${MAKE-make}" 1701fi 1702 1703 1704PACKAGE= 1705 1706VERSION= 1707 1708if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1709 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1710echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1711 { (exit 1); exit 1; }; } 1712fi 1713 1714cat >>confdefs.h <<_ACEOF 1715#define PACKAGE "$PACKAGE" 1716_ACEOF 1717 1718 1719cat >>confdefs.h <<_ACEOF 1720#define VERSION "$VERSION" 1721_ACEOF 1722 1723 1724 1725missing_dir=`cd $ac_aux_dir && pwd` 1726echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 1727echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 1728# Run test in a subshell; some versions of sh will print an error if 1729# an executable is not found, even if stderr is redirected. 1730# Redirect stdin to placate older versions of autoconf. Sigh. 1731if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1732 ACLOCAL=aclocal-${am__api_version} 1733 echo "$as_me:$LINENO: result: found" >&5 1734echo "${ECHO_T}found" >&6 1735else 1736 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" 1737 echo "$as_me:$LINENO: result: missing" >&5 1738echo "${ECHO_T}missing" >&6 1739fi 1740 1741echo "$as_me:$LINENO: checking for working autoconf" >&5 1742echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 1743# Run test in a subshell; some versions of sh will print an error if 1744# an executable is not found, even if stderr is redirected. 1745# Redirect stdin to placate older versions of autoconf. Sigh. 1746if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1747 AUTOCONF=autoconf 1748 echo "$as_me:$LINENO: result: found" >&5 1749echo "${ECHO_T}found" >&6 1750else 1751 AUTOCONF="$missing_dir/missing autoconf" 1752 echo "$as_me:$LINENO: result: missing" >&5 1753echo "${ECHO_T}missing" >&6 1754fi 1755 1756echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 1757echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 1758# Run test in a subshell; some versions of sh will print an error if 1759# an executable is not found, even if stderr is redirected. 1760# Redirect stdin to placate older versions of autoconf. Sigh. 1761if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1762 AUTOMAKE=automake-${am__api_version} 1763 echo "$as_me:$LINENO: result: found" >&5 1764echo "${ECHO_T}found" >&6 1765else 1766 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 1767 echo "$as_me:$LINENO: result: missing" >&5 1768echo "${ECHO_T}missing" >&6 1769fi 1770 1771echo "$as_me:$LINENO: checking for working autoheader" >&5 1772echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 1773# Run test in a subshell; some versions of sh will print an error if 1774# an executable is not found, even if stderr is redirected. 1775# Redirect stdin to placate older versions of autoconf. Sigh. 1776if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1777 AUTOHEADER=autoheader 1778 echo "$as_me:$LINENO: result: found" >&5 1779echo "${ECHO_T}found" >&6 1780else 1781 AUTOHEADER="$missing_dir/missing autoheader" 1782 echo "$as_me:$LINENO: result: missing" >&5 1783echo "${ECHO_T}missing" >&6 1784fi 1785 1786echo "$as_me:$LINENO: checking for working makeinfo" >&5 1787echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 1788# Run test in a subshell; some versions of sh will print an error if 1789# an executable is not found, even if stderr is redirected. 1790# Redirect stdin to placate older versions of autoconf. Sigh. 1791if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1792 MAKEINFO=makeinfo 1793 echo "$as_me:$LINENO: result: found" >&5 1794echo "${ECHO_T}found" >&6 1795else 1796 MAKEINFO="$missing_dir/missing makeinfo" 1797 echo "$as_me:$LINENO: result: missing" >&5 1798echo "${ECHO_T}missing" >&6 1799fi 1800 1801 1802 1803 1804 ac_config_headers="$ac_config_headers config.h" 1805 1806 ac_config_commands="$ac_config_commands default-1" 1807 1808 1809# Extra configure arguments 1810 1811# Check whether --with-docdir or --without-docdir was given. 1812if test "${with_docdir+set}" = set; then 1813 withval="$with_docdir" 1814 ac_cv_docdir=$withval 1815else 1816 ac_cv_docdir=$prefix/doc 1817fi; 1818docdir=$ac_cv_docdir 1819 1820 1821# Checks for programs. 1822ac_ext=c 1823ac_cpp='$CPP $CPPFLAGS' 1824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1826ac_compiler_gnu=$ac_cv_c_compiler_gnu 1827if test -n "$ac_tool_prefix"; then 1828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1829set dummy ${ac_tool_prefix}gcc; ac_word=$2 1830echo "$as_me:$LINENO: checking for $ac_word" >&5 1831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1832if test "${ac_cv_prog_CC+set}" = set; then 1833 echo $ECHO_N "(cached) $ECHO_C" >&6 1834else 1835 if test -n "$CC"; then 1836 ac_cv_prog_CC="$CC" # Let the user override the test. 1837else 1838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1839for as_dir in $PATH 1840do 1841 IFS=$as_save_IFS 1842 test -z "$as_dir" && as_dir=. 1843 for ac_exec_ext in '' $ac_executable_extensions; do 1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1845 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1847 break 2 1848 fi 1849done 1850done 1851 1852fi 1853fi 1854CC=$ac_cv_prog_CC 1855if test -n "$CC"; then 1856 echo "$as_me:$LINENO: result: $CC" >&5 1857echo "${ECHO_T}$CC" >&6 1858else 1859 echo "$as_me:$LINENO: result: no" >&5 1860echo "${ECHO_T}no" >&6 1861fi 1862 1863fi 1864if test -z "$ac_cv_prog_CC"; then 1865 ac_ct_CC=$CC 1866 # Extract the first word of "gcc", so it can be a program name with args. 1867set dummy gcc; ac_word=$2 1868echo "$as_me:$LINENO: checking for $ac_word" >&5 1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1871 echo $ECHO_N "(cached) $ECHO_C" >&6 1872else 1873 if test -n "$ac_ct_CC"; then 1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1875else 1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1877for as_dir in $PATH 1878do 1879 IFS=$as_save_IFS 1880 test -z "$as_dir" && as_dir=. 1881 for ac_exec_ext in '' $ac_executable_extensions; do 1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1883 ac_cv_prog_ac_ct_CC="gcc" 1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1885 break 2 1886 fi 1887done 1888done 1889 1890fi 1891fi 1892ac_ct_CC=$ac_cv_prog_ac_ct_CC 1893if test -n "$ac_ct_CC"; then 1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1895echo "${ECHO_T}$ac_ct_CC" >&6 1896else 1897 echo "$as_me:$LINENO: result: no" >&5 1898echo "${ECHO_T}no" >&6 1899fi 1900 1901 CC=$ac_ct_CC 1902else 1903 CC="$ac_cv_prog_CC" 1904fi 1905 1906if test -z "$CC"; then 1907 if test -n "$ac_tool_prefix"; then 1908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1909set dummy ${ac_tool_prefix}cc; ac_word=$2 1910echo "$as_me:$LINENO: checking for $ac_word" >&5 1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1912if test "${ac_cv_prog_CC+set}" = set; then 1913 echo $ECHO_N "(cached) $ECHO_C" >&6 1914else 1915 if test -n "$CC"; then 1916 ac_cv_prog_CC="$CC" # Let the user override the test. 1917else 1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1919for as_dir in $PATH 1920do 1921 IFS=$as_save_IFS 1922 test -z "$as_dir" && as_dir=. 1923 for ac_exec_ext in '' $ac_executable_extensions; do 1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1925 ac_cv_prog_CC="${ac_tool_prefix}cc" 1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1927 break 2 1928 fi 1929done 1930done 1931 1932fi 1933fi 1934CC=$ac_cv_prog_CC 1935if test -n "$CC"; then 1936 echo "$as_me:$LINENO: result: $CC" >&5 1937echo "${ECHO_T}$CC" >&6 1938else 1939 echo "$as_me:$LINENO: result: no" >&5 1940echo "${ECHO_T}no" >&6 1941fi 1942 1943fi 1944if test -z "$ac_cv_prog_CC"; then 1945 ac_ct_CC=$CC 1946 # Extract the first word of "cc", so it can be a program name with args. 1947set dummy cc; ac_word=$2 1948echo "$as_me:$LINENO: checking for $ac_word" >&5 1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1951 echo $ECHO_N "(cached) $ECHO_C" >&6 1952else 1953 if test -n "$ac_ct_CC"; then 1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1955else 1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1957for as_dir in $PATH 1958do 1959 IFS=$as_save_IFS 1960 test -z "$as_dir" && as_dir=. 1961 for ac_exec_ext in '' $ac_executable_extensions; do 1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1963 ac_cv_prog_ac_ct_CC="cc" 1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1965 break 2 1966 fi 1967done 1968done 1969 1970fi 1971fi 1972ac_ct_CC=$ac_cv_prog_ac_ct_CC 1973if test -n "$ac_ct_CC"; then 1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1975echo "${ECHO_T}$ac_ct_CC" >&6 1976else 1977 echo "$as_me:$LINENO: result: no" >&5 1978echo "${ECHO_T}no" >&6 1979fi 1980 1981 CC=$ac_ct_CC 1982else 1983 CC="$ac_cv_prog_CC" 1984fi 1985 1986fi 1987if test -z "$CC"; then 1988 # Extract the first word of "cc", so it can be a program name with args. 1989set dummy cc; ac_word=$2 1990echo "$as_me:$LINENO: checking for $ac_word" >&5 1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1992if test "${ac_cv_prog_CC+set}" = set; then 1993 echo $ECHO_N "(cached) $ECHO_C" >&6 1994else 1995 if test -n "$CC"; then 1996 ac_cv_prog_CC="$CC" # Let the user override the test. 1997else 1998 ac_prog_rejected=no 1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2000for as_dir in $PATH 2001do 2002 IFS=$as_save_IFS 2003 test -z "$as_dir" && as_dir=. 2004 for ac_exec_ext in '' $ac_executable_extensions; do 2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2007 ac_prog_rejected=yes 2008 continue 2009 fi 2010 ac_cv_prog_CC="cc" 2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2012 break 2 2013 fi 2014done 2015done 2016 2017if test $ac_prog_rejected = yes; then 2018 # We found a bogon in the path, so make sure we never use it. 2019 set dummy $ac_cv_prog_CC 2020 shift 2021 if test $# != 0; then 2022 # We chose a different compiler from the bogus one. 2023 # However, it has the same basename, so the bogon will be chosen 2024 # first if we set CC to just the basename; use the full file name. 2025 shift 2026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2027 fi 2028fi 2029fi 2030fi 2031CC=$ac_cv_prog_CC 2032if test -n "$CC"; then 2033 echo "$as_me:$LINENO: result: $CC" >&5 2034echo "${ECHO_T}$CC" >&6 2035else 2036 echo "$as_me:$LINENO: result: no" >&5 2037echo "${ECHO_T}no" >&6 2038fi 2039 2040fi 2041if test -z "$CC"; then 2042 if test -n "$ac_tool_prefix"; then 2043 for ac_prog in cl 2044 do 2045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2046set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2047echo "$as_me:$LINENO: checking for $ac_word" >&5 2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2049if test "${ac_cv_prog_CC+set}" = set; then 2050 echo $ECHO_N "(cached) $ECHO_C" >&6 2051else 2052 if test -n "$CC"; then 2053 ac_cv_prog_CC="$CC" # Let the user override the test. 2054else 2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2056for as_dir in $PATH 2057do 2058 IFS=$as_save_IFS 2059 test -z "$as_dir" && as_dir=. 2060 for ac_exec_ext in '' $ac_executable_extensions; do 2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2064 break 2 2065 fi 2066done 2067done 2068 2069fi 2070fi 2071CC=$ac_cv_prog_CC 2072if test -n "$CC"; then 2073 echo "$as_me:$LINENO: result: $CC" >&5 2074echo "${ECHO_T}$CC" >&6 2075else 2076 echo "$as_me:$LINENO: result: no" >&5 2077echo "${ECHO_T}no" >&6 2078fi 2079 2080 test -n "$CC" && break 2081 done 2082fi 2083if test -z "$CC"; then 2084 ac_ct_CC=$CC 2085 for ac_prog in cl 2086do 2087 # Extract the first word of "$ac_prog", so it can be a program name with args. 2088set dummy $ac_prog; ac_word=$2 2089echo "$as_me:$LINENO: checking for $ac_word" >&5 2090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2091if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2092 echo $ECHO_N "(cached) $ECHO_C" >&6 2093else 2094 if test -n "$ac_ct_CC"; then 2095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2096else 2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2098for as_dir in $PATH 2099do 2100 IFS=$as_save_IFS 2101 test -z "$as_dir" && as_dir=. 2102 for ac_exec_ext in '' $ac_executable_extensions; do 2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2104 ac_cv_prog_ac_ct_CC="$ac_prog" 2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2106 break 2 2107 fi 2108done 2109done 2110 2111fi 2112fi 2113ac_ct_CC=$ac_cv_prog_ac_ct_CC 2114if test -n "$ac_ct_CC"; then 2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2116echo "${ECHO_T}$ac_ct_CC" >&6 2117else 2118 echo "$as_me:$LINENO: result: no" >&5 2119echo "${ECHO_T}no" >&6 2120fi 2121 2122 test -n "$ac_ct_CC" && break 2123done 2124 2125 CC=$ac_ct_CC 2126fi 2127 2128fi 2129 2130 2131test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2132See \`config.log' for more details." >&5 2133echo "$as_me: error: no acceptable C compiler found in \$PATH 2134See \`config.log' for more details." >&2;} 2135 { (exit 1); exit 1; }; } 2136 2137# Provide some information about the compiler. 2138echo "$as_me:$LINENO:" \ 2139 "checking for C compiler version" >&5 2140ac_compiler=`set X $ac_compile; echo $2` 2141{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2142 (eval $ac_compiler --version </dev/null >&5) 2>&5 2143 ac_status=$? 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); } 2146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2147 (eval $ac_compiler -v </dev/null >&5) 2>&5 2148 ac_status=$? 2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2150 (exit $ac_status); } 2151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2152 (eval $ac_compiler -V </dev/null >&5) 2>&5 2153 ac_status=$? 2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2155 (exit $ac_status); } 2156 2157cat >conftest.$ac_ext <<_ACEOF 2158/* confdefs.h. */ 2159_ACEOF 2160cat confdefs.h >>conftest.$ac_ext 2161cat >>conftest.$ac_ext <<_ACEOF 2162/* end confdefs.h. */ 2163 2164int 2165main () 2166{ 2167 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172ac_clean_files_save=$ac_clean_files 2173ac_clean_files="$ac_clean_files a.out a.exe b.out" 2174# Try to create an executable without -o first, disregard a.out. 2175# It will help us diagnose broken compilers, and finding out an intuition 2176# of exeext. 2177echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2178echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2179ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2180if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2181 (eval $ac_link_default) 2>&5 2182 ac_status=$? 2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2184 (exit $ac_status); }; then 2185 # Find the output, starting from the most likely. This scheme is 2186# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2187# resort. 2188 2189# Be careful to initialize this variable, since it used to be cached. 2190# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2191ac_cv_exeext= 2192# b.out is created by i960 compilers. 2193for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2194do 2195 test -f "$ac_file" || continue 2196 case $ac_file in 2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2198 ;; 2199 conftest.$ac_ext ) 2200 # This is the source file. 2201 ;; 2202 [ab].out ) 2203 # We found the default executable, but exeext='' is most 2204 # certainly right. 2205 break;; 2206 *.* ) 2207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2208 # FIXME: I believe we export ac_cv_exeext for Libtool, 2209 # but it would be cool to find out if it's true. Does anybody 2210 # maintain Libtool? --akim. 2211 export ac_cv_exeext 2212 break;; 2213 * ) 2214 break;; 2215 esac 2216done 2217else 2218 echo "$as_me: failed program was:" >&5 2219sed 's/^/| /' conftest.$ac_ext >&5 2220 2221{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2222See \`config.log' for more details." >&5 2223echo "$as_me: error: C compiler cannot create executables 2224See \`config.log' for more details." >&2;} 2225 { (exit 77); exit 77; }; } 2226fi 2227 2228ac_exeext=$ac_cv_exeext 2229echo "$as_me:$LINENO: result: $ac_file" >&5 2230echo "${ECHO_T}$ac_file" >&6 2231 2232# Check the compiler produces executables we can run. If not, either 2233# the compiler is broken, or we cross compile. 2234echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2235echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2236# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2237# If not cross compiling, check that we can run a simple program. 2238if test "$cross_compiling" != yes; then 2239 if { ac_try='./$ac_file' 2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2241 (eval $ac_try) 2>&5 2242 ac_status=$? 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2244 (exit $ac_status); }; }; then 2245 cross_compiling=no 2246 else 2247 if test "$cross_compiling" = maybe; then 2248 cross_compiling=yes 2249 else 2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2251If you meant to cross compile, use \`--host'. 2252See \`config.log' for more details." >&5 2253echo "$as_me: error: cannot run C compiled programs. 2254If you meant to cross compile, use \`--host'. 2255See \`config.log' for more details." >&2;} 2256 { (exit 1); exit 1; }; } 2257 fi 2258 fi 2259fi 2260echo "$as_me:$LINENO: result: yes" >&5 2261echo "${ECHO_T}yes" >&6 2262 2263rm -f a.out a.exe conftest$ac_cv_exeext b.out 2264ac_clean_files=$ac_clean_files_save 2265# Check the compiler produces executables we can run. If not, either 2266# the compiler is broken, or we cross compile. 2267echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2268echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2269echo "$as_me:$LINENO: result: $cross_compiling" >&5 2270echo "${ECHO_T}$cross_compiling" >&6 2271 2272echo "$as_me:$LINENO: checking for suffix of executables" >&5 2273echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2275 (eval $ac_link) 2>&5 2276 ac_status=$? 2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2278 (exit $ac_status); }; then 2279 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2280# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2281# work properly (i.e., refer to `conftest.exe'), while it won't with 2282# `rm'. 2283for ac_file in conftest.exe conftest conftest.*; do 2284 test -f "$ac_file" || continue 2285 case $ac_file in 2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2288 export ac_cv_exeext 2289 break;; 2290 * ) break;; 2291 esac 2292done 2293else 2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2295See \`config.log' for more details." >&5 2296echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2297See \`config.log' for more details." >&2;} 2298 { (exit 1); exit 1; }; } 2299fi 2300 2301rm -f conftest$ac_cv_exeext 2302echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2303echo "${ECHO_T}$ac_cv_exeext" >&6 2304 2305rm -f conftest.$ac_ext 2306EXEEXT=$ac_cv_exeext 2307ac_exeext=$EXEEXT 2308echo "$as_me:$LINENO: checking for suffix of object files" >&5 2309echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2310if test "${ac_cv_objext+set}" = set; then 2311 echo $ECHO_N "(cached) $ECHO_C" >&6 2312else 2313 cat >conftest.$ac_ext <<_ACEOF 2314/* confdefs.h. */ 2315_ACEOF 2316cat confdefs.h >>conftest.$ac_ext 2317cat >>conftest.$ac_ext <<_ACEOF 2318/* end confdefs.h. */ 2319 2320int 2321main () 2322{ 2323 2324 ; 2325 return 0; 2326} 2327_ACEOF 2328rm -f conftest.o conftest.obj 2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2330 (eval $ac_compile) 2>&5 2331 ac_status=$? 2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2333 (exit $ac_status); }; then 2334 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2335 case $ac_file in 2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2338 break;; 2339 esac 2340done 2341else 2342 echo "$as_me: failed program was:" >&5 2343sed 's/^/| /' conftest.$ac_ext >&5 2344 2345{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2346See \`config.log' for more details." >&5 2347echo "$as_me: error: cannot compute suffix of object files: cannot compile 2348See \`config.log' for more details." >&2;} 2349 { (exit 1); exit 1; }; } 2350fi 2351 2352rm -f conftest.$ac_cv_objext conftest.$ac_ext 2353fi 2354echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2355echo "${ECHO_T}$ac_cv_objext" >&6 2356OBJEXT=$ac_cv_objext 2357ac_objext=$OBJEXT 2358echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2359echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2360if test "${ac_cv_c_compiler_gnu+set}" = set; then 2361 echo $ECHO_N "(cached) $ECHO_C" >&6 2362else 2363 cat >conftest.$ac_ext <<_ACEOF 2364/* confdefs.h. */ 2365_ACEOF 2366cat confdefs.h >>conftest.$ac_ext 2367cat >>conftest.$ac_ext <<_ACEOF 2368/* end confdefs.h. */ 2369 2370int 2371main () 2372{ 2373#ifndef __GNUC__ 2374 choke me 2375#endif 2376 2377 ; 2378 return 0; 2379} 2380_ACEOF 2381rm -f conftest.$ac_objext 2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2383 (eval $ac_compile) 2>conftest.er1 2384 ac_status=$? 2385 grep -v '^ *+' conftest.er1 >conftest.err 2386 rm -f conftest.er1 2387 cat conftest.err >&5 2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2389 (exit $ac_status); } && 2390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2392 (eval $ac_try) 2>&5 2393 ac_status=$? 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); }; } && 2396 { ac_try='test -s conftest.$ac_objext' 2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2398 (eval $ac_try) 2>&5 2399 ac_status=$? 2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2401 (exit $ac_status); }; }; then 2402 ac_compiler_gnu=yes 2403else 2404 echo "$as_me: failed program was:" >&5 2405sed 's/^/| /' conftest.$ac_ext >&5 2406 2407ac_compiler_gnu=no 2408fi 2409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2410ac_cv_c_compiler_gnu=$ac_compiler_gnu 2411 2412fi 2413echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2414echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2415GCC=`test $ac_compiler_gnu = yes && echo yes` 2416ac_test_CFLAGS=${CFLAGS+set} 2417ac_save_CFLAGS=$CFLAGS 2418CFLAGS="-g" 2419echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2420echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2421if test "${ac_cv_prog_cc_g+set}" = set; then 2422 echo $ECHO_N "(cached) $ECHO_C" >&6 2423else 2424 cat >conftest.$ac_ext <<_ACEOF 2425/* confdefs.h. */ 2426_ACEOF 2427cat confdefs.h >>conftest.$ac_ext 2428cat >>conftest.$ac_ext <<_ACEOF 2429/* end confdefs.h. */ 2430 2431int 2432main () 2433{ 2434 2435 ; 2436 return 0; 2437} 2438_ACEOF 2439rm -f conftest.$ac_objext 2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2441 (eval $ac_compile) 2>conftest.er1 2442 ac_status=$? 2443 grep -v '^ *+' conftest.er1 >conftest.err 2444 rm -f conftest.er1 2445 cat conftest.err >&5 2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2447 (exit $ac_status); } && 2448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2450 (eval $ac_try) 2>&5 2451 ac_status=$? 2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2453 (exit $ac_status); }; } && 2454 { ac_try='test -s conftest.$ac_objext' 2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2456 (eval $ac_try) 2>&5 2457 ac_status=$? 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); }; }; then 2460 ac_cv_prog_cc_g=yes 2461else 2462 echo "$as_me: failed program was:" >&5 2463sed 's/^/| /' conftest.$ac_ext >&5 2464 2465ac_cv_prog_cc_g=no 2466fi 2467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2468fi 2469echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2470echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2471if test "$ac_test_CFLAGS" = set; then 2472 CFLAGS=$ac_save_CFLAGS 2473elif test $ac_cv_prog_cc_g = yes; then 2474 if test "$GCC" = yes; then 2475 CFLAGS="-g -O2" 2476 else 2477 CFLAGS="-g" 2478 fi 2479else 2480 if test "$GCC" = yes; then 2481 CFLAGS="-O2" 2482 else 2483 CFLAGS= 2484 fi 2485fi 2486echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2487echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2488if test "${ac_cv_prog_cc_stdc+set}" = set; then 2489 echo $ECHO_N "(cached) $ECHO_C" >&6 2490else 2491 ac_cv_prog_cc_stdc=no 2492ac_save_CC=$CC 2493cat >conftest.$ac_ext <<_ACEOF 2494/* confdefs.h. */ 2495_ACEOF 2496cat confdefs.h >>conftest.$ac_ext 2497cat >>conftest.$ac_ext <<_ACEOF 2498/* end confdefs.h. */ 2499#include <stdarg.h> 2500#include <stdio.h> 2501#include <sys/types.h> 2502#include <sys/stat.h> 2503/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2504struct buf { int x; }; 2505FILE * (*rcsopen) (struct buf *, struct stat *, int); 2506static char *e (p, i) 2507 char **p; 2508 int i; 2509{ 2510 return p[i]; 2511} 2512static char *f (char * (*g) (char **, int), char **p, ...) 2513{ 2514 char *s; 2515 va_list v; 2516 va_start (v,p); 2517 s = g (p, va_arg (v,int)); 2518 va_end (v); 2519 return s; 2520} 2521 2522/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2523 function prototypes and stuff, but not '\xHH' hex character constants. 2524 These don't provoke an error unfortunately, instead are silently treated 2525 as 'x'. The following induces an error, until -std1 is added to get 2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2527 array size at least. It's necessary to write '\x00'==0 to get something 2528 that's true only with -std1. */ 2529int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2530 2531int test (int i, double x); 2532struct s1 {int (*f) (int a);}; 2533struct s2 {int (*f) (double a);}; 2534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2535int argc; 2536char **argv; 2537int 2538main () 2539{ 2540return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2541 ; 2542 return 0; 2543} 2544_ACEOF 2545# Don't try gcc -ansi; that turns off useful extensions and 2546# breaks some systems' header files. 2547# AIX -qlanglvl=ansi 2548# Ultrix and OSF/1 -std1 2549# HP-UX 10.20 and later -Ae 2550# HP-UX older versions -Aa -D_HPUX_SOURCE 2551# SVR4 -Xc -D__EXTENSIONS__ 2552for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2553do 2554 CC="$ac_save_CC $ac_arg" 2555 rm -f conftest.$ac_objext 2556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2557 (eval $ac_compile) 2>conftest.er1 2558 ac_status=$? 2559 grep -v '^ *+' conftest.er1 >conftest.err 2560 rm -f conftest.er1 2561 cat conftest.err >&5 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2563 (exit $ac_status); } && 2564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2566 (eval $ac_try) 2>&5 2567 ac_status=$? 2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2569 (exit $ac_status); }; } && 2570 { ac_try='test -s conftest.$ac_objext' 2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2572 (eval $ac_try) 2>&5 2573 ac_status=$? 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); }; }; then 2576 ac_cv_prog_cc_stdc=$ac_arg 2577break 2578else 2579 echo "$as_me: failed program was:" >&5 2580sed 's/^/| /' conftest.$ac_ext >&5 2581 2582fi 2583rm -f conftest.err conftest.$ac_objext 2584done 2585rm -f conftest.$ac_ext conftest.$ac_objext 2586CC=$ac_save_CC 2587 2588fi 2589 2590case "x$ac_cv_prog_cc_stdc" in 2591 x|xno) 2592 echo "$as_me:$LINENO: result: none needed" >&5 2593echo "${ECHO_T}none needed" >&6 ;; 2594 *) 2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2596echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2597 CC="$CC $ac_cv_prog_cc_stdc" ;; 2598esac 2599 2600# Some people use a C++ compiler to compile C. Since we use `exit', 2601# in C++ we need to declare it. In case someone uses the same compiler 2602# for both compiling C and C++ we need to have the C++ compiler decide 2603# the declaration of exit, since it's the most demanding environment. 2604cat >conftest.$ac_ext <<_ACEOF 2605#ifndef __cplusplus 2606 choke me 2607#endif 2608_ACEOF 2609rm -f conftest.$ac_objext 2610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2611 (eval $ac_compile) 2>conftest.er1 2612 ac_status=$? 2613 grep -v '^ *+' conftest.er1 >conftest.err 2614 rm -f conftest.er1 2615 cat conftest.err >&5 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); } && 2618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2620 (eval $ac_try) 2>&5 2621 ac_status=$? 2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2623 (exit $ac_status); }; } && 2624 { ac_try='test -s conftest.$ac_objext' 2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2626 (eval $ac_try) 2>&5 2627 ac_status=$? 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); }; }; then 2630 for ac_declaration in \ 2631 '' \ 2632 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2633 'extern "C" void std::exit (int); using std::exit;' \ 2634 'extern "C" void exit (int) throw ();' \ 2635 'extern "C" void exit (int);' \ 2636 'void exit (int);' 2637do 2638 cat >conftest.$ac_ext <<_ACEOF 2639/* confdefs.h. */ 2640_ACEOF 2641cat confdefs.h >>conftest.$ac_ext 2642cat >>conftest.$ac_ext <<_ACEOF 2643/* end confdefs.h. */ 2644$ac_declaration 2645#include <stdlib.h> 2646int 2647main () 2648{ 2649exit (42); 2650 ; 2651 return 0; 2652} 2653_ACEOF 2654rm -f conftest.$ac_objext 2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2656 (eval $ac_compile) 2>conftest.er1 2657 ac_status=$? 2658 grep -v '^ *+' conftest.er1 >conftest.err 2659 rm -f conftest.er1 2660 cat conftest.err >&5 2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2662 (exit $ac_status); } && 2663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2665 (eval $ac_try) 2>&5 2666 ac_status=$? 2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2668 (exit $ac_status); }; } && 2669 { ac_try='test -s conftest.$ac_objext' 2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2671 (eval $ac_try) 2>&5 2672 ac_status=$? 2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2674 (exit $ac_status); }; }; then 2675 : 2676else 2677 echo "$as_me: failed program was:" >&5 2678sed 's/^/| /' conftest.$ac_ext >&5 2679 2680continue 2681fi 2682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2683 cat >conftest.$ac_ext <<_ACEOF 2684/* confdefs.h. */ 2685_ACEOF 2686cat confdefs.h >>conftest.$ac_ext 2687cat >>conftest.$ac_ext <<_ACEOF 2688/* end confdefs.h. */ 2689$ac_declaration 2690int 2691main () 2692{ 2693exit (42); 2694 ; 2695 return 0; 2696} 2697_ACEOF 2698rm -f conftest.$ac_objext 2699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2700 (eval $ac_compile) 2>conftest.er1 2701 ac_status=$? 2702 grep -v '^ *+' conftest.er1 >conftest.err 2703 rm -f conftest.er1 2704 cat conftest.err >&5 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); } && 2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2709 (eval $ac_try) 2>&5 2710 ac_status=$? 2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2712 (exit $ac_status); }; } && 2713 { ac_try='test -s conftest.$ac_objext' 2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2715 (eval $ac_try) 2>&5 2716 ac_status=$? 2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2718 (exit $ac_status); }; }; then 2719 break 2720else 2721 echo "$as_me: failed program was:" >&5 2722sed 's/^/| /' conftest.$ac_ext >&5 2723 2724fi 2725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2726done 2727rm -f conftest* 2728if test -n "$ac_declaration"; then 2729 echo '#ifdef __cplusplus' >>confdefs.h 2730 echo $ac_declaration >>confdefs.h 2731 echo '#endif' >>confdefs.h 2732fi 2733 2734else 2735 echo "$as_me: failed program was:" >&5 2736sed 's/^/| /' conftest.$ac_ext >&5 2737 2738fi 2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2740ac_ext=c 2741ac_cpp='$CPP $CPPFLAGS' 2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2744ac_compiler_gnu=$ac_cv_c_compiler_gnu 2745 2746for ac_prog in gawk mawk nawk awk 2747do 2748 # Extract the first word of "$ac_prog", so it can be a program name with args. 2749set dummy $ac_prog; ac_word=$2 2750echo "$as_me:$LINENO: checking for $ac_word" >&5 2751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2752if test "${ac_cv_prog_AWK+set}" = set; then 2753 echo $ECHO_N "(cached) $ECHO_C" >&6 2754else 2755 if test -n "$AWK"; then 2756 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2757else 2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759for as_dir in $PATH 2760do 2761 IFS=$as_save_IFS 2762 test -z "$as_dir" && as_dir=. 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2765 ac_cv_prog_AWK="$ac_prog" 2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 break 2 2768 fi 2769done 2770done 2771 2772fi 2773fi 2774AWK=$ac_cv_prog_AWK 2775if test -n "$AWK"; then 2776 echo "$as_me:$LINENO: result: $AWK" >&5 2777echo "${ECHO_T}$AWK" >&6 2778else 2779 echo "$as_me:$LINENO: result: no" >&5 2780echo "${ECHO_T}no" >&6 2781fi 2782 2783 test -n "$AWK" && break 2784done 2785 2786# Find a good install program. We prefer a C program (faster), 2787# so one script is as good as another. But avoid the broken or 2788# incompatible versions: 2789# SysV /etc/install, /usr/sbin/install 2790# SunOS /usr/etc/install 2791# IRIX /sbin/install 2792# AIX /bin/install 2793# AmigaOS /C/install, which installs bootblocks on floppy discs 2794# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2795# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2796# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2797# OS/2's system install, which has a completely different semantic 2798# ./install, which can be erroneously created by make from ./install.sh. 2799echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2800echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2801if test -z "$INSTALL"; then 2802if test "${ac_cv_path_install+set}" = set; then 2803 echo $ECHO_N "(cached) $ECHO_C" >&6 2804else 2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2806for as_dir in $PATH 2807do 2808 IFS=$as_save_IFS 2809 test -z "$as_dir" && as_dir=. 2810 # Account for people who put trailing slashes in PATH elements. 2811case $as_dir/ in 2812 ./ | .// | /cC/* | \ 2813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2814 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2815 /usr/ucb/* ) ;; 2816 *) 2817 # OSF1 and SCO ODT 3.0 have their own names for install. 2818 # Don't use installbsd from OSF since it installs stuff as root 2819 # by default. 2820 for ac_prog in ginstall scoinst install; do 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2823 if test $ac_prog = install && 2824 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2825 # AIX install. It has an incompatible calling convention. 2826 : 2827 elif test $ac_prog = install && 2828 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2829 # program-specific install script used by HP pwplus--don't use. 2830 : 2831 else 2832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2833 break 3 2834 fi 2835 fi 2836 done 2837 done 2838 ;; 2839esac 2840done 2841 2842 2843fi 2844 if test "${ac_cv_path_install+set}" = set; then 2845 INSTALL=$ac_cv_path_install 2846 else 2847 # As a last resort, use the slow shell script. We don't cache a 2848 # path for INSTALL within a source directory, because that will 2849 # break other packages using the cache if that directory is 2850 # removed, or if the path is relative. 2851 INSTALL=$ac_install_sh 2852 fi 2853fi 2854echo "$as_me:$LINENO: result: $INSTALL" >&5 2855echo "${ECHO_T}$INSTALL" >&6 2856 2857# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2858# It thinks the first close brace ends the variable substitution. 2859test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2860 2861test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2862 2863test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2864 2865echo "$as_me:$LINENO: checking whether ln -s works" >&5 2866echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2867LN_S=$as_ln_s 2868if test "$LN_S" = "ln -s"; then 2869 echo "$as_me:$LINENO: result: yes" >&5 2870echo "${ECHO_T}yes" >&6 2871else 2872 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2873echo "${ECHO_T}no, using $LN_S" >&6 2874fi 2875 2876echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2877echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2878set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2879if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2880 echo $ECHO_N "(cached) $ECHO_C" >&6 2881else 2882 cat >conftest.make <<\_ACEOF 2883all: 2884 @echo 'ac_maketemp="$(MAKE)"' 2885_ACEOF 2886# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2887eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2888if test -n "$ac_maketemp"; then 2889 eval ac_cv_prog_make_${ac_make}_set=yes 2890else 2891 eval ac_cv_prog_make_${ac_make}_set=no 2892fi 2893rm -f conftest.make 2894fi 2895if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2896 echo "$as_me:$LINENO: result: yes" >&5 2897echo "${ECHO_T}yes" >&6 2898 SET_MAKE= 2899else 2900 echo "$as_me:$LINENO: result: no" >&5 2901echo "${ECHO_T}no" >&6 2902 SET_MAKE="MAKE=${MAKE-make}" 2903fi 2904 2905ac_ext=c 2906ac_cpp='$CPP $CPPFLAGS' 2907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2909ac_compiler_gnu=$ac_cv_c_compiler_gnu 2910echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2911echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2912# On Suns, sometimes $CPP names a directory. 2913if test -n "$CPP" && test -d "$CPP"; then 2914 CPP= 2915fi 2916if test -z "$CPP"; then 2917 if test "${ac_cv_prog_CPP+set}" = set; then 2918 echo $ECHO_N "(cached) $ECHO_C" >&6 2919else 2920 # Double quotes because CPP needs to be expanded 2921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2922 do 2923 ac_preproc_ok=false 2924for ac_c_preproc_warn_flag in '' yes 2925do 2926 # Use a header file that comes with gcc, so configuring glibc 2927 # with a fresh cross-compiler works. 2928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2929 # <limits.h> exists even on freestanding compilers. 2930 # On the NeXT, cc -E runs the code through the compiler's parser, 2931 # not just through cpp. "Syntax error" is here to catch this case. 2932 cat >conftest.$ac_ext <<_ACEOF 2933/* confdefs.h. */ 2934_ACEOF 2935cat confdefs.h >>conftest.$ac_ext 2936cat >>conftest.$ac_ext <<_ACEOF 2937/* end confdefs.h. */ 2938#ifdef __STDC__ 2939# include <limits.h> 2940#else 2941# include <assert.h> 2942#endif 2943 Syntax error 2944_ACEOF 2945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2947 ac_status=$? 2948 grep -v '^ *+' conftest.er1 >conftest.err 2949 rm -f conftest.er1 2950 cat conftest.err >&5 2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); } >/dev/null; then 2953 if test -s conftest.err; then 2954 ac_cpp_err=$ac_c_preproc_warn_flag 2955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2956 else 2957 ac_cpp_err= 2958 fi 2959else 2960 ac_cpp_err=yes 2961fi 2962if test -z "$ac_cpp_err"; then 2963 : 2964else 2965 echo "$as_me: failed program was:" >&5 2966sed 's/^/| /' conftest.$ac_ext >&5 2967 2968 # Broken: fails on valid input. 2969continue 2970fi 2971rm -f conftest.err conftest.$ac_ext 2972 2973 # OK, works on sane cases. Now check whether non-existent headers 2974 # can be detected and how. 2975 cat >conftest.$ac_ext <<_ACEOF 2976/* confdefs.h. */ 2977_ACEOF 2978cat confdefs.h >>conftest.$ac_ext 2979cat >>conftest.$ac_ext <<_ACEOF 2980/* end confdefs.h. */ 2981#include <ac_nonexistent.h> 2982_ACEOF 2983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2985 ac_status=$? 2986 grep -v '^ *+' conftest.er1 >conftest.err 2987 rm -f conftest.er1 2988 cat conftest.err >&5 2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 (exit $ac_status); } >/dev/null; then 2991 if test -s conftest.err; then 2992 ac_cpp_err=$ac_c_preproc_warn_flag 2993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2994 else 2995 ac_cpp_err= 2996 fi 2997else 2998 ac_cpp_err=yes 2999fi 3000if test -z "$ac_cpp_err"; then 3001 # Broken: success on invalid input. 3002continue 3003else 3004 echo "$as_me: failed program was:" >&5 3005sed 's/^/| /' conftest.$ac_ext >&5 3006 3007 # Passes both tests. 3008ac_preproc_ok=: 3009break 3010fi 3011rm -f conftest.err conftest.$ac_ext 3012 3013done 3014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3015rm -f conftest.err conftest.$ac_ext 3016if $ac_preproc_ok; then 3017 break 3018fi 3019 3020 done 3021 ac_cv_prog_CPP=$CPP 3022 3023fi 3024 CPP=$ac_cv_prog_CPP 3025else 3026 ac_cv_prog_CPP=$CPP 3027fi 3028echo "$as_me:$LINENO: result: $CPP" >&5 3029echo "${ECHO_T}$CPP" >&6 3030ac_preproc_ok=false 3031for ac_c_preproc_warn_flag in '' yes 3032do 3033 # Use a header file that comes with gcc, so configuring glibc 3034 # with a fresh cross-compiler works. 3035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3036 # <limits.h> exists even on freestanding compilers. 3037 # On the NeXT, cc -E runs the code through the compiler's parser, 3038 # not just through cpp. "Syntax error" is here to catch this case. 3039 cat >conftest.$ac_ext <<_ACEOF 3040/* confdefs.h. */ 3041_ACEOF 3042cat confdefs.h >>conftest.$ac_ext 3043cat >>conftest.$ac_ext <<_ACEOF 3044/* end confdefs.h. */ 3045#ifdef __STDC__ 3046# include <limits.h> 3047#else 3048# include <assert.h> 3049#endif 3050 Syntax error 3051_ACEOF 3052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3054 ac_status=$? 3055 grep -v '^ *+' conftest.er1 >conftest.err 3056 rm -f conftest.er1 3057 cat conftest.err >&5 3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); } >/dev/null; then 3060 if test -s conftest.err; then 3061 ac_cpp_err=$ac_c_preproc_warn_flag 3062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3063 else 3064 ac_cpp_err= 3065 fi 3066else 3067 ac_cpp_err=yes 3068fi 3069if test -z "$ac_cpp_err"; then 3070 : 3071else 3072 echo "$as_me: failed program was:" >&5 3073sed 's/^/| /' conftest.$ac_ext >&5 3074 3075 # Broken: fails on valid input. 3076continue 3077fi 3078rm -f conftest.err conftest.$ac_ext 3079 3080 # OK, works on sane cases. Now check whether non-existent headers 3081 # can be detected and how. 3082 cat >conftest.$ac_ext <<_ACEOF 3083/* confdefs.h. */ 3084_ACEOF 3085cat confdefs.h >>conftest.$ac_ext 3086cat >>conftest.$ac_ext <<_ACEOF 3087/* end confdefs.h. */ 3088#include <ac_nonexistent.h> 3089_ACEOF 3090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3092 ac_status=$? 3093 grep -v '^ *+' conftest.er1 >conftest.err 3094 rm -f conftest.er1 3095 cat conftest.err >&5 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); } >/dev/null; then 3098 if test -s conftest.err; then 3099 ac_cpp_err=$ac_c_preproc_warn_flag 3100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3101 else 3102 ac_cpp_err= 3103 fi 3104else 3105 ac_cpp_err=yes 3106fi 3107if test -z "$ac_cpp_err"; then 3108 # Broken: success on invalid input. 3109continue 3110else 3111 echo "$as_me: failed program was:" >&5 3112sed 's/^/| /' conftest.$ac_ext >&5 3113 3114 # Passes both tests. 3115ac_preproc_ok=: 3116break 3117fi 3118rm -f conftest.err conftest.$ac_ext 3119 3120done 3121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3122rm -f conftest.err conftest.$ac_ext 3123if $ac_preproc_ok; then 3124 : 3125else 3126 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3127See \`config.log' for more details." >&5 3128echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3129See \`config.log' for more details." >&2;} 3130 { (exit 1); exit 1; }; } 3131fi 3132 3133ac_ext=c 3134ac_cpp='$CPP $CPPFLAGS' 3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3137ac_compiler_gnu=$ac_cv_c_compiler_gnu 3138 3139# Check whether --enable-shared or --disable-shared was given. 3140if test "${enable_shared+set}" = set; then 3141 enableval="$enable_shared" 3142 p=${PACKAGE-default} 3143 case $enableval in 3144 yes) enable_shared=yes ;; 3145 no) enable_shared=no ;; 3146 *) 3147 enable_shared=no 3148 # Look at the argument we got. We use all the common list separators. 3149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3150 for pkg in $enableval; do 3151 IFS="$lt_save_ifs" 3152 if test "X$pkg" = "X$p"; then 3153 enable_shared=yes 3154 fi 3155 done 3156 IFS="$lt_save_ifs" 3157 ;; 3158 esac 3159else 3160 enable_shared=yes 3161fi; 3162 3163# Check whether --enable-static or --disable-static was given. 3164if test "${enable_static+set}" = set; then 3165 enableval="$enable_static" 3166 p=${PACKAGE-default} 3167 case $enableval in 3168 yes) enable_static=yes ;; 3169 no) enable_static=no ;; 3170 *) 3171 enable_static=no 3172 # Look at the argument we got. We use all the common list separators. 3173 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3174 for pkg in $enableval; do 3175 IFS="$lt_save_ifs" 3176 if test "X$pkg" = "X$p"; then 3177 enable_static=yes 3178 fi 3179 done 3180 IFS="$lt_save_ifs" 3181 ;; 3182 esac 3183else 3184 enable_static=yes 3185fi; 3186 3187# Check whether --enable-fast-install or --disable-fast-install was given. 3188if test "${enable_fast_install+set}" = set; then 3189 enableval="$enable_fast_install" 3190 p=${PACKAGE-default} 3191 case $enableval in 3192 yes) enable_fast_install=yes ;; 3193 no) enable_fast_install=no ;; 3194 *) 3195 enable_fast_install=no 3196 # Look at the argument we got. We use all the common list separators. 3197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3198 for pkg in $enableval; do 3199 IFS="$lt_save_ifs" 3200 if test "X$pkg" = "X$p"; then 3201 enable_fast_install=yes 3202 fi 3203 done 3204 IFS="$lt_save_ifs" 3205 ;; 3206 esac 3207else 3208 enable_fast_install=yes 3209fi; 3210 3211# Make sure we can run config.sub. 3212$ac_config_sub sun4 >/dev/null 2>&1 || 3213 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3214echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3215 { (exit 1); exit 1; }; } 3216 3217echo "$as_me:$LINENO: checking build system type" >&5 3218echo $ECHO_N "checking build system type... $ECHO_C" >&6 3219if test "${ac_cv_build+set}" = set; then 3220 echo $ECHO_N "(cached) $ECHO_C" >&6 3221else 3222 ac_cv_build_alias=$build_alias 3223test -z "$ac_cv_build_alias" && 3224 ac_cv_build_alias=`$ac_config_guess` 3225test -z "$ac_cv_build_alias" && 3226 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3227echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3228 { (exit 1); exit 1; }; } 3229ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3230 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3231echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3232 { (exit 1); exit 1; }; } 3233 3234fi 3235echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3236echo "${ECHO_T}$ac_cv_build" >&6 3237build=$ac_cv_build 3238build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3239build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3240build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3241 3242 3243echo "$as_me:$LINENO: checking host system type" >&5 3244echo $ECHO_N "checking host system type... $ECHO_C" >&6 3245if test "${ac_cv_host+set}" = set; then 3246 echo $ECHO_N "(cached) $ECHO_C" >&6 3247else 3248 ac_cv_host_alias=$host_alias 3249test -z "$ac_cv_host_alias" && 3250 ac_cv_host_alias=$ac_cv_build_alias 3251ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3252 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3253echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3254 { (exit 1); exit 1; }; } 3255 3256fi 3257echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3258echo "${ECHO_T}$ac_cv_host" >&6 3259host=$ac_cv_host 3260host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3261host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3262host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3263 3264 3265echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3266echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3267if test "${lt_cv_path_SED+set}" = set; then 3268 echo $ECHO_N "(cached) $ECHO_C" >&6 3269else 3270 # Loop through the user's path and test for sed and gsed. 3271# Then use that list of sed's as ones to test for truncation. 3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273for as_dir in $PATH 3274do 3275 IFS=$as_save_IFS 3276 test -z "$as_dir" && as_dir=. 3277 for lt_ac_prog in sed gsed; do 3278 for ac_exec_ext in '' $ac_executable_extensions; do 3279 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3280 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3281 fi 3282 done 3283 done 3284done 3285lt_ac_max=0 3286lt_ac_count=0 3287# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3288# along with /bin/sed that truncates output. 3289for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3290 test ! -f $lt_ac_sed && continue 3291 cat /dev/null > conftest.in 3292 lt_ac_count=0 3293 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3294 # Check for GNU sed and select it if it is found. 3295 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3296 lt_cv_path_SED=$lt_ac_sed 3297 break 3298 fi 3299 while true; do 3300 cat conftest.in conftest.in >conftest.tmp 3301 mv conftest.tmp conftest.in 3302 cp conftest.in conftest.nl 3303 echo >>conftest.nl 3304 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3305 cmp -s conftest.out conftest.nl || break 3306 # 10000 chars as input seems more than enough 3307 test $lt_ac_count -gt 10 && break 3308 lt_ac_count=`expr $lt_ac_count + 1` 3309 if test $lt_ac_count -gt $lt_ac_max; then 3310 lt_ac_max=$lt_ac_count 3311 lt_cv_path_SED=$lt_ac_sed 3312 fi 3313 done 3314done 3315 3316fi 3317 3318SED=$lt_cv_path_SED 3319echo "$as_me:$LINENO: result: $SED" >&5 3320echo "${ECHO_T}$SED" >&6 3321 3322echo "$as_me:$LINENO: checking for egrep" >&5 3323echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3324if test "${ac_cv_prog_egrep+set}" = set; then 3325 echo $ECHO_N "(cached) $ECHO_C" >&6 3326else 3327 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3328 then ac_cv_prog_egrep='grep -E' 3329 else ac_cv_prog_egrep='egrep' 3330 fi 3331fi 3332echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3333echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3334 EGREP=$ac_cv_prog_egrep 3335 3336 3337 3338# Check whether --with-gnu-ld or --without-gnu-ld was given. 3339if test "${with_gnu_ld+set}" = set; then 3340 withval="$with_gnu_ld" 3341 test "$withval" = no || with_gnu_ld=yes 3342else 3343 with_gnu_ld=no 3344fi; 3345ac_prog=ld 3346if test "$GCC" = yes; then 3347 # Check if gcc -print-prog-name=ld gives a path. 3348 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3349echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3350 case $host in 3351 *-*-mingw*) 3352 # gcc leaves a trailing carriage return which upsets mingw 3353 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3354 *) 3355 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3356 esac 3357 case $ac_prog in 3358 # Accept absolute paths. 3359 [\\/]* | ?:[\\/]*) 3360 re_direlt='/[^/][^/]*/\.\./' 3361 # Canonicalize the pathname of ld 3362 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3363 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3364 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3365 done 3366 test -z "$LD" && LD="$ac_prog" 3367 ;; 3368 "") 3369 # If it fails, then pretend we aren't using GCC. 3370 ac_prog=ld 3371 ;; 3372 *) 3373 # If it is relative, then search for the first ld in PATH. 3374 with_gnu_ld=unknown 3375 ;; 3376 esac 3377elif test "$with_gnu_ld" = yes; then 3378 echo "$as_me:$LINENO: checking for GNU ld" >&5 3379echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3380else 3381 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3382echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3383fi 3384if test "${lt_cv_path_LD+set}" = set; then 3385 echo $ECHO_N "(cached) $ECHO_C" >&6 3386else 3387 if test -z "$LD"; then 3388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3389 for ac_dir in $PATH; do 3390 IFS="$lt_save_ifs" 3391 test -z "$ac_dir" && ac_dir=. 3392 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3393 lt_cv_path_LD="$ac_dir/$ac_prog" 3394 # Check to see if the program is GNU ld. I'd rather use --version, 3395 # but apparently some variants of GNU ld only accept -v. 3396 # Break only if it was the GNU/non-GNU ld that we prefer. 3397 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3398 *GNU* | *'with BFD'*) 3399 test "$with_gnu_ld" != no && break 3400 ;; 3401 *) 3402 test "$with_gnu_ld" != yes && break 3403 ;; 3404 esac 3405 fi 3406 done 3407 IFS="$lt_save_ifs" 3408else 3409 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3410fi 3411fi 3412 3413LD="$lt_cv_path_LD" 3414if test -n "$LD"; then 3415 echo "$as_me:$LINENO: result: $LD" >&5 3416echo "${ECHO_T}$LD" >&6 3417else 3418 echo "$as_me:$LINENO: result: no" >&5 3419echo "${ECHO_T}no" >&6 3420fi 3421test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3422echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3423 { (exit 1); exit 1; }; } 3424echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3425echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3426if test "${lt_cv_prog_gnu_ld+set}" = set; then 3427 echo $ECHO_N "(cached) $ECHO_C" >&6 3428else 3429 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3430case `$LD -v 2>&1 </dev/null` in 3431*GNU* | *'with BFD'*) 3432 lt_cv_prog_gnu_ld=yes 3433 ;; 3434*) 3435 lt_cv_prog_gnu_ld=no 3436 ;; 3437esac 3438fi 3439echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3440echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3441with_gnu_ld=$lt_cv_prog_gnu_ld 3442 3443 3444echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3445echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3446if test "${lt_cv_ld_reload_flag+set}" = set; then 3447 echo $ECHO_N "(cached) $ECHO_C" >&6 3448else 3449 lt_cv_ld_reload_flag='-r' 3450fi 3451echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3452echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3453reload_flag=$lt_cv_ld_reload_flag 3454case $reload_flag in 3455"" | " "*) ;; 3456*) reload_flag=" $reload_flag" ;; 3457esac 3458reload_cmds='$LD$reload_flag -o $output$reload_objs' 3459case $host_os in 3460 darwin*) 3461 if test "$GCC" = yes; then 3462 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3463 else 3464 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3465 fi 3466 ;; 3467esac 3468 3469echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3470echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3471if test "${lt_cv_path_NM+set}" = set; then 3472 echo $ECHO_N "(cached) $ECHO_C" >&6 3473else 3474 if test -n "$NM"; then 3475 # Let the user override the test. 3476 lt_cv_path_NM="$NM" 3477else 3478 lt_nm_to_check="${ac_tool_prefix}nm" 3479 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3480 lt_nm_to_check="$lt_nm_to_check nm" 3481 fi 3482 for lt_tmp_nm in $lt_nm_to_check; do 3483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3484 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3485 IFS="$lt_save_ifs" 3486 test -z "$ac_dir" && ac_dir=. 3487 tmp_nm="$ac_dir/$lt_tmp_nm" 3488 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3489 # Check to see if the nm accepts a BSD-compat flag. 3490 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3491 # nm: unknown option "B" ignored 3492 # Tru64's nm complains that /dev/null is an invalid object file 3493 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3494 */dev/null* | *'Invalid file or object type'*) 3495 lt_cv_path_NM="$tmp_nm -B" 3496 break 3497 ;; 3498 *) 3499 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3500 */dev/null*) 3501 lt_cv_path_NM="$tmp_nm -p" 3502 break 3503 ;; 3504 *) 3505 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3506 continue # so that we can try to find one that supports BSD flags 3507 ;; 3508 esac 3509 ;; 3510 esac 3511 fi 3512 done 3513 IFS="$lt_save_ifs" 3514 done 3515 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3516fi 3517fi 3518echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3519echo "${ECHO_T}$lt_cv_path_NM" >&6 3520NM="$lt_cv_path_NM" 3521 3522echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3523echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3524if test "${lt_cv_deplibs_check_method+set}" = set; then 3525 echo $ECHO_N "(cached) $ECHO_C" >&6 3526else 3527 lt_cv_file_magic_cmd='$MAGIC_CMD' 3528lt_cv_file_magic_test_file= 3529lt_cv_deplibs_check_method='unknown' 3530# Need to set the preceding variable on all platforms that support 3531# interlibrary dependencies. 3532# 'none' -- dependencies not supported. 3533# `unknown' -- same as none, but documents that we really don't know. 3534# 'pass_all' -- all dependencies passed with no checks. 3535# 'test_compile' -- check by making test program. 3536# 'file_magic [[regex]]' -- check by looking for files in library path 3537# which responds to the $file_magic_cmd with a given extended regex. 3538# If you have `file' or equivalent on your system and you're not sure 3539# whether `pass_all' will *always* work, you probably want this one. 3540 3541case $host_os in 3542aix4* | aix5*) 3543 lt_cv_deplibs_check_method=pass_all 3544 ;; 3545 3546beos*) 3547 lt_cv_deplibs_check_method=pass_all 3548 ;; 3549 3550bsdi[45]*) 3551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3552 lt_cv_file_magic_cmd='/usr/bin/file -L' 3553 lt_cv_file_magic_test_file=/shlib/libc.so 3554 ;; 3555 3556cygwin*) 3557 # func_win32_libid is a shell function defined in ltmain.sh 3558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3559 lt_cv_file_magic_cmd='func_win32_libid' 3560 ;; 3561 3562mingw* | pw32*) 3563 # Base MSYS/MinGW do not provide the 'file' command needed by 3564 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3565 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3566 lt_cv_file_magic_cmd='$OBJDUMP -f' 3567 ;; 3568 3569darwin* | rhapsody*) 3570 lt_cv_deplibs_check_method=pass_all 3571 ;; 3572 3573freebsd* | kfreebsd*-gnu | dragonfly*) 3574 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3575 case $host_cpu in 3576 i*86 ) 3577 # Not sure whether the presence of OpenBSD here was a mistake. 3578 # Let's accept both of them until this is cleared up. 3579 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3580 lt_cv_file_magic_cmd=/usr/bin/file 3581 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3582 ;; 3583 esac 3584 else 3585 lt_cv_deplibs_check_method=pass_all 3586 fi 3587 ;; 3588 3589gnu*) 3590 lt_cv_deplibs_check_method=pass_all 3591 ;; 3592 3593hpux10.20* | hpux11*) 3594 lt_cv_file_magic_cmd=/usr/bin/file 3595 case $host_cpu in 3596 ia64*) 3597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3598 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3599 ;; 3600 hppa*64*) 3601 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]' 3602 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3603 ;; 3604 *) 3605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3606 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3607 ;; 3608 esac 3609 ;; 3610 3611interix3*) 3612 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3614 ;; 3615 3616irix5* | irix6* | nonstopux*) 3617 case $LD in 3618 *-32|*"-32 ") libmagic=32-bit;; 3619 *-n32|*"-n32 ") libmagic=N32;; 3620 *-64|*"-64 ") libmagic=64-bit;; 3621 *) libmagic=never-match;; 3622 esac 3623 lt_cv_deplibs_check_method=pass_all 3624 ;; 3625 3626# This must be Linux ELF. 3627linux*) 3628 lt_cv_deplibs_check_method=pass_all 3629 ;; 3630 3631netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3632 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3634 else 3635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3636 fi 3637 ;; 3638 3639newos6*) 3640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3641 lt_cv_file_magic_cmd=/usr/bin/file 3642 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3643 ;; 3644 3645nto-qnx*) 3646 lt_cv_deplibs_check_method=unknown 3647 ;; 3648 3649openbsd*) 3650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3652 else 3653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3654 fi 3655 ;; 3656 3657osf3* | osf4* | osf5*) 3658 lt_cv_deplibs_check_method=pass_all 3659 ;; 3660 3661solaris*) 3662 lt_cv_deplibs_check_method=pass_all 3663 ;; 3664 3665sysv4 | sysv4.3*) 3666 case $host_vendor in 3667 motorola) 3668 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]' 3669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3670 ;; 3671 ncr) 3672 lt_cv_deplibs_check_method=pass_all 3673 ;; 3674 sequent) 3675 lt_cv_file_magic_cmd='/bin/file' 3676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3677 ;; 3678 sni) 3679 lt_cv_file_magic_cmd='/bin/file' 3680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3681 lt_cv_file_magic_test_file=/lib/libc.so 3682 ;; 3683 siemens) 3684 lt_cv_deplibs_check_method=pass_all 3685 ;; 3686 pc) 3687 lt_cv_deplibs_check_method=pass_all 3688 ;; 3689 esac 3690 ;; 3691 3692sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3693 lt_cv_deplibs_check_method=pass_all 3694 ;; 3695esac 3696 3697fi 3698echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3699echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3700file_magic_cmd=$lt_cv_file_magic_cmd 3701deplibs_check_method=$lt_cv_deplibs_check_method 3702test -z "$deplibs_check_method" && deplibs_check_method=unknown 3703 3704 3705 3706 3707# If no C compiler was specified, use CC. 3708LTCC=${LTCC-"$CC"} 3709 3710# If no C compiler flags were specified, use CFLAGS. 3711LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3712 3713# Allow CC to be a program name with arguments. 3714compiler=$CC 3715 3716 3717# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3718if test "${enable_libtool_lock+set}" = set; then 3719 enableval="$enable_libtool_lock" 3720 3721fi; 3722test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3723 3724# Some flags need to be propagated to the compiler or linker for good 3725# libtool support. 3726case $host in 3727ia64-*-hpux*) 3728 # Find out which ABI we are using. 3729 echo 'int i;' > conftest.$ac_ext 3730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3731 (eval $ac_compile) 2>&5 3732 ac_status=$? 3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3734 (exit $ac_status); }; then 3735 case `/usr/bin/file conftest.$ac_objext` in 3736 *ELF-32*) 3737 HPUX_IA64_MODE="32" 3738 ;; 3739 *ELF-64*) 3740 HPUX_IA64_MODE="64" 3741 ;; 3742 esac 3743 fi 3744 rm -rf conftest* 3745 ;; 3746*-*-irix6*) 3747 # Find out which ABI we are using. 3748 echo '#line 3748 "configure"' > conftest.$ac_ext 3749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3750 (eval $ac_compile) 2>&5 3751 ac_status=$? 3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3753 (exit $ac_status); }; then 3754 if test "$lt_cv_prog_gnu_ld" = yes; then 3755 case `/usr/bin/file conftest.$ac_objext` in 3756 *32-bit*) 3757 LD="${LD-ld} -melf32bsmip" 3758 ;; 3759 *N32*) 3760 LD="${LD-ld} -melf32bmipn32" 3761 ;; 3762 *64-bit*) 3763 LD="${LD-ld} -melf64bmip" 3764 ;; 3765 esac 3766 else 3767 case `/usr/bin/file conftest.$ac_objext` in 3768 *32-bit*) 3769 LD="${LD-ld} -32" 3770 ;; 3771 *N32*) 3772 LD="${LD-ld} -n32" 3773 ;; 3774 *64-bit*) 3775 LD="${LD-ld} -64" 3776 ;; 3777 esac 3778 fi 3779 fi 3780 rm -rf conftest* 3781 ;; 3782 3783x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3784 # Find out which ABI we are using. 3785 echo 'int i;' > conftest.$ac_ext 3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3787 (eval $ac_compile) 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); }; then 3791 case `/usr/bin/file conftest.o` in 3792 *32-bit*) 3793 case $host in 3794 x86_64-*linux*) 3795 LD="${LD-ld} -m elf_i386" 3796 ;; 3797 ppc64-*linux*|powerpc64-*linux*) 3798 LD="${LD-ld} -m elf32ppclinux" 3799 ;; 3800 s390x-*linux*) 3801 LD="${LD-ld} -m elf_s390" 3802 ;; 3803 sparc64-*linux*) 3804 LD="${LD-ld} -m elf32_sparc" 3805 ;; 3806 esac 3807 ;; 3808 *64-bit*) 3809 case $host in 3810 x86_64-*linux*) 3811 LD="${LD-ld} -m elf_x86_64" 3812 ;; 3813 ppc*-*linux*|powerpc*-*linux*) 3814 LD="${LD-ld} -m elf64ppc" 3815 ;; 3816 s390*-*linux*) 3817 LD="${LD-ld} -m elf64_s390" 3818 ;; 3819 sparc*-*linux*) 3820 LD="${LD-ld} -m elf64_sparc" 3821 ;; 3822 esac 3823 ;; 3824 esac 3825 fi 3826 rm -rf conftest* 3827 ;; 3828 3829*-*-sco3.2v5*) 3830 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3831 SAVE_CFLAGS="$CFLAGS" 3832 CFLAGS="$CFLAGS -belf" 3833 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3834echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3835if test "${lt_cv_cc_needs_belf+set}" = set; then 3836 echo $ECHO_N "(cached) $ECHO_C" >&6 3837else 3838 ac_ext=c 3839ac_cpp='$CPP $CPPFLAGS' 3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3842ac_compiler_gnu=$ac_cv_c_compiler_gnu 3843 3844 cat >conftest.$ac_ext <<_ACEOF 3845/* confdefs.h. */ 3846_ACEOF 3847cat confdefs.h >>conftest.$ac_ext 3848cat >>conftest.$ac_ext <<_ACEOF 3849/* end confdefs.h. */ 3850 3851int 3852main () 3853{ 3854 3855 ; 3856 return 0; 3857} 3858_ACEOF 3859rm -f conftest.$ac_objext conftest$ac_exeext 3860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3861 (eval $ac_link) 2>conftest.er1 3862 ac_status=$? 3863 grep -v '^ *+' conftest.er1 >conftest.err 3864 rm -f conftest.er1 3865 cat conftest.err >&5 3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3867 (exit $ac_status); } && 3868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3870 (eval $ac_try) 2>&5 3871 ac_status=$? 3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3873 (exit $ac_status); }; } && 3874 { ac_try='test -s conftest$ac_exeext' 3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3876 (eval $ac_try) 2>&5 3877 ac_status=$? 3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3879 (exit $ac_status); }; }; then 3880 lt_cv_cc_needs_belf=yes 3881else 3882 echo "$as_me: failed program was:" >&5 3883sed 's/^/| /' conftest.$ac_ext >&5 3884 3885lt_cv_cc_needs_belf=no 3886fi 3887rm -f conftest.err conftest.$ac_objext \ 3888 conftest$ac_exeext conftest.$ac_ext 3889 ac_ext=c 3890ac_cpp='$CPP $CPPFLAGS' 3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3893ac_compiler_gnu=$ac_cv_c_compiler_gnu 3894 3895fi 3896echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3897echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3900 CFLAGS="$SAVE_CFLAGS" 3901 fi 3902 ;; 3903sparc*-*solaris*) 3904 # Find out which ABI we are using. 3905 echo 'int i;' > conftest.$ac_ext 3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3907 (eval $ac_compile) 2>&5 3908 ac_status=$? 3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 (exit $ac_status); }; then 3911 case `/usr/bin/file conftest.o` in 3912 *64-bit*) 3913 case $lt_cv_prog_gnu_ld in 3914 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3915 *) LD="${LD-ld} -64" ;; 3916 esac 3917 ;; 3918 esac 3919 fi 3920 rm -rf conftest* 3921 ;; 3922 3923 3924esac 3925 3926need_locks="$enable_libtool_lock" 3927 3928 3929 3930echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3931echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3932if test "${ac_cv_header_stdc+set}" = set; then 3933 echo $ECHO_N "(cached) $ECHO_C" >&6 3934else 3935 cat >conftest.$ac_ext <<_ACEOF 3936/* confdefs.h. */ 3937_ACEOF 3938cat confdefs.h >>conftest.$ac_ext 3939cat >>conftest.$ac_ext <<_ACEOF 3940/* end confdefs.h. */ 3941#include <stdlib.h> 3942#include <stdarg.h> 3943#include <string.h> 3944#include <float.h> 3945 3946int 3947main () 3948{ 3949 3950 ; 3951 return 0; 3952} 3953_ACEOF 3954rm -f conftest.$ac_objext 3955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3956 (eval $ac_compile) 2>conftest.er1 3957 ac_status=$? 3958 grep -v '^ *+' conftest.er1 >conftest.err 3959 rm -f conftest.er1 3960 cat conftest.err >&5 3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3962 (exit $ac_status); } && 3963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3965 (eval $ac_try) 2>&5 3966 ac_status=$? 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); }; } && 3969 { ac_try='test -s conftest.$ac_objext' 3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3971 (eval $ac_try) 2>&5 3972 ac_status=$? 3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3974 (exit $ac_status); }; }; then 3975 ac_cv_header_stdc=yes 3976else 3977 echo "$as_me: failed program was:" >&5 3978sed 's/^/| /' conftest.$ac_ext >&5 3979 3980ac_cv_header_stdc=no 3981fi 3982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3983 3984if test $ac_cv_header_stdc = yes; then 3985 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3986 cat >conftest.$ac_ext <<_ACEOF 3987/* confdefs.h. */ 3988_ACEOF 3989cat confdefs.h >>conftest.$ac_ext 3990cat >>conftest.$ac_ext <<_ACEOF 3991/* end confdefs.h. */ 3992#include <string.h> 3993 3994_ACEOF 3995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3996 $EGREP "memchr" >/dev/null 2>&1; then 3997 : 3998else 3999 ac_cv_header_stdc=no 4000fi 4001rm -f conftest* 4002 4003fi 4004 4005if test $ac_cv_header_stdc = yes; then 4006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4007 cat >conftest.$ac_ext <<_ACEOF 4008/* confdefs.h. */ 4009_ACEOF 4010cat confdefs.h >>conftest.$ac_ext 4011cat >>conftest.$ac_ext <<_ACEOF 4012/* end confdefs.h. */ 4013#include <stdlib.h> 4014 4015_ACEOF 4016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4017 $EGREP "free" >/dev/null 2>&1; then 4018 : 4019else 4020 ac_cv_header_stdc=no 4021fi 4022rm -f conftest* 4023 4024fi 4025 4026if test $ac_cv_header_stdc = yes; then 4027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4028 if test "$cross_compiling" = yes; then 4029 : 4030else 4031 cat >conftest.$ac_ext <<_ACEOF 4032/* confdefs.h. */ 4033_ACEOF 4034cat confdefs.h >>conftest.$ac_ext 4035cat >>conftest.$ac_ext <<_ACEOF 4036/* end confdefs.h. */ 4037#include <ctype.h> 4038#if ((' ' & 0x0FF) == 0x020) 4039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4041#else 4042# define ISLOWER(c) \ 4043 (('a' <= (c) && (c) <= 'i') \ 4044 || ('j' <= (c) && (c) <= 'r') \ 4045 || ('s' <= (c) && (c) <= 'z')) 4046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4047#endif 4048 4049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4050int 4051main () 4052{ 4053 int i; 4054 for (i = 0; i < 256; i++) 4055 if (XOR (islower (i), ISLOWER (i)) 4056 || toupper (i) != TOUPPER (i)) 4057 exit(2); 4058 exit (0); 4059} 4060_ACEOF 4061rm -f conftest$ac_exeext 4062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4063 (eval $ac_link) 2>&5 4064 ac_status=$? 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4068 (eval $ac_try) 2>&5 4069 ac_status=$? 4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 (exit $ac_status); }; }; then 4072 : 4073else 4074 echo "$as_me: program exited with status $ac_status" >&5 4075echo "$as_me: failed program was:" >&5 4076sed 's/^/| /' conftest.$ac_ext >&5 4077 4078( exit $ac_status ) 4079ac_cv_header_stdc=no 4080fi 4081rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4082fi 4083fi 4084fi 4085echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4086echo "${ECHO_T}$ac_cv_header_stdc" >&6 4087if test $ac_cv_header_stdc = yes; then 4088 4089cat >>confdefs.h <<\_ACEOF 4090#define STDC_HEADERS 1 4091_ACEOF 4092 4093fi 4094 4095# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4106 inttypes.h stdint.h unistd.h 4107do 4108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4109echo "$as_me:$LINENO: checking for $ac_header" >&5 4110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4111if eval "test \"\${$as_ac_Header+set}\" = set"; then 4112 echo $ECHO_N "(cached) $ECHO_C" >&6 4113else 4114 cat >conftest.$ac_ext <<_ACEOF 4115/* confdefs.h. */ 4116_ACEOF 4117cat confdefs.h >>conftest.$ac_ext 4118cat >>conftest.$ac_ext <<_ACEOF 4119/* end confdefs.h. */ 4120$ac_includes_default 4121 4122#include <$ac_header> 4123_ACEOF 4124rm -f conftest.$ac_objext 4125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4126 (eval $ac_compile) 2>conftest.er1 4127 ac_status=$? 4128 grep -v '^ *+' conftest.er1 >conftest.err 4129 rm -f conftest.er1 4130 cat conftest.err >&5 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); } && 4133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4135 (eval $ac_try) 2>&5 4136 ac_status=$? 4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4138 (exit $ac_status); }; } && 4139 { ac_try='test -s conftest.$ac_objext' 4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4141 (eval $ac_try) 2>&5 4142 ac_status=$? 4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4144 (exit $ac_status); }; }; then 4145 eval "$as_ac_Header=yes" 4146else 4147 echo "$as_me: failed program was:" >&5 4148sed 's/^/| /' conftest.$ac_ext >&5 4149 4150eval "$as_ac_Header=no" 4151fi 4152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4153fi 4154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4156if test `eval echo '${'$as_ac_Header'}'` = yes; then 4157 cat >>confdefs.h <<_ACEOF 4158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4159_ACEOF 4160 4161fi 4162 4163done 4164 4165 4166 4167for ac_header in dlfcn.h 4168do 4169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4170if eval "test \"\${$as_ac_Header+set}\" = set"; then 4171 echo "$as_me:$LINENO: checking for $ac_header" >&5 4172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4173if eval "test \"\${$as_ac_Header+set}\" = set"; then 4174 echo $ECHO_N "(cached) $ECHO_C" >&6 4175fi 4176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4178else 4179 # Is the header compilable? 4180echo "$as_me:$LINENO: checking $ac_header usability" >&5 4181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4182cat >conftest.$ac_ext <<_ACEOF 4183/* confdefs.h. */ 4184_ACEOF 4185cat confdefs.h >>conftest.$ac_ext 4186cat >>conftest.$ac_ext <<_ACEOF 4187/* end confdefs.h. */ 4188$ac_includes_default 4189#include <$ac_header> 4190_ACEOF 4191rm -f conftest.$ac_objext 4192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4193 (eval $ac_compile) 2>conftest.er1 4194 ac_status=$? 4195 grep -v '^ *+' conftest.er1 >conftest.err 4196 rm -f conftest.er1 4197 cat conftest.err >&5 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4199 (exit $ac_status); } && 4200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4202 (eval $ac_try) 2>&5 4203 ac_status=$? 4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4205 (exit $ac_status); }; } && 4206 { ac_try='test -s conftest.$ac_objext' 4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4208 (eval $ac_try) 2>&5 4209 ac_status=$? 4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4211 (exit $ac_status); }; }; then 4212 ac_header_compiler=yes 4213else 4214 echo "$as_me: failed program was:" >&5 4215sed 's/^/| /' conftest.$ac_ext >&5 4216 4217ac_header_compiler=no 4218fi 4219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4220echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4221echo "${ECHO_T}$ac_header_compiler" >&6 4222 4223# Is the header present? 4224echo "$as_me:$LINENO: checking $ac_header presence" >&5 4225echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4226cat >conftest.$ac_ext <<_ACEOF 4227/* confdefs.h. */ 4228_ACEOF 4229cat confdefs.h >>conftest.$ac_ext 4230cat >>conftest.$ac_ext <<_ACEOF 4231/* end confdefs.h. */ 4232#include <$ac_header> 4233_ACEOF 4234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4236 ac_status=$? 4237 grep -v '^ *+' conftest.er1 >conftest.err 4238 rm -f conftest.er1 4239 cat conftest.err >&5 4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4241 (exit $ac_status); } >/dev/null; then 4242 if test -s conftest.err; then 4243 ac_cpp_err=$ac_c_preproc_warn_flag 4244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4245 else 4246 ac_cpp_err= 4247 fi 4248else 4249 ac_cpp_err=yes 4250fi 4251if test -z "$ac_cpp_err"; then 4252 ac_header_preproc=yes 4253else 4254 echo "$as_me: failed program was:" >&5 4255sed 's/^/| /' conftest.$ac_ext >&5 4256 4257 ac_header_preproc=no 4258fi 4259rm -f conftest.err conftest.$ac_ext 4260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4261echo "${ECHO_T}$ac_header_preproc" >&6 4262 4263# So? What about this header? 4264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4265 yes:no: ) 4266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4270 ac_header_preproc=yes 4271 ;; 4272 no:yes:* ) 4273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4285 ( 4286 cat <<\_ASBOX 4287## ----------------------------------------------- ## 4288## Report this to libnsspgsql1@packages.debian.org ## 4289## ----------------------------------------------- ## 4290_ASBOX 4291 ) | 4292 sed "s/^/$as_me: WARNING: /" >&2 4293 ;; 4294esac 4295echo "$as_me:$LINENO: checking for $ac_header" >&5 4296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4297if eval "test \"\${$as_ac_Header+set}\" = set"; then 4298 echo $ECHO_N "(cached) $ECHO_C" >&6 4299else 4300 eval "$as_ac_Header=\$ac_header_preproc" 4301fi 4302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4304 4305fi 4306if test `eval echo '${'$as_ac_Header'}'` = yes; then 4307 cat >>confdefs.h <<_ACEOF 4308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4309_ACEOF 4310 4311fi 4312 4313done 4314 4315ac_ext=cc 4316ac_cpp='$CXXCPP $CPPFLAGS' 4317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4320if test -n "$ac_tool_prefix"; then 4321 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4322 do 4323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4324set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4325echo "$as_me:$LINENO: checking for $ac_word" >&5 4326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4327if test "${ac_cv_prog_CXX+set}" = set; then 4328 echo $ECHO_N "(cached) $ECHO_C" >&6 4329else 4330 if test -n "$CXX"; then 4331 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4332else 4333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4334for as_dir in $PATH 4335do 4336 IFS=$as_save_IFS 4337 test -z "$as_dir" && as_dir=. 4338 for ac_exec_ext in '' $ac_executable_extensions; do 4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4340 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4342 break 2 4343 fi 4344done 4345done 4346 4347fi 4348fi 4349CXX=$ac_cv_prog_CXX 4350if test -n "$CXX"; then 4351 echo "$as_me:$LINENO: result: $CXX" >&5 4352echo "${ECHO_T}$CXX" >&6 4353else 4354 echo "$as_me:$LINENO: result: no" >&5 4355echo "${ECHO_T}no" >&6 4356fi 4357 4358 test -n "$CXX" && break 4359 done 4360fi 4361if test -z "$CXX"; then 4362 ac_ct_CXX=$CXX 4363 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4364do 4365 # Extract the first word of "$ac_prog", so it can be a program name with args. 4366set dummy $ac_prog; ac_word=$2 4367echo "$as_me:$LINENO: checking for $ac_word" >&5 4368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4369if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4370 echo $ECHO_N "(cached) $ECHO_C" >&6 4371else 4372 if test -n "$ac_ct_CXX"; then 4373 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4374else 4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4376for as_dir in $PATH 4377do 4378 IFS=$as_save_IFS 4379 test -z "$as_dir" && as_dir=. 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4382 ac_cv_prog_ac_ct_CXX="$ac_prog" 4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4384 break 2 4385 fi 4386done 4387done 4388 4389fi 4390fi 4391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4392if test -n "$ac_ct_CXX"; then 4393 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4394echo "${ECHO_T}$ac_ct_CXX" >&6 4395else 4396 echo "$as_me:$LINENO: result: no" >&5 4397echo "${ECHO_T}no" >&6 4398fi 4399 4400 test -n "$ac_ct_CXX" && break 4401done 4402test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4403 4404 CXX=$ac_ct_CXX 4405fi 4406 4407 4408# Provide some information about the compiler. 4409echo "$as_me:$LINENO:" \ 4410 "checking for C++ compiler version" >&5 4411ac_compiler=`set X $ac_compile; echo $2` 4412{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4413 (eval $ac_compiler --version </dev/null >&5) 2>&5 4414 ac_status=$? 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); } 4417{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4418 (eval $ac_compiler -v </dev/null >&5) 2>&5 4419 ac_status=$? 4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4421 (exit $ac_status); } 4422{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4423 (eval $ac_compiler -V </dev/null >&5) 2>&5 4424 ac_status=$? 4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4426 (exit $ac_status); } 4427 4428echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4429echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4430if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4431 echo $ECHO_N "(cached) $ECHO_C" >&6 4432else 4433 cat >conftest.$ac_ext <<_ACEOF 4434/* confdefs.h. */ 4435_ACEOF 4436cat confdefs.h >>conftest.$ac_ext 4437cat >>conftest.$ac_ext <<_ACEOF 4438/* end confdefs.h. */ 4439 4440int 4441main () 4442{ 4443#ifndef __GNUC__ 4444 choke me 4445#endif 4446 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451rm -f conftest.$ac_objext 4452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4453 (eval $ac_compile) 2>conftest.er1 4454 ac_status=$? 4455 grep -v '^ *+' conftest.er1 >conftest.err 4456 rm -f conftest.er1 4457 cat conftest.err >&5 4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4459 (exit $ac_status); } && 4460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4462 (eval $ac_try) 2>&5 4463 ac_status=$? 4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4465 (exit $ac_status); }; } && 4466 { ac_try='test -s conftest.$ac_objext' 4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4468 (eval $ac_try) 2>&5 4469 ac_status=$? 4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); }; }; then 4472 ac_compiler_gnu=yes 4473else 4474 echo "$as_me: failed program was:" >&5 4475sed 's/^/| /' conftest.$ac_ext >&5 4476 4477ac_compiler_gnu=no 4478fi 4479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4480ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4481 4482fi 4483echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4484echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4485GXX=`test $ac_compiler_gnu = yes && echo yes` 4486ac_test_CXXFLAGS=${CXXFLAGS+set} 4487ac_save_CXXFLAGS=$CXXFLAGS 4488CXXFLAGS="-g" 4489echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4490echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4491if test "${ac_cv_prog_cxx_g+set}" = set; then 4492 echo $ECHO_N "(cached) $ECHO_C" >&6 4493else 4494 cat >conftest.$ac_ext <<_ACEOF 4495/* confdefs.h. */ 4496_ACEOF 4497cat confdefs.h >>conftest.$ac_ext 4498cat >>conftest.$ac_ext <<_ACEOF 4499/* end confdefs.h. */ 4500 4501int 4502main () 4503{ 4504 4505 ; 4506 return 0; 4507} 4508_ACEOF 4509rm -f conftest.$ac_objext 4510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4511 (eval $ac_compile) 2>conftest.er1 4512 ac_status=$? 4513 grep -v '^ *+' conftest.er1 >conftest.err 4514 rm -f conftest.er1 4515 cat conftest.err >&5 4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4517 (exit $ac_status); } && 4518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4520 (eval $ac_try) 2>&5 4521 ac_status=$? 4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4523 (exit $ac_status); }; } && 4524 { ac_try='test -s conftest.$ac_objext' 4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4526 (eval $ac_try) 2>&5 4527 ac_status=$? 4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4529 (exit $ac_status); }; }; then 4530 ac_cv_prog_cxx_g=yes 4531else 4532 echo "$as_me: failed program was:" >&5 4533sed 's/^/| /' conftest.$ac_ext >&5 4534 4535ac_cv_prog_cxx_g=no 4536fi 4537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4538fi 4539echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4540echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4541if test "$ac_test_CXXFLAGS" = set; then 4542 CXXFLAGS=$ac_save_CXXFLAGS 4543elif test $ac_cv_prog_cxx_g = yes; then 4544 if test "$GXX" = yes; then 4545 CXXFLAGS="-g -O2" 4546 else 4547 CXXFLAGS="-g" 4548 fi 4549else 4550 if test "$GXX" = yes; then 4551 CXXFLAGS="-O2" 4552 else 4553 CXXFLAGS= 4554 fi 4555fi 4556for ac_declaration in \ 4557 '' \ 4558 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4559 'extern "C" void std::exit (int); using std::exit;' \ 4560 'extern "C" void exit (int) throw ();' \ 4561 'extern "C" void exit (int);' \ 4562 'void exit (int);' 4563do 4564 cat >conftest.$ac_ext <<_ACEOF 4565/* confdefs.h. */ 4566_ACEOF 4567cat confdefs.h >>conftest.$ac_ext 4568cat >>conftest.$ac_ext <<_ACEOF 4569/* end confdefs.h. */ 4570$ac_declaration 4571#include <stdlib.h> 4572int 4573main () 4574{ 4575exit (42); 4576 ; 4577 return 0; 4578} 4579_ACEOF 4580rm -f conftest.$ac_objext 4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4582 (eval $ac_compile) 2>conftest.er1 4583 ac_status=$? 4584 grep -v '^ *+' conftest.er1 >conftest.err 4585 rm -f conftest.er1 4586 cat conftest.err >&5 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); } && 4589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4591 (eval $ac_try) 2>&5 4592 ac_status=$? 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); }; } && 4595 { ac_try='test -s conftest.$ac_objext' 4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4597 (eval $ac_try) 2>&5 4598 ac_status=$? 4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4600 (exit $ac_status); }; }; then 4601 : 4602else 4603 echo "$as_me: failed program was:" >&5 4604sed 's/^/| /' conftest.$ac_ext >&5 4605 4606continue 4607fi 4608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4609 cat >conftest.$ac_ext <<_ACEOF 4610/* confdefs.h. */ 4611_ACEOF 4612cat confdefs.h >>conftest.$ac_ext 4613cat >>conftest.$ac_ext <<_ACEOF 4614/* end confdefs.h. */ 4615$ac_declaration 4616int 4617main () 4618{ 4619exit (42); 4620 ; 4621 return 0; 4622} 4623_ACEOF 4624rm -f conftest.$ac_objext 4625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4626 (eval $ac_compile) 2>conftest.er1 4627 ac_status=$? 4628 grep -v '^ *+' conftest.er1 >conftest.err 4629 rm -f conftest.er1 4630 cat conftest.err >&5 4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4632 (exit $ac_status); } && 4633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4635 (eval $ac_try) 2>&5 4636 ac_status=$? 4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4638 (exit $ac_status); }; } && 4639 { ac_try='test -s conftest.$ac_objext' 4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4641 (eval $ac_try) 2>&5 4642 ac_status=$? 4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4644 (exit $ac_status); }; }; then 4645 break 4646else 4647 echo "$as_me: failed program was:" >&5 4648sed 's/^/| /' conftest.$ac_ext >&5 4649 4650fi 4651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4652done 4653rm -f conftest* 4654if test -n "$ac_declaration"; then 4655 echo '#ifdef __cplusplus' >>confdefs.h 4656 echo $ac_declaration >>confdefs.h 4657 echo '#endif' >>confdefs.h 4658fi 4659 4660ac_ext=cc 4661ac_cpp='$CXXCPP $CPPFLAGS' 4662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4665 4666 4667 4668if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4669 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4670 (test "X$CXX" != "Xg++"))) ; then 4671 ac_ext=cc 4672ac_cpp='$CXXCPP $CPPFLAGS' 4673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4676echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4677echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4678if test -z "$CXXCPP"; then 4679 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4680 echo $ECHO_N "(cached) $ECHO_C" >&6 4681else 4682 # Double quotes because CXXCPP needs to be expanded 4683 for CXXCPP in "$CXX -E" "/lib/cpp" 4684 do 4685 ac_preproc_ok=false 4686for ac_cxx_preproc_warn_flag in '' yes 4687do 4688 # Use a header file that comes with gcc, so configuring glibc 4689 # with a fresh cross-compiler works. 4690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4691 # <limits.h> exists even on freestanding compilers. 4692 # On the NeXT, cc -E runs the code through the compiler's parser, 4693 # not just through cpp. "Syntax error" is here to catch this case. 4694 cat >conftest.$ac_ext <<_ACEOF 4695/* confdefs.h. */ 4696_ACEOF 4697cat confdefs.h >>conftest.$ac_ext 4698cat >>conftest.$ac_ext <<_ACEOF 4699/* end confdefs.h. */ 4700#ifdef __STDC__ 4701# include <limits.h> 4702#else 4703# include <assert.h> 4704#endif 4705 Syntax error 4706_ACEOF 4707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4709 ac_status=$? 4710 grep -v '^ *+' conftest.er1 >conftest.err 4711 rm -f conftest.er1 4712 cat conftest.err >&5 4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4714 (exit $ac_status); } >/dev/null; then 4715 if test -s conftest.err; then 4716 ac_cpp_err=$ac_cxx_preproc_warn_flag 4717 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4718 else 4719 ac_cpp_err= 4720 fi 4721else 4722 ac_cpp_err=yes 4723fi 4724if test -z "$ac_cpp_err"; then 4725 : 4726else 4727 echo "$as_me: failed program was:" >&5 4728sed 's/^/| /' conftest.$ac_ext >&5 4729 4730 # Broken: fails on valid input. 4731continue 4732fi 4733rm -f conftest.err conftest.$ac_ext 4734 4735 # OK, works on sane cases. Now check whether non-existent headers 4736 # can be detected and how. 4737 cat >conftest.$ac_ext <<_ACEOF 4738/* confdefs.h. */ 4739_ACEOF 4740cat confdefs.h >>conftest.$ac_ext 4741cat >>conftest.$ac_ext <<_ACEOF 4742/* end confdefs.h. */ 4743#include <ac_nonexistent.h> 4744_ACEOF 4745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4747 ac_status=$? 4748 grep -v '^ *+' conftest.er1 >conftest.err 4749 rm -f conftest.er1 4750 cat conftest.err >&5 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); } >/dev/null; then 4753 if test -s conftest.err; then 4754 ac_cpp_err=$ac_cxx_preproc_warn_flag 4755 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4756 else 4757 ac_cpp_err= 4758 fi 4759else 4760 ac_cpp_err=yes 4761fi 4762if test -z "$ac_cpp_err"; then 4763 # Broken: success on invalid input. 4764continue 4765else 4766 echo "$as_me: failed program was:" >&5 4767sed 's/^/| /' conftest.$ac_ext >&5 4768 4769 # Passes both tests. 4770ac_preproc_ok=: 4771break 4772fi 4773rm -f conftest.err conftest.$ac_ext 4774 4775done 4776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4777rm -f conftest.err conftest.$ac_ext 4778if $ac_preproc_ok; then 4779 break 4780fi 4781 4782 done 4783 ac_cv_prog_CXXCPP=$CXXCPP 4784 4785fi 4786 CXXCPP=$ac_cv_prog_CXXCPP 4787else 4788 ac_cv_prog_CXXCPP=$CXXCPP 4789fi 4790echo "$as_me:$LINENO: result: $CXXCPP" >&5 4791echo "${ECHO_T}$CXXCPP" >&6 4792ac_preproc_ok=false 4793for ac_cxx_preproc_warn_flag in '' yes 4794do 4795 # Use a header file that comes with gcc, so configuring glibc 4796 # with a fresh cross-compiler works. 4797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4798 # <limits.h> exists even on freestanding compilers. 4799 # On the NeXT, cc -E runs the code through the compiler's parser, 4800 # not just through cpp. "Syntax error" is here to catch this case. 4801 cat >conftest.$ac_ext <<_ACEOF 4802/* confdefs.h. */ 4803_ACEOF 4804cat confdefs.h >>conftest.$ac_ext 4805cat >>conftest.$ac_ext <<_ACEOF 4806/* end confdefs.h. */ 4807#ifdef __STDC__ 4808# include <limits.h> 4809#else 4810# include <assert.h> 4811#endif 4812 Syntax error 4813_ACEOF 4814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4816 ac_status=$? 4817 grep -v '^ *+' conftest.er1 >conftest.err 4818 rm -f conftest.er1 4819 cat conftest.err >&5 4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4821 (exit $ac_status); } >/dev/null; then 4822 if test -s conftest.err; then 4823 ac_cpp_err=$ac_cxx_preproc_warn_flag 4824 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4825 else 4826 ac_cpp_err= 4827 fi 4828else 4829 ac_cpp_err=yes 4830fi 4831if test -z "$ac_cpp_err"; then 4832 : 4833else 4834 echo "$as_me: failed program was:" >&5 4835sed 's/^/| /' conftest.$ac_ext >&5 4836 4837 # Broken: fails on valid input. 4838continue 4839fi 4840rm -f conftest.err conftest.$ac_ext 4841 4842 # OK, works on sane cases. Now check whether non-existent headers 4843 # can be detected and how. 4844 cat >conftest.$ac_ext <<_ACEOF 4845/* confdefs.h. */ 4846_ACEOF 4847cat confdefs.h >>conftest.$ac_ext 4848cat >>conftest.$ac_ext <<_ACEOF 4849/* end confdefs.h. */ 4850#include <ac_nonexistent.h> 4851_ACEOF 4852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4854 ac_status=$? 4855 grep -v '^ *+' conftest.er1 >conftest.err 4856 rm -f conftest.er1 4857 cat conftest.err >&5 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); } >/dev/null; then 4860 if test -s conftest.err; then 4861 ac_cpp_err=$ac_cxx_preproc_warn_flag 4862 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4863 else 4864 ac_cpp_err= 4865 fi 4866else 4867 ac_cpp_err=yes 4868fi 4869if test -z "$ac_cpp_err"; then 4870 # Broken: success on invalid input. 4871continue 4872else 4873 echo "$as_me: failed program was:" >&5 4874sed 's/^/| /' conftest.$ac_ext >&5 4875 4876 # Passes both tests. 4877ac_preproc_ok=: 4878break 4879fi 4880rm -f conftest.err conftest.$ac_ext 4881 4882done 4883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4884rm -f conftest.err conftest.$ac_ext 4885if $ac_preproc_ok; then 4886 : 4887else 4888 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4889See \`config.log' for more details." >&5 4890echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4891See \`config.log' for more details." >&2;} 4892 { (exit 1); exit 1; }; } 4893fi 4894 4895ac_ext=cc 4896ac_cpp='$CXXCPP $CPPFLAGS' 4897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4900 4901fi 4902 4903 4904ac_ext=f 4905ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4906ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4907ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4908if test -n "$ac_tool_prefix"; then 4909 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4910 do 4911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4912set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4913echo "$as_me:$LINENO: checking for $ac_word" >&5 4914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4915if test "${ac_cv_prog_F77+set}" = set; then 4916 echo $ECHO_N "(cached) $ECHO_C" >&6 4917else 4918 if test -n "$F77"; then 4919 ac_cv_prog_F77="$F77" # Let the user override the test. 4920else 4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4922for as_dir in $PATH 4923do 4924 IFS=$as_save_IFS 4925 test -z "$as_dir" && as_dir=. 4926 for ac_exec_ext in '' $ac_executable_extensions; do 4927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4928 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4930 break 2 4931 fi 4932done 4933done 4934 4935fi 4936fi 4937F77=$ac_cv_prog_F77 4938if test -n "$F77"; then 4939 echo "$as_me:$LINENO: result: $F77" >&5 4940echo "${ECHO_T}$F77" >&6 4941else 4942 echo "$as_me:$LINENO: result: no" >&5 4943echo "${ECHO_T}no" >&6 4944fi 4945 4946 test -n "$F77" && break 4947 done 4948fi 4949if test -z "$F77"; then 4950 ac_ct_F77=$F77 4951 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4952do 4953 # Extract the first word of "$ac_prog", so it can be a program name with args. 4954set dummy $ac_prog; ac_word=$2 4955echo "$as_me:$LINENO: checking for $ac_word" >&5 4956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4957if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4958 echo $ECHO_N "(cached) $ECHO_C" >&6 4959else 4960 if test -n "$ac_ct_F77"; then 4961 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4962else 4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4964for as_dir in $PATH 4965do 4966 IFS=$as_save_IFS 4967 test -z "$as_dir" && as_dir=. 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4970 ac_cv_prog_ac_ct_F77="$ac_prog" 4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4972 break 2 4973 fi 4974done 4975done 4976 4977fi 4978fi 4979ac_ct_F77=$ac_cv_prog_ac_ct_F77 4980if test -n "$ac_ct_F77"; then 4981 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4982echo "${ECHO_T}$ac_ct_F77" >&6 4983else 4984 echo "$as_me:$LINENO: result: no" >&5 4985echo "${ECHO_T}no" >&6 4986fi 4987 4988 test -n "$ac_ct_F77" && break 4989done 4990 4991 F77=$ac_ct_F77 4992fi 4993 4994 4995# Provide some information about the compiler. 4996echo "$as_me:4996:" \ 4997 "checking for Fortran 77 compiler version" >&5 4998ac_compiler=`set X $ac_compile; echo $2` 4999{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5000 (eval $ac_compiler --version </dev/null >&5) 2>&5 5001 ac_status=$? 5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5003 (exit $ac_status); } 5004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5005 (eval $ac_compiler -v </dev/null >&5) 2>&5 5006 ac_status=$? 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); } 5009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5010 (eval $ac_compiler -V </dev/null >&5) 2>&5 5011 ac_status=$? 5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5013 (exit $ac_status); } 5014rm -f a.out 5015 5016# If we don't use `.F' as extension, the preprocessor is not run on the 5017# input file. (Note that this only needs to work for GNU compilers.) 5018ac_save_ext=$ac_ext 5019ac_ext=F 5020echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5021echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5022if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5023 echo $ECHO_N "(cached) $ECHO_C" >&6 5024else 5025 cat >conftest.$ac_ext <<_ACEOF 5026 program main 5027#ifndef __GNUC__ 5028 choke me 5029#endif 5030 5031 end 5032_ACEOF 5033rm -f conftest.$ac_objext 5034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5035 (eval $ac_compile) 2>conftest.er1 5036 ac_status=$? 5037 grep -v '^ *+' conftest.er1 >conftest.err 5038 rm -f conftest.er1 5039 cat conftest.err >&5 5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5041 (exit $ac_status); } && 5042 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5044 (eval $ac_try) 2>&5 5045 ac_status=$? 5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5047 (exit $ac_status); }; } && 5048 { ac_try='test -s conftest.$ac_objext' 5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5050 (eval $ac_try) 2>&5 5051 ac_status=$? 5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5053 (exit $ac_status); }; }; then 5054 ac_compiler_gnu=yes 5055else 5056 echo "$as_me: failed program was:" >&5 5057sed 's/^/| /' conftest.$ac_ext >&5 5058 5059ac_compiler_gnu=no 5060fi 5061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5062ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5063 5064fi 5065echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5066echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5067ac_ext=$ac_save_ext 5068ac_test_FFLAGS=${FFLAGS+set} 5069ac_save_FFLAGS=$FFLAGS 5070FFLAGS= 5071echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5072echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5073if test "${ac_cv_prog_f77_g+set}" = set; then 5074 echo $ECHO_N "(cached) $ECHO_C" >&6 5075else 5076 FFLAGS=-g 5077cat >conftest.$ac_ext <<_ACEOF 5078 program main 5079 5080 end 5081_ACEOF 5082rm -f conftest.$ac_objext 5083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5084 (eval $ac_compile) 2>conftest.er1 5085 ac_status=$? 5086 grep -v '^ *+' conftest.er1 >conftest.err 5087 rm -f conftest.er1 5088 cat conftest.err >&5 5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5090 (exit $ac_status); } && 5091 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5093 (eval $ac_try) 2>&5 5094 ac_status=$? 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5096 (exit $ac_status); }; } && 5097 { ac_try='test -s conftest.$ac_objext' 5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5099 (eval $ac_try) 2>&5 5100 ac_status=$? 5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 (exit $ac_status); }; }; then 5103 ac_cv_prog_f77_g=yes 5104else 5105 echo "$as_me: failed program was:" >&5 5106sed 's/^/| /' conftest.$ac_ext >&5 5107 5108ac_cv_prog_f77_g=no 5109fi 5110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5111 5112fi 5113echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5114echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5115if test "$ac_test_FFLAGS" = set; then 5116 FFLAGS=$ac_save_FFLAGS 5117elif test $ac_cv_prog_f77_g = yes; then 5118 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5119 FFLAGS="-g -O2" 5120 else 5121 FFLAGS="-g" 5122 fi 5123else 5124 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5125 FFLAGS="-O2" 5126 else 5127 FFLAGS= 5128 fi 5129fi 5130 5131G77=`test $ac_compiler_gnu = yes && echo yes` 5132ac_ext=c 5133ac_cpp='$CPP $CPPFLAGS' 5134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5136ac_compiler_gnu=$ac_cv_c_compiler_gnu 5137 5138 5139 5140# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5141 5142# find the maximum length of command line arguments 5143echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5144echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5145if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5146 echo $ECHO_N "(cached) $ECHO_C" >&6 5147else 5148 i=0 5149 teststring="ABCD" 5150 5151 case $build_os in 5152 msdosdjgpp*) 5153 # On DJGPP, this test can blow up pretty badly due to problems in libc 5154 # (any single argument exceeding 2000 bytes causes a buffer overrun 5155 # during glob expansion). Even if it were fixed, the result of this 5156 # check would be larger than it should be. 5157 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5158 ;; 5159 5160 gnu*) 5161 # Under GNU Hurd, this test is not required because there is 5162 # no limit to the length of command line arguments. 5163 # Libtool will interpret -1 as no limit whatsoever 5164 lt_cv_sys_max_cmd_len=-1; 5165 ;; 5166 5167 cygwin* | mingw*) 5168 # On Win9x/ME, this test blows up -- it succeeds, but takes 5169 # about 5 minutes as the teststring grows exponentially. 5170 # Worse, since 9x/ME are not pre-emptively multitasking, 5171 # you end up with a "frozen" computer, even though with patience 5172 # the test eventually succeeds (with a max line length of 256k). 5173 # Instead, let's just punt: use the minimum linelength reported by 5174 # all of the supported platforms: 8192 (on NT/2K/XP). 5175 lt_cv_sys_max_cmd_len=8192; 5176 ;; 5177 5178 amigaos*) 5179 # On AmigaOS with pdksh, this test takes hours, literally. 5180 # So we just punt and use a minimum line length of 8192. 5181 lt_cv_sys_max_cmd_len=8192; 5182 ;; 5183 5184 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5185 # This has been around since 386BSD, at least. Likely further. 5186 if test -x /sbin/sysctl; then 5187 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5188 elif test -x /usr/sbin/sysctl; then 5189 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5190 else 5191 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5192 fi 5193 # And add a safety zone 5194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5196 ;; 5197 5198 interix*) 5199 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5200 lt_cv_sys_max_cmd_len=196608 5201 ;; 5202 5203 osf*) 5204 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5205 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5206 # nice to cause kernel panics so lets avoid the loop below. 5207 # First set a reasonable default. 5208 lt_cv_sys_max_cmd_len=16384 5209 # 5210 if test -x /sbin/sysconfig; then 5211 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5212 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5213 esac 5214 fi 5215 ;; 5216 sco3.2v5*) 5217 lt_cv_sys_max_cmd_len=102400 5218 ;; 5219 sysv5* | sco5v6* | sysv4.2uw2*) 5220 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5221 if test -n "$kargmax"; then 5222 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5223 else 5224 lt_cv_sys_max_cmd_len=32768 5225 fi 5226 ;; 5227 *) 5228 # If test is not a shell built-in, we'll probably end up computing a 5229 # maximum length that is only half of the actual maximum length, but 5230 # we can't tell. 5231 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5232 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5233 = "XX$teststring") >/dev/null 2>&1 && 5234 new_result=`expr "X$teststring" : ".*" 2>&1` && 5235 lt_cv_sys_max_cmd_len=$new_result && 5236 test $i != 17 # 1/2 MB should be enough 5237 do 5238 i=`expr $i + 1` 5239 teststring=$teststring$teststring 5240 done 5241 teststring= 5242 # Add a significant safety factor because C++ compilers can tack on massive 5243 # amounts of additional arguments before passing them to the linker. 5244 # It appears as though 1/2 is a usable value. 5245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5246 ;; 5247 esac 5248 5249fi 5250 5251if test -n $lt_cv_sys_max_cmd_len ; then 5252 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5253echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5254else 5255 echo "$as_me:$LINENO: result: none" >&5 5256echo "${ECHO_T}none" >&6 5257fi 5258 5259 5260 5261 5262# Check for command to grab the raw symbol name followed by C symbol from nm. 5263echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5264echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5265if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5266 echo $ECHO_N "(cached) $ECHO_C" >&6 5267else 5268 5269# These are sane defaults that work on at least a few old systems. 5270# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5271 5272# Character class describing NM global symbol codes. 5273symcode='[BCDEGRST]' 5274 5275# Regexp to match symbols that can be accessed directly from C. 5276sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5277 5278# Transform an extracted symbol line into a proper C declaration 5279lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5280 5281# Transform an extracted symbol line into symbol name and symbol address 5282lt_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'" 5283 5284# Define system-specific variables. 5285case $host_os in 5286aix*) 5287 symcode='[BCDT]' 5288 ;; 5289cygwin* | mingw* | pw32*) 5290 symcode='[ABCDGISTW]' 5291 ;; 5292hpux*) # Its linker distinguishes data from code symbols 5293 if test "$host_cpu" = ia64; then 5294 symcode='[ABCDEGRST]' 5295 fi 5296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5297 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'" 5298 ;; 5299linux*) 5300 if test "$host_cpu" = ia64; then 5301 symcode='[ABCDGIRSTW]' 5302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5303 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'" 5304 fi 5305 ;; 5306irix* | nonstopux*) 5307 symcode='[BCDEGRST]' 5308 ;; 5309osf*) 5310 symcode='[BCDEGQRST]' 5311 ;; 5312solaris*) 5313 symcode='[BDRT]' 5314 ;; 5315sco3.2v5*) 5316 symcode='[DT]' 5317 ;; 5318sysv4.2uw2*) 5319 symcode='[DT]' 5320 ;; 5321sysv5* | sco5v6* | unixware* | OpenUNIX*) 5322 symcode='[ABDT]' 5323 ;; 5324sysv4) 5325 symcode='[DFNSTU]' 5326 ;; 5327esac 5328 5329# Handle CRLF in mingw tool chain 5330opt_cr= 5331case $build_os in 5332mingw*) 5333 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5334 ;; 5335esac 5336 5337# If we're using GNU nm, then use its standard symbol codes. 5338case `$NM -V 2>&1` in 5339*GNU* | *'with BFD'*) 5340 symcode='[ABCDGIRSTW]' ;; 5341esac 5342 5343# Try without a prefix undercore, then with it. 5344for ac_symprfx in "" "_"; do 5345 5346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5347 symxfrm="\\1 $ac_symprfx\\2 \\2" 5348 5349 # Write the raw and C identifiers. 5350 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5351 5352 # Check to see that the pipe works correctly. 5353 pipe_works=no 5354 5355 rm -f conftest* 5356 cat > conftest.$ac_ext <<EOF 5357#ifdef __cplusplus 5358extern "C" { 5359#endif 5360char nm_test_var; 5361void nm_test_func(){} 5362#ifdef __cplusplus 5363} 5364#endif 5365int main(){nm_test_var='a';nm_test_func();return(0);} 5366EOF 5367 5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5369 (eval $ac_compile) 2>&5 5370 ac_status=$? 5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5372 (exit $ac_status); }; then 5373 # Now try to grab the symbols. 5374 nlist=conftest.nm 5375 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5376 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5377 ac_status=$? 5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379 (exit $ac_status); } && test -s "$nlist"; then 5380 # Try sorting and uniquifying the output. 5381 if sort "$nlist" | uniq > "$nlist"T; then 5382 mv -f "$nlist"T "$nlist" 5383 else 5384 rm -f "$nlist"T 5385 fi 5386 5387 # Make sure that we snagged all the symbols we need. 5388 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5389 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5390 cat <<EOF > conftest.$ac_ext 5391#ifdef __cplusplus 5392extern "C" { 5393#endif 5394 5395EOF 5396 # Now generate the symbol file. 5397 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5398 5399 cat <<EOF >> conftest.$ac_ext 5400#if defined (__STDC__) && __STDC__ 5401# define lt_ptr_t void * 5402#else 5403# define lt_ptr_t char * 5404# define const 5405#endif 5406 5407/* The mapping between symbol names and symbols. */ 5408const struct { 5409 const char *name; 5410 lt_ptr_t address; 5411} 5412lt_preloaded_symbols[] = 5413{ 5414EOF 5415 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5416 cat <<\EOF >> conftest.$ac_ext 5417 {0, (lt_ptr_t) 0} 5418}; 5419 5420#ifdef __cplusplus 5421} 5422#endif 5423EOF 5424 # Now try linking the two files. 5425 mv conftest.$ac_objext conftstm.$ac_objext 5426 lt_save_LIBS="$LIBS" 5427 lt_save_CFLAGS="$CFLAGS" 5428 LIBS="conftstm.$ac_objext" 5429 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5431 (eval $ac_link) 2>&5 5432 ac_status=$? 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5435 pipe_works=yes 5436 fi 5437 LIBS="$lt_save_LIBS" 5438 CFLAGS="$lt_save_CFLAGS" 5439 else 5440 echo "cannot find nm_test_func in $nlist" >&5 5441 fi 5442 else 5443 echo "cannot find nm_test_var in $nlist" >&5 5444 fi 5445 else 5446 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5447 fi 5448 else 5449 echo "$progname: failed program was:" >&5 5450 cat conftest.$ac_ext >&5 5451 fi 5452 rm -f conftest* conftst* 5453 5454 # Do not use the global_symbol_pipe unless it works. 5455 if test "$pipe_works" = yes; then 5456 break 5457 else 5458 lt_cv_sys_global_symbol_pipe= 5459 fi 5460done 5461 5462fi 5463 5464if test -z "$lt_cv_sys_global_symbol_pipe"; then 5465 lt_cv_sys_global_symbol_to_cdecl= 5466fi 5467if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5468 echo "$as_me:$LINENO: result: failed" >&5 5469echo "${ECHO_T}failed" >&6 5470else 5471 echo "$as_me:$LINENO: result: ok" >&5 5472echo "${ECHO_T}ok" >&6 5473fi 5474 5475echo "$as_me:$LINENO: checking for objdir" >&5 5476echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5477if test "${lt_cv_objdir+set}" = set; then 5478 echo $ECHO_N "(cached) $ECHO_C" >&6 5479else 5480 rm -f .libs 2>/dev/null 5481mkdir .libs 2>/dev/null 5482if test -d .libs; then 5483 lt_cv_objdir=.libs 5484else 5485 # MS-DOS does not allow filenames that begin with a dot. 5486 lt_cv_objdir=_libs 5487fi 5488rmdir .libs 2>/dev/null 5489fi 5490echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5491echo "${ECHO_T}$lt_cv_objdir" >&6 5492objdir=$lt_cv_objdir 5493 5494 5495 5496 5497 5498case $host_os in 5499aix3*) 5500 # AIX sometimes has problems with the GCC collect2 program. For some 5501 # reason, if we set the COLLECT_NAMES environment variable, the problems 5502 # vanish in a puff of smoke. 5503 if test "X${COLLECT_NAMES+set}" != Xset; then 5504 COLLECT_NAMES= 5505 export COLLECT_NAMES 5506 fi 5507 ;; 5508esac 5509 5510# Sed substitution that helps us do robust quoting. It backslashifies 5511# metacharacters that are still active within double-quoted strings. 5512Xsed='sed -e 1s/^X//' 5513sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5514 5515# Same as above, but do not quote variable references. 5516double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5517 5518# Sed substitution to delay expansion of an escaped shell variable in a 5519# double_quote_subst'ed string. 5520delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5521 5522# Sed substitution to avoid accidental globbing in evaled expressions 5523no_glob_subst='s/\*/\\\*/g' 5524 5525# Constants: 5526rm="rm -f" 5527 5528# Global variables: 5529default_ofile=libtool 5530can_build_shared=yes 5531 5532# All known linkers require a `.a' archive for static linking (except MSVC, 5533# which needs '.lib'). 5534libext=a 5535ltmain="$ac_aux_dir/ltmain.sh" 5536ofile="$default_ofile" 5537with_gnu_ld="$lt_cv_prog_gnu_ld" 5538 5539if test -n "$ac_tool_prefix"; then 5540 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5541set dummy ${ac_tool_prefix}ar; ac_word=$2 5542echo "$as_me:$LINENO: checking for $ac_word" >&5 5543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5544if test "${ac_cv_prog_AR+set}" = set; then 5545 echo $ECHO_N "(cached) $ECHO_C" >&6 5546else 5547 if test -n "$AR"; then 5548 ac_cv_prog_AR="$AR" # Let the user override the test. 5549else 5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551for as_dir in $PATH 5552do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5557 ac_cv_prog_AR="${ac_tool_prefix}ar" 5558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561done 5562done 5563 5564fi 5565fi 5566AR=$ac_cv_prog_AR 5567if test -n "$AR"; then 5568 echo "$as_me:$LINENO: result: $AR" >&5 5569echo "${ECHO_T}$AR" >&6 5570else 5571 echo "$as_me:$LINENO: result: no" >&5 5572echo "${ECHO_T}no" >&6 5573fi 5574 5575fi 5576if test -z "$ac_cv_prog_AR"; then 5577 ac_ct_AR=$AR 5578 # Extract the first word of "ar", so it can be a program name with args. 5579set dummy ar; ac_word=$2 5580echo "$as_me:$LINENO: checking for $ac_word" >&5 5581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5582if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5583 echo $ECHO_N "(cached) $ECHO_C" >&6 5584else 5585 if test -n "$ac_ct_AR"; then 5586 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5587else 5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5589for as_dir in $PATH 5590do 5591 IFS=$as_save_IFS 5592 test -z "$as_dir" && as_dir=. 5593 for ac_exec_ext in '' $ac_executable_extensions; do 5594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5595 ac_cv_prog_ac_ct_AR="ar" 5596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5597 break 2 5598 fi 5599done 5600done 5601 5602 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5603fi 5604fi 5605ac_ct_AR=$ac_cv_prog_ac_ct_AR 5606if test -n "$ac_ct_AR"; then 5607 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5608echo "${ECHO_T}$ac_ct_AR" >&6 5609else 5610 echo "$as_me:$LINENO: result: no" >&5 5611echo "${ECHO_T}no" >&6 5612fi 5613 5614 AR=$ac_ct_AR 5615else 5616 AR="$ac_cv_prog_AR" 5617fi 5618 5619if test -n "$ac_tool_prefix"; then 5620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5621set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5622echo "$as_me:$LINENO: checking for $ac_word" >&5 5623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5624if test "${ac_cv_prog_RANLIB+set}" = set; then 5625 echo $ECHO_N "(cached) $ECHO_C" >&6 5626else 5627 if test -n "$RANLIB"; then 5628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5629else 5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5631for as_dir in $PATH 5632do 5633 IFS=$as_save_IFS 5634 test -z "$as_dir" && as_dir=. 5635 for ac_exec_ext in '' $ac_executable_extensions; do 5636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5639 break 2 5640 fi 5641done 5642done 5643 5644fi 5645fi 5646RANLIB=$ac_cv_prog_RANLIB 5647if test -n "$RANLIB"; then 5648 echo "$as_me:$LINENO: result: $RANLIB" >&5 5649echo "${ECHO_T}$RANLIB" >&6 5650else 5651 echo "$as_me:$LINENO: result: no" >&5 5652echo "${ECHO_T}no" >&6 5653fi 5654 5655fi 5656if test -z "$ac_cv_prog_RANLIB"; then 5657 ac_ct_RANLIB=$RANLIB 5658 # Extract the first word of "ranlib", so it can be a program name with args. 5659set dummy ranlib; ac_word=$2 5660echo "$as_me:$LINENO: checking for $ac_word" >&5 5661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5662if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5663 echo $ECHO_N "(cached) $ECHO_C" >&6 5664else 5665 if test -n "$ac_ct_RANLIB"; then 5666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5667else 5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5675 ac_cv_prog_ac_ct_RANLIB="ranlib" 5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679done 5680done 5681 5682 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5683fi 5684fi 5685ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5686if test -n "$ac_ct_RANLIB"; then 5687 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5688echo "${ECHO_T}$ac_ct_RANLIB" >&6 5689else 5690 echo "$as_me:$LINENO: result: no" >&5 5691echo "${ECHO_T}no" >&6 5692fi 5693 5694 RANLIB=$ac_ct_RANLIB 5695else 5696 RANLIB="$ac_cv_prog_RANLIB" 5697fi 5698 5699if test -n "$ac_tool_prefix"; then 5700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5701set dummy ${ac_tool_prefix}strip; ac_word=$2 5702echo "$as_me:$LINENO: checking for $ac_word" >&5 5703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5704if test "${ac_cv_prog_STRIP+set}" = set; then 5705 echo $ECHO_N "(cached) $ECHO_C" >&6 5706else 5707 if test -n "$STRIP"; then 5708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5709else 5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5711for as_dir in $PATH 5712do 5713 IFS=$as_save_IFS 5714 test -z "$as_dir" && as_dir=. 5715 for ac_exec_ext in '' $ac_executable_extensions; do 5716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5717 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5719 break 2 5720 fi 5721done 5722done 5723 5724fi 5725fi 5726STRIP=$ac_cv_prog_STRIP 5727if test -n "$STRIP"; then 5728 echo "$as_me:$LINENO: result: $STRIP" >&5 5729echo "${ECHO_T}$STRIP" >&6 5730else 5731 echo "$as_me:$LINENO: result: no" >&5 5732echo "${ECHO_T}no" >&6 5733fi 5734 5735fi 5736if test -z "$ac_cv_prog_STRIP"; then 5737 ac_ct_STRIP=$STRIP 5738 # Extract the first word of "strip", so it can be a program name with args. 5739set dummy strip; ac_word=$2 5740echo "$as_me:$LINENO: checking for $ac_word" >&5 5741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5742if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5743 echo $ECHO_N "(cached) $ECHO_C" >&6 5744else 5745 if test -n "$ac_ct_STRIP"; then 5746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5747else 5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5749for as_dir in $PATH 5750do 5751 IFS=$as_save_IFS 5752 test -z "$as_dir" && as_dir=. 5753 for ac_exec_ext in '' $ac_executable_extensions; do 5754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5755 ac_cv_prog_ac_ct_STRIP="strip" 5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5757 break 2 5758 fi 5759done 5760done 5761 5762 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5763fi 5764fi 5765ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5766if test -n "$ac_ct_STRIP"; then 5767 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5768echo "${ECHO_T}$ac_ct_STRIP" >&6 5769else 5770 echo "$as_me:$LINENO: result: no" >&5 5771echo "${ECHO_T}no" >&6 5772fi 5773 5774 STRIP=$ac_ct_STRIP 5775else 5776 STRIP="$ac_cv_prog_STRIP" 5777fi 5778 5779 5780old_CC="$CC" 5781old_CFLAGS="$CFLAGS" 5782 5783# Set sane defaults for various variables 5784test -z "$AR" && AR=ar 5785test -z "$AR_FLAGS" && AR_FLAGS=cru 5786test -z "$AS" && AS=as 5787test -z "$CC" && CC=cc 5788test -z "$LTCC" && LTCC=$CC 5789test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 5790test -z "$DLLTOOL" && DLLTOOL=dlltool 5791test -z "$LD" && LD=ld 5792test -z "$LN_S" && LN_S="ln -s" 5793test -z "$MAGIC_CMD" && MAGIC_CMD=file 5794test -z "$NM" && NM=nm 5795test -z "$SED" && SED=sed 5796test -z "$OBJDUMP" && OBJDUMP=objdump 5797test -z "$RANLIB" && RANLIB=: 5798test -z "$STRIP" && STRIP=: 5799test -z "$ac_objext" && ac_objext=o 5800 5801# Determine commands to create old-style static archives. 5802old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5803old_postinstall_cmds='chmod 644 $oldlib' 5804old_postuninstall_cmds= 5805 5806if test -n "$RANLIB"; then 5807 case $host_os in 5808 openbsd*) 5809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5810 ;; 5811 *) 5812 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5813 ;; 5814 esac 5815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5816fi 5817 5818for cc_temp in $compiler""; do 5819 case $cc_temp in 5820 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5821 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5822 \-*) ;; 5823 *) break;; 5824 esac 5825done 5826cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 5827 5828 5829# Only perform the check for file, if the check method requires it 5830case $deplibs_check_method in 5831file_magic*) 5832 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5833 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5834echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5835if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5836 echo $ECHO_N "(cached) $ECHO_C" >&6 5837else 5838 case $MAGIC_CMD in 5839[\\/*] | ?:[\\/]*) 5840 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5841 ;; 5842*) 5843 lt_save_MAGIC_CMD="$MAGIC_CMD" 5844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5845 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5846 for ac_dir in $ac_dummy; do 5847 IFS="$lt_save_ifs" 5848 test -z "$ac_dir" && ac_dir=. 5849 if test -f $ac_dir/${ac_tool_prefix}file; then 5850 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5851 if test -n "$file_magic_test_file"; then 5852 case $deplibs_check_method in 5853 "file_magic "*) 5854 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5856 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5857 $EGREP "$file_magic_regex" > /dev/null; then 5858 : 5859 else 5860 cat <<EOF 1>&2 5861 5862*** Warning: the command libtool uses to detect shared libraries, 5863*** $file_magic_cmd, produces output that libtool cannot recognize. 5864*** The result is that libtool may fail to recognize shared libraries 5865*** as such. This will affect the creation of libtool libraries that 5866*** depend on shared libraries, but programs linked with such libtool 5867*** libraries will work regardless of this problem. Nevertheless, you 5868*** may want to report the problem to your system manager and/or to 5869*** bug-libtool@gnu.org 5870 5871EOF 5872 fi ;; 5873 esac 5874 fi 5875 break 5876 fi 5877 done 5878 IFS="$lt_save_ifs" 5879 MAGIC_CMD="$lt_save_MAGIC_CMD" 5880 ;; 5881esac 5882fi 5883 5884MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5885if test -n "$MAGIC_CMD"; then 5886 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5887echo "${ECHO_T}$MAGIC_CMD" >&6 5888else 5889 echo "$as_me:$LINENO: result: no" >&5 5890echo "${ECHO_T}no" >&6 5891fi 5892 5893if test -z "$lt_cv_path_MAGIC_CMD"; then 5894 if test -n "$ac_tool_prefix"; then 5895 echo "$as_me:$LINENO: checking for file" >&5 5896echo $ECHO_N "checking for file... $ECHO_C" >&6 5897if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5898 echo $ECHO_N "(cached) $ECHO_C" >&6 5899else 5900 case $MAGIC_CMD in 5901[\\/*] | ?:[\\/]*) 5902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5903 ;; 5904*) 5905 lt_save_MAGIC_CMD="$MAGIC_CMD" 5906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5908 for ac_dir in $ac_dummy; do 5909 IFS="$lt_save_ifs" 5910 test -z "$ac_dir" && ac_dir=. 5911 if test -f $ac_dir/file; then 5912 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5913 if test -n "$file_magic_test_file"; then 5914 case $deplibs_check_method in 5915 "file_magic "*) 5916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5919 $EGREP "$file_magic_regex" > /dev/null; then 5920 : 5921 else 5922 cat <<EOF 1>&2 5923 5924*** Warning: the command libtool uses to detect shared libraries, 5925*** $file_magic_cmd, produces output that libtool cannot recognize. 5926*** The result is that libtool may fail to recognize shared libraries 5927*** as such. This will affect the creation of libtool libraries that 5928*** depend on shared libraries, but programs linked with such libtool 5929*** libraries will work regardless of this problem. Nevertheless, you 5930*** may want to report the problem to your system manager and/or to 5931*** bug-libtool@gnu.org 5932 5933EOF 5934 fi ;; 5935 esac 5936 fi 5937 break 5938 fi 5939 done 5940 IFS="$lt_save_ifs" 5941 MAGIC_CMD="$lt_save_MAGIC_CMD" 5942 ;; 5943esac 5944fi 5945 5946MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5947if test -n "$MAGIC_CMD"; then 5948 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5949echo "${ECHO_T}$MAGIC_CMD" >&6 5950else 5951 echo "$as_me:$LINENO: result: no" >&5 5952echo "${ECHO_T}no" >&6 5953fi 5954 5955 else 5956 MAGIC_CMD=: 5957 fi 5958fi 5959 5960 fi 5961 ;; 5962esac 5963 5964enable_dlopen=no 5965enable_win32_dll=no 5966 5967# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5968if test "${enable_libtool_lock+set}" = set; then 5969 enableval="$enable_libtool_lock" 5970 5971fi; 5972test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5973 5974 5975# Check whether --with-pic or --without-pic was given. 5976if test "${with_pic+set}" = set; then 5977 withval="$with_pic" 5978 pic_mode="$withval" 5979else 5980 pic_mode=default 5981fi; 5982test -z "$pic_mode" && pic_mode=default 5983 5984# Use C for the default configuration in the libtool script 5985tagname= 5986lt_save_CC="$CC" 5987ac_ext=c 5988ac_cpp='$CPP $CPPFLAGS' 5989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5991ac_compiler_gnu=$ac_cv_c_compiler_gnu 5992 5993 5994# Source file extension for C test sources. 5995ac_ext=c 5996 5997# Object file extension for compiled C test sources. 5998objext=o 5999objext=$objext 6000 6001# Code to be used in simple compile tests 6002lt_simple_compile_test_code="int some_variable = 0;\n" 6003 6004# Code to be used in simple link tests 6005lt_simple_link_test_code='int main(){return(0);}\n' 6006 6007 6008# If no C compiler was specified, use CC. 6009LTCC=${LTCC-"$CC"} 6010 6011# If no C compiler flags were specified, use CFLAGS. 6012LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6013 6014# Allow CC to be a program name with arguments. 6015compiler=$CC 6016 6017 6018# save warnings/boilerplate of simple test code 6019ac_outfile=conftest.$ac_objext 6020printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6021eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6022_lt_compiler_boilerplate=`cat conftest.err` 6023$rm conftest* 6024 6025ac_outfile=conftest.$ac_objext 6026printf "$lt_simple_link_test_code" >conftest.$ac_ext 6027eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6028_lt_linker_boilerplate=`cat conftest.err` 6029$rm conftest* 6030 6031 6032 6033lt_prog_compiler_no_builtin_flag= 6034 6035if test "$GCC" = yes; then 6036 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6037 6038 6039echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6040echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6041if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6042 echo $ECHO_N "(cached) $ECHO_C" >&6 6043else 6044 lt_cv_prog_compiler_rtti_exceptions=no 6045 ac_outfile=conftest.$ac_objext 6046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6047 lt_compiler_flag="-fno-rtti -fno-exceptions" 6048 # Insert the option either (1) after the last *FLAGS variable, or 6049 # (2) before a word containing "conftest.", or (3) at the end. 6050 # Note that $ac_compile itself does not contain backslashes and begins 6051 # with a dollar sign (not a hyphen), so the echo should work correctly. 6052 # The option is referenced via a variable to avoid confusing sed. 6053 lt_compile=`echo "$ac_compile" | $SED \ 6054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6056 -e 's:$: $lt_compiler_flag:'` 6057 (eval echo "\"\$as_me:6057: $lt_compile\"" >&5) 6058 (eval "$lt_compile" 2>conftest.err) 6059 ac_status=$? 6060 cat conftest.err >&5 6061 echo "$as_me:6061: \$? = $ac_status" >&5 6062 if (exit $ac_status) && test -s "$ac_outfile"; then 6063 # The compiler can only warn and ignore the option if not recognized 6064 # So say no if there are warnings other than the usual output. 6065 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6068 lt_cv_prog_compiler_rtti_exceptions=yes 6069 fi 6070 fi 6071 $rm conftest* 6072 6073fi 6074echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6075echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6076 6077if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6078 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6079else 6080 : 6081fi 6082 6083fi 6084 6085lt_prog_compiler_wl= 6086lt_prog_compiler_pic= 6087lt_prog_compiler_static= 6088 6089echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6090echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6091 6092 if test "$GCC" = yes; then 6093 lt_prog_compiler_wl='-Wl,' 6094 lt_prog_compiler_static='-static' 6095 6096 case $host_os in 6097 aix*) 6098 # All AIX code is PIC. 6099 if test "$host_cpu" = ia64; then 6100 # AIX 5 now supports IA64 processor 6101 lt_prog_compiler_static='-Bstatic' 6102 fi 6103 ;; 6104 6105 amigaos*) 6106 # FIXME: we need at least 68020 code to build shared libraries, but 6107 # adding the `-m68020' flag to GCC prevents building anything better, 6108 # like `-m68040'. 6109 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6110 ;; 6111 6112 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6113 # PIC is the default for these OSes. 6114 ;; 6115 6116 mingw* | pw32* | os2*) 6117 # This hack is so that the source file can tell whether it is being 6118 # built for inclusion in a dll (and should export symbols for example). 6119 lt_prog_compiler_pic='-DDLL_EXPORT' 6120 ;; 6121 6122 darwin* | rhapsody*) 6123 # PIC is the default on this platform 6124 # Common symbols not allowed in MH_DYLIB files 6125 lt_prog_compiler_pic='-fno-common' 6126 ;; 6127 6128 interix3*) 6129 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6130 # Instead, we relocate shared libraries at runtime. 6131 ;; 6132 6133 msdosdjgpp*) 6134 # Just because we use GCC doesn't mean we suddenly get shared libraries 6135 # on systems that don't support them. 6136 lt_prog_compiler_can_build_shared=no 6137 enable_shared=no 6138 ;; 6139 6140 sysv4*MP*) 6141 if test -d /usr/nec; then 6142 lt_prog_compiler_pic=-Kconform_pic 6143 fi 6144 ;; 6145 6146 hpux*) 6147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6148 # not for PA HP-UX. 6149 case $host_cpu in 6150 hppa*64*|ia64*) 6151 # +Z the default 6152 ;; 6153 *) 6154 lt_prog_compiler_pic='-fPIC' 6155 ;; 6156 esac 6157 ;; 6158 6159 *) 6160 lt_prog_compiler_pic='-fPIC' 6161 ;; 6162 esac 6163 else 6164 # PORTME Check for flag to pass linker flags through the system compiler. 6165 case $host_os in 6166 aix*) 6167 lt_prog_compiler_wl='-Wl,' 6168 if test "$host_cpu" = ia64; then 6169 # AIX 5 now supports IA64 processor 6170 lt_prog_compiler_static='-Bstatic' 6171 else 6172 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6173 fi 6174 ;; 6175 darwin*) 6176 # PIC is the default on this platform 6177 # Common symbols not allowed in MH_DYLIB files 6178 case $cc_basename in 6179 xlc*) 6180 lt_prog_compiler_pic='-qnocommon' 6181 lt_prog_compiler_wl='-Wl,' 6182 ;; 6183 esac 6184 ;; 6185 6186 mingw* | pw32* | os2*) 6187 # This hack is so that the source file can tell whether it is being 6188 # built for inclusion in a dll (and should export symbols for example). 6189 lt_prog_compiler_pic='-DDLL_EXPORT' 6190 ;; 6191 6192 hpux9* | hpux10* | hpux11*) 6193 lt_prog_compiler_wl='-Wl,' 6194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6195 # not for PA HP-UX. 6196 case $host_cpu in 6197 hppa*64*|ia64*) 6198 # +Z the default 6199 ;; 6200 *) 6201 lt_prog_compiler_pic='+Z' 6202 ;; 6203 esac 6204 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6205 lt_prog_compiler_static='${wl}-a ${wl}archive' 6206 ;; 6207 6208 irix5* | irix6* | nonstopux*) 6209 lt_prog_compiler_wl='-Wl,' 6210 # PIC (with -KPIC) is the default. 6211 lt_prog_compiler_static='-non_shared' 6212 ;; 6213 6214 newsos6) 6215 lt_prog_compiler_pic='-KPIC' 6216 lt_prog_compiler_static='-Bstatic' 6217 ;; 6218 6219 linux*) 6220 case $cc_basename in 6221 icc* | ecc*) 6222 lt_prog_compiler_wl='-Wl,' 6223 lt_prog_compiler_pic='-KPIC' 6224 lt_prog_compiler_static='-static' 6225 ;; 6226 pgcc* | pgf77* | pgf90* | pgf95*) 6227 # Portland Group compilers (*not* the Pentium gcc compiler, 6228 # which looks to be a dead project) 6229 lt_prog_compiler_wl='-Wl,' 6230 lt_prog_compiler_pic='-fpic' 6231 lt_prog_compiler_static='-Bstatic' 6232 ;; 6233 ccc*) 6234 lt_prog_compiler_wl='-Wl,' 6235 # All Alpha code is PIC. 6236 lt_prog_compiler_static='-non_shared' 6237 ;; 6238 esac 6239 ;; 6240 6241 osf3* | osf4* | osf5*) 6242 lt_prog_compiler_wl='-Wl,' 6243 # All OSF/1 code is PIC. 6244 lt_prog_compiler_static='-non_shared' 6245 ;; 6246 6247 solaris*) 6248 lt_prog_compiler_pic='-KPIC' 6249 lt_prog_compiler_static='-Bstatic' 6250 case $cc_basename in 6251 f77* | f90* | f95*) 6252 lt_prog_compiler_wl='-Qoption ld ';; 6253 *) 6254 lt_prog_compiler_wl='-Wl,';; 6255 esac 6256 ;; 6257 6258 sunos4*) 6259 lt_prog_compiler_wl='-Qoption ld ' 6260 lt_prog_compiler_pic='-PIC' 6261 lt_prog_compiler_static='-Bstatic' 6262 ;; 6263 6264 sysv4 | sysv4.2uw2* | sysv4.3*) 6265 lt_prog_compiler_wl='-Wl,' 6266 lt_prog_compiler_pic='-KPIC' 6267 lt_prog_compiler_static='-Bstatic' 6268 ;; 6269 6270 sysv4*MP*) 6271 if test -d /usr/nec ;then 6272 lt_prog_compiler_pic='-Kconform_pic' 6273 lt_prog_compiler_static='-Bstatic' 6274 fi 6275 ;; 6276 6277 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6278 lt_prog_compiler_wl='-Wl,' 6279 lt_prog_compiler_pic='-KPIC' 6280 lt_prog_compiler_static='-Bstatic' 6281 ;; 6282 6283 unicos*) 6284 lt_prog_compiler_wl='-Wl,' 6285 lt_prog_compiler_can_build_shared=no 6286 ;; 6287 6288 uts4*) 6289 lt_prog_compiler_pic='-pic' 6290 lt_prog_compiler_static='-Bstatic' 6291 ;; 6292 6293 *) 6294 lt_prog_compiler_can_build_shared=no 6295 ;; 6296 esac 6297 fi 6298 6299echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6300echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6301 6302# 6303# Check to make sure the PIC flag actually works. 6304# 6305if test -n "$lt_prog_compiler_pic"; then 6306 6307echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6308echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6309if test "${lt_prog_compiler_pic_works+set}" = set; then 6310 echo $ECHO_N "(cached) $ECHO_C" >&6 6311else 6312 lt_prog_compiler_pic_works=no 6313 ac_outfile=conftest.$ac_objext 6314 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6316 # Insert the option either (1) after the last *FLAGS variable, or 6317 # (2) before a word containing "conftest.", or (3) at the end. 6318 # Note that $ac_compile itself does not contain backslashes and begins 6319 # with a dollar sign (not a hyphen), so the echo should work correctly. 6320 # The option is referenced via a variable to avoid confusing sed. 6321 lt_compile=`echo "$ac_compile" | $SED \ 6322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6324 -e 's:$: $lt_compiler_flag:'` 6325 (eval echo "\"\$as_me:6325: $lt_compile\"" >&5) 6326 (eval "$lt_compile" 2>conftest.err) 6327 ac_status=$? 6328 cat conftest.err >&5 6329 echo "$as_me:6329: \$? = $ac_status" >&5 6330 if (exit $ac_status) && test -s "$ac_outfile"; then 6331 # The compiler can only warn and ignore the option if not recognized 6332 # So say no if there are warnings other than the usual output. 6333 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6336 lt_prog_compiler_pic_works=yes 6337 fi 6338 fi 6339 $rm conftest* 6340 6341fi 6342echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6343echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6344 6345if test x"$lt_prog_compiler_pic_works" = xyes; then 6346 case $lt_prog_compiler_pic in 6347 "" | " "*) ;; 6348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6349 esac 6350else 6351 lt_prog_compiler_pic= 6352 lt_prog_compiler_can_build_shared=no 6353fi 6354 6355fi 6356case $host_os in 6357 # For platforms which do not support PIC, -DPIC is meaningless: 6358 *djgpp*) 6359 lt_prog_compiler_pic= 6360 ;; 6361 *) 6362 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6363 ;; 6364esac 6365 6366# 6367# Check to make sure the static flag actually works. 6368# 6369wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6370echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6371echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6372if test "${lt_prog_compiler_static_works+set}" = set; then 6373 echo $ECHO_N "(cached) $ECHO_C" >&6 6374else 6375 lt_prog_compiler_static_works=no 6376 save_LDFLAGS="$LDFLAGS" 6377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6378 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6380 # The linker can only warn and ignore the option if not recognized 6381 # So say no if there are warnings 6382 if test -s conftest.err; then 6383 # Append any errors to the config.log. 6384 cat conftest.err 1>&5 6385 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6387 if diff conftest.exp conftest.er2 >/dev/null; then 6388 lt_prog_compiler_static_works=yes 6389 fi 6390 else 6391 lt_prog_compiler_static_works=yes 6392 fi 6393 fi 6394 $rm conftest* 6395 LDFLAGS="$save_LDFLAGS" 6396 6397fi 6398echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6399echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6400 6401if test x"$lt_prog_compiler_static_works" = xyes; then 6402 : 6403else 6404 lt_prog_compiler_static= 6405fi 6406 6407 6408echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6409echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6410if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6411 echo $ECHO_N "(cached) $ECHO_C" >&6 6412else 6413 lt_cv_prog_compiler_c_o=no 6414 $rm -r conftest 2>/dev/null 6415 mkdir conftest 6416 cd conftest 6417 mkdir out 6418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6419 6420 lt_compiler_flag="-o out/conftest2.$ac_objext" 6421 # Insert the option either (1) after the last *FLAGS variable, or 6422 # (2) before a word containing "conftest.", or (3) at the end. 6423 # Note that $ac_compile itself does not contain backslashes and begins 6424 # with a dollar sign (not a hyphen), so the echo should work correctly. 6425 lt_compile=`echo "$ac_compile" | $SED \ 6426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6428 -e 's:$: $lt_compiler_flag:'` 6429 (eval echo "\"\$as_me:6429: $lt_compile\"" >&5) 6430 (eval "$lt_compile" 2>out/conftest.err) 6431 ac_status=$? 6432 cat out/conftest.err >&5 6433 echo "$as_me:6433: \$? = $ac_status" >&5 6434 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6435 then 6436 # The compiler can only warn and ignore the option if not recognized 6437 # So say no if there are warnings 6438 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6441 lt_cv_prog_compiler_c_o=yes 6442 fi 6443 fi 6444 chmod u+w . 2>&5 6445 $rm conftest* 6446 # SGI C++ compiler will create directory out/ii_files/ for 6447 # template instantiation 6448 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6449 $rm out/* && rmdir out 6450 cd .. 6451 rmdir conftest 6452 $rm conftest* 6453 6454fi 6455echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6456echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6457 6458 6459hard_links="nottested" 6460if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6461 # do not overwrite the value of need_locks provided by the user 6462 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6463echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6464 hard_links=yes 6465 $rm conftest* 6466 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6467 touch conftest.a 6468 ln conftest.a conftest.b 2>&5 || hard_links=no 6469 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6470 echo "$as_me:$LINENO: result: $hard_links" >&5 6471echo "${ECHO_T}$hard_links" >&6 6472 if test "$hard_links" = no; then 6473 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6474echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6475 need_locks=warn 6476 fi 6477else 6478 need_locks=no 6479fi 6480 6481echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6482echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6483 6484 runpath_var= 6485 allow_undefined_flag= 6486 enable_shared_with_static_runtimes=no 6487 archive_cmds= 6488 archive_expsym_cmds= 6489 old_archive_From_new_cmds= 6490 old_archive_from_expsyms_cmds= 6491 export_dynamic_flag_spec= 6492 whole_archive_flag_spec= 6493 thread_safe_flag_spec= 6494 hardcode_libdir_flag_spec= 6495 hardcode_libdir_flag_spec_ld= 6496 hardcode_libdir_separator= 6497 hardcode_direct=no 6498 hardcode_minus_L=no 6499 hardcode_shlibpath_var=unsupported 6500 link_all_deplibs=unknown 6501 hardcode_automatic=no 6502 module_cmds= 6503 module_expsym_cmds= 6504 always_export_symbols=no 6505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6506 # include_expsyms should be a list of space-separated symbols to be *always* 6507 # included in the symbol list 6508 include_expsyms= 6509 # exclude_expsyms can be an extended regexp of symbols to exclude 6510 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6511 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6512 # as well as any symbol that contains `d'. 6513 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6514 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6515 # platforms (ab)use it in PIC code, but their linkers get confused if 6516 # the symbol is explicitly referenced. Since portable code cannot 6517 # rely on this symbol name, it's probably fine to never include it in 6518 # preloaded symbol tables. 6519 extract_expsyms_cmds= 6520 # Just being paranoid about ensuring that cc_basename is set. 6521 for cc_temp in $compiler""; do 6522 case $cc_temp in 6523 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6524 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6525 \-*) ;; 6526 *) break;; 6527 esac 6528done 6529cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6530 6531 case $host_os in 6532 cygwin* | mingw* | pw32*) 6533 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6534 # When not using gcc, we currently assume that we are using 6535 # Microsoft Visual C++. 6536 if test "$GCC" != yes; then 6537 with_gnu_ld=no 6538 fi 6539 ;; 6540 interix*) 6541 # we just hope/assume this is gcc and not c89 (= MSVC++) 6542 with_gnu_ld=yes 6543 ;; 6544 openbsd*) 6545 with_gnu_ld=no 6546 ;; 6547 esac 6548 6549 ld_shlibs=yes 6550 if test "$with_gnu_ld" = yes; then 6551 # If archive_cmds runs LD, not CC, wlarc should be empty 6552 wlarc='${wl}' 6553 6554 # Set some defaults for GNU ld with shared library support. These 6555 # are reset later if shared libraries are not supported. Putting them 6556 # here allows them to be overridden if necessary. 6557 runpath_var=LD_RUN_PATH 6558 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6559 export_dynamic_flag_spec='${wl}--export-dynamic' 6560 # ancient GNU ld didn't support --whole-archive et. al. 6561 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6562 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6563 else 6564 whole_archive_flag_spec= 6565 fi 6566 supports_anon_versioning=no 6567 case `$LD -v 2>/dev/null` in 6568 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6569 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6570 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6571 *\ 2.11.*) ;; # other 2.11 versions 6572 *) supports_anon_versioning=yes ;; 6573 esac 6574 6575 # See if GNU ld supports shared libraries. 6576 case $host_os in 6577 aix3* | aix4* | aix5*) 6578 # On AIX/PPC, the GNU linker is very broken 6579 if test "$host_cpu" != ia64; then 6580 ld_shlibs=no 6581 cat <<EOF 1>&2 6582 6583*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6584*** to be unable to reliably create shared libraries on AIX. 6585*** Therefore, libtool is disabling shared libraries support. If you 6586*** really care for shared libraries, you may want to modify your PATH 6587*** so that a non-GNU linker is found, and then restart. 6588 6589EOF 6590 fi 6591 ;; 6592 6593 amigaos*) 6594 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)' 6595 hardcode_libdir_flag_spec='-L$libdir' 6596 hardcode_minus_L=yes 6597 6598 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6599 # that the semantics of dynamic libraries on AmigaOS, at least up 6600 # to version 4, is to share data among multiple programs linked 6601 # with the same dynamic library. Since this doesn't match the 6602 # behavior of shared libraries on other platforms, we can't use 6603 # them. 6604 ld_shlibs=no 6605 ;; 6606 6607 beos*) 6608 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6609 allow_undefined_flag=unsupported 6610 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6611 # support --undefined. This deserves some investigation. FIXME 6612 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6613 else 6614 ld_shlibs=no 6615 fi 6616 ;; 6617 6618 cygwin* | mingw* | pw32*) 6619 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6620 # as there is no search path for DLLs. 6621 hardcode_libdir_flag_spec='-L$libdir' 6622 allow_undefined_flag=unsupported 6623 always_export_symbols=no 6624 enable_shared_with_static_runtimes=yes 6625 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6626 6627 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6629 # If the export-symbols file already is a .def file (1st line 6630 # is EXPORTS), use it as is; otherwise, prepend... 6631 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6632 cp $export_symbols $output_objdir/$soname.def; 6633 else 6634 echo EXPORTS > $output_objdir/$soname.def; 6635 cat $export_symbols >> $output_objdir/$soname.def; 6636 fi~ 6637 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6638 else 6639 ld_shlibs=no 6640 fi 6641 ;; 6642 6643 interix3*) 6644 hardcode_direct=no 6645 hardcode_shlibpath_var=no 6646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6647 export_dynamic_flag_spec='${wl}-E' 6648 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6649 # Instead, shared libraries are loaded at an image base (0x10000000 by 6650 # default) and relocated if they conflict, which is a slow very memory 6651 # consuming and fragmenting process. To avoid this, we pick a random, 6652 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6653 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6654 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6655 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6656 ;; 6657 6658 linux*) 6659 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6660 tmp_addflag= 6661 case $cc_basename,$host_cpu in 6662 pgcc*) # Portland Group C compiler 6663 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' 6664 tmp_addflag=' $pic_flag' 6665 ;; 6666 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6667 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' 6668 tmp_addflag=' $pic_flag -Mnomain' ;; 6669 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6670 tmp_addflag=' -i_dynamic' ;; 6671 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6672 tmp_addflag=' -i_dynamic -nofor_main' ;; 6673 ifc* | ifort*) # Intel Fortran compiler 6674 tmp_addflag=' -nofor_main' ;; 6675 esac 6676 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6677 6678 if test $supports_anon_versioning = yes; then 6679 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6681 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6682 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6683 fi 6684 link_all_deplibs=no 6685 else 6686 ld_shlibs=no 6687 fi 6688 ;; 6689 6690 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6692 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6693 wlarc= 6694 else 6695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6697 fi 6698 ;; 6699 6700 solaris*) 6701 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6702 ld_shlibs=no 6703 cat <<EOF 1>&2 6704 6705*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6706*** create shared libraries on Solaris systems. Therefore, libtool 6707*** is disabling shared libraries support. We urge you to upgrade GNU 6708*** binutils to release 2.9.1 or newer. Another option is to modify 6709*** your PATH or compiler configuration so that the native linker is 6710*** used, and then restart. 6711 6712EOF 6713 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6716 else 6717 ld_shlibs=no 6718 fi 6719 ;; 6720 6721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6722 case `$LD -v 2>&1` in 6723 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 6724 ld_shlibs=no 6725 cat <<_LT_EOF 1>&2 6726 6727*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6728*** reliably create shared libraries on SCO systems. Therefore, libtool 6729*** is disabling shared libraries support. We urge you to upgrade GNU 6730*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6731*** your PATH or compiler configuration so that the native linker is 6732*** used, and then restart. 6733 6734_LT_EOF 6735 ;; 6736 *) 6737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6738 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 6739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 6740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 6741 else 6742 ld_shlibs=no 6743 fi 6744 ;; 6745 esac 6746 ;; 6747 6748 sunos4*) 6749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6750 wlarc= 6751 hardcode_direct=yes 6752 hardcode_shlibpath_var=no 6753 ;; 6754 6755 *) 6756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6759 else 6760 ld_shlibs=no 6761 fi 6762 ;; 6763 esac 6764 6765 if test "$ld_shlibs" = no; then 6766 runpath_var= 6767 hardcode_libdir_flag_spec= 6768 export_dynamic_flag_spec= 6769 whole_archive_flag_spec= 6770 fi 6771 else 6772 # PORTME fill in a description of your system's linker (not GNU ld) 6773 case $host_os in 6774 aix3*) 6775 allow_undefined_flag=unsupported 6776 always_export_symbols=yes 6777 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' 6778 # Note: this linker hardcodes the directories in LIBPATH if there 6779 # are no directories specified by -L. 6780 hardcode_minus_L=yes 6781 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6782 # Neither direct hardcoding nor static linking is supported with a 6783 # broken collect2. 6784 hardcode_direct=unsupported 6785 fi 6786 ;; 6787 6788 aix4* | aix5*) 6789 if test "$host_cpu" = ia64; then 6790 # On IA64, the linker does run time linking by default, so we don't 6791 # have to do anything special. 6792 aix_use_runtimelinking=no 6793 exp_sym_flag='-Bexport' 6794 no_entry_flag="" 6795 else 6796 # If we're using GNU nm, then we don't want the "-C" option. 6797 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6798 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6799 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' 6800 else 6801 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' 6802 fi 6803 aix_use_runtimelinking=no 6804 6805 # Test if we are trying to use run time linking or normal 6806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6807 # need to do runtime linking. 6808 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6809 for ld_flag in $LDFLAGS; do 6810 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6811 aix_use_runtimelinking=yes 6812 break 6813 fi 6814 done 6815 ;; 6816 esac 6817 6818 exp_sym_flag='-bexport' 6819 no_entry_flag='-bnoentry' 6820 fi 6821 6822 # When large executables or shared objects are built, AIX ld can 6823 # have problems creating the table of contents. If linking a library 6824 # or program results in "error TOC overflow" add -mminimal-toc to 6825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6827 6828 archive_cmds='' 6829 hardcode_direct=yes 6830 hardcode_libdir_separator=':' 6831 link_all_deplibs=yes 6832 6833 if test "$GCC" = yes; then 6834 case $host_os in aix4.[012]|aix4.[012].*) 6835 # We only want to do this on AIX 4.2 and lower, the check 6836 # below for broken collect2 doesn't work under 4.3+ 6837 collect2name=`${CC} -print-prog-name=collect2` 6838 if test -f "$collect2name" && \ 6839 strings "$collect2name" | grep resolve_lib_name >/dev/null 6840 then 6841 # We have reworked collect2 6842 hardcode_direct=yes 6843 else 6844 # We have old collect2 6845 hardcode_direct=unsupported 6846 # It fails to find uninstalled libraries when the uninstalled 6847 # path is not listed in the libpath. Setting hardcode_minus_L 6848 # to unsupported forces relinking 6849 hardcode_minus_L=yes 6850 hardcode_libdir_flag_spec='-L$libdir' 6851 hardcode_libdir_separator= 6852 fi 6853 ;; 6854 esac 6855 shared_flag='-shared' 6856 if test "$aix_use_runtimelinking" = yes; then 6857 shared_flag="$shared_flag "'${wl}-G' 6858 fi 6859 else 6860 # not using gcc 6861 if test "$host_cpu" = ia64; then 6862 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6863 # chokes on -Wl,-G. The following line is correct: 6864 shared_flag='-G' 6865 else 6866 if test "$aix_use_runtimelinking" = yes; then 6867 shared_flag='${wl}-G' 6868 else 6869 shared_flag='${wl}-bM:SRE' 6870 fi 6871 fi 6872 fi 6873 6874 # It seems that -bexpall does not export symbols beginning with 6875 # underscore (_), so it is better to generate a list of symbols to export. 6876 always_export_symbols=yes 6877 if test "$aix_use_runtimelinking" = yes; then 6878 # Warning - without using the other runtime loading flags (-brtl), 6879 # -berok will link without error, but may produce a broken library. 6880 allow_undefined_flag='-berok' 6881 # Determine the default libpath from the value encoded in an empty executable. 6882 cat >conftest.$ac_ext <<_ACEOF 6883/* confdefs.h. */ 6884_ACEOF 6885cat confdefs.h >>conftest.$ac_ext 6886cat >>conftest.$ac_ext <<_ACEOF 6887/* end confdefs.h. */ 6888 6889int 6890main () 6891{ 6892 6893 ; 6894 return 0; 6895} 6896_ACEOF 6897rm -f conftest.$ac_objext conftest$ac_exeext 6898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6899 (eval $ac_link) 2>conftest.er1 6900 ac_status=$? 6901 grep -v '^ *+' conftest.er1 >conftest.err 6902 rm -f conftest.er1 6903 cat conftest.err >&5 6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6905 (exit $ac_status); } && 6906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6908 (eval $ac_try) 2>&5 6909 ac_status=$? 6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6911 (exit $ac_status); }; } && 6912 { ac_try='test -s conftest$ac_exeext' 6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6914 (eval $ac_try) 2>&5 6915 ac_status=$? 6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6917 (exit $ac_status); }; }; then 6918 6919aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6920}'` 6921# Check for a 64-bit object if we didn't find anything. 6922if 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; } 6923}'`; fi 6924else 6925 echo "$as_me: failed program was:" >&5 6926sed 's/^/| /' conftest.$ac_ext >&5 6927 6928fi 6929rm -f conftest.err conftest.$ac_objext \ 6930 conftest$ac_exeext conftest.$ac_ext 6931if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6932 6933 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6934 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6935 else 6936 if test "$host_cpu" = ia64; then 6937 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6938 allow_undefined_flag="-z nodefs" 6939 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 6940 else 6941 # Determine the default libpath from the value encoded in an empty executable. 6942 cat >conftest.$ac_ext <<_ACEOF 6943/* confdefs.h. */ 6944_ACEOF 6945cat confdefs.h >>conftest.$ac_ext 6946cat >>conftest.$ac_ext <<_ACEOF 6947/* end confdefs.h. */ 6948 6949int 6950main () 6951{ 6952 6953 ; 6954 return 0; 6955} 6956_ACEOF 6957rm -f conftest.$ac_objext conftest$ac_exeext 6958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6959 (eval $ac_link) 2>conftest.er1 6960 ac_status=$? 6961 grep -v '^ *+' conftest.er1 >conftest.err 6962 rm -f conftest.er1 6963 cat conftest.err >&5 6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6965 (exit $ac_status); } && 6966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6968 (eval $ac_try) 2>&5 6969 ac_status=$? 6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6971 (exit $ac_status); }; } && 6972 { ac_try='test -s conftest$ac_exeext' 6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6974 (eval $ac_try) 2>&5 6975 ac_status=$? 6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6977 (exit $ac_status); }; }; then 6978 6979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6980}'` 6981# Check for a 64-bit object if we didn't find anything. 6982if 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; } 6983}'`; fi 6984else 6985 echo "$as_me: failed program was:" >&5 6986sed 's/^/| /' conftest.$ac_ext >&5 6987 6988fi 6989rm -f conftest.err conftest.$ac_objext \ 6990 conftest$ac_exeext conftest.$ac_ext 6991if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6992 6993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6994 # Warning - without using the other run time loading flags, 6995 # -berok will link without error, but may produce a broken library. 6996 no_undefined_flag=' ${wl}-bernotok' 6997 allow_undefined_flag=' ${wl}-berok' 6998 # Exported symbols can be pulled into shared objects from archives 6999 whole_archive_flag_spec='$convenience' 7000 archive_cmds_need_lc=yes 7001 # This is similar to how AIX traditionally builds its shared libraries. 7002 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7003 fi 7004 fi 7005 ;; 7006 7007 amigaos*) 7008 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)' 7009 hardcode_libdir_flag_spec='-L$libdir' 7010 hardcode_minus_L=yes 7011 # see comment about different semantics on the GNU ld section 7012 ld_shlibs=no 7013 ;; 7014 7015 bsdi[45]*) 7016 export_dynamic_flag_spec=-rdynamic 7017 ;; 7018 7019 cygwin* | mingw* | pw32*) 7020 # When not using gcc, we currently assume that we are using 7021 # Microsoft Visual C++. 7022 # hardcode_libdir_flag_spec is actually meaningless, as there is 7023 # no search path for DLLs. 7024 hardcode_libdir_flag_spec=' ' 7025 allow_undefined_flag=unsupported 7026 # Tell ltmain to make .lib files, not .a files. 7027 libext=lib 7028 # Tell ltmain to make .dll files, not .so files. 7029 shrext_cmds=".dll" 7030 # FIXME: Setting linknames here is a bad hack. 7031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7032 # The linker will automatically build a .lib file if we build a DLL. 7033 old_archive_From_new_cmds='true' 7034 # FIXME: Should let the user specify the lib program. 7035 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7036 fix_srcfile_path='`cygpath -w "$srcfile"`' 7037 enable_shared_with_static_runtimes=yes 7038 ;; 7039 7040 darwin* | rhapsody*) 7041 case $host_os in 7042 rhapsody* | darwin1.[012]) 7043 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7044 ;; 7045 *) # Darwin 1.3 on 7046 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7047 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7048 else 7049 case ${MACOSX_DEPLOYMENT_TARGET} in 7050 10.[012]) 7051 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7052 ;; 7053 10.*) 7054 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7055 ;; 7056 esac 7057 fi 7058 ;; 7059 esac 7060 archive_cmds_need_lc=no 7061 hardcode_direct=no 7062 hardcode_automatic=yes 7063 hardcode_shlibpath_var=unsupported 7064 whole_archive_flag_spec='' 7065 link_all_deplibs=yes 7066 if test "$GCC" = yes ; then 7067 output_verbose_link_cmd='echo' 7068 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7069 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7071 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}' 7072 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}' 7073 else 7074 case $cc_basename in 7075 xlc*) 7076 output_verbose_link_cmd='echo' 7077 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7078 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7080 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}' 7081 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}' 7082 ;; 7083 *) 7084 ld_shlibs=no 7085 ;; 7086 esac 7087 fi 7088 ;; 7089 7090 dgux*) 7091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7092 hardcode_libdir_flag_spec='-L$libdir' 7093 hardcode_shlibpath_var=no 7094 ;; 7095 7096 freebsd1*) 7097 ld_shlibs=no 7098 ;; 7099 7100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7101 # support. Future versions do this automatically, but an explicit c++rt0.o 7102 # does not break anything, and helps significantly (at the cost of a little 7103 # extra space). 7104 freebsd2.2*) 7105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7106 hardcode_libdir_flag_spec='-R$libdir' 7107 hardcode_direct=yes 7108 hardcode_shlibpath_var=no 7109 ;; 7110 7111 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7112 freebsd2*) 7113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7114 hardcode_direct=yes 7115 hardcode_minus_L=yes 7116 hardcode_shlibpath_var=no 7117 ;; 7118 7119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7120 freebsd* | dragonfly*) 7121 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7122 hardcode_libdir_flag_spec='-R$libdir' 7123 hardcode_direct=yes 7124 hardcode_shlibpath_var=no 7125 ;; 7126 7127 # GNU/kFreeBSD uses gcc -shared to do shared libraries. 7128 kfreebsd*-gnu) 7129 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7130 hardcode_libdir_flag_spec='-R$libdir' 7131 hardcode_direct=yes 7132 hardcode_shlibpath_var=no 7133 link_all_deplibs=no 7134 ;; 7135 7136 hpux9*) 7137 if test "$GCC" = yes; then 7138 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' 7139 else 7140 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' 7141 fi 7142 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7143 hardcode_libdir_separator=: 7144 hardcode_direct=yes 7145 7146 # hardcode_minus_L: Not really in the search PATH, 7147 # but as the default location of the library. 7148 hardcode_minus_L=yes 7149 export_dynamic_flag_spec='${wl}-E' 7150 ;; 7151 7152 hpux10*) 7153 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7154 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7155 else 7156 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7157 fi 7158 if test "$with_gnu_ld" = no; then 7159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7160 hardcode_libdir_separator=: 7161 7162 hardcode_direct=yes 7163 export_dynamic_flag_spec='${wl}-E' 7164 7165 # hardcode_minus_L: Not really in the search PATH, 7166 # but as the default location of the library. 7167 hardcode_minus_L=yes 7168 fi 7169 ;; 7170 7171 hpux11*) 7172 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7173 case $host_cpu in 7174 hppa*64*) 7175 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7176 ;; 7177 ia64*) 7178 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7179 ;; 7180 *) 7181 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7182 ;; 7183 esac 7184 else 7185 case $host_cpu in 7186 hppa*64*) 7187 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7188 ;; 7189 ia64*) 7190 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7191 ;; 7192 *) 7193 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7194 ;; 7195 esac 7196 fi 7197 if test "$with_gnu_ld" = no; then 7198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7199 hardcode_libdir_separator=: 7200 7201 case $host_cpu in 7202 hppa*64*|ia64*) 7203 hardcode_libdir_flag_spec_ld='+b $libdir' 7204 hardcode_direct=no 7205 hardcode_shlibpath_var=no 7206 ;; 7207 *) 7208 hardcode_direct=yes 7209 export_dynamic_flag_spec='${wl}-E' 7210 7211 # hardcode_minus_L: Not really in the search PATH, 7212 # but as the default location of the library. 7213 hardcode_minus_L=yes 7214 ;; 7215 esac 7216 fi 7217 ;; 7218 7219 irix5* | irix6* | nonstopux*) 7220 if test "$GCC" = yes; then 7221 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' 7222 else 7223 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' 7224 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7225 fi 7226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7227 hardcode_libdir_separator=: 7228 link_all_deplibs=yes 7229 ;; 7230 7231 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 7232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7234 else 7235 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7236 fi 7237 hardcode_libdir_flag_spec='-R$libdir' 7238 hardcode_direct=yes 7239 hardcode_shlibpath_var=no 7240 ;; 7241 7242 newsos6) 7243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7244 hardcode_direct=yes 7245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7246 hardcode_libdir_separator=: 7247 hardcode_shlibpath_var=no 7248 ;; 7249 7250 openbsd*) 7251 hardcode_direct=yes 7252 hardcode_shlibpath_var=no 7253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7255 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7257 export_dynamic_flag_spec='${wl}-E' 7258 else 7259 case $host_os in 7260 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7262 hardcode_libdir_flag_spec='-R$libdir' 7263 ;; 7264 *) 7265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7267 ;; 7268 esac 7269 fi 7270 ;; 7271 7272 os2*) 7273 hardcode_libdir_flag_spec='-L$libdir' 7274 hardcode_minus_L=yes 7275 allow_undefined_flag=unsupported 7276 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' 7277 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7278 ;; 7279 7280 osf3*) 7281 if test "$GCC" = yes; then 7282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7283 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' 7284 else 7285 allow_undefined_flag=' -expect_unresolved \*' 7286 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' 7287 fi 7288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7289 hardcode_libdir_separator=: 7290 ;; 7291 7292 osf4* | osf5*) # as osf3* with the addition of -msym flag 7293 if test "$GCC" = yes; then 7294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7295 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' 7296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7297 else 7298 allow_undefined_flag=' -expect_unresolved \*' 7299 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' 7300 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7301 $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' 7302 7303 # Both c and cxx compiler support -rpath directly 7304 hardcode_libdir_flag_spec='-rpath $libdir' 7305 fi 7306 hardcode_libdir_separator=: 7307 ;; 7308 7309 solaris*) 7310 no_undefined_flag=' -z text' 7311 if test "$GCC" = yes; then 7312 wlarc='${wl}' 7313 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7314 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7315 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7316 else 7317 wlarc='' 7318 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7319 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7320 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7321 fi 7322 hardcode_libdir_flag_spec='-R$libdir' 7323 hardcode_shlibpath_var=no 7324 case $host_os in 7325 solaris2.[0-5] | solaris2.[0-5].*) ;; 7326 *) 7327 # The compiler driver will combine linker options so we 7328 # cannot just pass the convience library names through 7329 # without $wl, iff we do not link with $LD. 7330 # Luckily, gcc supports the same syntax we need for Sun Studio. 7331 # Supported since Solaris 2.6 (maybe 2.5.1?) 7332 case $wlarc in 7333 '') 7334 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7335 *) 7336 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' ;; 7337 esac ;; 7338 esac 7339 link_all_deplibs=yes 7340 ;; 7341 7342 sunos4*) 7343 if test "x$host_vendor" = xsequent; then 7344 # Use $CC to link under sequent, because it throws in some extra .o 7345 # files that make .init and .fini sections work. 7346 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7347 else 7348 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7349 fi 7350 hardcode_libdir_flag_spec='-L$libdir' 7351 hardcode_direct=yes 7352 hardcode_minus_L=yes 7353 hardcode_shlibpath_var=no 7354 ;; 7355 7356 sysv4) 7357 case $host_vendor in 7358 sni) 7359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7360 hardcode_direct=yes # is this really true??? 7361 ;; 7362 siemens) 7363 ## LD is ld it makes a PLAMLIB 7364 ## CC just makes a GrossModule. 7365 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7366 reload_cmds='$CC -r -o $output$reload_objs' 7367 hardcode_direct=no 7368 ;; 7369 motorola) 7370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7371 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7372 ;; 7373 esac 7374 runpath_var='LD_RUN_PATH' 7375 hardcode_shlibpath_var=no 7376 ;; 7377 7378 sysv4.3*) 7379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7380 hardcode_shlibpath_var=no 7381 export_dynamic_flag_spec='-Bexport' 7382 ;; 7383 7384 sysv4*MP*) 7385 if test -d /usr/nec; then 7386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7387 hardcode_shlibpath_var=no 7388 runpath_var=LD_RUN_PATH 7389 hardcode_runpath_var=yes 7390 ld_shlibs=yes 7391 fi 7392 ;; 7393 7394 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7395 no_undefined_flag='${wl}-z,text' 7396 archive_cmds_need_lc=no 7397 hardcode_shlibpath_var=no 7398 runpath_var='LD_RUN_PATH' 7399 7400 if test "$GCC" = yes; then 7401 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7402 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7403 else 7404 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7405 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7406 fi 7407 ;; 7408 7409 sysv5* | sco3.2v5* | sco5v6*) 7410 # Note: We can NOT use -z defs as we might desire, because we do not 7411 # link with -lc, and that would cause any symbols used from libc to 7412 # always be unresolved, which means just about no library would 7413 # ever link correctly. If we're not using GNU ld we use -z text 7414 # though, which does catch some bad symbols but isn't as heavy-handed 7415 # as -z defs. 7416 no_undefined_flag='${wl}-z,text' 7417 allow_undefined_flag='${wl}-z,nodefs' 7418 archive_cmds_need_lc=no 7419 hardcode_shlibpath_var=no 7420 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7421 hardcode_libdir_separator=':' 7422 link_all_deplibs=yes 7423 export_dynamic_flag_spec='${wl}-Bexport' 7424 runpath_var='LD_RUN_PATH' 7425 7426 if test "$GCC" = yes; then 7427 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7428 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7429 else 7430 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7431 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7432 fi 7433 ;; 7434 7435 uts4*) 7436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7437 hardcode_libdir_flag_spec='-L$libdir' 7438 hardcode_shlibpath_var=no 7439 ;; 7440 7441 *) 7442 ld_shlibs=no 7443 ;; 7444 esac 7445 fi 7446 7447echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7448echo "${ECHO_T}$ld_shlibs" >&6 7449test "$ld_shlibs" = no && can_build_shared=no 7450 7451# 7452# Do we need to explicitly link libc? 7453# 7454case "x$archive_cmds_need_lc" in 7455x|xyes) 7456 # Assume -lc should be added 7457 archive_cmds_need_lc=yes 7458 7459 if test "$enable_shared" = yes && test "$GCC" = yes; then 7460 case $archive_cmds in 7461 *'~'*) 7462 # FIXME: we may have to deal with multi-command sequences. 7463 ;; 7464 '$CC '*) 7465 # Test whether the compiler implicitly links with -lc since on some 7466 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7467 # to ld, don't add -lc before -lgcc. 7468 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7469echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7470 $rm conftest* 7471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7472 7473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7474 (eval $ac_compile) 2>&5 7475 ac_status=$? 7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7477 (exit $ac_status); } 2>conftest.err; then 7478 soname=conftest 7479 lib=conftest 7480 libobjs=conftest.$ac_objext 7481 deplibs= 7482 wl=$lt_prog_compiler_wl 7483 pic_flag=$lt_prog_compiler_pic 7484 compiler_flags=-v 7485 linker_flags=-v 7486 verstring= 7487 output_objdir=. 7488 libname=conftest 7489 lt_save_allow_undefined_flag=$allow_undefined_flag 7490 allow_undefined_flag= 7491 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7492 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7493 ac_status=$? 7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7495 (exit $ac_status); } 7496 then 7497 archive_cmds_need_lc=no 7498 else 7499 archive_cmds_need_lc=yes 7500 fi 7501 allow_undefined_flag=$lt_save_allow_undefined_flag 7502 else 7503 cat conftest.err 1>&5 7504 fi 7505 $rm conftest* 7506 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7507echo "${ECHO_T}$archive_cmds_need_lc" >&6 7508 ;; 7509 esac 7510 fi 7511 ;; 7512esac 7513 7514echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7515echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7516library_names_spec= 7517libname_spec='lib$name' 7518soname_spec= 7519shrext_cmds=".so" 7520postinstall_cmds= 7521postuninstall_cmds= 7522finish_cmds= 7523finish_eval= 7524shlibpath_var= 7525shlibpath_overrides_runpath=unknown 7526version_type=none 7527dynamic_linker="$host_os ld.so" 7528sys_lib_dlsearch_path_spec="/lib /usr/lib" 7529if test "$GCC" = yes; then 7530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7532 # if the path contains ";" then we assume it to be the separator 7533 # otherwise default to the standard path separator (i.e. ":") - it is 7534 # assumed that no part of a normal pathname contains ";" but that should 7535 # okay in the real world where ";" in dirpaths is itself problematic. 7536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7537 else 7538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7539 fi 7540else 7541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7542fi 7543need_lib_prefix=unknown 7544hardcode_into_libs=no 7545 7546# when you set need_version to no, make sure it does not cause -set_version 7547# flags to be left without arguments 7548need_version=unknown 7549 7550case $host_os in 7551aix3*) 7552 version_type=linux 7553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7554 shlibpath_var=LIBPATH 7555 7556 # AIX 3 has no versioning support, so we append a major version to the name. 7557 soname_spec='${libname}${release}${shared_ext}$major' 7558 ;; 7559 7560aix4* | aix5*) 7561 version_type=linux 7562 need_lib_prefix=no 7563 need_version=no 7564 hardcode_into_libs=yes 7565 if test "$host_cpu" = ia64; then 7566 # AIX 5 supports IA64 7567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7568 shlibpath_var=LD_LIBRARY_PATH 7569 else 7570 # With GCC up to 2.95.x, collect2 would create an import file 7571 # for dependence libraries. The import file would start with 7572 # the line `#! .'. This would cause the generated library to 7573 # depend on `.', always an invalid library. This was fixed in 7574 # development snapshots of GCC prior to 3.0. 7575 case $host_os in 7576 aix4 | aix4.[01] | aix4.[01].*) 7577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7578 echo ' yes ' 7579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7580 : 7581 else 7582 can_build_shared=no 7583 fi 7584 ;; 7585 esac 7586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7587 # soname into executable. Probably we can add versioning support to 7588 # collect2, so additional links can be useful in future. 7589 if test "$aix_use_runtimelinking" = yes; then 7590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7591 # instead of lib<name>.a to let people know that these are not 7592 # typical AIX shared libraries. 7593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7594 else 7595 # We preserve .a as extension for shared libraries through AIX4.2 7596 # and later when we are not doing run time linking. 7597 library_names_spec='${libname}${release}.a $libname.a' 7598 soname_spec='${libname}${release}${shared_ext}$major' 7599 fi 7600 shlibpath_var=LIBPATH 7601 fi 7602 ;; 7603 7604amigaos*) 7605 library_names_spec='$libname.ixlibrary $libname.a' 7606 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7607 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' 7608 ;; 7609 7610beos*) 7611 library_names_spec='${libname}${shared_ext}' 7612 dynamic_linker="$host_os ld.so" 7613 shlibpath_var=LIBRARY_PATH 7614 ;; 7615 7616bsdi[45]*) 7617 version_type=linux 7618 need_version=no 7619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7620 soname_spec='${libname}${release}${shared_ext}$major' 7621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7622 shlibpath_var=LD_LIBRARY_PATH 7623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7625 # the default ld.so.conf also contains /usr/contrib/lib and 7626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7627 # libtool to hard-code these into programs 7628 ;; 7629 7630cygwin* | mingw* | pw32*) 7631 version_type=windows 7632 shrext_cmds=".dll" 7633 need_version=no 7634 need_lib_prefix=no 7635 7636 case $GCC,$host_os in 7637 yes,cygwin* | yes,mingw* | yes,pw32*) 7638 library_names_spec='$libname.dll.a' 7639 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7640 postinstall_cmds='base_file=`basename \${file}`~ 7641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7642 dldir=$destdir/`dirname \$dlpath`~ 7643 test -d \$dldir || mkdir -p \$dldir~ 7644 $install_prog $dir/$dlname \$dldir/$dlname~ 7645 chmod a+x \$dldir/$dlname' 7646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7647 dlpath=$dir/\$dldll~ 7648 $rm \$dlpath' 7649 shlibpath_overrides_runpath=yes 7650 7651 case $host_os in 7652 cygwin*) 7653 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7655 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7656 ;; 7657 mingw*) 7658 # MinGW DLLs use traditional 'lib' prefix 7659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7661 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7662 # It is most probably a Windows format PATH printed by 7663 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7664 # path with ; separators, and with drive letters. We can handle the 7665 # drive letters (cygwin fileutils understands them), so leave them, 7666 # especially as we might pass files found there to a mingw objdump, 7667 # which wouldn't understand a cygwinified path. Ahh. 7668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7669 else 7670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7671 fi 7672 ;; 7673 pw32*) 7674 # pw32 DLLs use 'pw' prefix rather than 'lib' 7675 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7676 ;; 7677 esac 7678 ;; 7679 7680 *) 7681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7682 ;; 7683 esac 7684 dynamic_linker='Win32 ld.exe' 7685 # FIXME: first we should search . and the directory the executable is in 7686 shlibpath_var=PATH 7687 ;; 7688 7689darwin* | rhapsody*) 7690 dynamic_linker="$host_os dyld" 7691 version_type=darwin 7692 need_lib_prefix=no 7693 need_version=no 7694 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7695 soname_spec='${libname}${release}${major}$shared_ext' 7696 shlibpath_overrides_runpath=yes 7697 shlibpath_var=DYLD_LIBRARY_PATH 7698 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7699 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7700 if test "$GCC" = yes; then 7701 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"` 7702 else 7703 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7704 fi 7705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7706 ;; 7707 7708dgux*) 7709 version_type=linux 7710 need_lib_prefix=no 7711 need_version=no 7712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7713 soname_spec='${libname}${release}${shared_ext}$major' 7714 shlibpath_var=LD_LIBRARY_PATH 7715 ;; 7716 7717freebsd1*) 7718 dynamic_linker=no 7719 ;; 7720 7721kfreebsd*-gnu) 7722 version_type=linux 7723 need_lib_prefix=no 7724 need_version=no 7725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7726 soname_spec='${libname}${release}${shared_ext}$major' 7727 shlibpath_var=LD_LIBRARY_PATH 7728 shlibpath_overrides_runpath=no 7729 hardcode_into_libs=yes 7730 dynamic_linker='GNU ld.so' 7731 ;; 7732 7733freebsd* | dragonfly*) 7734 # DragonFly does not have aout. When/if they implement a new 7735 # versioning mechanism, adjust this. 7736 if test -x /usr/bin/objformat; then 7737 objformat=`/usr/bin/objformat` 7738 else 7739 case $host_os in 7740 freebsd[123]*) objformat=aout ;; 7741 *) objformat=elf ;; 7742 esac 7743 fi 7744 version_type=freebsd-$objformat 7745 case $version_type in 7746 freebsd-elf*) 7747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7748 need_version=no 7749 need_lib_prefix=no 7750 ;; 7751 freebsd-*) 7752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7753 need_version=yes 7754 ;; 7755 esac 7756 shlibpath_var=LD_LIBRARY_PATH 7757 case $host_os in 7758 freebsd2*) 7759 shlibpath_overrides_runpath=yes 7760 ;; 7761 freebsd3.[01]* | freebsdelf3.[01]*) 7762 shlibpath_overrides_runpath=yes 7763 hardcode_into_libs=yes 7764 ;; 7765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 7766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 7767 shlibpath_overrides_runpath=no 7768 hardcode_into_libs=yes 7769 ;; 7770 freebsd*) # from 4.6 on 7771 shlibpath_overrides_runpath=yes 7772 hardcode_into_libs=yes 7773 ;; 7774 esac 7775 ;; 7776 7777gnu*) 7778 version_type=linux 7779 need_lib_prefix=no 7780 need_version=no 7781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7782 soname_spec='${libname}${release}${shared_ext}$major' 7783 shlibpath_var=LD_LIBRARY_PATH 7784 hardcode_into_libs=yes 7785 ;; 7786 7787hpux9* | hpux10* | hpux11*) 7788 # Give a soname corresponding to the major version so that dld.sl refuses to 7789 # link against other versions. 7790 version_type=sunos 7791 need_lib_prefix=no 7792 need_version=no 7793 case $host_cpu in 7794 ia64*) 7795 shrext_cmds='.so' 7796 hardcode_into_libs=yes 7797 dynamic_linker="$host_os dld.so" 7798 shlibpath_var=LD_LIBRARY_PATH 7799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7801 soname_spec='${libname}${release}${shared_ext}$major' 7802 if test "X$HPUX_IA64_MODE" = X32; then 7803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7804 else 7805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7806 fi 7807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7808 ;; 7809 hppa*64*) 7810 shrext_cmds='.sl' 7811 hardcode_into_libs=yes 7812 dynamic_linker="$host_os dld.sl" 7813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7816 soname_spec='${libname}${release}${shared_ext}$major' 7817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7819 ;; 7820 *) 7821 shrext_cmds='.sl' 7822 dynamic_linker="$host_os dld.sl" 7823 shlibpath_var=SHLIB_PATH 7824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7826 soname_spec='${libname}${release}${shared_ext}$major' 7827 ;; 7828 esac 7829 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7830 postinstall_cmds='chmod 555 $lib' 7831 ;; 7832 7833interix3*) 7834 version_type=linux 7835 need_lib_prefix=no 7836 need_version=no 7837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7838 soname_spec='${libname}${release}${shared_ext}$major' 7839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 7840 shlibpath_var=LD_LIBRARY_PATH 7841 shlibpath_overrides_runpath=no 7842 hardcode_into_libs=yes 7843 ;; 7844 7845irix5* | irix6* | nonstopux*) 7846 case $host_os in 7847 nonstopux*) version_type=nonstopux ;; 7848 *) 7849 if test "$lt_cv_prog_gnu_ld" = yes; then 7850 version_type=linux 7851 else 7852 version_type=irix 7853 fi ;; 7854 esac 7855 need_lib_prefix=no 7856 need_version=no 7857 soname_spec='${libname}${release}${shared_ext}$major' 7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7859 case $host_os in 7860 irix5* | nonstopux*) 7861 libsuff= shlibsuff= 7862 ;; 7863 *) 7864 case $LD in # libtool.m4 will add one of these switches to LD 7865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7866 libsuff= shlibsuff= libmagic=32-bit;; 7867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7868 libsuff=32 shlibsuff=N32 libmagic=N32;; 7869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7870 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7871 *) libsuff= shlibsuff= libmagic=never-match;; 7872 esac 7873 ;; 7874 esac 7875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7876 shlibpath_overrides_runpath=no 7877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7879 hardcode_into_libs=yes 7880 ;; 7881 7882# No shared lib support for Linux oldld, aout, or coff. 7883linux*oldld* | linux*aout* | linux*coff*) 7884 dynamic_linker=no 7885 ;; 7886 7887# This must be Linux ELF. 7888linux*) 7889 version_type=linux 7890 need_lib_prefix=no 7891 need_version=no 7892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7893 soname_spec='${libname}${release}${shared_ext}$major' 7894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7895 shlibpath_var=LD_LIBRARY_PATH 7896 shlibpath_overrides_runpath=no 7897 # This implies no fast_install, which is unacceptable. 7898 # Some rework will be needed to allow for fast_install 7899 # before this can be enabled. 7900 hardcode_into_libs=yes 7901 7902 # Append ld.so.conf contents to the search path 7903 if test -f /etc/ld.so.conf; then 7904 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' ' '` 7905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7906 fi 7907 7908 # We used to test for /lib/ld.so.1 and disable shared libraries on 7909 # powerpc, because MkLinux only supported shared libraries with the 7910 # GNU dynamic linker. Since this was broken with cross compilers, 7911 # most powerpc-linux boxes support dynamic linking these days and 7912 # people can always --disable-shared, the test was removed, and we 7913 # assume the GNU/Linux dynamic linker is in use. 7914 dynamic_linker='GNU/Linux ld.so' 7915 ;; 7916 7917netbsdelf*-gnu) 7918 version_type=linux 7919 need_lib_prefix=no 7920 need_version=no 7921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7922 soname_spec='${libname}${release}${shared_ext}$major' 7923 shlibpath_var=LD_LIBRARY_PATH 7924 shlibpath_overrides_runpath=no 7925 hardcode_into_libs=yes 7926 dynamic_linker='NetBSD ld.elf_so' 7927 ;; 7928 7929knetbsd*-gnu) 7930 version_type=linux 7931 need_lib_prefix=no 7932 need_version=no 7933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7934 soname_spec='${libname}${release}${shared_ext}$major' 7935 shlibpath_var=LD_LIBRARY_PATH 7936 shlibpath_overrides_runpath=no 7937 hardcode_into_libs=yes 7938 dynamic_linker='GNU ld.so' 7939 ;; 7940 7941netbsd*) 7942 version_type=sunos 7943 need_lib_prefix=no 7944 need_version=no 7945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7948 dynamic_linker='NetBSD (a.out) ld.so' 7949 else 7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7951 soname_spec='${libname}${release}${shared_ext}$major' 7952 dynamic_linker='NetBSD ld.elf_so' 7953 fi 7954 shlibpath_var=LD_LIBRARY_PATH 7955 shlibpath_overrides_runpath=yes 7956 hardcode_into_libs=yes 7957 ;; 7958 7959newsos6) 7960 version_type=linux 7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7962 shlibpath_var=LD_LIBRARY_PATH 7963 shlibpath_overrides_runpath=yes 7964 ;; 7965 7966nto-qnx*) 7967 version_type=linux 7968 need_lib_prefix=no 7969 need_version=no 7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7971 soname_spec='${libname}${release}${shared_ext}$major' 7972 shlibpath_var=LD_LIBRARY_PATH 7973 shlibpath_overrides_runpath=yes 7974 ;; 7975 7976openbsd*) 7977 version_type=sunos 7978 sys_lib_dlsearch_path_spec="/usr/lib" 7979 need_lib_prefix=no 7980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 7981 case $host_os in 7982 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 7983 *) need_version=no ;; 7984 esac 7985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7987 shlibpath_var=LD_LIBRARY_PATH 7988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7989 case $host_os in 7990 openbsd2.[89] | openbsd2.[89].*) 7991 shlibpath_overrides_runpath=no 7992 ;; 7993 *) 7994 shlibpath_overrides_runpath=yes 7995 ;; 7996 esac 7997 else 7998 shlibpath_overrides_runpath=yes 7999 fi 8000 ;; 8001 8002os2*) 8003 libname_spec='$name' 8004 shrext_cmds=".dll" 8005 need_lib_prefix=no 8006 library_names_spec='$libname${shared_ext} $libname.a' 8007 dynamic_linker='OS/2 ld.exe' 8008 shlibpath_var=LIBPATH 8009 ;; 8010 8011osf3* | osf4* | osf5*) 8012 version_type=osf 8013 need_lib_prefix=no 8014 need_version=no 8015 soname_spec='${libname}${release}${shared_ext}$major' 8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8017 shlibpath_var=LD_LIBRARY_PATH 8018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8020 ;; 8021 8022solaris*) 8023 version_type=linux 8024 need_lib_prefix=no 8025 need_version=no 8026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8027 soname_spec='${libname}${release}${shared_ext}$major' 8028 shlibpath_var=LD_LIBRARY_PATH 8029 shlibpath_overrides_runpath=yes 8030 hardcode_into_libs=yes 8031 # ldd complains unless libraries are executable 8032 postinstall_cmds='chmod +x $lib' 8033 ;; 8034 8035sunos4*) 8036 version_type=sunos 8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8039 shlibpath_var=LD_LIBRARY_PATH 8040 shlibpath_overrides_runpath=yes 8041 if test "$with_gnu_ld" = yes; then 8042 need_lib_prefix=no 8043 fi 8044 need_version=yes 8045 ;; 8046 8047sysv4 | sysv4.3*) 8048 version_type=linux 8049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8050 soname_spec='${libname}${release}${shared_ext}$major' 8051 shlibpath_var=LD_LIBRARY_PATH 8052 case $host_vendor in 8053 sni) 8054 shlibpath_overrides_runpath=no 8055 need_lib_prefix=no 8056 export_dynamic_flag_spec='${wl}-Blargedynsym' 8057 runpath_var=LD_RUN_PATH 8058 ;; 8059 siemens) 8060 need_lib_prefix=no 8061 ;; 8062 motorola) 8063 need_lib_prefix=no 8064 need_version=no 8065 shlibpath_overrides_runpath=no 8066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8067 ;; 8068 esac 8069 ;; 8070 8071sysv4*MP*) 8072 if test -d /usr/nec ;then 8073 version_type=linux 8074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8075 soname_spec='$libname${shared_ext}.$major' 8076 shlibpath_var=LD_LIBRARY_PATH 8077 fi 8078 ;; 8079 8080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8081 version_type=freebsd-elf 8082 need_lib_prefix=no 8083 need_version=no 8084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8085 soname_spec='${libname}${release}${shared_ext}$major' 8086 shlibpath_var=LD_LIBRARY_PATH 8087 hardcode_into_libs=yes 8088 if test "$with_gnu_ld" = yes; then 8089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8090 shlibpath_overrides_runpath=no 8091 else 8092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8093 shlibpath_overrides_runpath=yes 8094 case $host_os in 8095 sco3.2v5*) 8096 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8097 ;; 8098 esac 8099 fi 8100 sys_lib_dlsearch_path_spec='/usr/lib' 8101 ;; 8102 8103uts4*) 8104 version_type=linux 8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8106 soname_spec='${libname}${release}${shared_ext}$major' 8107 shlibpath_var=LD_LIBRARY_PATH 8108 ;; 8109 8110*) 8111 dynamic_linker=no 8112 ;; 8113esac 8114echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8115echo "${ECHO_T}$dynamic_linker" >&6 8116test "$dynamic_linker" = no && can_build_shared=no 8117 8118variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8119if test "$GCC" = yes; then 8120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8121fi 8122 8123echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8124echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8125hardcode_action= 8126if test -n "$hardcode_libdir_flag_spec" || \ 8127 test -n "$runpath_var" || \ 8128 test "X$hardcode_automatic" = "Xyes" ; then 8129 8130 # We can hardcode non-existant directories. 8131 if test "$hardcode_direct" != no && 8132 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8133 # have to relink, otherwise we might link with an installed library 8134 # when we should be linking with a yet-to-be-installed one 8135 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8136 test "$hardcode_minus_L" != no; then 8137 # Linking always hardcodes the temporary library directory. 8138 hardcode_action=relink 8139 else 8140 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8141 hardcode_action=immediate 8142 fi 8143else 8144 # We cannot hardcode anything, or else we can only hardcode existing 8145 # directories. 8146 hardcode_action=unsupported 8147fi 8148echo "$as_me:$LINENO: result: $hardcode_action" >&5 8149echo "${ECHO_T}$hardcode_action" >&6 8150 8151if test "$hardcode_action" = relink; then 8152 # Fast installation is not supported 8153 enable_fast_install=no 8154elif test "$shlibpath_overrides_runpath" = yes || 8155 test "$enable_shared" = no; then 8156 # Fast installation is not necessary 8157 enable_fast_install=needless 8158fi 8159 8160striplib= 8161old_striplib= 8162echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8163echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8164if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8165 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8166 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8167 echo "$as_me:$LINENO: result: yes" >&5 8168echo "${ECHO_T}yes" >&6 8169else 8170# FIXME - insert some real tests, host_os isn't really good enough 8171 case $host_os in 8172 darwin*) 8173 if test -n "$STRIP" ; then 8174 striplib="$STRIP -x" 8175 echo "$as_me:$LINENO: result: yes" >&5 8176echo "${ECHO_T}yes" >&6 8177 else 8178 echo "$as_me:$LINENO: result: no" >&5 8179echo "${ECHO_T}no" >&6 8180fi 8181 ;; 8182 *) 8183 echo "$as_me:$LINENO: result: no" >&5 8184echo "${ECHO_T}no" >&6 8185 ;; 8186 esac 8187fi 8188 8189if test "x$enable_dlopen" != xyes; then 8190 enable_dlopen=unknown 8191 enable_dlopen_self=unknown 8192 enable_dlopen_self_static=unknown 8193else 8194 lt_cv_dlopen=no 8195 lt_cv_dlopen_libs= 8196 8197 case $host_os in 8198 beos*) 8199 lt_cv_dlopen="load_add_on" 8200 lt_cv_dlopen_libs= 8201 lt_cv_dlopen_self=yes 8202 ;; 8203 8204 mingw* | pw32*) 8205 lt_cv_dlopen="LoadLibrary" 8206 lt_cv_dlopen_libs= 8207 ;; 8208 8209 cygwin*) 8210 lt_cv_dlopen="dlopen" 8211 lt_cv_dlopen_libs= 8212 ;; 8213 8214 darwin*) 8215 # if libdl is installed we need to link against it 8216 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8217echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8218if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8219 echo $ECHO_N "(cached) $ECHO_C" >&6 8220else 8221 ac_check_lib_save_LIBS=$LIBS 8222LIBS="-ldl $LIBS" 8223cat >conftest.$ac_ext <<_ACEOF 8224/* confdefs.h. */ 8225_ACEOF 8226cat confdefs.h >>conftest.$ac_ext 8227cat >>conftest.$ac_ext <<_ACEOF 8228/* end confdefs.h. */ 8229 8230/* Override any gcc2 internal prototype to avoid an error. */ 8231#ifdef __cplusplus 8232extern "C" 8233#endif 8234/* We use char because int might match the return type of a gcc2 8235 builtin and then its argument prototype would still apply. */ 8236char dlopen (); 8237int 8238main () 8239{ 8240dlopen (); 8241 ; 8242 return 0; 8243} 8244_ACEOF 8245rm -f conftest.$ac_objext conftest$ac_exeext 8246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8247 (eval $ac_link) 2>conftest.er1 8248 ac_status=$? 8249 grep -v '^ *+' conftest.er1 >conftest.err 8250 rm -f conftest.er1 8251 cat conftest.err >&5 8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8253 (exit $ac_status); } && 8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8256 (eval $ac_try) 2>&5 8257 ac_status=$? 8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8259 (exit $ac_status); }; } && 8260 { ac_try='test -s conftest$ac_exeext' 8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8262 (eval $ac_try) 2>&5 8263 ac_status=$? 8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8265 (exit $ac_status); }; }; then 8266 ac_cv_lib_dl_dlopen=yes 8267else 8268 echo "$as_me: failed program was:" >&5 8269sed 's/^/| /' conftest.$ac_ext >&5 8270 8271ac_cv_lib_dl_dlopen=no 8272fi 8273rm -f conftest.err conftest.$ac_objext \ 8274 conftest$ac_exeext conftest.$ac_ext 8275LIBS=$ac_check_lib_save_LIBS 8276fi 8277echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8278echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8279if test $ac_cv_lib_dl_dlopen = yes; then 8280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8281else 8282 8283 lt_cv_dlopen="dyld" 8284 lt_cv_dlopen_libs= 8285 lt_cv_dlopen_self=yes 8286 8287fi 8288 8289 ;; 8290 8291 *) 8292 echo "$as_me:$LINENO: checking for shl_load" >&5 8293echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8294if test "${ac_cv_func_shl_load+set}" = set; then 8295 echo $ECHO_N "(cached) $ECHO_C" >&6 8296else 8297 cat >conftest.$ac_ext <<_ACEOF 8298/* confdefs.h. */ 8299_ACEOF 8300cat confdefs.h >>conftest.$ac_ext 8301cat >>conftest.$ac_ext <<_ACEOF 8302/* end confdefs.h. */ 8303/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8304 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8305#define shl_load innocuous_shl_load 8306 8307/* System header to define __stub macros and hopefully few prototypes, 8308 which can conflict with char shl_load (); below. 8309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8310 <limits.h> exists even on freestanding compilers. */ 8311 8312#ifdef __STDC__ 8313# include <limits.h> 8314#else 8315# include <assert.h> 8316#endif 8317 8318#undef shl_load 8319 8320/* Override any gcc2 internal prototype to avoid an error. */ 8321#ifdef __cplusplus 8322extern "C" 8323{ 8324#endif 8325/* We use char because int might match the return type of a gcc2 8326 builtin and then its argument prototype would still apply. */ 8327char shl_load (); 8328/* The GNU C library defines this for functions which it implements 8329 to always fail with ENOSYS. Some functions are actually named 8330 something starting with __ and the normal name is an alias. */ 8331#if defined (__stub_shl_load) || defined (__stub___shl_load) 8332choke me 8333#else 8334char (*f) () = shl_load; 8335#endif 8336#ifdef __cplusplus 8337} 8338#endif 8339 8340int 8341main () 8342{ 8343return f != shl_load; 8344 ; 8345 return 0; 8346} 8347_ACEOF 8348rm -f conftest.$ac_objext conftest$ac_exeext 8349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8350 (eval $ac_link) 2>conftest.er1 8351 ac_status=$? 8352 grep -v '^ *+' conftest.er1 >conftest.err 8353 rm -f conftest.er1 8354 cat conftest.err >&5 8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8356 (exit $ac_status); } && 8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8359 (eval $ac_try) 2>&5 8360 ac_status=$? 8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8362 (exit $ac_status); }; } && 8363 { ac_try='test -s conftest$ac_exeext' 8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8365 (eval $ac_try) 2>&5 8366 ac_status=$? 8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8368 (exit $ac_status); }; }; then 8369 ac_cv_func_shl_load=yes 8370else 8371 echo "$as_me: failed program was:" >&5 8372sed 's/^/| /' conftest.$ac_ext >&5 8373 8374ac_cv_func_shl_load=no 8375fi 8376rm -f conftest.err conftest.$ac_objext \ 8377 conftest$ac_exeext conftest.$ac_ext 8378fi 8379echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8380echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8381if test $ac_cv_func_shl_load = yes; then 8382 lt_cv_dlopen="shl_load" 8383else 8384 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8385echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8386if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8387 echo $ECHO_N "(cached) $ECHO_C" >&6 8388else 8389 ac_check_lib_save_LIBS=$LIBS 8390LIBS="-ldld $LIBS" 8391cat >conftest.$ac_ext <<_ACEOF 8392/* confdefs.h. */ 8393_ACEOF 8394cat confdefs.h >>conftest.$ac_ext 8395cat >>conftest.$ac_ext <<_ACEOF 8396/* end confdefs.h. */ 8397 8398/* Override any gcc2 internal prototype to avoid an error. */ 8399#ifdef __cplusplus 8400extern "C" 8401#endif 8402/* We use char because int might match the return type of a gcc2 8403 builtin and then its argument prototype would still apply. */ 8404char shl_load (); 8405int 8406main () 8407{ 8408shl_load (); 8409 ; 8410 return 0; 8411} 8412_ACEOF 8413rm -f conftest.$ac_objext conftest$ac_exeext 8414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8415 (eval $ac_link) 2>conftest.er1 8416 ac_status=$? 8417 grep -v '^ *+' conftest.er1 >conftest.err 8418 rm -f conftest.er1 8419 cat conftest.err >&5 8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8421 (exit $ac_status); } && 8422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8424 (eval $ac_try) 2>&5 8425 ac_status=$? 8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8427 (exit $ac_status); }; } && 8428 { ac_try='test -s conftest$ac_exeext' 8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8430 (eval $ac_try) 2>&5 8431 ac_status=$? 8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8433 (exit $ac_status); }; }; then 8434 ac_cv_lib_dld_shl_load=yes 8435else 8436 echo "$as_me: failed program was:" >&5 8437sed 's/^/| /' conftest.$ac_ext >&5 8438 8439ac_cv_lib_dld_shl_load=no 8440fi 8441rm -f conftest.err conftest.$ac_objext \ 8442 conftest$ac_exeext conftest.$ac_ext 8443LIBS=$ac_check_lib_save_LIBS 8444fi 8445echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8446echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8447if test $ac_cv_lib_dld_shl_load = yes; then 8448 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8449else 8450 echo "$as_me:$LINENO: checking for dlopen" >&5 8451echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8452if test "${ac_cv_func_dlopen+set}" = set; then 8453 echo $ECHO_N "(cached) $ECHO_C" >&6 8454else 8455 cat >conftest.$ac_ext <<_ACEOF 8456/* confdefs.h. */ 8457_ACEOF 8458cat confdefs.h >>conftest.$ac_ext 8459cat >>conftest.$ac_ext <<_ACEOF 8460/* end confdefs.h. */ 8461/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8462 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8463#define dlopen innocuous_dlopen 8464 8465/* System header to define __stub macros and hopefully few prototypes, 8466 which can conflict with char dlopen (); below. 8467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8468 <limits.h> exists even on freestanding compilers. */ 8469 8470#ifdef __STDC__ 8471# include <limits.h> 8472#else 8473# include <assert.h> 8474#endif 8475 8476#undef dlopen 8477 8478/* Override any gcc2 internal prototype to avoid an error. */ 8479#ifdef __cplusplus 8480extern "C" 8481{ 8482#endif 8483/* We use char because int might match the return type of a gcc2 8484 builtin and then its argument prototype would still apply. */ 8485char dlopen (); 8486/* The GNU C library defines this for functions which it implements 8487 to always fail with ENOSYS. Some functions are actually named 8488 something starting with __ and the normal name is an alias. */ 8489#if defined (__stub_dlopen) || defined (__stub___dlopen) 8490choke me 8491#else 8492char (*f) () = dlopen; 8493#endif 8494#ifdef __cplusplus 8495} 8496#endif 8497 8498int 8499main () 8500{ 8501return f != dlopen; 8502 ; 8503 return 0; 8504} 8505_ACEOF 8506rm -f conftest.$ac_objext conftest$ac_exeext 8507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8508 (eval $ac_link) 2>conftest.er1 8509 ac_status=$? 8510 grep -v '^ *+' conftest.er1 >conftest.err 8511 rm -f conftest.er1 8512 cat conftest.err >&5 8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8514 (exit $ac_status); } && 8515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8517 (eval $ac_try) 2>&5 8518 ac_status=$? 8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8520 (exit $ac_status); }; } && 8521 { ac_try='test -s conftest$ac_exeext' 8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8523 (eval $ac_try) 2>&5 8524 ac_status=$? 8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8526 (exit $ac_status); }; }; then 8527 ac_cv_func_dlopen=yes 8528else 8529 echo "$as_me: failed program was:" >&5 8530sed 's/^/| /' conftest.$ac_ext >&5 8531 8532ac_cv_func_dlopen=no 8533fi 8534rm -f conftest.err conftest.$ac_objext \ 8535 conftest$ac_exeext conftest.$ac_ext 8536fi 8537echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8538echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8539if test $ac_cv_func_dlopen = yes; then 8540 lt_cv_dlopen="dlopen" 8541else 8542 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8543echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8544if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8545 echo $ECHO_N "(cached) $ECHO_C" >&6 8546else 8547 ac_check_lib_save_LIBS=$LIBS 8548LIBS="-ldl $LIBS" 8549cat >conftest.$ac_ext <<_ACEOF 8550/* confdefs.h. */ 8551_ACEOF 8552cat confdefs.h >>conftest.$ac_ext 8553cat >>conftest.$ac_ext <<_ACEOF 8554/* end confdefs.h. */ 8555 8556/* Override any gcc2 internal prototype to avoid an error. */ 8557#ifdef __cplusplus 8558extern "C" 8559#endif 8560/* We use char because int might match the return type of a gcc2 8561 builtin and then its argument prototype would still apply. */ 8562char dlopen (); 8563int 8564main () 8565{ 8566dlopen (); 8567 ; 8568 return 0; 8569} 8570_ACEOF 8571rm -f conftest.$ac_objext conftest$ac_exeext 8572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8573 (eval $ac_link) 2>conftest.er1 8574 ac_status=$? 8575 grep -v '^ *+' conftest.er1 >conftest.err 8576 rm -f conftest.er1 8577 cat conftest.err >&5 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8579 (exit $ac_status); } && 8580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8582 (eval $ac_try) 2>&5 8583 ac_status=$? 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); }; } && 8586 { ac_try='test -s conftest$ac_exeext' 8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8588 (eval $ac_try) 2>&5 8589 ac_status=$? 8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8591 (exit $ac_status); }; }; then 8592 ac_cv_lib_dl_dlopen=yes 8593else 8594 echo "$as_me: failed program was:" >&5 8595sed 's/^/| /' conftest.$ac_ext >&5 8596 8597ac_cv_lib_dl_dlopen=no 8598fi 8599rm -f conftest.err conftest.$ac_objext \ 8600 conftest$ac_exeext conftest.$ac_ext 8601LIBS=$ac_check_lib_save_LIBS 8602fi 8603echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8604echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8605if test $ac_cv_lib_dl_dlopen = yes; then 8606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8607else 8608 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8609echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8610if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8611 echo $ECHO_N "(cached) $ECHO_C" >&6 8612else 8613 ac_check_lib_save_LIBS=$LIBS 8614LIBS="-lsvld $LIBS" 8615cat >conftest.$ac_ext <<_ACEOF 8616/* confdefs.h. */ 8617_ACEOF 8618cat confdefs.h >>conftest.$ac_ext 8619cat >>conftest.$ac_ext <<_ACEOF 8620/* end confdefs.h. */ 8621 8622/* Override any gcc2 internal prototype to avoid an error. */ 8623#ifdef __cplusplus 8624extern "C" 8625#endif 8626/* We use char because int might match the return type of a gcc2 8627 builtin and then its argument prototype would still apply. */ 8628char dlopen (); 8629int 8630main () 8631{ 8632dlopen (); 8633 ; 8634 return 0; 8635} 8636_ACEOF 8637rm -f conftest.$ac_objext conftest$ac_exeext 8638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8639 (eval $ac_link) 2>conftest.er1 8640 ac_status=$? 8641 grep -v '^ *+' conftest.er1 >conftest.err 8642 rm -f conftest.er1 8643 cat conftest.err >&5 8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8645 (exit $ac_status); } && 8646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8648 (eval $ac_try) 2>&5 8649 ac_status=$? 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8651 (exit $ac_status); }; } && 8652 { ac_try='test -s conftest$ac_exeext' 8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8654 (eval $ac_try) 2>&5 8655 ac_status=$? 8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8657 (exit $ac_status); }; }; then 8658 ac_cv_lib_svld_dlopen=yes 8659else 8660 echo "$as_me: failed program was:" >&5 8661sed 's/^/| /' conftest.$ac_ext >&5 8662 8663ac_cv_lib_svld_dlopen=no 8664fi 8665rm -f conftest.err conftest.$ac_objext \ 8666 conftest$ac_exeext conftest.$ac_ext 8667LIBS=$ac_check_lib_save_LIBS 8668fi 8669echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8670echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8671if test $ac_cv_lib_svld_dlopen = yes; then 8672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8673else 8674 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8675echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8676if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8677 echo $ECHO_N "(cached) $ECHO_C" >&6 8678else 8679 ac_check_lib_save_LIBS=$LIBS 8680LIBS="-ldld $LIBS" 8681cat >conftest.$ac_ext <<_ACEOF 8682/* confdefs.h. */ 8683_ACEOF 8684cat confdefs.h >>conftest.$ac_ext 8685cat >>conftest.$ac_ext <<_ACEOF 8686/* end confdefs.h. */ 8687 8688/* Override any gcc2 internal prototype to avoid an error. */ 8689#ifdef __cplusplus 8690extern "C" 8691#endif 8692/* We use char because int might match the return type of a gcc2 8693 builtin and then its argument prototype would still apply. */ 8694char dld_link (); 8695int 8696main () 8697{ 8698dld_link (); 8699 ; 8700 return 0; 8701} 8702_ACEOF 8703rm -f conftest.$ac_objext conftest$ac_exeext 8704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8705 (eval $ac_link) 2>conftest.er1 8706 ac_status=$? 8707 grep -v '^ *+' conftest.er1 >conftest.err 8708 rm -f conftest.er1 8709 cat conftest.err >&5 8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8711 (exit $ac_status); } && 8712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8714 (eval $ac_try) 2>&5 8715 ac_status=$? 8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8717 (exit $ac_status); }; } && 8718 { ac_try='test -s conftest$ac_exeext' 8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8720 (eval $ac_try) 2>&5 8721 ac_status=$? 8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8723 (exit $ac_status); }; }; then 8724 ac_cv_lib_dld_dld_link=yes 8725else 8726 echo "$as_me: failed program was:" >&5 8727sed 's/^/| /' conftest.$ac_ext >&5 8728 8729ac_cv_lib_dld_dld_link=no 8730fi 8731rm -f conftest.err conftest.$ac_objext \ 8732 conftest$ac_exeext conftest.$ac_ext 8733LIBS=$ac_check_lib_save_LIBS 8734fi 8735echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8736echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8737if test $ac_cv_lib_dld_dld_link = yes; then 8738 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8739fi 8740 8741 8742fi 8743 8744 8745fi 8746 8747 8748fi 8749 8750 8751fi 8752 8753 8754fi 8755 8756 ;; 8757 esac 8758 8759 if test "x$lt_cv_dlopen" != xno; then 8760 enable_dlopen=yes 8761 else 8762 enable_dlopen=no 8763 fi 8764 8765 case $lt_cv_dlopen in 8766 dlopen) 8767 save_CPPFLAGS="$CPPFLAGS" 8768 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8769 8770 save_LDFLAGS="$LDFLAGS" 8771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8772 8773 save_LIBS="$LIBS" 8774 LIBS="$lt_cv_dlopen_libs $LIBS" 8775 8776 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8777echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8778if test "${lt_cv_dlopen_self+set}" = set; then 8779 echo $ECHO_N "(cached) $ECHO_C" >&6 8780else 8781 if test "$cross_compiling" = yes; then : 8782 lt_cv_dlopen_self=cross 8783else 8784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8785 lt_status=$lt_dlunknown 8786 cat > conftest.$ac_ext <<EOF 8787#line 8787 "configure" 8788#include "confdefs.h" 8789 8790#if HAVE_DLFCN_H 8791#include <dlfcn.h> 8792#endif 8793 8794#include <stdio.h> 8795 8796#ifdef RTLD_GLOBAL 8797# define LT_DLGLOBAL RTLD_GLOBAL 8798#else 8799# ifdef DL_GLOBAL 8800# define LT_DLGLOBAL DL_GLOBAL 8801# else 8802# define LT_DLGLOBAL 0 8803# endif 8804#endif 8805 8806/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8807 find out it does not work in some platform. */ 8808#ifndef LT_DLLAZY_OR_NOW 8809# ifdef RTLD_LAZY 8810# define LT_DLLAZY_OR_NOW RTLD_LAZY 8811# else 8812# ifdef DL_LAZY 8813# define LT_DLLAZY_OR_NOW DL_LAZY 8814# else 8815# ifdef RTLD_NOW 8816# define LT_DLLAZY_OR_NOW RTLD_NOW 8817# else 8818# ifdef DL_NOW 8819# define LT_DLLAZY_OR_NOW DL_NOW 8820# else 8821# define LT_DLLAZY_OR_NOW 0 8822# endif 8823# endif 8824# endif 8825# endif 8826#endif 8827 8828#ifdef __cplusplus 8829extern "C" void exit (int); 8830#endif 8831 8832void fnord() { int i=42;} 8833int main () 8834{ 8835 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8836 int status = $lt_dlunknown; 8837 8838 if (self) 8839 { 8840 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8841 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8842 /* dlclose (self); */ 8843 } 8844 else 8845 puts (dlerror ()); 8846 8847 exit (status); 8848} 8849EOF 8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8851 (eval $ac_link) 2>&5 8852 ac_status=$? 8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8854 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8855 (./conftest; exit; ) >&5 2>/dev/null 8856 lt_status=$? 8857 case x$lt_status in 8858 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8859 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8860 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 8861 esac 8862 else : 8863 # compilation failed 8864 lt_cv_dlopen_self=no 8865 fi 8866fi 8867rm -fr conftest* 8868 8869 8870fi 8871echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8872echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8873 8874 if test "x$lt_cv_dlopen_self" = xyes; then 8875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 8876 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8877echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8878if test "${lt_cv_dlopen_self_static+set}" = set; then 8879 echo $ECHO_N "(cached) $ECHO_C" >&6 8880else 8881 if test "$cross_compiling" = yes; then : 8882 lt_cv_dlopen_self_static=cross 8883else 8884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8885 lt_status=$lt_dlunknown 8886 cat > conftest.$ac_ext <<EOF 8887#line 8887 "configure" 8888#include "confdefs.h" 8889 8890#if HAVE_DLFCN_H 8891#include <dlfcn.h> 8892#endif 8893 8894#include <stdio.h> 8895 8896#ifdef RTLD_GLOBAL 8897# define LT_DLGLOBAL RTLD_GLOBAL 8898#else 8899# ifdef DL_GLOBAL 8900# define LT_DLGLOBAL DL_GLOBAL 8901# else 8902# define LT_DLGLOBAL 0 8903# endif 8904#endif 8905 8906/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8907 find out it does not work in some platform. */ 8908#ifndef LT_DLLAZY_OR_NOW 8909# ifdef RTLD_LAZY 8910# define LT_DLLAZY_OR_NOW RTLD_LAZY 8911# else 8912# ifdef DL_LAZY 8913# define LT_DLLAZY_OR_NOW DL_LAZY 8914# else 8915# ifdef RTLD_NOW 8916# define LT_DLLAZY_OR_NOW RTLD_NOW 8917# else 8918# ifdef DL_NOW 8919# define LT_DLLAZY_OR_NOW DL_NOW 8920# else 8921# define LT_DLLAZY_OR_NOW 0 8922# endif 8923# endif 8924# endif 8925# endif 8926#endif 8927 8928#ifdef __cplusplus 8929extern "C" void exit (int); 8930#endif 8931 8932void fnord() { int i=42;} 8933int main () 8934{ 8935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8936 int status = $lt_dlunknown; 8937 8938 if (self) 8939 { 8940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8941 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8942 /* dlclose (self); */ 8943 } 8944 else 8945 puts (dlerror ()); 8946 8947 exit (status); 8948} 8949EOF 8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8951 (eval $ac_link) 2>&5 8952 ac_status=$? 8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8955 (./conftest; exit; ) >&5 2>/dev/null 8956 lt_status=$? 8957 case x$lt_status in 8958 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8959 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8960 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 8961 esac 8962 else : 8963 # compilation failed 8964 lt_cv_dlopen_self_static=no 8965 fi 8966fi 8967rm -fr conftest* 8968 8969 8970fi 8971echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8972echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8973 fi 8974 8975 CPPFLAGS="$save_CPPFLAGS" 8976 LDFLAGS="$save_LDFLAGS" 8977 LIBS="$save_LIBS" 8978 ;; 8979 esac 8980 8981 case $lt_cv_dlopen_self in 8982 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8983 *) enable_dlopen_self=unknown ;; 8984 esac 8985 8986 case $lt_cv_dlopen_self_static in 8987 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8988 *) enable_dlopen_self_static=unknown ;; 8989 esac 8990fi 8991 8992 8993# Report which library types will actually be built 8994echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8995echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8996echo "$as_me:$LINENO: result: $can_build_shared" >&5 8997echo "${ECHO_T}$can_build_shared" >&6 8998 8999echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9000echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9001test "$can_build_shared" = "no" && enable_shared=no 9002 9003# On AIX, shared libraries and static libraries use the same namespace, and 9004# are all built from PIC. 9005case $host_os in 9006aix3*) 9007 test "$enable_shared" = yes && enable_static=no 9008 if test -n "$RANLIB"; then 9009 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9010 postinstall_cmds='$RANLIB $lib' 9011 fi 9012 ;; 9013 9014aix4* | aix5*) 9015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9016 test "$enable_shared" = yes && enable_static=no 9017 fi 9018 ;; 9019esac 9020echo "$as_me:$LINENO: result: $enable_shared" >&5 9021echo "${ECHO_T}$enable_shared" >&6 9022 9023echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9024echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9025# Make sure either enable_shared or enable_static is yes. 9026test "$enable_shared" = yes || enable_static=yes 9027echo "$as_me:$LINENO: result: $enable_static" >&5 9028echo "${ECHO_T}$enable_static" >&6 9029 9030# The else clause should only fire when bootstrapping the 9031# libtool distribution, otherwise you forgot to ship ltmain.sh 9032# with your package, and you will get complaints that there are 9033# no rules to generate ltmain.sh. 9034if test -f "$ltmain"; then 9035 # See if we are running on zsh, and set the options which allow our commands through 9036 # without removal of \ escapes. 9037 if test -n "${ZSH_VERSION+set}" ; then 9038 setopt NO_GLOB_SUBST 9039 fi 9040 # Now quote all the things that may contain metacharacters while being 9041 # careful not to overquote the AC_SUBSTed values. We take copies of the 9042 # variables and quote the copies for generation of the libtool script. 9043 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9044 SED SHELL STRIP \ 9045 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9046 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9047 deplibs_check_method reload_flag reload_cmds need_locks \ 9048 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9049 lt_cv_sys_global_symbol_to_c_name_address \ 9050 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9051 old_postinstall_cmds old_postuninstall_cmds \ 9052 compiler \ 9053 CC \ 9054 LD \ 9055 lt_prog_compiler_wl \ 9056 lt_prog_compiler_pic \ 9057 lt_prog_compiler_static \ 9058 lt_prog_compiler_no_builtin_flag \ 9059 export_dynamic_flag_spec \ 9060 thread_safe_flag_spec \ 9061 whole_archive_flag_spec \ 9062 enable_shared_with_static_runtimes \ 9063 old_archive_cmds \ 9064 old_archive_from_new_cmds \ 9065 predep_objects \ 9066 postdep_objects \ 9067 predeps \ 9068 postdeps \ 9069 compiler_lib_search_path \ 9070 archive_cmds \ 9071 archive_expsym_cmds \ 9072 postinstall_cmds \ 9073 postuninstall_cmds \ 9074 old_archive_from_expsyms_cmds \ 9075 allow_undefined_flag \ 9076 no_undefined_flag \ 9077 export_symbols_cmds \ 9078 hardcode_libdir_flag_spec \ 9079 hardcode_libdir_flag_spec_ld \ 9080 hardcode_libdir_separator \ 9081 hardcode_automatic \ 9082 module_cmds \ 9083 module_expsym_cmds \ 9084 lt_cv_prog_compiler_c_o \ 9085 exclude_expsyms \ 9086 include_expsyms; do 9087 9088 case $var in 9089 old_archive_cmds | \ 9090 old_archive_from_new_cmds | \ 9091 archive_cmds | \ 9092 archive_expsym_cmds | \ 9093 module_cmds | \ 9094 module_expsym_cmds | \ 9095 old_archive_from_expsyms_cmds | \ 9096 export_symbols_cmds | \ 9097 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9098 postinstall_cmds | postuninstall_cmds | \ 9099 old_postinstall_cmds | old_postuninstall_cmds | \ 9100 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9101 # Double-quote double-evaled strings. 9102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9103 ;; 9104 *) 9105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9106 ;; 9107 esac 9108 done 9109 9110 case $lt_echo in 9111 *'\$0 --fallback-echo"') 9112 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9113 ;; 9114 esac 9115 9116cfgfile="${ofile}T" 9117 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9118 $rm -f "$cfgfile" 9119 { echo "$as_me:$LINENO: creating $ofile" >&5 9120echo "$as_me: creating $ofile" >&6;} 9121 9122 cat <<__EOF__ >> "$cfgfile" 9123#! $SHELL 9124 9125# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9126# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9127# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9128# 9129# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9130# Free Software Foundation, Inc. 9131# 9132# This file is part of GNU Libtool: 9133# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9134# 9135# This program is free software; you can redistribute it and/or modify 9136# it under the terms of the GNU General Public License as published by 9137# the Free Software Foundation; either version 2 of the License, or 9138# (at your option) any later version. 9139# 9140# This program is distributed in the hope that it will be useful, but 9141# WITHOUT ANY WARRANTY; without even the implied warranty of 9142# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9143# General Public License for more details. 9144# 9145# You should have received a copy of the GNU General Public License 9146# along with this program; if not, write to the Free Software 9147# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9148# 9149# As a special exception to the GNU General Public License, if you 9150# distribute this file as part of a program that contains a 9151# configuration script generated by Autoconf, you may include it under 9152# the same distribution terms that you use for the rest of that program. 9153 9154# A sed program that does not truncate output. 9155SED=$lt_SED 9156 9157# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9158Xsed="$SED -e 1s/^X//" 9159 9160# The HP-UX ksh and POSIX shell print the target directory to stdout 9161# if CDPATH is set. 9162(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9163 9164# The names of the tagged configurations supported by this script. 9165available_tags= 9166 9167# ### BEGIN LIBTOOL CONFIG 9168 9169# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9170 9171# Shell to use when invoking shell scripts. 9172SHELL=$lt_SHELL 9173 9174# Whether or not to build shared libraries. 9175build_libtool_libs=$enable_shared 9176 9177# Whether or not to build static libraries. 9178build_old_libs=$enable_static 9179 9180# Whether or not to add -lc for building shared libraries. 9181build_libtool_need_lc=$archive_cmds_need_lc 9182 9183# Whether or not to disallow shared libs when runtime libs are static 9184allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9185 9186# Whether or not to optimize for fast installation. 9187fast_install=$enable_fast_install 9188 9189# The host system. 9190host_alias=$host_alias 9191host=$host 9192host_os=$host_os 9193 9194# The build system. 9195build_alias=$build_alias 9196build=$build 9197build_os=$build_os 9198 9199# An echo program that does not interpret backslashes. 9200echo=$lt_echo 9201 9202# The archiver. 9203AR=$lt_AR 9204AR_FLAGS=$lt_AR_FLAGS 9205 9206# A C compiler. 9207LTCC=$lt_LTCC 9208 9209# LTCC compiler flags. 9210LTCFLAGS=$lt_LTCFLAGS 9211 9212# A language-specific compiler. 9213CC=$lt_compiler 9214 9215# Is the compiler the GNU C compiler? 9216with_gcc=$GCC 9217 9218# An ERE matcher. 9219EGREP=$lt_EGREP 9220 9221# The linker used to build libraries. 9222LD=$lt_LD 9223 9224# Whether we need hard or soft links. 9225LN_S=$lt_LN_S 9226 9227# A BSD-compatible nm program. 9228NM=$lt_NM 9229 9230# A symbol stripping program 9231STRIP=$lt_STRIP 9232 9233# Used to examine libraries when file_magic_cmd begins "file" 9234MAGIC_CMD=$MAGIC_CMD 9235 9236# Used on cygwin: DLL creation program. 9237DLLTOOL="$DLLTOOL" 9238 9239# Used on cygwin: object dumper. 9240OBJDUMP="$OBJDUMP" 9241 9242# Used on cygwin: assembler. 9243AS="$AS" 9244 9245# The name of the directory that contains temporary libtool files. 9246objdir=$objdir 9247 9248# How to create reloadable object files. 9249reload_flag=$lt_reload_flag 9250reload_cmds=$lt_reload_cmds 9251 9252# How to pass a linker flag through the compiler. 9253wl=$lt_lt_prog_compiler_wl 9254 9255# Object file suffix (normally "o"). 9256objext="$ac_objext" 9257 9258# Old archive suffix (normally "a"). 9259libext="$libext" 9260 9261# Shared library suffix (normally ".so"). 9262shrext_cmds='$shrext_cmds' 9263 9264# Executable file suffix (normally ""). 9265exeext="$exeext" 9266 9267# Additional compiler flags for building library objects. 9268pic_flag=$lt_lt_prog_compiler_pic 9269pic_mode=$pic_mode 9270 9271# What is the maximum length of a command? 9272max_cmd_len=$lt_cv_sys_max_cmd_len 9273 9274# Does compiler simultaneously support -c and -o options? 9275compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9276 9277# Must we lock files when doing compilation? 9278need_locks=$lt_need_locks 9279 9280# Do we need the lib prefix for modules? 9281need_lib_prefix=$need_lib_prefix 9282 9283# Do we need a version for libraries? 9284need_version=$need_version 9285 9286# Whether dlopen is supported. 9287dlopen_support=$enable_dlopen 9288 9289# Whether dlopen of programs is supported. 9290dlopen_self=$enable_dlopen_self 9291 9292# Whether dlopen of statically linked programs is supported. 9293dlopen_self_static=$enable_dlopen_self_static 9294 9295# Compiler flag to prevent dynamic linking. 9296link_static_flag=$lt_lt_prog_compiler_static 9297 9298# Compiler flag to turn off builtin functions. 9299no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9300 9301# Compiler flag to allow reflexive dlopens. 9302export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9303 9304# Compiler flag to generate shared objects directly from archives. 9305whole_archive_flag_spec=$lt_whole_archive_flag_spec 9306 9307# Compiler flag to generate thread-safe objects. 9308thread_safe_flag_spec=$lt_thread_safe_flag_spec 9309 9310# Library versioning type. 9311version_type=$version_type 9312 9313# Format of library name prefix. 9314libname_spec=$lt_libname_spec 9315 9316# List of archive names. First name is the real one, the rest are links. 9317# The last name is the one that the linker finds with -lNAME. 9318library_names_spec=$lt_library_names_spec 9319 9320# The coded name of the library, if different from the real name. 9321soname_spec=$lt_soname_spec 9322 9323# Commands used to build and install an old-style archive. 9324RANLIB=$lt_RANLIB 9325old_archive_cmds=$lt_old_archive_cmds 9326old_postinstall_cmds=$lt_old_postinstall_cmds 9327old_postuninstall_cmds=$lt_old_postuninstall_cmds 9328 9329# Create an old-style archive from a shared archive. 9330old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9331 9332# Create a temporary old-style archive to link instead of a shared archive. 9333old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9334 9335# Commands used to build and install a shared archive. 9336archive_cmds=$lt_archive_cmds 9337archive_expsym_cmds=$lt_archive_expsym_cmds 9338postinstall_cmds=$lt_postinstall_cmds 9339postuninstall_cmds=$lt_postuninstall_cmds 9340 9341# Commands used to build a loadable module (assumed same as above if empty) 9342module_cmds=$lt_module_cmds 9343module_expsym_cmds=$lt_module_expsym_cmds 9344 9345# Commands to strip libraries. 9346old_striplib=$lt_old_striplib 9347striplib=$lt_striplib 9348 9349# Dependencies to place before the objects being linked to create a 9350# shared library. 9351predep_objects=$lt_predep_objects 9352 9353# Dependencies to place after the objects being linked to create a 9354# shared library. 9355postdep_objects=$lt_postdep_objects 9356 9357# Dependencies to place before the objects being linked to create a 9358# shared library. 9359predeps=$lt_predeps 9360 9361# Dependencies to place after the objects being linked to create a 9362# shared library. 9363postdeps=$lt_postdeps 9364 9365# The library search path used internally by the compiler when linking 9366# a shared library. 9367compiler_lib_search_path=$lt_compiler_lib_search_path 9368 9369# Method to check whether dependent libraries are shared objects. 9370deplibs_check_method=$lt_deplibs_check_method 9371 9372# Command to use when deplibs_check_method == file_magic. 9373file_magic_cmd=$lt_file_magic_cmd 9374 9375# Flag that allows shared libraries with undefined symbols to be built. 9376allow_undefined_flag=$lt_allow_undefined_flag 9377 9378# Flag that forces no undefined symbols. 9379no_undefined_flag=$lt_no_undefined_flag 9380 9381# Commands used to finish a libtool library installation in a directory. 9382finish_cmds=$lt_finish_cmds 9383 9384# Same as above, but a single script fragment to be evaled but not shown. 9385finish_eval=$lt_finish_eval 9386 9387# Take the output of nm and produce a listing of raw symbols and C names. 9388global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9389 9390# Transform the output of nm in a proper C declaration 9391global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9392 9393# Transform the output of nm in a C name address pair 9394global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9395 9396# This is the shared library runtime path variable. 9397runpath_var=$runpath_var 9398 9399# This is the shared library path variable. 9400shlibpath_var=$shlibpath_var 9401 9402# Is shlibpath searched before the hard-coded library search path? 9403shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9404 9405# How to hardcode a shared library path into an executable. 9406hardcode_action=$hardcode_action 9407 9408# Whether we should hardcode library paths into libraries. 9409hardcode_into_libs=$hardcode_into_libs 9410 9411# Flag to hardcode \$libdir into a binary during linking. 9412# This must work even if \$libdir does not exist. 9413hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9414 9415# If ld is used when linking, flag to hardcode \$libdir into 9416# a binary during linking. This must work even if \$libdir does 9417# not exist. 9418hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9419 9420# Whether we need a single -rpath flag with a separated argument. 9421hardcode_libdir_separator=$lt_hardcode_libdir_separator 9422 9423# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9424# resulting binary. 9425hardcode_direct=$hardcode_direct 9426 9427# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9428# resulting binary. 9429hardcode_minus_L=$hardcode_minus_L 9430 9431# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9432# the resulting binary. 9433hardcode_shlibpath_var=$hardcode_shlibpath_var 9434 9435# Set to yes if building a shared library automatically hardcodes DIR into the library 9436# and all subsequent libraries and executables linked against it. 9437hardcode_automatic=$hardcode_automatic 9438 9439# Variables whose values should be saved in libtool wrapper scripts and 9440# restored at relink time. 9441variables_saved_for_relink="$variables_saved_for_relink" 9442 9443# Whether libtool must link a program against all its dependency libraries. 9444link_all_deplibs=$link_all_deplibs 9445 9446# Compile-time system search path for libraries 9447sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9448 9449# Run-time system search path for libraries 9450sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9451 9452# Fix the shell variable \$srcfile for the compiler. 9453fix_srcfile_path="$fix_srcfile_path" 9454 9455# Set to yes if exported symbols are required. 9456always_export_symbols=$always_export_symbols 9457 9458# The commands to list exported symbols. 9459export_symbols_cmds=$lt_export_symbols_cmds 9460 9461# The commands to extract the exported symbol list from a shared archive. 9462extract_expsyms_cmds=$lt_extract_expsyms_cmds 9463 9464# Symbols that should not be listed in the preloaded symbols. 9465exclude_expsyms=$lt_exclude_expsyms 9466 9467# Symbols that must always be exported. 9468include_expsyms=$lt_include_expsyms 9469 9470# ### END LIBTOOL CONFIG 9471 9472__EOF__ 9473 9474 9475 case $host_os in 9476 aix3*) 9477 cat <<\EOF >> "$cfgfile" 9478 9479# AIX sometimes has problems with the GCC collect2 program. For some 9480# reason, if we set the COLLECT_NAMES environment variable, the problems 9481# vanish in a puff of smoke. 9482if test "X${COLLECT_NAMES+set}" != Xset; then 9483 COLLECT_NAMES= 9484 export COLLECT_NAMES 9485fi 9486EOF 9487 ;; 9488 esac 9489 9490 # We use sed instead of cat because bash on DJGPP gets confused if 9491 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9492 # text mode, it properly converts lines to CR/LF. This bash problem 9493 # is reportedly fixed, but why not run on old versions too? 9494 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9495 9496 mv -f "$cfgfile" "$ofile" || \ 9497 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9498 chmod +x "$ofile" 9499 9500else 9501 # If there is no Makefile yet, we rely on a make rule to execute 9502 # `config.status --recheck' to rerun these tests and create the 9503 # libtool script then. 9504 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9505 if test -f "$ltmain_in"; then 9506 test -f Makefile && make "$ltmain" 9507 fi 9508fi 9509 9510 9511ac_ext=c 9512ac_cpp='$CPP $CPPFLAGS' 9513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9515ac_compiler_gnu=$ac_cv_c_compiler_gnu 9516 9517CC="$lt_save_CC" 9518 9519 9520# Check whether --with-tags or --without-tags was given. 9521if test "${with_tags+set}" = set; then 9522 withval="$with_tags" 9523 tagnames="$withval" 9524fi; 9525 9526if test -f "$ltmain" && test -n "$tagnames"; then 9527 if test ! -f "${ofile}"; then 9528 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9529echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9530 fi 9531 9532 if test -z "$LTCC"; then 9533 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9534 if test -z "$LTCC"; then 9535 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9536echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9537 else 9538 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9539echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9540 fi 9541 fi 9542 if test -z "$LTCFLAGS"; then 9543 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9544 fi 9545 9546 # Extract list of available tagged configurations in $ofile. 9547 # Note that this assumes the entire list is on one line. 9548 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9549 9550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9551 for tagname in $tagnames; do 9552 IFS="$lt_save_ifs" 9553 # Check whether tagname contains only valid characters 9554 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9555 "") ;; 9556 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9557echo "$as_me: error: invalid tag name: $tagname" >&2;} 9558 { (exit 1); exit 1; }; } 9559 ;; 9560 esac 9561 9562 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9563 then 9564 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9565echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9566 { (exit 1); exit 1; }; } 9567 fi 9568 9569 # Update the list of available tags. 9570 if test -n "$tagname"; then 9571 echo appending configuration tag \"$tagname\" to $ofile 9572 9573 case $tagname in 9574 CXX) 9575 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9576 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9577 (test "X$CXX" != "Xg++"))) ; then 9578 ac_ext=cc 9579ac_cpp='$CXXCPP $CPPFLAGS' 9580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9583 9584 9585 9586 9587archive_cmds_need_lc_CXX=no 9588allow_undefined_flag_CXX= 9589always_export_symbols_CXX=no 9590archive_expsym_cmds_CXX= 9591export_dynamic_flag_spec_CXX= 9592hardcode_direct_CXX=no 9593hardcode_libdir_flag_spec_CXX= 9594hardcode_libdir_flag_spec_ld_CXX= 9595hardcode_libdir_separator_CXX= 9596hardcode_minus_L_CXX=no 9597hardcode_shlibpath_var_CXX=unsupported 9598hardcode_automatic_CXX=no 9599module_cmds_CXX= 9600module_expsym_cmds_CXX= 9601link_all_deplibs_CXX=unknown 9602old_archive_cmds_CXX=$old_archive_cmds 9603no_undefined_flag_CXX= 9604whole_archive_flag_spec_CXX= 9605enable_shared_with_static_runtimes_CXX=no 9606 9607# Dependencies to place before and after the object being linked: 9608predep_objects_CXX= 9609postdep_objects_CXX= 9610predeps_CXX= 9611postdeps_CXX= 9612compiler_lib_search_path_CXX= 9613 9614# Source file extension for C++ test sources. 9615ac_ext=cpp 9616 9617# Object file extension for compiled C++ test sources. 9618objext=o 9619objext_CXX=$objext 9620 9621# Code to be used in simple compile tests 9622lt_simple_compile_test_code="int some_variable = 0;\n" 9623 9624# Code to be used in simple link tests 9625lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9626 9627# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9628 9629# If no C compiler was specified, use CC. 9630LTCC=${LTCC-"$CC"} 9631 9632# If no C compiler flags were specified, use CFLAGS. 9633LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9634 9635# Allow CC to be a program name with arguments. 9636compiler=$CC 9637 9638 9639# save warnings/boilerplate of simple test code 9640ac_outfile=conftest.$ac_objext 9641printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9642eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9643_lt_compiler_boilerplate=`cat conftest.err` 9644$rm conftest* 9645 9646ac_outfile=conftest.$ac_objext 9647printf "$lt_simple_link_test_code" >conftest.$ac_ext 9648eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9649_lt_linker_boilerplate=`cat conftest.err` 9650$rm conftest* 9651 9652 9653# Allow CC to be a program name with arguments. 9654lt_save_CC=$CC 9655lt_save_LD=$LD 9656lt_save_GCC=$GCC 9657GCC=$GXX 9658lt_save_with_gnu_ld=$with_gnu_ld 9659lt_save_path_LD=$lt_cv_path_LD 9660if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9661 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9662else 9663 $as_unset lt_cv_prog_gnu_ld 9664fi 9665if test -n "${lt_cv_path_LDCXX+set}"; then 9666 lt_cv_path_LD=$lt_cv_path_LDCXX 9667else 9668 $as_unset lt_cv_path_LD 9669fi 9670test -z "${LDCXX+set}" || LD=$LDCXX 9671CC=${CXX-"c++"} 9672compiler=$CC 9673compiler_CXX=$CC 9674for cc_temp in $compiler""; do 9675 case $cc_temp in 9676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9678 \-*) ;; 9679 *) break;; 9680 esac 9681done 9682cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9683 9684 9685# We don't want -fno-exception wen compiling C++ code, so set the 9686# no_builtin_flag separately 9687if test "$GXX" = yes; then 9688 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9689else 9690 lt_prog_compiler_no_builtin_flag_CXX= 9691fi 9692 9693if test "$GXX" = yes; then 9694 # Set up default GNU C++ configuration 9695 9696 9697# Check whether --with-gnu-ld or --without-gnu-ld was given. 9698if test "${with_gnu_ld+set}" = set; then 9699 withval="$with_gnu_ld" 9700 test "$withval" = no || with_gnu_ld=yes 9701else 9702 with_gnu_ld=no 9703fi; 9704ac_prog=ld 9705if test "$GCC" = yes; then 9706 # Check if gcc -print-prog-name=ld gives a path. 9707 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9708echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9709 case $host in 9710 *-*-mingw*) 9711 # gcc leaves a trailing carriage return which upsets mingw 9712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9713 *) 9714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9715 esac 9716 case $ac_prog in 9717 # Accept absolute paths. 9718 [\\/]* | ?:[\\/]*) 9719 re_direlt='/[^/][^/]*/\.\./' 9720 # Canonicalize the pathname of ld 9721 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9722 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9723 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9724 done 9725 test -z "$LD" && LD="$ac_prog" 9726 ;; 9727 "") 9728 # If it fails, then pretend we aren't using GCC. 9729 ac_prog=ld 9730 ;; 9731 *) 9732 # If it is relative, then search for the first ld in PATH. 9733 with_gnu_ld=unknown 9734 ;; 9735 esac 9736elif test "$with_gnu_ld" = yes; then 9737 echo "$as_me:$LINENO: checking for GNU ld" >&5 9738echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9739else 9740 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9741echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9742fi 9743if test "${lt_cv_path_LD+set}" = set; then 9744 echo $ECHO_N "(cached) $ECHO_C" >&6 9745else 9746 if test -z "$LD"; then 9747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9748 for ac_dir in $PATH; do 9749 IFS="$lt_save_ifs" 9750 test -z "$ac_dir" && ac_dir=. 9751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9752 lt_cv_path_LD="$ac_dir/$ac_prog" 9753 # Check to see if the program is GNU ld. I'd rather use --version, 9754 # but apparently some variants of GNU ld only accept -v. 9755 # Break only if it was the GNU/non-GNU ld that we prefer. 9756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9757 *GNU* | *'with BFD'*) 9758 test "$with_gnu_ld" != no && break 9759 ;; 9760 *) 9761 test "$with_gnu_ld" != yes && break 9762 ;; 9763 esac 9764 fi 9765 done 9766 IFS="$lt_save_ifs" 9767else 9768 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9769fi 9770fi 9771 9772LD="$lt_cv_path_LD" 9773if test -n "$LD"; then 9774 echo "$as_me:$LINENO: result: $LD" >&5 9775echo "${ECHO_T}$LD" >&6 9776else 9777 echo "$as_me:$LINENO: result: no" >&5 9778echo "${ECHO_T}no" >&6 9779fi 9780test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9781echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9782 { (exit 1); exit 1; }; } 9783echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9784echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9785if test "${lt_cv_prog_gnu_ld+set}" = set; then 9786 echo $ECHO_N "(cached) $ECHO_C" >&6 9787else 9788 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9789case `$LD -v 2>&1 </dev/null` in 9790*GNU* | *'with BFD'*) 9791 lt_cv_prog_gnu_ld=yes 9792 ;; 9793*) 9794 lt_cv_prog_gnu_ld=no 9795 ;; 9796esac 9797fi 9798echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9799echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9800with_gnu_ld=$lt_cv_prog_gnu_ld 9801 9802 9803 9804 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9805 # archiving commands below assume that GNU ld is being used. 9806 if test "$with_gnu_ld" = yes; then 9807 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9808 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' 9809 9810 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9812 9813 # If archive_cmds runs LD, not CC, wlarc should be empty 9814 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9815 # investigate it a little bit more. (MM) 9816 wlarc='${wl}' 9817 9818 # ancient GNU ld didn't support --whole-archive et. al. 9819 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9820 grep 'no-whole-archive' > /dev/null; then 9821 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9822 else 9823 whole_archive_flag_spec_CXX= 9824 fi 9825 else 9826 with_gnu_ld=no 9827 wlarc= 9828 9829 # A generic and very simple default shared library creation 9830 # command for GNU C++ for the case where it uses the native 9831 # linker, instead of GNU ld. If possible, this setting should 9832 # overridden to take advantage of the native linker features on 9833 # the platform it is being used on. 9834 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9835 fi 9836 9837 # Commands to make compiler produce verbose output that lists 9838 # what "hidden" libraries, object files and flags are used when 9839 # linking a shared library. 9840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9841 9842else 9843 GXX=no 9844 with_gnu_ld=no 9845 wlarc= 9846fi 9847 9848# PORTME: fill in a description of your system's C++ link characteristics 9849echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9850echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9851ld_shlibs_CXX=yes 9852case $host_os in 9853 aix3*) 9854 # FIXME: insert proper C++ library support 9855 ld_shlibs_CXX=no 9856 ;; 9857 aix4* | aix5*) 9858 if test "$host_cpu" = ia64; then 9859 # On IA64, the linker does run time linking by default, so we don't 9860 # have to do anything special. 9861 aix_use_runtimelinking=no 9862 exp_sym_flag='-Bexport' 9863 no_entry_flag="" 9864 else 9865 aix_use_runtimelinking=no 9866 9867 # Test if we are trying to use run time linking or normal 9868 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9869 # need to do runtime linking. 9870 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9871 for ld_flag in $LDFLAGS; do 9872 case $ld_flag in 9873 *-brtl*) 9874 aix_use_runtimelinking=yes 9875 break 9876 ;; 9877 esac 9878 done 9879 ;; 9880 esac 9881 9882 exp_sym_flag='-bexport' 9883 no_entry_flag='-bnoentry' 9884 fi 9885 9886 # When large executables or shared objects are built, AIX ld can 9887 # have problems creating the table of contents. If linking a library 9888 # or program results in "error TOC overflow" add -mminimal-toc to 9889 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9890 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9891 9892 archive_cmds_CXX='' 9893 hardcode_direct_CXX=yes 9894 hardcode_libdir_separator_CXX=':' 9895 link_all_deplibs_CXX=yes 9896 9897 if test "$GXX" = yes; then 9898 case $host_os in aix4.[012]|aix4.[012].*) 9899 # We only want to do this on AIX 4.2 and lower, the check 9900 # below for broken collect2 doesn't work under 4.3+ 9901 collect2name=`${CC} -print-prog-name=collect2` 9902 if test -f "$collect2name" && \ 9903 strings "$collect2name" | grep resolve_lib_name >/dev/null 9904 then 9905 # We have reworked collect2 9906 hardcode_direct_CXX=yes 9907 else 9908 # We have old collect2 9909 hardcode_direct_CXX=unsupported 9910 # It fails to find uninstalled libraries when the uninstalled 9911 # path is not listed in the libpath. Setting hardcode_minus_L 9912 # to unsupported forces relinking 9913 hardcode_minus_L_CXX=yes 9914 hardcode_libdir_flag_spec_CXX='-L$libdir' 9915 hardcode_libdir_separator_CXX= 9916 fi 9917 ;; 9918 esac 9919 shared_flag='-shared' 9920 if test "$aix_use_runtimelinking" = yes; then 9921 shared_flag="$shared_flag "'${wl}-G' 9922 fi 9923 else 9924 # not using gcc 9925 if test "$host_cpu" = ia64; then 9926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9927 # chokes on -Wl,-G. The following line is correct: 9928 shared_flag='-G' 9929 else 9930 if test "$aix_use_runtimelinking" = yes; then 9931 shared_flag='${wl}-G' 9932 else 9933 shared_flag='${wl}-bM:SRE' 9934 fi 9935 fi 9936 fi 9937 9938 # It seems that -bexpall does not export symbols beginning with 9939 # underscore (_), so it is better to generate a list of symbols to export. 9940 always_export_symbols_CXX=yes 9941 if test "$aix_use_runtimelinking" = yes; then 9942 # Warning - without using the other runtime loading flags (-brtl), 9943 # -berok will link without error, but may produce a broken library. 9944 allow_undefined_flag_CXX='-berok' 9945 # Determine the default libpath from the value encoded in an empty executable. 9946 cat >conftest.$ac_ext <<_ACEOF 9947/* confdefs.h. */ 9948_ACEOF 9949cat confdefs.h >>conftest.$ac_ext 9950cat >>conftest.$ac_ext <<_ACEOF 9951/* end confdefs.h. */ 9952 9953int 9954main () 9955{ 9956 9957 ; 9958 return 0; 9959} 9960_ACEOF 9961rm -f conftest.$ac_objext conftest$ac_exeext 9962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9963 (eval $ac_link) 2>conftest.er1 9964 ac_status=$? 9965 grep -v '^ *+' conftest.er1 >conftest.err 9966 rm -f conftest.er1 9967 cat conftest.err >&5 9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9969 (exit $ac_status); } && 9970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9972 (eval $ac_try) 2>&5 9973 ac_status=$? 9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9975 (exit $ac_status); }; } && 9976 { ac_try='test -s conftest$ac_exeext' 9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9978 (eval $ac_try) 2>&5 9979 ac_status=$? 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9981 (exit $ac_status); }; }; then 9982 9983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9984}'` 9985# Check for a 64-bit object if we didn't find anything. 9986if 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; } 9987}'`; fi 9988else 9989 echo "$as_me: failed program was:" >&5 9990sed 's/^/| /' conftest.$ac_ext >&5 9991 9992fi 9993rm -f conftest.err conftest.$ac_objext \ 9994 conftest$ac_exeext conftest.$ac_ext 9995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9996 9997 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9998 9999 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10000 else 10001 if test "$host_cpu" = ia64; then 10002 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10003 allow_undefined_flag_CXX="-z nodefs" 10004 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10005 else 10006 # Determine the default libpath from the value encoded in an empty executable. 10007 cat >conftest.$ac_ext <<_ACEOF 10008/* confdefs.h. */ 10009_ACEOF 10010cat confdefs.h >>conftest.$ac_ext 10011cat >>conftest.$ac_ext <<_ACEOF 10012/* end confdefs.h. */ 10013 10014int 10015main () 10016{ 10017 10018 ; 10019 return 0; 10020} 10021_ACEOF 10022rm -f conftest.$ac_objext conftest$ac_exeext 10023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10024 (eval $ac_link) 2>conftest.er1 10025 ac_status=$? 10026 grep -v '^ *+' conftest.er1 >conftest.err 10027 rm -f conftest.er1 10028 cat conftest.err >&5 10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10030 (exit $ac_status); } && 10031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10033 (eval $ac_try) 2>&5 10034 ac_status=$? 10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10036 (exit $ac_status); }; } && 10037 { ac_try='test -s conftest$ac_exeext' 10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10039 (eval $ac_try) 2>&5 10040 ac_status=$? 10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10042 (exit $ac_status); }; }; then 10043 10044aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10045}'` 10046# Check for a 64-bit object if we didn't find anything. 10047if 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; } 10048}'`; fi 10049else 10050 echo "$as_me: failed program was:" >&5 10051sed 's/^/| /' conftest.$ac_ext >&5 10052 10053fi 10054rm -f conftest.err conftest.$ac_objext \ 10055 conftest$ac_exeext conftest.$ac_ext 10056if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10057 10058 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10059 # Warning - without using the other run time loading flags, 10060 # -berok will link without error, but may produce a broken library. 10061 no_undefined_flag_CXX=' ${wl}-bernotok' 10062 allow_undefined_flag_CXX=' ${wl}-berok' 10063 # Exported symbols can be pulled into shared objects from archives 10064 whole_archive_flag_spec_CXX='$convenience' 10065 archive_cmds_need_lc_CXX=yes 10066 # This is similar to how AIX traditionally builds its shared libraries. 10067 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10068 fi 10069 fi 10070 ;; 10071 10072 beos*) 10073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10074 allow_undefined_flag_CXX=unsupported 10075 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10076 # support --undefined. This deserves some investigation. FIXME 10077 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10078 else 10079 ld_shlibs_CXX=no 10080 fi 10081 ;; 10082 10083 chorus*) 10084 case $cc_basename in 10085 *) 10086 # FIXME: insert proper C++ library support 10087 ld_shlibs_CXX=no 10088 ;; 10089 esac 10090 ;; 10091 10092 cygwin* | mingw* | pw32*) 10093 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10094 # as there is no search path for DLLs. 10095 hardcode_libdir_flag_spec_CXX='-L$libdir' 10096 allow_undefined_flag_CXX=unsupported 10097 always_export_symbols_CXX=no 10098 enable_shared_with_static_runtimes_CXX=yes 10099 10100 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10102 # If the export-symbols file already is a .def file (1st line 10103 # is EXPORTS), use it as is; otherwise, prepend... 10104 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10105 cp $export_symbols $output_objdir/$soname.def; 10106 else 10107 echo EXPORTS > $output_objdir/$soname.def; 10108 cat $export_symbols >> $output_objdir/$soname.def; 10109 fi~ 10110 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10111 else 10112 ld_shlibs_CXX=no 10113 fi 10114 ;; 10115 darwin* | rhapsody*) 10116 case $host_os in 10117 rhapsody* | darwin1.[012]) 10118 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10119 ;; 10120 *) # Darwin 1.3 on 10121 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10122 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10123 else 10124 case ${MACOSX_DEPLOYMENT_TARGET} in 10125 10.[012]) 10126 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10127 ;; 10128 10.*) 10129 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10130 ;; 10131 esac 10132 fi 10133 ;; 10134 esac 10135 archive_cmds_need_lc_CXX=no 10136 hardcode_direct_CXX=no 10137 hardcode_automatic_CXX=yes 10138 hardcode_shlibpath_var_CXX=unsupported 10139 whole_archive_flag_spec_CXX='' 10140 link_all_deplibs_CXX=yes 10141 10142 if test "$GXX" = yes ; then 10143 lt_int_apple_cc_single_mod=no 10144 output_verbose_link_cmd='echo' 10145 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10146 lt_int_apple_cc_single_mod=yes 10147 fi 10148 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10149 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10150 else 10151 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' 10152 fi 10153 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10155 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10156 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}' 10157 else 10158 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}' 10159 fi 10160 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}' 10161 else 10162 case $cc_basename in 10163 xlc*) 10164 output_verbose_link_cmd='echo' 10165 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' 10166 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10167 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10168 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}' 10169 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}' 10170 ;; 10171 *) 10172 ld_shlibs_CXX=no 10173 ;; 10174 esac 10175 fi 10176 ;; 10177 10178 dgux*) 10179 case $cc_basename in 10180 ec++*) 10181 # FIXME: insert proper C++ library support 10182 ld_shlibs_CXX=no 10183 ;; 10184 ghcx*) 10185 # Green Hills C++ Compiler 10186 # FIXME: insert proper C++ library support 10187 ld_shlibs_CXX=no 10188 ;; 10189 *) 10190 # FIXME: insert proper C++ library support 10191 ld_shlibs_CXX=no 10192 ;; 10193 esac 10194 ;; 10195 freebsd[12]*) 10196 # C++ shared libraries reported to be fairly broken before switch to ELF 10197 ld_shlibs_CXX=no 10198 ;; 10199 freebsd-elf*) 10200 archive_cmds_need_lc_CXX=no 10201 ;; 10202 freebsd* | kfreebsd*-gnu | dragonfly*) 10203 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10204 # conventions 10205 ld_shlibs_CXX=yes 10206 ;; 10207 gnu*) 10208 ;; 10209 hpux9*) 10210 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10211 hardcode_libdir_separator_CXX=: 10212 export_dynamic_flag_spec_CXX='${wl}-E' 10213 hardcode_direct_CXX=yes 10214 hardcode_minus_L_CXX=yes # Not in the search PATH, 10215 # but as the default 10216 # location of the library. 10217 10218 case $cc_basename in 10219 CC*) 10220 # FIXME: insert proper C++ library support 10221 ld_shlibs_CXX=no 10222 ;; 10223 aCC*) 10224 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' 10225 # Commands to make compiler produce verbose output that lists 10226 # what "hidden" libraries, object files and flags are used when 10227 # linking a shared library. 10228 # 10229 # There doesn't appear to be a way to prevent this compiler from 10230 # explicitly linking system object files so we need to strip them 10231 # from the output so that they don't get included in the library 10232 # dependencies. 10233 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' 10234 ;; 10235 *) 10236 if test "$GXX" = yes; then 10237 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' 10238 else 10239 # FIXME: insert proper C++ library support 10240 ld_shlibs_CXX=no 10241 fi 10242 ;; 10243 esac 10244 ;; 10245 hpux10*|hpux11*) 10246 if test $with_gnu_ld = no; then 10247 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10248 hardcode_libdir_separator_CXX=: 10249 10250 case $host_cpu in 10251 hppa*64*|ia64*) 10252 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10253 ;; 10254 *) 10255 export_dynamic_flag_spec_CXX='${wl}-E' 10256 ;; 10257 esac 10258 fi 10259 case $host_cpu in 10260 hppa*64*|ia64*) 10261 hardcode_direct_CXX=no 10262 hardcode_shlibpath_var_CXX=no 10263 ;; 10264 *) 10265 hardcode_direct_CXX=yes 10266 hardcode_minus_L_CXX=yes # Not in the search PATH, 10267 # but as the default 10268 # location of the library. 10269 ;; 10270 esac 10271 10272 case $cc_basename in 10273 CC*) 10274 # FIXME: insert proper C++ library support 10275 ld_shlibs_CXX=no 10276 ;; 10277 aCC*) 10278 case $host_cpu in 10279 hppa*64*) 10280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10281 ;; 10282 ia64*) 10283 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10284 ;; 10285 *) 10286 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10287 ;; 10288 esac 10289 # Commands to make compiler produce verbose output that lists 10290 # what "hidden" libraries, object files and flags are used when 10291 # linking a shared library. 10292 # 10293 # There doesn't appear to be a way to prevent this compiler from 10294 # explicitly linking system object files so we need to strip them 10295 # from the output so that they don't get included in the library 10296 # dependencies. 10297 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' 10298 ;; 10299 *) 10300 if test "$GXX" = yes; then 10301 if test $with_gnu_ld = no; then 10302 case $host_cpu in 10303 hppa*64*) 10304 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10305 ;; 10306 ia64*) 10307 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10308 ;; 10309 *) 10310 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' 10311 ;; 10312 esac 10313 fi 10314 else 10315 # FIXME: insert proper C++ library support 10316 ld_shlibs_CXX=no 10317 fi 10318 ;; 10319 esac 10320 ;; 10321 interix3*) 10322 hardcode_direct_CXX=no 10323 hardcode_shlibpath_var_CXX=no 10324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10325 export_dynamic_flag_spec_CXX='${wl}-E' 10326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10327 # Instead, shared libraries are loaded at an image base (0x10000000 by 10328 # default) and relocated if they conflict, which is a slow very memory 10329 # consuming and fragmenting process. To avoid this, we pick a random, 10330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10331 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10332 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10333 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10334 ;; 10335 irix5* | irix6*) 10336 case $cc_basename in 10337 CC*) 10338 # SGI C++ 10339 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' 10340 10341 # Archives containing C++ object files must be created using 10342 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10343 # necessary to make sure instantiated templates are included 10344 # in the archive. 10345 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10346 ;; 10347 *) 10348 if test "$GXX" = yes; then 10349 if test "$with_gnu_ld" = no; then 10350 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' 10351 else 10352 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' 10353 fi 10354 fi 10355 link_all_deplibs_CXX=yes 10356 ;; 10357 esac 10358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10359 hardcode_libdir_separator_CXX=: 10360 ;; 10361 linux*) 10362 case $cc_basename in 10363 KCC*) 10364 # Kuck and Associates, Inc. (KAI) C++ Compiler 10365 10366 # KCC will only create a shared library if the output file 10367 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10368 # to its proper name (with version) after linking. 10369 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' 10370 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' 10371 # Commands to make compiler produce verbose output that lists 10372 # what "hidden" libraries, object files and flags are used when 10373 # linking a shared library. 10374 # 10375 # There doesn't appear to be a way to prevent this compiler from 10376 # explicitly linking system object files so we need to strip them 10377 # from the output so that they don't get included in the library 10378 # dependencies. 10379 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' 10380 10381 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10383 10384 # Archives containing C++ object files must be created using 10385 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10386 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10387 ;; 10388 icpc*) 10389 # Intel C++ 10390 with_gnu_ld=yes 10391 # version 8.0 and above of icpc choke on multiply defined symbols 10392 # if we add $predep_objects and $postdep_objects, however 7.1 and 10393 # earlier do not add the objects themselves. 10394 case `$CC -V 2>&1` in 10395 *"Version 7."*) 10396 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10397 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' 10398 ;; 10399 *) # Version 8.0 or newer 10400 tmp_idyn= 10401 case $host_cpu in 10402 ia64*) tmp_idyn=' -i_dynamic';; 10403 esac 10404 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10405 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' 10406 ;; 10407 esac 10408 archive_cmds_need_lc_CXX=no 10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10411 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10412 ;; 10413 pgCC*) 10414 # Portland Group C++ compiler 10415 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10416 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' 10417 10418 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10419 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10420 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' 10421 ;; 10422 cxx*) 10423 # Compaq C++ 10424 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10425 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' 10426 10427 runpath_var=LD_RUN_PATH 10428 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10429 hardcode_libdir_separator_CXX=: 10430 10431 # Commands to make compiler produce verbose output that lists 10432 # what "hidden" libraries, object files and flags are used when 10433 # linking a shared library. 10434 # 10435 # There doesn't appear to be a way to prevent this compiler from 10436 # explicitly linking system object files so we need to strip them 10437 # from the output so that they don't get included in the library 10438 # dependencies. 10439 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' 10440 ;; 10441 esac 10442 ;; 10443 lynxos*) 10444 # FIXME: insert proper C++ library support 10445 ld_shlibs_CXX=no 10446 ;; 10447 m88k*) 10448 # FIXME: insert proper C++ library support 10449 ld_shlibs_CXX=no 10450 ;; 10451 mvs*) 10452 case $cc_basename in 10453 cxx*) 10454 # FIXME: insert proper C++ library support 10455 ld_shlibs_CXX=no 10456 ;; 10457 *) 10458 # FIXME: insert proper C++ library support 10459 ld_shlibs_CXX=no 10460 ;; 10461 esac 10462 ;; 10463 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 10464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10465 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10466 wlarc= 10467 hardcode_libdir_flag_spec_CXX='-R$libdir' 10468 hardcode_direct_CXX=yes 10469 hardcode_shlibpath_var_CXX=no 10470 fi 10471 # Workaround some broken pre-1.5 toolchains 10472 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10473 ;; 10474 openbsd2*) 10475 # C++ shared libraries are fairly broken 10476 ld_shlibs_CXX=no 10477 ;; 10478 openbsd*) 10479 hardcode_direct_CXX=yes 10480 hardcode_shlibpath_var_CXX=no 10481 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10482 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10484 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10485 export_dynamic_flag_spec_CXX='${wl}-E' 10486 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10487 fi 10488 output_verbose_link_cmd='echo' 10489 ;; 10490 osf3*) 10491 case $cc_basename in 10492 KCC*) 10493 # Kuck and Associates, Inc. (KAI) C++ Compiler 10494 10495 # KCC will only create a shared library if the output file 10496 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10497 # to its proper name (with version) after linking. 10498 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' 10499 10500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10501 hardcode_libdir_separator_CXX=: 10502 10503 # Archives containing C++ object files must be created using 10504 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10505 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10506 10507 ;; 10508 RCC*) 10509 # Rational C++ 2.4.1 10510 # FIXME: insert proper C++ library support 10511 ld_shlibs_CXX=no 10512 ;; 10513 cxx*) 10514 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10515 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' 10516 10517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10518 hardcode_libdir_separator_CXX=: 10519 10520 # Commands to make compiler produce verbose output that lists 10521 # what "hidden" libraries, object files and flags are used when 10522 # linking a shared library. 10523 # 10524 # There doesn't appear to be a way to prevent this compiler from 10525 # explicitly linking system object files so we need to strip them 10526 # from the output so that they don't get included in the library 10527 # dependencies. 10528 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' 10529 ;; 10530 *) 10531 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10532 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10533 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' 10534 10535 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10536 hardcode_libdir_separator_CXX=: 10537 10538 # Commands to make compiler produce verbose output that lists 10539 # what "hidden" libraries, object files and flags are used when 10540 # linking a shared library. 10541 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10542 10543 else 10544 # FIXME: insert proper C++ library support 10545 ld_shlibs_CXX=no 10546 fi 10547 ;; 10548 esac 10549 ;; 10550 osf4* | osf5*) 10551 case $cc_basename in 10552 KCC*) 10553 # Kuck and Associates, Inc. (KAI) C++ Compiler 10554 10555 # KCC will only create a shared library if the output file 10556 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10557 # to its proper name (with version) after linking. 10558 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' 10559 10560 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10561 hardcode_libdir_separator_CXX=: 10562 10563 # Archives containing C++ object files must be created using 10564 # the KAI C++ compiler. 10565 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10566 ;; 10567 RCC*) 10568 # Rational C++ 2.4.1 10569 # FIXME: insert proper C++ library support 10570 ld_shlibs_CXX=no 10571 ;; 10572 cxx*) 10573 allow_undefined_flag_CXX=' -expect_unresolved \*' 10574 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' 10575 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10576 echo "-hidden">> $lib.exp~ 10577 $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~ 10578 $rm $lib.exp' 10579 10580 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10581 hardcode_libdir_separator_CXX=: 10582 10583 # Commands to make compiler produce verbose output that lists 10584 # what "hidden" libraries, object files and flags are used when 10585 # linking a shared library. 10586 # 10587 # There doesn't appear to be a way to prevent this compiler from 10588 # explicitly linking system object files so we need to strip them 10589 # from the output so that they don't get included in the library 10590 # dependencies. 10591 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' 10592 ;; 10593 *) 10594 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10595 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10596 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' 10597 10598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10599 hardcode_libdir_separator_CXX=: 10600 10601 # Commands to make compiler produce verbose output that lists 10602 # what "hidden" libraries, object files and flags are used when 10603 # linking a shared library. 10604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10605 10606 else 10607 # FIXME: insert proper C++ library support 10608 ld_shlibs_CXX=no 10609 fi 10610 ;; 10611 esac 10612 ;; 10613 psos*) 10614 # FIXME: insert proper C++ library support 10615 ld_shlibs_CXX=no 10616 ;; 10617 sunos4*) 10618 case $cc_basename in 10619 CC*) 10620 # Sun C++ 4.x 10621 # FIXME: insert proper C++ library support 10622 ld_shlibs_CXX=no 10623 ;; 10624 lcc*) 10625 # Lucid 10626 # FIXME: insert proper C++ library support 10627 ld_shlibs_CXX=no 10628 ;; 10629 *) 10630 # FIXME: insert proper C++ library support 10631 ld_shlibs_CXX=no 10632 ;; 10633 esac 10634 ;; 10635 solaris*) 10636 case $cc_basename in 10637 CC*) 10638 # Sun C++ 4.2, 5.x and Centerline C++ 10639 archive_cmds_need_lc_CXX=yes 10640 no_undefined_flag_CXX=' -zdefs' 10641 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10642 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10643 $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' 10644 10645 hardcode_libdir_flag_spec_CXX='-R$libdir' 10646 hardcode_shlibpath_var_CXX=no 10647 case $host_os in 10648 solaris2.[0-5] | solaris2.[0-5].*) ;; 10649 *) 10650 # The C++ compiler is used as linker so we must use $wl 10651 # flag to pass the commands to the underlying system 10652 # linker. We must also pass each convience library through 10653 # to the system linker between allextract/defaultextract. 10654 # The C++ compiler will combine linker options so we 10655 # cannot just pass the convience library names through 10656 # without $wl. 10657 # Supported since Solaris 2.6 (maybe 2.5.1?) 10658 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' 10659 ;; 10660 esac 10661 link_all_deplibs_CXX=yes 10662 10663 output_verbose_link_cmd='echo' 10664 10665 # Archives containing C++ object files must be created using 10666 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10667 # necessary to make sure instantiated templates are included 10668 # in the archive. 10669 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10670 ;; 10671 gcx*) 10672 # Green Hills C++ Compiler 10673 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10674 10675 # The C++ compiler must be used to create the archive. 10676 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10677 ;; 10678 *) 10679 # GNU C++ compiler with Solaris linker 10680 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10681 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10682 if $CC --version | grep -v '^2\.7' > /dev/null; then 10683 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10684 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10685 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10686 10687 # Commands to make compiler produce verbose output that lists 10688 # what "hidden" libraries, object files and flags are used when 10689 # linking a shared library. 10690 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10691 else 10692 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10693 # platform. 10694 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10695 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10696 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10697 10698 # Commands to make compiler produce verbose output that lists 10699 # what "hidden" libraries, object files and flags are used when 10700 # linking a shared library. 10701 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10702 fi 10703 10704 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10705 fi 10706 ;; 10707 esac 10708 ;; 10709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10710 no_undefined_flag_CXX='${wl}-z,text' 10711 archive_cmds_need_lc_CXX=no 10712 hardcode_shlibpath_var_CXX=no 10713 runpath_var='LD_RUN_PATH' 10714 10715 case $cc_basename in 10716 CC*) 10717 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10718 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10719 ;; 10720 *) 10721 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10722 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10723 ;; 10724 esac 10725 ;; 10726 sysv5* | sco3.2v5* | sco5v6*) 10727 # Note: We can NOT use -z defs as we might desire, because we do not 10728 # link with -lc, and that would cause any symbols used from libc to 10729 # always be unresolved, which means just about no library would 10730 # ever link correctly. If we're not using GNU ld we use -z text 10731 # though, which does catch some bad symbols but isn't as heavy-handed 10732 # as -z defs. 10733 # For security reasons, it is highly recommended that you always 10734 # use absolute paths for naming shared libraries, and exclude the 10735 # DT_RUNPATH tag from executables and libraries. But doing so 10736 # requires that you compile everything twice, which is a pain. 10737 # So that behaviour is only enabled if SCOABSPATH is set to a 10738 # non-empty value in the environment. Most likely only useful for 10739 # creating official distributions of packages. 10740 # This is a hack until libtool officially supports absolute path 10741 # names for shared libraries. 10742 no_undefined_flag_CXX='${wl}-z,text' 10743 allow_undefined_flag_CXX='${wl}-z,nodefs' 10744 archive_cmds_need_lc_CXX=no 10745 hardcode_shlibpath_var_CXX=no 10746 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10747 hardcode_libdir_separator_CXX=':' 10748 link_all_deplibs_CXX=yes 10749 export_dynamic_flag_spec_CXX='${wl}-Bexport' 10750 runpath_var='LD_RUN_PATH' 10751 10752 case $cc_basename in 10753 CC*) 10754 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10755 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10756 ;; 10757 *) 10758 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10759 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10760 ;; 10761 esac 10762 ;; 10763 tandem*) 10764 case $cc_basename in 10765 NCC*) 10766 # NonStop-UX NCC 3.20 10767 # FIXME: insert proper C++ library support 10768 ld_shlibs_CXX=no 10769 ;; 10770 *) 10771 # FIXME: insert proper C++ library support 10772 ld_shlibs_CXX=no 10773 ;; 10774 esac 10775 ;; 10776 vxworks*) 10777 # FIXME: insert proper C++ library support 10778 ld_shlibs_CXX=no 10779 ;; 10780 *) 10781 # FIXME: insert proper C++ library support 10782 ld_shlibs_CXX=no 10783 ;; 10784esac 10785echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10786echo "${ECHO_T}$ld_shlibs_CXX" >&6 10787test "$ld_shlibs_CXX" = no && can_build_shared=no 10788 10789GCC_CXX="$GXX" 10790LD_CXX="$LD" 10791 10792 10793cat > conftest.$ac_ext <<EOF 10794class Foo 10795{ 10796public: 10797 Foo (void) { a = 0; } 10798private: 10799 int a; 10800}; 10801EOF 10802 10803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10804 (eval $ac_compile) 2>&5 10805 ac_status=$? 10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10807 (exit $ac_status); }; then 10808 # Parse the compiler output and extract the necessary 10809 # objects, libraries and library flags. 10810 10811 # Sentinel used to keep track of whether or not we are before 10812 # the conftest object file. 10813 pre_test_object_deps_done=no 10814 10815 # The `*' in the case matches for architectures that use `case' in 10816 # $output_verbose_cmd can trigger glob expansion during the loop 10817 # eval without this substitution. 10818 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 10819 10820 for p in `eval $output_verbose_link_cmd`; do 10821 case $p in 10822 10823 -L* | -R* | -l*) 10824 # Some compilers place space between "-{L,R}" and the path. 10825 # Remove the space. 10826 if test $p = "-L" \ 10827 || test $p = "-R"; then 10828 prev=$p 10829 continue 10830 else 10831 prev= 10832 fi 10833 10834 if test "$pre_test_object_deps_done" = no; then 10835 case $p in 10836 -L* | -R*) 10837 # Internal compiler library paths should come after those 10838 # provided the user. The postdeps already come after the 10839 # user supplied libs so there is no need to process them. 10840 if test -z "$compiler_lib_search_path_CXX"; then 10841 compiler_lib_search_path_CXX="${prev}${p}" 10842 else 10843 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10844 fi 10845 ;; 10846 # The "-l" case would never come before the object being 10847 # linked, so don't bother handling this case. 10848 esac 10849 else 10850 if test -z "$postdeps_CXX"; then 10851 postdeps_CXX="${prev}${p}" 10852 else 10853 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10854 fi 10855 fi 10856 ;; 10857 10858 *.$objext) 10859 # This assumes that the test object file only shows up 10860 # once in the compiler output. 10861 if test "$p" = "conftest.$objext"; then 10862 pre_test_object_deps_done=yes 10863 continue 10864 fi 10865 10866 if test "$pre_test_object_deps_done" = no; then 10867 if test -z "$predep_objects_CXX"; then 10868 predep_objects_CXX="$p" 10869 else 10870 predep_objects_CXX="$predep_objects_CXX $p" 10871 fi 10872 else 10873 if test -z "$postdep_objects_CXX"; then 10874 postdep_objects_CXX="$p" 10875 else 10876 postdep_objects_CXX="$postdep_objects_CXX $p" 10877 fi 10878 fi 10879 ;; 10880 10881 *) ;; # Ignore the rest. 10882 10883 esac 10884 done 10885 10886 # Clean up. 10887 rm -f a.out a.exe 10888else 10889 echo "libtool.m4: error: problem compiling CXX test program" 10890fi 10891 10892$rm -f confest.$objext 10893 10894# PORTME: override above test on systems where it is broken 10895case $host_os in 10896interix3*) 10897 # Interix 3.5 installs completely hosed .la files for C++, so rather than 10898 # hack all around it, let's just trust "g++" to DTRT. 10899 predep_objects_CXX= 10900 postdep_objects_CXX= 10901 postdeps_CXX= 10902 ;; 10903 10904solaris*) 10905 case $cc_basename in 10906 CC*) 10907 # Adding this requires a known-good setup of shared libraries for 10908 # Sun compiler versions before 5.6, else PIC objects from an old 10909 # archive will be linked into the output, leading to subtle bugs. 10910 postdeps_CXX='-lCstd -lCrun' 10911 ;; 10912 esac 10913 ;; 10914esac 10915 10916 10917case " $postdeps_CXX " in 10918*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10919esac 10920 10921lt_prog_compiler_wl_CXX= 10922lt_prog_compiler_pic_CXX= 10923lt_prog_compiler_static_CXX= 10924 10925echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10926echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10927 10928 # C++ specific cases for pic, static, wl, etc. 10929 if test "$GXX" = yes; then 10930 lt_prog_compiler_wl_CXX='-Wl,' 10931 lt_prog_compiler_static_CXX='-static' 10932 10933 case $host_os in 10934 aix*) 10935 # All AIX code is PIC. 10936 if test "$host_cpu" = ia64; then 10937 # AIX 5 now supports IA64 processor 10938 lt_prog_compiler_static_CXX='-Bstatic' 10939 fi 10940 ;; 10941 amigaos*) 10942 # FIXME: we need at least 68020 code to build shared libraries, but 10943 # adding the `-m68020' flag to GCC prevents building anything better, 10944 # like `-m68040'. 10945 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10946 ;; 10947 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10948 # PIC is the default for these OSes. 10949 ;; 10950 mingw* | os2* | pw32*) 10951 # This hack is so that the source file can tell whether it is being 10952 # built for inclusion in a dll (and should export symbols for example). 10953 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10954 ;; 10955 darwin* | rhapsody*) 10956 # PIC is the default on this platform 10957 # Common symbols not allowed in MH_DYLIB files 10958 lt_prog_compiler_pic_CXX='-fno-common' 10959 ;; 10960 *djgpp*) 10961 # DJGPP does not support shared libraries at all 10962 lt_prog_compiler_pic_CXX= 10963 ;; 10964 interix3*) 10965 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10966 # Instead, we relocate shared libraries at runtime. 10967 ;; 10968 sysv4*MP*) 10969 if test -d /usr/nec; then 10970 lt_prog_compiler_pic_CXX=-Kconform_pic 10971 fi 10972 ;; 10973 hpux*) 10974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10975 # not for PA HP-UX. 10976 case $host_cpu in 10977 hppa*64*|ia64*) 10978 ;; 10979 *) 10980 lt_prog_compiler_pic_CXX='-fPIC' 10981 ;; 10982 esac 10983 ;; 10984 *) 10985 lt_prog_compiler_pic_CXX='-fPIC' 10986 ;; 10987 esac 10988 else 10989 case $host_os in 10990 aix4* | aix5*) 10991 # All AIX code is PIC. 10992 if test "$host_cpu" = ia64; then 10993 # AIX 5 now supports IA64 processor 10994 lt_prog_compiler_static_CXX='-Bstatic' 10995 else 10996 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10997 fi 10998 ;; 10999 chorus*) 11000 case $cc_basename in 11001 cxch68*) 11002 # Green Hills C++ Compiler 11003 # _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" 11004 ;; 11005 esac 11006 ;; 11007 darwin*) 11008 # PIC is the default on this platform 11009 # Common symbols not allowed in MH_DYLIB files 11010 case $cc_basename in 11011 xlc*) 11012 lt_prog_compiler_pic_CXX='-qnocommon' 11013 lt_prog_compiler_wl_CXX='-Wl,' 11014 ;; 11015 esac 11016 ;; 11017 dgux*) 11018 case $cc_basename in 11019 ec++*) 11020 lt_prog_compiler_pic_CXX='-KPIC' 11021 ;; 11022 ghcx*) 11023 # Green Hills C++ Compiler 11024 lt_prog_compiler_pic_CXX='-pic' 11025 ;; 11026 *) 11027 ;; 11028 esac 11029 ;; 11030 freebsd* | kfreebsd*-gnu | dragonfly*) 11031 # FreeBSD uses GNU C++ 11032 ;; 11033 hpux9* | hpux10* | hpux11*) 11034 case $cc_basename in 11035 CC*) 11036 lt_prog_compiler_wl_CXX='-Wl,' 11037 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11038 if test "$host_cpu" != ia64; then 11039 lt_prog_compiler_pic_CXX='+Z' 11040 fi 11041 ;; 11042 aCC*) 11043 lt_prog_compiler_wl_CXX='-Wl,' 11044 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11045 case $host_cpu in 11046 hppa*64*|ia64*) 11047 # +Z the default 11048 ;; 11049 *) 11050 lt_prog_compiler_pic_CXX='+Z' 11051 ;; 11052 esac 11053 ;; 11054 *) 11055 ;; 11056 esac 11057 ;; 11058 interix*) 11059 # This is c89, which is MS Visual C++ (no shared libs) 11060 # Anyone wants to do a port? 11061 ;; 11062 irix5* | irix6* | nonstopux*) 11063 case $cc_basename in 11064 CC*) 11065 lt_prog_compiler_wl_CXX='-Wl,' 11066 lt_prog_compiler_static_CXX='-non_shared' 11067 # CC pic flag -KPIC is the default. 11068 ;; 11069 *) 11070 ;; 11071 esac 11072 ;; 11073 linux*) 11074 case $cc_basename in 11075 KCC*) 11076 # KAI C++ Compiler 11077 lt_prog_compiler_wl_CXX='--backend -Wl,' 11078 lt_prog_compiler_pic_CXX='-fPIC' 11079 ;; 11080 icpc* | ecpc*) 11081 # Intel C++ 11082 lt_prog_compiler_wl_CXX='-Wl,' 11083 lt_prog_compiler_pic_CXX='-KPIC' 11084 lt_prog_compiler_static_CXX='-static' 11085 ;; 11086 pgCC*) 11087 # Portland Group C++ compiler. 11088 lt_prog_compiler_wl_CXX='-Wl,' 11089 lt_prog_compiler_pic_CXX='-fpic' 11090 lt_prog_compiler_static_CXX='-Bstatic' 11091 ;; 11092 cxx*) 11093 # Compaq C++ 11094 # Make sure the PIC flag is empty. It appears that all Alpha 11095 # Linux and Compaq Tru64 Unix objects are PIC. 11096 lt_prog_compiler_pic_CXX= 11097 lt_prog_compiler_static_CXX='-non_shared' 11098 ;; 11099 *) 11100 ;; 11101 esac 11102 ;; 11103 lynxos*) 11104 ;; 11105 m88k*) 11106 ;; 11107 mvs*) 11108 case $cc_basename in 11109 cxx*) 11110 lt_prog_compiler_pic_CXX='-W c,exportall' 11111 ;; 11112 *) 11113 ;; 11114 esac 11115 ;; 11116 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 11117 ;; 11118 osf3* | osf4* | osf5*) 11119 case $cc_basename in 11120 KCC*) 11121 lt_prog_compiler_wl_CXX='--backend -Wl,' 11122 ;; 11123 RCC*) 11124 # Rational C++ 2.4.1 11125 lt_prog_compiler_pic_CXX='-pic' 11126 ;; 11127 cxx*) 11128 # Digital/Compaq C++ 11129 lt_prog_compiler_wl_CXX='-Wl,' 11130 # Make sure the PIC flag is empty. It appears that all Alpha 11131 # Linux and Compaq Tru64 Unix objects are PIC. 11132 lt_prog_compiler_pic_CXX= 11133 lt_prog_compiler_static_CXX='-non_shared' 11134 ;; 11135 *) 11136 ;; 11137 esac 11138 ;; 11139 psos*) 11140 ;; 11141 solaris*) 11142 case $cc_basename in 11143 CC*) 11144 # Sun C++ 4.2, 5.x and Centerline C++ 11145 lt_prog_compiler_pic_CXX='-KPIC' 11146 lt_prog_compiler_static_CXX='-Bstatic' 11147 lt_prog_compiler_wl_CXX='-Qoption ld ' 11148 ;; 11149 gcx*) 11150 # Green Hills C++ Compiler 11151 lt_prog_compiler_pic_CXX='-PIC' 11152 ;; 11153 *) 11154 ;; 11155 esac 11156 ;; 11157 sunos4*) 11158 case $cc_basename in 11159 CC*) 11160 # Sun C++ 4.x 11161 lt_prog_compiler_pic_CXX='-pic' 11162 lt_prog_compiler_static_CXX='-Bstatic' 11163 ;; 11164 lcc*) 11165 # Lucid 11166 lt_prog_compiler_pic_CXX='-pic' 11167 ;; 11168 *) 11169 ;; 11170 esac 11171 ;; 11172 tandem*) 11173 case $cc_basename in 11174 NCC*) 11175 # NonStop-UX NCC 3.20 11176 lt_prog_compiler_pic_CXX='-KPIC' 11177 ;; 11178 *) 11179 ;; 11180 esac 11181 ;; 11182 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11183 case $cc_basename in 11184 CC*) 11185 lt_prog_compiler_wl_CXX='-Wl,' 11186 lt_prog_compiler_pic_CXX='-KPIC' 11187 lt_prog_compiler_static_CXX='-Bstatic' 11188 ;; 11189 esac 11190 ;; 11191 vxworks*) 11192 ;; 11193 *) 11194 lt_prog_compiler_can_build_shared_CXX=no 11195 ;; 11196 esac 11197 fi 11198 11199echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11200echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11201 11202# 11203# Check to make sure the PIC flag actually works. 11204# 11205if test -n "$lt_prog_compiler_pic_CXX"; then 11206 11207echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11208echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11209if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11210 echo $ECHO_N "(cached) $ECHO_C" >&6 11211else 11212 lt_prog_compiler_pic_works_CXX=no 11213 ac_outfile=conftest.$ac_objext 11214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11215 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11216 # Insert the option either (1) after the last *FLAGS variable, or 11217 # (2) before a word containing "conftest.", or (3) at the end. 11218 # Note that $ac_compile itself does not contain backslashes and begins 11219 # with a dollar sign (not a hyphen), so the echo should work correctly. 11220 # The option is referenced via a variable to avoid confusing sed. 11221 lt_compile=`echo "$ac_compile" | $SED \ 11222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11224 -e 's:$: $lt_compiler_flag:'` 11225 (eval echo "\"\$as_me:11225: $lt_compile\"" >&5) 11226 (eval "$lt_compile" 2>conftest.err) 11227 ac_status=$? 11228 cat conftest.err >&5 11229 echo "$as_me:11229: \$? = $ac_status" >&5 11230 if (exit $ac_status) && test -s "$ac_outfile"; then 11231 # The compiler can only warn and ignore the option if not recognized 11232 # So say no if there are warnings other than the usual output. 11233 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11235 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11236 lt_prog_compiler_pic_works_CXX=yes 11237 fi 11238 fi 11239 $rm conftest* 11240 11241fi 11242echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11243echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11244 11245if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11246 case $lt_prog_compiler_pic_CXX in 11247 "" | " "*) ;; 11248 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11249 esac 11250else 11251 lt_prog_compiler_pic_CXX= 11252 lt_prog_compiler_can_build_shared_CXX=no 11253fi 11254 11255fi 11256case $host_os in 11257 # For platforms which do not support PIC, -DPIC is meaningless: 11258 *djgpp*) 11259 lt_prog_compiler_pic_CXX= 11260 ;; 11261 *) 11262 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11263 ;; 11264esac 11265 11266# 11267# Check to make sure the static flag actually works. 11268# 11269wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11270echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11271echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11272if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11273 echo $ECHO_N "(cached) $ECHO_C" >&6 11274else 11275 lt_prog_compiler_static_works_CXX=no 11276 save_LDFLAGS="$LDFLAGS" 11277 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11278 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11279 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11280 # The linker can only warn and ignore the option if not recognized 11281 # So say no if there are warnings 11282 if test -s conftest.err; then 11283 # Append any errors to the config.log. 11284 cat conftest.err 1>&5 11285 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11287 if diff conftest.exp conftest.er2 >/dev/null; then 11288 lt_prog_compiler_static_works_CXX=yes 11289 fi 11290 else 11291 lt_prog_compiler_static_works_CXX=yes 11292 fi 11293 fi 11294 $rm conftest* 11295 LDFLAGS="$save_LDFLAGS" 11296 11297fi 11298echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11299echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11300 11301if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11302 : 11303else 11304 lt_prog_compiler_static_CXX= 11305fi 11306 11307 11308echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11309echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11310if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11311 echo $ECHO_N "(cached) $ECHO_C" >&6 11312else 11313 lt_cv_prog_compiler_c_o_CXX=no 11314 $rm -r conftest 2>/dev/null 11315 mkdir conftest 11316 cd conftest 11317 mkdir out 11318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11319 11320 lt_compiler_flag="-o out/conftest2.$ac_objext" 11321 # Insert the option either (1) after the last *FLAGS variable, or 11322 # (2) before a word containing "conftest.", or (3) at the end. 11323 # Note that $ac_compile itself does not contain backslashes and begins 11324 # with a dollar sign (not a hyphen), so the echo should work correctly. 11325 lt_compile=`echo "$ac_compile" | $SED \ 11326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11328 -e 's:$: $lt_compiler_flag:'` 11329 (eval echo "\"\$as_me:11329: $lt_compile\"" >&5) 11330 (eval "$lt_compile" 2>out/conftest.err) 11331 ac_status=$? 11332 cat out/conftest.err >&5 11333 echo "$as_me:11333: \$? = $ac_status" >&5 11334 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11335 then 11336 # The compiler can only warn and ignore the option if not recognized 11337 # So say no if there are warnings 11338 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11341 lt_cv_prog_compiler_c_o_CXX=yes 11342 fi 11343 fi 11344 chmod u+w . 2>&5 11345 $rm conftest* 11346 # SGI C++ compiler will create directory out/ii_files/ for 11347 # template instantiation 11348 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11349 $rm out/* && rmdir out 11350 cd .. 11351 rmdir conftest 11352 $rm conftest* 11353 11354fi 11355echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11356echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11357 11358 11359hard_links="nottested" 11360if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11361 # do not overwrite the value of need_locks provided by the user 11362 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11363echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11364 hard_links=yes 11365 $rm conftest* 11366 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11367 touch conftest.a 11368 ln conftest.a conftest.b 2>&5 || hard_links=no 11369 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11370 echo "$as_me:$LINENO: result: $hard_links" >&5 11371echo "${ECHO_T}$hard_links" >&6 11372 if test "$hard_links" = no; then 11373 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11374echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11375 need_locks=warn 11376 fi 11377else 11378 need_locks=no 11379fi 11380 11381echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11382echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11383 11384 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11385 case $host_os in 11386 aix4* | aix5*) 11387 # If we're using GNU nm, then we don't want the "-C" option. 11388 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11389 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11390 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' 11391 else 11392 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' 11393 fi 11394 ;; 11395 pw32*) 11396 export_symbols_cmds_CXX="$ltdll_cmds" 11397 ;; 11398 cygwin* | mingw*) 11399 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' 11400 ;; 11401 kfreebsd*-gnu) 11402 link_all_deplibs_CXX=no 11403 ;; 11404 linux*) 11405 link_all_deplibs_CXX=no 11406 ;; 11407 *) 11408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11409 ;; 11410 esac 11411 11412echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11413echo "${ECHO_T}$ld_shlibs_CXX" >&6 11414test "$ld_shlibs_CXX" = no && can_build_shared=no 11415 11416# 11417# Do we need to explicitly link libc? 11418# 11419case "x$archive_cmds_need_lc_CXX" in 11420x|xyes) 11421 # Assume -lc should be added 11422 archive_cmds_need_lc_CXX=yes 11423 11424 if test "$enable_shared" = yes && test "$GCC" = yes; then 11425 case $archive_cmds_CXX in 11426 *'~'*) 11427 # FIXME: we may have to deal with multi-command sequences. 11428 ;; 11429 '$CC '*) 11430 # Test whether the compiler implicitly links with -lc since on some 11431 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11432 # to ld, don't add -lc before -lgcc. 11433 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11434echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11435 $rm conftest* 11436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11437 11438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11439 (eval $ac_compile) 2>&5 11440 ac_status=$? 11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11442 (exit $ac_status); } 2>conftest.err; then 11443 soname=conftest 11444 lib=conftest 11445 libobjs=conftest.$ac_objext 11446 deplibs= 11447 wl=$lt_prog_compiler_wl_CXX 11448 pic_flag=$lt_prog_compiler_pic_CXX 11449 compiler_flags=-v 11450 linker_flags=-v 11451 verstring= 11452 output_objdir=. 11453 libname=conftest 11454 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11455 allow_undefined_flag_CXX= 11456 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11457 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11458 ac_status=$? 11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11460 (exit $ac_status); } 11461 then 11462 archive_cmds_need_lc_CXX=no 11463 else 11464 archive_cmds_need_lc_CXX=yes 11465 fi 11466 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11467 else 11468 cat conftest.err 1>&5 11469 fi 11470 $rm conftest* 11471 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11472echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11473 ;; 11474 esac 11475 fi 11476 ;; 11477esac 11478 11479echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11480echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11481library_names_spec= 11482libname_spec='lib$name' 11483soname_spec= 11484shrext_cmds=".so" 11485postinstall_cmds= 11486postuninstall_cmds= 11487finish_cmds= 11488finish_eval= 11489shlibpath_var= 11490shlibpath_overrides_runpath=unknown 11491version_type=none 11492dynamic_linker="$host_os ld.so" 11493sys_lib_dlsearch_path_spec="/lib /usr/lib" 11494if test "$GCC" = yes; then 11495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11496 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11497 # if the path contains ";" then we assume it to be the separator 11498 # otherwise default to the standard path separator (i.e. ":") - it is 11499 # assumed that no part of a normal pathname contains ";" but that should 11500 # okay in the real world where ";" in dirpaths is itself problematic. 11501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11502 else 11503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11504 fi 11505else 11506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11507fi 11508need_lib_prefix=unknown 11509hardcode_into_libs=no 11510 11511# when you set need_version to no, make sure it does not cause -set_version 11512# flags to be left without arguments 11513need_version=unknown 11514 11515case $host_os in 11516aix3*) 11517 version_type=linux 11518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11519 shlibpath_var=LIBPATH 11520 11521 # AIX 3 has no versioning support, so we append a major version to the name. 11522 soname_spec='${libname}${release}${shared_ext}$major' 11523 ;; 11524 11525aix4* | aix5*) 11526 version_type=linux 11527 need_lib_prefix=no 11528 need_version=no 11529 hardcode_into_libs=yes 11530 if test "$host_cpu" = ia64; then 11531 # AIX 5 supports IA64 11532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11533 shlibpath_var=LD_LIBRARY_PATH 11534 else 11535 # With GCC up to 2.95.x, collect2 would create an import file 11536 # for dependence libraries. The import file would start with 11537 # the line `#! .'. This would cause the generated library to 11538 # depend on `.', always an invalid library. This was fixed in 11539 # development snapshots of GCC prior to 3.0. 11540 case $host_os in 11541 aix4 | aix4.[01] | aix4.[01].*) 11542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11543 echo ' yes ' 11544 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11545 : 11546 else 11547 can_build_shared=no 11548 fi 11549 ;; 11550 esac 11551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11552 # soname into executable. Probably we can add versioning support to 11553 # collect2, so additional links can be useful in future. 11554 if test "$aix_use_runtimelinking" = yes; then 11555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11556 # instead of lib<name>.a to let people know that these are not 11557 # typical AIX shared libraries. 11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11559 else 11560 # We preserve .a as extension for shared libraries through AIX4.2 11561 # and later when we are not doing run time linking. 11562 library_names_spec='${libname}${release}.a $libname.a' 11563 soname_spec='${libname}${release}${shared_ext}$major' 11564 fi 11565 shlibpath_var=LIBPATH 11566 fi 11567 ;; 11568 11569amigaos*) 11570 library_names_spec='$libname.ixlibrary $libname.a' 11571 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11572 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' 11573 ;; 11574 11575beos*) 11576 library_names_spec='${libname}${shared_ext}' 11577 dynamic_linker="$host_os ld.so" 11578 shlibpath_var=LIBRARY_PATH 11579 ;; 11580 11581bsdi[45]*) 11582 version_type=linux 11583 need_version=no 11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11585 soname_spec='${libname}${release}${shared_ext}$major' 11586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11587 shlibpath_var=LD_LIBRARY_PATH 11588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11590 # the default ld.so.conf also contains /usr/contrib/lib and 11591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11592 # libtool to hard-code these into programs 11593 ;; 11594 11595cygwin* | mingw* | pw32*) 11596 version_type=windows 11597 shrext_cmds=".dll" 11598 need_version=no 11599 need_lib_prefix=no 11600 11601 case $GCC,$host_os in 11602 yes,cygwin* | yes,mingw* | yes,pw32*) 11603 library_names_spec='$libname.dll.a' 11604 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11605 postinstall_cmds='base_file=`basename \${file}`~ 11606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11607 dldir=$destdir/`dirname \$dlpath`~ 11608 test -d \$dldir || mkdir -p \$dldir~ 11609 $install_prog $dir/$dlname \$dldir/$dlname~ 11610 chmod a+x \$dldir/$dlname' 11611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11612 dlpath=$dir/\$dldll~ 11613 $rm \$dlpath' 11614 shlibpath_overrides_runpath=yes 11615 11616 case $host_os in 11617 cygwin*) 11618 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11621 ;; 11622 mingw*) 11623 # MinGW DLLs use traditional 'lib' prefix 11624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11627 # It is most probably a Windows format PATH printed by 11628 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11629 # path with ; separators, and with drive letters. We can handle the 11630 # drive letters (cygwin fileutils understands them), so leave them, 11631 # especially as we might pass files found there to a mingw objdump, 11632 # which wouldn't understand a cygwinified path. Ahh. 11633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11634 else 11635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11636 fi 11637 ;; 11638 pw32*) 11639 # pw32 DLLs use 'pw' prefix rather than 'lib' 11640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11641 ;; 11642 esac 11643 ;; 11644 11645 *) 11646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11647 ;; 11648 esac 11649 dynamic_linker='Win32 ld.exe' 11650 # FIXME: first we should search . and the directory the executable is in 11651 shlibpath_var=PATH 11652 ;; 11653 11654darwin* | rhapsody*) 11655 dynamic_linker="$host_os dyld" 11656 version_type=darwin 11657 need_lib_prefix=no 11658 need_version=no 11659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11660 soname_spec='${libname}${release}${major}$shared_ext' 11661 shlibpath_overrides_runpath=yes 11662 shlibpath_var=DYLD_LIBRARY_PATH 11663 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11665 if test "$GCC" = yes; then 11666 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"` 11667 else 11668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11669 fi 11670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11671 ;; 11672 11673dgux*) 11674 version_type=linux 11675 need_lib_prefix=no 11676 need_version=no 11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11678 soname_spec='${libname}${release}${shared_ext}$major' 11679 shlibpath_var=LD_LIBRARY_PATH 11680 ;; 11681 11682freebsd1*) 11683 dynamic_linker=no 11684 ;; 11685 11686kfreebsd*-gnu) 11687 version_type=linux 11688 need_lib_prefix=no 11689 need_version=no 11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11691 soname_spec='${libname}${release}${shared_ext}$major' 11692 shlibpath_var=LD_LIBRARY_PATH 11693 shlibpath_overrides_runpath=no 11694 hardcode_into_libs=yes 11695 dynamic_linker='GNU ld.so' 11696 ;; 11697 11698freebsd* | dragonfly*) 11699 # DragonFly does not have aout. When/if they implement a new 11700 # versioning mechanism, adjust this. 11701 if test -x /usr/bin/objformat; then 11702 objformat=`/usr/bin/objformat` 11703 else 11704 case $host_os in 11705 freebsd[123]*) objformat=aout ;; 11706 *) objformat=elf ;; 11707 esac 11708 fi 11709 version_type=freebsd-$objformat 11710 case $version_type in 11711 freebsd-elf*) 11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11713 need_version=no 11714 need_lib_prefix=no 11715 ;; 11716 freebsd-*) 11717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11718 need_version=yes 11719 ;; 11720 esac 11721 shlibpath_var=LD_LIBRARY_PATH 11722 case $host_os in 11723 freebsd2*) 11724 shlibpath_overrides_runpath=yes 11725 ;; 11726 freebsd3.[01]* | freebsdelf3.[01]*) 11727 shlibpath_overrides_runpath=yes 11728 hardcode_into_libs=yes 11729 ;; 11730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11732 shlibpath_overrides_runpath=no 11733 hardcode_into_libs=yes 11734 ;; 11735 freebsd*) # from 4.6 on 11736 shlibpath_overrides_runpath=yes 11737 hardcode_into_libs=yes 11738 ;; 11739 esac 11740 ;; 11741 11742gnu*) 11743 version_type=linux 11744 need_lib_prefix=no 11745 need_version=no 11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11747 soname_spec='${libname}${release}${shared_ext}$major' 11748 shlibpath_var=LD_LIBRARY_PATH 11749 hardcode_into_libs=yes 11750 ;; 11751 11752hpux9* | hpux10* | hpux11*) 11753 # Give a soname corresponding to the major version so that dld.sl refuses to 11754 # link against other versions. 11755 version_type=sunos 11756 need_lib_prefix=no 11757 need_version=no 11758 case $host_cpu in 11759 ia64*) 11760 shrext_cmds='.so' 11761 hardcode_into_libs=yes 11762 dynamic_linker="$host_os dld.so" 11763 shlibpath_var=LD_LIBRARY_PATH 11764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11766 soname_spec='${libname}${release}${shared_ext}$major' 11767 if test "X$HPUX_IA64_MODE" = X32; then 11768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11769 else 11770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11771 fi 11772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11773 ;; 11774 hppa*64*) 11775 shrext_cmds='.sl' 11776 hardcode_into_libs=yes 11777 dynamic_linker="$host_os dld.sl" 11778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11781 soname_spec='${libname}${release}${shared_ext}$major' 11782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11784 ;; 11785 *) 11786 shrext_cmds='.sl' 11787 dynamic_linker="$host_os dld.sl" 11788 shlibpath_var=SHLIB_PATH 11789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11791 soname_spec='${libname}${release}${shared_ext}$major' 11792 ;; 11793 esac 11794 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11795 postinstall_cmds='chmod 555 $lib' 11796 ;; 11797 11798interix3*) 11799 version_type=linux 11800 need_lib_prefix=no 11801 need_version=no 11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11803 soname_spec='${libname}${release}${shared_ext}$major' 11804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11805 shlibpath_var=LD_LIBRARY_PATH 11806 shlibpath_overrides_runpath=no 11807 hardcode_into_libs=yes 11808 ;; 11809 11810irix5* | irix6* | nonstopux*) 11811 case $host_os in 11812 nonstopux*) version_type=nonstopux ;; 11813 *) 11814 if test "$lt_cv_prog_gnu_ld" = yes; then 11815 version_type=linux 11816 else 11817 version_type=irix 11818 fi ;; 11819 esac 11820 need_lib_prefix=no 11821 need_version=no 11822 soname_spec='${libname}${release}${shared_ext}$major' 11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11824 case $host_os in 11825 irix5* | nonstopux*) 11826 libsuff= shlibsuff= 11827 ;; 11828 *) 11829 case $LD in # libtool.m4 will add one of these switches to LD 11830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11831 libsuff= shlibsuff= libmagic=32-bit;; 11832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11833 libsuff=32 shlibsuff=N32 libmagic=N32;; 11834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11835 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11836 *) libsuff= shlibsuff= libmagic=never-match;; 11837 esac 11838 ;; 11839 esac 11840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11841 shlibpath_overrides_runpath=no 11842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11844 hardcode_into_libs=yes 11845 ;; 11846 11847# No shared lib support for Linux oldld, aout, or coff. 11848linux*oldld* | linux*aout* | linux*coff*) 11849 dynamic_linker=no 11850 ;; 11851 11852# This must be Linux ELF. 11853linux*) 11854 version_type=linux 11855 need_lib_prefix=no 11856 need_version=no 11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11858 soname_spec='${libname}${release}${shared_ext}$major' 11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11860 shlibpath_var=LD_LIBRARY_PATH 11861 shlibpath_overrides_runpath=no 11862 # This implies no fast_install, which is unacceptable. 11863 # Some rework will be needed to allow for fast_install 11864 # before this can be enabled. 11865 hardcode_into_libs=yes 11866 11867 # Append ld.so.conf contents to the search path 11868 if test -f /etc/ld.so.conf; then 11869 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' ' '` 11870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11871 fi 11872 11873 # We used to test for /lib/ld.so.1 and disable shared libraries on 11874 # powerpc, because MkLinux only supported shared libraries with the 11875 # GNU dynamic linker. Since this was broken with cross compilers, 11876 # most powerpc-linux boxes support dynamic linking these days and 11877 # people can always --disable-shared, the test was removed, and we 11878 # assume the GNU/Linux dynamic linker is in use. 11879 dynamic_linker='GNU/Linux ld.so' 11880 ;; 11881 11882netbsdelf*-gnu) 11883 version_type=linux 11884 need_lib_prefix=no 11885 need_version=no 11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11887 soname_spec='${libname}${release}${shared_ext}$major' 11888 shlibpath_var=LD_LIBRARY_PATH 11889 shlibpath_overrides_runpath=no 11890 hardcode_into_libs=yes 11891 dynamic_linker='NetBSD ld.elf_so' 11892 ;; 11893 11894knetbsd*-gnu) 11895 version_type=linux 11896 need_lib_prefix=no 11897 need_version=no 11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11899 soname_spec='${libname}${release}${shared_ext}$major' 11900 shlibpath_var=LD_LIBRARY_PATH 11901 shlibpath_overrides_runpath=no 11902 hardcode_into_libs=yes 11903 dynamic_linker='GNU ld.so' 11904 ;; 11905 11906netbsd*) 11907 version_type=sunos 11908 need_lib_prefix=no 11909 need_version=no 11910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11913 dynamic_linker='NetBSD (a.out) ld.so' 11914 else 11915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11916 soname_spec='${libname}${release}${shared_ext}$major' 11917 dynamic_linker='NetBSD ld.elf_so' 11918 fi 11919 shlibpath_var=LD_LIBRARY_PATH 11920 shlibpath_overrides_runpath=yes 11921 hardcode_into_libs=yes 11922 ;; 11923 11924newsos6) 11925 version_type=linux 11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11927 shlibpath_var=LD_LIBRARY_PATH 11928 shlibpath_overrides_runpath=yes 11929 ;; 11930 11931nto-qnx*) 11932 version_type=linux 11933 need_lib_prefix=no 11934 need_version=no 11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11936 soname_spec='${libname}${release}${shared_ext}$major' 11937 shlibpath_var=LD_LIBRARY_PATH 11938 shlibpath_overrides_runpath=yes 11939 ;; 11940 11941openbsd*) 11942 version_type=sunos 11943 sys_lib_dlsearch_path_spec="/usr/lib" 11944 need_lib_prefix=no 11945 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11946 case $host_os in 11947 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11948 *) need_version=no ;; 11949 esac 11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11952 shlibpath_var=LD_LIBRARY_PATH 11953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11954 case $host_os in 11955 openbsd2.[89] | openbsd2.[89].*) 11956 shlibpath_overrides_runpath=no 11957 ;; 11958 *) 11959 shlibpath_overrides_runpath=yes 11960 ;; 11961 esac 11962 else 11963 shlibpath_overrides_runpath=yes 11964 fi 11965 ;; 11966 11967os2*) 11968 libname_spec='$name' 11969 shrext_cmds=".dll" 11970 need_lib_prefix=no 11971 library_names_spec='$libname${shared_ext} $libname.a' 11972 dynamic_linker='OS/2 ld.exe' 11973 shlibpath_var=LIBPATH 11974 ;; 11975 11976osf3* | osf4* | osf5*) 11977 version_type=osf 11978 need_lib_prefix=no 11979 need_version=no 11980 soname_spec='${libname}${release}${shared_ext}$major' 11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11984 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11985 ;; 11986 11987solaris*) 11988 version_type=linux 11989 need_lib_prefix=no 11990 need_version=no 11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11992 soname_spec='${libname}${release}${shared_ext}$major' 11993 shlibpath_var=LD_LIBRARY_PATH 11994 shlibpath_overrides_runpath=yes 11995 hardcode_into_libs=yes 11996 # ldd complains unless libraries are executable 11997 postinstall_cmds='chmod +x $lib' 11998 ;; 11999 12000sunos4*) 12001 version_type=sunos 12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12004 shlibpath_var=LD_LIBRARY_PATH 12005 shlibpath_overrides_runpath=yes 12006 if test "$with_gnu_ld" = yes; then 12007 need_lib_prefix=no 12008 fi 12009 need_version=yes 12010 ;; 12011 12012sysv4 | sysv4.3*) 12013 version_type=linux 12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12015 soname_spec='${libname}${release}${shared_ext}$major' 12016 shlibpath_var=LD_LIBRARY_PATH 12017 case $host_vendor in 12018 sni) 12019 shlibpath_overrides_runpath=no 12020 need_lib_prefix=no 12021 export_dynamic_flag_spec='${wl}-Blargedynsym' 12022 runpath_var=LD_RUN_PATH 12023 ;; 12024 siemens) 12025 need_lib_prefix=no 12026 ;; 12027 motorola) 12028 need_lib_prefix=no 12029 need_version=no 12030 shlibpath_overrides_runpath=no 12031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12032 ;; 12033 esac 12034 ;; 12035 12036sysv4*MP*) 12037 if test -d /usr/nec ;then 12038 version_type=linux 12039 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12040 soname_spec='$libname${shared_ext}.$major' 12041 shlibpath_var=LD_LIBRARY_PATH 12042 fi 12043 ;; 12044 12045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12046 version_type=freebsd-elf 12047 need_lib_prefix=no 12048 need_version=no 12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12050 soname_spec='${libname}${release}${shared_ext}$major' 12051 shlibpath_var=LD_LIBRARY_PATH 12052 hardcode_into_libs=yes 12053 if test "$with_gnu_ld" = yes; then 12054 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12055 shlibpath_overrides_runpath=no 12056 else 12057 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12058 shlibpath_overrides_runpath=yes 12059 case $host_os in 12060 sco3.2v5*) 12061 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12062 ;; 12063 esac 12064 fi 12065 sys_lib_dlsearch_path_spec='/usr/lib' 12066 ;; 12067 12068uts4*) 12069 version_type=linux 12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12071 soname_spec='${libname}${release}${shared_ext}$major' 12072 shlibpath_var=LD_LIBRARY_PATH 12073 ;; 12074 12075*) 12076 dynamic_linker=no 12077 ;; 12078esac 12079echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12080echo "${ECHO_T}$dynamic_linker" >&6 12081test "$dynamic_linker" = no && can_build_shared=no 12082 12083variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12084if test "$GCC" = yes; then 12085 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12086fi 12087 12088echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12089echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12090hardcode_action_CXX= 12091if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12092 test -n "$runpath_var_CXX" || \ 12093 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12094 12095 # We can hardcode non-existant directories. 12096 if test "$hardcode_direct_CXX" != no && 12097 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12098 # have to relink, otherwise we might link with an installed library 12099 # when we should be linking with a yet-to-be-installed one 12100 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12101 test "$hardcode_minus_L_CXX" != no; then 12102 # Linking always hardcodes the temporary library directory. 12103 hardcode_action_CXX=relink 12104 else 12105 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12106 hardcode_action_CXX=immediate 12107 fi 12108else 12109 # We cannot hardcode anything, or else we can only hardcode existing 12110 # directories. 12111 hardcode_action_CXX=unsupported 12112fi 12113echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12114echo "${ECHO_T}$hardcode_action_CXX" >&6 12115 12116if test "$hardcode_action_CXX" = relink; then 12117 # Fast installation is not supported 12118 enable_fast_install=no 12119elif test "$shlibpath_overrides_runpath" = yes || 12120 test "$enable_shared" = no; then 12121 # Fast installation is not necessary 12122 enable_fast_install=needless 12123fi 12124 12125 12126# The else clause should only fire when bootstrapping the 12127# libtool distribution, otherwise you forgot to ship ltmain.sh 12128# with your package, and you will get complaints that there are 12129# no rules to generate ltmain.sh. 12130if test -f "$ltmain"; then 12131 # See if we are running on zsh, and set the options which allow our commands through 12132 # without removal of \ escapes. 12133 if test -n "${ZSH_VERSION+set}" ; then 12134 setopt NO_GLOB_SUBST 12135 fi 12136 # Now quote all the things that may contain metacharacters while being 12137 # careful not to overquote the AC_SUBSTed values. We take copies of the 12138 # variables and quote the copies for generation of the libtool script. 12139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12140 SED SHELL STRIP \ 12141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12143 deplibs_check_method reload_flag reload_cmds need_locks \ 12144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12145 lt_cv_sys_global_symbol_to_c_name_address \ 12146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12147 old_postinstall_cmds old_postuninstall_cmds \ 12148 compiler_CXX \ 12149 CC_CXX \ 12150 LD_CXX \ 12151 lt_prog_compiler_wl_CXX \ 12152 lt_prog_compiler_pic_CXX \ 12153 lt_prog_compiler_static_CXX \ 12154 lt_prog_compiler_no_builtin_flag_CXX \ 12155 export_dynamic_flag_spec_CXX \ 12156 thread_safe_flag_spec_CXX \ 12157 whole_archive_flag_spec_CXX \ 12158 enable_shared_with_static_runtimes_CXX \ 12159 old_archive_cmds_CXX \ 12160 old_archive_from_new_cmds_CXX \ 12161 predep_objects_CXX \ 12162 postdep_objects_CXX \ 12163 predeps_CXX \ 12164 postdeps_CXX \ 12165 compiler_lib_search_path_CXX \ 12166 archive_cmds_CXX \ 12167 archive_expsym_cmds_CXX \ 12168 postinstall_cmds_CXX \ 12169 postuninstall_cmds_CXX \ 12170 old_archive_from_expsyms_cmds_CXX \ 12171 allow_undefined_flag_CXX \ 12172 no_undefined_flag_CXX \ 12173 export_symbols_cmds_CXX \ 12174 hardcode_libdir_flag_spec_CXX \ 12175 hardcode_libdir_flag_spec_ld_CXX \ 12176 hardcode_libdir_separator_CXX \ 12177 hardcode_automatic_CXX \ 12178 module_cmds_CXX \ 12179 module_expsym_cmds_CXX \ 12180 lt_cv_prog_compiler_c_o_CXX \ 12181 exclude_expsyms_CXX \ 12182 include_expsyms_CXX; do 12183 12184 case $var in 12185 old_archive_cmds_CXX | \ 12186 old_archive_from_new_cmds_CXX | \ 12187 archive_cmds_CXX | \ 12188 archive_expsym_cmds_CXX | \ 12189 module_cmds_CXX | \ 12190 module_expsym_cmds_CXX | \ 12191 old_archive_from_expsyms_cmds_CXX | \ 12192 export_symbols_cmds_CXX | \ 12193 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12194 postinstall_cmds | postuninstall_cmds | \ 12195 old_postinstall_cmds | old_postuninstall_cmds | \ 12196 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12197 # Double-quote double-evaled strings. 12198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12199 ;; 12200 *) 12201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12202 ;; 12203 esac 12204 done 12205 12206 case $lt_echo in 12207 *'\$0 --fallback-echo"') 12208 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12209 ;; 12210 esac 12211 12212cfgfile="$ofile" 12213 12214 cat <<__EOF__ >> "$cfgfile" 12215# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12216 12217# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12218 12219# Shell to use when invoking shell scripts. 12220SHELL=$lt_SHELL 12221 12222# Whether or not to build shared libraries. 12223build_libtool_libs=$enable_shared 12224 12225# Whether or not to build static libraries. 12226build_old_libs=$enable_static 12227 12228# Whether or not to add -lc for building shared libraries. 12229build_libtool_need_lc=$archive_cmds_need_lc_CXX 12230 12231# Whether or not to disallow shared libs when runtime libs are static 12232allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12233 12234# Whether or not to optimize for fast installation. 12235fast_install=$enable_fast_install 12236 12237# The host system. 12238host_alias=$host_alias 12239host=$host 12240host_os=$host_os 12241 12242# The build system. 12243build_alias=$build_alias 12244build=$build 12245build_os=$build_os 12246 12247# An echo program that does not interpret backslashes. 12248echo=$lt_echo 12249 12250# The archiver. 12251AR=$lt_AR 12252AR_FLAGS=$lt_AR_FLAGS 12253 12254# A C compiler. 12255LTCC=$lt_LTCC 12256 12257# LTCC compiler flags. 12258LTCFLAGS=$lt_LTCFLAGS 12259 12260# A language-specific compiler. 12261CC=$lt_compiler_CXX 12262 12263# Is the compiler the GNU C compiler? 12264with_gcc=$GCC_CXX 12265 12266# An ERE matcher. 12267EGREP=$lt_EGREP 12268 12269# The linker used to build libraries. 12270LD=$lt_LD_CXX 12271 12272# Whether we need hard or soft links. 12273LN_S=$lt_LN_S 12274 12275# A BSD-compatible nm program. 12276NM=$lt_NM 12277 12278# A symbol stripping program 12279STRIP=$lt_STRIP 12280 12281# Used to examine libraries when file_magic_cmd begins "file" 12282MAGIC_CMD=$MAGIC_CMD 12283 12284# Used on cygwin: DLL creation program. 12285DLLTOOL="$DLLTOOL" 12286 12287# Used on cygwin: object dumper. 12288OBJDUMP="$OBJDUMP" 12289 12290# Used on cygwin: assembler. 12291AS="$AS" 12292 12293# The name of the directory that contains temporary libtool files. 12294objdir=$objdir 12295 12296# How to create reloadable object files. 12297reload_flag=$lt_reload_flag 12298reload_cmds=$lt_reload_cmds 12299 12300# How to pass a linker flag through the compiler. 12301wl=$lt_lt_prog_compiler_wl_CXX 12302 12303# Object file suffix (normally "o"). 12304objext="$ac_objext" 12305 12306# Old archive suffix (normally "a"). 12307libext="$libext" 12308 12309# Shared library suffix (normally ".so"). 12310shrext_cmds='$shrext_cmds' 12311 12312# Executable file suffix (normally ""). 12313exeext="$exeext" 12314 12315# Additional compiler flags for building library objects. 12316pic_flag=$lt_lt_prog_compiler_pic_CXX 12317pic_mode=$pic_mode 12318 12319# What is the maximum length of a command? 12320max_cmd_len=$lt_cv_sys_max_cmd_len 12321 12322# Does compiler simultaneously support -c and -o options? 12323compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12324 12325# Must we lock files when doing compilation? 12326need_locks=$lt_need_locks 12327 12328# Do we need the lib prefix for modules? 12329need_lib_prefix=$need_lib_prefix 12330 12331# Do we need a version for libraries? 12332need_version=$need_version 12333 12334# Whether dlopen is supported. 12335dlopen_support=$enable_dlopen 12336 12337# Whether dlopen of programs is supported. 12338dlopen_self=$enable_dlopen_self 12339 12340# Whether dlopen of statically linked programs is supported. 12341dlopen_self_static=$enable_dlopen_self_static 12342 12343# Compiler flag to prevent dynamic linking. 12344link_static_flag=$lt_lt_prog_compiler_static_CXX 12345 12346# Compiler flag to turn off builtin functions. 12347no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12348 12349# Compiler flag to allow reflexive dlopens. 12350export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12351 12352# Compiler flag to generate shared objects directly from archives. 12353whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12354 12355# Compiler flag to generate thread-safe objects. 12356thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12357 12358# Library versioning type. 12359version_type=$version_type 12360 12361# Format of library name prefix. 12362libname_spec=$lt_libname_spec 12363 12364# List of archive names. First name is the real one, the rest are links. 12365# The last name is the one that the linker finds with -lNAME. 12366library_names_spec=$lt_library_names_spec 12367 12368# The coded name of the library, if different from the real name. 12369soname_spec=$lt_soname_spec 12370 12371# Commands used to build and install an old-style archive. 12372RANLIB=$lt_RANLIB 12373old_archive_cmds=$lt_old_archive_cmds_CXX 12374old_postinstall_cmds=$lt_old_postinstall_cmds 12375old_postuninstall_cmds=$lt_old_postuninstall_cmds 12376 12377# Create an old-style archive from a shared archive. 12378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12379 12380# Create a temporary old-style archive to link instead of a shared archive. 12381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12382 12383# Commands used to build and install a shared archive. 12384archive_cmds=$lt_archive_cmds_CXX 12385archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12386postinstall_cmds=$lt_postinstall_cmds 12387postuninstall_cmds=$lt_postuninstall_cmds 12388 12389# Commands used to build a loadable module (assumed same as above if empty) 12390module_cmds=$lt_module_cmds_CXX 12391module_expsym_cmds=$lt_module_expsym_cmds_CXX 12392 12393# Commands to strip libraries. 12394old_striplib=$lt_old_striplib 12395striplib=$lt_striplib 12396 12397# Dependencies to place before the objects being linked to create a 12398# shared library. 12399predep_objects=$lt_predep_objects_CXX 12400 12401# Dependencies to place after the objects being linked to create a 12402# shared library. 12403postdep_objects=$lt_postdep_objects_CXX 12404 12405# Dependencies to place before the objects being linked to create a 12406# shared library. 12407predeps=$lt_predeps_CXX 12408 12409# Dependencies to place after the objects being linked to create a 12410# shared library. 12411postdeps=$lt_postdeps_CXX 12412 12413# The library search path used internally by the compiler when linking 12414# a shared library. 12415compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12416 12417# Method to check whether dependent libraries are shared objects. 12418deplibs_check_method=$lt_deplibs_check_method 12419 12420# Command to use when deplibs_check_method == file_magic. 12421file_magic_cmd=$lt_file_magic_cmd 12422 12423# Flag that allows shared libraries with undefined symbols to be built. 12424allow_undefined_flag=$lt_allow_undefined_flag_CXX 12425 12426# Flag that forces no undefined symbols. 12427no_undefined_flag=$lt_no_undefined_flag_CXX 12428 12429# Commands used to finish a libtool library installation in a directory. 12430finish_cmds=$lt_finish_cmds 12431 12432# Same as above, but a single script fragment to be evaled but not shown. 12433finish_eval=$lt_finish_eval 12434 12435# Take the output of nm and produce a listing of raw symbols and C names. 12436global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12437 12438# Transform the output of nm in a proper C declaration 12439global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12440 12441# Transform the output of nm in a C name address pair 12442global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12443 12444# This is the shared library runtime path variable. 12445runpath_var=$runpath_var 12446 12447# This is the shared library path variable. 12448shlibpath_var=$shlibpath_var 12449 12450# Is shlibpath searched before the hard-coded library search path? 12451shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12452 12453# How to hardcode a shared library path into an executable. 12454hardcode_action=$hardcode_action_CXX 12455 12456# Whether we should hardcode library paths into libraries. 12457hardcode_into_libs=$hardcode_into_libs 12458 12459# Flag to hardcode \$libdir into a binary during linking. 12460# This must work even if \$libdir does not exist. 12461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12462 12463# If ld is used when linking, flag to hardcode \$libdir into 12464# a binary during linking. This must work even if \$libdir does 12465# not exist. 12466hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12467 12468# Whether we need a single -rpath flag with a separated argument. 12469hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12470 12471# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12472# resulting binary. 12473hardcode_direct=$hardcode_direct_CXX 12474 12475# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12476# resulting binary. 12477hardcode_minus_L=$hardcode_minus_L_CXX 12478 12479# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12480# the resulting binary. 12481hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12482 12483# Set to yes if building a shared library automatically hardcodes DIR into the library 12484# and all subsequent libraries and executables linked against it. 12485hardcode_automatic=$hardcode_automatic_CXX 12486 12487# Variables whose values should be saved in libtool wrapper scripts and 12488# restored at relink time. 12489variables_saved_for_relink="$variables_saved_for_relink" 12490 12491# Whether libtool must link a program against all its dependency libraries. 12492link_all_deplibs=$link_all_deplibs_CXX 12493 12494# Compile-time system search path for libraries 12495sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12496 12497# Run-time system search path for libraries 12498sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12499 12500# Fix the shell variable \$srcfile for the compiler. 12501fix_srcfile_path="$fix_srcfile_path_CXX" 12502 12503# Set to yes if exported symbols are required. 12504always_export_symbols=$always_export_symbols_CXX 12505 12506# The commands to list exported symbols. 12507export_symbols_cmds=$lt_export_symbols_cmds_CXX 12508 12509# The commands to extract the exported symbol list from a shared archive. 12510extract_expsyms_cmds=$lt_extract_expsyms_cmds 12511 12512# Symbols that should not be listed in the preloaded symbols. 12513exclude_expsyms=$lt_exclude_expsyms_CXX 12514 12515# Symbols that must always be exported. 12516include_expsyms=$lt_include_expsyms_CXX 12517 12518# ### END LIBTOOL TAG CONFIG: $tagname 12519 12520__EOF__ 12521 12522 12523else 12524 # If there is no Makefile yet, we rely on a make rule to execute 12525 # `config.status --recheck' to rerun these tests and create the 12526 # libtool script then. 12527 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12528 if test -f "$ltmain_in"; then 12529 test -f Makefile && make "$ltmain" 12530 fi 12531fi 12532 12533 12534ac_ext=c 12535ac_cpp='$CPP $CPPFLAGS' 12536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12538ac_compiler_gnu=$ac_cv_c_compiler_gnu 12539 12540CC=$lt_save_CC 12541LDCXX=$LD 12542LD=$lt_save_LD 12543GCC=$lt_save_GCC 12544with_gnu_ldcxx=$with_gnu_ld 12545with_gnu_ld=$lt_save_with_gnu_ld 12546lt_cv_path_LDCXX=$lt_cv_path_LD 12547lt_cv_path_LD=$lt_save_path_LD 12548lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12549lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12550 12551 else 12552 tagname="" 12553 fi 12554 ;; 12555 12556 F77) 12557 if test -n "$F77" && test "X$F77" != "Xno"; then 12558 12559ac_ext=f 12560ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12561ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12562ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12563 12564 12565archive_cmds_need_lc_F77=no 12566allow_undefined_flag_F77= 12567always_export_symbols_F77=no 12568archive_expsym_cmds_F77= 12569export_dynamic_flag_spec_F77= 12570hardcode_direct_F77=no 12571hardcode_libdir_flag_spec_F77= 12572hardcode_libdir_flag_spec_ld_F77= 12573hardcode_libdir_separator_F77= 12574hardcode_minus_L_F77=no 12575hardcode_automatic_F77=no 12576module_cmds_F77= 12577module_expsym_cmds_F77= 12578link_all_deplibs_F77=unknown 12579old_archive_cmds_F77=$old_archive_cmds 12580no_undefined_flag_F77= 12581whole_archive_flag_spec_F77= 12582enable_shared_with_static_runtimes_F77=no 12583 12584# Source file extension for f77 test sources. 12585ac_ext=f 12586 12587# Object file extension for compiled f77 test sources. 12588objext=o 12589objext_F77=$objext 12590 12591# Code to be used in simple compile tests 12592lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12593 12594# Code to be used in simple link tests 12595lt_simple_link_test_code=" program t\n end\n" 12596 12597# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12598 12599# If no C compiler was specified, use CC. 12600LTCC=${LTCC-"$CC"} 12601 12602# If no C compiler flags were specified, use CFLAGS. 12603LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12604 12605# Allow CC to be a program name with arguments. 12606compiler=$CC 12607 12608 12609# save warnings/boilerplate of simple test code 12610ac_outfile=conftest.$ac_objext 12611printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12612eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12613_lt_compiler_boilerplate=`cat conftest.err` 12614$rm conftest* 12615 12616ac_outfile=conftest.$ac_objext 12617printf "$lt_simple_link_test_code" >conftest.$ac_ext 12618eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12619_lt_linker_boilerplate=`cat conftest.err` 12620$rm conftest* 12621 12622 12623# Allow CC to be a program name with arguments. 12624lt_save_CC="$CC" 12625CC=${F77-"f77"} 12626compiler=$CC 12627compiler_F77=$CC 12628for cc_temp in $compiler""; do 12629 case $cc_temp in 12630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12632 \-*) ;; 12633 *) break;; 12634 esac 12635done 12636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12637 12638 12639echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12640echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12641echo "$as_me:$LINENO: result: $can_build_shared" >&5 12642echo "${ECHO_T}$can_build_shared" >&6 12643 12644echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12645echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12646test "$can_build_shared" = "no" && enable_shared=no 12647 12648# On AIX, shared libraries and static libraries use the same namespace, and 12649# are all built from PIC. 12650case $host_os in 12651aix3*) 12652 test "$enable_shared" = yes && enable_static=no 12653 if test -n "$RANLIB"; then 12654 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12655 postinstall_cmds='$RANLIB $lib' 12656 fi 12657 ;; 12658aix4* | aix5*) 12659 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12660 test "$enable_shared" = yes && enable_static=no 12661 fi 12662 ;; 12663esac 12664echo "$as_me:$LINENO: result: $enable_shared" >&5 12665echo "${ECHO_T}$enable_shared" >&6 12666 12667echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12668echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12669# Make sure either enable_shared or enable_static is yes. 12670test "$enable_shared" = yes || enable_static=yes 12671echo "$as_me:$LINENO: result: $enable_static" >&5 12672echo "${ECHO_T}$enable_static" >&6 12673 12674GCC_F77="$G77" 12675LD_F77="$LD" 12676 12677lt_prog_compiler_wl_F77= 12678lt_prog_compiler_pic_F77= 12679lt_prog_compiler_static_F77= 12680 12681echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12682echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12683 12684 if test "$GCC" = yes; then 12685 lt_prog_compiler_wl_F77='-Wl,' 12686 lt_prog_compiler_static_F77='-static' 12687 12688 case $host_os in 12689 aix*) 12690 # All AIX code is PIC. 12691 if test "$host_cpu" = ia64; then 12692 # AIX 5 now supports IA64 processor 12693 lt_prog_compiler_static_F77='-Bstatic' 12694 fi 12695 ;; 12696 12697 amigaos*) 12698 # FIXME: we need at least 68020 code to build shared libraries, but 12699 # adding the `-m68020' flag to GCC prevents building anything better, 12700 # like `-m68040'. 12701 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12702 ;; 12703 12704 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12705 # PIC is the default for these OSes. 12706 ;; 12707 12708 mingw* | pw32* | os2*) 12709 # This hack is so that the source file can tell whether it is being 12710 # built for inclusion in a dll (and should export symbols for example). 12711 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12712 ;; 12713 12714 darwin* | rhapsody*) 12715 # PIC is the default on this platform 12716 # Common symbols not allowed in MH_DYLIB files 12717 lt_prog_compiler_pic_F77='-fno-common' 12718 ;; 12719 12720 interix3*) 12721 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12722 # Instead, we relocate shared libraries at runtime. 12723 ;; 12724 12725 msdosdjgpp*) 12726 # Just because we use GCC doesn't mean we suddenly get shared libraries 12727 # on systems that don't support them. 12728 lt_prog_compiler_can_build_shared_F77=no 12729 enable_shared=no 12730 ;; 12731 12732 sysv4*MP*) 12733 if test -d /usr/nec; then 12734 lt_prog_compiler_pic_F77=-Kconform_pic 12735 fi 12736 ;; 12737 12738 hpux*) 12739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12740 # not for PA HP-UX. 12741 case $host_cpu in 12742 hppa*64*|ia64*) 12743 # +Z the default 12744 ;; 12745 *) 12746 lt_prog_compiler_pic_F77='-fPIC' 12747 ;; 12748 esac 12749 ;; 12750 12751 *) 12752 lt_prog_compiler_pic_F77='-fPIC' 12753 ;; 12754 esac 12755 else 12756 # PORTME Check for flag to pass linker flags through the system compiler. 12757 case $host_os in 12758 aix*) 12759 lt_prog_compiler_wl_F77='-Wl,' 12760 if test "$host_cpu" = ia64; then 12761 # AIX 5 now supports IA64 processor 12762 lt_prog_compiler_static_F77='-Bstatic' 12763 else 12764 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12765 fi 12766 ;; 12767 darwin*) 12768 # PIC is the default on this platform 12769 # Common symbols not allowed in MH_DYLIB files 12770 case $cc_basename in 12771 xlc*) 12772 lt_prog_compiler_pic_F77='-qnocommon' 12773 lt_prog_compiler_wl_F77='-Wl,' 12774 ;; 12775 esac 12776 ;; 12777 12778 mingw* | pw32* | os2*) 12779 # This hack is so that the source file can tell whether it is being 12780 # built for inclusion in a dll (and should export symbols for example). 12781 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12782 ;; 12783 12784 hpux9* | hpux10* | hpux11*) 12785 lt_prog_compiler_wl_F77='-Wl,' 12786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12787 # not for PA HP-UX. 12788 case $host_cpu in 12789 hppa*64*|ia64*) 12790 # +Z the default 12791 ;; 12792 *) 12793 lt_prog_compiler_pic_F77='+Z' 12794 ;; 12795 esac 12796 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12797 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12798 ;; 12799 12800 irix5* | irix6* | nonstopux*) 12801 lt_prog_compiler_wl_F77='-Wl,' 12802 # PIC (with -KPIC) is the default. 12803 lt_prog_compiler_static_F77='-non_shared' 12804 ;; 12805 12806 newsos6) 12807 lt_prog_compiler_pic_F77='-KPIC' 12808 lt_prog_compiler_static_F77='-Bstatic' 12809 ;; 12810 12811 linux*) 12812 case $cc_basename in 12813 icc* | ecc*) 12814 lt_prog_compiler_wl_F77='-Wl,' 12815 lt_prog_compiler_pic_F77='-KPIC' 12816 lt_prog_compiler_static_F77='-static' 12817 ;; 12818 pgcc* | pgf77* | pgf90* | pgf95*) 12819 # Portland Group compilers (*not* the Pentium gcc compiler, 12820 # which looks to be a dead project) 12821 lt_prog_compiler_wl_F77='-Wl,' 12822 lt_prog_compiler_pic_F77='-fpic' 12823 lt_prog_compiler_static_F77='-Bstatic' 12824 ;; 12825 ccc*) 12826 lt_prog_compiler_wl_F77='-Wl,' 12827 # All Alpha code is PIC. 12828 lt_prog_compiler_static_F77='-non_shared' 12829 ;; 12830 esac 12831 ;; 12832 12833 osf3* | osf4* | osf5*) 12834 lt_prog_compiler_wl_F77='-Wl,' 12835 # All OSF/1 code is PIC. 12836 lt_prog_compiler_static_F77='-non_shared' 12837 ;; 12838 12839 solaris*) 12840 lt_prog_compiler_pic_F77='-KPIC' 12841 lt_prog_compiler_static_F77='-Bstatic' 12842 case $cc_basename in 12843 f77* | f90* | f95*) 12844 lt_prog_compiler_wl_F77='-Qoption ld ';; 12845 *) 12846 lt_prog_compiler_wl_F77='-Wl,';; 12847 esac 12848 ;; 12849 12850 sunos4*) 12851 lt_prog_compiler_wl_F77='-Qoption ld ' 12852 lt_prog_compiler_pic_F77='-PIC' 12853 lt_prog_compiler_static_F77='-Bstatic' 12854 ;; 12855 12856 sysv4 | sysv4.2uw2* | sysv4.3*) 12857 lt_prog_compiler_wl_F77='-Wl,' 12858 lt_prog_compiler_pic_F77='-KPIC' 12859 lt_prog_compiler_static_F77='-Bstatic' 12860 ;; 12861 12862 sysv4*MP*) 12863 if test -d /usr/nec ;then 12864 lt_prog_compiler_pic_F77='-Kconform_pic' 12865 lt_prog_compiler_static_F77='-Bstatic' 12866 fi 12867 ;; 12868 12869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12870 lt_prog_compiler_wl_F77='-Wl,' 12871 lt_prog_compiler_pic_F77='-KPIC' 12872 lt_prog_compiler_static_F77='-Bstatic' 12873 ;; 12874 12875 unicos*) 12876 lt_prog_compiler_wl_F77='-Wl,' 12877 lt_prog_compiler_can_build_shared_F77=no 12878 ;; 12879 12880 uts4*) 12881 lt_prog_compiler_pic_F77='-pic' 12882 lt_prog_compiler_static_F77='-Bstatic' 12883 ;; 12884 12885 *) 12886 lt_prog_compiler_can_build_shared_F77=no 12887 ;; 12888 esac 12889 fi 12890 12891echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12892echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12893 12894# 12895# Check to make sure the PIC flag actually works. 12896# 12897if test -n "$lt_prog_compiler_pic_F77"; then 12898 12899echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12900echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12901if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12902 echo $ECHO_N "(cached) $ECHO_C" >&6 12903else 12904 lt_prog_compiler_pic_works_F77=no 12905 ac_outfile=conftest.$ac_objext 12906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12907 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12908 # Insert the option either (1) after the last *FLAGS variable, or 12909 # (2) before a word containing "conftest.", or (3) at the end. 12910 # Note that $ac_compile itself does not contain backslashes and begins 12911 # with a dollar sign (not a hyphen), so the echo should work correctly. 12912 # The option is referenced via a variable to avoid confusing sed. 12913 lt_compile=`echo "$ac_compile" | $SED \ 12914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12916 -e 's:$: $lt_compiler_flag:'` 12917 (eval echo "\"\$as_me:12917: $lt_compile\"" >&5) 12918 (eval "$lt_compile" 2>conftest.err) 12919 ac_status=$? 12920 cat conftest.err >&5 12921 echo "$as_me:12921: \$? = $ac_status" >&5 12922 if (exit $ac_status) && test -s "$ac_outfile"; then 12923 # The compiler can only warn and ignore the option if not recognized 12924 # So say no if there are warnings other than the usual output. 12925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12928 lt_prog_compiler_pic_works_F77=yes 12929 fi 12930 fi 12931 $rm conftest* 12932 12933fi 12934echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12935echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12936 12937if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12938 case $lt_prog_compiler_pic_F77 in 12939 "" | " "*) ;; 12940 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12941 esac 12942else 12943 lt_prog_compiler_pic_F77= 12944 lt_prog_compiler_can_build_shared_F77=no 12945fi 12946 12947fi 12948case $host_os in 12949 # For platforms which do not support PIC, -DPIC is meaningless: 12950 *djgpp*) 12951 lt_prog_compiler_pic_F77= 12952 ;; 12953 *) 12954 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12955 ;; 12956esac 12957 12958# 12959# Check to make sure the static flag actually works. 12960# 12961wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 12962echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12963echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 12964if test "${lt_prog_compiler_static_works_F77+set}" = set; then 12965 echo $ECHO_N "(cached) $ECHO_C" >&6 12966else 12967 lt_prog_compiler_static_works_F77=no 12968 save_LDFLAGS="$LDFLAGS" 12969 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12970 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12971 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12972 # The linker can only warn and ignore the option if not recognized 12973 # So say no if there are warnings 12974 if test -s conftest.err; then 12975 # Append any errors to the config.log. 12976 cat conftest.err 1>&5 12977 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12978 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12979 if diff conftest.exp conftest.er2 >/dev/null; then 12980 lt_prog_compiler_static_works_F77=yes 12981 fi 12982 else 12983 lt_prog_compiler_static_works_F77=yes 12984 fi 12985 fi 12986 $rm conftest* 12987 LDFLAGS="$save_LDFLAGS" 12988 12989fi 12990echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 12991echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 12992 12993if test x"$lt_prog_compiler_static_works_F77" = xyes; then 12994 : 12995else 12996 lt_prog_compiler_static_F77= 12997fi 12998 12999 13000echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13001echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13002if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13003 echo $ECHO_N "(cached) $ECHO_C" >&6 13004else 13005 lt_cv_prog_compiler_c_o_F77=no 13006 $rm -r conftest 2>/dev/null 13007 mkdir conftest 13008 cd conftest 13009 mkdir out 13010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13011 13012 lt_compiler_flag="-o out/conftest2.$ac_objext" 13013 # Insert the option either (1) after the last *FLAGS variable, or 13014 # (2) before a word containing "conftest.", or (3) at the end. 13015 # Note that $ac_compile itself does not contain backslashes and begins 13016 # with a dollar sign (not a hyphen), so the echo should work correctly. 13017 lt_compile=`echo "$ac_compile" | $SED \ 13018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13020 -e 's:$: $lt_compiler_flag:'` 13021 (eval echo "\"\$as_me:13021: $lt_compile\"" >&5) 13022 (eval "$lt_compile" 2>out/conftest.err) 13023 ac_status=$? 13024 cat out/conftest.err >&5 13025 echo "$as_me:13025: \$? = $ac_status" >&5 13026 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13027 then 13028 # The compiler can only warn and ignore the option if not recognized 13029 # So say no if there are warnings 13030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13031 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13032 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13033 lt_cv_prog_compiler_c_o_F77=yes 13034 fi 13035 fi 13036 chmod u+w . 2>&5 13037 $rm conftest* 13038 # SGI C++ compiler will create directory out/ii_files/ for 13039 # template instantiation 13040 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13041 $rm out/* && rmdir out 13042 cd .. 13043 rmdir conftest 13044 $rm conftest* 13045 13046fi 13047echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13048echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13049 13050 13051hard_links="nottested" 13052if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13053 # do not overwrite the value of need_locks provided by the user 13054 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13055echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13056 hard_links=yes 13057 $rm conftest* 13058 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13059 touch conftest.a 13060 ln conftest.a conftest.b 2>&5 || hard_links=no 13061 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13062 echo "$as_me:$LINENO: result: $hard_links" >&5 13063echo "${ECHO_T}$hard_links" >&6 13064 if test "$hard_links" = no; then 13065 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13066echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13067 need_locks=warn 13068 fi 13069else 13070 need_locks=no 13071fi 13072 13073echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13074echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13075 13076 runpath_var= 13077 allow_undefined_flag_F77= 13078 enable_shared_with_static_runtimes_F77=no 13079 archive_cmds_F77= 13080 archive_expsym_cmds_F77= 13081 old_archive_From_new_cmds_F77= 13082 old_archive_from_expsyms_cmds_F77= 13083 export_dynamic_flag_spec_F77= 13084 whole_archive_flag_spec_F77= 13085 thread_safe_flag_spec_F77= 13086 hardcode_libdir_flag_spec_F77= 13087 hardcode_libdir_flag_spec_ld_F77= 13088 hardcode_libdir_separator_F77= 13089 hardcode_direct_F77=no 13090 hardcode_minus_L_F77=no 13091 hardcode_shlibpath_var_F77=unsupported 13092 link_all_deplibs_F77=unknown 13093 hardcode_automatic_F77=no 13094 module_cmds_F77= 13095 module_expsym_cmds_F77= 13096 always_export_symbols_F77=no 13097 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13098 # include_expsyms should be a list of space-separated symbols to be *always* 13099 # included in the symbol list 13100 include_expsyms_F77= 13101 # exclude_expsyms can be an extended regexp of symbols to exclude 13102 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13104 # as well as any symbol that contains `d'. 13105 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13107 # platforms (ab)use it in PIC code, but their linkers get confused if 13108 # the symbol is explicitly referenced. Since portable code cannot 13109 # rely on this symbol name, it's probably fine to never include it in 13110 # preloaded symbol tables. 13111 extract_expsyms_cmds= 13112 # Just being paranoid about ensuring that cc_basename is set. 13113 for cc_temp in $compiler""; do 13114 case $cc_temp in 13115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13117 \-*) ;; 13118 *) break;; 13119 esac 13120done 13121cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13122 13123 case $host_os in 13124 cygwin* | mingw* | pw32*) 13125 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13126 # When not using gcc, we currently assume that we are using 13127 # Microsoft Visual C++. 13128 if test "$GCC" != yes; then 13129 with_gnu_ld=no 13130 fi 13131 ;; 13132 interix*) 13133 # we just hope/assume this is gcc and not c89 (= MSVC++) 13134 with_gnu_ld=yes 13135 ;; 13136 openbsd*) 13137 with_gnu_ld=no 13138 ;; 13139 esac 13140 13141 ld_shlibs_F77=yes 13142 if test "$with_gnu_ld" = yes; then 13143 # If archive_cmds runs LD, not CC, wlarc should be empty 13144 wlarc='${wl}' 13145 13146 # Set some defaults for GNU ld with shared library support. These 13147 # are reset later if shared libraries are not supported. Putting them 13148 # here allows them to be overridden if necessary. 13149 runpath_var=LD_RUN_PATH 13150 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13151 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13152 # ancient GNU ld didn't support --whole-archive et. al. 13153 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13154 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13155 else 13156 whole_archive_flag_spec_F77= 13157 fi 13158 supports_anon_versioning=no 13159 case `$LD -v 2>/dev/null` in 13160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13163 *\ 2.11.*) ;; # other 2.11 versions 13164 *) supports_anon_versioning=yes ;; 13165 esac 13166 13167 # See if GNU ld supports shared libraries. 13168 case $host_os in 13169 aix3* | aix4* | aix5*) 13170 # On AIX/PPC, the GNU linker is very broken 13171 if test "$host_cpu" != ia64; then 13172 ld_shlibs_F77=no 13173 cat <<EOF 1>&2 13174 13175*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13176*** to be unable to reliably create shared libraries on AIX. 13177*** Therefore, libtool is disabling shared libraries support. If you 13178*** really care for shared libraries, you may want to modify your PATH 13179*** so that a non-GNU linker is found, and then restart. 13180 13181EOF 13182 fi 13183 ;; 13184 13185 amigaos*) 13186 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)' 13187 hardcode_libdir_flag_spec_F77='-L$libdir' 13188 hardcode_minus_L_F77=yes 13189 13190 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13191 # that the semantics of dynamic libraries on AmigaOS, at least up 13192 # to version 4, is to share data among multiple programs linked 13193 # with the same dynamic library. Since this doesn't match the 13194 # behavior of shared libraries on other platforms, we can't use 13195 # them. 13196 ld_shlibs_F77=no 13197 ;; 13198 13199 beos*) 13200 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13201 allow_undefined_flag_F77=unsupported 13202 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13203 # support --undefined. This deserves some investigation. FIXME 13204 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13205 else 13206 ld_shlibs_F77=no 13207 fi 13208 ;; 13209 13210 cygwin* | mingw* | pw32*) 13211 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13212 # as there is no search path for DLLs. 13213 hardcode_libdir_flag_spec_F77='-L$libdir' 13214 allow_undefined_flag_F77=unsupported 13215 always_export_symbols_F77=no 13216 enable_shared_with_static_runtimes_F77=yes 13217 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13218 13219 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13220 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13221 # If the export-symbols file already is a .def file (1st line 13222 # is EXPORTS), use it as is; otherwise, prepend... 13223 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13224 cp $export_symbols $output_objdir/$soname.def; 13225 else 13226 echo EXPORTS > $output_objdir/$soname.def; 13227 cat $export_symbols >> $output_objdir/$soname.def; 13228 fi~ 13229 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13230 else 13231 ld_shlibs_F77=no 13232 fi 13233 ;; 13234 13235 interix3*) 13236 hardcode_direct_F77=no 13237 hardcode_shlibpath_var_F77=no 13238 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13239 export_dynamic_flag_spec_F77='${wl}-E' 13240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13241 # Instead, shared libraries are loaded at an image base (0x10000000 by 13242 # default) and relocated if they conflict, which is a slow very memory 13243 # consuming and fragmenting process. To avoid this, we pick a random, 13244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13245 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13246 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13247 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13248 ;; 13249 13250 linux*) 13251 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13252 tmp_addflag= 13253 case $cc_basename,$host_cpu in 13254 pgcc*) # Portland Group C compiler 13255 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' 13256 tmp_addflag=' $pic_flag' 13257 ;; 13258 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13259 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' 13260 tmp_addflag=' $pic_flag -Mnomain' ;; 13261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13262 tmp_addflag=' -i_dynamic' ;; 13263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13264 tmp_addflag=' -i_dynamic -nofor_main' ;; 13265 ifc* | ifort*) # Intel Fortran compiler 13266 tmp_addflag=' -nofor_main' ;; 13267 esac 13268 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13269 13270 if test $supports_anon_versioning = yes; then 13271 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13272 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13273 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13274 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13275 fi 13276 link_all_deplibs_F77=no 13277 else 13278 ld_shlibs_F77=no 13279 fi 13280 ;; 13281 13282 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 13283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13284 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13285 wlarc= 13286 else 13287 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13288 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13289 fi 13290 ;; 13291 13292 solaris*) 13293 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13294 ld_shlibs_F77=no 13295 cat <<EOF 1>&2 13296 13297*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13298*** create shared libraries on Solaris systems. Therefore, libtool 13299*** is disabling shared libraries support. We urge you to upgrade GNU 13300*** binutils to release 2.9.1 or newer. Another option is to modify 13301*** your PATH or compiler configuration so that the native linker is 13302*** used, and then restart. 13303 13304EOF 13305 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13306 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13307 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13308 else 13309 ld_shlibs_F77=no 13310 fi 13311 ;; 13312 13313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13314 case `$LD -v 2>&1` in 13315 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13316 ld_shlibs_F77=no 13317 cat <<_LT_EOF 1>&2 13318 13319*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13320*** reliably create shared libraries on SCO systems. Therefore, libtool 13321*** is disabling shared libraries support. We urge you to upgrade GNU 13322*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13323*** your PATH or compiler configuration so that the native linker is 13324*** used, and then restart. 13325 13326_LT_EOF 13327 ;; 13328 *) 13329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13330 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13331 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13332 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13333 else 13334 ld_shlibs_F77=no 13335 fi 13336 ;; 13337 esac 13338 ;; 13339 13340 sunos4*) 13341 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13342 wlarc= 13343 hardcode_direct_F77=yes 13344 hardcode_shlibpath_var_F77=no 13345 ;; 13346 13347 *) 13348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13349 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13350 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13351 else 13352 ld_shlibs_F77=no 13353 fi 13354 ;; 13355 esac 13356 13357 if test "$ld_shlibs_F77" = no; then 13358 runpath_var= 13359 hardcode_libdir_flag_spec_F77= 13360 export_dynamic_flag_spec_F77= 13361 whole_archive_flag_spec_F77= 13362 fi 13363 else 13364 # PORTME fill in a description of your system's linker (not GNU ld) 13365 case $host_os in 13366 aix3*) 13367 allow_undefined_flag_F77=unsupported 13368 always_export_symbols_F77=yes 13369 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' 13370 # Note: this linker hardcodes the directories in LIBPATH if there 13371 # are no directories specified by -L. 13372 hardcode_minus_L_F77=yes 13373 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13374 # Neither direct hardcoding nor static linking is supported with a 13375 # broken collect2. 13376 hardcode_direct_F77=unsupported 13377 fi 13378 ;; 13379 13380 aix4* | aix5*) 13381 if test "$host_cpu" = ia64; then 13382 # On IA64, the linker does run time linking by default, so we don't 13383 # have to do anything special. 13384 aix_use_runtimelinking=no 13385 exp_sym_flag='-Bexport' 13386 no_entry_flag="" 13387 else 13388 # If we're using GNU nm, then we don't want the "-C" option. 13389 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13390 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13391 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' 13392 else 13393 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' 13394 fi 13395 aix_use_runtimelinking=no 13396 13397 # Test if we are trying to use run time linking or normal 13398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13399 # need to do runtime linking. 13400 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13401 for ld_flag in $LDFLAGS; do 13402 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13403 aix_use_runtimelinking=yes 13404 break 13405 fi 13406 done 13407 ;; 13408 esac 13409 13410 exp_sym_flag='-bexport' 13411 no_entry_flag='-bnoentry' 13412 fi 13413 13414 # When large executables or shared objects are built, AIX ld can 13415 # have problems creating the table of contents. If linking a library 13416 # or program results in "error TOC overflow" add -mminimal-toc to 13417 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13418 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13419 13420 archive_cmds_F77='' 13421 hardcode_direct_F77=yes 13422 hardcode_libdir_separator_F77=':' 13423 link_all_deplibs_F77=yes 13424 13425 if test "$GCC" = yes; then 13426 case $host_os in aix4.[012]|aix4.[012].*) 13427 # We only want to do this on AIX 4.2 and lower, the check 13428 # below for broken collect2 doesn't work under 4.3+ 13429 collect2name=`${CC} -print-prog-name=collect2` 13430 if test -f "$collect2name" && \ 13431 strings "$collect2name" | grep resolve_lib_name >/dev/null 13432 then 13433 # We have reworked collect2 13434 hardcode_direct_F77=yes 13435 else 13436 # We have old collect2 13437 hardcode_direct_F77=unsupported 13438 # It fails to find uninstalled libraries when the uninstalled 13439 # path is not listed in the libpath. Setting hardcode_minus_L 13440 # to unsupported forces relinking 13441 hardcode_minus_L_F77=yes 13442 hardcode_libdir_flag_spec_F77='-L$libdir' 13443 hardcode_libdir_separator_F77= 13444 fi 13445 ;; 13446 esac 13447 shared_flag='-shared' 13448 if test "$aix_use_runtimelinking" = yes; then 13449 shared_flag="$shared_flag "'${wl}-G' 13450 fi 13451 else 13452 # not using gcc 13453 if test "$host_cpu" = ia64; then 13454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13455 # chokes on -Wl,-G. The following line is correct: 13456 shared_flag='-G' 13457 else 13458 if test "$aix_use_runtimelinking" = yes; then 13459 shared_flag='${wl}-G' 13460 else 13461 shared_flag='${wl}-bM:SRE' 13462 fi 13463 fi 13464 fi 13465 13466 # It seems that -bexpall does not export symbols beginning with 13467 # underscore (_), so it is better to generate a list of symbols to export. 13468 always_export_symbols_F77=yes 13469 if test "$aix_use_runtimelinking" = yes; then 13470 # Warning - without using the other runtime loading flags (-brtl), 13471 # -berok will link without error, but may produce a broken library. 13472 allow_undefined_flag_F77='-berok' 13473 # Determine the default libpath from the value encoded in an empty executable. 13474 cat >conftest.$ac_ext <<_ACEOF 13475 program main 13476 13477 end 13478_ACEOF 13479rm -f conftest.$ac_objext conftest$ac_exeext 13480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13481 (eval $ac_link) 2>conftest.er1 13482 ac_status=$? 13483 grep -v '^ *+' conftest.er1 >conftest.err 13484 rm -f conftest.er1 13485 cat conftest.err >&5 13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13487 (exit $ac_status); } && 13488 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13490 (eval $ac_try) 2>&5 13491 ac_status=$? 13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13493 (exit $ac_status); }; } && 13494 { ac_try='test -s conftest$ac_exeext' 13495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13496 (eval $ac_try) 2>&5 13497 ac_status=$? 13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13499 (exit $ac_status); }; }; then 13500 13501aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13502}'` 13503# Check for a 64-bit object if we didn't find anything. 13504if 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; } 13505}'`; fi 13506else 13507 echo "$as_me: failed program was:" >&5 13508sed 's/^/| /' conftest.$ac_ext >&5 13509 13510fi 13511rm -f conftest.err conftest.$ac_objext \ 13512 conftest$ac_exeext conftest.$ac_ext 13513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13514 13515 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13516 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13517 else 13518 if test "$host_cpu" = ia64; then 13519 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13520 allow_undefined_flag_F77="-z nodefs" 13521 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13522 else 13523 # Determine the default libpath from the value encoded in an empty executable. 13524 cat >conftest.$ac_ext <<_ACEOF 13525 program main 13526 13527 end 13528_ACEOF 13529rm -f conftest.$ac_objext conftest$ac_exeext 13530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13531 (eval $ac_link) 2>conftest.er1 13532 ac_status=$? 13533 grep -v '^ *+' conftest.er1 >conftest.err 13534 rm -f conftest.er1 13535 cat conftest.err >&5 13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13537 (exit $ac_status); } && 13538 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13540 (eval $ac_try) 2>&5 13541 ac_status=$? 13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13543 (exit $ac_status); }; } && 13544 { ac_try='test -s conftest$ac_exeext' 13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13546 (eval $ac_try) 2>&5 13547 ac_status=$? 13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13549 (exit $ac_status); }; }; then 13550 13551aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13552}'` 13553# Check for a 64-bit object if we didn't find anything. 13554if 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; } 13555}'`; fi 13556else 13557 echo "$as_me: failed program was:" >&5 13558sed 's/^/| /' conftest.$ac_ext >&5 13559 13560fi 13561rm -f conftest.err conftest.$ac_objext \ 13562 conftest$ac_exeext conftest.$ac_ext 13563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13564 13565 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13566 # Warning - without using the other run time loading flags, 13567 # -berok will link without error, but may produce a broken library. 13568 no_undefined_flag_F77=' ${wl}-bernotok' 13569 allow_undefined_flag_F77=' ${wl}-berok' 13570 # Exported symbols can be pulled into shared objects from archives 13571 whole_archive_flag_spec_F77='$convenience' 13572 archive_cmds_need_lc_F77=yes 13573 # This is similar to how AIX traditionally builds its shared libraries. 13574 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13575 fi 13576 fi 13577 ;; 13578 13579 amigaos*) 13580 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)' 13581 hardcode_libdir_flag_spec_F77='-L$libdir' 13582 hardcode_minus_L_F77=yes 13583 # see comment about different semantics on the GNU ld section 13584 ld_shlibs_F77=no 13585 ;; 13586 13587 bsdi[45]*) 13588 export_dynamic_flag_spec_F77=-rdynamic 13589 ;; 13590 13591 cygwin* | mingw* | pw32*) 13592 # When not using gcc, we currently assume that we are using 13593 # Microsoft Visual C++. 13594 # hardcode_libdir_flag_spec is actually meaningless, as there is 13595 # no search path for DLLs. 13596 hardcode_libdir_flag_spec_F77=' ' 13597 allow_undefined_flag_F77=unsupported 13598 # Tell ltmain to make .lib files, not .a files. 13599 libext=lib 13600 # Tell ltmain to make .dll files, not .so files. 13601 shrext_cmds=".dll" 13602 # FIXME: Setting linknames here is a bad hack. 13603 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13604 # The linker will automatically build a .lib file if we build a DLL. 13605 old_archive_From_new_cmds_F77='true' 13606 # FIXME: Should let the user specify the lib program. 13607 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13608 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13609 enable_shared_with_static_runtimes_F77=yes 13610 ;; 13611 13612 darwin* | rhapsody*) 13613 case $host_os in 13614 rhapsody* | darwin1.[012]) 13615 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13616 ;; 13617 *) # Darwin 1.3 on 13618 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13619 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13620 else 13621 case ${MACOSX_DEPLOYMENT_TARGET} in 13622 10.[012]) 13623 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13624 ;; 13625 10.*) 13626 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13627 ;; 13628 esac 13629 fi 13630 ;; 13631 esac 13632 archive_cmds_need_lc_F77=no 13633 hardcode_direct_F77=no 13634 hardcode_automatic_F77=yes 13635 hardcode_shlibpath_var_F77=unsupported 13636 whole_archive_flag_spec_F77='' 13637 link_all_deplibs_F77=yes 13638 if test "$GCC" = yes ; then 13639 output_verbose_link_cmd='echo' 13640 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13641 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13643 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}' 13644 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}' 13645 else 13646 case $cc_basename in 13647 xlc*) 13648 output_verbose_link_cmd='echo' 13649 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13650 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13652 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}' 13653 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}' 13654 ;; 13655 *) 13656 ld_shlibs_F77=no 13657 ;; 13658 esac 13659 fi 13660 ;; 13661 13662 dgux*) 13663 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13664 hardcode_libdir_flag_spec_F77='-L$libdir' 13665 hardcode_shlibpath_var_F77=no 13666 ;; 13667 13668 freebsd1*) 13669 ld_shlibs_F77=no 13670 ;; 13671 13672 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13673 # support. Future versions do this automatically, but an explicit c++rt0.o 13674 # does not break anything, and helps significantly (at the cost of a little 13675 # extra space). 13676 freebsd2.2*) 13677 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13678 hardcode_libdir_flag_spec_F77='-R$libdir' 13679 hardcode_direct_F77=yes 13680 hardcode_shlibpath_var_F77=no 13681 ;; 13682 13683 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13684 freebsd2*) 13685 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13686 hardcode_direct_F77=yes 13687 hardcode_minus_L_F77=yes 13688 hardcode_shlibpath_var_F77=no 13689 ;; 13690 13691 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13692 freebsd* | dragonfly*) 13693 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13694 hardcode_libdir_flag_spec_F77='-R$libdir' 13695 hardcode_direct_F77=yes 13696 hardcode_shlibpath_var_F77=no 13697 ;; 13698 13699 # GNU/kFreeBSD uses gcc -shared to do shared libraries. 13700 kfreebsd*-gnu) 13701 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13702 hardcode_libdir_flag_spec_F77='-R$libdir' 13703 hardcode_direct_F77=yes 13704 hardcode_shlibpath_var_F77=no 13705 link_all_deplibs_F77=no 13706 ;; 13707 13708 hpux9*) 13709 if test "$GCC" = yes; then 13710 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' 13711 else 13712 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' 13713 fi 13714 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13715 hardcode_libdir_separator_F77=: 13716 hardcode_direct_F77=yes 13717 13718 # hardcode_minus_L: Not really in the search PATH, 13719 # but as the default location of the library. 13720 hardcode_minus_L_F77=yes 13721 export_dynamic_flag_spec_F77='${wl}-E' 13722 ;; 13723 13724 hpux10*) 13725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13726 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13727 else 13728 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13729 fi 13730 if test "$with_gnu_ld" = no; then 13731 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13732 hardcode_libdir_separator_F77=: 13733 13734 hardcode_direct_F77=yes 13735 export_dynamic_flag_spec_F77='${wl}-E' 13736 13737 # hardcode_minus_L: Not really in the search PATH, 13738 # but as the default location of the library. 13739 hardcode_minus_L_F77=yes 13740 fi 13741 ;; 13742 13743 hpux11*) 13744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13745 case $host_cpu in 13746 hppa*64*) 13747 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13748 ;; 13749 ia64*) 13750 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13751 ;; 13752 *) 13753 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13754 ;; 13755 esac 13756 else 13757 case $host_cpu in 13758 hppa*64*) 13759 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13760 ;; 13761 ia64*) 13762 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13763 ;; 13764 *) 13765 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13766 ;; 13767 esac 13768 fi 13769 if test "$with_gnu_ld" = no; then 13770 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13771 hardcode_libdir_separator_F77=: 13772 13773 case $host_cpu in 13774 hppa*64*|ia64*) 13775 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13776 hardcode_direct_F77=no 13777 hardcode_shlibpath_var_F77=no 13778 ;; 13779 *) 13780 hardcode_direct_F77=yes 13781 export_dynamic_flag_spec_F77='${wl}-E' 13782 13783 # hardcode_minus_L: Not really in the search PATH, 13784 # but as the default location of the library. 13785 hardcode_minus_L_F77=yes 13786 ;; 13787 esac 13788 fi 13789 ;; 13790 13791 irix5* | irix6* | nonstopux*) 13792 if test "$GCC" = yes; then 13793 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' 13794 else 13795 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' 13796 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13797 fi 13798 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13799 hardcode_libdir_separator_F77=: 13800 link_all_deplibs_F77=yes 13801 ;; 13802 13803 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 13804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13805 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13806 else 13807 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13808 fi 13809 hardcode_libdir_flag_spec_F77='-R$libdir' 13810 hardcode_direct_F77=yes 13811 hardcode_shlibpath_var_F77=no 13812 ;; 13813 13814 newsos6) 13815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13816 hardcode_direct_F77=yes 13817 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13818 hardcode_libdir_separator_F77=: 13819 hardcode_shlibpath_var_F77=no 13820 ;; 13821 13822 openbsd*) 13823 hardcode_direct_F77=yes 13824 hardcode_shlibpath_var_F77=no 13825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13826 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13827 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13828 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13829 export_dynamic_flag_spec_F77='${wl}-E' 13830 else 13831 case $host_os in 13832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13833 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13834 hardcode_libdir_flag_spec_F77='-R$libdir' 13835 ;; 13836 *) 13837 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13838 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13839 ;; 13840 esac 13841 fi 13842 ;; 13843 13844 os2*) 13845 hardcode_libdir_flag_spec_F77='-L$libdir' 13846 hardcode_minus_L_F77=yes 13847 allow_undefined_flag_F77=unsupported 13848 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' 13849 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13850 ;; 13851 13852 osf3*) 13853 if test "$GCC" = yes; then 13854 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13855 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' 13856 else 13857 allow_undefined_flag_F77=' -expect_unresolved \*' 13858 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' 13859 fi 13860 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13861 hardcode_libdir_separator_F77=: 13862 ;; 13863 13864 osf4* | osf5*) # as osf3* with the addition of -msym flag 13865 if test "$GCC" = yes; then 13866 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13867 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' 13868 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13869 else 13870 allow_undefined_flag_F77=' -expect_unresolved \*' 13871 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' 13872 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~ 13873 $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' 13874 13875 # Both c and cxx compiler support -rpath directly 13876 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13877 fi 13878 hardcode_libdir_separator_F77=: 13879 ;; 13880 13881 solaris*) 13882 no_undefined_flag_F77=' -z text' 13883 if test "$GCC" = yes; then 13884 wlarc='${wl}' 13885 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13886 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13888 else 13889 wlarc='' 13890 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13891 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13893 fi 13894 hardcode_libdir_flag_spec_F77='-R$libdir' 13895 hardcode_shlibpath_var_F77=no 13896 case $host_os in 13897 solaris2.[0-5] | solaris2.[0-5].*) ;; 13898 *) 13899 # The compiler driver will combine linker options so we 13900 # cannot just pass the convience library names through 13901 # without $wl, iff we do not link with $LD. 13902 # Luckily, gcc supports the same syntax we need for Sun Studio. 13903 # Supported since Solaris 2.6 (maybe 2.5.1?) 13904 case $wlarc in 13905 '') 13906 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13907 *) 13908 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' ;; 13909 esac ;; 13910 esac 13911 link_all_deplibs_F77=yes 13912 ;; 13913 13914 sunos4*) 13915 if test "x$host_vendor" = xsequent; then 13916 # Use $CC to link under sequent, because it throws in some extra .o 13917 # files that make .init and .fini sections work. 13918 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13919 else 13920 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13921 fi 13922 hardcode_libdir_flag_spec_F77='-L$libdir' 13923 hardcode_direct_F77=yes 13924 hardcode_minus_L_F77=yes 13925 hardcode_shlibpath_var_F77=no 13926 ;; 13927 13928 sysv4) 13929 case $host_vendor in 13930 sni) 13931 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13932 hardcode_direct_F77=yes # is this really true??? 13933 ;; 13934 siemens) 13935 ## LD is ld it makes a PLAMLIB 13936 ## CC just makes a GrossModule. 13937 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13938 reload_cmds_F77='$CC -r -o $output$reload_objs' 13939 hardcode_direct_F77=no 13940 ;; 13941 motorola) 13942 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13943 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13944 ;; 13945 esac 13946 runpath_var='LD_RUN_PATH' 13947 hardcode_shlibpath_var_F77=no 13948 ;; 13949 13950 sysv4.3*) 13951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13952 hardcode_shlibpath_var_F77=no 13953 export_dynamic_flag_spec_F77='-Bexport' 13954 ;; 13955 13956 sysv4*MP*) 13957 if test -d /usr/nec; then 13958 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13959 hardcode_shlibpath_var_F77=no 13960 runpath_var=LD_RUN_PATH 13961 hardcode_runpath_var=yes 13962 ld_shlibs_F77=yes 13963 fi 13964 ;; 13965 13966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 13967 no_undefined_flag_F77='${wl}-z,text' 13968 archive_cmds_need_lc_F77=no 13969 hardcode_shlibpath_var_F77=no 13970 runpath_var='LD_RUN_PATH' 13971 13972 if test "$GCC" = yes; then 13973 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13974 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13975 else 13976 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13977 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13978 fi 13979 ;; 13980 13981 sysv5* | sco3.2v5* | sco5v6*) 13982 # Note: We can NOT use -z defs as we might desire, because we do not 13983 # link with -lc, and that would cause any symbols used from libc to 13984 # always be unresolved, which means just about no library would 13985 # ever link correctly. If we're not using GNU ld we use -z text 13986 # though, which does catch some bad symbols but isn't as heavy-handed 13987 # as -z defs. 13988 no_undefined_flag_F77='${wl}-z,text' 13989 allow_undefined_flag_F77='${wl}-z,nodefs' 13990 archive_cmds_need_lc_F77=no 13991 hardcode_shlibpath_var_F77=no 13992 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13993 hardcode_libdir_separator_F77=':' 13994 link_all_deplibs_F77=yes 13995 export_dynamic_flag_spec_F77='${wl}-Bexport' 13996 runpath_var='LD_RUN_PATH' 13997 13998 if test "$GCC" = yes; then 13999 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14000 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14001 else 14002 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14003 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14004 fi 14005 ;; 14006 14007 uts4*) 14008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14009 hardcode_libdir_flag_spec_F77='-L$libdir' 14010 hardcode_shlibpath_var_F77=no 14011 ;; 14012 14013 *) 14014 ld_shlibs_F77=no 14015 ;; 14016 esac 14017 fi 14018 14019echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14020echo "${ECHO_T}$ld_shlibs_F77" >&6 14021test "$ld_shlibs_F77" = no && can_build_shared=no 14022 14023# 14024# Do we need to explicitly link libc? 14025# 14026case "x$archive_cmds_need_lc_F77" in 14027x|xyes) 14028 # Assume -lc should be added 14029 archive_cmds_need_lc_F77=yes 14030 14031 if test "$enable_shared" = yes && test "$GCC" = yes; then 14032 case $archive_cmds_F77 in 14033 *'~'*) 14034 # FIXME: we may have to deal with multi-command sequences. 14035 ;; 14036 '$CC '*) 14037 # Test whether the compiler implicitly links with -lc since on some 14038 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14039 # to ld, don't add -lc before -lgcc. 14040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14041echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14042 $rm conftest* 14043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14044 14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14046 (eval $ac_compile) 2>&5 14047 ac_status=$? 14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14049 (exit $ac_status); } 2>conftest.err; then 14050 soname=conftest 14051 lib=conftest 14052 libobjs=conftest.$ac_objext 14053 deplibs= 14054 wl=$lt_prog_compiler_wl_F77 14055 pic_flag=$lt_prog_compiler_pic_F77 14056 compiler_flags=-v 14057 linker_flags=-v 14058 verstring= 14059 output_objdir=. 14060 libname=conftest 14061 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14062 allow_undefined_flag_F77= 14063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14064 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14065 ac_status=$? 14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14067 (exit $ac_status); } 14068 then 14069 archive_cmds_need_lc_F77=no 14070 else 14071 archive_cmds_need_lc_F77=yes 14072 fi 14073 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14074 else 14075 cat conftest.err 1>&5 14076 fi 14077 $rm conftest* 14078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14079echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14080 ;; 14081 esac 14082 fi 14083 ;; 14084esac 14085 14086echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14087echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14088library_names_spec= 14089libname_spec='lib$name' 14090soname_spec= 14091shrext_cmds=".so" 14092postinstall_cmds= 14093postuninstall_cmds= 14094finish_cmds= 14095finish_eval= 14096shlibpath_var= 14097shlibpath_overrides_runpath=unknown 14098version_type=none 14099dynamic_linker="$host_os ld.so" 14100sys_lib_dlsearch_path_spec="/lib /usr/lib" 14101if test "$GCC" = yes; then 14102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14103 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14104 # if the path contains ";" then we assume it to be the separator 14105 # otherwise default to the standard path separator (i.e. ":") - it is 14106 # assumed that no part of a normal pathname contains ";" but that should 14107 # okay in the real world where ";" in dirpaths is itself problematic. 14108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14109 else 14110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14111 fi 14112else 14113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14114fi 14115need_lib_prefix=unknown 14116hardcode_into_libs=no 14117 14118# when you set need_version to no, make sure it does not cause -set_version 14119# flags to be left without arguments 14120need_version=unknown 14121 14122case $host_os in 14123aix3*) 14124 version_type=linux 14125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14126 shlibpath_var=LIBPATH 14127 14128 # AIX 3 has no versioning support, so we append a major version to the name. 14129 soname_spec='${libname}${release}${shared_ext}$major' 14130 ;; 14131 14132aix4* | aix5*) 14133 version_type=linux 14134 need_lib_prefix=no 14135 need_version=no 14136 hardcode_into_libs=yes 14137 if test "$host_cpu" = ia64; then 14138 # AIX 5 supports IA64 14139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14140 shlibpath_var=LD_LIBRARY_PATH 14141 else 14142 # With GCC up to 2.95.x, collect2 would create an import file 14143 # for dependence libraries. The import file would start with 14144 # the line `#! .'. This would cause the generated library to 14145 # depend on `.', always an invalid library. This was fixed in 14146 # development snapshots of GCC prior to 3.0. 14147 case $host_os in 14148 aix4 | aix4.[01] | aix4.[01].*) 14149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14150 echo ' yes ' 14151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14152 : 14153 else 14154 can_build_shared=no 14155 fi 14156 ;; 14157 esac 14158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14159 # soname into executable. Probably we can add versioning support to 14160 # collect2, so additional links can be useful in future. 14161 if test "$aix_use_runtimelinking" = yes; then 14162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14163 # instead of lib<name>.a to let people know that these are not 14164 # typical AIX shared libraries. 14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14166 else 14167 # We preserve .a as extension for shared libraries through AIX4.2 14168 # and later when we are not doing run time linking. 14169 library_names_spec='${libname}${release}.a $libname.a' 14170 soname_spec='${libname}${release}${shared_ext}$major' 14171 fi 14172 shlibpath_var=LIBPATH 14173 fi 14174 ;; 14175 14176amigaos*) 14177 library_names_spec='$libname.ixlibrary $libname.a' 14178 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14179 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' 14180 ;; 14181 14182beos*) 14183 library_names_spec='${libname}${shared_ext}' 14184 dynamic_linker="$host_os ld.so" 14185 shlibpath_var=LIBRARY_PATH 14186 ;; 14187 14188bsdi[45]*) 14189 version_type=linux 14190 need_version=no 14191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14192 soname_spec='${libname}${release}${shared_ext}$major' 14193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14194 shlibpath_var=LD_LIBRARY_PATH 14195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14197 # the default ld.so.conf also contains /usr/contrib/lib and 14198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14199 # libtool to hard-code these into programs 14200 ;; 14201 14202cygwin* | mingw* | pw32*) 14203 version_type=windows 14204 shrext_cmds=".dll" 14205 need_version=no 14206 need_lib_prefix=no 14207 14208 case $GCC,$host_os in 14209 yes,cygwin* | yes,mingw* | yes,pw32*) 14210 library_names_spec='$libname.dll.a' 14211 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14212 postinstall_cmds='base_file=`basename \${file}`~ 14213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14214 dldir=$destdir/`dirname \$dlpath`~ 14215 test -d \$dldir || mkdir -p \$dldir~ 14216 $install_prog $dir/$dlname \$dldir/$dlname~ 14217 chmod a+x \$dldir/$dlname' 14218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14219 dlpath=$dir/\$dldll~ 14220 $rm \$dlpath' 14221 shlibpath_overrides_runpath=yes 14222 14223 case $host_os in 14224 cygwin*) 14225 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14228 ;; 14229 mingw*) 14230 # MinGW DLLs use traditional 'lib' prefix 14231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14234 # It is most probably a Windows format PATH printed by 14235 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14236 # path with ; separators, and with drive letters. We can handle the 14237 # drive letters (cygwin fileutils understands them), so leave them, 14238 # especially as we might pass files found there to a mingw objdump, 14239 # which wouldn't understand a cygwinified path. Ahh. 14240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14241 else 14242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14243 fi 14244 ;; 14245 pw32*) 14246 # pw32 DLLs use 'pw' prefix rather than 'lib' 14247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14248 ;; 14249 esac 14250 ;; 14251 14252 *) 14253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14254 ;; 14255 esac 14256 dynamic_linker='Win32 ld.exe' 14257 # FIXME: first we should search . and the directory the executable is in 14258 shlibpath_var=PATH 14259 ;; 14260 14261darwin* | rhapsody*) 14262 dynamic_linker="$host_os dyld" 14263 version_type=darwin 14264 need_lib_prefix=no 14265 need_version=no 14266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14267 soname_spec='${libname}${release}${major}$shared_ext' 14268 shlibpath_overrides_runpath=yes 14269 shlibpath_var=DYLD_LIBRARY_PATH 14270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14272 if test "$GCC" = yes; then 14273 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"` 14274 else 14275 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14276 fi 14277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14278 ;; 14279 14280dgux*) 14281 version_type=linux 14282 need_lib_prefix=no 14283 need_version=no 14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14285 soname_spec='${libname}${release}${shared_ext}$major' 14286 shlibpath_var=LD_LIBRARY_PATH 14287 ;; 14288 14289freebsd1*) 14290 dynamic_linker=no 14291 ;; 14292 14293kfreebsd*-gnu) 14294 version_type=linux 14295 need_lib_prefix=no 14296 need_version=no 14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14298 soname_spec='${libname}${release}${shared_ext}$major' 14299 shlibpath_var=LD_LIBRARY_PATH 14300 shlibpath_overrides_runpath=no 14301 hardcode_into_libs=yes 14302 dynamic_linker='GNU ld.so' 14303 ;; 14304 14305freebsd* | dragonfly*) 14306 # DragonFly does not have aout. When/if they implement a new 14307 # versioning mechanism, adjust this. 14308 if test -x /usr/bin/objformat; then 14309 objformat=`/usr/bin/objformat` 14310 else 14311 case $host_os in 14312 freebsd[123]*) objformat=aout ;; 14313 *) objformat=elf ;; 14314 esac 14315 fi 14316 version_type=freebsd-$objformat 14317 case $version_type in 14318 freebsd-elf*) 14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14320 need_version=no 14321 need_lib_prefix=no 14322 ;; 14323 freebsd-*) 14324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14325 need_version=yes 14326 ;; 14327 esac 14328 shlibpath_var=LD_LIBRARY_PATH 14329 case $host_os in 14330 freebsd2*) 14331 shlibpath_overrides_runpath=yes 14332 ;; 14333 freebsd3.[01]* | freebsdelf3.[01]*) 14334 shlibpath_overrides_runpath=yes 14335 hardcode_into_libs=yes 14336 ;; 14337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14339 shlibpath_overrides_runpath=no 14340 hardcode_into_libs=yes 14341 ;; 14342 freebsd*) # from 4.6 on 14343 shlibpath_overrides_runpath=yes 14344 hardcode_into_libs=yes 14345 ;; 14346 esac 14347 ;; 14348 14349gnu*) 14350 version_type=linux 14351 need_lib_prefix=no 14352 need_version=no 14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14354 soname_spec='${libname}${release}${shared_ext}$major' 14355 shlibpath_var=LD_LIBRARY_PATH 14356 hardcode_into_libs=yes 14357 ;; 14358 14359hpux9* | hpux10* | hpux11*) 14360 # Give a soname corresponding to the major version so that dld.sl refuses to 14361 # link against other versions. 14362 version_type=sunos 14363 need_lib_prefix=no 14364 need_version=no 14365 case $host_cpu in 14366 ia64*) 14367 shrext_cmds='.so' 14368 hardcode_into_libs=yes 14369 dynamic_linker="$host_os dld.so" 14370 shlibpath_var=LD_LIBRARY_PATH 14371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14373 soname_spec='${libname}${release}${shared_ext}$major' 14374 if test "X$HPUX_IA64_MODE" = X32; then 14375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14376 else 14377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14378 fi 14379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14380 ;; 14381 hppa*64*) 14382 shrext_cmds='.sl' 14383 hardcode_into_libs=yes 14384 dynamic_linker="$host_os dld.sl" 14385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14388 soname_spec='${libname}${release}${shared_ext}$major' 14389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14391 ;; 14392 *) 14393 shrext_cmds='.sl' 14394 dynamic_linker="$host_os dld.sl" 14395 shlibpath_var=SHLIB_PATH 14396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14398 soname_spec='${libname}${release}${shared_ext}$major' 14399 ;; 14400 esac 14401 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14402 postinstall_cmds='chmod 555 $lib' 14403 ;; 14404 14405interix3*) 14406 version_type=linux 14407 need_lib_prefix=no 14408 need_version=no 14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14410 soname_spec='${libname}${release}${shared_ext}$major' 14411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14412 shlibpath_var=LD_LIBRARY_PATH 14413 shlibpath_overrides_runpath=no 14414 hardcode_into_libs=yes 14415 ;; 14416 14417irix5* | irix6* | nonstopux*) 14418 case $host_os in 14419 nonstopux*) version_type=nonstopux ;; 14420 *) 14421 if test "$lt_cv_prog_gnu_ld" = yes; then 14422 version_type=linux 14423 else 14424 version_type=irix 14425 fi ;; 14426 esac 14427 need_lib_prefix=no 14428 need_version=no 14429 soname_spec='${libname}${release}${shared_ext}$major' 14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14431 case $host_os in 14432 irix5* | nonstopux*) 14433 libsuff= shlibsuff= 14434 ;; 14435 *) 14436 case $LD in # libtool.m4 will add one of these switches to LD 14437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14438 libsuff= shlibsuff= libmagic=32-bit;; 14439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14440 libsuff=32 shlibsuff=N32 libmagic=N32;; 14441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14442 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14443 *) libsuff= shlibsuff= libmagic=never-match;; 14444 esac 14445 ;; 14446 esac 14447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14448 shlibpath_overrides_runpath=no 14449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14451 hardcode_into_libs=yes 14452 ;; 14453 14454# No shared lib support for Linux oldld, aout, or coff. 14455linux*oldld* | linux*aout* | linux*coff*) 14456 dynamic_linker=no 14457 ;; 14458 14459# This must be Linux ELF. 14460linux*) 14461 version_type=linux 14462 need_lib_prefix=no 14463 need_version=no 14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14465 soname_spec='${libname}${release}${shared_ext}$major' 14466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14467 shlibpath_var=LD_LIBRARY_PATH 14468 shlibpath_overrides_runpath=no 14469 # This implies no fast_install, which is unacceptable. 14470 # Some rework will be needed to allow for fast_install 14471 # before this can be enabled. 14472 hardcode_into_libs=yes 14473 14474 # Append ld.so.conf contents to the search path 14475 if test -f /etc/ld.so.conf; then 14476 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' ' '` 14477 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14478 fi 14479 14480 # We used to test for /lib/ld.so.1 and disable shared libraries on 14481 # powerpc, because MkLinux only supported shared libraries with the 14482 # GNU dynamic linker. Since this was broken with cross compilers, 14483 # most powerpc-linux boxes support dynamic linking these days and 14484 # people can always --disable-shared, the test was removed, and we 14485 # assume the GNU/Linux dynamic linker is in use. 14486 dynamic_linker='GNU/Linux ld.so' 14487 ;; 14488 14489netbsdelf*-gnu) 14490 version_type=linux 14491 need_lib_prefix=no 14492 need_version=no 14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14494 soname_spec='${libname}${release}${shared_ext}$major' 14495 shlibpath_var=LD_LIBRARY_PATH 14496 shlibpath_overrides_runpath=no 14497 hardcode_into_libs=yes 14498 dynamic_linker='NetBSD ld.elf_so' 14499 ;; 14500 14501knetbsd*-gnu) 14502 version_type=linux 14503 need_lib_prefix=no 14504 need_version=no 14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14506 soname_spec='${libname}${release}${shared_ext}$major' 14507 shlibpath_var=LD_LIBRARY_PATH 14508 shlibpath_overrides_runpath=no 14509 hardcode_into_libs=yes 14510 dynamic_linker='GNU ld.so' 14511 ;; 14512 14513netbsd*) 14514 version_type=sunos 14515 need_lib_prefix=no 14516 need_version=no 14517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14520 dynamic_linker='NetBSD (a.out) ld.so' 14521 else 14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14523 soname_spec='${libname}${release}${shared_ext}$major' 14524 dynamic_linker='NetBSD ld.elf_so' 14525 fi 14526 shlibpath_var=LD_LIBRARY_PATH 14527 shlibpath_overrides_runpath=yes 14528 hardcode_into_libs=yes 14529 ;; 14530 14531newsos6) 14532 version_type=linux 14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14534 shlibpath_var=LD_LIBRARY_PATH 14535 shlibpath_overrides_runpath=yes 14536 ;; 14537 14538nto-qnx*) 14539 version_type=linux 14540 need_lib_prefix=no 14541 need_version=no 14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14543 soname_spec='${libname}${release}${shared_ext}$major' 14544 shlibpath_var=LD_LIBRARY_PATH 14545 shlibpath_overrides_runpath=yes 14546 ;; 14547 14548openbsd*) 14549 version_type=sunos 14550 sys_lib_dlsearch_path_spec="/usr/lib" 14551 need_lib_prefix=no 14552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14553 case $host_os in 14554 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14555 *) need_version=no ;; 14556 esac 14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14559 shlibpath_var=LD_LIBRARY_PATH 14560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14561 case $host_os in 14562 openbsd2.[89] | openbsd2.[89].*) 14563 shlibpath_overrides_runpath=no 14564 ;; 14565 *) 14566 shlibpath_overrides_runpath=yes 14567 ;; 14568 esac 14569 else 14570 shlibpath_overrides_runpath=yes 14571 fi 14572 ;; 14573 14574os2*) 14575 libname_spec='$name' 14576 shrext_cmds=".dll" 14577 need_lib_prefix=no 14578 library_names_spec='$libname${shared_ext} $libname.a' 14579 dynamic_linker='OS/2 ld.exe' 14580 shlibpath_var=LIBPATH 14581 ;; 14582 14583osf3* | osf4* | osf5*) 14584 version_type=osf 14585 need_lib_prefix=no 14586 need_version=no 14587 soname_spec='${libname}${release}${shared_ext}$major' 14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14589 shlibpath_var=LD_LIBRARY_PATH 14590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14592 ;; 14593 14594solaris*) 14595 version_type=linux 14596 need_lib_prefix=no 14597 need_version=no 14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14599 soname_spec='${libname}${release}${shared_ext}$major' 14600 shlibpath_var=LD_LIBRARY_PATH 14601 shlibpath_overrides_runpath=yes 14602 hardcode_into_libs=yes 14603 # ldd complains unless libraries are executable 14604 postinstall_cmds='chmod +x $lib' 14605 ;; 14606 14607sunos4*) 14608 version_type=sunos 14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14611 shlibpath_var=LD_LIBRARY_PATH 14612 shlibpath_overrides_runpath=yes 14613 if test "$with_gnu_ld" = yes; then 14614 need_lib_prefix=no 14615 fi 14616 need_version=yes 14617 ;; 14618 14619sysv4 | sysv4.3*) 14620 version_type=linux 14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14622 soname_spec='${libname}${release}${shared_ext}$major' 14623 shlibpath_var=LD_LIBRARY_PATH 14624 case $host_vendor in 14625 sni) 14626 shlibpath_overrides_runpath=no 14627 need_lib_prefix=no 14628 export_dynamic_flag_spec='${wl}-Blargedynsym' 14629 runpath_var=LD_RUN_PATH 14630 ;; 14631 siemens) 14632 need_lib_prefix=no 14633 ;; 14634 motorola) 14635 need_lib_prefix=no 14636 need_version=no 14637 shlibpath_overrides_runpath=no 14638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14639 ;; 14640 esac 14641 ;; 14642 14643sysv4*MP*) 14644 if test -d /usr/nec ;then 14645 version_type=linux 14646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14647 soname_spec='$libname${shared_ext}.$major' 14648 shlibpath_var=LD_LIBRARY_PATH 14649 fi 14650 ;; 14651 14652sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14653 version_type=freebsd-elf 14654 need_lib_prefix=no 14655 need_version=no 14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14657 soname_spec='${libname}${release}${shared_ext}$major' 14658 shlibpath_var=LD_LIBRARY_PATH 14659 hardcode_into_libs=yes 14660 if test "$with_gnu_ld" = yes; then 14661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14662 shlibpath_overrides_runpath=no 14663 else 14664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14665 shlibpath_overrides_runpath=yes 14666 case $host_os in 14667 sco3.2v5*) 14668 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14669 ;; 14670 esac 14671 fi 14672 sys_lib_dlsearch_path_spec='/usr/lib' 14673 ;; 14674 14675uts4*) 14676 version_type=linux 14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14678 soname_spec='${libname}${release}${shared_ext}$major' 14679 shlibpath_var=LD_LIBRARY_PATH 14680 ;; 14681 14682*) 14683 dynamic_linker=no 14684 ;; 14685esac 14686echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14687echo "${ECHO_T}$dynamic_linker" >&6 14688test "$dynamic_linker" = no && can_build_shared=no 14689 14690variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14691if test "$GCC" = yes; then 14692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14693fi 14694 14695echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14696echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14697hardcode_action_F77= 14698if test -n "$hardcode_libdir_flag_spec_F77" || \ 14699 test -n "$runpath_var_F77" || \ 14700 test "X$hardcode_automatic_F77" = "Xyes" ; then 14701 14702 # We can hardcode non-existant directories. 14703 if test "$hardcode_direct_F77" != no && 14704 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14705 # have to relink, otherwise we might link with an installed library 14706 # when we should be linking with a yet-to-be-installed one 14707 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14708 test "$hardcode_minus_L_F77" != no; then 14709 # Linking always hardcodes the temporary library directory. 14710 hardcode_action_F77=relink 14711 else 14712 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14713 hardcode_action_F77=immediate 14714 fi 14715else 14716 # We cannot hardcode anything, or else we can only hardcode existing 14717 # directories. 14718 hardcode_action_F77=unsupported 14719fi 14720echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14721echo "${ECHO_T}$hardcode_action_F77" >&6 14722 14723if test "$hardcode_action_F77" = relink; then 14724 # Fast installation is not supported 14725 enable_fast_install=no 14726elif test "$shlibpath_overrides_runpath" = yes || 14727 test "$enable_shared" = no; then 14728 # Fast installation is not necessary 14729 enable_fast_install=needless 14730fi 14731 14732 14733# The else clause should only fire when bootstrapping the 14734# libtool distribution, otherwise you forgot to ship ltmain.sh 14735# with your package, and you will get complaints that there are 14736# no rules to generate ltmain.sh. 14737if test -f "$ltmain"; then 14738 # See if we are running on zsh, and set the options which allow our commands through 14739 # without removal of \ escapes. 14740 if test -n "${ZSH_VERSION+set}" ; then 14741 setopt NO_GLOB_SUBST 14742 fi 14743 # Now quote all the things that may contain metacharacters while being 14744 # careful not to overquote the AC_SUBSTed values. We take copies of the 14745 # variables and quote the copies for generation of the libtool script. 14746 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14747 SED SHELL STRIP \ 14748 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14749 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14750 deplibs_check_method reload_flag reload_cmds need_locks \ 14751 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14752 lt_cv_sys_global_symbol_to_c_name_address \ 14753 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14754 old_postinstall_cmds old_postuninstall_cmds \ 14755 compiler_F77 \ 14756 CC_F77 \ 14757 LD_F77 \ 14758 lt_prog_compiler_wl_F77 \ 14759 lt_prog_compiler_pic_F77 \ 14760 lt_prog_compiler_static_F77 \ 14761 lt_prog_compiler_no_builtin_flag_F77 \ 14762 export_dynamic_flag_spec_F77 \ 14763 thread_safe_flag_spec_F77 \ 14764 whole_archive_flag_spec_F77 \ 14765 enable_shared_with_static_runtimes_F77 \ 14766 old_archive_cmds_F77 \ 14767 old_archive_from_new_cmds_F77 \ 14768 predep_objects_F77 \ 14769 postdep_objects_F77 \ 14770 predeps_F77 \ 14771 postdeps_F77 \ 14772 compiler_lib_search_path_F77 \ 14773 archive_cmds_F77 \ 14774 archive_expsym_cmds_F77 \ 14775 postinstall_cmds_F77 \ 14776 postuninstall_cmds_F77 \ 14777 old_archive_from_expsyms_cmds_F77 \ 14778 allow_undefined_flag_F77 \ 14779 no_undefined_flag_F77 \ 14780 export_symbols_cmds_F77 \ 14781 hardcode_libdir_flag_spec_F77 \ 14782 hardcode_libdir_flag_spec_ld_F77 \ 14783 hardcode_libdir_separator_F77 \ 14784 hardcode_automatic_F77 \ 14785 module_cmds_F77 \ 14786 module_expsym_cmds_F77 \ 14787 lt_cv_prog_compiler_c_o_F77 \ 14788 exclude_expsyms_F77 \ 14789 include_expsyms_F77; do 14790 14791 case $var in 14792 old_archive_cmds_F77 | \ 14793 old_archive_from_new_cmds_F77 | \ 14794 archive_cmds_F77 | \ 14795 archive_expsym_cmds_F77 | \ 14796 module_cmds_F77 | \ 14797 module_expsym_cmds_F77 | \ 14798 old_archive_from_expsyms_cmds_F77 | \ 14799 export_symbols_cmds_F77 | \ 14800 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14801 postinstall_cmds | postuninstall_cmds | \ 14802 old_postinstall_cmds | old_postuninstall_cmds | \ 14803 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14804 # Double-quote double-evaled strings. 14805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14806 ;; 14807 *) 14808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14809 ;; 14810 esac 14811 done 14812 14813 case $lt_echo in 14814 *'\$0 --fallback-echo"') 14815 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14816 ;; 14817 esac 14818 14819cfgfile="$ofile" 14820 14821 cat <<__EOF__ >> "$cfgfile" 14822# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14823 14824# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14825 14826# Shell to use when invoking shell scripts. 14827SHELL=$lt_SHELL 14828 14829# Whether or not to build shared libraries. 14830build_libtool_libs=$enable_shared 14831 14832# Whether or not to build static libraries. 14833build_old_libs=$enable_static 14834 14835# Whether or not to add -lc for building shared libraries. 14836build_libtool_need_lc=$archive_cmds_need_lc_F77 14837 14838# Whether or not to disallow shared libs when runtime libs are static 14839allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14840 14841# Whether or not to optimize for fast installation. 14842fast_install=$enable_fast_install 14843 14844# The host system. 14845host_alias=$host_alias 14846host=$host 14847host_os=$host_os 14848 14849# The build system. 14850build_alias=$build_alias 14851build=$build 14852build_os=$build_os 14853 14854# An echo program that does not interpret backslashes. 14855echo=$lt_echo 14856 14857# The archiver. 14858AR=$lt_AR 14859AR_FLAGS=$lt_AR_FLAGS 14860 14861# A C compiler. 14862LTCC=$lt_LTCC 14863 14864# LTCC compiler flags. 14865LTCFLAGS=$lt_LTCFLAGS 14866 14867# A language-specific compiler. 14868CC=$lt_compiler_F77 14869 14870# Is the compiler the GNU C compiler? 14871with_gcc=$GCC_F77 14872 14873# An ERE matcher. 14874EGREP=$lt_EGREP 14875 14876# The linker used to build libraries. 14877LD=$lt_LD_F77 14878 14879# Whether we need hard or soft links. 14880LN_S=$lt_LN_S 14881 14882# A BSD-compatible nm program. 14883NM=$lt_NM 14884 14885# A symbol stripping program 14886STRIP=$lt_STRIP 14887 14888# Used to examine libraries when file_magic_cmd begins "file" 14889MAGIC_CMD=$MAGIC_CMD 14890 14891# Used on cygwin: DLL creation program. 14892DLLTOOL="$DLLTOOL" 14893 14894# Used on cygwin: object dumper. 14895OBJDUMP="$OBJDUMP" 14896 14897# Used on cygwin: assembler. 14898AS="$AS" 14899 14900# The name of the directory that contains temporary libtool files. 14901objdir=$objdir 14902 14903# How to create reloadable object files. 14904reload_flag=$lt_reload_flag 14905reload_cmds=$lt_reload_cmds 14906 14907# How to pass a linker flag through the compiler. 14908wl=$lt_lt_prog_compiler_wl_F77 14909 14910# Object file suffix (normally "o"). 14911objext="$ac_objext" 14912 14913# Old archive suffix (normally "a"). 14914libext="$libext" 14915 14916# Shared library suffix (normally ".so"). 14917shrext_cmds='$shrext_cmds' 14918 14919# Executable file suffix (normally ""). 14920exeext="$exeext" 14921 14922# Additional compiler flags for building library objects. 14923pic_flag=$lt_lt_prog_compiler_pic_F77 14924pic_mode=$pic_mode 14925 14926# What is the maximum length of a command? 14927max_cmd_len=$lt_cv_sys_max_cmd_len 14928 14929# Does compiler simultaneously support -c and -o options? 14930compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14931 14932# Must we lock files when doing compilation? 14933need_locks=$lt_need_locks 14934 14935# Do we need the lib prefix for modules? 14936need_lib_prefix=$need_lib_prefix 14937 14938# Do we need a version for libraries? 14939need_version=$need_version 14940 14941# Whether dlopen is supported. 14942dlopen_support=$enable_dlopen 14943 14944# Whether dlopen of programs is supported. 14945dlopen_self=$enable_dlopen_self 14946 14947# Whether dlopen of statically linked programs is supported. 14948dlopen_self_static=$enable_dlopen_self_static 14949 14950# Compiler flag to prevent dynamic linking. 14951link_static_flag=$lt_lt_prog_compiler_static_F77 14952 14953# Compiler flag to turn off builtin functions. 14954no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14955 14956# Compiler flag to allow reflexive dlopens. 14957export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14958 14959# Compiler flag to generate shared objects directly from archives. 14960whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14961 14962# Compiler flag to generate thread-safe objects. 14963thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14964 14965# Library versioning type. 14966version_type=$version_type 14967 14968# Format of library name prefix. 14969libname_spec=$lt_libname_spec 14970 14971# List of archive names. First name is the real one, the rest are links. 14972# The last name is the one that the linker finds with -lNAME. 14973library_names_spec=$lt_library_names_spec 14974 14975# The coded name of the library, if different from the real name. 14976soname_spec=$lt_soname_spec 14977 14978# Commands used to build and install an old-style archive. 14979RANLIB=$lt_RANLIB 14980old_archive_cmds=$lt_old_archive_cmds_F77 14981old_postinstall_cmds=$lt_old_postinstall_cmds 14982old_postuninstall_cmds=$lt_old_postuninstall_cmds 14983 14984# Create an old-style archive from a shared archive. 14985old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14986 14987# Create a temporary old-style archive to link instead of a shared archive. 14988old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14989 14990# Commands used to build and install a shared archive. 14991archive_cmds=$lt_archive_cmds_F77 14992archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14993postinstall_cmds=$lt_postinstall_cmds 14994postuninstall_cmds=$lt_postuninstall_cmds 14995 14996# Commands used to build a loadable module (assumed same as above if empty) 14997module_cmds=$lt_module_cmds_F77 14998module_expsym_cmds=$lt_module_expsym_cmds_F77 14999 15000# Commands to strip libraries. 15001old_striplib=$lt_old_striplib 15002striplib=$lt_striplib 15003 15004# Dependencies to place before the objects being linked to create a 15005# shared library. 15006predep_objects=$lt_predep_objects_F77 15007 15008# Dependencies to place after the objects being linked to create a 15009# shared library. 15010postdep_objects=$lt_postdep_objects_F77 15011 15012# Dependencies to place before the objects being linked to create a 15013# shared library. 15014predeps=$lt_predeps_F77 15015 15016# Dependencies to place after the objects being linked to create a 15017# shared library. 15018postdeps=$lt_postdeps_F77 15019 15020# The library search path used internally by the compiler when linking 15021# a shared library. 15022compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15023 15024# Method to check whether dependent libraries are shared objects. 15025deplibs_check_method=$lt_deplibs_check_method 15026 15027# Command to use when deplibs_check_method == file_magic. 15028file_magic_cmd=$lt_file_magic_cmd 15029 15030# Flag that allows shared libraries with undefined symbols to be built. 15031allow_undefined_flag=$lt_allow_undefined_flag_F77 15032 15033# Flag that forces no undefined symbols. 15034no_undefined_flag=$lt_no_undefined_flag_F77 15035 15036# Commands used to finish a libtool library installation in a directory. 15037finish_cmds=$lt_finish_cmds 15038 15039# Same as above, but a single script fragment to be evaled but not shown. 15040finish_eval=$lt_finish_eval 15041 15042# Take the output of nm and produce a listing of raw symbols and C names. 15043global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15044 15045# Transform the output of nm in a proper C declaration 15046global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15047 15048# Transform the output of nm in a C name address pair 15049global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15050 15051# This is the shared library runtime path variable. 15052runpath_var=$runpath_var 15053 15054# This is the shared library path variable. 15055shlibpath_var=$shlibpath_var 15056 15057# Is shlibpath searched before the hard-coded library search path? 15058shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15059 15060# How to hardcode a shared library path into an executable. 15061hardcode_action=$hardcode_action_F77 15062 15063# Whether we should hardcode library paths into libraries. 15064hardcode_into_libs=$hardcode_into_libs 15065 15066# Flag to hardcode \$libdir into a binary during linking. 15067# This must work even if \$libdir does not exist. 15068hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15069 15070# If ld is used when linking, flag to hardcode \$libdir into 15071# a binary during linking. This must work even if \$libdir does 15072# not exist. 15073hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15074 15075# Whether we need a single -rpath flag with a separated argument. 15076hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15077 15078# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15079# resulting binary. 15080hardcode_direct=$hardcode_direct_F77 15081 15082# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15083# resulting binary. 15084hardcode_minus_L=$hardcode_minus_L_F77 15085 15086# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15087# the resulting binary. 15088hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15089 15090# Set to yes if building a shared library automatically hardcodes DIR into the library 15091# and all subsequent libraries and executables linked against it. 15092hardcode_automatic=$hardcode_automatic_F77 15093 15094# Variables whose values should be saved in libtool wrapper scripts and 15095# restored at relink time. 15096variables_saved_for_relink="$variables_saved_for_relink" 15097 15098# Whether libtool must link a program against all its dependency libraries. 15099link_all_deplibs=$link_all_deplibs_F77 15100 15101# Compile-time system search path for libraries 15102sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15103 15104# Run-time system search path for libraries 15105sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15106 15107# Fix the shell variable \$srcfile for the compiler. 15108fix_srcfile_path="$fix_srcfile_path_F77" 15109 15110# Set to yes if exported symbols are required. 15111always_export_symbols=$always_export_symbols_F77 15112 15113# The commands to list exported symbols. 15114export_symbols_cmds=$lt_export_symbols_cmds_F77 15115 15116# The commands to extract the exported symbol list from a shared archive. 15117extract_expsyms_cmds=$lt_extract_expsyms_cmds 15118 15119# Symbols that should not be listed in the preloaded symbols. 15120exclude_expsyms=$lt_exclude_expsyms_F77 15121 15122# Symbols that must always be exported. 15123include_expsyms=$lt_include_expsyms_F77 15124 15125# ### END LIBTOOL TAG CONFIG: $tagname 15126 15127__EOF__ 15128 15129 15130else 15131 # If there is no Makefile yet, we rely on a make rule to execute 15132 # `config.status --recheck' to rerun these tests and create the 15133 # libtool script then. 15134 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15135 if test -f "$ltmain_in"; then 15136 test -f Makefile && make "$ltmain" 15137 fi 15138fi 15139 15140 15141ac_ext=c 15142ac_cpp='$CPP $CPPFLAGS' 15143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15145ac_compiler_gnu=$ac_cv_c_compiler_gnu 15146 15147CC="$lt_save_CC" 15148 15149 else 15150 tagname="" 15151 fi 15152 ;; 15153 15154 GCJ) 15155 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15156 15157 15158 15159# Source file extension for Java test sources. 15160ac_ext=java 15161 15162# Object file extension for compiled Java test sources. 15163objext=o 15164objext_GCJ=$objext 15165 15166# Code to be used in simple compile tests 15167lt_simple_compile_test_code="class foo {}\n" 15168 15169# Code to be used in simple link tests 15170lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15171 15172# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15173 15174# If no C compiler was specified, use CC. 15175LTCC=${LTCC-"$CC"} 15176 15177# If no C compiler flags were specified, use CFLAGS. 15178LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15179 15180# Allow CC to be a program name with arguments. 15181compiler=$CC 15182 15183 15184# save warnings/boilerplate of simple test code 15185ac_outfile=conftest.$ac_objext 15186printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15187eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15188_lt_compiler_boilerplate=`cat conftest.err` 15189$rm conftest* 15190 15191ac_outfile=conftest.$ac_objext 15192printf "$lt_simple_link_test_code" >conftest.$ac_ext 15193eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15194_lt_linker_boilerplate=`cat conftest.err` 15195$rm conftest* 15196 15197 15198# Allow CC to be a program name with arguments. 15199lt_save_CC="$CC" 15200CC=${GCJ-"gcj"} 15201compiler=$CC 15202compiler_GCJ=$CC 15203for cc_temp in $compiler""; do 15204 case $cc_temp in 15205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15207 \-*) ;; 15208 *) break;; 15209 esac 15210done 15211cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15212 15213 15214# GCJ did not exist at the time GCC didn't implicitly link libc in. 15215archive_cmds_need_lc_GCJ=no 15216 15217old_archive_cmds_GCJ=$old_archive_cmds 15218 15219 15220lt_prog_compiler_no_builtin_flag_GCJ= 15221 15222if test "$GCC" = yes; then 15223 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15224 15225 15226echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15227echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15228if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15229 echo $ECHO_N "(cached) $ECHO_C" >&6 15230else 15231 lt_cv_prog_compiler_rtti_exceptions=no 15232 ac_outfile=conftest.$ac_objext 15233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15234 lt_compiler_flag="-fno-rtti -fno-exceptions" 15235 # Insert the option either (1) after the last *FLAGS variable, or 15236 # (2) before a word containing "conftest.", or (3) at the end. 15237 # Note that $ac_compile itself does not contain backslashes and begins 15238 # with a dollar sign (not a hyphen), so the echo should work correctly. 15239 # The option is referenced via a variable to avoid confusing sed. 15240 lt_compile=`echo "$ac_compile" | $SED \ 15241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15243 -e 's:$: $lt_compiler_flag:'` 15244 (eval echo "\"\$as_me:15244: $lt_compile\"" >&5) 15245 (eval "$lt_compile" 2>conftest.err) 15246 ac_status=$? 15247 cat conftest.err >&5 15248 echo "$as_me:15248: \$? = $ac_status" >&5 15249 if (exit $ac_status) && test -s "$ac_outfile"; then 15250 # The compiler can only warn and ignore the option if not recognized 15251 # So say no if there are warnings other than the usual output. 15252 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15255 lt_cv_prog_compiler_rtti_exceptions=yes 15256 fi 15257 fi 15258 $rm conftest* 15259 15260fi 15261echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15262echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15263 15264if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15265 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15266else 15267 : 15268fi 15269 15270fi 15271 15272lt_prog_compiler_wl_GCJ= 15273lt_prog_compiler_pic_GCJ= 15274lt_prog_compiler_static_GCJ= 15275 15276echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15277echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15278 15279 if test "$GCC" = yes; then 15280 lt_prog_compiler_wl_GCJ='-Wl,' 15281 lt_prog_compiler_static_GCJ='-static' 15282 15283 case $host_os in 15284 aix*) 15285 # All AIX code is PIC. 15286 if test "$host_cpu" = ia64; then 15287 # AIX 5 now supports IA64 processor 15288 lt_prog_compiler_static_GCJ='-Bstatic' 15289 fi 15290 ;; 15291 15292 amigaos*) 15293 # FIXME: we need at least 68020 code to build shared libraries, but 15294 # adding the `-m68020' flag to GCC prevents building anything better, 15295 # like `-m68040'. 15296 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15297 ;; 15298 15299 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15300 # PIC is the default for these OSes. 15301 ;; 15302 15303 mingw* | pw32* | os2*) 15304 # This hack is so that the source file can tell whether it is being 15305 # built for inclusion in a dll (and should export symbols for example). 15306 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15307 ;; 15308 15309 darwin* | rhapsody*) 15310 # PIC is the default on this platform 15311 # Common symbols not allowed in MH_DYLIB files 15312 lt_prog_compiler_pic_GCJ='-fno-common' 15313 ;; 15314 15315 interix3*) 15316 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15317 # Instead, we relocate shared libraries at runtime. 15318 ;; 15319 15320 msdosdjgpp*) 15321 # Just because we use GCC doesn't mean we suddenly get shared libraries 15322 # on systems that don't support them. 15323 lt_prog_compiler_can_build_shared_GCJ=no 15324 enable_shared=no 15325 ;; 15326 15327 sysv4*MP*) 15328 if test -d /usr/nec; then 15329 lt_prog_compiler_pic_GCJ=-Kconform_pic 15330 fi 15331 ;; 15332 15333 hpux*) 15334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15335 # not for PA HP-UX. 15336 case $host_cpu in 15337 hppa*64*|ia64*) 15338 # +Z the default 15339 ;; 15340 *) 15341 lt_prog_compiler_pic_GCJ='-fPIC' 15342 ;; 15343 esac 15344 ;; 15345 15346 *) 15347 lt_prog_compiler_pic_GCJ='-fPIC' 15348 ;; 15349 esac 15350 else 15351 # PORTME Check for flag to pass linker flags through the system compiler. 15352 case $host_os in 15353 aix*) 15354 lt_prog_compiler_wl_GCJ='-Wl,' 15355 if test "$host_cpu" = ia64; then 15356 # AIX 5 now supports IA64 processor 15357 lt_prog_compiler_static_GCJ='-Bstatic' 15358 else 15359 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15360 fi 15361 ;; 15362 darwin*) 15363 # PIC is the default on this platform 15364 # Common symbols not allowed in MH_DYLIB files 15365 case $cc_basename in 15366 xlc*) 15367 lt_prog_compiler_pic_GCJ='-qnocommon' 15368 lt_prog_compiler_wl_GCJ='-Wl,' 15369 ;; 15370 esac 15371 ;; 15372 15373 mingw* | pw32* | os2*) 15374 # This hack is so that the source file can tell whether it is being 15375 # built for inclusion in a dll (and should export symbols for example). 15376 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15377 ;; 15378 15379 hpux9* | hpux10* | hpux11*) 15380 lt_prog_compiler_wl_GCJ='-Wl,' 15381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15382 # not for PA HP-UX. 15383 case $host_cpu in 15384 hppa*64*|ia64*) 15385 # +Z the default 15386 ;; 15387 *) 15388 lt_prog_compiler_pic_GCJ='+Z' 15389 ;; 15390 esac 15391 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15392 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15393 ;; 15394 15395 irix5* | irix6* | nonstopux*) 15396 lt_prog_compiler_wl_GCJ='-Wl,' 15397 # PIC (with -KPIC) is the default. 15398 lt_prog_compiler_static_GCJ='-non_shared' 15399 ;; 15400 15401 newsos6) 15402 lt_prog_compiler_pic_GCJ='-KPIC' 15403 lt_prog_compiler_static_GCJ='-Bstatic' 15404 ;; 15405 15406 linux*) 15407 case $cc_basename in 15408 icc* | ecc*) 15409 lt_prog_compiler_wl_GCJ='-Wl,' 15410 lt_prog_compiler_pic_GCJ='-KPIC' 15411 lt_prog_compiler_static_GCJ='-static' 15412 ;; 15413 pgcc* | pgf77* | pgf90* | pgf95*) 15414 # Portland Group compilers (*not* the Pentium gcc compiler, 15415 # which looks to be a dead project) 15416 lt_prog_compiler_wl_GCJ='-Wl,' 15417 lt_prog_compiler_pic_GCJ='-fpic' 15418 lt_prog_compiler_static_GCJ='-Bstatic' 15419 ;; 15420 ccc*) 15421 lt_prog_compiler_wl_GCJ='-Wl,' 15422 # All Alpha code is PIC. 15423 lt_prog_compiler_static_GCJ='-non_shared' 15424 ;; 15425 esac 15426 ;; 15427 15428 osf3* | osf4* | osf5*) 15429 lt_prog_compiler_wl_GCJ='-Wl,' 15430 # All OSF/1 code is PIC. 15431 lt_prog_compiler_static_GCJ='-non_shared' 15432 ;; 15433 15434 solaris*) 15435 lt_prog_compiler_pic_GCJ='-KPIC' 15436 lt_prog_compiler_static_GCJ='-Bstatic' 15437 case $cc_basename in 15438 f77* | f90* | f95*) 15439 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15440 *) 15441 lt_prog_compiler_wl_GCJ='-Wl,';; 15442 esac 15443 ;; 15444 15445 sunos4*) 15446 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15447 lt_prog_compiler_pic_GCJ='-PIC' 15448 lt_prog_compiler_static_GCJ='-Bstatic' 15449 ;; 15450 15451 sysv4 | sysv4.2uw2* | sysv4.3*) 15452 lt_prog_compiler_wl_GCJ='-Wl,' 15453 lt_prog_compiler_pic_GCJ='-KPIC' 15454 lt_prog_compiler_static_GCJ='-Bstatic' 15455 ;; 15456 15457 sysv4*MP*) 15458 if test -d /usr/nec ;then 15459 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15460 lt_prog_compiler_static_GCJ='-Bstatic' 15461 fi 15462 ;; 15463 15464 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15465 lt_prog_compiler_wl_GCJ='-Wl,' 15466 lt_prog_compiler_pic_GCJ='-KPIC' 15467 lt_prog_compiler_static_GCJ='-Bstatic' 15468 ;; 15469 15470 unicos*) 15471 lt_prog_compiler_wl_GCJ='-Wl,' 15472 lt_prog_compiler_can_build_shared_GCJ=no 15473 ;; 15474 15475 uts4*) 15476 lt_prog_compiler_pic_GCJ='-pic' 15477 lt_prog_compiler_static_GCJ='-Bstatic' 15478 ;; 15479 15480 *) 15481 lt_prog_compiler_can_build_shared_GCJ=no 15482 ;; 15483 esac 15484 fi 15485 15486echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15487echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15488 15489# 15490# Check to make sure the PIC flag actually works. 15491# 15492if test -n "$lt_prog_compiler_pic_GCJ"; then 15493 15494echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15495echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15496if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15497 echo $ECHO_N "(cached) $ECHO_C" >&6 15498else 15499 lt_prog_compiler_pic_works_GCJ=no 15500 ac_outfile=conftest.$ac_objext 15501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15502 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15503 # Insert the option either (1) after the last *FLAGS variable, or 15504 # (2) before a word containing "conftest.", or (3) at the end. 15505 # Note that $ac_compile itself does not contain backslashes and begins 15506 # with a dollar sign (not a hyphen), so the echo should work correctly. 15507 # The option is referenced via a variable to avoid confusing sed. 15508 lt_compile=`echo "$ac_compile" | $SED \ 15509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15511 -e 's:$: $lt_compiler_flag:'` 15512 (eval echo "\"\$as_me:15512: $lt_compile\"" >&5) 15513 (eval "$lt_compile" 2>conftest.err) 15514 ac_status=$? 15515 cat conftest.err >&5 15516 echo "$as_me:15516: \$? = $ac_status" >&5 15517 if (exit $ac_status) && test -s "$ac_outfile"; then 15518 # The compiler can only warn and ignore the option if not recognized 15519 # So say no if there are warnings other than the usual output. 15520 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15523 lt_prog_compiler_pic_works_GCJ=yes 15524 fi 15525 fi 15526 $rm conftest* 15527 15528fi 15529echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15530echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15531 15532if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15533 case $lt_prog_compiler_pic_GCJ in 15534 "" | " "*) ;; 15535 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15536 esac 15537else 15538 lt_prog_compiler_pic_GCJ= 15539 lt_prog_compiler_can_build_shared_GCJ=no 15540fi 15541 15542fi 15543case $host_os in 15544 # For platforms which do not support PIC, -DPIC is meaningless: 15545 *djgpp*) 15546 lt_prog_compiler_pic_GCJ= 15547 ;; 15548 *) 15549 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15550 ;; 15551esac 15552 15553# 15554# Check to make sure the static flag actually works. 15555# 15556wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15557echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15558echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15559if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15560 echo $ECHO_N "(cached) $ECHO_C" >&6 15561else 15562 lt_prog_compiler_static_works_GCJ=no 15563 save_LDFLAGS="$LDFLAGS" 15564 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15565 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15567 # The linker can only warn and ignore the option if not recognized 15568 # So say no if there are warnings 15569 if test -s conftest.err; then 15570 # Append any errors to the config.log. 15571 cat conftest.err 1>&5 15572 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15574 if diff conftest.exp conftest.er2 >/dev/null; then 15575 lt_prog_compiler_static_works_GCJ=yes 15576 fi 15577 else 15578 lt_prog_compiler_static_works_GCJ=yes 15579 fi 15580 fi 15581 $rm conftest* 15582 LDFLAGS="$save_LDFLAGS" 15583 15584fi 15585echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15586echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15587 15588if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15589 : 15590else 15591 lt_prog_compiler_static_GCJ= 15592fi 15593 15594 15595echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15596echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15597if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15598 echo $ECHO_N "(cached) $ECHO_C" >&6 15599else 15600 lt_cv_prog_compiler_c_o_GCJ=no 15601 $rm -r conftest 2>/dev/null 15602 mkdir conftest 15603 cd conftest 15604 mkdir out 15605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15606 15607 lt_compiler_flag="-o out/conftest2.$ac_objext" 15608 # Insert the option either (1) after the last *FLAGS variable, or 15609 # (2) before a word containing "conftest.", or (3) at the end. 15610 # Note that $ac_compile itself does not contain backslashes and begins 15611 # with a dollar sign (not a hyphen), so the echo should work correctly. 15612 lt_compile=`echo "$ac_compile" | $SED \ 15613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15615 -e 's:$: $lt_compiler_flag:'` 15616 (eval echo "\"\$as_me:15616: $lt_compile\"" >&5) 15617 (eval "$lt_compile" 2>out/conftest.err) 15618 ac_status=$? 15619 cat out/conftest.err >&5 15620 echo "$as_me:15620: \$? = $ac_status" >&5 15621 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15622 then 15623 # The compiler can only warn and ignore the option if not recognized 15624 # So say no if there are warnings 15625 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15628 lt_cv_prog_compiler_c_o_GCJ=yes 15629 fi 15630 fi 15631 chmod u+w . 2>&5 15632 $rm conftest* 15633 # SGI C++ compiler will create directory out/ii_files/ for 15634 # template instantiation 15635 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15636 $rm out/* && rmdir out 15637 cd .. 15638 rmdir conftest 15639 $rm conftest* 15640 15641fi 15642echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15643echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15644 15645 15646hard_links="nottested" 15647if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15648 # do not overwrite the value of need_locks provided by the user 15649 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15650echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15651 hard_links=yes 15652 $rm conftest* 15653 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15654 touch conftest.a 15655 ln conftest.a conftest.b 2>&5 || hard_links=no 15656 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15657 echo "$as_me:$LINENO: result: $hard_links" >&5 15658echo "${ECHO_T}$hard_links" >&6 15659 if test "$hard_links" = no; then 15660 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15661echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15662 need_locks=warn 15663 fi 15664else 15665 need_locks=no 15666fi 15667 15668echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15669echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15670 15671 runpath_var= 15672 allow_undefined_flag_GCJ= 15673 enable_shared_with_static_runtimes_GCJ=no 15674 archive_cmds_GCJ= 15675 archive_expsym_cmds_GCJ= 15676 old_archive_From_new_cmds_GCJ= 15677 old_archive_from_expsyms_cmds_GCJ= 15678 export_dynamic_flag_spec_GCJ= 15679 whole_archive_flag_spec_GCJ= 15680 thread_safe_flag_spec_GCJ= 15681 hardcode_libdir_flag_spec_GCJ= 15682 hardcode_libdir_flag_spec_ld_GCJ= 15683 hardcode_libdir_separator_GCJ= 15684 hardcode_direct_GCJ=no 15685 hardcode_minus_L_GCJ=no 15686 hardcode_shlibpath_var_GCJ=unsupported 15687 link_all_deplibs_GCJ=unknown 15688 hardcode_automatic_GCJ=no 15689 module_cmds_GCJ= 15690 module_expsym_cmds_GCJ= 15691 always_export_symbols_GCJ=no 15692 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15693 # include_expsyms should be a list of space-separated symbols to be *always* 15694 # included in the symbol list 15695 include_expsyms_GCJ= 15696 # exclude_expsyms can be an extended regexp of symbols to exclude 15697 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15698 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15699 # as well as any symbol that contains `d'. 15700 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15701 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15702 # platforms (ab)use it in PIC code, but their linkers get confused if 15703 # the symbol is explicitly referenced. Since portable code cannot 15704 # rely on this symbol name, it's probably fine to never include it in 15705 # preloaded symbol tables. 15706 extract_expsyms_cmds= 15707 # Just being paranoid about ensuring that cc_basename is set. 15708 for cc_temp in $compiler""; do 15709 case $cc_temp in 15710 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15711 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15712 \-*) ;; 15713 *) break;; 15714 esac 15715done 15716cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15717 15718 case $host_os in 15719 cygwin* | mingw* | pw32*) 15720 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15721 # When not using gcc, we currently assume that we are using 15722 # Microsoft Visual C++. 15723 if test "$GCC" != yes; then 15724 with_gnu_ld=no 15725 fi 15726 ;; 15727 interix*) 15728 # we just hope/assume this is gcc and not c89 (= MSVC++) 15729 with_gnu_ld=yes 15730 ;; 15731 openbsd*) 15732 with_gnu_ld=no 15733 ;; 15734 esac 15735 15736 ld_shlibs_GCJ=yes 15737 if test "$with_gnu_ld" = yes; then 15738 # If archive_cmds runs LD, not CC, wlarc should be empty 15739 wlarc='${wl}' 15740 15741 # Set some defaults for GNU ld with shared library support. These 15742 # are reset later if shared libraries are not supported. Putting them 15743 # here allows them to be overridden if necessary. 15744 runpath_var=LD_RUN_PATH 15745 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15746 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15747 # ancient GNU ld didn't support --whole-archive et. al. 15748 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15749 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15750 else 15751 whole_archive_flag_spec_GCJ= 15752 fi 15753 supports_anon_versioning=no 15754 case `$LD -v 2>/dev/null` in 15755 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15756 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15757 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15758 *\ 2.11.*) ;; # other 2.11 versions 15759 *) supports_anon_versioning=yes ;; 15760 esac 15761 15762 # See if GNU ld supports shared libraries. 15763 case $host_os in 15764 aix3* | aix4* | aix5*) 15765 # On AIX/PPC, the GNU linker is very broken 15766 if test "$host_cpu" != ia64; then 15767 ld_shlibs_GCJ=no 15768 cat <<EOF 1>&2 15769 15770*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15771*** to be unable to reliably create shared libraries on AIX. 15772*** Therefore, libtool is disabling shared libraries support. If you 15773*** really care for shared libraries, you may want to modify your PATH 15774*** so that a non-GNU linker is found, and then restart. 15775 15776EOF 15777 fi 15778 ;; 15779 15780 amigaos*) 15781 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)' 15782 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15783 hardcode_minus_L_GCJ=yes 15784 15785 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15786 # that the semantics of dynamic libraries on AmigaOS, at least up 15787 # to version 4, is to share data among multiple programs linked 15788 # with the same dynamic library. Since this doesn't match the 15789 # behavior of shared libraries on other platforms, we can't use 15790 # them. 15791 ld_shlibs_GCJ=no 15792 ;; 15793 15794 beos*) 15795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15796 allow_undefined_flag_GCJ=unsupported 15797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15798 # support --undefined. This deserves some investigation. FIXME 15799 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15800 else 15801 ld_shlibs_GCJ=no 15802 fi 15803 ;; 15804 15805 cygwin* | mingw* | pw32*) 15806 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15807 # as there is no search path for DLLs. 15808 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15809 allow_undefined_flag_GCJ=unsupported 15810 always_export_symbols_GCJ=no 15811 enable_shared_with_static_runtimes_GCJ=yes 15812 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15813 15814 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15815 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15816 # If the export-symbols file already is a .def file (1st line 15817 # is EXPORTS), use it as is; otherwise, prepend... 15818 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15819 cp $export_symbols $output_objdir/$soname.def; 15820 else 15821 echo EXPORTS > $output_objdir/$soname.def; 15822 cat $export_symbols >> $output_objdir/$soname.def; 15823 fi~ 15824 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15825 else 15826 ld_shlibs_GCJ=no 15827 fi 15828 ;; 15829 15830 interix3*) 15831 hardcode_direct_GCJ=no 15832 hardcode_shlibpath_var_GCJ=no 15833 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15834 export_dynamic_flag_spec_GCJ='${wl}-E' 15835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15836 # Instead, shared libraries are loaded at an image base (0x10000000 by 15837 # default) and relocated if they conflict, which is a slow very memory 15838 # consuming and fragmenting process. To avoid this, we pick a random, 15839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15840 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15841 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15842 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15843 ;; 15844 15845 linux*) 15846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15847 tmp_addflag= 15848 case $cc_basename,$host_cpu in 15849 pgcc*) # Portland Group C compiler 15850 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' 15851 tmp_addflag=' $pic_flag' 15852 ;; 15853 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15854 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' 15855 tmp_addflag=' $pic_flag -Mnomain' ;; 15856 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15857 tmp_addflag=' -i_dynamic' ;; 15858 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15859 tmp_addflag=' -i_dynamic -nofor_main' ;; 15860 ifc* | ifort*) # Intel Fortran compiler 15861 tmp_addflag=' -nofor_main' ;; 15862 esac 15863 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15864 15865 if test $supports_anon_versioning = yes; then 15866 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 15867 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15868 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15869 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15870 fi 15871 link_all_deplibs_GCJ=no 15872 else 15873 ld_shlibs_GCJ=no 15874 fi 15875 ;; 15876 15877 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 15878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15879 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15880 wlarc= 15881 else 15882 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15883 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15884 fi 15885 ;; 15886 15887 solaris*) 15888 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15889 ld_shlibs_GCJ=no 15890 cat <<EOF 1>&2 15891 15892*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15893*** create shared libraries on Solaris systems. Therefore, libtool 15894*** is disabling shared libraries support. We urge you to upgrade GNU 15895*** binutils to release 2.9.1 or newer. Another option is to modify 15896*** your PATH or compiler configuration so that the native linker is 15897*** used, and then restart. 15898 15899EOF 15900 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15901 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15902 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15903 else 15904 ld_shlibs_GCJ=no 15905 fi 15906 ;; 15907 15908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15909 case `$LD -v 2>&1` in 15910 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15911 ld_shlibs_GCJ=no 15912 cat <<_LT_EOF 1>&2 15913 15914*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15915*** reliably create shared libraries on SCO systems. Therefore, libtool 15916*** is disabling shared libraries support. We urge you to upgrade GNU 15917*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15918*** your PATH or compiler configuration so that the native linker is 15919*** used, and then restart. 15920 15921_LT_EOF 15922 ;; 15923 *) 15924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15925 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15926 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15927 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15928 else 15929 ld_shlibs_GCJ=no 15930 fi 15931 ;; 15932 esac 15933 ;; 15934 15935 sunos4*) 15936 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15937 wlarc= 15938 hardcode_direct_GCJ=yes 15939 hardcode_shlibpath_var_GCJ=no 15940 ;; 15941 15942 *) 15943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15944 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15945 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15946 else 15947 ld_shlibs_GCJ=no 15948 fi 15949 ;; 15950 esac 15951 15952 if test "$ld_shlibs_GCJ" = no; then 15953 runpath_var= 15954 hardcode_libdir_flag_spec_GCJ= 15955 export_dynamic_flag_spec_GCJ= 15956 whole_archive_flag_spec_GCJ= 15957 fi 15958 else 15959 # PORTME fill in a description of your system's linker (not GNU ld) 15960 case $host_os in 15961 aix3*) 15962 allow_undefined_flag_GCJ=unsupported 15963 always_export_symbols_GCJ=yes 15964 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' 15965 # Note: this linker hardcodes the directories in LIBPATH if there 15966 # are no directories specified by -L. 15967 hardcode_minus_L_GCJ=yes 15968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15969 # Neither direct hardcoding nor static linking is supported with a 15970 # broken collect2. 15971 hardcode_direct_GCJ=unsupported 15972 fi 15973 ;; 15974 15975 aix4* | aix5*) 15976 if test "$host_cpu" = ia64; then 15977 # On IA64, the linker does run time linking by default, so we don't 15978 # have to do anything special. 15979 aix_use_runtimelinking=no 15980 exp_sym_flag='-Bexport' 15981 no_entry_flag="" 15982 else 15983 # If we're using GNU nm, then we don't want the "-C" option. 15984 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15985 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15986 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' 15987 else 15988 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' 15989 fi 15990 aix_use_runtimelinking=no 15991 15992 # Test if we are trying to use run time linking or normal 15993 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15994 # need to do runtime linking. 15995 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15996 for ld_flag in $LDFLAGS; do 15997 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15998 aix_use_runtimelinking=yes 15999 break 16000 fi 16001 done 16002 ;; 16003 esac 16004 16005 exp_sym_flag='-bexport' 16006 no_entry_flag='-bnoentry' 16007 fi 16008 16009 # When large executables or shared objects are built, AIX ld can 16010 # have problems creating the table of contents. If linking a library 16011 # or program results in "error TOC overflow" add -mminimal-toc to 16012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16014 16015 archive_cmds_GCJ='' 16016 hardcode_direct_GCJ=yes 16017 hardcode_libdir_separator_GCJ=':' 16018 link_all_deplibs_GCJ=yes 16019 16020 if test "$GCC" = yes; then 16021 case $host_os in aix4.[012]|aix4.[012].*) 16022 # We only want to do this on AIX 4.2 and lower, the check 16023 # below for broken collect2 doesn't work under 4.3+ 16024 collect2name=`${CC} -print-prog-name=collect2` 16025 if test -f "$collect2name" && \ 16026 strings "$collect2name" | grep resolve_lib_name >/dev/null 16027 then 16028 # We have reworked collect2 16029 hardcode_direct_GCJ=yes 16030 else 16031 # We have old collect2 16032 hardcode_direct_GCJ=unsupported 16033 # It fails to find uninstalled libraries when the uninstalled 16034 # path is not listed in the libpath. Setting hardcode_minus_L 16035 # to unsupported forces relinking 16036 hardcode_minus_L_GCJ=yes 16037 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16038 hardcode_libdir_separator_GCJ= 16039 fi 16040 ;; 16041 esac 16042 shared_flag='-shared' 16043 if test "$aix_use_runtimelinking" = yes; then 16044 shared_flag="$shared_flag "'${wl}-G' 16045 fi 16046 else 16047 # not using gcc 16048 if test "$host_cpu" = ia64; then 16049 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16050 # chokes on -Wl,-G. The following line is correct: 16051 shared_flag='-G' 16052 else 16053 if test "$aix_use_runtimelinking" = yes; then 16054 shared_flag='${wl}-G' 16055 else 16056 shared_flag='${wl}-bM:SRE' 16057 fi 16058 fi 16059 fi 16060 16061 # It seems that -bexpall does not export symbols beginning with 16062 # underscore (_), so it is better to generate a list of symbols to export. 16063 always_export_symbols_GCJ=yes 16064 if test "$aix_use_runtimelinking" = yes; then 16065 # Warning - without using the other runtime loading flags (-brtl), 16066 # -berok will link without error, but may produce a broken library. 16067 allow_undefined_flag_GCJ='-berok' 16068 # Determine the default libpath from the value encoded in an empty executable. 16069 cat >conftest.$ac_ext <<_ACEOF 16070/* confdefs.h. */ 16071_ACEOF 16072cat confdefs.h >>conftest.$ac_ext 16073cat >>conftest.$ac_ext <<_ACEOF 16074/* end confdefs.h. */ 16075 16076int 16077main () 16078{ 16079 16080 ; 16081 return 0; 16082} 16083_ACEOF 16084rm -f conftest.$ac_objext conftest$ac_exeext 16085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16086 (eval $ac_link) 2>conftest.er1 16087 ac_status=$? 16088 grep -v '^ *+' conftest.er1 >conftest.err 16089 rm -f conftest.er1 16090 cat conftest.err >&5 16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16092 (exit $ac_status); } && 16093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16095 (eval $ac_try) 2>&5 16096 ac_status=$? 16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16098 (exit $ac_status); }; } && 16099 { ac_try='test -s conftest$ac_exeext' 16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16101 (eval $ac_try) 2>&5 16102 ac_status=$? 16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16104 (exit $ac_status); }; }; then 16105 16106aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16107}'` 16108# Check for a 64-bit object if we didn't find anything. 16109if 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; } 16110}'`; fi 16111else 16112 echo "$as_me: failed program was:" >&5 16113sed 's/^/| /' conftest.$ac_ext >&5 16114 16115fi 16116rm -f conftest.err conftest.$ac_objext \ 16117 conftest$ac_exeext conftest.$ac_ext 16118if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16119 16120 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16121 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16122 else 16123 if test "$host_cpu" = ia64; then 16124 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16125 allow_undefined_flag_GCJ="-z nodefs" 16126 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16127 else 16128 # Determine the default libpath from the value encoded in an empty executable. 16129 cat >conftest.$ac_ext <<_ACEOF 16130/* confdefs.h. */ 16131_ACEOF 16132cat confdefs.h >>conftest.$ac_ext 16133cat >>conftest.$ac_ext <<_ACEOF 16134/* end confdefs.h. */ 16135 16136int 16137main () 16138{ 16139 16140 ; 16141 return 0; 16142} 16143_ACEOF 16144rm -f conftest.$ac_objext conftest$ac_exeext 16145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16146 (eval $ac_link) 2>conftest.er1 16147 ac_status=$? 16148 grep -v '^ *+' conftest.er1 >conftest.err 16149 rm -f conftest.er1 16150 cat conftest.err >&5 16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16152 (exit $ac_status); } && 16153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16155 (eval $ac_try) 2>&5 16156 ac_status=$? 16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16158 (exit $ac_status); }; } && 16159 { ac_try='test -s conftest$ac_exeext' 16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16161 (eval $ac_try) 2>&5 16162 ac_status=$? 16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16164 (exit $ac_status); }; }; then 16165 16166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16167}'` 16168# Check for a 64-bit object if we didn't find anything. 16169if 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; } 16170}'`; fi 16171else 16172 echo "$as_me: failed program was:" >&5 16173sed 's/^/| /' conftest.$ac_ext >&5 16174 16175fi 16176rm -f conftest.err conftest.$ac_objext \ 16177 conftest$ac_exeext conftest.$ac_ext 16178if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16179 16180 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16181 # Warning - without using the other run time loading flags, 16182 # -berok will link without error, but may produce a broken library. 16183 no_undefined_flag_GCJ=' ${wl}-bernotok' 16184 allow_undefined_flag_GCJ=' ${wl}-berok' 16185 # Exported symbols can be pulled into shared objects from archives 16186 whole_archive_flag_spec_GCJ='$convenience' 16187 archive_cmds_need_lc_GCJ=yes 16188 # This is similar to how AIX traditionally builds its shared libraries. 16189 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16190 fi 16191 fi 16192 ;; 16193 16194 amigaos*) 16195 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)' 16196 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16197 hardcode_minus_L_GCJ=yes 16198 # see comment about different semantics on the GNU ld section 16199 ld_shlibs_GCJ=no 16200 ;; 16201 16202 bsdi[45]*) 16203 export_dynamic_flag_spec_GCJ=-rdynamic 16204 ;; 16205 16206 cygwin* | mingw* | pw32*) 16207 # When not using gcc, we currently assume that we are using 16208 # Microsoft Visual C++. 16209 # hardcode_libdir_flag_spec is actually meaningless, as there is 16210 # no search path for DLLs. 16211 hardcode_libdir_flag_spec_GCJ=' ' 16212 allow_undefined_flag_GCJ=unsupported 16213 # Tell ltmain to make .lib files, not .a files. 16214 libext=lib 16215 # Tell ltmain to make .dll files, not .so files. 16216 shrext_cmds=".dll" 16217 # FIXME: Setting linknames here is a bad hack. 16218 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16219 # The linker will automatically build a .lib file if we build a DLL. 16220 old_archive_From_new_cmds_GCJ='true' 16221 # FIXME: Should let the user specify the lib program. 16222 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16223 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16224 enable_shared_with_static_runtimes_GCJ=yes 16225 ;; 16226 16227 darwin* | rhapsody*) 16228 case $host_os in 16229 rhapsody* | darwin1.[012]) 16230 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16231 ;; 16232 *) # Darwin 1.3 on 16233 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16234 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16235 else 16236 case ${MACOSX_DEPLOYMENT_TARGET} in 16237 10.[012]) 16238 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16239 ;; 16240 10.*) 16241 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16242 ;; 16243 esac 16244 fi 16245 ;; 16246 esac 16247 archive_cmds_need_lc_GCJ=no 16248 hardcode_direct_GCJ=no 16249 hardcode_automatic_GCJ=yes 16250 hardcode_shlibpath_var_GCJ=unsupported 16251 whole_archive_flag_spec_GCJ='' 16252 link_all_deplibs_GCJ=yes 16253 if test "$GCC" = yes ; then 16254 output_verbose_link_cmd='echo' 16255 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16256 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16258 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}' 16259 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}' 16260 else 16261 case $cc_basename in 16262 xlc*) 16263 output_verbose_link_cmd='echo' 16264 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16265 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16266 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16267 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}' 16268 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}' 16269 ;; 16270 *) 16271 ld_shlibs_GCJ=no 16272 ;; 16273 esac 16274 fi 16275 ;; 16276 16277 dgux*) 16278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16279 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16280 hardcode_shlibpath_var_GCJ=no 16281 ;; 16282 16283 freebsd1*) 16284 ld_shlibs_GCJ=no 16285 ;; 16286 16287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16288 # support. Future versions do this automatically, but an explicit c++rt0.o 16289 # does not break anything, and helps significantly (at the cost of a little 16290 # extra space). 16291 freebsd2.2*) 16292 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16293 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16294 hardcode_direct_GCJ=yes 16295 hardcode_shlibpath_var_GCJ=no 16296 ;; 16297 16298 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16299 freebsd2*) 16300 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16301 hardcode_direct_GCJ=yes 16302 hardcode_minus_L_GCJ=yes 16303 hardcode_shlibpath_var_GCJ=no 16304 ;; 16305 16306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16307 freebsd* | dragonfly*) 16308 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16309 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16310 hardcode_direct_GCJ=yes 16311 hardcode_shlibpath_var_GCJ=no 16312 ;; 16313 16314 # GNU/kFreeBSD uses gcc -shared to do shared libraries. 16315 kfreebsd*-gnu) 16316 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16317 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16318 hardcode_direct_GCJ=yes 16319 hardcode_shlibpath_var_GCJ=no 16320 link_all_deplibs_GCJ=no 16321 ;; 16322 16323 hpux9*) 16324 if test "$GCC" = yes; then 16325 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' 16326 else 16327 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' 16328 fi 16329 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16330 hardcode_libdir_separator_GCJ=: 16331 hardcode_direct_GCJ=yes 16332 16333 # hardcode_minus_L: Not really in the search PATH, 16334 # but as the default location of the library. 16335 hardcode_minus_L_GCJ=yes 16336 export_dynamic_flag_spec_GCJ='${wl}-E' 16337 ;; 16338 16339 hpux10*) 16340 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16341 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16342 else 16343 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16344 fi 16345 if test "$with_gnu_ld" = no; then 16346 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16347 hardcode_libdir_separator_GCJ=: 16348 16349 hardcode_direct_GCJ=yes 16350 export_dynamic_flag_spec_GCJ='${wl}-E' 16351 16352 # hardcode_minus_L: Not really in the search PATH, 16353 # but as the default location of the library. 16354 hardcode_minus_L_GCJ=yes 16355 fi 16356 ;; 16357 16358 hpux11*) 16359 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16360 case $host_cpu in 16361 hppa*64*) 16362 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16363 ;; 16364 ia64*) 16365 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16366 ;; 16367 *) 16368 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16369 ;; 16370 esac 16371 else 16372 case $host_cpu in 16373 hppa*64*) 16374 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16375 ;; 16376 ia64*) 16377 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16378 ;; 16379 *) 16380 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16381 ;; 16382 esac 16383 fi 16384 if test "$with_gnu_ld" = no; then 16385 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16386 hardcode_libdir_separator_GCJ=: 16387 16388 case $host_cpu in 16389 hppa*64*|ia64*) 16390 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16391 hardcode_direct_GCJ=no 16392 hardcode_shlibpath_var_GCJ=no 16393 ;; 16394 *) 16395 hardcode_direct_GCJ=yes 16396 export_dynamic_flag_spec_GCJ='${wl}-E' 16397 16398 # hardcode_minus_L: Not really in the search PATH, 16399 # but as the default location of the library. 16400 hardcode_minus_L_GCJ=yes 16401 ;; 16402 esac 16403 fi 16404 ;; 16405 16406 irix5* | irix6* | nonstopux*) 16407 if test "$GCC" = yes; then 16408 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' 16409 else 16410 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' 16411 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16412 fi 16413 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16414 hardcode_libdir_separator_GCJ=: 16415 link_all_deplibs_GCJ=yes 16416 ;; 16417 16418 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 16419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16420 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16421 else 16422 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16423 fi 16424 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16425 hardcode_direct_GCJ=yes 16426 hardcode_shlibpath_var_GCJ=no 16427 ;; 16428 16429 newsos6) 16430 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16431 hardcode_direct_GCJ=yes 16432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16433 hardcode_libdir_separator_GCJ=: 16434 hardcode_shlibpath_var_GCJ=no 16435 ;; 16436 16437 openbsd*) 16438 hardcode_direct_GCJ=yes 16439 hardcode_shlibpath_var_GCJ=no 16440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16441 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16442 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16444 export_dynamic_flag_spec_GCJ='${wl}-E' 16445 else 16446 case $host_os in 16447 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16448 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16449 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16450 ;; 16451 *) 16452 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16453 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16454 ;; 16455 esac 16456 fi 16457 ;; 16458 16459 os2*) 16460 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16461 hardcode_minus_L_GCJ=yes 16462 allow_undefined_flag_GCJ=unsupported 16463 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' 16464 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16465 ;; 16466 16467 osf3*) 16468 if test "$GCC" = yes; then 16469 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16470 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' 16471 else 16472 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16473 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' 16474 fi 16475 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16476 hardcode_libdir_separator_GCJ=: 16477 ;; 16478 16479 osf4* | osf5*) # as osf3* with the addition of -msym flag 16480 if test "$GCC" = yes; then 16481 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16482 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' 16483 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16484 else 16485 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16486 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' 16487 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~ 16488 $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' 16489 16490 # Both c and cxx compiler support -rpath directly 16491 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16492 fi 16493 hardcode_libdir_separator_GCJ=: 16494 ;; 16495 16496 solaris*) 16497 no_undefined_flag_GCJ=' -z text' 16498 if test "$GCC" = yes; then 16499 wlarc='${wl}' 16500 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16501 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16502 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16503 else 16504 wlarc='' 16505 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16506 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16507 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16508 fi 16509 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16510 hardcode_shlibpath_var_GCJ=no 16511 case $host_os in 16512 solaris2.[0-5] | solaris2.[0-5].*) ;; 16513 *) 16514 # The compiler driver will combine linker options so we 16515 # cannot just pass the convience library names through 16516 # without $wl, iff we do not link with $LD. 16517 # Luckily, gcc supports the same syntax we need for Sun Studio. 16518 # Supported since Solaris 2.6 (maybe 2.5.1?) 16519 case $wlarc in 16520 '') 16521 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16522 *) 16523 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' ;; 16524 esac ;; 16525 esac 16526 link_all_deplibs_GCJ=yes 16527 ;; 16528 16529 sunos4*) 16530 if test "x$host_vendor" = xsequent; then 16531 # Use $CC to link under sequent, because it throws in some extra .o 16532 # files that make .init and .fini sections work. 16533 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16534 else 16535 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16536 fi 16537 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16538 hardcode_direct_GCJ=yes 16539 hardcode_minus_L_GCJ=yes 16540 hardcode_shlibpath_var_GCJ=no 16541 ;; 16542 16543 sysv4) 16544 case $host_vendor in 16545 sni) 16546 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16547 hardcode_direct_GCJ=yes # is this really true??? 16548 ;; 16549 siemens) 16550 ## LD is ld it makes a PLAMLIB 16551 ## CC just makes a GrossModule. 16552 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16553 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16554 hardcode_direct_GCJ=no 16555 ;; 16556 motorola) 16557 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16558 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16559 ;; 16560 esac 16561 runpath_var='LD_RUN_PATH' 16562 hardcode_shlibpath_var_GCJ=no 16563 ;; 16564 16565 sysv4.3*) 16566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16567 hardcode_shlibpath_var_GCJ=no 16568 export_dynamic_flag_spec_GCJ='-Bexport' 16569 ;; 16570 16571 sysv4*MP*) 16572 if test -d /usr/nec; then 16573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16574 hardcode_shlibpath_var_GCJ=no 16575 runpath_var=LD_RUN_PATH 16576 hardcode_runpath_var=yes 16577 ld_shlibs_GCJ=yes 16578 fi 16579 ;; 16580 16581 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16582 no_undefined_flag_GCJ='${wl}-z,text' 16583 archive_cmds_need_lc_GCJ=no 16584 hardcode_shlibpath_var_GCJ=no 16585 runpath_var='LD_RUN_PATH' 16586 16587 if test "$GCC" = yes; then 16588 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16589 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16590 else 16591 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16592 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16593 fi 16594 ;; 16595 16596 sysv5* | sco3.2v5* | sco5v6*) 16597 # Note: We can NOT use -z defs as we might desire, because we do not 16598 # link with -lc, and that would cause any symbols used from libc to 16599 # always be unresolved, which means just about no library would 16600 # ever link correctly. If we're not using GNU ld we use -z text 16601 # though, which does catch some bad symbols but isn't as heavy-handed 16602 # as -z defs. 16603 no_undefined_flag_GCJ='${wl}-z,text' 16604 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16605 archive_cmds_need_lc_GCJ=no 16606 hardcode_shlibpath_var_GCJ=no 16607 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16608 hardcode_libdir_separator_GCJ=':' 16609 link_all_deplibs_GCJ=yes 16610 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16611 runpath_var='LD_RUN_PATH' 16612 16613 if test "$GCC" = yes; then 16614 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16615 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16616 else 16617 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16618 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16619 fi 16620 ;; 16621 16622 uts4*) 16623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16624 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16625 hardcode_shlibpath_var_GCJ=no 16626 ;; 16627 16628 *) 16629 ld_shlibs_GCJ=no 16630 ;; 16631 esac 16632 fi 16633 16634echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16635echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16636test "$ld_shlibs_GCJ" = no && can_build_shared=no 16637 16638# 16639# Do we need to explicitly link libc? 16640# 16641case "x$archive_cmds_need_lc_GCJ" in 16642x|xyes) 16643 # Assume -lc should be added 16644 archive_cmds_need_lc_GCJ=yes 16645 16646 if test "$enable_shared" = yes && test "$GCC" = yes; then 16647 case $archive_cmds_GCJ in 16648 *'~'*) 16649 # FIXME: we may have to deal with multi-command sequences. 16650 ;; 16651 '$CC '*) 16652 # Test whether the compiler implicitly links with -lc since on some 16653 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16654 # to ld, don't add -lc before -lgcc. 16655 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16656echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16657 $rm conftest* 16658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16659 16660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16661 (eval $ac_compile) 2>&5 16662 ac_status=$? 16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16664 (exit $ac_status); } 2>conftest.err; then 16665 soname=conftest 16666 lib=conftest 16667 libobjs=conftest.$ac_objext 16668 deplibs= 16669 wl=$lt_prog_compiler_wl_GCJ 16670 pic_flag=$lt_prog_compiler_pic_GCJ 16671 compiler_flags=-v 16672 linker_flags=-v 16673 verstring= 16674 output_objdir=. 16675 libname=conftest 16676 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16677 allow_undefined_flag_GCJ= 16678 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16679 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16680 ac_status=$? 16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16682 (exit $ac_status); } 16683 then 16684 archive_cmds_need_lc_GCJ=no 16685 else 16686 archive_cmds_need_lc_GCJ=yes 16687 fi 16688 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16689 else 16690 cat conftest.err 1>&5 16691 fi 16692 $rm conftest* 16693 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16694echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16695 ;; 16696 esac 16697 fi 16698 ;; 16699esac 16700 16701echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16702echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16703library_names_spec= 16704libname_spec='lib$name' 16705soname_spec= 16706shrext_cmds=".so" 16707postinstall_cmds= 16708postuninstall_cmds= 16709finish_cmds= 16710finish_eval= 16711shlibpath_var= 16712shlibpath_overrides_runpath=unknown 16713version_type=none 16714dynamic_linker="$host_os ld.so" 16715sys_lib_dlsearch_path_spec="/lib /usr/lib" 16716if test "$GCC" = yes; then 16717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16718 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16719 # if the path contains ";" then we assume it to be the separator 16720 # otherwise default to the standard path separator (i.e. ":") - it is 16721 # assumed that no part of a normal pathname contains ";" but that should 16722 # okay in the real world where ";" in dirpaths is itself problematic. 16723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16724 else 16725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16726 fi 16727else 16728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16729fi 16730need_lib_prefix=unknown 16731hardcode_into_libs=no 16732 16733# when you set need_version to no, make sure it does not cause -set_version 16734# flags to be left without arguments 16735need_version=unknown 16736 16737case $host_os in 16738aix3*) 16739 version_type=linux 16740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16741 shlibpath_var=LIBPATH 16742 16743 # AIX 3 has no versioning support, so we append a major version to the name. 16744 soname_spec='${libname}${release}${shared_ext}$major' 16745 ;; 16746 16747aix4* | aix5*) 16748 version_type=linux 16749 need_lib_prefix=no 16750 need_version=no 16751 hardcode_into_libs=yes 16752 if test "$host_cpu" = ia64; then 16753 # AIX 5 supports IA64 16754 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16755 shlibpath_var=LD_LIBRARY_PATH 16756 else 16757 # With GCC up to 2.95.x, collect2 would create an import file 16758 # for dependence libraries. The import file would start with 16759 # the line `#! .'. This would cause the generated library to 16760 # depend on `.', always an invalid library. This was fixed in 16761 # development snapshots of GCC prior to 3.0. 16762 case $host_os in 16763 aix4 | aix4.[01] | aix4.[01].*) 16764 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16765 echo ' yes ' 16766 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16767 : 16768 else 16769 can_build_shared=no 16770 fi 16771 ;; 16772 esac 16773 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16774 # soname into executable. Probably we can add versioning support to 16775 # collect2, so additional links can be useful in future. 16776 if test "$aix_use_runtimelinking" = yes; then 16777 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16778 # instead of lib<name>.a to let people know that these are not 16779 # typical AIX shared libraries. 16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16781 else 16782 # We preserve .a as extension for shared libraries through AIX4.2 16783 # and later when we are not doing run time linking. 16784 library_names_spec='${libname}${release}.a $libname.a' 16785 soname_spec='${libname}${release}${shared_ext}$major' 16786 fi 16787 shlibpath_var=LIBPATH 16788 fi 16789 ;; 16790 16791amigaos*) 16792 library_names_spec='$libname.ixlibrary $libname.a' 16793 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16794 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' 16795 ;; 16796 16797beos*) 16798 library_names_spec='${libname}${shared_ext}' 16799 dynamic_linker="$host_os ld.so" 16800 shlibpath_var=LIBRARY_PATH 16801 ;; 16802 16803bsdi[45]*) 16804 version_type=linux 16805 need_version=no 16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16807 soname_spec='${libname}${release}${shared_ext}$major' 16808 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16809 shlibpath_var=LD_LIBRARY_PATH 16810 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16811 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16812 # the default ld.so.conf also contains /usr/contrib/lib and 16813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16814 # libtool to hard-code these into programs 16815 ;; 16816 16817cygwin* | mingw* | pw32*) 16818 version_type=windows 16819 shrext_cmds=".dll" 16820 need_version=no 16821 need_lib_prefix=no 16822 16823 case $GCC,$host_os in 16824 yes,cygwin* | yes,mingw* | yes,pw32*) 16825 library_names_spec='$libname.dll.a' 16826 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16827 postinstall_cmds='base_file=`basename \${file}`~ 16828 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16829 dldir=$destdir/`dirname \$dlpath`~ 16830 test -d \$dldir || mkdir -p \$dldir~ 16831 $install_prog $dir/$dlname \$dldir/$dlname~ 16832 chmod a+x \$dldir/$dlname' 16833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16834 dlpath=$dir/\$dldll~ 16835 $rm \$dlpath' 16836 shlibpath_overrides_runpath=yes 16837 16838 case $host_os in 16839 cygwin*) 16840 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16841 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16842 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16843 ;; 16844 mingw*) 16845 # MinGW DLLs use traditional 'lib' prefix 16846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16847 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16848 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16849 # It is most probably a Windows format PATH printed by 16850 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16851 # path with ; separators, and with drive letters. We can handle the 16852 # drive letters (cygwin fileutils understands them), so leave them, 16853 # especially as we might pass files found there to a mingw objdump, 16854 # which wouldn't understand a cygwinified path. Ahh. 16855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16856 else 16857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16858 fi 16859 ;; 16860 pw32*) 16861 # pw32 DLLs use 'pw' prefix rather than 'lib' 16862 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16863 ;; 16864 esac 16865 ;; 16866 16867 *) 16868 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16869 ;; 16870 esac 16871 dynamic_linker='Win32 ld.exe' 16872 # FIXME: first we should search . and the directory the executable is in 16873 shlibpath_var=PATH 16874 ;; 16875 16876darwin* | rhapsody*) 16877 dynamic_linker="$host_os dyld" 16878 version_type=darwin 16879 need_lib_prefix=no 16880 need_version=no 16881 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16882 soname_spec='${libname}${release}${major}$shared_ext' 16883 shlibpath_overrides_runpath=yes 16884 shlibpath_var=DYLD_LIBRARY_PATH 16885 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16886 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16887 if test "$GCC" = yes; then 16888 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"` 16889 else 16890 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16891 fi 16892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16893 ;; 16894 16895dgux*) 16896 version_type=linux 16897 need_lib_prefix=no 16898 need_version=no 16899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16900 soname_spec='${libname}${release}${shared_ext}$major' 16901 shlibpath_var=LD_LIBRARY_PATH 16902 ;; 16903 16904freebsd1*) 16905 dynamic_linker=no 16906 ;; 16907 16908kfreebsd*-gnu) 16909 version_type=linux 16910 need_lib_prefix=no 16911 need_version=no 16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16913 soname_spec='${libname}${release}${shared_ext}$major' 16914 shlibpath_var=LD_LIBRARY_PATH 16915 shlibpath_overrides_runpath=no 16916 hardcode_into_libs=yes 16917 dynamic_linker='GNU ld.so' 16918 ;; 16919 16920freebsd* | dragonfly*) 16921 # DragonFly does not have aout. When/if they implement a new 16922 # versioning mechanism, adjust this. 16923 if test -x /usr/bin/objformat; then 16924 objformat=`/usr/bin/objformat` 16925 else 16926 case $host_os in 16927 freebsd[123]*) objformat=aout ;; 16928 *) objformat=elf ;; 16929 esac 16930 fi 16931 version_type=freebsd-$objformat 16932 case $version_type in 16933 freebsd-elf*) 16934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16935 need_version=no 16936 need_lib_prefix=no 16937 ;; 16938 freebsd-*) 16939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16940 need_version=yes 16941 ;; 16942 esac 16943 shlibpath_var=LD_LIBRARY_PATH 16944 case $host_os in 16945 freebsd2*) 16946 shlibpath_overrides_runpath=yes 16947 ;; 16948 freebsd3.[01]* | freebsdelf3.[01]*) 16949 shlibpath_overrides_runpath=yes 16950 hardcode_into_libs=yes 16951 ;; 16952 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16953 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16954 shlibpath_overrides_runpath=no 16955 hardcode_into_libs=yes 16956 ;; 16957 freebsd*) # from 4.6 on 16958 shlibpath_overrides_runpath=yes 16959 hardcode_into_libs=yes 16960 ;; 16961 esac 16962 ;; 16963 16964gnu*) 16965 version_type=linux 16966 need_lib_prefix=no 16967 need_version=no 16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16969 soname_spec='${libname}${release}${shared_ext}$major' 16970 shlibpath_var=LD_LIBRARY_PATH 16971 hardcode_into_libs=yes 16972 ;; 16973 16974hpux9* | hpux10* | hpux11*) 16975 # Give a soname corresponding to the major version so that dld.sl refuses to 16976 # link against other versions. 16977 version_type=sunos 16978 need_lib_prefix=no 16979 need_version=no 16980 case $host_cpu in 16981 ia64*) 16982 shrext_cmds='.so' 16983 hardcode_into_libs=yes 16984 dynamic_linker="$host_os dld.so" 16985 shlibpath_var=LD_LIBRARY_PATH 16986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16988 soname_spec='${libname}${release}${shared_ext}$major' 16989 if test "X$HPUX_IA64_MODE" = X32; then 16990 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16991 else 16992 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16993 fi 16994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16995 ;; 16996 hppa*64*) 16997 shrext_cmds='.sl' 16998 hardcode_into_libs=yes 16999 dynamic_linker="$host_os dld.sl" 17000 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17003 soname_spec='${libname}${release}${shared_ext}$major' 17004 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17006 ;; 17007 *) 17008 shrext_cmds='.sl' 17009 dynamic_linker="$host_os dld.sl" 17010 shlibpath_var=SHLIB_PATH 17011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17013 soname_spec='${libname}${release}${shared_ext}$major' 17014 ;; 17015 esac 17016 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17017 postinstall_cmds='chmod 555 $lib' 17018 ;; 17019 17020interix3*) 17021 version_type=linux 17022 need_lib_prefix=no 17023 need_version=no 17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17025 soname_spec='${libname}${release}${shared_ext}$major' 17026 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17027 shlibpath_var=LD_LIBRARY_PATH 17028 shlibpath_overrides_runpath=no 17029 hardcode_into_libs=yes 17030 ;; 17031 17032irix5* | irix6* | nonstopux*) 17033 case $host_os in 17034 nonstopux*) version_type=nonstopux ;; 17035 *) 17036 if test "$lt_cv_prog_gnu_ld" = yes; then 17037 version_type=linux 17038 else 17039 version_type=irix 17040 fi ;; 17041 esac 17042 need_lib_prefix=no 17043 need_version=no 17044 soname_spec='${libname}${release}${shared_ext}$major' 17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17046 case $host_os in 17047 irix5* | nonstopux*) 17048 libsuff= shlibsuff= 17049 ;; 17050 *) 17051 case $LD in # libtool.m4 will add one of these switches to LD 17052 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17053 libsuff= shlibsuff= libmagic=32-bit;; 17054 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17055 libsuff=32 shlibsuff=N32 libmagic=N32;; 17056 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17057 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17058 *) libsuff= shlibsuff= libmagic=never-match;; 17059 esac 17060 ;; 17061 esac 17062 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17063 shlibpath_overrides_runpath=no 17064 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17065 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17066 hardcode_into_libs=yes 17067 ;; 17068 17069# No shared lib support for Linux oldld, aout, or coff. 17070linux*oldld* | linux*aout* | linux*coff*) 17071 dynamic_linker=no 17072 ;; 17073 17074# This must be Linux ELF. 17075linux*) 17076 version_type=linux 17077 need_lib_prefix=no 17078 need_version=no 17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17080 soname_spec='${libname}${release}${shared_ext}$major' 17081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17082 shlibpath_var=LD_LIBRARY_PATH 17083 shlibpath_overrides_runpath=no 17084 # This implies no fast_install, which is unacceptable. 17085 # Some rework will be needed to allow for fast_install 17086 # before this can be enabled. 17087 hardcode_into_libs=yes 17088 17089 # Append ld.so.conf contents to the search path 17090 if test -f /etc/ld.so.conf; then 17091 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' ' '` 17092 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17093 fi 17094 17095 # We used to test for /lib/ld.so.1 and disable shared libraries on 17096 # powerpc, because MkLinux only supported shared libraries with the 17097 # GNU dynamic linker. Since this was broken with cross compilers, 17098 # most powerpc-linux boxes support dynamic linking these days and 17099 # people can always --disable-shared, the test was removed, and we 17100 # assume the GNU/Linux dynamic linker is in use. 17101 dynamic_linker='GNU/Linux ld.so' 17102 ;; 17103 17104netbsdelf*-gnu) 17105 version_type=linux 17106 need_lib_prefix=no 17107 need_version=no 17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17109 soname_spec='${libname}${release}${shared_ext}$major' 17110 shlibpath_var=LD_LIBRARY_PATH 17111 shlibpath_overrides_runpath=no 17112 hardcode_into_libs=yes 17113 dynamic_linker='NetBSD ld.elf_so' 17114 ;; 17115 17116knetbsd*-gnu) 17117 version_type=linux 17118 need_lib_prefix=no 17119 need_version=no 17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17121 soname_spec='${libname}${release}${shared_ext}$major' 17122 shlibpath_var=LD_LIBRARY_PATH 17123 shlibpath_overrides_runpath=no 17124 hardcode_into_libs=yes 17125 dynamic_linker='GNU ld.so' 17126 ;; 17127 17128netbsd*) 17129 version_type=sunos 17130 need_lib_prefix=no 17131 need_version=no 17132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17135 dynamic_linker='NetBSD (a.out) ld.so' 17136 else 17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17138 soname_spec='${libname}${release}${shared_ext}$major' 17139 dynamic_linker='NetBSD ld.elf_so' 17140 fi 17141 shlibpath_var=LD_LIBRARY_PATH 17142 shlibpath_overrides_runpath=yes 17143 hardcode_into_libs=yes 17144 ;; 17145 17146newsos6) 17147 version_type=linux 17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17149 shlibpath_var=LD_LIBRARY_PATH 17150 shlibpath_overrides_runpath=yes 17151 ;; 17152 17153nto-qnx*) 17154 version_type=linux 17155 need_lib_prefix=no 17156 need_version=no 17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17158 soname_spec='${libname}${release}${shared_ext}$major' 17159 shlibpath_var=LD_LIBRARY_PATH 17160 shlibpath_overrides_runpath=yes 17161 ;; 17162 17163openbsd*) 17164 version_type=sunos 17165 sys_lib_dlsearch_path_spec="/usr/lib" 17166 need_lib_prefix=no 17167 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17168 case $host_os in 17169 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17170 *) need_version=no ;; 17171 esac 17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17174 shlibpath_var=LD_LIBRARY_PATH 17175 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17176 case $host_os in 17177 openbsd2.[89] | openbsd2.[89].*) 17178 shlibpath_overrides_runpath=no 17179 ;; 17180 *) 17181 shlibpath_overrides_runpath=yes 17182 ;; 17183 esac 17184 else 17185 shlibpath_overrides_runpath=yes 17186 fi 17187 ;; 17188 17189os2*) 17190 libname_spec='$name' 17191 shrext_cmds=".dll" 17192 need_lib_prefix=no 17193 library_names_spec='$libname${shared_ext} $libname.a' 17194 dynamic_linker='OS/2 ld.exe' 17195 shlibpath_var=LIBPATH 17196 ;; 17197 17198osf3* | osf4* | osf5*) 17199 version_type=osf 17200 need_lib_prefix=no 17201 need_version=no 17202 soname_spec='${libname}${release}${shared_ext}$major' 17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17204 shlibpath_var=LD_LIBRARY_PATH 17205 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17206 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17207 ;; 17208 17209solaris*) 17210 version_type=linux 17211 need_lib_prefix=no 17212 need_version=no 17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17214 soname_spec='${libname}${release}${shared_ext}$major' 17215 shlibpath_var=LD_LIBRARY_PATH 17216 shlibpath_overrides_runpath=yes 17217 hardcode_into_libs=yes 17218 # ldd complains unless libraries are executable 17219 postinstall_cmds='chmod +x $lib' 17220 ;; 17221 17222sunos4*) 17223 version_type=sunos 17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17226 shlibpath_var=LD_LIBRARY_PATH 17227 shlibpath_overrides_runpath=yes 17228 if test "$with_gnu_ld" = yes; then 17229 need_lib_prefix=no 17230 fi 17231 need_version=yes 17232 ;; 17233 17234sysv4 | sysv4.3*) 17235 version_type=linux 17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17237 soname_spec='${libname}${release}${shared_ext}$major' 17238 shlibpath_var=LD_LIBRARY_PATH 17239 case $host_vendor in 17240 sni) 17241 shlibpath_overrides_runpath=no 17242 need_lib_prefix=no 17243 export_dynamic_flag_spec='${wl}-Blargedynsym' 17244 runpath_var=LD_RUN_PATH 17245 ;; 17246 siemens) 17247 need_lib_prefix=no 17248 ;; 17249 motorola) 17250 need_lib_prefix=no 17251 need_version=no 17252 shlibpath_overrides_runpath=no 17253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17254 ;; 17255 esac 17256 ;; 17257 17258sysv4*MP*) 17259 if test -d /usr/nec ;then 17260 version_type=linux 17261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17262 soname_spec='$libname${shared_ext}.$major' 17263 shlibpath_var=LD_LIBRARY_PATH 17264 fi 17265 ;; 17266 17267sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17268 version_type=freebsd-elf 17269 need_lib_prefix=no 17270 need_version=no 17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17272 soname_spec='${libname}${release}${shared_ext}$major' 17273 shlibpath_var=LD_LIBRARY_PATH 17274 hardcode_into_libs=yes 17275 if test "$with_gnu_ld" = yes; then 17276 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17277 shlibpath_overrides_runpath=no 17278 else 17279 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17280 shlibpath_overrides_runpath=yes 17281 case $host_os in 17282 sco3.2v5*) 17283 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17284 ;; 17285 esac 17286 fi 17287 sys_lib_dlsearch_path_spec='/usr/lib' 17288 ;; 17289 17290uts4*) 17291 version_type=linux 17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17293 soname_spec='${libname}${release}${shared_ext}$major' 17294 shlibpath_var=LD_LIBRARY_PATH 17295 ;; 17296 17297*) 17298 dynamic_linker=no 17299 ;; 17300esac 17301echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17302echo "${ECHO_T}$dynamic_linker" >&6 17303test "$dynamic_linker" = no && can_build_shared=no 17304 17305variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17306if test "$GCC" = yes; then 17307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17308fi 17309 17310echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17311echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17312hardcode_action_GCJ= 17313if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17314 test -n "$runpath_var_GCJ" || \ 17315 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17316 17317 # We can hardcode non-existant directories. 17318 if test "$hardcode_direct_GCJ" != no && 17319 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17320 # have to relink, otherwise we might link with an installed library 17321 # when we should be linking with a yet-to-be-installed one 17322 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17323 test "$hardcode_minus_L_GCJ" != no; then 17324 # Linking always hardcodes the temporary library directory. 17325 hardcode_action_GCJ=relink 17326 else 17327 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17328 hardcode_action_GCJ=immediate 17329 fi 17330else 17331 # We cannot hardcode anything, or else we can only hardcode existing 17332 # directories. 17333 hardcode_action_GCJ=unsupported 17334fi 17335echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17336echo "${ECHO_T}$hardcode_action_GCJ" >&6 17337 17338if test "$hardcode_action_GCJ" = relink; then 17339 # Fast installation is not supported 17340 enable_fast_install=no 17341elif test "$shlibpath_overrides_runpath" = yes || 17342 test "$enable_shared" = no; then 17343 # Fast installation is not necessary 17344 enable_fast_install=needless 17345fi 17346 17347 17348# The else clause should only fire when bootstrapping the 17349# libtool distribution, otherwise you forgot to ship ltmain.sh 17350# with your package, and you will get complaints that there are 17351# no rules to generate ltmain.sh. 17352if test -f "$ltmain"; then 17353 # See if we are running on zsh, and set the options which allow our commands through 17354 # without removal of \ escapes. 17355 if test -n "${ZSH_VERSION+set}" ; then 17356 setopt NO_GLOB_SUBST 17357 fi 17358 # Now quote all the things that may contain metacharacters while being 17359 # careful not to overquote the AC_SUBSTed values. We take copies of the 17360 # variables and quote the copies for generation of the libtool script. 17361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17362 SED SHELL STRIP \ 17363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17365 deplibs_check_method reload_flag reload_cmds need_locks \ 17366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17367 lt_cv_sys_global_symbol_to_c_name_address \ 17368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17369 old_postinstall_cmds old_postuninstall_cmds \ 17370 compiler_GCJ \ 17371 CC_GCJ \ 17372 LD_GCJ \ 17373 lt_prog_compiler_wl_GCJ \ 17374 lt_prog_compiler_pic_GCJ \ 17375 lt_prog_compiler_static_GCJ \ 17376 lt_prog_compiler_no_builtin_flag_GCJ \ 17377 export_dynamic_flag_spec_GCJ \ 17378 thread_safe_flag_spec_GCJ \ 17379 whole_archive_flag_spec_GCJ \ 17380 enable_shared_with_static_runtimes_GCJ \ 17381 old_archive_cmds_GCJ \ 17382 old_archive_from_new_cmds_GCJ \ 17383 predep_objects_GCJ \ 17384 postdep_objects_GCJ \ 17385 predeps_GCJ \ 17386 postdeps_GCJ \ 17387 compiler_lib_search_path_GCJ \ 17388 archive_cmds_GCJ \ 17389 archive_expsym_cmds_GCJ \ 17390 postinstall_cmds_GCJ \ 17391 postuninstall_cmds_GCJ \ 17392 old_archive_from_expsyms_cmds_GCJ \ 17393 allow_undefined_flag_GCJ \ 17394 no_undefined_flag_GCJ \ 17395 export_symbols_cmds_GCJ \ 17396 hardcode_libdir_flag_spec_GCJ \ 17397 hardcode_libdir_flag_spec_ld_GCJ \ 17398 hardcode_libdir_separator_GCJ \ 17399 hardcode_automatic_GCJ \ 17400 module_cmds_GCJ \ 17401 module_expsym_cmds_GCJ \ 17402 lt_cv_prog_compiler_c_o_GCJ \ 17403 exclude_expsyms_GCJ \ 17404 include_expsyms_GCJ; do 17405 17406 case $var in 17407 old_archive_cmds_GCJ | \ 17408 old_archive_from_new_cmds_GCJ | \ 17409 archive_cmds_GCJ | \ 17410 archive_expsym_cmds_GCJ | \ 17411 module_cmds_GCJ | \ 17412 module_expsym_cmds_GCJ | \ 17413 old_archive_from_expsyms_cmds_GCJ | \ 17414 export_symbols_cmds_GCJ | \ 17415 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17416 postinstall_cmds | postuninstall_cmds | \ 17417 old_postinstall_cmds | old_postuninstall_cmds | \ 17418 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17419 # Double-quote double-evaled strings. 17420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17421 ;; 17422 *) 17423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17424 ;; 17425 esac 17426 done 17427 17428 case $lt_echo in 17429 *'\$0 --fallback-echo"') 17430 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17431 ;; 17432 esac 17433 17434cfgfile="$ofile" 17435 17436 cat <<__EOF__ >> "$cfgfile" 17437# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17438 17439# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17440 17441# Shell to use when invoking shell scripts. 17442SHELL=$lt_SHELL 17443 17444# Whether or not to build shared libraries. 17445build_libtool_libs=$enable_shared 17446 17447# Whether or not to build static libraries. 17448build_old_libs=$enable_static 17449 17450# Whether or not to add -lc for building shared libraries. 17451build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17452 17453# Whether or not to disallow shared libs when runtime libs are static 17454allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17455 17456# Whether or not to optimize for fast installation. 17457fast_install=$enable_fast_install 17458 17459# The host system. 17460host_alias=$host_alias 17461host=$host 17462host_os=$host_os 17463 17464# The build system. 17465build_alias=$build_alias 17466build=$build 17467build_os=$build_os 17468 17469# An echo program that does not interpret backslashes. 17470echo=$lt_echo 17471 17472# The archiver. 17473AR=$lt_AR 17474AR_FLAGS=$lt_AR_FLAGS 17475 17476# A C compiler. 17477LTCC=$lt_LTCC 17478 17479# LTCC compiler flags. 17480LTCFLAGS=$lt_LTCFLAGS 17481 17482# A language-specific compiler. 17483CC=$lt_compiler_GCJ 17484 17485# Is the compiler the GNU C compiler? 17486with_gcc=$GCC_GCJ 17487 17488# An ERE matcher. 17489EGREP=$lt_EGREP 17490 17491# The linker used to build libraries. 17492LD=$lt_LD_GCJ 17493 17494# Whether we need hard or soft links. 17495LN_S=$lt_LN_S 17496 17497# A BSD-compatible nm program. 17498NM=$lt_NM 17499 17500# A symbol stripping program 17501STRIP=$lt_STRIP 17502 17503# Used to examine libraries when file_magic_cmd begins "file" 17504MAGIC_CMD=$MAGIC_CMD 17505 17506# Used on cygwin: DLL creation program. 17507DLLTOOL="$DLLTOOL" 17508 17509# Used on cygwin: object dumper. 17510OBJDUMP="$OBJDUMP" 17511 17512# Used on cygwin: assembler. 17513AS="$AS" 17514 17515# The name of the directory that contains temporary libtool files. 17516objdir=$objdir 17517 17518# How to create reloadable object files. 17519reload_flag=$lt_reload_flag 17520reload_cmds=$lt_reload_cmds 17521 17522# How to pass a linker flag through the compiler. 17523wl=$lt_lt_prog_compiler_wl_GCJ 17524 17525# Object file suffix (normally "o"). 17526objext="$ac_objext" 17527 17528# Old archive suffix (normally "a"). 17529libext="$libext" 17530 17531# Shared library suffix (normally ".so"). 17532shrext_cmds='$shrext_cmds' 17533 17534# Executable file suffix (normally ""). 17535exeext="$exeext" 17536 17537# Additional compiler flags for building library objects. 17538pic_flag=$lt_lt_prog_compiler_pic_GCJ 17539pic_mode=$pic_mode 17540 17541# What is the maximum length of a command? 17542max_cmd_len=$lt_cv_sys_max_cmd_len 17543 17544# Does compiler simultaneously support -c and -o options? 17545compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17546 17547# Must we lock files when doing compilation? 17548need_locks=$lt_need_locks 17549 17550# Do we need the lib prefix for modules? 17551need_lib_prefix=$need_lib_prefix 17552 17553# Do we need a version for libraries? 17554need_version=$need_version 17555 17556# Whether dlopen is supported. 17557dlopen_support=$enable_dlopen 17558 17559# Whether dlopen of programs is supported. 17560dlopen_self=$enable_dlopen_self 17561 17562# Whether dlopen of statically linked programs is supported. 17563dlopen_self_static=$enable_dlopen_self_static 17564 17565# Compiler flag to prevent dynamic linking. 17566link_static_flag=$lt_lt_prog_compiler_static_GCJ 17567 17568# Compiler flag to turn off builtin functions. 17569no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17570 17571# Compiler flag to allow reflexive dlopens. 17572export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17573 17574# Compiler flag to generate shared objects directly from archives. 17575whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17576 17577# Compiler flag to generate thread-safe objects. 17578thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17579 17580# Library versioning type. 17581version_type=$version_type 17582 17583# Format of library name prefix. 17584libname_spec=$lt_libname_spec 17585 17586# List of archive names. First name is the real one, the rest are links. 17587# The last name is the one that the linker finds with -lNAME. 17588library_names_spec=$lt_library_names_spec 17589 17590# The coded name of the library, if different from the real name. 17591soname_spec=$lt_soname_spec 17592 17593# Commands used to build and install an old-style archive. 17594RANLIB=$lt_RANLIB 17595old_archive_cmds=$lt_old_archive_cmds_GCJ 17596old_postinstall_cmds=$lt_old_postinstall_cmds 17597old_postuninstall_cmds=$lt_old_postuninstall_cmds 17598 17599# Create an old-style archive from a shared archive. 17600old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17601 17602# Create a temporary old-style archive to link instead of a shared archive. 17603old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17604 17605# Commands used to build and install a shared archive. 17606archive_cmds=$lt_archive_cmds_GCJ 17607archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17608postinstall_cmds=$lt_postinstall_cmds 17609postuninstall_cmds=$lt_postuninstall_cmds 17610 17611# Commands used to build a loadable module (assumed same as above if empty) 17612module_cmds=$lt_module_cmds_GCJ 17613module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17614 17615# Commands to strip libraries. 17616old_striplib=$lt_old_striplib 17617striplib=$lt_striplib 17618 17619# Dependencies to place before the objects being linked to create a 17620# shared library. 17621predep_objects=$lt_predep_objects_GCJ 17622 17623# Dependencies to place after the objects being linked to create a 17624# shared library. 17625postdep_objects=$lt_postdep_objects_GCJ 17626 17627# Dependencies to place before the objects being linked to create a 17628# shared library. 17629predeps=$lt_predeps_GCJ 17630 17631# Dependencies to place after the objects being linked to create a 17632# shared library. 17633postdeps=$lt_postdeps_GCJ 17634 17635# The library search path used internally by the compiler when linking 17636# a shared library. 17637compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17638 17639# Method to check whether dependent libraries are shared objects. 17640deplibs_check_method=$lt_deplibs_check_method 17641 17642# Command to use when deplibs_check_method == file_magic. 17643file_magic_cmd=$lt_file_magic_cmd 17644 17645# Flag that allows shared libraries with undefined symbols to be built. 17646allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17647 17648# Flag that forces no undefined symbols. 17649no_undefined_flag=$lt_no_undefined_flag_GCJ 17650 17651# Commands used to finish a libtool library installation in a directory. 17652finish_cmds=$lt_finish_cmds 17653 17654# Same as above, but a single script fragment to be evaled but not shown. 17655finish_eval=$lt_finish_eval 17656 17657# Take the output of nm and produce a listing of raw symbols and C names. 17658global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17659 17660# Transform the output of nm in a proper C declaration 17661global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17662 17663# Transform the output of nm in a C name address pair 17664global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17665 17666# This is the shared library runtime path variable. 17667runpath_var=$runpath_var 17668 17669# This is the shared library path variable. 17670shlibpath_var=$shlibpath_var 17671 17672# Is shlibpath searched before the hard-coded library search path? 17673shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17674 17675# How to hardcode a shared library path into an executable. 17676hardcode_action=$hardcode_action_GCJ 17677 17678# Whether we should hardcode library paths into libraries. 17679hardcode_into_libs=$hardcode_into_libs 17680 17681# Flag to hardcode \$libdir into a binary during linking. 17682# This must work even if \$libdir does not exist. 17683hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17684 17685# If ld is used when linking, flag to hardcode \$libdir into 17686# a binary during linking. This must work even if \$libdir does 17687# not exist. 17688hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17689 17690# Whether we need a single -rpath flag with a separated argument. 17691hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17692 17693# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17694# resulting binary. 17695hardcode_direct=$hardcode_direct_GCJ 17696 17697# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17698# resulting binary. 17699hardcode_minus_L=$hardcode_minus_L_GCJ 17700 17701# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17702# the resulting binary. 17703hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17704 17705# Set to yes if building a shared library automatically hardcodes DIR into the library 17706# and all subsequent libraries and executables linked against it. 17707hardcode_automatic=$hardcode_automatic_GCJ 17708 17709# Variables whose values should be saved in libtool wrapper scripts and 17710# restored at relink time. 17711variables_saved_for_relink="$variables_saved_for_relink" 17712 17713# Whether libtool must link a program against all its dependency libraries. 17714link_all_deplibs=$link_all_deplibs_GCJ 17715 17716# Compile-time system search path for libraries 17717sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17718 17719# Run-time system search path for libraries 17720sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17721 17722# Fix the shell variable \$srcfile for the compiler. 17723fix_srcfile_path="$fix_srcfile_path_GCJ" 17724 17725# Set to yes if exported symbols are required. 17726always_export_symbols=$always_export_symbols_GCJ 17727 17728# The commands to list exported symbols. 17729export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17730 17731# The commands to extract the exported symbol list from a shared archive. 17732extract_expsyms_cmds=$lt_extract_expsyms_cmds 17733 17734# Symbols that should not be listed in the preloaded symbols. 17735exclude_expsyms=$lt_exclude_expsyms_GCJ 17736 17737# Symbols that must always be exported. 17738include_expsyms=$lt_include_expsyms_GCJ 17739 17740# ### END LIBTOOL TAG CONFIG: $tagname 17741 17742__EOF__ 17743 17744 17745else 17746 # If there is no Makefile yet, we rely on a make rule to execute 17747 # `config.status --recheck' to rerun these tests and create the 17748 # libtool script then. 17749 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17750 if test -f "$ltmain_in"; then 17751 test -f Makefile && make "$ltmain" 17752 fi 17753fi 17754 17755 17756ac_ext=c 17757ac_cpp='$CPP $CPPFLAGS' 17758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17760ac_compiler_gnu=$ac_cv_c_compiler_gnu 17761 17762CC="$lt_save_CC" 17763 17764 else 17765 tagname="" 17766 fi 17767 ;; 17768 17769 RC) 17770 17771 17772 17773# Source file extension for RC test sources. 17774ac_ext=rc 17775 17776# Object file extension for compiled RC test sources. 17777objext=o 17778objext_RC=$objext 17779 17780# Code to be used in simple compile tests 17781lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17782 17783# Code to be used in simple link tests 17784lt_simple_link_test_code="$lt_simple_compile_test_code" 17785 17786# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17787 17788# If no C compiler was specified, use CC. 17789LTCC=${LTCC-"$CC"} 17790 17791# If no C compiler flags were specified, use CFLAGS. 17792LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17793 17794# Allow CC to be a program name with arguments. 17795compiler=$CC 17796 17797 17798# save warnings/boilerplate of simple test code 17799ac_outfile=conftest.$ac_objext 17800printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17801eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17802_lt_compiler_boilerplate=`cat conftest.err` 17803$rm conftest* 17804 17805ac_outfile=conftest.$ac_objext 17806printf "$lt_simple_link_test_code" >conftest.$ac_ext 17807eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17808_lt_linker_boilerplate=`cat conftest.err` 17809$rm conftest* 17810 17811 17812# Allow CC to be a program name with arguments. 17813lt_save_CC="$CC" 17814CC=${RC-"windres"} 17815compiler=$CC 17816compiler_RC=$CC 17817for cc_temp in $compiler""; do 17818 case $cc_temp in 17819 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17820 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17821 \-*) ;; 17822 *) break;; 17823 esac 17824done 17825cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17826 17827lt_cv_prog_compiler_c_o_RC=yes 17828 17829# The else clause should only fire when bootstrapping the 17830# libtool distribution, otherwise you forgot to ship ltmain.sh 17831# with your package, and you will get complaints that there are 17832# no rules to generate ltmain.sh. 17833if test -f "$ltmain"; then 17834 # See if we are running on zsh, and set the options which allow our commands through 17835 # without removal of \ escapes. 17836 if test -n "${ZSH_VERSION+set}" ; then 17837 setopt NO_GLOB_SUBST 17838 fi 17839 # Now quote all the things that may contain metacharacters while being 17840 # careful not to overquote the AC_SUBSTed values. We take copies of the 17841 # variables and quote the copies for generation of the libtool script. 17842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17843 SED SHELL STRIP \ 17844 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17845 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17846 deplibs_check_method reload_flag reload_cmds need_locks \ 17847 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17848 lt_cv_sys_global_symbol_to_c_name_address \ 17849 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17850 old_postinstall_cmds old_postuninstall_cmds \ 17851 compiler_RC \ 17852 CC_RC \ 17853 LD_RC \ 17854 lt_prog_compiler_wl_RC \ 17855 lt_prog_compiler_pic_RC \ 17856 lt_prog_compiler_static_RC \ 17857 lt_prog_compiler_no_builtin_flag_RC \ 17858 export_dynamic_flag_spec_RC \ 17859 thread_safe_flag_spec_RC \ 17860 whole_archive_flag_spec_RC \ 17861 enable_shared_with_static_runtimes_RC \ 17862 old_archive_cmds_RC \ 17863 old_archive_from_new_cmds_RC \ 17864 predep_objects_RC \ 17865 postdep_objects_RC \ 17866 predeps_RC \ 17867 postdeps_RC \ 17868 compiler_lib_search_path_RC \ 17869 archive_cmds_RC \ 17870 archive_expsym_cmds_RC \ 17871 postinstall_cmds_RC \ 17872 postuninstall_cmds_RC \ 17873 old_archive_from_expsyms_cmds_RC \ 17874 allow_undefined_flag_RC \ 17875 no_undefined_flag_RC \ 17876 export_symbols_cmds_RC \ 17877 hardcode_libdir_flag_spec_RC \ 17878 hardcode_libdir_flag_spec_ld_RC \ 17879 hardcode_libdir_separator_RC \ 17880 hardcode_automatic_RC \ 17881 module_cmds_RC \ 17882 module_expsym_cmds_RC \ 17883 lt_cv_prog_compiler_c_o_RC \ 17884 exclude_expsyms_RC \ 17885 include_expsyms_RC; do 17886 17887 case $var in 17888 old_archive_cmds_RC | \ 17889 old_archive_from_new_cmds_RC | \ 17890 archive_cmds_RC | \ 17891 archive_expsym_cmds_RC | \ 17892 module_cmds_RC | \ 17893 module_expsym_cmds_RC | \ 17894 old_archive_from_expsyms_cmds_RC | \ 17895 export_symbols_cmds_RC | \ 17896 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17897 postinstall_cmds | postuninstall_cmds | \ 17898 old_postinstall_cmds | old_postuninstall_cmds | \ 17899 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17900 # Double-quote double-evaled strings. 17901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17902 ;; 17903 *) 17904 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17905 ;; 17906 esac 17907 done 17908 17909 case $lt_echo in 17910 *'\$0 --fallback-echo"') 17911 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17912 ;; 17913 esac 17914 17915cfgfile="$ofile" 17916 17917 cat <<__EOF__ >> "$cfgfile" 17918# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17919 17920# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17921 17922# Shell to use when invoking shell scripts. 17923SHELL=$lt_SHELL 17924 17925# Whether or not to build shared libraries. 17926build_libtool_libs=$enable_shared 17927 17928# Whether or not to build static libraries. 17929build_old_libs=$enable_static 17930 17931# Whether or not to add -lc for building shared libraries. 17932build_libtool_need_lc=$archive_cmds_need_lc_RC 17933 17934# Whether or not to disallow shared libs when runtime libs are static 17935allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17936 17937# Whether or not to optimize for fast installation. 17938fast_install=$enable_fast_install 17939 17940# The host system. 17941host_alias=$host_alias 17942host=$host 17943host_os=$host_os 17944 17945# The build system. 17946build_alias=$build_alias 17947build=$build 17948build_os=$build_os 17949 17950# An echo program that does not interpret backslashes. 17951echo=$lt_echo 17952 17953# The archiver. 17954AR=$lt_AR 17955AR_FLAGS=$lt_AR_FLAGS 17956 17957# A C compiler. 17958LTCC=$lt_LTCC 17959 17960# LTCC compiler flags. 17961LTCFLAGS=$lt_LTCFLAGS 17962 17963# A language-specific compiler. 17964CC=$lt_compiler_RC 17965 17966# Is the compiler the GNU C compiler? 17967with_gcc=$GCC_RC 17968 17969# An ERE matcher. 17970EGREP=$lt_EGREP 17971 17972# The linker used to build libraries. 17973LD=$lt_LD_RC 17974 17975# Whether we need hard or soft links. 17976LN_S=$lt_LN_S 17977 17978# A BSD-compatible nm program. 17979NM=$lt_NM 17980 17981# A symbol stripping program 17982STRIP=$lt_STRIP 17983 17984# Used to examine libraries when file_magic_cmd begins "file" 17985MAGIC_CMD=$MAGIC_CMD 17986 17987# Used on cygwin: DLL creation program. 17988DLLTOOL="$DLLTOOL" 17989 17990# Used on cygwin: object dumper. 17991OBJDUMP="$OBJDUMP" 17992 17993# Used on cygwin: assembler. 17994AS="$AS" 17995 17996# The name of the directory that contains temporary libtool files. 17997objdir=$objdir 17998 17999# How to create reloadable object files. 18000reload_flag=$lt_reload_flag 18001reload_cmds=$lt_reload_cmds 18002 18003# How to pass a linker flag through the compiler. 18004wl=$lt_lt_prog_compiler_wl_RC 18005 18006# Object file suffix (normally "o"). 18007objext="$ac_objext" 18008 18009# Old archive suffix (normally "a"). 18010libext="$libext" 18011 18012# Shared library suffix (normally ".so"). 18013shrext_cmds='$shrext_cmds' 18014 18015# Executable file suffix (normally ""). 18016exeext="$exeext" 18017 18018# Additional compiler flags for building library objects. 18019pic_flag=$lt_lt_prog_compiler_pic_RC 18020pic_mode=$pic_mode 18021 18022# What is the maximum length of a command? 18023max_cmd_len=$lt_cv_sys_max_cmd_len 18024 18025# Does compiler simultaneously support -c and -o options? 18026compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18027 18028# Must we lock files when doing compilation? 18029need_locks=$lt_need_locks 18030 18031# Do we need the lib prefix for modules? 18032need_lib_prefix=$need_lib_prefix 18033 18034# Do we need a version for libraries? 18035need_version=$need_version 18036 18037# Whether dlopen is supported. 18038dlopen_support=$enable_dlopen 18039 18040# Whether dlopen of programs is supported. 18041dlopen_self=$enable_dlopen_self 18042 18043# Whether dlopen of statically linked programs is supported. 18044dlopen_self_static=$enable_dlopen_self_static 18045 18046# Compiler flag to prevent dynamic linking. 18047link_static_flag=$lt_lt_prog_compiler_static_RC 18048 18049# Compiler flag to turn off builtin functions. 18050no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18051 18052# Compiler flag to allow reflexive dlopens. 18053export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18054 18055# Compiler flag to generate shared objects directly from archives. 18056whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18057 18058# Compiler flag to generate thread-safe objects. 18059thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18060 18061# Library versioning type. 18062version_type=$version_type 18063 18064# Format of library name prefix. 18065libname_spec=$lt_libname_spec 18066 18067# List of archive names. First name is the real one, the rest are links. 18068# The last name is the one that the linker finds with -lNAME. 18069library_names_spec=$lt_library_names_spec 18070 18071# The coded name of the library, if different from the real name. 18072soname_spec=$lt_soname_spec 18073 18074# Commands used to build and install an old-style archive. 18075RANLIB=$lt_RANLIB 18076old_archive_cmds=$lt_old_archive_cmds_RC 18077old_postinstall_cmds=$lt_old_postinstall_cmds 18078old_postuninstall_cmds=$lt_old_postuninstall_cmds 18079 18080# Create an old-style archive from a shared archive. 18081old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18082 18083# Create a temporary old-style archive to link instead of a shared archive. 18084old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18085 18086# Commands used to build and install a shared archive. 18087archive_cmds=$lt_archive_cmds_RC 18088archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18089postinstall_cmds=$lt_postinstall_cmds 18090postuninstall_cmds=$lt_postuninstall_cmds 18091 18092# Commands used to build a loadable module (assumed same as above if empty) 18093module_cmds=$lt_module_cmds_RC 18094module_expsym_cmds=$lt_module_expsym_cmds_RC 18095 18096# Commands to strip libraries. 18097old_striplib=$lt_old_striplib 18098striplib=$lt_striplib 18099 18100# Dependencies to place before the objects being linked to create a 18101# shared library. 18102predep_objects=$lt_predep_objects_RC 18103 18104# Dependencies to place after the objects being linked to create a 18105# shared library. 18106postdep_objects=$lt_postdep_objects_RC 18107 18108# Dependencies to place before the objects being linked to create a 18109# shared library. 18110predeps=$lt_predeps_RC 18111 18112# Dependencies to place after the objects being linked to create a 18113# shared library. 18114postdeps=$lt_postdeps_RC 18115 18116# The library search path used internally by the compiler when linking 18117# a shared library. 18118compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18119 18120# Method to check whether dependent libraries are shared objects. 18121deplibs_check_method=$lt_deplibs_check_method 18122 18123# Command to use when deplibs_check_method == file_magic. 18124file_magic_cmd=$lt_file_magic_cmd 18125 18126# Flag that allows shared libraries with undefined symbols to be built. 18127allow_undefined_flag=$lt_allow_undefined_flag_RC 18128 18129# Flag that forces no undefined symbols. 18130no_undefined_flag=$lt_no_undefined_flag_RC 18131 18132# Commands used to finish a libtool library installation in a directory. 18133finish_cmds=$lt_finish_cmds 18134 18135# Same as above, but a single script fragment to be evaled but not shown. 18136finish_eval=$lt_finish_eval 18137 18138# Take the output of nm and produce a listing of raw symbols and C names. 18139global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18140 18141# Transform the output of nm in a proper C declaration 18142global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18143 18144# Transform the output of nm in a C name address pair 18145global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18146 18147# This is the shared library runtime path variable. 18148runpath_var=$runpath_var 18149 18150# This is the shared library path variable. 18151shlibpath_var=$shlibpath_var 18152 18153# Is shlibpath searched before the hard-coded library search path? 18154shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18155 18156# How to hardcode a shared library path into an executable. 18157hardcode_action=$hardcode_action_RC 18158 18159# Whether we should hardcode library paths into libraries. 18160hardcode_into_libs=$hardcode_into_libs 18161 18162# Flag to hardcode \$libdir into a binary during linking. 18163# This must work even if \$libdir does not exist. 18164hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18165 18166# If ld is used when linking, flag to hardcode \$libdir into 18167# a binary during linking. This must work even if \$libdir does 18168# not exist. 18169hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18170 18171# Whether we need a single -rpath flag with a separated argument. 18172hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18173 18174# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18175# resulting binary. 18176hardcode_direct=$hardcode_direct_RC 18177 18178# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18179# resulting binary. 18180hardcode_minus_L=$hardcode_minus_L_RC 18181 18182# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18183# the resulting binary. 18184hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18185 18186# Set to yes if building a shared library automatically hardcodes DIR into the library 18187# and all subsequent libraries and executables linked against it. 18188hardcode_automatic=$hardcode_automatic_RC 18189 18190# Variables whose values should be saved in libtool wrapper scripts and 18191# restored at relink time. 18192variables_saved_for_relink="$variables_saved_for_relink" 18193 18194# Whether libtool must link a program against all its dependency libraries. 18195link_all_deplibs=$link_all_deplibs_RC 18196 18197# Compile-time system search path for libraries 18198sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18199 18200# Run-time system search path for libraries 18201sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18202 18203# Fix the shell variable \$srcfile for the compiler. 18204fix_srcfile_path="$fix_srcfile_path_RC" 18205 18206# Set to yes if exported symbols are required. 18207always_export_symbols=$always_export_symbols_RC 18208 18209# The commands to list exported symbols. 18210export_symbols_cmds=$lt_export_symbols_cmds_RC 18211 18212# The commands to extract the exported symbol list from a shared archive. 18213extract_expsyms_cmds=$lt_extract_expsyms_cmds 18214 18215# Symbols that should not be listed in the preloaded symbols. 18216exclude_expsyms=$lt_exclude_expsyms_RC 18217 18218# Symbols that must always be exported. 18219include_expsyms=$lt_include_expsyms_RC 18220 18221# ### END LIBTOOL TAG CONFIG: $tagname 18222 18223__EOF__ 18224 18225 18226else 18227 # If there is no Makefile yet, we rely on a make rule to execute 18228 # `config.status --recheck' to rerun these tests and create the 18229 # libtool script then. 18230 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18231 if test -f "$ltmain_in"; then 18232 test -f Makefile && make "$ltmain" 18233 fi 18234fi 18235 18236 18237ac_ext=c 18238ac_cpp='$CPP $CPPFLAGS' 18239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18241ac_compiler_gnu=$ac_cv_c_compiler_gnu 18242 18243CC="$lt_save_CC" 18244 18245 ;; 18246 18247 *) 18248 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18249echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18250 { (exit 1); exit 1; }; } 18251 ;; 18252 esac 18253 18254 # Append the new tag name to the list of available tags. 18255 if test -n "$tagname" ; then 18256 available_tags="$available_tags $tagname" 18257 fi 18258 fi 18259 done 18260 IFS="$lt_save_ifs" 18261 18262 # Now substitute the updated list of available tags. 18263 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18264 mv "${ofile}T" "$ofile" 18265 chmod +x "$ofile" 18266 else 18267 rm -f "${ofile}T" 18268 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18269echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18270 { (exit 1); exit 1; }; } 18271 fi 18272fi 18273 18274 18275 18276# This can be used to rebuild libtool when needed 18277LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18278 18279# Always use our own libtool. 18280LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18281 18282# Prevent multiple expansion 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304# Checks for libraries. 18305 18306echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5 18307echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6 18308if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then 18309 echo $ECHO_N "(cached) $ECHO_C" >&6 18310else 18311 ac_check_lib_save_LIBS=$LIBS 18312LIBS="-lpq $LIBS" 18313cat >conftest.$ac_ext <<_ACEOF 18314/* confdefs.h. */ 18315_ACEOF 18316cat confdefs.h >>conftest.$ac_ext 18317cat >>conftest.$ac_ext <<_ACEOF 18318/* end confdefs.h. */ 18319 18320/* Override any gcc2 internal prototype to avoid an error. */ 18321#ifdef __cplusplus 18322extern "C" 18323#endif 18324/* We use char because int might match the return type of a gcc2 18325 builtin and then its argument prototype would still apply. */ 18326char PQsetdbLogin (); 18327int 18328main () 18329{ 18330PQsetdbLogin (); 18331 ; 18332 return 0; 18333} 18334_ACEOF 18335rm -f conftest.$ac_objext conftest$ac_exeext 18336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18337 (eval $ac_link) 2>conftest.er1 18338 ac_status=$? 18339 grep -v '^ *+' conftest.er1 >conftest.err 18340 rm -f conftest.er1 18341 cat conftest.err >&5 18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18343 (exit $ac_status); } && 18344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18346 (eval $ac_try) 2>&5 18347 ac_status=$? 18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18349 (exit $ac_status); }; } && 18350 { ac_try='test -s conftest$ac_exeext' 18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18352 (eval $ac_try) 2>&5 18353 ac_status=$? 18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18355 (exit $ac_status); }; }; then 18356 ac_cv_lib_pq_PQsetdbLogin=yes 18357else 18358 echo "$as_me: failed program was:" >&5 18359sed 's/^/| /' conftest.$ac_ext >&5 18360 18361ac_cv_lib_pq_PQsetdbLogin=no 18362fi 18363rm -f conftest.err conftest.$ac_objext \ 18364 conftest$ac_exeext conftest.$ac_ext 18365LIBS=$ac_check_lib_save_LIBS 18366fi 18367echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5 18368echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6 18369if test $ac_cv_lib_pq_PQsetdbLogin = yes; then 18370 cat >>confdefs.h <<_ACEOF 18371#define HAVE_LIBPQ 1 18372_ACEOF 18373 18374 LIBS="-lpq $LIBS" 18375 18376fi 18377 18378 18379# Checks for header files. 18380echo "$as_me:$LINENO: checking for ANSI C header files" >&5 18381echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 18382if test "${ac_cv_header_stdc+set}" = set; then 18383 echo $ECHO_N "(cached) $ECHO_C" >&6 18384else 18385 cat >conftest.$ac_ext <<_ACEOF 18386/* confdefs.h. */ 18387_ACEOF 18388cat confdefs.h >>conftest.$ac_ext 18389cat >>conftest.$ac_ext <<_ACEOF 18390/* end confdefs.h. */ 18391#include <stdlib.h> 18392#include <stdarg.h> 18393#include <string.h> 18394#include <float.h> 18395 18396int 18397main () 18398{ 18399 18400 ; 18401 return 0; 18402} 18403_ACEOF 18404rm -f conftest.$ac_objext 18405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18406 (eval $ac_compile) 2>conftest.er1 18407 ac_status=$? 18408 grep -v '^ *+' conftest.er1 >conftest.err 18409 rm -f conftest.er1 18410 cat conftest.err >&5 18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18412 (exit $ac_status); } && 18413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18415 (eval $ac_try) 2>&5 18416 ac_status=$? 18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18418 (exit $ac_status); }; } && 18419 { ac_try='test -s conftest.$ac_objext' 18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18421 (eval $ac_try) 2>&5 18422 ac_status=$? 18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18424 (exit $ac_status); }; }; then 18425 ac_cv_header_stdc=yes 18426else 18427 echo "$as_me: failed program was:" >&5 18428sed 's/^/| /' conftest.$ac_ext >&5 18429 18430ac_cv_header_stdc=no 18431fi 18432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18433 18434if test $ac_cv_header_stdc = yes; then 18435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18436 cat >conftest.$ac_ext <<_ACEOF 18437/* confdefs.h. */ 18438_ACEOF 18439cat confdefs.h >>conftest.$ac_ext 18440cat >>conftest.$ac_ext <<_ACEOF 18441/* end confdefs.h. */ 18442#include <string.h> 18443 18444_ACEOF 18445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18446 $EGREP "memchr" >/dev/null 2>&1; then 18447 : 18448else 18449 ac_cv_header_stdc=no 18450fi 18451rm -f conftest* 18452 18453fi 18454 18455if test $ac_cv_header_stdc = yes; then 18456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18457 cat >conftest.$ac_ext <<_ACEOF 18458/* confdefs.h. */ 18459_ACEOF 18460cat confdefs.h >>conftest.$ac_ext 18461cat >>conftest.$ac_ext <<_ACEOF 18462/* end confdefs.h. */ 18463#include <stdlib.h> 18464 18465_ACEOF 18466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18467 $EGREP "free" >/dev/null 2>&1; then 18468 : 18469else 18470 ac_cv_header_stdc=no 18471fi 18472rm -f conftest* 18473 18474fi 18475 18476if test $ac_cv_header_stdc = yes; then 18477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18478 if test "$cross_compiling" = yes; then 18479 : 18480else 18481 cat >conftest.$ac_ext <<_ACEOF 18482/* confdefs.h. */ 18483_ACEOF 18484cat confdefs.h >>conftest.$ac_ext 18485cat >>conftest.$ac_ext <<_ACEOF 18486/* end confdefs.h. */ 18487#include <ctype.h> 18488#if ((' ' & 0x0FF) == 0x020) 18489# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18490# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18491#else 18492# define ISLOWER(c) \ 18493 (('a' <= (c) && (c) <= 'i') \ 18494 || ('j' <= (c) && (c) <= 'r') \ 18495 || ('s' <= (c) && (c) <= 'z')) 18496# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18497#endif 18498 18499#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18500int 18501main () 18502{ 18503 int i; 18504 for (i = 0; i < 256; i++) 18505 if (XOR (islower (i), ISLOWER (i)) 18506 || toupper (i) != TOUPPER (i)) 18507 exit(2); 18508 exit (0); 18509} 18510_ACEOF 18511rm -f conftest$ac_exeext 18512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18513 (eval $ac_link) 2>&5 18514 ac_status=$? 18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18518 (eval $ac_try) 2>&5 18519 ac_status=$? 18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18521 (exit $ac_status); }; }; then 18522 : 18523else 18524 echo "$as_me: program exited with status $ac_status" >&5 18525echo "$as_me: failed program was:" >&5 18526sed 's/^/| /' conftest.$ac_ext >&5 18527 18528( exit $ac_status ) 18529ac_cv_header_stdc=no 18530fi 18531rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18532fi 18533fi 18534fi 18535echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 18536echo "${ECHO_T}$ac_cv_header_stdc" >&6 18537if test $ac_cv_header_stdc = yes; then 18538 18539cat >>confdefs.h <<\_ACEOF 18540#define STDC_HEADERS 1 18541_ACEOF 18542 18543fi 18544 18545 18546 18547 18548 18549for ac_header in stdlib.h string.h unistd.h nss.h 18550do 18551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18552if eval "test \"\${$as_ac_Header+set}\" = set"; then 18553 echo "$as_me:$LINENO: checking for $ac_header" >&5 18554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18555if eval "test \"\${$as_ac_Header+set}\" = set"; then 18556 echo $ECHO_N "(cached) $ECHO_C" >&6 18557fi 18558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18560else 18561 # Is the header compilable? 18562echo "$as_me:$LINENO: checking $ac_header usability" >&5 18563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18564cat >conftest.$ac_ext <<_ACEOF 18565/* confdefs.h. */ 18566_ACEOF 18567cat confdefs.h >>conftest.$ac_ext 18568cat >>conftest.$ac_ext <<_ACEOF 18569/* end confdefs.h. */ 18570$ac_includes_default 18571#include <$ac_header> 18572_ACEOF 18573rm -f conftest.$ac_objext 18574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18575 (eval $ac_compile) 2>conftest.er1 18576 ac_status=$? 18577 grep -v '^ *+' conftest.er1 >conftest.err 18578 rm -f conftest.er1 18579 cat conftest.err >&5 18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18581 (exit $ac_status); } && 18582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18584 (eval $ac_try) 2>&5 18585 ac_status=$? 18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18587 (exit $ac_status); }; } && 18588 { ac_try='test -s conftest.$ac_objext' 18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18590 (eval $ac_try) 2>&5 18591 ac_status=$? 18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18593 (exit $ac_status); }; }; then 18594 ac_header_compiler=yes 18595else 18596 echo "$as_me: failed program was:" >&5 18597sed 's/^/| /' conftest.$ac_ext >&5 18598 18599ac_header_compiler=no 18600fi 18601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18603echo "${ECHO_T}$ac_header_compiler" >&6 18604 18605# Is the header present? 18606echo "$as_me:$LINENO: checking $ac_header presence" >&5 18607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18608cat >conftest.$ac_ext <<_ACEOF 18609/* confdefs.h. */ 18610_ACEOF 18611cat confdefs.h >>conftest.$ac_ext 18612cat >>conftest.$ac_ext <<_ACEOF 18613/* end confdefs.h. */ 18614#include <$ac_header> 18615_ACEOF 18616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18618 ac_status=$? 18619 grep -v '^ *+' conftest.er1 >conftest.err 18620 rm -f conftest.er1 18621 cat conftest.err >&5 18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18623 (exit $ac_status); } >/dev/null; then 18624 if test -s conftest.err; then 18625 ac_cpp_err=$ac_c_preproc_warn_flag 18626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18627 else 18628 ac_cpp_err= 18629 fi 18630else 18631 ac_cpp_err=yes 18632fi 18633if test -z "$ac_cpp_err"; then 18634 ac_header_preproc=yes 18635else 18636 echo "$as_me: failed program was:" >&5 18637sed 's/^/| /' conftest.$ac_ext >&5 18638 18639 ac_header_preproc=no 18640fi 18641rm -f conftest.err conftest.$ac_ext 18642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18643echo "${ECHO_T}$ac_header_preproc" >&6 18644 18645# So? What about this header? 18646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18647 yes:no: ) 18648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 18651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 18652 ac_header_preproc=yes 18653 ;; 18654 no:yes:* ) 18655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 18660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 18661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 18662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 18663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 18666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 18667 ( 18668 cat <<\_ASBOX 18669## ----------------------------------------------- ## 18670## Report this to libnsspgsql1@packages.debian.org ## 18671## ----------------------------------------------- ## 18672_ASBOX 18673 ) | 18674 sed "s/^/$as_me: WARNING: /" >&2 18675 ;; 18676esac 18677echo "$as_me:$LINENO: checking for $ac_header" >&5 18678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18679if eval "test \"\${$as_ac_Header+set}\" = set"; then 18680 echo $ECHO_N "(cached) $ECHO_C" >&6 18681else 18682 eval "$as_ac_Header=\$ac_header_preproc" 18683fi 18684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18686 18687fi 18688if test `eval echo '${'$as_ac_Header'}'` = yes; then 18689 cat >>confdefs.h <<_ACEOF 18690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 18691_ACEOF 18692 18693fi 18694 18695done 18696 18697 18698# Checks for typedefs, structures, and compiler characteristics. 18699echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 18700echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 18701if test "${ac_cv_c_const+set}" = set; then 18702 echo $ECHO_N "(cached) $ECHO_C" >&6 18703else 18704 cat >conftest.$ac_ext <<_ACEOF 18705/* confdefs.h. */ 18706_ACEOF 18707cat confdefs.h >>conftest.$ac_ext 18708cat >>conftest.$ac_ext <<_ACEOF 18709/* end confdefs.h. */ 18710 18711int 18712main () 18713{ 18714/* FIXME: Include the comments suggested by Paul. */ 18715#ifndef __cplusplus 18716 /* Ultrix mips cc rejects this. */ 18717 typedef int charset[2]; 18718 const charset x; 18719 /* SunOS 4.1.1 cc rejects this. */ 18720 char const *const *ccp; 18721 char **p; 18722 /* NEC SVR4.0.2 mips cc rejects this. */ 18723 struct point {int x, y;}; 18724 static struct point const zero = {0,0}; 18725 /* AIX XL C 1.02.0.0 rejects this. 18726 It does not let you subtract one const X* pointer from another in 18727 an arm of an if-expression whose if-part is not a constant 18728 expression */ 18729 const char *g = "string"; 18730 ccp = &g + (g ? g-g : 0); 18731 /* HPUX 7.0 cc rejects these. */ 18732 ++ccp; 18733 p = (char**) ccp; 18734 ccp = (char const *const *) p; 18735 { /* SCO 3.2v4 cc rejects this. */ 18736 char *t; 18737 char const *s = 0 ? (char *) 0 : (char const *) 0; 18738 18739 *t++ = 0; 18740 } 18741 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18742 int x[] = {25, 17}; 18743 const int *foo = &x[0]; 18744 ++foo; 18745 } 18746 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18747 typedef const int *iptr; 18748 iptr p = 0; 18749 ++p; 18750 } 18751 { /* AIX XL C 1.02.0.0 rejects this saying 18752 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18753 struct s { int j; const int *ap[3]; }; 18754 struct s *b; b->j = 5; 18755 } 18756 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18757 const int foo = 10; 18758 } 18759#endif 18760 18761 ; 18762 return 0; 18763} 18764_ACEOF 18765rm -f conftest.$ac_objext 18766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18767 (eval $ac_compile) 2>conftest.er1 18768 ac_status=$? 18769 grep -v '^ *+' conftest.er1 >conftest.err 18770 rm -f conftest.er1 18771 cat conftest.err >&5 18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18773 (exit $ac_status); } && 18774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18776 (eval $ac_try) 2>&5 18777 ac_status=$? 18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18779 (exit $ac_status); }; } && 18780 { ac_try='test -s conftest.$ac_objext' 18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18782 (eval $ac_try) 2>&5 18783 ac_status=$? 18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18785 (exit $ac_status); }; }; then 18786 ac_cv_c_const=yes 18787else 18788 echo "$as_me: failed program was:" >&5 18789sed 's/^/| /' conftest.$ac_ext >&5 18790 18791ac_cv_c_const=no 18792fi 18793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18794fi 18795echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 18796echo "${ECHO_T}$ac_cv_c_const" >&6 18797if test $ac_cv_c_const = no; then 18798 18799cat >>confdefs.h <<\_ACEOF 18800#define const 18801_ACEOF 18802 18803fi 18804 18805echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 18806echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 18807if test "${ac_cv_type_uid_t+set}" = set; then 18808 echo $ECHO_N "(cached) $ECHO_C" >&6 18809else 18810 cat >conftest.$ac_ext <<_ACEOF 18811/* confdefs.h. */ 18812_ACEOF 18813cat confdefs.h >>conftest.$ac_ext 18814cat >>conftest.$ac_ext <<_ACEOF 18815/* end confdefs.h. */ 18816#include <sys/types.h> 18817 18818_ACEOF 18819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18820 $EGREP "uid_t" >/dev/null 2>&1; then 18821 ac_cv_type_uid_t=yes 18822else 18823 ac_cv_type_uid_t=no 18824fi 18825rm -f conftest* 18826 18827fi 18828echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 18829echo "${ECHO_T}$ac_cv_type_uid_t" >&6 18830if test $ac_cv_type_uid_t = no; then 18831 18832cat >>confdefs.h <<\_ACEOF 18833#define uid_t int 18834_ACEOF 18835 18836 18837cat >>confdefs.h <<\_ACEOF 18838#define gid_t int 18839_ACEOF 18840 18841fi 18842 18843echo "$as_me:$LINENO: checking for inline" >&5 18844echo $ECHO_N "checking for inline... $ECHO_C" >&6 18845if test "${ac_cv_c_inline+set}" = set; then 18846 echo $ECHO_N "(cached) $ECHO_C" >&6 18847else 18848 ac_cv_c_inline=no 18849for ac_kw in inline __inline__ __inline; do 18850 cat >conftest.$ac_ext <<_ACEOF 18851/* confdefs.h. */ 18852_ACEOF 18853cat confdefs.h >>conftest.$ac_ext 18854cat >>conftest.$ac_ext <<_ACEOF 18855/* end confdefs.h. */ 18856#ifndef __cplusplus 18857typedef int foo_t; 18858static $ac_kw foo_t static_foo () {return 0; } 18859$ac_kw foo_t foo () {return 0; } 18860#endif 18861 18862_ACEOF 18863rm -f conftest.$ac_objext 18864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18865 (eval $ac_compile) 2>conftest.er1 18866 ac_status=$? 18867 grep -v '^ *+' conftest.er1 >conftest.err 18868 rm -f conftest.er1 18869 cat conftest.err >&5 18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18871 (exit $ac_status); } && 18872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18874 (eval $ac_try) 2>&5 18875 ac_status=$? 18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18877 (exit $ac_status); }; } && 18878 { ac_try='test -s conftest.$ac_objext' 18879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18880 (eval $ac_try) 2>&5 18881 ac_status=$? 18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18883 (exit $ac_status); }; }; then 18884 ac_cv_c_inline=$ac_kw; break 18885else 18886 echo "$as_me: failed program was:" >&5 18887sed 's/^/| /' conftest.$ac_ext >&5 18888 18889fi 18890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18891done 18892 18893fi 18894echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 18895echo "${ECHO_T}$ac_cv_c_inline" >&6 18896 18897 18898case $ac_cv_c_inline in 18899 inline | yes) ;; 18900 *) 18901 case $ac_cv_c_inline in 18902 no) ac_val=;; 18903 *) ac_val=$ac_cv_c_inline;; 18904 esac 18905 cat >>confdefs.h <<_ACEOF 18906#ifndef __cplusplus 18907#define inline $ac_val 18908#endif 18909_ACEOF 18910 ;; 18911esac 18912 18913echo "$as_me:$LINENO: checking for size_t" >&5 18914echo $ECHO_N "checking for size_t... $ECHO_C" >&6 18915if test "${ac_cv_type_size_t+set}" = set; then 18916 echo $ECHO_N "(cached) $ECHO_C" >&6 18917else 18918 cat >conftest.$ac_ext <<_ACEOF 18919/* confdefs.h. */ 18920_ACEOF 18921cat confdefs.h >>conftest.$ac_ext 18922cat >>conftest.$ac_ext <<_ACEOF 18923/* end confdefs.h. */ 18924$ac_includes_default 18925int 18926main () 18927{ 18928if ((size_t *) 0) 18929 return 0; 18930if (sizeof (size_t)) 18931 return 0; 18932 ; 18933 return 0; 18934} 18935_ACEOF 18936rm -f conftest.$ac_objext 18937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18938 (eval $ac_compile) 2>conftest.er1 18939 ac_status=$? 18940 grep -v '^ *+' conftest.er1 >conftest.err 18941 rm -f conftest.er1 18942 cat conftest.err >&5 18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18944 (exit $ac_status); } && 18945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18947 (eval $ac_try) 2>&5 18948 ac_status=$? 18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18950 (exit $ac_status); }; } && 18951 { ac_try='test -s conftest.$ac_objext' 18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18953 (eval $ac_try) 2>&5 18954 ac_status=$? 18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18956 (exit $ac_status); }; }; then 18957 ac_cv_type_size_t=yes 18958else 18959 echo "$as_me: failed program was:" >&5 18960sed 's/^/| /' conftest.$ac_ext >&5 18961 18962ac_cv_type_size_t=no 18963fi 18964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18965fi 18966echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 18967echo "${ECHO_T}$ac_cv_type_size_t" >&6 18968if test $ac_cv_type_size_t = yes; then 18969 : 18970else 18971 18972cat >>confdefs.h <<_ACEOF 18973#define size_t unsigned 18974_ACEOF 18975 18976fi 18977 18978 18979# Checks for library functions. 18980 18981for ac_header in stdlib.h 18982do 18983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18984if eval "test \"\${$as_ac_Header+set}\" = set"; then 18985 echo "$as_me:$LINENO: checking for $ac_header" >&5 18986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18987if eval "test \"\${$as_ac_Header+set}\" = set"; then 18988 echo $ECHO_N "(cached) $ECHO_C" >&6 18989fi 18990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18992else 18993 # Is the header compilable? 18994echo "$as_me:$LINENO: checking $ac_header usability" >&5 18995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18996cat >conftest.$ac_ext <<_ACEOF 18997/* confdefs.h. */ 18998_ACEOF 18999cat confdefs.h >>conftest.$ac_ext 19000cat >>conftest.$ac_ext <<_ACEOF 19001/* end confdefs.h. */ 19002$ac_includes_default 19003#include <$ac_header> 19004_ACEOF 19005rm -f conftest.$ac_objext 19006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19007 (eval $ac_compile) 2>conftest.er1 19008 ac_status=$? 19009 grep -v '^ *+' conftest.er1 >conftest.err 19010 rm -f conftest.er1 19011 cat conftest.err >&5 19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19013 (exit $ac_status); } && 19014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19016 (eval $ac_try) 2>&5 19017 ac_status=$? 19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19019 (exit $ac_status); }; } && 19020 { ac_try='test -s conftest.$ac_objext' 19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19022 (eval $ac_try) 2>&5 19023 ac_status=$? 19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19025 (exit $ac_status); }; }; then 19026 ac_header_compiler=yes 19027else 19028 echo "$as_me: failed program was:" >&5 19029sed 's/^/| /' conftest.$ac_ext >&5 19030 19031ac_header_compiler=no 19032fi 19033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19035echo "${ECHO_T}$ac_header_compiler" >&6 19036 19037# Is the header present? 19038echo "$as_me:$LINENO: checking $ac_header presence" >&5 19039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19040cat >conftest.$ac_ext <<_ACEOF 19041/* confdefs.h. */ 19042_ACEOF 19043cat confdefs.h >>conftest.$ac_ext 19044cat >>conftest.$ac_ext <<_ACEOF 19045/* end confdefs.h. */ 19046#include <$ac_header> 19047_ACEOF 19048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19050 ac_status=$? 19051 grep -v '^ *+' conftest.er1 >conftest.err 19052 rm -f conftest.er1 19053 cat conftest.err >&5 19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19055 (exit $ac_status); } >/dev/null; then 19056 if test -s conftest.err; then 19057 ac_cpp_err=$ac_c_preproc_warn_flag 19058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19059 else 19060 ac_cpp_err= 19061 fi 19062else 19063 ac_cpp_err=yes 19064fi 19065if test -z "$ac_cpp_err"; then 19066 ac_header_preproc=yes 19067else 19068 echo "$as_me: failed program was:" >&5 19069sed 's/^/| /' conftest.$ac_ext >&5 19070 19071 ac_header_preproc=no 19072fi 19073rm -f conftest.err conftest.$ac_ext 19074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19075echo "${ECHO_T}$ac_header_preproc" >&6 19076 19077# So? What about this header? 19078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19079 yes:no: ) 19080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19084 ac_header_preproc=yes 19085 ;; 19086 no:yes:* ) 19087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19099 ( 19100 cat <<\_ASBOX 19101## ----------------------------------------------- ## 19102## Report this to libnsspgsql1@packages.debian.org ## 19103## ----------------------------------------------- ## 19104_ASBOX 19105 ) | 19106 sed "s/^/$as_me: WARNING: /" >&2 19107 ;; 19108esac 19109echo "$as_me:$LINENO: checking for $ac_header" >&5 19110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19111if eval "test \"\${$as_ac_Header+set}\" = set"; then 19112 echo $ECHO_N "(cached) $ECHO_C" >&6 19113else 19114 eval "$as_ac_Header=\$ac_header_preproc" 19115fi 19116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19118 19119fi 19120if test `eval echo '${'$as_ac_Header'}'` = yes; then 19121 cat >>confdefs.h <<_ACEOF 19122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19123_ACEOF 19124 19125fi 19126 19127done 19128 19129echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 19130echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 19131if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 19132 echo $ECHO_N "(cached) $ECHO_C" >&6 19133else 19134 if test "$cross_compiling" = yes; then 19135 ac_cv_func_malloc_0_nonnull=no 19136else 19137 cat >conftest.$ac_ext <<_ACEOF 19138/* confdefs.h. */ 19139_ACEOF 19140cat confdefs.h >>conftest.$ac_ext 19141cat >>conftest.$ac_ext <<_ACEOF 19142/* end confdefs.h. */ 19143#if STDC_HEADERS || HAVE_STDLIB_H 19144# include <stdlib.h> 19145#else 19146char *malloc (); 19147#endif 19148 19149int 19150main () 19151{ 19152exit (malloc (0) ? 0 : 1); 19153 ; 19154 return 0; 19155} 19156_ACEOF 19157rm -f conftest$ac_exeext 19158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19159 (eval $ac_link) 2>&5 19160 ac_status=$? 19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19164 (eval $ac_try) 2>&5 19165 ac_status=$? 19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19167 (exit $ac_status); }; }; then 19168 ac_cv_func_malloc_0_nonnull=yes 19169else 19170 echo "$as_me: program exited with status $ac_status" >&5 19171echo "$as_me: failed program was:" >&5 19172sed 's/^/| /' conftest.$ac_ext >&5 19173 19174( exit $ac_status ) 19175ac_cv_func_malloc_0_nonnull=no 19176fi 19177rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19178fi 19179fi 19180echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 19181echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 19182if test $ac_cv_func_malloc_0_nonnull = yes; then 19183 19184cat >>confdefs.h <<\_ACEOF 19185#define HAVE_MALLOC 1 19186_ACEOF 19187 19188else 19189 cat >>confdefs.h <<\_ACEOF 19190#define HAVE_MALLOC 0 19191_ACEOF 19192 19193 case $LIBOBJS in 19194 "malloc.$ac_objext" | \ 19195 *" malloc.$ac_objext" | \ 19196 "malloc.$ac_objext "* | \ 19197 *" malloc.$ac_objext "* ) ;; 19198 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 19199esac 19200 19201 19202cat >>confdefs.h <<\_ACEOF 19203#define malloc rpl_malloc 19204_ACEOF 19205 19206fi 19207 19208 19209 19210 19211for ac_header in stdlib.h 19212do 19213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19214if eval "test \"\${$as_ac_Header+set}\" = set"; then 19215 echo "$as_me:$LINENO: checking for $ac_header" >&5 19216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19217if eval "test \"\${$as_ac_Header+set}\" = set"; then 19218 echo $ECHO_N "(cached) $ECHO_C" >&6 19219fi 19220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19222else 19223 # Is the header compilable? 19224echo "$as_me:$LINENO: checking $ac_header usability" >&5 19225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19226cat >conftest.$ac_ext <<_ACEOF 19227/* confdefs.h. */ 19228_ACEOF 19229cat confdefs.h >>conftest.$ac_ext 19230cat >>conftest.$ac_ext <<_ACEOF 19231/* end confdefs.h. */ 19232$ac_includes_default 19233#include <$ac_header> 19234_ACEOF 19235rm -f conftest.$ac_objext 19236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19237 (eval $ac_compile) 2>conftest.er1 19238 ac_status=$? 19239 grep -v '^ *+' conftest.er1 >conftest.err 19240 rm -f conftest.er1 19241 cat conftest.err >&5 19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19243 (exit $ac_status); } && 19244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19246 (eval $ac_try) 2>&5 19247 ac_status=$? 19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19249 (exit $ac_status); }; } && 19250 { ac_try='test -s conftest.$ac_objext' 19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19252 (eval $ac_try) 2>&5 19253 ac_status=$? 19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19255 (exit $ac_status); }; }; then 19256 ac_header_compiler=yes 19257else 19258 echo "$as_me: failed program was:" >&5 19259sed 's/^/| /' conftest.$ac_ext >&5 19260 19261ac_header_compiler=no 19262fi 19263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19265echo "${ECHO_T}$ac_header_compiler" >&6 19266 19267# Is the header present? 19268echo "$as_me:$LINENO: checking $ac_header presence" >&5 19269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19270cat >conftest.$ac_ext <<_ACEOF 19271/* confdefs.h. */ 19272_ACEOF 19273cat confdefs.h >>conftest.$ac_ext 19274cat >>conftest.$ac_ext <<_ACEOF 19275/* end confdefs.h. */ 19276#include <$ac_header> 19277_ACEOF 19278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19280 ac_status=$? 19281 grep -v '^ *+' conftest.er1 >conftest.err 19282 rm -f conftest.er1 19283 cat conftest.err >&5 19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19285 (exit $ac_status); } >/dev/null; then 19286 if test -s conftest.err; then 19287 ac_cpp_err=$ac_c_preproc_warn_flag 19288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19289 else 19290 ac_cpp_err= 19291 fi 19292else 19293 ac_cpp_err=yes 19294fi 19295if test -z "$ac_cpp_err"; then 19296 ac_header_preproc=yes 19297else 19298 echo "$as_me: failed program was:" >&5 19299sed 's/^/| /' conftest.$ac_ext >&5 19300 19301 ac_header_preproc=no 19302fi 19303rm -f conftest.err conftest.$ac_ext 19304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19305echo "${ECHO_T}$ac_header_preproc" >&6 19306 19307# So? What about this header? 19308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19309 yes:no: ) 19310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19314 ac_header_preproc=yes 19315 ;; 19316 no:yes:* ) 19317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19329 ( 19330 cat <<\_ASBOX 19331## ----------------------------------------------- ## 19332## Report this to libnsspgsql1@packages.debian.org ## 19333## ----------------------------------------------- ## 19334_ASBOX 19335 ) | 19336 sed "s/^/$as_me: WARNING: /" >&2 19337 ;; 19338esac 19339echo "$as_me:$LINENO: checking for $ac_header" >&5 19340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19341if eval "test \"\${$as_ac_Header+set}\" = set"; then 19342 echo $ECHO_N "(cached) $ECHO_C" >&6 19343else 19344 eval "$as_ac_Header=\$ac_header_preproc" 19345fi 19346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19348 19349fi 19350if test `eval echo '${'$as_ac_Header'}'` = yes; then 19351 cat >>confdefs.h <<_ACEOF 19352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19353_ACEOF 19354 19355fi 19356 19357done 19358 19359echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 19360echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 19361if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 19362 echo $ECHO_N "(cached) $ECHO_C" >&6 19363else 19364 if test "$cross_compiling" = yes; then 19365 ac_cv_func_realloc_0_nonnull=no 19366else 19367 cat >conftest.$ac_ext <<_ACEOF 19368/* confdefs.h. */ 19369_ACEOF 19370cat confdefs.h >>conftest.$ac_ext 19371cat >>conftest.$ac_ext <<_ACEOF 19372/* end confdefs.h. */ 19373#if STDC_HEADERS || HAVE_STDLIB_H 19374# include <stdlib.h> 19375#else 19376char *realloc (); 19377#endif 19378 19379int 19380main () 19381{ 19382exit (realloc (0, 0) ? 0 : 1); 19383 ; 19384 return 0; 19385} 19386_ACEOF 19387rm -f conftest$ac_exeext 19388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19389 (eval $ac_link) 2>&5 19390 ac_status=$? 19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19394 (eval $ac_try) 2>&5 19395 ac_status=$? 19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19397 (exit $ac_status); }; }; then 19398 ac_cv_func_realloc_0_nonnull=yes 19399else 19400 echo "$as_me: program exited with status $ac_status" >&5 19401echo "$as_me: failed program was:" >&5 19402sed 's/^/| /' conftest.$ac_ext >&5 19403 19404( exit $ac_status ) 19405ac_cv_func_realloc_0_nonnull=no 19406fi 19407rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19408fi 19409fi 19410echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 19411echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 19412if test $ac_cv_func_realloc_0_nonnull = yes; then 19413 19414cat >>confdefs.h <<\_ACEOF 19415#define HAVE_REALLOC 1 19416_ACEOF 19417 19418else 19419 cat >>confdefs.h <<\_ACEOF 19420#define HAVE_REALLOC 0 19421_ACEOF 19422 19423 case $LIBOBJS in 19424 "realloc.$ac_objext" | \ 19425 *" realloc.$ac_objext" | \ 19426 "realloc.$ac_objext "* | \ 19427 *" realloc.$ac_objext "* ) ;; 19428 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; 19429esac 19430 19431 19432cat >>confdefs.h <<\_ACEOF 19433#define realloc rpl_realloc 19434_ACEOF 19435 19436fi 19437 19438 19439 19440 19441for ac_func in vprintf 19442do 19443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19444echo "$as_me:$LINENO: checking for $ac_func" >&5 19445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19446if eval "test \"\${$as_ac_var+set}\" = set"; then 19447 echo $ECHO_N "(cached) $ECHO_C" >&6 19448else 19449 cat >conftest.$ac_ext <<_ACEOF 19450/* confdefs.h. */ 19451_ACEOF 19452cat confdefs.h >>conftest.$ac_ext 19453cat >>conftest.$ac_ext <<_ACEOF 19454/* end confdefs.h. */ 19455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19456 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19457#define $ac_func innocuous_$ac_func 19458 19459/* System header to define __stub macros and hopefully few prototypes, 19460 which can conflict with char $ac_func (); below. 19461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19462 <limits.h> exists even on freestanding compilers. */ 19463 19464#ifdef __STDC__ 19465# include <limits.h> 19466#else 19467# include <assert.h> 19468#endif 19469 19470#undef $ac_func 19471 19472/* Override any gcc2 internal prototype to avoid an error. */ 19473#ifdef __cplusplus 19474extern "C" 19475{ 19476#endif 19477/* We use char because int might match the return type of a gcc2 19478 builtin and then its argument prototype would still apply. */ 19479char $ac_func (); 19480/* The GNU C library defines this for functions which it implements 19481 to always fail with ENOSYS. Some functions are actually named 19482 something starting with __ and the normal name is an alias. */ 19483#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19484choke me 19485#else 19486char (*f) () = $ac_func; 19487#endif 19488#ifdef __cplusplus 19489} 19490#endif 19491 19492int 19493main () 19494{ 19495return f != $ac_func; 19496 ; 19497 return 0; 19498} 19499_ACEOF 19500rm -f conftest.$ac_objext conftest$ac_exeext 19501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19502 (eval $ac_link) 2>conftest.er1 19503 ac_status=$? 19504 grep -v '^ *+' conftest.er1 >conftest.err 19505 rm -f conftest.er1 19506 cat conftest.err >&5 19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19508 (exit $ac_status); } && 19509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19511 (eval $ac_try) 2>&5 19512 ac_status=$? 19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19514 (exit $ac_status); }; } && 19515 { ac_try='test -s conftest$ac_exeext' 19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19517 (eval $ac_try) 2>&5 19518 ac_status=$? 19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19520 (exit $ac_status); }; }; then 19521 eval "$as_ac_var=yes" 19522else 19523 echo "$as_me: failed program was:" >&5 19524sed 's/^/| /' conftest.$ac_ext >&5 19525 19526eval "$as_ac_var=no" 19527fi 19528rm -f conftest.err conftest.$ac_objext \ 19529 conftest$ac_exeext conftest.$ac_ext 19530fi 19531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19533if test `eval echo '${'$as_ac_var'}'` = yes; then 19534 cat >>confdefs.h <<_ACEOF 19535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19536_ACEOF 19537 19538echo "$as_me:$LINENO: checking for _doprnt" >&5 19539echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 19540if test "${ac_cv_func__doprnt+set}" = set; then 19541 echo $ECHO_N "(cached) $ECHO_C" >&6 19542else 19543 cat >conftest.$ac_ext <<_ACEOF 19544/* confdefs.h. */ 19545_ACEOF 19546cat confdefs.h >>conftest.$ac_ext 19547cat >>conftest.$ac_ext <<_ACEOF 19548/* end confdefs.h. */ 19549/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 19550 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19551#define _doprnt innocuous__doprnt 19552 19553/* System header to define __stub macros and hopefully few prototypes, 19554 which can conflict with char _doprnt (); below. 19555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19556 <limits.h> exists even on freestanding compilers. */ 19557 19558#ifdef __STDC__ 19559# include <limits.h> 19560#else 19561# include <assert.h> 19562#endif 19563 19564#undef _doprnt 19565 19566/* Override any gcc2 internal prototype to avoid an error. */ 19567#ifdef __cplusplus 19568extern "C" 19569{ 19570#endif 19571/* We use char because int might match the return type of a gcc2 19572 builtin and then its argument prototype would still apply. */ 19573char _doprnt (); 19574/* The GNU C library defines this for functions which it implements 19575 to always fail with ENOSYS. Some functions are actually named 19576 something starting with __ and the normal name is an alias. */ 19577#if defined (__stub__doprnt) || defined (__stub____doprnt) 19578choke me 19579#else 19580char (*f) () = _doprnt; 19581#endif 19582#ifdef __cplusplus 19583} 19584#endif 19585 19586int 19587main () 19588{ 19589return f != _doprnt; 19590 ; 19591 return 0; 19592} 19593_ACEOF 19594rm -f conftest.$ac_objext conftest$ac_exeext 19595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19596 (eval $ac_link) 2>conftest.er1 19597 ac_status=$? 19598 grep -v '^ *+' conftest.er1 >conftest.err 19599 rm -f conftest.er1 19600 cat conftest.err >&5 19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19602 (exit $ac_status); } && 19603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19605 (eval $ac_try) 2>&5 19606 ac_status=$? 19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19608 (exit $ac_status); }; } && 19609 { ac_try='test -s conftest$ac_exeext' 19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19611 (eval $ac_try) 2>&5 19612 ac_status=$? 19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19614 (exit $ac_status); }; }; then 19615 ac_cv_func__doprnt=yes 19616else 19617 echo "$as_me: failed program was:" >&5 19618sed 's/^/| /' conftest.$ac_ext >&5 19619 19620ac_cv_func__doprnt=no 19621fi 19622rm -f conftest.err conftest.$ac_objext \ 19623 conftest$ac_exeext conftest.$ac_ext 19624fi 19625echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 19626echo "${ECHO_T}$ac_cv_func__doprnt" >&6 19627if test $ac_cv_func__doprnt = yes; then 19628 19629cat >>confdefs.h <<\_ACEOF 19630#define HAVE_DOPRNT 1 19631_ACEOF 19632 19633fi 19634 19635fi 19636done 19637 19638 19639 19640 19641for ac_func in atexit strstr 19642do 19643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19644echo "$as_me:$LINENO: checking for $ac_func" >&5 19645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19646if eval "test \"\${$as_ac_var+set}\" = set"; then 19647 echo $ECHO_N "(cached) $ECHO_C" >&6 19648else 19649 cat >conftest.$ac_ext <<_ACEOF 19650/* confdefs.h. */ 19651_ACEOF 19652cat confdefs.h >>conftest.$ac_ext 19653cat >>conftest.$ac_ext <<_ACEOF 19654/* end confdefs.h. */ 19655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19656 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19657#define $ac_func innocuous_$ac_func 19658 19659/* System header to define __stub macros and hopefully few prototypes, 19660 which can conflict with char $ac_func (); below. 19661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19662 <limits.h> exists even on freestanding compilers. */ 19663 19664#ifdef __STDC__ 19665# include <limits.h> 19666#else 19667# include <assert.h> 19668#endif 19669 19670#undef $ac_func 19671 19672/* Override any gcc2 internal prototype to avoid an error. */ 19673#ifdef __cplusplus 19674extern "C" 19675{ 19676#endif 19677/* We use char because int might match the return type of a gcc2 19678 builtin and then its argument prototype would still apply. */ 19679char $ac_func (); 19680/* The GNU C library defines this for functions which it implements 19681 to always fail with ENOSYS. Some functions are actually named 19682 something starting with __ and the normal name is an alias. */ 19683#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19684choke me 19685#else 19686char (*f) () = $ac_func; 19687#endif 19688#ifdef __cplusplus 19689} 19690#endif 19691 19692int 19693main () 19694{ 19695return f != $ac_func; 19696 ; 19697 return 0; 19698} 19699_ACEOF 19700rm -f conftest.$ac_objext conftest$ac_exeext 19701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19702 (eval $ac_link) 2>conftest.er1 19703 ac_status=$? 19704 grep -v '^ *+' conftest.er1 >conftest.err 19705 rm -f conftest.er1 19706 cat conftest.err >&5 19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19708 (exit $ac_status); } && 19709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19711 (eval $ac_try) 2>&5 19712 ac_status=$? 19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19714 (exit $ac_status); }; } && 19715 { ac_try='test -s conftest$ac_exeext' 19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19717 (eval $ac_try) 2>&5 19718 ac_status=$? 19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19720 (exit $ac_status); }; }; then 19721 eval "$as_ac_var=yes" 19722else 19723 echo "$as_me: failed program was:" >&5 19724sed 's/^/| /' conftest.$ac_ext >&5 19725 19726eval "$as_ac_var=no" 19727fi 19728rm -f conftest.err conftest.$ac_objext \ 19729 conftest$ac_exeext conftest.$ac_ext 19730fi 19731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19732echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19733if test `eval echo '${'$as_ac_var'}'` = yes; then 19734 cat >>confdefs.h <<_ACEOF 19735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19736_ACEOF 19737 19738fi 19739done 19740 19741 19742# Pass some values on to the source 19743 19744cat >>confdefs.h <<_ACEOF 19745#define SYSCONFDIR "$sysconfdir" 19746_ACEOF 19747 19748 19749 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" 19750 19751cat >confcache <<\_ACEOF 19752# This file is a shell script that caches the results of configure 19753# tests run on this system so they can be shared between configure 19754# scripts and configure runs, see configure's option --config-cache. 19755# It is not useful on other systems. If it contains results you don't 19756# want to keep, you may remove or edit it. 19757# 19758# config.status only pays attention to the cache file if you give it 19759# the --recheck option to rerun configure. 19760# 19761# `ac_cv_env_foo' variables (set or unset) will be overridden when 19762# loading this file, other *unset* `ac_cv_foo' will be assigned the 19763# following values. 19764 19765_ACEOF 19766 19767# The following way of writing the cache mishandles newlines in values, 19768# but we know of no workaround that is simple, portable, and efficient. 19769# So, don't put newlines in cache variables' values. 19770# Ultrix sh set writes to stderr and can't be redirected directly, 19771# and sets the high bit in the cache file unless we assign to the vars. 19772{ 19773 (set) 2>&1 | 19774 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19775 *ac_space=\ *) 19776 # `set' does not quote correctly, so add quotes (double-quote 19777 # substitution turns \\\\ into \\, and sed turns \\ into \). 19778 sed -n \ 19779 "s/'/'\\\\''/g; 19780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19781 ;; 19782 *) 19783 # `set' quotes correctly as required by POSIX, so do not add quotes. 19784 sed -n \ 19785 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19786 ;; 19787 esac; 19788} | 19789 sed ' 19790 t clear 19791 : clear 19792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19793 t end 19794 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19795 : end' >>confcache 19796if diff $cache_file confcache >/dev/null 2>&1; then :; else 19797 if test -w $cache_file; then 19798 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19799 cat confcache >$cache_file 19800 else 19801 echo "not updating unwritable cache $cache_file" 19802 fi 19803fi 19804rm -f confcache 19805 19806test "x$prefix" = xNONE && prefix=$ac_default_prefix 19807# Let make expand exec_prefix. 19808test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19809 19810# VPATH may cause trouble with some makes, so we remove $(srcdir), 19811# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19812# trailing colons and then remove the whole line if VPATH becomes empty 19813# (actually we leave an empty line to preserve line numbers). 19814if test "x$srcdir" = x.; then 19815 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19816s/:*\$(srcdir):*/:/; 19817s/:*\${srcdir}:*/:/; 19818s/:*@srcdir@:*/:/; 19819s/^\([^=]*=[ ]*\):*/\1/; 19820s/:*$//; 19821s/^[^=]*=[ ]*$//; 19822}' 19823fi 19824 19825DEFS=-DHAVE_CONFIG_H 19826 19827ac_libobjs= 19828ac_ltlibobjs= 19829for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19830 # 1. Remove the extension, and $U if already installed. 19831 ac_i=`echo "$ac_i" | 19832 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19833 # 2. Add them. 19834 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19835 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19836done 19837LIBOBJS=$ac_libobjs 19838 19839LTLIBOBJS=$ac_ltlibobjs 19840 19841 19842 19843: ${CONFIG_STATUS=./config.status} 19844ac_clean_files_save=$ac_clean_files 19845ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19846{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19847echo "$as_me: creating $CONFIG_STATUS" >&6;} 19848cat >$CONFIG_STATUS <<_ACEOF 19849#! $SHELL 19850# Generated by $as_me. 19851# Run this file to recreate the current configuration. 19852# Compiler output produced by configure, useful for debugging 19853# configure, is in config.log if it exists. 19854 19855debug=false 19856ac_cs_recheck=false 19857ac_cs_silent=false 19858SHELL=\${CONFIG_SHELL-$SHELL} 19859_ACEOF 19860 19861cat >>$CONFIG_STATUS <<\_ACEOF 19862## --------------------- ## 19863## M4sh Initialization. ## 19864## --------------------- ## 19865 19866# Be Bourne compatible 19867if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19868 emulate sh 19869 NULLCMD=: 19870 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19871 # is contrary to our usage. Disable this feature. 19872 alias -g '${1+"$@"}'='"$@"' 19873elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19874 set -o posix 19875fi 19876DUALCASE=1; export DUALCASE # for MKS sh 19877 19878# Support unset when possible. 19879if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19880 as_unset=unset 19881else 19882 as_unset=false 19883fi 19884 19885 19886# Work around bugs in pre-3.0 UWIN ksh. 19887$as_unset ENV MAIL MAILPATH 19888PS1='$ ' 19889PS2='> ' 19890PS4='+ ' 19891 19892# NLS nuisances. 19893for as_var in \ 19894 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19895 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19896 LC_TELEPHONE LC_TIME 19897do 19898 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19899 eval $as_var=C; export $as_var 19900 else 19901 $as_unset $as_var 19902 fi 19903done 19904 19905# Required to use basename. 19906if expr a : '\(a\)' >/dev/null 2>&1; then 19907 as_expr=expr 19908else 19909 as_expr=false 19910fi 19911 19912if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19913 as_basename=basename 19914else 19915 as_basename=false 19916fi 19917 19918 19919# Name of the executable. 19920as_me=`$as_basename "$0" || 19921$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19922 X"$0" : 'X\(//\)$' \| \ 19923 X"$0" : 'X\(/\)$' \| \ 19924 . : '\(.\)' 2>/dev/null || 19925echo X/"$0" | 19926 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19927 /^X\/\(\/\/\)$/{ s//\1/; q; } 19928 /^X\/\(\/\).*/{ s//\1/; q; } 19929 s/.*/./; q'` 19930 19931 19932# PATH needs CR, and LINENO needs CR and PATH. 19933# Avoid depending upon Character Ranges. 19934as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19935as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19936as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19937as_cr_digits='0123456789' 19938as_cr_alnum=$as_cr_Letters$as_cr_digits 19939 19940# The user is always right. 19941if test "${PATH_SEPARATOR+set}" != set; then 19942 echo "#! /bin/sh" >conf$$.sh 19943 echo "exit 0" >>conf$$.sh 19944 chmod +x conf$$.sh 19945 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19946 PATH_SEPARATOR=';' 19947 else 19948 PATH_SEPARATOR=: 19949 fi 19950 rm -f conf$$.sh 19951fi 19952 19953 19954 as_lineno_1=$LINENO 19955 as_lineno_2=$LINENO 19956 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19957 test "x$as_lineno_1" != "x$as_lineno_2" && 19958 test "x$as_lineno_3" = "x$as_lineno_2" || { 19959 # Find who we are. Look in the path if we contain no path at all 19960 # relative or not. 19961 case $0 in 19962 *[\\/]* ) as_myself=$0 ;; 19963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19964for as_dir in $PATH 19965do 19966 IFS=$as_save_IFS 19967 test -z "$as_dir" && as_dir=. 19968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19969done 19970 19971 ;; 19972 esac 19973 # We did not find ourselves, most probably we were run as `sh COMMAND' 19974 # in which case we are not to be found in the path. 19975 if test "x$as_myself" = x; then 19976 as_myself=$0 19977 fi 19978 if test ! -f "$as_myself"; then 19979 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19980echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19981 { (exit 1); exit 1; }; } 19982 fi 19983 case $CONFIG_SHELL in 19984 '') 19985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19986for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19987do 19988 IFS=$as_save_IFS 19989 test -z "$as_dir" && as_dir=. 19990 for as_base in sh bash ksh sh5; do 19991 case $as_dir in 19992 /*) 19993 if ("$as_dir/$as_base" -c ' 19994 as_lineno_1=$LINENO 19995 as_lineno_2=$LINENO 19996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19997 test "x$as_lineno_1" != "x$as_lineno_2" && 19998 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19999 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20000 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20001 CONFIG_SHELL=$as_dir/$as_base 20002 export CONFIG_SHELL 20003 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20004 fi;; 20005 esac 20006 done 20007done 20008;; 20009 esac 20010 20011 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20012 # uniformly replaced by the line number. The first 'sed' inserts a 20013 # line-number line before each line; the second 'sed' does the real 20014 # work. The second script uses 'N' to pair each line-number line 20015 # with the numbered line, and appends trailing '-' during 20016 # substitution so that $LINENO is not a special case at line end. 20017 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20018 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20019 sed '=' <$as_myself | 20020 sed ' 20021 N 20022 s,$,-, 20023 : loop 20024 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20025 t loop 20026 s,-$,, 20027 s,^['$as_cr_digits']*\n,, 20028 ' >$as_me.lineno && 20029 chmod +x $as_me.lineno || 20030 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20031echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20032 { (exit 1); exit 1; }; } 20033 20034 # Don't try to exec as it changes $[0], causing all sort of problems 20035 # (the dirname of $[0] is not the place where we might find the 20036 # original and so on. Autoconf is especially sensible to this). 20037 . ./$as_me.lineno 20038 # Exit status is that of the last command. 20039 exit 20040} 20041 20042 20043case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20044 *c*,-n*) ECHO_N= ECHO_C=' 20045' ECHO_T=' ' ;; 20046 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20047 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20048esac 20049 20050if expr a : '\(a\)' >/dev/null 2>&1; then 20051 as_expr=expr 20052else 20053 as_expr=false 20054fi 20055 20056rm -f conf$$ conf$$.exe conf$$.file 20057echo >conf$$.file 20058if ln -s conf$$.file conf$$ 2>/dev/null; then 20059 # We could just check for DJGPP; but this test a) works b) is more generic 20060 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20061 if test -f conf$$.exe; then 20062 # Don't use ln at all; we don't have any links 20063 as_ln_s='cp -p' 20064 else 20065 as_ln_s='ln -s' 20066 fi 20067elif ln conf$$.file conf$$ 2>/dev/null; then 20068 as_ln_s=ln 20069else 20070 as_ln_s='cp -p' 20071fi 20072rm -f conf$$ conf$$.exe conf$$.file 20073 20074if mkdir -p . 2>/dev/null; then 20075 as_mkdir_p=: 20076else 20077 test -d ./-p && rmdir ./-p 20078 as_mkdir_p=false 20079fi 20080 20081as_executable_p="test -f" 20082 20083# Sed expression to map a string onto a valid CPP name. 20084as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20085 20086# Sed expression to map a string onto a valid variable name. 20087as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20088 20089 20090# IFS 20091# We need space, tab and new line, in precisely that order. 20092as_nl=' 20093' 20094IFS=" $as_nl" 20095 20096# CDPATH. 20097$as_unset CDPATH 20098 20099exec 6>&1 20100 20101# Open the log real soon, to keep \$[0] and so on meaningful, and to 20102# report actual input values of CONFIG_FILES etc. instead of their 20103# values after options handling. Logging --version etc. is OK. 20104exec 5>>config.log 20105{ 20106 echo 20107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20108## Running $as_me. ## 20109_ASBOX 20110} >&5 20111cat >&5 <<_CSEOF 20112 20113This file was extended by nsspgsql $as_me 1.4, which was 20114generated by GNU Autoconf 2.59. Invocation command line was 20115 20116 CONFIG_FILES = $CONFIG_FILES 20117 CONFIG_HEADERS = $CONFIG_HEADERS 20118 CONFIG_LINKS = $CONFIG_LINKS 20119 CONFIG_COMMANDS = $CONFIG_COMMANDS 20120 $ $0 $@ 20121 20122_CSEOF 20123echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20124echo >&5 20125_ACEOF 20126 20127# Files that config.status was made for. 20128if test -n "$ac_config_files"; then 20129 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20130fi 20131 20132if test -n "$ac_config_headers"; then 20133 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20134fi 20135 20136if test -n "$ac_config_links"; then 20137 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20138fi 20139 20140if test -n "$ac_config_commands"; then 20141 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20142fi 20143 20144cat >>$CONFIG_STATUS <<\_ACEOF 20145 20146ac_cs_usage="\ 20147\`$as_me' instantiates files from templates according to the 20148current configuration. 20149 20150Usage: $0 [OPTIONS] [FILE]... 20151 20152 -h, --help print this help, then exit 20153 -V, --version print version number, then exit 20154 -q, --quiet do not print progress messages 20155 -d, --debug don't remove temporary files 20156 --recheck update $as_me by reconfiguring in the same conditions 20157 --file=FILE[:TEMPLATE] 20158 instantiate the configuration file FILE 20159 --header=FILE[:TEMPLATE] 20160 instantiate the configuration header FILE 20161 20162Configuration files: 20163$config_files 20164 20165Configuration headers: 20166$config_headers 20167 20168Configuration commands: 20169$config_commands 20170 20171Report bugs to <bug-autoconf@gnu.org>." 20172_ACEOF 20173 20174cat >>$CONFIG_STATUS <<_ACEOF 20175ac_cs_version="\\ 20176nsspgsql config.status 1.4 20177configured by $0, generated by GNU Autoconf 2.59, 20178 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20179 20180Copyright (C) 2003 Free Software Foundation, Inc. 20181This config.status script is free software; the Free Software Foundation 20182gives unlimited permission to copy, distribute and modify it." 20183srcdir=$srcdir 20184INSTALL="$INSTALL" 20185_ACEOF 20186 20187cat >>$CONFIG_STATUS <<\_ACEOF 20188# If no file are specified by the user, then we need to provide default 20189# value. By we need to know if files were specified by the user. 20190ac_need_defaults=: 20191while test $# != 0 20192do 20193 case $1 in 20194 --*=*) 20195 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20196 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20197 ac_shift=: 20198 ;; 20199 -*) 20200 ac_option=$1 20201 ac_optarg=$2 20202 ac_shift=shift 20203 ;; 20204 *) # This is not an option, so the user has probably given explicit 20205 # arguments. 20206 ac_option=$1 20207 ac_need_defaults=false;; 20208 esac 20209 20210 case $ac_option in 20211 # Handling of the options. 20212_ACEOF 20213cat >>$CONFIG_STATUS <<\_ACEOF 20214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20215 ac_cs_recheck=: ;; 20216 --version | --vers* | -V ) 20217 echo "$ac_cs_version"; exit 0 ;; 20218 --he | --h) 20219 # Conflict between --help and --header 20220 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20221Try \`$0 --help' for more information." >&5 20222echo "$as_me: error: ambiguous option: $1 20223Try \`$0 --help' for more information." >&2;} 20224 { (exit 1); exit 1; }; };; 20225 --help | --hel | -h ) 20226 echo "$ac_cs_usage"; exit 0 ;; 20227 --debug | --d* | -d ) 20228 debug=: ;; 20229 --file | --fil | --fi | --f ) 20230 $ac_shift 20231 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20232 ac_need_defaults=false;; 20233 --header | --heade | --head | --hea ) 20234 $ac_shift 20235 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20236 ac_need_defaults=false;; 20237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20238 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20239 ac_cs_silent=: ;; 20240 20241 # This is an error. 20242 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20243Try \`$0 --help' for more information." >&5 20244echo "$as_me: error: unrecognized option: $1 20245Try \`$0 --help' for more information." >&2;} 20246 { (exit 1); exit 1; }; } ;; 20247 20248 *) ac_config_targets="$ac_config_targets $1" ;; 20249 20250 esac 20251 shift 20252done 20253 20254ac_configure_extra_args= 20255 20256if $ac_cs_silent; then 20257 exec 6>/dev/null 20258 ac_configure_extra_args="$ac_configure_extra_args --silent" 20259fi 20260 20261_ACEOF 20262cat >>$CONFIG_STATUS <<_ACEOF 20263if \$ac_cs_recheck; then 20264 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20265 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20266fi 20267 20268_ACEOF 20269 20270cat >>$CONFIG_STATUS <<_ACEOF 20271# 20272# INIT-COMMANDS section. 20273# 20274 20275 20276 20277_ACEOF 20278 20279 20280 20281cat >>$CONFIG_STATUS <<\_ACEOF 20282for ac_config_target in $ac_config_targets 20283do 20284 case "$ac_config_target" in 20285 # Handling of arguments. 20286 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20287 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20288 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20289 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 20290 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20291 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20292echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20293 { (exit 1); exit 1; }; };; 20294 esac 20295done 20296 20297# If the user did not use the arguments to specify the items to instantiate, 20298# then the envvar interface is used. Set only those that are not. 20299# We use the long form for the default assignment because of an extremely 20300# bizarre bug on SunOS 4.1.3. 20301if $ac_need_defaults; then 20302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20305fi 20306 20307# Have a temporary directory for convenience. Make it in the build tree 20308# simply because there is no reason to put it here, and in addition, 20309# creating and moving files from /tmp can sometimes cause problems. 20310# Create a temporary directory, and hook for its removal unless debugging. 20311$debug || 20312{ 20313 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20314 trap '{ (exit 1); exit 1; }' 1 2 13 15 20315} 20316 20317# Create a (secure) tmp directory for tmp files. 20318 20319{ 20320 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20321 test -n "$tmp" && test -d "$tmp" 20322} || 20323{ 20324 tmp=./confstat$$-$RANDOM 20325 (umask 077 && mkdir $tmp) 20326} || 20327{ 20328 echo "$me: cannot create a temporary directory in ." >&2 20329 { (exit 1); exit 1; } 20330} 20331 20332_ACEOF 20333 20334cat >>$CONFIG_STATUS <<_ACEOF 20335 20336# 20337# CONFIG_FILES section. 20338# 20339 20340# No need to generate the scripts if there are no CONFIG_FILES. 20341# This happens for instance when ./config.status config.h 20342if test -n "\$CONFIG_FILES"; then 20343 # Protect against being on the right side of a sed subst in config.status. 20344 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20345 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20346s,@SHELL@,$SHELL,;t t 20347s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20348s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20349s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20350s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20351s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20352s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20353s,@exec_prefix@,$exec_prefix,;t t 20354s,@prefix@,$prefix,;t t 20355s,@program_transform_name@,$program_transform_name,;t t 20356s,@bindir@,$bindir,;t t 20357s,@sbindir@,$sbindir,;t t 20358s,@libexecdir@,$libexecdir,;t t 20359s,@datadir@,$datadir,;t t 20360s,@sysconfdir@,$sysconfdir,;t t 20361s,@sharedstatedir@,$sharedstatedir,;t t 20362s,@localstatedir@,$localstatedir,;t t 20363s,@libdir@,$libdir,;t t 20364s,@includedir@,$includedir,;t t 20365s,@oldincludedir@,$oldincludedir,;t t 20366s,@infodir@,$infodir,;t t 20367s,@mandir@,$mandir,;t t 20368s,@build_alias@,$build_alias,;t t 20369s,@host_alias@,$host_alias,;t t 20370s,@target_alias@,$target_alias,;t t 20371s,@DEFS@,$DEFS,;t t 20372s,@ECHO_C@,$ECHO_C,;t t 20373s,@ECHO_N@,$ECHO_N,;t t 20374s,@ECHO_T@,$ECHO_T,;t t 20375s,@LIBS@,$LIBS,;t t 20376s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20377s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20378s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20379s,@PACKAGE@,$PACKAGE,;t t 20380s,@VERSION@,$VERSION,;t t 20381s,@ACLOCAL@,$ACLOCAL,;t t 20382s,@AUTOCONF@,$AUTOCONF,;t t 20383s,@AUTOMAKE@,$AUTOMAKE,;t t 20384s,@AUTOHEADER@,$AUTOHEADER,;t t 20385s,@MAKEINFO@,$MAKEINFO,;t t 20386s,@SET_MAKE@,$SET_MAKE,;t t 20387s,@docdir@,$docdir,;t t 20388s,@CC@,$CC,;t t 20389s,@CFLAGS@,$CFLAGS,;t t 20390s,@LDFLAGS@,$LDFLAGS,;t t 20391s,@CPPFLAGS@,$CPPFLAGS,;t t 20392s,@ac_ct_CC@,$ac_ct_CC,;t t 20393s,@EXEEXT@,$EXEEXT,;t t 20394s,@OBJEXT@,$OBJEXT,;t t 20395s,@AWK@,$AWK,;t t 20396s,@LN_S@,$LN_S,;t t 20397s,@CPP@,$CPP,;t t 20398s,@build@,$build,;t t 20399s,@build_cpu@,$build_cpu,;t t 20400s,@build_vendor@,$build_vendor,;t t 20401s,@build_os@,$build_os,;t t 20402s,@host@,$host,;t t 20403s,@host_cpu@,$host_cpu,;t t 20404s,@host_vendor@,$host_vendor,;t t 20405s,@host_os@,$host_os,;t t 20406s,@EGREP@,$EGREP,;t t 20407s,@ECHO@,$ECHO,;t t 20408s,@AR@,$AR,;t t 20409s,@ac_ct_AR@,$ac_ct_AR,;t t 20410s,@RANLIB@,$RANLIB,;t t 20411s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20412s,@STRIP@,$STRIP,;t t 20413s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20414s,@CXX@,$CXX,;t t 20415s,@CXXFLAGS@,$CXXFLAGS,;t t 20416s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20417s,@CXXCPP@,$CXXCPP,;t t 20418s,@F77@,$F77,;t t 20419s,@FFLAGS@,$FFLAGS,;t t 20420s,@ac_ct_F77@,$ac_ct_F77,;t t 20421s,@LIBTOOL@,$LIBTOOL,;t t 20422s,@LIBOBJS@,$LIBOBJS,;t t 20423s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20424CEOF 20425 20426_ACEOF 20427 20428 cat >>$CONFIG_STATUS <<\_ACEOF 20429 # Split the substitutions into bite-sized pieces for seds with 20430 # small command number limits, like on Digital OSF/1 and HP-UX. 20431 ac_max_sed_lines=48 20432 ac_sed_frag=1 # Number of current file. 20433 ac_beg=1 # First line for current file. 20434 ac_end=$ac_max_sed_lines # Line after last line for current file. 20435 ac_more_lines=: 20436 ac_sed_cmds= 20437 while $ac_more_lines; do 20438 if test $ac_beg -gt 1; then 20439 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20440 else 20441 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20442 fi 20443 if test ! -s $tmp/subs.frag; then 20444 ac_more_lines=false 20445 else 20446 # The purpose of the label and of the branching condition is to 20447 # speed up the sed processing (if there are no `@' at all, there 20448 # is no need to browse any of the substitutions). 20449 # These are the two extra sed commands mentioned above. 20450 (echo ':t 20451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20452 if test -z "$ac_sed_cmds"; then 20453 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20454 else 20455 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20456 fi 20457 ac_sed_frag=`expr $ac_sed_frag + 1` 20458 ac_beg=$ac_end 20459 ac_end=`expr $ac_end + $ac_max_sed_lines` 20460 fi 20461 done 20462 if test -z "$ac_sed_cmds"; then 20463 ac_sed_cmds=cat 20464 fi 20465fi # test -n "$CONFIG_FILES" 20466 20467_ACEOF 20468cat >>$CONFIG_STATUS <<\_ACEOF 20469for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20471 case $ac_file in 20472 - | *:- | *:-:* ) # input from stdin 20473 cat >$tmp/stdin 20474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20478 * ) ac_file_in=$ac_file.in ;; 20479 esac 20480 20481 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20482 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20483$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20484 X"$ac_file" : 'X\(//\)[^/]' \| \ 20485 X"$ac_file" : 'X\(//\)$' \| \ 20486 X"$ac_file" : 'X\(/\)' \| \ 20487 . : '\(.\)' 2>/dev/null || 20488echo X"$ac_file" | 20489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20490 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20491 /^X\(\/\/\)$/{ s//\1/; q; } 20492 /^X\(\/\).*/{ s//\1/; q; } 20493 s/.*/./; q'` 20494 { if $as_mkdir_p; then 20495 mkdir -p "$ac_dir" 20496 else 20497 as_dir="$ac_dir" 20498 as_dirs= 20499 while test ! -d "$as_dir"; do 20500 as_dirs="$as_dir $as_dirs" 20501 as_dir=`(dirname "$as_dir") 2>/dev/null || 20502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20503 X"$as_dir" : 'X\(//\)[^/]' \| \ 20504 X"$as_dir" : 'X\(//\)$' \| \ 20505 X"$as_dir" : 'X\(/\)' \| \ 20506 . : '\(.\)' 2>/dev/null || 20507echo X"$as_dir" | 20508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20509 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20510 /^X\(\/\/\)$/{ s//\1/; q; } 20511 /^X\(\/\).*/{ s//\1/; q; } 20512 s/.*/./; q'` 20513 done 20514 test ! -n "$as_dirs" || mkdir $as_dirs 20515 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20516echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20517 { (exit 1); exit 1; }; }; } 20518 20519 ac_builddir=. 20520 20521if test "$ac_dir" != .; then 20522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20523 # A "../" for each directory in $ac_dir_suffix. 20524 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20525else 20526 ac_dir_suffix= ac_top_builddir= 20527fi 20528 20529case $srcdir in 20530 .) # No --srcdir option. We are building in place. 20531 ac_srcdir=. 20532 if test -z "$ac_top_builddir"; then 20533 ac_top_srcdir=. 20534 else 20535 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20536 fi ;; 20537 [\\/]* | ?:[\\/]* ) # Absolute path. 20538 ac_srcdir=$srcdir$ac_dir_suffix; 20539 ac_top_srcdir=$srcdir ;; 20540 *) # Relative path. 20541 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20542 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20543esac 20544 20545# Do not use `cd foo && pwd` to compute absolute paths, because 20546# the directories may not exist. 20547case `pwd` in 20548.) ac_abs_builddir="$ac_dir";; 20549*) 20550 case "$ac_dir" in 20551 .) ac_abs_builddir=`pwd`;; 20552 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20553 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20554 esac;; 20555esac 20556case $ac_abs_builddir in 20557.) ac_abs_top_builddir=${ac_top_builddir}.;; 20558*) 20559 case ${ac_top_builddir}. in 20560 .) ac_abs_top_builddir=$ac_abs_builddir;; 20561 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20562 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20563 esac;; 20564esac 20565case $ac_abs_builddir in 20566.) ac_abs_srcdir=$ac_srcdir;; 20567*) 20568 case $ac_srcdir in 20569 .) ac_abs_srcdir=$ac_abs_builddir;; 20570 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20571 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20572 esac;; 20573esac 20574case $ac_abs_builddir in 20575.) ac_abs_top_srcdir=$ac_top_srcdir;; 20576*) 20577 case $ac_top_srcdir in 20578 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20579 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20580 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20581 esac;; 20582esac 20583 20584 20585 case $INSTALL in 20586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20587 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20588 esac 20589 20590 # Let's still pretend it is `configure' which instantiates (i.e., don't 20591 # use $as_me), people would be surprised to read: 20592 # /* config.h. Generated by config.status. */ 20593 if test x"$ac_file" = x-; then 20594 configure_input= 20595 else 20596 configure_input="$ac_file. " 20597 fi 20598 configure_input=$configure_input"Generated from `echo $ac_file_in | 20599 sed 's,.*/,,'` by configure." 20600 20601 # First look for the input files in the build tree, otherwise in the 20602 # src tree. 20603 ac_file_inputs=`IFS=: 20604 for f in $ac_file_in; do 20605 case $f in 20606 -) echo $tmp/stdin ;; 20607 [\\/$]*) 20608 # Absolute (can't be DOS-style, as IFS=:) 20609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20610echo "$as_me: error: cannot find input file: $f" >&2;} 20611 { (exit 1); exit 1; }; } 20612 echo "$f";; 20613 *) # Relative 20614 if test -f "$f"; then 20615 # Build tree 20616 echo "$f" 20617 elif test -f "$srcdir/$f"; then 20618 # Source tree 20619 echo "$srcdir/$f" 20620 else 20621 # /dev/null tree 20622 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20623echo "$as_me: error: cannot find input file: $f" >&2;} 20624 { (exit 1); exit 1; }; } 20625 fi;; 20626 esac 20627 done` || { (exit 1); exit 1; } 20628 20629 if test x"$ac_file" != x-; then 20630 { echo "$as_me:$LINENO: creating $ac_file" >&5 20631echo "$as_me: creating $ac_file" >&6;} 20632 rm -f "$ac_file" 20633 fi 20634_ACEOF 20635cat >>$CONFIG_STATUS <<_ACEOF 20636 sed "$ac_vpsub 20637$extrasub 20638_ACEOF 20639cat >>$CONFIG_STATUS <<\_ACEOF 20640:t 20641/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20642s,@configure_input@,$configure_input,;t t 20643s,@srcdir@,$ac_srcdir,;t t 20644s,@abs_srcdir@,$ac_abs_srcdir,;t t 20645s,@top_srcdir@,$ac_top_srcdir,;t t 20646s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20647s,@builddir@,$ac_builddir,;t t 20648s,@abs_builddir@,$ac_abs_builddir,;t t 20649s,@top_builddir@,$ac_top_builddir,;t t 20650s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20651s,@INSTALL@,$ac_INSTALL,;t t 20652" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20653 rm -f $tmp/stdin 20654 if test x"$ac_file" != x-; then 20655 mv $tmp/out $ac_file 20656 else 20657 cat $tmp/out 20658 rm -f $tmp/out 20659 fi 20660 20661done 20662_ACEOF 20663cat >>$CONFIG_STATUS <<\_ACEOF 20664 20665# 20666# CONFIG_HEADER section. 20667# 20668 20669# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20670# NAME is the cpp macro being defined and VALUE is the value it is being given. 20671# 20672# ac_d sets the value in "#define NAME VALUE" lines. 20673ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20674ac_dB='[ ].*$,\1#\2' 20675ac_dC=' ' 20676ac_dD=',;t' 20677# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20678ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20679ac_uB='$,\1#\2define\3' 20680ac_uC=' ' 20681ac_uD=',;t' 20682 20683for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20685 case $ac_file in 20686 - | *:- | *:-:* ) # input from stdin 20687 cat >$tmp/stdin 20688 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20690 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20692 * ) ac_file_in=$ac_file.in ;; 20693 esac 20694 20695 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20696echo "$as_me: creating $ac_file" >&6;} 20697 20698 # First look for the input files in the build tree, otherwise in the 20699 # src tree. 20700 ac_file_inputs=`IFS=: 20701 for f in $ac_file_in; do 20702 case $f in 20703 -) echo $tmp/stdin ;; 20704 [\\/$]*) 20705 # Absolute (can't be DOS-style, as IFS=:) 20706 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20707echo "$as_me: error: cannot find input file: $f" >&2;} 20708 { (exit 1); exit 1; }; } 20709 # Do quote $f, to prevent DOS paths from being IFS'd. 20710 echo "$f";; 20711 *) # Relative 20712 if test -f "$f"; then 20713 # Build tree 20714 echo "$f" 20715 elif test -f "$srcdir/$f"; then 20716 # Source tree 20717 echo "$srcdir/$f" 20718 else 20719 # /dev/null tree 20720 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20721echo "$as_me: error: cannot find input file: $f" >&2;} 20722 { (exit 1); exit 1; }; } 20723 fi;; 20724 esac 20725 done` || { (exit 1); exit 1; } 20726 # Remove the trailing spaces. 20727 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20728 20729_ACEOF 20730 20731# Transform confdefs.h into two sed scripts, `conftest.defines' and 20732# `conftest.undefs', that substitutes the proper values into 20733# config.h.in to produce config.h. The first handles `#define' 20734# templates, and the second `#undef' templates. 20735# And first: Protect against being on the right side of a sed subst in 20736# config.status. Protect against being in an unquoted here document 20737# in config.status. 20738rm -f conftest.defines conftest.undefs 20739# Using a here document instead of a string reduces the quoting nightmare. 20740# Putting comments in sed scripts is not portable. 20741# 20742# `end' is used to avoid that the second main sed command (meant for 20743# 0-ary CPP macros) applies to n-ary macro definitions. 20744# See the Autoconf documentation for `clear'. 20745cat >confdef2sed.sed <<\_ACEOF 20746s/[\\&,]/\\&/g 20747s,[\\$`],\\&,g 20748t clear 20749: clear 20750s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20751t end 20752s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20753: end 20754_ACEOF 20755# If some macros were called several times there might be several times 20756# the same #defines, which is useless. Nevertheless, we may not want to 20757# sort them, since we want the *last* AC-DEFINE to be honored. 20758uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20759sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20760rm -f confdef2sed.sed 20761 20762# This sed command replaces #undef with comments. This is necessary, for 20763# example, in the case of _POSIX_SOURCE, which is predefined and required 20764# on some systems where configure will not decide to define it. 20765cat >>conftest.undefs <<\_ACEOF 20766s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20767_ACEOF 20768 20769# Break up conftest.defines because some shells have a limit on the size 20770# of here documents, and old seds have small limits too (100 cmds). 20771echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20772echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20773echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20774echo ' :' >>$CONFIG_STATUS 20775rm -f conftest.tail 20776while grep . conftest.defines >/dev/null 20777do 20778 # Write a limited-size here document to $tmp/defines.sed. 20779 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20780 # Speed up: don't consider the non `#define' lines. 20781 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20782 # Work around the forget-to-reset-the-flag bug. 20783 echo 't clr' >>$CONFIG_STATUS 20784 echo ': clr' >>$CONFIG_STATUS 20785 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20786 echo 'CEOF 20787 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20788 rm -f $tmp/in 20789 mv $tmp/out $tmp/in 20790' >>$CONFIG_STATUS 20791 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20792 rm -f conftest.defines 20793 mv conftest.tail conftest.defines 20794done 20795rm -f conftest.defines 20796echo ' fi # grep' >>$CONFIG_STATUS 20797echo >>$CONFIG_STATUS 20798 20799# Break up conftest.undefs because some shells have a limit on the size 20800# of here documents, and old seds have small limits too (100 cmds). 20801echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20802rm -f conftest.tail 20803while grep . conftest.undefs >/dev/null 20804do 20805 # Write a limited-size here document to $tmp/undefs.sed. 20806 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20807 # Speed up: don't consider the non `#undef' 20808 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20809 # Work around the forget-to-reset-the-flag bug. 20810 echo 't clr' >>$CONFIG_STATUS 20811 echo ': clr' >>$CONFIG_STATUS 20812 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20813 echo 'CEOF 20814 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20815 rm -f $tmp/in 20816 mv $tmp/out $tmp/in 20817' >>$CONFIG_STATUS 20818 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20819 rm -f conftest.undefs 20820 mv conftest.tail conftest.undefs 20821done 20822rm -f conftest.undefs 20823 20824cat >>$CONFIG_STATUS <<\_ACEOF 20825 # Let's still pretend it is `configure' which instantiates (i.e., don't 20826 # use $as_me), people would be surprised to read: 20827 # /* config.h. Generated by config.status. */ 20828 if test x"$ac_file" = x-; then 20829 echo "/* Generated by configure. */" >$tmp/config.h 20830 else 20831 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 20832 fi 20833 cat $tmp/in >>$tmp/config.h 20834 rm -f $tmp/in 20835 if test x"$ac_file" != x-; then 20836 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 20837 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20838echo "$as_me: $ac_file is unchanged" >&6;} 20839 else 20840 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20841$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20842 X"$ac_file" : 'X\(//\)[^/]' \| \ 20843 X"$ac_file" : 'X\(//\)$' \| \ 20844 X"$ac_file" : 'X\(/\)' \| \ 20845 . : '\(.\)' 2>/dev/null || 20846echo X"$ac_file" | 20847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20848 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20849 /^X\(\/\/\)$/{ s//\1/; q; } 20850 /^X\(\/\).*/{ s//\1/; q; } 20851 s/.*/./; q'` 20852 { if $as_mkdir_p; then 20853 mkdir -p "$ac_dir" 20854 else 20855 as_dir="$ac_dir" 20856 as_dirs= 20857 while test ! -d "$as_dir"; do 20858 as_dirs="$as_dir $as_dirs" 20859 as_dir=`(dirname "$as_dir") 2>/dev/null || 20860$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20861 X"$as_dir" : 'X\(//\)[^/]' \| \ 20862 X"$as_dir" : 'X\(//\)$' \| \ 20863 X"$as_dir" : 'X\(/\)' \| \ 20864 . : '\(.\)' 2>/dev/null || 20865echo X"$as_dir" | 20866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20867 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20868 /^X\(\/\/\)$/{ s//\1/; q; } 20869 /^X\(\/\).*/{ s//\1/; q; } 20870 s/.*/./; q'` 20871 done 20872 test ! -n "$as_dirs" || mkdir $as_dirs 20873 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20874echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20875 { (exit 1); exit 1; }; }; } 20876 20877 rm -f $ac_file 20878 mv $tmp/config.h $ac_file 20879 fi 20880 else 20881 cat $tmp/config.h 20882 rm -f $tmp/config.h 20883 fi 20884done 20885_ACEOF 20886cat >>$CONFIG_STATUS <<\_ACEOF 20887 20888# 20889# CONFIG_COMMANDS section. 20890# 20891for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20892 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20893 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20894 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 20895$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20896 X"$ac_dest" : 'X\(//\)[^/]' \| \ 20897 X"$ac_dest" : 'X\(//\)$' \| \ 20898 X"$ac_dest" : 'X\(/\)' \| \ 20899 . : '\(.\)' 2>/dev/null || 20900echo X"$ac_dest" | 20901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20902 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20903 /^X\(\/\/\)$/{ s//\1/; q; } 20904 /^X\(\/\).*/{ s//\1/; q; } 20905 s/.*/./; q'` 20906 { if $as_mkdir_p; then 20907 mkdir -p "$ac_dir" 20908 else 20909 as_dir="$ac_dir" 20910 as_dirs= 20911 while test ! -d "$as_dir"; do 20912 as_dirs="$as_dir $as_dirs" 20913 as_dir=`(dirname "$as_dir") 2>/dev/null || 20914$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20915 X"$as_dir" : 'X\(//\)[^/]' \| \ 20916 X"$as_dir" : 'X\(//\)$' \| \ 20917 X"$as_dir" : 'X\(/\)' \| \ 20918 . : '\(.\)' 2>/dev/null || 20919echo X"$as_dir" | 20920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20921 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20922 /^X\(\/\/\)$/{ s//\1/; q; } 20923 /^X\(\/\).*/{ s//\1/; q; } 20924 s/.*/./; q'` 20925 done 20926 test ! -n "$as_dirs" || mkdir $as_dirs 20927 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20928echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20929 { (exit 1); exit 1; }; }; } 20930 20931 ac_builddir=. 20932 20933if test "$ac_dir" != .; then 20934 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20935 # A "../" for each directory in $ac_dir_suffix. 20936 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20937else 20938 ac_dir_suffix= ac_top_builddir= 20939fi 20940 20941case $srcdir in 20942 .) # No --srcdir option. We are building in place. 20943 ac_srcdir=. 20944 if test -z "$ac_top_builddir"; then 20945 ac_top_srcdir=. 20946 else 20947 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20948 fi ;; 20949 [\\/]* | ?:[\\/]* ) # Absolute path. 20950 ac_srcdir=$srcdir$ac_dir_suffix; 20951 ac_top_srcdir=$srcdir ;; 20952 *) # Relative path. 20953 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20954 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20955esac 20956 20957# Do not use `cd foo && pwd` to compute absolute paths, because 20958# the directories may not exist. 20959case `pwd` in 20960.) ac_abs_builddir="$ac_dir";; 20961*) 20962 case "$ac_dir" in 20963 .) ac_abs_builddir=`pwd`;; 20964 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20965 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20966 esac;; 20967esac 20968case $ac_abs_builddir in 20969.) ac_abs_top_builddir=${ac_top_builddir}.;; 20970*) 20971 case ${ac_top_builddir}. in 20972 .) ac_abs_top_builddir=$ac_abs_builddir;; 20973 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20974 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20975 esac;; 20976esac 20977case $ac_abs_builddir in 20978.) ac_abs_srcdir=$ac_srcdir;; 20979*) 20980 case $ac_srcdir in 20981 .) ac_abs_srcdir=$ac_abs_builddir;; 20982 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20983 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20984 esac;; 20985esac 20986case $ac_abs_builddir in 20987.) ac_abs_top_srcdir=$ac_top_srcdir;; 20988*) 20989 case $ac_top_srcdir in 20990 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20991 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20992 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20993 esac;; 20994esac 20995 20996 20997 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 20998echo "$as_me: executing $ac_dest commands" >&6;} 20999 case $ac_dest in 21000 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 21001 esac 21002done 21003_ACEOF 21004 21005cat >>$CONFIG_STATUS <<\_ACEOF 21006 21007{ (exit 0); exit 0; } 21008_ACEOF 21009chmod +x $CONFIG_STATUS 21010ac_clean_files=$ac_clean_files_save 21011 21012 21013# configure is writing to config.log, and then calls config.status. 21014# config.status does its own redirection, appending to config.log. 21015# Unfortunately, on DOS this fails, as config.log is still kept open 21016# by configure, so config.status won't be able to write to it; its 21017# output is simply discarded. So we exec the FD to /dev/null, 21018# effectively closing config.log, so it can be properly (re)opened and 21019# appended to by config.status. When coming back to configure, we 21020# need to make the FD available again. 21021if test "$no_create" != yes; then 21022 ac_cs_success=: 21023 ac_config_status_args= 21024 test "$silent" = yes && 21025 ac_config_status_args="$ac_config_status_args --quiet" 21026 exec 5>/dev/null 21027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21028 exec 5>>config.log 21029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21030 # would make configure fail if this is the last instruction. 21031 $ac_cs_success || { (exit 1); exit 1; } 21032fi 21033 21034