1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string="`eval $cmd`") 2>/dev/null && 289 echo_test_string="`eval $cmd`" && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="src/liste.c" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SU_MAJOR_VERSION SU_MINOR_VERSION SU_VERSION SU_INTERFACE_AGE SU_BINARY_AGE LT_RELEASE LT_CURRENT LT_REVISION LT_AGE CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS SU_PTHREAD_LIB SU_PTHREAD_CFLAGS SOLARIS SU_REENTRANT SU_DL_LIB SU_DL_CFLAGS SU_SSL_LIB SU_SSL_CFLAGS SU_ARCH_LIB SU_ARCH_CFLAGS SU_ANSI_CFLAGS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures this package to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013System types: 1014 --build=BUILD configure for building on BUILD [guessed] 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1016_ACEOF 1017fi 1018 1019if test -n "$ac_init_help"; then 1020 1021 cat <<\_ACEOF 1022 1023Optional Features: 1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1026 --disable-dependency-tracking speeds up one-time build 1027 --enable-dependency-tracking do not reject slow dependency extractors 1028 --enable-maintainer-mode enable make rules and dependencies not useful 1029 (and sometimes confusing) to the casual installer 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 --enable-debug Enables debug option (default=no) 1038 --enable-ansi Enables ansi color in debug messages (default=yes) 1039 --enable-trace_internal Enables malloc trace debug of skyutils ifself (default=no) 1040 --enable-reentrant Enables reentrant functions of skyutils (default=yes) 1041 --disable-cygwin Disables cygwin mode with -mno-cygwin option of gcc (pure win32) (default=no) 1042 --enable-ssl Enables SSL code in SkyWeb (for https) (default=yes) 1043 1044Optional Packages: 1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1048 --with-pic try to use only PIC/non-PIC objects [default=use 1049 both] 1050 --with-tags[=TAGS] 1051 include additional configurations [automatic] 1052 1053Some influential environment variables: 1054 CC C compiler command 1055 CFLAGS C compiler flags 1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1057 nonstandard directory <lib dir> 1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1059 headers in a nonstandard directory <include dir> 1060 CPP C preprocessor 1061 CXX C++ compiler command 1062 CXXFLAGS C++ compiler flags 1063 CXXCPP C++ preprocessor 1064 F77 Fortran 77 compiler command 1065 FFLAGS Fortran 77 compiler flags 1066 1067Use these variables to override the choices made by `configure' or to help 1068it to find libraries and programs with nonstandard names/locations. 1069 1070_ACEOF 1071fi 1072 1073if test "$ac_init_help" = "recursive"; then 1074 # If there are subdirs, report their specific --help. 1075 ac_popdir=`pwd` 1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1077 test -d $ac_dir || continue 1078 ac_builddir=. 1079 1080if test "$ac_dir" != .; then 1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1082 # A "../" for each directory in $ac_dir_suffix. 1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1084else 1085 ac_dir_suffix= ac_top_builddir= 1086fi 1087 1088case $srcdir in 1089 .) # No --srcdir option. We are building in place. 1090 ac_srcdir=. 1091 if test -z "$ac_top_builddir"; then 1092 ac_top_srcdir=. 1093 else 1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1095 fi ;; 1096 [\\/]* | ?:[\\/]* ) # Absolute path. 1097 ac_srcdir=$srcdir$ac_dir_suffix; 1098 ac_top_srcdir=$srcdir ;; 1099 *) # Relative path. 1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1101 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1102esac 1103 1104# Do not use `cd foo && pwd` to compute absolute paths, because 1105# the directories may not exist. 1106case `pwd` in 1107.) ac_abs_builddir="$ac_dir";; 1108*) 1109 case "$ac_dir" in 1110 .) ac_abs_builddir=`pwd`;; 1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1112 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1113 esac;; 1114esac 1115case $ac_abs_builddir in 1116.) ac_abs_top_builddir=${ac_top_builddir}.;; 1117*) 1118 case ${ac_top_builddir}. in 1119 .) ac_abs_top_builddir=$ac_abs_builddir;; 1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1122 esac;; 1123esac 1124case $ac_abs_builddir in 1125.) ac_abs_srcdir=$ac_srcdir;; 1126*) 1127 case $ac_srcdir in 1128 .) ac_abs_srcdir=$ac_abs_builddir;; 1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1131 esac;; 1132esac 1133case $ac_abs_builddir in 1134.) ac_abs_top_srcdir=$ac_top_srcdir;; 1135*) 1136 case $ac_top_srcdir in 1137 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1140 esac;; 1141esac 1142 1143 cd $ac_dir 1144 # Check for guested configure; otherwise get Cygnus style configure. 1145 if test -f $ac_srcdir/configure.gnu; then 1146 echo 1147 $SHELL $ac_srcdir/configure.gnu --help=recursive 1148 elif test -f $ac_srcdir/configure; then 1149 echo 1150 $SHELL $ac_srcdir/configure --help=recursive 1151 elif test -f $ac_srcdir/configure.ac || 1152 test -f $ac_srcdir/configure.in; then 1153 echo 1154 $ac_configure --help 1155 else 1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1157 fi 1158 cd $ac_popdir 1159 done 1160fi 1161 1162test -n "$ac_init_help" && exit 0 1163if $ac_init_version; then 1164 cat <<\_ACEOF 1165 1166Copyright (C) 2003 Free Software Foundation, Inc. 1167This configure script is free software; the Free Software Foundation 1168gives unlimited permission to copy, distribute and modify it. 1169_ACEOF 1170 exit 0 1171fi 1172exec 5>config.log 1173cat >&5 <<_ACEOF 1174This file contains any messages produced by compilers while 1175running configure, to aid debugging if configure makes a mistake. 1176 1177It was created by $as_me, which was 1178generated by GNU Autoconf 2.59. Invocation command line was 1179 1180 $ $0 $@ 1181 1182_ACEOF 1183{ 1184cat <<_ASUNAME 1185## --------- ## 1186## Platform. ## 1187## --------- ## 1188 1189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1190uname -m = `(uname -m) 2>/dev/null || echo unknown` 1191uname -r = `(uname -r) 2>/dev/null || echo unknown` 1192uname -s = `(uname -s) 2>/dev/null || echo unknown` 1193uname -v = `(uname -v) 2>/dev/null || echo unknown` 1194 1195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1196/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1197 1198/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1199/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1201hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1202/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1203/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1204/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1205 1206_ASUNAME 1207 1208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1209for as_dir in $PATH 1210do 1211 IFS=$as_save_IFS 1212 test -z "$as_dir" && as_dir=. 1213 echo "PATH: $as_dir" 1214done 1215 1216} >&5 1217 1218cat >&5 <<_ACEOF 1219 1220 1221## ----------- ## 1222## Core tests. ## 1223## ----------- ## 1224 1225_ACEOF 1226 1227 1228# Keep a trace of the command line. 1229# Strip out --no-create and --no-recursion so they do not pile up. 1230# Strip out --silent because we don't want to record it for future runs. 1231# Also quote any args containing shell meta-characters. 1232# Make two passes to allow for proper duplicate-argument suppression. 1233ac_configure_args= 1234ac_configure_args0= 1235ac_configure_args1= 1236ac_sep= 1237ac_must_keep_next=false 1238for ac_pass in 1 2 1239do 1240 for ac_arg 1241 do 1242 case $ac_arg in 1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1245 | -silent | --silent | --silen | --sile | --sil) 1246 continue ;; 1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1249 esac 1250 case $ac_pass in 1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1252 2) 1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1254 if test $ac_must_keep_next = true; then 1255 ac_must_keep_next=false # Got value, back to normal. 1256 else 1257 case $ac_arg in 1258 *=* | --config-cache | -C | -disable-* | --disable-* \ 1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1261 | -with-* | --with-* | -without-* | --without-* | --x) 1262 case "$ac_configure_args0 " in 1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1264 esac 1265 ;; 1266 -* ) ac_must_keep_next=true ;; 1267 esac 1268 fi 1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1270 # Get rid of the leading space. 1271 ac_sep=" " 1272 ;; 1273 esac 1274 done 1275done 1276$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1277$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1278 1279# When interrupted or exit'd, cleanup temporary files, and complete 1280# config.log. We remove comments because anyway the quotes in there 1281# would cause problems or look ugly. 1282# WARNING: Be sure not to use single quotes in there, as some shells, 1283# such as our DU 5.0 friend, will then `close' the trap. 1284trap 'exit_status=$? 1285 # Save into config.log some information that might help in debugging. 1286 { 1287 echo 1288 1289 cat <<\_ASBOX 1290## ---------------- ## 1291## Cache variables. ## 1292## ---------------- ## 1293_ASBOX 1294 echo 1295 # The following way of writing the cache mishandles newlines in values, 1296{ 1297 (set) 2>&1 | 1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1299 *ac_space=\ *) 1300 sed -n \ 1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1303 ;; 1304 *) 1305 sed -n \ 1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1307 ;; 1308 esac; 1309} 1310 echo 1311 1312 cat <<\_ASBOX 1313## ----------------- ## 1314## Output variables. ## 1315## ----------------- ## 1316_ASBOX 1317 echo 1318 for ac_var in $ac_subst_vars 1319 do 1320 eval ac_val=$`echo $ac_var` 1321 echo "$ac_var='"'"'$ac_val'"'"'" 1322 done | sort 1323 echo 1324 1325 if test -n "$ac_subst_files"; then 1326 cat <<\_ASBOX 1327## ------------- ## 1328## Output files. ## 1329## ------------- ## 1330_ASBOX 1331 echo 1332 for ac_var in $ac_subst_files 1333 do 1334 eval ac_val=$`echo $ac_var` 1335 echo "$ac_var='"'"'$ac_val'"'"'" 1336 done | sort 1337 echo 1338 fi 1339 1340 if test -s confdefs.h; then 1341 cat <<\_ASBOX 1342## ----------- ## 1343## confdefs.h. ## 1344## ----------- ## 1345_ASBOX 1346 echo 1347 sed "/^$/d" confdefs.h | sort 1348 echo 1349 fi 1350 test "$ac_signal" != 0 && 1351 echo "$as_me: caught signal $ac_signal" 1352 echo "$as_me: exit $exit_status" 1353 } >&5 1354 rm -f core *.core && 1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1356 exit $exit_status 1357 ' 0 1358for ac_signal in 1 2 13 15; do 1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1360done 1361ac_signal=0 1362 1363# confdefs.h avoids OS command line length limits that DEFS can exceed. 1364rm -rf conftest* confdefs.h 1365# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1366echo >confdefs.h 1367 1368# Predefined preprocessor variables. 1369 1370cat >>confdefs.h <<_ACEOF 1371#define PACKAGE_NAME "$PACKAGE_NAME" 1372_ACEOF 1373 1374 1375cat >>confdefs.h <<_ACEOF 1376#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1377_ACEOF 1378 1379 1380cat >>confdefs.h <<_ACEOF 1381#define PACKAGE_VERSION "$PACKAGE_VERSION" 1382_ACEOF 1383 1384 1385cat >>confdefs.h <<_ACEOF 1386#define PACKAGE_STRING "$PACKAGE_STRING" 1387_ACEOF 1388 1389 1390cat >>confdefs.h <<_ACEOF 1391#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1392_ACEOF 1393 1394 1395# Let the site file select an alternate cache file if it wants to. 1396# Prefer explicitly selected file to automatically selected ones. 1397if test -z "$CONFIG_SITE"; then 1398 if test "x$prefix" != xNONE; then 1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1400 else 1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1402 fi 1403fi 1404for ac_site_file in $CONFIG_SITE; do 1405 if test -r "$ac_site_file"; then 1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1407echo "$as_me: loading site script $ac_site_file" >&6;} 1408 sed 's/^/| /' "$ac_site_file" >&5 1409 . "$ac_site_file" 1410 fi 1411done 1412 1413if test -r "$cache_file"; then 1414 # Some versions of bash will fail to source /dev/null (special 1415 # files actually), so we avoid doing that. 1416 if test -f "$cache_file"; then 1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1418echo "$as_me: loading cache $cache_file" >&6;} 1419 case $cache_file in 1420 [\\/]* | ?:[\\/]* ) . $cache_file;; 1421 *) . ./$cache_file;; 1422 esac 1423 fi 1424else 1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1426echo "$as_me: creating cache $cache_file" >&6;} 1427 >$cache_file 1428fi 1429 1430# Check that the precious variables saved in the cache have kept the same 1431# value. 1432ac_cache_corrupted=false 1433for ac_var in `(set) 2>&1 | 1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1436 eval ac_new_set=\$ac_env_${ac_var}_set 1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1438 eval ac_new_val="\$ac_env_${ac_var}_value" 1439 case $ac_old_set,$ac_new_set in 1440 set,) 1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1442echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1443 ac_cache_corrupted=: ;; 1444 ,set) 1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1446echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1447 ac_cache_corrupted=: ;; 1448 ,);; 1449 *) 1450 if test "x$ac_old_val" != "x$ac_new_val"; then 1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1452echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1454echo "$as_me: former value: $ac_old_val" >&2;} 1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1456echo "$as_me: current value: $ac_new_val" >&2;} 1457 ac_cache_corrupted=: 1458 fi;; 1459 esac 1460 # Pass precious variables to config.status. 1461 if test "$ac_new_set" = set; then 1462 case $ac_new_val in 1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1465 *) ac_arg=$ac_var=$ac_new_val ;; 1466 esac 1467 case " $ac_configure_args " in 1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1470 esac 1471 fi 1472done 1473if $ac_cache_corrupted; then 1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1475echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1477echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1478 { (exit 1); exit 1; }; } 1479fi 1480 1481ac_ext=c 1482ac_cpp='$CPP $CPPFLAGS' 1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1485ac_compiler_gnu=$ac_cv_c_compiler_gnu 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506ac_ext=c 1507ac_cpp='$CPP $CPPFLAGS' 1508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1510ac_compiler_gnu=$ac_cv_c_compiler_gnu 1511if test -n "$ac_tool_prefix"; then 1512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1513set dummy ${ac_tool_prefix}gcc; ac_word=$2 1514echo "$as_me:$LINENO: checking for $ac_word" >&5 1515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1516if test "${ac_cv_prog_CC+set}" = set; then 1517 echo $ECHO_N "(cached) $ECHO_C" >&6 1518else 1519 if test -n "$CC"; then 1520 ac_cv_prog_CC="$CC" # Let the user override the test. 1521else 1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1523for as_dir in $PATH 1524do 1525 IFS=$as_save_IFS 1526 test -z "$as_dir" && as_dir=. 1527 for ac_exec_ext in '' $ac_executable_extensions; do 1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1529 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1531 break 2 1532 fi 1533done 1534done 1535 1536fi 1537fi 1538CC=$ac_cv_prog_CC 1539if test -n "$CC"; then 1540 echo "$as_me:$LINENO: result: $CC" >&5 1541echo "${ECHO_T}$CC" >&6 1542else 1543 echo "$as_me:$LINENO: result: no" >&5 1544echo "${ECHO_T}no" >&6 1545fi 1546 1547fi 1548if test -z "$ac_cv_prog_CC"; then 1549 ac_ct_CC=$CC 1550 # Extract the first word of "gcc", so it can be a program name with args. 1551set dummy gcc; ac_word=$2 1552echo "$as_me:$LINENO: checking for $ac_word" >&5 1553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1554if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1555 echo $ECHO_N "(cached) $ECHO_C" >&6 1556else 1557 if test -n "$ac_ct_CC"; then 1558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1559else 1560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1561for as_dir in $PATH 1562do 1563 IFS=$as_save_IFS 1564 test -z "$as_dir" && as_dir=. 1565 for ac_exec_ext in '' $ac_executable_extensions; do 1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1567 ac_cv_prog_ac_ct_CC="gcc" 1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1569 break 2 1570 fi 1571done 1572done 1573 1574fi 1575fi 1576ac_ct_CC=$ac_cv_prog_ac_ct_CC 1577if test -n "$ac_ct_CC"; then 1578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1579echo "${ECHO_T}$ac_ct_CC" >&6 1580else 1581 echo "$as_me:$LINENO: result: no" >&5 1582echo "${ECHO_T}no" >&6 1583fi 1584 1585 CC=$ac_ct_CC 1586else 1587 CC="$ac_cv_prog_CC" 1588fi 1589 1590if test -z "$CC"; then 1591 if test -n "$ac_tool_prefix"; then 1592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1593set dummy ${ac_tool_prefix}cc; ac_word=$2 1594echo "$as_me:$LINENO: checking for $ac_word" >&5 1595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1596if test "${ac_cv_prog_CC+set}" = set; then 1597 echo $ECHO_N "(cached) $ECHO_C" >&6 1598else 1599 if test -n "$CC"; then 1600 ac_cv_prog_CC="$CC" # Let the user override the test. 1601else 1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1603for as_dir in $PATH 1604do 1605 IFS=$as_save_IFS 1606 test -z "$as_dir" && as_dir=. 1607 for ac_exec_ext in '' $ac_executable_extensions; do 1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1609 ac_cv_prog_CC="${ac_tool_prefix}cc" 1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1611 break 2 1612 fi 1613done 1614done 1615 1616fi 1617fi 1618CC=$ac_cv_prog_CC 1619if test -n "$CC"; then 1620 echo "$as_me:$LINENO: result: $CC" >&5 1621echo "${ECHO_T}$CC" >&6 1622else 1623 echo "$as_me:$LINENO: result: no" >&5 1624echo "${ECHO_T}no" >&6 1625fi 1626 1627fi 1628if test -z "$ac_cv_prog_CC"; then 1629 ac_ct_CC=$CC 1630 # Extract the first word of "cc", so it can be a program name with args. 1631set dummy cc; ac_word=$2 1632echo "$as_me:$LINENO: checking for $ac_word" >&5 1633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1635 echo $ECHO_N "(cached) $ECHO_C" >&6 1636else 1637 if test -n "$ac_ct_CC"; then 1638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1639else 1640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1641for as_dir in $PATH 1642do 1643 IFS=$as_save_IFS 1644 test -z "$as_dir" && as_dir=. 1645 for ac_exec_ext in '' $ac_executable_extensions; do 1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1647 ac_cv_prog_ac_ct_CC="cc" 1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1649 break 2 1650 fi 1651done 1652done 1653 1654fi 1655fi 1656ac_ct_CC=$ac_cv_prog_ac_ct_CC 1657if test -n "$ac_ct_CC"; then 1658 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1659echo "${ECHO_T}$ac_ct_CC" >&6 1660else 1661 echo "$as_me:$LINENO: result: no" >&5 1662echo "${ECHO_T}no" >&6 1663fi 1664 1665 CC=$ac_ct_CC 1666else 1667 CC="$ac_cv_prog_CC" 1668fi 1669 1670fi 1671if test -z "$CC"; then 1672 # Extract the first word of "cc", so it can be a program name with args. 1673set dummy cc; ac_word=$2 1674echo "$as_me:$LINENO: checking for $ac_word" >&5 1675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1676if test "${ac_cv_prog_CC+set}" = set; then 1677 echo $ECHO_N "(cached) $ECHO_C" >&6 1678else 1679 if test -n "$CC"; then 1680 ac_cv_prog_CC="$CC" # Let the user override the test. 1681else 1682 ac_prog_rejected=no 1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1684for as_dir in $PATH 1685do 1686 IFS=$as_save_IFS 1687 test -z "$as_dir" && as_dir=. 1688 for ac_exec_ext in '' $ac_executable_extensions; do 1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1691 ac_prog_rejected=yes 1692 continue 1693 fi 1694 ac_cv_prog_CC="cc" 1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1696 break 2 1697 fi 1698done 1699done 1700 1701if test $ac_prog_rejected = yes; then 1702 # We found a bogon in the path, so make sure we never use it. 1703 set dummy $ac_cv_prog_CC 1704 shift 1705 if test $# != 0; then 1706 # We chose a different compiler from the bogus one. 1707 # However, it has the same basename, so the bogon will be chosen 1708 # first if we set CC to just the basename; use the full file name. 1709 shift 1710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1711 fi 1712fi 1713fi 1714fi 1715CC=$ac_cv_prog_CC 1716if test -n "$CC"; then 1717 echo "$as_me:$LINENO: result: $CC" >&5 1718echo "${ECHO_T}$CC" >&6 1719else 1720 echo "$as_me:$LINENO: result: no" >&5 1721echo "${ECHO_T}no" >&6 1722fi 1723 1724fi 1725if test -z "$CC"; then 1726 if test -n "$ac_tool_prefix"; then 1727 for ac_prog in cl 1728 do 1729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1730set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1731echo "$as_me:$LINENO: checking for $ac_word" >&5 1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1733if test "${ac_cv_prog_CC+set}" = set; then 1734 echo $ECHO_N "(cached) $ECHO_C" >&6 1735else 1736 if test -n "$CC"; then 1737 ac_cv_prog_CC="$CC" # Let the user override the test. 1738else 1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1740for as_dir in $PATH 1741do 1742 IFS=$as_save_IFS 1743 test -z "$as_dir" && as_dir=. 1744 for ac_exec_ext in '' $ac_executable_extensions; do 1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1748 break 2 1749 fi 1750done 1751done 1752 1753fi 1754fi 1755CC=$ac_cv_prog_CC 1756if test -n "$CC"; then 1757 echo "$as_me:$LINENO: result: $CC" >&5 1758echo "${ECHO_T}$CC" >&6 1759else 1760 echo "$as_me:$LINENO: result: no" >&5 1761echo "${ECHO_T}no" >&6 1762fi 1763 1764 test -n "$CC" && break 1765 done 1766fi 1767if test -z "$CC"; then 1768 ac_ct_CC=$CC 1769 for ac_prog in cl 1770do 1771 # Extract the first word of "$ac_prog", so it can be a program name with args. 1772set dummy $ac_prog; ac_word=$2 1773echo "$as_me:$LINENO: checking for $ac_word" >&5 1774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1775if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1776 echo $ECHO_N "(cached) $ECHO_C" >&6 1777else 1778 if test -n "$ac_ct_CC"; then 1779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1780else 1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1782for as_dir in $PATH 1783do 1784 IFS=$as_save_IFS 1785 test -z "$as_dir" && as_dir=. 1786 for ac_exec_ext in '' $ac_executable_extensions; do 1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1788 ac_cv_prog_ac_ct_CC="$ac_prog" 1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1790 break 2 1791 fi 1792done 1793done 1794 1795fi 1796fi 1797ac_ct_CC=$ac_cv_prog_ac_ct_CC 1798if test -n "$ac_ct_CC"; then 1799 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1800echo "${ECHO_T}$ac_ct_CC" >&6 1801else 1802 echo "$as_me:$LINENO: result: no" >&5 1803echo "${ECHO_T}no" >&6 1804fi 1805 1806 test -n "$ac_ct_CC" && break 1807done 1808 1809 CC=$ac_ct_CC 1810fi 1811 1812fi 1813 1814 1815test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1816See \`config.log' for more details." >&5 1817echo "$as_me: error: no acceptable C compiler found in \$PATH 1818See \`config.log' for more details." >&2;} 1819 { (exit 1); exit 1; }; } 1820 1821# Provide some information about the compiler. 1822echo "$as_me:$LINENO:" \ 1823 "checking for C compiler version" >&5 1824ac_compiler=`set X $ac_compile; echo $2` 1825{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1826 (eval $ac_compiler --version </dev/null >&5) 2>&5 1827 ac_status=$? 1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1829 (exit $ac_status); } 1830{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1831 (eval $ac_compiler -v </dev/null >&5) 2>&5 1832 ac_status=$? 1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1834 (exit $ac_status); } 1835{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1836 (eval $ac_compiler -V </dev/null >&5) 2>&5 1837 ac_status=$? 1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1839 (exit $ac_status); } 1840 1841cat >conftest.$ac_ext <<_ACEOF 1842/* confdefs.h. */ 1843_ACEOF 1844cat confdefs.h >>conftest.$ac_ext 1845cat >>conftest.$ac_ext <<_ACEOF 1846/* end confdefs.h. */ 1847 1848int 1849main () 1850{ 1851 1852 ; 1853 return 0; 1854} 1855_ACEOF 1856ac_clean_files_save=$ac_clean_files 1857ac_clean_files="$ac_clean_files a.out a.exe b.out" 1858# Try to create an executable without -o first, disregard a.out. 1859# It will help us diagnose broken compilers, and finding out an intuition 1860# of exeext. 1861echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1862echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1863ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1864if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1865 (eval $ac_link_default) 2>&5 1866 ac_status=$? 1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1868 (exit $ac_status); }; then 1869 # Find the output, starting from the most likely. This scheme is 1870# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1871# resort. 1872 1873# Be careful to initialize this variable, since it used to be cached. 1874# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1875ac_cv_exeext= 1876# b.out is created by i960 compilers. 1877for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1878do 1879 test -f "$ac_file" || continue 1880 case $ac_file in 1881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1882 ;; 1883 conftest.$ac_ext ) 1884 # This is the source file. 1885 ;; 1886 [ab].out ) 1887 # We found the default executable, but exeext='' is most 1888 # certainly right. 1889 break;; 1890 *.* ) 1891 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1892 # FIXME: I believe we export ac_cv_exeext for Libtool, 1893 # but it would be cool to find out if it's true. Does anybody 1894 # maintain Libtool? --akim. 1895 export ac_cv_exeext 1896 break;; 1897 * ) 1898 break;; 1899 esac 1900done 1901else 1902 echo "$as_me: failed program was:" >&5 1903sed 's/^/| /' conftest.$ac_ext >&5 1904 1905{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1906See \`config.log' for more details." >&5 1907echo "$as_me: error: C compiler cannot create executables 1908See \`config.log' for more details." >&2;} 1909 { (exit 77); exit 77; }; } 1910fi 1911 1912ac_exeext=$ac_cv_exeext 1913echo "$as_me:$LINENO: result: $ac_file" >&5 1914echo "${ECHO_T}$ac_file" >&6 1915 1916# Check the compiler produces executables we can run. If not, either 1917# the compiler is broken, or we cross compile. 1918echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1919echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1920# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1921# If not cross compiling, check that we can run a simple program. 1922if test "$cross_compiling" != yes; then 1923 if { ac_try='./$ac_file' 1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1925 (eval $ac_try) 2>&5 1926 ac_status=$? 1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1928 (exit $ac_status); }; }; then 1929 cross_compiling=no 1930 else 1931 if test "$cross_compiling" = maybe; then 1932 cross_compiling=yes 1933 else 1934 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1935If you meant to cross compile, use \`--host'. 1936See \`config.log' for more details." >&5 1937echo "$as_me: error: cannot run C compiled programs. 1938If you meant to cross compile, use \`--host'. 1939See \`config.log' for more details." >&2;} 1940 { (exit 1); exit 1; }; } 1941 fi 1942 fi 1943fi 1944echo "$as_me:$LINENO: result: yes" >&5 1945echo "${ECHO_T}yes" >&6 1946 1947rm -f a.out a.exe conftest$ac_cv_exeext b.out 1948ac_clean_files=$ac_clean_files_save 1949# Check the compiler produces executables we can run. If not, either 1950# the compiler is broken, or we cross compile. 1951echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1952echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1953echo "$as_me:$LINENO: result: $cross_compiling" >&5 1954echo "${ECHO_T}$cross_compiling" >&6 1955 1956echo "$as_me:$LINENO: checking for suffix of executables" >&5 1957echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1959 (eval $ac_link) 2>&5 1960 ac_status=$? 1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1962 (exit $ac_status); }; then 1963 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1964# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1965# work properly (i.e., refer to `conftest.exe'), while it won't with 1966# `rm'. 1967for ac_file in conftest.exe conftest conftest.*; do 1968 test -f "$ac_file" || continue 1969 case $ac_file in 1970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1972 export ac_cv_exeext 1973 break;; 1974 * ) break;; 1975 esac 1976done 1977else 1978 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1979See \`config.log' for more details." >&5 1980echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1981See \`config.log' for more details." >&2;} 1982 { (exit 1); exit 1; }; } 1983fi 1984 1985rm -f conftest$ac_cv_exeext 1986echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1987echo "${ECHO_T}$ac_cv_exeext" >&6 1988 1989rm -f conftest.$ac_ext 1990EXEEXT=$ac_cv_exeext 1991ac_exeext=$EXEEXT 1992echo "$as_me:$LINENO: checking for suffix of object files" >&5 1993echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1994if test "${ac_cv_objext+set}" = set; then 1995 echo $ECHO_N "(cached) $ECHO_C" >&6 1996else 1997 cat >conftest.$ac_ext <<_ACEOF 1998/* confdefs.h. */ 1999_ACEOF 2000cat confdefs.h >>conftest.$ac_ext 2001cat >>conftest.$ac_ext <<_ACEOF 2002/* end confdefs.h. */ 2003 2004int 2005main () 2006{ 2007 2008 ; 2009 return 0; 2010} 2011_ACEOF 2012rm -f conftest.o conftest.obj 2013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2014 (eval $ac_compile) 2>&5 2015 ac_status=$? 2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2017 (exit $ac_status); }; then 2018 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2019 case $ac_file in 2020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2022 break;; 2023 esac 2024done 2025else 2026 echo "$as_me: failed program was:" >&5 2027sed 's/^/| /' conftest.$ac_ext >&5 2028 2029{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2030See \`config.log' for more details." >&5 2031echo "$as_me: error: cannot compute suffix of object files: cannot compile 2032See \`config.log' for more details." >&2;} 2033 { (exit 1); exit 1; }; } 2034fi 2035 2036rm -f conftest.$ac_cv_objext conftest.$ac_ext 2037fi 2038echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2039echo "${ECHO_T}$ac_cv_objext" >&6 2040OBJEXT=$ac_cv_objext 2041ac_objext=$OBJEXT 2042echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2043echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2044if test "${ac_cv_c_compiler_gnu+set}" = set; then 2045 echo $ECHO_N "(cached) $ECHO_C" >&6 2046else 2047 cat >conftest.$ac_ext <<_ACEOF 2048/* confdefs.h. */ 2049_ACEOF 2050cat confdefs.h >>conftest.$ac_ext 2051cat >>conftest.$ac_ext <<_ACEOF 2052/* end confdefs.h. */ 2053 2054int 2055main () 2056{ 2057#ifndef __GNUC__ 2058 choke me 2059#endif 2060 2061 ; 2062 return 0; 2063} 2064_ACEOF 2065rm -f conftest.$ac_objext 2066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2067 (eval $ac_compile) 2>conftest.er1 2068 ac_status=$? 2069 grep -v '^ *+' conftest.er1 >conftest.err 2070 rm -f conftest.er1 2071 cat conftest.err >&5 2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2073 (exit $ac_status); } && 2074 { ac_try='test -z "$ac_c_werror_flag" 2075 || test ! -s conftest.err' 2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2077 (eval $ac_try) 2>&5 2078 ac_status=$? 2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2080 (exit $ac_status); }; } && 2081 { ac_try='test -s conftest.$ac_objext' 2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2083 (eval $ac_try) 2>&5 2084 ac_status=$? 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2086 (exit $ac_status); }; }; then 2087 ac_compiler_gnu=yes 2088else 2089 echo "$as_me: failed program was:" >&5 2090sed 's/^/| /' conftest.$ac_ext >&5 2091 2092ac_compiler_gnu=no 2093fi 2094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2095ac_cv_c_compiler_gnu=$ac_compiler_gnu 2096 2097fi 2098echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2099echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2100GCC=`test $ac_compiler_gnu = yes && echo yes` 2101ac_test_CFLAGS=${CFLAGS+set} 2102ac_save_CFLAGS=$CFLAGS 2103CFLAGS="-g" 2104echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2105echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2106if test "${ac_cv_prog_cc_g+set}" = set; then 2107 echo $ECHO_N "(cached) $ECHO_C" >&6 2108else 2109 cat >conftest.$ac_ext <<_ACEOF 2110/* confdefs.h. */ 2111_ACEOF 2112cat confdefs.h >>conftest.$ac_ext 2113cat >>conftest.$ac_ext <<_ACEOF 2114/* end confdefs.h. */ 2115 2116int 2117main () 2118{ 2119 2120 ; 2121 return 0; 2122} 2123_ACEOF 2124rm -f conftest.$ac_objext 2125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2126 (eval $ac_compile) 2>conftest.er1 2127 ac_status=$? 2128 grep -v '^ *+' conftest.er1 >conftest.err 2129 rm -f conftest.er1 2130 cat conftest.err >&5 2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2132 (exit $ac_status); } && 2133 { ac_try='test -z "$ac_c_werror_flag" 2134 || test ! -s conftest.err' 2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2136 (eval $ac_try) 2>&5 2137 ac_status=$? 2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2139 (exit $ac_status); }; } && 2140 { ac_try='test -s conftest.$ac_objext' 2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2142 (eval $ac_try) 2>&5 2143 ac_status=$? 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); }; }; then 2146 ac_cv_prog_cc_g=yes 2147else 2148 echo "$as_me: failed program was:" >&5 2149sed 's/^/| /' conftest.$ac_ext >&5 2150 2151ac_cv_prog_cc_g=no 2152fi 2153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2154fi 2155echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2156echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2157if test "$ac_test_CFLAGS" = set; then 2158 CFLAGS=$ac_save_CFLAGS 2159elif test $ac_cv_prog_cc_g = yes; then 2160 if test "$GCC" = yes; then 2161 CFLAGS="-g -O2" 2162 else 2163 CFLAGS="-g" 2164 fi 2165else 2166 if test "$GCC" = yes; then 2167 CFLAGS="-O2" 2168 else 2169 CFLAGS= 2170 fi 2171fi 2172echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2173echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2174if test "${ac_cv_prog_cc_stdc+set}" = set; then 2175 echo $ECHO_N "(cached) $ECHO_C" >&6 2176else 2177 ac_cv_prog_cc_stdc=no 2178ac_save_CC=$CC 2179cat >conftest.$ac_ext <<_ACEOF 2180/* confdefs.h. */ 2181_ACEOF 2182cat confdefs.h >>conftest.$ac_ext 2183cat >>conftest.$ac_ext <<_ACEOF 2184/* end confdefs.h. */ 2185#include <stdarg.h> 2186#include <stdio.h> 2187#include <sys/types.h> 2188#include <sys/stat.h> 2189/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2190struct buf { int x; }; 2191FILE * (*rcsopen) (struct buf *, struct stat *, int); 2192static char *e (p, i) 2193 char **p; 2194 int i; 2195{ 2196 return p[i]; 2197} 2198static char *f (char * (*g) (char **, int), char **p, ...) 2199{ 2200 char *s; 2201 va_list v; 2202 va_start (v,p); 2203 s = g (p, va_arg (v,int)); 2204 va_end (v); 2205 return s; 2206} 2207 2208/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2209 function prototypes and stuff, but not '\xHH' hex character constants. 2210 These don't provoke an error unfortunately, instead are silently treated 2211 as 'x'. The following induces an error, until -std1 is added to get 2212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2213 array size at least. It's necessary to write '\x00'==0 to get something 2214 that's true only with -std1. */ 2215int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2216 2217int test (int i, double x); 2218struct s1 {int (*f) (int a);}; 2219struct s2 {int (*f) (double a);}; 2220int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2221int argc; 2222char **argv; 2223int 2224main () 2225{ 2226return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2227 ; 2228 return 0; 2229} 2230_ACEOF 2231# Don't try gcc -ansi; that turns off useful extensions and 2232# breaks some systems' header files. 2233# AIX -qlanglvl=ansi 2234# Ultrix and OSF/1 -std1 2235# HP-UX 10.20 and later -Ae 2236# HP-UX older versions -Aa -D_HPUX_SOURCE 2237# SVR4 -Xc -D__EXTENSIONS__ 2238for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2239do 2240 CC="$ac_save_CC $ac_arg" 2241 rm -f conftest.$ac_objext 2242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2243 (eval $ac_compile) 2>conftest.er1 2244 ac_status=$? 2245 grep -v '^ *+' conftest.er1 >conftest.err 2246 rm -f conftest.er1 2247 cat conftest.err >&5 2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2249 (exit $ac_status); } && 2250 { ac_try='test -z "$ac_c_werror_flag" 2251 || test ! -s conftest.err' 2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2253 (eval $ac_try) 2>&5 2254 ac_status=$? 2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2256 (exit $ac_status); }; } && 2257 { ac_try='test -s conftest.$ac_objext' 2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2259 (eval $ac_try) 2>&5 2260 ac_status=$? 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); }; }; then 2263 ac_cv_prog_cc_stdc=$ac_arg 2264break 2265else 2266 echo "$as_me: failed program was:" >&5 2267sed 's/^/| /' conftest.$ac_ext >&5 2268 2269fi 2270rm -f conftest.err conftest.$ac_objext 2271done 2272rm -f conftest.$ac_ext conftest.$ac_objext 2273CC=$ac_save_CC 2274 2275fi 2276 2277case "x$ac_cv_prog_cc_stdc" in 2278 x|xno) 2279 echo "$as_me:$LINENO: result: none needed" >&5 2280echo "${ECHO_T}none needed" >&6 ;; 2281 *) 2282 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2283echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2284 CC="$CC $ac_cv_prog_cc_stdc" ;; 2285esac 2286 2287# Some people use a C++ compiler to compile C. Since we use `exit', 2288# in C++ we need to declare it. In case someone uses the same compiler 2289# for both compiling C and C++ we need to have the C++ compiler decide 2290# the declaration of exit, since it's the most demanding environment. 2291cat >conftest.$ac_ext <<_ACEOF 2292#ifndef __cplusplus 2293 choke me 2294#endif 2295_ACEOF 2296rm -f conftest.$ac_objext 2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2298 (eval $ac_compile) 2>conftest.er1 2299 ac_status=$? 2300 grep -v '^ *+' conftest.er1 >conftest.err 2301 rm -f conftest.er1 2302 cat conftest.err >&5 2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2304 (exit $ac_status); } && 2305 { ac_try='test -z "$ac_c_werror_flag" 2306 || test ! -s conftest.err' 2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2308 (eval $ac_try) 2>&5 2309 ac_status=$? 2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 (exit $ac_status); }; } && 2312 { ac_try='test -s conftest.$ac_objext' 2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2314 (eval $ac_try) 2>&5 2315 ac_status=$? 2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2317 (exit $ac_status); }; }; then 2318 for ac_declaration in \ 2319 '' \ 2320 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2321 'extern "C" void std::exit (int); using std::exit;' \ 2322 'extern "C" void exit (int) throw ();' \ 2323 'extern "C" void exit (int);' \ 2324 'void exit (int);' 2325do 2326 cat >conftest.$ac_ext <<_ACEOF 2327/* confdefs.h. */ 2328_ACEOF 2329cat confdefs.h >>conftest.$ac_ext 2330cat >>conftest.$ac_ext <<_ACEOF 2331/* end confdefs.h. */ 2332$ac_declaration 2333#include <stdlib.h> 2334int 2335main () 2336{ 2337exit (42); 2338 ; 2339 return 0; 2340} 2341_ACEOF 2342rm -f conftest.$ac_objext 2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2344 (eval $ac_compile) 2>conftest.er1 2345 ac_status=$? 2346 grep -v '^ *+' conftest.er1 >conftest.err 2347 rm -f conftest.er1 2348 cat conftest.err >&5 2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350 (exit $ac_status); } && 2351 { ac_try='test -z "$ac_c_werror_flag" 2352 || test ! -s conftest.err' 2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2354 (eval $ac_try) 2>&5 2355 ac_status=$? 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2357 (exit $ac_status); }; } && 2358 { ac_try='test -s conftest.$ac_objext' 2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2360 (eval $ac_try) 2>&5 2361 ac_status=$? 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363 (exit $ac_status); }; }; then 2364 : 2365else 2366 echo "$as_me: failed program was:" >&5 2367sed 's/^/| /' conftest.$ac_ext >&5 2368 2369continue 2370fi 2371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2372 cat >conftest.$ac_ext <<_ACEOF 2373/* confdefs.h. */ 2374_ACEOF 2375cat confdefs.h >>conftest.$ac_ext 2376cat >>conftest.$ac_ext <<_ACEOF 2377/* end confdefs.h. */ 2378$ac_declaration 2379int 2380main () 2381{ 2382exit (42); 2383 ; 2384 return 0; 2385} 2386_ACEOF 2387rm -f conftest.$ac_objext 2388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2389 (eval $ac_compile) 2>conftest.er1 2390 ac_status=$? 2391 grep -v '^ *+' conftest.er1 >conftest.err 2392 rm -f conftest.er1 2393 cat conftest.err >&5 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); } && 2396 { ac_try='test -z "$ac_c_werror_flag" 2397 || test ! -s conftest.err' 2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2399 (eval $ac_try) 2>&5 2400 ac_status=$? 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); }; } && 2403 { ac_try='test -s conftest.$ac_objext' 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 (eval $ac_try) 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; }; then 2409 break 2410else 2411 echo "$as_me: failed program was:" >&5 2412sed 's/^/| /' conftest.$ac_ext >&5 2413 2414fi 2415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2416done 2417rm -f conftest* 2418if test -n "$ac_declaration"; then 2419 echo '#ifdef __cplusplus' >>confdefs.h 2420 echo $ac_declaration >>confdefs.h 2421 echo '#endif' >>confdefs.h 2422fi 2423 2424else 2425 echo "$as_me: failed program was:" >&5 2426sed 's/^/| /' conftest.$ac_ext >&5 2427 2428fi 2429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2430ac_ext=c 2431ac_cpp='$CPP $CPPFLAGS' 2432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2434ac_compiler_gnu=$ac_cv_c_compiler_gnu 2435 2436ac_aux_dir= 2437for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2438 if test -f $ac_dir/install-sh; then 2439 ac_aux_dir=$ac_dir 2440 ac_install_sh="$ac_aux_dir/install-sh -c" 2441 break 2442 elif test -f $ac_dir/install.sh; then 2443 ac_aux_dir=$ac_dir 2444 ac_install_sh="$ac_aux_dir/install.sh -c" 2445 break 2446 elif test -f $ac_dir/shtool; then 2447 ac_aux_dir=$ac_dir 2448 ac_install_sh="$ac_aux_dir/shtool install -c" 2449 break 2450 fi 2451done 2452if test -z "$ac_aux_dir"; then 2453 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2454echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2455 { (exit 1); exit 1; }; } 2456fi 2457ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2458ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2459ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2460 2461# Find a good install program. We prefer a C program (faster), 2462# so one script is as good as another. But avoid the broken or 2463# incompatible versions: 2464# SysV /etc/install, /usr/sbin/install 2465# SunOS /usr/etc/install 2466# IRIX /sbin/install 2467# AIX /bin/install 2468# AmigaOS /C/install, which installs bootblocks on floppy discs 2469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2470# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2472# OS/2's system install, which has a completely different semantic 2473# ./install, which can be erroneously created by make from ./install.sh. 2474echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2475echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2476if test -z "$INSTALL"; then 2477if test "${ac_cv_path_install+set}" = set; then 2478 echo $ECHO_N "(cached) $ECHO_C" >&6 2479else 2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481for as_dir in $PATH 2482do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 # Account for people who put trailing slashes in PATH elements. 2486case $as_dir/ in 2487 ./ | .// | /cC/* | \ 2488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2490 /usr/ucb/* ) ;; 2491 *) 2492 # OSF1 and SCO ODT 3.0 have their own names for install. 2493 # Don't use installbsd from OSF since it installs stuff as root 2494 # by default. 2495 for ac_prog in ginstall scoinst install; do 2496 for ac_exec_ext in '' $ac_executable_extensions; do 2497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2498 if test $ac_prog = install && 2499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2500 # AIX install. It has an incompatible calling convention. 2501 : 2502 elif test $ac_prog = install && 2503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2504 # program-specific install script used by HP pwplus--don't use. 2505 : 2506 else 2507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2508 break 3 2509 fi 2510 fi 2511 done 2512 done 2513 ;; 2514esac 2515done 2516 2517 2518fi 2519 if test "${ac_cv_path_install+set}" = set; then 2520 INSTALL=$ac_cv_path_install 2521 else 2522 # As a last resort, use the slow shell script. We don't cache a 2523 # path for INSTALL within a source directory, because that will 2524 # break other packages using the cache if that directory is 2525 # removed, or if the path is relative. 2526 INSTALL=$ac_install_sh 2527 fi 2528fi 2529echo "$as_me:$LINENO: result: $INSTALL" >&5 2530echo "${ECHO_T}$INSTALL" >&6 2531 2532# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2533# It thinks the first close brace ends the variable substitution. 2534test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2535 2536test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2537 2538test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2539 2540echo "$as_me:$LINENO: checking whether ln -s works" >&5 2541echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2542LN_S=$as_ln_s 2543if test "$LN_S" = "ln -s"; then 2544 echo "$as_me:$LINENO: result: yes" >&5 2545echo "${ECHO_T}yes" >&6 2546else 2547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2548echo "${ECHO_T}no, using $LN_S" >&6 2549fi 2550 2551 2552echo "$as_me:$LINENO: checking for library containing strerror" >&5 2553echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2554if test "${ac_cv_search_strerror+set}" = set; then 2555 echo $ECHO_N "(cached) $ECHO_C" >&6 2556else 2557 ac_func_search_save_LIBS=$LIBS 2558ac_cv_search_strerror=no 2559cat >conftest.$ac_ext <<_ACEOF 2560/* confdefs.h. */ 2561_ACEOF 2562cat confdefs.h >>conftest.$ac_ext 2563cat >>conftest.$ac_ext <<_ACEOF 2564/* end confdefs.h. */ 2565 2566/* Override any gcc2 internal prototype to avoid an error. */ 2567#ifdef __cplusplus 2568extern "C" 2569#endif 2570/* We use char because int might match the return type of a gcc2 2571 builtin and then its argument prototype would still apply. */ 2572char strerror (); 2573int 2574main () 2575{ 2576strerror (); 2577 ; 2578 return 0; 2579} 2580_ACEOF 2581rm -f conftest.$ac_objext conftest$ac_exeext 2582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2583 (eval $ac_link) 2>conftest.er1 2584 ac_status=$? 2585 grep -v '^ *+' conftest.er1 >conftest.err 2586 rm -f conftest.er1 2587 cat conftest.err >&5 2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); } && 2590 { ac_try='test -z "$ac_c_werror_flag" 2591 || test ! -s conftest.err' 2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2593 (eval $ac_try) 2>&5 2594 ac_status=$? 2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); }; } && 2597 { ac_try='test -s conftest$ac_exeext' 2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2599 (eval $ac_try) 2>&5 2600 ac_status=$? 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); }; }; then 2603 ac_cv_search_strerror="none required" 2604else 2605 echo "$as_me: failed program was:" >&5 2606sed 's/^/| /' conftest.$ac_ext >&5 2607 2608fi 2609rm -f conftest.err conftest.$ac_objext \ 2610 conftest$ac_exeext conftest.$ac_ext 2611if test "$ac_cv_search_strerror" = no; then 2612 for ac_lib in cposix; do 2613 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2614 cat >conftest.$ac_ext <<_ACEOF 2615/* confdefs.h. */ 2616_ACEOF 2617cat confdefs.h >>conftest.$ac_ext 2618cat >>conftest.$ac_ext <<_ACEOF 2619/* end confdefs.h. */ 2620 2621/* Override any gcc2 internal prototype to avoid an error. */ 2622#ifdef __cplusplus 2623extern "C" 2624#endif 2625/* We use char because int might match the return type of a gcc2 2626 builtin and then its argument prototype would still apply. */ 2627char strerror (); 2628int 2629main () 2630{ 2631strerror (); 2632 ; 2633 return 0; 2634} 2635_ACEOF 2636rm -f conftest.$ac_objext conftest$ac_exeext 2637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2638 (eval $ac_link) 2>conftest.er1 2639 ac_status=$? 2640 grep -v '^ *+' conftest.er1 >conftest.err 2641 rm -f conftest.er1 2642 cat conftest.err >&5 2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2644 (exit $ac_status); } && 2645 { ac_try='test -z "$ac_c_werror_flag" 2646 || test ! -s conftest.err' 2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2648 (eval $ac_try) 2>&5 2649 ac_status=$? 2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2651 (exit $ac_status); }; } && 2652 { ac_try='test -s conftest$ac_exeext' 2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2654 (eval $ac_try) 2>&5 2655 ac_status=$? 2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2657 (exit $ac_status); }; }; then 2658 ac_cv_search_strerror="-l$ac_lib" 2659break 2660else 2661 echo "$as_me: failed program was:" >&5 2662sed 's/^/| /' conftest.$ac_ext >&5 2663 2664fi 2665rm -f conftest.err conftest.$ac_objext \ 2666 conftest$ac_exeext conftest.$ac_ext 2667 done 2668fi 2669LIBS=$ac_func_search_save_LIBS 2670fi 2671echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2672echo "${ECHO_T}$ac_cv_search_strerror" >&6 2673if test "$ac_cv_search_strerror" != no; then 2674 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2675 2676fi 2677 2678test "$program_prefix" != NONE && 2679 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2680# Use a double $ so make ignores it. 2681test "$program_suffix" != NONE && 2682 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2683# Double any \ or $. echo might interpret backslashes. 2684# By default was `s,x,x', remove it if useless. 2685cat <<\_ACEOF >conftest.sed 2686s/[\\$]/&&/g;s/;s,x,x,$// 2687_ACEOF 2688program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2689rm conftest.sed 2690 2691 2692# 2693# Making releases: 2694# SU_MINOR_VERSION += 1; 2695# SU_INTERFACE_AGE += 1; 2696# SU_BINARY_AGE += 1; 2697# if any functions have been added, set SU_INTERFACE_AGE to 0. 2698# if backwards compatibility has been broken, 2699# set SU_BINARY_AGE _and_ SU_INTERFACE_AGE to 0. 2700# 2701SU_MAJOR_VERSION=2 2702SU_MINOR_VERSION=9 2703SU_INTERFACE_AGE=0 2704SU_BINARY_AGE=4 2705SU_VERSION=$SU_MAJOR_VERSION.$SU_MINOR_VERSION 2706 2707 2708 2709 2710 2711 2712 2713# libtool versioning 2714LT_RELEASE=$SU_MAJOR_VERSION.$SU_MINOR_VERSION 2715LT_CURRENT=`expr $SU_MINOR_VERSION - $SU_INTERFACE_AGE` 2716LT_REVISION=$SU_INTERFACE_AGE 2717LT_AGE=`expr $SU_BINARY_AGE - $SU_INTERFACE_AGE` 2718 2719 2720 2721 2722 2723VERSION=$SU_VERSION 2724PACKAGE=skyutils 2725 2726# Auto Make 2727 ac_config_headers="$ac_config_headers config.h" 2728 2729am__api_version="1.9" 2730echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2731echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2732# Just in case 2733sleep 1 2734echo timestamp > conftest.file 2735# Do `set' in a subshell so we don't clobber the current shell's 2736# arguments. Must try -L first in case configure is actually a 2737# symlink; some systems play weird games with the mod time of symlinks 2738# (eg FreeBSD returns the mod time of the symlink's containing 2739# directory). 2740if ( 2741 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2742 if test "$*" = "X"; then 2743 # -L didn't work. 2744 set X `ls -t $srcdir/configure conftest.file` 2745 fi 2746 rm -f conftest.file 2747 if test "$*" != "X $srcdir/configure conftest.file" \ 2748 && test "$*" != "X conftest.file $srcdir/configure"; then 2749 2750 # If neither matched, then we have a broken ls. This can happen 2751 # if, for instance, CONFIG_SHELL is bash and it inherits a 2752 # broken ls alias from the environment. This has actually 2753 # happened. Such a system could not be considered "sane". 2754 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2755alias in your environment" >&5 2756echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2757alias in your environment" >&2;} 2758 { (exit 1); exit 1; }; } 2759 fi 2760 2761 test "$2" = conftest.file 2762 ) 2763then 2764 # Ok. 2765 : 2766else 2767 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2768Check your system clock" >&5 2769echo "$as_me: error: newly created file is older than distributed files! 2770Check your system clock" >&2;} 2771 { (exit 1); exit 1; }; } 2772fi 2773echo "$as_me:$LINENO: result: yes" >&5 2774echo "${ECHO_T}yes" >&6 2775# expand $ac_aux_dir to an absolute path 2776am_aux_dir=`cd $ac_aux_dir && pwd` 2777 2778test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2779# Use eval to expand $SHELL 2780if eval "$MISSING --run true"; then 2781 am_missing_run="$MISSING --run " 2782else 2783 am_missing_run= 2784 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2785echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2786fi 2787 2788if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2789 # We used to keeping the `.' as first argument, in order to 2790 # allow $(mkdir_p) to be used without argument. As in 2791 # $(mkdir_p) $(somedir) 2792 # where $(somedir) is conditionally defined. However this is wrong 2793 # for two reasons: 2794 # 1. if the package is installed by a user who cannot write `.' 2795 # make install will fail, 2796 # 2. the above comment should most certainly read 2797 # $(mkdir_p) $(DESTDIR)$(somedir) 2798 # so it does not work when $(somedir) is undefined and 2799 # $(DESTDIR) is not. 2800 # To support the latter case, we have to write 2801 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2802 # so the `.' trick is pointless. 2803 mkdir_p='mkdir -p --' 2804else 2805 # On NextStep and OpenStep, the `mkdir' command does not 2806 # recognize any option. It will interpret all options as 2807 # directories to create, and then abort because `.' already 2808 # exists. 2809 for d in ./-p ./--version; 2810 do 2811 test -d $d && rmdir $d 2812 done 2813 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2814 if test -f "$ac_aux_dir/mkinstalldirs"; then 2815 mkdir_p='$(mkinstalldirs)' 2816 else 2817 mkdir_p='$(install_sh) -d' 2818 fi 2819fi 2820 2821for ac_prog in gawk mawk nawk awk 2822do 2823 # Extract the first word of "$ac_prog", so it can be a program name with args. 2824set dummy $ac_prog; ac_word=$2 2825echo "$as_me:$LINENO: checking for $ac_word" >&5 2826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2827if test "${ac_cv_prog_AWK+set}" = set; then 2828 echo $ECHO_N "(cached) $ECHO_C" >&6 2829else 2830 if test -n "$AWK"; then 2831 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2832else 2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2834for as_dir in $PATH 2835do 2836 IFS=$as_save_IFS 2837 test -z "$as_dir" && as_dir=. 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2840 ac_cv_prog_AWK="$ac_prog" 2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2842 break 2 2843 fi 2844done 2845done 2846 2847fi 2848fi 2849AWK=$ac_cv_prog_AWK 2850if test -n "$AWK"; then 2851 echo "$as_me:$LINENO: result: $AWK" >&5 2852echo "${ECHO_T}$AWK" >&6 2853else 2854 echo "$as_me:$LINENO: result: no" >&5 2855echo "${ECHO_T}no" >&6 2856fi 2857 2858 test -n "$AWK" && break 2859done 2860 2861echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2862echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2863set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2864if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2865 echo $ECHO_N "(cached) $ECHO_C" >&6 2866else 2867 cat >conftest.make <<\_ACEOF 2868all: 2869 @echo 'ac_maketemp="$(MAKE)"' 2870_ACEOF 2871# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2872eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2873if test -n "$ac_maketemp"; then 2874 eval ac_cv_prog_make_${ac_make}_set=yes 2875else 2876 eval ac_cv_prog_make_${ac_make}_set=no 2877fi 2878rm -f conftest.make 2879fi 2880if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2881 echo "$as_me:$LINENO: result: yes" >&5 2882echo "${ECHO_T}yes" >&6 2883 SET_MAKE= 2884else 2885 echo "$as_me:$LINENO: result: no" >&5 2886echo "${ECHO_T}no" >&6 2887 SET_MAKE="MAKE=${MAKE-make}" 2888fi 2889 2890rm -rf .tst 2>/dev/null 2891mkdir .tst 2>/dev/null 2892if test -d .tst; then 2893 am__leading_dot=. 2894else 2895 am__leading_dot=_ 2896fi 2897rmdir .tst 2>/dev/null 2898 2899DEPDIR="${am__leading_dot}deps" 2900 2901 ac_config_commands="$ac_config_commands depfiles" 2902 2903 2904am_make=${MAKE-make} 2905cat > confinc << 'END' 2906am__doit: 2907 @echo done 2908.PHONY: am__doit 2909END 2910# If we don't find an include directive, just comment out the code. 2911echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2912echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2913am__include="#" 2914am__quote= 2915_am_result=none 2916# First try GNU make style include. 2917echo "include confinc" > confmf 2918# We grep out `Entering directory' and `Leaving directory' 2919# messages which can occur if `w' ends up in MAKEFLAGS. 2920# In particular we don't look at `^make:' because GNU make might 2921# be invoked under some other name (usually "gmake"), in which 2922# case it prints its new name instead of `make'. 2923if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2924 am__include=include 2925 am__quote= 2926 _am_result=GNU 2927fi 2928# Now try BSD make style include. 2929if test "$am__include" = "#"; then 2930 echo '.include "confinc"' > confmf 2931 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2932 am__include=.include 2933 am__quote="\"" 2934 _am_result=BSD 2935 fi 2936fi 2937 2938 2939echo "$as_me:$LINENO: result: $_am_result" >&5 2940echo "${ECHO_T}$_am_result" >&6 2941rm -f confinc confmf 2942 2943# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2944if test "${enable_dependency_tracking+set}" = set; then 2945 enableval="$enable_dependency_tracking" 2946 2947fi; 2948if test "x$enable_dependency_tracking" != xno; then 2949 am_depcomp="$ac_aux_dir/depcomp" 2950 AMDEPBACKSLASH='\' 2951fi 2952 2953 2954if test "x$enable_dependency_tracking" != xno; then 2955 AMDEP_TRUE= 2956 AMDEP_FALSE='#' 2957else 2958 AMDEP_TRUE='#' 2959 AMDEP_FALSE= 2960fi 2961 2962 2963 2964# test to see if srcdir already configured 2965if test "`cd $srcdir && pwd`" != "`pwd`" && 2966 test -f $srcdir/config.status; then 2967 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2968echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2969 { (exit 1); exit 1; }; } 2970fi 2971 2972# test whether we have cygpath 2973if test -z "$CYGPATH_W"; then 2974 if (cygpath --version) >/dev/null 2>/dev/null; then 2975 CYGPATH_W='cygpath -w' 2976 else 2977 CYGPATH_W=echo 2978 fi 2979fi 2980 2981 2982# Define the identity of the package. 2983 PACKAGE=$PACKAGE 2984 VERSION=$VERSION 2985 2986 2987cat >>confdefs.h <<_ACEOF 2988#define PACKAGE "$PACKAGE" 2989_ACEOF 2990 2991 2992cat >>confdefs.h <<_ACEOF 2993#define VERSION "$VERSION" 2994_ACEOF 2995 2996# Some tools Automake needs. 2997 2998ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2999 3000 3001AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3002 3003 3004AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3005 3006 3007AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3008 3009 3010MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3011 3012install_sh=${install_sh-"$am_aux_dir/install-sh"} 3013 3014# Installed binaries are usually stripped using `strip' when the user 3015# run `make install-strip'. However `strip' might not be the right 3016# tool to use in cross-compilation environments, therefore Automake 3017# will honor the `STRIP' environment variable to overrule this program. 3018if test "$cross_compiling" != no; then 3019 if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3021set dummy ${ac_tool_prefix}strip; ac_word=$2 3022echo "$as_me:$LINENO: checking for $ac_word" >&5 3023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3024if test "${ac_cv_prog_STRIP+set}" = set; then 3025 echo $ECHO_N "(cached) $ECHO_C" >&6 3026else 3027 if test -n "$STRIP"; then 3028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042done 3043 3044fi 3045fi 3046STRIP=$ac_cv_prog_STRIP 3047if test -n "$STRIP"; then 3048 echo "$as_me:$LINENO: result: $STRIP" >&5 3049echo "${ECHO_T}$STRIP" >&6 3050else 3051 echo "$as_me:$LINENO: result: no" >&5 3052echo "${ECHO_T}no" >&6 3053fi 3054 3055fi 3056if test -z "$ac_cv_prog_STRIP"; then 3057 ac_ct_STRIP=$STRIP 3058 # Extract the first word of "strip", so it can be a program name with args. 3059set dummy strip; ac_word=$2 3060echo "$as_me:$LINENO: checking for $ac_word" >&5 3061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3062if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3063 echo $ECHO_N "(cached) $ECHO_C" >&6 3064else 3065 if test -n "$ac_ct_STRIP"; then 3066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3067else 3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069for as_dir in $PATH 3070do 3071 IFS=$as_save_IFS 3072 test -z "$as_dir" && as_dir=. 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3075 ac_cv_prog_ac_ct_STRIP="strip" 3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079done 3080done 3081 3082 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3083fi 3084fi 3085ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3086if test -n "$ac_ct_STRIP"; then 3087 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3088echo "${ECHO_T}$ac_ct_STRIP" >&6 3089else 3090 echo "$as_me:$LINENO: result: no" >&5 3091echo "${ECHO_T}no" >&6 3092fi 3093 3094 STRIP=$ac_ct_STRIP 3095else 3096 STRIP="$ac_cv_prog_STRIP" 3097fi 3098 3099fi 3100INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 3101 3102# We need awk for the "check" target. The system "awk" is bad on 3103# some platforms. 3104# Always define AMTAR for backward compatibility. 3105 3106AMTAR=${AMTAR-"${am_missing_run}tar"} 3107 3108am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3109 3110 3111 3112 3113depcc="$CC" am_compiler_list= 3114 3115echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3116echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3117if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3118 echo $ECHO_N "(cached) $ECHO_C" >&6 3119else 3120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3121 # We make a subdir and do the tests there. Otherwise we can end up 3122 # making bogus files that we don't know about and never remove. For 3123 # instance it was reported that on HP-UX the gcc test will end up 3124 # making a dummy file named `D' -- because `-MD' means `put the output 3125 # in D'. 3126 mkdir conftest.dir 3127 # Copy depcomp to subdir because otherwise we won't find it if we're 3128 # using a relative directory. 3129 cp "$am_depcomp" conftest.dir 3130 cd conftest.dir 3131 # We will build objects and dependencies in a subdirectory because 3132 # it helps to detect inapplicable dependency modes. For instance 3133 # both Tru64's cc and ICC support -MD to output dependencies as a 3134 # side effect of compilation, but ICC will put the dependencies in 3135 # the current directory while Tru64 will put them in the object 3136 # directory. 3137 mkdir sub 3138 3139 am_cv_CC_dependencies_compiler_type=none 3140 if test "$am_compiler_list" = ""; then 3141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3142 fi 3143 for depmode in $am_compiler_list; do 3144 # Setup a source with many dependencies, because some compilers 3145 # like to wrap large dependency lists on column 80 (with \), and 3146 # we should not choose a depcomp mode which is confused by this. 3147 # 3148 # We need to recreate these files for each test, as the compiler may 3149 # overwrite some of them when testing with obscure command lines. 3150 # This happens at least with the AIX C compiler. 3151 : > sub/conftest.c 3152 for i in 1 2 3 4 5 6; do 3153 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3155 # Solaris 8's {/usr,}/bin/sh. 3156 touch sub/conftst$i.h 3157 done 3158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3159 3160 case $depmode in 3161 nosideeffect) 3162 # after this tag, mechanisms are not by side-effect, so they'll 3163 # only be used when explicitly requested 3164 if test "x$enable_dependency_tracking" = xyes; then 3165 continue 3166 else 3167 break 3168 fi 3169 ;; 3170 none) break ;; 3171 esac 3172 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3173 # mode. It turns out that the SunPro C++ compiler does not properly 3174 # handle `-M -o', and we need to detect this. 3175 if depmode=$depmode \ 3176 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3178 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3179 >/dev/null 2>conftest.err && 3180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3181 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3183 # icc doesn't choke on unknown options, it will just issue warnings 3184 # or remarks (even with -Werror). So we grep stderr for any message 3185 # that says an option was ignored or not supported. 3186 # When given -MP, icc 7.0 and 7.1 complain thusly: 3187 # icc: Command line warning: ignoring option '-M'; no argument required 3188 # The diagnosis changed in icc 8.0: 3189 # icc: Command line remark: option '-MP' not supported 3190 if (grep 'ignoring option' conftest.err || 3191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3192 am_cv_CC_dependencies_compiler_type=$depmode 3193 break 3194 fi 3195 fi 3196 done 3197 3198 cd .. 3199 rm -rf conftest.dir 3200else 3201 am_cv_CC_dependencies_compiler_type=none 3202fi 3203 3204fi 3205echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3206echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3207CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3208 3209 3210 3211if 3212 test "x$enable_dependency_tracking" != xno \ 3213 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3214 am__fastdepCC_TRUE= 3215 am__fastdepCC_FALSE='#' 3216else 3217 am__fastdepCC_TRUE='#' 3218 am__fastdepCC_FALSE= 3219fi 3220 3221 3222 3223echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 3224echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 3225 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 3226if test "${enable_maintainer_mode+set}" = set; then 3227 enableval="$enable_maintainer_mode" 3228 USE_MAINTAINER_MODE=$enableval 3229else 3230 USE_MAINTAINER_MODE=no 3231fi; 3232 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 3233echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 3234 3235 3236if test $USE_MAINTAINER_MODE = yes; then 3237 MAINTAINER_MODE_TRUE= 3238 MAINTAINER_MODE_FALSE='#' 3239else 3240 MAINTAINER_MODE_TRUE='#' 3241 MAINTAINER_MODE_FALSE= 3242fi 3243 3244 MAINT=$MAINTAINER_MODE_TRUE 3245 3246 3247 3248# Check whether --enable-shared or --disable-shared was given. 3249if test "${enable_shared+set}" = set; then 3250 enableval="$enable_shared" 3251 p=${PACKAGE-default} 3252 case $enableval in 3253 yes) enable_shared=yes ;; 3254 no) enable_shared=no ;; 3255 *) 3256 enable_shared=no 3257 # Look at the argument we got. We use all the common list separators. 3258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3259 for pkg in $enableval; do 3260 IFS="$lt_save_ifs" 3261 if test "X$pkg" = "X$p"; then 3262 enable_shared=yes 3263 fi 3264 done 3265 IFS="$lt_save_ifs" 3266 ;; 3267 esac 3268else 3269 enable_shared=yes 3270fi; 3271 3272# Check whether --enable-static or --disable-static was given. 3273if test "${enable_static+set}" = set; then 3274 enableval="$enable_static" 3275 p=${PACKAGE-default} 3276 case $enableval in 3277 yes) enable_static=yes ;; 3278 no) enable_static=no ;; 3279 *) 3280 enable_static=no 3281 # Look at the argument we got. We use all the common list separators. 3282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3283 for pkg in $enableval; do 3284 IFS="$lt_save_ifs" 3285 if test "X$pkg" = "X$p"; then 3286 enable_static=yes 3287 fi 3288 done 3289 IFS="$lt_save_ifs" 3290 ;; 3291 esac 3292else 3293 enable_static=yes 3294fi; 3295 3296# Check whether --enable-fast-install or --disable-fast-install was given. 3297if test "${enable_fast_install+set}" = set; then 3298 enableval="$enable_fast_install" 3299 p=${PACKAGE-default} 3300 case $enableval in 3301 yes) enable_fast_install=yes ;; 3302 no) enable_fast_install=no ;; 3303 *) 3304 enable_fast_install=no 3305 # Look at the argument we got. We use all the common list separators. 3306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3307 for pkg in $enableval; do 3308 IFS="$lt_save_ifs" 3309 if test "X$pkg" = "X$p"; then 3310 enable_fast_install=yes 3311 fi 3312 done 3313 IFS="$lt_save_ifs" 3314 ;; 3315 esac 3316else 3317 enable_fast_install=yes 3318fi; 3319 3320# Make sure we can run config.sub. 3321$ac_config_sub sun4 >/dev/null 2>&1 || 3322 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3323echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3324 { (exit 1); exit 1; }; } 3325 3326echo "$as_me:$LINENO: checking build system type" >&5 3327echo $ECHO_N "checking build system type... $ECHO_C" >&6 3328if test "${ac_cv_build+set}" = set; then 3329 echo $ECHO_N "(cached) $ECHO_C" >&6 3330else 3331 ac_cv_build_alias=$build_alias 3332test -z "$ac_cv_build_alias" && 3333 ac_cv_build_alias=`$ac_config_guess` 3334test -z "$ac_cv_build_alias" && 3335 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3336echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3337 { (exit 1); exit 1; }; } 3338ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3339 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3340echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3341 { (exit 1); exit 1; }; } 3342 3343fi 3344echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3345echo "${ECHO_T}$ac_cv_build" >&6 3346build=$ac_cv_build 3347build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3348build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3349build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3350 3351 3352echo "$as_me:$LINENO: checking host system type" >&5 3353echo $ECHO_N "checking host system type... $ECHO_C" >&6 3354if test "${ac_cv_host+set}" = set; then 3355 echo $ECHO_N "(cached) $ECHO_C" >&6 3356else 3357 ac_cv_host_alias=$host_alias 3358test -z "$ac_cv_host_alias" && 3359 ac_cv_host_alias=$ac_cv_build_alias 3360ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3361 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3362echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3363 { (exit 1); exit 1; }; } 3364 3365fi 3366echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3367echo "${ECHO_T}$ac_cv_host" >&6 3368host=$ac_cv_host 3369host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3370host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3371host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3372 3373 3374echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3375echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3376if test "${lt_cv_path_SED+set}" = set; then 3377 echo $ECHO_N "(cached) $ECHO_C" >&6 3378else 3379 # Loop through the user's path and test for sed and gsed. 3380# Then use that list of sed's as ones to test for truncation. 3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3382for as_dir in $PATH 3383do 3384 IFS=$as_save_IFS 3385 test -z "$as_dir" && as_dir=. 3386 for lt_ac_prog in sed gsed; do 3387 for ac_exec_ext in '' $ac_executable_extensions; do 3388 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3389 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3390 fi 3391 done 3392 done 3393done 3394lt_ac_max=0 3395lt_ac_count=0 3396# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3397# along with /bin/sed that truncates output. 3398for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3399 test ! -f $lt_ac_sed && break 3400 cat /dev/null > conftest.in 3401 lt_ac_count=0 3402 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3403 # Check for GNU sed and select it if it is found. 3404 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3405 lt_cv_path_SED=$lt_ac_sed 3406 break 3407 fi 3408 while true; do 3409 cat conftest.in conftest.in >conftest.tmp 3410 mv conftest.tmp conftest.in 3411 cp conftest.in conftest.nl 3412 echo >>conftest.nl 3413 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3414 cmp -s conftest.out conftest.nl || break 3415 # 10000 chars as input seems more than enough 3416 test $lt_ac_count -gt 10 && break 3417 lt_ac_count=`expr $lt_ac_count + 1` 3418 if test $lt_ac_count -gt $lt_ac_max; then 3419 lt_ac_max=$lt_ac_count 3420 lt_cv_path_SED=$lt_ac_sed 3421 fi 3422 done 3423done 3424 3425fi 3426 3427SED=$lt_cv_path_SED 3428echo "$as_me:$LINENO: result: $SED" >&5 3429echo "${ECHO_T}$SED" >&6 3430 3431echo "$as_me:$LINENO: checking for egrep" >&5 3432echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3433if test "${ac_cv_prog_egrep+set}" = set; then 3434 echo $ECHO_N "(cached) $ECHO_C" >&6 3435else 3436 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3437 then ac_cv_prog_egrep='grep -E' 3438 else ac_cv_prog_egrep='egrep' 3439 fi 3440fi 3441echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3442echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3443 EGREP=$ac_cv_prog_egrep 3444 3445 3446 3447# Check whether --with-gnu-ld or --without-gnu-ld was given. 3448if test "${with_gnu_ld+set}" = set; then 3449 withval="$with_gnu_ld" 3450 test "$withval" = no || with_gnu_ld=yes 3451else 3452 with_gnu_ld=no 3453fi; 3454ac_prog=ld 3455if test "$GCC" = yes; then 3456 # Check if gcc -print-prog-name=ld gives a path. 3457 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3458echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3459 case $host in 3460 *-*-mingw*) 3461 # gcc leaves a trailing carriage return which upsets mingw 3462 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3463 *) 3464 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3465 esac 3466 case $ac_prog in 3467 # Accept absolute paths. 3468 [\\/]* | ?:[\\/]*) 3469 re_direlt='/[^/][^/]*/\.\./' 3470 # Canonicalize the pathname of ld 3471 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3472 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3473 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3474 done 3475 test -z "$LD" && LD="$ac_prog" 3476 ;; 3477 "") 3478 # If it fails, then pretend we aren't using GCC. 3479 ac_prog=ld 3480 ;; 3481 *) 3482 # If it is relative, then search for the first ld in PATH. 3483 with_gnu_ld=unknown 3484 ;; 3485 esac 3486elif test "$with_gnu_ld" = yes; then 3487 echo "$as_me:$LINENO: checking for GNU ld" >&5 3488echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3489else 3490 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3491echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3492fi 3493if test "${lt_cv_path_LD+set}" = set; then 3494 echo $ECHO_N "(cached) $ECHO_C" >&6 3495else 3496 if test -z "$LD"; then 3497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3498 for ac_dir in $PATH; do 3499 IFS="$lt_save_ifs" 3500 test -z "$ac_dir" && ac_dir=. 3501 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3502 lt_cv_path_LD="$ac_dir/$ac_prog" 3503 # Check to see if the program is GNU ld. I'd rather use --version, 3504 # but apparently some GNU ld's only accept -v. 3505 # Break only if it was the GNU/non-GNU ld that we prefer. 3506 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3507 *GNU* | *'with BFD'*) 3508 test "$with_gnu_ld" != no && break 3509 ;; 3510 *) 3511 test "$with_gnu_ld" != yes && break 3512 ;; 3513 esac 3514 fi 3515 done 3516 IFS="$lt_save_ifs" 3517else 3518 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3519fi 3520fi 3521 3522LD="$lt_cv_path_LD" 3523if test -n "$LD"; then 3524 echo "$as_me:$LINENO: result: $LD" >&5 3525echo "${ECHO_T}$LD" >&6 3526else 3527 echo "$as_me:$LINENO: result: no" >&5 3528echo "${ECHO_T}no" >&6 3529fi 3530test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3531echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3532 { (exit 1); exit 1; }; } 3533echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3534echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3535if test "${lt_cv_prog_gnu_ld+set}" = set; then 3536 echo $ECHO_N "(cached) $ECHO_C" >&6 3537else 3538 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3539case `$LD -v 2>&1 </dev/null` in 3540*GNU* | *'with BFD'*) 3541 lt_cv_prog_gnu_ld=yes 3542 ;; 3543*) 3544 lt_cv_prog_gnu_ld=no 3545 ;; 3546esac 3547fi 3548echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3549echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3550with_gnu_ld=$lt_cv_prog_gnu_ld 3551 3552 3553echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3554echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3555if test "${lt_cv_ld_reload_flag+set}" = set; then 3556 echo $ECHO_N "(cached) $ECHO_C" >&6 3557else 3558 lt_cv_ld_reload_flag='-r' 3559fi 3560echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3561echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3562reload_flag=$lt_cv_ld_reload_flag 3563case $reload_flag in 3564"" | " "*) ;; 3565*) reload_flag=" $reload_flag" ;; 3566esac 3567reload_cmds='$LD$reload_flag -o $output$reload_objs' 3568case $host_os in 3569 darwin*) 3570 if test "$GCC" = yes; then 3571 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3572 else 3573 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3574 fi 3575 ;; 3576esac 3577 3578echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3579echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3580if test "${lt_cv_path_NM+set}" = set; then 3581 echo $ECHO_N "(cached) $ECHO_C" >&6 3582else 3583 if test -n "$NM"; then 3584 # Let the user override the test. 3585 lt_cv_path_NM="$NM" 3586else 3587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3588 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3589 IFS="$lt_save_ifs" 3590 test -z "$ac_dir" && ac_dir=. 3591 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3593 # Check to see if the nm accepts a BSD-compat flag. 3594 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3595 # nm: unknown option "B" ignored 3596 # Tru64's nm complains that /dev/null is an invalid object file 3597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3598 */dev/null* | *'Invalid file or object type'*) 3599 lt_cv_path_NM="$tmp_nm -B" 3600 break 3601 ;; 3602 *) 3603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3604 */dev/null*) 3605 lt_cv_path_NM="$tmp_nm -p" 3606 break 3607 ;; 3608 *) 3609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3610 continue # so that we can try to find one that supports BSD flags 3611 ;; 3612 esac 3613 esac 3614 fi 3615 done 3616 IFS="$lt_save_ifs" 3617 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3618fi 3619fi 3620echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3621echo "${ECHO_T}$lt_cv_path_NM" >&6 3622NM="$lt_cv_path_NM" 3623 3624echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3625echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3626if test "${lt_cv_deplibs_check_method+set}" = set; then 3627 echo $ECHO_N "(cached) $ECHO_C" >&6 3628else 3629 lt_cv_file_magic_cmd='$MAGIC_CMD' 3630lt_cv_file_magic_test_file= 3631lt_cv_deplibs_check_method='unknown' 3632# Need to set the preceding variable on all platforms that support 3633# interlibrary dependencies. 3634# 'none' -- dependencies not supported. 3635# `unknown' -- same as none, but documents that we really don't know. 3636# 'pass_all' -- all dependencies passed with no checks. 3637# 'test_compile' -- check by making test program. 3638# 'file_magic [[regex]]' -- check by looking for files in library path 3639# which responds to the $file_magic_cmd with a given extended regex. 3640# If you have `file' or equivalent on your system and you're not sure 3641# whether `pass_all' will *always* work, you probably want this one. 3642 3643case $host_os in 3644aix4* | aix5*) 3645 lt_cv_deplibs_check_method=pass_all 3646 ;; 3647 3648beos*) 3649 lt_cv_deplibs_check_method=pass_all 3650 ;; 3651 3652bsdi[45]*) 3653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3654 lt_cv_file_magic_cmd='/usr/bin/file -L' 3655 lt_cv_file_magic_test_file=/shlib/libc.so 3656 ;; 3657 3658cygwin*) 3659 # func_win32_libid is a shell function defined in ltmain.sh 3660 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3661 lt_cv_file_magic_cmd='func_win32_libid' 3662 ;; 3663 3664mingw* | pw32*) 3665 # Base MSYS/MinGW do not provide the 'file' command needed by 3666 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3667 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3668 lt_cv_file_magic_cmd='$OBJDUMP -f' 3669 ;; 3670 3671darwin* | rhapsody*) 3672 lt_cv_deplibs_check_method=pass_all 3673 ;; 3674 3675freebsd* | kfreebsd*-gnu) 3676 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3677 case $host_cpu in 3678 i*86 ) 3679 # Not sure whether the presence of OpenBSD here was a mistake. 3680 # Let's accept both of them until this is cleared up. 3681 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3682 lt_cv_file_magic_cmd=/usr/bin/file 3683 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3684 ;; 3685 esac 3686 else 3687 lt_cv_deplibs_check_method=pass_all 3688 fi 3689 ;; 3690 3691gnu*) 3692 lt_cv_deplibs_check_method=pass_all 3693 ;; 3694 3695hpux10.20* | hpux11*) 3696 lt_cv_file_magic_cmd=/usr/bin/file 3697 case "$host_cpu" in 3698 ia64*) 3699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3700 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3701 ;; 3702 hppa*64*) 3703 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]' 3704 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3705 ;; 3706 *) 3707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3708 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3709 ;; 3710 esac 3711 ;; 3712 3713irix5* | irix6* | nonstopux*) 3714 case $LD in 3715 *-32|*"-32 ") libmagic=32-bit;; 3716 *-n32|*"-n32 ") libmagic=N32;; 3717 *-64|*"-64 ") libmagic=64-bit;; 3718 *) libmagic=never-match;; 3719 esac 3720 lt_cv_deplibs_check_method=pass_all 3721 ;; 3722 3723# This must be Linux ELF. 3724linux*) 3725 lt_cv_deplibs_check_method=pass_all 3726 ;; 3727 3728netbsd*) 3729 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3731 else 3732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3733 fi 3734 ;; 3735 3736newos6*) 3737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3738 lt_cv_file_magic_cmd=/usr/bin/file 3739 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3740 ;; 3741 3742nto-qnx*) 3743 lt_cv_deplibs_check_method=unknown 3744 ;; 3745 3746openbsd*) 3747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3749 else 3750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3751 fi 3752 ;; 3753 3754osf3* | osf4* | osf5*) 3755 lt_cv_deplibs_check_method=pass_all 3756 ;; 3757 3758sco3.2v5*) 3759 lt_cv_deplibs_check_method=pass_all 3760 ;; 3761 3762solaris*) 3763 lt_cv_deplibs_check_method=pass_all 3764 ;; 3765 3766sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3767 case $host_vendor in 3768 motorola) 3769 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]' 3770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3771 ;; 3772 ncr) 3773 lt_cv_deplibs_check_method=pass_all 3774 ;; 3775 sequent) 3776 lt_cv_file_magic_cmd='/bin/file' 3777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3778 ;; 3779 sni) 3780 lt_cv_file_magic_cmd='/bin/file' 3781 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3782 lt_cv_file_magic_test_file=/lib/libc.so 3783 ;; 3784 siemens) 3785 lt_cv_deplibs_check_method=pass_all 3786 ;; 3787 esac 3788 ;; 3789 3790sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3791 lt_cv_deplibs_check_method=pass_all 3792 ;; 3793esac 3794 3795fi 3796echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3797echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3798file_magic_cmd=$lt_cv_file_magic_cmd 3799deplibs_check_method=$lt_cv_deplibs_check_method 3800test -z "$deplibs_check_method" && deplibs_check_method=unknown 3801 3802 3803 3804 3805# If no C compiler was specified, use CC. 3806LTCC=${LTCC-"$CC"} 3807 3808# Allow CC to be a program name with arguments. 3809compiler=$CC 3810 3811# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3812if test "${enable_libtool_lock+set}" = set; then 3813 enableval="$enable_libtool_lock" 3814 3815fi; 3816test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3817 3818# Some flags need to be propagated to the compiler or linker for good 3819# libtool support. 3820case $host in 3821ia64-*-hpux*) 3822 # Find out which ABI we are using. 3823 echo 'int i;' > conftest.$ac_ext 3824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3825 (eval $ac_compile) 2>&5 3826 ac_status=$? 3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3828 (exit $ac_status); }; then 3829 case `/usr/bin/file conftest.$ac_objext` in 3830 *ELF-32*) 3831 HPUX_IA64_MODE="32" 3832 ;; 3833 *ELF-64*) 3834 HPUX_IA64_MODE="64" 3835 ;; 3836 esac 3837 fi 3838 rm -rf conftest* 3839 ;; 3840*-*-irix6*) 3841 # Find out which ABI we are using. 3842 echo '#line 3842 "configure"' > conftest.$ac_ext 3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3844 (eval $ac_compile) 2>&5 3845 ac_status=$? 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); }; then 3848 if test "$lt_cv_prog_gnu_ld" = yes; then 3849 case `/usr/bin/file conftest.$ac_objext` in 3850 *32-bit*) 3851 LD="${LD-ld} -melf32bsmip" 3852 ;; 3853 *N32*) 3854 LD="${LD-ld} -melf32bmipn32" 3855 ;; 3856 *64-bit*) 3857 LD="${LD-ld} -melf64bmip" 3858 ;; 3859 esac 3860 else 3861 case `/usr/bin/file conftest.$ac_objext` in 3862 *32-bit*) 3863 LD="${LD-ld} -32" 3864 ;; 3865 *N32*) 3866 LD="${LD-ld} -n32" 3867 ;; 3868 *64-bit*) 3869 LD="${LD-ld} -64" 3870 ;; 3871 esac 3872 fi 3873 fi 3874 rm -rf conftest* 3875 ;; 3876 3877x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3878 # Find out which ABI we are using. 3879 echo 'int i;' > conftest.$ac_ext 3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3881 (eval $ac_compile) 2>&5 3882 ac_status=$? 3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3884 (exit $ac_status); }; then 3885 case "`/usr/bin/file conftest.o`" in 3886 *32-bit*) 3887 case $host in 3888 x86_64-*linux*) 3889 LD="${LD-ld} -m elf_i386" 3890 ;; 3891 ppc64-*linux*|powerpc64-*linux*) 3892 LD="${LD-ld} -m elf32ppclinux" 3893 ;; 3894 s390x-*linux*) 3895 LD="${LD-ld} -m elf_s390" 3896 ;; 3897 sparc64-*linux*) 3898 LD="${LD-ld} -m elf32_sparc" 3899 ;; 3900 esac 3901 ;; 3902 *64-bit*) 3903 case $host in 3904 x86_64-*linux*) 3905 LD="${LD-ld} -m elf_x86_64" 3906 ;; 3907 ppc*-*linux*|powerpc*-*linux*) 3908 LD="${LD-ld} -m elf64ppc" 3909 ;; 3910 s390*-*linux*) 3911 LD="${LD-ld} -m elf64_s390" 3912 ;; 3913 sparc*-*linux*) 3914 LD="${LD-ld} -m elf64_sparc" 3915 ;; 3916 esac 3917 ;; 3918 esac 3919 fi 3920 rm -rf conftest* 3921 ;; 3922 3923*-*-sco3.2v5*) 3924 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3925 SAVE_CFLAGS="$CFLAGS" 3926 CFLAGS="$CFLAGS -belf" 3927 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3928echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3929if test "${lt_cv_cc_needs_belf+set}" = set; then 3930 echo $ECHO_N "(cached) $ECHO_C" >&6 3931else 3932 ac_ext=c 3933ac_cpp='$CPP $CPPFLAGS' 3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3936ac_compiler_gnu=$ac_cv_c_compiler_gnu 3937 3938 cat >conftest.$ac_ext <<_ACEOF 3939/* confdefs.h. */ 3940_ACEOF 3941cat confdefs.h >>conftest.$ac_ext 3942cat >>conftest.$ac_ext <<_ACEOF 3943/* end confdefs.h. */ 3944 3945int 3946main () 3947{ 3948 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953rm -f conftest.$ac_objext conftest$ac_exeext 3954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3955 (eval $ac_link) 2>conftest.er1 3956 ac_status=$? 3957 grep -v '^ *+' conftest.er1 >conftest.err 3958 rm -f conftest.er1 3959 cat conftest.err >&5 3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3961 (exit $ac_status); } && 3962 { ac_try='test -z "$ac_c_werror_flag" 3963 || 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_exeext' 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 lt_cv_cc_needs_belf=yes 3976else 3977 echo "$as_me: failed program was:" >&5 3978sed 's/^/| /' conftest.$ac_ext >&5 3979 3980lt_cv_cc_needs_belf=no 3981fi 3982rm -f conftest.err conftest.$ac_objext \ 3983 conftest$ac_exeext conftest.$ac_ext 3984 ac_ext=c 3985ac_cpp='$CPP $CPPFLAGS' 3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3988ac_compiler_gnu=$ac_cv_c_compiler_gnu 3989 3990fi 3991echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3992echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3993 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3995 CFLAGS="$SAVE_CFLAGS" 3996 fi 3997 ;; 3998 3999esac 4000 4001need_locks="$enable_libtool_lock" 4002 4003 4004ac_ext=c 4005ac_cpp='$CPP $CPPFLAGS' 4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4008ac_compiler_gnu=$ac_cv_c_compiler_gnu 4009echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4010echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4011# On Suns, sometimes $CPP names a directory. 4012if test -n "$CPP" && test -d "$CPP"; then 4013 CPP= 4014fi 4015if test -z "$CPP"; then 4016 if test "${ac_cv_prog_CPP+set}" = set; then 4017 echo $ECHO_N "(cached) $ECHO_C" >&6 4018else 4019 # Double quotes because CPP needs to be expanded 4020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4021 do 4022 ac_preproc_ok=false 4023for ac_c_preproc_warn_flag in '' yes 4024do 4025 # Use a header file that comes with gcc, so configuring glibc 4026 # with a fresh cross-compiler works. 4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4028 # <limits.h> exists even on freestanding compilers. 4029 # On the NeXT, cc -E runs the code through the compiler's parser, 4030 # not just through cpp. "Syntax error" is here to catch this case. 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#ifdef __STDC__ 4038# include <limits.h> 4039#else 4040# include <assert.h> 4041#endif 4042 Syntax error 4043_ACEOF 4044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4046 ac_status=$? 4047 grep -v '^ *+' conftest.er1 >conftest.err 4048 rm -f conftest.er1 4049 cat conftest.err >&5 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 (exit $ac_status); } >/dev/null; then 4052 if test -s conftest.err; then 4053 ac_cpp_err=$ac_c_preproc_warn_flag 4054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4055 else 4056 ac_cpp_err= 4057 fi 4058else 4059 ac_cpp_err=yes 4060fi 4061if test -z "$ac_cpp_err"; then 4062 : 4063else 4064 echo "$as_me: failed program was:" >&5 4065sed 's/^/| /' conftest.$ac_ext >&5 4066 4067 # Broken: fails on valid input. 4068continue 4069fi 4070rm -f conftest.err conftest.$ac_ext 4071 4072 # OK, works on sane cases. Now check whether non-existent headers 4073 # can be detected and how. 4074 cat >conftest.$ac_ext <<_ACEOF 4075/* confdefs.h. */ 4076_ACEOF 4077cat confdefs.h >>conftest.$ac_ext 4078cat >>conftest.$ac_ext <<_ACEOF 4079/* end confdefs.h. */ 4080#include <ac_nonexistent.h> 4081_ACEOF 4082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4084 ac_status=$? 4085 grep -v '^ *+' conftest.er1 >conftest.err 4086 rm -f conftest.er1 4087 cat conftest.err >&5 4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4089 (exit $ac_status); } >/dev/null; then 4090 if test -s conftest.err; then 4091 ac_cpp_err=$ac_c_preproc_warn_flag 4092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4093 else 4094 ac_cpp_err= 4095 fi 4096else 4097 ac_cpp_err=yes 4098fi 4099if test -z "$ac_cpp_err"; then 4100 # Broken: success on invalid input. 4101continue 4102else 4103 echo "$as_me: failed program was:" >&5 4104sed 's/^/| /' conftest.$ac_ext >&5 4105 4106 # Passes both tests. 4107ac_preproc_ok=: 4108break 4109fi 4110rm -f conftest.err conftest.$ac_ext 4111 4112done 4113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4114rm -f conftest.err conftest.$ac_ext 4115if $ac_preproc_ok; then 4116 break 4117fi 4118 4119 done 4120 ac_cv_prog_CPP=$CPP 4121 4122fi 4123 CPP=$ac_cv_prog_CPP 4124else 4125 ac_cv_prog_CPP=$CPP 4126fi 4127echo "$as_me:$LINENO: result: $CPP" >&5 4128echo "${ECHO_T}$CPP" >&6 4129ac_preproc_ok=false 4130for ac_c_preproc_warn_flag in '' yes 4131do 4132 # Use a header file that comes with gcc, so configuring glibc 4133 # with a fresh cross-compiler works. 4134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4135 # <limits.h> exists even on freestanding compilers. 4136 # On the NeXT, cc -E runs the code through the compiler's parser, 4137 # not just through cpp. "Syntax error" is here to catch this case. 4138 cat >conftest.$ac_ext <<_ACEOF 4139/* confdefs.h. */ 4140_ACEOF 4141cat confdefs.h >>conftest.$ac_ext 4142cat >>conftest.$ac_ext <<_ACEOF 4143/* end confdefs.h. */ 4144#ifdef __STDC__ 4145# include <limits.h> 4146#else 4147# include <assert.h> 4148#endif 4149 Syntax error 4150_ACEOF 4151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4153 ac_status=$? 4154 grep -v '^ *+' conftest.er1 >conftest.err 4155 rm -f conftest.er1 4156 cat conftest.err >&5 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); } >/dev/null; then 4159 if test -s conftest.err; then 4160 ac_cpp_err=$ac_c_preproc_warn_flag 4161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4162 else 4163 ac_cpp_err= 4164 fi 4165else 4166 ac_cpp_err=yes 4167fi 4168if test -z "$ac_cpp_err"; then 4169 : 4170else 4171 echo "$as_me: failed program was:" >&5 4172sed 's/^/| /' conftest.$ac_ext >&5 4173 4174 # Broken: fails on valid input. 4175continue 4176fi 4177rm -f conftest.err conftest.$ac_ext 4178 4179 # OK, works on sane cases. Now check whether non-existent headers 4180 # can be detected and how. 4181 cat >conftest.$ac_ext <<_ACEOF 4182/* confdefs.h. */ 4183_ACEOF 4184cat confdefs.h >>conftest.$ac_ext 4185cat >>conftest.$ac_ext <<_ACEOF 4186/* end confdefs.h. */ 4187#include <ac_nonexistent.h> 4188_ACEOF 4189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4191 ac_status=$? 4192 grep -v '^ *+' conftest.er1 >conftest.err 4193 rm -f conftest.er1 4194 cat conftest.err >&5 4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4196 (exit $ac_status); } >/dev/null; then 4197 if test -s conftest.err; then 4198 ac_cpp_err=$ac_c_preproc_warn_flag 4199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4200 else 4201 ac_cpp_err= 4202 fi 4203else 4204 ac_cpp_err=yes 4205fi 4206if test -z "$ac_cpp_err"; then 4207 # Broken: success on invalid input. 4208continue 4209else 4210 echo "$as_me: failed program was:" >&5 4211sed 's/^/| /' conftest.$ac_ext >&5 4212 4213 # Passes both tests. 4214ac_preproc_ok=: 4215break 4216fi 4217rm -f conftest.err conftest.$ac_ext 4218 4219done 4220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4221rm -f conftest.err conftest.$ac_ext 4222if $ac_preproc_ok; then 4223 : 4224else 4225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4226See \`config.log' for more details." >&5 4227echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4228See \`config.log' for more details." >&2;} 4229 { (exit 1); exit 1; }; } 4230fi 4231 4232ac_ext=c 4233ac_cpp='$CPP $CPPFLAGS' 4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4236ac_compiler_gnu=$ac_cv_c_compiler_gnu 4237 4238 4239echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4240echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4241if test "${ac_cv_header_stdc+set}" = set; then 4242 echo $ECHO_N "(cached) $ECHO_C" >&6 4243else 4244 cat >conftest.$ac_ext <<_ACEOF 4245/* confdefs.h. */ 4246_ACEOF 4247cat confdefs.h >>conftest.$ac_ext 4248cat >>conftest.$ac_ext <<_ACEOF 4249/* end confdefs.h. */ 4250#include <stdlib.h> 4251#include <stdarg.h> 4252#include <string.h> 4253#include <float.h> 4254 4255int 4256main () 4257{ 4258 4259 ; 4260 return 0; 4261} 4262_ACEOF 4263rm -f conftest.$ac_objext 4264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4265 (eval $ac_compile) 2>conftest.er1 4266 ac_status=$? 4267 grep -v '^ *+' conftest.er1 >conftest.err 4268 rm -f conftest.er1 4269 cat conftest.err >&5 4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4271 (exit $ac_status); } && 4272 { ac_try='test -z "$ac_c_werror_flag" 4273 || test ! -s conftest.err' 4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4275 (eval $ac_try) 2>&5 4276 ac_status=$? 4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4278 (exit $ac_status); }; } && 4279 { ac_try='test -s conftest.$ac_objext' 4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4281 (eval $ac_try) 2>&5 4282 ac_status=$? 4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4284 (exit $ac_status); }; }; then 4285 ac_cv_header_stdc=yes 4286else 4287 echo "$as_me: failed program was:" >&5 4288sed 's/^/| /' conftest.$ac_ext >&5 4289 4290ac_cv_header_stdc=no 4291fi 4292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4293 4294if test $ac_cv_header_stdc = yes; then 4295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4296 cat >conftest.$ac_ext <<_ACEOF 4297/* confdefs.h. */ 4298_ACEOF 4299cat confdefs.h >>conftest.$ac_ext 4300cat >>conftest.$ac_ext <<_ACEOF 4301/* end confdefs.h. */ 4302#include <string.h> 4303 4304_ACEOF 4305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4306 $EGREP "memchr" >/dev/null 2>&1; then 4307 : 4308else 4309 ac_cv_header_stdc=no 4310fi 4311rm -f conftest* 4312 4313fi 4314 4315if test $ac_cv_header_stdc = yes; then 4316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4317 cat >conftest.$ac_ext <<_ACEOF 4318/* confdefs.h. */ 4319_ACEOF 4320cat confdefs.h >>conftest.$ac_ext 4321cat >>conftest.$ac_ext <<_ACEOF 4322/* end confdefs.h. */ 4323#include <stdlib.h> 4324 4325_ACEOF 4326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4327 $EGREP "free" >/dev/null 2>&1; then 4328 : 4329else 4330 ac_cv_header_stdc=no 4331fi 4332rm -f conftest* 4333 4334fi 4335 4336if test $ac_cv_header_stdc = yes; then 4337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4338 if test "$cross_compiling" = yes; then 4339 : 4340else 4341 cat >conftest.$ac_ext <<_ACEOF 4342/* confdefs.h. */ 4343_ACEOF 4344cat confdefs.h >>conftest.$ac_ext 4345cat >>conftest.$ac_ext <<_ACEOF 4346/* end confdefs.h. */ 4347#include <ctype.h> 4348#if ((' ' & 0x0FF) == 0x020) 4349# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4350# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4351#else 4352# define ISLOWER(c) \ 4353 (('a' <= (c) && (c) <= 'i') \ 4354 || ('j' <= (c) && (c) <= 'r') \ 4355 || ('s' <= (c) && (c) <= 'z')) 4356# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4357#endif 4358 4359#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4360int 4361main () 4362{ 4363 int i; 4364 for (i = 0; i < 256; i++) 4365 if (XOR (islower (i), ISLOWER (i)) 4366 || toupper (i) != TOUPPER (i)) 4367 exit(2); 4368 exit (0); 4369} 4370_ACEOF 4371rm -f conftest$ac_exeext 4372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4373 (eval $ac_link) 2>&5 4374 ac_status=$? 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4378 (eval $ac_try) 2>&5 4379 ac_status=$? 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); }; }; then 4382 : 4383else 4384 echo "$as_me: program exited with status $ac_status" >&5 4385echo "$as_me: failed program was:" >&5 4386sed 's/^/| /' conftest.$ac_ext >&5 4387 4388( exit $ac_status ) 4389ac_cv_header_stdc=no 4390fi 4391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4392fi 4393fi 4394fi 4395echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4396echo "${ECHO_T}$ac_cv_header_stdc" >&6 4397if test $ac_cv_header_stdc = yes; then 4398 4399cat >>confdefs.h <<\_ACEOF 4400#define STDC_HEADERS 1 4401_ACEOF 4402 4403fi 4404 4405# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4416 inttypes.h stdint.h unistd.h 4417do 4418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4419echo "$as_me:$LINENO: checking for $ac_header" >&5 4420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4421if eval "test \"\${$as_ac_Header+set}\" = set"; then 4422 echo $ECHO_N "(cached) $ECHO_C" >&6 4423else 4424 cat >conftest.$ac_ext <<_ACEOF 4425/* confdefs.h. */ 4426_ACEOF 4427cat confdefs.h >>conftest.$ac_ext 4428cat >>conftest.$ac_ext <<_ACEOF 4429/* end confdefs.h. */ 4430$ac_includes_default 4431 4432#include <$ac_header> 4433_ACEOF 4434rm -f conftest.$ac_objext 4435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4436 (eval $ac_compile) 2>conftest.er1 4437 ac_status=$? 4438 grep -v '^ *+' conftest.er1 >conftest.err 4439 rm -f conftest.er1 4440 cat conftest.err >&5 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); } && 4443 { ac_try='test -z "$ac_c_werror_flag" 4444 || test ! -s conftest.err' 4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4446 (eval $ac_try) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; } && 4450 { ac_try='test -s conftest.$ac_objext' 4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4452 (eval $ac_try) 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); }; }; then 4456 eval "$as_ac_Header=yes" 4457else 4458 echo "$as_me: failed program was:" >&5 4459sed 's/^/| /' conftest.$ac_ext >&5 4460 4461eval "$as_ac_Header=no" 4462fi 4463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4464fi 4465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4467if test `eval echo '${'$as_ac_Header'}'` = yes; then 4468 cat >>confdefs.h <<_ACEOF 4469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4470_ACEOF 4471 4472fi 4473 4474done 4475 4476 4477 4478for ac_header in dlfcn.h 4479do 4480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4481if eval "test \"\${$as_ac_Header+set}\" = set"; then 4482 echo "$as_me:$LINENO: checking for $ac_header" >&5 4483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4484if eval "test \"\${$as_ac_Header+set}\" = set"; then 4485 echo $ECHO_N "(cached) $ECHO_C" >&6 4486fi 4487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4489else 4490 # Is the header compilable? 4491echo "$as_me:$LINENO: checking $ac_header usability" >&5 4492echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4493cat >conftest.$ac_ext <<_ACEOF 4494/* confdefs.h. */ 4495_ACEOF 4496cat confdefs.h >>conftest.$ac_ext 4497cat >>conftest.$ac_ext <<_ACEOF 4498/* end confdefs.h. */ 4499$ac_includes_default 4500#include <$ac_header> 4501_ACEOF 4502rm -f conftest.$ac_objext 4503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4504 (eval $ac_compile) 2>conftest.er1 4505 ac_status=$? 4506 grep -v '^ *+' conftest.er1 >conftest.err 4507 rm -f conftest.er1 4508 cat conftest.err >&5 4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4510 (exit $ac_status); } && 4511 { ac_try='test -z "$ac_c_werror_flag" 4512 || test ! -s conftest.err' 4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4514 (eval $ac_try) 2>&5 4515 ac_status=$? 4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4517 (exit $ac_status); }; } && 4518 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 4524 ac_header_compiler=yes 4525else 4526 echo "$as_me: failed program was:" >&5 4527sed 's/^/| /' conftest.$ac_ext >&5 4528 4529ac_header_compiler=no 4530fi 4531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4532echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4533echo "${ECHO_T}$ac_header_compiler" >&6 4534 4535# Is the header present? 4536echo "$as_me:$LINENO: checking $ac_header presence" >&5 4537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4538cat >conftest.$ac_ext <<_ACEOF 4539/* confdefs.h. */ 4540_ACEOF 4541cat confdefs.h >>conftest.$ac_ext 4542cat >>conftest.$ac_ext <<_ACEOF 4543/* end confdefs.h. */ 4544#include <$ac_header> 4545_ACEOF 4546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4548 ac_status=$? 4549 grep -v '^ *+' conftest.er1 >conftest.err 4550 rm -f conftest.er1 4551 cat conftest.err >&5 4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4553 (exit $ac_status); } >/dev/null; then 4554 if test -s conftest.err; then 4555 ac_cpp_err=$ac_c_preproc_warn_flag 4556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4557 else 4558 ac_cpp_err= 4559 fi 4560else 4561 ac_cpp_err=yes 4562fi 4563if test -z "$ac_cpp_err"; then 4564 ac_header_preproc=yes 4565else 4566 echo "$as_me: failed program was:" >&5 4567sed 's/^/| /' conftest.$ac_ext >&5 4568 4569 ac_header_preproc=no 4570fi 4571rm -f conftest.err conftest.$ac_ext 4572echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4573echo "${ECHO_T}$ac_header_preproc" >&6 4574 4575# So? What about this header? 4576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4577 yes:no: ) 4578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4579echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4581echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4582 ac_header_preproc=yes 4583 ;; 4584 no:yes:* ) 4585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4586echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4588echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4590echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4592echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4594echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4596echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4597 ( 4598 cat <<\_ASBOX 4599## ------------------------------------------ ## 4600## Report this to the AC_PACKAGE_NAME lists. ## 4601## ------------------------------------------ ## 4602_ASBOX 4603 ) | 4604 sed "s/^/$as_me: WARNING: /" >&2 4605 ;; 4606esac 4607echo "$as_me:$LINENO: checking for $ac_header" >&5 4608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4609if eval "test \"\${$as_ac_Header+set}\" = set"; then 4610 echo $ECHO_N "(cached) $ECHO_C" >&6 4611else 4612 eval "$as_ac_Header=\$ac_header_preproc" 4613fi 4614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4616 4617fi 4618if test `eval echo '${'$as_ac_Header'}'` = yes; then 4619 cat >>confdefs.h <<_ACEOF 4620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4621_ACEOF 4622 4623fi 4624 4625done 4626 4627ac_ext=cc 4628ac_cpp='$CXXCPP $CPPFLAGS' 4629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4632if test -n "$ac_tool_prefix"; then 4633 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4634 do 4635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4636set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4637echo "$as_me:$LINENO: checking for $ac_word" >&5 4638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4639if test "${ac_cv_prog_CXX+set}" = set; then 4640 echo $ECHO_N "(cached) $ECHO_C" >&6 4641else 4642 if test -n "$CXX"; then 4643 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4644else 4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4646for as_dir in $PATH 4647do 4648 IFS=$as_save_IFS 4649 test -z "$as_dir" && as_dir=. 4650 for ac_exec_ext in '' $ac_executable_extensions; do 4651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4652 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4654 break 2 4655 fi 4656done 4657done 4658 4659fi 4660fi 4661CXX=$ac_cv_prog_CXX 4662if test -n "$CXX"; then 4663 echo "$as_me:$LINENO: result: $CXX" >&5 4664echo "${ECHO_T}$CXX" >&6 4665else 4666 echo "$as_me:$LINENO: result: no" >&5 4667echo "${ECHO_T}no" >&6 4668fi 4669 4670 test -n "$CXX" && break 4671 done 4672fi 4673if test -z "$CXX"; then 4674 ac_ct_CXX=$CXX 4675 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4676do 4677 # Extract the first word of "$ac_prog", so it can be a program name with args. 4678set dummy $ac_prog; ac_word=$2 4679echo "$as_me:$LINENO: checking for $ac_word" >&5 4680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4681if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4682 echo $ECHO_N "(cached) $ECHO_C" >&6 4683else 4684 if test -n "$ac_ct_CXX"; then 4685 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4686else 4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4688for as_dir in $PATH 4689do 4690 IFS=$as_save_IFS 4691 test -z "$as_dir" && as_dir=. 4692 for ac_exec_ext in '' $ac_executable_extensions; do 4693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4694 ac_cv_prog_ac_ct_CXX="$ac_prog" 4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4696 break 2 4697 fi 4698done 4699done 4700 4701fi 4702fi 4703ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4704if test -n "$ac_ct_CXX"; then 4705 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4706echo "${ECHO_T}$ac_ct_CXX" >&6 4707else 4708 echo "$as_me:$LINENO: result: no" >&5 4709echo "${ECHO_T}no" >&6 4710fi 4711 4712 test -n "$ac_ct_CXX" && break 4713done 4714test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4715 4716 CXX=$ac_ct_CXX 4717fi 4718 4719 4720# Provide some information about the compiler. 4721echo "$as_me:$LINENO:" \ 4722 "checking for C++ compiler version" >&5 4723ac_compiler=`set X $ac_compile; echo $2` 4724{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4725 (eval $ac_compiler --version </dev/null >&5) 2>&5 4726 ac_status=$? 4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4728 (exit $ac_status); } 4729{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4730 (eval $ac_compiler -v </dev/null >&5) 2>&5 4731 ac_status=$? 4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4733 (exit $ac_status); } 4734{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4735 (eval $ac_compiler -V </dev/null >&5) 2>&5 4736 ac_status=$? 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4738 (exit $ac_status); } 4739 4740echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4741echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4742if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4743 echo $ECHO_N "(cached) $ECHO_C" >&6 4744else 4745 cat >conftest.$ac_ext <<_ACEOF 4746/* confdefs.h. */ 4747_ACEOF 4748cat confdefs.h >>conftest.$ac_ext 4749cat >>conftest.$ac_ext <<_ACEOF 4750/* end confdefs.h. */ 4751 4752int 4753main () 4754{ 4755#ifndef __GNUC__ 4756 choke me 4757#endif 4758 4759 ; 4760 return 0; 4761} 4762_ACEOF 4763rm -f conftest.$ac_objext 4764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4765 (eval $ac_compile) 2>conftest.er1 4766 ac_status=$? 4767 grep -v '^ *+' conftest.er1 >conftest.err 4768 rm -f conftest.er1 4769 cat conftest.err >&5 4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4771 (exit $ac_status); } && 4772 { ac_try='test -z "$ac_cxx_werror_flag" 4773 || test ! -s conftest.err' 4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4775 (eval $ac_try) 2>&5 4776 ac_status=$? 4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4778 (exit $ac_status); }; } && 4779 { ac_try='test -s conftest.$ac_objext' 4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4781 (eval $ac_try) 2>&5 4782 ac_status=$? 4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4784 (exit $ac_status); }; }; then 4785 ac_compiler_gnu=yes 4786else 4787 echo "$as_me: failed program was:" >&5 4788sed 's/^/| /' conftest.$ac_ext >&5 4789 4790ac_compiler_gnu=no 4791fi 4792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4793ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4794 4795fi 4796echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4797echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4798GXX=`test $ac_compiler_gnu = yes && echo yes` 4799ac_test_CXXFLAGS=${CXXFLAGS+set} 4800ac_save_CXXFLAGS=$CXXFLAGS 4801CXXFLAGS="-g" 4802echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4803echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4804if test "${ac_cv_prog_cxx_g+set}" = set; then 4805 echo $ECHO_N "(cached) $ECHO_C" >&6 4806else 4807 cat >conftest.$ac_ext <<_ACEOF 4808/* confdefs.h. */ 4809_ACEOF 4810cat confdefs.h >>conftest.$ac_ext 4811cat >>conftest.$ac_ext <<_ACEOF 4812/* end confdefs.h. */ 4813 4814int 4815main () 4816{ 4817 4818 ; 4819 return 0; 4820} 4821_ACEOF 4822rm -f conftest.$ac_objext 4823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4824 (eval $ac_compile) 2>conftest.er1 4825 ac_status=$? 4826 grep -v '^ *+' conftest.er1 >conftest.err 4827 rm -f conftest.er1 4828 cat conftest.err >&5 4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830 (exit $ac_status); } && 4831 { ac_try='test -z "$ac_cxx_werror_flag" 4832 || test ! -s conftest.err' 4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4834 (eval $ac_try) 2>&5 4835 ac_status=$? 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4837 (exit $ac_status); }; } && 4838 { ac_try='test -s conftest.$ac_objext' 4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4840 (eval $ac_try) 2>&5 4841 ac_status=$? 4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4843 (exit $ac_status); }; }; then 4844 ac_cv_prog_cxx_g=yes 4845else 4846 echo "$as_me: failed program was:" >&5 4847sed 's/^/| /' conftest.$ac_ext >&5 4848 4849ac_cv_prog_cxx_g=no 4850fi 4851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4852fi 4853echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4854echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4855if test "$ac_test_CXXFLAGS" = set; then 4856 CXXFLAGS=$ac_save_CXXFLAGS 4857elif test $ac_cv_prog_cxx_g = yes; then 4858 if test "$GXX" = yes; then 4859 CXXFLAGS="-g -O2" 4860 else 4861 CXXFLAGS="-g" 4862 fi 4863else 4864 if test "$GXX" = yes; then 4865 CXXFLAGS="-O2" 4866 else 4867 CXXFLAGS= 4868 fi 4869fi 4870for ac_declaration in \ 4871 '' \ 4872 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4873 'extern "C" void std::exit (int); using std::exit;' \ 4874 'extern "C" void exit (int) throw ();' \ 4875 'extern "C" void exit (int);' \ 4876 'void exit (int);' 4877do 4878 cat >conftest.$ac_ext <<_ACEOF 4879/* confdefs.h. */ 4880_ACEOF 4881cat confdefs.h >>conftest.$ac_ext 4882cat >>conftest.$ac_ext <<_ACEOF 4883/* end confdefs.h. */ 4884$ac_declaration 4885#include <stdlib.h> 4886int 4887main () 4888{ 4889exit (42); 4890 ; 4891 return 0; 4892} 4893_ACEOF 4894rm -f conftest.$ac_objext 4895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4896 (eval $ac_compile) 2>conftest.er1 4897 ac_status=$? 4898 grep -v '^ *+' conftest.er1 >conftest.err 4899 rm -f conftest.er1 4900 cat conftest.err >&5 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); } && 4903 { ac_try='test -z "$ac_cxx_werror_flag" 4904 || test ! -s conftest.err' 4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4906 (eval $ac_try) 2>&5 4907 ac_status=$? 4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4909 (exit $ac_status); }; } && 4910 { ac_try='test -s conftest.$ac_objext' 4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4912 (eval $ac_try) 2>&5 4913 ac_status=$? 4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4915 (exit $ac_status); }; }; then 4916 : 4917else 4918 echo "$as_me: failed program was:" >&5 4919sed 's/^/| /' conftest.$ac_ext >&5 4920 4921continue 4922fi 4923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4924 cat >conftest.$ac_ext <<_ACEOF 4925/* confdefs.h. */ 4926_ACEOF 4927cat confdefs.h >>conftest.$ac_ext 4928cat >>conftest.$ac_ext <<_ACEOF 4929/* end confdefs.h. */ 4930$ac_declaration 4931int 4932main () 4933{ 4934exit (42); 4935 ; 4936 return 0; 4937} 4938_ACEOF 4939rm -f conftest.$ac_objext 4940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4941 (eval $ac_compile) 2>conftest.er1 4942 ac_status=$? 4943 grep -v '^ *+' conftest.er1 >conftest.err 4944 rm -f conftest.er1 4945 cat conftest.err >&5 4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947 (exit $ac_status); } && 4948 { ac_try='test -z "$ac_cxx_werror_flag" 4949 || test ! -s conftest.err' 4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4951 (eval $ac_try) 2>&5 4952 ac_status=$? 4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4954 (exit $ac_status); }; } && 4955 { ac_try='test -s conftest.$ac_objext' 4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4957 (eval $ac_try) 2>&5 4958 ac_status=$? 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4960 (exit $ac_status); }; }; then 4961 break 4962else 4963 echo "$as_me: failed program was:" >&5 4964sed 's/^/| /' conftest.$ac_ext >&5 4965 4966fi 4967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4968done 4969rm -f conftest* 4970if test -n "$ac_declaration"; then 4971 echo '#ifdef __cplusplus' >>confdefs.h 4972 echo $ac_declaration >>confdefs.h 4973 echo '#endif' >>confdefs.h 4974fi 4975 4976ac_ext=cc 4977ac_cpp='$CXXCPP $CPPFLAGS' 4978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4981 4982depcc="$CXX" am_compiler_list= 4983 4984echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4985echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4986if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4987 echo $ECHO_N "(cached) $ECHO_C" >&6 4988else 4989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4990 # We make a subdir and do the tests there. Otherwise we can end up 4991 # making bogus files that we don't know about and never remove. For 4992 # instance it was reported that on HP-UX the gcc test will end up 4993 # making a dummy file named `D' -- because `-MD' means `put the output 4994 # in D'. 4995 mkdir conftest.dir 4996 # Copy depcomp to subdir because otherwise we won't find it if we're 4997 # using a relative directory. 4998 cp "$am_depcomp" conftest.dir 4999 cd conftest.dir 5000 # We will build objects and dependencies in a subdirectory because 5001 # it helps to detect inapplicable dependency modes. For instance 5002 # both Tru64's cc and ICC support -MD to output dependencies as a 5003 # side effect of compilation, but ICC will put the dependencies in 5004 # the current directory while Tru64 will put them in the object 5005 # directory. 5006 mkdir sub 5007 5008 am_cv_CXX_dependencies_compiler_type=none 5009 if test "$am_compiler_list" = ""; then 5010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5011 fi 5012 for depmode in $am_compiler_list; do 5013 # Setup a source with many dependencies, because some compilers 5014 # like to wrap large dependency lists on column 80 (with \), and 5015 # we should not choose a depcomp mode which is confused by this. 5016 # 5017 # We need to recreate these files for each test, as the compiler may 5018 # overwrite some of them when testing with obscure command lines. 5019 # This happens at least with the AIX C compiler. 5020 : > sub/conftest.c 5021 for i in 1 2 3 4 5 6; do 5022 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5024 # Solaris 8's {/usr,}/bin/sh. 5025 touch sub/conftst$i.h 5026 done 5027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5028 5029 case $depmode in 5030 nosideeffect) 5031 # after this tag, mechanisms are not by side-effect, so they'll 5032 # only be used when explicitly requested 5033 if test "x$enable_dependency_tracking" = xyes; then 5034 continue 5035 else 5036 break 5037 fi 5038 ;; 5039 none) break ;; 5040 esac 5041 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5042 # mode. It turns out that the SunPro C++ compiler does not properly 5043 # handle `-M -o', and we need to detect this. 5044 if depmode=$depmode \ 5045 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5047 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5048 >/dev/null 2>conftest.err && 5049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5050 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5052 # icc doesn't choke on unknown options, it will just issue warnings 5053 # or remarks (even with -Werror). So we grep stderr for any message 5054 # that says an option was ignored or not supported. 5055 # When given -MP, icc 7.0 and 7.1 complain thusly: 5056 # icc: Command line warning: ignoring option '-M'; no argument required 5057 # The diagnosis changed in icc 8.0: 5058 # icc: Command line remark: option '-MP' not supported 5059 if (grep 'ignoring option' conftest.err || 5060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5061 am_cv_CXX_dependencies_compiler_type=$depmode 5062 break 5063 fi 5064 fi 5065 done 5066 5067 cd .. 5068 rm -rf conftest.dir 5069else 5070 am_cv_CXX_dependencies_compiler_type=none 5071fi 5072 5073fi 5074echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5075echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5076CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5077 5078 5079 5080if 5081 test "x$enable_dependency_tracking" != xno \ 5082 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5083 am__fastdepCXX_TRUE= 5084 am__fastdepCXX_FALSE='#' 5085else 5086 am__fastdepCXX_TRUE='#' 5087 am__fastdepCXX_FALSE= 5088fi 5089 5090 5091 5092 5093if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5094 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5095 (test "X$CXX" != "Xg++"))) ; then 5096 ac_ext=cc 5097ac_cpp='$CXXCPP $CPPFLAGS' 5098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5101echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5102echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5103if test -z "$CXXCPP"; then 5104 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5105 echo $ECHO_N "(cached) $ECHO_C" >&6 5106else 5107 # Double quotes because CXXCPP needs to be expanded 5108 for CXXCPP in "$CXX -E" "/lib/cpp" 5109 do 5110 ac_preproc_ok=false 5111for ac_cxx_preproc_warn_flag in '' yes 5112do 5113 # Use a header file that comes with gcc, so configuring glibc 5114 # with a fresh cross-compiler works. 5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5116 # <limits.h> exists even on freestanding compilers. 5117 # On the NeXT, cc -E runs the code through the compiler's parser, 5118 # not just through cpp. "Syntax error" is here to catch this case. 5119 cat >conftest.$ac_ext <<_ACEOF 5120/* confdefs.h. */ 5121_ACEOF 5122cat confdefs.h >>conftest.$ac_ext 5123cat >>conftest.$ac_ext <<_ACEOF 5124/* end confdefs.h. */ 5125#ifdef __STDC__ 5126# include <limits.h> 5127#else 5128# include <assert.h> 5129#endif 5130 Syntax error 5131_ACEOF 5132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5134 ac_status=$? 5135 grep -v '^ *+' conftest.er1 >conftest.err 5136 rm -f conftest.er1 5137 cat conftest.err >&5 5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5139 (exit $ac_status); } >/dev/null; then 5140 if test -s conftest.err; then 5141 ac_cpp_err=$ac_cxx_preproc_warn_flag 5142 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5143 else 5144 ac_cpp_err= 5145 fi 5146else 5147 ac_cpp_err=yes 5148fi 5149if test -z "$ac_cpp_err"; then 5150 : 5151else 5152 echo "$as_me: failed program was:" >&5 5153sed 's/^/| /' conftest.$ac_ext >&5 5154 5155 # Broken: fails on valid input. 5156continue 5157fi 5158rm -f conftest.err conftest.$ac_ext 5159 5160 # OK, works on sane cases. Now check whether non-existent headers 5161 # can be detected and how. 5162 cat >conftest.$ac_ext <<_ACEOF 5163/* confdefs.h. */ 5164_ACEOF 5165cat confdefs.h >>conftest.$ac_ext 5166cat >>conftest.$ac_ext <<_ACEOF 5167/* end confdefs.h. */ 5168#include <ac_nonexistent.h> 5169_ACEOF 5170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5172 ac_status=$? 5173 grep -v '^ *+' conftest.er1 >conftest.err 5174 rm -f conftest.er1 5175 cat conftest.err >&5 5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 (exit $ac_status); } >/dev/null; then 5178 if test -s conftest.err; then 5179 ac_cpp_err=$ac_cxx_preproc_warn_flag 5180 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5181 else 5182 ac_cpp_err= 5183 fi 5184else 5185 ac_cpp_err=yes 5186fi 5187if test -z "$ac_cpp_err"; then 5188 # Broken: success on invalid input. 5189continue 5190else 5191 echo "$as_me: failed program was:" >&5 5192sed 's/^/| /' conftest.$ac_ext >&5 5193 5194 # Passes both tests. 5195ac_preproc_ok=: 5196break 5197fi 5198rm -f conftest.err conftest.$ac_ext 5199 5200done 5201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5202rm -f conftest.err conftest.$ac_ext 5203if $ac_preproc_ok; then 5204 break 5205fi 5206 5207 done 5208 ac_cv_prog_CXXCPP=$CXXCPP 5209 5210fi 5211 CXXCPP=$ac_cv_prog_CXXCPP 5212else 5213 ac_cv_prog_CXXCPP=$CXXCPP 5214fi 5215echo "$as_me:$LINENO: result: $CXXCPP" >&5 5216echo "${ECHO_T}$CXXCPP" >&6 5217ac_preproc_ok=false 5218for ac_cxx_preproc_warn_flag in '' yes 5219do 5220 # Use a header file that comes with gcc, so configuring glibc 5221 # with a fresh cross-compiler works. 5222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5223 # <limits.h> exists even on freestanding compilers. 5224 # On the NeXT, cc -E runs the code through the compiler's parser, 5225 # not just through cpp. "Syntax error" is here to catch this case. 5226 cat >conftest.$ac_ext <<_ACEOF 5227/* confdefs.h. */ 5228_ACEOF 5229cat confdefs.h >>conftest.$ac_ext 5230cat >>conftest.$ac_ext <<_ACEOF 5231/* end confdefs.h. */ 5232#ifdef __STDC__ 5233# include <limits.h> 5234#else 5235# include <assert.h> 5236#endif 5237 Syntax error 5238_ACEOF 5239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5241 ac_status=$? 5242 grep -v '^ *+' conftest.er1 >conftest.err 5243 rm -f conftest.er1 5244 cat conftest.err >&5 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); } >/dev/null; then 5247 if test -s conftest.err; then 5248 ac_cpp_err=$ac_cxx_preproc_warn_flag 5249 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5250 else 5251 ac_cpp_err= 5252 fi 5253else 5254 ac_cpp_err=yes 5255fi 5256if test -z "$ac_cpp_err"; then 5257 : 5258else 5259 echo "$as_me: failed program was:" >&5 5260sed 's/^/| /' conftest.$ac_ext >&5 5261 5262 # Broken: fails on valid input. 5263continue 5264fi 5265rm -f conftest.err conftest.$ac_ext 5266 5267 # OK, works on sane cases. Now check whether non-existent headers 5268 # can be detected and how. 5269 cat >conftest.$ac_ext <<_ACEOF 5270/* confdefs.h. */ 5271_ACEOF 5272cat confdefs.h >>conftest.$ac_ext 5273cat >>conftest.$ac_ext <<_ACEOF 5274/* end confdefs.h. */ 5275#include <ac_nonexistent.h> 5276_ACEOF 5277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5279 ac_status=$? 5280 grep -v '^ *+' conftest.er1 >conftest.err 5281 rm -f conftest.er1 5282 cat conftest.err >&5 5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5284 (exit $ac_status); } >/dev/null; then 5285 if test -s conftest.err; then 5286 ac_cpp_err=$ac_cxx_preproc_warn_flag 5287 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5288 else 5289 ac_cpp_err= 5290 fi 5291else 5292 ac_cpp_err=yes 5293fi 5294if test -z "$ac_cpp_err"; then 5295 # Broken: success on invalid input. 5296continue 5297else 5298 echo "$as_me: failed program was:" >&5 5299sed 's/^/| /' conftest.$ac_ext >&5 5300 5301 # Passes both tests. 5302ac_preproc_ok=: 5303break 5304fi 5305rm -f conftest.err conftest.$ac_ext 5306 5307done 5308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5309rm -f conftest.err conftest.$ac_ext 5310if $ac_preproc_ok; then 5311 : 5312else 5313 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5314See \`config.log' for more details." >&5 5315echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5316See \`config.log' for more details." >&2;} 5317 { (exit 1); exit 1; }; } 5318fi 5319 5320ac_ext=cc 5321ac_cpp='$CXXCPP $CPPFLAGS' 5322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5325 5326fi 5327 5328 5329ac_ext=f 5330ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5331ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5332ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5333if test -n "$ac_tool_prefix"; then 5334 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5335 do 5336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5337set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5338echo "$as_me:$LINENO: checking for $ac_word" >&5 5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5340if test "${ac_cv_prog_F77+set}" = set; then 5341 echo $ECHO_N "(cached) $ECHO_C" >&6 5342else 5343 if test -n "$F77"; then 5344 ac_cv_prog_F77="$F77" # Let the user override the test. 5345else 5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347for as_dir in $PATH 5348do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5353 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357done 5358done 5359 5360fi 5361fi 5362F77=$ac_cv_prog_F77 5363if test -n "$F77"; then 5364 echo "$as_me:$LINENO: result: $F77" >&5 5365echo "${ECHO_T}$F77" >&6 5366else 5367 echo "$as_me:$LINENO: result: no" >&5 5368echo "${ECHO_T}no" >&6 5369fi 5370 5371 test -n "$F77" && break 5372 done 5373fi 5374if test -z "$F77"; then 5375 ac_ct_F77=$F77 5376 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5377do 5378 # Extract the first word of "$ac_prog", so it can be a program name with args. 5379set dummy $ac_prog; ac_word=$2 5380echo "$as_me:$LINENO: checking for $ac_word" >&5 5381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5382if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5383 echo $ECHO_N "(cached) $ECHO_C" >&6 5384else 5385 if test -n "$ac_ct_F77"; then 5386 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5387else 5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5389for as_dir in $PATH 5390do 5391 IFS=$as_save_IFS 5392 test -z "$as_dir" && as_dir=. 5393 for ac_exec_ext in '' $ac_executable_extensions; do 5394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5395 ac_cv_prog_ac_ct_F77="$ac_prog" 5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5397 break 2 5398 fi 5399done 5400done 5401 5402fi 5403fi 5404ac_ct_F77=$ac_cv_prog_ac_ct_F77 5405if test -n "$ac_ct_F77"; then 5406 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5407echo "${ECHO_T}$ac_ct_F77" >&6 5408else 5409 echo "$as_me:$LINENO: result: no" >&5 5410echo "${ECHO_T}no" >&6 5411fi 5412 5413 test -n "$ac_ct_F77" && break 5414done 5415 5416 F77=$ac_ct_F77 5417fi 5418 5419 5420# Provide some information about the compiler. 5421echo "$as_me:5421:" \ 5422 "checking for Fortran 77 compiler version" >&5 5423ac_compiler=`set X $ac_compile; echo $2` 5424{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5425 (eval $ac_compiler --version </dev/null >&5) 2>&5 5426 ac_status=$? 5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5428 (exit $ac_status); } 5429{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5430 (eval $ac_compiler -v </dev/null >&5) 2>&5 5431 ac_status=$? 5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5433 (exit $ac_status); } 5434{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5435 (eval $ac_compiler -V </dev/null >&5) 2>&5 5436 ac_status=$? 5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5438 (exit $ac_status); } 5439rm -f a.out 5440 5441# If we don't use `.F' as extension, the preprocessor is not run on the 5442# input file. (Note that this only needs to work for GNU compilers.) 5443ac_save_ext=$ac_ext 5444ac_ext=F 5445echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5446echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5447if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5448 echo $ECHO_N "(cached) $ECHO_C" >&6 5449else 5450 cat >conftest.$ac_ext <<_ACEOF 5451 program main 5452#ifndef __GNUC__ 5453 choke me 5454#endif 5455 5456 end 5457_ACEOF 5458rm -f conftest.$ac_objext 5459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5460 (eval $ac_compile) 2>conftest.er1 5461 ac_status=$? 5462 grep -v '^ *+' conftest.er1 >conftest.err 5463 rm -f conftest.er1 5464 cat conftest.err >&5 5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5466 (exit $ac_status); } && 5467 { ac_try='test -z "$ac_f77_werror_flag" 5468 || test ! -s conftest.err' 5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5470 (eval $ac_try) 2>&5 5471 ac_status=$? 5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5473 (exit $ac_status); }; } && 5474 { ac_try='test -s conftest.$ac_objext' 5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5476 (eval $ac_try) 2>&5 5477 ac_status=$? 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); }; }; then 5480 ac_compiler_gnu=yes 5481else 5482 echo "$as_me: failed program was:" >&5 5483sed 's/^/| /' conftest.$ac_ext >&5 5484 5485ac_compiler_gnu=no 5486fi 5487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5488ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5489 5490fi 5491echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5492echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5493ac_ext=$ac_save_ext 5494ac_test_FFLAGS=${FFLAGS+set} 5495ac_save_FFLAGS=$FFLAGS 5496FFLAGS= 5497echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5498echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5499if test "${ac_cv_prog_f77_g+set}" = set; then 5500 echo $ECHO_N "(cached) $ECHO_C" >&6 5501else 5502 FFLAGS=-g 5503cat >conftest.$ac_ext <<_ACEOF 5504 program main 5505 5506 end 5507_ACEOF 5508rm -f conftest.$ac_objext 5509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5510 (eval $ac_compile) 2>conftest.er1 5511 ac_status=$? 5512 grep -v '^ *+' conftest.er1 >conftest.err 5513 rm -f conftest.er1 5514 cat conftest.err >&5 5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5516 (exit $ac_status); } && 5517 { ac_try='test -z "$ac_f77_werror_flag" 5518 || test ! -s conftest.err' 5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5520 (eval $ac_try) 2>&5 5521 ac_status=$? 5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5523 (exit $ac_status); }; } && 5524 { ac_try='test -s conftest.$ac_objext' 5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5526 (eval $ac_try) 2>&5 5527 ac_status=$? 5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5529 (exit $ac_status); }; }; then 5530 ac_cv_prog_f77_g=yes 5531else 5532 echo "$as_me: failed program was:" >&5 5533sed 's/^/| /' conftest.$ac_ext >&5 5534 5535ac_cv_prog_f77_g=no 5536fi 5537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5538 5539fi 5540echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5541echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5542if test "$ac_test_FFLAGS" = set; then 5543 FFLAGS=$ac_save_FFLAGS 5544elif test $ac_cv_prog_f77_g = yes; then 5545 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5546 FFLAGS="-g -O2" 5547 else 5548 FFLAGS="-g" 5549 fi 5550else 5551 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5552 FFLAGS="-O2" 5553 else 5554 FFLAGS= 5555 fi 5556fi 5557 5558G77=`test $ac_compiler_gnu = yes && echo yes` 5559ac_ext=c 5560ac_cpp='$CPP $CPPFLAGS' 5561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5563ac_compiler_gnu=$ac_cv_c_compiler_gnu 5564 5565 5566 5567# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5568 5569# find the maximum length of command line arguments 5570echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5571echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5572if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5573 echo $ECHO_N "(cached) $ECHO_C" >&6 5574else 5575 i=0 5576 teststring="ABCD" 5577 5578 case $build_os in 5579 msdosdjgpp*) 5580 # On DJGPP, this test can blow up pretty badly due to problems in libc 5581 # (any single argument exceeding 2000 bytes causes a buffer overrun 5582 # during glob expansion). Even if it were fixed, the result of this 5583 # check would be larger than it should be. 5584 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5585 ;; 5586 5587 gnu*) 5588 # Under GNU Hurd, this test is not required because there is 5589 # no limit to the length of command line arguments. 5590 # Libtool will interpret -1 as no limit whatsoever 5591 lt_cv_sys_max_cmd_len=-1; 5592 ;; 5593 5594 cygwin* | mingw*) 5595 # On Win9x/ME, this test blows up -- it succeeds, but takes 5596 # about 5 minutes as the teststring grows exponentially. 5597 # Worse, since 9x/ME are not pre-emptively multitasking, 5598 # you end up with a "frozen" computer, even though with patience 5599 # the test eventually succeeds (with a max line length of 256k). 5600 # Instead, let's just punt: use the minimum linelength reported by 5601 # all of the supported platforms: 8192 (on NT/2K/XP). 5602 lt_cv_sys_max_cmd_len=8192; 5603 ;; 5604 5605 amigaos*) 5606 # On AmigaOS with pdksh, this test takes hours, literally. 5607 # So we just punt and use a minimum line length of 8192. 5608 lt_cv_sys_max_cmd_len=8192; 5609 ;; 5610 5611 netbsd* | freebsd* | openbsd* | darwin* ) 5612 # This has been around since 386BSD, at least. Likely further. 5613 if test -x /sbin/sysctl; then 5614 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5615 elif test -x /usr/sbin/sysctl; then 5616 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5617 else 5618 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 5619 fi 5620 # And add a safety zone 5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5622 ;; 5623 5624 *) 5625 # If test is not a shell built-in, we'll probably end up computing a 5626 # maximum length that is only half of the actual maximum length, but 5627 # we can't tell. 5628 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5629 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5630 = "XX$teststring") >/dev/null 2>&1 && 5631 new_result=`expr "X$teststring" : ".*" 2>&1` && 5632 lt_cv_sys_max_cmd_len=$new_result && 5633 test $i != 17 # 1/2 MB should be enough 5634 do 5635 i=`expr $i + 1` 5636 teststring=$teststring$teststring 5637 done 5638 teststring= 5639 # Add a significant safety factor because C++ compilers can tack on massive 5640 # amounts of additional arguments before passing them to the linker. 5641 # It appears as though 1/2 is a usable value. 5642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5643 ;; 5644 esac 5645 5646fi 5647 5648if test -n $lt_cv_sys_max_cmd_len ; then 5649 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5650echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5651else 5652 echo "$as_me:$LINENO: result: none" >&5 5653echo "${ECHO_T}none" >&6 5654fi 5655 5656 5657 5658 5659# Check for command to grab the raw symbol name followed by C symbol from nm. 5660echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5661echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5662if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5663 echo $ECHO_N "(cached) $ECHO_C" >&6 5664else 5665 5666# These are sane defaults that work on at least a few old systems. 5667# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5668 5669# Character class describing NM global symbol codes. 5670symcode='[BCDEGRST]' 5671 5672# Regexp to match symbols that can be accessed directly from C. 5673sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5674 5675# Transform the above into a raw symbol and a C symbol. 5676symxfrm='\1 \2\3 \3' 5677 5678# Transform an extracted symbol line into a proper C declaration 5679lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5680 5681# Transform an extracted symbol line into symbol name and symbol address 5682lt_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'" 5683 5684# Define system-specific variables. 5685case $host_os in 5686aix*) 5687 symcode='[BCDT]' 5688 ;; 5689cygwin* | mingw* | pw32*) 5690 symcode='[ABCDGISTW]' 5691 ;; 5692hpux*) # Its linker distinguishes data from code symbols 5693 if test "$host_cpu" = ia64; then 5694 symcode='[ABCDEGRST]' 5695 fi 5696 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5697 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'" 5698 ;; 5699linux*) 5700 if test "$host_cpu" = ia64; then 5701 symcode='[ABCDGIRSTW]' 5702 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5703 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'" 5704 fi 5705 ;; 5706irix* | nonstopux*) 5707 symcode='[BCDEGRST]' 5708 ;; 5709osf*) 5710 symcode='[BCDEGQRST]' 5711 ;; 5712solaris* | sysv5*) 5713 symcode='[BDRT]' 5714 ;; 5715sysv4) 5716 symcode='[DFNSTU]' 5717 ;; 5718esac 5719 5720# Handle CRLF in mingw tool chain 5721opt_cr= 5722case $build_os in 5723mingw*) 5724 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5725 ;; 5726esac 5727 5728# If we're using GNU nm, then use its standard symbol codes. 5729case `$NM -V 2>&1` in 5730*GNU* | *'with BFD'*) 5731 symcode='[ABCDGIRSTW]' ;; 5732esac 5733 5734# Try without a prefix undercore, then with it. 5735for ac_symprfx in "" "_"; do 5736 5737 # Write the raw and C identifiers. 5738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5739 5740 # Check to see that the pipe works correctly. 5741 pipe_works=no 5742 5743 rm -f conftest* 5744 cat > conftest.$ac_ext <<EOF 5745#ifdef __cplusplus 5746extern "C" { 5747#endif 5748char nm_test_var; 5749void nm_test_func(){} 5750#ifdef __cplusplus 5751} 5752#endif 5753int main(){nm_test_var='a';nm_test_func();return(0);} 5754EOF 5755 5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5757 (eval $ac_compile) 2>&5 5758 ac_status=$? 5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5760 (exit $ac_status); }; then 5761 # Now try to grab the symbols. 5762 nlist=conftest.nm 5763 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5764 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5765 ac_status=$? 5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5767 (exit $ac_status); } && test -s "$nlist"; then 5768 # Try sorting and uniquifying the output. 5769 if sort "$nlist" | uniq > "$nlist"T; then 5770 mv -f "$nlist"T "$nlist" 5771 else 5772 rm -f "$nlist"T 5773 fi 5774 5775 # Make sure that we snagged all the symbols we need. 5776 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5777 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5778 cat <<EOF > conftest.$ac_ext 5779#ifdef __cplusplus 5780extern "C" { 5781#endif 5782 5783EOF 5784 # Now generate the symbol file. 5785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5786 5787 cat <<EOF >> conftest.$ac_ext 5788#if defined (__STDC__) && __STDC__ 5789# define lt_ptr_t void * 5790#else 5791# define lt_ptr_t char * 5792# define const 5793#endif 5794 5795/* The mapping between symbol names and symbols. */ 5796const struct { 5797 const char *name; 5798 lt_ptr_t address; 5799} 5800lt_preloaded_symbols[] = 5801{ 5802EOF 5803 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5804 cat <<\EOF >> conftest.$ac_ext 5805 {0, (lt_ptr_t) 0} 5806}; 5807 5808#ifdef __cplusplus 5809} 5810#endif 5811EOF 5812 # Now try linking the two files. 5813 mv conftest.$ac_objext conftstm.$ac_objext 5814 lt_save_LIBS="$LIBS" 5815 lt_save_CFLAGS="$CFLAGS" 5816 LIBS="conftstm.$ac_objext" 5817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5819 (eval $ac_link) 2>&5 5820 ac_status=$? 5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5822 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5823 pipe_works=yes 5824 fi 5825 LIBS="$lt_save_LIBS" 5826 CFLAGS="$lt_save_CFLAGS" 5827 else 5828 echo "cannot find nm_test_func in $nlist" >&5 5829 fi 5830 else 5831 echo "cannot find nm_test_var in $nlist" >&5 5832 fi 5833 else 5834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5835 fi 5836 else 5837 echo "$progname: failed program was:" >&5 5838 cat conftest.$ac_ext >&5 5839 fi 5840 rm -f conftest* conftst* 5841 5842 # Do not use the global_symbol_pipe unless it works. 5843 if test "$pipe_works" = yes; then 5844 break 5845 else 5846 lt_cv_sys_global_symbol_pipe= 5847 fi 5848done 5849 5850fi 5851 5852if test -z "$lt_cv_sys_global_symbol_pipe"; then 5853 lt_cv_sys_global_symbol_to_cdecl= 5854fi 5855if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5856 echo "$as_me:$LINENO: result: failed" >&5 5857echo "${ECHO_T}failed" >&6 5858else 5859 echo "$as_me:$LINENO: result: ok" >&5 5860echo "${ECHO_T}ok" >&6 5861fi 5862 5863echo "$as_me:$LINENO: checking for objdir" >&5 5864echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5865if test "${lt_cv_objdir+set}" = set; then 5866 echo $ECHO_N "(cached) $ECHO_C" >&6 5867else 5868 rm -f .libs 2>/dev/null 5869mkdir .libs 2>/dev/null 5870if test -d .libs; then 5871 lt_cv_objdir=.libs 5872else 5873 # MS-DOS does not allow filenames that begin with a dot. 5874 lt_cv_objdir=_libs 5875fi 5876rmdir .libs 2>/dev/null 5877fi 5878echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5879echo "${ECHO_T}$lt_cv_objdir" >&6 5880objdir=$lt_cv_objdir 5881 5882 5883 5884 5885 5886case $host_os in 5887aix3*) 5888 # AIX sometimes has problems with the GCC collect2 program. For some 5889 # reason, if we set the COLLECT_NAMES environment variable, the problems 5890 # vanish in a puff of smoke. 5891 if test "X${COLLECT_NAMES+set}" != Xset; then 5892 COLLECT_NAMES= 5893 export COLLECT_NAMES 5894 fi 5895 ;; 5896esac 5897 5898# Sed substitution that helps us do robust quoting. It backslashifies 5899# metacharacters that are still active within double-quoted strings. 5900Xsed='sed -e s/^X//' 5901sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5902 5903# Same as above, but do not quote variable references. 5904double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5905 5906# Sed substitution to delay expansion of an escaped shell variable in a 5907# double_quote_subst'ed string. 5908delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5909 5910# Sed substitution to avoid accidental globbing in evaled expressions 5911no_glob_subst='s/\*/\\\*/g' 5912 5913# Constants: 5914rm="rm -f" 5915 5916# Global variables: 5917default_ofile=libtool 5918can_build_shared=yes 5919 5920# All known linkers require a `.a' archive for static linking (except M$VC, 5921# which needs '.lib'). 5922libext=a 5923ltmain="$ac_aux_dir/ltmain.sh" 5924ofile="$default_ofile" 5925with_gnu_ld="$lt_cv_prog_gnu_ld" 5926 5927if test -n "$ac_tool_prefix"; then 5928 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5929set dummy ${ac_tool_prefix}ar; ac_word=$2 5930echo "$as_me:$LINENO: checking for $ac_word" >&5 5931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5932if test "${ac_cv_prog_AR+set}" = set; then 5933 echo $ECHO_N "(cached) $ECHO_C" >&6 5934else 5935 if test -n "$AR"; then 5936 ac_cv_prog_AR="$AR" # Let the user override the test. 5937else 5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5939for as_dir in $PATH 5940do 5941 IFS=$as_save_IFS 5942 test -z "$as_dir" && as_dir=. 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5945 ac_cv_prog_AR="${ac_tool_prefix}ar" 5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5947 break 2 5948 fi 5949done 5950done 5951 5952fi 5953fi 5954AR=$ac_cv_prog_AR 5955if test -n "$AR"; then 5956 echo "$as_me:$LINENO: result: $AR" >&5 5957echo "${ECHO_T}$AR" >&6 5958else 5959 echo "$as_me:$LINENO: result: no" >&5 5960echo "${ECHO_T}no" >&6 5961fi 5962 5963fi 5964if test -z "$ac_cv_prog_AR"; then 5965 ac_ct_AR=$AR 5966 # Extract the first word of "ar", so it can be a program name with args. 5967set dummy ar; ac_word=$2 5968echo "$as_me:$LINENO: checking for $ac_word" >&5 5969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5970if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5971 echo $ECHO_N "(cached) $ECHO_C" >&6 5972else 5973 if test -n "$ac_ct_AR"; then 5974 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5975else 5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5977for as_dir in $PATH 5978do 5979 IFS=$as_save_IFS 5980 test -z "$as_dir" && as_dir=. 5981 for ac_exec_ext in '' $ac_executable_extensions; do 5982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5983 ac_cv_prog_ac_ct_AR="ar" 5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5985 break 2 5986 fi 5987done 5988done 5989 5990 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5991fi 5992fi 5993ac_ct_AR=$ac_cv_prog_ac_ct_AR 5994if test -n "$ac_ct_AR"; then 5995 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5996echo "${ECHO_T}$ac_ct_AR" >&6 5997else 5998 echo "$as_me:$LINENO: result: no" >&5 5999echo "${ECHO_T}no" >&6 6000fi 6001 6002 AR=$ac_ct_AR 6003else 6004 AR="$ac_cv_prog_AR" 6005fi 6006 6007if test -n "$ac_tool_prefix"; then 6008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6009set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6010echo "$as_me:$LINENO: checking for $ac_word" >&5 6011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6012if test "${ac_cv_prog_RANLIB+set}" = set; then 6013 echo $ECHO_N "(cached) $ECHO_C" >&6 6014else 6015 if test -n "$RANLIB"; then 6016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6017else 6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6019for as_dir in $PATH 6020do 6021 IFS=$as_save_IFS 6022 test -z "$as_dir" && as_dir=. 6023 for ac_exec_ext in '' $ac_executable_extensions; do 6024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6027 break 2 6028 fi 6029done 6030done 6031 6032fi 6033fi 6034RANLIB=$ac_cv_prog_RANLIB 6035if test -n "$RANLIB"; then 6036 echo "$as_me:$LINENO: result: $RANLIB" >&5 6037echo "${ECHO_T}$RANLIB" >&6 6038else 6039 echo "$as_me:$LINENO: result: no" >&5 6040echo "${ECHO_T}no" >&6 6041fi 6042 6043fi 6044if test -z "$ac_cv_prog_RANLIB"; then 6045 ac_ct_RANLIB=$RANLIB 6046 # Extract the first word of "ranlib", so it can be a program name with args. 6047set dummy ranlib; ac_word=$2 6048echo "$as_me:$LINENO: checking for $ac_word" >&5 6049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6050if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6051 echo $ECHO_N "(cached) $ECHO_C" >&6 6052else 6053 if test -n "$ac_ct_RANLIB"; then 6054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6055else 6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6057for as_dir in $PATH 6058do 6059 IFS=$as_save_IFS 6060 test -z "$as_dir" && as_dir=. 6061 for ac_exec_ext in '' $ac_executable_extensions; do 6062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6063 ac_cv_prog_ac_ct_RANLIB="ranlib" 6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6065 break 2 6066 fi 6067done 6068done 6069 6070 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6071fi 6072fi 6073ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6074if test -n "$ac_ct_RANLIB"; then 6075 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6076echo "${ECHO_T}$ac_ct_RANLIB" >&6 6077else 6078 echo "$as_me:$LINENO: result: no" >&5 6079echo "${ECHO_T}no" >&6 6080fi 6081 6082 RANLIB=$ac_ct_RANLIB 6083else 6084 RANLIB="$ac_cv_prog_RANLIB" 6085fi 6086 6087if test -n "$ac_tool_prefix"; then 6088 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6089set dummy ${ac_tool_prefix}strip; ac_word=$2 6090echo "$as_me:$LINENO: checking for $ac_word" >&5 6091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6092if test "${ac_cv_prog_STRIP+set}" = set; then 6093 echo $ECHO_N "(cached) $ECHO_C" >&6 6094else 6095 if test -n "$STRIP"; then 6096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6097else 6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6099for as_dir in $PATH 6100do 6101 IFS=$as_save_IFS 6102 test -z "$as_dir" && as_dir=. 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6105 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110done 6111 6112fi 6113fi 6114STRIP=$ac_cv_prog_STRIP 6115if test -n "$STRIP"; then 6116 echo "$as_me:$LINENO: result: $STRIP" >&5 6117echo "${ECHO_T}$STRIP" >&6 6118else 6119 echo "$as_me:$LINENO: result: no" >&5 6120echo "${ECHO_T}no" >&6 6121fi 6122 6123fi 6124if test -z "$ac_cv_prog_STRIP"; then 6125 ac_ct_STRIP=$STRIP 6126 # Extract the first word of "strip", so it can be a program name with args. 6127set dummy strip; ac_word=$2 6128echo "$as_me:$LINENO: checking for $ac_word" >&5 6129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6131 echo $ECHO_N "(cached) $ECHO_C" >&6 6132else 6133 if test -n "$ac_ct_STRIP"; then 6134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6135else 6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6137for as_dir in $PATH 6138do 6139 IFS=$as_save_IFS 6140 test -z "$as_dir" && as_dir=. 6141 for ac_exec_ext in '' $ac_executable_extensions; do 6142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6143 ac_cv_prog_ac_ct_STRIP="strip" 6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6145 break 2 6146 fi 6147done 6148done 6149 6150 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6151fi 6152fi 6153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6154if test -n "$ac_ct_STRIP"; then 6155 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6156echo "${ECHO_T}$ac_ct_STRIP" >&6 6157else 6158 echo "$as_me:$LINENO: result: no" >&5 6159echo "${ECHO_T}no" >&6 6160fi 6161 6162 STRIP=$ac_ct_STRIP 6163else 6164 STRIP="$ac_cv_prog_STRIP" 6165fi 6166 6167 6168old_CC="$CC" 6169old_CFLAGS="$CFLAGS" 6170 6171# Set sane defaults for various variables 6172test -z "$AR" && AR=ar 6173test -z "$AR_FLAGS" && AR_FLAGS=cru 6174test -z "$AS" && AS=as 6175test -z "$CC" && CC=cc 6176test -z "$LTCC" && LTCC=$CC 6177test -z "$DLLTOOL" && DLLTOOL=dlltool 6178test -z "$LD" && LD=ld 6179test -z "$LN_S" && LN_S="ln -s" 6180test -z "$MAGIC_CMD" && MAGIC_CMD=file 6181test -z "$NM" && NM=nm 6182test -z "$SED" && SED=sed 6183test -z "$OBJDUMP" && OBJDUMP=objdump 6184test -z "$RANLIB" && RANLIB=: 6185test -z "$STRIP" && STRIP=: 6186test -z "$ac_objext" && ac_objext=o 6187 6188# Determine commands to create old-style static archives. 6189old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6190old_postinstall_cmds='chmod 644 $oldlib' 6191old_postuninstall_cmds= 6192 6193if test -n "$RANLIB"; then 6194 case $host_os in 6195 openbsd*) 6196 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6197 ;; 6198 *) 6199 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6200 ;; 6201 esac 6202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6203fi 6204 6205cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 6206 6207# Only perform the check for file, if the check method requires it 6208case $deplibs_check_method in 6209file_magic*) 6210 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6211 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6212echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6213if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215else 6216 case $MAGIC_CMD in 6217[\\/*] | ?:[\\/]*) 6218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6219 ;; 6220*) 6221 lt_save_MAGIC_CMD="$MAGIC_CMD" 6222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6224 for ac_dir in $ac_dummy; do 6225 IFS="$lt_save_ifs" 6226 test -z "$ac_dir" && ac_dir=. 6227 if test -f $ac_dir/${ac_tool_prefix}file; then 6228 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6229 if test -n "$file_magic_test_file"; then 6230 case $deplibs_check_method in 6231 "file_magic "*) 6232 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6235 $EGREP "$file_magic_regex" > /dev/null; then 6236 : 6237 else 6238 cat <<EOF 1>&2 6239 6240*** Warning: the command libtool uses to detect shared libraries, 6241*** $file_magic_cmd, produces output that libtool cannot recognize. 6242*** The result is that libtool may fail to recognize shared libraries 6243*** as such. This will affect the creation of libtool libraries that 6244*** depend on shared libraries, but programs linked with such libtool 6245*** libraries will work regardless of this problem. Nevertheless, you 6246*** may want to report the problem to your system manager and/or to 6247*** bug-libtool@gnu.org 6248 6249EOF 6250 fi ;; 6251 esac 6252 fi 6253 break 6254 fi 6255 done 6256 IFS="$lt_save_ifs" 6257 MAGIC_CMD="$lt_save_MAGIC_CMD" 6258 ;; 6259esac 6260fi 6261 6262MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6263if test -n "$MAGIC_CMD"; then 6264 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6265echo "${ECHO_T}$MAGIC_CMD" >&6 6266else 6267 echo "$as_me:$LINENO: result: no" >&5 6268echo "${ECHO_T}no" >&6 6269fi 6270 6271if test -z "$lt_cv_path_MAGIC_CMD"; then 6272 if test -n "$ac_tool_prefix"; then 6273 echo "$as_me:$LINENO: checking for file" >&5 6274echo $ECHO_N "checking for file... $ECHO_C" >&6 6275if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6276 echo $ECHO_N "(cached) $ECHO_C" >&6 6277else 6278 case $MAGIC_CMD in 6279[\\/*] | ?:[\\/]*) 6280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6281 ;; 6282*) 6283 lt_save_MAGIC_CMD="$MAGIC_CMD" 6284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6286 for ac_dir in $ac_dummy; do 6287 IFS="$lt_save_ifs" 6288 test -z "$ac_dir" && ac_dir=. 6289 if test -f $ac_dir/file; then 6290 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6291 if test -n "$file_magic_test_file"; then 6292 case $deplibs_check_method in 6293 "file_magic "*) 6294 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6297 $EGREP "$file_magic_regex" > /dev/null; then 6298 : 6299 else 6300 cat <<EOF 1>&2 6301 6302*** Warning: the command libtool uses to detect shared libraries, 6303*** $file_magic_cmd, produces output that libtool cannot recognize. 6304*** The result is that libtool may fail to recognize shared libraries 6305*** as such. This will affect the creation of libtool libraries that 6306*** depend on shared libraries, but programs linked with such libtool 6307*** libraries will work regardless of this problem. Nevertheless, you 6308*** may want to report the problem to your system manager and/or to 6309*** bug-libtool@gnu.org 6310 6311EOF 6312 fi ;; 6313 esac 6314 fi 6315 break 6316 fi 6317 done 6318 IFS="$lt_save_ifs" 6319 MAGIC_CMD="$lt_save_MAGIC_CMD" 6320 ;; 6321esac 6322fi 6323 6324MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6325if test -n "$MAGIC_CMD"; then 6326 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6327echo "${ECHO_T}$MAGIC_CMD" >&6 6328else 6329 echo "$as_me:$LINENO: result: no" >&5 6330echo "${ECHO_T}no" >&6 6331fi 6332 6333 else 6334 MAGIC_CMD=: 6335 fi 6336fi 6337 6338 fi 6339 ;; 6340esac 6341 6342enable_dlopen=no 6343enable_win32_dll=no 6344 6345# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6346if test "${enable_libtool_lock+set}" = set; then 6347 enableval="$enable_libtool_lock" 6348 6349fi; 6350test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6351 6352 6353# Check whether --with-pic or --without-pic was given. 6354if test "${with_pic+set}" = set; then 6355 withval="$with_pic" 6356 pic_mode="$withval" 6357else 6358 pic_mode=default 6359fi; 6360test -z "$pic_mode" && pic_mode=default 6361 6362# Use C for the default configuration in the libtool script 6363tagname= 6364lt_save_CC="$CC" 6365ac_ext=c 6366ac_cpp='$CPP $CPPFLAGS' 6367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6369ac_compiler_gnu=$ac_cv_c_compiler_gnu 6370 6371 6372# Source file extension for C test sources. 6373ac_ext=c 6374 6375# Object file extension for compiled C test sources. 6376objext=o 6377objext=$objext 6378 6379# Code to be used in simple compile tests 6380lt_simple_compile_test_code="int some_variable = 0;\n" 6381 6382# Code to be used in simple link tests 6383lt_simple_link_test_code='int main(){return(0);}\n' 6384 6385 6386# If no C compiler was specified, use CC. 6387LTCC=${LTCC-"$CC"} 6388 6389# Allow CC to be a program name with arguments. 6390compiler=$CC 6391 6392 6393# 6394# Check for any special shared library compilation flags. 6395# 6396lt_prog_cc_shlib= 6397if test "$GCC" = no; then 6398 case $host_os in 6399 sco3.2v5*) 6400 lt_prog_cc_shlib='-belf' 6401 ;; 6402 esac 6403fi 6404if test -n "$lt_prog_cc_shlib"; then 6405 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6406echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6407 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6408 else 6409 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6410echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6411 lt_cv_prog_cc_can_build_shared=no 6412 fi 6413fi 6414 6415 6416# 6417# Check to make sure the static flag actually works. 6418# 6419echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6420echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6421if test "${lt_prog_compiler_static_works+set}" = set; then 6422 echo $ECHO_N "(cached) $ECHO_C" >&6 6423else 6424 lt_prog_compiler_static_works=no 6425 save_LDFLAGS="$LDFLAGS" 6426 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6427 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6429 # The compiler can only warn and ignore the option if not recognized 6430 # So say no if there are warnings 6431 if test -s conftest.err; then 6432 # Append any errors to the config.log. 6433 cat conftest.err 1>&5 6434 else 6435 lt_prog_compiler_static_works=yes 6436 fi 6437 fi 6438 $rm conftest* 6439 LDFLAGS="$save_LDFLAGS" 6440 6441fi 6442echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6443echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6444 6445if test x"$lt_prog_compiler_static_works" = xyes; then 6446 : 6447else 6448 lt_prog_compiler_static= 6449fi 6450 6451 6452 6453 6454lt_prog_compiler_no_builtin_flag= 6455 6456if test "$GCC" = yes; then 6457 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6458 6459 6460echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6461echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6462if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 6464else 6465 lt_cv_prog_compiler_rtti_exceptions=no 6466 ac_outfile=conftest.$ac_objext 6467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6468 lt_compiler_flag="-fno-rtti -fno-exceptions" 6469 # Insert the option either (1) after the last *FLAGS variable, or 6470 # (2) before a word containing "conftest.", or (3) at the end. 6471 # Note that $ac_compile itself does not contain backslashes and begins 6472 # with a dollar sign (not a hyphen), so the echo should work correctly. 6473 # The option is referenced via a variable to avoid confusing sed. 6474 lt_compile=`echo "$ac_compile" | $SED \ 6475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6477 -e 's:$: $lt_compiler_flag:'` 6478 (eval echo "\"\$as_me:6478: $lt_compile\"" >&5) 6479 (eval "$lt_compile" 2>conftest.err) 6480 ac_status=$? 6481 cat conftest.err >&5 6482 echo "$as_me:6482: \$? = $ac_status" >&5 6483 if (exit $ac_status) && test -s "$ac_outfile"; then 6484 # The compiler can only warn and ignore the option if not recognized 6485 # So say no if there are warnings 6486 if test ! -s conftest.err; then 6487 lt_cv_prog_compiler_rtti_exceptions=yes 6488 fi 6489 fi 6490 $rm conftest* 6491 6492fi 6493echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6494echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6495 6496if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6497 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6498else 6499 : 6500fi 6501 6502fi 6503 6504lt_prog_compiler_wl= 6505lt_prog_compiler_pic= 6506lt_prog_compiler_static= 6507 6508echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6509echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6510 6511 if test "$GCC" = yes; then 6512 lt_prog_compiler_wl='-Wl,' 6513 lt_prog_compiler_static='-static' 6514 6515 case $host_os in 6516 aix*) 6517 # All AIX code is PIC. 6518 if test "$host_cpu" = ia64; then 6519 # AIX 5 now supports IA64 processor 6520 lt_prog_compiler_static='-Bstatic' 6521 fi 6522 ;; 6523 6524 amigaos*) 6525 # FIXME: we need at least 68020 code to build shared libraries, but 6526 # adding the `-m68020' flag to GCC prevents building anything better, 6527 # like `-m68040'. 6528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6529 ;; 6530 6531 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6532 # PIC is the default for these OSes. 6533 ;; 6534 6535 mingw* | pw32* | os2*) 6536 # This hack is so that the source file can tell whether it is being 6537 # built for inclusion in a dll (and should export symbols for example). 6538 lt_prog_compiler_pic='-DDLL_EXPORT' 6539 ;; 6540 6541 darwin* | rhapsody*) 6542 # PIC is the default on this platform 6543 # Common symbols not allowed in MH_DYLIB files 6544 lt_prog_compiler_pic='-fno-common' 6545 ;; 6546 6547 msdosdjgpp*) 6548 # Just because we use GCC doesn't mean we suddenly get shared libraries 6549 # on systems that don't support them. 6550 lt_prog_compiler_can_build_shared=no 6551 enable_shared=no 6552 ;; 6553 6554 sysv4*MP*) 6555 if test -d /usr/nec; then 6556 lt_prog_compiler_pic=-Kconform_pic 6557 fi 6558 ;; 6559 6560 hpux*) 6561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6562 # not for PA HP-UX. 6563 case "$host_cpu" in 6564 hppa*64*|ia64*) 6565 # +Z the default 6566 ;; 6567 *) 6568 lt_prog_compiler_pic='-fPIC' 6569 ;; 6570 esac 6571 ;; 6572 6573 *) 6574 lt_prog_compiler_pic='-fPIC' 6575 ;; 6576 esac 6577 else 6578 # PORTME Check for flag to pass linker flags through the system compiler. 6579 case $host_os in 6580 aix*) 6581 lt_prog_compiler_wl='-Wl,' 6582 if test "$host_cpu" = ia64; then 6583 # AIX 5 now supports IA64 processor 6584 lt_prog_compiler_static='-Bstatic' 6585 else 6586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6587 fi 6588 ;; 6589 darwin*) 6590 # PIC is the default on this platform 6591 # Common symbols not allowed in MH_DYLIB files 6592 case "$cc_basename" in 6593 xlc*) 6594 lt_prog_compiler_pic='-qnocommon' 6595 lt_prog_compiler_wl='-Wl,' 6596 ;; 6597 esac 6598 ;; 6599 6600 mingw* | pw32* | os2*) 6601 # This hack is so that the source file can tell whether it is being 6602 # built for inclusion in a dll (and should export symbols for example). 6603 lt_prog_compiler_pic='-DDLL_EXPORT' 6604 ;; 6605 6606 hpux9* | hpux10* | hpux11*) 6607 lt_prog_compiler_wl='-Wl,' 6608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6609 # not for PA HP-UX. 6610 case "$host_cpu" in 6611 hppa*64*|ia64*) 6612 # +Z the default 6613 ;; 6614 *) 6615 lt_prog_compiler_pic='+Z' 6616 ;; 6617 esac 6618 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6619 lt_prog_compiler_static='${wl}-a ${wl}archive' 6620 ;; 6621 6622 irix5* | irix6* | nonstopux*) 6623 lt_prog_compiler_wl='-Wl,' 6624 # PIC (with -KPIC) is the default. 6625 lt_prog_compiler_static='-non_shared' 6626 ;; 6627 6628 newsos6) 6629 lt_prog_compiler_pic='-KPIC' 6630 lt_prog_compiler_static='-Bstatic' 6631 ;; 6632 6633 linux*) 6634 case $CC in 6635 icc* | ecc*) 6636 lt_prog_compiler_wl='-Wl,' 6637 lt_prog_compiler_pic='-KPIC' 6638 lt_prog_compiler_static='-static' 6639 ;; 6640 ccc*) 6641 lt_prog_compiler_wl='-Wl,' 6642 # All Alpha code is PIC. 6643 lt_prog_compiler_static='-non_shared' 6644 ;; 6645 esac 6646 ;; 6647 6648 osf3* | osf4* | osf5*) 6649 lt_prog_compiler_wl='-Wl,' 6650 # All OSF/1 code is PIC. 6651 lt_prog_compiler_static='-non_shared' 6652 ;; 6653 6654 sco3.2v5*) 6655 lt_prog_compiler_pic='-Kpic' 6656 lt_prog_compiler_static='-dn' 6657 ;; 6658 6659 solaris*) 6660 lt_prog_compiler_wl='-Wl,' 6661 lt_prog_compiler_pic='-KPIC' 6662 lt_prog_compiler_static='-Bstatic' 6663 ;; 6664 6665 sunos4*) 6666 lt_prog_compiler_wl='-Qoption ld ' 6667 lt_prog_compiler_pic='-PIC' 6668 lt_prog_compiler_static='-Bstatic' 6669 ;; 6670 6671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6672 lt_prog_compiler_wl='-Wl,' 6673 lt_prog_compiler_pic='-KPIC' 6674 lt_prog_compiler_static='-Bstatic' 6675 ;; 6676 6677 sysv4*MP*) 6678 if test -d /usr/nec ;then 6679 lt_prog_compiler_pic='-Kconform_pic' 6680 lt_prog_compiler_static='-Bstatic' 6681 fi 6682 ;; 6683 6684 uts4*) 6685 lt_prog_compiler_pic='-pic' 6686 lt_prog_compiler_static='-Bstatic' 6687 ;; 6688 6689 *) 6690 lt_prog_compiler_can_build_shared=no 6691 ;; 6692 esac 6693 fi 6694 6695echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6696echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6697 6698# 6699# Check to make sure the PIC flag actually works. 6700# 6701if test -n "$lt_prog_compiler_pic"; then 6702 6703echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6704echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6705if test "${lt_prog_compiler_pic_works+set}" = set; then 6706 echo $ECHO_N "(cached) $ECHO_C" >&6 6707else 6708 lt_prog_compiler_pic_works=no 6709 ac_outfile=conftest.$ac_objext 6710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6711 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6712 # Insert the option either (1) after the last *FLAGS variable, or 6713 # (2) before a word containing "conftest.", or (3) at the end. 6714 # Note that $ac_compile itself does not contain backslashes and begins 6715 # with a dollar sign (not a hyphen), so the echo should work correctly. 6716 # The option is referenced via a variable to avoid confusing sed. 6717 lt_compile=`echo "$ac_compile" | $SED \ 6718 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6720 -e 's:$: $lt_compiler_flag:'` 6721 (eval echo "\"\$as_me:6721: $lt_compile\"" >&5) 6722 (eval "$lt_compile" 2>conftest.err) 6723 ac_status=$? 6724 cat conftest.err >&5 6725 echo "$as_me:6725: \$? = $ac_status" >&5 6726 if (exit $ac_status) && test -s "$ac_outfile"; then 6727 # The compiler can only warn and ignore the option if not recognized 6728 # So say no if there are warnings 6729 if test ! -s conftest.err; then 6730 lt_prog_compiler_pic_works=yes 6731 fi 6732 fi 6733 $rm conftest* 6734 6735fi 6736echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6737echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6738 6739if test x"$lt_prog_compiler_pic_works" = xyes; then 6740 case $lt_prog_compiler_pic in 6741 "" | " "*) ;; 6742 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6743 esac 6744else 6745 lt_prog_compiler_pic= 6746 lt_prog_compiler_can_build_shared=no 6747fi 6748 6749fi 6750case "$host_os" in 6751 # For platforms which do not support PIC, -DPIC is meaningless: 6752 *djgpp*) 6753 lt_prog_compiler_pic= 6754 ;; 6755 *) 6756 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6757 ;; 6758esac 6759 6760echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6761echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6762if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6763 echo $ECHO_N "(cached) $ECHO_C" >&6 6764else 6765 lt_cv_prog_compiler_c_o=no 6766 $rm -r conftest 2>/dev/null 6767 mkdir conftest 6768 cd conftest 6769 mkdir out 6770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6771 6772 lt_compiler_flag="-o out/conftest2.$ac_objext" 6773 # Insert the option either (1) after the last *FLAGS variable, or 6774 # (2) before a word containing "conftest.", or (3) at the end. 6775 # Note that $ac_compile itself does not contain backslashes and begins 6776 # with a dollar sign (not a hyphen), so the echo should work correctly. 6777 lt_compile=`echo "$ac_compile" | $SED \ 6778 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6780 -e 's:$: $lt_compiler_flag:'` 6781 (eval echo "\"\$as_me:6781: $lt_compile\"" >&5) 6782 (eval "$lt_compile" 2>out/conftest.err) 6783 ac_status=$? 6784 cat out/conftest.err >&5 6785 echo "$as_me:6785: \$? = $ac_status" >&5 6786 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6787 then 6788 # The compiler can only warn and ignore the option if not recognized 6789 # So say no if there are warnings 6790 if test ! -s out/conftest.err; then 6791 lt_cv_prog_compiler_c_o=yes 6792 fi 6793 fi 6794 chmod u+w . 6795 $rm conftest* 6796 # SGI C++ compiler will create directory out/ii_files/ for 6797 # template instantiation 6798 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6799 $rm out/* && rmdir out 6800 cd .. 6801 rmdir conftest 6802 $rm conftest* 6803 6804fi 6805echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6806echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6807 6808 6809hard_links="nottested" 6810if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6811 # do not overwrite the value of need_locks provided by the user 6812 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6813echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6814 hard_links=yes 6815 $rm conftest* 6816 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6817 touch conftest.a 6818 ln conftest.a conftest.b 2>&5 || hard_links=no 6819 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6820 echo "$as_me:$LINENO: result: $hard_links" >&5 6821echo "${ECHO_T}$hard_links" >&6 6822 if test "$hard_links" = no; then 6823 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6824echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6825 need_locks=warn 6826 fi 6827else 6828 need_locks=no 6829fi 6830 6831echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6832echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6833 6834 runpath_var= 6835 allow_undefined_flag= 6836 enable_shared_with_static_runtimes=no 6837 archive_cmds= 6838 archive_expsym_cmds= 6839 old_archive_From_new_cmds= 6840 old_archive_from_expsyms_cmds= 6841 export_dynamic_flag_spec= 6842 whole_archive_flag_spec= 6843 thread_safe_flag_spec= 6844 hardcode_libdir_flag_spec= 6845 hardcode_libdir_flag_spec_ld= 6846 hardcode_libdir_separator= 6847 hardcode_direct=no 6848 hardcode_minus_L=no 6849 hardcode_shlibpath_var=unsupported 6850 link_all_deplibs=unknown 6851 hardcode_automatic=no 6852 module_cmds= 6853 module_expsym_cmds= 6854 always_export_symbols=no 6855 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6856 # include_expsyms should be a list of space-separated symbols to be *always* 6857 # included in the symbol list 6858 include_expsyms= 6859 # exclude_expsyms can be an extended regexp of symbols to exclude 6860 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6861 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6862 # as well as any symbol that contains `d'. 6863 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6864 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6865 # platforms (ab)use it in PIC code, but their linkers get confused if 6866 # the symbol is explicitly referenced. Since portable code cannot 6867 # rely on this symbol name, it's probably fine to never include it in 6868 # preloaded symbol tables. 6869 extract_expsyms_cmds= 6870 6871 case $host_os in 6872 cygwin* | mingw* | pw32*) 6873 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6874 # When not using gcc, we currently assume that we are using 6875 # Microsoft Visual C++. 6876 if test "$GCC" != yes; then 6877 with_gnu_ld=no 6878 fi 6879 ;; 6880 openbsd*) 6881 with_gnu_ld=no 6882 ;; 6883 esac 6884 6885 ld_shlibs=yes 6886 if test "$with_gnu_ld" = yes; then 6887 # If archive_cmds runs LD, not CC, wlarc should be empty 6888 wlarc='${wl}' 6889 6890 # See if GNU ld supports shared libraries. 6891 case $host_os in 6892 aix3* | aix4* | aix5*) 6893 # On AIX/PPC, the GNU linker is very broken 6894 if test "$host_cpu" != ia64; then 6895 ld_shlibs=no 6896 cat <<EOF 1>&2 6897 6898*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6899*** to be unable to reliably create shared libraries on AIX. 6900*** Therefore, libtool is disabling shared libraries support. If you 6901*** really care for shared libraries, you may want to modify your PATH 6902*** so that a non-GNU linker is found, and then restart. 6903 6904EOF 6905 fi 6906 ;; 6907 6908 amigaos*) 6909 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)' 6910 hardcode_libdir_flag_spec='-L$libdir' 6911 hardcode_minus_L=yes 6912 6913 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6914 # that the semantics of dynamic libraries on AmigaOS, at least up 6915 # to version 4, is to share data among multiple programs linked 6916 # with the same dynamic library. Since this doesn't match the 6917 # behavior of shared libraries on other platforms, we can't use 6918 # them. 6919 ld_shlibs=no 6920 ;; 6921 6922 beos*) 6923 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6924 allow_undefined_flag=unsupported 6925 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6926 # support --undefined. This deserves some investigation. FIXME 6927 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6928 else 6929 ld_shlibs=no 6930 fi 6931 ;; 6932 6933 cygwin* | mingw* | pw32*) 6934 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6935 # as there is no search path for DLLs. 6936 hardcode_libdir_flag_spec='-L$libdir' 6937 allow_undefined_flag=unsupported 6938 always_export_symbols=no 6939 enable_shared_with_static_runtimes=yes 6940 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6941 6942 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6944 # If the export-symbols file already is a .def file (1st line 6945 # is EXPORTS), use it as is; otherwise, prepend... 6946 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6947 cp $export_symbols $output_objdir/$soname.def; 6948 else 6949 echo EXPORTS > $output_objdir/$soname.def; 6950 cat $export_symbols >> $output_objdir/$soname.def; 6951 fi~ 6952 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6953 else 6954 ld_shlibs=no 6955 fi 6956 ;; 6957 6958 netbsd*) 6959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6961 wlarc= 6962 else 6963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6965 fi 6966 ;; 6967 6968 solaris* | sysv5*) 6969 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6970 ld_shlibs=no 6971 cat <<EOF 1>&2 6972 6973*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6974*** create shared libraries on Solaris systems. Therefore, libtool 6975*** is disabling shared libraries support. We urge you to upgrade GNU 6976*** binutils to release 2.9.1 or newer. Another option is to modify 6977*** your PATH or compiler configuration so that the native linker is 6978*** used, and then restart. 6979 6980EOF 6981 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6984 else 6985 ld_shlibs=no 6986 fi 6987 ;; 6988 6989 sunos4*) 6990 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6991 wlarc= 6992 hardcode_direct=yes 6993 hardcode_shlibpath_var=no 6994 ;; 6995 6996 linux*) 6997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6998 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6999 archive_cmds="$tmp_archive_cmds" 7000 supports_anon_versioning=no 7001 case `$LD -v 2>/dev/null` in 7002 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7003 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7004 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7005 *\ 2.11.*) ;; # other 2.11 versions 7006 *) supports_anon_versioning=yes ;; 7007 esac 7008 if test $supports_anon_versioning = yes; then 7009 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7010cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7011$echo "local: *; };" >> $output_objdir/$libname.ver~ 7012 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7013 else 7014 archive_expsym_cmds="$tmp_archive_cmds" 7015 fi 7016 else 7017 ld_shlibs=no 7018 fi 7019 ;; 7020 7021 *) 7022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7025 else 7026 ld_shlibs=no 7027 fi 7028 ;; 7029 esac 7030 7031 if test "$ld_shlibs" = yes; then 7032 runpath_var=LD_RUN_PATH 7033 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7034 export_dynamic_flag_spec='${wl}--export-dynamic' 7035 # ancient GNU ld didn't support --whole-archive et. al. 7036 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7037 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7038 else 7039 whole_archive_flag_spec= 7040 fi 7041 fi 7042 else 7043 # PORTME fill in a description of your system's linker (not GNU ld) 7044 case $host_os in 7045 aix3*) 7046 allow_undefined_flag=unsupported 7047 always_export_symbols=yes 7048 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' 7049 # Note: this linker hardcodes the directories in LIBPATH if there 7050 # are no directories specified by -L. 7051 hardcode_minus_L=yes 7052 if test "$GCC" = yes && test -z "$link_static_flag"; then 7053 # Neither direct hardcoding nor static linking is supported with a 7054 # broken collect2. 7055 hardcode_direct=unsupported 7056 fi 7057 ;; 7058 7059 aix4* | aix5*) 7060 if test "$host_cpu" = ia64; then 7061 # On IA64, the linker does run time linking by default, so we don't 7062 # have to do anything special. 7063 aix_use_runtimelinking=no 7064 exp_sym_flag='-Bexport' 7065 no_entry_flag="" 7066 else 7067 # If we're using GNU nm, then we don't want the "-C" option. 7068 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7069 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7070 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' 7071 else 7072 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' 7073 fi 7074 aix_use_runtimelinking=no 7075 7076 # Test if we are trying to use run time linking or normal 7077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7078 # need to do runtime linking. 7079 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7080 for ld_flag in $LDFLAGS; do 7081 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7082 aix_use_runtimelinking=yes 7083 break 7084 fi 7085 done 7086 esac 7087 7088 exp_sym_flag='-bexport' 7089 no_entry_flag='-bnoentry' 7090 fi 7091 7092 # When large executables or shared objects are built, AIX ld can 7093 # have problems creating the table of contents. If linking a library 7094 # or program results in "error TOC overflow" add -mminimal-toc to 7095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7097 7098 archive_cmds='' 7099 hardcode_direct=yes 7100 hardcode_libdir_separator=':' 7101 link_all_deplibs=yes 7102 7103 if test "$GCC" = yes; then 7104 case $host_os in aix4.012|aix4.012.*) 7105 # We only want to do this on AIX 4.2 and lower, the check 7106 # below for broken collect2 doesn't work under 4.3+ 7107 collect2name=`${CC} -print-prog-name=collect2` 7108 if test -f "$collect2name" && \ 7109 strings "$collect2name" | grep resolve_lib_name >/dev/null 7110 then 7111 # We have reworked collect2 7112 hardcode_direct=yes 7113 else 7114 # We have old collect2 7115 hardcode_direct=unsupported 7116 # It fails to find uninstalled libraries when the uninstalled 7117 # path is not listed in the libpath. Setting hardcode_minus_L 7118 # to unsupported forces relinking 7119 hardcode_minus_L=yes 7120 hardcode_libdir_flag_spec='-L$libdir' 7121 hardcode_libdir_separator= 7122 fi 7123 esac 7124 shared_flag='-shared' 7125 else 7126 # not using gcc 7127 if test "$host_cpu" = ia64; then 7128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7129 # chokes on -Wl,-G. The following line is correct: 7130 shared_flag='-G' 7131 else 7132 if test "$aix_use_runtimelinking" = yes; then 7133 shared_flag='${wl}-G' 7134 else 7135 shared_flag='${wl}-bM:SRE' 7136 fi 7137 fi 7138 fi 7139 7140 # It seems that -bexpall does not export symbols beginning with 7141 # underscore (_), so it is better to generate a list of symbols to export. 7142 always_export_symbols=yes 7143 if test "$aix_use_runtimelinking" = yes; then 7144 # Warning - without using the other runtime loading flags (-brtl), 7145 # -berok will link without error, but may produce a broken library. 7146 allow_undefined_flag='-berok' 7147 # Determine the default libpath from the value encoded in an empty executable. 7148 cat >conftest.$ac_ext <<_ACEOF 7149/* confdefs.h. */ 7150_ACEOF 7151cat confdefs.h >>conftest.$ac_ext 7152cat >>conftest.$ac_ext <<_ACEOF 7153/* end confdefs.h. */ 7154 7155int 7156main () 7157{ 7158 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163rm -f conftest.$ac_objext conftest$ac_exeext 7164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7165 (eval $ac_link) 2>conftest.er1 7166 ac_status=$? 7167 grep -v '^ *+' conftest.er1 >conftest.err 7168 rm -f conftest.er1 7169 cat conftest.err >&5 7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7171 (exit $ac_status); } && 7172 { ac_try='test -z "$ac_c_werror_flag" 7173 || test ! -s conftest.err' 7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7175 (eval $ac_try) 2>&5 7176 ac_status=$? 7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7178 (exit $ac_status); }; } && 7179 { ac_try='test -s conftest$ac_exeext' 7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7181 (eval $ac_try) 2>&5 7182 ac_status=$? 7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7184 (exit $ac_status); }; }; then 7185 7186aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7187}'` 7188# Check for a 64-bit object if we didn't find anything. 7189if 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; } 7190}'`; fi 7191else 7192 echo "$as_me: failed program was:" >&5 7193sed 's/^/| /' conftest.$ac_ext >&5 7194 7195fi 7196rm -f conftest.err conftest.$ac_objext \ 7197 conftest$ac_exeext conftest.$ac_ext 7198if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7199 7200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7201 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7202 else 7203 if test "$host_cpu" = ia64; then 7204 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7205 allow_undefined_flag="-z nodefs" 7206 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7207 else 7208 # Determine the default libpath from the value encoded in an empty executable. 7209 cat >conftest.$ac_ext <<_ACEOF 7210/* confdefs.h. */ 7211_ACEOF 7212cat confdefs.h >>conftest.$ac_ext 7213cat >>conftest.$ac_ext <<_ACEOF 7214/* end confdefs.h. */ 7215 7216int 7217main () 7218{ 7219 7220 ; 7221 return 0; 7222} 7223_ACEOF 7224rm -f conftest.$ac_objext conftest$ac_exeext 7225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7226 (eval $ac_link) 2>conftest.er1 7227 ac_status=$? 7228 grep -v '^ *+' conftest.er1 >conftest.err 7229 rm -f conftest.er1 7230 cat conftest.err >&5 7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7232 (exit $ac_status); } && 7233 { ac_try='test -z "$ac_c_werror_flag" 7234 || test ! -s conftest.err' 7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7236 (eval $ac_try) 2>&5 7237 ac_status=$? 7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7239 (exit $ac_status); }; } && 7240 { ac_try='test -s conftest$ac_exeext' 7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7242 (eval $ac_try) 2>&5 7243 ac_status=$? 7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7245 (exit $ac_status); }; }; then 7246 7247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7248}'` 7249# Check for a 64-bit object if we didn't find anything. 7250if 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; } 7251}'`; fi 7252else 7253 echo "$as_me: failed program was:" >&5 7254sed 's/^/| /' conftest.$ac_ext >&5 7255 7256fi 7257rm -f conftest.err conftest.$ac_objext \ 7258 conftest$ac_exeext conftest.$ac_ext 7259if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7260 7261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7262 # Warning - without using the other run time loading flags, 7263 # -berok will link without error, but may produce a broken library. 7264 no_undefined_flag=' ${wl}-bernotok' 7265 allow_undefined_flag=' ${wl}-berok' 7266 # -bexpall does not export symbols beginning with underscore (_) 7267 always_export_symbols=yes 7268 # Exported symbols can be pulled into shared objects from archives 7269 whole_archive_flag_spec=' ' 7270 archive_cmds_need_lc=yes 7271 # This is similar to how AIX traditionally builds it's shared libraries. 7272 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7273 fi 7274 fi 7275 ;; 7276 7277 amigaos*) 7278 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)' 7279 hardcode_libdir_flag_spec='-L$libdir' 7280 hardcode_minus_L=yes 7281 # see comment about different semantics on the GNU ld section 7282 ld_shlibs=no 7283 ;; 7284 7285 bsdi[45]*) 7286 export_dynamic_flag_spec=-rdynamic 7287 ;; 7288 7289 cygwin* | mingw* | pw32*) 7290 # When not using gcc, we currently assume that we are using 7291 # Microsoft Visual C++. 7292 # hardcode_libdir_flag_spec is actually meaningless, as there is 7293 # no search path for DLLs. 7294 hardcode_libdir_flag_spec=' ' 7295 allow_undefined_flag=unsupported 7296 # Tell ltmain to make .lib files, not .a files. 7297 libext=lib 7298 # Tell ltmain to make .dll files, not .so files. 7299 shrext_cmds=".dll" 7300 # FIXME: Setting linknames here is a bad hack. 7301 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7302 # The linker will automatically build a .lib file if we build a DLL. 7303 old_archive_From_new_cmds='true' 7304 # FIXME: Should let the user specify the lib program. 7305 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7306 fix_srcfile_path='`cygpath -w "$srcfile"`' 7307 enable_shared_with_static_runtimes=yes 7308 ;; 7309 7310 darwin* | rhapsody*) 7311 case "$host_os" in 7312 rhapsody* | darwin1.[012]) 7313 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7314 ;; 7315 *) # Darwin 1.3 on 7316 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7317 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7318 else 7319 case ${MACOSX_DEPLOYMENT_TARGET} in 7320 10.[012]) 7321 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7322 ;; 7323 10.*) 7324 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7325 ;; 7326 esac 7327 fi 7328 ;; 7329 esac 7330 archive_cmds_need_lc=no 7331 hardcode_direct=no 7332 hardcode_automatic=yes 7333 hardcode_shlibpath_var=unsupported 7334 whole_archive_flag_spec='' 7335 link_all_deplibs=yes 7336 if test "$GCC" = yes ; then 7337 output_verbose_link_cmd='echo' 7338 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7339 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7340 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7341 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}' 7342 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}' 7343 else 7344 case "$cc_basename" in 7345 xlc*) 7346 output_verbose_link_cmd='echo' 7347 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7348 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7350 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}' 7351 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}' 7352 ;; 7353 *) 7354 ld_shlibs=no 7355 ;; 7356 esac 7357 fi 7358 ;; 7359 7360 dgux*) 7361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7362 hardcode_libdir_flag_spec='-L$libdir' 7363 hardcode_shlibpath_var=no 7364 ;; 7365 7366 freebsd1*) 7367 ld_shlibs=no 7368 ;; 7369 7370 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7371 # support. Future versions do this automatically, but an explicit c++rt0.o 7372 # does not break anything, and helps significantly (at the cost of a little 7373 # extra space). 7374 freebsd2.2*) 7375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7376 hardcode_libdir_flag_spec='-R$libdir' 7377 hardcode_direct=yes 7378 hardcode_shlibpath_var=no 7379 ;; 7380 7381 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7382 freebsd2*) 7383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7384 hardcode_direct=yes 7385 hardcode_minus_L=yes 7386 hardcode_shlibpath_var=no 7387 ;; 7388 7389 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7390 freebsd* | kfreebsd*-gnu) 7391 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7392 hardcode_libdir_flag_spec='-R$libdir' 7393 hardcode_direct=yes 7394 hardcode_shlibpath_var=no 7395 ;; 7396 7397 hpux9*) 7398 if test "$GCC" = yes; then 7399 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' 7400 else 7401 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' 7402 fi 7403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7404 hardcode_libdir_separator=: 7405 hardcode_direct=yes 7406 7407 # hardcode_minus_L: Not really in the search PATH, 7408 # but as the default location of the library. 7409 hardcode_minus_L=yes 7410 export_dynamic_flag_spec='${wl}-E' 7411 ;; 7412 7413 hpux10* | hpux11*) 7414 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7415 case "$host_cpu" in 7416 hppa*64*|ia64*) 7417 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7418 ;; 7419 *) 7420 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7421 ;; 7422 esac 7423 else 7424 case "$host_cpu" in 7425 hppa*64*|ia64*) 7426 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7427 ;; 7428 *) 7429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7430 ;; 7431 esac 7432 fi 7433 if test "$with_gnu_ld" = no; then 7434 case "$host_cpu" in 7435 hppa*64*) 7436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7437 hardcode_libdir_flag_spec_ld='+b $libdir' 7438 hardcode_libdir_separator=: 7439 hardcode_direct=no 7440 hardcode_shlibpath_var=no 7441 ;; 7442 ia64*) 7443 hardcode_libdir_flag_spec='-L$libdir' 7444 hardcode_direct=no 7445 hardcode_shlibpath_var=no 7446 7447 # hardcode_minus_L: Not really in the search PATH, 7448 # but as the default location of the library. 7449 hardcode_minus_L=yes 7450 ;; 7451 *) 7452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7453 hardcode_libdir_separator=: 7454 hardcode_direct=yes 7455 export_dynamic_flag_spec='${wl}-E' 7456 7457 # hardcode_minus_L: Not really in the search PATH, 7458 # but as the default location of the library. 7459 hardcode_minus_L=yes 7460 ;; 7461 esac 7462 fi 7463 ;; 7464 7465 irix5* | irix6* | nonstopux*) 7466 if test "$GCC" = yes; then 7467 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' 7468 else 7469 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' 7470 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7471 fi 7472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7473 hardcode_libdir_separator=: 7474 link_all_deplibs=yes 7475 ;; 7476 7477 netbsd*) 7478 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7480 else 7481 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7482 fi 7483 hardcode_libdir_flag_spec='-R$libdir' 7484 hardcode_direct=yes 7485 hardcode_shlibpath_var=no 7486 ;; 7487 7488 newsos6) 7489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7490 hardcode_direct=yes 7491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7492 hardcode_libdir_separator=: 7493 hardcode_shlibpath_var=no 7494 ;; 7495 7496 openbsd*) 7497 hardcode_direct=yes 7498 hardcode_shlibpath_var=no 7499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7501 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7502 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7503 export_dynamic_flag_spec='${wl}-E' 7504 else 7505 case $host_os in 7506 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7508 hardcode_libdir_flag_spec='-R$libdir' 7509 ;; 7510 *) 7511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7513 ;; 7514 esac 7515 fi 7516 ;; 7517 7518 os2*) 7519 hardcode_libdir_flag_spec='-L$libdir' 7520 hardcode_minus_L=yes 7521 allow_undefined_flag=unsupported 7522 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' 7523 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7524 ;; 7525 7526 osf3*) 7527 if test "$GCC" = yes; then 7528 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7529 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' 7530 else 7531 allow_undefined_flag=' -expect_unresolved \*' 7532 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' 7533 fi 7534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7535 hardcode_libdir_separator=: 7536 ;; 7537 7538 osf4* | osf5*) # as osf3* with the addition of -msym flag 7539 if test "$GCC" = yes; then 7540 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7541 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' 7542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7543 else 7544 allow_undefined_flag=' -expect_unresolved \*' 7545 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' 7546 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7547 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7548 7549 # Both c and cxx compiler support -rpath directly 7550 hardcode_libdir_flag_spec='-rpath $libdir' 7551 fi 7552 hardcode_libdir_separator=: 7553 ;; 7554 7555 sco3.2v5*) 7556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7557 hardcode_shlibpath_var=no 7558 export_dynamic_flag_spec='${wl}-Bexport' 7559 runpath_var=LD_RUN_PATH 7560 hardcode_runpath_var=yes 7561 ;; 7562 7563 solaris*) 7564 no_undefined_flag=' -z text' 7565 if test "$GCC" = yes; then 7566 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7567 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7568 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7569 else 7570 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7571 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7572 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7573 fi 7574 hardcode_libdir_flag_spec='-R$libdir' 7575 hardcode_shlibpath_var=no 7576 case $host_os in 7577 solaris2.[0-5] | solaris2.[0-5].*) ;; 7578 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7579 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7580 esac 7581 link_all_deplibs=yes 7582 ;; 7583 7584 sunos4*) 7585 if test "x$host_vendor" = xsequent; then 7586 # Use $CC to link under sequent, because it throws in some extra .o 7587 # files that make .init and .fini sections work. 7588 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7589 else 7590 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7591 fi 7592 hardcode_libdir_flag_spec='-L$libdir' 7593 hardcode_direct=yes 7594 hardcode_minus_L=yes 7595 hardcode_shlibpath_var=no 7596 ;; 7597 7598 sysv4) 7599 case $host_vendor in 7600 sni) 7601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7602 hardcode_direct=yes # is this really true??? 7603 ;; 7604 siemens) 7605 ## LD is ld it makes a PLAMLIB 7606 ## CC just makes a GrossModule. 7607 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7608 reload_cmds='$CC -r -o $output$reload_objs' 7609 hardcode_direct=no 7610 ;; 7611 motorola) 7612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7613 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7614 ;; 7615 esac 7616 runpath_var='LD_RUN_PATH' 7617 hardcode_shlibpath_var=no 7618 ;; 7619 7620 sysv4.3*) 7621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7622 hardcode_shlibpath_var=no 7623 export_dynamic_flag_spec='-Bexport' 7624 ;; 7625 7626 sysv4*MP*) 7627 if test -d /usr/nec; then 7628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7629 hardcode_shlibpath_var=no 7630 runpath_var=LD_RUN_PATH 7631 hardcode_runpath_var=yes 7632 ld_shlibs=yes 7633 fi 7634 ;; 7635 7636 sysv4.2uw2*) 7637 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7638 hardcode_direct=yes 7639 hardcode_minus_L=no 7640 hardcode_shlibpath_var=no 7641 hardcode_runpath_var=yes 7642 runpath_var=LD_RUN_PATH 7643 ;; 7644 7645 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7646 no_undefined_flag='${wl}-z ${wl}text' 7647 if test "$GCC" = yes; then 7648 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7649 else 7650 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7651 fi 7652 runpath_var='LD_RUN_PATH' 7653 hardcode_shlibpath_var=no 7654 ;; 7655 7656 sysv5*) 7657 no_undefined_flag=' -z text' 7658 # $CC -shared without GNU ld will not create a library from C++ 7659 # object files and a static libstdc++, better avoid it by now 7660 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7661 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7662 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7663 hardcode_libdir_flag_spec= 7664 hardcode_shlibpath_var=no 7665 runpath_var='LD_RUN_PATH' 7666 ;; 7667 7668 uts4*) 7669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7670 hardcode_libdir_flag_spec='-L$libdir' 7671 hardcode_shlibpath_var=no 7672 ;; 7673 7674 *) 7675 ld_shlibs=no 7676 ;; 7677 esac 7678 fi 7679 7680echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7681echo "${ECHO_T}$ld_shlibs" >&6 7682test "$ld_shlibs" = no && can_build_shared=no 7683 7684variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7685if test "$GCC" = yes; then 7686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7687fi 7688 7689# 7690# Do we need to explicitly link libc? 7691# 7692case "x$archive_cmds_need_lc" in 7693x|xyes) 7694 # Assume -lc should be added 7695 archive_cmds_need_lc=yes 7696 7697 if test "$enable_shared" = yes && test "$GCC" = yes; then 7698 case $archive_cmds in 7699 *'~'*) 7700 # FIXME: we may have to deal with multi-command sequences. 7701 ;; 7702 '$CC '*) 7703 # Test whether the compiler implicitly links with -lc since on some 7704 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7705 # to ld, don't add -lc before -lgcc. 7706 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7707echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7708 $rm conftest* 7709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7710 7711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7712 (eval $ac_compile) 2>&5 7713 ac_status=$? 7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7715 (exit $ac_status); } 2>conftest.err; then 7716 soname=conftest 7717 lib=conftest 7718 libobjs=conftest.$ac_objext 7719 deplibs= 7720 wl=$lt_prog_compiler_wl 7721 compiler_flags=-v 7722 linker_flags=-v 7723 verstring= 7724 output_objdir=. 7725 libname=conftest 7726 lt_save_allow_undefined_flag=$allow_undefined_flag 7727 allow_undefined_flag= 7728 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7729 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7730 ac_status=$? 7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7732 (exit $ac_status); } 7733 then 7734 archive_cmds_need_lc=no 7735 else 7736 archive_cmds_need_lc=yes 7737 fi 7738 allow_undefined_flag=$lt_save_allow_undefined_flag 7739 else 7740 cat conftest.err 1>&5 7741 fi 7742 $rm conftest* 7743 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7744echo "${ECHO_T}$archive_cmds_need_lc" >&6 7745 ;; 7746 esac 7747 fi 7748 ;; 7749esac 7750 7751echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7752echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7753library_names_spec= 7754libname_spec='lib$name' 7755soname_spec= 7756shrext_cmds=".so" 7757postinstall_cmds= 7758postuninstall_cmds= 7759finish_cmds= 7760finish_eval= 7761shlibpath_var= 7762shlibpath_overrides_runpath=unknown 7763version_type=none 7764dynamic_linker="$host_os ld.so" 7765sys_lib_dlsearch_path_spec="/lib /usr/lib" 7766if test "$GCC" = yes; then 7767 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7768 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7769 # if the path contains ";" then we assume it to be the separator 7770 # otherwise default to the standard path separator (i.e. ":") - it is 7771 # assumed that no part of a normal pathname contains ";" but that should 7772 # okay in the real world where ";" in dirpaths is itself problematic. 7773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7774 else 7775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7776 fi 7777else 7778 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7779fi 7780need_lib_prefix=unknown 7781hardcode_into_libs=no 7782 7783# when you set need_version to no, make sure it does not cause -set_version 7784# flags to be left without arguments 7785need_version=unknown 7786 7787case $host_os in 7788aix3*) 7789 version_type=linux 7790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7791 shlibpath_var=LIBPATH 7792 7793 # AIX 3 has no versioning support, so we append a major version to the name. 7794 soname_spec='${libname}${release}${shared_ext}$major' 7795 ;; 7796 7797aix4* | aix5*) 7798 version_type=linux 7799 need_lib_prefix=no 7800 need_version=no 7801 hardcode_into_libs=yes 7802 if test "$host_cpu" = ia64; then 7803 # AIX 5 supports IA64 7804 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7805 shlibpath_var=LD_LIBRARY_PATH 7806 else 7807 # With GCC up to 2.95.x, collect2 would create an import file 7808 # for dependence libraries. The import file would start with 7809 # the line `#! .'. This would cause the generated library to 7810 # depend on `.', always an invalid library. This was fixed in 7811 # development snapshots of GCC prior to 3.0. 7812 case $host_os in 7813 aix4 | aix4.[01] | aix4.[01].*) 7814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7815 echo ' yes ' 7816 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7817 : 7818 else 7819 can_build_shared=no 7820 fi 7821 ;; 7822 esac 7823 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7824 # soname into executable. Probably we can add versioning support to 7825 # collect2, so additional links can be useful in future. 7826 if test "$aix_use_runtimelinking" = yes; then 7827 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7828 # instead of lib<name>.a to let people know that these are not 7829 # typical AIX shared libraries. 7830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7831 else 7832 # We preserve .a as extension for shared libraries through AIX4.2 7833 # and later when we are not doing run time linking. 7834 library_names_spec='${libname}${release}.a $libname.a' 7835 soname_spec='${libname}${release}${shared_ext}$major' 7836 fi 7837 shlibpath_var=LIBPATH 7838 fi 7839 ;; 7840 7841amigaos*) 7842 library_names_spec='$libname.ixlibrary $libname.a' 7843 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7844 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' 7845 ;; 7846 7847beos*) 7848 library_names_spec='${libname}${shared_ext}' 7849 dynamic_linker="$host_os ld.so" 7850 shlibpath_var=LIBRARY_PATH 7851 ;; 7852 7853bsdi[45]*) 7854 version_type=linux 7855 need_version=no 7856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7857 soname_spec='${libname}${release}${shared_ext}$major' 7858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7859 shlibpath_var=LD_LIBRARY_PATH 7860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7862 # the default ld.so.conf also contains /usr/contrib/lib and 7863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7864 # libtool to hard-code these into programs 7865 ;; 7866 7867cygwin* | mingw* | pw32*) 7868 version_type=windows 7869 shrext_cmds=".dll" 7870 need_version=no 7871 need_lib_prefix=no 7872 7873 case $GCC,$host_os in 7874 yes,cygwin* | yes,mingw* | yes,pw32*) 7875 library_names_spec='$libname.dll.a' 7876 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7877 postinstall_cmds='base_file=`basename \${file}`~ 7878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7879 dldir=$destdir/`dirname \$dlpath`~ 7880 test -d \$dldir || mkdir -p \$dldir~ 7881 $install_prog $dir/$dlname \$dldir/$dlname' 7882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7883 dlpath=$dir/\$dldll~ 7884 $rm \$dlpath' 7885 shlibpath_overrides_runpath=yes 7886 7887 case $host_os in 7888 cygwin*) 7889 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7891 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7892 ;; 7893 mingw*) 7894 # MinGW DLLs use traditional 'lib' prefix 7895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7896 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7897 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7898 # It is most probably a Windows format PATH printed by 7899 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7900 # path with ; separators, and with drive letters. We can handle the 7901 # drive letters (cygwin fileutils understands them), so leave them, 7902 # especially as we might pass files found there to a mingw objdump, 7903 # which wouldn't understand a cygwinified path. Ahh. 7904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7905 else 7906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7907 fi 7908 ;; 7909 pw32*) 7910 # pw32 DLLs use 'pw' prefix rather than 'lib' 7911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7912 ;; 7913 esac 7914 ;; 7915 7916 *) 7917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7918 ;; 7919 esac 7920 dynamic_linker='Win32 ld.exe' 7921 # FIXME: first we should search . and the directory the executable is in 7922 shlibpath_var=PATH 7923 ;; 7924 7925darwin* | rhapsody*) 7926 dynamic_linker="$host_os dyld" 7927 version_type=darwin 7928 need_lib_prefix=no 7929 need_version=no 7930 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7931 soname_spec='${libname}${release}${major}$shared_ext' 7932 shlibpath_overrides_runpath=yes 7933 shlibpath_var=DYLD_LIBRARY_PATH 7934 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7935 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7936 if test "$GCC" = yes; then 7937 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"` 7938 else 7939 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7940 fi 7941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7942 ;; 7943 7944dgux*) 7945 version_type=linux 7946 need_lib_prefix=no 7947 need_version=no 7948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7949 soname_spec='${libname}${release}${shared_ext}$major' 7950 shlibpath_var=LD_LIBRARY_PATH 7951 ;; 7952 7953freebsd1*) 7954 dynamic_linker=no 7955 ;; 7956 7957kfreebsd*-gnu) 7958 version_type=linux 7959 need_lib_prefix=no 7960 need_version=no 7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7962 soname_spec='${libname}${release}${shared_ext}$major' 7963 shlibpath_var=LD_LIBRARY_PATH 7964 shlibpath_overrides_runpath=no 7965 hardcode_into_libs=yes 7966 dynamic_linker='GNU ld.so' 7967 ;; 7968 7969freebsd*) 7970 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7971 version_type=freebsd-$objformat 7972 case $version_type in 7973 freebsd-elf*) 7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7975 need_version=no 7976 need_lib_prefix=no 7977 ;; 7978 freebsd-*) 7979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7980 need_version=yes 7981 ;; 7982 esac 7983 shlibpath_var=LD_LIBRARY_PATH 7984 case $host_os in 7985 freebsd2*) 7986 shlibpath_overrides_runpath=yes 7987 ;; 7988 freebsd3.01* | freebsdelf3.01*) 7989 shlibpath_overrides_runpath=yes 7990 hardcode_into_libs=yes 7991 ;; 7992 *) # from 3.2 on 7993 shlibpath_overrides_runpath=no 7994 hardcode_into_libs=yes 7995 ;; 7996 esac 7997 ;; 7998 7999gnu*) 8000 version_type=linux 8001 need_lib_prefix=no 8002 need_version=no 8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8004 soname_spec='${libname}${release}${shared_ext}$major' 8005 shlibpath_var=LD_LIBRARY_PATH 8006 hardcode_into_libs=yes 8007 ;; 8008 8009hpux9* | hpux10* | hpux11*) 8010 # Give a soname corresponding to the major version so that dld.sl refuses to 8011 # link against other versions. 8012 version_type=sunos 8013 need_lib_prefix=no 8014 need_version=no 8015 case "$host_cpu" in 8016 ia64*) 8017 shrext_cmds='.so' 8018 hardcode_into_libs=yes 8019 dynamic_linker="$host_os dld.so" 8020 shlibpath_var=LD_LIBRARY_PATH 8021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8023 soname_spec='${libname}${release}${shared_ext}$major' 8024 if test "X$HPUX_IA64_MODE" = X32; then 8025 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8026 else 8027 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8028 fi 8029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8030 ;; 8031 hppa*64*) 8032 shrext_cmds='.sl' 8033 hardcode_into_libs=yes 8034 dynamic_linker="$host_os dld.sl" 8035 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8038 soname_spec='${libname}${release}${shared_ext}$major' 8039 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8041 ;; 8042 *) 8043 shrext_cmds='.sl' 8044 dynamic_linker="$host_os dld.sl" 8045 shlibpath_var=SHLIB_PATH 8046 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8048 soname_spec='${libname}${release}${shared_ext}$major' 8049 ;; 8050 esac 8051 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8052 postinstall_cmds='chmod 555 $lib' 8053 ;; 8054 8055irix5* | irix6* | nonstopux*) 8056 case $host_os in 8057 nonstopux*) version_type=nonstopux ;; 8058 *) 8059 if test "$lt_cv_prog_gnu_ld" = yes; then 8060 version_type=linux 8061 else 8062 version_type=irix 8063 fi ;; 8064 esac 8065 need_lib_prefix=no 8066 need_version=no 8067 soname_spec='${libname}${release}${shared_ext}$major' 8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8069 case $host_os in 8070 irix5* | nonstopux*) 8071 libsuff= shlibsuff= 8072 ;; 8073 *) 8074 case $LD in # libtool.m4 will add one of these switches to LD 8075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8076 libsuff= shlibsuff= libmagic=32-bit;; 8077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8078 libsuff=32 shlibsuff=N32 libmagic=N32;; 8079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8080 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8081 *) libsuff= shlibsuff= libmagic=never-match;; 8082 esac 8083 ;; 8084 esac 8085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8086 shlibpath_overrides_runpath=no 8087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8089 hardcode_into_libs=yes 8090 ;; 8091 8092# No shared lib support for Linux oldld, aout, or coff. 8093linux*oldld* | linux*aout* | linux*coff*) 8094 dynamic_linker=no 8095 ;; 8096 8097# This must be Linux ELF. 8098linux*) 8099 version_type=linux 8100 need_lib_prefix=no 8101 need_version=no 8102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8103 soname_spec='${libname}${release}${shared_ext}$major' 8104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8105 shlibpath_var=LD_LIBRARY_PATH 8106 shlibpath_overrides_runpath=no 8107 # This implies no fast_install, which is unacceptable. 8108 # Some rework will be needed to allow for fast_install 8109 # before this can be enabled. 8110 hardcode_into_libs=yes 8111 8112 # Append ld.so.conf contents to the search path 8113 if test -f /etc/ld.so.conf; then 8114 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 8115 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8116 fi 8117 8118 # We used to test for /lib/ld.so.1 and disable shared libraries on 8119 # powerpc, because MkLinux only supported shared libraries with the 8120 # GNU dynamic linker. Since this was broken with cross compilers, 8121 # most powerpc-linux boxes support dynamic linking these days and 8122 # people can always --disable-shared, the test was removed, and we 8123 # assume the GNU/Linux dynamic linker is in use. 8124 dynamic_linker='GNU/Linux ld.so' 8125 ;; 8126 8127knetbsd*-gnu) 8128 version_type=linux 8129 need_lib_prefix=no 8130 need_version=no 8131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8132 soname_spec='${libname}${release}${shared_ext}$major' 8133 shlibpath_var=LD_LIBRARY_PATH 8134 shlibpath_overrides_runpath=no 8135 hardcode_into_libs=yes 8136 dynamic_linker='GNU ld.so' 8137 ;; 8138 8139netbsd*) 8140 version_type=sunos 8141 need_lib_prefix=no 8142 need_version=no 8143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8146 dynamic_linker='NetBSD (a.out) ld.so' 8147 else 8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8149 soname_spec='${libname}${release}${shared_ext}$major' 8150 dynamic_linker='NetBSD ld.elf_so' 8151 fi 8152 shlibpath_var=LD_LIBRARY_PATH 8153 shlibpath_overrides_runpath=yes 8154 hardcode_into_libs=yes 8155 ;; 8156 8157newsos6) 8158 version_type=linux 8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8160 shlibpath_var=LD_LIBRARY_PATH 8161 shlibpath_overrides_runpath=yes 8162 ;; 8163 8164nto-qnx*) 8165 version_type=linux 8166 need_lib_prefix=no 8167 need_version=no 8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8169 soname_spec='${libname}${release}${shared_ext}$major' 8170 shlibpath_var=LD_LIBRARY_PATH 8171 shlibpath_overrides_runpath=yes 8172 ;; 8173 8174openbsd*) 8175 version_type=sunos 8176 need_lib_prefix=no 8177 need_version=no 8178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8180 shlibpath_var=LD_LIBRARY_PATH 8181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8182 case $host_os in 8183 openbsd2.[89] | openbsd2.[89].*) 8184 shlibpath_overrides_runpath=no 8185 ;; 8186 *) 8187 shlibpath_overrides_runpath=yes 8188 ;; 8189 esac 8190 else 8191 shlibpath_overrides_runpath=yes 8192 fi 8193 ;; 8194 8195os2*) 8196 libname_spec='$name' 8197 shrext_cmds=".dll" 8198 need_lib_prefix=no 8199 library_names_spec='$libname${shared_ext} $libname.a' 8200 dynamic_linker='OS/2 ld.exe' 8201 shlibpath_var=LIBPATH 8202 ;; 8203 8204osf3* | osf4* | osf5*) 8205 version_type=osf 8206 need_lib_prefix=no 8207 need_version=no 8208 soname_spec='${libname}${release}${shared_ext}$major' 8209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8210 shlibpath_var=LD_LIBRARY_PATH 8211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8213 ;; 8214 8215sco3.2v5*) 8216 version_type=osf 8217 soname_spec='${libname}${release}${shared_ext}$major' 8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8219 shlibpath_var=LD_LIBRARY_PATH 8220 ;; 8221 8222solaris*) 8223 version_type=linux 8224 need_lib_prefix=no 8225 need_version=no 8226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8227 soname_spec='${libname}${release}${shared_ext}$major' 8228 shlibpath_var=LD_LIBRARY_PATH 8229 shlibpath_overrides_runpath=yes 8230 hardcode_into_libs=yes 8231 # ldd complains unless libraries are executable 8232 postinstall_cmds='chmod +x $lib' 8233 ;; 8234 8235sunos4*) 8236 version_type=sunos 8237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8239 shlibpath_var=LD_LIBRARY_PATH 8240 shlibpath_overrides_runpath=yes 8241 if test "$with_gnu_ld" = yes; then 8242 need_lib_prefix=no 8243 fi 8244 need_version=yes 8245 ;; 8246 8247sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8248 version_type=linux 8249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8250 soname_spec='${libname}${release}${shared_ext}$major' 8251 shlibpath_var=LD_LIBRARY_PATH 8252 case $host_vendor in 8253 sni) 8254 shlibpath_overrides_runpath=no 8255 need_lib_prefix=no 8256 export_dynamic_flag_spec='${wl}-Blargedynsym' 8257 runpath_var=LD_RUN_PATH 8258 ;; 8259 siemens) 8260 need_lib_prefix=no 8261 ;; 8262 motorola) 8263 need_lib_prefix=no 8264 need_version=no 8265 shlibpath_overrides_runpath=no 8266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8267 ;; 8268 esac 8269 ;; 8270 8271sysv4*MP*) 8272 if test -d /usr/nec ;then 8273 version_type=linux 8274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8275 soname_spec='$libname${shared_ext}.$major' 8276 shlibpath_var=LD_LIBRARY_PATH 8277 fi 8278 ;; 8279 8280uts4*) 8281 version_type=linux 8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8283 soname_spec='${libname}${release}${shared_ext}$major' 8284 shlibpath_var=LD_LIBRARY_PATH 8285 ;; 8286 8287*) 8288 dynamic_linker=no 8289 ;; 8290esac 8291echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8292echo "${ECHO_T}$dynamic_linker" >&6 8293test "$dynamic_linker" = no && can_build_shared=no 8294 8295echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8296echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8297hardcode_action= 8298if test -n "$hardcode_libdir_flag_spec" || \ 8299 test -n "$runpath_var" || \ 8300 test "X$hardcode_automatic" = "Xyes" ; then 8301 8302 # We can hardcode non-existant directories. 8303 if test "$hardcode_direct" != no && 8304 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8305 # have to relink, otherwise we might link with an installed library 8306 # when we should be linking with a yet-to-be-installed one 8307 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8308 test "$hardcode_minus_L" != no; then 8309 # Linking always hardcodes the temporary library directory. 8310 hardcode_action=relink 8311 else 8312 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8313 hardcode_action=immediate 8314 fi 8315else 8316 # We cannot hardcode anything, or else we can only hardcode existing 8317 # directories. 8318 hardcode_action=unsupported 8319fi 8320echo "$as_me:$LINENO: result: $hardcode_action" >&5 8321echo "${ECHO_T}$hardcode_action" >&6 8322 8323if test "$hardcode_action" = relink; then 8324 # Fast installation is not supported 8325 enable_fast_install=no 8326elif test "$shlibpath_overrides_runpath" = yes || 8327 test "$enable_shared" = no; then 8328 # Fast installation is not necessary 8329 enable_fast_install=needless 8330fi 8331 8332striplib= 8333old_striplib= 8334echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8335echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8336if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8337 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8338 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8339 echo "$as_me:$LINENO: result: yes" >&5 8340echo "${ECHO_T}yes" >&6 8341else 8342# FIXME - insert some real tests, host_os isn't really good enough 8343 case $host_os in 8344 darwin*) 8345 if test -n "$STRIP" ; then 8346 striplib="$STRIP -x" 8347 echo "$as_me:$LINENO: result: yes" >&5 8348echo "${ECHO_T}yes" >&6 8349 else 8350 echo "$as_me:$LINENO: result: no" >&5 8351echo "${ECHO_T}no" >&6 8352fi 8353 ;; 8354 *) 8355 echo "$as_me:$LINENO: result: no" >&5 8356echo "${ECHO_T}no" >&6 8357 ;; 8358 esac 8359fi 8360 8361if test "x$enable_dlopen" != xyes; then 8362 enable_dlopen=unknown 8363 enable_dlopen_self=unknown 8364 enable_dlopen_self_static=unknown 8365else 8366 lt_cv_dlopen=no 8367 lt_cv_dlopen_libs= 8368 8369 case $host_os in 8370 beos*) 8371 lt_cv_dlopen="load_add_on" 8372 lt_cv_dlopen_libs= 8373 lt_cv_dlopen_self=yes 8374 ;; 8375 8376 mingw* | pw32*) 8377 lt_cv_dlopen="LoadLibrary" 8378 lt_cv_dlopen_libs= 8379 ;; 8380 8381 cygwin*) 8382 lt_cv_dlopen="dlopen" 8383 lt_cv_dlopen_libs= 8384 ;; 8385 8386 darwin*) 8387 # if libdl is installed we need to link against it 8388 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8389echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8390if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8391 echo $ECHO_N "(cached) $ECHO_C" >&6 8392else 8393 ac_check_lib_save_LIBS=$LIBS 8394LIBS="-ldl $LIBS" 8395cat >conftest.$ac_ext <<_ACEOF 8396/* confdefs.h. */ 8397_ACEOF 8398cat confdefs.h >>conftest.$ac_ext 8399cat >>conftest.$ac_ext <<_ACEOF 8400/* end confdefs.h. */ 8401 8402/* Override any gcc2 internal prototype to avoid an error. */ 8403#ifdef __cplusplus 8404extern "C" 8405#endif 8406/* We use char because int might match the return type of a gcc2 8407 builtin and then its argument prototype would still apply. */ 8408char dlopen (); 8409int 8410main () 8411{ 8412dlopen (); 8413 ; 8414 return 0; 8415} 8416_ACEOF 8417rm -f conftest.$ac_objext conftest$ac_exeext 8418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8419 (eval $ac_link) 2>conftest.er1 8420 ac_status=$? 8421 grep -v '^ *+' conftest.er1 >conftest.err 8422 rm -f conftest.er1 8423 cat conftest.err >&5 8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8425 (exit $ac_status); } && 8426 { ac_try='test -z "$ac_c_werror_flag" 8427 || test ! -s conftest.err' 8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8429 (eval $ac_try) 2>&5 8430 ac_status=$? 8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8432 (exit $ac_status); }; } && 8433 { ac_try='test -s conftest$ac_exeext' 8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8435 (eval $ac_try) 2>&5 8436 ac_status=$? 8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8438 (exit $ac_status); }; }; then 8439 ac_cv_lib_dl_dlopen=yes 8440else 8441 echo "$as_me: failed program was:" >&5 8442sed 's/^/| /' conftest.$ac_ext >&5 8443 8444ac_cv_lib_dl_dlopen=no 8445fi 8446rm -f conftest.err conftest.$ac_objext \ 8447 conftest$ac_exeext conftest.$ac_ext 8448LIBS=$ac_check_lib_save_LIBS 8449fi 8450echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8452if test $ac_cv_lib_dl_dlopen = yes; then 8453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8454else 8455 8456 lt_cv_dlopen="dyld" 8457 lt_cv_dlopen_libs= 8458 lt_cv_dlopen_self=yes 8459 8460fi 8461 8462 ;; 8463 8464 *) 8465 echo "$as_me:$LINENO: checking for shl_load" >&5 8466echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8467if test "${ac_cv_func_shl_load+set}" = set; then 8468 echo $ECHO_N "(cached) $ECHO_C" >&6 8469else 8470 cat >conftest.$ac_ext <<_ACEOF 8471/* confdefs.h. */ 8472_ACEOF 8473cat confdefs.h >>conftest.$ac_ext 8474cat >>conftest.$ac_ext <<_ACEOF 8475/* end confdefs.h. */ 8476/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8477 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8478#define shl_load innocuous_shl_load 8479 8480/* System header to define __stub macros and hopefully few prototypes, 8481 which can conflict with char shl_load (); below. 8482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8483 <limits.h> exists even on freestanding compilers. */ 8484 8485#ifdef __STDC__ 8486# include <limits.h> 8487#else 8488# include <assert.h> 8489#endif 8490 8491#undef shl_load 8492 8493/* Override any gcc2 internal prototype to avoid an error. */ 8494#ifdef __cplusplus 8495extern "C" 8496{ 8497#endif 8498/* We use char because int might match the return type of a gcc2 8499 builtin and then its argument prototype would still apply. */ 8500char shl_load (); 8501/* The GNU C library defines this for functions which it implements 8502 to always fail with ENOSYS. Some functions are actually named 8503 something starting with __ and the normal name is an alias. */ 8504#if defined (__stub_shl_load) || defined (__stub___shl_load) 8505choke me 8506#else 8507char (*f) () = shl_load; 8508#endif 8509#ifdef __cplusplus 8510} 8511#endif 8512 8513int 8514main () 8515{ 8516return f != shl_load; 8517 ; 8518 return 0; 8519} 8520_ACEOF 8521rm -f conftest.$ac_objext conftest$ac_exeext 8522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8523 (eval $ac_link) 2>conftest.er1 8524 ac_status=$? 8525 grep -v '^ *+' conftest.er1 >conftest.err 8526 rm -f conftest.er1 8527 cat conftest.err >&5 8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 (exit $ac_status); } && 8530 { ac_try='test -z "$ac_c_werror_flag" 8531 || test ! -s conftest.err' 8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8533 (eval $ac_try) 2>&5 8534 ac_status=$? 8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8536 (exit $ac_status); }; } && 8537 { ac_try='test -s conftest$ac_exeext' 8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8539 (eval $ac_try) 2>&5 8540 ac_status=$? 8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8542 (exit $ac_status); }; }; then 8543 ac_cv_func_shl_load=yes 8544else 8545 echo "$as_me: failed program was:" >&5 8546sed 's/^/| /' conftest.$ac_ext >&5 8547 8548ac_cv_func_shl_load=no 8549fi 8550rm -f conftest.err conftest.$ac_objext \ 8551 conftest$ac_exeext conftest.$ac_ext 8552fi 8553echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8554echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8555if test $ac_cv_func_shl_load = yes; then 8556 lt_cv_dlopen="shl_load" 8557else 8558 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8559echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8560if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8561 echo $ECHO_N "(cached) $ECHO_C" >&6 8562else 8563 ac_check_lib_save_LIBS=$LIBS 8564LIBS="-ldld $LIBS" 8565cat >conftest.$ac_ext <<_ACEOF 8566/* confdefs.h. */ 8567_ACEOF 8568cat confdefs.h >>conftest.$ac_ext 8569cat >>conftest.$ac_ext <<_ACEOF 8570/* end confdefs.h. */ 8571 8572/* Override any gcc2 internal prototype to avoid an error. */ 8573#ifdef __cplusplus 8574extern "C" 8575#endif 8576/* We use char because int might match the return type of a gcc2 8577 builtin and then its argument prototype would still apply. */ 8578char shl_load (); 8579int 8580main () 8581{ 8582shl_load (); 8583 ; 8584 return 0; 8585} 8586_ACEOF 8587rm -f conftest.$ac_objext conftest$ac_exeext 8588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8589 (eval $ac_link) 2>conftest.er1 8590 ac_status=$? 8591 grep -v '^ *+' conftest.er1 >conftest.err 8592 rm -f conftest.er1 8593 cat conftest.err >&5 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 (exit $ac_status); } && 8596 { ac_try='test -z "$ac_c_werror_flag" 8597 || test ! -s conftest.err' 8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8599 (eval $ac_try) 2>&5 8600 ac_status=$? 8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8602 (exit $ac_status); }; } && 8603 { ac_try='test -s conftest$ac_exeext' 8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8605 (eval $ac_try) 2>&5 8606 ac_status=$? 8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8608 (exit $ac_status); }; }; then 8609 ac_cv_lib_dld_shl_load=yes 8610else 8611 echo "$as_me: failed program was:" >&5 8612sed 's/^/| /' conftest.$ac_ext >&5 8613 8614ac_cv_lib_dld_shl_load=no 8615fi 8616rm -f conftest.err conftest.$ac_objext \ 8617 conftest$ac_exeext conftest.$ac_ext 8618LIBS=$ac_check_lib_save_LIBS 8619fi 8620echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8621echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8622if test $ac_cv_lib_dld_shl_load = yes; then 8623 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8624else 8625 echo "$as_me:$LINENO: checking for dlopen" >&5 8626echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8627if test "${ac_cv_func_dlopen+set}" = set; then 8628 echo $ECHO_N "(cached) $ECHO_C" >&6 8629else 8630 cat >conftest.$ac_ext <<_ACEOF 8631/* confdefs.h. */ 8632_ACEOF 8633cat confdefs.h >>conftest.$ac_ext 8634cat >>conftest.$ac_ext <<_ACEOF 8635/* end confdefs.h. */ 8636/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8637 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8638#define dlopen innocuous_dlopen 8639 8640/* System header to define __stub macros and hopefully few prototypes, 8641 which can conflict with char dlopen (); below. 8642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8643 <limits.h> exists even on freestanding compilers. */ 8644 8645#ifdef __STDC__ 8646# include <limits.h> 8647#else 8648# include <assert.h> 8649#endif 8650 8651#undef dlopen 8652 8653/* Override any gcc2 internal prototype to avoid an error. */ 8654#ifdef __cplusplus 8655extern "C" 8656{ 8657#endif 8658/* We use char because int might match the return type of a gcc2 8659 builtin and then its argument prototype would still apply. */ 8660char dlopen (); 8661/* The GNU C library defines this for functions which it implements 8662 to always fail with ENOSYS. Some functions are actually named 8663 something starting with __ and the normal name is an alias. */ 8664#if defined (__stub_dlopen) || defined (__stub___dlopen) 8665choke me 8666#else 8667char (*f) () = dlopen; 8668#endif 8669#ifdef __cplusplus 8670} 8671#endif 8672 8673int 8674main () 8675{ 8676return f != dlopen; 8677 ; 8678 return 0; 8679} 8680_ACEOF 8681rm -f conftest.$ac_objext conftest$ac_exeext 8682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8683 (eval $ac_link) 2>conftest.er1 8684 ac_status=$? 8685 grep -v '^ *+' conftest.er1 >conftest.err 8686 rm -f conftest.er1 8687 cat conftest.err >&5 8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8689 (exit $ac_status); } && 8690 { ac_try='test -z "$ac_c_werror_flag" 8691 || test ! -s conftest.err' 8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8693 (eval $ac_try) 2>&5 8694 ac_status=$? 8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8696 (exit $ac_status); }; } && 8697 { ac_try='test -s conftest$ac_exeext' 8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8699 (eval $ac_try) 2>&5 8700 ac_status=$? 8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8702 (exit $ac_status); }; }; then 8703 ac_cv_func_dlopen=yes 8704else 8705 echo "$as_me: failed program was:" >&5 8706sed 's/^/| /' conftest.$ac_ext >&5 8707 8708ac_cv_func_dlopen=no 8709fi 8710rm -f conftest.err conftest.$ac_objext \ 8711 conftest$ac_exeext conftest.$ac_ext 8712fi 8713echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8714echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8715if test $ac_cv_func_dlopen = yes; then 8716 lt_cv_dlopen="dlopen" 8717else 8718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8719echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8720if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8721 echo $ECHO_N "(cached) $ECHO_C" >&6 8722else 8723 ac_check_lib_save_LIBS=$LIBS 8724LIBS="-ldl $LIBS" 8725cat >conftest.$ac_ext <<_ACEOF 8726/* confdefs.h. */ 8727_ACEOF 8728cat confdefs.h >>conftest.$ac_ext 8729cat >>conftest.$ac_ext <<_ACEOF 8730/* end confdefs.h. */ 8731 8732/* Override any gcc2 internal prototype to avoid an error. */ 8733#ifdef __cplusplus 8734extern "C" 8735#endif 8736/* We use char because int might match the return type of a gcc2 8737 builtin and then its argument prototype would still apply. */ 8738char dlopen (); 8739int 8740main () 8741{ 8742dlopen (); 8743 ; 8744 return 0; 8745} 8746_ACEOF 8747rm -f conftest.$ac_objext conftest$ac_exeext 8748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8749 (eval $ac_link) 2>conftest.er1 8750 ac_status=$? 8751 grep -v '^ *+' conftest.er1 >conftest.err 8752 rm -f conftest.er1 8753 cat conftest.err >&5 8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8755 (exit $ac_status); } && 8756 { ac_try='test -z "$ac_c_werror_flag" 8757 || test ! -s conftest.err' 8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8759 (eval $ac_try) 2>&5 8760 ac_status=$? 8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8762 (exit $ac_status); }; } && 8763 { ac_try='test -s conftest$ac_exeext' 8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8765 (eval $ac_try) 2>&5 8766 ac_status=$? 8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8768 (exit $ac_status); }; }; then 8769 ac_cv_lib_dl_dlopen=yes 8770else 8771 echo "$as_me: failed program was:" >&5 8772sed 's/^/| /' conftest.$ac_ext >&5 8773 8774ac_cv_lib_dl_dlopen=no 8775fi 8776rm -f conftest.err conftest.$ac_objext \ 8777 conftest$ac_exeext conftest.$ac_ext 8778LIBS=$ac_check_lib_save_LIBS 8779fi 8780echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8781echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8782if test $ac_cv_lib_dl_dlopen = yes; then 8783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8784else 8785 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8786echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8787if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8788 echo $ECHO_N "(cached) $ECHO_C" >&6 8789else 8790 ac_check_lib_save_LIBS=$LIBS 8791LIBS="-lsvld $LIBS" 8792cat >conftest.$ac_ext <<_ACEOF 8793/* confdefs.h. */ 8794_ACEOF 8795cat confdefs.h >>conftest.$ac_ext 8796cat >>conftest.$ac_ext <<_ACEOF 8797/* end confdefs.h. */ 8798 8799/* Override any gcc2 internal prototype to avoid an error. */ 8800#ifdef __cplusplus 8801extern "C" 8802#endif 8803/* We use char because int might match the return type of a gcc2 8804 builtin and then its argument prototype would still apply. */ 8805char dlopen (); 8806int 8807main () 8808{ 8809dlopen (); 8810 ; 8811 return 0; 8812} 8813_ACEOF 8814rm -f conftest.$ac_objext conftest$ac_exeext 8815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8816 (eval $ac_link) 2>conftest.er1 8817 ac_status=$? 8818 grep -v '^ *+' conftest.er1 >conftest.err 8819 rm -f conftest.er1 8820 cat conftest.err >&5 8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8822 (exit $ac_status); } && 8823 { ac_try='test -z "$ac_c_werror_flag" 8824 || test ! -s conftest.err' 8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8826 (eval $ac_try) 2>&5 8827 ac_status=$? 8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8829 (exit $ac_status); }; } && 8830 { ac_try='test -s conftest$ac_exeext' 8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8832 (eval $ac_try) 2>&5 8833 ac_status=$? 8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8835 (exit $ac_status); }; }; then 8836 ac_cv_lib_svld_dlopen=yes 8837else 8838 echo "$as_me: failed program was:" >&5 8839sed 's/^/| /' conftest.$ac_ext >&5 8840 8841ac_cv_lib_svld_dlopen=no 8842fi 8843rm -f conftest.err conftest.$ac_objext \ 8844 conftest$ac_exeext conftest.$ac_ext 8845LIBS=$ac_check_lib_save_LIBS 8846fi 8847echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8848echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8849if test $ac_cv_lib_svld_dlopen = yes; then 8850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8851else 8852 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8853echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8854if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8855 echo $ECHO_N "(cached) $ECHO_C" >&6 8856else 8857 ac_check_lib_save_LIBS=$LIBS 8858LIBS="-ldld $LIBS" 8859cat >conftest.$ac_ext <<_ACEOF 8860/* confdefs.h. */ 8861_ACEOF 8862cat confdefs.h >>conftest.$ac_ext 8863cat >>conftest.$ac_ext <<_ACEOF 8864/* end confdefs.h. */ 8865 8866/* Override any gcc2 internal prototype to avoid an error. */ 8867#ifdef __cplusplus 8868extern "C" 8869#endif 8870/* We use char because int might match the return type of a gcc2 8871 builtin and then its argument prototype would still apply. */ 8872char dld_link (); 8873int 8874main () 8875{ 8876dld_link (); 8877 ; 8878 return 0; 8879} 8880_ACEOF 8881rm -f conftest.$ac_objext conftest$ac_exeext 8882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8883 (eval $ac_link) 2>conftest.er1 8884 ac_status=$? 8885 grep -v '^ *+' conftest.er1 >conftest.err 8886 rm -f conftest.er1 8887 cat conftest.err >&5 8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8889 (exit $ac_status); } && 8890 { ac_try='test -z "$ac_c_werror_flag" 8891 || test ! -s conftest.err' 8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8893 (eval $ac_try) 2>&5 8894 ac_status=$? 8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8896 (exit $ac_status); }; } && 8897 { ac_try='test -s conftest$ac_exeext' 8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8899 (eval $ac_try) 2>&5 8900 ac_status=$? 8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8902 (exit $ac_status); }; }; then 8903 ac_cv_lib_dld_dld_link=yes 8904else 8905 echo "$as_me: failed program was:" >&5 8906sed 's/^/| /' conftest.$ac_ext >&5 8907 8908ac_cv_lib_dld_dld_link=no 8909fi 8910rm -f conftest.err conftest.$ac_objext \ 8911 conftest$ac_exeext conftest.$ac_ext 8912LIBS=$ac_check_lib_save_LIBS 8913fi 8914echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8915echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8916if test $ac_cv_lib_dld_dld_link = yes; then 8917 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8918fi 8919 8920 8921fi 8922 8923 8924fi 8925 8926 8927fi 8928 8929 8930fi 8931 8932 8933fi 8934 8935 ;; 8936 esac 8937 8938 if test "x$lt_cv_dlopen" != xno; then 8939 enable_dlopen=yes 8940 else 8941 enable_dlopen=no 8942 fi 8943 8944 case $lt_cv_dlopen in 8945 dlopen) 8946 save_CPPFLAGS="$CPPFLAGS" 8947 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8948 8949 save_LDFLAGS="$LDFLAGS" 8950 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8951 8952 save_LIBS="$LIBS" 8953 LIBS="$lt_cv_dlopen_libs $LIBS" 8954 8955 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8956echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8957if test "${lt_cv_dlopen_self+set}" = set; then 8958 echo $ECHO_N "(cached) $ECHO_C" >&6 8959else 8960 if test "$cross_compiling" = yes; then : 8961 lt_cv_dlopen_self=cross 8962else 8963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8964 lt_status=$lt_dlunknown 8965 cat > conftest.$ac_ext <<EOF 8966#line 8966 "configure" 8967#include "confdefs.h" 8968 8969#if HAVE_DLFCN_H 8970#include <dlfcn.h> 8971#endif 8972 8973#include <stdio.h> 8974 8975#ifdef RTLD_GLOBAL 8976# define LT_DLGLOBAL RTLD_GLOBAL 8977#else 8978# ifdef DL_GLOBAL 8979# define LT_DLGLOBAL DL_GLOBAL 8980# else 8981# define LT_DLGLOBAL 0 8982# endif 8983#endif 8984 8985/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8986 find out it does not work in some platform. */ 8987#ifndef LT_DLLAZY_OR_NOW 8988# ifdef RTLD_LAZY 8989# define LT_DLLAZY_OR_NOW RTLD_LAZY 8990# else 8991# ifdef DL_LAZY 8992# define LT_DLLAZY_OR_NOW DL_LAZY 8993# else 8994# ifdef RTLD_NOW 8995# define LT_DLLAZY_OR_NOW RTLD_NOW 8996# else 8997# ifdef DL_NOW 8998# define LT_DLLAZY_OR_NOW DL_NOW 8999# else 9000# define LT_DLLAZY_OR_NOW 0 9001# endif 9002# endif 9003# endif 9004# endif 9005#endif 9006 9007#ifdef __cplusplus 9008extern "C" void exit (int); 9009#endif 9010 9011void fnord() { int i=42;} 9012int main () 9013{ 9014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9015 int status = $lt_dlunknown; 9016 9017 if (self) 9018 { 9019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9021 /* dlclose (self); */ 9022 } 9023 9024 exit (status); 9025} 9026EOF 9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9028 (eval $ac_link) 2>&5 9029 ac_status=$? 9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9031 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9032 (./conftest; exit; ) 2>/dev/null 9033 lt_status=$? 9034 case x$lt_status in 9035 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9036 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9037 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9038 esac 9039 else : 9040 # compilation failed 9041 lt_cv_dlopen_self=no 9042 fi 9043fi 9044rm -fr conftest* 9045 9046 9047fi 9048echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9049echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9050 9051 if test "x$lt_cv_dlopen_self" = xyes; then 9052 LDFLAGS="$LDFLAGS $link_static_flag" 9053 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9054echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9055if test "${lt_cv_dlopen_self_static+set}" = set; then 9056 echo $ECHO_N "(cached) $ECHO_C" >&6 9057else 9058 if test "$cross_compiling" = yes; then : 9059 lt_cv_dlopen_self_static=cross 9060else 9061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9062 lt_status=$lt_dlunknown 9063 cat > conftest.$ac_ext <<EOF 9064#line 9064 "configure" 9065#include "confdefs.h" 9066 9067#if HAVE_DLFCN_H 9068#include <dlfcn.h> 9069#endif 9070 9071#include <stdio.h> 9072 9073#ifdef RTLD_GLOBAL 9074# define LT_DLGLOBAL RTLD_GLOBAL 9075#else 9076# ifdef DL_GLOBAL 9077# define LT_DLGLOBAL DL_GLOBAL 9078# else 9079# define LT_DLGLOBAL 0 9080# endif 9081#endif 9082 9083/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9084 find out it does not work in some platform. */ 9085#ifndef LT_DLLAZY_OR_NOW 9086# ifdef RTLD_LAZY 9087# define LT_DLLAZY_OR_NOW RTLD_LAZY 9088# else 9089# ifdef DL_LAZY 9090# define LT_DLLAZY_OR_NOW DL_LAZY 9091# else 9092# ifdef RTLD_NOW 9093# define LT_DLLAZY_OR_NOW RTLD_NOW 9094# else 9095# ifdef DL_NOW 9096# define LT_DLLAZY_OR_NOW DL_NOW 9097# else 9098# define LT_DLLAZY_OR_NOW 0 9099# endif 9100# endif 9101# endif 9102# endif 9103#endif 9104 9105#ifdef __cplusplus 9106extern "C" void exit (int); 9107#endif 9108 9109void fnord() { int i=42;} 9110int main () 9111{ 9112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9113 int status = $lt_dlunknown; 9114 9115 if (self) 9116 { 9117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9118 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9119 /* dlclose (self); */ 9120 } 9121 9122 exit (status); 9123} 9124EOF 9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9126 (eval $ac_link) 2>&5 9127 ac_status=$? 9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9129 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9130 (./conftest; exit; ) 2>/dev/null 9131 lt_status=$? 9132 case x$lt_status in 9133 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9134 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9135 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9136 esac 9137 else : 9138 # compilation failed 9139 lt_cv_dlopen_self_static=no 9140 fi 9141fi 9142rm -fr conftest* 9143 9144 9145fi 9146echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9147echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9148 fi 9149 9150 CPPFLAGS="$save_CPPFLAGS" 9151 LDFLAGS="$save_LDFLAGS" 9152 LIBS="$save_LIBS" 9153 ;; 9154 esac 9155 9156 case $lt_cv_dlopen_self in 9157 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9158 *) enable_dlopen_self=unknown ;; 9159 esac 9160 9161 case $lt_cv_dlopen_self_static in 9162 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9163 *) enable_dlopen_self_static=unknown ;; 9164 esac 9165fi 9166 9167 9168# Report which librarie types wil actually be built 9169echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9170echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9171echo "$as_me:$LINENO: result: $can_build_shared" >&5 9172echo "${ECHO_T}$can_build_shared" >&6 9173 9174echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9175echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9176test "$can_build_shared" = "no" && enable_shared=no 9177 9178# On AIX, shared libraries and static libraries use the same namespace, and 9179# are all built from PIC. 9180case "$host_os" in 9181aix3*) 9182 test "$enable_shared" = yes && enable_static=no 9183 if test -n "$RANLIB"; then 9184 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9185 postinstall_cmds='$RANLIB $lib' 9186 fi 9187 ;; 9188 9189aix4* | aix5*) 9190 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9191 test "$enable_shared" = yes && enable_static=no 9192 fi 9193 ;; 9194esac 9195echo "$as_me:$LINENO: result: $enable_shared" >&5 9196echo "${ECHO_T}$enable_shared" >&6 9197 9198echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9199echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9200# Make sure either enable_shared or enable_static is yes. 9201test "$enable_shared" = yes || enable_static=yes 9202echo "$as_me:$LINENO: result: $enable_static" >&5 9203echo "${ECHO_T}$enable_static" >&6 9204 9205# The else clause should only fire when bootstrapping the 9206# libtool distribution, otherwise you forgot to ship ltmain.sh 9207# with your package, and you will get complaints that there are 9208# no rules to generate ltmain.sh. 9209if test -f "$ltmain"; then 9210 # See if we are running on zsh, and set the options which allow our commands through 9211 # without removal of \ escapes. 9212 if test -n "${ZSH_VERSION+set}" ; then 9213 setopt NO_GLOB_SUBST 9214 fi 9215 # Now quote all the things that may contain metacharacters while being 9216 # careful not to overquote the AC_SUBSTed values. We take copies of the 9217 # variables and quote the copies for generation of the libtool script. 9218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9219 SED SHELL STRIP \ 9220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9222 deplibs_check_method reload_flag reload_cmds need_locks \ 9223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9224 lt_cv_sys_global_symbol_to_c_name_address \ 9225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9226 old_postinstall_cmds old_postuninstall_cmds \ 9227 compiler \ 9228 CC \ 9229 LD \ 9230 lt_prog_compiler_wl \ 9231 lt_prog_compiler_pic \ 9232 lt_prog_compiler_static \ 9233 lt_prog_compiler_no_builtin_flag \ 9234 export_dynamic_flag_spec \ 9235 thread_safe_flag_spec \ 9236 whole_archive_flag_spec \ 9237 enable_shared_with_static_runtimes \ 9238 old_archive_cmds \ 9239 old_archive_from_new_cmds \ 9240 predep_objects \ 9241 postdep_objects \ 9242 predeps \ 9243 postdeps \ 9244 compiler_lib_search_path \ 9245 archive_cmds \ 9246 archive_expsym_cmds \ 9247 postinstall_cmds \ 9248 postuninstall_cmds \ 9249 old_archive_from_expsyms_cmds \ 9250 allow_undefined_flag \ 9251 no_undefined_flag \ 9252 export_symbols_cmds \ 9253 hardcode_libdir_flag_spec \ 9254 hardcode_libdir_flag_spec_ld \ 9255 hardcode_libdir_separator \ 9256 hardcode_automatic \ 9257 module_cmds \ 9258 module_expsym_cmds \ 9259 lt_cv_prog_compiler_c_o \ 9260 exclude_expsyms \ 9261 include_expsyms; do 9262 9263 case $var in 9264 old_archive_cmds | \ 9265 old_archive_from_new_cmds | \ 9266 archive_cmds | \ 9267 archive_expsym_cmds | \ 9268 module_cmds | \ 9269 module_expsym_cmds | \ 9270 old_archive_from_expsyms_cmds | \ 9271 export_symbols_cmds | \ 9272 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9273 postinstall_cmds | postuninstall_cmds | \ 9274 old_postinstall_cmds | old_postuninstall_cmds | \ 9275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9276 # Double-quote double-evaled strings. 9277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9278 ;; 9279 *) 9280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9281 ;; 9282 esac 9283 done 9284 9285 case $lt_echo in 9286 *'\$0 --fallback-echo"') 9287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9288 ;; 9289 esac 9290 9291cfgfile="${ofile}T" 9292 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9293 $rm -f "$cfgfile" 9294 { echo "$as_me:$LINENO: creating $ofile" >&5 9295echo "$as_me: creating $ofile" >&6;} 9296 9297 cat <<__EOF__ >> "$cfgfile" 9298#! $SHELL 9299 9300# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9301# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9302# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9303# 9304# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9305# Free Software Foundation, Inc. 9306# 9307# This file is part of GNU Libtool: 9308# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9309# 9310# This program is free software; you can redistribute it and/or modify 9311# it under the terms of the GNU General Public License as published by 9312# the Free Software Foundation; either version 2 of the License, or 9313# (at your option) any later version. 9314# 9315# This program is distributed in the hope that it will be useful, but 9316# WITHOUT ANY WARRANTY; without even the implied warranty of 9317# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9318# General Public License for more details. 9319# 9320# You should have received a copy of the GNU General Public License 9321# along with this program; if not, write to the Free Software 9322# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9323# 9324# As a special exception to the GNU General Public License, if you 9325# distribute this file as part of a program that contains a 9326# configuration script generated by Autoconf, you may include it under 9327# the same distribution terms that you use for the rest of that program. 9328 9329# A sed program that does not truncate output. 9330SED=$lt_SED 9331 9332# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9333Xsed="$SED -e s/^X//" 9334 9335# The HP-UX ksh and POSIX shell print the target directory to stdout 9336# if CDPATH is set. 9337(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9338 9339# The names of the tagged configurations supported by this script. 9340available_tags= 9341 9342# ### BEGIN LIBTOOL CONFIG 9343 9344# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9345 9346# Shell to use when invoking shell scripts. 9347SHELL=$lt_SHELL 9348 9349# Whether or not to build shared libraries. 9350build_libtool_libs=$enable_shared 9351 9352# Whether or not to build static libraries. 9353build_old_libs=$enable_static 9354 9355# Whether or not to add -lc for building shared libraries. 9356build_libtool_need_lc=$archive_cmds_need_lc 9357 9358# Whether or not to disallow shared libs when runtime libs are static 9359allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9360 9361# Whether or not to optimize for fast installation. 9362fast_install=$enable_fast_install 9363 9364# The host system. 9365host_alias=$host_alias 9366host=$host 9367 9368# An echo program that does not interpret backslashes. 9369echo=$lt_echo 9370 9371# The archiver. 9372AR=$lt_AR 9373AR_FLAGS=$lt_AR_FLAGS 9374 9375# A C compiler. 9376LTCC=$lt_LTCC 9377 9378# A language-specific compiler. 9379CC=$lt_compiler 9380 9381# Is the compiler the GNU C compiler? 9382with_gcc=$GCC 9383 9384# An ERE matcher. 9385EGREP=$lt_EGREP 9386 9387# The linker used to build libraries. 9388LD=$lt_LD 9389 9390# Whether we need hard or soft links. 9391LN_S=$lt_LN_S 9392 9393# A BSD-compatible nm program. 9394NM=$lt_NM 9395 9396# A symbol stripping program 9397STRIP=$lt_STRIP 9398 9399# Used to examine libraries when file_magic_cmd begins "file" 9400MAGIC_CMD=$MAGIC_CMD 9401 9402# Used on cygwin: DLL creation program. 9403DLLTOOL="$DLLTOOL" 9404 9405# Used on cygwin: object dumper. 9406OBJDUMP="$OBJDUMP" 9407 9408# Used on cygwin: assembler. 9409AS="$AS" 9410 9411# The name of the directory that contains temporary libtool files. 9412objdir=$objdir 9413 9414# How to create reloadable object files. 9415reload_flag=$lt_reload_flag 9416reload_cmds=$lt_reload_cmds 9417 9418# How to pass a linker flag through the compiler. 9419wl=$lt_lt_prog_compiler_wl 9420 9421# Object file suffix (normally "o"). 9422objext="$ac_objext" 9423 9424# Old archive suffix (normally "a"). 9425libext="$libext" 9426 9427# Shared library suffix (normally ".so"). 9428shrext_cmds='$shrext_cmds' 9429 9430# Executable file suffix (normally ""). 9431exeext="$exeext" 9432 9433# Additional compiler flags for building library objects. 9434pic_flag=$lt_lt_prog_compiler_pic 9435pic_mode=$pic_mode 9436 9437# What is the maximum length of a command? 9438max_cmd_len=$lt_cv_sys_max_cmd_len 9439 9440# Does compiler simultaneously support -c and -o options? 9441compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9442 9443# Must we lock files when doing compilation ? 9444need_locks=$lt_need_locks 9445 9446# Do we need the lib prefix for modules? 9447need_lib_prefix=$need_lib_prefix 9448 9449# Do we need a version for libraries? 9450need_version=$need_version 9451 9452# Whether dlopen is supported. 9453dlopen_support=$enable_dlopen 9454 9455# Whether dlopen of programs is supported. 9456dlopen_self=$enable_dlopen_self 9457 9458# Whether dlopen of statically linked programs is supported. 9459dlopen_self_static=$enable_dlopen_self_static 9460 9461# Compiler flag to prevent dynamic linking. 9462link_static_flag=$lt_lt_prog_compiler_static 9463 9464# Compiler flag to turn off builtin functions. 9465no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9466 9467# Compiler flag to allow reflexive dlopens. 9468export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9469 9470# Compiler flag to generate shared objects directly from archives. 9471whole_archive_flag_spec=$lt_whole_archive_flag_spec 9472 9473# Compiler flag to generate thread-safe objects. 9474thread_safe_flag_spec=$lt_thread_safe_flag_spec 9475 9476# Library versioning type. 9477version_type=$version_type 9478 9479# Format of library name prefix. 9480libname_spec=$lt_libname_spec 9481 9482# List of archive names. First name is the real one, the rest are links. 9483# The last name is the one that the linker finds with -lNAME. 9484library_names_spec=$lt_library_names_spec 9485 9486# The coded name of the library, if different from the real name. 9487soname_spec=$lt_soname_spec 9488 9489# Commands used to build and install an old-style archive. 9490RANLIB=$lt_RANLIB 9491old_archive_cmds=$lt_old_archive_cmds 9492old_postinstall_cmds=$lt_old_postinstall_cmds 9493old_postuninstall_cmds=$lt_old_postuninstall_cmds 9494 9495# Create an old-style archive from a shared archive. 9496old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9497 9498# Create a temporary old-style archive to link instead of a shared archive. 9499old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9500 9501# Commands used to build and install a shared archive. 9502archive_cmds=$lt_archive_cmds 9503archive_expsym_cmds=$lt_archive_expsym_cmds 9504postinstall_cmds=$lt_postinstall_cmds 9505postuninstall_cmds=$lt_postuninstall_cmds 9506 9507# Commands used to build a loadable module (assumed same as above if empty) 9508module_cmds=$lt_module_cmds 9509module_expsym_cmds=$lt_module_expsym_cmds 9510 9511# Commands to strip libraries. 9512old_striplib=$lt_old_striplib 9513striplib=$lt_striplib 9514 9515# Dependencies to place before the objects being linked to create a 9516# shared library. 9517predep_objects=$lt_predep_objects 9518 9519# Dependencies to place after the objects being linked to create a 9520# shared library. 9521postdep_objects=$lt_postdep_objects 9522 9523# Dependencies to place before the objects being linked to create a 9524# shared library. 9525predeps=$lt_predeps 9526 9527# Dependencies to place after the objects being linked to create a 9528# shared library. 9529postdeps=$lt_postdeps 9530 9531# The library search path used internally by the compiler when linking 9532# a shared library. 9533compiler_lib_search_path=$lt_compiler_lib_search_path 9534 9535# Method to check whether dependent libraries are shared objects. 9536deplibs_check_method=$lt_deplibs_check_method 9537 9538# Command to use when deplibs_check_method == file_magic. 9539file_magic_cmd=$lt_file_magic_cmd 9540 9541# Flag that allows shared libraries with undefined symbols to be built. 9542allow_undefined_flag=$lt_allow_undefined_flag 9543 9544# Flag that forces no undefined symbols. 9545no_undefined_flag=$lt_no_undefined_flag 9546 9547# Commands used to finish a libtool library installation in a directory. 9548finish_cmds=$lt_finish_cmds 9549 9550# Same as above, but a single script fragment to be evaled but not shown. 9551finish_eval=$lt_finish_eval 9552 9553# Take the output of nm and produce a listing of raw symbols and C names. 9554global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9555 9556# Transform the output of nm in a proper C declaration 9557global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9558 9559# Transform the output of nm in a C name address pair 9560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9561 9562# This is the shared library runtime path variable. 9563runpath_var=$runpath_var 9564 9565# This is the shared library path variable. 9566shlibpath_var=$shlibpath_var 9567 9568# Is shlibpath searched before the hard-coded library search path? 9569shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9570 9571# How to hardcode a shared library path into an executable. 9572hardcode_action=$hardcode_action 9573 9574# Whether we should hardcode library paths into libraries. 9575hardcode_into_libs=$hardcode_into_libs 9576 9577# Flag to hardcode \$libdir into a binary during linking. 9578# This must work even if \$libdir does not exist. 9579hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9580 9581# If ld is used when linking, flag to hardcode \$libdir into 9582# a binary during linking. This must work even if \$libdir does 9583# not exist. 9584hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9585 9586# Whether we need a single -rpath flag with a separated argument. 9587hardcode_libdir_separator=$lt_hardcode_libdir_separator 9588 9589# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9590# resulting binary. 9591hardcode_direct=$hardcode_direct 9592 9593# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9594# resulting binary. 9595hardcode_minus_L=$hardcode_minus_L 9596 9597# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9598# the resulting binary. 9599hardcode_shlibpath_var=$hardcode_shlibpath_var 9600 9601# Set to yes if building a shared library automatically hardcodes DIR into the library 9602# and all subsequent libraries and executables linked against it. 9603hardcode_automatic=$hardcode_automatic 9604 9605# Variables whose values should be saved in libtool wrapper scripts and 9606# restored at relink time. 9607variables_saved_for_relink="$variables_saved_for_relink" 9608 9609# Whether libtool must link a program against all its dependency libraries. 9610link_all_deplibs=$link_all_deplibs 9611 9612# Compile-time system search path for libraries 9613sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9614 9615# Run-time system search path for libraries 9616sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9617 9618# Fix the shell variable \$srcfile for the compiler. 9619fix_srcfile_path="$fix_srcfile_path" 9620 9621# Set to yes if exported symbols are required. 9622always_export_symbols=$always_export_symbols 9623 9624# The commands to list exported symbols. 9625export_symbols_cmds=$lt_export_symbols_cmds 9626 9627# The commands to extract the exported symbol list from a shared archive. 9628extract_expsyms_cmds=$lt_extract_expsyms_cmds 9629 9630# Symbols that should not be listed in the preloaded symbols. 9631exclude_expsyms=$lt_exclude_expsyms 9632 9633# Symbols that must always be exported. 9634include_expsyms=$lt_include_expsyms 9635 9636# ### END LIBTOOL CONFIG 9637 9638__EOF__ 9639 9640 9641 case $host_os in 9642 aix3*) 9643 cat <<\EOF >> "$cfgfile" 9644 9645# AIX sometimes has problems with the GCC collect2 program. For some 9646# reason, if we set the COLLECT_NAMES environment variable, the problems 9647# vanish in a puff of smoke. 9648if test "X${COLLECT_NAMES+set}" != Xset; then 9649 COLLECT_NAMES= 9650 export COLLECT_NAMES 9651fi 9652EOF 9653 ;; 9654 esac 9655 9656 # We use sed instead of cat because bash on DJGPP gets confused if 9657 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9658 # text mode, it properly converts lines to CR/LF. This bash problem 9659 # is reportedly fixed, but why not run on old versions too? 9660 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9661 9662 mv -f "$cfgfile" "$ofile" || \ 9663 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9664 chmod +x "$ofile" 9665 9666else 9667 # If there is no Makefile yet, we rely on a make rule to execute 9668 # `config.status --recheck' to rerun these tests and create the 9669 # libtool script then. 9670 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9671 if test -f "$ltmain_in"; then 9672 test -f Makefile && make "$ltmain" 9673 fi 9674fi 9675 9676 9677ac_ext=c 9678ac_cpp='$CPP $CPPFLAGS' 9679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9681ac_compiler_gnu=$ac_cv_c_compiler_gnu 9682 9683CC="$lt_save_CC" 9684 9685 9686# Check whether --with-tags or --without-tags was given. 9687if test "${with_tags+set}" = set; then 9688 withval="$with_tags" 9689 tagnames="$withval" 9690fi; 9691 9692if test -f "$ltmain" && test -n "$tagnames"; then 9693 if test ! -f "${ofile}"; then 9694 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9695echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9696 fi 9697 9698 if test -z "$LTCC"; then 9699 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9700 if test -z "$LTCC"; then 9701 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9702echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9703 else 9704 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9705echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9706 fi 9707 fi 9708 9709 # Extract list of available tagged configurations in $ofile. 9710 # Note that this assumes the entire list is on one line. 9711 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9712 9713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9714 for tagname in $tagnames; do 9715 IFS="$lt_save_ifs" 9716 # Check whether tagname contains only valid characters 9717 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9718 "") ;; 9719 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9720echo "$as_me: error: invalid tag name: $tagname" >&2;} 9721 { (exit 1); exit 1; }; } 9722 ;; 9723 esac 9724 9725 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9726 then 9727 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9728echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9729 { (exit 1); exit 1; }; } 9730 fi 9731 9732 # Update the list of available tags. 9733 if test -n "$tagname"; then 9734 echo appending configuration tag \"$tagname\" to $ofile 9735 9736 case $tagname in 9737 CXX) 9738 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9739 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9740 (test "X$CXX" != "Xg++"))) ; then 9741 ac_ext=cc 9742ac_cpp='$CXXCPP $CPPFLAGS' 9743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9746 9747 9748 9749 9750archive_cmds_need_lc_CXX=no 9751allow_undefined_flag_CXX= 9752always_export_symbols_CXX=no 9753archive_expsym_cmds_CXX= 9754export_dynamic_flag_spec_CXX= 9755hardcode_direct_CXX=no 9756hardcode_libdir_flag_spec_CXX= 9757hardcode_libdir_flag_spec_ld_CXX= 9758hardcode_libdir_separator_CXX= 9759hardcode_minus_L_CXX=no 9760hardcode_automatic_CXX=no 9761module_cmds_CXX= 9762module_expsym_cmds_CXX= 9763link_all_deplibs_CXX=unknown 9764old_archive_cmds_CXX=$old_archive_cmds 9765no_undefined_flag_CXX= 9766whole_archive_flag_spec_CXX= 9767enable_shared_with_static_runtimes_CXX=no 9768 9769# Dependencies to place before and after the object being linked: 9770predep_objects_CXX= 9771postdep_objects_CXX= 9772predeps_CXX= 9773postdeps_CXX= 9774compiler_lib_search_path_CXX= 9775 9776# Source file extension for C++ test sources. 9777ac_ext=cc 9778 9779# Object file extension for compiled C++ test sources. 9780objext=o 9781objext_CXX=$objext 9782 9783# Code to be used in simple compile tests 9784lt_simple_compile_test_code="int some_variable = 0;\n" 9785 9786# Code to be used in simple link tests 9787lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9788 9789# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9790 9791# If no C compiler was specified, use CC. 9792LTCC=${LTCC-"$CC"} 9793 9794# Allow CC to be a program name with arguments. 9795compiler=$CC 9796 9797 9798# Allow CC to be a program name with arguments. 9799lt_save_CC=$CC 9800lt_save_LD=$LD 9801lt_save_GCC=$GCC 9802GCC=$GXX 9803lt_save_with_gnu_ld=$with_gnu_ld 9804lt_save_path_LD=$lt_cv_path_LD 9805if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9806 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9807else 9808 unset lt_cv_prog_gnu_ld 9809fi 9810if test -n "${lt_cv_path_LDCXX+set}"; then 9811 lt_cv_path_LD=$lt_cv_path_LDCXX 9812else 9813 unset lt_cv_path_LD 9814fi 9815test -z "${LDCXX+set}" || LD=$LDCXX 9816CC=${CXX-"c++"} 9817compiler=$CC 9818compiler_CXX=$CC 9819cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9820 9821# We don't want -fno-exception wen compiling C++ code, so set the 9822# no_builtin_flag separately 9823if test "$GXX" = yes; then 9824 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9825else 9826 lt_prog_compiler_no_builtin_flag_CXX= 9827fi 9828 9829if test "$GXX" = yes; then 9830 # Set up default GNU C++ configuration 9831 9832 9833# Check whether --with-gnu-ld or --without-gnu-ld was given. 9834if test "${with_gnu_ld+set}" = set; then 9835 withval="$with_gnu_ld" 9836 test "$withval" = no || with_gnu_ld=yes 9837else 9838 with_gnu_ld=no 9839fi; 9840ac_prog=ld 9841if test "$GCC" = yes; then 9842 # Check if gcc -print-prog-name=ld gives a path. 9843 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9844echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9845 case $host in 9846 *-*-mingw*) 9847 # gcc leaves a trailing carriage return which upsets mingw 9848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9849 *) 9850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9851 esac 9852 case $ac_prog in 9853 # Accept absolute paths. 9854 [\\/]* | ?:[\\/]*) 9855 re_direlt='/[^/][^/]*/\.\./' 9856 # Canonicalize the pathname of ld 9857 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9858 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9859 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9860 done 9861 test -z "$LD" && LD="$ac_prog" 9862 ;; 9863 "") 9864 # If it fails, then pretend we aren't using GCC. 9865 ac_prog=ld 9866 ;; 9867 *) 9868 # If it is relative, then search for the first ld in PATH. 9869 with_gnu_ld=unknown 9870 ;; 9871 esac 9872elif test "$with_gnu_ld" = yes; then 9873 echo "$as_me:$LINENO: checking for GNU ld" >&5 9874echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9875else 9876 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9877echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9878fi 9879if test "${lt_cv_path_LD+set}" = set; then 9880 echo $ECHO_N "(cached) $ECHO_C" >&6 9881else 9882 if test -z "$LD"; then 9883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9884 for ac_dir in $PATH; do 9885 IFS="$lt_save_ifs" 9886 test -z "$ac_dir" && ac_dir=. 9887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9888 lt_cv_path_LD="$ac_dir/$ac_prog" 9889 # Check to see if the program is GNU ld. I'd rather use --version, 9890 # but apparently some GNU ld's only accept -v. 9891 # Break only if it was the GNU/non-GNU ld that we prefer. 9892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9893 *GNU* | *'with BFD'*) 9894 test "$with_gnu_ld" != no && break 9895 ;; 9896 *) 9897 test "$with_gnu_ld" != yes && break 9898 ;; 9899 esac 9900 fi 9901 done 9902 IFS="$lt_save_ifs" 9903else 9904 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9905fi 9906fi 9907 9908LD="$lt_cv_path_LD" 9909if test -n "$LD"; then 9910 echo "$as_me:$LINENO: result: $LD" >&5 9911echo "${ECHO_T}$LD" >&6 9912else 9913 echo "$as_me:$LINENO: result: no" >&5 9914echo "${ECHO_T}no" >&6 9915fi 9916test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9917echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9918 { (exit 1); exit 1; }; } 9919echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9920echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9921if test "${lt_cv_prog_gnu_ld+set}" = set; then 9922 echo $ECHO_N "(cached) $ECHO_C" >&6 9923else 9924 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9925case `$LD -v 2>&1 </dev/null` in 9926*GNU* | *'with BFD'*) 9927 lt_cv_prog_gnu_ld=yes 9928 ;; 9929*) 9930 lt_cv_prog_gnu_ld=no 9931 ;; 9932esac 9933fi 9934echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9935echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9936with_gnu_ld=$lt_cv_prog_gnu_ld 9937 9938 9939 9940 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9941 # archiving commands below assume that GNU ld is being used. 9942 if test "$with_gnu_ld" = yes; then 9943 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9944 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' 9945 9946 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9948 9949 # If archive_cmds runs LD, not CC, wlarc should be empty 9950 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9951 # investigate it a little bit more. (MM) 9952 wlarc='${wl}' 9953 9954 # ancient GNU ld didn't support --whole-archive et. al. 9955 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9956 grep 'no-whole-archive' > /dev/null; then 9957 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9958 else 9959 whole_archive_flag_spec_CXX= 9960 fi 9961 else 9962 with_gnu_ld=no 9963 wlarc= 9964 9965 # A generic and very simple default shared library creation 9966 # command for GNU C++ for the case where it uses the native 9967 # linker, instead of GNU ld. If possible, this setting should 9968 # overridden to take advantage of the native linker features on 9969 # the platform it is being used on. 9970 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9971 fi 9972 9973 # Commands to make compiler produce verbose output that lists 9974 # what "hidden" libraries, object files and flags are used when 9975 # linking a shared library. 9976 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9977 9978else 9979 GXX=no 9980 with_gnu_ld=no 9981 wlarc= 9982fi 9983 9984# PORTME: fill in a description of your system's C++ link characteristics 9985echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9986echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9987ld_shlibs_CXX=yes 9988case $host_os in 9989 aix3*) 9990 # FIXME: insert proper C++ library support 9991 ld_shlibs_CXX=no 9992 ;; 9993 aix4* | aix5*) 9994 if test "$host_cpu" = ia64; then 9995 # On IA64, the linker does run time linking by default, so we don't 9996 # have to do anything special. 9997 aix_use_runtimelinking=no 9998 exp_sym_flag='-Bexport' 9999 no_entry_flag="" 10000 else 10001 aix_use_runtimelinking=no 10002 10003 # Test if we are trying to use run time linking or normal 10004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10005 # need to do runtime linking. 10006 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10007 for ld_flag in $LDFLAGS; do 10008 case $ld_flag in 10009 *-brtl*) 10010 aix_use_runtimelinking=yes 10011 break 10012 ;; 10013 esac 10014 done 10015 esac 10016 10017 exp_sym_flag='-bexport' 10018 no_entry_flag='-bnoentry' 10019 fi 10020 10021 # When large executables or shared objects are built, AIX ld can 10022 # have problems creating the table of contents. If linking a library 10023 # or program results in "error TOC overflow" add -mminimal-toc to 10024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10026 10027 archive_cmds_CXX='' 10028 hardcode_direct_CXX=yes 10029 hardcode_libdir_separator_CXX=':' 10030 link_all_deplibs_CXX=yes 10031 10032 if test "$GXX" = yes; then 10033 case $host_os in aix4.012|aix4.012.*) 10034 # We only want to do this on AIX 4.2 and lower, the check 10035 # below for broken collect2 doesn't work under 4.3+ 10036 collect2name=`${CC} -print-prog-name=collect2` 10037 if test -f "$collect2name" && \ 10038 strings "$collect2name" | grep resolve_lib_name >/dev/null 10039 then 10040 # We have reworked collect2 10041 hardcode_direct_CXX=yes 10042 else 10043 # We have old collect2 10044 hardcode_direct_CXX=unsupported 10045 # It fails to find uninstalled libraries when the uninstalled 10046 # path is not listed in the libpath. Setting hardcode_minus_L 10047 # to unsupported forces relinking 10048 hardcode_minus_L_CXX=yes 10049 hardcode_libdir_flag_spec_CXX='-L$libdir' 10050 hardcode_libdir_separator_CXX= 10051 fi 10052 esac 10053 shared_flag='-shared' 10054 else 10055 # not using gcc 10056 if test "$host_cpu" = ia64; then 10057 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10058 # chokes on -Wl,-G. The following line is correct: 10059 shared_flag='-G' 10060 else 10061 if test "$aix_use_runtimelinking" = yes; then 10062 shared_flag='${wl}-G' 10063 else 10064 shared_flag='${wl}-bM:SRE' 10065 fi 10066 fi 10067 fi 10068 10069 # It seems that -bexpall does not export symbols beginning with 10070 # underscore (_), so it is better to generate a list of symbols to export. 10071 always_export_symbols_CXX=yes 10072 if test "$aix_use_runtimelinking" = yes; then 10073 # Warning - without using the other runtime loading flags (-brtl), 10074 # -berok will link without error, but may produce a broken library. 10075 allow_undefined_flag_CXX='-berok' 10076 # Determine the default libpath from the value encoded in an empty executable. 10077 cat >conftest.$ac_ext <<_ACEOF 10078/* confdefs.h. */ 10079_ACEOF 10080cat confdefs.h >>conftest.$ac_ext 10081cat >>conftest.$ac_ext <<_ACEOF 10082/* end confdefs.h. */ 10083 10084int 10085main () 10086{ 10087 10088 ; 10089 return 0; 10090} 10091_ACEOF 10092rm -f conftest.$ac_objext conftest$ac_exeext 10093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10094 (eval $ac_link) 2>conftest.er1 10095 ac_status=$? 10096 grep -v '^ *+' conftest.er1 >conftest.err 10097 rm -f conftest.er1 10098 cat conftest.err >&5 10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10100 (exit $ac_status); } && 10101 { ac_try='test -z "$ac_cxx_werror_flag" 10102 || test ! -s conftest.err' 10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10104 (eval $ac_try) 2>&5 10105 ac_status=$? 10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 (exit $ac_status); }; } && 10108 { ac_try='test -s conftest$ac_exeext' 10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10110 (eval $ac_try) 2>&5 10111 ac_status=$? 10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10113 (exit $ac_status); }; }; then 10114 10115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10116}'` 10117# Check for a 64-bit object if we didn't find anything. 10118if 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; } 10119}'`; fi 10120else 10121 echo "$as_me: failed program was:" >&5 10122sed 's/^/| /' conftest.$ac_ext >&5 10123 10124fi 10125rm -f conftest.err conftest.$ac_objext \ 10126 conftest$ac_exeext conftest.$ac_ext 10127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10128 10129 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10130 10131 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10132 else 10133 if test "$host_cpu" = ia64; then 10134 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10135 allow_undefined_flag_CXX="-z nodefs" 10136 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10137 else 10138 # Determine the default libpath from the value encoded in an empty executable. 10139 cat >conftest.$ac_ext <<_ACEOF 10140/* confdefs.h. */ 10141_ACEOF 10142cat confdefs.h >>conftest.$ac_ext 10143cat >>conftest.$ac_ext <<_ACEOF 10144/* end confdefs.h. */ 10145 10146int 10147main () 10148{ 10149 10150 ; 10151 return 0; 10152} 10153_ACEOF 10154rm -f conftest.$ac_objext conftest$ac_exeext 10155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10156 (eval $ac_link) 2>conftest.er1 10157 ac_status=$? 10158 grep -v '^ *+' conftest.er1 >conftest.err 10159 rm -f conftest.er1 10160 cat conftest.err >&5 10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10162 (exit $ac_status); } && 10163 { ac_try='test -z "$ac_cxx_werror_flag" 10164 || test ! -s conftest.err' 10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10166 (eval $ac_try) 2>&5 10167 ac_status=$? 10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10169 (exit $ac_status); }; } && 10170 { ac_try='test -s conftest$ac_exeext' 10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10172 (eval $ac_try) 2>&5 10173 ac_status=$? 10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10175 (exit $ac_status); }; }; then 10176 10177aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10178}'` 10179# Check for a 64-bit object if we didn't find anything. 10180if 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; } 10181}'`; fi 10182else 10183 echo "$as_me: failed program was:" >&5 10184sed 's/^/| /' conftest.$ac_ext >&5 10185 10186fi 10187rm -f conftest.err conftest.$ac_objext \ 10188 conftest$ac_exeext conftest.$ac_ext 10189if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10190 10191 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10192 # Warning - without using the other run time loading flags, 10193 # -berok will link without error, but may produce a broken library. 10194 no_undefined_flag_CXX=' ${wl}-bernotok' 10195 allow_undefined_flag_CXX=' ${wl}-berok' 10196 # -bexpall does not export symbols beginning with underscore (_) 10197 always_export_symbols_CXX=yes 10198 # Exported symbols can be pulled into shared objects from archives 10199 whole_archive_flag_spec_CXX=' ' 10200 archive_cmds_need_lc_CXX=yes 10201 # This is similar to how AIX traditionally builds it's shared libraries. 10202 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10203 fi 10204 fi 10205 ;; 10206 chorus*) 10207 case $cc_basename in 10208 *) 10209 # FIXME: insert proper C++ library support 10210 ld_shlibs_CXX=no 10211 ;; 10212 esac 10213 ;; 10214 10215 10216 cygwin* | mingw* | pw32*) 10217 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10218 # as there is no search path for DLLs. 10219 hardcode_libdir_flag_spec_CXX='-L$libdir' 10220 allow_undefined_flag_CXX=unsupported 10221 always_export_symbols_CXX=no 10222 enable_shared_with_static_runtimes_CXX=yes 10223 10224 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10225 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10226 # If the export-symbols file already is a .def file (1st line 10227 # is EXPORTS), use it as is; otherwise, prepend... 10228 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10229 cp $export_symbols $output_objdir/$soname.def; 10230 else 10231 echo EXPORTS > $output_objdir/$soname.def; 10232 cat $export_symbols >> $output_objdir/$soname.def; 10233 fi~ 10234 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10235 else 10236 ld_shlibs_CXX=no 10237 fi 10238 ;; 10239 darwin* | rhapsody*) 10240 case "$host_os" in 10241 rhapsody* | darwin1.[012]) 10242 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10243 ;; 10244 *) # Darwin 1.3 on 10245 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10246 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10247 else 10248 case ${MACOSX_DEPLOYMENT_TARGET} in 10249 10.[012]) 10250 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10251 ;; 10252 10.*) 10253 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10254 ;; 10255 esac 10256 fi 10257 ;; 10258 esac 10259 archive_cmds_need_lc_CXX=no 10260 hardcode_direct_CXX=no 10261 hardcode_automatic_CXX=yes 10262 hardcode_shlibpath_var_CXX=unsupported 10263 whole_archive_flag_spec_CXX='' 10264 link_all_deplibs_CXX=yes 10265 10266 if test "$GXX" = yes ; then 10267 lt_int_apple_cc_single_mod=no 10268 output_verbose_link_cmd='echo' 10269 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10270 lt_int_apple_cc_single_mod=yes 10271 fi 10272 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10273 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10274 else 10275 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' 10276 fi 10277 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10278 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10279 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10280 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}' 10281 else 10282 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}' 10283 fi 10284 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}' 10285 else 10286 case "$cc_basename" in 10287 xlc*) 10288 output_verbose_link_cmd='echo' 10289 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' 10290 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10291 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10292 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}' 10293 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}' 10294 ;; 10295 *) 10296 ld_shlibs_CXX=no 10297 ;; 10298 esac 10299 fi 10300 ;; 10301 10302 dgux*) 10303 case $cc_basename in 10304 ec++) 10305 # FIXME: insert proper C++ library support 10306 ld_shlibs_CXX=no 10307 ;; 10308 ghcx) 10309 # Green Hills C++ Compiler 10310 # FIXME: insert proper C++ library support 10311 ld_shlibs_CXX=no 10312 ;; 10313 *) 10314 # FIXME: insert proper C++ library support 10315 ld_shlibs_CXX=no 10316 ;; 10317 esac 10318 ;; 10319 freebsd12*) 10320 # C++ shared libraries reported to be fairly broken before switch to ELF 10321 ld_shlibs_CXX=no 10322 ;; 10323 freebsd-elf*) 10324 archive_cmds_need_lc_CXX=no 10325 ;; 10326 freebsd* | kfreebsd*-gnu) 10327 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10328 # conventions 10329 ld_shlibs_CXX=yes 10330 ;; 10331 gnu*) 10332 ;; 10333 hpux9*) 10334 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10335 hardcode_libdir_separator_CXX=: 10336 export_dynamic_flag_spec_CXX='${wl}-E' 10337 hardcode_direct_CXX=yes 10338 hardcode_minus_L_CXX=yes # Not in the search PATH, 10339 # but as the default 10340 # location of the library. 10341 10342 case $cc_basename in 10343 CC) 10344 # FIXME: insert proper C++ library support 10345 ld_shlibs_CXX=no 10346 ;; 10347 aCC) 10348 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' 10349 # Commands to make compiler produce verbose output that lists 10350 # what "hidden" libraries, object files and flags are used when 10351 # linking a shared library. 10352 # 10353 # There doesn't appear to be a way to prevent this compiler from 10354 # explicitly linking system object files so we need to strip them 10355 # from the output so that they don't get included in the library 10356 # dependencies. 10357 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' 10358 ;; 10359 *) 10360 if test "$GXX" = yes; then 10361 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' 10362 else 10363 # FIXME: insert proper C++ library support 10364 ld_shlibs_CXX=no 10365 fi 10366 ;; 10367 esac 10368 ;; 10369 hpux10*|hpux11*) 10370 if test $with_gnu_ld = no; then 10371 case "$host_cpu" in 10372 hppa*64*) 10373 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10374 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10375 hardcode_libdir_separator_CXX=: 10376 ;; 10377 ia64*) 10378 hardcode_libdir_flag_spec_CXX='-L$libdir' 10379 ;; 10380 *) 10381 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10382 hardcode_libdir_separator_CXX=: 10383 export_dynamic_flag_spec_CXX='${wl}-E' 10384 ;; 10385 esac 10386 fi 10387 case "$host_cpu" in 10388 hppa*64*) 10389 hardcode_direct_CXX=no 10390 hardcode_shlibpath_var_CXX=no 10391 ;; 10392 ia64*) 10393 hardcode_direct_CXX=no 10394 hardcode_shlibpath_var_CXX=no 10395 hardcode_minus_L_CXX=yes # Not in the search PATH, 10396 # but as the default 10397 # location of the library. 10398 ;; 10399 *) 10400 hardcode_direct_CXX=yes 10401 hardcode_minus_L_CXX=yes # Not in the search PATH, 10402 # but as the default 10403 # location of the library. 10404 ;; 10405 esac 10406 10407 case $cc_basename in 10408 CC) 10409 # FIXME: insert proper C++ library support 10410 ld_shlibs_CXX=no 10411 ;; 10412 aCC) 10413 case "$host_cpu" in 10414 hppa*64*|ia64*) 10415 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10416 ;; 10417 *) 10418 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10419 ;; 10420 esac 10421 # Commands to make compiler produce verbose output that lists 10422 # what "hidden" libraries, object files and flags are used when 10423 # linking a shared library. 10424 # 10425 # There doesn't appear to be a way to prevent this compiler from 10426 # explicitly linking system object files so we need to strip them 10427 # from the output so that they don't get included in the library 10428 # dependencies. 10429 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' 10430 ;; 10431 *) 10432 if test "$GXX" = yes; then 10433 if test $with_gnu_ld = no; then 10434 case "$host_cpu" in 10435 ia64*|hppa*64*) 10436 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10437 ;; 10438 *) 10439 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' 10440 ;; 10441 esac 10442 fi 10443 else 10444 # FIXME: insert proper C++ library support 10445 ld_shlibs_CXX=no 10446 fi 10447 ;; 10448 esac 10449 ;; 10450 irix5* | irix6*) 10451 case $cc_basename in 10452 CC) 10453 # SGI C++ 10454 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 ${objdir}/so_locations -o $lib' 10455 10456 # Archives containing C++ object files must be created using 10457 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10458 # necessary to make sure instantiated templates are included 10459 # in the archive. 10460 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10461 ;; 10462 *) 10463 if test "$GXX" = yes; then 10464 if test "$with_gnu_ld" = no; then 10465 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}${objdir}/so_locations -o $lib' 10466 else 10467 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' 10468 fi 10469 fi 10470 link_all_deplibs_CXX=yes 10471 ;; 10472 esac 10473 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10474 hardcode_libdir_separator_CXX=: 10475 ;; 10476 linux*) 10477 case $cc_basename in 10478 KCC) 10479 # Kuck and Associates, Inc. (KAI) C++ Compiler 10480 10481 # KCC will only create a shared library if the output file 10482 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10483 # to its proper name (with version) after linking. 10484 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' 10485 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' 10486 # Commands to make compiler produce verbose output that lists 10487 # what "hidden" libraries, object files and flags are used when 10488 # linking a shared library. 10489 # 10490 # There doesn't appear to be a way to prevent this compiler from 10491 # explicitly linking system object files so we need to strip them 10492 # from the output so that they don't get included in the library 10493 # dependencies. 10494 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' 10495 10496 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10498 10499 # Archives containing C++ object files must be created using 10500 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10501 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10502 ;; 10503 icpc) 10504 # Intel C++ 10505 with_gnu_ld=yes 10506 # version 8.0 and above of icpc choke on multiply defined symbols 10507 # if we add $predep_objects and $postdep_objects, however 7.1 and 10508 # earlier do not add the objects themselves. 10509 case `$CC -V 2>&1` in 10510 *"Version 7."*) 10511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10512 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' 10513 ;; 10514 *) # Version 8.0 or newer 10515 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10516 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10517 ;; 10518 esac 10519 archive_cmds_need_lc_CXX=no 10520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10522 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10523 ;; 10524 cxx) 10525 # Compaq C++ 10526 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10527 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' 10528 10529 runpath_var=LD_RUN_PATH 10530 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10531 hardcode_libdir_separator_CXX=: 10532 10533 # Commands to make compiler produce verbose output that lists 10534 # what "hidden" libraries, object files and flags are used when 10535 # linking a shared library. 10536 # 10537 # There doesn't appear to be a way to prevent this compiler from 10538 # explicitly linking system object files so we need to strip them 10539 # from the output so that they don't get included in the library 10540 # dependencies. 10541 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' 10542 ;; 10543 esac 10544 ;; 10545 lynxos*) 10546 # FIXME: insert proper C++ library support 10547 ld_shlibs_CXX=no 10548 ;; 10549 m88k*) 10550 # FIXME: insert proper C++ library support 10551 ld_shlibs_CXX=no 10552 ;; 10553 mvs*) 10554 case $cc_basename in 10555 cxx) 10556 # FIXME: insert proper C++ library support 10557 ld_shlibs_CXX=no 10558 ;; 10559 *) 10560 # FIXME: insert proper C++ library support 10561 ld_shlibs_CXX=no 10562 ;; 10563 esac 10564 ;; 10565 netbsd*) 10566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10567 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10568 wlarc= 10569 hardcode_libdir_flag_spec_CXX='-R$libdir' 10570 hardcode_direct_CXX=yes 10571 hardcode_shlibpath_var_CXX=no 10572 fi 10573 # Workaround some broken pre-1.5 toolchains 10574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10575 ;; 10576 openbsd2*) 10577 # C++ shared libraries are fairly broken 10578 ld_shlibs_CXX=no 10579 ;; 10580 openbsd*) 10581 hardcode_direct_CXX=yes 10582 hardcode_shlibpath_var_CXX=no 10583 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10584 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10586 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10587 export_dynamic_flag_spec_CXX='${wl}-E' 10588 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10589 fi 10590 output_verbose_link_cmd='echo' 10591 ;; 10592 osf3*) 10593 case $cc_basename in 10594 KCC) 10595 # Kuck and Associates, Inc. (KAI) C++ Compiler 10596 10597 # KCC will only create a shared library if the output file 10598 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10599 # to its proper name (with version) after linking. 10600 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' 10601 10602 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10603 hardcode_libdir_separator_CXX=: 10604 10605 # Archives containing C++ object files must be created using 10606 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10607 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10608 10609 ;; 10610 RCC) 10611 # Rational C++ 2.4.1 10612 # FIXME: insert proper C++ library support 10613 ld_shlibs_CXX=no 10614 ;; 10615 cxx) 10616 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10617 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 ${objdir}/so_locations -o $lib' 10618 10619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10620 hardcode_libdir_separator_CXX=: 10621 10622 # Commands to make compiler produce verbose output that lists 10623 # what "hidden" libraries, object files and flags are used when 10624 # linking a shared library. 10625 # 10626 # There doesn't appear to be a way to prevent this compiler from 10627 # explicitly linking system object files so we need to strip them 10628 # from the output so that they don't get included in the library 10629 # dependencies. 10630 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' 10631 ;; 10632 *) 10633 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10634 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10635 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}${objdir}/so_locations -o $lib' 10636 10637 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10638 hardcode_libdir_separator_CXX=: 10639 10640 # Commands to make compiler produce verbose output that lists 10641 # what "hidden" libraries, object files and flags are used when 10642 # linking a shared library. 10643 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10644 10645 else 10646 # FIXME: insert proper C++ library support 10647 ld_shlibs_CXX=no 10648 fi 10649 ;; 10650 esac 10651 ;; 10652 osf4* | osf5*) 10653 case $cc_basename in 10654 KCC) 10655 # Kuck and Associates, Inc. (KAI) C++ Compiler 10656 10657 # KCC will only create a shared library if the output file 10658 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10659 # to its proper name (with version) after linking. 10660 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' 10661 10662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10663 hardcode_libdir_separator_CXX=: 10664 10665 # Archives containing C++ object files must be created using 10666 # the KAI C++ compiler. 10667 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10668 ;; 10669 RCC) 10670 # Rational C++ 2.4.1 10671 # FIXME: insert proper C++ library support 10672 ld_shlibs_CXX=no 10673 ;; 10674 cxx) 10675 allow_undefined_flag_CXX=' -expect_unresolved \*' 10676 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 ${objdir}/so_locations -o $lib' 10677 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10678 echo "-hidden">> $lib.exp~ 10679 $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 $objdir/so_locations -o $lib~ 10680 $rm $lib.exp' 10681 10682 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10683 hardcode_libdir_separator_CXX=: 10684 10685 # Commands to make compiler produce verbose output that lists 10686 # what "hidden" libraries, object files and flags are used when 10687 # linking a shared library. 10688 # 10689 # There doesn't appear to be a way to prevent this compiler from 10690 # explicitly linking system object files so we need to strip them 10691 # from the output so that they don't get included in the library 10692 # dependencies. 10693 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' 10694 ;; 10695 *) 10696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10698 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}${objdir}/so_locations -o $lib' 10699 10700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10701 hardcode_libdir_separator_CXX=: 10702 10703 # Commands to make compiler produce verbose output that lists 10704 # what "hidden" libraries, object files and flags are used when 10705 # linking a shared library. 10706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10707 10708 else 10709 # FIXME: insert proper C++ library support 10710 ld_shlibs_CXX=no 10711 fi 10712 ;; 10713 esac 10714 ;; 10715 psos*) 10716 # FIXME: insert proper C++ library support 10717 ld_shlibs_CXX=no 10718 ;; 10719 sco*) 10720 archive_cmds_need_lc_CXX=no 10721 case $cc_basename in 10722 CC) 10723 # FIXME: insert proper C++ library support 10724 ld_shlibs_CXX=no 10725 ;; 10726 *) 10727 # FIXME: insert proper C++ library support 10728 ld_shlibs_CXX=no 10729 ;; 10730 esac 10731 ;; 10732 sunos4*) 10733 case $cc_basename in 10734 CC) 10735 # Sun C++ 4.x 10736 # FIXME: insert proper C++ library support 10737 ld_shlibs_CXX=no 10738 ;; 10739 lcc) 10740 # Lucid 10741 # FIXME: insert proper C++ library support 10742 ld_shlibs_CXX=no 10743 ;; 10744 *) 10745 # FIXME: insert proper C++ library support 10746 ld_shlibs_CXX=no 10747 ;; 10748 esac 10749 ;; 10750 solaris*) 10751 case $cc_basename in 10752 CC) 10753 # Sun C++ 4.2, 5.x and Centerline C++ 10754 no_undefined_flag_CXX=' -zdefs' 10755 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10756 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10757 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10758 10759 hardcode_libdir_flag_spec_CXX='-R$libdir' 10760 hardcode_shlibpath_var_CXX=no 10761 case $host_os in 10762 solaris2.0-5 | solaris2.0-5.*) ;; 10763 *) 10764 # The C++ compiler is used as linker so we must use $wl 10765 # flag to pass the commands to the underlying system 10766 # linker. 10767 # Supported since Solaris 2.6 (maybe 2.5.1?) 10768 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10769 ;; 10770 esac 10771 link_all_deplibs_CXX=yes 10772 10773 # Commands to make compiler produce verbose output that lists 10774 # what "hidden" libraries, object files and flags are used when 10775 # linking a shared library. 10776 # 10777 # There doesn't appear to be a way to prevent this compiler from 10778 # explicitly linking system object files so we need to strip them 10779 # from the output so that they don't get included in the library 10780 # dependencies. 10781 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10782 10783 # Archives containing C++ object files must be created using 10784 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10785 # necessary to make sure instantiated templates are included 10786 # in the archive. 10787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10788 ;; 10789 gcx) 10790 # Green Hills C++ Compiler 10791 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10792 10793 # The C++ compiler must be used to create the archive. 10794 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10795 ;; 10796 *) 10797 # GNU C++ compiler with Solaris linker 10798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10799 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10800 if $CC --version | grep -v '^2\.7' > /dev/null; then 10801 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10802 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10803 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10804 10805 # Commands to make compiler produce verbose output that lists 10806 # what "hidden" libraries, object files and flags are used when 10807 # linking a shared library. 10808 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10809 else 10810 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10811 # platform. 10812 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10813 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10814 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10815 10816 # Commands to make compiler produce verbose output that lists 10817 # what "hidden" libraries, object files and flags are used when 10818 # linking a shared library. 10819 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10820 fi 10821 10822 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10823 fi 10824 ;; 10825 esac 10826 ;; 10827 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10828 archive_cmds_need_lc_CXX=no 10829 ;; 10830 tandem*) 10831 case $cc_basename in 10832 NCC) 10833 # NonStop-UX NCC 3.20 10834 # FIXME: insert proper C++ library support 10835 ld_shlibs_CXX=no 10836 ;; 10837 *) 10838 # FIXME: insert proper C++ library support 10839 ld_shlibs_CXX=no 10840 ;; 10841 esac 10842 ;; 10843 vxworks*) 10844 # FIXME: insert proper C++ library support 10845 ld_shlibs_CXX=no 10846 ;; 10847 *) 10848 # FIXME: insert proper C++ library support 10849 ld_shlibs_CXX=no 10850 ;; 10851esac 10852echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10853echo "${ECHO_T}$ld_shlibs_CXX" >&6 10854test "$ld_shlibs_CXX" = no && can_build_shared=no 10855 10856GCC_CXX="$GXX" 10857LD_CXX="$LD" 10858 10859 10860cat > conftest.$ac_ext <<EOF 10861class Foo 10862{ 10863public: 10864 Foo (void) { a = 0; } 10865private: 10866 int a; 10867}; 10868EOF 10869 10870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10871 (eval $ac_compile) 2>&5 10872 ac_status=$? 10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10874 (exit $ac_status); }; then 10875 # Parse the compiler output and extract the necessary 10876 # objects, libraries and library flags. 10877 10878 # Sentinel used to keep track of whether or not we are before 10879 # the conftest object file. 10880 pre_test_object_deps_done=no 10881 10882 # The `*' in the case matches for architectures that use `case' in 10883 # $output_verbose_cmd can trigger glob expansion during the loop 10884 # eval without this substitution. 10885 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10886 10887 for p in `eval $output_verbose_link_cmd`; do 10888 case $p in 10889 10890 -L* | -R* | -l*) 10891 # Some compilers place space between "-{L,R}" and the path. 10892 # Remove the space. 10893 if test $p = "-L" \ 10894 || test $p = "-R"; then 10895 prev=$p 10896 continue 10897 else 10898 prev= 10899 fi 10900 10901 if test "$pre_test_object_deps_done" = no; then 10902 case $p in 10903 -L* | -R*) 10904 # Internal compiler library paths should come after those 10905 # provided the user. The postdeps already come after the 10906 # user supplied libs so there is no need to process them. 10907 if test -z "$compiler_lib_search_path_CXX"; then 10908 compiler_lib_search_path_CXX="${prev}${p}" 10909 else 10910 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10911 fi 10912 ;; 10913 # The "-l" case would never come before the object being 10914 # linked, so don't bother handling this case. 10915 esac 10916 else 10917 if test -z "$postdeps_CXX"; then 10918 postdeps_CXX="${prev}${p}" 10919 else 10920 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10921 fi 10922 fi 10923 ;; 10924 10925 *.$objext) 10926 # This assumes that the test object file only shows up 10927 # once in the compiler output. 10928 if test "$p" = "conftest.$objext"; then 10929 pre_test_object_deps_done=yes 10930 continue 10931 fi 10932 10933 if test "$pre_test_object_deps_done" = no; then 10934 if test -z "$predep_objects_CXX"; then 10935 predep_objects_CXX="$p" 10936 else 10937 predep_objects_CXX="$predep_objects_CXX $p" 10938 fi 10939 else 10940 if test -z "$postdep_objects_CXX"; then 10941 postdep_objects_CXX="$p" 10942 else 10943 postdep_objects_CXX="$postdep_objects_CXX $p" 10944 fi 10945 fi 10946 ;; 10947 10948 *) ;; # Ignore the rest. 10949 10950 esac 10951 done 10952 10953 # Clean up. 10954 rm -f a.out a.exe 10955else 10956 echo "libtool.m4: error: problem compiling CXX test program" 10957fi 10958 10959$rm -f confest.$objext 10960 10961case " $postdeps_CXX " in 10962*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10963esac 10964 10965lt_prog_compiler_wl_CXX= 10966lt_prog_compiler_pic_CXX= 10967lt_prog_compiler_static_CXX= 10968 10969echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10970echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10971 10972 # C++ specific cases for pic, static, wl, etc. 10973 if test "$GXX" = yes; then 10974 lt_prog_compiler_wl_CXX='-Wl,' 10975 lt_prog_compiler_static_CXX='-static' 10976 10977 case $host_os in 10978 aix*) 10979 # All AIX code is PIC. 10980 if test "$host_cpu" = ia64; then 10981 # AIX 5 now supports IA64 processor 10982 lt_prog_compiler_static_CXX='-Bstatic' 10983 fi 10984 ;; 10985 amigaos*) 10986 # FIXME: we need at least 68020 code to build shared libraries, but 10987 # adding the `-m68020' flag to GCC prevents building anything better, 10988 # like `-m68040'. 10989 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10990 ;; 10991 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10992 # PIC is the default for these OSes. 10993 ;; 10994 mingw* | os2* | pw32*) 10995 # This hack is so that the source file can tell whether it is being 10996 # built for inclusion in a dll (and should export symbols for example). 10997 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10998 ;; 10999 darwin* | rhapsody*) 11000 # PIC is the default on this platform 11001 # Common symbols not allowed in MH_DYLIB files 11002 lt_prog_compiler_pic_CXX='-fno-common' 11003 ;; 11004 *djgpp*) 11005 # DJGPP does not support shared libraries at all 11006 lt_prog_compiler_pic_CXX= 11007 ;; 11008 sysv4*MP*) 11009 if test -d /usr/nec; then 11010 lt_prog_compiler_pic_CXX=-Kconform_pic 11011 fi 11012 ;; 11013 hpux*) 11014 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11015 # not for PA HP-UX. 11016 case "$host_cpu" in 11017 hppa*64*|ia64*) 11018 ;; 11019 *) 11020 lt_prog_compiler_pic_CXX='-fPIC' 11021 ;; 11022 esac 11023 ;; 11024 *) 11025 lt_prog_compiler_pic_CXX='-fPIC' 11026 ;; 11027 esac 11028 else 11029 case $host_os in 11030 aix4* | aix5*) 11031 # All AIX code is PIC. 11032 if test "$host_cpu" = ia64; then 11033 # AIX 5 now supports IA64 processor 11034 lt_prog_compiler_static_CXX='-Bstatic' 11035 else 11036 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11037 fi 11038 ;; 11039 chorus*) 11040 case $cc_basename in 11041 cxch68) 11042 # Green Hills C++ Compiler 11043 # _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" 11044 ;; 11045 esac 11046 ;; 11047 darwin*) 11048 # PIC is the default on this platform 11049 # Common symbols not allowed in MH_DYLIB files 11050 case "$cc_basename" in 11051 xlc*) 11052 lt_prog_compiler_pic_CXX='-qnocommon' 11053 lt_prog_compiler_wl_CXX='-Wl,' 11054 ;; 11055 esac 11056 ;; 11057 dgux*) 11058 case $cc_basename in 11059 ec++) 11060 lt_prog_compiler_pic_CXX='-KPIC' 11061 ;; 11062 ghcx) 11063 # Green Hills C++ Compiler 11064 lt_prog_compiler_pic_CXX='-pic' 11065 ;; 11066 *) 11067 ;; 11068 esac 11069 ;; 11070 freebsd* | kfreebsd*-gnu) 11071 # FreeBSD uses GNU C++ 11072 ;; 11073 hpux9* | hpux10* | hpux11*) 11074 case $cc_basename in 11075 CC) 11076 lt_prog_compiler_wl_CXX='-Wl,' 11077 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11078 if test "$host_cpu" != ia64; then 11079 lt_prog_compiler_pic_CXX='+Z' 11080 fi 11081 ;; 11082 aCC) 11083 lt_prog_compiler_wl_CXX='-Wl,' 11084 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11085 case "$host_cpu" in 11086 hppa*64*|ia64*) 11087 # +Z the default 11088 ;; 11089 *) 11090 lt_prog_compiler_pic_CXX='+Z' 11091 ;; 11092 esac 11093 ;; 11094 *) 11095 ;; 11096 esac 11097 ;; 11098 irix5* | irix6* | nonstopux*) 11099 case $cc_basename in 11100 CC) 11101 lt_prog_compiler_wl_CXX='-Wl,' 11102 lt_prog_compiler_static_CXX='-non_shared' 11103 # CC pic flag -KPIC is the default. 11104 ;; 11105 *) 11106 ;; 11107 esac 11108 ;; 11109 linux*) 11110 case $cc_basename in 11111 KCC) 11112 # KAI C++ Compiler 11113 lt_prog_compiler_wl_CXX='--backend -Wl,' 11114 lt_prog_compiler_pic_CXX='-fPIC' 11115 ;; 11116 icpc) 11117 # Intel C++ 11118 lt_prog_compiler_wl_CXX='-Wl,' 11119 lt_prog_compiler_pic_CXX='-KPIC' 11120 lt_prog_compiler_static_CXX='-static' 11121 ;; 11122 cxx) 11123 # Compaq C++ 11124 # Make sure the PIC flag is empty. It appears that all Alpha 11125 # Linux and Compaq Tru64 Unix objects are PIC. 11126 lt_prog_compiler_pic_CXX= 11127 lt_prog_compiler_static_CXX='-non_shared' 11128 ;; 11129 *) 11130 ;; 11131 esac 11132 ;; 11133 lynxos*) 11134 ;; 11135 m88k*) 11136 ;; 11137 mvs*) 11138 case $cc_basename in 11139 cxx) 11140 lt_prog_compiler_pic_CXX='-W c,exportall' 11141 ;; 11142 *) 11143 ;; 11144 esac 11145 ;; 11146 netbsd*) 11147 ;; 11148 osf3* | osf4* | osf5*) 11149 case $cc_basename in 11150 KCC) 11151 lt_prog_compiler_wl_CXX='--backend -Wl,' 11152 ;; 11153 RCC) 11154 # Rational C++ 2.4.1 11155 lt_prog_compiler_pic_CXX='-pic' 11156 ;; 11157 cxx) 11158 # Digital/Compaq C++ 11159 lt_prog_compiler_wl_CXX='-Wl,' 11160 # Make sure the PIC flag is empty. It appears that all Alpha 11161 # Linux and Compaq Tru64 Unix objects are PIC. 11162 lt_prog_compiler_pic_CXX= 11163 lt_prog_compiler_static_CXX='-non_shared' 11164 ;; 11165 *) 11166 ;; 11167 esac 11168 ;; 11169 psos*) 11170 ;; 11171 sco*) 11172 case $cc_basename in 11173 CC) 11174 lt_prog_compiler_pic_CXX='-fPIC' 11175 ;; 11176 *) 11177 ;; 11178 esac 11179 ;; 11180 solaris*) 11181 case $cc_basename in 11182 CC) 11183 # Sun C++ 4.2, 5.x and Centerline C++ 11184 lt_prog_compiler_pic_CXX='-KPIC' 11185 lt_prog_compiler_static_CXX='-Bstatic' 11186 lt_prog_compiler_wl_CXX='-Qoption ld ' 11187 ;; 11188 gcx) 11189 # Green Hills C++ Compiler 11190 lt_prog_compiler_pic_CXX='-PIC' 11191 ;; 11192 *) 11193 ;; 11194 esac 11195 ;; 11196 sunos4*) 11197 case $cc_basename in 11198 CC) 11199 # Sun C++ 4.x 11200 lt_prog_compiler_pic_CXX='-pic' 11201 lt_prog_compiler_static_CXX='-Bstatic' 11202 ;; 11203 lcc) 11204 # Lucid 11205 lt_prog_compiler_pic_CXX='-pic' 11206 ;; 11207 *) 11208 ;; 11209 esac 11210 ;; 11211 tandem*) 11212 case $cc_basename in 11213 NCC) 11214 # NonStop-UX NCC 3.20 11215 lt_prog_compiler_pic_CXX='-KPIC' 11216 ;; 11217 *) 11218 ;; 11219 esac 11220 ;; 11221 unixware*) 11222 ;; 11223 vxworks*) 11224 ;; 11225 *) 11226 lt_prog_compiler_can_build_shared_CXX=no 11227 ;; 11228 esac 11229 fi 11230 11231echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11232echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11233 11234# 11235# Check to make sure the PIC flag actually works. 11236# 11237if test -n "$lt_prog_compiler_pic_CXX"; then 11238 11239echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11240echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11241if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11242 echo $ECHO_N "(cached) $ECHO_C" >&6 11243else 11244 lt_prog_compiler_pic_works_CXX=no 11245 ac_outfile=conftest.$ac_objext 11246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11247 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11248 # Insert the option either (1) after the last *FLAGS variable, or 11249 # (2) before a word containing "conftest.", or (3) at the end. 11250 # Note that $ac_compile itself does not contain backslashes and begins 11251 # with a dollar sign (not a hyphen), so the echo should work correctly. 11252 # The option is referenced via a variable to avoid confusing sed. 11253 lt_compile=`echo "$ac_compile" | $SED \ 11254 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11256 -e 's:$: $lt_compiler_flag:'` 11257 (eval echo "\"\$as_me:11257: $lt_compile\"" >&5) 11258 (eval "$lt_compile" 2>conftest.err) 11259 ac_status=$? 11260 cat conftest.err >&5 11261 echo "$as_me:11261: \$? = $ac_status" >&5 11262 if (exit $ac_status) && test -s "$ac_outfile"; then 11263 # The compiler can only warn and ignore the option if not recognized 11264 # So say no if there are warnings 11265 if test ! -s conftest.err; then 11266 lt_prog_compiler_pic_works_CXX=yes 11267 fi 11268 fi 11269 $rm conftest* 11270 11271fi 11272echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11273echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11274 11275if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11276 case $lt_prog_compiler_pic_CXX in 11277 "" | " "*) ;; 11278 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11279 esac 11280else 11281 lt_prog_compiler_pic_CXX= 11282 lt_prog_compiler_can_build_shared_CXX=no 11283fi 11284 11285fi 11286case "$host_os" in 11287 # For platforms which do not support PIC, -DPIC is meaningless: 11288 *djgpp*) 11289 lt_prog_compiler_pic_CXX= 11290 ;; 11291 *) 11292 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11293 ;; 11294esac 11295 11296echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11297echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11298if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11299 echo $ECHO_N "(cached) $ECHO_C" >&6 11300else 11301 lt_cv_prog_compiler_c_o_CXX=no 11302 $rm -r conftest 2>/dev/null 11303 mkdir conftest 11304 cd conftest 11305 mkdir out 11306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11307 11308 lt_compiler_flag="-o out/conftest2.$ac_objext" 11309 # Insert the option either (1) after the last *FLAGS variable, or 11310 # (2) before a word containing "conftest.", or (3) at the end. 11311 # Note that $ac_compile itself does not contain backslashes and begins 11312 # with a dollar sign (not a hyphen), so the echo should work correctly. 11313 lt_compile=`echo "$ac_compile" | $SED \ 11314 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11316 -e 's:$: $lt_compiler_flag:'` 11317 (eval echo "\"\$as_me:11317: $lt_compile\"" >&5) 11318 (eval "$lt_compile" 2>out/conftest.err) 11319 ac_status=$? 11320 cat out/conftest.err >&5 11321 echo "$as_me:11321: \$? = $ac_status" >&5 11322 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11323 then 11324 # The compiler can only warn and ignore the option if not recognized 11325 # So say no if there are warnings 11326 if test ! -s out/conftest.err; then 11327 lt_cv_prog_compiler_c_o_CXX=yes 11328 fi 11329 fi 11330 chmod u+w . 11331 $rm conftest* 11332 # SGI C++ compiler will create directory out/ii_files/ for 11333 # template instantiation 11334 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11335 $rm out/* && rmdir out 11336 cd .. 11337 rmdir conftest 11338 $rm conftest* 11339 11340fi 11341echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11342echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11343 11344 11345hard_links="nottested" 11346if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11347 # do not overwrite the value of need_locks provided by the user 11348 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11349echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11350 hard_links=yes 11351 $rm conftest* 11352 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11353 touch conftest.a 11354 ln conftest.a conftest.b 2>&5 || hard_links=no 11355 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11356 echo "$as_me:$LINENO: result: $hard_links" >&5 11357echo "${ECHO_T}$hard_links" >&6 11358 if test "$hard_links" = no; then 11359 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11360echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11361 need_locks=warn 11362 fi 11363else 11364 need_locks=no 11365fi 11366 11367echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11368echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11369 11370 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11371 case $host_os in 11372 aix4* | aix5*) 11373 # If we're using GNU nm, then we don't want the "-C" option. 11374 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11375 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11376 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' 11377 else 11378 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' 11379 fi 11380 ;; 11381 pw32*) 11382 export_symbols_cmds_CXX="$ltdll_cmds" 11383 ;; 11384 cygwin* | mingw*) 11385 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' 11386 ;; 11387 *) 11388 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11389 ;; 11390 esac 11391 11392echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11393echo "${ECHO_T}$ld_shlibs_CXX" >&6 11394test "$ld_shlibs_CXX" = no && can_build_shared=no 11395 11396variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11397if test "$GCC" = yes; then 11398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11399fi 11400 11401# 11402# Do we need to explicitly link libc? 11403# 11404case "x$archive_cmds_need_lc_CXX" in 11405x|xyes) 11406 # Assume -lc should be added 11407 archive_cmds_need_lc_CXX=yes 11408 11409 if test "$enable_shared" = yes && test "$GCC" = yes; then 11410 case $archive_cmds_CXX in 11411 *'~'*) 11412 # FIXME: we may have to deal with multi-command sequences. 11413 ;; 11414 '$CC '*) 11415 # Test whether the compiler implicitly links with -lc since on some 11416 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11417 # to ld, don't add -lc before -lgcc. 11418 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11419echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11420 $rm conftest* 11421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11422 11423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11424 (eval $ac_compile) 2>&5 11425 ac_status=$? 11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11427 (exit $ac_status); } 2>conftest.err; then 11428 soname=conftest 11429 lib=conftest 11430 libobjs=conftest.$ac_objext 11431 deplibs= 11432 wl=$lt_prog_compiler_wl_CXX 11433 compiler_flags=-v 11434 linker_flags=-v 11435 verstring= 11436 output_objdir=. 11437 libname=conftest 11438 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11439 allow_undefined_flag_CXX= 11440 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11441 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11442 ac_status=$? 11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11444 (exit $ac_status); } 11445 then 11446 archive_cmds_need_lc_CXX=no 11447 else 11448 archive_cmds_need_lc_CXX=yes 11449 fi 11450 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11451 else 11452 cat conftest.err 1>&5 11453 fi 11454 $rm conftest* 11455 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11456echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11457 ;; 11458 esac 11459 fi 11460 ;; 11461esac 11462 11463echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11464echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11465library_names_spec= 11466libname_spec='lib$name' 11467soname_spec= 11468shrext_cmds=".so" 11469postinstall_cmds= 11470postuninstall_cmds= 11471finish_cmds= 11472finish_eval= 11473shlibpath_var= 11474shlibpath_overrides_runpath=unknown 11475version_type=none 11476dynamic_linker="$host_os ld.so" 11477sys_lib_dlsearch_path_spec="/lib /usr/lib" 11478if test "$GCC" = yes; then 11479 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11480 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11481 # if the path contains ";" then we assume it to be the separator 11482 # otherwise default to the standard path separator (i.e. ":") - it is 11483 # assumed that no part of a normal pathname contains ";" but that should 11484 # okay in the real world where ";" in dirpaths is itself problematic. 11485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11486 else 11487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11488 fi 11489else 11490 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11491fi 11492need_lib_prefix=unknown 11493hardcode_into_libs=no 11494 11495# when you set need_version to no, make sure it does not cause -set_version 11496# flags to be left without arguments 11497need_version=unknown 11498 11499case $host_os in 11500aix3*) 11501 version_type=linux 11502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11503 shlibpath_var=LIBPATH 11504 11505 # AIX 3 has no versioning support, so we append a major version to the name. 11506 soname_spec='${libname}${release}${shared_ext}$major' 11507 ;; 11508 11509aix4* | aix5*) 11510 version_type=linux 11511 need_lib_prefix=no 11512 need_version=no 11513 hardcode_into_libs=yes 11514 if test "$host_cpu" = ia64; then 11515 # AIX 5 supports IA64 11516 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11517 shlibpath_var=LD_LIBRARY_PATH 11518 else 11519 # With GCC up to 2.95.x, collect2 would create an import file 11520 # for dependence libraries. The import file would start with 11521 # the line `#! .'. This would cause the generated library to 11522 # depend on `.', always an invalid library. This was fixed in 11523 # development snapshots of GCC prior to 3.0. 11524 case $host_os in 11525 aix4 | aix4.[01] | aix4.[01].*) 11526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11527 echo ' yes ' 11528 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11529 : 11530 else 11531 can_build_shared=no 11532 fi 11533 ;; 11534 esac 11535 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11536 # soname into executable. Probably we can add versioning support to 11537 # collect2, so additional links can be useful in future. 11538 if test "$aix_use_runtimelinking" = yes; then 11539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11540 # instead of lib<name>.a to let people know that these are not 11541 # typical AIX shared libraries. 11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11543 else 11544 # We preserve .a as extension for shared libraries through AIX4.2 11545 # and later when we are not doing run time linking. 11546 library_names_spec='${libname}${release}.a $libname.a' 11547 soname_spec='${libname}${release}${shared_ext}$major' 11548 fi 11549 shlibpath_var=LIBPATH 11550 fi 11551 ;; 11552 11553amigaos*) 11554 library_names_spec='$libname.ixlibrary $libname.a' 11555 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11556 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' 11557 ;; 11558 11559beos*) 11560 library_names_spec='${libname}${shared_ext}' 11561 dynamic_linker="$host_os ld.so" 11562 shlibpath_var=LIBRARY_PATH 11563 ;; 11564 11565bsdi[45]*) 11566 version_type=linux 11567 need_version=no 11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11569 soname_spec='${libname}${release}${shared_ext}$major' 11570 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11571 shlibpath_var=LD_LIBRARY_PATH 11572 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11573 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11574 # the default ld.so.conf also contains /usr/contrib/lib and 11575 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11576 # libtool to hard-code these into programs 11577 ;; 11578 11579cygwin* | mingw* | pw32*) 11580 version_type=windows 11581 shrext_cmds=".dll" 11582 need_version=no 11583 need_lib_prefix=no 11584 11585 case $GCC,$host_os in 11586 yes,cygwin* | yes,mingw* | yes,pw32*) 11587 library_names_spec='$libname.dll.a' 11588 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11589 postinstall_cmds='base_file=`basename \${file}`~ 11590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11591 dldir=$destdir/`dirname \$dlpath`~ 11592 test -d \$dldir || mkdir -p \$dldir~ 11593 $install_prog $dir/$dlname \$dldir/$dlname' 11594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11595 dlpath=$dir/\$dldll~ 11596 $rm \$dlpath' 11597 shlibpath_overrides_runpath=yes 11598 11599 case $host_os in 11600 cygwin*) 11601 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11604 ;; 11605 mingw*) 11606 # MinGW DLLs use traditional 'lib' prefix 11607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11610 # It is most probably a Windows format PATH printed by 11611 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11612 # path with ; separators, and with drive letters. We can handle the 11613 # drive letters (cygwin fileutils understands them), so leave them, 11614 # especially as we might pass files found there to a mingw objdump, 11615 # which wouldn't understand a cygwinified path. Ahh. 11616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11617 else 11618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11619 fi 11620 ;; 11621 pw32*) 11622 # pw32 DLLs use 'pw' prefix rather than 'lib' 11623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11624 ;; 11625 esac 11626 ;; 11627 11628 *) 11629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11630 ;; 11631 esac 11632 dynamic_linker='Win32 ld.exe' 11633 # FIXME: first we should search . and the directory the executable is in 11634 shlibpath_var=PATH 11635 ;; 11636 11637darwin* | rhapsody*) 11638 dynamic_linker="$host_os dyld" 11639 version_type=darwin 11640 need_lib_prefix=no 11641 need_version=no 11642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11643 soname_spec='${libname}${release}${major}$shared_ext' 11644 shlibpath_overrides_runpath=yes 11645 shlibpath_var=DYLD_LIBRARY_PATH 11646 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11647 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11648 if test "$GCC" = yes; then 11649 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"` 11650 else 11651 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11652 fi 11653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11654 ;; 11655 11656dgux*) 11657 version_type=linux 11658 need_lib_prefix=no 11659 need_version=no 11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11661 soname_spec='${libname}${release}${shared_ext}$major' 11662 shlibpath_var=LD_LIBRARY_PATH 11663 ;; 11664 11665freebsd1*) 11666 dynamic_linker=no 11667 ;; 11668 11669kfreebsd*-gnu) 11670 version_type=linux 11671 need_lib_prefix=no 11672 need_version=no 11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11674 soname_spec='${libname}${release}${shared_ext}$major' 11675 shlibpath_var=LD_LIBRARY_PATH 11676 shlibpath_overrides_runpath=no 11677 hardcode_into_libs=yes 11678 dynamic_linker='GNU ld.so' 11679 ;; 11680 11681freebsd*) 11682 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11683 version_type=freebsd-$objformat 11684 case $version_type in 11685 freebsd-elf*) 11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11687 need_version=no 11688 need_lib_prefix=no 11689 ;; 11690 freebsd-*) 11691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11692 need_version=yes 11693 ;; 11694 esac 11695 shlibpath_var=LD_LIBRARY_PATH 11696 case $host_os in 11697 freebsd2*) 11698 shlibpath_overrides_runpath=yes 11699 ;; 11700 freebsd3.01* | freebsdelf3.01*) 11701 shlibpath_overrides_runpath=yes 11702 hardcode_into_libs=yes 11703 ;; 11704 *) # from 3.2 on 11705 shlibpath_overrides_runpath=no 11706 hardcode_into_libs=yes 11707 ;; 11708 esac 11709 ;; 11710 11711gnu*) 11712 version_type=linux 11713 need_lib_prefix=no 11714 need_version=no 11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11716 soname_spec='${libname}${release}${shared_ext}$major' 11717 shlibpath_var=LD_LIBRARY_PATH 11718 hardcode_into_libs=yes 11719 ;; 11720 11721hpux9* | hpux10* | hpux11*) 11722 # Give a soname corresponding to the major version so that dld.sl refuses to 11723 # link against other versions. 11724 version_type=sunos 11725 need_lib_prefix=no 11726 need_version=no 11727 case "$host_cpu" in 11728 ia64*) 11729 shrext_cmds='.so' 11730 hardcode_into_libs=yes 11731 dynamic_linker="$host_os dld.so" 11732 shlibpath_var=LD_LIBRARY_PATH 11733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11735 soname_spec='${libname}${release}${shared_ext}$major' 11736 if test "X$HPUX_IA64_MODE" = X32; then 11737 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11738 else 11739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11740 fi 11741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11742 ;; 11743 hppa*64*) 11744 shrext_cmds='.sl' 11745 hardcode_into_libs=yes 11746 dynamic_linker="$host_os dld.sl" 11747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11750 soname_spec='${libname}${release}${shared_ext}$major' 11751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11753 ;; 11754 *) 11755 shrext_cmds='.sl' 11756 dynamic_linker="$host_os dld.sl" 11757 shlibpath_var=SHLIB_PATH 11758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11760 soname_spec='${libname}${release}${shared_ext}$major' 11761 ;; 11762 esac 11763 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11764 postinstall_cmds='chmod 555 $lib' 11765 ;; 11766 11767irix5* | irix6* | nonstopux*) 11768 case $host_os in 11769 nonstopux*) version_type=nonstopux ;; 11770 *) 11771 if test "$lt_cv_prog_gnu_ld" = yes; then 11772 version_type=linux 11773 else 11774 version_type=irix 11775 fi ;; 11776 esac 11777 need_lib_prefix=no 11778 need_version=no 11779 soname_spec='${libname}${release}${shared_ext}$major' 11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11781 case $host_os in 11782 irix5* | nonstopux*) 11783 libsuff= shlibsuff= 11784 ;; 11785 *) 11786 case $LD in # libtool.m4 will add one of these switches to LD 11787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11788 libsuff= shlibsuff= libmagic=32-bit;; 11789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11790 libsuff=32 shlibsuff=N32 libmagic=N32;; 11791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11792 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11793 *) libsuff= shlibsuff= libmagic=never-match;; 11794 esac 11795 ;; 11796 esac 11797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11798 shlibpath_overrides_runpath=no 11799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11801 hardcode_into_libs=yes 11802 ;; 11803 11804# No shared lib support for Linux oldld, aout, or coff. 11805linux*oldld* | linux*aout* | linux*coff*) 11806 dynamic_linker=no 11807 ;; 11808 11809# This must be Linux ELF. 11810linux*) 11811 version_type=linux 11812 need_lib_prefix=no 11813 need_version=no 11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11815 soname_spec='${libname}${release}${shared_ext}$major' 11816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11817 shlibpath_var=LD_LIBRARY_PATH 11818 shlibpath_overrides_runpath=no 11819 # This implies no fast_install, which is unacceptable. 11820 # Some rework will be needed to allow for fast_install 11821 # before this can be enabled. 11822 hardcode_into_libs=yes 11823 11824 # Append ld.so.conf contents to the search path 11825 if test -f /etc/ld.so.conf; then 11826 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11827 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11828 fi 11829 11830 # We used to test for /lib/ld.so.1 and disable shared libraries on 11831 # powerpc, because MkLinux only supported shared libraries with the 11832 # GNU dynamic linker. Since this was broken with cross compilers, 11833 # most powerpc-linux boxes support dynamic linking these days and 11834 # people can always --disable-shared, the test was removed, and we 11835 # assume the GNU/Linux dynamic linker is in use. 11836 dynamic_linker='GNU/Linux ld.so' 11837 ;; 11838 11839knetbsd*-gnu) 11840 version_type=linux 11841 need_lib_prefix=no 11842 need_version=no 11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11844 soname_spec='${libname}${release}${shared_ext}$major' 11845 shlibpath_var=LD_LIBRARY_PATH 11846 shlibpath_overrides_runpath=no 11847 hardcode_into_libs=yes 11848 dynamic_linker='GNU ld.so' 11849 ;; 11850 11851netbsd*) 11852 version_type=sunos 11853 need_lib_prefix=no 11854 need_version=no 11855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11858 dynamic_linker='NetBSD (a.out) ld.so' 11859 else 11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11861 soname_spec='${libname}${release}${shared_ext}$major' 11862 dynamic_linker='NetBSD ld.elf_so' 11863 fi 11864 shlibpath_var=LD_LIBRARY_PATH 11865 shlibpath_overrides_runpath=yes 11866 hardcode_into_libs=yes 11867 ;; 11868 11869newsos6) 11870 version_type=linux 11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11872 shlibpath_var=LD_LIBRARY_PATH 11873 shlibpath_overrides_runpath=yes 11874 ;; 11875 11876nto-qnx*) 11877 version_type=linux 11878 need_lib_prefix=no 11879 need_version=no 11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11881 soname_spec='${libname}${release}${shared_ext}$major' 11882 shlibpath_var=LD_LIBRARY_PATH 11883 shlibpath_overrides_runpath=yes 11884 ;; 11885 11886openbsd*) 11887 version_type=sunos 11888 need_lib_prefix=no 11889 need_version=no 11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11892 shlibpath_var=LD_LIBRARY_PATH 11893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11894 case $host_os in 11895 openbsd2.[89] | openbsd2.[89].*) 11896 shlibpath_overrides_runpath=no 11897 ;; 11898 *) 11899 shlibpath_overrides_runpath=yes 11900 ;; 11901 esac 11902 else 11903 shlibpath_overrides_runpath=yes 11904 fi 11905 ;; 11906 11907os2*) 11908 libname_spec='$name' 11909 shrext_cmds=".dll" 11910 need_lib_prefix=no 11911 library_names_spec='$libname${shared_ext} $libname.a' 11912 dynamic_linker='OS/2 ld.exe' 11913 shlibpath_var=LIBPATH 11914 ;; 11915 11916osf3* | osf4* | osf5*) 11917 version_type=osf 11918 need_lib_prefix=no 11919 need_version=no 11920 soname_spec='${libname}${release}${shared_ext}$major' 11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11922 shlibpath_var=LD_LIBRARY_PATH 11923 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11924 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11925 ;; 11926 11927sco3.2v5*) 11928 version_type=osf 11929 soname_spec='${libname}${release}${shared_ext}$major' 11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11931 shlibpath_var=LD_LIBRARY_PATH 11932 ;; 11933 11934solaris*) 11935 version_type=linux 11936 need_lib_prefix=no 11937 need_version=no 11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11939 soname_spec='${libname}${release}${shared_ext}$major' 11940 shlibpath_var=LD_LIBRARY_PATH 11941 shlibpath_overrides_runpath=yes 11942 hardcode_into_libs=yes 11943 # ldd complains unless libraries are executable 11944 postinstall_cmds='chmod +x $lib' 11945 ;; 11946 11947sunos4*) 11948 version_type=sunos 11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11950 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11951 shlibpath_var=LD_LIBRARY_PATH 11952 shlibpath_overrides_runpath=yes 11953 if test "$with_gnu_ld" = yes; then 11954 need_lib_prefix=no 11955 fi 11956 need_version=yes 11957 ;; 11958 11959sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11960 version_type=linux 11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11962 soname_spec='${libname}${release}${shared_ext}$major' 11963 shlibpath_var=LD_LIBRARY_PATH 11964 case $host_vendor in 11965 sni) 11966 shlibpath_overrides_runpath=no 11967 need_lib_prefix=no 11968 export_dynamic_flag_spec='${wl}-Blargedynsym' 11969 runpath_var=LD_RUN_PATH 11970 ;; 11971 siemens) 11972 need_lib_prefix=no 11973 ;; 11974 motorola) 11975 need_lib_prefix=no 11976 need_version=no 11977 shlibpath_overrides_runpath=no 11978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11979 ;; 11980 esac 11981 ;; 11982 11983sysv4*MP*) 11984 if test -d /usr/nec ;then 11985 version_type=linux 11986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11987 soname_spec='$libname${shared_ext}.$major' 11988 shlibpath_var=LD_LIBRARY_PATH 11989 fi 11990 ;; 11991 11992uts4*) 11993 version_type=linux 11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11995 soname_spec='${libname}${release}${shared_ext}$major' 11996 shlibpath_var=LD_LIBRARY_PATH 11997 ;; 11998 11999*) 12000 dynamic_linker=no 12001 ;; 12002esac 12003echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12004echo "${ECHO_T}$dynamic_linker" >&6 12005test "$dynamic_linker" = no && can_build_shared=no 12006 12007echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12008echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12009hardcode_action_CXX= 12010if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12011 test -n "$runpath_var_CXX" || \ 12012 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12013 12014 # We can hardcode non-existant directories. 12015 if test "$hardcode_direct_CXX" != no && 12016 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12017 # have to relink, otherwise we might link with an installed library 12018 # when we should be linking with a yet-to-be-installed one 12019 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12020 test "$hardcode_minus_L_CXX" != no; then 12021 # Linking always hardcodes the temporary library directory. 12022 hardcode_action_CXX=relink 12023 else 12024 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12025 hardcode_action_CXX=immediate 12026 fi 12027else 12028 # We cannot hardcode anything, or else we can only hardcode existing 12029 # directories. 12030 hardcode_action_CXX=unsupported 12031fi 12032echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12033echo "${ECHO_T}$hardcode_action_CXX" >&6 12034 12035if test "$hardcode_action_CXX" = relink; then 12036 # Fast installation is not supported 12037 enable_fast_install=no 12038elif test "$shlibpath_overrides_runpath" = yes || 12039 test "$enable_shared" = no; then 12040 # Fast installation is not necessary 12041 enable_fast_install=needless 12042fi 12043 12044striplib= 12045old_striplib= 12046echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12047echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12048if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12049 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12050 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12051 echo "$as_me:$LINENO: result: yes" >&5 12052echo "${ECHO_T}yes" >&6 12053else 12054# FIXME - insert some real tests, host_os isn't really good enough 12055 case $host_os in 12056 darwin*) 12057 if test -n "$STRIP" ; then 12058 striplib="$STRIP -x" 12059 echo "$as_me:$LINENO: result: yes" >&5 12060echo "${ECHO_T}yes" >&6 12061 else 12062 echo "$as_me:$LINENO: result: no" >&5 12063echo "${ECHO_T}no" >&6 12064fi 12065 ;; 12066 *) 12067 echo "$as_me:$LINENO: result: no" >&5 12068echo "${ECHO_T}no" >&6 12069 ;; 12070 esac 12071fi 12072 12073if test "x$enable_dlopen" != xyes; then 12074 enable_dlopen=unknown 12075 enable_dlopen_self=unknown 12076 enable_dlopen_self_static=unknown 12077else 12078 lt_cv_dlopen=no 12079 lt_cv_dlopen_libs= 12080 12081 case $host_os in 12082 beos*) 12083 lt_cv_dlopen="load_add_on" 12084 lt_cv_dlopen_libs= 12085 lt_cv_dlopen_self=yes 12086 ;; 12087 12088 mingw* | pw32*) 12089 lt_cv_dlopen="LoadLibrary" 12090 lt_cv_dlopen_libs= 12091 ;; 12092 12093 cygwin*) 12094 lt_cv_dlopen="dlopen" 12095 lt_cv_dlopen_libs= 12096 ;; 12097 12098 darwin*) 12099 # if libdl is installed we need to link against it 12100 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12101echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12102if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12103 echo $ECHO_N "(cached) $ECHO_C" >&6 12104else 12105 ac_check_lib_save_LIBS=$LIBS 12106LIBS="-ldl $LIBS" 12107cat >conftest.$ac_ext <<_ACEOF 12108/* confdefs.h. */ 12109_ACEOF 12110cat confdefs.h >>conftest.$ac_ext 12111cat >>conftest.$ac_ext <<_ACEOF 12112/* end confdefs.h. */ 12113 12114/* Override any gcc2 internal prototype to avoid an error. */ 12115#ifdef __cplusplus 12116extern "C" 12117#endif 12118/* We use char because int might match the return type of a gcc2 12119 builtin and then its argument prototype would still apply. */ 12120char dlopen (); 12121int 12122main () 12123{ 12124dlopen (); 12125 ; 12126 return 0; 12127} 12128_ACEOF 12129rm -f conftest.$ac_objext conftest$ac_exeext 12130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12131 (eval $ac_link) 2>conftest.er1 12132 ac_status=$? 12133 grep -v '^ *+' conftest.er1 >conftest.err 12134 rm -f conftest.er1 12135 cat conftest.err >&5 12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12137 (exit $ac_status); } && 12138 { ac_try='test -z "$ac_cxx_werror_flag" 12139 || test ! -s conftest.err' 12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12141 (eval $ac_try) 2>&5 12142 ac_status=$? 12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12144 (exit $ac_status); }; } && 12145 { ac_try='test -s conftest$ac_exeext' 12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12147 (eval $ac_try) 2>&5 12148 ac_status=$? 12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12150 (exit $ac_status); }; }; then 12151 ac_cv_lib_dl_dlopen=yes 12152else 12153 echo "$as_me: failed program was:" >&5 12154sed 's/^/| /' conftest.$ac_ext >&5 12155 12156ac_cv_lib_dl_dlopen=no 12157fi 12158rm -f conftest.err conftest.$ac_objext \ 12159 conftest$ac_exeext conftest.$ac_ext 12160LIBS=$ac_check_lib_save_LIBS 12161fi 12162echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12163echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12164if test $ac_cv_lib_dl_dlopen = yes; then 12165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12166else 12167 12168 lt_cv_dlopen="dyld" 12169 lt_cv_dlopen_libs= 12170 lt_cv_dlopen_self=yes 12171 12172fi 12173 12174 ;; 12175 12176 *) 12177 echo "$as_me:$LINENO: checking for shl_load" >&5 12178echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12179if test "${ac_cv_func_shl_load+set}" = set; then 12180 echo $ECHO_N "(cached) $ECHO_C" >&6 12181else 12182 cat >conftest.$ac_ext <<_ACEOF 12183/* confdefs.h. */ 12184_ACEOF 12185cat confdefs.h >>conftest.$ac_ext 12186cat >>conftest.$ac_ext <<_ACEOF 12187/* end confdefs.h. */ 12188/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12189 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12190#define shl_load innocuous_shl_load 12191 12192/* System header to define __stub macros and hopefully few prototypes, 12193 which can conflict with char shl_load (); below. 12194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12195 <limits.h> exists even on freestanding compilers. */ 12196 12197#ifdef __STDC__ 12198# include <limits.h> 12199#else 12200# include <assert.h> 12201#endif 12202 12203#undef shl_load 12204 12205/* Override any gcc2 internal prototype to avoid an error. */ 12206#ifdef __cplusplus 12207extern "C" 12208{ 12209#endif 12210/* We use char because int might match the return type of a gcc2 12211 builtin and then its argument prototype would still apply. */ 12212char shl_load (); 12213/* The GNU C library defines this for functions which it implements 12214 to always fail with ENOSYS. Some functions are actually named 12215 something starting with __ and the normal name is an alias. */ 12216#if defined (__stub_shl_load) || defined (__stub___shl_load) 12217choke me 12218#else 12219char (*f) () = shl_load; 12220#endif 12221#ifdef __cplusplus 12222} 12223#endif 12224 12225int 12226main () 12227{ 12228return f != shl_load; 12229 ; 12230 return 0; 12231} 12232_ACEOF 12233rm -f conftest.$ac_objext conftest$ac_exeext 12234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12235 (eval $ac_link) 2>conftest.er1 12236 ac_status=$? 12237 grep -v '^ *+' conftest.er1 >conftest.err 12238 rm -f conftest.er1 12239 cat conftest.err >&5 12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12241 (exit $ac_status); } && 12242 { ac_try='test -z "$ac_cxx_werror_flag" 12243 || test ! -s conftest.err' 12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12245 (eval $ac_try) 2>&5 12246 ac_status=$? 12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12248 (exit $ac_status); }; } && 12249 { ac_try='test -s conftest$ac_exeext' 12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12251 (eval $ac_try) 2>&5 12252 ac_status=$? 12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12254 (exit $ac_status); }; }; then 12255 ac_cv_func_shl_load=yes 12256else 12257 echo "$as_me: failed program was:" >&5 12258sed 's/^/| /' conftest.$ac_ext >&5 12259 12260ac_cv_func_shl_load=no 12261fi 12262rm -f conftest.err conftest.$ac_objext \ 12263 conftest$ac_exeext conftest.$ac_ext 12264fi 12265echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12266echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12267if test $ac_cv_func_shl_load = yes; then 12268 lt_cv_dlopen="shl_load" 12269else 12270 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12271echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12272if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12273 echo $ECHO_N "(cached) $ECHO_C" >&6 12274else 12275 ac_check_lib_save_LIBS=$LIBS 12276LIBS="-ldld $LIBS" 12277cat >conftest.$ac_ext <<_ACEOF 12278/* confdefs.h. */ 12279_ACEOF 12280cat confdefs.h >>conftest.$ac_ext 12281cat >>conftest.$ac_ext <<_ACEOF 12282/* end confdefs.h. */ 12283 12284/* Override any gcc2 internal prototype to avoid an error. */ 12285#ifdef __cplusplus 12286extern "C" 12287#endif 12288/* We use char because int might match the return type of a gcc2 12289 builtin and then its argument prototype would still apply. */ 12290char shl_load (); 12291int 12292main () 12293{ 12294shl_load (); 12295 ; 12296 return 0; 12297} 12298_ACEOF 12299rm -f conftest.$ac_objext conftest$ac_exeext 12300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12301 (eval $ac_link) 2>conftest.er1 12302 ac_status=$? 12303 grep -v '^ *+' conftest.er1 >conftest.err 12304 rm -f conftest.er1 12305 cat conftest.err >&5 12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12307 (exit $ac_status); } && 12308 { ac_try='test -z "$ac_cxx_werror_flag" 12309 || test ! -s conftest.err' 12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12311 (eval $ac_try) 2>&5 12312 ac_status=$? 12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12314 (exit $ac_status); }; } && 12315 { ac_try='test -s conftest$ac_exeext' 12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12317 (eval $ac_try) 2>&5 12318 ac_status=$? 12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12320 (exit $ac_status); }; }; then 12321 ac_cv_lib_dld_shl_load=yes 12322else 12323 echo "$as_me: failed program was:" >&5 12324sed 's/^/| /' conftest.$ac_ext >&5 12325 12326ac_cv_lib_dld_shl_load=no 12327fi 12328rm -f conftest.err conftest.$ac_objext \ 12329 conftest$ac_exeext conftest.$ac_ext 12330LIBS=$ac_check_lib_save_LIBS 12331fi 12332echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12333echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12334if test $ac_cv_lib_dld_shl_load = yes; then 12335 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12336else 12337 echo "$as_me:$LINENO: checking for dlopen" >&5 12338echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12339if test "${ac_cv_func_dlopen+set}" = set; then 12340 echo $ECHO_N "(cached) $ECHO_C" >&6 12341else 12342 cat >conftest.$ac_ext <<_ACEOF 12343/* confdefs.h. */ 12344_ACEOF 12345cat confdefs.h >>conftest.$ac_ext 12346cat >>conftest.$ac_ext <<_ACEOF 12347/* end confdefs.h. */ 12348/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12349 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12350#define dlopen innocuous_dlopen 12351 12352/* System header to define __stub macros and hopefully few prototypes, 12353 which can conflict with char dlopen (); below. 12354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12355 <limits.h> exists even on freestanding compilers. */ 12356 12357#ifdef __STDC__ 12358# include <limits.h> 12359#else 12360# include <assert.h> 12361#endif 12362 12363#undef dlopen 12364 12365/* Override any gcc2 internal prototype to avoid an error. */ 12366#ifdef __cplusplus 12367extern "C" 12368{ 12369#endif 12370/* We use char because int might match the return type of a gcc2 12371 builtin and then its argument prototype would still apply. */ 12372char dlopen (); 12373/* The GNU C library defines this for functions which it implements 12374 to always fail with ENOSYS. Some functions are actually named 12375 something starting with __ and the normal name is an alias. */ 12376#if defined (__stub_dlopen) || defined (__stub___dlopen) 12377choke me 12378#else 12379char (*f) () = dlopen; 12380#endif 12381#ifdef __cplusplus 12382} 12383#endif 12384 12385int 12386main () 12387{ 12388return f != dlopen; 12389 ; 12390 return 0; 12391} 12392_ACEOF 12393rm -f conftest.$ac_objext conftest$ac_exeext 12394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12395 (eval $ac_link) 2>conftest.er1 12396 ac_status=$? 12397 grep -v '^ *+' conftest.er1 >conftest.err 12398 rm -f conftest.er1 12399 cat conftest.err >&5 12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12401 (exit $ac_status); } && 12402 { ac_try='test -z "$ac_cxx_werror_flag" 12403 || test ! -s conftest.err' 12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12405 (eval $ac_try) 2>&5 12406 ac_status=$? 12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12408 (exit $ac_status); }; } && 12409 { ac_try='test -s conftest$ac_exeext' 12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12411 (eval $ac_try) 2>&5 12412 ac_status=$? 12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12414 (exit $ac_status); }; }; then 12415 ac_cv_func_dlopen=yes 12416else 12417 echo "$as_me: failed program was:" >&5 12418sed 's/^/| /' conftest.$ac_ext >&5 12419 12420ac_cv_func_dlopen=no 12421fi 12422rm -f conftest.err conftest.$ac_objext \ 12423 conftest$ac_exeext conftest.$ac_ext 12424fi 12425echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12426echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12427if test $ac_cv_func_dlopen = yes; then 12428 lt_cv_dlopen="dlopen" 12429else 12430 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12431echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12432if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12433 echo $ECHO_N "(cached) $ECHO_C" >&6 12434else 12435 ac_check_lib_save_LIBS=$LIBS 12436LIBS="-ldl $LIBS" 12437cat >conftest.$ac_ext <<_ACEOF 12438/* confdefs.h. */ 12439_ACEOF 12440cat confdefs.h >>conftest.$ac_ext 12441cat >>conftest.$ac_ext <<_ACEOF 12442/* end confdefs.h. */ 12443 12444/* Override any gcc2 internal prototype to avoid an error. */ 12445#ifdef __cplusplus 12446extern "C" 12447#endif 12448/* We use char because int might match the return type of a gcc2 12449 builtin and then its argument prototype would still apply. */ 12450char dlopen (); 12451int 12452main () 12453{ 12454dlopen (); 12455 ; 12456 return 0; 12457} 12458_ACEOF 12459rm -f conftest.$ac_objext conftest$ac_exeext 12460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12461 (eval $ac_link) 2>conftest.er1 12462 ac_status=$? 12463 grep -v '^ *+' conftest.er1 >conftest.err 12464 rm -f conftest.er1 12465 cat conftest.err >&5 12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12467 (exit $ac_status); } && 12468 { ac_try='test -z "$ac_cxx_werror_flag" 12469 || test ! -s conftest.err' 12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12471 (eval $ac_try) 2>&5 12472 ac_status=$? 12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12474 (exit $ac_status); }; } && 12475 { ac_try='test -s conftest$ac_exeext' 12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12477 (eval $ac_try) 2>&5 12478 ac_status=$? 12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12480 (exit $ac_status); }; }; then 12481 ac_cv_lib_dl_dlopen=yes 12482else 12483 echo "$as_me: failed program was:" >&5 12484sed 's/^/| /' conftest.$ac_ext >&5 12485 12486ac_cv_lib_dl_dlopen=no 12487fi 12488rm -f conftest.err conftest.$ac_objext \ 12489 conftest$ac_exeext conftest.$ac_ext 12490LIBS=$ac_check_lib_save_LIBS 12491fi 12492echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12493echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12494if test $ac_cv_lib_dl_dlopen = yes; then 12495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12496else 12497 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12498echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12499if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12500 echo $ECHO_N "(cached) $ECHO_C" >&6 12501else 12502 ac_check_lib_save_LIBS=$LIBS 12503LIBS="-lsvld $LIBS" 12504cat >conftest.$ac_ext <<_ACEOF 12505/* confdefs.h. */ 12506_ACEOF 12507cat confdefs.h >>conftest.$ac_ext 12508cat >>conftest.$ac_ext <<_ACEOF 12509/* end confdefs.h. */ 12510 12511/* Override any gcc2 internal prototype to avoid an error. */ 12512#ifdef __cplusplus 12513extern "C" 12514#endif 12515/* We use char because int might match the return type of a gcc2 12516 builtin and then its argument prototype would still apply. */ 12517char dlopen (); 12518int 12519main () 12520{ 12521dlopen (); 12522 ; 12523 return 0; 12524} 12525_ACEOF 12526rm -f conftest.$ac_objext conftest$ac_exeext 12527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12528 (eval $ac_link) 2>conftest.er1 12529 ac_status=$? 12530 grep -v '^ *+' conftest.er1 >conftest.err 12531 rm -f conftest.er1 12532 cat conftest.err >&5 12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12534 (exit $ac_status); } && 12535 { ac_try='test -z "$ac_cxx_werror_flag" 12536 || test ! -s conftest.err' 12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12538 (eval $ac_try) 2>&5 12539 ac_status=$? 12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12541 (exit $ac_status); }; } && 12542 { ac_try='test -s conftest$ac_exeext' 12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12544 (eval $ac_try) 2>&5 12545 ac_status=$? 12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12547 (exit $ac_status); }; }; then 12548 ac_cv_lib_svld_dlopen=yes 12549else 12550 echo "$as_me: failed program was:" >&5 12551sed 's/^/| /' conftest.$ac_ext >&5 12552 12553ac_cv_lib_svld_dlopen=no 12554fi 12555rm -f conftest.err conftest.$ac_objext \ 12556 conftest$ac_exeext conftest.$ac_ext 12557LIBS=$ac_check_lib_save_LIBS 12558fi 12559echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12560echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12561if test $ac_cv_lib_svld_dlopen = yes; then 12562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12563else 12564 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12565echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12566if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12567 echo $ECHO_N "(cached) $ECHO_C" >&6 12568else 12569 ac_check_lib_save_LIBS=$LIBS 12570LIBS="-ldld $LIBS" 12571cat >conftest.$ac_ext <<_ACEOF 12572/* confdefs.h. */ 12573_ACEOF 12574cat confdefs.h >>conftest.$ac_ext 12575cat >>conftest.$ac_ext <<_ACEOF 12576/* end confdefs.h. */ 12577 12578/* Override any gcc2 internal prototype to avoid an error. */ 12579#ifdef __cplusplus 12580extern "C" 12581#endif 12582/* We use char because int might match the return type of a gcc2 12583 builtin and then its argument prototype would still apply. */ 12584char dld_link (); 12585int 12586main () 12587{ 12588dld_link (); 12589 ; 12590 return 0; 12591} 12592_ACEOF 12593rm -f conftest.$ac_objext conftest$ac_exeext 12594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12595 (eval $ac_link) 2>conftest.er1 12596 ac_status=$? 12597 grep -v '^ *+' conftest.er1 >conftest.err 12598 rm -f conftest.er1 12599 cat conftest.err >&5 12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12601 (exit $ac_status); } && 12602 { ac_try='test -z "$ac_cxx_werror_flag" 12603 || test ! -s conftest.err' 12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12605 (eval $ac_try) 2>&5 12606 ac_status=$? 12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12608 (exit $ac_status); }; } && 12609 { ac_try='test -s conftest$ac_exeext' 12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12611 (eval $ac_try) 2>&5 12612 ac_status=$? 12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12614 (exit $ac_status); }; }; then 12615 ac_cv_lib_dld_dld_link=yes 12616else 12617 echo "$as_me: failed program was:" >&5 12618sed 's/^/| /' conftest.$ac_ext >&5 12619 12620ac_cv_lib_dld_dld_link=no 12621fi 12622rm -f conftest.err conftest.$ac_objext \ 12623 conftest$ac_exeext conftest.$ac_ext 12624LIBS=$ac_check_lib_save_LIBS 12625fi 12626echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12627echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12628if test $ac_cv_lib_dld_dld_link = yes; then 12629 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12630fi 12631 12632 12633fi 12634 12635 12636fi 12637 12638 12639fi 12640 12641 12642fi 12643 12644 12645fi 12646 12647 ;; 12648 esac 12649 12650 if test "x$lt_cv_dlopen" != xno; then 12651 enable_dlopen=yes 12652 else 12653 enable_dlopen=no 12654 fi 12655 12656 case $lt_cv_dlopen in 12657 dlopen) 12658 save_CPPFLAGS="$CPPFLAGS" 12659 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12660 12661 save_LDFLAGS="$LDFLAGS" 12662 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12663 12664 save_LIBS="$LIBS" 12665 LIBS="$lt_cv_dlopen_libs $LIBS" 12666 12667 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12668echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12669if test "${lt_cv_dlopen_self+set}" = set; then 12670 echo $ECHO_N "(cached) $ECHO_C" >&6 12671else 12672 if test "$cross_compiling" = yes; then : 12673 lt_cv_dlopen_self=cross 12674else 12675 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12676 lt_status=$lt_dlunknown 12677 cat > conftest.$ac_ext <<EOF 12678#line 12678 "configure" 12679#include "confdefs.h" 12680 12681#if HAVE_DLFCN_H 12682#include <dlfcn.h> 12683#endif 12684 12685#include <stdio.h> 12686 12687#ifdef RTLD_GLOBAL 12688# define LT_DLGLOBAL RTLD_GLOBAL 12689#else 12690# ifdef DL_GLOBAL 12691# define LT_DLGLOBAL DL_GLOBAL 12692# else 12693# define LT_DLGLOBAL 0 12694# endif 12695#endif 12696 12697/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12698 find out it does not work in some platform. */ 12699#ifndef LT_DLLAZY_OR_NOW 12700# ifdef RTLD_LAZY 12701# define LT_DLLAZY_OR_NOW RTLD_LAZY 12702# else 12703# ifdef DL_LAZY 12704# define LT_DLLAZY_OR_NOW DL_LAZY 12705# else 12706# ifdef RTLD_NOW 12707# define LT_DLLAZY_OR_NOW RTLD_NOW 12708# else 12709# ifdef DL_NOW 12710# define LT_DLLAZY_OR_NOW DL_NOW 12711# else 12712# define LT_DLLAZY_OR_NOW 0 12713# endif 12714# endif 12715# endif 12716# endif 12717#endif 12718 12719#ifdef __cplusplus 12720extern "C" void exit (int); 12721#endif 12722 12723void fnord() { int i=42;} 12724int main () 12725{ 12726 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12727 int status = $lt_dlunknown; 12728 12729 if (self) 12730 { 12731 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12732 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12733 /* dlclose (self); */ 12734 } 12735 12736 exit (status); 12737} 12738EOF 12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12740 (eval $ac_link) 2>&5 12741 ac_status=$? 12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12743 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12744 (./conftest; exit; ) 2>/dev/null 12745 lt_status=$? 12746 case x$lt_status in 12747 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12748 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12749 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12750 esac 12751 else : 12752 # compilation failed 12753 lt_cv_dlopen_self=no 12754 fi 12755fi 12756rm -fr conftest* 12757 12758 12759fi 12760echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12761echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12762 12763 if test "x$lt_cv_dlopen_self" = xyes; then 12764 LDFLAGS="$LDFLAGS $link_static_flag" 12765 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12766echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12767if test "${lt_cv_dlopen_self_static+set}" = set; then 12768 echo $ECHO_N "(cached) $ECHO_C" >&6 12769else 12770 if test "$cross_compiling" = yes; then : 12771 lt_cv_dlopen_self_static=cross 12772else 12773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12774 lt_status=$lt_dlunknown 12775 cat > conftest.$ac_ext <<EOF 12776#line 12776 "configure" 12777#include "confdefs.h" 12778 12779#if HAVE_DLFCN_H 12780#include <dlfcn.h> 12781#endif 12782 12783#include <stdio.h> 12784 12785#ifdef RTLD_GLOBAL 12786# define LT_DLGLOBAL RTLD_GLOBAL 12787#else 12788# ifdef DL_GLOBAL 12789# define LT_DLGLOBAL DL_GLOBAL 12790# else 12791# define LT_DLGLOBAL 0 12792# endif 12793#endif 12794 12795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12796 find out it does not work in some platform. */ 12797#ifndef LT_DLLAZY_OR_NOW 12798# ifdef RTLD_LAZY 12799# define LT_DLLAZY_OR_NOW RTLD_LAZY 12800# else 12801# ifdef DL_LAZY 12802# define LT_DLLAZY_OR_NOW DL_LAZY 12803# else 12804# ifdef RTLD_NOW 12805# define LT_DLLAZY_OR_NOW RTLD_NOW 12806# else 12807# ifdef DL_NOW 12808# define LT_DLLAZY_OR_NOW DL_NOW 12809# else 12810# define LT_DLLAZY_OR_NOW 0 12811# endif 12812# endif 12813# endif 12814# endif 12815#endif 12816 12817#ifdef __cplusplus 12818extern "C" void exit (int); 12819#endif 12820 12821void fnord() { int i=42;} 12822int main () 12823{ 12824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12825 int status = $lt_dlunknown; 12826 12827 if (self) 12828 { 12829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12830 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12831 /* dlclose (self); */ 12832 } 12833 12834 exit (status); 12835} 12836EOF 12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12838 (eval $ac_link) 2>&5 12839 ac_status=$? 12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12841 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12842 (./conftest; exit; ) 2>/dev/null 12843 lt_status=$? 12844 case x$lt_status in 12845 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12846 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12847 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12848 esac 12849 else : 12850 # compilation failed 12851 lt_cv_dlopen_self_static=no 12852 fi 12853fi 12854rm -fr conftest* 12855 12856 12857fi 12858echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12859echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12860 fi 12861 12862 CPPFLAGS="$save_CPPFLAGS" 12863 LDFLAGS="$save_LDFLAGS" 12864 LIBS="$save_LIBS" 12865 ;; 12866 esac 12867 12868 case $lt_cv_dlopen_self in 12869 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12870 *) enable_dlopen_self=unknown ;; 12871 esac 12872 12873 case $lt_cv_dlopen_self_static in 12874 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12875 *) enable_dlopen_self_static=unknown ;; 12876 esac 12877fi 12878 12879 12880# The else clause should only fire when bootstrapping the 12881# libtool distribution, otherwise you forgot to ship ltmain.sh 12882# with your package, and you will get complaints that there are 12883# no rules to generate ltmain.sh. 12884if test -f "$ltmain"; then 12885 # See if we are running on zsh, and set the options which allow our commands through 12886 # without removal of \ escapes. 12887 if test -n "${ZSH_VERSION+set}" ; then 12888 setopt NO_GLOB_SUBST 12889 fi 12890 # Now quote all the things that may contain metacharacters while being 12891 # careful not to overquote the AC_SUBSTed values. We take copies of the 12892 # variables and quote the copies for generation of the libtool script. 12893 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12894 SED SHELL STRIP \ 12895 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12896 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12897 deplibs_check_method reload_flag reload_cmds need_locks \ 12898 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12899 lt_cv_sys_global_symbol_to_c_name_address \ 12900 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12901 old_postinstall_cmds old_postuninstall_cmds \ 12902 compiler_CXX \ 12903 CC_CXX \ 12904 LD_CXX \ 12905 lt_prog_compiler_wl_CXX \ 12906 lt_prog_compiler_pic_CXX \ 12907 lt_prog_compiler_static_CXX \ 12908 lt_prog_compiler_no_builtin_flag_CXX \ 12909 export_dynamic_flag_spec_CXX \ 12910 thread_safe_flag_spec_CXX \ 12911 whole_archive_flag_spec_CXX \ 12912 enable_shared_with_static_runtimes_CXX \ 12913 old_archive_cmds_CXX \ 12914 old_archive_from_new_cmds_CXX \ 12915 predep_objects_CXX \ 12916 postdep_objects_CXX \ 12917 predeps_CXX \ 12918 postdeps_CXX \ 12919 compiler_lib_search_path_CXX \ 12920 archive_cmds_CXX \ 12921 archive_expsym_cmds_CXX \ 12922 postinstall_cmds_CXX \ 12923 postuninstall_cmds_CXX \ 12924 old_archive_from_expsyms_cmds_CXX \ 12925 allow_undefined_flag_CXX \ 12926 no_undefined_flag_CXX \ 12927 export_symbols_cmds_CXX \ 12928 hardcode_libdir_flag_spec_CXX \ 12929 hardcode_libdir_flag_spec_ld_CXX \ 12930 hardcode_libdir_separator_CXX \ 12931 hardcode_automatic_CXX \ 12932 module_cmds_CXX \ 12933 module_expsym_cmds_CXX \ 12934 lt_cv_prog_compiler_c_o_CXX \ 12935 exclude_expsyms_CXX \ 12936 include_expsyms_CXX; do 12937 12938 case $var in 12939 old_archive_cmds_CXX | \ 12940 old_archive_from_new_cmds_CXX | \ 12941 archive_cmds_CXX | \ 12942 archive_expsym_cmds_CXX | \ 12943 module_cmds_CXX | \ 12944 module_expsym_cmds_CXX | \ 12945 old_archive_from_expsyms_cmds_CXX | \ 12946 export_symbols_cmds_CXX | \ 12947 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12948 postinstall_cmds | postuninstall_cmds | \ 12949 old_postinstall_cmds | old_postuninstall_cmds | \ 12950 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12951 # Double-quote double-evaled strings. 12952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12953 ;; 12954 *) 12955 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12956 ;; 12957 esac 12958 done 12959 12960 case $lt_echo in 12961 *'\$0 --fallback-echo"') 12962 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12963 ;; 12964 esac 12965 12966cfgfile="$ofile" 12967 12968 cat <<__EOF__ >> "$cfgfile" 12969# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12970 12971# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12972 12973# Shell to use when invoking shell scripts. 12974SHELL=$lt_SHELL 12975 12976# Whether or not to build shared libraries. 12977build_libtool_libs=$enable_shared 12978 12979# Whether or not to build static libraries. 12980build_old_libs=$enable_static 12981 12982# Whether or not to add -lc for building shared libraries. 12983build_libtool_need_lc=$archive_cmds_need_lc_CXX 12984 12985# Whether or not to disallow shared libs when runtime libs are static 12986allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12987 12988# Whether or not to optimize for fast installation. 12989fast_install=$enable_fast_install 12990 12991# The host system. 12992host_alias=$host_alias 12993host=$host 12994 12995# An echo program that does not interpret backslashes. 12996echo=$lt_echo 12997 12998# The archiver. 12999AR=$lt_AR 13000AR_FLAGS=$lt_AR_FLAGS 13001 13002# A C compiler. 13003LTCC=$lt_LTCC 13004 13005# A language-specific compiler. 13006CC=$lt_compiler_CXX 13007 13008# Is the compiler the GNU C compiler? 13009with_gcc=$GCC_CXX 13010 13011# An ERE matcher. 13012EGREP=$lt_EGREP 13013 13014# The linker used to build libraries. 13015LD=$lt_LD_CXX 13016 13017# Whether we need hard or soft links. 13018LN_S=$lt_LN_S 13019 13020# A BSD-compatible nm program. 13021NM=$lt_NM 13022 13023# A symbol stripping program 13024STRIP=$lt_STRIP 13025 13026# Used to examine libraries when file_magic_cmd begins "file" 13027MAGIC_CMD=$MAGIC_CMD 13028 13029# Used on cygwin: DLL creation program. 13030DLLTOOL="$DLLTOOL" 13031 13032# Used on cygwin: object dumper. 13033OBJDUMP="$OBJDUMP" 13034 13035# Used on cygwin: assembler. 13036AS="$AS" 13037 13038# The name of the directory that contains temporary libtool files. 13039objdir=$objdir 13040 13041# How to create reloadable object files. 13042reload_flag=$lt_reload_flag 13043reload_cmds=$lt_reload_cmds 13044 13045# How to pass a linker flag through the compiler. 13046wl=$lt_lt_prog_compiler_wl_CXX 13047 13048# Object file suffix (normally "o"). 13049objext="$ac_objext" 13050 13051# Old archive suffix (normally "a"). 13052libext="$libext" 13053 13054# Shared library suffix (normally ".so"). 13055shrext_cmds='$shrext_cmds' 13056 13057# Executable file suffix (normally ""). 13058exeext="$exeext" 13059 13060# Additional compiler flags for building library objects. 13061pic_flag=$lt_lt_prog_compiler_pic_CXX 13062pic_mode=$pic_mode 13063 13064# What is the maximum length of a command? 13065max_cmd_len=$lt_cv_sys_max_cmd_len 13066 13067# Does compiler simultaneously support -c and -o options? 13068compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13069 13070# Must we lock files when doing compilation ? 13071need_locks=$lt_need_locks 13072 13073# Do we need the lib prefix for modules? 13074need_lib_prefix=$need_lib_prefix 13075 13076# Do we need a version for libraries? 13077need_version=$need_version 13078 13079# Whether dlopen is supported. 13080dlopen_support=$enable_dlopen 13081 13082# Whether dlopen of programs is supported. 13083dlopen_self=$enable_dlopen_self 13084 13085# Whether dlopen of statically linked programs is supported. 13086dlopen_self_static=$enable_dlopen_self_static 13087 13088# Compiler flag to prevent dynamic linking. 13089link_static_flag=$lt_lt_prog_compiler_static_CXX 13090 13091# Compiler flag to turn off builtin functions. 13092no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13093 13094# Compiler flag to allow reflexive dlopens. 13095export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13096 13097# Compiler flag to generate shared objects directly from archives. 13098whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13099 13100# Compiler flag to generate thread-safe objects. 13101thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13102 13103# Library versioning type. 13104version_type=$version_type 13105 13106# Format of library name prefix. 13107libname_spec=$lt_libname_spec 13108 13109# List of archive names. First name is the real one, the rest are links. 13110# The last name is the one that the linker finds with -lNAME. 13111library_names_spec=$lt_library_names_spec 13112 13113# The coded name of the library, if different from the real name. 13114soname_spec=$lt_soname_spec 13115 13116# Commands used to build and install an old-style archive. 13117RANLIB=$lt_RANLIB 13118old_archive_cmds=$lt_old_archive_cmds_CXX 13119old_postinstall_cmds=$lt_old_postinstall_cmds 13120old_postuninstall_cmds=$lt_old_postuninstall_cmds 13121 13122# Create an old-style archive from a shared archive. 13123old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13124 13125# Create a temporary old-style archive to link instead of a shared archive. 13126old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13127 13128# Commands used to build and install a shared archive. 13129archive_cmds=$lt_archive_cmds_CXX 13130archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13131postinstall_cmds=$lt_postinstall_cmds 13132postuninstall_cmds=$lt_postuninstall_cmds 13133 13134# Commands used to build a loadable module (assumed same as above if empty) 13135module_cmds=$lt_module_cmds_CXX 13136module_expsym_cmds=$lt_module_expsym_cmds_CXX 13137 13138# Commands to strip libraries. 13139old_striplib=$lt_old_striplib 13140striplib=$lt_striplib 13141 13142# Dependencies to place before the objects being linked to create a 13143# shared library. 13144predep_objects=$lt_predep_objects_CXX 13145 13146# Dependencies to place after the objects being linked to create a 13147# shared library. 13148postdep_objects=$lt_postdep_objects_CXX 13149 13150# Dependencies to place before the objects being linked to create a 13151# shared library. 13152predeps=$lt_predeps_CXX 13153 13154# Dependencies to place after the objects being linked to create a 13155# shared library. 13156postdeps=$lt_postdeps_CXX 13157 13158# The library search path used internally by the compiler when linking 13159# a shared library. 13160compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13161 13162# Method to check whether dependent libraries are shared objects. 13163deplibs_check_method=$lt_deplibs_check_method 13164 13165# Command to use when deplibs_check_method == file_magic. 13166file_magic_cmd=$lt_file_magic_cmd 13167 13168# Flag that allows shared libraries with undefined symbols to be built. 13169allow_undefined_flag=$lt_allow_undefined_flag_CXX 13170 13171# Flag that forces no undefined symbols. 13172no_undefined_flag=$lt_no_undefined_flag_CXX 13173 13174# Commands used to finish a libtool library installation in a directory. 13175finish_cmds=$lt_finish_cmds 13176 13177# Same as above, but a single script fragment to be evaled but not shown. 13178finish_eval=$lt_finish_eval 13179 13180# Take the output of nm and produce a listing of raw symbols and C names. 13181global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13182 13183# Transform the output of nm in a proper C declaration 13184global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13185 13186# Transform the output of nm in a C name address pair 13187global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13188 13189# This is the shared library runtime path variable. 13190runpath_var=$runpath_var 13191 13192# This is the shared library path variable. 13193shlibpath_var=$shlibpath_var 13194 13195# Is shlibpath searched before the hard-coded library search path? 13196shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13197 13198# How to hardcode a shared library path into an executable. 13199hardcode_action=$hardcode_action_CXX 13200 13201# Whether we should hardcode library paths into libraries. 13202hardcode_into_libs=$hardcode_into_libs 13203 13204# Flag to hardcode \$libdir into a binary during linking. 13205# This must work even if \$libdir does not exist. 13206hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13207 13208# If ld is used when linking, flag to hardcode \$libdir into 13209# a binary during linking. This must work even if \$libdir does 13210# not exist. 13211hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13212 13213# Whether we need a single -rpath flag with a separated argument. 13214hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13215 13216# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13217# resulting binary. 13218hardcode_direct=$hardcode_direct_CXX 13219 13220# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13221# resulting binary. 13222hardcode_minus_L=$hardcode_minus_L_CXX 13223 13224# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13225# the resulting binary. 13226hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13227 13228# Set to yes if building a shared library automatically hardcodes DIR into the library 13229# and all subsequent libraries and executables linked against it. 13230hardcode_automatic=$hardcode_automatic_CXX 13231 13232# Variables whose values should be saved in libtool wrapper scripts and 13233# restored at relink time. 13234variables_saved_for_relink="$variables_saved_for_relink" 13235 13236# Whether libtool must link a program against all its dependency libraries. 13237link_all_deplibs=$link_all_deplibs_CXX 13238 13239# Compile-time system search path for libraries 13240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13241 13242# Run-time system search path for libraries 13243sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13244 13245# Fix the shell variable \$srcfile for the compiler. 13246fix_srcfile_path="$fix_srcfile_path_CXX" 13247 13248# Set to yes if exported symbols are required. 13249always_export_symbols=$always_export_symbols_CXX 13250 13251# The commands to list exported symbols. 13252export_symbols_cmds=$lt_export_symbols_cmds_CXX 13253 13254# The commands to extract the exported symbol list from a shared archive. 13255extract_expsyms_cmds=$lt_extract_expsyms_cmds 13256 13257# Symbols that should not be listed in the preloaded symbols. 13258exclude_expsyms=$lt_exclude_expsyms_CXX 13259 13260# Symbols that must always be exported. 13261include_expsyms=$lt_include_expsyms_CXX 13262 13263# ### END LIBTOOL TAG CONFIG: $tagname 13264 13265__EOF__ 13266 13267 13268else 13269 # If there is no Makefile yet, we rely on a make rule to execute 13270 # `config.status --recheck' to rerun these tests and create the 13271 # libtool script then. 13272 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13273 if test -f "$ltmain_in"; then 13274 test -f Makefile && make "$ltmain" 13275 fi 13276fi 13277 13278 13279ac_ext=c 13280ac_cpp='$CPP $CPPFLAGS' 13281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13283ac_compiler_gnu=$ac_cv_c_compiler_gnu 13284 13285CC=$lt_save_CC 13286LDCXX=$LD 13287LD=$lt_save_LD 13288GCC=$lt_save_GCC 13289with_gnu_ldcxx=$with_gnu_ld 13290with_gnu_ld=$lt_save_with_gnu_ld 13291lt_cv_path_LDCXX=$lt_cv_path_LD 13292lt_cv_path_LD=$lt_save_path_LD 13293lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13294lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13295 13296 else 13297 tagname="" 13298 fi 13299 ;; 13300 13301 F77) 13302 if test -n "$F77" && test "X$F77" != "Xno"; then 13303 13304ac_ext=f 13305ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13306ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13307ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13308 13309 13310archive_cmds_need_lc_F77=no 13311allow_undefined_flag_F77= 13312always_export_symbols_F77=no 13313archive_expsym_cmds_F77= 13314export_dynamic_flag_spec_F77= 13315hardcode_direct_F77=no 13316hardcode_libdir_flag_spec_F77= 13317hardcode_libdir_flag_spec_ld_F77= 13318hardcode_libdir_separator_F77= 13319hardcode_minus_L_F77=no 13320hardcode_automatic_F77=no 13321module_cmds_F77= 13322module_expsym_cmds_F77= 13323link_all_deplibs_F77=unknown 13324old_archive_cmds_F77=$old_archive_cmds 13325no_undefined_flag_F77= 13326whole_archive_flag_spec_F77= 13327enable_shared_with_static_runtimes_F77=no 13328 13329# Source file extension for f77 test sources. 13330ac_ext=f 13331 13332# Object file extension for compiled f77 test sources. 13333objext=o 13334objext_F77=$objext 13335 13336# Code to be used in simple compile tests 13337lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13338 13339# Code to be used in simple link tests 13340lt_simple_link_test_code=" program t\n end\n" 13341 13342# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13343 13344# If no C compiler was specified, use CC. 13345LTCC=${LTCC-"$CC"} 13346 13347# Allow CC to be a program name with arguments. 13348compiler=$CC 13349 13350 13351# Allow CC to be a program name with arguments. 13352lt_save_CC="$CC" 13353CC=${F77-"f77"} 13354compiler=$CC 13355compiler_F77=$CC 13356cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13357 13358echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13359echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13360echo "$as_me:$LINENO: result: $can_build_shared" >&5 13361echo "${ECHO_T}$can_build_shared" >&6 13362 13363echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13364echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13365test "$can_build_shared" = "no" && enable_shared=no 13366 13367# On AIX, shared libraries and static libraries use the same namespace, and 13368# are all built from PIC. 13369case "$host_os" in 13370aix3*) 13371 test "$enable_shared" = yes && enable_static=no 13372 if test -n "$RANLIB"; then 13373 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13374 postinstall_cmds='$RANLIB $lib' 13375 fi 13376 ;; 13377aix4* | aix5*) 13378 test "$enable_shared" = yes && enable_static=no 13379 ;; 13380esac 13381echo "$as_me:$LINENO: result: $enable_shared" >&5 13382echo "${ECHO_T}$enable_shared" >&6 13383 13384echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13385echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13386# Make sure either enable_shared or enable_static is yes. 13387test "$enable_shared" = yes || enable_static=yes 13388echo "$as_me:$LINENO: result: $enable_static" >&5 13389echo "${ECHO_T}$enable_static" >&6 13390 13391test "$ld_shlibs_F77" = no && can_build_shared=no 13392 13393GCC_F77="$G77" 13394LD_F77="$LD" 13395 13396lt_prog_compiler_wl_F77= 13397lt_prog_compiler_pic_F77= 13398lt_prog_compiler_static_F77= 13399 13400echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13401echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13402 13403 if test "$GCC" = yes; then 13404 lt_prog_compiler_wl_F77='-Wl,' 13405 lt_prog_compiler_static_F77='-static' 13406 13407 case $host_os in 13408 aix*) 13409 # All AIX code is PIC. 13410 if test "$host_cpu" = ia64; then 13411 # AIX 5 now supports IA64 processor 13412 lt_prog_compiler_static_F77='-Bstatic' 13413 fi 13414 ;; 13415 13416 amigaos*) 13417 # FIXME: we need at least 68020 code to build shared libraries, but 13418 # adding the `-m68020' flag to GCC prevents building anything better, 13419 # like `-m68040'. 13420 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13421 ;; 13422 13423 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13424 # PIC is the default for these OSes. 13425 ;; 13426 13427 mingw* | pw32* | os2*) 13428 # This hack is so that the source file can tell whether it is being 13429 # built for inclusion in a dll (and should export symbols for example). 13430 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13431 ;; 13432 13433 darwin* | rhapsody*) 13434 # PIC is the default on this platform 13435 # Common symbols not allowed in MH_DYLIB files 13436 lt_prog_compiler_pic_F77='-fno-common' 13437 ;; 13438 13439 msdosdjgpp*) 13440 # Just because we use GCC doesn't mean we suddenly get shared libraries 13441 # on systems that don't support them. 13442 lt_prog_compiler_can_build_shared_F77=no 13443 enable_shared=no 13444 ;; 13445 13446 sysv4*MP*) 13447 if test -d /usr/nec; then 13448 lt_prog_compiler_pic_F77=-Kconform_pic 13449 fi 13450 ;; 13451 13452 hpux*) 13453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13454 # not for PA HP-UX. 13455 case "$host_cpu" in 13456 hppa*64*|ia64*) 13457 # +Z the default 13458 ;; 13459 *) 13460 lt_prog_compiler_pic_F77='-fPIC' 13461 ;; 13462 esac 13463 ;; 13464 13465 *) 13466 lt_prog_compiler_pic_F77='-fPIC' 13467 ;; 13468 esac 13469 else 13470 # PORTME Check for flag to pass linker flags through the system compiler. 13471 case $host_os in 13472 aix*) 13473 lt_prog_compiler_wl_F77='-Wl,' 13474 if test "$host_cpu" = ia64; then 13475 # AIX 5 now supports IA64 processor 13476 lt_prog_compiler_static_F77='-Bstatic' 13477 else 13478 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13479 fi 13480 ;; 13481 darwin*) 13482 # PIC is the default on this platform 13483 # Common symbols not allowed in MH_DYLIB files 13484 case "$cc_basename" in 13485 xlc*) 13486 lt_prog_compiler_pic_F77='-qnocommon' 13487 lt_prog_compiler_wl_F77='-Wl,' 13488 ;; 13489 esac 13490 ;; 13491 13492 mingw* | pw32* | os2*) 13493 # This hack is so that the source file can tell whether it is being 13494 # built for inclusion in a dll (and should export symbols for example). 13495 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13496 ;; 13497 13498 hpux9* | hpux10* | hpux11*) 13499 lt_prog_compiler_wl_F77='-Wl,' 13500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13501 # not for PA HP-UX. 13502 case "$host_cpu" in 13503 hppa*64*|ia64*) 13504 # +Z the default 13505 ;; 13506 *) 13507 lt_prog_compiler_pic_F77='+Z' 13508 ;; 13509 esac 13510 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13511 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13512 ;; 13513 13514 irix5* | irix6* | nonstopux*) 13515 lt_prog_compiler_wl_F77='-Wl,' 13516 # PIC (with -KPIC) is the default. 13517 lt_prog_compiler_static_F77='-non_shared' 13518 ;; 13519 13520 newsos6) 13521 lt_prog_compiler_pic_F77='-KPIC' 13522 lt_prog_compiler_static_F77='-Bstatic' 13523 ;; 13524 13525 linux*) 13526 case $CC in 13527 icc* | ecc*) 13528 lt_prog_compiler_wl_F77='-Wl,' 13529 lt_prog_compiler_pic_F77='-KPIC' 13530 lt_prog_compiler_static_F77='-static' 13531 ;; 13532 ccc*) 13533 lt_prog_compiler_wl_F77='-Wl,' 13534 # All Alpha code is PIC. 13535 lt_prog_compiler_static_F77='-non_shared' 13536 ;; 13537 esac 13538 ;; 13539 13540 osf3* | osf4* | osf5*) 13541 lt_prog_compiler_wl_F77='-Wl,' 13542 # All OSF/1 code is PIC. 13543 lt_prog_compiler_static_F77='-non_shared' 13544 ;; 13545 13546 sco3.2v5*) 13547 lt_prog_compiler_pic_F77='-Kpic' 13548 lt_prog_compiler_static_F77='-dn' 13549 ;; 13550 13551 solaris*) 13552 lt_prog_compiler_wl_F77='-Wl,' 13553 lt_prog_compiler_pic_F77='-KPIC' 13554 lt_prog_compiler_static_F77='-Bstatic' 13555 ;; 13556 13557 sunos4*) 13558 lt_prog_compiler_wl_F77='-Qoption ld ' 13559 lt_prog_compiler_pic_F77='-PIC' 13560 lt_prog_compiler_static_F77='-Bstatic' 13561 ;; 13562 13563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13564 lt_prog_compiler_wl_F77='-Wl,' 13565 lt_prog_compiler_pic_F77='-KPIC' 13566 lt_prog_compiler_static_F77='-Bstatic' 13567 ;; 13568 13569 sysv4*MP*) 13570 if test -d /usr/nec ;then 13571 lt_prog_compiler_pic_F77='-Kconform_pic' 13572 lt_prog_compiler_static_F77='-Bstatic' 13573 fi 13574 ;; 13575 13576 uts4*) 13577 lt_prog_compiler_pic_F77='-pic' 13578 lt_prog_compiler_static_F77='-Bstatic' 13579 ;; 13580 13581 *) 13582 lt_prog_compiler_can_build_shared_F77=no 13583 ;; 13584 esac 13585 fi 13586 13587echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13588echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13589 13590# 13591# Check to make sure the PIC flag actually works. 13592# 13593if test -n "$lt_prog_compiler_pic_F77"; then 13594 13595echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13596echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13597if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13598 echo $ECHO_N "(cached) $ECHO_C" >&6 13599else 13600 lt_prog_compiler_pic_works_F77=no 13601 ac_outfile=conftest.$ac_objext 13602 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13603 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13604 # Insert the option either (1) after the last *FLAGS variable, or 13605 # (2) before a word containing "conftest.", or (3) at the end. 13606 # Note that $ac_compile itself does not contain backslashes and begins 13607 # with a dollar sign (not a hyphen), so the echo should work correctly. 13608 # The option is referenced via a variable to avoid confusing sed. 13609 lt_compile=`echo "$ac_compile" | $SED \ 13610 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13612 -e 's:$: $lt_compiler_flag:'` 13613 (eval echo "\"\$as_me:13613: $lt_compile\"" >&5) 13614 (eval "$lt_compile" 2>conftest.err) 13615 ac_status=$? 13616 cat conftest.err >&5 13617 echo "$as_me:13617: \$? = $ac_status" >&5 13618 if (exit $ac_status) && test -s "$ac_outfile"; then 13619 # The compiler can only warn and ignore the option if not recognized 13620 # So say no if there are warnings 13621 if test ! -s conftest.err; then 13622 lt_prog_compiler_pic_works_F77=yes 13623 fi 13624 fi 13625 $rm conftest* 13626 13627fi 13628echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13629echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13630 13631if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13632 case $lt_prog_compiler_pic_F77 in 13633 "" | " "*) ;; 13634 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13635 esac 13636else 13637 lt_prog_compiler_pic_F77= 13638 lt_prog_compiler_can_build_shared_F77=no 13639fi 13640 13641fi 13642case "$host_os" in 13643 # For platforms which do not support PIC, -DPIC is meaningless: 13644 *djgpp*) 13645 lt_prog_compiler_pic_F77= 13646 ;; 13647 *) 13648 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13649 ;; 13650esac 13651 13652echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13653echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13654if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13655 echo $ECHO_N "(cached) $ECHO_C" >&6 13656else 13657 lt_cv_prog_compiler_c_o_F77=no 13658 $rm -r conftest 2>/dev/null 13659 mkdir conftest 13660 cd conftest 13661 mkdir out 13662 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13663 13664 lt_compiler_flag="-o out/conftest2.$ac_objext" 13665 # Insert the option either (1) after the last *FLAGS variable, or 13666 # (2) before a word containing "conftest.", or (3) at the end. 13667 # Note that $ac_compile itself does not contain backslashes and begins 13668 # with a dollar sign (not a hyphen), so the echo should work correctly. 13669 lt_compile=`echo "$ac_compile" | $SED \ 13670 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13672 -e 's:$: $lt_compiler_flag:'` 13673 (eval echo "\"\$as_me:13673: $lt_compile\"" >&5) 13674 (eval "$lt_compile" 2>out/conftest.err) 13675 ac_status=$? 13676 cat out/conftest.err >&5 13677 echo "$as_me:13677: \$? = $ac_status" >&5 13678 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13679 then 13680 # The compiler can only warn and ignore the option if not recognized 13681 # So say no if there are warnings 13682 if test ! -s out/conftest.err; then 13683 lt_cv_prog_compiler_c_o_F77=yes 13684 fi 13685 fi 13686 chmod u+w . 13687 $rm conftest* 13688 # SGI C++ compiler will create directory out/ii_files/ for 13689 # template instantiation 13690 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13691 $rm out/* && rmdir out 13692 cd .. 13693 rmdir conftest 13694 $rm conftest* 13695 13696fi 13697echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13698echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13699 13700 13701hard_links="nottested" 13702if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13703 # do not overwrite the value of need_locks provided by the user 13704 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13705echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13706 hard_links=yes 13707 $rm conftest* 13708 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13709 touch conftest.a 13710 ln conftest.a conftest.b 2>&5 || hard_links=no 13711 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13712 echo "$as_me:$LINENO: result: $hard_links" >&5 13713echo "${ECHO_T}$hard_links" >&6 13714 if test "$hard_links" = no; then 13715 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13716echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13717 need_locks=warn 13718 fi 13719else 13720 need_locks=no 13721fi 13722 13723echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13724echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13725 13726 runpath_var= 13727 allow_undefined_flag_F77= 13728 enable_shared_with_static_runtimes_F77=no 13729 archive_cmds_F77= 13730 archive_expsym_cmds_F77= 13731 old_archive_From_new_cmds_F77= 13732 old_archive_from_expsyms_cmds_F77= 13733 export_dynamic_flag_spec_F77= 13734 whole_archive_flag_spec_F77= 13735 thread_safe_flag_spec_F77= 13736 hardcode_libdir_flag_spec_F77= 13737 hardcode_libdir_flag_spec_ld_F77= 13738 hardcode_libdir_separator_F77= 13739 hardcode_direct_F77=no 13740 hardcode_minus_L_F77=no 13741 hardcode_shlibpath_var_F77=unsupported 13742 link_all_deplibs_F77=unknown 13743 hardcode_automatic_F77=no 13744 module_cmds_F77= 13745 module_expsym_cmds_F77= 13746 always_export_symbols_F77=no 13747 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13748 # include_expsyms should be a list of space-separated symbols to be *always* 13749 # included in the symbol list 13750 include_expsyms_F77= 13751 # exclude_expsyms can be an extended regexp of symbols to exclude 13752 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13754 # as well as any symbol that contains `d'. 13755 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13757 # platforms (ab)use it in PIC code, but their linkers get confused if 13758 # the symbol is explicitly referenced. Since portable code cannot 13759 # rely on this symbol name, it's probably fine to never include it in 13760 # preloaded symbol tables. 13761 extract_expsyms_cmds= 13762 13763 case $host_os in 13764 cygwin* | mingw* | pw32*) 13765 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13766 # When not using gcc, we currently assume that we are using 13767 # Microsoft Visual C++. 13768 if test "$GCC" != yes; then 13769 with_gnu_ld=no 13770 fi 13771 ;; 13772 openbsd*) 13773 with_gnu_ld=no 13774 ;; 13775 esac 13776 13777 ld_shlibs_F77=yes 13778 if test "$with_gnu_ld" = yes; then 13779 # If archive_cmds runs LD, not CC, wlarc should be empty 13780 wlarc='${wl}' 13781 13782 # See if GNU ld supports shared libraries. 13783 case $host_os in 13784 aix3* | aix4* | aix5*) 13785 # On AIX/PPC, the GNU linker is very broken 13786 if test "$host_cpu" != ia64; then 13787 ld_shlibs_F77=no 13788 cat <<EOF 1>&2 13789 13790*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13791*** to be unable to reliably create shared libraries on AIX. 13792*** Therefore, libtool is disabling shared libraries support. If you 13793*** really care for shared libraries, you may want to modify your PATH 13794*** so that a non-GNU linker is found, and then restart. 13795 13796EOF 13797 fi 13798 ;; 13799 13800 amigaos*) 13801 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)' 13802 hardcode_libdir_flag_spec_F77='-L$libdir' 13803 hardcode_minus_L_F77=yes 13804 13805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13806 # that the semantics of dynamic libraries on AmigaOS, at least up 13807 # to version 4, is to share data among multiple programs linked 13808 # with the same dynamic library. Since this doesn't match the 13809 # behavior of shared libraries on other platforms, we can't use 13810 # them. 13811 ld_shlibs_F77=no 13812 ;; 13813 13814 beos*) 13815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13816 allow_undefined_flag_F77=unsupported 13817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13818 # support --undefined. This deserves some investigation. FIXME 13819 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13820 else 13821 ld_shlibs_F77=no 13822 fi 13823 ;; 13824 13825 cygwin* | mingw* | pw32*) 13826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13827 # as there is no search path for DLLs. 13828 hardcode_libdir_flag_spec_F77='-L$libdir' 13829 allow_undefined_flag_F77=unsupported 13830 always_export_symbols_F77=no 13831 enable_shared_with_static_runtimes_F77=yes 13832 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13833 13834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13835 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13836 # If the export-symbols file already is a .def file (1st line 13837 # is EXPORTS), use it as is; otherwise, prepend... 13838 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13839 cp $export_symbols $output_objdir/$soname.def; 13840 else 13841 echo EXPORTS > $output_objdir/$soname.def; 13842 cat $export_symbols >> $output_objdir/$soname.def; 13843 fi~ 13844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13845 else 13846 ld_shlibs=no 13847 fi 13848 ;; 13849 13850 netbsd*) 13851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13852 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13853 wlarc= 13854 else 13855 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13856 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13857 fi 13858 ;; 13859 13860 solaris* | sysv5*) 13861 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13862 ld_shlibs_F77=no 13863 cat <<EOF 1>&2 13864 13865*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13866*** create shared libraries on Solaris systems. Therefore, libtool 13867*** is disabling shared libraries support. We urge you to upgrade GNU 13868*** binutils to release 2.9.1 or newer. Another option is to modify 13869*** your PATH or compiler configuration so that the native linker is 13870*** used, and then restart. 13871 13872EOF 13873 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13875 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13876 else 13877 ld_shlibs_F77=no 13878 fi 13879 ;; 13880 13881 sunos4*) 13882 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13883 wlarc= 13884 hardcode_direct_F77=yes 13885 hardcode_shlibpath_var_F77=no 13886 ;; 13887 13888 linux*) 13889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13890 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13891 archive_cmds_F77="$tmp_archive_cmds" 13892 supports_anon_versioning=no 13893 case `$LD -v 2>/dev/null` in 13894 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13895 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13896 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13897 *\ 2.11.*) ;; # other 2.11 versions 13898 *) supports_anon_versioning=yes ;; 13899 esac 13900 if test $supports_anon_versioning = yes; then 13901 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13902cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13903$echo "local: *; };" >> $output_objdir/$libname.ver~ 13904 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13905 else 13906 archive_expsym_cmds_F77="$tmp_archive_cmds" 13907 fi 13908 else 13909 ld_shlibs_F77=no 13910 fi 13911 ;; 13912 13913 *) 13914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13916 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13917 else 13918 ld_shlibs_F77=no 13919 fi 13920 ;; 13921 esac 13922 13923 if test "$ld_shlibs_F77" = yes; then 13924 runpath_var=LD_RUN_PATH 13925 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13926 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13927 # ancient GNU ld didn't support --whole-archive et. al. 13928 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13929 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13930 else 13931 whole_archive_flag_spec_F77= 13932 fi 13933 fi 13934 else 13935 # PORTME fill in a description of your system's linker (not GNU ld) 13936 case $host_os in 13937 aix3*) 13938 allow_undefined_flag_F77=unsupported 13939 always_export_symbols_F77=yes 13940 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' 13941 # Note: this linker hardcodes the directories in LIBPATH if there 13942 # are no directories specified by -L. 13943 hardcode_minus_L_F77=yes 13944 if test "$GCC" = yes && test -z "$link_static_flag"; then 13945 # Neither direct hardcoding nor static linking is supported with a 13946 # broken collect2. 13947 hardcode_direct_F77=unsupported 13948 fi 13949 ;; 13950 13951 aix4* | aix5*) 13952 if test "$host_cpu" = ia64; then 13953 # On IA64, the linker does run time linking by default, so we don't 13954 # have to do anything special. 13955 aix_use_runtimelinking=no 13956 exp_sym_flag='-Bexport' 13957 no_entry_flag="" 13958 else 13959 # If we're using GNU nm, then we don't want the "-C" option. 13960 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13961 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13962 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' 13963 else 13964 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' 13965 fi 13966 aix_use_runtimelinking=no 13967 13968 # Test if we are trying to use run time linking or normal 13969 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13970 # need to do runtime linking. 13971 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13972 for ld_flag in $LDFLAGS; do 13973 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13974 aix_use_runtimelinking=yes 13975 break 13976 fi 13977 done 13978 esac 13979 13980 exp_sym_flag='-bexport' 13981 no_entry_flag='-bnoentry' 13982 fi 13983 13984 # When large executables or shared objects are built, AIX ld can 13985 # have problems creating the table of contents. If linking a library 13986 # or program results in "error TOC overflow" add -mminimal-toc to 13987 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13988 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13989 13990 archive_cmds_F77='' 13991 hardcode_direct_F77=yes 13992 hardcode_libdir_separator_F77=':' 13993 link_all_deplibs_F77=yes 13994 13995 if test "$GCC" = yes; then 13996 case $host_os in aix4.012|aix4.012.*) 13997 # We only want to do this on AIX 4.2 and lower, the check 13998 # below for broken collect2 doesn't work under 4.3+ 13999 collect2name=`${CC} -print-prog-name=collect2` 14000 if test -f "$collect2name" && \ 14001 strings "$collect2name" | grep resolve_lib_name >/dev/null 14002 then 14003 # We have reworked collect2 14004 hardcode_direct_F77=yes 14005 else 14006 # We have old collect2 14007 hardcode_direct_F77=unsupported 14008 # It fails to find uninstalled libraries when the uninstalled 14009 # path is not listed in the libpath. Setting hardcode_minus_L 14010 # to unsupported forces relinking 14011 hardcode_minus_L_F77=yes 14012 hardcode_libdir_flag_spec_F77='-L$libdir' 14013 hardcode_libdir_separator_F77= 14014 fi 14015 esac 14016 shared_flag='-shared' 14017 else 14018 # not using gcc 14019 if test "$host_cpu" = ia64; then 14020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14021 # chokes on -Wl,-G. The following line is correct: 14022 shared_flag='-G' 14023 else 14024 if test "$aix_use_runtimelinking" = yes; then 14025 shared_flag='${wl}-G' 14026 else 14027 shared_flag='${wl}-bM:SRE' 14028 fi 14029 fi 14030 fi 14031 14032 # It seems that -bexpall does not export symbols beginning with 14033 # underscore (_), so it is better to generate a list of symbols to export. 14034 always_export_symbols_F77=yes 14035 if test "$aix_use_runtimelinking" = yes; then 14036 # Warning - without using the other runtime loading flags (-brtl), 14037 # -berok will link without error, but may produce a broken library. 14038 allow_undefined_flag_F77='-berok' 14039 # Determine the default libpath from the value encoded in an empty executable. 14040 cat >conftest.$ac_ext <<_ACEOF 14041 program main 14042 14043 end 14044_ACEOF 14045rm -f conftest.$ac_objext conftest$ac_exeext 14046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14047 (eval $ac_link) 2>conftest.er1 14048 ac_status=$? 14049 grep -v '^ *+' conftest.er1 >conftest.err 14050 rm -f conftest.er1 14051 cat conftest.err >&5 14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14053 (exit $ac_status); } && 14054 { ac_try='test -z "$ac_f77_werror_flag" 14055 || test ! -s conftest.err' 14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14057 (eval $ac_try) 2>&5 14058 ac_status=$? 14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14060 (exit $ac_status); }; } && 14061 { ac_try='test -s conftest$ac_exeext' 14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14063 (eval $ac_try) 2>&5 14064 ac_status=$? 14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14066 (exit $ac_status); }; }; then 14067 14068aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14069}'` 14070# Check for a 64-bit object if we didn't find anything. 14071if 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; } 14072}'`; fi 14073else 14074 echo "$as_me: failed program was:" >&5 14075sed 's/^/| /' conftest.$ac_ext >&5 14076 14077fi 14078rm -f conftest.err conftest.$ac_objext \ 14079 conftest$ac_exeext conftest.$ac_ext 14080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14081 14082 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14083 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14084 else 14085 if test "$host_cpu" = ia64; then 14086 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14087 allow_undefined_flag_F77="-z nodefs" 14088 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14089 else 14090 # Determine the default libpath from the value encoded in an empty executable. 14091 cat >conftest.$ac_ext <<_ACEOF 14092 program main 14093 14094 end 14095_ACEOF 14096rm -f conftest.$ac_objext conftest$ac_exeext 14097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14098 (eval $ac_link) 2>conftest.er1 14099 ac_status=$? 14100 grep -v '^ *+' conftest.er1 >conftest.err 14101 rm -f conftest.er1 14102 cat conftest.err >&5 14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14104 (exit $ac_status); } && 14105 { ac_try='test -z "$ac_f77_werror_flag" 14106 || test ! -s conftest.err' 14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14108 (eval $ac_try) 2>&5 14109 ac_status=$? 14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14111 (exit $ac_status); }; } && 14112 { ac_try='test -s conftest$ac_exeext' 14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14114 (eval $ac_try) 2>&5 14115 ac_status=$? 14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14117 (exit $ac_status); }; }; then 14118 14119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14120}'` 14121# Check for a 64-bit object if we didn't find anything. 14122if 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; } 14123}'`; fi 14124else 14125 echo "$as_me: failed program was:" >&5 14126sed 's/^/| /' conftest.$ac_ext >&5 14127 14128fi 14129rm -f conftest.err conftest.$ac_objext \ 14130 conftest$ac_exeext conftest.$ac_ext 14131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14132 14133 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14134 # Warning - without using the other run time loading flags, 14135 # -berok will link without error, but may produce a broken library. 14136 no_undefined_flag_F77=' ${wl}-bernotok' 14137 allow_undefined_flag_F77=' ${wl}-berok' 14138 # -bexpall does not export symbols beginning with underscore (_) 14139 always_export_symbols_F77=yes 14140 # Exported symbols can be pulled into shared objects from archives 14141 whole_archive_flag_spec_F77=' ' 14142 archive_cmds_need_lc_F77=yes 14143 # This is similar to how AIX traditionally builds it's shared libraries. 14144 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14145 fi 14146 fi 14147 ;; 14148 14149 amigaos*) 14150 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)' 14151 hardcode_libdir_flag_spec_F77='-L$libdir' 14152 hardcode_minus_L_F77=yes 14153 # see comment about different semantics on the GNU ld section 14154 ld_shlibs_F77=no 14155 ;; 14156 14157 bsdi[45]*) 14158 export_dynamic_flag_spec_F77=-rdynamic 14159 ;; 14160 14161 cygwin* | mingw* | pw32*) 14162 # When not using gcc, we currently assume that we are using 14163 # Microsoft Visual C++. 14164 # hardcode_libdir_flag_spec is actually meaningless, as there is 14165 # no search path for DLLs. 14166 hardcode_libdir_flag_spec_F77=' ' 14167 allow_undefined_flag_F77=unsupported 14168 # Tell ltmain to make .lib files, not .a files. 14169 libext=lib 14170 # Tell ltmain to make .dll files, not .so files. 14171 shrext_cmds=".dll" 14172 # FIXME: Setting linknames here is a bad hack. 14173 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14174 # The linker will automatically build a .lib file if we build a DLL. 14175 old_archive_From_new_cmds_F77='true' 14176 # FIXME: Should let the user specify the lib program. 14177 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14178 fix_srcfile_path='`cygpath -w "$srcfile"`' 14179 enable_shared_with_static_runtimes_F77=yes 14180 ;; 14181 14182 darwin* | rhapsody*) 14183 case "$host_os" in 14184 rhapsody* | darwin1.[012]) 14185 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14186 ;; 14187 *) # Darwin 1.3 on 14188 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14189 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14190 else 14191 case ${MACOSX_DEPLOYMENT_TARGET} in 14192 10.[012]) 14193 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14194 ;; 14195 10.*) 14196 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14197 ;; 14198 esac 14199 fi 14200 ;; 14201 esac 14202 archive_cmds_need_lc_F77=no 14203 hardcode_direct_F77=no 14204 hardcode_automatic_F77=yes 14205 hardcode_shlibpath_var_F77=unsupported 14206 whole_archive_flag_spec_F77='' 14207 link_all_deplibs_F77=yes 14208 if test "$GCC" = yes ; then 14209 output_verbose_link_cmd='echo' 14210 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14211 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14213 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}' 14214 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}' 14215 else 14216 case "$cc_basename" in 14217 xlc*) 14218 output_verbose_link_cmd='echo' 14219 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14220 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14222 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}' 14223 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}' 14224 ;; 14225 *) 14226 ld_shlibs_F77=no 14227 ;; 14228 esac 14229 fi 14230 ;; 14231 14232 dgux*) 14233 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14234 hardcode_libdir_flag_spec_F77='-L$libdir' 14235 hardcode_shlibpath_var_F77=no 14236 ;; 14237 14238 freebsd1*) 14239 ld_shlibs_F77=no 14240 ;; 14241 14242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14243 # support. Future versions do this automatically, but an explicit c++rt0.o 14244 # does not break anything, and helps significantly (at the cost of a little 14245 # extra space). 14246 freebsd2.2*) 14247 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14248 hardcode_libdir_flag_spec_F77='-R$libdir' 14249 hardcode_direct_F77=yes 14250 hardcode_shlibpath_var_F77=no 14251 ;; 14252 14253 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14254 freebsd2*) 14255 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14256 hardcode_direct_F77=yes 14257 hardcode_minus_L_F77=yes 14258 hardcode_shlibpath_var_F77=no 14259 ;; 14260 14261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14262 freebsd* | kfreebsd*-gnu) 14263 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14264 hardcode_libdir_flag_spec_F77='-R$libdir' 14265 hardcode_direct_F77=yes 14266 hardcode_shlibpath_var_F77=no 14267 ;; 14268 14269 hpux9*) 14270 if test "$GCC" = yes; then 14271 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' 14272 else 14273 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' 14274 fi 14275 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14276 hardcode_libdir_separator_F77=: 14277 hardcode_direct_F77=yes 14278 14279 # hardcode_minus_L: Not really in the search PATH, 14280 # but as the default location of the library. 14281 hardcode_minus_L_F77=yes 14282 export_dynamic_flag_spec_F77='${wl}-E' 14283 ;; 14284 14285 hpux10* | hpux11*) 14286 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14287 case "$host_cpu" in 14288 hppa*64*|ia64*) 14289 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14290 ;; 14291 *) 14292 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14293 ;; 14294 esac 14295 else 14296 case "$host_cpu" in 14297 hppa*64*|ia64*) 14298 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14299 ;; 14300 *) 14301 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14302 ;; 14303 esac 14304 fi 14305 if test "$with_gnu_ld" = no; then 14306 case "$host_cpu" in 14307 hppa*64*) 14308 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14309 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14310 hardcode_libdir_separator_F77=: 14311 hardcode_direct_F77=no 14312 hardcode_shlibpath_var_F77=no 14313 ;; 14314 ia64*) 14315 hardcode_libdir_flag_spec_F77='-L$libdir' 14316 hardcode_direct_F77=no 14317 hardcode_shlibpath_var_F77=no 14318 14319 # hardcode_minus_L: Not really in the search PATH, 14320 # but as the default location of the library. 14321 hardcode_minus_L_F77=yes 14322 ;; 14323 *) 14324 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14325 hardcode_libdir_separator_F77=: 14326 hardcode_direct_F77=yes 14327 export_dynamic_flag_spec_F77='${wl}-E' 14328 14329 # hardcode_minus_L: Not really in the search PATH, 14330 # but as the default location of the library. 14331 hardcode_minus_L_F77=yes 14332 ;; 14333 esac 14334 fi 14335 ;; 14336 14337 irix5* | irix6* | nonstopux*) 14338 if test "$GCC" = yes; then 14339 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' 14340 else 14341 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' 14342 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14343 fi 14344 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14345 hardcode_libdir_separator_F77=: 14346 link_all_deplibs_F77=yes 14347 ;; 14348 14349 netbsd*) 14350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14351 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14352 else 14353 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14354 fi 14355 hardcode_libdir_flag_spec_F77='-R$libdir' 14356 hardcode_direct_F77=yes 14357 hardcode_shlibpath_var_F77=no 14358 ;; 14359 14360 newsos6) 14361 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14362 hardcode_direct_F77=yes 14363 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14364 hardcode_libdir_separator_F77=: 14365 hardcode_shlibpath_var_F77=no 14366 ;; 14367 14368 openbsd*) 14369 hardcode_direct_F77=yes 14370 hardcode_shlibpath_var_F77=no 14371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14372 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14373 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14374 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14375 export_dynamic_flag_spec_F77='${wl}-E' 14376 else 14377 case $host_os in 14378 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14379 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14380 hardcode_libdir_flag_spec_F77='-R$libdir' 14381 ;; 14382 *) 14383 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14384 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14385 ;; 14386 esac 14387 fi 14388 ;; 14389 14390 os2*) 14391 hardcode_libdir_flag_spec_F77='-L$libdir' 14392 hardcode_minus_L_F77=yes 14393 allow_undefined_flag_F77=unsupported 14394 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' 14395 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14396 ;; 14397 14398 osf3*) 14399 if test "$GCC" = yes; then 14400 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14401 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' 14402 else 14403 allow_undefined_flag_F77=' -expect_unresolved \*' 14404 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' 14405 fi 14406 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14407 hardcode_libdir_separator_F77=: 14408 ;; 14409 14410 osf4* | osf5*) # as osf3* with the addition of -msym flag 14411 if test "$GCC" = yes; then 14412 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14413 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' 14414 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14415 else 14416 allow_undefined_flag_F77=' -expect_unresolved \*' 14417 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' 14418 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~ 14419 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 14420 14421 # Both c and cxx compiler support -rpath directly 14422 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14423 fi 14424 hardcode_libdir_separator_F77=: 14425 ;; 14426 14427 sco3.2v5*) 14428 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14429 hardcode_shlibpath_var_F77=no 14430 export_dynamic_flag_spec_F77='${wl}-Bexport' 14431 runpath_var=LD_RUN_PATH 14432 hardcode_runpath_var=yes 14433 ;; 14434 14435 solaris*) 14436 no_undefined_flag_F77=' -z text' 14437 if test "$GCC" = yes; then 14438 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14439 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14440 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14441 else 14442 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14443 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14445 fi 14446 hardcode_libdir_flag_spec_F77='-R$libdir' 14447 hardcode_shlibpath_var_F77=no 14448 case $host_os in 14449 solaris2.[0-5] | solaris2.[0-5].*) ;; 14450 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14451 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14452 esac 14453 link_all_deplibs_F77=yes 14454 ;; 14455 14456 sunos4*) 14457 if test "x$host_vendor" = xsequent; then 14458 # Use $CC to link under sequent, because it throws in some extra .o 14459 # files that make .init and .fini sections work. 14460 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14461 else 14462 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14463 fi 14464 hardcode_libdir_flag_spec_F77='-L$libdir' 14465 hardcode_direct_F77=yes 14466 hardcode_minus_L_F77=yes 14467 hardcode_shlibpath_var_F77=no 14468 ;; 14469 14470 sysv4) 14471 case $host_vendor in 14472 sni) 14473 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14474 hardcode_direct_F77=yes # is this really true??? 14475 ;; 14476 siemens) 14477 ## LD is ld it makes a PLAMLIB 14478 ## CC just makes a GrossModule. 14479 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14480 reload_cmds_F77='$CC -r -o $output$reload_objs' 14481 hardcode_direct_F77=no 14482 ;; 14483 motorola) 14484 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14485 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14486 ;; 14487 esac 14488 runpath_var='LD_RUN_PATH' 14489 hardcode_shlibpath_var_F77=no 14490 ;; 14491 14492 sysv4.3*) 14493 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14494 hardcode_shlibpath_var_F77=no 14495 export_dynamic_flag_spec_F77='-Bexport' 14496 ;; 14497 14498 sysv4*MP*) 14499 if test -d /usr/nec; then 14500 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14501 hardcode_shlibpath_var_F77=no 14502 runpath_var=LD_RUN_PATH 14503 hardcode_runpath_var=yes 14504 ld_shlibs_F77=yes 14505 fi 14506 ;; 14507 14508 sysv4.2uw2*) 14509 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14510 hardcode_direct_F77=yes 14511 hardcode_minus_L_F77=no 14512 hardcode_shlibpath_var_F77=no 14513 hardcode_runpath_var=yes 14514 runpath_var=LD_RUN_PATH 14515 ;; 14516 14517 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14518 no_undefined_flag_F77='${wl}-z ${wl}text' 14519 if test "$GCC" = yes; then 14520 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14521 else 14522 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14523 fi 14524 runpath_var='LD_RUN_PATH' 14525 hardcode_shlibpath_var_F77=no 14526 ;; 14527 14528 sysv5*) 14529 no_undefined_flag_F77=' -z text' 14530 # $CC -shared without GNU ld will not create a library from C++ 14531 # object files and a static libstdc++, better avoid it by now 14532 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14533 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14535 hardcode_libdir_flag_spec_F77= 14536 hardcode_shlibpath_var_F77=no 14537 runpath_var='LD_RUN_PATH' 14538 ;; 14539 14540 uts4*) 14541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14542 hardcode_libdir_flag_spec_F77='-L$libdir' 14543 hardcode_shlibpath_var_F77=no 14544 ;; 14545 14546 *) 14547 ld_shlibs_F77=no 14548 ;; 14549 esac 14550 fi 14551 14552echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14553echo "${ECHO_T}$ld_shlibs_F77" >&6 14554test "$ld_shlibs_F77" = no && can_build_shared=no 14555 14556variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14557if test "$GCC" = yes; then 14558 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14559fi 14560 14561# 14562# Do we need to explicitly link libc? 14563# 14564case "x$archive_cmds_need_lc_F77" in 14565x|xyes) 14566 # Assume -lc should be added 14567 archive_cmds_need_lc_F77=yes 14568 14569 if test "$enable_shared" = yes && test "$GCC" = yes; then 14570 case $archive_cmds_F77 in 14571 *'~'*) 14572 # FIXME: we may have to deal with multi-command sequences. 14573 ;; 14574 '$CC '*) 14575 # Test whether the compiler implicitly links with -lc since on some 14576 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14577 # to ld, don't add -lc before -lgcc. 14578 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14579echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14580 $rm conftest* 14581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14582 14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14584 (eval $ac_compile) 2>&5 14585 ac_status=$? 14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14587 (exit $ac_status); } 2>conftest.err; then 14588 soname=conftest 14589 lib=conftest 14590 libobjs=conftest.$ac_objext 14591 deplibs= 14592 wl=$lt_prog_compiler_wl_F77 14593 compiler_flags=-v 14594 linker_flags=-v 14595 verstring= 14596 output_objdir=. 14597 libname=conftest 14598 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14599 allow_undefined_flag_F77= 14600 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14601 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14602 ac_status=$? 14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14604 (exit $ac_status); } 14605 then 14606 archive_cmds_need_lc_F77=no 14607 else 14608 archive_cmds_need_lc_F77=yes 14609 fi 14610 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14611 else 14612 cat conftest.err 1>&5 14613 fi 14614 $rm conftest* 14615 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14616echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14617 ;; 14618 esac 14619 fi 14620 ;; 14621esac 14622 14623echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14624echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14625library_names_spec= 14626libname_spec='lib$name' 14627soname_spec= 14628shrext_cmds=".so" 14629postinstall_cmds= 14630postuninstall_cmds= 14631finish_cmds= 14632finish_eval= 14633shlibpath_var= 14634shlibpath_overrides_runpath=unknown 14635version_type=none 14636dynamic_linker="$host_os ld.so" 14637sys_lib_dlsearch_path_spec="/lib /usr/lib" 14638if test "$GCC" = yes; then 14639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14641 # if the path contains ";" then we assume it to be the separator 14642 # otherwise default to the standard path separator (i.e. ":") - it is 14643 # assumed that no part of a normal pathname contains ";" but that should 14644 # okay in the real world where ";" in dirpaths is itself problematic. 14645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14646 else 14647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14648 fi 14649else 14650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14651fi 14652need_lib_prefix=unknown 14653hardcode_into_libs=no 14654 14655# when you set need_version to no, make sure it does not cause -set_version 14656# flags to be left without arguments 14657need_version=unknown 14658 14659case $host_os in 14660aix3*) 14661 version_type=linux 14662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14663 shlibpath_var=LIBPATH 14664 14665 # AIX 3 has no versioning support, so we append a major version to the name. 14666 soname_spec='${libname}${release}${shared_ext}$major' 14667 ;; 14668 14669aix4* | aix5*) 14670 version_type=linux 14671 need_lib_prefix=no 14672 need_version=no 14673 hardcode_into_libs=yes 14674 if test "$host_cpu" = ia64; then 14675 # AIX 5 supports IA64 14676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14677 shlibpath_var=LD_LIBRARY_PATH 14678 else 14679 # With GCC up to 2.95.x, collect2 would create an import file 14680 # for dependence libraries. The import file would start with 14681 # the line `#! .'. This would cause the generated library to 14682 # depend on `.', always an invalid library. This was fixed in 14683 # development snapshots of GCC prior to 3.0. 14684 case $host_os in 14685 aix4 | aix4.[01] | aix4.[01].*) 14686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14687 echo ' yes ' 14688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14689 : 14690 else 14691 can_build_shared=no 14692 fi 14693 ;; 14694 esac 14695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14696 # soname into executable. Probably we can add versioning support to 14697 # collect2, so additional links can be useful in future. 14698 if test "$aix_use_runtimelinking" = yes; then 14699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14700 # instead of lib<name>.a to let people know that these are not 14701 # typical AIX shared libraries. 14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14703 else 14704 # We preserve .a as extension for shared libraries through AIX4.2 14705 # and later when we are not doing run time linking. 14706 library_names_spec='${libname}${release}.a $libname.a' 14707 soname_spec='${libname}${release}${shared_ext}$major' 14708 fi 14709 shlibpath_var=LIBPATH 14710 fi 14711 ;; 14712 14713amigaos*) 14714 library_names_spec='$libname.ixlibrary $libname.a' 14715 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14716 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' 14717 ;; 14718 14719beos*) 14720 library_names_spec='${libname}${shared_ext}' 14721 dynamic_linker="$host_os ld.so" 14722 shlibpath_var=LIBRARY_PATH 14723 ;; 14724 14725bsdi[45]*) 14726 version_type=linux 14727 need_version=no 14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14729 soname_spec='${libname}${release}${shared_ext}$major' 14730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14731 shlibpath_var=LD_LIBRARY_PATH 14732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14734 # the default ld.so.conf also contains /usr/contrib/lib and 14735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14736 # libtool to hard-code these into programs 14737 ;; 14738 14739cygwin* | mingw* | pw32*) 14740 version_type=windows 14741 shrext_cmds=".dll" 14742 need_version=no 14743 need_lib_prefix=no 14744 14745 case $GCC,$host_os in 14746 yes,cygwin* | yes,mingw* | yes,pw32*) 14747 library_names_spec='$libname.dll.a' 14748 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14749 postinstall_cmds='base_file=`basename \${file}`~ 14750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14751 dldir=$destdir/`dirname \$dlpath`~ 14752 test -d \$dldir || mkdir -p \$dldir~ 14753 $install_prog $dir/$dlname \$dldir/$dlname' 14754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14755 dlpath=$dir/\$dldll~ 14756 $rm \$dlpath' 14757 shlibpath_overrides_runpath=yes 14758 14759 case $host_os in 14760 cygwin*) 14761 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14762 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14763 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14764 ;; 14765 mingw*) 14766 # MinGW DLLs use traditional 'lib' prefix 14767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14768 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14769 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14770 # It is most probably a Windows format PATH printed by 14771 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14772 # path with ; separators, and with drive letters. We can handle the 14773 # drive letters (cygwin fileutils understands them), so leave them, 14774 # especially as we might pass files found there to a mingw objdump, 14775 # which wouldn't understand a cygwinified path. Ahh. 14776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14777 else 14778 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14779 fi 14780 ;; 14781 pw32*) 14782 # pw32 DLLs use 'pw' prefix rather than 'lib' 14783 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14784 ;; 14785 esac 14786 ;; 14787 14788 *) 14789 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14790 ;; 14791 esac 14792 dynamic_linker='Win32 ld.exe' 14793 # FIXME: first we should search . and the directory the executable is in 14794 shlibpath_var=PATH 14795 ;; 14796 14797darwin* | rhapsody*) 14798 dynamic_linker="$host_os dyld" 14799 version_type=darwin 14800 need_lib_prefix=no 14801 need_version=no 14802 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14803 soname_spec='${libname}${release}${major}$shared_ext' 14804 shlibpath_overrides_runpath=yes 14805 shlibpath_var=DYLD_LIBRARY_PATH 14806 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14807 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14808 if test "$GCC" = yes; then 14809 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"` 14810 else 14811 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14812 fi 14813 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14814 ;; 14815 14816dgux*) 14817 version_type=linux 14818 need_lib_prefix=no 14819 need_version=no 14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14821 soname_spec='${libname}${release}${shared_ext}$major' 14822 shlibpath_var=LD_LIBRARY_PATH 14823 ;; 14824 14825freebsd1*) 14826 dynamic_linker=no 14827 ;; 14828 14829kfreebsd*-gnu) 14830 version_type=linux 14831 need_lib_prefix=no 14832 need_version=no 14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14834 soname_spec='${libname}${release}${shared_ext}$major' 14835 shlibpath_var=LD_LIBRARY_PATH 14836 shlibpath_overrides_runpath=no 14837 hardcode_into_libs=yes 14838 dynamic_linker='GNU ld.so' 14839 ;; 14840 14841freebsd*) 14842 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14843 version_type=freebsd-$objformat 14844 case $version_type in 14845 freebsd-elf*) 14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14847 need_version=no 14848 need_lib_prefix=no 14849 ;; 14850 freebsd-*) 14851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14852 need_version=yes 14853 ;; 14854 esac 14855 shlibpath_var=LD_LIBRARY_PATH 14856 case $host_os in 14857 freebsd2*) 14858 shlibpath_overrides_runpath=yes 14859 ;; 14860 freebsd3.01* | freebsdelf3.01*) 14861 shlibpath_overrides_runpath=yes 14862 hardcode_into_libs=yes 14863 ;; 14864 *) # from 3.2 on 14865 shlibpath_overrides_runpath=no 14866 hardcode_into_libs=yes 14867 ;; 14868 esac 14869 ;; 14870 14871gnu*) 14872 version_type=linux 14873 need_lib_prefix=no 14874 need_version=no 14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14876 soname_spec='${libname}${release}${shared_ext}$major' 14877 shlibpath_var=LD_LIBRARY_PATH 14878 hardcode_into_libs=yes 14879 ;; 14880 14881hpux9* | hpux10* | hpux11*) 14882 # Give a soname corresponding to the major version so that dld.sl refuses to 14883 # link against other versions. 14884 version_type=sunos 14885 need_lib_prefix=no 14886 need_version=no 14887 case "$host_cpu" in 14888 ia64*) 14889 shrext_cmds='.so' 14890 hardcode_into_libs=yes 14891 dynamic_linker="$host_os dld.so" 14892 shlibpath_var=LD_LIBRARY_PATH 14893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14895 soname_spec='${libname}${release}${shared_ext}$major' 14896 if test "X$HPUX_IA64_MODE" = X32; then 14897 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14898 else 14899 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14900 fi 14901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14902 ;; 14903 hppa*64*) 14904 shrext_cmds='.sl' 14905 hardcode_into_libs=yes 14906 dynamic_linker="$host_os dld.sl" 14907 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14910 soname_spec='${libname}${release}${shared_ext}$major' 14911 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14913 ;; 14914 *) 14915 shrext_cmds='.sl' 14916 dynamic_linker="$host_os dld.sl" 14917 shlibpath_var=SHLIB_PATH 14918 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14920 soname_spec='${libname}${release}${shared_ext}$major' 14921 ;; 14922 esac 14923 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14924 postinstall_cmds='chmod 555 $lib' 14925 ;; 14926 14927irix5* | irix6* | nonstopux*) 14928 case $host_os in 14929 nonstopux*) version_type=nonstopux ;; 14930 *) 14931 if test "$lt_cv_prog_gnu_ld" = yes; then 14932 version_type=linux 14933 else 14934 version_type=irix 14935 fi ;; 14936 esac 14937 need_lib_prefix=no 14938 need_version=no 14939 soname_spec='${libname}${release}${shared_ext}$major' 14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14941 case $host_os in 14942 irix5* | nonstopux*) 14943 libsuff= shlibsuff= 14944 ;; 14945 *) 14946 case $LD in # libtool.m4 will add one of these switches to LD 14947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14948 libsuff= shlibsuff= libmagic=32-bit;; 14949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14950 libsuff=32 shlibsuff=N32 libmagic=N32;; 14951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14952 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14953 *) libsuff= shlibsuff= libmagic=never-match;; 14954 esac 14955 ;; 14956 esac 14957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14958 shlibpath_overrides_runpath=no 14959 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14960 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14961 hardcode_into_libs=yes 14962 ;; 14963 14964# No shared lib support for Linux oldld, aout, or coff. 14965linux*oldld* | linux*aout* | linux*coff*) 14966 dynamic_linker=no 14967 ;; 14968 14969# This must be Linux ELF. 14970linux*) 14971 version_type=linux 14972 need_lib_prefix=no 14973 need_version=no 14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14975 soname_spec='${libname}${release}${shared_ext}$major' 14976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14977 shlibpath_var=LD_LIBRARY_PATH 14978 shlibpath_overrides_runpath=no 14979 # This implies no fast_install, which is unacceptable. 14980 # Some rework will be needed to allow for fast_install 14981 # before this can be enabled. 14982 hardcode_into_libs=yes 14983 14984 # Append ld.so.conf contents to the search path 14985 if test -f /etc/ld.so.conf; then 14986 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14987 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14988 fi 14989 14990 # We used to test for /lib/ld.so.1 and disable shared libraries on 14991 # powerpc, because MkLinux only supported shared libraries with the 14992 # GNU dynamic linker. Since this was broken with cross compilers, 14993 # most powerpc-linux boxes support dynamic linking these days and 14994 # people can always --disable-shared, the test was removed, and we 14995 # assume the GNU/Linux dynamic linker is in use. 14996 dynamic_linker='GNU/Linux ld.so' 14997 ;; 14998 14999knetbsd*-gnu) 15000 version_type=linux 15001 need_lib_prefix=no 15002 need_version=no 15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15004 soname_spec='${libname}${release}${shared_ext}$major' 15005 shlibpath_var=LD_LIBRARY_PATH 15006 shlibpath_overrides_runpath=no 15007 hardcode_into_libs=yes 15008 dynamic_linker='GNU ld.so' 15009 ;; 15010 15011netbsd*) 15012 version_type=sunos 15013 need_lib_prefix=no 15014 need_version=no 15015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15018 dynamic_linker='NetBSD (a.out) ld.so' 15019 else 15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15021 soname_spec='${libname}${release}${shared_ext}$major' 15022 dynamic_linker='NetBSD ld.elf_so' 15023 fi 15024 shlibpath_var=LD_LIBRARY_PATH 15025 shlibpath_overrides_runpath=yes 15026 hardcode_into_libs=yes 15027 ;; 15028 15029newsos6) 15030 version_type=linux 15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15032 shlibpath_var=LD_LIBRARY_PATH 15033 shlibpath_overrides_runpath=yes 15034 ;; 15035 15036nto-qnx*) 15037 version_type=linux 15038 need_lib_prefix=no 15039 need_version=no 15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15041 soname_spec='${libname}${release}${shared_ext}$major' 15042 shlibpath_var=LD_LIBRARY_PATH 15043 shlibpath_overrides_runpath=yes 15044 ;; 15045 15046openbsd*) 15047 version_type=sunos 15048 need_lib_prefix=no 15049 need_version=no 15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15052 shlibpath_var=LD_LIBRARY_PATH 15053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15054 case $host_os in 15055 openbsd2.[89] | openbsd2.[89].*) 15056 shlibpath_overrides_runpath=no 15057 ;; 15058 *) 15059 shlibpath_overrides_runpath=yes 15060 ;; 15061 esac 15062 else 15063 shlibpath_overrides_runpath=yes 15064 fi 15065 ;; 15066 15067os2*) 15068 libname_spec='$name' 15069 shrext_cmds=".dll" 15070 need_lib_prefix=no 15071 library_names_spec='$libname${shared_ext} $libname.a' 15072 dynamic_linker='OS/2 ld.exe' 15073 shlibpath_var=LIBPATH 15074 ;; 15075 15076osf3* | osf4* | osf5*) 15077 version_type=osf 15078 need_lib_prefix=no 15079 need_version=no 15080 soname_spec='${libname}${release}${shared_ext}$major' 15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15082 shlibpath_var=LD_LIBRARY_PATH 15083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15085 ;; 15086 15087sco3.2v5*) 15088 version_type=osf 15089 soname_spec='${libname}${release}${shared_ext}$major' 15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15091 shlibpath_var=LD_LIBRARY_PATH 15092 ;; 15093 15094solaris*) 15095 version_type=linux 15096 need_lib_prefix=no 15097 need_version=no 15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15099 soname_spec='${libname}${release}${shared_ext}$major' 15100 shlibpath_var=LD_LIBRARY_PATH 15101 shlibpath_overrides_runpath=yes 15102 hardcode_into_libs=yes 15103 # ldd complains unless libraries are executable 15104 postinstall_cmds='chmod +x $lib' 15105 ;; 15106 15107sunos4*) 15108 version_type=sunos 15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15111 shlibpath_var=LD_LIBRARY_PATH 15112 shlibpath_overrides_runpath=yes 15113 if test "$with_gnu_ld" = yes; then 15114 need_lib_prefix=no 15115 fi 15116 need_version=yes 15117 ;; 15118 15119sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15120 version_type=linux 15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15122 soname_spec='${libname}${release}${shared_ext}$major' 15123 shlibpath_var=LD_LIBRARY_PATH 15124 case $host_vendor in 15125 sni) 15126 shlibpath_overrides_runpath=no 15127 need_lib_prefix=no 15128 export_dynamic_flag_spec='${wl}-Blargedynsym' 15129 runpath_var=LD_RUN_PATH 15130 ;; 15131 siemens) 15132 need_lib_prefix=no 15133 ;; 15134 motorola) 15135 need_lib_prefix=no 15136 need_version=no 15137 shlibpath_overrides_runpath=no 15138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15139 ;; 15140 esac 15141 ;; 15142 15143sysv4*MP*) 15144 if test -d /usr/nec ;then 15145 version_type=linux 15146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15147 soname_spec='$libname${shared_ext}.$major' 15148 shlibpath_var=LD_LIBRARY_PATH 15149 fi 15150 ;; 15151 15152uts4*) 15153 version_type=linux 15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15155 soname_spec='${libname}${release}${shared_ext}$major' 15156 shlibpath_var=LD_LIBRARY_PATH 15157 ;; 15158 15159*) 15160 dynamic_linker=no 15161 ;; 15162esac 15163echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15164echo "${ECHO_T}$dynamic_linker" >&6 15165test "$dynamic_linker" = no && can_build_shared=no 15166 15167echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15168echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15169hardcode_action_F77= 15170if test -n "$hardcode_libdir_flag_spec_F77" || \ 15171 test -n "$runpath_var_F77" || \ 15172 test "X$hardcode_automatic_F77" = "Xyes" ; then 15173 15174 # We can hardcode non-existant directories. 15175 if test "$hardcode_direct_F77" != no && 15176 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15177 # have to relink, otherwise we might link with an installed library 15178 # when we should be linking with a yet-to-be-installed one 15179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15180 test "$hardcode_minus_L_F77" != no; then 15181 # Linking always hardcodes the temporary library directory. 15182 hardcode_action_F77=relink 15183 else 15184 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15185 hardcode_action_F77=immediate 15186 fi 15187else 15188 # We cannot hardcode anything, or else we can only hardcode existing 15189 # directories. 15190 hardcode_action_F77=unsupported 15191fi 15192echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15193echo "${ECHO_T}$hardcode_action_F77" >&6 15194 15195if test "$hardcode_action_F77" = relink; then 15196 # Fast installation is not supported 15197 enable_fast_install=no 15198elif test "$shlibpath_overrides_runpath" = yes || 15199 test "$enable_shared" = no; then 15200 # Fast installation is not necessary 15201 enable_fast_install=needless 15202fi 15203 15204striplib= 15205old_striplib= 15206echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15207echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15208if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15210 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15211 echo "$as_me:$LINENO: result: yes" >&5 15212echo "${ECHO_T}yes" >&6 15213else 15214# FIXME - insert some real tests, host_os isn't really good enough 15215 case $host_os in 15216 darwin*) 15217 if test -n "$STRIP" ; then 15218 striplib="$STRIP -x" 15219 echo "$as_me:$LINENO: result: yes" >&5 15220echo "${ECHO_T}yes" >&6 15221 else 15222 echo "$as_me:$LINENO: result: no" >&5 15223echo "${ECHO_T}no" >&6 15224fi 15225 ;; 15226 *) 15227 echo "$as_me:$LINENO: result: no" >&5 15228echo "${ECHO_T}no" >&6 15229 ;; 15230 esac 15231fi 15232 15233 15234 15235# The else clause should only fire when bootstrapping the 15236# libtool distribution, otherwise you forgot to ship ltmain.sh 15237# with your package, and you will get complaints that there are 15238# no rules to generate ltmain.sh. 15239if test -f "$ltmain"; then 15240 # See if we are running on zsh, and set the options which allow our commands through 15241 # without removal of \ escapes. 15242 if test -n "${ZSH_VERSION+set}" ; then 15243 setopt NO_GLOB_SUBST 15244 fi 15245 # Now quote all the things that may contain metacharacters while being 15246 # careful not to overquote the AC_SUBSTed values. We take copies of the 15247 # variables and quote the copies for generation of the libtool script. 15248 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15249 SED SHELL STRIP \ 15250 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15251 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15252 deplibs_check_method reload_flag reload_cmds need_locks \ 15253 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15254 lt_cv_sys_global_symbol_to_c_name_address \ 15255 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15256 old_postinstall_cmds old_postuninstall_cmds \ 15257 compiler_F77 \ 15258 CC_F77 \ 15259 LD_F77 \ 15260 lt_prog_compiler_wl_F77 \ 15261 lt_prog_compiler_pic_F77 \ 15262 lt_prog_compiler_static_F77 \ 15263 lt_prog_compiler_no_builtin_flag_F77 \ 15264 export_dynamic_flag_spec_F77 \ 15265 thread_safe_flag_spec_F77 \ 15266 whole_archive_flag_spec_F77 \ 15267 enable_shared_with_static_runtimes_F77 \ 15268 old_archive_cmds_F77 \ 15269 old_archive_from_new_cmds_F77 \ 15270 predep_objects_F77 \ 15271 postdep_objects_F77 \ 15272 predeps_F77 \ 15273 postdeps_F77 \ 15274 compiler_lib_search_path_F77 \ 15275 archive_cmds_F77 \ 15276 archive_expsym_cmds_F77 \ 15277 postinstall_cmds_F77 \ 15278 postuninstall_cmds_F77 \ 15279 old_archive_from_expsyms_cmds_F77 \ 15280 allow_undefined_flag_F77 \ 15281 no_undefined_flag_F77 \ 15282 export_symbols_cmds_F77 \ 15283 hardcode_libdir_flag_spec_F77 \ 15284 hardcode_libdir_flag_spec_ld_F77 \ 15285 hardcode_libdir_separator_F77 \ 15286 hardcode_automatic_F77 \ 15287 module_cmds_F77 \ 15288 module_expsym_cmds_F77 \ 15289 lt_cv_prog_compiler_c_o_F77 \ 15290 exclude_expsyms_F77 \ 15291 include_expsyms_F77; do 15292 15293 case $var in 15294 old_archive_cmds_F77 | \ 15295 old_archive_from_new_cmds_F77 | \ 15296 archive_cmds_F77 | \ 15297 archive_expsym_cmds_F77 | \ 15298 module_cmds_F77 | \ 15299 module_expsym_cmds_F77 | \ 15300 old_archive_from_expsyms_cmds_F77 | \ 15301 export_symbols_cmds_F77 | \ 15302 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15303 postinstall_cmds | postuninstall_cmds | \ 15304 old_postinstall_cmds | old_postuninstall_cmds | \ 15305 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15306 # Double-quote double-evaled strings. 15307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15308 ;; 15309 *) 15310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15311 ;; 15312 esac 15313 done 15314 15315 case $lt_echo in 15316 *'\$0 --fallback-echo"') 15317 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15318 ;; 15319 esac 15320 15321cfgfile="$ofile" 15322 15323 cat <<__EOF__ >> "$cfgfile" 15324# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15325 15326# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15327 15328# Shell to use when invoking shell scripts. 15329SHELL=$lt_SHELL 15330 15331# Whether or not to build shared libraries. 15332build_libtool_libs=$enable_shared 15333 15334# Whether or not to build static libraries. 15335build_old_libs=$enable_static 15336 15337# Whether or not to add -lc for building shared libraries. 15338build_libtool_need_lc=$archive_cmds_need_lc_F77 15339 15340# Whether or not to disallow shared libs when runtime libs are static 15341allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15342 15343# Whether or not to optimize for fast installation. 15344fast_install=$enable_fast_install 15345 15346# The host system. 15347host_alias=$host_alias 15348host=$host 15349 15350# An echo program that does not interpret backslashes. 15351echo=$lt_echo 15352 15353# The archiver. 15354AR=$lt_AR 15355AR_FLAGS=$lt_AR_FLAGS 15356 15357# A C compiler. 15358LTCC=$lt_LTCC 15359 15360# A language-specific compiler. 15361CC=$lt_compiler_F77 15362 15363# Is the compiler the GNU C compiler? 15364with_gcc=$GCC_F77 15365 15366# An ERE matcher. 15367EGREP=$lt_EGREP 15368 15369# The linker used to build libraries. 15370LD=$lt_LD_F77 15371 15372# Whether we need hard or soft links. 15373LN_S=$lt_LN_S 15374 15375# A BSD-compatible nm program. 15376NM=$lt_NM 15377 15378# A symbol stripping program 15379STRIP=$lt_STRIP 15380 15381# Used to examine libraries when file_magic_cmd begins "file" 15382MAGIC_CMD=$MAGIC_CMD 15383 15384# Used on cygwin: DLL creation program. 15385DLLTOOL="$DLLTOOL" 15386 15387# Used on cygwin: object dumper. 15388OBJDUMP="$OBJDUMP" 15389 15390# Used on cygwin: assembler. 15391AS="$AS" 15392 15393# The name of the directory that contains temporary libtool files. 15394objdir=$objdir 15395 15396# How to create reloadable object files. 15397reload_flag=$lt_reload_flag 15398reload_cmds=$lt_reload_cmds 15399 15400# How to pass a linker flag through the compiler. 15401wl=$lt_lt_prog_compiler_wl_F77 15402 15403# Object file suffix (normally "o"). 15404objext="$ac_objext" 15405 15406# Old archive suffix (normally "a"). 15407libext="$libext" 15408 15409# Shared library suffix (normally ".so"). 15410shrext_cmds='$shrext_cmds' 15411 15412# Executable file suffix (normally ""). 15413exeext="$exeext" 15414 15415# Additional compiler flags for building library objects. 15416pic_flag=$lt_lt_prog_compiler_pic_F77 15417pic_mode=$pic_mode 15418 15419# What is the maximum length of a command? 15420max_cmd_len=$lt_cv_sys_max_cmd_len 15421 15422# Does compiler simultaneously support -c and -o options? 15423compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15424 15425# Must we lock files when doing compilation ? 15426need_locks=$lt_need_locks 15427 15428# Do we need the lib prefix for modules? 15429need_lib_prefix=$need_lib_prefix 15430 15431# Do we need a version for libraries? 15432need_version=$need_version 15433 15434# Whether dlopen is supported. 15435dlopen_support=$enable_dlopen 15436 15437# Whether dlopen of programs is supported. 15438dlopen_self=$enable_dlopen_self 15439 15440# Whether dlopen of statically linked programs is supported. 15441dlopen_self_static=$enable_dlopen_self_static 15442 15443# Compiler flag to prevent dynamic linking. 15444link_static_flag=$lt_lt_prog_compiler_static_F77 15445 15446# Compiler flag to turn off builtin functions. 15447no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15448 15449# Compiler flag to allow reflexive dlopens. 15450export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15451 15452# Compiler flag to generate shared objects directly from archives. 15453whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15454 15455# Compiler flag to generate thread-safe objects. 15456thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15457 15458# Library versioning type. 15459version_type=$version_type 15460 15461# Format of library name prefix. 15462libname_spec=$lt_libname_spec 15463 15464# List of archive names. First name is the real one, the rest are links. 15465# The last name is the one that the linker finds with -lNAME. 15466library_names_spec=$lt_library_names_spec 15467 15468# The coded name of the library, if different from the real name. 15469soname_spec=$lt_soname_spec 15470 15471# Commands used to build and install an old-style archive. 15472RANLIB=$lt_RANLIB 15473old_archive_cmds=$lt_old_archive_cmds_F77 15474old_postinstall_cmds=$lt_old_postinstall_cmds 15475old_postuninstall_cmds=$lt_old_postuninstall_cmds 15476 15477# Create an old-style archive from a shared archive. 15478old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15479 15480# Create a temporary old-style archive to link instead of a shared archive. 15481old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15482 15483# Commands used to build and install a shared archive. 15484archive_cmds=$lt_archive_cmds_F77 15485archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15486postinstall_cmds=$lt_postinstall_cmds 15487postuninstall_cmds=$lt_postuninstall_cmds 15488 15489# Commands used to build a loadable module (assumed same as above if empty) 15490module_cmds=$lt_module_cmds_F77 15491module_expsym_cmds=$lt_module_expsym_cmds_F77 15492 15493# Commands to strip libraries. 15494old_striplib=$lt_old_striplib 15495striplib=$lt_striplib 15496 15497# Dependencies to place before the objects being linked to create a 15498# shared library. 15499predep_objects=$lt_predep_objects_F77 15500 15501# Dependencies to place after the objects being linked to create a 15502# shared library. 15503postdep_objects=$lt_postdep_objects_F77 15504 15505# Dependencies to place before the objects being linked to create a 15506# shared library. 15507predeps=$lt_predeps_F77 15508 15509# Dependencies to place after the objects being linked to create a 15510# shared library. 15511postdeps=$lt_postdeps_F77 15512 15513# The library search path used internally by the compiler when linking 15514# a shared library. 15515compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15516 15517# Method to check whether dependent libraries are shared objects. 15518deplibs_check_method=$lt_deplibs_check_method 15519 15520# Command to use when deplibs_check_method == file_magic. 15521file_magic_cmd=$lt_file_magic_cmd 15522 15523# Flag that allows shared libraries with undefined symbols to be built. 15524allow_undefined_flag=$lt_allow_undefined_flag_F77 15525 15526# Flag that forces no undefined symbols. 15527no_undefined_flag=$lt_no_undefined_flag_F77 15528 15529# Commands used to finish a libtool library installation in a directory. 15530finish_cmds=$lt_finish_cmds 15531 15532# Same as above, but a single script fragment to be evaled but not shown. 15533finish_eval=$lt_finish_eval 15534 15535# Take the output of nm and produce a listing of raw symbols and C names. 15536global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15537 15538# Transform the output of nm in a proper C declaration 15539global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15540 15541# Transform the output of nm in a C name address pair 15542global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15543 15544# This is the shared library runtime path variable. 15545runpath_var=$runpath_var 15546 15547# This is the shared library path variable. 15548shlibpath_var=$shlibpath_var 15549 15550# Is shlibpath searched before the hard-coded library search path? 15551shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15552 15553# How to hardcode a shared library path into an executable. 15554hardcode_action=$hardcode_action_F77 15555 15556# Whether we should hardcode library paths into libraries. 15557hardcode_into_libs=$hardcode_into_libs 15558 15559# Flag to hardcode \$libdir into a binary during linking. 15560# This must work even if \$libdir does not exist. 15561hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15562 15563# If ld is used when linking, flag to hardcode \$libdir into 15564# a binary during linking. This must work even if \$libdir does 15565# not exist. 15566hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15567 15568# Whether we need a single -rpath flag with a separated argument. 15569hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15570 15571# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15572# resulting binary. 15573hardcode_direct=$hardcode_direct_F77 15574 15575# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15576# resulting binary. 15577hardcode_minus_L=$hardcode_minus_L_F77 15578 15579# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15580# the resulting binary. 15581hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15582 15583# Set to yes if building a shared library automatically hardcodes DIR into the library 15584# and all subsequent libraries and executables linked against it. 15585hardcode_automatic=$hardcode_automatic_F77 15586 15587# Variables whose values should be saved in libtool wrapper scripts and 15588# restored at relink time. 15589variables_saved_for_relink="$variables_saved_for_relink" 15590 15591# Whether libtool must link a program against all its dependency libraries. 15592link_all_deplibs=$link_all_deplibs_F77 15593 15594# Compile-time system search path for libraries 15595sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15596 15597# Run-time system search path for libraries 15598sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15599 15600# Fix the shell variable \$srcfile for the compiler. 15601fix_srcfile_path="$fix_srcfile_path_F77" 15602 15603# Set to yes if exported symbols are required. 15604always_export_symbols=$always_export_symbols_F77 15605 15606# The commands to list exported symbols. 15607export_symbols_cmds=$lt_export_symbols_cmds_F77 15608 15609# The commands to extract the exported symbol list from a shared archive. 15610extract_expsyms_cmds=$lt_extract_expsyms_cmds 15611 15612# Symbols that should not be listed in the preloaded symbols. 15613exclude_expsyms=$lt_exclude_expsyms_F77 15614 15615# Symbols that must always be exported. 15616include_expsyms=$lt_include_expsyms_F77 15617 15618# ### END LIBTOOL TAG CONFIG: $tagname 15619 15620__EOF__ 15621 15622 15623else 15624 # If there is no Makefile yet, we rely on a make rule to execute 15625 # `config.status --recheck' to rerun these tests and create the 15626 # libtool script then. 15627 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15628 if test -f "$ltmain_in"; then 15629 test -f Makefile && make "$ltmain" 15630 fi 15631fi 15632 15633 15634ac_ext=c 15635ac_cpp='$CPP $CPPFLAGS' 15636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15638ac_compiler_gnu=$ac_cv_c_compiler_gnu 15639 15640CC="$lt_save_CC" 15641 15642 else 15643 tagname="" 15644 fi 15645 ;; 15646 15647 GCJ) 15648 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15649 15650 15651 15652# Source file extension for Java test sources. 15653ac_ext=java 15654 15655# Object file extension for compiled Java test sources. 15656objext=o 15657objext_GCJ=$objext 15658 15659# Code to be used in simple compile tests 15660lt_simple_compile_test_code="class foo {}\n" 15661 15662# Code to be used in simple link tests 15663lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15664 15665# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15666 15667# If no C compiler was specified, use CC. 15668LTCC=${LTCC-"$CC"} 15669 15670# Allow CC to be a program name with arguments. 15671compiler=$CC 15672 15673 15674# Allow CC to be a program name with arguments. 15675lt_save_CC="$CC" 15676CC=${GCJ-"gcj"} 15677compiler=$CC 15678compiler_GCJ=$CC 15679 15680# GCJ did not exist at the time GCC didn't implicitly link libc in. 15681archive_cmds_need_lc_GCJ=no 15682 15683 15684lt_prog_compiler_no_builtin_flag_GCJ= 15685 15686if test "$GCC" = yes; then 15687 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15688 15689 15690echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15691echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15692if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15693 echo $ECHO_N "(cached) $ECHO_C" >&6 15694else 15695 lt_cv_prog_compiler_rtti_exceptions=no 15696 ac_outfile=conftest.$ac_objext 15697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15698 lt_compiler_flag="-fno-rtti -fno-exceptions" 15699 # Insert the option either (1) after the last *FLAGS variable, or 15700 # (2) before a word containing "conftest.", or (3) at the end. 15701 # Note that $ac_compile itself does not contain backslashes and begins 15702 # with a dollar sign (not a hyphen), so the echo should work correctly. 15703 # The option is referenced via a variable to avoid confusing sed. 15704 lt_compile=`echo "$ac_compile" | $SED \ 15705 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15707 -e 's:$: $lt_compiler_flag:'` 15708 (eval echo "\"\$as_me:15708: $lt_compile\"" >&5) 15709 (eval "$lt_compile" 2>conftest.err) 15710 ac_status=$? 15711 cat conftest.err >&5 15712 echo "$as_me:15712: \$? = $ac_status" >&5 15713 if (exit $ac_status) && test -s "$ac_outfile"; then 15714 # The compiler can only warn and ignore the option if not recognized 15715 # So say no if there are warnings 15716 if test ! -s conftest.err; then 15717 lt_cv_prog_compiler_rtti_exceptions=yes 15718 fi 15719 fi 15720 $rm conftest* 15721 15722fi 15723echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15724echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15725 15726if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15727 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15728else 15729 : 15730fi 15731 15732fi 15733 15734lt_prog_compiler_wl_GCJ= 15735lt_prog_compiler_pic_GCJ= 15736lt_prog_compiler_static_GCJ= 15737 15738echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15739echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15740 15741 if test "$GCC" = yes; then 15742 lt_prog_compiler_wl_GCJ='-Wl,' 15743 lt_prog_compiler_static_GCJ='-static' 15744 15745 case $host_os in 15746 aix*) 15747 # All AIX code is PIC. 15748 if test "$host_cpu" = ia64; then 15749 # AIX 5 now supports IA64 processor 15750 lt_prog_compiler_static_GCJ='-Bstatic' 15751 fi 15752 ;; 15753 15754 amigaos*) 15755 # FIXME: we need at least 68020 code to build shared libraries, but 15756 # adding the `-m68020' flag to GCC prevents building anything better, 15757 # like `-m68040'. 15758 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15759 ;; 15760 15761 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15762 # PIC is the default for these OSes. 15763 ;; 15764 15765 mingw* | pw32* | os2*) 15766 # This hack is so that the source file can tell whether it is being 15767 # built for inclusion in a dll (and should export symbols for example). 15768 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15769 ;; 15770 15771 darwin* | rhapsody*) 15772 # PIC is the default on this platform 15773 # Common symbols not allowed in MH_DYLIB files 15774 lt_prog_compiler_pic_GCJ='-fno-common' 15775 ;; 15776 15777 msdosdjgpp*) 15778 # Just because we use GCC doesn't mean we suddenly get shared libraries 15779 # on systems that don't support them. 15780 lt_prog_compiler_can_build_shared_GCJ=no 15781 enable_shared=no 15782 ;; 15783 15784 sysv4*MP*) 15785 if test -d /usr/nec; then 15786 lt_prog_compiler_pic_GCJ=-Kconform_pic 15787 fi 15788 ;; 15789 15790 hpux*) 15791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15792 # not for PA HP-UX. 15793 case "$host_cpu" in 15794 hppa*64*|ia64*) 15795 # +Z the default 15796 ;; 15797 *) 15798 lt_prog_compiler_pic_GCJ='-fPIC' 15799 ;; 15800 esac 15801 ;; 15802 15803 *) 15804 lt_prog_compiler_pic_GCJ='-fPIC' 15805 ;; 15806 esac 15807 else 15808 # PORTME Check for flag to pass linker flags through the system compiler. 15809 case $host_os in 15810 aix*) 15811 lt_prog_compiler_wl_GCJ='-Wl,' 15812 if test "$host_cpu" = ia64; then 15813 # AIX 5 now supports IA64 processor 15814 lt_prog_compiler_static_GCJ='-Bstatic' 15815 else 15816 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15817 fi 15818 ;; 15819 darwin*) 15820 # PIC is the default on this platform 15821 # Common symbols not allowed in MH_DYLIB files 15822 case "$cc_basename" in 15823 xlc*) 15824 lt_prog_compiler_pic_GCJ='-qnocommon' 15825 lt_prog_compiler_wl_GCJ='-Wl,' 15826 ;; 15827 esac 15828 ;; 15829 15830 mingw* | pw32* | os2*) 15831 # This hack is so that the source file can tell whether it is being 15832 # built for inclusion in a dll (and should export symbols for example). 15833 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15834 ;; 15835 15836 hpux9* | hpux10* | hpux11*) 15837 lt_prog_compiler_wl_GCJ='-Wl,' 15838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15839 # not for PA HP-UX. 15840 case "$host_cpu" in 15841 hppa*64*|ia64*) 15842 # +Z the default 15843 ;; 15844 *) 15845 lt_prog_compiler_pic_GCJ='+Z' 15846 ;; 15847 esac 15848 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15849 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15850 ;; 15851 15852 irix5* | irix6* | nonstopux*) 15853 lt_prog_compiler_wl_GCJ='-Wl,' 15854 # PIC (with -KPIC) is the default. 15855 lt_prog_compiler_static_GCJ='-non_shared' 15856 ;; 15857 15858 newsos6) 15859 lt_prog_compiler_pic_GCJ='-KPIC' 15860 lt_prog_compiler_static_GCJ='-Bstatic' 15861 ;; 15862 15863 linux*) 15864 case $CC in 15865 icc* | ecc*) 15866 lt_prog_compiler_wl_GCJ='-Wl,' 15867 lt_prog_compiler_pic_GCJ='-KPIC' 15868 lt_prog_compiler_static_GCJ='-static' 15869 ;; 15870 ccc*) 15871 lt_prog_compiler_wl_GCJ='-Wl,' 15872 # All Alpha code is PIC. 15873 lt_prog_compiler_static_GCJ='-non_shared' 15874 ;; 15875 esac 15876 ;; 15877 15878 osf3* | osf4* | osf5*) 15879 lt_prog_compiler_wl_GCJ='-Wl,' 15880 # All OSF/1 code is PIC. 15881 lt_prog_compiler_static_GCJ='-non_shared' 15882 ;; 15883 15884 sco3.2v5*) 15885 lt_prog_compiler_pic_GCJ='-Kpic' 15886 lt_prog_compiler_static_GCJ='-dn' 15887 ;; 15888 15889 solaris*) 15890 lt_prog_compiler_wl_GCJ='-Wl,' 15891 lt_prog_compiler_pic_GCJ='-KPIC' 15892 lt_prog_compiler_static_GCJ='-Bstatic' 15893 ;; 15894 15895 sunos4*) 15896 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15897 lt_prog_compiler_pic_GCJ='-PIC' 15898 lt_prog_compiler_static_GCJ='-Bstatic' 15899 ;; 15900 15901 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15902 lt_prog_compiler_wl_GCJ='-Wl,' 15903 lt_prog_compiler_pic_GCJ='-KPIC' 15904 lt_prog_compiler_static_GCJ='-Bstatic' 15905 ;; 15906 15907 sysv4*MP*) 15908 if test -d /usr/nec ;then 15909 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15910 lt_prog_compiler_static_GCJ='-Bstatic' 15911 fi 15912 ;; 15913 15914 uts4*) 15915 lt_prog_compiler_pic_GCJ='-pic' 15916 lt_prog_compiler_static_GCJ='-Bstatic' 15917 ;; 15918 15919 *) 15920 lt_prog_compiler_can_build_shared_GCJ=no 15921 ;; 15922 esac 15923 fi 15924 15925echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15926echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15927 15928# 15929# Check to make sure the PIC flag actually works. 15930# 15931if test -n "$lt_prog_compiler_pic_GCJ"; then 15932 15933echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15934echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15935if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15936 echo $ECHO_N "(cached) $ECHO_C" >&6 15937else 15938 lt_prog_compiler_pic_works_GCJ=no 15939 ac_outfile=conftest.$ac_objext 15940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15941 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15942 # Insert the option either (1) after the last *FLAGS variable, or 15943 # (2) before a word containing "conftest.", or (3) at the end. 15944 # Note that $ac_compile itself does not contain backslashes and begins 15945 # with a dollar sign (not a hyphen), so the echo should work correctly. 15946 # The option is referenced via a variable to avoid confusing sed. 15947 lt_compile=`echo "$ac_compile" | $SED \ 15948 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15950 -e 's:$: $lt_compiler_flag:'` 15951 (eval echo "\"\$as_me:15951: $lt_compile\"" >&5) 15952 (eval "$lt_compile" 2>conftest.err) 15953 ac_status=$? 15954 cat conftest.err >&5 15955 echo "$as_me:15955: \$? = $ac_status" >&5 15956 if (exit $ac_status) && test -s "$ac_outfile"; then 15957 # The compiler can only warn and ignore the option if not recognized 15958 # So say no if there are warnings 15959 if test ! -s conftest.err; then 15960 lt_prog_compiler_pic_works_GCJ=yes 15961 fi 15962 fi 15963 $rm conftest* 15964 15965fi 15966echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15967echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15968 15969if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15970 case $lt_prog_compiler_pic_GCJ in 15971 "" | " "*) ;; 15972 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15973 esac 15974else 15975 lt_prog_compiler_pic_GCJ= 15976 lt_prog_compiler_can_build_shared_GCJ=no 15977fi 15978 15979fi 15980case "$host_os" in 15981 # For platforms which do not support PIC, -DPIC is meaningless: 15982 *djgpp*) 15983 lt_prog_compiler_pic_GCJ= 15984 ;; 15985 *) 15986 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15987 ;; 15988esac 15989 15990echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15991echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15992if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15993 echo $ECHO_N "(cached) $ECHO_C" >&6 15994else 15995 lt_cv_prog_compiler_c_o_GCJ=no 15996 $rm -r conftest 2>/dev/null 15997 mkdir conftest 15998 cd conftest 15999 mkdir out 16000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16001 16002 lt_compiler_flag="-o out/conftest2.$ac_objext" 16003 # Insert the option either (1) after the last *FLAGS variable, or 16004 # (2) before a word containing "conftest.", or (3) at the end. 16005 # Note that $ac_compile itself does not contain backslashes and begins 16006 # with a dollar sign (not a hyphen), so the echo should work correctly. 16007 lt_compile=`echo "$ac_compile" | $SED \ 16008 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16010 -e 's:$: $lt_compiler_flag:'` 16011 (eval echo "\"\$as_me:16011: $lt_compile\"" >&5) 16012 (eval "$lt_compile" 2>out/conftest.err) 16013 ac_status=$? 16014 cat out/conftest.err >&5 16015 echo "$as_me:16015: \$? = $ac_status" >&5 16016 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16017 then 16018 # The compiler can only warn and ignore the option if not recognized 16019 # So say no if there are warnings 16020 if test ! -s out/conftest.err; then 16021 lt_cv_prog_compiler_c_o_GCJ=yes 16022 fi 16023 fi 16024 chmod u+w . 16025 $rm conftest* 16026 # SGI C++ compiler will create directory out/ii_files/ for 16027 # template instantiation 16028 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16029 $rm out/* && rmdir out 16030 cd .. 16031 rmdir conftest 16032 $rm conftest* 16033 16034fi 16035echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16036echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16037 16038 16039hard_links="nottested" 16040if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16041 # do not overwrite the value of need_locks provided by the user 16042 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16043echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16044 hard_links=yes 16045 $rm conftest* 16046 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16047 touch conftest.a 16048 ln conftest.a conftest.b 2>&5 || hard_links=no 16049 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16050 echo "$as_me:$LINENO: result: $hard_links" >&5 16051echo "${ECHO_T}$hard_links" >&6 16052 if test "$hard_links" = no; then 16053 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16054echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16055 need_locks=warn 16056 fi 16057else 16058 need_locks=no 16059fi 16060 16061echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16062echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16063 16064 runpath_var= 16065 allow_undefined_flag_GCJ= 16066 enable_shared_with_static_runtimes_GCJ=no 16067 archive_cmds_GCJ= 16068 archive_expsym_cmds_GCJ= 16069 old_archive_From_new_cmds_GCJ= 16070 old_archive_from_expsyms_cmds_GCJ= 16071 export_dynamic_flag_spec_GCJ= 16072 whole_archive_flag_spec_GCJ= 16073 thread_safe_flag_spec_GCJ= 16074 hardcode_libdir_flag_spec_GCJ= 16075 hardcode_libdir_flag_spec_ld_GCJ= 16076 hardcode_libdir_separator_GCJ= 16077 hardcode_direct_GCJ=no 16078 hardcode_minus_L_GCJ=no 16079 hardcode_shlibpath_var_GCJ=unsupported 16080 link_all_deplibs_GCJ=unknown 16081 hardcode_automatic_GCJ=no 16082 module_cmds_GCJ= 16083 module_expsym_cmds_GCJ= 16084 always_export_symbols_GCJ=no 16085 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16086 # include_expsyms should be a list of space-separated symbols to be *always* 16087 # included in the symbol list 16088 include_expsyms_GCJ= 16089 # exclude_expsyms can be an extended regexp of symbols to exclude 16090 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16092 # as well as any symbol that contains `d'. 16093 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16095 # platforms (ab)use it in PIC code, but their linkers get confused if 16096 # the symbol is explicitly referenced. Since portable code cannot 16097 # rely on this symbol name, it's probably fine to never include it in 16098 # preloaded symbol tables. 16099 extract_expsyms_cmds= 16100 16101 case $host_os in 16102 cygwin* | mingw* | pw32*) 16103 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16104 # When not using gcc, we currently assume that we are using 16105 # Microsoft Visual C++. 16106 if test "$GCC" != yes; then 16107 with_gnu_ld=no 16108 fi 16109 ;; 16110 openbsd*) 16111 with_gnu_ld=no 16112 ;; 16113 esac 16114 16115 ld_shlibs_GCJ=yes 16116 if test "$with_gnu_ld" = yes; then 16117 # If archive_cmds runs LD, not CC, wlarc should be empty 16118 wlarc='${wl}' 16119 16120 # See if GNU ld supports shared libraries. 16121 case $host_os in 16122 aix3* | aix4* | aix5*) 16123 # On AIX/PPC, the GNU linker is very broken 16124 if test "$host_cpu" != ia64; then 16125 ld_shlibs_GCJ=no 16126 cat <<EOF 1>&2 16127 16128*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16129*** to be unable to reliably create shared libraries on AIX. 16130*** Therefore, libtool is disabling shared libraries support. If you 16131*** really care for shared libraries, you may want to modify your PATH 16132*** so that a non-GNU linker is found, and then restart. 16133 16134EOF 16135 fi 16136 ;; 16137 16138 amigaos*) 16139 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)' 16140 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16141 hardcode_minus_L_GCJ=yes 16142 16143 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16144 # that the semantics of dynamic libraries on AmigaOS, at least up 16145 # to version 4, is to share data among multiple programs linked 16146 # with the same dynamic library. Since this doesn't match the 16147 # behavior of shared libraries on other platforms, we can't use 16148 # them. 16149 ld_shlibs_GCJ=no 16150 ;; 16151 16152 beos*) 16153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16154 allow_undefined_flag_GCJ=unsupported 16155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16156 # support --undefined. This deserves some investigation. FIXME 16157 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16158 else 16159 ld_shlibs_GCJ=no 16160 fi 16161 ;; 16162 16163 cygwin* | mingw* | pw32*) 16164 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16165 # as there is no search path for DLLs. 16166 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16167 allow_undefined_flag_GCJ=unsupported 16168 always_export_symbols_GCJ=no 16169 enable_shared_with_static_runtimes_GCJ=yes 16170 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16171 16172 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16173 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16174 # If the export-symbols file already is a .def file (1st line 16175 # is EXPORTS), use it as is; otherwise, prepend... 16176 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16177 cp $export_symbols $output_objdir/$soname.def; 16178 else 16179 echo EXPORTS > $output_objdir/$soname.def; 16180 cat $export_symbols >> $output_objdir/$soname.def; 16181 fi~ 16182 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16183 else 16184 ld_shlibs=no 16185 fi 16186 ;; 16187 16188 netbsd*) 16189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16190 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16191 wlarc= 16192 else 16193 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16194 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16195 fi 16196 ;; 16197 16198 solaris* | sysv5*) 16199 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16200 ld_shlibs_GCJ=no 16201 cat <<EOF 1>&2 16202 16203*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16204*** create shared libraries on Solaris systems. Therefore, libtool 16205*** is disabling shared libraries support. We urge you to upgrade GNU 16206*** binutils to release 2.9.1 or newer. Another option is to modify 16207*** your PATH or compiler configuration so that the native linker is 16208*** used, and then restart. 16209 16210EOF 16211 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16212 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16213 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16214 else 16215 ld_shlibs_GCJ=no 16216 fi 16217 ;; 16218 16219 sunos4*) 16220 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16221 wlarc= 16222 hardcode_direct_GCJ=yes 16223 hardcode_shlibpath_var_GCJ=no 16224 ;; 16225 16226 linux*) 16227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16228 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16229 archive_cmds_GCJ="$tmp_archive_cmds" 16230 supports_anon_versioning=no 16231 case `$LD -v 2>/dev/null` in 16232 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16233 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16234 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16235 *\ 2.11.*) ;; # other 2.11 versions 16236 *) supports_anon_versioning=yes ;; 16237 esac 16238 if test $supports_anon_versioning = yes; then 16239 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16240cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16241$echo "local: *; };" >> $output_objdir/$libname.ver~ 16242 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16243 else 16244 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 16245 fi 16246 else 16247 ld_shlibs_GCJ=no 16248 fi 16249 ;; 16250 16251 *) 16252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16253 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16254 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16255 else 16256 ld_shlibs_GCJ=no 16257 fi 16258 ;; 16259 esac 16260 16261 if test "$ld_shlibs_GCJ" = yes; then 16262 runpath_var=LD_RUN_PATH 16263 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16264 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16265 # ancient GNU ld didn't support --whole-archive et. al. 16266 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16267 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16268 else 16269 whole_archive_flag_spec_GCJ= 16270 fi 16271 fi 16272 else 16273 # PORTME fill in a description of your system's linker (not GNU ld) 16274 case $host_os in 16275 aix3*) 16276 allow_undefined_flag_GCJ=unsupported 16277 always_export_symbols_GCJ=yes 16278 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' 16279 # Note: this linker hardcodes the directories in LIBPATH if there 16280 # are no directories specified by -L. 16281 hardcode_minus_L_GCJ=yes 16282 if test "$GCC" = yes && test -z "$link_static_flag"; then 16283 # Neither direct hardcoding nor static linking is supported with a 16284 # broken collect2. 16285 hardcode_direct_GCJ=unsupported 16286 fi 16287 ;; 16288 16289 aix4* | aix5*) 16290 if test "$host_cpu" = ia64; then 16291 # On IA64, the linker does run time linking by default, so we don't 16292 # have to do anything special. 16293 aix_use_runtimelinking=no 16294 exp_sym_flag='-Bexport' 16295 no_entry_flag="" 16296 else 16297 # If we're using GNU nm, then we don't want the "-C" option. 16298 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16299 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16300 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' 16301 else 16302 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' 16303 fi 16304 aix_use_runtimelinking=no 16305 16306 # Test if we are trying to use run time linking or normal 16307 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16308 # need to do runtime linking. 16309 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16310 for ld_flag in $LDFLAGS; do 16311 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16312 aix_use_runtimelinking=yes 16313 break 16314 fi 16315 done 16316 esac 16317 16318 exp_sym_flag='-bexport' 16319 no_entry_flag='-bnoentry' 16320 fi 16321 16322 # When large executables or shared objects are built, AIX ld can 16323 # have problems creating the table of contents. If linking a library 16324 # or program results in "error TOC overflow" add -mminimal-toc to 16325 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16326 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16327 16328 archive_cmds_GCJ='' 16329 hardcode_direct_GCJ=yes 16330 hardcode_libdir_separator_GCJ=':' 16331 link_all_deplibs_GCJ=yes 16332 16333 if test "$GCC" = yes; then 16334 case $host_os in aix4.012|aix4.012.*) 16335 # We only want to do this on AIX 4.2 and lower, the check 16336 # below for broken collect2 doesn't work under 4.3+ 16337 collect2name=`${CC} -print-prog-name=collect2` 16338 if test -f "$collect2name" && \ 16339 strings "$collect2name" | grep resolve_lib_name >/dev/null 16340 then 16341 # We have reworked collect2 16342 hardcode_direct_GCJ=yes 16343 else 16344 # We have old collect2 16345 hardcode_direct_GCJ=unsupported 16346 # It fails to find uninstalled libraries when the uninstalled 16347 # path is not listed in the libpath. Setting hardcode_minus_L 16348 # to unsupported forces relinking 16349 hardcode_minus_L_GCJ=yes 16350 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16351 hardcode_libdir_separator_GCJ= 16352 fi 16353 esac 16354 shared_flag='-shared' 16355 else 16356 # not using gcc 16357 if test "$host_cpu" = ia64; then 16358 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16359 # chokes on -Wl,-G. The following line is correct: 16360 shared_flag='-G' 16361 else 16362 if test "$aix_use_runtimelinking" = yes; then 16363 shared_flag='${wl}-G' 16364 else 16365 shared_flag='${wl}-bM:SRE' 16366 fi 16367 fi 16368 fi 16369 16370 # It seems that -bexpall does not export symbols beginning with 16371 # underscore (_), so it is better to generate a list of symbols to export. 16372 always_export_symbols_GCJ=yes 16373 if test "$aix_use_runtimelinking" = yes; then 16374 # Warning - without using the other runtime loading flags (-brtl), 16375 # -berok will link without error, but may produce a broken library. 16376 allow_undefined_flag_GCJ='-berok' 16377 # Determine the default libpath from the value encoded in an empty executable. 16378 cat >conftest.$ac_ext <<_ACEOF 16379/* confdefs.h. */ 16380_ACEOF 16381cat confdefs.h >>conftest.$ac_ext 16382cat >>conftest.$ac_ext <<_ACEOF 16383/* end confdefs.h. */ 16384 16385int 16386main () 16387{ 16388 16389 ; 16390 return 0; 16391} 16392_ACEOF 16393rm -f conftest.$ac_objext conftest$ac_exeext 16394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16395 (eval $ac_link) 2>conftest.er1 16396 ac_status=$? 16397 grep -v '^ *+' conftest.er1 >conftest.err 16398 rm -f conftest.er1 16399 cat conftest.err >&5 16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16401 (exit $ac_status); } && 16402 { ac_try='test -z "$ac_c_werror_flag" 16403 || test ! -s conftest.err' 16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16405 (eval $ac_try) 2>&5 16406 ac_status=$? 16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16408 (exit $ac_status); }; } && 16409 { ac_try='test -s conftest$ac_exeext' 16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16411 (eval $ac_try) 2>&5 16412 ac_status=$? 16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16414 (exit $ac_status); }; }; then 16415 16416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16417}'` 16418# Check for a 64-bit object if we didn't find anything. 16419if 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; } 16420}'`; fi 16421else 16422 echo "$as_me: failed program was:" >&5 16423sed 's/^/| /' conftest.$ac_ext >&5 16424 16425fi 16426rm -f conftest.err conftest.$ac_objext \ 16427 conftest$ac_exeext conftest.$ac_ext 16428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16429 16430 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16431 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16432 else 16433 if test "$host_cpu" = ia64; then 16434 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16435 allow_undefined_flag_GCJ="-z nodefs" 16436 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16437 else 16438 # Determine the default libpath from the value encoded in an empty executable. 16439 cat >conftest.$ac_ext <<_ACEOF 16440/* confdefs.h. */ 16441_ACEOF 16442cat confdefs.h >>conftest.$ac_ext 16443cat >>conftest.$ac_ext <<_ACEOF 16444/* end confdefs.h. */ 16445 16446int 16447main () 16448{ 16449 16450 ; 16451 return 0; 16452} 16453_ACEOF 16454rm -f conftest.$ac_objext conftest$ac_exeext 16455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16456 (eval $ac_link) 2>conftest.er1 16457 ac_status=$? 16458 grep -v '^ *+' conftest.er1 >conftest.err 16459 rm -f conftest.er1 16460 cat conftest.err >&5 16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16462 (exit $ac_status); } && 16463 { ac_try='test -z "$ac_c_werror_flag" 16464 || test ! -s conftest.err' 16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16466 (eval $ac_try) 2>&5 16467 ac_status=$? 16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16469 (exit $ac_status); }; } && 16470 { ac_try='test -s conftest$ac_exeext' 16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16472 (eval $ac_try) 2>&5 16473 ac_status=$? 16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16475 (exit $ac_status); }; }; then 16476 16477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16478}'` 16479# Check for a 64-bit object if we didn't find anything. 16480if 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; } 16481}'`; fi 16482else 16483 echo "$as_me: failed program was:" >&5 16484sed 's/^/| /' conftest.$ac_ext >&5 16485 16486fi 16487rm -f conftest.err conftest.$ac_objext \ 16488 conftest$ac_exeext conftest.$ac_ext 16489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16490 16491 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16492 # Warning - without using the other run time loading flags, 16493 # -berok will link without error, but may produce a broken library. 16494 no_undefined_flag_GCJ=' ${wl}-bernotok' 16495 allow_undefined_flag_GCJ=' ${wl}-berok' 16496 # -bexpall does not export symbols beginning with underscore (_) 16497 always_export_symbols_GCJ=yes 16498 # Exported symbols can be pulled into shared objects from archives 16499 whole_archive_flag_spec_GCJ=' ' 16500 archive_cmds_need_lc_GCJ=yes 16501 # This is similar to how AIX traditionally builds it's shared libraries. 16502 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16503 fi 16504 fi 16505 ;; 16506 16507 amigaos*) 16508 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)' 16509 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16510 hardcode_minus_L_GCJ=yes 16511 # see comment about different semantics on the GNU ld section 16512 ld_shlibs_GCJ=no 16513 ;; 16514 16515 bsdi[45]*) 16516 export_dynamic_flag_spec_GCJ=-rdynamic 16517 ;; 16518 16519 cygwin* | mingw* | pw32*) 16520 # When not using gcc, we currently assume that we are using 16521 # Microsoft Visual C++. 16522 # hardcode_libdir_flag_spec is actually meaningless, as there is 16523 # no search path for DLLs. 16524 hardcode_libdir_flag_spec_GCJ=' ' 16525 allow_undefined_flag_GCJ=unsupported 16526 # Tell ltmain to make .lib files, not .a files. 16527 libext=lib 16528 # Tell ltmain to make .dll files, not .so files. 16529 shrext_cmds=".dll" 16530 # FIXME: Setting linknames here is a bad hack. 16531 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16532 # The linker will automatically build a .lib file if we build a DLL. 16533 old_archive_From_new_cmds_GCJ='true' 16534 # FIXME: Should let the user specify the lib program. 16535 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16536 fix_srcfile_path='`cygpath -w "$srcfile"`' 16537 enable_shared_with_static_runtimes_GCJ=yes 16538 ;; 16539 16540 darwin* | rhapsody*) 16541 case "$host_os" in 16542 rhapsody* | darwin1.[012]) 16543 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16544 ;; 16545 *) # Darwin 1.3 on 16546 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16547 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16548 else 16549 case ${MACOSX_DEPLOYMENT_TARGET} in 16550 10.[012]) 16551 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16552 ;; 16553 10.*) 16554 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16555 ;; 16556 esac 16557 fi 16558 ;; 16559 esac 16560 archive_cmds_need_lc_GCJ=no 16561 hardcode_direct_GCJ=no 16562 hardcode_automatic_GCJ=yes 16563 hardcode_shlibpath_var_GCJ=unsupported 16564 whole_archive_flag_spec_GCJ='' 16565 link_all_deplibs_GCJ=yes 16566 if test "$GCC" = yes ; then 16567 output_verbose_link_cmd='echo' 16568 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16569 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16570 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16571 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}' 16572 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}' 16573 else 16574 case "$cc_basename" in 16575 xlc*) 16576 output_verbose_link_cmd='echo' 16577 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16578 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16579 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16580 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}' 16581 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}' 16582 ;; 16583 *) 16584 ld_shlibs_GCJ=no 16585 ;; 16586 esac 16587 fi 16588 ;; 16589 16590 dgux*) 16591 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16592 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16593 hardcode_shlibpath_var_GCJ=no 16594 ;; 16595 16596 freebsd1*) 16597 ld_shlibs_GCJ=no 16598 ;; 16599 16600 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16601 # support. Future versions do this automatically, but an explicit c++rt0.o 16602 # does not break anything, and helps significantly (at the cost of a little 16603 # extra space). 16604 freebsd2.2*) 16605 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16606 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16607 hardcode_direct_GCJ=yes 16608 hardcode_shlibpath_var_GCJ=no 16609 ;; 16610 16611 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16612 freebsd2*) 16613 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16614 hardcode_direct_GCJ=yes 16615 hardcode_minus_L_GCJ=yes 16616 hardcode_shlibpath_var_GCJ=no 16617 ;; 16618 16619 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16620 freebsd* | kfreebsd*-gnu) 16621 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16622 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16623 hardcode_direct_GCJ=yes 16624 hardcode_shlibpath_var_GCJ=no 16625 ;; 16626 16627 hpux9*) 16628 if test "$GCC" = yes; then 16629 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' 16630 else 16631 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' 16632 fi 16633 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16634 hardcode_libdir_separator_GCJ=: 16635 hardcode_direct_GCJ=yes 16636 16637 # hardcode_minus_L: Not really in the search PATH, 16638 # but as the default location of the library. 16639 hardcode_minus_L_GCJ=yes 16640 export_dynamic_flag_spec_GCJ='${wl}-E' 16641 ;; 16642 16643 hpux10* | hpux11*) 16644 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16645 case "$host_cpu" in 16646 hppa*64*|ia64*) 16647 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16648 ;; 16649 *) 16650 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16651 ;; 16652 esac 16653 else 16654 case "$host_cpu" in 16655 hppa*64*|ia64*) 16656 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16657 ;; 16658 *) 16659 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16660 ;; 16661 esac 16662 fi 16663 if test "$with_gnu_ld" = no; then 16664 case "$host_cpu" in 16665 hppa*64*) 16666 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16667 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16668 hardcode_libdir_separator_GCJ=: 16669 hardcode_direct_GCJ=no 16670 hardcode_shlibpath_var_GCJ=no 16671 ;; 16672 ia64*) 16673 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16674 hardcode_direct_GCJ=no 16675 hardcode_shlibpath_var_GCJ=no 16676 16677 # hardcode_minus_L: Not really in the search PATH, 16678 # but as the default location of the library. 16679 hardcode_minus_L_GCJ=yes 16680 ;; 16681 *) 16682 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16683 hardcode_libdir_separator_GCJ=: 16684 hardcode_direct_GCJ=yes 16685 export_dynamic_flag_spec_GCJ='${wl}-E' 16686 16687 # hardcode_minus_L: Not really in the search PATH, 16688 # but as the default location of the library. 16689 hardcode_minus_L_GCJ=yes 16690 ;; 16691 esac 16692 fi 16693 ;; 16694 16695 irix5* | irix6* | nonstopux*) 16696 if test "$GCC" = yes; then 16697 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' 16698 else 16699 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' 16700 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16701 fi 16702 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16703 hardcode_libdir_separator_GCJ=: 16704 link_all_deplibs_GCJ=yes 16705 ;; 16706 16707 netbsd*) 16708 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16709 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16710 else 16711 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16712 fi 16713 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16714 hardcode_direct_GCJ=yes 16715 hardcode_shlibpath_var_GCJ=no 16716 ;; 16717 16718 newsos6) 16719 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16720 hardcode_direct_GCJ=yes 16721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16722 hardcode_libdir_separator_GCJ=: 16723 hardcode_shlibpath_var_GCJ=no 16724 ;; 16725 16726 openbsd*) 16727 hardcode_direct_GCJ=yes 16728 hardcode_shlibpath_var_GCJ=no 16729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16730 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16731 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16733 export_dynamic_flag_spec_GCJ='${wl}-E' 16734 else 16735 case $host_os in 16736 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16737 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16738 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16739 ;; 16740 *) 16741 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16742 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16743 ;; 16744 esac 16745 fi 16746 ;; 16747 16748 os2*) 16749 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16750 hardcode_minus_L_GCJ=yes 16751 allow_undefined_flag_GCJ=unsupported 16752 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' 16753 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16754 ;; 16755 16756 osf3*) 16757 if test "$GCC" = yes; then 16758 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16759 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' 16760 else 16761 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16762 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' 16763 fi 16764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16765 hardcode_libdir_separator_GCJ=: 16766 ;; 16767 16768 osf4* | osf5*) # as osf3* with the addition of -msym flag 16769 if test "$GCC" = yes; then 16770 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16771 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' 16772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16773 else 16774 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16775 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' 16776 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~ 16777 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16778 16779 # Both c and cxx compiler support -rpath directly 16780 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16781 fi 16782 hardcode_libdir_separator_GCJ=: 16783 ;; 16784 16785 sco3.2v5*) 16786 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16787 hardcode_shlibpath_var_GCJ=no 16788 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16789 runpath_var=LD_RUN_PATH 16790 hardcode_runpath_var=yes 16791 ;; 16792 16793 solaris*) 16794 no_undefined_flag_GCJ=' -z text' 16795 if test "$GCC" = yes; then 16796 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16797 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16799 else 16800 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16801 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16803 fi 16804 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16805 hardcode_shlibpath_var_GCJ=no 16806 case $host_os in 16807 solaris2.[0-5] | solaris2.[0-5].*) ;; 16808 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16809 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16810 esac 16811 link_all_deplibs_GCJ=yes 16812 ;; 16813 16814 sunos4*) 16815 if test "x$host_vendor" = xsequent; then 16816 # Use $CC to link under sequent, because it throws in some extra .o 16817 # files that make .init and .fini sections work. 16818 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16819 else 16820 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16821 fi 16822 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16823 hardcode_direct_GCJ=yes 16824 hardcode_minus_L_GCJ=yes 16825 hardcode_shlibpath_var_GCJ=no 16826 ;; 16827 16828 sysv4) 16829 case $host_vendor in 16830 sni) 16831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16832 hardcode_direct_GCJ=yes # is this really true??? 16833 ;; 16834 siemens) 16835 ## LD is ld it makes a PLAMLIB 16836 ## CC just makes a GrossModule. 16837 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16838 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16839 hardcode_direct_GCJ=no 16840 ;; 16841 motorola) 16842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16843 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16844 ;; 16845 esac 16846 runpath_var='LD_RUN_PATH' 16847 hardcode_shlibpath_var_GCJ=no 16848 ;; 16849 16850 sysv4.3*) 16851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16852 hardcode_shlibpath_var_GCJ=no 16853 export_dynamic_flag_spec_GCJ='-Bexport' 16854 ;; 16855 16856 sysv4*MP*) 16857 if test -d /usr/nec; then 16858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16859 hardcode_shlibpath_var_GCJ=no 16860 runpath_var=LD_RUN_PATH 16861 hardcode_runpath_var=yes 16862 ld_shlibs_GCJ=yes 16863 fi 16864 ;; 16865 16866 sysv4.2uw2*) 16867 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16868 hardcode_direct_GCJ=yes 16869 hardcode_minus_L_GCJ=no 16870 hardcode_shlibpath_var_GCJ=no 16871 hardcode_runpath_var=yes 16872 runpath_var=LD_RUN_PATH 16873 ;; 16874 16875 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16876 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16877 if test "$GCC" = yes; then 16878 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16879 else 16880 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16881 fi 16882 runpath_var='LD_RUN_PATH' 16883 hardcode_shlibpath_var_GCJ=no 16884 ;; 16885 16886 sysv5*) 16887 no_undefined_flag_GCJ=' -z text' 16888 # $CC -shared without GNU ld will not create a library from C++ 16889 # object files and a static libstdc++, better avoid it by now 16890 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16891 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16893 hardcode_libdir_flag_spec_GCJ= 16894 hardcode_shlibpath_var_GCJ=no 16895 runpath_var='LD_RUN_PATH' 16896 ;; 16897 16898 uts4*) 16899 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16900 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16901 hardcode_shlibpath_var_GCJ=no 16902 ;; 16903 16904 *) 16905 ld_shlibs_GCJ=no 16906 ;; 16907 esac 16908 fi 16909 16910echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16911echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16912test "$ld_shlibs_GCJ" = no && can_build_shared=no 16913 16914variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16915if test "$GCC" = yes; then 16916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16917fi 16918 16919# 16920# Do we need to explicitly link libc? 16921# 16922case "x$archive_cmds_need_lc_GCJ" in 16923x|xyes) 16924 # Assume -lc should be added 16925 archive_cmds_need_lc_GCJ=yes 16926 16927 if test "$enable_shared" = yes && test "$GCC" = yes; then 16928 case $archive_cmds_GCJ in 16929 *'~'*) 16930 # FIXME: we may have to deal with multi-command sequences. 16931 ;; 16932 '$CC '*) 16933 # Test whether the compiler implicitly links with -lc since on some 16934 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16935 # to ld, don't add -lc before -lgcc. 16936 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16937echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16938 $rm conftest* 16939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16940 16941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16942 (eval $ac_compile) 2>&5 16943 ac_status=$? 16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16945 (exit $ac_status); } 2>conftest.err; then 16946 soname=conftest 16947 lib=conftest 16948 libobjs=conftest.$ac_objext 16949 deplibs= 16950 wl=$lt_prog_compiler_wl_GCJ 16951 compiler_flags=-v 16952 linker_flags=-v 16953 verstring= 16954 output_objdir=. 16955 libname=conftest 16956 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16957 allow_undefined_flag_GCJ= 16958 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16959 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16960 ac_status=$? 16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16962 (exit $ac_status); } 16963 then 16964 archive_cmds_need_lc_GCJ=no 16965 else 16966 archive_cmds_need_lc_GCJ=yes 16967 fi 16968 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16969 else 16970 cat conftest.err 1>&5 16971 fi 16972 $rm conftest* 16973 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16974echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16975 ;; 16976 esac 16977 fi 16978 ;; 16979esac 16980 16981echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16982echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16983library_names_spec= 16984libname_spec='lib$name' 16985soname_spec= 16986shrext_cmds=".so" 16987postinstall_cmds= 16988postuninstall_cmds= 16989finish_cmds= 16990finish_eval= 16991shlibpath_var= 16992shlibpath_overrides_runpath=unknown 16993version_type=none 16994dynamic_linker="$host_os ld.so" 16995sys_lib_dlsearch_path_spec="/lib /usr/lib" 16996if test "$GCC" = yes; then 16997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16998 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16999 # if the path contains ";" then we assume it to be the separator 17000 # otherwise default to the standard path separator (i.e. ":") - it is 17001 # assumed that no part of a normal pathname contains ";" but that should 17002 # okay in the real world where ";" in dirpaths is itself problematic. 17003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17004 else 17005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17006 fi 17007else 17008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17009fi 17010need_lib_prefix=unknown 17011hardcode_into_libs=no 17012 17013# when you set need_version to no, make sure it does not cause -set_version 17014# flags to be left without arguments 17015need_version=unknown 17016 17017case $host_os in 17018aix3*) 17019 version_type=linux 17020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17021 shlibpath_var=LIBPATH 17022 17023 # AIX 3 has no versioning support, so we append a major version to the name. 17024 soname_spec='${libname}${release}${shared_ext}$major' 17025 ;; 17026 17027aix4* | aix5*) 17028 version_type=linux 17029 need_lib_prefix=no 17030 need_version=no 17031 hardcode_into_libs=yes 17032 if test "$host_cpu" = ia64; then 17033 # AIX 5 supports IA64 17034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17035 shlibpath_var=LD_LIBRARY_PATH 17036 else 17037 # With GCC up to 2.95.x, collect2 would create an import file 17038 # for dependence libraries. The import file would start with 17039 # the line `#! .'. This would cause the generated library to 17040 # depend on `.', always an invalid library. This was fixed in 17041 # development snapshots of GCC prior to 3.0. 17042 case $host_os in 17043 aix4 | aix4.[01] | aix4.[01].*) 17044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17045 echo ' yes ' 17046 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17047 : 17048 else 17049 can_build_shared=no 17050 fi 17051 ;; 17052 esac 17053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17054 # soname into executable. Probably we can add versioning support to 17055 # collect2, so additional links can be useful in future. 17056 if test "$aix_use_runtimelinking" = yes; then 17057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17058 # instead of lib<name>.a to let people know that these are not 17059 # typical AIX shared libraries. 17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17061 else 17062 # We preserve .a as extension for shared libraries through AIX4.2 17063 # and later when we are not doing run time linking. 17064 library_names_spec='${libname}${release}.a $libname.a' 17065 soname_spec='${libname}${release}${shared_ext}$major' 17066 fi 17067 shlibpath_var=LIBPATH 17068 fi 17069 ;; 17070 17071amigaos*) 17072 library_names_spec='$libname.ixlibrary $libname.a' 17073 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17074 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' 17075 ;; 17076 17077beos*) 17078 library_names_spec='${libname}${shared_ext}' 17079 dynamic_linker="$host_os ld.so" 17080 shlibpath_var=LIBRARY_PATH 17081 ;; 17082 17083bsdi[45]*) 17084 version_type=linux 17085 need_version=no 17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17087 soname_spec='${libname}${release}${shared_ext}$major' 17088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17089 shlibpath_var=LD_LIBRARY_PATH 17090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17092 # the default ld.so.conf also contains /usr/contrib/lib and 17093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17094 # libtool to hard-code these into programs 17095 ;; 17096 17097cygwin* | mingw* | pw32*) 17098 version_type=windows 17099 shrext_cmds=".dll" 17100 need_version=no 17101 need_lib_prefix=no 17102 17103 case $GCC,$host_os in 17104 yes,cygwin* | yes,mingw* | yes,pw32*) 17105 library_names_spec='$libname.dll.a' 17106 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17107 postinstall_cmds='base_file=`basename \${file}`~ 17108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17109 dldir=$destdir/`dirname \$dlpath`~ 17110 test -d \$dldir || mkdir -p \$dldir~ 17111 $install_prog $dir/$dlname \$dldir/$dlname' 17112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17113 dlpath=$dir/\$dldll~ 17114 $rm \$dlpath' 17115 shlibpath_overrides_runpath=yes 17116 17117 case $host_os in 17118 cygwin*) 17119 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17121 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17122 ;; 17123 mingw*) 17124 # MinGW DLLs use traditional 'lib' prefix 17125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17126 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17127 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17128 # It is most probably a Windows format PATH printed by 17129 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17130 # path with ; separators, and with drive letters. We can handle the 17131 # drive letters (cygwin fileutils understands them), so leave them, 17132 # especially as we might pass files found there to a mingw objdump, 17133 # which wouldn't understand a cygwinified path. Ahh. 17134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17135 else 17136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17137 fi 17138 ;; 17139 pw32*) 17140 # pw32 DLLs use 'pw' prefix rather than 'lib' 17141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 17142 ;; 17143 esac 17144 ;; 17145 17146 *) 17147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17148 ;; 17149 esac 17150 dynamic_linker='Win32 ld.exe' 17151 # FIXME: first we should search . and the directory the executable is in 17152 shlibpath_var=PATH 17153 ;; 17154 17155darwin* | rhapsody*) 17156 dynamic_linker="$host_os dyld" 17157 version_type=darwin 17158 need_lib_prefix=no 17159 need_version=no 17160 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17161 soname_spec='${libname}${release}${major}$shared_ext' 17162 shlibpath_overrides_runpath=yes 17163 shlibpath_var=DYLD_LIBRARY_PATH 17164 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17165 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17166 if test "$GCC" = yes; then 17167 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"` 17168 else 17169 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17170 fi 17171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17172 ;; 17173 17174dgux*) 17175 version_type=linux 17176 need_lib_prefix=no 17177 need_version=no 17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17179 soname_spec='${libname}${release}${shared_ext}$major' 17180 shlibpath_var=LD_LIBRARY_PATH 17181 ;; 17182 17183freebsd1*) 17184 dynamic_linker=no 17185 ;; 17186 17187kfreebsd*-gnu) 17188 version_type=linux 17189 need_lib_prefix=no 17190 need_version=no 17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17192 soname_spec='${libname}${release}${shared_ext}$major' 17193 shlibpath_var=LD_LIBRARY_PATH 17194 shlibpath_overrides_runpath=no 17195 hardcode_into_libs=yes 17196 dynamic_linker='GNU ld.so' 17197 ;; 17198 17199freebsd*) 17200 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17201 version_type=freebsd-$objformat 17202 case $version_type in 17203 freebsd-elf*) 17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17205 need_version=no 17206 need_lib_prefix=no 17207 ;; 17208 freebsd-*) 17209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17210 need_version=yes 17211 ;; 17212 esac 17213 shlibpath_var=LD_LIBRARY_PATH 17214 case $host_os in 17215 freebsd2*) 17216 shlibpath_overrides_runpath=yes 17217 ;; 17218 freebsd3.01* | freebsdelf3.01*) 17219 shlibpath_overrides_runpath=yes 17220 hardcode_into_libs=yes 17221 ;; 17222 *) # from 3.2 on 17223 shlibpath_overrides_runpath=no 17224 hardcode_into_libs=yes 17225 ;; 17226 esac 17227 ;; 17228 17229gnu*) 17230 version_type=linux 17231 need_lib_prefix=no 17232 need_version=no 17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17234 soname_spec='${libname}${release}${shared_ext}$major' 17235 shlibpath_var=LD_LIBRARY_PATH 17236 hardcode_into_libs=yes 17237 ;; 17238 17239hpux9* | hpux10* | hpux11*) 17240 # Give a soname corresponding to the major version so that dld.sl refuses to 17241 # link against other versions. 17242 version_type=sunos 17243 need_lib_prefix=no 17244 need_version=no 17245 case "$host_cpu" in 17246 ia64*) 17247 shrext_cmds='.so' 17248 hardcode_into_libs=yes 17249 dynamic_linker="$host_os dld.so" 17250 shlibpath_var=LD_LIBRARY_PATH 17251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17253 soname_spec='${libname}${release}${shared_ext}$major' 17254 if test "X$HPUX_IA64_MODE" = X32; then 17255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17256 else 17257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17258 fi 17259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17260 ;; 17261 hppa*64*) 17262 shrext_cmds='.sl' 17263 hardcode_into_libs=yes 17264 dynamic_linker="$host_os dld.sl" 17265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17268 soname_spec='${libname}${release}${shared_ext}$major' 17269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17271 ;; 17272 *) 17273 shrext_cmds='.sl' 17274 dynamic_linker="$host_os dld.sl" 17275 shlibpath_var=SHLIB_PATH 17276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17278 soname_spec='${libname}${release}${shared_ext}$major' 17279 ;; 17280 esac 17281 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17282 postinstall_cmds='chmod 555 $lib' 17283 ;; 17284 17285irix5* | irix6* | nonstopux*) 17286 case $host_os in 17287 nonstopux*) version_type=nonstopux ;; 17288 *) 17289 if test "$lt_cv_prog_gnu_ld" = yes; then 17290 version_type=linux 17291 else 17292 version_type=irix 17293 fi ;; 17294 esac 17295 need_lib_prefix=no 17296 need_version=no 17297 soname_spec='${libname}${release}${shared_ext}$major' 17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17299 case $host_os in 17300 irix5* | nonstopux*) 17301 libsuff= shlibsuff= 17302 ;; 17303 *) 17304 case $LD in # libtool.m4 will add one of these switches to LD 17305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17306 libsuff= shlibsuff= libmagic=32-bit;; 17307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17308 libsuff=32 shlibsuff=N32 libmagic=N32;; 17309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17310 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17311 *) libsuff= shlibsuff= libmagic=never-match;; 17312 esac 17313 ;; 17314 esac 17315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17316 shlibpath_overrides_runpath=no 17317 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17318 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17319 hardcode_into_libs=yes 17320 ;; 17321 17322# No shared lib support for Linux oldld, aout, or coff. 17323linux*oldld* | linux*aout* | linux*coff*) 17324 dynamic_linker=no 17325 ;; 17326 17327# This must be Linux ELF. 17328linux*) 17329 version_type=linux 17330 need_lib_prefix=no 17331 need_version=no 17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17333 soname_spec='${libname}${release}${shared_ext}$major' 17334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17335 shlibpath_var=LD_LIBRARY_PATH 17336 shlibpath_overrides_runpath=no 17337 # This implies no fast_install, which is unacceptable. 17338 # Some rework will be needed to allow for fast_install 17339 # before this can be enabled. 17340 hardcode_into_libs=yes 17341 17342 # Append ld.so.conf contents to the search path 17343 if test -f /etc/ld.so.conf; then 17344 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 17345 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17346 fi 17347 17348 # We used to test for /lib/ld.so.1 and disable shared libraries on 17349 # powerpc, because MkLinux only supported shared libraries with the 17350 # GNU dynamic linker. Since this was broken with cross compilers, 17351 # most powerpc-linux boxes support dynamic linking these days and 17352 # people can always --disable-shared, the test was removed, and we 17353 # assume the GNU/Linux dynamic linker is in use. 17354 dynamic_linker='GNU/Linux ld.so' 17355 ;; 17356 17357knetbsd*-gnu) 17358 version_type=linux 17359 need_lib_prefix=no 17360 need_version=no 17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17362 soname_spec='${libname}${release}${shared_ext}$major' 17363 shlibpath_var=LD_LIBRARY_PATH 17364 shlibpath_overrides_runpath=no 17365 hardcode_into_libs=yes 17366 dynamic_linker='GNU ld.so' 17367 ;; 17368 17369netbsd*) 17370 version_type=sunos 17371 need_lib_prefix=no 17372 need_version=no 17373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17376 dynamic_linker='NetBSD (a.out) ld.so' 17377 else 17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17379 soname_spec='${libname}${release}${shared_ext}$major' 17380 dynamic_linker='NetBSD ld.elf_so' 17381 fi 17382 shlibpath_var=LD_LIBRARY_PATH 17383 shlibpath_overrides_runpath=yes 17384 hardcode_into_libs=yes 17385 ;; 17386 17387newsos6) 17388 version_type=linux 17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17390 shlibpath_var=LD_LIBRARY_PATH 17391 shlibpath_overrides_runpath=yes 17392 ;; 17393 17394nto-qnx*) 17395 version_type=linux 17396 need_lib_prefix=no 17397 need_version=no 17398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17399 soname_spec='${libname}${release}${shared_ext}$major' 17400 shlibpath_var=LD_LIBRARY_PATH 17401 shlibpath_overrides_runpath=yes 17402 ;; 17403 17404openbsd*) 17405 version_type=sunos 17406 need_lib_prefix=no 17407 need_version=no 17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17410 shlibpath_var=LD_LIBRARY_PATH 17411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17412 case $host_os in 17413 openbsd2.[89] | openbsd2.[89].*) 17414 shlibpath_overrides_runpath=no 17415 ;; 17416 *) 17417 shlibpath_overrides_runpath=yes 17418 ;; 17419 esac 17420 else 17421 shlibpath_overrides_runpath=yes 17422 fi 17423 ;; 17424 17425os2*) 17426 libname_spec='$name' 17427 shrext_cmds=".dll" 17428 need_lib_prefix=no 17429 library_names_spec='$libname${shared_ext} $libname.a' 17430 dynamic_linker='OS/2 ld.exe' 17431 shlibpath_var=LIBPATH 17432 ;; 17433 17434osf3* | osf4* | osf5*) 17435 version_type=osf 17436 need_lib_prefix=no 17437 need_version=no 17438 soname_spec='${libname}${release}${shared_ext}$major' 17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17440 shlibpath_var=LD_LIBRARY_PATH 17441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17443 ;; 17444 17445sco3.2v5*) 17446 version_type=osf 17447 soname_spec='${libname}${release}${shared_ext}$major' 17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17449 shlibpath_var=LD_LIBRARY_PATH 17450 ;; 17451 17452solaris*) 17453 version_type=linux 17454 need_lib_prefix=no 17455 need_version=no 17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17457 soname_spec='${libname}${release}${shared_ext}$major' 17458 shlibpath_var=LD_LIBRARY_PATH 17459 shlibpath_overrides_runpath=yes 17460 hardcode_into_libs=yes 17461 # ldd complains unless libraries are executable 17462 postinstall_cmds='chmod +x $lib' 17463 ;; 17464 17465sunos4*) 17466 version_type=sunos 17467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17468 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17469 shlibpath_var=LD_LIBRARY_PATH 17470 shlibpath_overrides_runpath=yes 17471 if test "$with_gnu_ld" = yes; then 17472 need_lib_prefix=no 17473 fi 17474 need_version=yes 17475 ;; 17476 17477sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17478 version_type=linux 17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17480 soname_spec='${libname}${release}${shared_ext}$major' 17481 shlibpath_var=LD_LIBRARY_PATH 17482 case $host_vendor in 17483 sni) 17484 shlibpath_overrides_runpath=no 17485 need_lib_prefix=no 17486 export_dynamic_flag_spec='${wl}-Blargedynsym' 17487 runpath_var=LD_RUN_PATH 17488 ;; 17489 siemens) 17490 need_lib_prefix=no 17491 ;; 17492 motorola) 17493 need_lib_prefix=no 17494 need_version=no 17495 shlibpath_overrides_runpath=no 17496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17497 ;; 17498 esac 17499 ;; 17500 17501sysv4*MP*) 17502 if test -d /usr/nec ;then 17503 version_type=linux 17504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17505 soname_spec='$libname${shared_ext}.$major' 17506 shlibpath_var=LD_LIBRARY_PATH 17507 fi 17508 ;; 17509 17510uts4*) 17511 version_type=linux 17512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17513 soname_spec='${libname}${release}${shared_ext}$major' 17514 shlibpath_var=LD_LIBRARY_PATH 17515 ;; 17516 17517*) 17518 dynamic_linker=no 17519 ;; 17520esac 17521echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17522echo "${ECHO_T}$dynamic_linker" >&6 17523test "$dynamic_linker" = no && can_build_shared=no 17524 17525echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17526echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17527hardcode_action_GCJ= 17528if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17529 test -n "$runpath_var_GCJ" || \ 17530 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17531 17532 # We can hardcode non-existant directories. 17533 if test "$hardcode_direct_GCJ" != no && 17534 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17535 # have to relink, otherwise we might link with an installed library 17536 # when we should be linking with a yet-to-be-installed one 17537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17538 test "$hardcode_minus_L_GCJ" != no; then 17539 # Linking always hardcodes the temporary library directory. 17540 hardcode_action_GCJ=relink 17541 else 17542 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17543 hardcode_action_GCJ=immediate 17544 fi 17545else 17546 # We cannot hardcode anything, or else we can only hardcode existing 17547 # directories. 17548 hardcode_action_GCJ=unsupported 17549fi 17550echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17551echo "${ECHO_T}$hardcode_action_GCJ" >&6 17552 17553if test "$hardcode_action_GCJ" = relink; then 17554 # Fast installation is not supported 17555 enable_fast_install=no 17556elif test "$shlibpath_overrides_runpath" = yes || 17557 test "$enable_shared" = no; then 17558 # Fast installation is not necessary 17559 enable_fast_install=needless 17560fi 17561 17562striplib= 17563old_striplib= 17564echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17565echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17566if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17567 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17568 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17569 echo "$as_me:$LINENO: result: yes" >&5 17570echo "${ECHO_T}yes" >&6 17571else 17572# FIXME - insert some real tests, host_os isn't really good enough 17573 case $host_os in 17574 darwin*) 17575 if test -n "$STRIP" ; then 17576 striplib="$STRIP -x" 17577 echo "$as_me:$LINENO: result: yes" >&5 17578echo "${ECHO_T}yes" >&6 17579 else 17580 echo "$as_me:$LINENO: result: no" >&5 17581echo "${ECHO_T}no" >&6 17582fi 17583 ;; 17584 *) 17585 echo "$as_me:$LINENO: result: no" >&5 17586echo "${ECHO_T}no" >&6 17587 ;; 17588 esac 17589fi 17590 17591if test "x$enable_dlopen" != xyes; then 17592 enable_dlopen=unknown 17593 enable_dlopen_self=unknown 17594 enable_dlopen_self_static=unknown 17595else 17596 lt_cv_dlopen=no 17597 lt_cv_dlopen_libs= 17598 17599 case $host_os in 17600 beos*) 17601 lt_cv_dlopen="load_add_on" 17602 lt_cv_dlopen_libs= 17603 lt_cv_dlopen_self=yes 17604 ;; 17605 17606 mingw* | pw32*) 17607 lt_cv_dlopen="LoadLibrary" 17608 lt_cv_dlopen_libs= 17609 ;; 17610 17611 cygwin*) 17612 lt_cv_dlopen="dlopen" 17613 lt_cv_dlopen_libs= 17614 ;; 17615 17616 darwin*) 17617 # if libdl is installed we need to link against it 17618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17619echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17620if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17621 echo $ECHO_N "(cached) $ECHO_C" >&6 17622else 17623 ac_check_lib_save_LIBS=$LIBS 17624LIBS="-ldl $LIBS" 17625cat >conftest.$ac_ext <<_ACEOF 17626/* confdefs.h. */ 17627_ACEOF 17628cat confdefs.h >>conftest.$ac_ext 17629cat >>conftest.$ac_ext <<_ACEOF 17630/* end confdefs.h. */ 17631 17632/* Override any gcc2 internal prototype to avoid an error. */ 17633#ifdef __cplusplus 17634extern "C" 17635#endif 17636/* We use char because int might match the return type of a gcc2 17637 builtin and then its argument prototype would still apply. */ 17638char dlopen (); 17639int 17640main () 17641{ 17642dlopen (); 17643 ; 17644 return 0; 17645} 17646_ACEOF 17647rm -f conftest.$ac_objext conftest$ac_exeext 17648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17649 (eval $ac_link) 2>conftest.er1 17650 ac_status=$? 17651 grep -v '^ *+' conftest.er1 >conftest.err 17652 rm -f conftest.er1 17653 cat conftest.err >&5 17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17655 (exit $ac_status); } && 17656 { ac_try='test -z "$ac_c_werror_flag" 17657 || test ! -s conftest.err' 17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17659 (eval $ac_try) 2>&5 17660 ac_status=$? 17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17662 (exit $ac_status); }; } && 17663 { ac_try='test -s conftest$ac_exeext' 17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17665 (eval $ac_try) 2>&5 17666 ac_status=$? 17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17668 (exit $ac_status); }; }; then 17669 ac_cv_lib_dl_dlopen=yes 17670else 17671 echo "$as_me: failed program was:" >&5 17672sed 's/^/| /' conftest.$ac_ext >&5 17673 17674ac_cv_lib_dl_dlopen=no 17675fi 17676rm -f conftest.err conftest.$ac_objext \ 17677 conftest$ac_exeext conftest.$ac_ext 17678LIBS=$ac_check_lib_save_LIBS 17679fi 17680echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17681echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17682if test $ac_cv_lib_dl_dlopen = yes; then 17683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17684else 17685 17686 lt_cv_dlopen="dyld" 17687 lt_cv_dlopen_libs= 17688 lt_cv_dlopen_self=yes 17689 17690fi 17691 17692 ;; 17693 17694 *) 17695 echo "$as_me:$LINENO: checking for shl_load" >&5 17696echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17697if test "${ac_cv_func_shl_load+set}" = set; then 17698 echo $ECHO_N "(cached) $ECHO_C" >&6 17699else 17700 cat >conftest.$ac_ext <<_ACEOF 17701/* confdefs.h. */ 17702_ACEOF 17703cat confdefs.h >>conftest.$ac_ext 17704cat >>conftest.$ac_ext <<_ACEOF 17705/* end confdefs.h. */ 17706/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17708#define shl_load innocuous_shl_load 17709 17710/* System header to define __stub macros and hopefully few prototypes, 17711 which can conflict with char shl_load (); below. 17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17713 <limits.h> exists even on freestanding compilers. */ 17714 17715#ifdef __STDC__ 17716# include <limits.h> 17717#else 17718# include <assert.h> 17719#endif 17720 17721#undef shl_load 17722 17723/* Override any gcc2 internal prototype to avoid an error. */ 17724#ifdef __cplusplus 17725extern "C" 17726{ 17727#endif 17728/* We use char because int might match the return type of a gcc2 17729 builtin and then its argument prototype would still apply. */ 17730char shl_load (); 17731/* The GNU C library defines this for functions which it implements 17732 to always fail with ENOSYS. Some functions are actually named 17733 something starting with __ and the normal name is an alias. */ 17734#if defined (__stub_shl_load) || defined (__stub___shl_load) 17735choke me 17736#else 17737char (*f) () = shl_load; 17738#endif 17739#ifdef __cplusplus 17740} 17741#endif 17742 17743int 17744main () 17745{ 17746return f != shl_load; 17747 ; 17748 return 0; 17749} 17750_ACEOF 17751rm -f conftest.$ac_objext conftest$ac_exeext 17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17753 (eval $ac_link) 2>conftest.er1 17754 ac_status=$? 17755 grep -v '^ *+' conftest.er1 >conftest.err 17756 rm -f conftest.er1 17757 cat conftest.err >&5 17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17759 (exit $ac_status); } && 17760 { ac_try='test -z "$ac_c_werror_flag" 17761 || test ! -s conftest.err' 17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17763 (eval $ac_try) 2>&5 17764 ac_status=$? 17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17766 (exit $ac_status); }; } && 17767 { ac_try='test -s conftest$ac_exeext' 17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17769 (eval $ac_try) 2>&5 17770 ac_status=$? 17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17772 (exit $ac_status); }; }; then 17773 ac_cv_func_shl_load=yes 17774else 17775 echo "$as_me: failed program was:" >&5 17776sed 's/^/| /' conftest.$ac_ext >&5 17777 17778ac_cv_func_shl_load=no 17779fi 17780rm -f conftest.err conftest.$ac_objext \ 17781 conftest$ac_exeext conftest.$ac_ext 17782fi 17783echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17784echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17785if test $ac_cv_func_shl_load = yes; then 17786 lt_cv_dlopen="shl_load" 17787else 17788 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17789echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17790if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17791 echo $ECHO_N "(cached) $ECHO_C" >&6 17792else 17793 ac_check_lib_save_LIBS=$LIBS 17794LIBS="-ldld $LIBS" 17795cat >conftest.$ac_ext <<_ACEOF 17796/* confdefs.h. */ 17797_ACEOF 17798cat confdefs.h >>conftest.$ac_ext 17799cat >>conftest.$ac_ext <<_ACEOF 17800/* end confdefs.h. */ 17801 17802/* Override any gcc2 internal prototype to avoid an error. */ 17803#ifdef __cplusplus 17804extern "C" 17805#endif 17806/* We use char because int might match the return type of a gcc2 17807 builtin and then its argument prototype would still apply. */ 17808char shl_load (); 17809int 17810main () 17811{ 17812shl_load (); 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817rm -f conftest.$ac_objext conftest$ac_exeext 17818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17819 (eval $ac_link) 2>conftest.er1 17820 ac_status=$? 17821 grep -v '^ *+' conftest.er1 >conftest.err 17822 rm -f conftest.er1 17823 cat conftest.err >&5 17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17825 (exit $ac_status); } && 17826 { ac_try='test -z "$ac_c_werror_flag" 17827 || test ! -s conftest.err' 17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17829 (eval $ac_try) 2>&5 17830 ac_status=$? 17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17832 (exit $ac_status); }; } && 17833 { ac_try='test -s conftest$ac_exeext' 17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17835 (eval $ac_try) 2>&5 17836 ac_status=$? 17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17838 (exit $ac_status); }; }; then 17839 ac_cv_lib_dld_shl_load=yes 17840else 17841 echo "$as_me: failed program was:" >&5 17842sed 's/^/| /' conftest.$ac_ext >&5 17843 17844ac_cv_lib_dld_shl_load=no 17845fi 17846rm -f conftest.err conftest.$ac_objext \ 17847 conftest$ac_exeext conftest.$ac_ext 17848LIBS=$ac_check_lib_save_LIBS 17849fi 17850echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17851echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17852if test $ac_cv_lib_dld_shl_load = yes; then 17853 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17854else 17855 echo "$as_me:$LINENO: checking for dlopen" >&5 17856echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17857if test "${ac_cv_func_dlopen+set}" = set; then 17858 echo $ECHO_N "(cached) $ECHO_C" >&6 17859else 17860 cat >conftest.$ac_ext <<_ACEOF 17861/* confdefs.h. */ 17862_ACEOF 17863cat confdefs.h >>conftest.$ac_ext 17864cat >>conftest.$ac_ext <<_ACEOF 17865/* end confdefs.h. */ 17866/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17868#define dlopen innocuous_dlopen 17869 17870/* System header to define __stub macros and hopefully few prototypes, 17871 which can conflict with char dlopen (); below. 17872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17873 <limits.h> exists even on freestanding compilers. */ 17874 17875#ifdef __STDC__ 17876# include <limits.h> 17877#else 17878# include <assert.h> 17879#endif 17880 17881#undef dlopen 17882 17883/* Override any gcc2 internal prototype to avoid an error. */ 17884#ifdef __cplusplus 17885extern "C" 17886{ 17887#endif 17888/* We use char because int might match the return type of a gcc2 17889 builtin and then its argument prototype would still apply. */ 17890char dlopen (); 17891/* The GNU C library defines this for functions which it implements 17892 to always fail with ENOSYS. Some functions are actually named 17893 something starting with __ and the normal name is an alias. */ 17894#if defined (__stub_dlopen) || defined (__stub___dlopen) 17895choke me 17896#else 17897char (*f) () = dlopen; 17898#endif 17899#ifdef __cplusplus 17900} 17901#endif 17902 17903int 17904main () 17905{ 17906return f != dlopen; 17907 ; 17908 return 0; 17909} 17910_ACEOF 17911rm -f conftest.$ac_objext conftest$ac_exeext 17912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17913 (eval $ac_link) 2>conftest.er1 17914 ac_status=$? 17915 grep -v '^ *+' conftest.er1 >conftest.err 17916 rm -f conftest.er1 17917 cat conftest.err >&5 17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17919 (exit $ac_status); } && 17920 { ac_try='test -z "$ac_c_werror_flag" 17921 || test ! -s conftest.err' 17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17923 (eval $ac_try) 2>&5 17924 ac_status=$? 17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17926 (exit $ac_status); }; } && 17927 { ac_try='test -s conftest$ac_exeext' 17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17929 (eval $ac_try) 2>&5 17930 ac_status=$? 17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17932 (exit $ac_status); }; }; then 17933 ac_cv_func_dlopen=yes 17934else 17935 echo "$as_me: failed program was:" >&5 17936sed 's/^/| /' conftest.$ac_ext >&5 17937 17938ac_cv_func_dlopen=no 17939fi 17940rm -f conftest.err conftest.$ac_objext \ 17941 conftest$ac_exeext conftest.$ac_ext 17942fi 17943echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17944echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17945if test $ac_cv_func_dlopen = yes; then 17946 lt_cv_dlopen="dlopen" 17947else 17948 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17949echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17950if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17951 echo $ECHO_N "(cached) $ECHO_C" >&6 17952else 17953 ac_check_lib_save_LIBS=$LIBS 17954LIBS="-ldl $LIBS" 17955cat >conftest.$ac_ext <<_ACEOF 17956/* confdefs.h. */ 17957_ACEOF 17958cat confdefs.h >>conftest.$ac_ext 17959cat >>conftest.$ac_ext <<_ACEOF 17960/* end confdefs.h. */ 17961 17962/* Override any gcc2 internal prototype to avoid an error. */ 17963#ifdef __cplusplus 17964extern "C" 17965#endif 17966/* We use char because int might match the return type of a gcc2 17967 builtin and then its argument prototype would still apply. */ 17968char dlopen (); 17969int 17970main () 17971{ 17972dlopen (); 17973 ; 17974 return 0; 17975} 17976_ACEOF 17977rm -f conftest.$ac_objext conftest$ac_exeext 17978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17979 (eval $ac_link) 2>conftest.er1 17980 ac_status=$? 17981 grep -v '^ *+' conftest.er1 >conftest.err 17982 rm -f conftest.er1 17983 cat conftest.err >&5 17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17985 (exit $ac_status); } && 17986 { ac_try='test -z "$ac_c_werror_flag" 17987 || test ! -s conftest.err' 17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17989 (eval $ac_try) 2>&5 17990 ac_status=$? 17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17992 (exit $ac_status); }; } && 17993 { ac_try='test -s conftest$ac_exeext' 17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17995 (eval $ac_try) 2>&5 17996 ac_status=$? 17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17998 (exit $ac_status); }; }; then 17999 ac_cv_lib_dl_dlopen=yes 18000else 18001 echo "$as_me: failed program was:" >&5 18002sed 's/^/| /' conftest.$ac_ext >&5 18003 18004ac_cv_lib_dl_dlopen=no 18005fi 18006rm -f conftest.err conftest.$ac_objext \ 18007 conftest$ac_exeext conftest.$ac_ext 18008LIBS=$ac_check_lib_save_LIBS 18009fi 18010echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18011echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18012if test $ac_cv_lib_dl_dlopen = yes; then 18013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18014else 18015 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18016echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18017if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18018 echo $ECHO_N "(cached) $ECHO_C" >&6 18019else 18020 ac_check_lib_save_LIBS=$LIBS 18021LIBS="-lsvld $LIBS" 18022cat >conftest.$ac_ext <<_ACEOF 18023/* confdefs.h. */ 18024_ACEOF 18025cat confdefs.h >>conftest.$ac_ext 18026cat >>conftest.$ac_ext <<_ACEOF 18027/* end confdefs.h. */ 18028 18029/* Override any gcc2 internal prototype to avoid an error. */ 18030#ifdef __cplusplus 18031extern "C" 18032#endif 18033/* We use char because int might match the return type of a gcc2 18034 builtin and then its argument prototype would still apply. */ 18035char dlopen (); 18036int 18037main () 18038{ 18039dlopen (); 18040 ; 18041 return 0; 18042} 18043_ACEOF 18044rm -f conftest.$ac_objext conftest$ac_exeext 18045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18046 (eval $ac_link) 2>conftest.er1 18047 ac_status=$? 18048 grep -v '^ *+' conftest.er1 >conftest.err 18049 rm -f conftest.er1 18050 cat conftest.err >&5 18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18052 (exit $ac_status); } && 18053 { ac_try='test -z "$ac_c_werror_flag" 18054 || test ! -s conftest.err' 18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18056 (eval $ac_try) 2>&5 18057 ac_status=$? 18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18059 (exit $ac_status); }; } && 18060 { ac_try='test -s conftest$ac_exeext' 18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18062 (eval $ac_try) 2>&5 18063 ac_status=$? 18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18065 (exit $ac_status); }; }; then 18066 ac_cv_lib_svld_dlopen=yes 18067else 18068 echo "$as_me: failed program was:" >&5 18069sed 's/^/| /' conftest.$ac_ext >&5 18070 18071ac_cv_lib_svld_dlopen=no 18072fi 18073rm -f conftest.err conftest.$ac_objext \ 18074 conftest$ac_exeext conftest.$ac_ext 18075LIBS=$ac_check_lib_save_LIBS 18076fi 18077echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18078echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18079if test $ac_cv_lib_svld_dlopen = yes; then 18080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18081else 18082 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18083echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18084if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18085 echo $ECHO_N "(cached) $ECHO_C" >&6 18086else 18087 ac_check_lib_save_LIBS=$LIBS 18088LIBS="-ldld $LIBS" 18089cat >conftest.$ac_ext <<_ACEOF 18090/* confdefs.h. */ 18091_ACEOF 18092cat confdefs.h >>conftest.$ac_ext 18093cat >>conftest.$ac_ext <<_ACEOF 18094/* end confdefs.h. */ 18095 18096/* Override any gcc2 internal prototype to avoid an error. */ 18097#ifdef __cplusplus 18098extern "C" 18099#endif 18100/* We use char because int might match the return type of a gcc2 18101 builtin and then its argument prototype would still apply. */ 18102char dld_link (); 18103int 18104main () 18105{ 18106dld_link (); 18107 ; 18108 return 0; 18109} 18110_ACEOF 18111rm -f conftest.$ac_objext conftest$ac_exeext 18112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18113 (eval $ac_link) 2>conftest.er1 18114 ac_status=$? 18115 grep -v '^ *+' conftest.er1 >conftest.err 18116 rm -f conftest.er1 18117 cat conftest.err >&5 18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18119 (exit $ac_status); } && 18120 { ac_try='test -z "$ac_c_werror_flag" 18121 || test ! -s conftest.err' 18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18123 (eval $ac_try) 2>&5 18124 ac_status=$? 18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18126 (exit $ac_status); }; } && 18127 { ac_try='test -s conftest$ac_exeext' 18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18129 (eval $ac_try) 2>&5 18130 ac_status=$? 18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18132 (exit $ac_status); }; }; then 18133 ac_cv_lib_dld_dld_link=yes 18134else 18135 echo "$as_me: failed program was:" >&5 18136sed 's/^/| /' conftest.$ac_ext >&5 18137 18138ac_cv_lib_dld_dld_link=no 18139fi 18140rm -f conftest.err conftest.$ac_objext \ 18141 conftest$ac_exeext conftest.$ac_ext 18142LIBS=$ac_check_lib_save_LIBS 18143fi 18144echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18145echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18146if test $ac_cv_lib_dld_dld_link = yes; then 18147 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18148fi 18149 18150 18151fi 18152 18153 18154fi 18155 18156 18157fi 18158 18159 18160fi 18161 18162 18163fi 18164 18165 ;; 18166 esac 18167 18168 if test "x$lt_cv_dlopen" != xno; then 18169 enable_dlopen=yes 18170 else 18171 enable_dlopen=no 18172 fi 18173 18174 case $lt_cv_dlopen in 18175 dlopen) 18176 save_CPPFLAGS="$CPPFLAGS" 18177 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18178 18179 save_LDFLAGS="$LDFLAGS" 18180 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18181 18182 save_LIBS="$LIBS" 18183 LIBS="$lt_cv_dlopen_libs $LIBS" 18184 18185 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18186echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18187if test "${lt_cv_dlopen_self+set}" = set; then 18188 echo $ECHO_N "(cached) $ECHO_C" >&6 18189else 18190 if test "$cross_compiling" = yes; then : 18191 lt_cv_dlopen_self=cross 18192else 18193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18194 lt_status=$lt_dlunknown 18195 cat > conftest.$ac_ext <<EOF 18196#line 18196 "configure" 18197#include "confdefs.h" 18198 18199#if HAVE_DLFCN_H 18200#include <dlfcn.h> 18201#endif 18202 18203#include <stdio.h> 18204 18205#ifdef RTLD_GLOBAL 18206# define LT_DLGLOBAL RTLD_GLOBAL 18207#else 18208# ifdef DL_GLOBAL 18209# define LT_DLGLOBAL DL_GLOBAL 18210# else 18211# define LT_DLGLOBAL 0 18212# endif 18213#endif 18214 18215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18216 find out it does not work in some platform. */ 18217#ifndef LT_DLLAZY_OR_NOW 18218# ifdef RTLD_LAZY 18219# define LT_DLLAZY_OR_NOW RTLD_LAZY 18220# else 18221# ifdef DL_LAZY 18222# define LT_DLLAZY_OR_NOW DL_LAZY 18223# else 18224# ifdef RTLD_NOW 18225# define LT_DLLAZY_OR_NOW RTLD_NOW 18226# else 18227# ifdef DL_NOW 18228# define LT_DLLAZY_OR_NOW DL_NOW 18229# else 18230# define LT_DLLAZY_OR_NOW 0 18231# endif 18232# endif 18233# endif 18234# endif 18235#endif 18236 18237#ifdef __cplusplus 18238extern "C" void exit (int); 18239#endif 18240 18241void fnord() { int i=42;} 18242int main () 18243{ 18244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18245 int status = $lt_dlunknown; 18246 18247 if (self) 18248 { 18249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18251 /* dlclose (self); */ 18252 } 18253 18254 exit (status); 18255} 18256EOF 18257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18258 (eval $ac_link) 2>&5 18259 ac_status=$? 18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18261 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18262 (./conftest; exit; ) 2>/dev/null 18263 lt_status=$? 18264 case x$lt_status in 18265 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18266 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18267 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18268 esac 18269 else : 18270 # compilation failed 18271 lt_cv_dlopen_self=no 18272 fi 18273fi 18274rm -fr conftest* 18275 18276 18277fi 18278echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18279echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18280 18281 if test "x$lt_cv_dlopen_self" = xyes; then 18282 LDFLAGS="$LDFLAGS $link_static_flag" 18283 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18284echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18285if test "${lt_cv_dlopen_self_static+set}" = set; then 18286 echo $ECHO_N "(cached) $ECHO_C" >&6 18287else 18288 if test "$cross_compiling" = yes; then : 18289 lt_cv_dlopen_self_static=cross 18290else 18291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18292 lt_status=$lt_dlunknown 18293 cat > conftest.$ac_ext <<EOF 18294#line 18294 "configure" 18295#include "confdefs.h" 18296 18297#if HAVE_DLFCN_H 18298#include <dlfcn.h> 18299#endif 18300 18301#include <stdio.h> 18302 18303#ifdef RTLD_GLOBAL 18304# define LT_DLGLOBAL RTLD_GLOBAL 18305#else 18306# ifdef DL_GLOBAL 18307# define LT_DLGLOBAL DL_GLOBAL 18308# else 18309# define LT_DLGLOBAL 0 18310# endif 18311#endif 18312 18313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18314 find out it does not work in some platform. */ 18315#ifndef LT_DLLAZY_OR_NOW 18316# ifdef RTLD_LAZY 18317# define LT_DLLAZY_OR_NOW RTLD_LAZY 18318# else 18319# ifdef DL_LAZY 18320# define LT_DLLAZY_OR_NOW DL_LAZY 18321# else 18322# ifdef RTLD_NOW 18323# define LT_DLLAZY_OR_NOW RTLD_NOW 18324# else 18325# ifdef DL_NOW 18326# define LT_DLLAZY_OR_NOW DL_NOW 18327# else 18328# define LT_DLLAZY_OR_NOW 0 18329# endif 18330# endif 18331# endif 18332# endif 18333#endif 18334 18335#ifdef __cplusplus 18336extern "C" void exit (int); 18337#endif 18338 18339void fnord() { int i=42;} 18340int main () 18341{ 18342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18343 int status = $lt_dlunknown; 18344 18345 if (self) 18346 { 18347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18349 /* dlclose (self); */ 18350 } 18351 18352 exit (status); 18353} 18354EOF 18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18356 (eval $ac_link) 2>&5 18357 ac_status=$? 18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18360 (./conftest; exit; ) 2>/dev/null 18361 lt_status=$? 18362 case x$lt_status in 18363 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18364 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18365 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18366 esac 18367 else : 18368 # compilation failed 18369 lt_cv_dlopen_self_static=no 18370 fi 18371fi 18372rm -fr conftest* 18373 18374 18375fi 18376echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18377echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18378 fi 18379 18380 CPPFLAGS="$save_CPPFLAGS" 18381 LDFLAGS="$save_LDFLAGS" 18382 LIBS="$save_LIBS" 18383 ;; 18384 esac 18385 18386 case $lt_cv_dlopen_self in 18387 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18388 *) enable_dlopen_self=unknown ;; 18389 esac 18390 18391 case $lt_cv_dlopen_self_static in 18392 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18393 *) enable_dlopen_self_static=unknown ;; 18394 esac 18395fi 18396 18397 18398# The else clause should only fire when bootstrapping the 18399# libtool distribution, otherwise you forgot to ship ltmain.sh 18400# with your package, and you will get complaints that there are 18401# no rules to generate ltmain.sh. 18402if test -f "$ltmain"; then 18403 # See if we are running on zsh, and set the options which allow our commands through 18404 # without removal of \ escapes. 18405 if test -n "${ZSH_VERSION+set}" ; then 18406 setopt NO_GLOB_SUBST 18407 fi 18408 # Now quote all the things that may contain metacharacters while being 18409 # careful not to overquote the AC_SUBSTed values. We take copies of the 18410 # variables and quote the copies for generation of the libtool script. 18411 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18412 SED SHELL STRIP \ 18413 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18414 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18415 deplibs_check_method reload_flag reload_cmds need_locks \ 18416 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18417 lt_cv_sys_global_symbol_to_c_name_address \ 18418 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18419 old_postinstall_cmds old_postuninstall_cmds \ 18420 compiler_GCJ \ 18421 CC_GCJ \ 18422 LD_GCJ \ 18423 lt_prog_compiler_wl_GCJ \ 18424 lt_prog_compiler_pic_GCJ \ 18425 lt_prog_compiler_static_GCJ \ 18426 lt_prog_compiler_no_builtin_flag_GCJ \ 18427 export_dynamic_flag_spec_GCJ \ 18428 thread_safe_flag_spec_GCJ \ 18429 whole_archive_flag_spec_GCJ \ 18430 enable_shared_with_static_runtimes_GCJ \ 18431 old_archive_cmds_GCJ \ 18432 old_archive_from_new_cmds_GCJ \ 18433 predep_objects_GCJ \ 18434 postdep_objects_GCJ \ 18435 predeps_GCJ \ 18436 postdeps_GCJ \ 18437 compiler_lib_search_path_GCJ \ 18438 archive_cmds_GCJ \ 18439 archive_expsym_cmds_GCJ \ 18440 postinstall_cmds_GCJ \ 18441 postuninstall_cmds_GCJ \ 18442 old_archive_from_expsyms_cmds_GCJ \ 18443 allow_undefined_flag_GCJ \ 18444 no_undefined_flag_GCJ \ 18445 export_symbols_cmds_GCJ \ 18446 hardcode_libdir_flag_spec_GCJ \ 18447 hardcode_libdir_flag_spec_ld_GCJ \ 18448 hardcode_libdir_separator_GCJ \ 18449 hardcode_automatic_GCJ \ 18450 module_cmds_GCJ \ 18451 module_expsym_cmds_GCJ \ 18452 lt_cv_prog_compiler_c_o_GCJ \ 18453 exclude_expsyms_GCJ \ 18454 include_expsyms_GCJ; do 18455 18456 case $var in 18457 old_archive_cmds_GCJ | \ 18458 old_archive_from_new_cmds_GCJ | \ 18459 archive_cmds_GCJ | \ 18460 archive_expsym_cmds_GCJ | \ 18461 module_cmds_GCJ | \ 18462 module_expsym_cmds_GCJ | \ 18463 old_archive_from_expsyms_cmds_GCJ | \ 18464 export_symbols_cmds_GCJ | \ 18465 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18466 postinstall_cmds | postuninstall_cmds | \ 18467 old_postinstall_cmds | old_postuninstall_cmds | \ 18468 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18469 # Double-quote double-evaled strings. 18470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18471 ;; 18472 *) 18473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18474 ;; 18475 esac 18476 done 18477 18478 case $lt_echo in 18479 *'\$0 --fallback-echo"') 18480 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18481 ;; 18482 esac 18483 18484cfgfile="$ofile" 18485 18486 cat <<__EOF__ >> "$cfgfile" 18487# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18488 18489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18490 18491# Shell to use when invoking shell scripts. 18492SHELL=$lt_SHELL 18493 18494# Whether or not to build shared libraries. 18495build_libtool_libs=$enable_shared 18496 18497# Whether or not to build static libraries. 18498build_old_libs=$enable_static 18499 18500# Whether or not to add -lc for building shared libraries. 18501build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18502 18503# Whether or not to disallow shared libs when runtime libs are static 18504allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18505 18506# Whether or not to optimize for fast installation. 18507fast_install=$enable_fast_install 18508 18509# The host system. 18510host_alias=$host_alias 18511host=$host 18512 18513# An echo program that does not interpret backslashes. 18514echo=$lt_echo 18515 18516# The archiver. 18517AR=$lt_AR 18518AR_FLAGS=$lt_AR_FLAGS 18519 18520# A C compiler. 18521LTCC=$lt_LTCC 18522 18523# A language-specific compiler. 18524CC=$lt_compiler_GCJ 18525 18526# Is the compiler the GNU C compiler? 18527with_gcc=$GCC_GCJ 18528 18529# An ERE matcher. 18530EGREP=$lt_EGREP 18531 18532# The linker used to build libraries. 18533LD=$lt_LD_GCJ 18534 18535# Whether we need hard or soft links. 18536LN_S=$lt_LN_S 18537 18538# A BSD-compatible nm program. 18539NM=$lt_NM 18540 18541# A symbol stripping program 18542STRIP=$lt_STRIP 18543 18544# Used to examine libraries when file_magic_cmd begins "file" 18545MAGIC_CMD=$MAGIC_CMD 18546 18547# Used on cygwin: DLL creation program. 18548DLLTOOL="$DLLTOOL" 18549 18550# Used on cygwin: object dumper. 18551OBJDUMP="$OBJDUMP" 18552 18553# Used on cygwin: assembler. 18554AS="$AS" 18555 18556# The name of the directory that contains temporary libtool files. 18557objdir=$objdir 18558 18559# How to create reloadable object files. 18560reload_flag=$lt_reload_flag 18561reload_cmds=$lt_reload_cmds 18562 18563# How to pass a linker flag through the compiler. 18564wl=$lt_lt_prog_compiler_wl_GCJ 18565 18566# Object file suffix (normally "o"). 18567objext="$ac_objext" 18568 18569# Old archive suffix (normally "a"). 18570libext="$libext" 18571 18572# Shared library suffix (normally ".so"). 18573shrext_cmds='$shrext_cmds' 18574 18575# Executable file suffix (normally ""). 18576exeext="$exeext" 18577 18578# Additional compiler flags for building library objects. 18579pic_flag=$lt_lt_prog_compiler_pic_GCJ 18580pic_mode=$pic_mode 18581 18582# What is the maximum length of a command? 18583max_cmd_len=$lt_cv_sys_max_cmd_len 18584 18585# Does compiler simultaneously support -c and -o options? 18586compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18587 18588# Must we lock files when doing compilation ? 18589need_locks=$lt_need_locks 18590 18591# Do we need the lib prefix for modules? 18592need_lib_prefix=$need_lib_prefix 18593 18594# Do we need a version for libraries? 18595need_version=$need_version 18596 18597# Whether dlopen is supported. 18598dlopen_support=$enable_dlopen 18599 18600# Whether dlopen of programs is supported. 18601dlopen_self=$enable_dlopen_self 18602 18603# Whether dlopen of statically linked programs is supported. 18604dlopen_self_static=$enable_dlopen_self_static 18605 18606# Compiler flag to prevent dynamic linking. 18607link_static_flag=$lt_lt_prog_compiler_static_GCJ 18608 18609# Compiler flag to turn off builtin functions. 18610no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18611 18612# Compiler flag to allow reflexive dlopens. 18613export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18614 18615# Compiler flag to generate shared objects directly from archives. 18616whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18617 18618# Compiler flag to generate thread-safe objects. 18619thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18620 18621# Library versioning type. 18622version_type=$version_type 18623 18624# Format of library name prefix. 18625libname_spec=$lt_libname_spec 18626 18627# List of archive names. First name is the real one, the rest are links. 18628# The last name is the one that the linker finds with -lNAME. 18629library_names_spec=$lt_library_names_spec 18630 18631# The coded name of the library, if different from the real name. 18632soname_spec=$lt_soname_spec 18633 18634# Commands used to build and install an old-style archive. 18635RANLIB=$lt_RANLIB 18636old_archive_cmds=$lt_old_archive_cmds_GCJ 18637old_postinstall_cmds=$lt_old_postinstall_cmds 18638old_postuninstall_cmds=$lt_old_postuninstall_cmds 18639 18640# Create an old-style archive from a shared archive. 18641old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18642 18643# Create a temporary old-style archive to link instead of a shared archive. 18644old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18645 18646# Commands used to build and install a shared archive. 18647archive_cmds=$lt_archive_cmds_GCJ 18648archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18649postinstall_cmds=$lt_postinstall_cmds 18650postuninstall_cmds=$lt_postuninstall_cmds 18651 18652# Commands used to build a loadable module (assumed same as above if empty) 18653module_cmds=$lt_module_cmds_GCJ 18654module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18655 18656# Commands to strip libraries. 18657old_striplib=$lt_old_striplib 18658striplib=$lt_striplib 18659 18660# Dependencies to place before the objects being linked to create a 18661# shared library. 18662predep_objects=$lt_predep_objects_GCJ 18663 18664# Dependencies to place after the objects being linked to create a 18665# shared library. 18666postdep_objects=$lt_postdep_objects_GCJ 18667 18668# Dependencies to place before the objects being linked to create a 18669# shared library. 18670predeps=$lt_predeps_GCJ 18671 18672# Dependencies to place after the objects being linked to create a 18673# shared library. 18674postdeps=$lt_postdeps_GCJ 18675 18676# The library search path used internally by the compiler when linking 18677# a shared library. 18678compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18679 18680# Method to check whether dependent libraries are shared objects. 18681deplibs_check_method=$lt_deplibs_check_method 18682 18683# Command to use when deplibs_check_method == file_magic. 18684file_magic_cmd=$lt_file_magic_cmd 18685 18686# Flag that allows shared libraries with undefined symbols to be built. 18687allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18688 18689# Flag that forces no undefined symbols. 18690no_undefined_flag=$lt_no_undefined_flag_GCJ 18691 18692# Commands used to finish a libtool library installation in a directory. 18693finish_cmds=$lt_finish_cmds 18694 18695# Same as above, but a single script fragment to be evaled but not shown. 18696finish_eval=$lt_finish_eval 18697 18698# Take the output of nm and produce a listing of raw symbols and C names. 18699global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18700 18701# Transform the output of nm in a proper C declaration 18702global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18703 18704# Transform the output of nm in a C name address pair 18705global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18706 18707# This is the shared library runtime path variable. 18708runpath_var=$runpath_var 18709 18710# This is the shared library path variable. 18711shlibpath_var=$shlibpath_var 18712 18713# Is shlibpath searched before the hard-coded library search path? 18714shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18715 18716# How to hardcode a shared library path into an executable. 18717hardcode_action=$hardcode_action_GCJ 18718 18719# Whether we should hardcode library paths into libraries. 18720hardcode_into_libs=$hardcode_into_libs 18721 18722# Flag to hardcode \$libdir into a binary during linking. 18723# This must work even if \$libdir does not exist. 18724hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18725 18726# If ld is used when linking, flag to hardcode \$libdir into 18727# a binary during linking. This must work even if \$libdir does 18728# not exist. 18729hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18730 18731# Whether we need a single -rpath flag with a separated argument. 18732hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18733 18734# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18735# resulting binary. 18736hardcode_direct=$hardcode_direct_GCJ 18737 18738# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18739# resulting binary. 18740hardcode_minus_L=$hardcode_minus_L_GCJ 18741 18742# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18743# the resulting binary. 18744hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18745 18746# Set to yes if building a shared library automatically hardcodes DIR into the library 18747# and all subsequent libraries and executables linked against it. 18748hardcode_automatic=$hardcode_automatic_GCJ 18749 18750# Variables whose values should be saved in libtool wrapper scripts and 18751# restored at relink time. 18752variables_saved_for_relink="$variables_saved_for_relink" 18753 18754# Whether libtool must link a program against all its dependency libraries. 18755link_all_deplibs=$link_all_deplibs_GCJ 18756 18757# Compile-time system search path for libraries 18758sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18759 18760# Run-time system search path for libraries 18761sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18762 18763# Fix the shell variable \$srcfile for the compiler. 18764fix_srcfile_path="$fix_srcfile_path_GCJ" 18765 18766# Set to yes if exported symbols are required. 18767always_export_symbols=$always_export_symbols_GCJ 18768 18769# The commands to list exported symbols. 18770export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18771 18772# The commands to extract the exported symbol list from a shared archive. 18773extract_expsyms_cmds=$lt_extract_expsyms_cmds 18774 18775# Symbols that should not be listed in the preloaded symbols. 18776exclude_expsyms=$lt_exclude_expsyms_GCJ 18777 18778# Symbols that must always be exported. 18779include_expsyms=$lt_include_expsyms_GCJ 18780 18781# ### END LIBTOOL TAG CONFIG: $tagname 18782 18783__EOF__ 18784 18785 18786else 18787 # If there is no Makefile yet, we rely on a make rule to execute 18788 # `config.status --recheck' to rerun these tests and create the 18789 # libtool script then. 18790 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18791 if test -f "$ltmain_in"; then 18792 test -f Makefile && make "$ltmain" 18793 fi 18794fi 18795 18796 18797ac_ext=c 18798ac_cpp='$CPP $CPPFLAGS' 18799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18801ac_compiler_gnu=$ac_cv_c_compiler_gnu 18802 18803CC="$lt_save_CC" 18804 18805 else 18806 tagname="" 18807 fi 18808 ;; 18809 18810 RC) 18811 18812 18813 18814# Source file extension for RC test sources. 18815ac_ext=rc 18816 18817# Object file extension for compiled RC test sources. 18818objext=o 18819objext_RC=$objext 18820 18821# Code to be used in simple compile tests 18822lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18823 18824# Code to be used in simple link tests 18825lt_simple_link_test_code="$lt_simple_compile_test_code" 18826 18827# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18828 18829# If no C compiler was specified, use CC. 18830LTCC=${LTCC-"$CC"} 18831 18832# Allow CC to be a program name with arguments. 18833compiler=$CC 18834 18835 18836# Allow CC to be a program name with arguments. 18837lt_save_CC="$CC" 18838CC=${RC-"windres"} 18839compiler=$CC 18840compiler_RC=$CC 18841lt_cv_prog_compiler_c_o_RC=yes 18842 18843# The else clause should only fire when bootstrapping the 18844# libtool distribution, otherwise you forgot to ship ltmain.sh 18845# with your package, and you will get complaints that there are 18846# no rules to generate ltmain.sh. 18847if test -f "$ltmain"; then 18848 # See if we are running on zsh, and set the options which allow our commands through 18849 # without removal of \ escapes. 18850 if test -n "${ZSH_VERSION+set}" ; then 18851 setopt NO_GLOB_SUBST 18852 fi 18853 # Now quote all the things that may contain metacharacters while being 18854 # careful not to overquote the AC_SUBSTed values. We take copies of the 18855 # variables and quote the copies for generation of the libtool script. 18856 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18857 SED SHELL STRIP \ 18858 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18859 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18860 deplibs_check_method reload_flag reload_cmds need_locks \ 18861 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18862 lt_cv_sys_global_symbol_to_c_name_address \ 18863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18864 old_postinstall_cmds old_postuninstall_cmds \ 18865 compiler_RC \ 18866 CC_RC \ 18867 LD_RC \ 18868 lt_prog_compiler_wl_RC \ 18869 lt_prog_compiler_pic_RC \ 18870 lt_prog_compiler_static_RC \ 18871 lt_prog_compiler_no_builtin_flag_RC \ 18872 export_dynamic_flag_spec_RC \ 18873 thread_safe_flag_spec_RC \ 18874 whole_archive_flag_spec_RC \ 18875 enable_shared_with_static_runtimes_RC \ 18876 old_archive_cmds_RC \ 18877 old_archive_from_new_cmds_RC \ 18878 predep_objects_RC \ 18879 postdep_objects_RC \ 18880 predeps_RC \ 18881 postdeps_RC \ 18882 compiler_lib_search_path_RC \ 18883 archive_cmds_RC \ 18884 archive_expsym_cmds_RC \ 18885 postinstall_cmds_RC \ 18886 postuninstall_cmds_RC \ 18887 old_archive_from_expsyms_cmds_RC \ 18888 allow_undefined_flag_RC \ 18889 no_undefined_flag_RC \ 18890 export_symbols_cmds_RC \ 18891 hardcode_libdir_flag_spec_RC \ 18892 hardcode_libdir_flag_spec_ld_RC \ 18893 hardcode_libdir_separator_RC \ 18894 hardcode_automatic_RC \ 18895 module_cmds_RC \ 18896 module_expsym_cmds_RC \ 18897 lt_cv_prog_compiler_c_o_RC \ 18898 exclude_expsyms_RC \ 18899 include_expsyms_RC; do 18900 18901 case $var in 18902 old_archive_cmds_RC | \ 18903 old_archive_from_new_cmds_RC | \ 18904 archive_cmds_RC | \ 18905 archive_expsym_cmds_RC | \ 18906 module_cmds_RC | \ 18907 module_expsym_cmds_RC | \ 18908 old_archive_from_expsyms_cmds_RC | \ 18909 export_symbols_cmds_RC | \ 18910 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18911 postinstall_cmds | postuninstall_cmds | \ 18912 old_postinstall_cmds | old_postuninstall_cmds | \ 18913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18914 # Double-quote double-evaled strings. 18915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18916 ;; 18917 *) 18918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18919 ;; 18920 esac 18921 done 18922 18923 case $lt_echo in 18924 *'\$0 --fallback-echo"') 18925 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18926 ;; 18927 esac 18928 18929cfgfile="$ofile" 18930 18931 cat <<__EOF__ >> "$cfgfile" 18932# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18933 18934# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18935 18936# Shell to use when invoking shell scripts. 18937SHELL=$lt_SHELL 18938 18939# Whether or not to build shared libraries. 18940build_libtool_libs=$enable_shared 18941 18942# Whether or not to build static libraries. 18943build_old_libs=$enable_static 18944 18945# Whether or not to add -lc for building shared libraries. 18946build_libtool_need_lc=$archive_cmds_need_lc_RC 18947 18948# Whether or not to disallow shared libs when runtime libs are static 18949allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18950 18951# Whether or not to optimize for fast installation. 18952fast_install=$enable_fast_install 18953 18954# The host system. 18955host_alias=$host_alias 18956host=$host 18957 18958# An echo program that does not interpret backslashes. 18959echo=$lt_echo 18960 18961# The archiver. 18962AR=$lt_AR 18963AR_FLAGS=$lt_AR_FLAGS 18964 18965# A C compiler. 18966LTCC=$lt_LTCC 18967 18968# A language-specific compiler. 18969CC=$lt_compiler_RC 18970 18971# Is the compiler the GNU C compiler? 18972with_gcc=$GCC_RC 18973 18974# An ERE matcher. 18975EGREP=$lt_EGREP 18976 18977# The linker used to build libraries. 18978LD=$lt_LD_RC 18979 18980# Whether we need hard or soft links. 18981LN_S=$lt_LN_S 18982 18983# A BSD-compatible nm program. 18984NM=$lt_NM 18985 18986# A symbol stripping program 18987STRIP=$lt_STRIP 18988 18989# Used to examine libraries when file_magic_cmd begins "file" 18990MAGIC_CMD=$MAGIC_CMD 18991 18992# Used on cygwin: DLL creation program. 18993DLLTOOL="$DLLTOOL" 18994 18995# Used on cygwin: object dumper. 18996OBJDUMP="$OBJDUMP" 18997 18998# Used on cygwin: assembler. 18999AS="$AS" 19000 19001# The name of the directory that contains temporary libtool files. 19002objdir=$objdir 19003 19004# How to create reloadable object files. 19005reload_flag=$lt_reload_flag 19006reload_cmds=$lt_reload_cmds 19007 19008# How to pass a linker flag through the compiler. 19009wl=$lt_lt_prog_compiler_wl_RC 19010 19011# Object file suffix (normally "o"). 19012objext="$ac_objext" 19013 19014# Old archive suffix (normally "a"). 19015libext="$libext" 19016 19017# Shared library suffix (normally ".so"). 19018shrext_cmds='$shrext_cmds' 19019 19020# Executable file suffix (normally ""). 19021exeext="$exeext" 19022 19023# Additional compiler flags for building library objects. 19024pic_flag=$lt_lt_prog_compiler_pic_RC 19025pic_mode=$pic_mode 19026 19027# What is the maximum length of a command? 19028max_cmd_len=$lt_cv_sys_max_cmd_len 19029 19030# Does compiler simultaneously support -c and -o options? 19031compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19032 19033# Must we lock files when doing compilation ? 19034need_locks=$lt_need_locks 19035 19036# Do we need the lib prefix for modules? 19037need_lib_prefix=$need_lib_prefix 19038 19039# Do we need a version for libraries? 19040need_version=$need_version 19041 19042# Whether dlopen is supported. 19043dlopen_support=$enable_dlopen 19044 19045# Whether dlopen of programs is supported. 19046dlopen_self=$enable_dlopen_self 19047 19048# Whether dlopen of statically linked programs is supported. 19049dlopen_self_static=$enable_dlopen_self_static 19050 19051# Compiler flag to prevent dynamic linking. 19052link_static_flag=$lt_lt_prog_compiler_static_RC 19053 19054# Compiler flag to turn off builtin functions. 19055no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19056 19057# Compiler flag to allow reflexive dlopens. 19058export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19059 19060# Compiler flag to generate shared objects directly from archives. 19061whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19062 19063# Compiler flag to generate thread-safe objects. 19064thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19065 19066# Library versioning type. 19067version_type=$version_type 19068 19069# Format of library name prefix. 19070libname_spec=$lt_libname_spec 19071 19072# List of archive names. First name is the real one, the rest are links. 19073# The last name is the one that the linker finds with -lNAME. 19074library_names_spec=$lt_library_names_spec 19075 19076# The coded name of the library, if different from the real name. 19077soname_spec=$lt_soname_spec 19078 19079# Commands used to build and install an old-style archive. 19080RANLIB=$lt_RANLIB 19081old_archive_cmds=$lt_old_archive_cmds_RC 19082old_postinstall_cmds=$lt_old_postinstall_cmds 19083old_postuninstall_cmds=$lt_old_postuninstall_cmds 19084 19085# Create an old-style archive from a shared archive. 19086old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19087 19088# Create a temporary old-style archive to link instead of a shared archive. 19089old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19090 19091# Commands used to build and install a shared archive. 19092archive_cmds=$lt_archive_cmds_RC 19093archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19094postinstall_cmds=$lt_postinstall_cmds 19095postuninstall_cmds=$lt_postuninstall_cmds 19096 19097# Commands used to build a loadable module (assumed same as above if empty) 19098module_cmds=$lt_module_cmds_RC 19099module_expsym_cmds=$lt_module_expsym_cmds_RC 19100 19101# Commands to strip libraries. 19102old_striplib=$lt_old_striplib 19103striplib=$lt_striplib 19104 19105# Dependencies to place before the objects being linked to create a 19106# shared library. 19107predep_objects=$lt_predep_objects_RC 19108 19109# Dependencies to place after the objects being linked to create a 19110# shared library. 19111postdep_objects=$lt_postdep_objects_RC 19112 19113# Dependencies to place before the objects being linked to create a 19114# shared library. 19115predeps=$lt_predeps_RC 19116 19117# Dependencies to place after the objects being linked to create a 19118# shared library. 19119postdeps=$lt_postdeps_RC 19120 19121# The library search path used internally by the compiler when linking 19122# a shared library. 19123compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19124 19125# Method to check whether dependent libraries are shared objects. 19126deplibs_check_method=$lt_deplibs_check_method 19127 19128# Command to use when deplibs_check_method == file_magic. 19129file_magic_cmd=$lt_file_magic_cmd 19130 19131# Flag that allows shared libraries with undefined symbols to be built. 19132allow_undefined_flag=$lt_allow_undefined_flag_RC 19133 19134# Flag that forces no undefined symbols. 19135no_undefined_flag=$lt_no_undefined_flag_RC 19136 19137# Commands used to finish a libtool library installation in a directory. 19138finish_cmds=$lt_finish_cmds 19139 19140# Same as above, but a single script fragment to be evaled but not shown. 19141finish_eval=$lt_finish_eval 19142 19143# Take the output of nm and produce a listing of raw symbols and C names. 19144global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19145 19146# Transform the output of nm in a proper C declaration 19147global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19148 19149# Transform the output of nm in a C name address pair 19150global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19151 19152# This is the shared library runtime path variable. 19153runpath_var=$runpath_var 19154 19155# This is the shared library path variable. 19156shlibpath_var=$shlibpath_var 19157 19158# Is shlibpath searched before the hard-coded library search path? 19159shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19160 19161# How to hardcode a shared library path into an executable. 19162hardcode_action=$hardcode_action_RC 19163 19164# Whether we should hardcode library paths into libraries. 19165hardcode_into_libs=$hardcode_into_libs 19166 19167# Flag to hardcode \$libdir into a binary during linking. 19168# This must work even if \$libdir does not exist. 19169hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19170 19171# If ld is used when linking, flag to hardcode \$libdir into 19172# a binary during linking. This must work even if \$libdir does 19173# not exist. 19174hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19175 19176# Whether we need a single -rpath flag with a separated argument. 19177hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19178 19179# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19180# resulting binary. 19181hardcode_direct=$hardcode_direct_RC 19182 19183# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19184# resulting binary. 19185hardcode_minus_L=$hardcode_minus_L_RC 19186 19187# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19188# the resulting binary. 19189hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19190 19191# Set to yes if building a shared library automatically hardcodes DIR into the library 19192# and all subsequent libraries and executables linked against it. 19193hardcode_automatic=$hardcode_automatic_RC 19194 19195# Variables whose values should be saved in libtool wrapper scripts and 19196# restored at relink time. 19197variables_saved_for_relink="$variables_saved_for_relink" 19198 19199# Whether libtool must link a program against all its dependency libraries. 19200link_all_deplibs=$link_all_deplibs_RC 19201 19202# Compile-time system search path for libraries 19203sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19204 19205# Run-time system search path for libraries 19206sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19207 19208# Fix the shell variable \$srcfile for the compiler. 19209fix_srcfile_path="$fix_srcfile_path_RC" 19210 19211# Set to yes if exported symbols are required. 19212always_export_symbols=$always_export_symbols_RC 19213 19214# The commands to list exported symbols. 19215export_symbols_cmds=$lt_export_symbols_cmds_RC 19216 19217# The commands to extract the exported symbol list from a shared archive. 19218extract_expsyms_cmds=$lt_extract_expsyms_cmds 19219 19220# Symbols that should not be listed in the preloaded symbols. 19221exclude_expsyms=$lt_exclude_expsyms_RC 19222 19223# Symbols that must always be exported. 19224include_expsyms=$lt_include_expsyms_RC 19225 19226# ### END LIBTOOL TAG CONFIG: $tagname 19227 19228__EOF__ 19229 19230 19231else 19232 # If there is no Makefile yet, we rely on a make rule to execute 19233 # `config.status --recheck' to rerun these tests and create the 19234 # libtool script then. 19235 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19236 if test -f "$ltmain_in"; then 19237 test -f Makefile && make "$ltmain" 19238 fi 19239fi 19240 19241 19242ac_ext=c 19243ac_cpp='$CPP $CPPFLAGS' 19244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19246ac_compiler_gnu=$ac_cv_c_compiler_gnu 19247 19248CC="$lt_save_CC" 19249 19250 ;; 19251 19252 *) 19253 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19254echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19255 { (exit 1); exit 1; }; } 19256 ;; 19257 esac 19258 19259 # Append the new tag name to the list of available tags. 19260 if test -n "$tagname" ; then 19261 available_tags="$available_tags $tagname" 19262 fi 19263 fi 19264 done 19265 IFS="$lt_save_ifs" 19266 19267 # Now substitute the updated list of available tags. 19268 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19269 mv "${ofile}T" "$ofile" 19270 chmod +x "$ofile" 19271 else 19272 rm -f "${ofile}T" 19273 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19274echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19275 { (exit 1); exit 1; }; } 19276 fi 19277fi 19278 19279 19280 19281# This can be used to rebuild libtool when needed 19282LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19283 19284# Always use our own libtool. 19285LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19286 19287# Prevent multiple expansion 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309if test "$GCC" = "yes" 19310then 19311 CFLAGS="$CFLAGS -Wall" 19312fi 19313 19314echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19315echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19316if test "${ac_cv_header_stdc+set}" = set; then 19317 echo $ECHO_N "(cached) $ECHO_C" >&6 19318else 19319 cat >conftest.$ac_ext <<_ACEOF 19320/* confdefs.h. */ 19321_ACEOF 19322cat confdefs.h >>conftest.$ac_ext 19323cat >>conftest.$ac_ext <<_ACEOF 19324/* end confdefs.h. */ 19325#include <stdlib.h> 19326#include <stdarg.h> 19327#include <string.h> 19328#include <float.h> 19329 19330int 19331main () 19332{ 19333 19334 ; 19335 return 0; 19336} 19337_ACEOF 19338rm -f conftest.$ac_objext 19339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19340 (eval $ac_compile) 2>conftest.er1 19341 ac_status=$? 19342 grep -v '^ *+' conftest.er1 >conftest.err 19343 rm -f conftest.er1 19344 cat conftest.err >&5 19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19346 (exit $ac_status); } && 19347 { ac_try='test -z "$ac_c_werror_flag" 19348 || test ! -s conftest.err' 19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19350 (eval $ac_try) 2>&5 19351 ac_status=$? 19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19353 (exit $ac_status); }; } && 19354 { ac_try='test -s conftest.$ac_objext' 19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19356 (eval $ac_try) 2>&5 19357 ac_status=$? 19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19359 (exit $ac_status); }; }; then 19360 ac_cv_header_stdc=yes 19361else 19362 echo "$as_me: failed program was:" >&5 19363sed 's/^/| /' conftest.$ac_ext >&5 19364 19365ac_cv_header_stdc=no 19366fi 19367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19368 19369if test $ac_cv_header_stdc = yes; then 19370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19371 cat >conftest.$ac_ext <<_ACEOF 19372/* confdefs.h. */ 19373_ACEOF 19374cat confdefs.h >>conftest.$ac_ext 19375cat >>conftest.$ac_ext <<_ACEOF 19376/* end confdefs.h. */ 19377#include <string.h> 19378 19379_ACEOF 19380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19381 $EGREP "memchr" >/dev/null 2>&1; then 19382 : 19383else 19384 ac_cv_header_stdc=no 19385fi 19386rm -f conftest* 19387 19388fi 19389 19390if test $ac_cv_header_stdc = yes; then 19391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19392 cat >conftest.$ac_ext <<_ACEOF 19393/* confdefs.h. */ 19394_ACEOF 19395cat confdefs.h >>conftest.$ac_ext 19396cat >>conftest.$ac_ext <<_ACEOF 19397/* end confdefs.h. */ 19398#include <stdlib.h> 19399 19400_ACEOF 19401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19402 $EGREP "free" >/dev/null 2>&1; then 19403 : 19404else 19405 ac_cv_header_stdc=no 19406fi 19407rm -f conftest* 19408 19409fi 19410 19411if test $ac_cv_header_stdc = yes; then 19412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19413 if test "$cross_compiling" = yes; then 19414 : 19415else 19416 cat >conftest.$ac_ext <<_ACEOF 19417/* confdefs.h. */ 19418_ACEOF 19419cat confdefs.h >>conftest.$ac_ext 19420cat >>conftest.$ac_ext <<_ACEOF 19421/* end confdefs.h. */ 19422#include <ctype.h> 19423#if ((' ' & 0x0FF) == 0x020) 19424# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19425# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19426#else 19427# define ISLOWER(c) \ 19428 (('a' <= (c) && (c) <= 'i') \ 19429 || ('j' <= (c) && (c) <= 'r') \ 19430 || ('s' <= (c) && (c) <= 'z')) 19431# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19432#endif 19433 19434#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19435int 19436main () 19437{ 19438 int i; 19439 for (i = 0; i < 256; i++) 19440 if (XOR (islower (i), ISLOWER (i)) 19441 || toupper (i) != TOUPPER (i)) 19442 exit(2); 19443 exit (0); 19444} 19445_ACEOF 19446rm -f conftest$ac_exeext 19447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19448 (eval $ac_link) 2>&5 19449 ac_status=$? 19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19453 (eval $ac_try) 2>&5 19454 ac_status=$? 19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19456 (exit $ac_status); }; }; then 19457 : 19458else 19459 echo "$as_me: program exited with status $ac_status" >&5 19460echo "$as_me: failed program was:" >&5 19461sed 's/^/| /' conftest.$ac_ext >&5 19462 19463( exit $ac_status ) 19464ac_cv_header_stdc=no 19465fi 19466rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19467fi 19468fi 19469fi 19470echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19471echo "${ECHO_T}$ac_cv_header_stdc" >&6 19472if test $ac_cv_header_stdc = yes; then 19473 19474cat >>confdefs.h <<\_ACEOF 19475#define STDC_HEADERS 1 19476_ACEOF 19477 19478fi 19479 19480echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 19481echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 19482if test "${ac_cv_header_sys_wait_h+set}" = set; then 19483 echo $ECHO_N "(cached) $ECHO_C" >&6 19484else 19485 cat >conftest.$ac_ext <<_ACEOF 19486/* confdefs.h. */ 19487_ACEOF 19488cat confdefs.h >>conftest.$ac_ext 19489cat >>conftest.$ac_ext <<_ACEOF 19490/* end confdefs.h. */ 19491#include <sys/types.h> 19492#include <sys/wait.h> 19493#ifndef WEXITSTATUS 19494# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 19495#endif 19496#ifndef WIFEXITED 19497# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 19498#endif 19499 19500int 19501main () 19502{ 19503 int s; 19504 wait (&s); 19505 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 19506 ; 19507 return 0; 19508} 19509_ACEOF 19510rm -f conftest.$ac_objext 19511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19512 (eval $ac_compile) 2>conftest.er1 19513 ac_status=$? 19514 grep -v '^ *+' conftest.er1 >conftest.err 19515 rm -f conftest.er1 19516 cat conftest.err >&5 19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19518 (exit $ac_status); } && 19519 { ac_try='test -z "$ac_c_werror_flag" 19520 || test ! -s conftest.err' 19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19522 (eval $ac_try) 2>&5 19523 ac_status=$? 19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19525 (exit $ac_status); }; } && 19526 { ac_try='test -s conftest.$ac_objext' 19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19528 (eval $ac_try) 2>&5 19529 ac_status=$? 19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19531 (exit $ac_status); }; }; then 19532 ac_cv_header_sys_wait_h=yes 19533else 19534 echo "$as_me: failed program was:" >&5 19535sed 's/^/| /' conftest.$ac_ext >&5 19536 19537ac_cv_header_sys_wait_h=no 19538fi 19539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19540fi 19541echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 19542echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 19543if test $ac_cv_header_sys_wait_h = yes; then 19544 19545cat >>confdefs.h <<\_ACEOF 19546#define HAVE_SYS_WAIT_H 1 19547_ACEOF 19548 19549fi 19550 19551 19552echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 19553echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 19554if test "${ac_cv_c_const+set}" = set; then 19555 echo $ECHO_N "(cached) $ECHO_C" >&6 19556else 19557 cat >conftest.$ac_ext <<_ACEOF 19558/* confdefs.h. */ 19559_ACEOF 19560cat confdefs.h >>conftest.$ac_ext 19561cat >>conftest.$ac_ext <<_ACEOF 19562/* end confdefs.h. */ 19563 19564int 19565main () 19566{ 19567/* FIXME: Include the comments suggested by Paul. */ 19568#ifndef __cplusplus 19569 /* Ultrix mips cc rejects this. */ 19570 typedef int charset[2]; 19571 const charset x; 19572 /* SunOS 4.1.1 cc rejects this. */ 19573 char const *const *ccp; 19574 char **p; 19575 /* NEC SVR4.0.2 mips cc rejects this. */ 19576 struct point {int x, y;}; 19577 static struct point const zero = {0,0}; 19578 /* AIX XL C 1.02.0.0 rejects this. 19579 It does not let you subtract one const X* pointer from another in 19580 an arm of an if-expression whose if-part is not a constant 19581 expression */ 19582 const char *g = "string"; 19583 ccp = &g + (g ? g-g : 0); 19584 /* HPUX 7.0 cc rejects these. */ 19585 ++ccp; 19586 p = (char**) ccp; 19587 ccp = (char const *const *) p; 19588 { /* SCO 3.2v4 cc rejects this. */ 19589 char *t; 19590 char const *s = 0 ? (char *) 0 : (char const *) 0; 19591 19592 *t++ = 0; 19593 } 19594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19595 int x[] = {25, 17}; 19596 const int *foo = &x[0]; 19597 ++foo; 19598 } 19599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19600 typedef const int *iptr; 19601 iptr p = 0; 19602 ++p; 19603 } 19604 { /* AIX XL C 1.02.0.0 rejects this saying 19605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19606 struct s { int j; const int *ap[3]; }; 19607 struct s *b; b->j = 5; 19608 } 19609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19610 const int foo = 10; 19611 } 19612#endif 19613 19614 ; 19615 return 0; 19616} 19617_ACEOF 19618rm -f conftest.$ac_objext 19619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19620 (eval $ac_compile) 2>conftest.er1 19621 ac_status=$? 19622 grep -v '^ *+' conftest.er1 >conftest.err 19623 rm -f conftest.er1 19624 cat conftest.err >&5 19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19626 (exit $ac_status); } && 19627 { ac_try='test -z "$ac_c_werror_flag" 19628 || test ! -s conftest.err' 19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19630 (eval $ac_try) 2>&5 19631 ac_status=$? 19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19633 (exit $ac_status); }; } && 19634 { ac_try='test -s conftest.$ac_objext' 19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19636 (eval $ac_try) 2>&5 19637 ac_status=$? 19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19639 (exit $ac_status); }; }; then 19640 ac_cv_c_const=yes 19641else 19642 echo "$as_me: failed program was:" >&5 19643sed 's/^/| /' conftest.$ac_ext >&5 19644 19645ac_cv_c_const=no 19646fi 19647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19648fi 19649echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 19650echo "${ECHO_T}$ac_cv_c_const" >&6 19651if test $ac_cv_c_const = no; then 19652 19653cat >>confdefs.h <<\_ACEOF 19654#define const 19655_ACEOF 19656 19657fi 19658 19659echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 19660echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 19661if test "${ac_cv_header_time+set}" = set; then 19662 echo $ECHO_N "(cached) $ECHO_C" >&6 19663else 19664 cat >conftest.$ac_ext <<_ACEOF 19665/* confdefs.h. */ 19666_ACEOF 19667cat confdefs.h >>conftest.$ac_ext 19668cat >>conftest.$ac_ext <<_ACEOF 19669/* end confdefs.h. */ 19670#include <sys/types.h> 19671#include <sys/time.h> 19672#include <time.h> 19673 19674int 19675main () 19676{ 19677if ((struct tm *) 0) 19678return 0; 19679 ; 19680 return 0; 19681} 19682_ACEOF 19683rm -f conftest.$ac_objext 19684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19685 (eval $ac_compile) 2>conftest.er1 19686 ac_status=$? 19687 grep -v '^ *+' conftest.er1 >conftest.err 19688 rm -f conftest.er1 19689 cat conftest.err >&5 19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19691 (exit $ac_status); } && 19692 { ac_try='test -z "$ac_c_werror_flag" 19693 || test ! -s conftest.err' 19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19695 (eval $ac_try) 2>&5 19696 ac_status=$? 19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19698 (exit $ac_status); }; } && 19699 { ac_try='test -s conftest.$ac_objext' 19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19701 (eval $ac_try) 2>&5 19702 ac_status=$? 19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19704 (exit $ac_status); }; }; then 19705 ac_cv_header_time=yes 19706else 19707 echo "$as_me: failed program was:" >&5 19708sed 's/^/| /' conftest.$ac_ext >&5 19709 19710ac_cv_header_time=no 19711fi 19712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19713fi 19714echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 19715echo "${ECHO_T}$ac_cv_header_time" >&6 19716if test $ac_cv_header_time = yes; then 19717 19718cat >>confdefs.h <<\_ACEOF 19719#define TIME_WITH_SYS_TIME 1 19720_ACEOF 19721 19722fi 19723 19724echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 19725echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 19726if test "${ac_cv_struct_tm+set}" = set; then 19727 echo $ECHO_N "(cached) $ECHO_C" >&6 19728else 19729 cat >conftest.$ac_ext <<_ACEOF 19730/* confdefs.h. */ 19731_ACEOF 19732cat confdefs.h >>conftest.$ac_ext 19733cat >>conftest.$ac_ext <<_ACEOF 19734/* end confdefs.h. */ 19735#include <sys/types.h> 19736#include <time.h> 19737 19738int 19739main () 19740{ 19741struct tm *tp; tp->tm_sec; 19742 ; 19743 return 0; 19744} 19745_ACEOF 19746rm -f conftest.$ac_objext 19747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19748 (eval $ac_compile) 2>conftest.er1 19749 ac_status=$? 19750 grep -v '^ *+' conftest.er1 >conftest.err 19751 rm -f conftest.er1 19752 cat conftest.err >&5 19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19754 (exit $ac_status); } && 19755 { ac_try='test -z "$ac_c_werror_flag" 19756 || test ! -s conftest.err' 19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19758 (eval $ac_try) 2>&5 19759 ac_status=$? 19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19761 (exit $ac_status); }; } && 19762 { ac_try='test -s conftest.$ac_objext' 19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19764 (eval $ac_try) 2>&5 19765 ac_status=$? 19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19767 (exit $ac_status); }; }; then 19768 ac_cv_struct_tm=time.h 19769else 19770 echo "$as_me: failed program was:" >&5 19771sed 's/^/| /' conftest.$ac_ext >&5 19772 19773ac_cv_struct_tm=sys/time.h 19774fi 19775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19776fi 19777echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 19778echo "${ECHO_T}$ac_cv_struct_tm" >&6 19779if test $ac_cv_struct_tm = sys/time.h; then 19780 19781cat >>confdefs.h <<\_ACEOF 19782#define TM_IN_SYS_TIME 1 19783_ACEOF 19784 19785fi 19786 19787 19788if test $ac_cv_c_compiler_gnu = yes; then 19789 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 19790echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 19791if test "${ac_cv_prog_gcc_traditional+set}" = set; then 19792 echo $ECHO_N "(cached) $ECHO_C" >&6 19793else 19794 ac_pattern="Autoconf.*'x'" 19795 cat >conftest.$ac_ext <<_ACEOF 19796/* confdefs.h. */ 19797_ACEOF 19798cat confdefs.h >>conftest.$ac_ext 19799cat >>conftest.$ac_ext <<_ACEOF 19800/* end confdefs.h. */ 19801#include <sgtty.h> 19802Autoconf TIOCGETP 19803_ACEOF 19804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19805 $EGREP "$ac_pattern" >/dev/null 2>&1; then 19806 ac_cv_prog_gcc_traditional=yes 19807else 19808 ac_cv_prog_gcc_traditional=no 19809fi 19810rm -f conftest* 19811 19812 19813 if test $ac_cv_prog_gcc_traditional = no; then 19814 cat >conftest.$ac_ext <<_ACEOF 19815/* confdefs.h. */ 19816_ACEOF 19817cat confdefs.h >>conftest.$ac_ext 19818cat >>conftest.$ac_ext <<_ACEOF 19819/* end confdefs.h. */ 19820#include <termio.h> 19821Autoconf TCGETA 19822_ACEOF 19823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19824 $EGREP "$ac_pattern" >/dev/null 2>&1; then 19825 ac_cv_prog_gcc_traditional=yes 19826fi 19827rm -f conftest* 19828 19829 fi 19830fi 19831echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 19832echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 19833 if test $ac_cv_prog_gcc_traditional = yes; then 19834 CC="$CC -traditional" 19835 fi 19836fi 19837 19838echo "$as_me:$LINENO: checking for working memcmp" >&5 19839echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 19840if test "${ac_cv_func_memcmp_working+set}" = set; then 19841 echo $ECHO_N "(cached) $ECHO_C" >&6 19842else 19843 if test "$cross_compiling" = yes; then 19844 ac_cv_func_memcmp_working=no 19845else 19846 cat >conftest.$ac_ext <<_ACEOF 19847/* confdefs.h. */ 19848_ACEOF 19849cat confdefs.h >>conftest.$ac_ext 19850cat >>conftest.$ac_ext <<_ACEOF 19851/* end confdefs.h. */ 19852$ac_includes_default 19853int 19854main () 19855{ 19856 19857 /* Some versions of memcmp are not 8-bit clean. */ 19858 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 19859 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 19860 exit (1); 19861 19862 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 19863 or more and with at least one buffer not starting on a 4-byte boundary. 19864 William Lewis provided this test program. */ 19865 { 19866 char foo[21]; 19867 char bar[21]; 19868 int i; 19869 for (i = 0; i < 4; i++) 19870 { 19871 char *a = foo + i; 19872 char *b = bar + i; 19873 strcpy (a, "--------01111111"); 19874 strcpy (b, "--------10000000"); 19875 if (memcmp (a, b, 16) >= 0) 19876 exit (1); 19877 } 19878 exit (0); 19879 } 19880 19881 ; 19882 return 0; 19883} 19884_ACEOF 19885rm -f conftest$ac_exeext 19886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19887 (eval $ac_link) 2>&5 19888 ac_status=$? 19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19892 (eval $ac_try) 2>&5 19893 ac_status=$? 19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19895 (exit $ac_status); }; }; then 19896 ac_cv_func_memcmp_working=yes 19897else 19898 echo "$as_me: program exited with status $ac_status" >&5 19899echo "$as_me: failed program was:" >&5 19900sed 's/^/| /' conftest.$ac_ext >&5 19901 19902( exit $ac_status ) 19903ac_cv_func_memcmp_working=no 19904fi 19905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19906fi 19907fi 19908echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 19909echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 19910test $ac_cv_func_memcmp_working = no && case $LIBOBJS in 19911 "memcmp.$ac_objext" | \ 19912 *" memcmp.$ac_objext" | \ 19913 "memcmp.$ac_objext "* | \ 19914 *" memcmp.$ac_objext "* ) ;; 19915 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 19916esac 19917 19918 19919 19920for ac_func in vprintf 19921do 19922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19923echo "$as_me:$LINENO: checking for $ac_func" >&5 19924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19925if eval "test \"\${$as_ac_var+set}\" = set"; then 19926 echo $ECHO_N "(cached) $ECHO_C" >&6 19927else 19928 cat >conftest.$ac_ext <<_ACEOF 19929/* confdefs.h. */ 19930_ACEOF 19931cat confdefs.h >>conftest.$ac_ext 19932cat >>conftest.$ac_ext <<_ACEOF 19933/* end confdefs.h. */ 19934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19935 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19936#define $ac_func innocuous_$ac_func 19937 19938/* System header to define __stub macros and hopefully few prototypes, 19939 which can conflict with char $ac_func (); below. 19940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19941 <limits.h> exists even on freestanding compilers. */ 19942 19943#ifdef __STDC__ 19944# include <limits.h> 19945#else 19946# include <assert.h> 19947#endif 19948 19949#undef $ac_func 19950 19951/* Override any gcc2 internal prototype to avoid an error. */ 19952#ifdef __cplusplus 19953extern "C" 19954{ 19955#endif 19956/* We use char because int might match the return type of a gcc2 19957 builtin and then its argument prototype would still apply. */ 19958char $ac_func (); 19959/* The GNU C library defines this for functions which it implements 19960 to always fail with ENOSYS. Some functions are actually named 19961 something starting with __ and the normal name is an alias. */ 19962#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19963choke me 19964#else 19965char (*f) () = $ac_func; 19966#endif 19967#ifdef __cplusplus 19968} 19969#endif 19970 19971int 19972main () 19973{ 19974return f != $ac_func; 19975 ; 19976 return 0; 19977} 19978_ACEOF 19979rm -f conftest.$ac_objext conftest$ac_exeext 19980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19981 (eval $ac_link) 2>conftest.er1 19982 ac_status=$? 19983 grep -v '^ *+' conftest.er1 >conftest.err 19984 rm -f conftest.er1 19985 cat conftest.err >&5 19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19987 (exit $ac_status); } && 19988 { ac_try='test -z "$ac_c_werror_flag" 19989 || test ! -s conftest.err' 19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19991 (eval $ac_try) 2>&5 19992 ac_status=$? 19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19994 (exit $ac_status); }; } && 19995 { ac_try='test -s conftest$ac_exeext' 19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19997 (eval $ac_try) 2>&5 19998 ac_status=$? 19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20000 (exit $ac_status); }; }; then 20001 eval "$as_ac_var=yes" 20002else 20003 echo "$as_me: failed program was:" >&5 20004sed 's/^/| /' conftest.$ac_ext >&5 20005 20006eval "$as_ac_var=no" 20007fi 20008rm -f conftest.err conftest.$ac_objext \ 20009 conftest$ac_exeext conftest.$ac_ext 20010fi 20011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20012echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20013if test `eval echo '${'$as_ac_var'}'` = yes; then 20014 cat >>confdefs.h <<_ACEOF 20015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20016_ACEOF 20017 20018echo "$as_me:$LINENO: checking for _doprnt" >&5 20019echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 20020if test "${ac_cv_func__doprnt+set}" = set; then 20021 echo $ECHO_N "(cached) $ECHO_C" >&6 20022else 20023 cat >conftest.$ac_ext <<_ACEOF 20024/* confdefs.h. */ 20025_ACEOF 20026cat confdefs.h >>conftest.$ac_ext 20027cat >>conftest.$ac_ext <<_ACEOF 20028/* end confdefs.h. */ 20029/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 20030 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20031#define _doprnt innocuous__doprnt 20032 20033/* System header to define __stub macros and hopefully few prototypes, 20034 which can conflict with char _doprnt (); below. 20035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20036 <limits.h> exists even on freestanding compilers. */ 20037 20038#ifdef __STDC__ 20039# include <limits.h> 20040#else 20041# include <assert.h> 20042#endif 20043 20044#undef _doprnt 20045 20046/* Override any gcc2 internal prototype to avoid an error. */ 20047#ifdef __cplusplus 20048extern "C" 20049{ 20050#endif 20051/* We use char because int might match the return type of a gcc2 20052 builtin and then its argument prototype would still apply. */ 20053char _doprnt (); 20054/* The GNU C library defines this for functions which it implements 20055 to always fail with ENOSYS. Some functions are actually named 20056 something starting with __ and the normal name is an alias. */ 20057#if defined (__stub__doprnt) || defined (__stub____doprnt) 20058choke me 20059#else 20060char (*f) () = _doprnt; 20061#endif 20062#ifdef __cplusplus 20063} 20064#endif 20065 20066int 20067main () 20068{ 20069return f != _doprnt; 20070 ; 20071 return 0; 20072} 20073_ACEOF 20074rm -f conftest.$ac_objext conftest$ac_exeext 20075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20076 (eval $ac_link) 2>conftest.er1 20077 ac_status=$? 20078 grep -v '^ *+' conftest.er1 >conftest.err 20079 rm -f conftest.er1 20080 cat conftest.err >&5 20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20082 (exit $ac_status); } && 20083 { ac_try='test -z "$ac_c_werror_flag" 20084 || test ! -s conftest.err' 20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20086 (eval $ac_try) 2>&5 20087 ac_status=$? 20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20089 (exit $ac_status); }; } && 20090 { ac_try='test -s conftest$ac_exeext' 20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20092 (eval $ac_try) 2>&5 20093 ac_status=$? 20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20095 (exit $ac_status); }; }; then 20096 ac_cv_func__doprnt=yes 20097else 20098 echo "$as_me: failed program was:" >&5 20099sed 's/^/| /' conftest.$ac_ext >&5 20100 20101ac_cv_func__doprnt=no 20102fi 20103rm -f conftest.err conftest.$ac_objext \ 20104 conftest$ac_exeext conftest.$ac_ext 20105fi 20106echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 20107echo "${ECHO_T}$ac_cv_func__doprnt" >&6 20108if test $ac_cv_func__doprnt = yes; then 20109 20110cat >>confdefs.h <<\_ACEOF 20111#define HAVE_DOPRNT 1 20112_ACEOF 20113 20114fi 20115 20116fi 20117done 20118 20119 20120 20121# Check whether --enable-debug or --disable-debug was given. 20122if test "${enable_debug+set}" = set; then 20123 enableval="$enable_debug" 20124 case "${enableval}" in 20125 yes) debug=true ;; 20126 no) debug=false ;; 20127 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 20128echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 20129 { (exit 1); exit 1; }; } ;; 20130esac 20131else 20132 debug=false 20133fi; 20134if test "$debug" = "true"; then 20135 CFLAGS="$CFLAGS ""-DDEBUG " 20136fi 20137 20138# Check whether --enable-ansi or --disable-ansi was given. 20139if test "${enable_ansi+set}" = set; then 20140 enableval="$enable_ansi" 20141 case "${enableval}" in 20142 yes) ansi=true ;; 20143 no) ansi=false ;; 20144 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ansi" >&5 20145echo "$as_me: error: bad value ${enableval} for --enable-ansi" >&2;} 20146 { (exit 1); exit 1; }; } ;; 20147esac 20148else 20149 ansi=true 20150fi; 20151SU_ANSI_CFLAGS="" 20152if test "$ansi" = "true"; then 20153 SU_ANSI_CFLAGS="-DSU_ENABLE_ANSI_CODE" 20154 CFLAGS="$CFLAGS ""-DSU_ENABLE_ANSI_CODE " 20155fi 20156 20157# Check whether --enable-trace_internal or --disable-trace_internal was given. 20158if test "${enable_trace_internal+set}" = set; then 20159 enableval="$enable_trace_internal" 20160 case "${enableval}" in 20161 yes) trace_internal=true ;; 20162 no) trace_internal=false ;; 20163 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-trace_internal" >&5 20164echo "$as_me: error: bad value ${enableval} for --enable-trace_internal" >&2;} 20165 { (exit 1); exit 1; }; } ;; 20166esac 20167else 20168 trace_internal=false 20169fi; 20170if test "$trace_internal" = "true"; then 20171 CFLAGS="$CFLAGS ""-DSU_MALLOC_TRACE -DSU_TRACE_INTERNAL "; 20172fi 20173 20174# Check whether --enable-reentrant or --disable-reentrant was given. 20175if test "${enable_reentrant+set}" = set; then 20176 enableval="$enable_reentrant" 20177 case "${enableval}" in 20178 yes) reentrant=true ;; 20179 no) reentrant=false ;; 20180 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-reentrant" >&5 20181echo "$as_me: error: bad value ${enableval} for --enable-reentrant" >&2;} 20182 { (exit 1); exit 1; }; } ;; 20183esac 20184else 20185 reentrant=true 20186fi; 20187SU_REENTRANT="no" 20188if test "$reentrant" = "true"; then 20189 CFLAGS="$CFLAGS ""-D_REENTRANT -pthread " 20190 SU_REENTRANT="yes" 20191fi 20192 20193# Check whether --enable-cygwin or --disable-cygwin was given. 20194if test "${enable_cygwin+set}" = set; then 20195 enableval="$enable_cygwin" 20196 case "${enableval}" in 20197 yes) cygwin=false ;; 20198 no) cygwin=true ;; 20199 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-cygwin" >&5 20200echo "$as_me: error: bad value ${enableval} for --enable-cygwin" >&2;} 20201 { (exit 1); exit 1; }; } ;; 20202esac 20203else 20204 cygwin=false 20205fi; 20206SU_CYGWIN="no" 20207if test "$cygwin" = "true"; then 20208 if test `echo $OS | grep -i -c win` = 1; then 20209 CFLAGS="$CFLAGS -mno-cygwin " 20210 SU_CYGWIN="yes" 20211 else 20212 { echo "$as_me:$LINENO: WARNING: \"--enable-cygwin option has been set but no windows OS detected\"" >&5 20213echo "$as_me: WARNING: \"--enable-cygwin option has been set but no windows OS detected\"" >&2;} 20214 fi 20215fi 20216 20217# Check whether --enable-ssl or --disable-ssl was given. 20218if test "${enable_ssl+set}" = set; then 20219 enableval="$enable_ssl" 20220 case "${enableval}" in 20221 yes) ssl=true ;; 20222 no) ssl=false ;; 20223 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ssl" >&5 20224echo "$as_me: error: bad value ${enableval} for --enable-ssl" >&2;} 20225 { (exit 1); exit 1; }; } ;; 20226esac 20227else 20228 ssl=true 20229fi; 20230 20231SOLARIS="" 20232SU_PTHREAD_LIB="" 20233SU_PTHREAD_CFLAGS="" 20234echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 20235echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 20236if test "${ac_cv_lib_socket_socket+set}" = set; then 20237 echo $ECHO_N "(cached) $ECHO_C" >&6 20238else 20239 ac_check_lib_save_LIBS=$LIBS 20240LIBS="-lsocket $LIBS" 20241cat >conftest.$ac_ext <<_ACEOF 20242/* confdefs.h. */ 20243_ACEOF 20244cat confdefs.h >>conftest.$ac_ext 20245cat >>conftest.$ac_ext <<_ACEOF 20246/* end confdefs.h. */ 20247 20248/* Override any gcc2 internal prototype to avoid an error. */ 20249#ifdef __cplusplus 20250extern "C" 20251#endif 20252/* We use char because int might match the return type of a gcc2 20253 builtin and then its argument prototype would still apply. */ 20254char socket (); 20255int 20256main () 20257{ 20258socket (); 20259 ; 20260 return 0; 20261} 20262_ACEOF 20263rm -f conftest.$ac_objext conftest$ac_exeext 20264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20265 (eval $ac_link) 2>conftest.er1 20266 ac_status=$? 20267 grep -v '^ *+' conftest.er1 >conftest.err 20268 rm -f conftest.er1 20269 cat conftest.err >&5 20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20271 (exit $ac_status); } && 20272 { ac_try='test -z "$ac_c_werror_flag" 20273 || test ! -s conftest.err' 20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20275 (eval $ac_try) 2>&5 20276 ac_status=$? 20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20278 (exit $ac_status); }; } && 20279 { ac_try='test -s conftest$ac_exeext' 20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20281 (eval $ac_try) 2>&5 20282 ac_status=$? 20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20284 (exit $ac_status); }; }; then 20285 ac_cv_lib_socket_socket=yes 20286else 20287 echo "$as_me: failed program was:" >&5 20288sed 's/^/| /' conftest.$ac_ext >&5 20289 20290ac_cv_lib_socket_socket=no 20291fi 20292rm -f conftest.err conftest.$ac_objext \ 20293 conftest$ac_exeext conftest.$ac_ext 20294LIBS=$ac_check_lib_save_LIBS 20295fi 20296echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 20297echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 20298if test $ac_cv_lib_socket_socket = yes; then 20299 SOLARIS="-lsocket -lnsl" 20300fi 20301 20302if test "$reentrant" = "true"; then 20303 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 20304echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 20305if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 20306 echo $ECHO_N "(cached) $ECHO_C" >&6 20307else 20308 ac_check_lib_save_LIBS=$LIBS 20309LIBS="-lpthread $LIBS" 20310cat >conftest.$ac_ext <<_ACEOF 20311/* confdefs.h. */ 20312_ACEOF 20313cat confdefs.h >>conftest.$ac_ext 20314cat >>conftest.$ac_ext <<_ACEOF 20315/* end confdefs.h. */ 20316 20317/* Override any gcc2 internal prototype to avoid an error. */ 20318#ifdef __cplusplus 20319extern "C" 20320#endif 20321/* We use char because int might match the return type of a gcc2 20322 builtin and then its argument prototype would still apply. */ 20323char pthread_create (); 20324int 20325main () 20326{ 20327pthread_create (); 20328 ; 20329 return 0; 20330} 20331_ACEOF 20332rm -f conftest.$ac_objext conftest$ac_exeext 20333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20334 (eval $ac_link) 2>conftest.er1 20335 ac_status=$? 20336 grep -v '^ *+' conftest.er1 >conftest.err 20337 rm -f conftest.er1 20338 cat conftest.err >&5 20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20340 (exit $ac_status); } && 20341 { ac_try='test -z "$ac_c_werror_flag" 20342 || test ! -s conftest.err' 20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20344 (eval $ac_try) 2>&5 20345 ac_status=$? 20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20347 (exit $ac_status); }; } && 20348 { ac_try='test -s conftest$ac_exeext' 20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20350 (eval $ac_try) 2>&5 20351 ac_status=$? 20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20353 (exit $ac_status); }; }; then 20354 ac_cv_lib_pthread_pthread_create=yes 20355else 20356 echo "$as_me: failed program was:" >&5 20357sed 's/^/| /' conftest.$ac_ext >&5 20358 20359ac_cv_lib_pthread_pthread_create=no 20360fi 20361rm -f conftest.err conftest.$ac_objext \ 20362 conftest$ac_exeext conftest.$ac_ext 20363LIBS=$ac_check_lib_save_LIBS 20364fi 20365echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 20366echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 20367if test $ac_cv_lib_pthread_pthread_create = yes; then 20368 SU_PTHREAD_LIB="-lpthread" 20369fi 20370 20371 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 20372echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 20373if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then 20374 echo $ECHO_N "(cached) $ECHO_C" >&6 20375else 20376 ac_check_lib_save_LIBS=$LIBS 20377LIBS="-lc_r $LIBS" 20378cat >conftest.$ac_ext <<_ACEOF 20379/* confdefs.h. */ 20380_ACEOF 20381cat confdefs.h >>conftest.$ac_ext 20382cat >>conftest.$ac_ext <<_ACEOF 20383/* end confdefs.h. */ 20384 20385/* Override any gcc2 internal prototype to avoid an error. */ 20386#ifdef __cplusplus 20387extern "C" 20388#endif 20389/* We use char because int might match the return type of a gcc2 20390 builtin and then its argument prototype would still apply. */ 20391char pthread_create (); 20392int 20393main () 20394{ 20395pthread_create (); 20396 ; 20397 return 0; 20398} 20399_ACEOF 20400rm -f conftest.$ac_objext conftest$ac_exeext 20401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20402 (eval $ac_link) 2>conftest.er1 20403 ac_status=$? 20404 grep -v '^ *+' conftest.er1 >conftest.err 20405 rm -f conftest.er1 20406 cat conftest.err >&5 20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20408 (exit $ac_status); } && 20409 { ac_try='test -z "$ac_c_werror_flag" 20410 || test ! -s conftest.err' 20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20412 (eval $ac_try) 2>&5 20413 ac_status=$? 20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20415 (exit $ac_status); }; } && 20416 { ac_try='test -s conftest$ac_exeext' 20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20418 (eval $ac_try) 2>&5 20419 ac_status=$? 20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20421 (exit $ac_status); }; }; then 20422 ac_cv_lib_c_r_pthread_create=yes 20423else 20424 echo "$as_me: failed program was:" >&5 20425sed 's/^/| /' conftest.$ac_ext >&5 20426 20427ac_cv_lib_c_r_pthread_create=no 20428fi 20429rm -f conftest.err conftest.$ac_objext \ 20430 conftest$ac_exeext conftest.$ac_ext 20431LIBS=$ac_check_lib_save_LIBS 20432fi 20433echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 20434echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 20435if test $ac_cv_lib_c_r_pthread_create = yes; then 20436 SU_PTHREAD_LIB="-lc_r" 20437fi 20438 20439 20440 if test ! "$SU_PTHREAD_LIB"; then 20441 { { echo "$as_me:$LINENO: error: \"Cannot find pthread functions \(neither in libpthread nor in libc_r\)\"" >&5 20442echo "$as_me: error: \"Cannot find pthread functions \(neither in libpthread nor in libc_r\)\"" >&2;} 20443 { (exit 1); exit 1; }; } 20444 fi 20445 SU_PTHREAD_CFLAGS="-D_REENTRANT -pthread" 20446 if test "$SOLARIS"; then 20447 SOLARIS="$SOLARIS -lrt" 20448 fi 20449fi 20450echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20451echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 20452if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20453 echo $ECHO_N "(cached) $ECHO_C" >&6 20454else 20455 ac_check_lib_save_LIBS=$LIBS 20456LIBS="-ldl $LIBS" 20457cat >conftest.$ac_ext <<_ACEOF 20458/* confdefs.h. */ 20459_ACEOF 20460cat confdefs.h >>conftest.$ac_ext 20461cat >>conftest.$ac_ext <<_ACEOF 20462/* end confdefs.h. */ 20463 20464/* Override any gcc2 internal prototype to avoid an error. */ 20465#ifdef __cplusplus 20466extern "C" 20467#endif 20468/* We use char because int might match the return type of a gcc2 20469 builtin and then its argument prototype would still apply. */ 20470char dlopen (); 20471int 20472main () 20473{ 20474dlopen (); 20475 ; 20476 return 0; 20477} 20478_ACEOF 20479rm -f conftest.$ac_objext conftest$ac_exeext 20480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20481 (eval $ac_link) 2>conftest.er1 20482 ac_status=$? 20483 grep -v '^ *+' conftest.er1 >conftest.err 20484 rm -f conftest.er1 20485 cat conftest.err >&5 20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20487 (exit $ac_status); } && 20488 { ac_try='test -z "$ac_c_werror_flag" 20489 || test ! -s conftest.err' 20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20491 (eval $ac_try) 2>&5 20492 ac_status=$? 20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20494 (exit $ac_status); }; } && 20495 { ac_try='test -s conftest$ac_exeext' 20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20497 (eval $ac_try) 2>&5 20498 ac_status=$? 20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20500 (exit $ac_status); }; }; then 20501 ac_cv_lib_dl_dlopen=yes 20502else 20503 echo "$as_me: failed program was:" >&5 20504sed 's/^/| /' conftest.$ac_ext >&5 20505 20506ac_cv_lib_dl_dlopen=no 20507fi 20508rm -f conftest.err conftest.$ac_objext \ 20509 conftest$ac_exeext conftest.$ac_ext 20510LIBS=$ac_check_lib_save_LIBS 20511fi 20512echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20513echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20514if test $ac_cv_lib_dl_dlopen = yes; then 20515 SU_DL_LIB="-ldl" 20516fi 20517 20518echo "$as_me:$LINENO: checking for dlopen in -lc_r" >&5 20519echo $ECHO_N "checking for dlopen in -lc_r... $ECHO_C" >&6 20520if test "${ac_cv_lib_c_r_dlopen+set}" = set; then 20521 echo $ECHO_N "(cached) $ECHO_C" >&6 20522else 20523 ac_check_lib_save_LIBS=$LIBS 20524LIBS="-lc_r $LIBS" 20525cat >conftest.$ac_ext <<_ACEOF 20526/* confdefs.h. */ 20527_ACEOF 20528cat confdefs.h >>conftest.$ac_ext 20529cat >>conftest.$ac_ext <<_ACEOF 20530/* end confdefs.h. */ 20531 20532/* Override any gcc2 internal prototype to avoid an error. */ 20533#ifdef __cplusplus 20534extern "C" 20535#endif 20536/* We use char because int might match the return type of a gcc2 20537 builtin and then its argument prototype would still apply. */ 20538char dlopen (); 20539int 20540main () 20541{ 20542dlopen (); 20543 ; 20544 return 0; 20545} 20546_ACEOF 20547rm -f conftest.$ac_objext conftest$ac_exeext 20548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20549 (eval $ac_link) 2>conftest.er1 20550 ac_status=$? 20551 grep -v '^ *+' conftest.er1 >conftest.err 20552 rm -f conftest.er1 20553 cat conftest.err >&5 20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20555 (exit $ac_status); } && 20556 { ac_try='test -z "$ac_c_werror_flag" 20557 || test ! -s conftest.err' 20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20559 (eval $ac_try) 2>&5 20560 ac_status=$? 20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20562 (exit $ac_status); }; } && 20563 { ac_try='test -s conftest$ac_exeext' 20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20565 (eval $ac_try) 2>&5 20566 ac_status=$? 20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20568 (exit $ac_status); }; }; then 20569 ac_cv_lib_c_r_dlopen=yes 20570else 20571 echo "$as_me: failed program was:" >&5 20572sed 's/^/| /' conftest.$ac_ext >&5 20573 20574ac_cv_lib_c_r_dlopen=no 20575fi 20576rm -f conftest.err conftest.$ac_objext \ 20577 conftest$ac_exeext conftest.$ac_ext 20578LIBS=$ac_check_lib_save_LIBS 20579fi 20580echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_dlopen" >&5 20581echo "${ECHO_T}$ac_cv_lib_c_r_dlopen" >&6 20582if test $ac_cv_lib_c_r_dlopen = yes; then 20583 SU_DL_LIB="-lc_r" 20584fi 20585 20586SU_DL_CFLAGS="" 20587if test ! "$SU_DL_LIB"; then 20588 { echo "$as_me:$LINENO: WARNING: \"Cannot find libdl... dynamic load functions will be disabled\"" >&5 20589echo "$as_me: WARNING: \"Cannot find libdl... dynamic load functions will be disabled\"" >&2;} 20590else 20591 SU_DL_CFLAGS="-DSU_USE_DL" 20592 CFLAGS="$CFLAGS $SU_DL_CFLAGS " 20593fi 20594 20595SU_SSL_CFLAGS="" 20596if test "$ssl" = "true"; then 20597 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 20598echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 20599if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 20600 echo $ECHO_N "(cached) $ECHO_C" >&6 20601else 20602 ac_check_lib_save_LIBS=$LIBS 20603LIBS="-lssl $LIBS" 20604cat >conftest.$ac_ext <<_ACEOF 20605/* confdefs.h. */ 20606_ACEOF 20607cat confdefs.h >>conftest.$ac_ext 20608cat >>conftest.$ac_ext <<_ACEOF 20609/* end confdefs.h. */ 20610 20611/* Override any gcc2 internal prototype to avoid an error. */ 20612#ifdef __cplusplus 20613extern "C" 20614#endif 20615/* We use char because int might match the return type of a gcc2 20616 builtin and then its argument prototype would still apply. */ 20617char SSL_library_init (); 20618int 20619main () 20620{ 20621SSL_library_init (); 20622 ; 20623 return 0; 20624} 20625_ACEOF 20626rm -f conftest.$ac_objext conftest$ac_exeext 20627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20628 (eval $ac_link) 2>conftest.er1 20629 ac_status=$? 20630 grep -v '^ *+' conftest.er1 >conftest.err 20631 rm -f conftest.er1 20632 cat conftest.err >&5 20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20634 (exit $ac_status); } && 20635 { ac_try='test -z "$ac_c_werror_flag" 20636 || test ! -s conftest.err' 20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20638 (eval $ac_try) 2>&5 20639 ac_status=$? 20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20641 (exit $ac_status); }; } && 20642 { ac_try='test -s conftest$ac_exeext' 20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20644 (eval $ac_try) 2>&5 20645 ac_status=$? 20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20647 (exit $ac_status); }; }; then 20648 ac_cv_lib_ssl_SSL_library_init=yes 20649else 20650 echo "$as_me: failed program was:" >&5 20651sed 's/^/| /' conftest.$ac_ext >&5 20652 20653ac_cv_lib_ssl_SSL_library_init=no 20654fi 20655rm -f conftest.err conftest.$ac_objext \ 20656 conftest$ac_exeext conftest.$ac_ext 20657LIBS=$ac_check_lib_save_LIBS 20658fi 20659echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 20660echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 20661if test $ac_cv_lib_ssl_SSL_library_init = yes; then 20662 SU_SSL_LIB="-lssl" 20663fi 20664 20665 if test ! "$SU_SSL_LIB"; then 20666 { echo "$as_me:$LINENO: WARNING: \"Cannot find libssl... ssl code in skyweb will be disabled\"" >&5 20667echo "$as_me: WARNING: \"Cannot find libssl... ssl code in skyweb will be disabled\"" >&2;} 20668 ssl=false 20669 else 20670 SU_SSL_CFLAGS="-DSU_USE_SSL" 20671 CFLAGS="$CFLAGS $SU_SSL_CFLAGS " 20672 fi 20673fi 20674 20675SU_ARCH_LIB="" 20676echo "$as_me:$LINENO: checking for compress in -lz" >&5 20677echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6 20678if test "${ac_cv_lib_z_compress+set}" = set; then 20679 echo $ECHO_N "(cached) $ECHO_C" >&6 20680else 20681 ac_check_lib_save_LIBS=$LIBS 20682LIBS="-lz $LIBS" 20683cat >conftest.$ac_ext <<_ACEOF 20684/* confdefs.h. */ 20685_ACEOF 20686cat confdefs.h >>conftest.$ac_ext 20687cat >>conftest.$ac_ext <<_ACEOF 20688/* end confdefs.h. */ 20689 20690/* Override any gcc2 internal prototype to avoid an error. */ 20691#ifdef __cplusplus 20692extern "C" 20693#endif 20694/* We use char because int might match the return type of a gcc2 20695 builtin and then its argument prototype would still apply. */ 20696char compress (); 20697int 20698main () 20699{ 20700compress (); 20701 ; 20702 return 0; 20703} 20704_ACEOF 20705rm -f conftest.$ac_objext conftest$ac_exeext 20706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20707 (eval $ac_link) 2>conftest.er1 20708 ac_status=$? 20709 grep -v '^ *+' conftest.er1 >conftest.err 20710 rm -f conftest.er1 20711 cat conftest.err >&5 20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20713 (exit $ac_status); } && 20714 { ac_try='test -z "$ac_c_werror_flag" 20715 || test ! -s conftest.err' 20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20717 (eval $ac_try) 2>&5 20718 ac_status=$? 20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20720 (exit $ac_status); }; } && 20721 { ac_try='test -s conftest$ac_exeext' 20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20723 (eval $ac_try) 2>&5 20724 ac_status=$? 20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20726 (exit $ac_status); }; }; then 20727 ac_cv_lib_z_compress=yes 20728else 20729 echo "$as_me: failed program was:" >&5 20730sed 's/^/| /' conftest.$ac_ext >&5 20731 20732ac_cv_lib_z_compress=no 20733fi 20734rm -f conftest.err conftest.$ac_objext \ 20735 conftest$ac_exeext conftest.$ac_ext 20736LIBS=$ac_check_lib_save_LIBS 20737fi 20738echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5 20739echo "${ECHO_T}$ac_cv_lib_z_compress" >&6 20740if test $ac_cv_lib_z_compress = yes; then 20741 Z_LIB="-lz" 20742fi 20743 20744if test ! "$Z_LIB"; then 20745 { echo "$as_me:$LINENO: WARNING: \"Cannot find libz... archive routines will be disabled\"" >&5 20746echo "$as_me: WARNING: \"Cannot find libz... archive routines will be disabled\"" >&2;} 20747else 20748 echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5 20749echo $ECHO_N "checking for BZ2_bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6 20750if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then 20751 echo $ECHO_N "(cached) $ECHO_C" >&6 20752else 20753 ac_check_lib_save_LIBS=$LIBS 20754LIBS="-lbz2 $LIBS" 20755cat >conftest.$ac_ext <<_ACEOF 20756/* confdefs.h. */ 20757_ACEOF 20758cat confdefs.h >>conftest.$ac_ext 20759cat >>conftest.$ac_ext <<_ACEOF 20760/* end confdefs.h. */ 20761 20762/* Override any gcc2 internal prototype to avoid an error. */ 20763#ifdef __cplusplus 20764extern "C" 20765#endif 20766/* We use char because int might match the return type of a gcc2 20767 builtin and then its argument prototype would still apply. */ 20768char BZ2_bzBuffToBuffCompress (); 20769int 20770main () 20771{ 20772BZ2_bzBuffToBuffCompress (); 20773 ; 20774 return 0; 20775} 20776_ACEOF 20777rm -f conftest.$ac_objext conftest$ac_exeext 20778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20779 (eval $ac_link) 2>conftest.er1 20780 ac_status=$? 20781 grep -v '^ *+' conftest.er1 >conftest.err 20782 rm -f conftest.er1 20783 cat conftest.err >&5 20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20785 (exit $ac_status); } && 20786 { ac_try='test -z "$ac_c_werror_flag" 20787 || test ! -s conftest.err' 20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20789 (eval $ac_try) 2>&5 20790 ac_status=$? 20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20792 (exit $ac_status); }; } && 20793 { ac_try='test -s conftest$ac_exeext' 20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20795 (eval $ac_try) 2>&5 20796 ac_status=$? 20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20798 (exit $ac_status); }; }; then 20799 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes 20800else 20801 echo "$as_me: failed program was:" >&5 20802sed 's/^/| /' conftest.$ac_ext >&5 20803 20804ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no 20805fi 20806rm -f conftest.err conftest.$ac_objext \ 20807 conftest$ac_exeext conftest.$ac_ext 20808LIBS=$ac_check_lib_save_LIBS 20809fi 20810echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5 20811echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6 20812if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then 20813 BZ_LIB="-lbz2" 20814fi 20815 20816 if test ! "$BZ_LIB"; then 20817 { echo "$as_me:$LINENO: WARNING: \"Cannot find libbz2... archive routines will be disabled\"" >&5 20818echo "$as_me: WARNING: \"Cannot find libbz2... archive routines will be disabled\"" >&2;} 20819 else 20820 SU_ARCH_CFLAGS="-DSU_USE_ARCH" 20821 CFLAGS="$CFLAGS $SU_ARCH_CFLAGS " 20822 SU_ARCH_LIB="-lz -lbz2" 20823 fi 20824fi 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 ac_config_files="$ac_config_files Makefile skyutils-config src/Makefile src/Windows/Makefile src/Windows/skyutils/Makefile" 20840 ac_config_commands="$ac_config_commands default" 20841cat >confcache <<\_ACEOF 20842# This file is a shell script that caches the results of configure 20843# tests run on this system so they can be shared between configure 20844# scripts and configure runs, see configure's option --config-cache. 20845# It is not useful on other systems. If it contains results you don't 20846# want to keep, you may remove or edit it. 20847# 20848# config.status only pays attention to the cache file if you give it 20849# the --recheck option to rerun configure. 20850# 20851# `ac_cv_env_foo' variables (set or unset) will be overridden when 20852# loading this file, other *unset* `ac_cv_foo' will be assigned the 20853# following values. 20854 20855_ACEOF 20856 20857# The following way of writing the cache mishandles newlines in values, 20858# but we know of no workaround that is simple, portable, and efficient. 20859# So, don't put newlines in cache variables' values. 20860# Ultrix sh set writes to stderr and can't be redirected directly, 20861# and sets the high bit in the cache file unless we assign to the vars. 20862{ 20863 (set) 2>&1 | 20864 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20865 *ac_space=\ *) 20866 # `set' does not quote correctly, so add quotes (double-quote 20867 # substitution turns \\\\ into \\, and sed turns \\ into \). 20868 sed -n \ 20869 "s/'/'\\\\''/g; 20870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20871 ;; 20872 *) 20873 # `set' quotes correctly as required by POSIX, so do not add quotes. 20874 sed -n \ 20875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20876 ;; 20877 esac; 20878} | 20879 sed ' 20880 t clear 20881 : clear 20882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20883 t end 20884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20885 : end' >>confcache 20886if diff $cache_file confcache >/dev/null 2>&1; then :; else 20887 if test -w $cache_file; then 20888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20889 cat confcache >$cache_file 20890 else 20891 echo "not updating unwritable cache $cache_file" 20892 fi 20893fi 20894rm -f confcache 20895 20896test "x$prefix" = xNONE && prefix=$ac_default_prefix 20897# Let make expand exec_prefix. 20898test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20899 20900# VPATH may cause trouble with some makes, so we remove $(srcdir), 20901# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20902# trailing colons and then remove the whole line if VPATH becomes empty 20903# (actually we leave an empty line to preserve line numbers). 20904if test "x$srcdir" = x.; then 20905 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20906s/:*\$(srcdir):*/:/; 20907s/:*\${srcdir}:*/:/; 20908s/:*@srcdir@:*/:/; 20909s/^\([^=]*=[ ]*\):*/\1/; 20910s/:*$//; 20911s/^[^=]*=[ ]*$//; 20912}' 20913fi 20914 20915DEFS=-DHAVE_CONFIG_H 20916 20917ac_libobjs= 20918ac_ltlibobjs= 20919for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20920 # 1. Remove the extension, and $U if already installed. 20921 ac_i=`echo "$ac_i" | 20922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20923 # 2. Add them. 20924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20926done 20927LIBOBJS=$ac_libobjs 20928 20929LTLIBOBJS=$ac_ltlibobjs 20930 20931 20932if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20933 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20934Usually this means the macro was only invoked conditionally." >&5 20935echo "$as_me: error: conditional \"AMDEP\" was never defined. 20936Usually this means the macro was only invoked conditionally." >&2;} 20937 { (exit 1); exit 1; }; } 20938fi 20939if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20940 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20941Usually this means the macro was only invoked conditionally." >&5 20942echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20943Usually this means the macro was only invoked conditionally." >&2;} 20944 { (exit 1); exit 1; }; } 20945fi 20946if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20947 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20948Usually this means the macro was only invoked conditionally." >&5 20949echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20950Usually this means the macro was only invoked conditionally." >&2;} 20951 { (exit 1); exit 1; }; } 20952fi 20953if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20954 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20955Usually this means the macro was only invoked conditionally." >&5 20956echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20957Usually this means the macro was only invoked conditionally." >&2;} 20958 { (exit 1); exit 1; }; } 20959fi 20960 20961: ${CONFIG_STATUS=./config.status} 20962ac_clean_files_save=$ac_clean_files 20963ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20964{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20965echo "$as_me: creating $CONFIG_STATUS" >&6;} 20966cat >$CONFIG_STATUS <<_ACEOF 20967#! $SHELL 20968# Generated by $as_me. 20969# Run this file to recreate the current configuration. 20970# Compiler output produced by configure, useful for debugging 20971# configure, is in config.log if it exists. 20972 20973debug=false 20974ac_cs_recheck=false 20975ac_cs_silent=false 20976SHELL=\${CONFIG_SHELL-$SHELL} 20977_ACEOF 20978 20979cat >>$CONFIG_STATUS <<\_ACEOF 20980## --------------------- ## 20981## M4sh Initialization. ## 20982## --------------------- ## 20983 20984# Be Bourne compatible 20985if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20986 emulate sh 20987 NULLCMD=: 20988 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20989 # is contrary to our usage. Disable this feature. 20990 alias -g '${1+"$@"}'='"$@"' 20991elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20992 set -o posix 20993fi 20994DUALCASE=1; export DUALCASE # for MKS sh 20995 20996# Support unset when possible. 20997if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20998 as_unset=unset 20999else 21000 as_unset=false 21001fi 21002 21003 21004# Work around bugs in pre-3.0 UWIN ksh. 21005$as_unset ENV MAIL MAILPATH 21006PS1='$ ' 21007PS2='> ' 21008PS4='+ ' 21009 21010# NLS nuisances. 21011for as_var in \ 21012 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21013 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21014 LC_TELEPHONE LC_TIME 21015do 21016 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21017 eval $as_var=C; export $as_var 21018 else 21019 $as_unset $as_var 21020 fi 21021done 21022 21023# Required to use basename. 21024if expr a : '\(a\)' >/dev/null 2>&1; then 21025 as_expr=expr 21026else 21027 as_expr=false 21028fi 21029 21030if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21031 as_basename=basename 21032else 21033 as_basename=false 21034fi 21035 21036 21037# Name of the executable. 21038as_me=`$as_basename "$0" || 21039$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21040 X"$0" : 'X\(//\)$' \| \ 21041 X"$0" : 'X\(/\)$' \| \ 21042 . : '\(.\)' 2>/dev/null || 21043echo X/"$0" | 21044 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 21045 /^X\/\(\/\/\)$/{ s//\1/; q; } 21046 /^X\/\(\/\).*/{ s//\1/; q; } 21047 s/.*/./; q'` 21048 21049 21050# PATH needs CR, and LINENO needs CR and PATH. 21051# Avoid depending upon Character Ranges. 21052as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21053as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21054as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21055as_cr_digits='0123456789' 21056as_cr_alnum=$as_cr_Letters$as_cr_digits 21057 21058# The user is always right. 21059if test "${PATH_SEPARATOR+set}" != set; then 21060 echo "#! /bin/sh" >conf$$.sh 21061 echo "exit 0" >>conf$$.sh 21062 chmod +x conf$$.sh 21063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21064 PATH_SEPARATOR=';' 21065 else 21066 PATH_SEPARATOR=: 21067 fi 21068 rm -f conf$$.sh 21069fi 21070 21071 21072 as_lineno_1=$LINENO 21073 as_lineno_2=$LINENO 21074 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21075 test "x$as_lineno_1" != "x$as_lineno_2" && 21076 test "x$as_lineno_3" = "x$as_lineno_2" || { 21077 # Find who we are. Look in the path if we contain no path at all 21078 # relative or not. 21079 case $0 in 21080 *[\\/]* ) as_myself=$0 ;; 21081 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21082for as_dir in $PATH 21083do 21084 IFS=$as_save_IFS 21085 test -z "$as_dir" && as_dir=. 21086 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21087done 21088 21089 ;; 21090 esac 21091 # We did not find ourselves, most probably we were run as `sh COMMAND' 21092 # in which case we are not to be found in the path. 21093 if test "x$as_myself" = x; then 21094 as_myself=$0 21095 fi 21096 if test ! -f "$as_myself"; then 21097 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 21098echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 21099 { (exit 1); exit 1; }; } 21100 fi 21101 case $CONFIG_SHELL in 21102 '') 21103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21104for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21105do 21106 IFS=$as_save_IFS 21107 test -z "$as_dir" && as_dir=. 21108 for as_base in sh bash ksh sh5; do 21109 case $as_dir in 21110 /*) 21111 if ("$as_dir/$as_base" -c ' 21112 as_lineno_1=$LINENO 21113 as_lineno_2=$LINENO 21114 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21115 test "x$as_lineno_1" != "x$as_lineno_2" && 21116 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 21117 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 21118 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 21119 CONFIG_SHELL=$as_dir/$as_base 21120 export CONFIG_SHELL 21121 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 21122 fi;; 21123 esac 21124 done 21125done 21126;; 21127 esac 21128 21129 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21130 # uniformly replaced by the line number. The first 'sed' inserts a 21131 # line-number line before each line; the second 'sed' does the real 21132 # work. The second script uses 'N' to pair each line-number line 21133 # with the numbered line, and appends trailing '-' during 21134 # substitution so that $LINENO is not a special case at line end. 21135 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21136 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21137 sed '=' <$as_myself | 21138 sed ' 21139 N 21140 s,$,-, 21141 : loop 21142 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21143 t loop 21144 s,-$,, 21145 s,^['$as_cr_digits']*\n,, 21146 ' >$as_me.lineno && 21147 chmod +x $as_me.lineno || 21148 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21149echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21150 { (exit 1); exit 1; }; } 21151 21152 # Don't try to exec as it changes $[0], causing all sort of problems 21153 # (the dirname of $[0] is not the place where we might find the 21154 # original and so on. Autoconf is especially sensible to this). 21155 . ./$as_me.lineno 21156 # Exit status is that of the last command. 21157 exit 21158} 21159 21160 21161case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21162 *c*,-n*) ECHO_N= ECHO_C=' 21163' ECHO_T=' ' ;; 21164 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21165 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21166esac 21167 21168if expr a : '\(a\)' >/dev/null 2>&1; then 21169 as_expr=expr 21170else 21171 as_expr=false 21172fi 21173 21174rm -f conf$$ conf$$.exe conf$$.file 21175echo >conf$$.file 21176if ln -s conf$$.file conf$$ 2>/dev/null; then 21177 # We could just check for DJGPP; but this test a) works b) is more generic 21178 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21179 if test -f conf$$.exe; then 21180 # Don't use ln at all; we don't have any links 21181 as_ln_s='cp -p' 21182 else 21183 as_ln_s='ln -s' 21184 fi 21185elif ln conf$$.file conf$$ 2>/dev/null; then 21186 as_ln_s=ln 21187else 21188 as_ln_s='cp -p' 21189fi 21190rm -f conf$$ conf$$.exe conf$$.file 21191 21192if mkdir -p . 2>/dev/null; then 21193 as_mkdir_p=: 21194else 21195 test -d ./-p && rmdir ./-p 21196 as_mkdir_p=false 21197fi 21198 21199as_executable_p="test -f" 21200 21201# Sed expression to map a string onto a valid CPP name. 21202as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21203 21204# Sed expression to map a string onto a valid variable name. 21205as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21206 21207 21208# IFS 21209# We need space, tab and new line, in precisely that order. 21210as_nl=' 21211' 21212IFS=" $as_nl" 21213 21214# CDPATH. 21215$as_unset CDPATH 21216 21217exec 6>&1 21218 21219# Open the log real soon, to keep \$[0] and so on meaningful, and to 21220# report actual input values of CONFIG_FILES etc. instead of their 21221# values after options handling. Logging --version etc. is OK. 21222exec 5>>config.log 21223{ 21224 echo 21225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21226## Running $as_me. ## 21227_ASBOX 21228} >&5 21229cat >&5 <<_CSEOF 21230 21231This file was extended by $as_me, which was 21232generated by GNU Autoconf 2.59. Invocation command line was 21233 21234 CONFIG_FILES = $CONFIG_FILES 21235 CONFIG_HEADERS = $CONFIG_HEADERS 21236 CONFIG_LINKS = $CONFIG_LINKS 21237 CONFIG_COMMANDS = $CONFIG_COMMANDS 21238 $ $0 $@ 21239 21240_CSEOF 21241echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 21242echo >&5 21243_ACEOF 21244 21245# Files that config.status was made for. 21246if test -n "$ac_config_files"; then 21247 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21248fi 21249 21250if test -n "$ac_config_headers"; then 21251 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21252fi 21253 21254if test -n "$ac_config_links"; then 21255 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21256fi 21257 21258if test -n "$ac_config_commands"; then 21259 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21260fi 21261 21262cat >>$CONFIG_STATUS <<\_ACEOF 21263 21264ac_cs_usage="\ 21265\`$as_me' instantiates files from templates according to the 21266current configuration. 21267 21268Usage: $0 [OPTIONS] [FILE]... 21269 21270 -h, --help print this help, then exit 21271 -V, --version print version number, then exit 21272 -q, --quiet do not print progress messages 21273 -d, --debug don't remove temporary files 21274 --recheck update $as_me by reconfiguring in the same conditions 21275 --file=FILE[:TEMPLATE] 21276 instantiate the configuration file FILE 21277 --header=FILE[:TEMPLATE] 21278 instantiate the configuration header FILE 21279 21280Configuration files: 21281$config_files 21282 21283Configuration headers: 21284$config_headers 21285 21286Configuration commands: 21287$config_commands 21288 21289Report bugs to <bug-autoconf@gnu.org>." 21290_ACEOF 21291 21292cat >>$CONFIG_STATUS <<_ACEOF 21293ac_cs_version="\\ 21294config.status 21295configured by $0, generated by GNU Autoconf 2.59, 21296 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21297 21298Copyright (C) 2003 Free Software Foundation, Inc. 21299This config.status script is free software; the Free Software Foundation 21300gives unlimited permission to copy, distribute and modify it." 21301srcdir=$srcdir 21302INSTALL="$INSTALL" 21303_ACEOF 21304 21305cat >>$CONFIG_STATUS <<\_ACEOF 21306# If no file are specified by the user, then we need to provide default 21307# value. By we need to know if files were specified by the user. 21308ac_need_defaults=: 21309while test $# != 0 21310do 21311 case $1 in 21312 --*=*) 21313 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21314 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21315 ac_shift=: 21316 ;; 21317 -*) 21318 ac_option=$1 21319 ac_optarg=$2 21320 ac_shift=shift 21321 ;; 21322 *) # This is not an option, so the user has probably given explicit 21323 # arguments. 21324 ac_option=$1 21325 ac_need_defaults=false;; 21326 esac 21327 21328 case $ac_option in 21329 # Handling of the options. 21330_ACEOF 21331cat >>$CONFIG_STATUS <<\_ACEOF 21332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21333 ac_cs_recheck=: ;; 21334 --version | --vers* | -V ) 21335 echo "$ac_cs_version"; exit 0 ;; 21336 --he | --h) 21337 # Conflict between --help and --header 21338 { { echo "$as_me:$LINENO: error: ambiguous option: $1 21339Try \`$0 --help' for more information." >&5 21340echo "$as_me: error: ambiguous option: $1 21341Try \`$0 --help' for more information." >&2;} 21342 { (exit 1); exit 1; }; };; 21343 --help | --hel | -h ) 21344 echo "$ac_cs_usage"; exit 0 ;; 21345 --debug | --d* | -d ) 21346 debug=: ;; 21347 --file | --fil | --fi | --f ) 21348 $ac_shift 21349 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21350 ac_need_defaults=false;; 21351 --header | --heade | --head | --hea ) 21352 $ac_shift 21353 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21354 ac_need_defaults=false;; 21355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21356 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21357 ac_cs_silent=: ;; 21358 21359 # This is an error. 21360 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 21361Try \`$0 --help' for more information." >&5 21362echo "$as_me: error: unrecognized option: $1 21363Try \`$0 --help' for more information." >&2;} 21364 { (exit 1); exit 1; }; } ;; 21365 21366 *) ac_config_targets="$ac_config_targets $1" ;; 21367 21368 esac 21369 shift 21370done 21371 21372ac_configure_extra_args= 21373 21374if $ac_cs_silent; then 21375 exec 6>/dev/null 21376 ac_configure_extra_args="$ac_configure_extra_args --silent" 21377fi 21378 21379_ACEOF 21380cat >>$CONFIG_STATUS <<_ACEOF 21381if \$ac_cs_recheck; then 21382 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21383 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21384fi 21385 21386_ACEOF 21387 21388cat >>$CONFIG_STATUS <<_ACEOF 21389# 21390# INIT-COMMANDS section. 21391# 21392 21393AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21394 21395_ACEOF 21396 21397 21398 21399cat >>$CONFIG_STATUS <<\_ACEOF 21400for ac_config_target in $ac_config_targets 21401do 21402 case "$ac_config_target" in 21403 # Handling of arguments. 21404 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21405 "skyutils-config" ) CONFIG_FILES="$CONFIG_FILES skyutils-config" ;; 21406 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21407 "src/Windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Windows/Makefile" ;; 21408 "src/Windows/skyutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Windows/skyutils/Makefile" ;; 21409 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21410 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 21411 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21412 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21413echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21414 { (exit 1); exit 1; }; };; 21415 esac 21416done 21417 21418# If the user did not use the arguments to specify the items to instantiate, 21419# then the envvar interface is used. Set only those that are not. 21420# We use the long form for the default assignment because of an extremely 21421# bizarre bug on SunOS 4.1.3. 21422if $ac_need_defaults; then 21423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21426fi 21427 21428# Have a temporary directory for convenience. Make it in the build tree 21429# simply because there is no reason to put it here, and in addition, 21430# creating and moving files from /tmp can sometimes cause problems. 21431# Create a temporary directory, and hook for its removal unless debugging. 21432$debug || 21433{ 21434 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21435 trap '{ (exit 1); exit 1; }' 1 2 13 15 21436} 21437 21438# Create a (secure) tmp directory for tmp files. 21439 21440{ 21441 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21442 test -n "$tmp" && test -d "$tmp" 21443} || 21444{ 21445 tmp=./confstat$$-$RANDOM 21446 (umask 077 && mkdir $tmp) 21447} || 21448{ 21449 echo "$me: cannot create a temporary directory in ." >&2 21450 { (exit 1); exit 1; } 21451} 21452 21453_ACEOF 21454 21455cat >>$CONFIG_STATUS <<_ACEOF 21456 21457# 21458# CONFIG_FILES section. 21459# 21460 21461# No need to generate the scripts if there are no CONFIG_FILES. 21462# This happens for instance when ./config.status config.h 21463if test -n "\$CONFIG_FILES"; then 21464 # Protect against being on the right side of a sed subst in config.status. 21465 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21466 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21467s,@SHELL@,$SHELL,;t t 21468s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21469s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21470s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21471s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21472s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21473s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21474s,@exec_prefix@,$exec_prefix,;t t 21475s,@prefix@,$prefix,;t t 21476s,@program_transform_name@,$program_transform_name,;t t 21477s,@bindir@,$bindir,;t t 21478s,@sbindir@,$sbindir,;t t 21479s,@libexecdir@,$libexecdir,;t t 21480s,@datadir@,$datadir,;t t 21481s,@sysconfdir@,$sysconfdir,;t t 21482s,@sharedstatedir@,$sharedstatedir,;t t 21483s,@localstatedir@,$localstatedir,;t t 21484s,@libdir@,$libdir,;t t 21485s,@includedir@,$includedir,;t t 21486s,@oldincludedir@,$oldincludedir,;t t 21487s,@infodir@,$infodir,;t t 21488s,@mandir@,$mandir,;t t 21489s,@build_alias@,$build_alias,;t t 21490s,@host_alias@,$host_alias,;t t 21491s,@target_alias@,$target_alias,;t t 21492s,@DEFS@,$DEFS,;t t 21493s,@ECHO_C@,$ECHO_C,;t t 21494s,@ECHO_N@,$ECHO_N,;t t 21495s,@ECHO_T@,$ECHO_T,;t t 21496s,@LIBS@,$LIBS,;t t 21497s,@CC@,$CC,;t t 21498s,@CFLAGS@,$CFLAGS,;t t 21499s,@LDFLAGS@,$LDFLAGS,;t t 21500s,@CPPFLAGS@,$CPPFLAGS,;t t 21501s,@ac_ct_CC@,$ac_ct_CC,;t t 21502s,@EXEEXT@,$EXEEXT,;t t 21503s,@OBJEXT@,$OBJEXT,;t t 21504s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21505s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21506s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21507s,@LN_S@,$LN_S,;t t 21508s,@SU_MAJOR_VERSION@,$SU_MAJOR_VERSION,;t t 21509s,@SU_MINOR_VERSION@,$SU_MINOR_VERSION,;t t 21510s,@SU_VERSION@,$SU_VERSION,;t t 21511s,@SU_INTERFACE_AGE@,$SU_INTERFACE_AGE,;t t 21512s,@SU_BINARY_AGE@,$SU_BINARY_AGE,;t t 21513s,@LT_RELEASE@,$LT_RELEASE,;t t 21514s,@LT_CURRENT@,$LT_CURRENT,;t t 21515s,@LT_REVISION@,$LT_REVISION,;t t 21516s,@LT_AGE@,$LT_AGE,;t t 21517s,@CYGPATH_W@,$CYGPATH_W,;t t 21518s,@PACKAGE@,$PACKAGE,;t t 21519s,@VERSION@,$VERSION,;t t 21520s,@ACLOCAL@,$ACLOCAL,;t t 21521s,@AUTOCONF@,$AUTOCONF,;t t 21522s,@AUTOMAKE@,$AUTOMAKE,;t t 21523s,@AUTOHEADER@,$AUTOHEADER,;t t 21524s,@MAKEINFO@,$MAKEINFO,;t t 21525s,@install_sh@,$install_sh,;t t 21526s,@STRIP@,$STRIP,;t t 21527s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 21528s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 21529s,@mkdir_p@,$mkdir_p,;t t 21530s,@AWK@,$AWK,;t t 21531s,@SET_MAKE@,$SET_MAKE,;t t 21532s,@am__leading_dot@,$am__leading_dot,;t t 21533s,@AMTAR@,$AMTAR,;t t 21534s,@am__tar@,$am__tar,;t t 21535s,@am__untar@,$am__untar,;t t 21536s,@DEPDIR@,$DEPDIR,;t t 21537s,@am__include@,$am__include,;t t 21538s,@am__quote@,$am__quote,;t t 21539s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 21540s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 21541s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 21542s,@CCDEPMODE@,$CCDEPMODE,;t t 21543s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 21544s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 21545s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 21546s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 21547s,@MAINT@,$MAINT,;t t 21548s,@build@,$build,;t t 21549s,@build_cpu@,$build_cpu,;t t 21550s,@build_vendor@,$build_vendor,;t t 21551s,@build_os@,$build_os,;t t 21552s,@host@,$host,;t t 21553s,@host_cpu@,$host_cpu,;t t 21554s,@host_vendor@,$host_vendor,;t t 21555s,@host_os@,$host_os,;t t 21556s,@EGREP@,$EGREP,;t t 21557s,@ECHO@,$ECHO,;t t 21558s,@AR@,$AR,;t t 21559s,@ac_ct_AR@,$ac_ct_AR,;t t 21560s,@RANLIB@,$RANLIB,;t t 21561s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21562s,@CPP@,$CPP,;t t 21563s,@CXX@,$CXX,;t t 21564s,@CXXFLAGS@,$CXXFLAGS,;t t 21565s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21566s,@CXXDEPMODE@,$CXXDEPMODE,;t t 21567s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 21568s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 21569s,@CXXCPP@,$CXXCPP,;t t 21570s,@F77@,$F77,;t t 21571s,@FFLAGS@,$FFLAGS,;t t 21572s,@ac_ct_F77@,$ac_ct_F77,;t t 21573s,@LIBTOOL@,$LIBTOOL,;t t 21574s,@LIBOBJS@,$LIBOBJS,;t t 21575s,@SU_PTHREAD_LIB@,$SU_PTHREAD_LIB,;t t 21576s,@SU_PTHREAD_CFLAGS@,$SU_PTHREAD_CFLAGS,;t t 21577s,@SOLARIS@,$SOLARIS,;t t 21578s,@SU_REENTRANT@,$SU_REENTRANT,;t t 21579s,@SU_DL_LIB@,$SU_DL_LIB,;t t 21580s,@SU_DL_CFLAGS@,$SU_DL_CFLAGS,;t t 21581s,@SU_SSL_LIB@,$SU_SSL_LIB,;t t 21582s,@SU_SSL_CFLAGS@,$SU_SSL_CFLAGS,;t t 21583s,@SU_ARCH_LIB@,$SU_ARCH_LIB,;t t 21584s,@SU_ARCH_CFLAGS@,$SU_ARCH_CFLAGS,;t t 21585s,@SU_ANSI_CFLAGS@,$SU_ANSI_CFLAGS,;t t 21586s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21587CEOF 21588 21589_ACEOF 21590 21591 cat >>$CONFIG_STATUS <<\_ACEOF 21592 # Split the substitutions into bite-sized pieces for seds with 21593 # small command number limits, like on Digital OSF/1 and HP-UX. 21594 ac_max_sed_lines=48 21595 ac_sed_frag=1 # Number of current file. 21596 ac_beg=1 # First line for current file. 21597 ac_end=$ac_max_sed_lines # Line after last line for current file. 21598 ac_more_lines=: 21599 ac_sed_cmds= 21600 while $ac_more_lines; do 21601 if test $ac_beg -gt 1; then 21602 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21603 else 21604 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21605 fi 21606 if test ! -s $tmp/subs.frag; then 21607 ac_more_lines=false 21608 else 21609 # The purpose of the label and of the branching condition is to 21610 # speed up the sed processing (if there are no `@' at all, there 21611 # is no need to browse any of the substitutions). 21612 # These are the two extra sed commands mentioned above. 21613 (echo ':t 21614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21615 if test -z "$ac_sed_cmds"; then 21616 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21617 else 21618 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21619 fi 21620 ac_sed_frag=`expr $ac_sed_frag + 1` 21621 ac_beg=$ac_end 21622 ac_end=`expr $ac_end + $ac_max_sed_lines` 21623 fi 21624 done 21625 if test -z "$ac_sed_cmds"; then 21626 ac_sed_cmds=cat 21627 fi 21628fi # test -n "$CONFIG_FILES" 21629 21630_ACEOF 21631cat >>$CONFIG_STATUS <<\_ACEOF 21632for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21634 case $ac_file in 21635 - | *:- | *:-:* ) # input from stdin 21636 cat >$tmp/stdin 21637 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21639 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21640 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21641 * ) ac_file_in=$ac_file.in ;; 21642 esac 21643 21644 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21645 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21646$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21647 X"$ac_file" : 'X\(//\)[^/]' \| \ 21648 X"$ac_file" : 'X\(//\)$' \| \ 21649 X"$ac_file" : 'X\(/\)' \| \ 21650 . : '\(.\)' 2>/dev/null || 21651echo X"$ac_file" | 21652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21653 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21654 /^X\(\/\/\)$/{ s//\1/; q; } 21655 /^X\(\/\).*/{ s//\1/; q; } 21656 s/.*/./; q'` 21657 { if $as_mkdir_p; then 21658 mkdir -p "$ac_dir" 21659 else 21660 as_dir="$ac_dir" 21661 as_dirs= 21662 while test ! -d "$as_dir"; do 21663 as_dirs="$as_dir $as_dirs" 21664 as_dir=`(dirname "$as_dir") 2>/dev/null || 21665$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21666 X"$as_dir" : 'X\(//\)[^/]' \| \ 21667 X"$as_dir" : 'X\(//\)$' \| \ 21668 X"$as_dir" : 'X\(/\)' \| \ 21669 . : '\(.\)' 2>/dev/null || 21670echo X"$as_dir" | 21671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21672 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21673 /^X\(\/\/\)$/{ s//\1/; q; } 21674 /^X\(\/\).*/{ s//\1/; q; } 21675 s/.*/./; q'` 21676 done 21677 test ! -n "$as_dirs" || mkdir $as_dirs 21678 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21679echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21680 { (exit 1); exit 1; }; }; } 21681 21682 ac_builddir=. 21683 21684if test "$ac_dir" != .; then 21685 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21686 # A "../" for each directory in $ac_dir_suffix. 21687 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21688else 21689 ac_dir_suffix= ac_top_builddir= 21690fi 21691 21692case $srcdir in 21693 .) # No --srcdir option. We are building in place. 21694 ac_srcdir=. 21695 if test -z "$ac_top_builddir"; then 21696 ac_top_srcdir=. 21697 else 21698 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21699 fi ;; 21700 [\\/]* | ?:[\\/]* ) # Absolute path. 21701 ac_srcdir=$srcdir$ac_dir_suffix; 21702 ac_top_srcdir=$srcdir ;; 21703 *) # Relative path. 21704 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21705 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21706esac 21707 21708# Do not use `cd foo && pwd` to compute absolute paths, because 21709# the directories may not exist. 21710case `pwd` in 21711.) ac_abs_builddir="$ac_dir";; 21712*) 21713 case "$ac_dir" in 21714 .) ac_abs_builddir=`pwd`;; 21715 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21716 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21717 esac;; 21718esac 21719case $ac_abs_builddir in 21720.) ac_abs_top_builddir=${ac_top_builddir}.;; 21721*) 21722 case ${ac_top_builddir}. in 21723 .) ac_abs_top_builddir=$ac_abs_builddir;; 21724 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21725 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21726 esac;; 21727esac 21728case $ac_abs_builddir in 21729.) ac_abs_srcdir=$ac_srcdir;; 21730*) 21731 case $ac_srcdir in 21732 .) ac_abs_srcdir=$ac_abs_builddir;; 21733 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21734 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21735 esac;; 21736esac 21737case $ac_abs_builddir in 21738.) ac_abs_top_srcdir=$ac_top_srcdir;; 21739*) 21740 case $ac_top_srcdir in 21741 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21742 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21743 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21744 esac;; 21745esac 21746 21747 21748 case $INSTALL in 21749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21750 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21751 esac 21752 21753 if test x"$ac_file" != x-; then 21754 { echo "$as_me:$LINENO: creating $ac_file" >&5 21755echo "$as_me: creating $ac_file" >&6;} 21756 rm -f "$ac_file" 21757 fi 21758 # Let's still pretend it is `configure' which instantiates (i.e., don't 21759 # use $as_me), people would be surprised to read: 21760 # /* config.h. Generated by config.status. */ 21761 if test x"$ac_file" = x-; then 21762 configure_input= 21763 else 21764 configure_input="$ac_file. " 21765 fi 21766 configure_input=$configure_input"Generated from `echo $ac_file_in | 21767 sed 's,.*/,,'` by configure." 21768 21769 # First look for the input files in the build tree, otherwise in the 21770 # src tree. 21771 ac_file_inputs=`IFS=: 21772 for f in $ac_file_in; do 21773 case $f in 21774 -) echo $tmp/stdin ;; 21775 [\\/$]*) 21776 # Absolute (can't be DOS-style, as IFS=:) 21777 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21778echo "$as_me: error: cannot find input file: $f" >&2;} 21779 { (exit 1); exit 1; }; } 21780 echo "$f";; 21781 *) # Relative 21782 if test -f "$f"; then 21783 # Build tree 21784 echo "$f" 21785 elif test -f "$srcdir/$f"; then 21786 # Source tree 21787 echo "$srcdir/$f" 21788 else 21789 # /dev/null tree 21790 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21791echo "$as_me: error: cannot find input file: $f" >&2;} 21792 { (exit 1); exit 1; }; } 21793 fi;; 21794 esac 21795 done` || { (exit 1); exit 1; } 21796_ACEOF 21797cat >>$CONFIG_STATUS <<_ACEOF 21798 sed "$ac_vpsub 21799$extrasub 21800_ACEOF 21801cat >>$CONFIG_STATUS <<\_ACEOF 21802:t 21803/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21804s,@configure_input@,$configure_input,;t t 21805s,@srcdir@,$ac_srcdir,;t t 21806s,@abs_srcdir@,$ac_abs_srcdir,;t t 21807s,@top_srcdir@,$ac_top_srcdir,;t t 21808s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21809s,@builddir@,$ac_builddir,;t t 21810s,@abs_builddir@,$ac_abs_builddir,;t t 21811s,@top_builddir@,$ac_top_builddir,;t t 21812s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21813s,@INSTALL@,$ac_INSTALL,;t t 21814" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21815 rm -f $tmp/stdin 21816 if test x"$ac_file" != x-; then 21817 mv $tmp/out $ac_file 21818 else 21819 cat $tmp/out 21820 rm -f $tmp/out 21821 fi 21822 21823done 21824_ACEOF 21825cat >>$CONFIG_STATUS <<\_ACEOF 21826 21827# 21828# CONFIG_HEADER section. 21829# 21830 21831# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21832# NAME is the cpp macro being defined and VALUE is the value it is being given. 21833# 21834# ac_d sets the value in "#define NAME VALUE" lines. 21835ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21836ac_dB='[ ].*$,\1#\2' 21837ac_dC=' ' 21838ac_dD=',;t' 21839# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21840ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21841ac_uB='$,\1#\2define\3' 21842ac_uC=' ' 21843ac_uD=',;t' 21844 21845for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21847 case $ac_file in 21848 - | *:- | *:-:* ) # input from stdin 21849 cat >$tmp/stdin 21850 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21851 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21852 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21854 * ) ac_file_in=$ac_file.in ;; 21855 esac 21856 21857 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21858echo "$as_me: creating $ac_file" >&6;} 21859 21860 # First look for the input files in the build tree, otherwise in the 21861 # src tree. 21862 ac_file_inputs=`IFS=: 21863 for f in $ac_file_in; do 21864 case $f in 21865 -) echo $tmp/stdin ;; 21866 [\\/$]*) 21867 # Absolute (can't be DOS-style, as IFS=:) 21868 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21869echo "$as_me: error: cannot find input file: $f" >&2;} 21870 { (exit 1); exit 1; }; } 21871 # Do quote $f, to prevent DOS paths from being IFS'd. 21872 echo "$f";; 21873 *) # Relative 21874 if test -f "$f"; then 21875 # Build tree 21876 echo "$f" 21877 elif test -f "$srcdir/$f"; then 21878 # Source tree 21879 echo "$srcdir/$f" 21880 else 21881 # /dev/null tree 21882 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21883echo "$as_me: error: cannot find input file: $f" >&2;} 21884 { (exit 1); exit 1; }; } 21885 fi;; 21886 esac 21887 done` || { (exit 1); exit 1; } 21888 # Remove the trailing spaces. 21889 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21890 21891_ACEOF 21892 21893# Transform confdefs.h into two sed scripts, `conftest.defines' and 21894# `conftest.undefs', that substitutes the proper values into 21895# config.h.in to produce config.h. The first handles `#define' 21896# templates, and the second `#undef' templates. 21897# And first: Protect against being on the right side of a sed subst in 21898# config.status. Protect against being in an unquoted here document 21899# in config.status. 21900rm -f conftest.defines conftest.undefs 21901# Using a here document instead of a string reduces the quoting nightmare. 21902# Putting comments in sed scripts is not portable. 21903# 21904# `end' is used to avoid that the second main sed command (meant for 21905# 0-ary CPP macros) applies to n-ary macro definitions. 21906# See the Autoconf documentation for `clear'. 21907cat >confdef2sed.sed <<\_ACEOF 21908s/[\\&,]/\\&/g 21909s,[\\$`],\\&,g 21910t clear 21911: clear 21912s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21913t end 21914s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21915: end 21916_ACEOF 21917# If some macros were called several times there might be several times 21918# the same #defines, which is useless. Nevertheless, we may not want to 21919# sort them, since we want the *last* AC-DEFINE to be honored. 21920uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21921sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21922rm -f confdef2sed.sed 21923 21924# This sed command replaces #undef with comments. This is necessary, for 21925# example, in the case of _POSIX_SOURCE, which is predefined and required 21926# on some systems where configure will not decide to define it. 21927cat >>conftest.undefs <<\_ACEOF 21928s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21929_ACEOF 21930 21931# Break up conftest.defines because some shells have a limit on the size 21932# of here documents, and old seds have small limits too (100 cmds). 21933echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21934echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21935echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21936echo ' :' >>$CONFIG_STATUS 21937rm -f conftest.tail 21938while grep . conftest.defines >/dev/null 21939do 21940 # Write a limited-size here document to $tmp/defines.sed. 21941 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21942 # Speed up: don't consider the non `#define' lines. 21943 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21944 # Work around the forget-to-reset-the-flag bug. 21945 echo 't clr' >>$CONFIG_STATUS 21946 echo ': clr' >>$CONFIG_STATUS 21947 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21948 echo 'CEOF 21949 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21950 rm -f $tmp/in 21951 mv $tmp/out $tmp/in 21952' >>$CONFIG_STATUS 21953 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21954 rm -f conftest.defines 21955 mv conftest.tail conftest.defines 21956done 21957rm -f conftest.defines 21958echo ' fi # grep' >>$CONFIG_STATUS 21959echo >>$CONFIG_STATUS 21960 21961# Break up conftest.undefs because some shells have a limit on the size 21962# of here documents, and old seds have small limits too (100 cmds). 21963echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21964rm -f conftest.tail 21965while grep . conftest.undefs >/dev/null 21966do 21967 # Write a limited-size here document to $tmp/undefs.sed. 21968 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21969 # Speed up: don't consider the non `#undef' 21970 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21971 # Work around the forget-to-reset-the-flag bug. 21972 echo 't clr' >>$CONFIG_STATUS 21973 echo ': clr' >>$CONFIG_STATUS 21974 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21975 echo 'CEOF 21976 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21977 rm -f $tmp/in 21978 mv $tmp/out $tmp/in 21979' >>$CONFIG_STATUS 21980 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21981 rm -f conftest.undefs 21982 mv conftest.tail conftest.undefs 21983done 21984rm -f conftest.undefs 21985 21986cat >>$CONFIG_STATUS <<\_ACEOF 21987 # Let's still pretend it is `configure' which instantiates (i.e., don't 21988 # use $as_me), people would be surprised to read: 21989 # /* config.h. Generated by config.status. */ 21990 if test x"$ac_file" = x-; then 21991 echo "/* Generated by configure. */" >$tmp/config.h 21992 else 21993 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21994 fi 21995 cat $tmp/in >>$tmp/config.h 21996 rm -f $tmp/in 21997 if test x"$ac_file" != x-; then 21998 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21999 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22000echo "$as_me: $ac_file is unchanged" >&6;} 22001 else 22002 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22003$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22004 X"$ac_file" : 'X\(//\)[^/]' \| \ 22005 X"$ac_file" : 'X\(//\)$' \| \ 22006 X"$ac_file" : 'X\(/\)' \| \ 22007 . : '\(.\)' 2>/dev/null || 22008echo X"$ac_file" | 22009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22010 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22011 /^X\(\/\/\)$/{ s//\1/; q; } 22012 /^X\(\/\).*/{ s//\1/; q; } 22013 s/.*/./; q'` 22014 { if $as_mkdir_p; then 22015 mkdir -p "$ac_dir" 22016 else 22017 as_dir="$ac_dir" 22018 as_dirs= 22019 while test ! -d "$as_dir"; do 22020 as_dirs="$as_dir $as_dirs" 22021 as_dir=`(dirname "$as_dir") 2>/dev/null || 22022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22023 X"$as_dir" : 'X\(//\)[^/]' \| \ 22024 X"$as_dir" : 'X\(//\)$' \| \ 22025 X"$as_dir" : 'X\(/\)' \| \ 22026 . : '\(.\)' 2>/dev/null || 22027echo X"$as_dir" | 22028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22029 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22030 /^X\(\/\/\)$/{ s//\1/; q; } 22031 /^X\(\/\).*/{ s//\1/; q; } 22032 s/.*/./; q'` 22033 done 22034 test ! -n "$as_dirs" || mkdir $as_dirs 22035 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22036echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22037 { (exit 1); exit 1; }; }; } 22038 22039 rm -f $ac_file 22040 mv $tmp/config.h $ac_file 22041 fi 22042 else 22043 cat $tmp/config.h 22044 rm -f $tmp/config.h 22045 fi 22046# Compute $ac_file's index in $config_headers. 22047_am_stamp_count=1 22048for _am_header in $config_headers :; do 22049 case $_am_header in 22050 $ac_file | $ac_file:* ) 22051 break ;; 22052 * ) 22053 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22054 esac 22055done 22056echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 22057$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22058 X$ac_file : 'X\(//\)[^/]' \| \ 22059 X$ac_file : 'X\(//\)$' \| \ 22060 X$ac_file : 'X\(/\)' \| \ 22061 . : '\(.\)' 2>/dev/null || 22062echo X$ac_file | 22063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22064 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22065 /^X\(\/\/\)$/{ s//\1/; q; } 22066 /^X\(\/\).*/{ s//\1/; q; } 22067 s/.*/./; q'`/stamp-h$_am_stamp_count 22068done 22069_ACEOF 22070cat >>$CONFIG_STATUS <<\_ACEOF 22071 22072# 22073# CONFIG_COMMANDS section. 22074# 22075for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 22076 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 22077 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 22078 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 22079$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22080 X"$ac_dest" : 'X\(//\)[^/]' \| \ 22081 X"$ac_dest" : 'X\(//\)$' \| \ 22082 X"$ac_dest" : 'X\(/\)' \| \ 22083 . : '\(.\)' 2>/dev/null || 22084echo X"$ac_dest" | 22085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22086 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22087 /^X\(\/\/\)$/{ s//\1/; q; } 22088 /^X\(\/\).*/{ s//\1/; q; } 22089 s/.*/./; q'` 22090 { if $as_mkdir_p; then 22091 mkdir -p "$ac_dir" 22092 else 22093 as_dir="$ac_dir" 22094 as_dirs= 22095 while test ! -d "$as_dir"; do 22096 as_dirs="$as_dir $as_dirs" 22097 as_dir=`(dirname "$as_dir") 2>/dev/null || 22098$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22099 X"$as_dir" : 'X\(//\)[^/]' \| \ 22100 X"$as_dir" : 'X\(//\)$' \| \ 22101 X"$as_dir" : 'X\(/\)' \| \ 22102 . : '\(.\)' 2>/dev/null || 22103echo X"$as_dir" | 22104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22105 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22106 /^X\(\/\/\)$/{ s//\1/; q; } 22107 /^X\(\/\).*/{ s//\1/; q; } 22108 s/.*/./; q'` 22109 done 22110 test ! -n "$as_dirs" || mkdir $as_dirs 22111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22112echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22113 { (exit 1); exit 1; }; }; } 22114 22115 ac_builddir=. 22116 22117if test "$ac_dir" != .; then 22118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22119 # A "../" for each directory in $ac_dir_suffix. 22120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22121else 22122 ac_dir_suffix= ac_top_builddir= 22123fi 22124 22125case $srcdir in 22126 .) # No --srcdir option. We are building in place. 22127 ac_srcdir=. 22128 if test -z "$ac_top_builddir"; then 22129 ac_top_srcdir=. 22130 else 22131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22132 fi ;; 22133 [\\/]* | ?:[\\/]* ) # Absolute path. 22134 ac_srcdir=$srcdir$ac_dir_suffix; 22135 ac_top_srcdir=$srcdir ;; 22136 *) # Relative path. 22137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22138 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22139esac 22140 22141# Do not use `cd foo && pwd` to compute absolute paths, because 22142# the directories may not exist. 22143case `pwd` in 22144.) ac_abs_builddir="$ac_dir";; 22145*) 22146 case "$ac_dir" in 22147 .) ac_abs_builddir=`pwd`;; 22148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22149 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22150 esac;; 22151esac 22152case $ac_abs_builddir in 22153.) ac_abs_top_builddir=${ac_top_builddir}.;; 22154*) 22155 case ${ac_top_builddir}. in 22156 .) ac_abs_top_builddir=$ac_abs_builddir;; 22157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22159 esac;; 22160esac 22161case $ac_abs_builddir in 22162.) ac_abs_srcdir=$ac_srcdir;; 22163*) 22164 case $ac_srcdir in 22165 .) ac_abs_srcdir=$ac_abs_builddir;; 22166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22168 esac;; 22169esac 22170case $ac_abs_builddir in 22171.) ac_abs_top_srcdir=$ac_top_srcdir;; 22172*) 22173 case $ac_top_srcdir in 22174 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22177 esac;; 22178esac 22179 22180 22181 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 22182echo "$as_me: executing $ac_dest commands" >&6;} 22183 case $ac_dest in 22184 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22185 # Strip MF so we end up with the name of the file. 22186 mf=`echo "$mf" | sed -e 's/:.*$//'` 22187 # Check whether this is an Automake generated Makefile or not. 22188 # We used to match only the files named `Makefile.in', but 22189 # some people rename them; so instead we look at the file content. 22190 # Grep'ing the first line is not enough: some people post-process 22191 # each Makefile.in and add a new line on top of each file to say so. 22192 # So let's grep whole file. 22193 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22194 dirpart=`(dirname "$mf") 2>/dev/null || 22195$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22196 X"$mf" : 'X\(//\)[^/]' \| \ 22197 X"$mf" : 'X\(//\)$' \| \ 22198 X"$mf" : 'X\(/\)' \| \ 22199 . : '\(.\)' 2>/dev/null || 22200echo X"$mf" | 22201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22202 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22203 /^X\(\/\/\)$/{ s//\1/; q; } 22204 /^X\(\/\).*/{ s//\1/; q; } 22205 s/.*/./; q'` 22206 else 22207 continue 22208 fi 22209 # Extract the definition of DEPDIR, am__include, and am__quote 22210 # from the Makefile without running `make'. 22211 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22212 test -z "$DEPDIR" && continue 22213 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22214 test -z "am__include" && continue 22215 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22216 # When using ansi2knr, U may be empty or an underscore; expand it 22217 U=`sed -n 's/^U = //p' < "$mf"` 22218 # Find all dependency output files, they are included files with 22219 # $(DEPDIR) in their names. We invoke sed twice because it is the 22220 # simplest approach to changing $(DEPDIR) to its actual value in the 22221 # expansion. 22222 for file in `sed -n " 22223 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22224 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22225 # Make sure the directory exists. 22226 test -f "$dirpart/$file" && continue 22227 fdir=`(dirname "$file") 2>/dev/null || 22228$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22229 X"$file" : 'X\(//\)[^/]' \| \ 22230 X"$file" : 'X\(//\)$' \| \ 22231 X"$file" : 'X\(/\)' \| \ 22232 . : '\(.\)' 2>/dev/null || 22233echo X"$file" | 22234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22235 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22236 /^X\(\/\/\)$/{ s//\1/; q; } 22237 /^X\(\/\).*/{ s//\1/; q; } 22238 s/.*/./; q'` 22239 { if $as_mkdir_p; then 22240 mkdir -p $dirpart/$fdir 22241 else 22242 as_dir=$dirpart/$fdir 22243 as_dirs= 22244 while test ! -d "$as_dir"; do 22245 as_dirs="$as_dir $as_dirs" 22246 as_dir=`(dirname "$as_dir") 2>/dev/null || 22247$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22248 X"$as_dir" : 'X\(//\)[^/]' \| \ 22249 X"$as_dir" : 'X\(//\)$' \| \ 22250 X"$as_dir" : 'X\(/\)' \| \ 22251 . : '\(.\)' 2>/dev/null || 22252echo X"$as_dir" | 22253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22254 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22255 /^X\(\/\/\)$/{ s//\1/; q; } 22256 /^X\(\/\).*/{ s//\1/; q; } 22257 s/.*/./; q'` 22258 done 22259 test ! -n "$as_dirs" || mkdir $as_dirs 22260 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 22261echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 22262 { (exit 1); exit 1; }; }; } 22263 22264 # echo "creating $dirpart/$file" 22265 echo '# dummy' > "$dirpart/$file" 22266 done 22267done 22268 ;; 22269 default ) chmod +x skyutils-config ;; 22270 esac 22271done 22272_ACEOF 22273 22274cat >>$CONFIG_STATUS <<\_ACEOF 22275 22276{ (exit 0); exit 0; } 22277_ACEOF 22278chmod +x $CONFIG_STATUS 22279ac_clean_files=$ac_clean_files_save 22280 22281 22282# configure is writing to config.log, and then calls config.status. 22283# config.status does its own redirection, appending to config.log. 22284# Unfortunately, on DOS this fails, as config.log is still kept open 22285# by configure, so config.status won't be able to write to it; its 22286# output is simply discarded. So we exec the FD to /dev/null, 22287# effectively closing config.log, so it can be properly (re)opened and 22288# appended to by config.status. When coming back to configure, we 22289# need to make the FD available again. 22290if test "$no_create" != yes; then 22291 ac_cs_success=: 22292 ac_config_status_args= 22293 test "$silent" = yes && 22294 ac_config_status_args="$ac_config_status_args --quiet" 22295 exec 5>/dev/null 22296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22297 exec 5>>config.log 22298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22299 # would make configure fail if this is the last instruction. 22300 $ac_cs_success || { (exit 1); exit 1; } 22301fi 22302 22303 22304echo "" 22305echo "***************************" 22306echo "* Compilation options *" 22307echo "***************************" 22308if test "$debug" = "true"; then 22309 tmp="ON" 22310else 22311 tmp="OFF" 22312fi 22313echo "Debug mode : $tmp" 22314if test "$ansi" = "true"; then 22315 tmp="ON" 22316else 22317 tmp="OFF" 22318fi 22319echo "Ansi color mode : $tmp" 22320if test "$trace_internal" = "true"; then 22321 tmp="ON" 22322else 22323 tmp="OFF" 22324fi 22325echo "Internal malloc trace : $tmp" 22326if test "$reentrant" = "true"; then 22327 tmp="ON" 22328else 22329 tmp="OFF" 22330fi 22331echo "Reentrant capability : $tmp" 22332if test "$cygwin" = "true"; then 22333 tmp="ON" 22334else 22335 tmp="OFF" 22336fi 22337echo "Cygwin -mno-cygwin : $tmp" 22338if test "$ssl" = "true"; then 22339 tmp="ON" 22340else 22341 tmp="OFF" 22342fi 22343echo "SSL support : $tmp" 22344echo 22345echo "Type 'make' to build skyutils library (try 'gmake' if it fails)" 22346echo 22347