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="configure.in" 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBSDL_LIBS LIBSDL_CFLAGS LIBSDL_RPATH LIBOBJS 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_CXX_set=${CXX+set} 908ac_env_CXX_value=$CXX 909ac_cv_env_CXX_set=${CXX+set} 910ac_cv_env_CXX_value=$CXX 911ac_env_CXXFLAGS_set=${CXXFLAGS+set} 912ac_env_CXXFLAGS_value=$CXXFLAGS 913ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 914ac_cv_env_CXXFLAGS_value=$CXXFLAGS 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_CC_set=${CC+set} 924ac_env_CC_value=$CC 925ac_cv_env_CC_set=${CC+set} 926ac_cv_env_CC_value=$CC 927ac_env_CFLAGS_set=${CFLAGS+set} 928ac_env_CFLAGS_value=$CFLAGS 929ac_cv_env_CFLAGS_set=${CFLAGS+set} 930ac_cv_env_CFLAGS_value=$CFLAGS 931ac_env_CPP_set=${CPP+set} 932ac_env_CPP_value=$CPP 933ac_cv_env_CPP_set=${CPP+set} 934ac_cv_env_CPP_value=$CPP 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-shared[=PKGS] 1029 build shared libraries [default=yes] 1030 --enable-static[=PKGS] 1031 build static libraries [default=yes] 1032 --enable-fast-install[=PKGS] 1033 optimize for fast installation [default=yes] 1034 --disable-libtool-lock avoid locking (might break parallel builds) 1035 1036Optional Packages: 1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1040 --with-pic try to use only PIC/non-PIC objects [default=use 1041 both] 1042 --with-tags[=TAGS] 1043 include additional configurations [automatic] 1044 1045Some influential environment variables: 1046 CXX C++ compiler command 1047 CXXFLAGS C++ compiler flags 1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1049 nonstandard directory <lib dir> 1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1051 headers in a nonstandard directory <include dir> 1052 CC C compiler command 1053 CFLAGS C compiler flags 1054 CPP C preprocessor 1055 CXXCPP C++ preprocessor 1056 F77 Fortran 77 compiler command 1057 FFLAGS Fortran 77 compiler flags 1058 1059Use these variables to override the choices made by `configure' or to help 1060it to find libraries and programs with nonstandard names/locations. 1061 1062_ACEOF 1063fi 1064 1065if test "$ac_init_help" = "recursive"; then 1066 # If there are subdirs, report their specific --help. 1067 ac_popdir=`pwd` 1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1069 test -d $ac_dir || continue 1070 ac_builddir=. 1071 1072if test "$ac_dir" != .; then 1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1074 # A "../" for each directory in $ac_dir_suffix. 1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1076else 1077 ac_dir_suffix= ac_top_builddir= 1078fi 1079 1080case $srcdir in 1081 .) # No --srcdir option. We are building in place. 1082 ac_srcdir=. 1083 if test -z "$ac_top_builddir"; then 1084 ac_top_srcdir=. 1085 else 1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1087 fi ;; 1088 [\\/]* | ?:[\\/]* ) # Absolute path. 1089 ac_srcdir=$srcdir$ac_dir_suffix; 1090 ac_top_srcdir=$srcdir ;; 1091 *) # Relative path. 1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1093 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1094esac 1095 1096# Do not use `cd foo && pwd` to compute absolute paths, because 1097# the directories may not exist. 1098case `pwd` in 1099.) ac_abs_builddir="$ac_dir";; 1100*) 1101 case "$ac_dir" in 1102 .) ac_abs_builddir=`pwd`;; 1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1104 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1105 esac;; 1106esac 1107case $ac_abs_builddir in 1108.) ac_abs_top_builddir=${ac_top_builddir}.;; 1109*) 1110 case ${ac_top_builddir}. in 1111 .) ac_abs_top_builddir=$ac_abs_builddir;; 1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1114 esac;; 1115esac 1116case $ac_abs_builddir in 1117.) ac_abs_srcdir=$ac_srcdir;; 1118*) 1119 case $ac_srcdir in 1120 .) ac_abs_srcdir=$ac_abs_builddir;; 1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1123 esac;; 1124esac 1125case $ac_abs_builddir in 1126.) ac_abs_top_srcdir=$ac_top_srcdir;; 1127*) 1128 case $ac_top_srcdir in 1129 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1132 esac;; 1133esac 1134 1135 cd $ac_dir 1136 # Check for guested configure; otherwise get Cygnus style configure. 1137 if test -f $ac_srcdir/configure.gnu; then 1138 echo 1139 $SHELL $ac_srcdir/configure.gnu --help=recursive 1140 elif test -f $ac_srcdir/configure; then 1141 echo 1142 $SHELL $ac_srcdir/configure --help=recursive 1143 elif test -f $ac_srcdir/configure.ac || 1144 test -f $ac_srcdir/configure.in; then 1145 echo 1146 $ac_configure --help 1147 else 1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1149 fi 1150 cd $ac_popdir 1151 done 1152fi 1153 1154test -n "$ac_init_help" && exit 0 1155if $ac_init_version; then 1156 cat <<\_ACEOF 1157 1158Copyright (C) 2003 Free Software Foundation, Inc. 1159This configure script is free software; the Free Software Foundation 1160gives unlimited permission to copy, distribute and modify it. 1161_ACEOF 1162 exit 0 1163fi 1164exec 5>config.log 1165cat >&5 <<_ACEOF 1166This file contains any messages produced by compilers while 1167running configure, to aid debugging if configure makes a mistake. 1168 1169It was created by $as_me, which was 1170generated by GNU Autoconf 2.59. Invocation command line was 1171 1172 $ $0 $@ 1173 1174_ACEOF 1175{ 1176cat <<_ASUNAME 1177## --------- ## 1178## Platform. ## 1179## --------- ## 1180 1181hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1182uname -m = `(uname -m) 2>/dev/null || echo unknown` 1183uname -r = `(uname -r) 2>/dev/null || echo unknown` 1184uname -s = `(uname -s) 2>/dev/null || echo unknown` 1185uname -v = `(uname -v) 2>/dev/null || echo unknown` 1186 1187/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1188/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1189 1190/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1191/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1192/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1193hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1194/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1195/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1196/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1197 1198_ASUNAME 1199 1200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1201for as_dir in $PATH 1202do 1203 IFS=$as_save_IFS 1204 test -z "$as_dir" && as_dir=. 1205 echo "PATH: $as_dir" 1206done 1207 1208} >&5 1209 1210cat >&5 <<_ACEOF 1211 1212 1213## ----------- ## 1214## Core tests. ## 1215## ----------- ## 1216 1217_ACEOF 1218 1219 1220# Keep a trace of the command line. 1221# Strip out --no-create and --no-recursion so they do not pile up. 1222# Strip out --silent because we don't want to record it for future runs. 1223# Also quote any args containing shell meta-characters. 1224# Make two passes to allow for proper duplicate-argument suppression. 1225ac_configure_args= 1226ac_configure_args0= 1227ac_configure_args1= 1228ac_sep= 1229ac_must_keep_next=false 1230for ac_pass in 1 2 1231do 1232 for ac_arg 1233 do 1234 case $ac_arg in 1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1237 | -silent | --silent | --silen | --sile | --sil) 1238 continue ;; 1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1241 esac 1242 case $ac_pass in 1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1244 2) 1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1246 if test $ac_must_keep_next = true; then 1247 ac_must_keep_next=false # Got value, back to normal. 1248 else 1249 case $ac_arg in 1250 *=* | --config-cache | -C | -disable-* | --disable-* \ 1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1253 | -with-* | --with-* | -without-* | --without-* | --x) 1254 case "$ac_configure_args0 " in 1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1256 esac 1257 ;; 1258 -* ) ac_must_keep_next=true ;; 1259 esac 1260 fi 1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1262 # Get rid of the leading space. 1263 ac_sep=" " 1264 ;; 1265 esac 1266 done 1267done 1268$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1269$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1270 1271# When interrupted or exit'd, cleanup temporary files, and complete 1272# config.log. We remove comments because anyway the quotes in there 1273# would cause problems or look ugly. 1274# WARNING: Be sure not to use single quotes in there, as some shells, 1275# such as our DU 5.0 friend, will then `close' the trap. 1276trap 'exit_status=$? 1277 # Save into config.log some information that might help in debugging. 1278 { 1279 echo 1280 1281 cat <<\_ASBOX 1282## ---------------- ## 1283## Cache variables. ## 1284## ---------------- ## 1285_ASBOX 1286 echo 1287 # The following way of writing the cache mishandles newlines in values, 1288{ 1289 (set) 2>&1 | 1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1291 *ac_space=\ *) 1292 sed -n \ 1293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1295 ;; 1296 *) 1297 sed -n \ 1298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1299 ;; 1300 esac; 1301} 1302 echo 1303 1304 cat <<\_ASBOX 1305## ----------------- ## 1306## Output variables. ## 1307## ----------------- ## 1308_ASBOX 1309 echo 1310 for ac_var in $ac_subst_vars 1311 do 1312 eval ac_val=$`echo $ac_var` 1313 echo "$ac_var='"'"'$ac_val'"'"'" 1314 done | sort 1315 echo 1316 1317 if test -n "$ac_subst_files"; then 1318 cat <<\_ASBOX 1319## ------------- ## 1320## Output files. ## 1321## ------------- ## 1322_ASBOX 1323 echo 1324 for ac_var in $ac_subst_files 1325 do 1326 eval ac_val=$`echo $ac_var` 1327 echo "$ac_var='"'"'$ac_val'"'"'" 1328 done | sort 1329 echo 1330 fi 1331 1332 if test -s confdefs.h; then 1333 cat <<\_ASBOX 1334## ----------- ## 1335## confdefs.h. ## 1336## ----------- ## 1337_ASBOX 1338 echo 1339 sed "/^$/d" confdefs.h | sort 1340 echo 1341 fi 1342 test "$ac_signal" != 0 && 1343 echo "$as_me: caught signal $ac_signal" 1344 echo "$as_me: exit $exit_status" 1345 } >&5 1346 rm -f core *.core && 1347 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1348 exit $exit_status 1349 ' 0 1350for ac_signal in 1 2 13 15; do 1351 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1352done 1353ac_signal=0 1354 1355# confdefs.h avoids OS command line length limits that DEFS can exceed. 1356rm -rf conftest* confdefs.h 1357# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1358echo >confdefs.h 1359 1360# Predefined preprocessor variables. 1361 1362cat >>confdefs.h <<_ACEOF 1363#define PACKAGE_NAME "$PACKAGE_NAME" 1364_ACEOF 1365 1366 1367cat >>confdefs.h <<_ACEOF 1368#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1369_ACEOF 1370 1371 1372cat >>confdefs.h <<_ACEOF 1373#define PACKAGE_VERSION "$PACKAGE_VERSION" 1374_ACEOF 1375 1376 1377cat >>confdefs.h <<_ACEOF 1378#define PACKAGE_STRING "$PACKAGE_STRING" 1379_ACEOF 1380 1381 1382cat >>confdefs.h <<_ACEOF 1383#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1384_ACEOF 1385 1386 1387# Let the site file select an alternate cache file if it wants to. 1388# Prefer explicitly selected file to automatically selected ones. 1389if test -z "$CONFIG_SITE"; then 1390 if test "x$prefix" != xNONE; then 1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1392 else 1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1394 fi 1395fi 1396for ac_site_file in $CONFIG_SITE; do 1397 if test -r "$ac_site_file"; then 1398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1399echo "$as_me: loading site script $ac_site_file" >&6;} 1400 sed 's/^/| /' "$ac_site_file" >&5 1401 . "$ac_site_file" 1402 fi 1403done 1404 1405if test -r "$cache_file"; then 1406 # Some versions of bash will fail to source /dev/null (special 1407 # files actually), so we avoid doing that. 1408 if test -f "$cache_file"; then 1409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1410echo "$as_me: loading cache $cache_file" >&6;} 1411 case $cache_file in 1412 [\\/]* | ?:[\\/]* ) . $cache_file;; 1413 *) . ./$cache_file;; 1414 esac 1415 fi 1416else 1417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1418echo "$as_me: creating cache $cache_file" >&6;} 1419 >$cache_file 1420fi 1421 1422# Check that the precious variables saved in the cache have kept the same 1423# value. 1424ac_cache_corrupted=false 1425for ac_var in `(set) 2>&1 | 1426 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1427 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1428 eval ac_new_set=\$ac_env_${ac_var}_set 1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1430 eval ac_new_val="\$ac_env_${ac_var}_value" 1431 case $ac_old_set,$ac_new_set in 1432 set,) 1433 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1434echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1435 ac_cache_corrupted=: ;; 1436 ,set) 1437 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1438echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1439 ac_cache_corrupted=: ;; 1440 ,);; 1441 *) 1442 if test "x$ac_old_val" != "x$ac_new_val"; then 1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1444echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1446echo "$as_me: former value: $ac_old_val" >&2;} 1447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1448echo "$as_me: current value: $ac_new_val" >&2;} 1449 ac_cache_corrupted=: 1450 fi;; 1451 esac 1452 # Pass precious variables to config.status. 1453 if test "$ac_new_set" = set; then 1454 case $ac_new_val in 1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1456 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1457 *) ac_arg=$ac_var=$ac_new_val ;; 1458 esac 1459 case " $ac_configure_args " in 1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1462 esac 1463 fi 1464done 1465if $ac_cache_corrupted; then 1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1467echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1470 { (exit 1); exit 1; }; } 1471fi 1472 1473ac_ext=c 1474ac_cpp='$CPP $CPPFLAGS' 1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1477ac_compiler_gnu=$ac_cv_c_compiler_gnu 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 ac_config_headers="$ac_config_headers config.h" 1499 1500am__api_version="1.9" 1501ac_aux_dir= 1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1503 if test -f $ac_dir/install-sh; then 1504 ac_aux_dir=$ac_dir 1505 ac_install_sh="$ac_aux_dir/install-sh -c" 1506 break 1507 elif test -f $ac_dir/install.sh; then 1508 ac_aux_dir=$ac_dir 1509 ac_install_sh="$ac_aux_dir/install.sh -c" 1510 break 1511 elif test -f $ac_dir/shtool; then 1512 ac_aux_dir=$ac_dir 1513 ac_install_sh="$ac_aux_dir/shtool install -c" 1514 break 1515 fi 1516done 1517if test -z "$ac_aux_dir"; then 1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1520 { (exit 1); exit 1; }; } 1521fi 1522ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1523ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1525 1526# Find a good install program. We prefer a C program (faster), 1527# so one script is as good as another. But avoid the broken or 1528# incompatible versions: 1529# SysV /etc/install, /usr/sbin/install 1530# SunOS /usr/etc/install 1531# IRIX /sbin/install 1532# AIX /bin/install 1533# AmigaOS /C/install, which installs bootblocks on floppy discs 1534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1535# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1537# OS/2's system install, which has a completely different semantic 1538# ./install, which can be erroneously created by make from ./install.sh. 1539echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1540echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1541if test -z "$INSTALL"; then 1542if test "${ac_cv_path_install+set}" = set; then 1543 echo $ECHO_N "(cached) $ECHO_C" >&6 1544else 1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1546for as_dir in $PATH 1547do 1548 IFS=$as_save_IFS 1549 test -z "$as_dir" && as_dir=. 1550 # Account for people who put trailing slashes in PATH elements. 1551case $as_dir/ in 1552 ./ | .// | /cC/* | \ 1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1555 /usr/ucb/* ) ;; 1556 *) 1557 # OSF1 and SCO ODT 3.0 have their own names for install. 1558 # Don't use installbsd from OSF since it installs stuff as root 1559 # by default. 1560 for ac_prog in ginstall scoinst install; do 1561 for ac_exec_ext in '' $ac_executable_extensions; do 1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1563 if test $ac_prog = install && 1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1565 # AIX install. It has an incompatible calling convention. 1566 : 1567 elif test $ac_prog = install && 1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1569 # program-specific install script used by HP pwplus--don't use. 1570 : 1571 else 1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1573 break 3 1574 fi 1575 fi 1576 done 1577 done 1578 ;; 1579esac 1580done 1581 1582 1583fi 1584 if test "${ac_cv_path_install+set}" = set; then 1585 INSTALL=$ac_cv_path_install 1586 else 1587 # As a last resort, use the slow shell script. We don't cache a 1588 # path for INSTALL within a source directory, because that will 1589 # break other packages using the cache if that directory is 1590 # removed, or if the path is relative. 1591 INSTALL=$ac_install_sh 1592 fi 1593fi 1594echo "$as_me:$LINENO: result: $INSTALL" >&5 1595echo "${ECHO_T}$INSTALL" >&6 1596 1597# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1598# It thinks the first close brace ends the variable substitution. 1599test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1600 1601test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1602 1603test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1604 1605echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1606echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1607# Just in case 1608sleep 1 1609echo timestamp > conftest.file 1610# Do `set' in a subshell so we don't clobber the current shell's 1611# arguments. Must try -L first in case configure is actually a 1612# symlink; some systems play weird games with the mod time of symlinks 1613# (eg FreeBSD returns the mod time of the symlink's containing 1614# directory). 1615if ( 1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1617 if test "$*" = "X"; then 1618 # -L didn't work. 1619 set X `ls -t $srcdir/configure conftest.file` 1620 fi 1621 rm -f conftest.file 1622 if test "$*" != "X $srcdir/configure conftest.file" \ 1623 && test "$*" != "X conftest.file $srcdir/configure"; then 1624 1625 # If neither matched, then we have a broken ls. This can happen 1626 # if, for instance, CONFIG_SHELL is bash and it inherits a 1627 # broken ls alias from the environment. This has actually 1628 # happened. Such a system could not be considered "sane". 1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1630alias in your environment" >&5 1631echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1632alias in your environment" >&2;} 1633 { (exit 1); exit 1; }; } 1634 fi 1635 1636 test "$2" = conftest.file 1637 ) 1638then 1639 # Ok. 1640 : 1641else 1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1643Check your system clock" >&5 1644echo "$as_me: error: newly created file is older than distributed files! 1645Check your system clock" >&2;} 1646 { (exit 1); exit 1; }; } 1647fi 1648echo "$as_me:$LINENO: result: yes" >&5 1649echo "${ECHO_T}yes" >&6 1650test "$program_prefix" != NONE && 1651 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1652# Use a double $ so make ignores it. 1653test "$program_suffix" != NONE && 1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1655# Double any \ or $. echo might interpret backslashes. 1656# By default was `s,x,x', remove it if useless. 1657cat <<\_ACEOF >conftest.sed 1658s/[\\$]/&&/g;s/;s,x,x,$// 1659_ACEOF 1660program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1661rm conftest.sed 1662 1663# expand $ac_aux_dir to an absolute path 1664am_aux_dir=`cd $ac_aux_dir && pwd` 1665 1666test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1667# Use eval to expand $SHELL 1668if eval "$MISSING --run true"; then 1669 am_missing_run="$MISSING --run " 1670else 1671 am_missing_run= 1672 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1673echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1674fi 1675 1676if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1677 # We used to keeping the `.' as first argument, in order to 1678 # allow $(mkdir_p) to be used without argument. As in 1679 # $(mkdir_p) $(somedir) 1680 # where $(somedir) is conditionally defined. However this is wrong 1681 # for two reasons: 1682 # 1. if the package is installed by a user who cannot write `.' 1683 # make install will fail, 1684 # 2. the above comment should most certainly read 1685 # $(mkdir_p) $(DESTDIR)$(somedir) 1686 # so it does not work when $(somedir) is undefined and 1687 # $(DESTDIR) is not. 1688 # To support the latter case, we have to write 1689 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1690 # so the `.' trick is pointless. 1691 mkdir_p='mkdir -p --' 1692else 1693 # On NextStep and OpenStep, the `mkdir' command does not 1694 # recognize any option. It will interpret all options as 1695 # directories to create, and then abort because `.' already 1696 # exists. 1697 for d in ./-p ./--version; 1698 do 1699 test -d $d && rmdir $d 1700 done 1701 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1702 if test -f "$ac_aux_dir/mkinstalldirs"; then 1703 mkdir_p='$(mkinstalldirs)' 1704 else 1705 mkdir_p='$(install_sh) -d' 1706 fi 1707fi 1708 1709for ac_prog in gawk mawk nawk awk 1710do 1711 # Extract the first word of "$ac_prog", so it can be a program name with args. 1712set dummy $ac_prog; ac_word=$2 1713echo "$as_me:$LINENO: checking for $ac_word" >&5 1714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1715if test "${ac_cv_prog_AWK+set}" = set; then 1716 echo $ECHO_N "(cached) $ECHO_C" >&6 1717else 1718 if test -n "$AWK"; then 1719 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1720else 1721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1722for as_dir in $PATH 1723do 1724 IFS=$as_save_IFS 1725 test -z "$as_dir" && as_dir=. 1726 for ac_exec_ext in '' $ac_executable_extensions; do 1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1728 ac_cv_prog_AWK="$ac_prog" 1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1730 break 2 1731 fi 1732done 1733done 1734 1735fi 1736fi 1737AWK=$ac_cv_prog_AWK 1738if test -n "$AWK"; then 1739 echo "$as_me:$LINENO: result: $AWK" >&5 1740echo "${ECHO_T}$AWK" >&6 1741else 1742 echo "$as_me:$LINENO: result: no" >&5 1743echo "${ECHO_T}no" >&6 1744fi 1745 1746 test -n "$AWK" && break 1747done 1748 1749echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1750echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1751set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1752if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1753 echo $ECHO_N "(cached) $ECHO_C" >&6 1754else 1755 cat >conftest.make <<\_ACEOF 1756all: 1757 @echo 'ac_maketemp="$(MAKE)"' 1758_ACEOF 1759# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1760eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1761if test -n "$ac_maketemp"; then 1762 eval ac_cv_prog_make_${ac_make}_set=yes 1763else 1764 eval ac_cv_prog_make_${ac_make}_set=no 1765fi 1766rm -f conftest.make 1767fi 1768if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1769 echo "$as_me:$LINENO: result: yes" >&5 1770echo "${ECHO_T}yes" >&6 1771 SET_MAKE= 1772else 1773 echo "$as_me:$LINENO: result: no" >&5 1774echo "${ECHO_T}no" >&6 1775 SET_MAKE="MAKE=${MAKE-make}" 1776fi 1777 1778rm -rf .tst 2>/dev/null 1779mkdir .tst 2>/dev/null 1780if test -d .tst; then 1781 am__leading_dot=. 1782else 1783 am__leading_dot=_ 1784fi 1785rmdir .tst 2>/dev/null 1786 1787# test to see if srcdir already configured 1788if test "`cd $srcdir && pwd`" != "`pwd`" && 1789 test -f $srcdir/config.status; then 1790 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1791echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1792 { (exit 1); exit 1; }; } 1793fi 1794 1795# test whether we have cygpath 1796if test -z "$CYGPATH_W"; then 1797 if (cygpath --version) >/dev/null 2>/dev/null; then 1798 CYGPATH_W='cygpath -w' 1799 else 1800 CYGPATH_W=echo 1801 fi 1802fi 1803 1804 1805# Define the identity of the package. 1806 PACKAGE=interlogic 1807 VERSION=0.1 1808 1809 1810cat >>confdefs.h <<_ACEOF 1811#define PACKAGE "$PACKAGE" 1812_ACEOF 1813 1814 1815cat >>confdefs.h <<_ACEOF 1816#define VERSION "$VERSION" 1817_ACEOF 1818 1819# Some tools Automake needs. 1820 1821ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1822 1823 1824AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1825 1826 1827AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1828 1829 1830AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1831 1832 1833MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1834 1835install_sh=${install_sh-"$am_aux_dir/install-sh"} 1836 1837# Installed binaries are usually stripped using `strip' when the user 1838# run `make install-strip'. However `strip' might not be the right 1839# tool to use in cross-compilation environments, therefore Automake 1840# will honor the `STRIP' environment variable to overrule this program. 1841if test "$cross_compiling" != no; then 1842 if test -n "$ac_tool_prefix"; then 1843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1844set dummy ${ac_tool_prefix}strip; ac_word=$2 1845echo "$as_me:$LINENO: checking for $ac_word" >&5 1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1847if test "${ac_cv_prog_STRIP+set}" = set; then 1848 echo $ECHO_N "(cached) $ECHO_C" >&6 1849else 1850 if test -n "$STRIP"; then 1851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1852else 1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1854for as_dir in $PATH 1855do 1856 IFS=$as_save_IFS 1857 test -z "$as_dir" && as_dir=. 1858 for ac_exec_ext in '' $ac_executable_extensions; do 1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1860 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1862 break 2 1863 fi 1864done 1865done 1866 1867fi 1868fi 1869STRIP=$ac_cv_prog_STRIP 1870if test -n "$STRIP"; then 1871 echo "$as_me:$LINENO: result: $STRIP" >&5 1872echo "${ECHO_T}$STRIP" >&6 1873else 1874 echo "$as_me:$LINENO: result: no" >&5 1875echo "${ECHO_T}no" >&6 1876fi 1877 1878fi 1879if test -z "$ac_cv_prog_STRIP"; then 1880 ac_ct_STRIP=$STRIP 1881 # Extract the first word of "strip", so it can be a program name with args. 1882set dummy strip; ac_word=$2 1883echo "$as_me:$LINENO: checking for $ac_word" >&5 1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1885if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1886 echo $ECHO_N "(cached) $ECHO_C" >&6 1887else 1888 if test -n "$ac_ct_STRIP"; then 1889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1890else 1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1892for as_dir in $PATH 1893do 1894 IFS=$as_save_IFS 1895 test -z "$as_dir" && as_dir=. 1896 for ac_exec_ext in '' $ac_executable_extensions; do 1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1898 ac_cv_prog_ac_ct_STRIP="strip" 1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1900 break 2 1901 fi 1902done 1903done 1904 1905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1906fi 1907fi 1908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1909if test -n "$ac_ct_STRIP"; then 1910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1911echo "${ECHO_T}$ac_ct_STRIP" >&6 1912else 1913 echo "$as_me:$LINENO: result: no" >&5 1914echo "${ECHO_T}no" >&6 1915fi 1916 1917 STRIP=$ac_ct_STRIP 1918else 1919 STRIP="$ac_cv_prog_STRIP" 1920fi 1921 1922fi 1923INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1924 1925# We need awk for the "check" target. The system "awk" is bad on 1926# some platforms. 1927# Always define AMTAR for backward compatibility. 1928 1929AMTAR=${AMTAR-"${am_missing_run}tar"} 1930 1931am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1932 1933 1934 1935 1936 1937 1938ac_ext=cc 1939ac_cpp='$CXXCPP $CPPFLAGS' 1940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1943 1944ac_ext=cc 1945ac_cpp='$CXXCPP $CPPFLAGS' 1946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1949if test -n "$ac_tool_prefix"; then 1950 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1951 do 1952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1953set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1954echo "$as_me:$LINENO: checking for $ac_word" >&5 1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1956if test "${ac_cv_prog_CXX+set}" = set; then 1957 echo $ECHO_N "(cached) $ECHO_C" >&6 1958else 1959 if test -n "$CXX"; then 1960 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1961else 1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1963for as_dir in $PATH 1964do 1965 IFS=$as_save_IFS 1966 test -z "$as_dir" && as_dir=. 1967 for ac_exec_ext in '' $ac_executable_extensions; do 1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1969 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1971 break 2 1972 fi 1973done 1974done 1975 1976fi 1977fi 1978CXX=$ac_cv_prog_CXX 1979if test -n "$CXX"; then 1980 echo "$as_me:$LINENO: result: $CXX" >&5 1981echo "${ECHO_T}$CXX" >&6 1982else 1983 echo "$as_me:$LINENO: result: no" >&5 1984echo "${ECHO_T}no" >&6 1985fi 1986 1987 test -n "$CXX" && break 1988 done 1989fi 1990if test -z "$CXX"; then 1991 ac_ct_CXX=$CXX 1992 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1993do 1994 # Extract the first word of "$ac_prog", so it can be a program name with args. 1995set dummy $ac_prog; ac_word=$2 1996echo "$as_me:$LINENO: checking for $ac_word" >&5 1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1998if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1999 echo $ECHO_N "(cached) $ECHO_C" >&6 2000else 2001 if test -n "$ac_ct_CXX"; then 2002 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2003else 2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005for as_dir in $PATH 2006do 2007 IFS=$as_save_IFS 2008 test -z "$as_dir" && as_dir=. 2009 for ac_exec_ext in '' $ac_executable_extensions; do 2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2011 ac_cv_prog_ac_ct_CXX="$ac_prog" 2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2013 break 2 2014 fi 2015done 2016done 2017 2018fi 2019fi 2020ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2021if test -n "$ac_ct_CXX"; then 2022 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2023echo "${ECHO_T}$ac_ct_CXX" >&6 2024else 2025 echo "$as_me:$LINENO: result: no" >&5 2026echo "${ECHO_T}no" >&6 2027fi 2028 2029 test -n "$ac_ct_CXX" && break 2030done 2031test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2032 2033 CXX=$ac_ct_CXX 2034fi 2035 2036 2037# Provide some information about the compiler. 2038echo "$as_me:$LINENO:" \ 2039 "checking for C++ compiler version" >&5 2040ac_compiler=`set X $ac_compile; echo $2` 2041{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2042 (eval $ac_compiler --version </dev/null >&5) 2>&5 2043 ac_status=$? 2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2045 (exit $ac_status); } 2046{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2047 (eval $ac_compiler -v </dev/null >&5) 2>&5 2048 ac_status=$? 2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2050 (exit $ac_status); } 2051{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2052 (eval $ac_compiler -V </dev/null >&5) 2>&5 2053 ac_status=$? 2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2055 (exit $ac_status); } 2056 2057cat >conftest.$ac_ext <<_ACEOF 2058/* confdefs.h. */ 2059_ACEOF 2060cat confdefs.h >>conftest.$ac_ext 2061cat >>conftest.$ac_ext <<_ACEOF 2062/* end confdefs.h. */ 2063 2064int 2065main () 2066{ 2067 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072ac_clean_files_save=$ac_clean_files 2073ac_clean_files="$ac_clean_files a.out a.exe b.out" 2074# Try to create an executable without -o first, disregard a.out. 2075# It will help us diagnose broken compilers, and finding out an intuition 2076# of exeext. 2077echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2078echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 2079ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2080if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2081 (eval $ac_link_default) 2>&5 2082 ac_status=$? 2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2084 (exit $ac_status); }; then 2085 # Find the output, starting from the most likely. This scheme is 2086# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2087# resort. 2088 2089# Be careful to initialize this variable, since it used to be cached. 2090# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2091ac_cv_exeext= 2092# b.out is created by i960 compilers. 2093for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2094do 2095 test -f "$ac_file" || continue 2096 case $ac_file in 2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2098 ;; 2099 conftest.$ac_ext ) 2100 # This is the source file. 2101 ;; 2102 [ab].out ) 2103 # We found the default executable, but exeext='' is most 2104 # certainly right. 2105 break;; 2106 *.* ) 2107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2108 # FIXME: I believe we export ac_cv_exeext for Libtool, 2109 # but it would be cool to find out if it's true. Does anybody 2110 # maintain Libtool? --akim. 2111 export ac_cv_exeext 2112 break;; 2113 * ) 2114 break;; 2115 esac 2116done 2117else 2118 echo "$as_me: failed program was:" >&5 2119sed 's/^/| /' conftest.$ac_ext >&5 2120 2121{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2122See \`config.log' for more details." >&5 2123echo "$as_me: error: C++ compiler cannot create executables 2124See \`config.log' for more details." >&2;} 2125 { (exit 77); exit 77; }; } 2126fi 2127 2128ac_exeext=$ac_cv_exeext 2129echo "$as_me:$LINENO: result: $ac_file" >&5 2130echo "${ECHO_T}$ac_file" >&6 2131 2132# Check the compiler produces executables we can run. If not, either 2133# the compiler is broken, or we cross compile. 2134echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2135echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 2136# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2137# If not cross compiling, check that we can run a simple program. 2138if test "$cross_compiling" != yes; then 2139 if { ac_try='./$ac_file' 2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2141 (eval $ac_try) 2>&5 2142 ac_status=$? 2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2144 (exit $ac_status); }; }; then 2145 cross_compiling=no 2146 else 2147 if test "$cross_compiling" = maybe; then 2148 cross_compiling=yes 2149 else 2150 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2151If you meant to cross compile, use \`--host'. 2152See \`config.log' for more details." >&5 2153echo "$as_me: error: cannot run C++ compiled programs. 2154If you meant to cross compile, use \`--host'. 2155See \`config.log' for more details." >&2;} 2156 { (exit 1); exit 1; }; } 2157 fi 2158 fi 2159fi 2160echo "$as_me:$LINENO: result: yes" >&5 2161echo "${ECHO_T}yes" >&6 2162 2163rm -f a.out a.exe conftest$ac_cv_exeext b.out 2164ac_clean_files=$ac_clean_files_save 2165# Check the compiler produces executables we can run. If not, either 2166# the compiler is broken, or we cross compile. 2167echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2168echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2169echo "$as_me:$LINENO: result: $cross_compiling" >&5 2170echo "${ECHO_T}$cross_compiling" >&6 2171 2172echo "$as_me:$LINENO: checking for suffix of executables" >&5 2173echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2175 (eval $ac_link) 2>&5 2176 ac_status=$? 2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2178 (exit $ac_status); }; then 2179 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2180# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2181# work properly (i.e., refer to `conftest.exe'), while it won't with 2182# `rm'. 2183for ac_file in conftest.exe conftest conftest.*; do 2184 test -f "$ac_file" || continue 2185 case $ac_file in 2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2188 export ac_cv_exeext 2189 break;; 2190 * ) break;; 2191 esac 2192done 2193else 2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2195See \`config.log' for more details." >&5 2196echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2197See \`config.log' for more details." >&2;} 2198 { (exit 1); exit 1; }; } 2199fi 2200 2201rm -f conftest$ac_cv_exeext 2202echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2203echo "${ECHO_T}$ac_cv_exeext" >&6 2204 2205rm -f conftest.$ac_ext 2206EXEEXT=$ac_cv_exeext 2207ac_exeext=$EXEEXT 2208echo "$as_me:$LINENO: checking for suffix of object files" >&5 2209echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2210if test "${ac_cv_objext+set}" = set; then 2211 echo $ECHO_N "(cached) $ECHO_C" >&6 2212else 2213 cat >conftest.$ac_ext <<_ACEOF 2214/* confdefs.h. */ 2215_ACEOF 2216cat confdefs.h >>conftest.$ac_ext 2217cat >>conftest.$ac_ext <<_ACEOF 2218/* end confdefs.h. */ 2219 2220int 2221main () 2222{ 2223 2224 ; 2225 return 0; 2226} 2227_ACEOF 2228rm -f conftest.o conftest.obj 2229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2230 (eval $ac_compile) 2>&5 2231 ac_status=$? 2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2233 (exit $ac_status); }; then 2234 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2235 case $ac_file in 2236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2238 break;; 2239 esac 2240done 2241else 2242 echo "$as_me: failed program was:" >&5 2243sed 's/^/| /' conftest.$ac_ext >&5 2244 2245{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2246See \`config.log' for more details." >&5 2247echo "$as_me: error: cannot compute suffix of object files: cannot compile 2248See \`config.log' for more details." >&2;} 2249 { (exit 1); exit 1; }; } 2250fi 2251 2252rm -f conftest.$ac_cv_objext conftest.$ac_ext 2253fi 2254echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2255echo "${ECHO_T}$ac_cv_objext" >&6 2256OBJEXT=$ac_cv_objext 2257ac_objext=$OBJEXT 2258echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2259echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2260if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2261 echo $ECHO_N "(cached) $ECHO_C" >&6 2262else 2263 cat >conftest.$ac_ext <<_ACEOF 2264/* confdefs.h. */ 2265_ACEOF 2266cat confdefs.h >>conftest.$ac_ext 2267cat >>conftest.$ac_ext <<_ACEOF 2268/* end confdefs.h. */ 2269 2270int 2271main () 2272{ 2273#ifndef __GNUC__ 2274 choke me 2275#endif 2276 2277 ; 2278 return 0; 2279} 2280_ACEOF 2281rm -f conftest.$ac_objext 2282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2283 (eval $ac_compile) 2>conftest.er1 2284 ac_status=$? 2285 grep -v '^ *+' conftest.er1 >conftest.err 2286 rm -f conftest.er1 2287 cat conftest.err >&5 2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2289 (exit $ac_status); } && 2290 { ac_try='test -z "$ac_cxx_werror_flag" 2291 || test ! -s conftest.err' 2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2293 (eval $ac_try) 2>&5 2294 ac_status=$? 2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2296 (exit $ac_status); }; } && 2297 { ac_try='test -s conftest.$ac_objext' 2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2299 (eval $ac_try) 2>&5 2300 ac_status=$? 2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2302 (exit $ac_status); }; }; then 2303 ac_compiler_gnu=yes 2304else 2305 echo "$as_me: failed program was:" >&5 2306sed 's/^/| /' conftest.$ac_ext >&5 2307 2308ac_compiler_gnu=no 2309fi 2310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2311ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2312 2313fi 2314echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2315echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2316GXX=`test $ac_compiler_gnu = yes && echo yes` 2317ac_test_CXXFLAGS=${CXXFLAGS+set} 2318ac_save_CXXFLAGS=$CXXFLAGS 2319CXXFLAGS="-g" 2320echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2321echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2322if test "${ac_cv_prog_cxx_g+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 cat >conftest.$ac_ext <<_ACEOF 2326/* confdefs.h. */ 2327_ACEOF 2328cat confdefs.h >>conftest.$ac_ext 2329cat >>conftest.$ac_ext <<_ACEOF 2330/* end confdefs.h. */ 2331 2332int 2333main () 2334{ 2335 2336 ; 2337 return 0; 2338} 2339_ACEOF 2340rm -f conftest.$ac_objext 2341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2342 (eval $ac_compile) 2>conftest.er1 2343 ac_status=$? 2344 grep -v '^ *+' conftest.er1 >conftest.err 2345 rm -f conftest.er1 2346 cat conftest.err >&5 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2348 (exit $ac_status); } && 2349 { ac_try='test -z "$ac_cxx_werror_flag" 2350 || test ! -s conftest.err' 2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2352 (eval $ac_try) 2>&5 2353 ac_status=$? 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2355 (exit $ac_status); }; } && 2356 { ac_try='test -s conftest.$ac_objext' 2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2358 (eval $ac_try) 2>&5 2359 ac_status=$? 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2361 (exit $ac_status); }; }; then 2362 ac_cv_prog_cxx_g=yes 2363else 2364 echo "$as_me: failed program was:" >&5 2365sed 's/^/| /' conftest.$ac_ext >&5 2366 2367ac_cv_prog_cxx_g=no 2368fi 2369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2370fi 2371echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2372echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2373if test "$ac_test_CXXFLAGS" = set; then 2374 CXXFLAGS=$ac_save_CXXFLAGS 2375elif test $ac_cv_prog_cxx_g = yes; then 2376 if test "$GXX" = yes; then 2377 CXXFLAGS="-g -O2" 2378 else 2379 CXXFLAGS="-g" 2380 fi 2381else 2382 if test "$GXX" = yes; then 2383 CXXFLAGS="-O2" 2384 else 2385 CXXFLAGS= 2386 fi 2387fi 2388for ac_declaration in \ 2389 '' \ 2390 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2391 'extern "C" void std::exit (int); using std::exit;' \ 2392 'extern "C" void exit (int) throw ();' \ 2393 'extern "C" void exit (int);' \ 2394 'void exit (int);' 2395do 2396 cat >conftest.$ac_ext <<_ACEOF 2397/* confdefs.h. */ 2398_ACEOF 2399cat confdefs.h >>conftest.$ac_ext 2400cat >>conftest.$ac_ext <<_ACEOF 2401/* end confdefs.h. */ 2402$ac_declaration 2403#include <stdlib.h> 2404int 2405main () 2406{ 2407exit (42); 2408 ; 2409 return 0; 2410} 2411_ACEOF 2412rm -f conftest.$ac_objext 2413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2414 (eval $ac_compile) 2>conftest.er1 2415 ac_status=$? 2416 grep -v '^ *+' conftest.er1 >conftest.err 2417 rm -f conftest.er1 2418 cat conftest.err >&5 2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2420 (exit $ac_status); } && 2421 { ac_try='test -z "$ac_cxx_werror_flag" 2422 || test ! -s conftest.err' 2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2424 (eval $ac_try) 2>&5 2425 ac_status=$? 2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2427 (exit $ac_status); }; } && 2428 { ac_try='test -s conftest.$ac_objext' 2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2430 (eval $ac_try) 2>&5 2431 ac_status=$? 2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2433 (exit $ac_status); }; }; then 2434 : 2435else 2436 echo "$as_me: failed program was:" >&5 2437sed 's/^/| /' conftest.$ac_ext >&5 2438 2439continue 2440fi 2441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2442 cat >conftest.$ac_ext <<_ACEOF 2443/* confdefs.h. */ 2444_ACEOF 2445cat confdefs.h >>conftest.$ac_ext 2446cat >>conftest.$ac_ext <<_ACEOF 2447/* end confdefs.h. */ 2448$ac_declaration 2449int 2450main () 2451{ 2452exit (42); 2453 ; 2454 return 0; 2455} 2456_ACEOF 2457rm -f conftest.$ac_objext 2458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2459 (eval $ac_compile) 2>conftest.er1 2460 ac_status=$? 2461 grep -v '^ *+' conftest.er1 >conftest.err 2462 rm -f conftest.er1 2463 cat conftest.err >&5 2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2465 (exit $ac_status); } && 2466 { ac_try='test -z "$ac_cxx_werror_flag" 2467 || test ! -s conftest.err' 2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2469 (eval $ac_try) 2>&5 2470 ac_status=$? 2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2472 (exit $ac_status); }; } && 2473 { ac_try='test -s conftest.$ac_objext' 2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2475 (eval $ac_try) 2>&5 2476 ac_status=$? 2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2478 (exit $ac_status); }; }; then 2479 break 2480else 2481 echo "$as_me: failed program was:" >&5 2482sed 's/^/| /' conftest.$ac_ext >&5 2483 2484fi 2485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2486done 2487rm -f conftest* 2488if test -n "$ac_declaration"; then 2489 echo '#ifdef __cplusplus' >>confdefs.h 2490 echo $ac_declaration >>confdefs.h 2491 echo '#endif' >>confdefs.h 2492fi 2493 2494ac_ext=cc 2495ac_cpp='$CXXCPP $CPPFLAGS' 2496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2499DEPDIR="${am__leading_dot}deps" 2500 2501 ac_config_commands="$ac_config_commands depfiles" 2502 2503 2504am_make=${MAKE-make} 2505cat > confinc << 'END' 2506am__doit: 2507 @echo done 2508.PHONY: am__doit 2509END 2510# If we don't find an include directive, just comment out the code. 2511echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2512echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2513am__include="#" 2514am__quote= 2515_am_result=none 2516# First try GNU make style include. 2517echo "include confinc" > confmf 2518# We grep out `Entering directory' and `Leaving directory' 2519# messages which can occur if `w' ends up in MAKEFLAGS. 2520# In particular we don't look at `^make:' because GNU make might 2521# be invoked under some other name (usually "gmake"), in which 2522# case it prints its new name instead of `make'. 2523if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2524 am__include=include 2525 am__quote= 2526 _am_result=GNU 2527fi 2528# Now try BSD make style include. 2529if test "$am__include" = "#"; then 2530 echo '.include "confinc"' > confmf 2531 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2532 am__include=.include 2533 am__quote="\"" 2534 _am_result=BSD 2535 fi 2536fi 2537 2538 2539echo "$as_me:$LINENO: result: $_am_result" >&5 2540echo "${ECHO_T}$_am_result" >&6 2541rm -f confinc confmf 2542 2543# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2544if test "${enable_dependency_tracking+set}" = set; then 2545 enableval="$enable_dependency_tracking" 2546 2547fi; 2548if test "x$enable_dependency_tracking" != xno; then 2549 am_depcomp="$ac_aux_dir/depcomp" 2550 AMDEPBACKSLASH='\' 2551fi 2552 2553 2554if test "x$enable_dependency_tracking" != xno; then 2555 AMDEP_TRUE= 2556 AMDEP_FALSE='#' 2557else 2558 AMDEP_TRUE='#' 2559 AMDEP_FALSE= 2560fi 2561 2562 2563 2564 2565depcc="$CXX" am_compiler_list= 2566 2567echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2568echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2569if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 2570 echo $ECHO_N "(cached) $ECHO_C" >&6 2571else 2572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2573 # We make a subdir and do the tests there. Otherwise we can end up 2574 # making bogus files that we don't know about and never remove. For 2575 # instance it was reported that on HP-UX the gcc test will end up 2576 # making a dummy file named `D' -- because `-MD' means `put the output 2577 # in D'. 2578 mkdir conftest.dir 2579 # Copy depcomp to subdir because otherwise we won't find it if we're 2580 # using a relative directory. 2581 cp "$am_depcomp" conftest.dir 2582 cd conftest.dir 2583 # We will build objects and dependencies in a subdirectory because 2584 # it helps to detect inapplicable dependency modes. For instance 2585 # both Tru64's cc and ICC support -MD to output dependencies as a 2586 # side effect of compilation, but ICC will put the dependencies in 2587 # the current directory while Tru64 will put them in the object 2588 # directory. 2589 mkdir sub 2590 2591 am_cv_CXX_dependencies_compiler_type=none 2592 if test "$am_compiler_list" = ""; then 2593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2594 fi 2595 for depmode in $am_compiler_list; do 2596 # Setup a source with many dependencies, because some compilers 2597 # like to wrap large dependency lists on column 80 (with \), and 2598 # we should not choose a depcomp mode which is confused by this. 2599 # 2600 # We need to recreate these files for each test, as the compiler may 2601 # overwrite some of them when testing with obscure command lines. 2602 # This happens at least with the AIX C compiler. 2603 : > sub/conftest.c 2604 for i in 1 2 3 4 5 6; do 2605 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2607 # Solaris 8's {/usr,}/bin/sh. 2608 touch sub/conftst$i.h 2609 done 2610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2611 2612 case $depmode in 2613 nosideeffect) 2614 # after this tag, mechanisms are not by side-effect, so they'll 2615 # only be used when explicitly requested 2616 if test "x$enable_dependency_tracking" = xyes; then 2617 continue 2618 else 2619 break 2620 fi 2621 ;; 2622 none) break ;; 2623 esac 2624 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2625 # mode. It turns out that the SunPro C++ compiler does not properly 2626 # handle `-M -o', and we need to detect this. 2627 if depmode=$depmode \ 2628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2631 >/dev/null 2>conftest.err && 2632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2635 # icc doesn't choke on unknown options, it will just issue warnings 2636 # or remarks (even with -Werror). So we grep stderr for any message 2637 # that says an option was ignored or not supported. 2638 # When given -MP, icc 7.0 and 7.1 complain thusly: 2639 # icc: Command line warning: ignoring option '-M'; no argument required 2640 # The diagnosis changed in icc 8.0: 2641 # icc: Command line remark: option '-MP' not supported 2642 if (grep 'ignoring option' conftest.err || 2643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2644 am_cv_CXX_dependencies_compiler_type=$depmode 2645 break 2646 fi 2647 fi 2648 done 2649 2650 cd .. 2651 rm -rf conftest.dir 2652else 2653 am_cv_CXX_dependencies_compiler_type=none 2654fi 2655 2656fi 2657echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 2658echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 2659CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 2660 2661 2662 2663if 2664 test "x$enable_dependency_tracking" != xno \ 2665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 2666 am__fastdepCXX_TRUE= 2667 am__fastdepCXX_FALSE='#' 2668else 2669 am__fastdepCXX_TRUE='#' 2670 am__fastdepCXX_FALSE= 2671fi 2672 2673 2674# Check whether --enable-shared or --disable-shared was given. 2675if test "${enable_shared+set}" = set; then 2676 enableval="$enable_shared" 2677 p=${PACKAGE-default} 2678 case $enableval in 2679 yes) enable_shared=yes ;; 2680 no) enable_shared=no ;; 2681 *) 2682 enable_shared=no 2683 # Look at the argument we got. We use all the common list separators. 2684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2685 for pkg in $enableval; do 2686 IFS="$lt_save_ifs" 2687 if test "X$pkg" = "X$p"; then 2688 enable_shared=yes 2689 fi 2690 done 2691 IFS="$lt_save_ifs" 2692 ;; 2693 esac 2694else 2695 enable_shared=yes 2696fi; 2697 2698# Check whether --enable-static or --disable-static was given. 2699if test "${enable_static+set}" = set; then 2700 enableval="$enable_static" 2701 p=${PACKAGE-default} 2702 case $enableval in 2703 yes) enable_static=yes ;; 2704 no) enable_static=no ;; 2705 *) 2706 enable_static=no 2707 # Look at the argument we got. We use all the common list separators. 2708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2709 for pkg in $enableval; do 2710 IFS="$lt_save_ifs" 2711 if test "X$pkg" = "X$p"; then 2712 enable_static=yes 2713 fi 2714 done 2715 IFS="$lt_save_ifs" 2716 ;; 2717 esac 2718else 2719 enable_static=yes 2720fi; 2721 2722# Check whether --enable-fast-install or --disable-fast-install was given. 2723if test "${enable_fast_install+set}" = set; then 2724 enableval="$enable_fast_install" 2725 p=${PACKAGE-default} 2726 case $enableval in 2727 yes) enable_fast_install=yes ;; 2728 no) enable_fast_install=no ;; 2729 *) 2730 enable_fast_install=no 2731 # Look at the argument we got. We use all the common list separators. 2732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2733 for pkg in $enableval; do 2734 IFS="$lt_save_ifs" 2735 if test "X$pkg" = "X$p"; then 2736 enable_fast_install=yes 2737 fi 2738 done 2739 IFS="$lt_save_ifs" 2740 ;; 2741 esac 2742else 2743 enable_fast_install=yes 2744fi; 2745 2746# Make sure we can run config.sub. 2747$ac_config_sub sun4 >/dev/null 2>&1 || 2748 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2749echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2750 { (exit 1); exit 1; }; } 2751 2752echo "$as_me:$LINENO: checking build system type" >&5 2753echo $ECHO_N "checking build system type... $ECHO_C" >&6 2754if test "${ac_cv_build+set}" = set; then 2755 echo $ECHO_N "(cached) $ECHO_C" >&6 2756else 2757 ac_cv_build_alias=$build_alias 2758test -z "$ac_cv_build_alias" && 2759 ac_cv_build_alias=`$ac_config_guess` 2760test -z "$ac_cv_build_alias" && 2761 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2762echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2763 { (exit 1); exit 1; }; } 2764ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2766echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2767 { (exit 1); exit 1; }; } 2768 2769fi 2770echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2771echo "${ECHO_T}$ac_cv_build" >&6 2772build=$ac_cv_build 2773build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2774build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2775build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2776 2777 2778echo "$as_me:$LINENO: checking host system type" >&5 2779echo $ECHO_N "checking host system type... $ECHO_C" >&6 2780if test "${ac_cv_host+set}" = set; then 2781 echo $ECHO_N "(cached) $ECHO_C" >&6 2782else 2783 ac_cv_host_alias=$host_alias 2784test -z "$ac_cv_host_alias" && 2785 ac_cv_host_alias=$ac_cv_build_alias 2786ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2787 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2788echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2789 { (exit 1); exit 1; }; } 2790 2791fi 2792echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2793echo "${ECHO_T}$ac_cv_host" >&6 2794host=$ac_cv_host 2795host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2796host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2797host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2798 2799 2800ac_ext=c 2801ac_cpp='$CPP $CPPFLAGS' 2802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2804ac_compiler_gnu=$ac_cv_c_compiler_gnu 2805if test -n "$ac_tool_prefix"; then 2806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2807set dummy ${ac_tool_prefix}gcc; ac_word=$2 2808echo "$as_me:$LINENO: checking for $ac_word" >&5 2809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2810if test "${ac_cv_prog_CC+set}" = set; then 2811 echo $ECHO_N "(cached) $ECHO_C" >&6 2812else 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2823 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828done 2829 2830fi 2831fi 2832CC=$ac_cv_prog_CC 2833if test -n "$CC"; then 2834 echo "$as_me:$LINENO: result: $CC" >&5 2835echo "${ECHO_T}$CC" >&6 2836else 2837 echo "$as_me:$LINENO: result: no" >&5 2838echo "${ECHO_T}no" >&6 2839fi 2840 2841fi 2842if test -z "$ac_cv_prog_CC"; then 2843 ac_ct_CC=$CC 2844 # Extract the first word of "gcc", so it can be a program name with args. 2845set dummy gcc; ac_word=$2 2846echo "$as_me:$LINENO: checking for $ac_word" >&5 2847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2849 echo $ECHO_N "(cached) $ECHO_C" >&6 2850else 2851 if test -n "$ac_ct_CC"; then 2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2853else 2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2855for as_dir in $PATH 2856do 2857 IFS=$as_save_IFS 2858 test -z "$as_dir" && as_dir=. 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2861 ac_cv_prog_ac_ct_CC="gcc" 2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2863 break 2 2864 fi 2865done 2866done 2867 2868fi 2869fi 2870ac_ct_CC=$ac_cv_prog_ac_ct_CC 2871if test -n "$ac_ct_CC"; then 2872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2873echo "${ECHO_T}$ac_ct_CC" >&6 2874else 2875 echo "$as_me:$LINENO: result: no" >&5 2876echo "${ECHO_T}no" >&6 2877fi 2878 2879 CC=$ac_ct_CC 2880else 2881 CC="$ac_cv_prog_CC" 2882fi 2883 2884if test -z "$CC"; then 2885 if test -n "$ac_tool_prefix"; then 2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2887set dummy ${ac_tool_prefix}cc; ac_word=$2 2888echo "$as_me:$LINENO: checking for $ac_word" >&5 2889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2890if test "${ac_cv_prog_CC+set}" = set; then 2891 echo $ECHO_N "(cached) $ECHO_C" >&6 2892else 2893 if test -n "$CC"; then 2894 ac_cv_prog_CC="$CC" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_CC="${ac_tool_prefix}cc" 2904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908done 2909 2910fi 2911fi 2912CC=$ac_cv_prog_CC 2913if test -n "$CC"; then 2914 echo "$as_me:$LINENO: result: $CC" >&5 2915echo "${ECHO_T}$CC" >&6 2916else 2917 echo "$as_me:$LINENO: result: no" >&5 2918echo "${ECHO_T}no" >&6 2919fi 2920 2921fi 2922if test -z "$ac_cv_prog_CC"; then 2923 ac_ct_CC=$CC 2924 # Extract the first word of "cc", so it can be a program name with args. 2925set dummy cc; ac_word=$2 2926echo "$as_me:$LINENO: checking for $ac_word" >&5 2927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2928if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2929 echo $ECHO_N "(cached) $ECHO_C" >&6 2930else 2931 if test -n "$ac_ct_CC"; then 2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2933else 2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2935for as_dir in $PATH 2936do 2937 IFS=$as_save_IFS 2938 test -z "$as_dir" && as_dir=. 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_ac_ct_CC="cc" 2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946done 2947 2948fi 2949fi 2950ac_ct_CC=$ac_cv_prog_ac_ct_CC 2951if test -n "$ac_ct_CC"; then 2952 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2953echo "${ECHO_T}$ac_ct_CC" >&6 2954else 2955 echo "$as_me:$LINENO: result: no" >&5 2956echo "${ECHO_T}no" >&6 2957fi 2958 2959 CC=$ac_ct_CC 2960else 2961 CC="$ac_cv_prog_CC" 2962fi 2963 2964fi 2965if test -z "$CC"; then 2966 # Extract the first word of "cc", so it can be a program name with args. 2967set dummy cc; ac_word=$2 2968echo "$as_me:$LINENO: checking for $ac_word" >&5 2969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2970if test "${ac_cv_prog_CC+set}" = set; then 2971 echo $ECHO_N "(cached) $ECHO_C" >&6 2972else 2973 if test -n "$CC"; then 2974 ac_cv_prog_CC="$CC" # Let the user override the test. 2975else 2976 ac_prog_rejected=no 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2985 ac_prog_rejected=yes 2986 continue 2987 fi 2988 ac_cv_prog_CC="cc" 2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993done 2994 2995if test $ac_prog_rejected = yes; then 2996 # We found a bogon in the path, so make sure we never use it. 2997 set dummy $ac_cv_prog_CC 2998 shift 2999 if test $# != 0; then 3000 # We chose a different compiler from the bogus one. 3001 # However, it has the same basename, so the bogon will be chosen 3002 # first if we set CC to just the basename; use the full file name. 3003 shift 3004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3005 fi 3006fi 3007fi 3008fi 3009CC=$ac_cv_prog_CC 3010if test -n "$CC"; then 3011 echo "$as_me:$LINENO: result: $CC" >&5 3012echo "${ECHO_T}$CC" >&6 3013else 3014 echo "$as_me:$LINENO: result: no" >&5 3015echo "${ECHO_T}no" >&6 3016fi 3017 3018fi 3019if test -z "$CC"; then 3020 if test -n "$ac_tool_prefix"; then 3021 for ac_prog in cl 3022 do 3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3024set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3025echo "$as_me:$LINENO: checking for $ac_word" >&5 3026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3027if test "${ac_cv_prog_CC+set}" = set; then 3028 echo $ECHO_N "(cached) $ECHO_C" >&6 3029else 3030 if test -n "$CC"; then 3031 ac_cv_prog_CC="$CC" # Let the user override the test. 3032else 3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3034for as_dir in $PATH 3035do 3036 IFS=$as_save_IFS 3037 test -z "$as_dir" && as_dir=. 3038 for ac_exec_ext in '' $ac_executable_extensions; do 3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3042 break 2 3043 fi 3044done 3045done 3046 3047fi 3048fi 3049CC=$ac_cv_prog_CC 3050if test -n "$CC"; then 3051 echo "$as_me:$LINENO: result: $CC" >&5 3052echo "${ECHO_T}$CC" >&6 3053else 3054 echo "$as_me:$LINENO: result: no" >&5 3055echo "${ECHO_T}no" >&6 3056fi 3057 3058 test -n "$CC" && break 3059 done 3060fi 3061if test -z "$CC"; then 3062 ac_ct_CC=$CC 3063 for ac_prog in cl 3064do 3065 # Extract the first word of "$ac_prog", so it can be a program name with args. 3066set dummy $ac_prog; ac_word=$2 3067echo "$as_me:$LINENO: checking for $ac_word" >&5 3068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3070 echo $ECHO_N "(cached) $ECHO_C" >&6 3071else 3072 if test -n "$ac_ct_CC"; then 3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3074else 3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3076for as_dir in $PATH 3077do 3078 IFS=$as_save_IFS 3079 test -z "$as_dir" && as_dir=. 3080 for ac_exec_ext in '' $ac_executable_extensions; do 3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3082 ac_cv_prog_ac_ct_CC="$ac_prog" 3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086done 3087done 3088 3089fi 3090fi 3091ac_ct_CC=$ac_cv_prog_ac_ct_CC 3092if test -n "$ac_ct_CC"; then 3093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3094echo "${ECHO_T}$ac_ct_CC" >&6 3095else 3096 echo "$as_me:$LINENO: result: no" >&5 3097echo "${ECHO_T}no" >&6 3098fi 3099 3100 test -n "$ac_ct_CC" && break 3101done 3102 3103 CC=$ac_ct_CC 3104fi 3105 3106fi 3107 3108 3109test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3110See \`config.log' for more details." >&5 3111echo "$as_me: error: no acceptable C compiler found in \$PATH 3112See \`config.log' for more details." >&2;} 3113 { (exit 1); exit 1; }; } 3114 3115# Provide some information about the compiler. 3116echo "$as_me:$LINENO:" \ 3117 "checking for C compiler version" >&5 3118ac_compiler=`set X $ac_compile; echo $2` 3119{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3120 (eval $ac_compiler --version </dev/null >&5) 2>&5 3121 ac_status=$? 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } 3124{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3125 (eval $ac_compiler -v </dev/null >&5) 2>&5 3126 ac_status=$? 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3128 (exit $ac_status); } 3129{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3130 (eval $ac_compiler -V </dev/null >&5) 2>&5 3131 ac_status=$? 3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 (exit $ac_status); } 3134 3135echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3136echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3137if test "${ac_cv_c_compiler_gnu+set}" = set; then 3138 echo $ECHO_N "(cached) $ECHO_C" >&6 3139else 3140 cat >conftest.$ac_ext <<_ACEOF 3141/* confdefs.h. */ 3142_ACEOF 3143cat confdefs.h >>conftest.$ac_ext 3144cat >>conftest.$ac_ext <<_ACEOF 3145/* end confdefs.h. */ 3146 3147int 3148main () 3149{ 3150#ifndef __GNUC__ 3151 choke me 3152#endif 3153 3154 ; 3155 return 0; 3156} 3157_ACEOF 3158rm -f conftest.$ac_objext 3159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3160 (eval $ac_compile) 2>conftest.er1 3161 ac_status=$? 3162 grep -v '^ *+' conftest.er1 >conftest.err 3163 rm -f conftest.er1 3164 cat conftest.err >&5 3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3166 (exit $ac_status); } && 3167 { ac_try='test -z "$ac_c_werror_flag" 3168 || test ! -s conftest.err' 3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3170 (eval $ac_try) 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); }; } && 3174 { ac_try='test -s conftest.$ac_objext' 3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3176 (eval $ac_try) 2>&5 3177 ac_status=$? 3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3179 (exit $ac_status); }; }; then 3180 ac_compiler_gnu=yes 3181else 3182 echo "$as_me: failed program was:" >&5 3183sed 's/^/| /' conftest.$ac_ext >&5 3184 3185ac_compiler_gnu=no 3186fi 3187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3188ac_cv_c_compiler_gnu=$ac_compiler_gnu 3189 3190fi 3191echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3192echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3193GCC=`test $ac_compiler_gnu = yes && echo yes` 3194ac_test_CFLAGS=${CFLAGS+set} 3195ac_save_CFLAGS=$CFLAGS 3196CFLAGS="-g" 3197echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3198echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3199if test "${ac_cv_prog_cc_g+set}" = set; then 3200 echo $ECHO_N "(cached) $ECHO_C" >&6 3201else 3202 cat >conftest.$ac_ext <<_ACEOF 3203/* confdefs.h. */ 3204_ACEOF 3205cat confdefs.h >>conftest.$ac_ext 3206cat >>conftest.$ac_ext <<_ACEOF 3207/* end confdefs.h. */ 3208 3209int 3210main () 3211{ 3212 3213 ; 3214 return 0; 3215} 3216_ACEOF 3217rm -f conftest.$ac_objext 3218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3219 (eval $ac_compile) 2>conftest.er1 3220 ac_status=$? 3221 grep -v '^ *+' conftest.er1 >conftest.err 3222 rm -f conftest.er1 3223 cat conftest.err >&5 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3225 (exit $ac_status); } && 3226 { ac_try='test -z "$ac_c_werror_flag" 3227 || test ! -s conftest.err' 3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3229 (eval $ac_try) 2>&5 3230 ac_status=$? 3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3232 (exit $ac_status); }; } && 3233 { ac_try='test -s conftest.$ac_objext' 3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3235 (eval $ac_try) 2>&5 3236 ac_status=$? 3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3238 (exit $ac_status); }; }; then 3239 ac_cv_prog_cc_g=yes 3240else 3241 echo "$as_me: failed program was:" >&5 3242sed 's/^/| /' conftest.$ac_ext >&5 3243 3244ac_cv_prog_cc_g=no 3245fi 3246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3247fi 3248echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3249echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3250if test "$ac_test_CFLAGS" = set; then 3251 CFLAGS=$ac_save_CFLAGS 3252elif test $ac_cv_prog_cc_g = yes; then 3253 if test "$GCC" = yes; then 3254 CFLAGS="-g -O2" 3255 else 3256 CFLAGS="-g" 3257 fi 3258else 3259 if test "$GCC" = yes; then 3260 CFLAGS="-O2" 3261 else 3262 CFLAGS= 3263 fi 3264fi 3265echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3266echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3267if test "${ac_cv_prog_cc_stdc+set}" = set; then 3268 echo $ECHO_N "(cached) $ECHO_C" >&6 3269else 3270 ac_cv_prog_cc_stdc=no 3271ac_save_CC=$CC 3272cat >conftest.$ac_ext <<_ACEOF 3273/* confdefs.h. */ 3274_ACEOF 3275cat confdefs.h >>conftest.$ac_ext 3276cat >>conftest.$ac_ext <<_ACEOF 3277/* end confdefs.h. */ 3278#include <stdarg.h> 3279#include <stdio.h> 3280#include <sys/types.h> 3281#include <sys/stat.h> 3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3283struct buf { int x; }; 3284FILE * (*rcsopen) (struct buf *, struct stat *, int); 3285static char *e (p, i) 3286 char **p; 3287 int i; 3288{ 3289 return p[i]; 3290} 3291static char *f (char * (*g) (char **, int), char **p, ...) 3292{ 3293 char *s; 3294 va_list v; 3295 va_start (v,p); 3296 s = g (p, va_arg (v,int)); 3297 va_end (v); 3298 return s; 3299} 3300 3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3302 function prototypes and stuff, but not '\xHH' hex character constants. 3303 These don't provoke an error unfortunately, instead are silently treated 3304 as 'x'. The following induces an error, until -std1 is added to get 3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3306 array size at least. It's necessary to write '\x00'==0 to get something 3307 that's true only with -std1. */ 3308int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3309 3310int test (int i, double x); 3311struct s1 {int (*f) (int a);}; 3312struct s2 {int (*f) (double a);}; 3313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3314int argc; 3315char **argv; 3316int 3317main () 3318{ 3319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3320 ; 3321 return 0; 3322} 3323_ACEOF 3324# Don't try gcc -ansi; that turns off useful extensions and 3325# breaks some systems' header files. 3326# AIX -qlanglvl=ansi 3327# Ultrix and OSF/1 -std1 3328# HP-UX 10.20 and later -Ae 3329# HP-UX older versions -Aa -D_HPUX_SOURCE 3330# SVR4 -Xc -D__EXTENSIONS__ 3331for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3332do 3333 CC="$ac_save_CC $ac_arg" 3334 rm -f conftest.$ac_objext 3335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3336 (eval $ac_compile) 2>conftest.er1 3337 ac_status=$? 3338 grep -v '^ *+' conftest.er1 >conftest.err 3339 rm -f conftest.er1 3340 cat conftest.err >&5 3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3342 (exit $ac_status); } && 3343 { ac_try='test -z "$ac_c_werror_flag" 3344 || test ! -s conftest.err' 3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3346 (eval $ac_try) 2>&5 3347 ac_status=$? 3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3349 (exit $ac_status); }; } && 3350 { ac_try='test -s conftest.$ac_objext' 3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3352 (eval $ac_try) 2>&5 3353 ac_status=$? 3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3355 (exit $ac_status); }; }; then 3356 ac_cv_prog_cc_stdc=$ac_arg 3357break 3358else 3359 echo "$as_me: failed program was:" >&5 3360sed 's/^/| /' conftest.$ac_ext >&5 3361 3362fi 3363rm -f conftest.err conftest.$ac_objext 3364done 3365rm -f conftest.$ac_ext conftest.$ac_objext 3366CC=$ac_save_CC 3367 3368fi 3369 3370case "x$ac_cv_prog_cc_stdc" in 3371 x|xno) 3372 echo "$as_me:$LINENO: result: none needed" >&5 3373echo "${ECHO_T}none needed" >&6 ;; 3374 *) 3375 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3376echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3377 CC="$CC $ac_cv_prog_cc_stdc" ;; 3378esac 3379 3380# Some people use a C++ compiler to compile C. Since we use `exit', 3381# in C++ we need to declare it. In case someone uses the same compiler 3382# for both compiling C and C++ we need to have the C++ compiler decide 3383# the declaration of exit, since it's the most demanding environment. 3384cat >conftest.$ac_ext <<_ACEOF 3385#ifndef __cplusplus 3386 choke me 3387#endif 3388_ACEOF 3389rm -f conftest.$ac_objext 3390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3391 (eval $ac_compile) 2>conftest.er1 3392 ac_status=$? 3393 grep -v '^ *+' conftest.er1 >conftest.err 3394 rm -f conftest.er1 3395 cat conftest.err >&5 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); } && 3398 { ac_try='test -z "$ac_c_werror_flag" 3399 || test ! -s conftest.err' 3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3401 (eval $ac_try) 2>&5 3402 ac_status=$? 3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3404 (exit $ac_status); }; } && 3405 { ac_try='test -s conftest.$ac_objext' 3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3407 (eval $ac_try) 2>&5 3408 ac_status=$? 3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3410 (exit $ac_status); }; }; then 3411 for ac_declaration in \ 3412 '' \ 3413 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3414 'extern "C" void std::exit (int); using std::exit;' \ 3415 'extern "C" void exit (int) throw ();' \ 3416 'extern "C" void exit (int);' \ 3417 'void exit (int);' 3418do 3419 cat >conftest.$ac_ext <<_ACEOF 3420/* confdefs.h. */ 3421_ACEOF 3422cat confdefs.h >>conftest.$ac_ext 3423cat >>conftest.$ac_ext <<_ACEOF 3424/* end confdefs.h. */ 3425$ac_declaration 3426#include <stdlib.h> 3427int 3428main () 3429{ 3430exit (42); 3431 ; 3432 return 0; 3433} 3434_ACEOF 3435rm -f conftest.$ac_objext 3436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3437 (eval $ac_compile) 2>conftest.er1 3438 ac_status=$? 3439 grep -v '^ *+' conftest.er1 >conftest.err 3440 rm -f conftest.er1 3441 cat conftest.err >&5 3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3443 (exit $ac_status); } && 3444 { ac_try='test -z "$ac_c_werror_flag" 3445 || test ! -s conftest.err' 3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3447 (eval $ac_try) 2>&5 3448 ac_status=$? 3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3450 (exit $ac_status); }; } && 3451 { ac_try='test -s conftest.$ac_objext' 3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3453 (eval $ac_try) 2>&5 3454 ac_status=$? 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3456 (exit $ac_status); }; }; then 3457 : 3458else 3459 echo "$as_me: failed program was:" >&5 3460sed 's/^/| /' conftest.$ac_ext >&5 3461 3462continue 3463fi 3464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3465 cat >conftest.$ac_ext <<_ACEOF 3466/* confdefs.h. */ 3467_ACEOF 3468cat confdefs.h >>conftest.$ac_ext 3469cat >>conftest.$ac_ext <<_ACEOF 3470/* end confdefs.h. */ 3471$ac_declaration 3472int 3473main () 3474{ 3475exit (42); 3476 ; 3477 return 0; 3478} 3479_ACEOF 3480rm -f conftest.$ac_objext 3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3482 (eval $ac_compile) 2>conftest.er1 3483 ac_status=$? 3484 grep -v '^ *+' conftest.er1 >conftest.err 3485 rm -f conftest.er1 3486 cat conftest.err >&5 3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3488 (exit $ac_status); } && 3489 { ac_try='test -z "$ac_c_werror_flag" 3490 || test ! -s conftest.err' 3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3492 (eval $ac_try) 2>&5 3493 ac_status=$? 3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3495 (exit $ac_status); }; } && 3496 { ac_try='test -s conftest.$ac_objext' 3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3498 (eval $ac_try) 2>&5 3499 ac_status=$? 3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3501 (exit $ac_status); }; }; then 3502 break 3503else 3504 echo "$as_me: failed program was:" >&5 3505sed 's/^/| /' conftest.$ac_ext >&5 3506 3507fi 3508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3509done 3510rm -f conftest* 3511if test -n "$ac_declaration"; then 3512 echo '#ifdef __cplusplus' >>confdefs.h 3513 echo $ac_declaration >>confdefs.h 3514 echo '#endif' >>confdefs.h 3515fi 3516 3517else 3518 echo "$as_me: failed program was:" >&5 3519sed 's/^/| /' conftest.$ac_ext >&5 3520 3521fi 3522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3523ac_ext=cc 3524ac_cpp='$CXXCPP $CPPFLAGS' 3525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3528 3529depcc="$CC" am_compiler_list= 3530 3531echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3532echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3533if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3534 echo $ECHO_N "(cached) $ECHO_C" >&6 3535else 3536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3537 # We make a subdir and do the tests there. Otherwise we can end up 3538 # making bogus files that we don't know about and never remove. For 3539 # instance it was reported that on HP-UX the gcc test will end up 3540 # making a dummy file named `D' -- because `-MD' means `put the output 3541 # in D'. 3542 mkdir conftest.dir 3543 # Copy depcomp to subdir because otherwise we won't find it if we're 3544 # using a relative directory. 3545 cp "$am_depcomp" conftest.dir 3546 cd conftest.dir 3547 # We will build objects and dependencies in a subdirectory because 3548 # it helps to detect inapplicable dependency modes. For instance 3549 # both Tru64's cc and ICC support -MD to output dependencies as a 3550 # side effect of compilation, but ICC will put the dependencies in 3551 # the current directory while Tru64 will put them in the object 3552 # directory. 3553 mkdir sub 3554 3555 am_cv_CC_dependencies_compiler_type=none 3556 if test "$am_compiler_list" = ""; then 3557 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3558 fi 3559 for depmode in $am_compiler_list; do 3560 # Setup a source with many dependencies, because some compilers 3561 # like to wrap large dependency lists on column 80 (with \), and 3562 # we should not choose a depcomp mode which is confused by this. 3563 # 3564 # We need to recreate these files for each test, as the compiler may 3565 # overwrite some of them when testing with obscure command lines. 3566 # This happens at least with the AIX C compiler. 3567 : > sub/conftest.c 3568 for i in 1 2 3 4 5 6; do 3569 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3571 # Solaris 8's {/usr,}/bin/sh. 3572 touch sub/conftst$i.h 3573 done 3574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3575 3576 case $depmode in 3577 nosideeffect) 3578 # after this tag, mechanisms are not by side-effect, so they'll 3579 # only be used when explicitly requested 3580 if test "x$enable_dependency_tracking" = xyes; then 3581 continue 3582 else 3583 break 3584 fi 3585 ;; 3586 none) break ;; 3587 esac 3588 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3589 # mode. It turns out that the SunPro C++ compiler does not properly 3590 # handle `-M -o', and we need to detect this. 3591 if depmode=$depmode \ 3592 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3594 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3595 >/dev/null 2>conftest.err && 3596 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3597 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3598 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3599 # icc doesn't choke on unknown options, it will just issue warnings 3600 # or remarks (even with -Werror). So we grep stderr for any message 3601 # that says an option was ignored or not supported. 3602 # When given -MP, icc 7.0 and 7.1 complain thusly: 3603 # icc: Command line warning: ignoring option '-M'; no argument required 3604 # The diagnosis changed in icc 8.0: 3605 # icc: Command line remark: option '-MP' not supported 3606 if (grep 'ignoring option' conftest.err || 3607 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3608 am_cv_CC_dependencies_compiler_type=$depmode 3609 break 3610 fi 3611 fi 3612 done 3613 3614 cd .. 3615 rm -rf conftest.dir 3616else 3617 am_cv_CC_dependencies_compiler_type=none 3618fi 3619 3620fi 3621echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3622echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3623CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3624 3625 3626 3627if 3628 test "x$enable_dependency_tracking" != xno \ 3629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3630 am__fastdepCC_TRUE= 3631 am__fastdepCC_FALSE='#' 3632else 3633 am__fastdepCC_TRUE='#' 3634 am__fastdepCC_FALSE= 3635fi 3636 3637 3638echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3639echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3640if test "${lt_cv_path_SED+set}" = set; then 3641 echo $ECHO_N "(cached) $ECHO_C" >&6 3642else 3643 # Loop through the user's path and test for sed and gsed. 3644# Then use that list of sed's as ones to test for truncation. 3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3646for as_dir in $PATH 3647do 3648 IFS=$as_save_IFS 3649 test -z "$as_dir" && as_dir=. 3650 for lt_ac_prog in sed gsed; do 3651 for ac_exec_ext in '' $ac_executable_extensions; do 3652 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3653 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3654 fi 3655 done 3656 done 3657done 3658lt_ac_max=0 3659lt_ac_count=0 3660# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3661# along with /bin/sed that truncates output. 3662for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3663 test ! -f $lt_ac_sed && continue 3664 cat /dev/null > conftest.in 3665 lt_ac_count=0 3666 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3667 # Check for GNU sed and select it if it is found. 3668 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3669 lt_cv_path_SED=$lt_ac_sed 3670 break 3671 fi 3672 while true; do 3673 cat conftest.in conftest.in >conftest.tmp 3674 mv conftest.tmp conftest.in 3675 cp conftest.in conftest.nl 3676 echo >>conftest.nl 3677 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3678 cmp -s conftest.out conftest.nl || break 3679 # 10000 chars as input seems more than enough 3680 test $lt_ac_count -gt 10 && break 3681 lt_ac_count=`expr $lt_ac_count + 1` 3682 if test $lt_ac_count -gt $lt_ac_max; then 3683 lt_ac_max=$lt_ac_count 3684 lt_cv_path_SED=$lt_ac_sed 3685 fi 3686 done 3687done 3688 3689fi 3690 3691SED=$lt_cv_path_SED 3692echo "$as_me:$LINENO: result: $SED" >&5 3693echo "${ECHO_T}$SED" >&6 3694 3695echo "$as_me:$LINENO: checking for egrep" >&5 3696echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3697if test "${ac_cv_prog_egrep+set}" = set; then 3698 echo $ECHO_N "(cached) $ECHO_C" >&6 3699else 3700 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3701 then ac_cv_prog_egrep='grep -E' 3702 else ac_cv_prog_egrep='egrep' 3703 fi 3704fi 3705echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3706echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3707 EGREP=$ac_cv_prog_egrep 3708 3709 3710 3711# Check whether --with-gnu-ld or --without-gnu-ld was given. 3712if test "${with_gnu_ld+set}" = set; then 3713 withval="$with_gnu_ld" 3714 test "$withval" = no || with_gnu_ld=yes 3715else 3716 with_gnu_ld=no 3717fi; 3718ac_prog=ld 3719if test "$GCC" = yes; then 3720 # Check if gcc -print-prog-name=ld gives a path. 3721 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3722echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3723 case $host in 3724 *-*-mingw*) 3725 # gcc leaves a trailing carriage return which upsets mingw 3726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3727 *) 3728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3729 esac 3730 case $ac_prog in 3731 # Accept absolute paths. 3732 [\\/]* | ?:[\\/]*) 3733 re_direlt='/[^/][^/]*/\.\./' 3734 # Canonicalize the pathname of ld 3735 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3736 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3737 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3738 done 3739 test -z "$LD" && LD="$ac_prog" 3740 ;; 3741 "") 3742 # If it fails, then pretend we aren't using GCC. 3743 ac_prog=ld 3744 ;; 3745 *) 3746 # If it is relative, then search for the first ld in PATH. 3747 with_gnu_ld=unknown 3748 ;; 3749 esac 3750elif test "$with_gnu_ld" = yes; then 3751 echo "$as_me:$LINENO: checking for GNU ld" >&5 3752echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3753else 3754 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3755echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3756fi 3757if test "${lt_cv_path_LD+set}" = set; then 3758 echo $ECHO_N "(cached) $ECHO_C" >&6 3759else 3760 if test -z "$LD"; then 3761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3762 for ac_dir in $PATH; do 3763 IFS="$lt_save_ifs" 3764 test -z "$ac_dir" && ac_dir=. 3765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3766 lt_cv_path_LD="$ac_dir/$ac_prog" 3767 # Check to see if the program is GNU ld. I'd rather use --version, 3768 # but apparently some GNU ld's only accept -v. 3769 # Break only if it was the GNU/non-GNU ld that we prefer. 3770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3771 *GNU* | *'with BFD'*) 3772 test "$with_gnu_ld" != no && break 3773 ;; 3774 *) 3775 test "$with_gnu_ld" != yes && break 3776 ;; 3777 esac 3778 fi 3779 done 3780 IFS="$lt_save_ifs" 3781else 3782 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3783fi 3784fi 3785 3786LD="$lt_cv_path_LD" 3787if test -n "$LD"; then 3788 echo "$as_me:$LINENO: result: $LD" >&5 3789echo "${ECHO_T}$LD" >&6 3790else 3791 echo "$as_me:$LINENO: result: no" >&5 3792echo "${ECHO_T}no" >&6 3793fi 3794test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3795echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3796 { (exit 1); exit 1; }; } 3797echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3798echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3799if test "${lt_cv_prog_gnu_ld+set}" = set; then 3800 echo $ECHO_N "(cached) $ECHO_C" >&6 3801else 3802 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3803case `$LD -v 2>&1 </dev/null` in 3804*GNU* | *'with BFD'*) 3805 lt_cv_prog_gnu_ld=yes 3806 ;; 3807*) 3808 lt_cv_prog_gnu_ld=no 3809 ;; 3810esac 3811fi 3812echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3813echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3814with_gnu_ld=$lt_cv_prog_gnu_ld 3815 3816 3817echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3818echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3819if test "${lt_cv_ld_reload_flag+set}" = set; then 3820 echo $ECHO_N "(cached) $ECHO_C" >&6 3821else 3822 lt_cv_ld_reload_flag='-r' 3823fi 3824echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3825echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3826reload_flag=$lt_cv_ld_reload_flag 3827case $reload_flag in 3828"" | " "*) ;; 3829*) reload_flag=" $reload_flag" ;; 3830esac 3831reload_cmds='$LD$reload_flag -o $output$reload_objs' 3832case $host_os in 3833 darwin*) 3834 if test "$GCC" = yes; then 3835 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3836 else 3837 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3838 fi 3839 ;; 3840esac 3841 3842echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3843echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3844if test "${lt_cv_path_NM+set}" = set; then 3845 echo $ECHO_N "(cached) $ECHO_C" >&6 3846else 3847 if test -n "$NM"; then 3848 # Let the user override the test. 3849 lt_cv_path_NM="$NM" 3850else 3851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3852 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3853 IFS="$lt_save_ifs" 3854 test -z "$ac_dir" && ac_dir=. 3855 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3856 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3857 # Check to see if the nm accepts a BSD-compat flag. 3858 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3859 # nm: unknown option "B" ignored 3860 # Tru64's nm complains that /dev/null is an invalid object file 3861 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3862 */dev/null* | *'Invalid file or object type'*) 3863 lt_cv_path_NM="$tmp_nm -B" 3864 break 3865 ;; 3866 *) 3867 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3868 */dev/null*) 3869 lt_cv_path_NM="$tmp_nm -p" 3870 break 3871 ;; 3872 *) 3873 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3874 continue # so that we can try to find one that supports BSD flags 3875 ;; 3876 esac 3877 esac 3878 fi 3879 done 3880 IFS="$lt_save_ifs" 3881 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3882fi 3883fi 3884echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3885echo "${ECHO_T}$lt_cv_path_NM" >&6 3886NM="$lt_cv_path_NM" 3887 3888echo "$as_me:$LINENO: checking whether ln -s works" >&5 3889echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3890LN_S=$as_ln_s 3891if test "$LN_S" = "ln -s"; then 3892 echo "$as_me:$LINENO: result: yes" >&5 3893echo "${ECHO_T}yes" >&6 3894else 3895 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3896echo "${ECHO_T}no, using $LN_S" >&6 3897fi 3898 3899echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3900echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3901if test "${lt_cv_deplibs_check_method+set}" = set; then 3902 echo $ECHO_N "(cached) $ECHO_C" >&6 3903else 3904 lt_cv_file_magic_cmd='$MAGIC_CMD' 3905lt_cv_file_magic_test_file= 3906lt_cv_deplibs_check_method='unknown' 3907# Need to set the preceding variable on all platforms that support 3908# interlibrary dependencies. 3909# 'none' -- dependencies not supported. 3910# `unknown' -- same as none, but documents that we really don't know. 3911# 'pass_all' -- all dependencies passed with no checks. 3912# 'test_compile' -- check by making test program. 3913# 'file_magic [[regex]]' -- check by looking for files in library path 3914# which responds to the $file_magic_cmd with a given extended regex. 3915# If you have `file' or equivalent on your system and you're not sure 3916# whether `pass_all' will *always* work, you probably want this one. 3917 3918case $host_os in 3919aix4* | aix5*) 3920 lt_cv_deplibs_check_method=pass_all 3921 ;; 3922 3923beos*) 3924 lt_cv_deplibs_check_method=pass_all 3925 ;; 3926 3927bsdi[45]*) 3928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3929 lt_cv_file_magic_cmd='/usr/bin/file -L' 3930 lt_cv_file_magic_test_file=/shlib/libc.so 3931 ;; 3932 3933cygwin*) 3934 # func_win32_libid is a shell function defined in ltmain.sh 3935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3936 lt_cv_file_magic_cmd='func_win32_libid' 3937 ;; 3938 3939mingw* | pw32*) 3940 # Base MSYS/MinGW do not provide the 'file' command needed by 3941 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3942 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3943 lt_cv_file_magic_cmd='$OBJDUMP -f' 3944 ;; 3945 3946darwin* | rhapsody*) 3947 lt_cv_deplibs_check_method=pass_all 3948 ;; 3949 3950freebsd* | kfreebsd*-gnu | dragonfly*) 3951 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3952 case $host_cpu in 3953 i*86 ) 3954 # Not sure whether the presence of OpenBSD here was a mistake. 3955 # Let's accept both of them until this is cleared up. 3956 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3957 lt_cv_file_magic_cmd=/usr/bin/file 3958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3959 ;; 3960 esac 3961 else 3962 lt_cv_deplibs_check_method=pass_all 3963 fi 3964 ;; 3965 3966gnu*) 3967 lt_cv_deplibs_check_method=pass_all 3968 ;; 3969 3970hpux10.20* | hpux11*) 3971 lt_cv_file_magic_cmd=/usr/bin/file 3972 case "$host_cpu" in 3973 ia64*) 3974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3976 ;; 3977 hppa*64*) 3978 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]' 3979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3980 ;; 3981 *) 3982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3983 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3984 ;; 3985 esac 3986 ;; 3987 3988irix5* | irix6* | nonstopux*) 3989 case $LD in 3990 *-32|*"-32 ") libmagic=32-bit;; 3991 *-n32|*"-n32 ") libmagic=N32;; 3992 *-64|*"-64 ") libmagic=64-bit;; 3993 *) libmagic=never-match;; 3994 esac 3995 lt_cv_deplibs_check_method=pass_all 3996 ;; 3997 3998# This must be Linux ELF. 3999linux*) 4000 lt_cv_deplibs_check_method=pass_all 4001 ;; 4002 4003netbsd*) 4004 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4006 else 4007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4008 fi 4009 ;; 4010 4011newos6*) 4012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4013 lt_cv_file_magic_cmd=/usr/bin/file 4014 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4015 ;; 4016 4017nto-qnx*) 4018 lt_cv_deplibs_check_method=unknown 4019 ;; 4020 4021openbsd*) 4022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4024 else 4025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4026 fi 4027 ;; 4028 4029osf3* | osf4* | osf5*) 4030 lt_cv_deplibs_check_method=pass_all 4031 ;; 4032 4033sco3.2v5*) 4034 lt_cv_deplibs_check_method=pass_all 4035 ;; 4036 4037solaris*) 4038 lt_cv_deplibs_check_method=pass_all 4039 ;; 4040 4041sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4042 case $host_vendor in 4043 motorola) 4044 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]' 4045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4046 ;; 4047 ncr) 4048 lt_cv_deplibs_check_method=pass_all 4049 ;; 4050 sequent) 4051 lt_cv_file_magic_cmd='/bin/file' 4052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4053 ;; 4054 sni) 4055 lt_cv_file_magic_cmd='/bin/file' 4056 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4057 lt_cv_file_magic_test_file=/lib/libc.so 4058 ;; 4059 siemens) 4060 lt_cv_deplibs_check_method=pass_all 4061 ;; 4062 esac 4063 ;; 4064 4065sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4066 lt_cv_deplibs_check_method=pass_all 4067 ;; 4068esac 4069 4070fi 4071echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4072echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4073file_magic_cmd=$lt_cv_file_magic_cmd 4074deplibs_check_method=$lt_cv_deplibs_check_method 4075test -z "$deplibs_check_method" && deplibs_check_method=unknown 4076 4077 4078 4079 4080# If no C compiler was specified, use CC. 4081LTCC=${LTCC-"$CC"} 4082 4083# Allow CC to be a program name with arguments. 4084compiler=$CC 4085 4086 4087# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4088if test "${enable_libtool_lock+set}" = set; then 4089 enableval="$enable_libtool_lock" 4090 4091fi; 4092test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4093 4094# Some flags need to be propagated to the compiler or linker for good 4095# libtool support. 4096case $host in 4097ia64-*-hpux*) 4098 # Find out which ABI we are using. 4099 echo 'int i;' > conftest.$ac_ext 4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4101 (eval $ac_compile) 2>&5 4102 ac_status=$? 4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); }; then 4105 case `/usr/bin/file conftest.$ac_objext` in 4106 *ELF-32*) 4107 HPUX_IA64_MODE="32" 4108 ;; 4109 *ELF-64*) 4110 HPUX_IA64_MODE="64" 4111 ;; 4112 esac 4113 fi 4114 rm -rf conftest* 4115 ;; 4116*-*-irix6*) 4117 # Find out which ABI we are using. 4118 echo '#line 4118 "configure"' > conftest.$ac_ext 4119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4120 (eval $ac_compile) 2>&5 4121 ac_status=$? 4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4123 (exit $ac_status); }; then 4124 if test "$lt_cv_prog_gnu_ld" = yes; then 4125 case `/usr/bin/file conftest.$ac_objext` in 4126 *32-bit*) 4127 LD="${LD-ld} -melf32bsmip" 4128 ;; 4129 *N32*) 4130 LD="${LD-ld} -melf32bmipn32" 4131 ;; 4132 *64-bit*) 4133 LD="${LD-ld} -melf64bmip" 4134 ;; 4135 esac 4136 else 4137 case `/usr/bin/file conftest.$ac_objext` in 4138 *32-bit*) 4139 LD="${LD-ld} -32" 4140 ;; 4141 *N32*) 4142 LD="${LD-ld} -n32" 4143 ;; 4144 *64-bit*) 4145 LD="${LD-ld} -64" 4146 ;; 4147 esac 4148 fi 4149 fi 4150 rm -rf conftest* 4151 ;; 4152 4153x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4154 # Find out which ABI we are using. 4155 echo 'int i;' > conftest.$ac_ext 4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4157 (eval $ac_compile) 2>&5 4158 ac_status=$? 4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4160 (exit $ac_status); }; then 4161 case "`/usr/bin/file conftest.o`" in 4162 *32-bit*) 4163 case $host in 4164 x86_64-*linux*) 4165 LD="${LD-ld} -m elf_i386" 4166 ;; 4167 ppc64-*linux*|powerpc64-*linux*) 4168 LD="${LD-ld} -m elf32ppclinux" 4169 ;; 4170 s390x-*linux*) 4171 LD="${LD-ld} -m elf_s390" 4172 ;; 4173 sparc64-*linux*) 4174 LD="${LD-ld} -m elf32_sparc" 4175 ;; 4176 esac 4177 ;; 4178 *64-bit*) 4179 case $host in 4180 x86_64-*linux*) 4181 LD="${LD-ld} -m elf_x86_64" 4182 ;; 4183 ppc*-*linux*|powerpc*-*linux*) 4184 LD="${LD-ld} -m elf64ppc" 4185 ;; 4186 s390*-*linux*) 4187 LD="${LD-ld} -m elf64_s390" 4188 ;; 4189 sparc*-*linux*) 4190 LD="${LD-ld} -m elf64_sparc" 4191 ;; 4192 esac 4193 ;; 4194 esac 4195 fi 4196 rm -rf conftest* 4197 ;; 4198 4199*-*-linux*) 4200 # Test if the compiler is 64bit 4201 echo 'int i;' > conftest.$ac_ext 4202 lt_cv_cc_64bit_output=no 4203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4204 (eval $ac_compile) 2>&5 4205 ac_status=$? 4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4207 (exit $ac_status); }; then 4208 case `/usr/bin/file conftest.$ac_objext` in 4209 *"ELF 64"*) 4210 lt_cv_cc_64bit_output=yes 4211 ;; 4212 esac 4213 fi 4214 rm -rf conftest* 4215 ;; 4216 4217*-*-sco3.2v5*) 4218 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4219 SAVE_CFLAGS="$CFLAGS" 4220 CFLAGS="$CFLAGS -belf" 4221 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4222echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4223if test "${lt_cv_cc_needs_belf+set}" = set; then 4224 echo $ECHO_N "(cached) $ECHO_C" >&6 4225else 4226 ac_ext=c 4227ac_cpp='$CPP $CPPFLAGS' 4228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4230ac_compiler_gnu=$ac_cv_c_compiler_gnu 4231 4232 cat >conftest.$ac_ext <<_ACEOF 4233/* confdefs.h. */ 4234_ACEOF 4235cat confdefs.h >>conftest.$ac_ext 4236cat >>conftest.$ac_ext <<_ACEOF 4237/* end confdefs.h. */ 4238 4239int 4240main () 4241{ 4242 4243 ; 4244 return 0; 4245} 4246_ACEOF 4247rm -f conftest.$ac_objext conftest$ac_exeext 4248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4249 (eval $ac_link) 2>conftest.er1 4250 ac_status=$? 4251 grep -v '^ *+' conftest.er1 >conftest.err 4252 rm -f conftest.er1 4253 cat conftest.err >&5 4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4255 (exit $ac_status); } && 4256 { ac_try='test -z "$ac_c_werror_flag" 4257 || test ! -s conftest.err' 4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4259 (eval $ac_try) 2>&5 4260 ac_status=$? 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4262 (exit $ac_status); }; } && 4263 { ac_try='test -s conftest$ac_exeext' 4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4265 (eval $ac_try) 2>&5 4266 ac_status=$? 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); }; }; then 4269 lt_cv_cc_needs_belf=yes 4270else 4271 echo "$as_me: failed program was:" >&5 4272sed 's/^/| /' conftest.$ac_ext >&5 4273 4274lt_cv_cc_needs_belf=no 4275fi 4276rm -f conftest.err conftest.$ac_objext \ 4277 conftest$ac_exeext conftest.$ac_ext 4278 ac_ext=c 4279ac_cpp='$CPP $CPPFLAGS' 4280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4282ac_compiler_gnu=$ac_cv_c_compiler_gnu 4283 4284fi 4285echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4286echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4287 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4288 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4289 CFLAGS="$SAVE_CFLAGS" 4290 fi 4291 ;; 4292 4293esac 4294 4295need_locks="$enable_libtool_lock" 4296 4297 4298ac_ext=c 4299ac_cpp='$CPP $CPPFLAGS' 4300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4302ac_compiler_gnu=$ac_cv_c_compiler_gnu 4303echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4304echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4305# On Suns, sometimes $CPP names a directory. 4306if test -n "$CPP" && test -d "$CPP"; then 4307 CPP= 4308fi 4309if test -z "$CPP"; then 4310 if test "${ac_cv_prog_CPP+set}" = set; then 4311 echo $ECHO_N "(cached) $ECHO_C" >&6 4312else 4313 # Double quotes because CPP needs to be expanded 4314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4315 do 4316 ac_preproc_ok=false 4317for ac_c_preproc_warn_flag in '' yes 4318do 4319 # Use a header file that comes with gcc, so configuring glibc 4320 # with a fresh cross-compiler works. 4321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4322 # <limits.h> exists even on freestanding compilers. 4323 # On the NeXT, cc -E runs the code through the compiler's parser, 4324 # not just through cpp. "Syntax error" is here to catch this case. 4325 cat >conftest.$ac_ext <<_ACEOF 4326/* confdefs.h. */ 4327_ACEOF 4328cat confdefs.h >>conftest.$ac_ext 4329cat >>conftest.$ac_ext <<_ACEOF 4330/* end confdefs.h. */ 4331#ifdef __STDC__ 4332# include <limits.h> 4333#else 4334# include <assert.h> 4335#endif 4336 Syntax error 4337_ACEOF 4338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4340 ac_status=$? 4341 grep -v '^ *+' conftest.er1 >conftest.err 4342 rm -f conftest.er1 4343 cat conftest.err >&5 4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4345 (exit $ac_status); } >/dev/null; then 4346 if test -s conftest.err; then 4347 ac_cpp_err=$ac_c_preproc_warn_flag 4348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4349 else 4350 ac_cpp_err= 4351 fi 4352else 4353 ac_cpp_err=yes 4354fi 4355if test -z "$ac_cpp_err"; then 4356 : 4357else 4358 echo "$as_me: failed program was:" >&5 4359sed 's/^/| /' conftest.$ac_ext >&5 4360 4361 # Broken: fails on valid input. 4362continue 4363fi 4364rm -f conftest.err conftest.$ac_ext 4365 4366 # OK, works on sane cases. Now check whether non-existent headers 4367 # can be detected and how. 4368 cat >conftest.$ac_ext <<_ACEOF 4369/* confdefs.h. */ 4370_ACEOF 4371cat confdefs.h >>conftest.$ac_ext 4372cat >>conftest.$ac_ext <<_ACEOF 4373/* end confdefs.h. */ 4374#include <ac_nonexistent.h> 4375_ACEOF 4376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4378 ac_status=$? 4379 grep -v '^ *+' conftest.er1 >conftest.err 4380 rm -f conftest.er1 4381 cat conftest.err >&5 4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4383 (exit $ac_status); } >/dev/null; then 4384 if test -s conftest.err; then 4385 ac_cpp_err=$ac_c_preproc_warn_flag 4386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4387 else 4388 ac_cpp_err= 4389 fi 4390else 4391 ac_cpp_err=yes 4392fi 4393if test -z "$ac_cpp_err"; then 4394 # Broken: success on invalid input. 4395continue 4396else 4397 echo "$as_me: failed program was:" >&5 4398sed 's/^/| /' conftest.$ac_ext >&5 4399 4400 # Passes both tests. 4401ac_preproc_ok=: 4402break 4403fi 4404rm -f conftest.err conftest.$ac_ext 4405 4406done 4407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4408rm -f conftest.err conftest.$ac_ext 4409if $ac_preproc_ok; then 4410 break 4411fi 4412 4413 done 4414 ac_cv_prog_CPP=$CPP 4415 4416fi 4417 CPP=$ac_cv_prog_CPP 4418else 4419 ac_cv_prog_CPP=$CPP 4420fi 4421echo "$as_me:$LINENO: result: $CPP" >&5 4422echo "${ECHO_T}$CPP" >&6 4423ac_preproc_ok=false 4424for ac_c_preproc_warn_flag in '' yes 4425do 4426 # Use a header file that comes with gcc, so configuring glibc 4427 # with a fresh cross-compiler works. 4428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4429 # <limits.h> exists even on freestanding compilers. 4430 # On the NeXT, cc -E runs the code through the compiler's parser, 4431 # not just through cpp. "Syntax error" is here to catch this case. 4432 cat >conftest.$ac_ext <<_ACEOF 4433/* confdefs.h. */ 4434_ACEOF 4435cat confdefs.h >>conftest.$ac_ext 4436cat >>conftest.$ac_ext <<_ACEOF 4437/* end confdefs.h. */ 4438#ifdef __STDC__ 4439# include <limits.h> 4440#else 4441# include <assert.h> 4442#endif 4443 Syntax error 4444_ACEOF 4445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4447 ac_status=$? 4448 grep -v '^ *+' conftest.er1 >conftest.err 4449 rm -f conftest.er1 4450 cat conftest.err >&5 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); } >/dev/null; then 4453 if test -s conftest.err; then 4454 ac_cpp_err=$ac_c_preproc_warn_flag 4455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4456 else 4457 ac_cpp_err= 4458 fi 4459else 4460 ac_cpp_err=yes 4461fi 4462if test -z "$ac_cpp_err"; then 4463 : 4464else 4465 echo "$as_me: failed program was:" >&5 4466sed 's/^/| /' conftest.$ac_ext >&5 4467 4468 # Broken: fails on valid input. 4469continue 4470fi 4471rm -f conftest.err conftest.$ac_ext 4472 4473 # OK, works on sane cases. Now check whether non-existent headers 4474 # can be detected and how. 4475 cat >conftest.$ac_ext <<_ACEOF 4476/* confdefs.h. */ 4477_ACEOF 4478cat confdefs.h >>conftest.$ac_ext 4479cat >>conftest.$ac_ext <<_ACEOF 4480/* end confdefs.h. */ 4481#include <ac_nonexistent.h> 4482_ACEOF 4483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4485 ac_status=$? 4486 grep -v '^ *+' conftest.er1 >conftest.err 4487 rm -f conftest.er1 4488 cat conftest.err >&5 4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4490 (exit $ac_status); } >/dev/null; then 4491 if test -s conftest.err; then 4492 ac_cpp_err=$ac_c_preproc_warn_flag 4493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4494 else 4495 ac_cpp_err= 4496 fi 4497else 4498 ac_cpp_err=yes 4499fi 4500if test -z "$ac_cpp_err"; then 4501 # Broken: success on invalid input. 4502continue 4503else 4504 echo "$as_me: failed program was:" >&5 4505sed 's/^/| /' conftest.$ac_ext >&5 4506 4507 # Passes both tests. 4508ac_preproc_ok=: 4509break 4510fi 4511rm -f conftest.err conftest.$ac_ext 4512 4513done 4514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4515rm -f conftest.err conftest.$ac_ext 4516if $ac_preproc_ok; then 4517 : 4518else 4519 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4520See \`config.log' for more details." >&5 4521echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4522See \`config.log' for more details." >&2;} 4523 { (exit 1); exit 1; }; } 4524fi 4525 4526ac_ext=c 4527ac_cpp='$CPP $CPPFLAGS' 4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4530ac_compiler_gnu=$ac_cv_c_compiler_gnu 4531 4532 4533echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4534echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4535if test "${ac_cv_header_stdc+set}" = set; then 4536 echo $ECHO_N "(cached) $ECHO_C" >&6 4537else 4538 cat >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 <stdlib.h> 4545#include <stdarg.h> 4546#include <string.h> 4547#include <float.h> 4548 4549int 4550main () 4551{ 4552 4553 ; 4554 return 0; 4555} 4556_ACEOF 4557rm -f conftest.$ac_objext 4558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4559 (eval $ac_compile) 2>conftest.er1 4560 ac_status=$? 4561 grep -v '^ *+' conftest.er1 >conftest.err 4562 rm -f conftest.er1 4563 cat conftest.err >&5 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); } && 4566 { ac_try='test -z "$ac_c_werror_flag" 4567 || test ! -s conftest.err' 4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4569 (eval $ac_try) 2>&5 4570 ac_status=$? 4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4572 (exit $ac_status); }; } && 4573 { ac_try='test -s conftest.$ac_objext' 4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4575 (eval $ac_try) 2>&5 4576 ac_status=$? 4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4578 (exit $ac_status); }; }; then 4579 ac_cv_header_stdc=yes 4580else 4581 echo "$as_me: failed program was:" >&5 4582sed 's/^/| /' conftest.$ac_ext >&5 4583 4584ac_cv_header_stdc=no 4585fi 4586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4587 4588if test $ac_cv_header_stdc = yes; then 4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4590 cat >conftest.$ac_ext <<_ACEOF 4591/* confdefs.h. */ 4592_ACEOF 4593cat confdefs.h >>conftest.$ac_ext 4594cat >>conftest.$ac_ext <<_ACEOF 4595/* end confdefs.h. */ 4596#include <string.h> 4597 4598_ACEOF 4599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4600 $EGREP "memchr" >/dev/null 2>&1; then 4601 : 4602else 4603 ac_cv_header_stdc=no 4604fi 4605rm -f conftest* 4606 4607fi 4608 4609if test $ac_cv_header_stdc = yes; then 4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4611 cat >conftest.$ac_ext <<_ACEOF 4612/* confdefs.h. */ 4613_ACEOF 4614cat confdefs.h >>conftest.$ac_ext 4615cat >>conftest.$ac_ext <<_ACEOF 4616/* end confdefs.h. */ 4617#include <stdlib.h> 4618 4619_ACEOF 4620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4621 $EGREP "free" >/dev/null 2>&1; then 4622 : 4623else 4624 ac_cv_header_stdc=no 4625fi 4626rm -f conftest* 4627 4628fi 4629 4630if test $ac_cv_header_stdc = yes; then 4631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4632 if test "$cross_compiling" = yes; then 4633 : 4634else 4635 cat >conftest.$ac_ext <<_ACEOF 4636/* confdefs.h. */ 4637_ACEOF 4638cat confdefs.h >>conftest.$ac_ext 4639cat >>conftest.$ac_ext <<_ACEOF 4640/* end confdefs.h. */ 4641#include <ctype.h> 4642#if ((' ' & 0x0FF) == 0x020) 4643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4645#else 4646# define ISLOWER(c) \ 4647 (('a' <= (c) && (c) <= 'i') \ 4648 || ('j' <= (c) && (c) <= 'r') \ 4649 || ('s' <= (c) && (c) <= 'z')) 4650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4651#endif 4652 4653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4654int 4655main () 4656{ 4657 int i; 4658 for (i = 0; i < 256; i++) 4659 if (XOR (islower (i), ISLOWER (i)) 4660 || toupper (i) != TOUPPER (i)) 4661 exit(2); 4662 exit (0); 4663} 4664_ACEOF 4665rm -f conftest$ac_exeext 4666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4667 (eval $ac_link) 2>&5 4668 ac_status=$? 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4672 (eval $ac_try) 2>&5 4673 ac_status=$? 4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4675 (exit $ac_status); }; }; then 4676 : 4677else 4678 echo "$as_me: program exited with status $ac_status" >&5 4679echo "$as_me: failed program was:" >&5 4680sed 's/^/| /' conftest.$ac_ext >&5 4681 4682( exit $ac_status ) 4683ac_cv_header_stdc=no 4684fi 4685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4686fi 4687fi 4688fi 4689echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4690echo "${ECHO_T}$ac_cv_header_stdc" >&6 4691if test $ac_cv_header_stdc = yes; then 4692 4693cat >>confdefs.h <<\_ACEOF 4694#define STDC_HEADERS 1 4695_ACEOF 4696 4697fi 4698 4699# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4710 inttypes.h stdint.h unistd.h 4711do 4712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4713echo "$as_me:$LINENO: checking for $ac_header" >&5 4714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4715if eval "test \"\${$as_ac_Header+set}\" = set"; then 4716 echo $ECHO_N "(cached) $ECHO_C" >&6 4717else 4718 cat >conftest.$ac_ext <<_ACEOF 4719/* confdefs.h. */ 4720_ACEOF 4721cat confdefs.h >>conftest.$ac_ext 4722cat >>conftest.$ac_ext <<_ACEOF 4723/* end confdefs.h. */ 4724$ac_includes_default 4725 4726#include <$ac_header> 4727_ACEOF 4728rm -f conftest.$ac_objext 4729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4730 (eval $ac_compile) 2>conftest.er1 4731 ac_status=$? 4732 grep -v '^ *+' conftest.er1 >conftest.err 4733 rm -f conftest.er1 4734 cat conftest.err >&5 4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4736 (exit $ac_status); } && 4737 { ac_try='test -z "$ac_c_werror_flag" 4738 || test ! -s conftest.err' 4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4740 (eval $ac_try) 2>&5 4741 ac_status=$? 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); }; } && 4744 { ac_try='test -s conftest.$ac_objext' 4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4746 (eval $ac_try) 2>&5 4747 ac_status=$? 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); }; }; then 4750 eval "$as_ac_Header=yes" 4751else 4752 echo "$as_me: failed program was:" >&5 4753sed 's/^/| /' conftest.$ac_ext >&5 4754 4755eval "$as_ac_Header=no" 4756fi 4757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4758fi 4759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4761if test `eval echo '${'$as_ac_Header'}'` = yes; then 4762 cat >>confdefs.h <<_ACEOF 4763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4764_ACEOF 4765 4766fi 4767 4768done 4769 4770 4771 4772for ac_header in dlfcn.h 4773do 4774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4775if eval "test \"\${$as_ac_Header+set}\" = set"; then 4776 echo "$as_me:$LINENO: checking for $ac_header" >&5 4777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4778if eval "test \"\${$as_ac_Header+set}\" = set"; then 4779 echo $ECHO_N "(cached) $ECHO_C" >&6 4780fi 4781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4783else 4784 # Is the header compilable? 4785echo "$as_me:$LINENO: checking $ac_header usability" >&5 4786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4787cat >conftest.$ac_ext <<_ACEOF 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793$ac_includes_default 4794#include <$ac_header> 4795_ACEOF 4796rm -f conftest.$ac_objext 4797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4798 (eval $ac_compile) 2>conftest.er1 4799 ac_status=$? 4800 grep -v '^ *+' conftest.er1 >conftest.err 4801 rm -f conftest.er1 4802 cat conftest.err >&5 4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4804 (exit $ac_status); } && 4805 { ac_try='test -z "$ac_c_werror_flag" 4806 || test ! -s conftest.err' 4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4808 (eval $ac_try) 2>&5 4809 ac_status=$? 4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4811 (exit $ac_status); }; } && 4812 { ac_try='test -s conftest.$ac_objext' 4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4814 (eval $ac_try) 2>&5 4815 ac_status=$? 4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4817 (exit $ac_status); }; }; then 4818 ac_header_compiler=yes 4819else 4820 echo "$as_me: failed program was:" >&5 4821sed 's/^/| /' conftest.$ac_ext >&5 4822 4823ac_header_compiler=no 4824fi 4825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4827echo "${ECHO_T}$ac_header_compiler" >&6 4828 4829# Is the header present? 4830echo "$as_me:$LINENO: checking $ac_header presence" >&5 4831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4832cat >conftest.$ac_ext <<_ACEOF 4833/* confdefs.h. */ 4834_ACEOF 4835cat confdefs.h >>conftest.$ac_ext 4836cat >>conftest.$ac_ext <<_ACEOF 4837/* end confdefs.h. */ 4838#include <$ac_header> 4839_ACEOF 4840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4842 ac_status=$? 4843 grep -v '^ *+' conftest.er1 >conftest.err 4844 rm -f conftest.er1 4845 cat conftest.err >&5 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); } >/dev/null; then 4848 if test -s conftest.err; then 4849 ac_cpp_err=$ac_c_preproc_warn_flag 4850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4851 else 4852 ac_cpp_err= 4853 fi 4854else 4855 ac_cpp_err=yes 4856fi 4857if test -z "$ac_cpp_err"; then 4858 ac_header_preproc=yes 4859else 4860 echo "$as_me: failed program was:" >&5 4861sed 's/^/| /' conftest.$ac_ext >&5 4862 4863 ac_header_preproc=no 4864fi 4865rm -f conftest.err conftest.$ac_ext 4866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4867echo "${ECHO_T}$ac_header_preproc" >&6 4868 4869# So? What about this header? 4870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4871 yes:no: ) 4872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4876 ac_header_preproc=yes 4877 ;; 4878 no:yes:* ) 4879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4891 ( 4892 cat <<\_ASBOX 4893## ------------------------------------------ ## 4894## Report this to the AC_PACKAGE_NAME lists. ## 4895## ------------------------------------------ ## 4896_ASBOX 4897 ) | 4898 sed "s/^/$as_me: WARNING: /" >&2 4899 ;; 4900esac 4901echo "$as_me:$LINENO: checking for $ac_header" >&5 4902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4903if eval "test \"\${$as_ac_Header+set}\" = set"; then 4904 echo $ECHO_N "(cached) $ECHO_C" >&6 4905else 4906 eval "$as_ac_Header=\$ac_header_preproc" 4907fi 4908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4910 4911fi 4912if test `eval echo '${'$as_ac_Header'}'` = yes; then 4913 cat >>confdefs.h <<_ACEOF 4914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4915_ACEOF 4916 4917fi 4918 4919done 4920 4921 4922 4923if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4924 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4925 (test "X$CXX" != "Xg++"))) ; then 4926 ac_ext=cc 4927ac_cpp='$CXXCPP $CPPFLAGS' 4928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4931echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4932echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4933if test -z "$CXXCPP"; then 4934 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4935 echo $ECHO_N "(cached) $ECHO_C" >&6 4936else 4937 # Double quotes because CXXCPP needs to be expanded 4938 for CXXCPP in "$CXX -E" "/lib/cpp" 4939 do 4940 ac_preproc_ok=false 4941for ac_cxx_preproc_warn_flag in '' yes 4942do 4943 # Use a header file that comes with gcc, so configuring glibc 4944 # with a fresh cross-compiler works. 4945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4946 # <limits.h> exists even on freestanding compilers. 4947 # On the NeXT, cc -E runs the code through the compiler's parser, 4948 # not just through cpp. "Syntax error" is here to catch this case. 4949 cat >conftest.$ac_ext <<_ACEOF 4950/* confdefs.h. */ 4951_ACEOF 4952cat confdefs.h >>conftest.$ac_ext 4953cat >>conftest.$ac_ext <<_ACEOF 4954/* end confdefs.h. */ 4955#ifdef __STDC__ 4956# include <limits.h> 4957#else 4958# include <assert.h> 4959#endif 4960 Syntax error 4961_ACEOF 4962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4964 ac_status=$? 4965 grep -v '^ *+' conftest.er1 >conftest.err 4966 rm -f conftest.er1 4967 cat conftest.err >&5 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); } >/dev/null; then 4970 if test -s conftest.err; then 4971 ac_cpp_err=$ac_cxx_preproc_warn_flag 4972 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4973 else 4974 ac_cpp_err= 4975 fi 4976else 4977 ac_cpp_err=yes 4978fi 4979if test -z "$ac_cpp_err"; then 4980 : 4981else 4982 echo "$as_me: failed program was:" >&5 4983sed 's/^/| /' conftest.$ac_ext >&5 4984 4985 # Broken: fails on valid input. 4986continue 4987fi 4988rm -f conftest.err conftest.$ac_ext 4989 4990 # OK, works on sane cases. Now check whether non-existent headers 4991 # can be detected and how. 4992 cat >conftest.$ac_ext <<_ACEOF 4993/* confdefs.h. */ 4994_ACEOF 4995cat confdefs.h >>conftest.$ac_ext 4996cat >>conftest.$ac_ext <<_ACEOF 4997/* end confdefs.h. */ 4998#include <ac_nonexistent.h> 4999_ACEOF 5000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5002 ac_status=$? 5003 grep -v '^ *+' conftest.er1 >conftest.err 5004 rm -f conftest.er1 5005 cat conftest.err >&5 5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5007 (exit $ac_status); } >/dev/null; then 5008 if test -s conftest.err; then 5009 ac_cpp_err=$ac_cxx_preproc_warn_flag 5010 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5011 else 5012 ac_cpp_err= 5013 fi 5014else 5015 ac_cpp_err=yes 5016fi 5017if test -z "$ac_cpp_err"; then 5018 # Broken: success on invalid input. 5019continue 5020else 5021 echo "$as_me: failed program was:" >&5 5022sed 's/^/| /' conftest.$ac_ext >&5 5023 5024 # Passes both tests. 5025ac_preproc_ok=: 5026break 5027fi 5028rm -f conftest.err conftest.$ac_ext 5029 5030done 5031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5032rm -f conftest.err conftest.$ac_ext 5033if $ac_preproc_ok; then 5034 break 5035fi 5036 5037 done 5038 ac_cv_prog_CXXCPP=$CXXCPP 5039 5040fi 5041 CXXCPP=$ac_cv_prog_CXXCPP 5042else 5043 ac_cv_prog_CXXCPP=$CXXCPP 5044fi 5045echo "$as_me:$LINENO: result: $CXXCPP" >&5 5046echo "${ECHO_T}$CXXCPP" >&6 5047ac_preproc_ok=false 5048for ac_cxx_preproc_warn_flag in '' yes 5049do 5050 # Use a header file that comes with gcc, so configuring glibc 5051 # with a fresh cross-compiler works. 5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5053 # <limits.h> exists even on freestanding compilers. 5054 # On the NeXT, cc -E runs the code through the compiler's parser, 5055 # not just through cpp. "Syntax error" is here to catch this case. 5056 cat >conftest.$ac_ext <<_ACEOF 5057/* confdefs.h. */ 5058_ACEOF 5059cat confdefs.h >>conftest.$ac_ext 5060cat >>conftest.$ac_ext <<_ACEOF 5061/* end confdefs.h. */ 5062#ifdef __STDC__ 5063# include <limits.h> 5064#else 5065# include <assert.h> 5066#endif 5067 Syntax error 5068_ACEOF 5069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5071 ac_status=$? 5072 grep -v '^ *+' conftest.er1 >conftest.err 5073 rm -f conftest.er1 5074 cat conftest.err >&5 5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5076 (exit $ac_status); } >/dev/null; then 5077 if test -s conftest.err; then 5078 ac_cpp_err=$ac_cxx_preproc_warn_flag 5079 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5080 else 5081 ac_cpp_err= 5082 fi 5083else 5084 ac_cpp_err=yes 5085fi 5086if test -z "$ac_cpp_err"; then 5087 : 5088else 5089 echo "$as_me: failed program was:" >&5 5090sed 's/^/| /' conftest.$ac_ext >&5 5091 5092 # Broken: fails on valid input. 5093continue 5094fi 5095rm -f conftest.err conftest.$ac_ext 5096 5097 # OK, works on sane cases. Now check whether non-existent headers 5098 # can be detected and how. 5099 cat >conftest.$ac_ext <<_ACEOF 5100/* confdefs.h. */ 5101_ACEOF 5102cat confdefs.h >>conftest.$ac_ext 5103cat >>conftest.$ac_ext <<_ACEOF 5104/* end confdefs.h. */ 5105#include <ac_nonexistent.h> 5106_ACEOF 5107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5109 ac_status=$? 5110 grep -v '^ *+' conftest.er1 >conftest.err 5111 rm -f conftest.er1 5112 cat conftest.err >&5 5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5114 (exit $ac_status); } >/dev/null; then 5115 if test -s conftest.err; then 5116 ac_cpp_err=$ac_cxx_preproc_warn_flag 5117 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5118 else 5119 ac_cpp_err= 5120 fi 5121else 5122 ac_cpp_err=yes 5123fi 5124if test -z "$ac_cpp_err"; then 5125 # Broken: success on invalid input. 5126continue 5127else 5128 echo "$as_me: failed program was:" >&5 5129sed 's/^/| /' conftest.$ac_ext >&5 5130 5131 # Passes both tests. 5132ac_preproc_ok=: 5133break 5134fi 5135rm -f conftest.err conftest.$ac_ext 5136 5137done 5138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5139rm -f conftest.err conftest.$ac_ext 5140if $ac_preproc_ok; then 5141 : 5142else 5143 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5144See \`config.log' for more details." >&5 5145echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5146See \`config.log' for more details." >&2;} 5147 { (exit 1); exit 1; }; } 5148fi 5149 5150ac_ext=cc 5151ac_cpp='$CXXCPP $CPPFLAGS' 5152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5155 5156fi 5157 5158 5159ac_ext=f 5160ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5161ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5162ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5163if test -n "$ac_tool_prefix"; then 5164 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5165 do 5166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5167set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5168echo "$as_me:$LINENO: checking for $ac_word" >&5 5169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5170if test "${ac_cv_prog_F77+set}" = set; then 5171 echo $ECHO_N "(cached) $ECHO_C" >&6 5172else 5173 if test -n "$F77"; then 5174 ac_cv_prog_F77="$F77" # Let the user override the test. 5175else 5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5177for as_dir in $PATH 5178do 5179 IFS=$as_save_IFS 5180 test -z "$as_dir" && as_dir=. 5181 for ac_exec_ext in '' $ac_executable_extensions; do 5182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5183 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5185 break 2 5186 fi 5187done 5188done 5189 5190fi 5191fi 5192F77=$ac_cv_prog_F77 5193if test -n "$F77"; then 5194 echo "$as_me:$LINENO: result: $F77" >&5 5195echo "${ECHO_T}$F77" >&6 5196else 5197 echo "$as_me:$LINENO: result: no" >&5 5198echo "${ECHO_T}no" >&6 5199fi 5200 5201 test -n "$F77" && break 5202 done 5203fi 5204if test -z "$F77"; then 5205 ac_ct_F77=$F77 5206 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5207do 5208 # Extract the first word of "$ac_prog", so it can be a program name with args. 5209set dummy $ac_prog; ac_word=$2 5210echo "$as_me:$LINENO: checking for $ac_word" >&5 5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5212if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5213 echo $ECHO_N "(cached) $ECHO_C" >&6 5214else 5215 if test -n "$ac_ct_F77"; then 5216 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5217else 5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5219for as_dir in $PATH 5220do 5221 IFS=$as_save_IFS 5222 test -z "$as_dir" && as_dir=. 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5225 ac_cv_prog_ac_ct_F77="$ac_prog" 5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5227 break 2 5228 fi 5229done 5230done 5231 5232fi 5233fi 5234ac_ct_F77=$ac_cv_prog_ac_ct_F77 5235if test -n "$ac_ct_F77"; then 5236 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5237echo "${ECHO_T}$ac_ct_F77" >&6 5238else 5239 echo "$as_me:$LINENO: result: no" >&5 5240echo "${ECHO_T}no" >&6 5241fi 5242 5243 test -n "$ac_ct_F77" && break 5244done 5245 5246 F77=$ac_ct_F77 5247fi 5248 5249 5250# Provide some information about the compiler. 5251echo "$as_me:5251:" \ 5252 "checking for Fortran 77 compiler version" >&5 5253ac_compiler=`set X $ac_compile; echo $2` 5254{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5255 (eval $ac_compiler --version </dev/null >&5) 2>&5 5256 ac_status=$? 5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5258 (exit $ac_status); } 5259{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5260 (eval $ac_compiler -v </dev/null >&5) 2>&5 5261 ac_status=$? 5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5263 (exit $ac_status); } 5264{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5265 (eval $ac_compiler -V </dev/null >&5) 2>&5 5266 ac_status=$? 5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5268 (exit $ac_status); } 5269rm -f a.out 5270 5271# If we don't use `.F' as extension, the preprocessor is not run on the 5272# input file. (Note that this only needs to work for GNU compilers.) 5273ac_save_ext=$ac_ext 5274ac_ext=F 5275echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5276echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5277if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5278 echo $ECHO_N "(cached) $ECHO_C" >&6 5279else 5280 cat >conftest.$ac_ext <<_ACEOF 5281 program main 5282#ifndef __GNUC__ 5283 choke me 5284#endif 5285 5286 end 5287_ACEOF 5288rm -f conftest.$ac_objext 5289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5290 (eval $ac_compile) 2>conftest.er1 5291 ac_status=$? 5292 grep -v '^ *+' conftest.er1 >conftest.err 5293 rm -f conftest.er1 5294 cat conftest.err >&5 5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5296 (exit $ac_status); } && 5297 { ac_try='test -z "$ac_f77_werror_flag" 5298 || test ! -s conftest.err' 5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5300 (eval $ac_try) 2>&5 5301 ac_status=$? 5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5303 (exit $ac_status); }; } && 5304 { ac_try='test -s conftest.$ac_objext' 5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5306 (eval $ac_try) 2>&5 5307 ac_status=$? 5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5309 (exit $ac_status); }; }; then 5310 ac_compiler_gnu=yes 5311else 5312 echo "$as_me: failed program was:" >&5 5313sed 's/^/| /' conftest.$ac_ext >&5 5314 5315ac_compiler_gnu=no 5316fi 5317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5318ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5319 5320fi 5321echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5322echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5323ac_ext=$ac_save_ext 5324ac_test_FFLAGS=${FFLAGS+set} 5325ac_save_FFLAGS=$FFLAGS 5326FFLAGS= 5327echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5328echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5329if test "${ac_cv_prog_f77_g+set}" = set; then 5330 echo $ECHO_N "(cached) $ECHO_C" >&6 5331else 5332 FFLAGS=-g 5333cat >conftest.$ac_ext <<_ACEOF 5334 program main 5335 5336 end 5337_ACEOF 5338rm -f conftest.$ac_objext 5339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5340 (eval $ac_compile) 2>conftest.er1 5341 ac_status=$? 5342 grep -v '^ *+' conftest.er1 >conftest.err 5343 rm -f conftest.er1 5344 cat conftest.err >&5 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5346 (exit $ac_status); } && 5347 { ac_try='test -z "$ac_f77_werror_flag" 5348 || test ! -s conftest.err' 5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5350 (eval $ac_try) 2>&5 5351 ac_status=$? 5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5353 (exit $ac_status); }; } && 5354 { ac_try='test -s conftest.$ac_objext' 5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5356 (eval $ac_try) 2>&5 5357 ac_status=$? 5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5359 (exit $ac_status); }; }; then 5360 ac_cv_prog_f77_g=yes 5361else 5362 echo "$as_me: failed program was:" >&5 5363sed 's/^/| /' conftest.$ac_ext >&5 5364 5365ac_cv_prog_f77_g=no 5366fi 5367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5368 5369fi 5370echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5371echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5372if test "$ac_test_FFLAGS" = set; then 5373 FFLAGS=$ac_save_FFLAGS 5374elif test $ac_cv_prog_f77_g = yes; then 5375 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5376 FFLAGS="-g -O2" 5377 else 5378 FFLAGS="-g" 5379 fi 5380else 5381 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5382 FFLAGS="-O2" 5383 else 5384 FFLAGS= 5385 fi 5386fi 5387 5388G77=`test $ac_compiler_gnu = yes && echo yes` 5389ac_ext=cc 5390ac_cpp='$CXXCPP $CPPFLAGS' 5391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5394 5395 5396 5397# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5398 5399# find the maximum length of command line arguments 5400echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5401echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5402if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5403 echo $ECHO_N "(cached) $ECHO_C" >&6 5404else 5405 i=0 5406 teststring="ABCD" 5407 5408 case $build_os in 5409 msdosdjgpp*) 5410 # On DJGPP, this test can blow up pretty badly due to problems in libc 5411 # (any single argument exceeding 2000 bytes causes a buffer overrun 5412 # during glob expansion). Even if it were fixed, the result of this 5413 # check would be larger than it should be. 5414 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5415 ;; 5416 5417 gnu*) 5418 # Under GNU Hurd, this test is not required because there is 5419 # no limit to the length of command line arguments. 5420 # Libtool will interpret -1 as no limit whatsoever 5421 lt_cv_sys_max_cmd_len=-1; 5422 ;; 5423 5424 cygwin* | mingw*) 5425 # On Win9x/ME, this test blows up -- it succeeds, but takes 5426 # about 5 minutes as the teststring grows exponentially. 5427 # Worse, since 9x/ME are not pre-emptively multitasking, 5428 # you end up with a "frozen" computer, even though with patience 5429 # the test eventually succeeds (with a max line length of 256k). 5430 # Instead, let's just punt: use the minimum linelength reported by 5431 # all of the supported platforms: 8192 (on NT/2K/XP). 5432 lt_cv_sys_max_cmd_len=8192; 5433 ;; 5434 5435 amigaos*) 5436 # On AmigaOS with pdksh, this test takes hours, literally. 5437 # So we just punt and use a minimum line length of 8192. 5438 lt_cv_sys_max_cmd_len=8192; 5439 ;; 5440 5441 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5442 # This has been around since 386BSD, at least. Likely further. 5443 if test -x /sbin/sysctl; then 5444 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5445 elif test -x /usr/sbin/sysctl; then 5446 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5447 else 5448 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 5449 fi 5450 # And add a safety zone 5451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5453 ;; 5454 osf*) 5455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5457 # nice to cause kernel panics so lets avoid the loop below. 5458 # First set a reasonable default. 5459 lt_cv_sys_max_cmd_len=16384 5460 # 5461 if test -x /sbin/sysconfig; then 5462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5463 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5464 esac 5465 fi 5466 ;; 5467 *) 5468 # If test is not a shell built-in, we'll probably end up computing a 5469 # maximum length that is only half of the actual maximum length, but 5470 # we can't tell. 5471 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5472 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5473 = "XX$teststring") >/dev/null 2>&1 && 5474 new_result=`expr "X$teststring" : ".*" 2>&1` && 5475 lt_cv_sys_max_cmd_len=$new_result && 5476 test $i != 17 # 1/2 MB should be enough 5477 do 5478 i=`expr $i + 1` 5479 teststring=$teststring$teststring 5480 done 5481 teststring= 5482 # Add a significant safety factor because C++ compilers can tack on massive 5483 # amounts of additional arguments before passing them to the linker. 5484 # It appears as though 1/2 is a usable value. 5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5486 ;; 5487 esac 5488 5489fi 5490 5491if test -n $lt_cv_sys_max_cmd_len ; then 5492 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5493echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5494else 5495 echo "$as_me:$LINENO: result: none" >&5 5496echo "${ECHO_T}none" >&6 5497fi 5498 5499 5500 5501 5502# Check for command to grab the raw symbol name followed by C symbol from nm. 5503echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5504echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5505if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5506 echo $ECHO_N "(cached) $ECHO_C" >&6 5507else 5508 5509# These are sane defaults that work on at least a few old systems. 5510# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5511 5512# Character class describing NM global symbol codes. 5513symcode='[BCDEGRST]' 5514 5515# Regexp to match symbols that can be accessed directly from C. 5516sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5517 5518# Transform an extracted symbol line into a proper C declaration 5519lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5520 5521# Transform an extracted symbol line into symbol name and symbol address 5522lt_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'" 5523 5524# Define system-specific variables. 5525case $host_os in 5526aix*) 5527 symcode='[BCDT]' 5528 ;; 5529cygwin* | mingw* | pw32*) 5530 symcode='[ABCDGISTW]' 5531 ;; 5532hpux*) # Its linker distinguishes data from code symbols 5533 if test "$host_cpu" = ia64; then 5534 symcode='[ABCDEGRST]' 5535 fi 5536 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5537 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'" 5538 ;; 5539linux*) 5540 if test "$host_cpu" = ia64; then 5541 symcode='[ABCDGIRSTW]' 5542 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5543 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'" 5544 fi 5545 ;; 5546irix* | nonstopux*) 5547 symcode='[BCDEGRST]' 5548 ;; 5549osf*) 5550 symcode='[BCDEGQRST]' 5551 ;; 5552solaris* | sysv5*) 5553 symcode='[BDRT]' 5554 ;; 5555sysv4) 5556 symcode='[DFNSTU]' 5557 ;; 5558esac 5559 5560# Handle CRLF in mingw tool chain 5561opt_cr= 5562case $build_os in 5563mingw*) 5564 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5565 ;; 5566esac 5567 5568# If we're using GNU nm, then use its standard symbol codes. 5569case `$NM -V 2>&1` in 5570*GNU* | *'with BFD'*) 5571 symcode='[ABCDGIRSTW]' ;; 5572esac 5573 5574# Try without a prefix undercore, then with it. 5575for ac_symprfx in "" "_"; do 5576 5577 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5578 symxfrm="\\1 $ac_symprfx\\2 \\2" 5579 5580 # Write the raw and C identifiers. 5581 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5582 5583 # Check to see that the pipe works correctly. 5584 pipe_works=no 5585 5586 rm -f conftest* 5587 cat > conftest.$ac_ext <<EOF 5588#ifdef __cplusplus 5589extern "C" { 5590#endif 5591char nm_test_var; 5592void nm_test_func(){} 5593#ifdef __cplusplus 5594} 5595#endif 5596int main(){nm_test_var='a';nm_test_func();return(0);} 5597EOF 5598 5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5600 (eval $ac_compile) 2>&5 5601 ac_status=$? 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); }; then 5604 # Now try to grab the symbols. 5605 nlist=conftest.nm 5606 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5607 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5608 ac_status=$? 5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5610 (exit $ac_status); } && test -s "$nlist"; then 5611 # Try sorting and uniquifying the output. 5612 if sort "$nlist" | uniq > "$nlist"T; then 5613 mv -f "$nlist"T "$nlist" 5614 else 5615 rm -f "$nlist"T 5616 fi 5617 5618 # Make sure that we snagged all the symbols we need. 5619 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5620 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5621 cat <<EOF > conftest.$ac_ext 5622#ifdef __cplusplus 5623extern "C" { 5624#endif 5625 5626EOF 5627 # Now generate the symbol file. 5628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5629 5630 cat <<EOF >> conftest.$ac_ext 5631#if defined (__STDC__) && __STDC__ 5632# define lt_ptr_t void * 5633#else 5634# define lt_ptr_t char * 5635# define const 5636#endif 5637 5638/* The mapping between symbol names and symbols. */ 5639const struct { 5640 const char *name; 5641 lt_ptr_t address; 5642} 5643lt_preloaded_symbols[] = 5644{ 5645EOF 5646 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5647 cat <<\EOF >> conftest.$ac_ext 5648 {0, (lt_ptr_t) 0} 5649}; 5650 5651#ifdef __cplusplus 5652} 5653#endif 5654EOF 5655 # Now try linking the two files. 5656 mv conftest.$ac_objext conftstm.$ac_objext 5657 lt_save_LIBS="$LIBS" 5658 lt_save_CFLAGS="$CFLAGS" 5659 LIBS="conftstm.$ac_objext" 5660 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5662 (eval $ac_link) 2>&5 5663 ac_status=$? 5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5665 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5666 pipe_works=yes 5667 fi 5668 LIBS="$lt_save_LIBS" 5669 CFLAGS="$lt_save_CFLAGS" 5670 else 5671 echo "cannot find nm_test_func in $nlist" >&5 5672 fi 5673 else 5674 echo "cannot find nm_test_var in $nlist" >&5 5675 fi 5676 else 5677 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5678 fi 5679 else 5680 echo "$progname: failed program was:" >&5 5681 cat conftest.$ac_ext >&5 5682 fi 5683 rm -f conftest* conftst* 5684 5685 # Do not use the global_symbol_pipe unless it works. 5686 if test "$pipe_works" = yes; then 5687 break 5688 else 5689 lt_cv_sys_global_symbol_pipe= 5690 fi 5691done 5692 5693fi 5694 5695if test -z "$lt_cv_sys_global_symbol_pipe"; then 5696 lt_cv_sys_global_symbol_to_cdecl= 5697fi 5698if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5699 echo "$as_me:$LINENO: result: failed" >&5 5700echo "${ECHO_T}failed" >&6 5701else 5702 echo "$as_me:$LINENO: result: ok" >&5 5703echo "${ECHO_T}ok" >&6 5704fi 5705 5706echo "$as_me:$LINENO: checking for objdir" >&5 5707echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5708if test "${lt_cv_objdir+set}" = set; then 5709 echo $ECHO_N "(cached) $ECHO_C" >&6 5710else 5711 rm -f .libs 2>/dev/null 5712mkdir .libs 2>/dev/null 5713if test -d .libs; then 5714 lt_cv_objdir=.libs 5715else 5716 # MS-DOS does not allow filenames that begin with a dot. 5717 lt_cv_objdir=_libs 5718fi 5719rmdir .libs 2>/dev/null 5720fi 5721echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5722echo "${ECHO_T}$lt_cv_objdir" >&6 5723objdir=$lt_cv_objdir 5724 5725 5726 5727 5728 5729case $host_os in 5730aix3*) 5731 # AIX sometimes has problems with the GCC collect2 program. For some 5732 # reason, if we set the COLLECT_NAMES environment variable, the problems 5733 # vanish in a puff of smoke. 5734 if test "X${COLLECT_NAMES+set}" != Xset; then 5735 COLLECT_NAMES= 5736 export COLLECT_NAMES 5737 fi 5738 ;; 5739esac 5740 5741# Sed substitution that helps us do robust quoting. It backslashifies 5742# metacharacters that are still active within double-quoted strings. 5743Xsed='sed -e 1s/^X//' 5744sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5745 5746# Same as above, but do not quote variable references. 5747double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5748 5749# Sed substitution to delay expansion of an escaped shell variable in a 5750# double_quote_subst'ed string. 5751delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5752 5753# Sed substitution to avoid accidental globbing in evaled expressions 5754no_glob_subst='s/\*/\\\*/g' 5755 5756# Constants: 5757rm="rm -f" 5758 5759# Global variables: 5760default_ofile=libtool 5761can_build_shared=yes 5762 5763# All known linkers require a `.a' archive for static linking (except M$VC, 5764# which needs '.lib'). 5765libext=a 5766ltmain="$ac_aux_dir/ltmain.sh" 5767ofile="$default_ofile" 5768with_gnu_ld="$lt_cv_prog_gnu_ld" 5769 5770if test -n "$ac_tool_prefix"; then 5771 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5772set dummy ${ac_tool_prefix}ar; ac_word=$2 5773echo "$as_me:$LINENO: checking for $ac_word" >&5 5774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5775if test "${ac_cv_prog_AR+set}" = set; then 5776 echo $ECHO_N "(cached) $ECHO_C" >&6 5777else 5778 if test -n "$AR"; then 5779 ac_cv_prog_AR="$AR" # Let the user override the test. 5780else 5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5782for as_dir in $PATH 5783do 5784 IFS=$as_save_IFS 5785 test -z "$as_dir" && as_dir=. 5786 for ac_exec_ext in '' $ac_executable_extensions; do 5787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5788 ac_cv_prog_AR="${ac_tool_prefix}ar" 5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5790 break 2 5791 fi 5792done 5793done 5794 5795fi 5796fi 5797AR=$ac_cv_prog_AR 5798if test -n "$AR"; then 5799 echo "$as_me:$LINENO: result: $AR" >&5 5800echo "${ECHO_T}$AR" >&6 5801else 5802 echo "$as_me:$LINENO: result: no" >&5 5803echo "${ECHO_T}no" >&6 5804fi 5805 5806fi 5807if test -z "$ac_cv_prog_AR"; then 5808 ac_ct_AR=$AR 5809 # Extract the first word of "ar", so it can be a program name with args. 5810set dummy ar; ac_word=$2 5811echo "$as_me:$LINENO: checking for $ac_word" >&5 5812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5813if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5814 echo $ECHO_N "(cached) $ECHO_C" >&6 5815else 5816 if test -n "$ac_ct_AR"; then 5817 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5818else 5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5820for as_dir in $PATH 5821do 5822 IFS=$as_save_IFS 5823 test -z "$as_dir" && as_dir=. 5824 for ac_exec_ext in '' $ac_executable_extensions; do 5825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5826 ac_cv_prog_ac_ct_AR="ar" 5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5828 break 2 5829 fi 5830done 5831done 5832 5833 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5834fi 5835fi 5836ac_ct_AR=$ac_cv_prog_ac_ct_AR 5837if test -n "$ac_ct_AR"; then 5838 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5839echo "${ECHO_T}$ac_ct_AR" >&6 5840else 5841 echo "$as_me:$LINENO: result: no" >&5 5842echo "${ECHO_T}no" >&6 5843fi 5844 5845 AR=$ac_ct_AR 5846else 5847 AR="$ac_cv_prog_AR" 5848fi 5849 5850if test -n "$ac_tool_prefix"; then 5851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5852set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5853echo "$as_me:$LINENO: checking for $ac_word" >&5 5854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5855if test "${ac_cv_prog_RANLIB+set}" = set; then 5856 echo $ECHO_N "(cached) $ECHO_C" >&6 5857else 5858 if test -n "$RANLIB"; then 5859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5860else 5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5862for as_dir in $PATH 5863do 5864 IFS=$as_save_IFS 5865 test -z "$as_dir" && as_dir=. 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872done 5873done 5874 5875fi 5876fi 5877RANLIB=$ac_cv_prog_RANLIB 5878if test -n "$RANLIB"; then 5879 echo "$as_me:$LINENO: result: $RANLIB" >&5 5880echo "${ECHO_T}$RANLIB" >&6 5881else 5882 echo "$as_me:$LINENO: result: no" >&5 5883echo "${ECHO_T}no" >&6 5884fi 5885 5886fi 5887if test -z "$ac_cv_prog_RANLIB"; then 5888 ac_ct_RANLIB=$RANLIB 5889 # Extract the first word of "ranlib", so it can be a program name with args. 5890set dummy ranlib; ac_word=$2 5891echo "$as_me:$LINENO: checking for $ac_word" >&5 5892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5893if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5894 echo $ECHO_N "(cached) $ECHO_C" >&6 5895else 5896 if test -n "$ac_ct_RANLIB"; then 5897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5906 ac_cv_prog_ac_ct_RANLIB="ranlib" 5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911done 5912 5913 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5914fi 5915fi 5916ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5917if test -n "$ac_ct_RANLIB"; then 5918 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5919echo "${ECHO_T}$ac_ct_RANLIB" >&6 5920else 5921 echo "$as_me:$LINENO: result: no" >&5 5922echo "${ECHO_T}no" >&6 5923fi 5924 5925 RANLIB=$ac_ct_RANLIB 5926else 5927 RANLIB="$ac_cv_prog_RANLIB" 5928fi 5929 5930if test -n "$ac_tool_prefix"; then 5931 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5932set dummy ${ac_tool_prefix}strip; ac_word=$2 5933echo "$as_me:$LINENO: checking for $ac_word" >&5 5934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5935if test "${ac_cv_prog_STRIP+set}" = set; then 5936 echo $ECHO_N "(cached) $ECHO_C" >&6 5937else 5938 if test -n "$STRIP"; then 5939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5948 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953done 5954 5955fi 5956fi 5957STRIP=$ac_cv_prog_STRIP 5958if test -n "$STRIP"; then 5959 echo "$as_me:$LINENO: result: $STRIP" >&5 5960echo "${ECHO_T}$STRIP" >&6 5961else 5962 echo "$as_me:$LINENO: result: no" >&5 5963echo "${ECHO_T}no" >&6 5964fi 5965 5966fi 5967if test -z "$ac_cv_prog_STRIP"; then 5968 ac_ct_STRIP=$STRIP 5969 # Extract the first word of "strip", so it can be a program name with args. 5970set dummy strip; ac_word=$2 5971echo "$as_me:$LINENO: checking for $ac_word" >&5 5972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5973if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5974 echo $ECHO_N "(cached) $ECHO_C" >&6 5975else 5976 if test -n "$ac_ct_STRIP"; then 5977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_ac_ct_STRIP="strip" 5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991done 5992 5993 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5994fi 5995fi 5996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5997if test -n "$ac_ct_STRIP"; then 5998 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5999echo "${ECHO_T}$ac_ct_STRIP" >&6 6000else 6001 echo "$as_me:$LINENO: result: no" >&5 6002echo "${ECHO_T}no" >&6 6003fi 6004 6005 STRIP=$ac_ct_STRIP 6006else 6007 STRIP="$ac_cv_prog_STRIP" 6008fi 6009 6010 6011old_CC="$CC" 6012old_CFLAGS="$CFLAGS" 6013 6014# Set sane defaults for various variables 6015test -z "$AR" && AR=ar 6016test -z "$AR_FLAGS" && AR_FLAGS=cru 6017test -z "$AS" && AS=as 6018test -z "$CC" && CC=cc 6019test -z "$LTCC" && LTCC=$CC 6020test -z "$DLLTOOL" && DLLTOOL=dlltool 6021test -z "$LD" && LD=ld 6022test -z "$LN_S" && LN_S="ln -s" 6023test -z "$MAGIC_CMD" && MAGIC_CMD=file 6024test -z "$NM" && NM=nm 6025test -z "$SED" && SED=sed 6026test -z "$OBJDUMP" && OBJDUMP=objdump 6027test -z "$RANLIB" && RANLIB=: 6028test -z "$STRIP" && STRIP=: 6029test -z "$ac_objext" && ac_objext=o 6030 6031# Determine commands to create old-style static archives. 6032old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6033old_postinstall_cmds='chmod 644 $oldlib' 6034old_postuninstall_cmds= 6035 6036if test -n "$RANLIB"; then 6037 case $host_os in 6038 openbsd*) 6039 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6040 ;; 6041 *) 6042 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6043 ;; 6044 esac 6045 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6046fi 6047 6048for cc_temp in $compiler""; do 6049 case $cc_temp in 6050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6052 \-*) ;; 6053 *) break;; 6054 esac 6055done 6056cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6057 6058 6059# Only perform the check for file, if the check method requires it 6060case $deplibs_check_method in 6061file_magic*) 6062 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6063 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6064echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6065if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6066 echo $ECHO_N "(cached) $ECHO_C" >&6 6067else 6068 case $MAGIC_CMD in 6069[\\/*] | ?:[\\/]*) 6070 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6071 ;; 6072*) 6073 lt_save_MAGIC_CMD="$MAGIC_CMD" 6074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6076 for ac_dir in $ac_dummy; do 6077 IFS="$lt_save_ifs" 6078 test -z "$ac_dir" && ac_dir=. 6079 if test -f $ac_dir/${ac_tool_prefix}file; then 6080 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6081 if test -n "$file_magic_test_file"; then 6082 case $deplibs_check_method in 6083 "file_magic "*) 6084 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6087 $EGREP "$file_magic_regex" > /dev/null; then 6088 : 6089 else 6090 cat <<EOF 1>&2 6091 6092*** Warning: the command libtool uses to detect shared libraries, 6093*** $file_magic_cmd, produces output that libtool cannot recognize. 6094*** The result is that libtool may fail to recognize shared libraries 6095*** as such. This will affect the creation of libtool libraries that 6096*** depend on shared libraries, but programs linked with such libtool 6097*** libraries will work regardless of this problem. Nevertheless, you 6098*** may want to report the problem to your system manager and/or to 6099*** bug-libtool@gnu.org 6100 6101EOF 6102 fi ;; 6103 esac 6104 fi 6105 break 6106 fi 6107 done 6108 IFS="$lt_save_ifs" 6109 MAGIC_CMD="$lt_save_MAGIC_CMD" 6110 ;; 6111esac 6112fi 6113 6114MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6115if test -n "$MAGIC_CMD"; then 6116 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6117echo "${ECHO_T}$MAGIC_CMD" >&6 6118else 6119 echo "$as_me:$LINENO: result: no" >&5 6120echo "${ECHO_T}no" >&6 6121fi 6122 6123if test -z "$lt_cv_path_MAGIC_CMD"; then 6124 if test -n "$ac_tool_prefix"; then 6125 echo "$as_me:$LINENO: checking for file" >&5 6126echo $ECHO_N "checking for file... $ECHO_C" >&6 6127if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6128 echo $ECHO_N "(cached) $ECHO_C" >&6 6129else 6130 case $MAGIC_CMD in 6131[\\/*] | ?:[\\/]*) 6132 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6133 ;; 6134*) 6135 lt_save_MAGIC_CMD="$MAGIC_CMD" 6136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6137 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6138 for ac_dir in $ac_dummy; do 6139 IFS="$lt_save_ifs" 6140 test -z "$ac_dir" && ac_dir=. 6141 if test -f $ac_dir/file; then 6142 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6143 if test -n "$file_magic_test_file"; then 6144 case $deplibs_check_method in 6145 "file_magic "*) 6146 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6148 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6149 $EGREP "$file_magic_regex" > /dev/null; then 6150 : 6151 else 6152 cat <<EOF 1>&2 6153 6154*** Warning: the command libtool uses to detect shared libraries, 6155*** $file_magic_cmd, produces output that libtool cannot recognize. 6156*** The result is that libtool may fail to recognize shared libraries 6157*** as such. This will affect the creation of libtool libraries that 6158*** depend on shared libraries, but programs linked with such libtool 6159*** libraries will work regardless of this problem. Nevertheless, you 6160*** may want to report the problem to your system manager and/or to 6161*** bug-libtool@gnu.org 6162 6163EOF 6164 fi ;; 6165 esac 6166 fi 6167 break 6168 fi 6169 done 6170 IFS="$lt_save_ifs" 6171 MAGIC_CMD="$lt_save_MAGIC_CMD" 6172 ;; 6173esac 6174fi 6175 6176MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6177if test -n "$MAGIC_CMD"; then 6178 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6179echo "${ECHO_T}$MAGIC_CMD" >&6 6180else 6181 echo "$as_me:$LINENO: result: no" >&5 6182echo "${ECHO_T}no" >&6 6183fi 6184 6185 else 6186 MAGIC_CMD=: 6187 fi 6188fi 6189 6190 fi 6191 ;; 6192esac 6193 6194enable_dlopen=no 6195enable_win32_dll=no 6196 6197# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6198if test "${enable_libtool_lock+set}" = set; then 6199 enableval="$enable_libtool_lock" 6200 6201fi; 6202test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6203 6204 6205# Check whether --with-pic or --without-pic was given. 6206if test "${with_pic+set}" = set; then 6207 withval="$with_pic" 6208 pic_mode="$withval" 6209else 6210 pic_mode=default 6211fi; 6212test -z "$pic_mode" && pic_mode=default 6213 6214# Check if we have a version mismatch between libtool.m4 and ltmain.sh. 6215# 6216# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. 6217# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually 6218# calls AC_LIBTOOL_CONFIG and creates libtool. 6219# 6220echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 6221echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6 6222if test -z "$ltmain"; then 6223 echo "$as_me:$LINENO: result: no" >&5 6224echo "${ECHO_T}no" >&6 6225 echo 6226 echo "*** Gentoo sanity check failed! ***" 6227 echo "*** \$ltmain is not defined, please check the patch for consistency! ***" 6228 echo 6229 exit 1 6230fi 6231gentoo_lt_version="1.5.18" 6232gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'` 6233if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then 6234 echo "$as_me:$LINENO: result: no" >&5 6235echo "${ECHO_T}no" >&6 6236 echo 6237 echo "*** Gentoo sanity check failed! ***" 6238 echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***" 6239 echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***" 6240 echo 6241 echo "Please run:" 6242 echo 6243 echo " libtoolize --copy --force" 6244 echo 6245 echo "if appropriate, please contact the maintainer of this" 6246 echo "package (or your distribution) for help." 6247 echo 6248 exit 1 6249else 6250 echo "$as_me:$LINENO: result: yes" >&5 6251echo "${ECHO_T}yes" >&6 6252fi 6253 6254 6255# Use C for the default configuration in the libtool script 6256tagname= 6257lt_save_CC="$CC" 6258ac_ext=c 6259ac_cpp='$CPP $CPPFLAGS' 6260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6262ac_compiler_gnu=$ac_cv_c_compiler_gnu 6263 6264 6265# Source file extension for C test sources. 6266ac_ext=c 6267 6268# Object file extension for compiled C test sources. 6269objext=o 6270objext=$objext 6271 6272# Code to be used in simple compile tests 6273lt_simple_compile_test_code="int some_variable = 0;\n" 6274 6275# Code to be used in simple link tests 6276lt_simple_link_test_code='int main(){return(0);}\n' 6277 6278 6279# If no C compiler was specified, use CC. 6280LTCC=${LTCC-"$CC"} 6281 6282# Allow CC to be a program name with arguments. 6283compiler=$CC 6284 6285 6286# save warnings/boilerplate of simple test code 6287ac_outfile=conftest.$ac_objext 6288printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6290_lt_compiler_boilerplate=`cat conftest.err` 6291$rm conftest* 6292 6293ac_outfile=conftest.$ac_objext 6294printf "$lt_simple_link_test_code" >conftest.$ac_ext 6295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6296_lt_linker_boilerplate=`cat conftest.err` 6297$rm conftest* 6298 6299 6300# 6301# Check for any special shared library compilation flags. 6302# 6303lt_prog_cc_shlib= 6304if test "$GCC" = no; then 6305 case $host_os in 6306 sco3.2v5*) 6307 lt_prog_cc_shlib='-belf' 6308 ;; 6309 esac 6310fi 6311if test -n "$lt_prog_cc_shlib"; then 6312 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6313echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6314 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6315 else 6316 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6317echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6318 lt_cv_prog_cc_can_build_shared=no 6319 fi 6320fi 6321 6322 6323# 6324# Check to make sure the static flag actually works. 6325# 6326echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6327echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6328if test "${lt_prog_compiler_static_works+set}" = set; then 6329 echo $ECHO_N "(cached) $ECHO_C" >&6 6330else 6331 lt_prog_compiler_static_works=no 6332 save_LDFLAGS="$LDFLAGS" 6333 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6334 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6336 # The compiler can only warn and ignore the option if not recognized 6337 # So say no if there are warnings 6338 if test -s conftest.err; then 6339 # Append any errors to the config.log. 6340 cat conftest.err 1>&5 6341 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6342 $SED '/^$/d' conftest.err >conftest.er2 6343 if diff conftest.exp conftest.er2 >/dev/null; then 6344 lt_prog_compiler_static_works=yes 6345 fi 6346 else 6347 lt_prog_compiler_static_works=yes 6348 fi 6349 fi 6350 $rm conftest* 6351 LDFLAGS="$save_LDFLAGS" 6352 6353fi 6354echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6355echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6356 6357if test x"$lt_prog_compiler_static_works" = xyes; then 6358 : 6359else 6360 lt_prog_compiler_static= 6361fi 6362 6363 6364 6365 6366lt_prog_compiler_no_builtin_flag= 6367 6368if test "$GCC" = yes; then 6369 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6370 6371 6372echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6373echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6374if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6375 echo $ECHO_N "(cached) $ECHO_C" >&6 6376else 6377 lt_cv_prog_compiler_rtti_exceptions=no 6378 ac_outfile=conftest.$ac_objext 6379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6380 lt_compiler_flag="-fno-rtti -fno-exceptions" 6381 # Insert the option either (1) after the last *FLAGS variable, or 6382 # (2) before a word containing "conftest.", or (3) at the end. 6383 # Note that $ac_compile itself does not contain backslashes and begins 6384 # with a dollar sign (not a hyphen), so the echo should work correctly. 6385 # The option is referenced via a variable to avoid confusing sed. 6386 lt_compile=`echo "$ac_compile" | $SED \ 6387 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6389 -e 's:$: $lt_compiler_flag:'` 6390 (eval echo "\"\$as_me:6390: $lt_compile\"" >&5) 6391 (eval "$lt_compile" 2>conftest.err) 6392 ac_status=$? 6393 cat conftest.err >&5 6394 echo "$as_me:6394: \$? = $ac_status" >&5 6395 if (exit $ac_status) && test -s "$ac_outfile"; then 6396 # The compiler can only warn and ignore the option if not recognized 6397 # So say no if there are warnings other than the usual output. 6398 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6399 $SED '/^$/d' conftest.err >conftest.er2 6400 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6401 lt_cv_prog_compiler_rtti_exceptions=yes 6402 fi 6403 fi 6404 $rm conftest* 6405 6406fi 6407echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6408echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6409 6410if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6411 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6412else 6413 : 6414fi 6415 6416fi 6417 6418lt_prog_compiler_wl= 6419lt_prog_compiler_pic= 6420lt_prog_compiler_static= 6421 6422echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6423echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6424 6425 if test "$GCC" = yes; then 6426 lt_prog_compiler_wl='-Wl,' 6427 lt_prog_compiler_static='-static' 6428 6429 case $host_os in 6430 aix*) 6431 # All AIX code is PIC. 6432 if test "$host_cpu" = ia64; then 6433 # AIX 5 now supports IA64 processor 6434 lt_prog_compiler_static='-Bstatic' 6435 fi 6436 ;; 6437 6438 amigaos*) 6439 # FIXME: we need at least 68020 code to build shared libraries, but 6440 # adding the `-m68020' flag to GCC prevents building anything better, 6441 # like `-m68040'. 6442 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6443 ;; 6444 6445 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6446 # PIC is the default for these OSes. 6447 ;; 6448 6449 mingw* | pw32* | os2*) 6450 # This hack is so that the source file can tell whether it is being 6451 # built for inclusion in a dll (and should export symbols for example). 6452 lt_prog_compiler_pic='-DDLL_EXPORT' 6453 ;; 6454 6455 darwin* | rhapsody*) 6456 # PIC is the default on this platform 6457 # Common symbols not allowed in MH_DYLIB files 6458 lt_prog_compiler_pic='-fno-common' 6459 ;; 6460 6461 msdosdjgpp*) 6462 # Just because we use GCC doesn't mean we suddenly get shared libraries 6463 # on systems that don't support them. 6464 lt_prog_compiler_can_build_shared=no 6465 enable_shared=no 6466 ;; 6467 6468 sysv4*MP*) 6469 if test -d /usr/nec; then 6470 lt_prog_compiler_pic=-Kconform_pic 6471 fi 6472 ;; 6473 6474 hpux*) 6475 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6476 # not for PA HP-UX. 6477 case "$host_cpu" in 6478 hppa*64*|ia64*) 6479 # +Z the default 6480 ;; 6481 *) 6482 lt_prog_compiler_pic='-fPIC' 6483 ;; 6484 esac 6485 ;; 6486 6487 *) 6488 lt_prog_compiler_pic='-fPIC' 6489 ;; 6490 esac 6491 else 6492 # PORTME Check for flag to pass linker flags through the system compiler. 6493 case $host_os in 6494 aix*) 6495 lt_prog_compiler_wl='-Wl,' 6496 if test "$host_cpu" = ia64; then 6497 # AIX 5 now supports IA64 processor 6498 lt_prog_compiler_static='-Bstatic' 6499 else 6500 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6501 fi 6502 ;; 6503 darwin*) 6504 # PIC is the default on this platform 6505 # Common symbols not allowed in MH_DYLIB files 6506 case $cc_basename in 6507 xlc*) 6508 lt_prog_compiler_pic='-qnocommon' 6509 lt_prog_compiler_wl='-Wl,' 6510 ;; 6511 esac 6512 ;; 6513 6514 mingw* | pw32* | os2*) 6515 # This hack is so that the source file can tell whether it is being 6516 # built for inclusion in a dll (and should export symbols for example). 6517 lt_prog_compiler_pic='-DDLL_EXPORT' 6518 ;; 6519 6520 hpux9* | hpux10* | hpux11*) 6521 lt_prog_compiler_wl='-Wl,' 6522 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6523 # not for PA HP-UX. 6524 case "$host_cpu" in 6525 hppa*64*|ia64*) 6526 # +Z the default 6527 ;; 6528 *) 6529 lt_prog_compiler_pic='+Z' 6530 ;; 6531 esac 6532 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6533 lt_prog_compiler_static='${wl}-a ${wl}archive' 6534 ;; 6535 6536 irix5* | irix6* | nonstopux*) 6537 lt_prog_compiler_wl='-Wl,' 6538 # PIC (with -KPIC) is the default. 6539 lt_prog_compiler_static='-non_shared' 6540 ;; 6541 6542 newsos6) 6543 lt_prog_compiler_pic='-KPIC' 6544 lt_prog_compiler_static='-Bstatic' 6545 ;; 6546 6547 linux*) 6548 case $cc_basename in 6549 icc* | ecc*) 6550 lt_prog_compiler_wl='-Wl,' 6551 lt_prog_compiler_pic='-KPIC' 6552 lt_prog_compiler_static='-static' 6553 ;; 6554 pgcc* | pgf77* | pgf90*) 6555 # Portland Group compilers (*not* the Pentium gcc compiler, 6556 # which looks to be a dead project) 6557 lt_prog_compiler_wl='-Wl,' 6558 lt_prog_compiler_pic='-fpic' 6559 lt_prog_compiler_static='-static' 6560 ;; 6561 ccc*) 6562 lt_prog_compiler_wl='-Wl,' 6563 # All Alpha code is PIC. 6564 lt_prog_compiler_static='-non_shared' 6565 ;; 6566 esac 6567 ;; 6568 6569 osf3* | osf4* | osf5*) 6570 lt_prog_compiler_wl='-Wl,' 6571 # All OSF/1 code is PIC. 6572 lt_prog_compiler_static='-non_shared' 6573 ;; 6574 6575 sco3.2v5*) 6576 lt_prog_compiler_pic='-Kpic' 6577 lt_prog_compiler_static='-dn' 6578 ;; 6579 6580 solaris*) 6581 lt_prog_compiler_pic='-KPIC' 6582 lt_prog_compiler_static='-Bstatic' 6583 case $cc_basename in 6584 f77* | f90* | f95*) 6585 lt_prog_compiler_wl='-Qoption ld ';; 6586 *) 6587 lt_prog_compiler_wl='-Wl,';; 6588 esac 6589 ;; 6590 6591 sunos4*) 6592 lt_prog_compiler_wl='-Qoption ld ' 6593 lt_prog_compiler_pic='-PIC' 6594 lt_prog_compiler_static='-Bstatic' 6595 ;; 6596 6597 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6598 lt_prog_compiler_wl='-Wl,' 6599 lt_prog_compiler_pic='-KPIC' 6600 lt_prog_compiler_static='-Bstatic' 6601 ;; 6602 6603 sysv4*MP*) 6604 if test -d /usr/nec ;then 6605 lt_prog_compiler_pic='-Kconform_pic' 6606 lt_prog_compiler_static='-Bstatic' 6607 fi 6608 ;; 6609 6610 unicos*) 6611 lt_prog_compiler_wl='-Wl,' 6612 lt_prog_compiler_can_build_shared=no 6613 ;; 6614 6615 uts4*) 6616 lt_prog_compiler_pic='-pic' 6617 lt_prog_compiler_static='-Bstatic' 6618 ;; 6619 6620 *) 6621 lt_prog_compiler_can_build_shared=no 6622 ;; 6623 esac 6624 fi 6625 6626echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6627echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6628 6629# 6630# Check to make sure the PIC flag actually works. 6631# 6632if test -n "$lt_prog_compiler_pic"; then 6633 6634echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6635echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6636if test "${lt_prog_compiler_pic_works+set}" = set; then 6637 echo $ECHO_N "(cached) $ECHO_C" >&6 6638else 6639 lt_prog_compiler_pic_works=no 6640 ac_outfile=conftest.$ac_objext 6641 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6642 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6643 # Insert the option either (1) after the last *FLAGS variable, or 6644 # (2) before a word containing "conftest.", or (3) at the end. 6645 # Note that $ac_compile itself does not contain backslashes and begins 6646 # with a dollar sign (not a hyphen), so the echo should work correctly. 6647 # The option is referenced via a variable to avoid confusing sed. 6648 lt_compile=`echo "$ac_compile" | $SED \ 6649 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6651 -e 's:$: $lt_compiler_flag:'` 6652 (eval echo "\"\$as_me:6652: $lt_compile\"" >&5) 6653 (eval "$lt_compile" 2>conftest.err) 6654 ac_status=$? 6655 cat conftest.err >&5 6656 echo "$as_me:6656: \$? = $ac_status" >&5 6657 if (exit $ac_status) && test -s "$ac_outfile"; then 6658 # The compiler can only warn and ignore the option if not recognized 6659 # So say no if there are warnings other than the usual output. 6660 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6661 $SED '/^$/d' conftest.err >conftest.er2 6662 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6663 lt_prog_compiler_pic_works=yes 6664 fi 6665 fi 6666 $rm conftest* 6667 6668fi 6669echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6670echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6671 6672if test x"$lt_prog_compiler_pic_works" = xyes; then 6673 case $lt_prog_compiler_pic in 6674 "" | " "*) ;; 6675 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6676 esac 6677else 6678 lt_prog_compiler_pic= 6679 lt_prog_compiler_can_build_shared=no 6680fi 6681 6682fi 6683case "$host_os" in 6684 # For platforms which do not support PIC, -DPIC is meaningless: 6685 *djgpp*) 6686 lt_prog_compiler_pic= 6687 ;; 6688 *) 6689 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6690 ;; 6691esac 6692 6693echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6694echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6695if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6696 echo $ECHO_N "(cached) $ECHO_C" >&6 6697else 6698 lt_cv_prog_compiler_c_o=no 6699 $rm -r conftest 2>/dev/null 6700 mkdir conftest 6701 cd conftest 6702 mkdir out 6703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6704 6705 lt_compiler_flag="-o out/conftest2.$ac_objext" 6706 # Insert the option either (1) after the last *FLAGS variable, or 6707 # (2) before a word containing "conftest.", or (3) at the end. 6708 # Note that $ac_compile itself does not contain backslashes and begins 6709 # with a dollar sign (not a hyphen), so the echo should work correctly. 6710 lt_compile=`echo "$ac_compile" | $SED \ 6711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6713 -e 's:$: $lt_compiler_flag:'` 6714 (eval echo "\"\$as_me:6714: $lt_compile\"" >&5) 6715 (eval "$lt_compile" 2>out/conftest.err) 6716 ac_status=$? 6717 cat out/conftest.err >&5 6718 echo "$as_me:6718: \$? = $ac_status" >&5 6719 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6720 then 6721 # The compiler can only warn and ignore the option if not recognized 6722 # So say no if there are warnings 6723 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6724 $SED '/^$/d' out/conftest.err >out/conftest.er2 6725 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6726 lt_cv_prog_compiler_c_o=yes 6727 fi 6728 fi 6729 chmod u+w . 6730 $rm conftest* 6731 # SGI C++ compiler will create directory out/ii_files/ for 6732 # template instantiation 6733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6734 $rm out/* && rmdir out 6735 cd .. 6736 rmdir conftest 6737 $rm conftest* 6738 6739fi 6740echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6741echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6742 6743 6744hard_links="nottested" 6745if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6746 # do not overwrite the value of need_locks provided by the user 6747 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6748echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6749 hard_links=yes 6750 $rm conftest* 6751 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6752 touch conftest.a 6753 ln conftest.a conftest.b 2>&5 || hard_links=no 6754 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6755 echo "$as_me:$LINENO: result: $hard_links" >&5 6756echo "${ECHO_T}$hard_links" >&6 6757 if test "$hard_links" = no; then 6758 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6759echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6760 need_locks=warn 6761 fi 6762else 6763 need_locks=no 6764fi 6765 6766echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6767echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6768 6769 runpath_var= 6770 allow_undefined_flag= 6771 enable_shared_with_static_runtimes=no 6772 archive_cmds= 6773 archive_expsym_cmds= 6774 old_archive_From_new_cmds= 6775 old_archive_from_expsyms_cmds= 6776 export_dynamic_flag_spec= 6777 whole_archive_flag_spec= 6778 thread_safe_flag_spec= 6779 hardcode_libdir_flag_spec= 6780 hardcode_libdir_flag_spec_ld= 6781 hardcode_libdir_separator= 6782 hardcode_direct=no 6783 hardcode_minus_L=no 6784 hardcode_shlibpath_var=unsupported 6785 link_all_deplibs=unknown 6786 hardcode_automatic=no 6787 module_cmds= 6788 module_expsym_cmds= 6789 always_export_symbols=no 6790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6791 # include_expsyms should be a list of space-separated symbols to be *always* 6792 # included in the symbol list 6793 include_expsyms= 6794 # exclude_expsyms can be an extended regexp of symbols to exclude 6795 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6797 # as well as any symbol that contains `d'. 6798 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6800 # platforms (ab)use it in PIC code, but their linkers get confused if 6801 # the symbol is explicitly referenced. Since portable code cannot 6802 # rely on this symbol name, it's probably fine to never include it in 6803 # preloaded symbol tables. 6804 extract_expsyms_cmds= 6805 # Just being paranoid about ensuring that cc_basename is set. 6806 for cc_temp in $compiler""; do 6807 case $cc_temp in 6808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6810 \-*) ;; 6811 *) break;; 6812 esac 6813done 6814cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6815 6816 case $host_os in 6817 cygwin* | mingw* | pw32*) 6818 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6819 # When not using gcc, we currently assume that we are using 6820 # Microsoft Visual C++. 6821 if test "$GCC" != yes; then 6822 with_gnu_ld=no 6823 fi 6824 ;; 6825 openbsd*) 6826 with_gnu_ld=no 6827 ;; 6828 esac 6829 6830 ld_shlibs=yes 6831 if test "$with_gnu_ld" = yes; then 6832 # If archive_cmds runs LD, not CC, wlarc should be empty 6833 wlarc='${wl}' 6834 6835 # Set some defaults for GNU ld with shared library support. These 6836 # are reset later if shared libraries are not supported. Putting them 6837 # here allows them to be overridden if necessary. 6838 runpath_var=LD_RUN_PATH 6839 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6840 export_dynamic_flag_spec='${wl}--export-dynamic' 6841 # ancient GNU ld didn't support --whole-archive et. al. 6842 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6843 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6844 else 6845 whole_archive_flag_spec= 6846 fi 6847 supports_anon_versioning=no 6848 case `$LD -v 2>/dev/null` in 6849 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6850 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6851 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6852 *\ 2.11.*) ;; # other 2.11 versions 6853 *) supports_anon_versioning=yes ;; 6854 esac 6855 6856 # See if GNU ld supports shared libraries. 6857 case $host_os in 6858 aix3* | aix4* | aix5*) 6859 # On AIX/PPC, the GNU linker is very broken 6860 if test "$host_cpu" != ia64; then 6861 ld_shlibs=no 6862 cat <<EOF 1>&2 6863 6864*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6865*** to be unable to reliably create shared libraries on AIX. 6866*** Therefore, libtool is disabling shared libraries support. If you 6867*** really care for shared libraries, you may want to modify your PATH 6868*** so that a non-GNU linker is found, and then restart. 6869 6870EOF 6871 fi 6872 ;; 6873 6874 amigaos*) 6875 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)' 6876 hardcode_libdir_flag_spec='-L$libdir' 6877 hardcode_minus_L=yes 6878 6879 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6880 # that the semantics of dynamic libraries on AmigaOS, at least up 6881 # to version 4, is to share data among multiple programs linked 6882 # with the same dynamic library. Since this doesn't match the 6883 # behavior of shared libraries on other platforms, we can't use 6884 # them. 6885 ld_shlibs=no 6886 ;; 6887 6888 beos*) 6889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6890 allow_undefined_flag=unsupported 6891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6892 # support --undefined. This deserves some investigation. FIXME 6893 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6894 else 6895 ld_shlibs=no 6896 fi 6897 ;; 6898 6899 cygwin* | mingw* | pw32*) 6900 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6901 # as there is no search path for DLLs. 6902 hardcode_libdir_flag_spec='-L$libdir' 6903 allow_undefined_flag=unsupported 6904 always_export_symbols=no 6905 enable_shared_with_static_runtimes=yes 6906 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6907 6908 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6910 # If the export-symbols file already is a .def file (1st line 6911 # is EXPORTS), use it as is; otherwise, prepend... 6912 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6913 cp $export_symbols $output_objdir/$soname.def; 6914 else 6915 echo EXPORTS > $output_objdir/$soname.def; 6916 cat $export_symbols >> $output_objdir/$soname.def; 6917 fi~ 6918 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6919 else 6920 ld_shlibs=no 6921 fi 6922 ;; 6923 6924 linux*) 6925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6926 tmp_addflag= 6927 case $cc_basename,$host_cpu in 6928 pgcc*) # Portland Group C compiler 6929 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6930 tmp_addflag=' $pic_flag' 6931 ;; 6932 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 6933 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6934 tmp_addflag=' $pic_flag -Mnomain' ;; 6935 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6936 tmp_addflag=' -i_dynamic' ;; 6937 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6938 tmp_addflag=' -i_dynamic -nofor_main' ;; 6939 ifc* | ifort*) # Intel Fortran compiler 6940 tmp_addflag=' -nofor_main' ;; 6941 esac 6942 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6943 6944 if test $supports_anon_versioning = yes; then 6945 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6947 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6948 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6949 fi 6950 else 6951 ld_shlibs=no 6952 fi 6953 ;; 6954 6955 netbsd*) 6956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6957 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6958 wlarc= 6959 else 6960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6962 fi 6963 ;; 6964 6965 solaris* | sysv5*) 6966 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6967 ld_shlibs=no 6968 cat <<EOF 1>&2 6969 6970*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6971*** create shared libraries on Solaris systems. Therefore, libtool 6972*** is disabling shared libraries support. We urge you to upgrade GNU 6973*** binutils to release 2.9.1 or newer. Another option is to modify 6974*** your PATH or compiler configuration so that the native linker is 6975*** used, and then restart. 6976 6977EOF 6978 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6981 else 6982 ld_shlibs=no 6983 fi 6984 ;; 6985 6986 sunos4*) 6987 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6988 wlarc= 6989 hardcode_direct=yes 6990 hardcode_shlibpath_var=no 6991 ;; 6992 6993 *) 6994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6997 else 6998 ld_shlibs=no 6999 fi 7000 ;; 7001 esac 7002 7003 if test "$ld_shlibs" = no; then 7004 runpath_var= 7005 hardcode_libdir_flag_spec= 7006 export_dynamic_flag_spec= 7007 whole_archive_flag_spec= 7008 fi 7009 else 7010 # PORTME fill in a description of your system's linker (not GNU ld) 7011 case $host_os in 7012 aix3*) 7013 allow_undefined_flag=unsupported 7014 always_export_symbols=yes 7015 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' 7016 # Note: this linker hardcodes the directories in LIBPATH if there 7017 # are no directories specified by -L. 7018 hardcode_minus_L=yes 7019 if test "$GCC" = yes && test -z "$link_static_flag"; then 7020 # Neither direct hardcoding nor static linking is supported with a 7021 # broken collect2. 7022 hardcode_direct=unsupported 7023 fi 7024 ;; 7025 7026 aix4* | aix5*) 7027 if test "$host_cpu" = ia64; then 7028 # On IA64, the linker does run time linking by default, so we don't 7029 # have to do anything special. 7030 aix_use_runtimelinking=no 7031 exp_sym_flag='-Bexport' 7032 no_entry_flag="" 7033 else 7034 # If we're using GNU nm, then we don't want the "-C" option. 7035 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7036 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7037 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' 7038 else 7039 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' 7040 fi 7041 aix_use_runtimelinking=no 7042 7043 # Test if we are trying to use run time linking or normal 7044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7045 # need to do runtime linking. 7046 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7047 for ld_flag in $LDFLAGS; do 7048 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7049 aix_use_runtimelinking=yes 7050 break 7051 fi 7052 done 7053 esac 7054 7055 exp_sym_flag='-bexport' 7056 no_entry_flag='-bnoentry' 7057 fi 7058 7059 # When large executables or shared objects are built, AIX ld can 7060 # have problems creating the table of contents. If linking a library 7061 # or program results in "error TOC overflow" add -mminimal-toc to 7062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7064 7065 archive_cmds='' 7066 hardcode_direct=yes 7067 hardcode_libdir_separator=':' 7068 link_all_deplibs=yes 7069 7070 if test "$GCC" = yes; then 7071 case $host_os in aix4.[012]|aix4.[012].*) 7072 # We only want to do this on AIX 4.2 and lower, the check 7073 # below for broken collect2 doesn't work under 4.3+ 7074 collect2name=`${CC} -print-prog-name=collect2` 7075 if test -f "$collect2name" && \ 7076 strings "$collect2name" | grep resolve_lib_name >/dev/null 7077 then 7078 # We have reworked collect2 7079 hardcode_direct=yes 7080 else 7081 # We have old collect2 7082 hardcode_direct=unsupported 7083 # It fails to find uninstalled libraries when the uninstalled 7084 # path is not listed in the libpath. Setting hardcode_minus_L 7085 # to unsupported forces relinking 7086 hardcode_minus_L=yes 7087 hardcode_libdir_flag_spec='-L$libdir' 7088 hardcode_libdir_separator= 7089 fi 7090 esac 7091 shared_flag='-shared' 7092 if test "$aix_use_runtimelinking" = yes; then 7093 shared_flag="$shared_flag "'${wl}-G' 7094 fi 7095 else 7096 # not using gcc 7097 if test "$host_cpu" = ia64; then 7098 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7099 # chokes on -Wl,-G. The following line is correct: 7100 shared_flag='-G' 7101 else 7102 if test "$aix_use_runtimelinking" = yes; then 7103 shared_flag='${wl}-G' 7104 else 7105 shared_flag='${wl}-bM:SRE' 7106 fi 7107 fi 7108 fi 7109 7110 # It seems that -bexpall does not export symbols beginning with 7111 # underscore (_), so it is better to generate a list of symbols to export. 7112 always_export_symbols=yes 7113 if test "$aix_use_runtimelinking" = yes; then 7114 # Warning - without using the other runtime loading flags (-brtl), 7115 # -berok will link without error, but may produce a broken library. 7116 allow_undefined_flag='-berok' 7117 # Determine the default libpath from the value encoded in an empty executable. 7118 cat >conftest.$ac_ext <<_ACEOF 7119/* confdefs.h. */ 7120_ACEOF 7121cat confdefs.h >>conftest.$ac_ext 7122cat >>conftest.$ac_ext <<_ACEOF 7123/* end confdefs.h. */ 7124 7125int 7126main () 7127{ 7128 7129 ; 7130 return 0; 7131} 7132_ACEOF 7133rm -f conftest.$ac_objext conftest$ac_exeext 7134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7135 (eval $ac_link) 2>conftest.er1 7136 ac_status=$? 7137 grep -v '^ *+' conftest.er1 >conftest.err 7138 rm -f conftest.er1 7139 cat conftest.err >&5 7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7141 (exit $ac_status); } && 7142 { ac_try='test -z "$ac_c_werror_flag" 7143 || test ! -s conftest.err' 7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7145 (eval $ac_try) 2>&5 7146 ac_status=$? 7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7148 (exit $ac_status); }; } && 7149 { ac_try='test -s conftest$ac_exeext' 7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7151 (eval $ac_try) 2>&5 7152 ac_status=$? 7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7154 (exit $ac_status); }; }; then 7155 7156aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7157}'` 7158# Check for a 64-bit object if we didn't find anything. 7159if 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; } 7160}'`; fi 7161else 7162 echo "$as_me: failed program was:" >&5 7163sed 's/^/| /' conftest.$ac_ext >&5 7164 7165fi 7166rm -f conftest.err conftest.$ac_objext \ 7167 conftest$ac_exeext conftest.$ac_ext 7168if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7169 7170 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7171 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" 7172 else 7173 if test "$host_cpu" = ia64; then 7174 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7175 allow_undefined_flag="-z nodefs" 7176 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" 7177 else 7178 # Determine the default libpath from the value encoded in an empty executable. 7179 cat >conftest.$ac_ext <<_ACEOF 7180/* confdefs.h. */ 7181_ACEOF 7182cat confdefs.h >>conftest.$ac_ext 7183cat >>conftest.$ac_ext <<_ACEOF 7184/* end confdefs.h. */ 7185 7186int 7187main () 7188{ 7189 7190 ; 7191 return 0; 7192} 7193_ACEOF 7194rm -f conftest.$ac_objext conftest$ac_exeext 7195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7196 (eval $ac_link) 2>conftest.er1 7197 ac_status=$? 7198 grep -v '^ *+' conftest.er1 >conftest.err 7199 rm -f conftest.er1 7200 cat conftest.err >&5 7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7202 (exit $ac_status); } && 7203 { ac_try='test -z "$ac_c_werror_flag" 7204 || test ! -s conftest.err' 7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7206 (eval $ac_try) 2>&5 7207 ac_status=$? 7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7209 (exit $ac_status); }; } && 7210 { ac_try='test -s conftest$ac_exeext' 7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7212 (eval $ac_try) 2>&5 7213 ac_status=$? 7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7215 (exit $ac_status); }; }; then 7216 7217aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7218}'` 7219# Check for a 64-bit object if we didn't find anything. 7220if 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; } 7221}'`; fi 7222else 7223 echo "$as_me: failed program was:" >&5 7224sed 's/^/| /' conftest.$ac_ext >&5 7225 7226fi 7227rm -f conftest.err conftest.$ac_objext \ 7228 conftest$ac_exeext conftest.$ac_ext 7229if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7230 7231 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7232 # Warning - without using the other run time loading flags, 7233 # -berok will link without error, but may produce a broken library. 7234 no_undefined_flag=' ${wl}-bernotok' 7235 allow_undefined_flag=' ${wl}-berok' 7236 # -bexpall does not export symbols beginning with underscore (_) 7237 always_export_symbols=yes 7238 # Exported symbols can be pulled into shared objects from archives 7239 whole_archive_flag_spec=' ' 7240 archive_cmds_need_lc=yes 7241 # This is similar to how AIX traditionally builds it's shared libraries. 7242 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' 7243 fi 7244 fi 7245 ;; 7246 7247 amigaos*) 7248 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)' 7249 hardcode_libdir_flag_spec='-L$libdir' 7250 hardcode_minus_L=yes 7251 # see comment about different semantics on the GNU ld section 7252 ld_shlibs=no 7253 ;; 7254 7255 bsdi[45]*) 7256 export_dynamic_flag_spec=-rdynamic 7257 ;; 7258 7259 cygwin* | mingw* | pw32*) 7260 # When not using gcc, we currently assume that we are using 7261 # Microsoft Visual C++. 7262 # hardcode_libdir_flag_spec is actually meaningless, as there is 7263 # no search path for DLLs. 7264 hardcode_libdir_flag_spec=' ' 7265 allow_undefined_flag=unsupported 7266 # Tell ltmain to make .lib files, not .a files. 7267 libext=lib 7268 # Tell ltmain to make .dll files, not .so files. 7269 shrext_cmds=".dll" 7270 # FIXME: Setting linknames here is a bad hack. 7271 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7272 # The linker will automatically build a .lib file if we build a DLL. 7273 old_archive_From_new_cmds='true' 7274 # FIXME: Should let the user specify the lib program. 7275 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7276 fix_srcfile_path='`cygpath -w "$srcfile"`' 7277 enable_shared_with_static_runtimes=yes 7278 ;; 7279 7280 darwin* | rhapsody*) 7281 case "$host_os" in 7282 rhapsody* | darwin1.[012]) 7283 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7284 ;; 7285 *) # Darwin 1.3 on 7286 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7287 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7288 else 7289 case ${MACOSX_DEPLOYMENT_TARGET} in 7290 10.[012]) 7291 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7292 ;; 7293 10.*) 7294 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7295 ;; 7296 esac 7297 fi 7298 ;; 7299 esac 7300 archive_cmds_need_lc=no 7301 hardcode_direct=no 7302 hardcode_automatic=yes 7303 hardcode_shlibpath_var=unsupported 7304 whole_archive_flag_spec='' 7305 link_all_deplibs=yes 7306 if test "$GCC" = yes ; then 7307 output_verbose_link_cmd='echo' 7308 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7309 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7311 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}' 7312 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}' 7313 else 7314 case $cc_basename in 7315 xlc*) 7316 output_verbose_link_cmd='echo' 7317 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7318 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7319 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7320 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}' 7321 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}' 7322 ;; 7323 *) 7324 ld_shlibs=no 7325 ;; 7326 esac 7327 fi 7328 ;; 7329 7330 dgux*) 7331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7332 hardcode_libdir_flag_spec='-L$libdir' 7333 hardcode_shlibpath_var=no 7334 ;; 7335 7336 freebsd1*) 7337 ld_shlibs=no 7338 ;; 7339 7340 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7341 # support. Future versions do this automatically, but an explicit c++rt0.o 7342 # does not break anything, and helps significantly (at the cost of a little 7343 # extra space). 7344 freebsd2.2*) 7345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7346 hardcode_libdir_flag_spec='-R$libdir' 7347 hardcode_direct=yes 7348 hardcode_shlibpath_var=no 7349 ;; 7350 7351 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7352 freebsd2*) 7353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7354 hardcode_direct=yes 7355 hardcode_minus_L=yes 7356 hardcode_shlibpath_var=no 7357 ;; 7358 7359 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7360 freebsd* | kfreebsd*-gnu | dragonfly*) 7361 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7362 hardcode_libdir_flag_spec='-R$libdir' 7363 hardcode_direct=yes 7364 hardcode_shlibpath_var=no 7365 ;; 7366 7367 hpux9*) 7368 if test "$GCC" = yes; then 7369 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' 7370 else 7371 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' 7372 fi 7373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7374 hardcode_libdir_separator=: 7375 hardcode_direct=yes 7376 7377 # hardcode_minus_L: Not really in the search PATH, 7378 # but as the default location of the library. 7379 hardcode_minus_L=yes 7380 export_dynamic_flag_spec='${wl}-E' 7381 ;; 7382 7383 hpux10* | hpux11*) 7384 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7385 case "$host_cpu" in 7386 hppa*64*|ia64*) 7387 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7388 ;; 7389 *) 7390 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7391 ;; 7392 esac 7393 else 7394 case "$host_cpu" in 7395 hppa*64*|ia64*) 7396 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7397 ;; 7398 *) 7399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7400 ;; 7401 esac 7402 fi 7403 if test "$with_gnu_ld" = no; then 7404 case "$host_cpu" in 7405 hppa*64*) 7406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7407 hardcode_libdir_flag_spec_ld='+b $libdir' 7408 hardcode_libdir_separator=: 7409 hardcode_direct=no 7410 hardcode_shlibpath_var=no 7411 ;; 7412 ia64*) 7413 hardcode_libdir_flag_spec='-L$libdir' 7414 hardcode_direct=no 7415 hardcode_shlibpath_var=no 7416 7417 # hardcode_minus_L: Not really in the search PATH, 7418 # but as the default location of the library. 7419 hardcode_minus_L=yes 7420 ;; 7421 *) 7422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7423 hardcode_libdir_separator=: 7424 hardcode_direct=yes 7425 export_dynamic_flag_spec='${wl}-E' 7426 7427 # hardcode_minus_L: Not really in the search PATH, 7428 # but as the default location of the library. 7429 hardcode_minus_L=yes 7430 ;; 7431 esac 7432 fi 7433 ;; 7434 7435 irix5* | irix6* | nonstopux*) 7436 if test "$GCC" = yes; then 7437 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' 7438 else 7439 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' 7440 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7441 fi 7442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7443 hardcode_libdir_separator=: 7444 link_all_deplibs=yes 7445 ;; 7446 7447 netbsd*) 7448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7450 else 7451 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7452 fi 7453 hardcode_libdir_flag_spec='-R$libdir' 7454 hardcode_direct=yes 7455 hardcode_shlibpath_var=no 7456 ;; 7457 7458 newsos6) 7459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7460 hardcode_direct=yes 7461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7462 hardcode_libdir_separator=: 7463 hardcode_shlibpath_var=no 7464 ;; 7465 7466 openbsd*) 7467 hardcode_direct=yes 7468 hardcode_shlibpath_var=no 7469 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7471 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7473 export_dynamic_flag_spec='${wl}-E' 7474 else 7475 case $host_os in 7476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7478 hardcode_libdir_flag_spec='-R$libdir' 7479 ;; 7480 *) 7481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7483 ;; 7484 esac 7485 fi 7486 ;; 7487 7488 os2*) 7489 hardcode_libdir_flag_spec='-L$libdir' 7490 hardcode_minus_L=yes 7491 allow_undefined_flag=unsupported 7492 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' 7493 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7494 ;; 7495 7496 osf3*) 7497 if test "$GCC" = yes; then 7498 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7499 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' 7500 else 7501 allow_undefined_flag=' -expect_unresolved \*' 7502 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' 7503 fi 7504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7505 hardcode_libdir_separator=: 7506 ;; 7507 7508 osf4* | osf5*) # as osf3* with the addition of -msym flag 7509 if test "$GCC" = yes; then 7510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7511 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' 7512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7513 else 7514 allow_undefined_flag=' -expect_unresolved \*' 7515 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' 7516 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7517 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7518 7519 # Both c and cxx compiler support -rpath directly 7520 hardcode_libdir_flag_spec='-rpath $libdir' 7521 fi 7522 hardcode_libdir_separator=: 7523 ;; 7524 7525 sco3.2v5*) 7526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7527 hardcode_shlibpath_var=no 7528 export_dynamic_flag_spec='${wl}-Bexport' 7529 runpath_var=LD_RUN_PATH 7530 hardcode_runpath_var=yes 7531 ;; 7532 7533 solaris*) 7534 no_undefined_flag=' -z text' 7535 if test "$GCC" = yes; then 7536 wlarc='${wl}' 7537 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7538 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7539 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7540 else 7541 wlarc='' 7542 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7543 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7544 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7545 fi 7546 hardcode_libdir_flag_spec='-R$libdir' 7547 hardcode_shlibpath_var=no 7548 case $host_os in 7549 solaris2.[0-5] | solaris2.[0-5].*) ;; 7550 *) 7551 # The compiler driver will combine linker options so we 7552 # cannot just pass the convience library names through 7553 # without $wl, iff we do not link with $LD. 7554 # Luckily, gcc supports the same syntax we need for Sun Studio. 7555 # Supported since Solaris 2.6 (maybe 2.5.1?) 7556 case $wlarc in 7557 '') 7558 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7559 *) 7560 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7561 esac ;; 7562 esac 7563 link_all_deplibs=yes 7564 ;; 7565 7566 sunos4*) 7567 if test "x$host_vendor" = xsequent; then 7568 # Use $CC to link under sequent, because it throws in some extra .o 7569 # files that make .init and .fini sections work. 7570 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7571 else 7572 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7573 fi 7574 hardcode_libdir_flag_spec='-L$libdir' 7575 hardcode_direct=yes 7576 hardcode_minus_L=yes 7577 hardcode_shlibpath_var=no 7578 ;; 7579 7580 sysv4) 7581 case $host_vendor in 7582 sni) 7583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7584 hardcode_direct=yes # is this really true??? 7585 ;; 7586 siemens) 7587 ## LD is ld it makes a PLAMLIB 7588 ## CC just makes a GrossModule. 7589 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7590 reload_cmds='$CC -r -o $output$reload_objs' 7591 hardcode_direct=no 7592 ;; 7593 motorola) 7594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7595 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7596 ;; 7597 esac 7598 runpath_var='LD_RUN_PATH' 7599 hardcode_shlibpath_var=no 7600 ;; 7601 7602 sysv4.3*) 7603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7604 hardcode_shlibpath_var=no 7605 export_dynamic_flag_spec='-Bexport' 7606 ;; 7607 7608 sysv4*MP*) 7609 if test -d /usr/nec; then 7610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7611 hardcode_shlibpath_var=no 7612 runpath_var=LD_RUN_PATH 7613 hardcode_runpath_var=yes 7614 ld_shlibs=yes 7615 fi 7616 ;; 7617 7618 sysv4.2uw2*) 7619 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7620 hardcode_direct=yes 7621 hardcode_minus_L=no 7622 hardcode_shlibpath_var=no 7623 hardcode_runpath_var=yes 7624 runpath_var=LD_RUN_PATH 7625 ;; 7626 7627 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7628 no_undefined_flag='${wl}-z ${wl}text' 7629 if test "$GCC" = yes; then 7630 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7631 else 7632 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7633 fi 7634 runpath_var='LD_RUN_PATH' 7635 hardcode_shlibpath_var=no 7636 ;; 7637 7638 sysv5*) 7639 no_undefined_flag=' -z text' 7640 # $CC -shared without GNU ld will not create a library from C++ 7641 # object files and a static libstdc++, better avoid it by now 7642 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7643 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7645 hardcode_libdir_flag_spec= 7646 hardcode_shlibpath_var=no 7647 runpath_var='LD_RUN_PATH' 7648 ;; 7649 7650 uts4*) 7651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7652 hardcode_libdir_flag_spec='-L$libdir' 7653 hardcode_shlibpath_var=no 7654 ;; 7655 7656 *) 7657 ld_shlibs=no 7658 ;; 7659 esac 7660 fi 7661 7662echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7663echo "${ECHO_T}$ld_shlibs" >&6 7664test "$ld_shlibs" = no && can_build_shared=no 7665 7666variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7667if test "$GCC" = yes; then 7668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7669fi 7670 7671# 7672# Do we need to explicitly link libc? 7673# 7674case "x$archive_cmds_need_lc" in 7675x|xyes) 7676 # Assume -lc should be added 7677 archive_cmds_need_lc=yes 7678 7679 if test "$enable_shared" = yes && test "$GCC" = yes; then 7680 case $archive_cmds in 7681 *'~'*) 7682 # FIXME: we may have to deal with multi-command sequences. 7683 ;; 7684 '$CC '*) 7685 # Test whether the compiler implicitly links with -lc since on some 7686 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7687 # to ld, don't add -lc before -lgcc. 7688 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7689echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7690 $rm conftest* 7691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7692 7693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7694 (eval $ac_compile) 2>&5 7695 ac_status=$? 7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7697 (exit $ac_status); } 2>conftest.err; then 7698 soname=conftest 7699 lib=conftest 7700 libobjs=conftest.$ac_objext 7701 deplibs= 7702 wl=$lt_prog_compiler_wl 7703 compiler_flags=-v 7704 linker_flags=-v 7705 verstring= 7706 output_objdir=. 7707 libname=conftest 7708 lt_save_allow_undefined_flag=$allow_undefined_flag 7709 allow_undefined_flag= 7710 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7711 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7712 ac_status=$? 7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7714 (exit $ac_status); } 7715 then 7716 archive_cmds_need_lc=no 7717 else 7718 archive_cmds_need_lc=yes 7719 fi 7720 allow_undefined_flag=$lt_save_allow_undefined_flag 7721 else 7722 cat conftest.err 1>&5 7723 fi 7724 $rm conftest* 7725 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7726echo "${ECHO_T}$archive_cmds_need_lc" >&6 7727 ;; 7728 esac 7729 fi 7730 ;; 7731esac 7732 7733echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7734echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7735library_names_spec= 7736libname_spec='lib$name' 7737soname_spec= 7738shrext_cmds=".so" 7739postinstall_cmds= 7740postuninstall_cmds= 7741finish_cmds= 7742finish_eval= 7743shlibpath_var= 7744shlibpath_overrides_runpath=unknown 7745version_type=none 7746dynamic_linker="$host_os ld.so" 7747sys_lib_dlsearch_path_spec="/lib /usr/lib" 7748if test "$GCC" = yes; then 7749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7750 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7751 # if the path contains ";" then we assume it to be the separator 7752 # otherwise default to the standard path separator (i.e. ":") - it is 7753 # assumed that no part of a normal pathname contains ";" but that should 7754 # okay in the real world where ";" in dirpaths is itself problematic. 7755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7756 else 7757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7758 fi 7759else 7760 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7761fi 7762need_lib_prefix=unknown 7763hardcode_into_libs=no 7764 7765# when you set need_version to no, make sure it does not cause -set_version 7766# flags to be left without arguments 7767need_version=unknown 7768 7769case $host_os in 7770aix3*) 7771 version_type=linux 7772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7773 shlibpath_var=LIBPATH 7774 7775 # AIX 3 has no versioning support, so we append a major version to the name. 7776 soname_spec='${libname}${release}${shared_ext}$major' 7777 ;; 7778 7779aix4* | aix5*) 7780 version_type=linux 7781 need_lib_prefix=no 7782 need_version=no 7783 hardcode_into_libs=yes 7784 if test "$host_cpu" = ia64; then 7785 # AIX 5 supports IA64 7786 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7787 shlibpath_var=LD_LIBRARY_PATH 7788 else 7789 # With GCC up to 2.95.x, collect2 would create an import file 7790 # for dependence libraries. The import file would start with 7791 # the line `#! .'. This would cause the generated library to 7792 # depend on `.', always an invalid library. This was fixed in 7793 # development snapshots of GCC prior to 3.0. 7794 case $host_os in 7795 aix4 | aix4.[01] | aix4.[01].*) 7796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7797 echo ' yes ' 7798 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7799 : 7800 else 7801 can_build_shared=no 7802 fi 7803 ;; 7804 esac 7805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7806 # soname into executable. Probably we can add versioning support to 7807 # collect2, so additional links can be useful in future. 7808 if test "$aix_use_runtimelinking" = yes; then 7809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7810 # instead of lib<name>.a to let people know that these are not 7811 # typical AIX shared libraries. 7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7813 else 7814 # We preserve .a as extension for shared libraries through AIX4.2 7815 # and later when we are not doing run time linking. 7816 library_names_spec='${libname}${release}.a $libname.a' 7817 soname_spec='${libname}${release}${shared_ext}$major' 7818 fi 7819 shlibpath_var=LIBPATH 7820 fi 7821 ;; 7822 7823amigaos*) 7824 library_names_spec='$libname.ixlibrary $libname.a' 7825 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7826 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' 7827 ;; 7828 7829beos*) 7830 library_names_spec='${libname}${shared_ext}' 7831 dynamic_linker="$host_os ld.so" 7832 shlibpath_var=LIBRARY_PATH 7833 ;; 7834 7835bsdi[45]*) 7836 version_type=linux 7837 need_version=no 7838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7839 soname_spec='${libname}${release}${shared_ext}$major' 7840 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7841 shlibpath_var=LD_LIBRARY_PATH 7842 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7843 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7844 # the default ld.so.conf also contains /usr/contrib/lib and 7845 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7846 # libtool to hard-code these into programs 7847 ;; 7848 7849cygwin* | mingw* | pw32*) 7850 version_type=windows 7851 shrext_cmds=".dll" 7852 need_version=no 7853 need_lib_prefix=no 7854 7855 case $GCC,$host_os in 7856 yes,cygwin* | yes,mingw* | yes,pw32*) 7857 library_names_spec='$libname.dll.a' 7858 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7859 postinstall_cmds='base_file=`basename \${file}`~ 7860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7861 dldir=$destdir/`dirname \$dlpath`~ 7862 test -d \$dldir || mkdir -p \$dldir~ 7863 $install_prog $dir/$dlname \$dldir/$dlname' 7864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7865 dlpath=$dir/\$dldll~ 7866 $rm \$dlpath' 7867 shlibpath_overrides_runpath=yes 7868 7869 case $host_os in 7870 cygwin*) 7871 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7872 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7873 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7874 ;; 7875 mingw*) 7876 # MinGW DLLs use traditional 'lib' prefix 7877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7878 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7879 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7880 # It is most probably a Windows format PATH printed by 7881 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7882 # path with ; separators, and with drive letters. We can handle the 7883 # drive letters (cygwin fileutils understands them), so leave them, 7884 # especially as we might pass files found there to a mingw objdump, 7885 # which wouldn't understand a cygwinified path. Ahh. 7886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7887 else 7888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7889 fi 7890 ;; 7891 pw32*) 7892 # pw32 DLLs use 'pw' prefix rather than 'lib' 7893 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7894 ;; 7895 esac 7896 ;; 7897 7898 linux*) 7899 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 7900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7901 supports_anon_versioning=no 7902 case `$LD -v 2>/dev/null` in 7903 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7904 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7905 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7906 *\ 2.11.*) ;; # other 2.11 versions 7907 *) supports_anon_versioning=yes ;; 7908 esac 7909 if test $supports_anon_versioning = yes; then 7910 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7911cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7912$echo "local: *; };" >> $output_objdir/$libname.ver~ 7913 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7914 else 7915 $archive_expsym_cmds="$archive_cmds" 7916 fi 7917 else 7918 ld_shlibs=no 7919 fi 7920 ;; 7921 7922 *) 7923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7924 ;; 7925 esac 7926 dynamic_linker='Win32 ld.exe' 7927 # FIXME: first we should search . and the directory the executable is in 7928 shlibpath_var=PATH 7929 ;; 7930 7931darwin* | rhapsody*) 7932 dynamic_linker="$host_os dyld" 7933 version_type=darwin 7934 need_lib_prefix=no 7935 need_version=no 7936 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7937 soname_spec='${libname}${release}${major}$shared_ext' 7938 shlibpath_overrides_runpath=yes 7939 shlibpath_var=DYLD_LIBRARY_PATH 7940 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7941 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7942 if test "$GCC" = yes; then 7943 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"` 7944 else 7945 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7946 fi 7947 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7948 ;; 7949 7950dgux*) 7951 version_type=linux 7952 need_lib_prefix=no 7953 need_version=no 7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7955 soname_spec='${libname}${release}${shared_ext}$major' 7956 shlibpath_var=LD_LIBRARY_PATH 7957 ;; 7958 7959freebsd1*) 7960 dynamic_linker=no 7961 ;; 7962 7963kfreebsd*-gnu) 7964 version_type=linux 7965 need_lib_prefix=no 7966 need_version=no 7967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7968 soname_spec='${libname}${release}${shared_ext}$major' 7969 shlibpath_var=LD_LIBRARY_PATH 7970 shlibpath_overrides_runpath=no 7971 hardcode_into_libs=yes 7972 dynamic_linker='GNU ld.so' 7973 ;; 7974 7975freebsd* | dragonfly*) 7976 # DragonFly does not have aout. When/if they implement a new 7977 # versioning mechanism, adjust this. 7978 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7979 version_type=freebsd-$objformat 7980 case $version_type in 7981 freebsd-elf*) 7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7983 need_version=no 7984 need_lib_prefix=no 7985 ;; 7986 freebsd-*) 7987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7988 need_version=yes 7989 ;; 7990 esac 7991 shlibpath_var=LD_LIBRARY_PATH 7992 case $host_os in 7993 freebsd2*) 7994 shlibpath_overrides_runpath=yes 7995 ;; 7996 freebsd3.[01]* | freebsdelf3.[01]*) 7997 shlibpath_overrides_runpath=yes 7998 hardcode_into_libs=yes 7999 ;; 8000 *) # from 3.2 on 8001 shlibpath_overrides_runpath=no 8002 hardcode_into_libs=yes 8003 ;; 8004 esac 8005 ;; 8006 8007gnu*) 8008 version_type=linux 8009 need_lib_prefix=no 8010 need_version=no 8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8012 soname_spec='${libname}${release}${shared_ext}$major' 8013 shlibpath_var=LD_LIBRARY_PATH 8014 hardcode_into_libs=yes 8015 ;; 8016 8017hpux9* | hpux10* | hpux11*) 8018 # Give a soname corresponding to the major version so that dld.sl refuses to 8019 # link against other versions. 8020 version_type=sunos 8021 need_lib_prefix=no 8022 need_version=no 8023 case "$host_cpu" in 8024 ia64*) 8025 shrext_cmds='.so' 8026 hardcode_into_libs=yes 8027 dynamic_linker="$host_os dld.so" 8028 shlibpath_var=LD_LIBRARY_PATH 8029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8031 soname_spec='${libname}${release}${shared_ext}$major' 8032 if test "X$HPUX_IA64_MODE" = X32; then 8033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8034 else 8035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8036 fi 8037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8038 ;; 8039 hppa*64*) 8040 shrext_cmds='.sl' 8041 hardcode_into_libs=yes 8042 dynamic_linker="$host_os dld.sl" 8043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8046 soname_spec='${libname}${release}${shared_ext}$major' 8047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8049 ;; 8050 *) 8051 shrext_cmds='.sl' 8052 dynamic_linker="$host_os dld.sl" 8053 shlibpath_var=SHLIB_PATH 8054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8056 soname_spec='${libname}${release}${shared_ext}$major' 8057 ;; 8058 esac 8059 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8060 postinstall_cmds='chmod 555 $lib' 8061 ;; 8062 8063irix5* | irix6* | nonstopux*) 8064 case $host_os in 8065 nonstopux*) version_type=nonstopux ;; 8066 *) 8067 if test "$lt_cv_prog_gnu_ld" = yes; then 8068 version_type=linux 8069 else 8070 version_type=irix 8071 fi ;; 8072 esac 8073 need_lib_prefix=no 8074 need_version=no 8075 soname_spec='${libname}${release}${shared_ext}$major' 8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8077 case $host_os in 8078 irix5* | nonstopux*) 8079 libsuff= shlibsuff= 8080 ;; 8081 *) 8082 case $LD in # libtool.m4 will add one of these switches to LD 8083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8084 libsuff= shlibsuff= libmagic=32-bit;; 8085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8086 libsuff=32 shlibsuff=N32 libmagic=N32;; 8087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8088 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8089 *) libsuff= shlibsuff= libmagic=never-match;; 8090 esac 8091 ;; 8092 esac 8093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8094 shlibpath_overrides_runpath=no 8095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8097 hardcode_into_libs=yes 8098 ;; 8099 8100# No shared lib support for Linux oldld, aout, or coff. 8101linux*oldld* | linux*aout* | linux*coff*) 8102 dynamic_linker=no 8103 ;; 8104 8105# This must be Linux ELF. 8106linux*) 8107 version_type=linux 8108 need_lib_prefix=no 8109 need_version=no 8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8111 soname_spec='${libname}${release}${shared_ext}$major' 8112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8113 shlibpath_var=LD_LIBRARY_PATH 8114 shlibpath_overrides_runpath=no 8115 # This implies no fast_install, which is unacceptable. 8116 # Some rework will be needed to allow for fast_install 8117 # before this can be enabled. 8118 hardcode_into_libs=yes 8119 8120 # Append ld.so.conf contents to the search path 8121 if test -f /etc/ld.so.conf; then 8122 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8124 fi 8125 8126 case $host_cpu:$lt_cv_cc_64bit_output in 8127 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) 8128 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" 8129 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" 8130 ;; 8131 esac 8132 8133 # We used to test for /lib/ld.so.1 and disable shared libraries on 8134 # powerpc, because MkLinux only supported shared libraries with the 8135 # GNU dynamic linker. Since this was broken with cross compilers, 8136 # most powerpc-linux boxes support dynamic linking these days and 8137 # people can always --disable-shared, the test was removed, and we 8138 # assume the GNU/Linux dynamic linker is in use. 8139 dynamic_linker='GNU/Linux ld.so' 8140 8141 # Find out which ABI we are using (multilib Linux x86_64 hack). 8142 libsuff= 8143 case "$host_cpu" in 8144 x86_64*) 8145 echo '#line 8145 "configure"' > conftest.$ac_ext 8146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8147 (eval $ac_compile) 2>&5 8148 ac_status=$? 8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8150 (exit $ac_status); }; then 8151 case `/usr/bin/file conftest.$ac_objext` in 8152 *64-bit*) 8153 libsuff=64 8154 ;; 8155 esac 8156 fi 8157 rm -rf conftest* 8158 ;; 8159 *) 8160 ;; 8161 esac 8162 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 8163 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8164 ;; 8165 8166knetbsd*-gnu) 8167 version_type=linux 8168 need_lib_prefix=no 8169 need_version=no 8170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8171 soname_spec='${libname}${release}${shared_ext}$major' 8172 shlibpath_var=LD_LIBRARY_PATH 8173 shlibpath_overrides_runpath=no 8174 hardcode_into_libs=yes 8175 dynamic_linker='GNU ld.so' 8176 ;; 8177 8178netbsd*) 8179 version_type=sunos 8180 need_lib_prefix=no 8181 need_version=no 8182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8185 dynamic_linker='NetBSD (a.out) ld.so' 8186 else 8187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8188 soname_spec='${libname}${release}${shared_ext}$major' 8189 dynamic_linker='NetBSD ld.elf_so' 8190 fi 8191 shlibpath_var=LD_LIBRARY_PATH 8192 shlibpath_overrides_runpath=yes 8193 hardcode_into_libs=yes 8194 ;; 8195 8196newsos6) 8197 version_type=linux 8198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8199 shlibpath_var=LD_LIBRARY_PATH 8200 shlibpath_overrides_runpath=yes 8201 ;; 8202 8203nto-qnx*) 8204 version_type=linux 8205 need_lib_prefix=no 8206 need_version=no 8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8208 soname_spec='${libname}${release}${shared_ext}$major' 8209 shlibpath_var=LD_LIBRARY_PATH 8210 shlibpath_overrides_runpath=yes 8211 ;; 8212 8213openbsd*) 8214 version_type=sunos 8215 need_lib_prefix=no 8216 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8217 case $host_os in 8218 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8219 *) need_version=no ;; 8220 esac 8221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8223 shlibpath_var=LD_LIBRARY_PATH 8224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8225 case $host_os in 8226 openbsd2.[89] | openbsd2.[89].*) 8227 shlibpath_overrides_runpath=no 8228 ;; 8229 *) 8230 shlibpath_overrides_runpath=yes 8231 ;; 8232 esac 8233 else 8234 shlibpath_overrides_runpath=yes 8235 fi 8236 ;; 8237 8238os2*) 8239 libname_spec='$name' 8240 shrext_cmds=".dll" 8241 need_lib_prefix=no 8242 library_names_spec='$libname${shared_ext} $libname.a' 8243 dynamic_linker='OS/2 ld.exe' 8244 shlibpath_var=LIBPATH 8245 ;; 8246 8247osf3* | osf4* | osf5*) 8248 version_type=osf 8249 need_lib_prefix=no 8250 need_version=no 8251 soname_spec='${libname}${release}${shared_ext}$major' 8252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8253 shlibpath_var=LD_LIBRARY_PATH 8254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8256 ;; 8257 8258sco3.2v5*) 8259 version_type=osf 8260 soname_spec='${libname}${release}${shared_ext}$major' 8261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8262 shlibpath_var=LD_LIBRARY_PATH 8263 ;; 8264 8265solaris*) 8266 version_type=linux 8267 need_lib_prefix=no 8268 need_version=no 8269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8270 soname_spec='${libname}${release}${shared_ext}$major' 8271 shlibpath_var=LD_LIBRARY_PATH 8272 shlibpath_overrides_runpath=yes 8273 hardcode_into_libs=yes 8274 # ldd complains unless libraries are executable 8275 postinstall_cmds='chmod +x $lib' 8276 ;; 8277 8278sunos4*) 8279 version_type=sunos 8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8282 shlibpath_var=LD_LIBRARY_PATH 8283 shlibpath_overrides_runpath=yes 8284 if test "$with_gnu_ld" = yes; then 8285 need_lib_prefix=no 8286 fi 8287 need_version=yes 8288 ;; 8289 8290sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8291 version_type=linux 8292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8293 soname_spec='${libname}${release}${shared_ext}$major' 8294 shlibpath_var=LD_LIBRARY_PATH 8295 case $host_vendor in 8296 sni) 8297 shlibpath_overrides_runpath=no 8298 need_lib_prefix=no 8299 export_dynamic_flag_spec='${wl}-Blargedynsym' 8300 runpath_var=LD_RUN_PATH 8301 ;; 8302 siemens) 8303 need_lib_prefix=no 8304 ;; 8305 motorola) 8306 need_lib_prefix=no 8307 need_version=no 8308 shlibpath_overrides_runpath=no 8309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8310 ;; 8311 esac 8312 ;; 8313 8314sysv4*MP*) 8315 if test -d /usr/nec ;then 8316 version_type=linux 8317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8318 soname_spec='$libname${shared_ext}.$major' 8319 shlibpath_var=LD_LIBRARY_PATH 8320 fi 8321 ;; 8322 8323uts4*) 8324 version_type=linux 8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8326 soname_spec='${libname}${release}${shared_ext}$major' 8327 shlibpath_var=LD_LIBRARY_PATH 8328 ;; 8329 8330*) 8331 dynamic_linker=no 8332 ;; 8333esac 8334echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8335echo "${ECHO_T}$dynamic_linker" >&6 8336test "$dynamic_linker" = no && can_build_shared=no 8337 8338echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8339echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8340hardcode_action= 8341if test -n "$hardcode_libdir_flag_spec" || \ 8342 test -n "$runpath_var" || \ 8343 test "X$hardcode_automatic" = "Xyes" ; then 8344 8345 # We can hardcode non-existant directories. 8346 if test "$hardcode_direct" != no && 8347 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8348 # have to relink, otherwise we might link with an installed library 8349 # when we should be linking with a yet-to-be-installed one 8350 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8351 test "$hardcode_minus_L" != no; then 8352 # Linking always hardcodes the temporary library directory. 8353 hardcode_action=relink 8354 else 8355 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8356 hardcode_action=immediate 8357 fi 8358else 8359 # We cannot hardcode anything, or else we can only hardcode existing 8360 # directories. 8361 hardcode_action=unsupported 8362fi 8363echo "$as_me:$LINENO: result: $hardcode_action" >&5 8364echo "${ECHO_T}$hardcode_action" >&6 8365 8366if test "$hardcode_action" = relink; then 8367 # Fast installation is not supported 8368 enable_fast_install=no 8369elif test "$shlibpath_overrides_runpath" = yes || 8370 test "$enable_shared" = no; then 8371 # Fast installation is not necessary 8372 enable_fast_install=needless 8373fi 8374 8375striplib= 8376old_striplib= 8377echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8378echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8379if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8380 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8381 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8382 echo "$as_me:$LINENO: result: yes" >&5 8383echo "${ECHO_T}yes" >&6 8384else 8385# FIXME - insert some real tests, host_os isn't really good enough 8386 case $host_os in 8387 darwin*) 8388 if test -n "$STRIP" ; then 8389 striplib="$STRIP -x" 8390 echo "$as_me:$LINENO: result: yes" >&5 8391echo "${ECHO_T}yes" >&6 8392 else 8393 echo "$as_me:$LINENO: result: no" >&5 8394echo "${ECHO_T}no" >&6 8395fi 8396 ;; 8397 *) 8398 echo "$as_me:$LINENO: result: no" >&5 8399echo "${ECHO_T}no" >&6 8400 ;; 8401 esac 8402fi 8403 8404if test "x$enable_dlopen" != xyes; then 8405 enable_dlopen=unknown 8406 enable_dlopen_self=unknown 8407 enable_dlopen_self_static=unknown 8408else 8409 lt_cv_dlopen=no 8410 lt_cv_dlopen_libs= 8411 8412 case $host_os in 8413 beos*) 8414 lt_cv_dlopen="load_add_on" 8415 lt_cv_dlopen_libs= 8416 lt_cv_dlopen_self=yes 8417 ;; 8418 8419 mingw* | pw32*) 8420 lt_cv_dlopen="LoadLibrary" 8421 lt_cv_dlopen_libs= 8422 ;; 8423 8424 cygwin*) 8425 lt_cv_dlopen="dlopen" 8426 lt_cv_dlopen_libs= 8427 ;; 8428 8429 darwin*) 8430 # if libdl is installed we need to link against it 8431 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8432echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8433if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8434 echo $ECHO_N "(cached) $ECHO_C" >&6 8435else 8436 ac_check_lib_save_LIBS=$LIBS 8437LIBS="-ldl $LIBS" 8438cat >conftest.$ac_ext <<_ACEOF 8439/* confdefs.h. */ 8440_ACEOF 8441cat confdefs.h >>conftest.$ac_ext 8442cat >>conftest.$ac_ext <<_ACEOF 8443/* end confdefs.h. */ 8444 8445/* Override any gcc2 internal prototype to avoid an error. */ 8446#ifdef __cplusplus 8447extern "C" 8448#endif 8449/* We use char because int might match the return type of a gcc2 8450 builtin and then its argument prototype would still apply. */ 8451char dlopen (); 8452int 8453main () 8454{ 8455dlopen (); 8456 ; 8457 return 0; 8458} 8459_ACEOF 8460rm -f conftest.$ac_objext conftest$ac_exeext 8461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8462 (eval $ac_link) 2>conftest.er1 8463 ac_status=$? 8464 grep -v '^ *+' conftest.er1 >conftest.err 8465 rm -f conftest.er1 8466 cat conftest.err >&5 8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8468 (exit $ac_status); } && 8469 { ac_try='test -z "$ac_c_werror_flag" 8470 || test ! -s conftest.err' 8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8472 (eval $ac_try) 2>&5 8473 ac_status=$? 8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8475 (exit $ac_status); }; } && 8476 { ac_try='test -s conftest$ac_exeext' 8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8478 (eval $ac_try) 2>&5 8479 ac_status=$? 8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8481 (exit $ac_status); }; }; then 8482 ac_cv_lib_dl_dlopen=yes 8483else 8484 echo "$as_me: failed program was:" >&5 8485sed 's/^/| /' conftest.$ac_ext >&5 8486 8487ac_cv_lib_dl_dlopen=no 8488fi 8489rm -f conftest.err conftest.$ac_objext \ 8490 conftest$ac_exeext conftest.$ac_ext 8491LIBS=$ac_check_lib_save_LIBS 8492fi 8493echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8494echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8495if test $ac_cv_lib_dl_dlopen = yes; then 8496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8497else 8498 8499 lt_cv_dlopen="dyld" 8500 lt_cv_dlopen_libs= 8501 lt_cv_dlopen_self=yes 8502 8503fi 8504 8505 ;; 8506 8507 *) 8508 echo "$as_me:$LINENO: checking for shl_load" >&5 8509echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8510if test "${ac_cv_func_shl_load+set}" = set; then 8511 echo $ECHO_N "(cached) $ECHO_C" >&6 8512else 8513 cat >conftest.$ac_ext <<_ACEOF 8514/* confdefs.h. */ 8515_ACEOF 8516cat confdefs.h >>conftest.$ac_ext 8517cat >>conftest.$ac_ext <<_ACEOF 8518/* end confdefs.h. */ 8519/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8520 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8521#define shl_load innocuous_shl_load 8522 8523/* System header to define __stub macros and hopefully few prototypes, 8524 which can conflict with char shl_load (); below. 8525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8526 <limits.h> exists even on freestanding compilers. */ 8527 8528#ifdef __STDC__ 8529# include <limits.h> 8530#else 8531# include <assert.h> 8532#endif 8533 8534#undef shl_load 8535 8536/* Override any gcc2 internal prototype to avoid an error. */ 8537#ifdef __cplusplus 8538extern "C" 8539{ 8540#endif 8541/* We use char because int might match the return type of a gcc2 8542 builtin and then its argument prototype would still apply. */ 8543char shl_load (); 8544/* The GNU C library defines this for functions which it implements 8545 to always fail with ENOSYS. Some functions are actually named 8546 something starting with __ and the normal name is an alias. */ 8547#if defined (__stub_shl_load) || defined (__stub___shl_load) 8548choke me 8549#else 8550char (*f) () = shl_load; 8551#endif 8552#ifdef __cplusplus 8553} 8554#endif 8555 8556int 8557main () 8558{ 8559return f != shl_load; 8560 ; 8561 return 0; 8562} 8563_ACEOF 8564rm -f conftest.$ac_objext conftest$ac_exeext 8565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8566 (eval $ac_link) 2>conftest.er1 8567 ac_status=$? 8568 grep -v '^ *+' conftest.er1 >conftest.err 8569 rm -f conftest.er1 8570 cat conftest.err >&5 8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8572 (exit $ac_status); } && 8573 { ac_try='test -z "$ac_c_werror_flag" 8574 || test ! -s conftest.err' 8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8576 (eval $ac_try) 2>&5 8577 ac_status=$? 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8579 (exit $ac_status); }; } && 8580 { ac_try='test -s conftest$ac_exeext' 8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8582 (eval $ac_try) 2>&5 8583 ac_status=$? 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); }; }; then 8586 ac_cv_func_shl_load=yes 8587else 8588 echo "$as_me: failed program was:" >&5 8589sed 's/^/| /' conftest.$ac_ext >&5 8590 8591ac_cv_func_shl_load=no 8592fi 8593rm -f conftest.err conftest.$ac_objext \ 8594 conftest$ac_exeext conftest.$ac_ext 8595fi 8596echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8597echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8598if test $ac_cv_func_shl_load = yes; then 8599 lt_cv_dlopen="shl_load" 8600else 8601 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8602echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8603if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8604 echo $ECHO_N "(cached) $ECHO_C" >&6 8605else 8606 ac_check_lib_save_LIBS=$LIBS 8607LIBS="-ldld $LIBS" 8608cat >conftest.$ac_ext <<_ACEOF 8609/* confdefs.h. */ 8610_ACEOF 8611cat confdefs.h >>conftest.$ac_ext 8612cat >>conftest.$ac_ext <<_ACEOF 8613/* end confdefs.h. */ 8614 8615/* Override any gcc2 internal prototype to avoid an error. */ 8616#ifdef __cplusplus 8617extern "C" 8618#endif 8619/* We use char because int might match the return type of a gcc2 8620 builtin and then its argument prototype would still apply. */ 8621char shl_load (); 8622int 8623main () 8624{ 8625shl_load (); 8626 ; 8627 return 0; 8628} 8629_ACEOF 8630rm -f conftest.$ac_objext conftest$ac_exeext 8631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8632 (eval $ac_link) 2>conftest.er1 8633 ac_status=$? 8634 grep -v '^ *+' conftest.er1 >conftest.err 8635 rm -f conftest.er1 8636 cat conftest.err >&5 8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8638 (exit $ac_status); } && 8639 { ac_try='test -z "$ac_c_werror_flag" 8640 || test ! -s conftest.err' 8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8642 (eval $ac_try) 2>&5 8643 ac_status=$? 8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8645 (exit $ac_status); }; } && 8646 { ac_try='test -s conftest$ac_exeext' 8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8648 (eval $ac_try) 2>&5 8649 ac_status=$? 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8651 (exit $ac_status); }; }; then 8652 ac_cv_lib_dld_shl_load=yes 8653else 8654 echo "$as_me: failed program was:" >&5 8655sed 's/^/| /' conftest.$ac_ext >&5 8656 8657ac_cv_lib_dld_shl_load=no 8658fi 8659rm -f conftest.err conftest.$ac_objext \ 8660 conftest$ac_exeext conftest.$ac_ext 8661LIBS=$ac_check_lib_save_LIBS 8662fi 8663echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8664echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8665if test $ac_cv_lib_dld_shl_load = yes; then 8666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8667else 8668 echo "$as_me:$LINENO: checking for dlopen" >&5 8669echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8670if test "${ac_cv_func_dlopen+set}" = set; then 8671 echo $ECHO_N "(cached) $ECHO_C" >&6 8672else 8673 cat >conftest.$ac_ext <<_ACEOF 8674/* confdefs.h. */ 8675_ACEOF 8676cat confdefs.h >>conftest.$ac_ext 8677cat >>conftest.$ac_ext <<_ACEOF 8678/* end confdefs.h. */ 8679/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8680 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8681#define dlopen innocuous_dlopen 8682 8683/* System header to define __stub macros and hopefully few prototypes, 8684 which can conflict with char dlopen (); below. 8685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8686 <limits.h> exists even on freestanding compilers. */ 8687 8688#ifdef __STDC__ 8689# include <limits.h> 8690#else 8691# include <assert.h> 8692#endif 8693 8694#undef dlopen 8695 8696/* Override any gcc2 internal prototype to avoid an error. */ 8697#ifdef __cplusplus 8698extern "C" 8699{ 8700#endif 8701/* We use char because int might match the return type of a gcc2 8702 builtin and then its argument prototype would still apply. */ 8703char dlopen (); 8704/* The GNU C library defines this for functions which it implements 8705 to always fail with ENOSYS. Some functions are actually named 8706 something starting with __ and the normal name is an alias. */ 8707#if defined (__stub_dlopen) || defined (__stub___dlopen) 8708choke me 8709#else 8710char (*f) () = dlopen; 8711#endif 8712#ifdef __cplusplus 8713} 8714#endif 8715 8716int 8717main () 8718{ 8719return f != dlopen; 8720 ; 8721 return 0; 8722} 8723_ACEOF 8724rm -f conftest.$ac_objext conftest$ac_exeext 8725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8726 (eval $ac_link) 2>conftest.er1 8727 ac_status=$? 8728 grep -v '^ *+' conftest.er1 >conftest.err 8729 rm -f conftest.er1 8730 cat conftest.err >&5 8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8732 (exit $ac_status); } && 8733 { ac_try='test -z "$ac_c_werror_flag" 8734 || test ! -s conftest.err' 8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8736 (eval $ac_try) 2>&5 8737 ac_status=$? 8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8739 (exit $ac_status); }; } && 8740 { ac_try='test -s conftest$ac_exeext' 8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8742 (eval $ac_try) 2>&5 8743 ac_status=$? 8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8745 (exit $ac_status); }; }; then 8746 ac_cv_func_dlopen=yes 8747else 8748 echo "$as_me: failed program was:" >&5 8749sed 's/^/| /' conftest.$ac_ext >&5 8750 8751ac_cv_func_dlopen=no 8752fi 8753rm -f conftest.err conftest.$ac_objext \ 8754 conftest$ac_exeext conftest.$ac_ext 8755fi 8756echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8757echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8758if test $ac_cv_func_dlopen = yes; then 8759 lt_cv_dlopen="dlopen" 8760else 8761 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8762echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8763if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8764 echo $ECHO_N "(cached) $ECHO_C" >&6 8765else 8766 ac_check_lib_save_LIBS=$LIBS 8767LIBS="-ldl $LIBS" 8768cat >conftest.$ac_ext <<_ACEOF 8769/* confdefs.h. */ 8770_ACEOF 8771cat confdefs.h >>conftest.$ac_ext 8772cat >>conftest.$ac_ext <<_ACEOF 8773/* end confdefs.h. */ 8774 8775/* Override any gcc2 internal prototype to avoid an error. */ 8776#ifdef __cplusplus 8777extern "C" 8778#endif 8779/* We use char because int might match the return type of a gcc2 8780 builtin and then its argument prototype would still apply. */ 8781char dlopen (); 8782int 8783main () 8784{ 8785dlopen (); 8786 ; 8787 return 0; 8788} 8789_ACEOF 8790rm -f conftest.$ac_objext conftest$ac_exeext 8791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8792 (eval $ac_link) 2>conftest.er1 8793 ac_status=$? 8794 grep -v '^ *+' conftest.er1 >conftest.err 8795 rm -f conftest.er1 8796 cat conftest.err >&5 8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8798 (exit $ac_status); } && 8799 { ac_try='test -z "$ac_c_werror_flag" 8800 || test ! -s conftest.err' 8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8802 (eval $ac_try) 2>&5 8803 ac_status=$? 8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8805 (exit $ac_status); }; } && 8806 { ac_try='test -s conftest$ac_exeext' 8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8808 (eval $ac_try) 2>&5 8809 ac_status=$? 8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8811 (exit $ac_status); }; }; then 8812 ac_cv_lib_dl_dlopen=yes 8813else 8814 echo "$as_me: failed program was:" >&5 8815sed 's/^/| /' conftest.$ac_ext >&5 8816 8817ac_cv_lib_dl_dlopen=no 8818fi 8819rm -f conftest.err conftest.$ac_objext \ 8820 conftest$ac_exeext conftest.$ac_ext 8821LIBS=$ac_check_lib_save_LIBS 8822fi 8823echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8824echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8825if test $ac_cv_lib_dl_dlopen = yes; then 8826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8827else 8828 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8829echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8830if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8831 echo $ECHO_N "(cached) $ECHO_C" >&6 8832else 8833 ac_check_lib_save_LIBS=$LIBS 8834LIBS="-lsvld $LIBS" 8835cat >conftest.$ac_ext <<_ACEOF 8836/* confdefs.h. */ 8837_ACEOF 8838cat confdefs.h >>conftest.$ac_ext 8839cat >>conftest.$ac_ext <<_ACEOF 8840/* end confdefs.h. */ 8841 8842/* Override any gcc2 internal prototype to avoid an error. */ 8843#ifdef __cplusplus 8844extern "C" 8845#endif 8846/* We use char because int might match the return type of a gcc2 8847 builtin and then its argument prototype would still apply. */ 8848char dlopen (); 8849int 8850main () 8851{ 8852dlopen (); 8853 ; 8854 return 0; 8855} 8856_ACEOF 8857rm -f conftest.$ac_objext conftest$ac_exeext 8858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8859 (eval $ac_link) 2>conftest.er1 8860 ac_status=$? 8861 grep -v '^ *+' conftest.er1 >conftest.err 8862 rm -f conftest.er1 8863 cat conftest.err >&5 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8865 (exit $ac_status); } && 8866 { ac_try='test -z "$ac_c_werror_flag" 8867 || test ! -s conftest.err' 8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8869 (eval $ac_try) 2>&5 8870 ac_status=$? 8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872 (exit $ac_status); }; } && 8873 { ac_try='test -s conftest$ac_exeext' 8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8875 (eval $ac_try) 2>&5 8876 ac_status=$? 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8878 (exit $ac_status); }; }; then 8879 ac_cv_lib_svld_dlopen=yes 8880else 8881 echo "$as_me: failed program was:" >&5 8882sed 's/^/| /' conftest.$ac_ext >&5 8883 8884ac_cv_lib_svld_dlopen=no 8885fi 8886rm -f conftest.err conftest.$ac_objext \ 8887 conftest$ac_exeext conftest.$ac_ext 8888LIBS=$ac_check_lib_save_LIBS 8889fi 8890echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8891echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8892if test $ac_cv_lib_svld_dlopen = yes; then 8893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8894else 8895 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8896echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8897if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8898 echo $ECHO_N "(cached) $ECHO_C" >&6 8899else 8900 ac_check_lib_save_LIBS=$LIBS 8901LIBS="-ldld $LIBS" 8902cat >conftest.$ac_ext <<_ACEOF 8903/* confdefs.h. */ 8904_ACEOF 8905cat confdefs.h >>conftest.$ac_ext 8906cat >>conftest.$ac_ext <<_ACEOF 8907/* end confdefs.h. */ 8908 8909/* Override any gcc2 internal prototype to avoid an error. */ 8910#ifdef __cplusplus 8911extern "C" 8912#endif 8913/* We use char because int might match the return type of a gcc2 8914 builtin and then its argument prototype would still apply. */ 8915char dld_link (); 8916int 8917main () 8918{ 8919dld_link (); 8920 ; 8921 return 0; 8922} 8923_ACEOF 8924rm -f conftest.$ac_objext conftest$ac_exeext 8925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8926 (eval $ac_link) 2>conftest.er1 8927 ac_status=$? 8928 grep -v '^ *+' conftest.er1 >conftest.err 8929 rm -f conftest.er1 8930 cat conftest.err >&5 8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8932 (exit $ac_status); } && 8933 { ac_try='test -z "$ac_c_werror_flag" 8934 || test ! -s conftest.err' 8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8936 (eval $ac_try) 2>&5 8937 ac_status=$? 8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8939 (exit $ac_status); }; } && 8940 { ac_try='test -s conftest$ac_exeext' 8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8942 (eval $ac_try) 2>&5 8943 ac_status=$? 8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8945 (exit $ac_status); }; }; then 8946 ac_cv_lib_dld_dld_link=yes 8947else 8948 echo "$as_me: failed program was:" >&5 8949sed 's/^/| /' conftest.$ac_ext >&5 8950 8951ac_cv_lib_dld_dld_link=no 8952fi 8953rm -f conftest.err conftest.$ac_objext \ 8954 conftest$ac_exeext conftest.$ac_ext 8955LIBS=$ac_check_lib_save_LIBS 8956fi 8957echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8958echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8959if test $ac_cv_lib_dld_dld_link = yes; then 8960 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8961fi 8962 8963 8964fi 8965 8966 8967fi 8968 8969 8970fi 8971 8972 8973fi 8974 8975 8976fi 8977 8978 ;; 8979 esac 8980 8981 if test "x$lt_cv_dlopen" != xno; then 8982 enable_dlopen=yes 8983 else 8984 enable_dlopen=no 8985 fi 8986 8987 case $lt_cv_dlopen in 8988 dlopen) 8989 save_CPPFLAGS="$CPPFLAGS" 8990 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8991 8992 save_LDFLAGS="$LDFLAGS" 8993 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8994 8995 save_LIBS="$LIBS" 8996 LIBS="$lt_cv_dlopen_libs $LIBS" 8997 8998 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8999echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9000if test "${lt_cv_dlopen_self+set}" = set; then 9001 echo $ECHO_N "(cached) $ECHO_C" >&6 9002else 9003 if test "$cross_compiling" = yes; then : 9004 lt_cv_dlopen_self=cross 9005else 9006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9007 lt_status=$lt_dlunknown 9008 cat > conftest.$ac_ext <<EOF 9009#line 9009 "configure" 9010#include "confdefs.h" 9011 9012#if HAVE_DLFCN_H 9013#include <dlfcn.h> 9014#endif 9015 9016#include <stdio.h> 9017 9018#ifdef RTLD_GLOBAL 9019# define LT_DLGLOBAL RTLD_GLOBAL 9020#else 9021# ifdef DL_GLOBAL 9022# define LT_DLGLOBAL DL_GLOBAL 9023# else 9024# define LT_DLGLOBAL 0 9025# endif 9026#endif 9027 9028/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9029 find out it does not work in some platform. */ 9030#ifndef LT_DLLAZY_OR_NOW 9031# ifdef RTLD_LAZY 9032# define LT_DLLAZY_OR_NOW RTLD_LAZY 9033# else 9034# ifdef DL_LAZY 9035# define LT_DLLAZY_OR_NOW DL_LAZY 9036# else 9037# ifdef RTLD_NOW 9038# define LT_DLLAZY_OR_NOW RTLD_NOW 9039# else 9040# ifdef DL_NOW 9041# define LT_DLLAZY_OR_NOW DL_NOW 9042# else 9043# define LT_DLLAZY_OR_NOW 0 9044# endif 9045# endif 9046# endif 9047# endif 9048#endif 9049 9050#ifdef __cplusplus 9051extern "C" void exit (int); 9052#endif 9053 9054void fnord() { int i=42;} 9055int main () 9056{ 9057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9058 int status = $lt_dlunknown; 9059 9060 if (self) 9061 { 9062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9063 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9064 /* dlclose (self); */ 9065 } 9066 9067 exit (status); 9068} 9069EOF 9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9071 (eval $ac_link) 2>&5 9072 ac_status=$? 9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9074 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9075 (./conftest; exit; ) 2>/dev/null 9076 lt_status=$? 9077 case x$lt_status in 9078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9080 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9081 esac 9082 else : 9083 # compilation failed 9084 lt_cv_dlopen_self=no 9085 fi 9086fi 9087rm -fr conftest* 9088 9089 9090fi 9091echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9092echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9093 9094 if test "x$lt_cv_dlopen_self" = xyes; then 9095 LDFLAGS="$LDFLAGS $link_static_flag" 9096 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9097echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9098if test "${lt_cv_dlopen_self_static+set}" = set; then 9099 echo $ECHO_N "(cached) $ECHO_C" >&6 9100else 9101 if test "$cross_compiling" = yes; then : 9102 lt_cv_dlopen_self_static=cross 9103else 9104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9105 lt_status=$lt_dlunknown 9106 cat > conftest.$ac_ext <<EOF 9107#line 9107 "configure" 9108#include "confdefs.h" 9109 9110#if HAVE_DLFCN_H 9111#include <dlfcn.h> 9112#endif 9113 9114#include <stdio.h> 9115 9116#ifdef RTLD_GLOBAL 9117# define LT_DLGLOBAL RTLD_GLOBAL 9118#else 9119# ifdef DL_GLOBAL 9120# define LT_DLGLOBAL DL_GLOBAL 9121# else 9122# define LT_DLGLOBAL 0 9123# endif 9124#endif 9125 9126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9127 find out it does not work in some platform. */ 9128#ifndef LT_DLLAZY_OR_NOW 9129# ifdef RTLD_LAZY 9130# define LT_DLLAZY_OR_NOW RTLD_LAZY 9131# else 9132# ifdef DL_LAZY 9133# define LT_DLLAZY_OR_NOW DL_LAZY 9134# else 9135# ifdef RTLD_NOW 9136# define LT_DLLAZY_OR_NOW RTLD_NOW 9137# else 9138# ifdef DL_NOW 9139# define LT_DLLAZY_OR_NOW DL_NOW 9140# else 9141# define LT_DLLAZY_OR_NOW 0 9142# endif 9143# endif 9144# endif 9145# endif 9146#endif 9147 9148#ifdef __cplusplus 9149extern "C" void exit (int); 9150#endif 9151 9152void fnord() { int i=42;} 9153int main () 9154{ 9155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9156 int status = $lt_dlunknown; 9157 9158 if (self) 9159 { 9160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9161 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9162 /* dlclose (self); */ 9163 } 9164 9165 exit (status); 9166} 9167EOF 9168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9169 (eval $ac_link) 2>&5 9170 ac_status=$? 9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9172 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9173 (./conftest; exit; ) 2>/dev/null 9174 lt_status=$? 9175 case x$lt_status in 9176 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9177 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9178 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9179 esac 9180 else : 9181 # compilation failed 9182 lt_cv_dlopen_self_static=no 9183 fi 9184fi 9185rm -fr conftest* 9186 9187 9188fi 9189echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9190echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9191 fi 9192 9193 CPPFLAGS="$save_CPPFLAGS" 9194 LDFLAGS="$save_LDFLAGS" 9195 LIBS="$save_LIBS" 9196 ;; 9197 esac 9198 9199 case $lt_cv_dlopen_self in 9200 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9201 *) enable_dlopen_self=unknown ;; 9202 esac 9203 9204 case $lt_cv_dlopen_self_static in 9205 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9206 *) enable_dlopen_self_static=unknown ;; 9207 esac 9208fi 9209 9210 9211# Report which librarie types wil actually be built 9212echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9213echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9214echo "$as_me:$LINENO: result: $can_build_shared" >&5 9215echo "${ECHO_T}$can_build_shared" >&6 9216 9217echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9218echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9219test "$can_build_shared" = "no" && enable_shared=no 9220 9221# On AIX, shared libraries and static libraries use the same namespace, and 9222# are all built from PIC. 9223case "$host_os" in 9224aix3*) 9225 test "$enable_shared" = yes && enable_static=no 9226 if test -n "$RANLIB"; then 9227 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9228 postinstall_cmds='$RANLIB $lib' 9229 fi 9230 ;; 9231 9232aix4* | aix5*) 9233 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9234 test "$enable_shared" = yes && enable_static=no 9235 fi 9236 ;; 9237esac 9238echo "$as_me:$LINENO: result: $enable_shared" >&5 9239echo "${ECHO_T}$enable_shared" >&6 9240 9241echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9242echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9243# Make sure either enable_shared or enable_static is yes. 9244test "$enable_shared" = yes || enable_static=yes 9245echo "$as_me:$LINENO: result: $enable_static" >&5 9246echo "${ECHO_T}$enable_static" >&6 9247 9248# The else clause should only fire when bootstrapping the 9249# libtool distribution, otherwise you forgot to ship ltmain.sh 9250# with your package, and you will get complaints that there are 9251# no rules to generate ltmain.sh. 9252if test -f "$ltmain"; then 9253 # See if we are running on zsh, and set the options which allow our commands through 9254 # without removal of \ escapes. 9255 if test -n "${ZSH_VERSION+set}" ; then 9256 setopt NO_GLOB_SUBST 9257 fi 9258 # Now quote all the things that may contain metacharacters while being 9259 # careful not to overquote the AC_SUBSTed values. We take copies of the 9260 # variables and quote the copies for generation of the libtool script. 9261 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9262 SED SHELL STRIP \ 9263 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9264 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9265 deplibs_check_method reload_flag reload_cmds need_locks \ 9266 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9267 lt_cv_sys_global_symbol_to_c_name_address \ 9268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9269 old_postinstall_cmds old_postuninstall_cmds \ 9270 compiler \ 9271 CC \ 9272 LD \ 9273 lt_prog_compiler_wl \ 9274 lt_prog_compiler_pic \ 9275 lt_prog_compiler_static \ 9276 lt_prog_compiler_no_builtin_flag \ 9277 export_dynamic_flag_spec \ 9278 thread_safe_flag_spec \ 9279 whole_archive_flag_spec \ 9280 enable_shared_with_static_runtimes \ 9281 old_archive_cmds \ 9282 old_archive_from_new_cmds \ 9283 predep_objects \ 9284 postdep_objects \ 9285 predeps \ 9286 postdeps \ 9287 compiler_lib_search_path \ 9288 archive_cmds \ 9289 archive_expsym_cmds \ 9290 postinstall_cmds \ 9291 postuninstall_cmds \ 9292 old_archive_from_expsyms_cmds \ 9293 allow_undefined_flag \ 9294 no_undefined_flag \ 9295 export_symbols_cmds \ 9296 hardcode_libdir_flag_spec \ 9297 hardcode_libdir_flag_spec_ld \ 9298 hardcode_libdir_separator \ 9299 hardcode_automatic \ 9300 module_cmds \ 9301 module_expsym_cmds \ 9302 lt_cv_prog_compiler_c_o \ 9303 exclude_expsyms \ 9304 include_expsyms; do 9305 9306 case $var in 9307 old_archive_cmds | \ 9308 old_archive_from_new_cmds | \ 9309 archive_cmds | \ 9310 archive_expsym_cmds | \ 9311 module_cmds | \ 9312 module_expsym_cmds | \ 9313 old_archive_from_expsyms_cmds | \ 9314 export_symbols_cmds | \ 9315 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9316 postinstall_cmds | postuninstall_cmds | \ 9317 old_postinstall_cmds | old_postuninstall_cmds | \ 9318 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9319 # Double-quote double-evaled strings. 9320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9321 ;; 9322 *) 9323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9324 ;; 9325 esac 9326 done 9327 9328 case $lt_echo in 9329 *'\$0 --fallback-echo"') 9330 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9331 ;; 9332 esac 9333 9334cfgfile="${ofile}T" 9335 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9336 $rm -f "$cfgfile" 9337 { echo "$as_me:$LINENO: creating $ofile" >&5 9338echo "$as_me: creating $ofile" >&6;} 9339 9340 cat <<__EOF__ >> "$cfgfile" 9341#! $SHELL 9342 9343# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9344# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9345# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9346# 9347# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9348# Free Software Foundation, Inc. 9349# 9350# This file is part of GNU Libtool: 9351# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9352# 9353# This program is free software; you can redistribute it and/or modify 9354# it under the terms of the GNU General Public License as published by 9355# the Free Software Foundation; either version 2 of the License, or 9356# (at your option) any later version. 9357# 9358# This program is distributed in the hope that it will be useful, but 9359# WITHOUT ANY WARRANTY; without even the implied warranty of 9360# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9361# General Public License for more details. 9362# 9363# You should have received a copy of the GNU General Public License 9364# along with this program; if not, write to the Free Software 9365# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9366# 9367# As a special exception to the GNU General Public License, if you 9368# distribute this file as part of a program that contains a 9369# configuration script generated by Autoconf, you may include it under 9370# the same distribution terms that you use for the rest of that program. 9371 9372# A sed program that does not truncate output. 9373SED=$lt_SED 9374 9375# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9376Xsed="$SED -e 1s/^X//" 9377 9378# The HP-UX ksh and POSIX shell print the target directory to stdout 9379# if CDPATH is set. 9380(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9381 9382# The names of the tagged configurations supported by this script. 9383available_tags= 9384 9385# ### BEGIN LIBTOOL CONFIG 9386 9387# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9388 9389# Shell to use when invoking shell scripts. 9390SHELL=$lt_SHELL 9391 9392# Whether or not to build shared libraries. 9393build_libtool_libs=$enable_shared 9394 9395# Whether or not to build static libraries. 9396build_old_libs=$enable_static 9397 9398# Whether or not to add -lc for building shared libraries. 9399build_libtool_need_lc=$archive_cmds_need_lc 9400 9401# Whether or not to disallow shared libs when runtime libs are static 9402allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9403 9404# Whether or not to optimize for fast installation. 9405fast_install=$enable_fast_install 9406 9407# The host system. 9408host_alias=$host_alias 9409host=$host 9410host_os=$host_os 9411 9412# The build system. 9413build_alias=$build_alias 9414build=$build 9415build_os=$build_os 9416 9417# An echo program that does not interpret backslashes. 9418echo=$lt_echo 9419 9420# The archiver. 9421AR=$lt_AR 9422AR_FLAGS=$lt_AR_FLAGS 9423 9424# A C compiler. 9425LTCC=$lt_LTCC 9426 9427# A language-specific compiler. 9428CC=$lt_compiler 9429 9430# Is the compiler the GNU C compiler? 9431with_gcc=$GCC 9432 9433# An ERE matcher. 9434EGREP=$lt_EGREP 9435 9436# The linker used to build libraries. 9437LD=$lt_LD 9438 9439# Whether we need hard or soft links. 9440LN_S=$lt_LN_S 9441 9442# A BSD-compatible nm program. 9443NM=$lt_NM 9444 9445# A symbol stripping program 9446STRIP=$lt_STRIP 9447 9448# Used to examine libraries when file_magic_cmd begins "file" 9449MAGIC_CMD=$MAGIC_CMD 9450 9451# Used on cygwin: DLL creation program. 9452DLLTOOL="$DLLTOOL" 9453 9454# Used on cygwin: object dumper. 9455OBJDUMP="$OBJDUMP" 9456 9457# Used on cygwin: assembler. 9458AS="$AS" 9459 9460# The name of the directory that contains temporary libtool files. 9461objdir=$objdir 9462 9463# How to create reloadable object files. 9464reload_flag=$lt_reload_flag 9465reload_cmds=$lt_reload_cmds 9466 9467# How to pass a linker flag through the compiler. 9468wl=$lt_lt_prog_compiler_wl 9469 9470# Object file suffix (normally "o"). 9471objext="$ac_objext" 9472 9473# Old archive suffix (normally "a"). 9474libext="$libext" 9475 9476# Shared library suffix (normally ".so"). 9477shrext_cmds='$shrext_cmds' 9478 9479# Executable file suffix (normally ""). 9480exeext="$exeext" 9481 9482# Additional compiler flags for building library objects. 9483pic_flag=$lt_lt_prog_compiler_pic 9484pic_mode=$pic_mode 9485 9486# What is the maximum length of a command? 9487max_cmd_len=$lt_cv_sys_max_cmd_len 9488 9489# Does compiler simultaneously support -c and -o options? 9490compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9491 9492# Must we lock files when doing compilation? 9493need_locks=$lt_need_locks 9494 9495# Do we need the lib prefix for modules? 9496need_lib_prefix=$need_lib_prefix 9497 9498# Do we need a version for libraries? 9499need_version=$need_version 9500 9501# Whether dlopen is supported. 9502dlopen_support=$enable_dlopen 9503 9504# Whether dlopen of programs is supported. 9505dlopen_self=$enable_dlopen_self 9506 9507# Whether dlopen of statically linked programs is supported. 9508dlopen_self_static=$enable_dlopen_self_static 9509 9510# Compiler flag to prevent dynamic linking. 9511link_static_flag=$lt_lt_prog_compiler_static 9512 9513# Compiler flag to turn off builtin functions. 9514no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9515 9516# Compiler flag to allow reflexive dlopens. 9517export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9518 9519# Compiler flag to generate shared objects directly from archives. 9520whole_archive_flag_spec=$lt_whole_archive_flag_spec 9521 9522# Compiler flag to generate thread-safe objects. 9523thread_safe_flag_spec=$lt_thread_safe_flag_spec 9524 9525# Library versioning type. 9526version_type=$version_type 9527 9528# Format of library name prefix. 9529libname_spec=$lt_libname_spec 9530 9531# List of archive names. First name is the real one, the rest are links. 9532# The last name is the one that the linker finds with -lNAME. 9533library_names_spec=$lt_library_names_spec 9534 9535# The coded name of the library, if different from the real name. 9536soname_spec=$lt_soname_spec 9537 9538# Commands used to build and install an old-style archive. 9539RANLIB=$lt_RANLIB 9540old_archive_cmds=$lt_old_archive_cmds 9541old_postinstall_cmds=$lt_old_postinstall_cmds 9542old_postuninstall_cmds=$lt_old_postuninstall_cmds 9543 9544# Create an old-style archive from a shared archive. 9545old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9546 9547# Create a temporary old-style archive to link instead of a shared archive. 9548old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9549 9550# Commands used to build and install a shared archive. 9551archive_cmds=$lt_archive_cmds 9552archive_expsym_cmds=$lt_archive_expsym_cmds 9553postinstall_cmds=$lt_postinstall_cmds 9554postuninstall_cmds=$lt_postuninstall_cmds 9555 9556# Commands used to build a loadable module (assumed same as above if empty) 9557module_cmds=$lt_module_cmds 9558module_expsym_cmds=$lt_module_expsym_cmds 9559 9560# Commands to strip libraries. 9561old_striplib=$lt_old_striplib 9562striplib=$lt_striplib 9563 9564# Dependencies to place before the objects being linked to create a 9565# shared library. 9566predep_objects=$lt_predep_objects 9567 9568# Dependencies to place after the objects being linked to create a 9569# shared library. 9570postdep_objects=$lt_postdep_objects 9571 9572# Dependencies to place before the objects being linked to create a 9573# shared library. 9574predeps=$lt_predeps 9575 9576# Dependencies to place after the objects being linked to create a 9577# shared library. 9578postdeps=$lt_postdeps 9579 9580# The library search path used internally by the compiler when linking 9581# a shared library. 9582compiler_lib_search_path=$lt_compiler_lib_search_path 9583 9584# Method to check whether dependent libraries are shared objects. 9585deplibs_check_method=$lt_deplibs_check_method 9586 9587# Command to use when deplibs_check_method == file_magic. 9588file_magic_cmd=$lt_file_magic_cmd 9589 9590# Flag that allows shared libraries with undefined symbols to be built. 9591allow_undefined_flag=$lt_allow_undefined_flag 9592 9593# Flag that forces no undefined symbols. 9594no_undefined_flag=$lt_no_undefined_flag 9595 9596# Commands used to finish a libtool library installation in a directory. 9597finish_cmds=$lt_finish_cmds 9598 9599# Same as above, but a single script fragment to be evaled but not shown. 9600finish_eval=$lt_finish_eval 9601 9602# Take the output of nm and produce a listing of raw symbols and C names. 9603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9604 9605# Transform the output of nm in a proper C declaration 9606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9607 9608# Transform the output of nm in a C name address pair 9609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9610 9611# This is the shared library runtime path variable. 9612runpath_var=$runpath_var 9613 9614# This is the shared library path variable. 9615shlibpath_var=$shlibpath_var 9616 9617# Is shlibpath searched before the hard-coded library search path? 9618shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9619 9620# How to hardcode a shared library path into an executable. 9621hardcode_action=$hardcode_action 9622 9623# Whether we should hardcode library paths into libraries. 9624hardcode_into_libs=$hardcode_into_libs 9625 9626# Flag to hardcode \$libdir into a binary during linking. 9627# This must work even if \$libdir does not exist. 9628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9629 9630# If ld is used when linking, flag to hardcode \$libdir into 9631# a binary during linking. This must work even if \$libdir does 9632# not exist. 9633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9634 9635# Whether we need a single -rpath flag with a separated argument. 9636hardcode_libdir_separator=$lt_hardcode_libdir_separator 9637 9638# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9639# resulting binary. 9640hardcode_direct=$hardcode_direct 9641 9642# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9643# resulting binary. 9644hardcode_minus_L=$hardcode_minus_L 9645 9646# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9647# the resulting binary. 9648hardcode_shlibpath_var=$hardcode_shlibpath_var 9649 9650# Set to yes if building a shared library automatically hardcodes DIR into the library 9651# and all subsequent libraries and executables linked against it. 9652hardcode_automatic=$hardcode_automatic 9653 9654# Variables whose values should be saved in libtool wrapper scripts and 9655# restored at relink time. 9656variables_saved_for_relink="$variables_saved_for_relink" 9657 9658# Whether libtool must link a program against all its dependency libraries. 9659link_all_deplibs=$link_all_deplibs 9660 9661# Compile-time system search path for libraries 9662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9663 9664# Run-time system search path for libraries 9665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9666 9667# Fix the shell variable \$srcfile for the compiler. 9668fix_srcfile_path="$fix_srcfile_path" 9669 9670# Set to yes if exported symbols are required. 9671always_export_symbols=$always_export_symbols 9672 9673# The commands to list exported symbols. 9674export_symbols_cmds=$lt_export_symbols_cmds 9675 9676# The commands to extract the exported symbol list from a shared archive. 9677extract_expsyms_cmds=$lt_extract_expsyms_cmds 9678 9679# Symbols that should not be listed in the preloaded symbols. 9680exclude_expsyms=$lt_exclude_expsyms 9681 9682# Symbols that must always be exported. 9683include_expsyms=$lt_include_expsyms 9684 9685# ### END LIBTOOL CONFIG 9686 9687__EOF__ 9688 9689 9690 case $host_os in 9691 aix3*) 9692 cat <<\EOF >> "$cfgfile" 9693 9694# AIX sometimes has problems with the GCC collect2 program. For some 9695# reason, if we set the COLLECT_NAMES environment variable, the problems 9696# vanish in a puff of smoke. 9697if test "X${COLLECT_NAMES+set}" != Xset; then 9698 COLLECT_NAMES= 9699 export COLLECT_NAMES 9700fi 9701EOF 9702 ;; 9703 esac 9704 9705 # We use sed instead of cat because bash on DJGPP gets confused if 9706 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9707 # text mode, it properly converts lines to CR/LF. This bash problem 9708 # is reportedly fixed, but why not run on old versions too? 9709 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9710 9711 mv -f "$cfgfile" "$ofile" || \ 9712 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9713 chmod +x "$ofile" 9714 9715else 9716 # If there is no Makefile yet, we rely on a make rule to execute 9717 # `config.status --recheck' to rerun these tests and create the 9718 # libtool script then. 9719 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9720 if test -f "$ltmain_in"; then 9721 test -f Makefile && make "$ltmain" 9722 fi 9723fi 9724 9725 9726ac_ext=cc 9727ac_cpp='$CXXCPP $CPPFLAGS' 9728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9731 9732CC="$lt_save_CC" 9733 9734 9735# Check whether --with-tags or --without-tags was given. 9736if test "${with_tags+set}" = set; then 9737 withval="$with_tags" 9738 tagnames="$withval" 9739fi; 9740 9741if test -f "$ltmain" && test -n "$tagnames"; then 9742 if test ! -f "${ofile}"; then 9743 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9744echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9745 fi 9746 9747 if test -z "$LTCC"; then 9748 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9749 if test -z "$LTCC"; then 9750 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9751echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9752 else 9753 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9754echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9755 fi 9756 fi 9757 9758 # Extract list of available tagged configurations in $ofile. 9759 # Note that this assumes the entire list is on one line. 9760 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9761 9762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9763 for tagname in $tagnames; do 9764 IFS="$lt_save_ifs" 9765 # Check whether tagname contains only valid characters 9766 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9767 "") ;; 9768 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9769echo "$as_me: error: invalid tag name: $tagname" >&2;} 9770 { (exit 1); exit 1; }; } 9771 ;; 9772 esac 9773 9774 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9775 then 9776 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9777echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9778 { (exit 1); exit 1; }; } 9779 fi 9780 9781 # Update the list of available tags. 9782 if test -n "$tagname"; then 9783 echo appending configuration tag \"$tagname\" to $ofile 9784 9785 case $tagname in 9786 CXX) 9787 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9788 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9789 (test "X$CXX" != "Xg++"))) ; then 9790 ac_ext=cc 9791ac_cpp='$CXXCPP $CPPFLAGS' 9792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9795 9796 9797 9798 9799archive_cmds_need_lc_CXX=no 9800allow_undefined_flag_CXX= 9801always_export_symbols_CXX=no 9802archive_expsym_cmds_CXX= 9803export_dynamic_flag_spec_CXX= 9804hardcode_direct_CXX=no 9805hardcode_libdir_flag_spec_CXX= 9806hardcode_libdir_flag_spec_ld_CXX= 9807hardcode_libdir_separator_CXX= 9808hardcode_minus_L_CXX=no 9809hardcode_automatic_CXX=no 9810module_cmds_CXX= 9811module_expsym_cmds_CXX= 9812link_all_deplibs_CXX=unknown 9813old_archive_cmds_CXX=$old_archive_cmds 9814no_undefined_flag_CXX= 9815whole_archive_flag_spec_CXX= 9816enable_shared_with_static_runtimes_CXX=no 9817 9818# Dependencies to place before and after the object being linked: 9819predep_objects_CXX= 9820postdep_objects_CXX= 9821predeps_CXX= 9822postdeps_CXX= 9823compiler_lib_search_path_CXX= 9824 9825# Source file extension for C++ test sources. 9826ac_ext=cc 9827 9828# Object file extension for compiled C++ test sources. 9829objext=o 9830objext_CXX=$objext 9831 9832# Code to be used in simple compile tests 9833lt_simple_compile_test_code="int some_variable = 0;\n" 9834 9835# Code to be used in simple link tests 9836lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9837 9838# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9839 9840# If no C compiler was specified, use CC. 9841LTCC=${LTCC-"$CC"} 9842 9843# Allow CC to be a program name with arguments. 9844compiler=$CC 9845 9846 9847# save warnings/boilerplate of simple test code 9848ac_outfile=conftest.$ac_objext 9849printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9850eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9851_lt_compiler_boilerplate=`cat conftest.err` 9852$rm conftest* 9853 9854ac_outfile=conftest.$ac_objext 9855printf "$lt_simple_link_test_code" >conftest.$ac_ext 9856eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9857_lt_linker_boilerplate=`cat conftest.err` 9858$rm conftest* 9859 9860 9861# Allow CC to be a program name with arguments. 9862lt_save_CC=$CC 9863lt_save_LD=$LD 9864lt_save_GCC=$GCC 9865GCC=$GXX 9866lt_save_with_gnu_ld=$with_gnu_ld 9867lt_save_path_LD=$lt_cv_path_LD 9868if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9869 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9870else 9871 unset lt_cv_prog_gnu_ld 9872fi 9873if test -n "${lt_cv_path_LDCXX+set}"; then 9874 lt_cv_path_LD=$lt_cv_path_LDCXX 9875else 9876 unset lt_cv_path_LD 9877fi 9878test -z "${LDCXX+set}" || LD=$LDCXX 9879CC=${CXX-"c++"} 9880compiler=$CC 9881compiler_CXX=$CC 9882for cc_temp in $compiler""; do 9883 case $cc_temp in 9884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9886 \-*) ;; 9887 *) break;; 9888 esac 9889done 9890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9891 9892 9893# We don't want -fno-exception wen compiling C++ code, so set the 9894# no_builtin_flag separately 9895if test "$GXX" = yes; then 9896 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9897else 9898 lt_prog_compiler_no_builtin_flag_CXX= 9899fi 9900 9901if test "$GXX" = yes; then 9902 # Set up default GNU C++ configuration 9903 9904 9905# Check whether --with-gnu-ld or --without-gnu-ld was given. 9906if test "${with_gnu_ld+set}" = set; then 9907 withval="$with_gnu_ld" 9908 test "$withval" = no || with_gnu_ld=yes 9909else 9910 with_gnu_ld=no 9911fi; 9912ac_prog=ld 9913if test "$GCC" = yes; then 9914 # Check if gcc -print-prog-name=ld gives a path. 9915 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9916echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9917 case $host in 9918 *-*-mingw*) 9919 # gcc leaves a trailing carriage return which upsets mingw 9920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9921 *) 9922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9923 esac 9924 case $ac_prog in 9925 # Accept absolute paths. 9926 [\\/]* | ?:[\\/]*) 9927 re_direlt='/[^/][^/]*/\.\./' 9928 # Canonicalize the pathname of ld 9929 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9931 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9932 done 9933 test -z "$LD" && LD="$ac_prog" 9934 ;; 9935 "") 9936 # If it fails, then pretend we aren't using GCC. 9937 ac_prog=ld 9938 ;; 9939 *) 9940 # If it is relative, then search for the first ld in PATH. 9941 with_gnu_ld=unknown 9942 ;; 9943 esac 9944elif test "$with_gnu_ld" = yes; then 9945 echo "$as_me:$LINENO: checking for GNU ld" >&5 9946echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9947else 9948 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9949echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9950fi 9951if test "${lt_cv_path_LD+set}" = set; then 9952 echo $ECHO_N "(cached) $ECHO_C" >&6 9953else 9954 if test -z "$LD"; then 9955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9956 for ac_dir in $PATH; do 9957 IFS="$lt_save_ifs" 9958 test -z "$ac_dir" && ac_dir=. 9959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9960 lt_cv_path_LD="$ac_dir/$ac_prog" 9961 # Check to see if the program is GNU ld. I'd rather use --version, 9962 # but apparently some GNU ld's only accept -v. 9963 # Break only if it was the GNU/non-GNU ld that we prefer. 9964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9965 *GNU* | *'with BFD'*) 9966 test "$with_gnu_ld" != no && break 9967 ;; 9968 *) 9969 test "$with_gnu_ld" != yes && break 9970 ;; 9971 esac 9972 fi 9973 done 9974 IFS="$lt_save_ifs" 9975else 9976 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9977fi 9978fi 9979 9980LD="$lt_cv_path_LD" 9981if test -n "$LD"; then 9982 echo "$as_me:$LINENO: result: $LD" >&5 9983echo "${ECHO_T}$LD" >&6 9984else 9985 echo "$as_me:$LINENO: result: no" >&5 9986echo "${ECHO_T}no" >&6 9987fi 9988test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9989echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9990 { (exit 1); exit 1; }; } 9991echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9992echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9993if test "${lt_cv_prog_gnu_ld+set}" = set; then 9994 echo $ECHO_N "(cached) $ECHO_C" >&6 9995else 9996 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9997case `$LD -v 2>&1 </dev/null` in 9998*GNU* | *'with BFD'*) 9999 lt_cv_prog_gnu_ld=yes 10000 ;; 10001*) 10002 lt_cv_prog_gnu_ld=no 10003 ;; 10004esac 10005fi 10006echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10007echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10008with_gnu_ld=$lt_cv_prog_gnu_ld 10009 10010 10011 10012 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10013 # archiving commands below assume that GNU ld is being used. 10014 if test "$with_gnu_ld" = yes; then 10015 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10016 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' 10017 10018 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10020 10021 # If archive_cmds runs LD, not CC, wlarc should be empty 10022 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10023 # investigate it a little bit more. (MM) 10024 wlarc='${wl}' 10025 10026 # ancient GNU ld didn't support --whole-archive et. al. 10027 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10028 grep 'no-whole-archive' > /dev/null; then 10029 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10030 else 10031 whole_archive_flag_spec_CXX= 10032 fi 10033 else 10034 with_gnu_ld=no 10035 wlarc= 10036 10037 # A generic and very simple default shared library creation 10038 # command for GNU C++ for the case where it uses the native 10039 # linker, instead of GNU ld. If possible, this setting should 10040 # overridden to take advantage of the native linker features on 10041 # the platform it is being used on. 10042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10043 fi 10044 10045 # Commands to make compiler produce verbose output that lists 10046 # what "hidden" libraries, object files and flags are used when 10047 # linking a shared library. 10048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10049 10050else 10051 GXX=no 10052 with_gnu_ld=no 10053 wlarc= 10054fi 10055 10056# PORTME: fill in a description of your system's C++ link characteristics 10057echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10058echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10059ld_shlibs_CXX=yes 10060case $host_os in 10061 aix3*) 10062 # FIXME: insert proper C++ library support 10063 ld_shlibs_CXX=no 10064 ;; 10065 aix4* | aix5*) 10066 if test "$host_cpu" = ia64; then 10067 # On IA64, the linker does run time linking by default, so we don't 10068 # have to do anything special. 10069 aix_use_runtimelinking=no 10070 exp_sym_flag='-Bexport' 10071 no_entry_flag="" 10072 else 10073 aix_use_runtimelinking=no 10074 10075 # Test if we are trying to use run time linking or normal 10076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10077 # need to do runtime linking. 10078 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10079 for ld_flag in $LDFLAGS; do 10080 case $ld_flag in 10081 *-brtl*) 10082 aix_use_runtimelinking=yes 10083 break 10084 ;; 10085 esac 10086 done 10087 esac 10088 10089 exp_sym_flag='-bexport' 10090 no_entry_flag='-bnoentry' 10091 fi 10092 10093 # When large executables or shared objects are built, AIX ld can 10094 # have problems creating the table of contents. If linking a library 10095 # or program results in "error TOC overflow" add -mminimal-toc to 10096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10098 10099 archive_cmds_CXX='' 10100 hardcode_direct_CXX=yes 10101 hardcode_libdir_separator_CXX=':' 10102 link_all_deplibs_CXX=yes 10103 10104 if test "$GXX" = yes; then 10105 case $host_os in aix4.[012]|aix4.[012].*) 10106 # We only want to do this on AIX 4.2 and lower, the check 10107 # below for broken collect2 doesn't work under 4.3+ 10108 collect2name=`${CC} -print-prog-name=collect2` 10109 if test -f "$collect2name" && \ 10110 strings "$collect2name" | grep resolve_lib_name >/dev/null 10111 then 10112 # We have reworked collect2 10113 hardcode_direct_CXX=yes 10114 else 10115 # We have old collect2 10116 hardcode_direct_CXX=unsupported 10117 # It fails to find uninstalled libraries when the uninstalled 10118 # path is not listed in the libpath. Setting hardcode_minus_L 10119 # to unsupported forces relinking 10120 hardcode_minus_L_CXX=yes 10121 hardcode_libdir_flag_spec_CXX='-L$libdir' 10122 hardcode_libdir_separator_CXX= 10123 fi 10124 esac 10125 shared_flag='-shared' 10126 if test "$aix_use_runtimelinking" = yes; then 10127 shared_flag="$shared_flag "'${wl}-G' 10128 fi 10129 else 10130 # not using gcc 10131 if test "$host_cpu" = ia64; then 10132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10133 # chokes on -Wl,-G. The following line is correct: 10134 shared_flag='-G' 10135 else 10136 if test "$aix_use_runtimelinking" = yes; then 10137 shared_flag='${wl}-G' 10138 else 10139 shared_flag='${wl}-bM:SRE' 10140 fi 10141 fi 10142 fi 10143 10144 # It seems that -bexpall does not export symbols beginning with 10145 # underscore (_), so it is better to generate a list of symbols to export. 10146 always_export_symbols_CXX=yes 10147 if test "$aix_use_runtimelinking" = yes; then 10148 # Warning - without using the other runtime loading flags (-brtl), 10149 # -berok will link without error, but may produce a broken library. 10150 allow_undefined_flag_CXX='-berok' 10151 # Determine the default libpath from the value encoded in an empty executable. 10152 cat >conftest.$ac_ext <<_ACEOF 10153/* confdefs.h. */ 10154_ACEOF 10155cat confdefs.h >>conftest.$ac_ext 10156cat >>conftest.$ac_ext <<_ACEOF 10157/* end confdefs.h. */ 10158 10159int 10160main () 10161{ 10162 10163 ; 10164 return 0; 10165} 10166_ACEOF 10167rm -f conftest.$ac_objext conftest$ac_exeext 10168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10169 (eval $ac_link) 2>conftest.er1 10170 ac_status=$? 10171 grep -v '^ *+' conftest.er1 >conftest.err 10172 rm -f conftest.er1 10173 cat conftest.err >&5 10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10175 (exit $ac_status); } && 10176 { ac_try='test -z "$ac_cxx_werror_flag" 10177 || test ! -s conftest.err' 10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10179 (eval $ac_try) 2>&5 10180 ac_status=$? 10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10182 (exit $ac_status); }; } && 10183 { ac_try='test -s conftest$ac_exeext' 10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10185 (eval $ac_try) 2>&5 10186 ac_status=$? 10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10188 (exit $ac_status); }; }; then 10189 10190aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10191}'` 10192# Check for a 64-bit object if we didn't find anything. 10193if 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; } 10194}'`; fi 10195else 10196 echo "$as_me: failed program was:" >&5 10197sed 's/^/| /' conftest.$ac_ext >&5 10198 10199fi 10200rm -f conftest.err conftest.$ac_objext \ 10201 conftest$ac_exeext conftest.$ac_ext 10202if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10203 10204 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10205 10206 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" 10207 else 10208 if test "$host_cpu" = ia64; then 10209 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10210 allow_undefined_flag_CXX="-z nodefs" 10211 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" 10212 else 10213 # Determine the default libpath from the value encoded in an empty executable. 10214 cat >conftest.$ac_ext <<_ACEOF 10215/* confdefs.h. */ 10216_ACEOF 10217cat confdefs.h >>conftest.$ac_ext 10218cat >>conftest.$ac_ext <<_ACEOF 10219/* end confdefs.h. */ 10220 10221int 10222main () 10223{ 10224 10225 ; 10226 return 0; 10227} 10228_ACEOF 10229rm -f conftest.$ac_objext conftest$ac_exeext 10230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10231 (eval $ac_link) 2>conftest.er1 10232 ac_status=$? 10233 grep -v '^ *+' conftest.er1 >conftest.err 10234 rm -f conftest.er1 10235 cat conftest.err >&5 10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10237 (exit $ac_status); } && 10238 { ac_try='test -z "$ac_cxx_werror_flag" 10239 || test ! -s conftest.err' 10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10241 (eval $ac_try) 2>&5 10242 ac_status=$? 10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10244 (exit $ac_status); }; } && 10245 { ac_try='test -s conftest$ac_exeext' 10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10247 (eval $ac_try) 2>&5 10248 ac_status=$? 10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10250 (exit $ac_status); }; }; then 10251 10252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10253}'` 10254# Check for a 64-bit object if we didn't find anything. 10255if 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; } 10256}'`; fi 10257else 10258 echo "$as_me: failed program was:" >&5 10259sed 's/^/| /' conftest.$ac_ext >&5 10260 10261fi 10262rm -f conftest.err conftest.$ac_objext \ 10263 conftest$ac_exeext conftest.$ac_ext 10264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10265 10266 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10267 # Warning - without using the other run time loading flags, 10268 # -berok will link without error, but may produce a broken library. 10269 no_undefined_flag_CXX=' ${wl}-bernotok' 10270 allow_undefined_flag_CXX=' ${wl}-berok' 10271 # -bexpall does not export symbols beginning with underscore (_) 10272 always_export_symbols_CXX=yes 10273 # Exported symbols can be pulled into shared objects from archives 10274 whole_archive_flag_spec_CXX=' ' 10275 archive_cmds_need_lc_CXX=yes 10276 # This is similar to how AIX traditionally builds it's shared libraries. 10277 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' 10278 fi 10279 fi 10280 ;; 10281 chorus*) 10282 case $cc_basename in 10283 *) 10284 # FIXME: insert proper C++ library support 10285 ld_shlibs_CXX=no 10286 ;; 10287 esac 10288 ;; 10289 10290 10291 cygwin* | mingw* | pw32*) 10292 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10293 # as there is no search path for DLLs. 10294 hardcode_libdir_flag_spec_CXX='-L$libdir' 10295 allow_undefined_flag_CXX=unsupported 10296 always_export_symbols_CXX=no 10297 enable_shared_with_static_runtimes_CXX=yes 10298 10299 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10300 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' 10301 # If the export-symbols file already is a .def file (1st line 10302 # is EXPORTS), use it as is; otherwise, prepend... 10303 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10304 cp $export_symbols $output_objdir/$soname.def; 10305 else 10306 echo EXPORTS > $output_objdir/$soname.def; 10307 cat $export_symbols >> $output_objdir/$soname.def; 10308 fi~ 10309 $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' 10310 else 10311 ld_shlibs_CXX=no 10312 fi 10313 ;; 10314 darwin* | rhapsody*) 10315 case "$host_os" in 10316 rhapsody* | darwin1.[012]) 10317 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10318 ;; 10319 *) # Darwin 1.3 on 10320 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10321 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10322 else 10323 case ${MACOSX_DEPLOYMENT_TARGET} in 10324 10.[012]) 10325 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10326 ;; 10327 10.*) 10328 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10329 ;; 10330 esac 10331 fi 10332 ;; 10333 esac 10334 archive_cmds_need_lc_CXX=no 10335 hardcode_direct_CXX=no 10336 hardcode_automatic_CXX=yes 10337 hardcode_shlibpath_var_CXX=unsupported 10338 whole_archive_flag_spec_CXX='' 10339 link_all_deplibs_CXX=yes 10340 10341 if test "$GXX" = yes ; then 10342 lt_int_apple_cc_single_mod=no 10343 output_verbose_link_cmd='echo' 10344 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10345 lt_int_apple_cc_single_mod=yes 10346 fi 10347 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10348 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10349 else 10350 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' 10351 fi 10352 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10353 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10354 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10355 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}' 10356 else 10357 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}' 10358 fi 10359 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}' 10360 else 10361 case $cc_basename in 10362 xlc*) 10363 output_verbose_link_cmd='echo' 10364 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' 10365 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10367 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}' 10368 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}' 10369 ;; 10370 *) 10371 ld_shlibs_CXX=no 10372 ;; 10373 esac 10374 fi 10375 ;; 10376 10377 dgux*) 10378 case $cc_basename in 10379 ec++*) 10380 # FIXME: insert proper C++ library support 10381 ld_shlibs_CXX=no 10382 ;; 10383 ghcx*) 10384 # Green Hills C++ Compiler 10385 # FIXME: insert proper C++ library support 10386 ld_shlibs_CXX=no 10387 ;; 10388 *) 10389 # FIXME: insert proper C++ library support 10390 ld_shlibs_CXX=no 10391 ;; 10392 esac 10393 ;; 10394 freebsd[12]*) 10395 # C++ shared libraries reported to be fairly broken before switch to ELF 10396 ld_shlibs_CXX=no 10397 ;; 10398 freebsd-elf*) 10399 archive_cmds_need_lc_CXX=no 10400 ;; 10401 freebsd* | kfreebsd*-gnu | dragonfly*) 10402 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10403 # conventions 10404 ld_shlibs_CXX=yes 10405 ;; 10406 gnu*) 10407 ;; 10408 hpux9*) 10409 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10410 hardcode_libdir_separator_CXX=: 10411 export_dynamic_flag_spec_CXX='${wl}-E' 10412 hardcode_direct_CXX=yes 10413 hardcode_minus_L_CXX=yes # Not in the search PATH, 10414 # but as the default 10415 # location of the library. 10416 10417 case $cc_basename in 10418 CC*) 10419 # FIXME: insert proper C++ library support 10420 ld_shlibs_CXX=no 10421 ;; 10422 aCC*) 10423 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' 10424 # Commands to make compiler produce verbose output that lists 10425 # what "hidden" libraries, object files and flags are used when 10426 # linking a shared library. 10427 # 10428 # There doesn't appear to be a way to prevent this compiler from 10429 # explicitly linking system object files so we need to strip them 10430 # from the output so that they don't get included in the library 10431 # dependencies. 10432 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' 10433 ;; 10434 *) 10435 if test "$GXX" = yes; then 10436 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' 10437 else 10438 # FIXME: insert proper C++ library support 10439 ld_shlibs_CXX=no 10440 fi 10441 ;; 10442 esac 10443 ;; 10444 hpux10*|hpux11*) 10445 if test $with_gnu_ld = no; then 10446 case "$host_cpu" in 10447 hppa*64*) 10448 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10449 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10450 hardcode_libdir_separator_CXX=: 10451 ;; 10452 ia64*) 10453 hardcode_libdir_flag_spec_CXX='-L$libdir' 10454 ;; 10455 *) 10456 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10457 hardcode_libdir_separator_CXX=: 10458 export_dynamic_flag_spec_CXX='${wl}-E' 10459 ;; 10460 esac 10461 fi 10462 case "$host_cpu" in 10463 hppa*64*) 10464 hardcode_direct_CXX=no 10465 hardcode_shlibpath_var_CXX=no 10466 ;; 10467 ia64*) 10468 hardcode_direct_CXX=no 10469 hardcode_shlibpath_var_CXX=no 10470 hardcode_minus_L_CXX=yes # Not in the search PATH, 10471 # but as the default 10472 # location of the library. 10473 ;; 10474 *) 10475 hardcode_direct_CXX=yes 10476 hardcode_minus_L_CXX=yes # Not in the search PATH, 10477 # but as the default 10478 # location of the library. 10479 ;; 10480 esac 10481 10482 case $cc_basename in 10483 CC*) 10484 # FIXME: insert proper C++ library support 10485 ld_shlibs_CXX=no 10486 ;; 10487 aCC*) 10488 case "$host_cpu" in 10489 hppa*64*|ia64*) 10490 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10491 ;; 10492 *) 10493 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10494 ;; 10495 esac 10496 # Commands to make compiler produce verbose output that lists 10497 # what "hidden" libraries, object files and flags are used when 10498 # linking a shared library. 10499 # 10500 # There doesn't appear to be a way to prevent this compiler from 10501 # explicitly linking system object files so we need to strip them 10502 # from the output so that they don't get included in the library 10503 # dependencies. 10504 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' 10505 ;; 10506 *) 10507 if test "$GXX" = yes; then 10508 if test $with_gnu_ld = no; then 10509 case "$host_cpu" in 10510 ia64*|hppa*64*) 10511 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10512 ;; 10513 *) 10514 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' 10515 ;; 10516 esac 10517 fi 10518 else 10519 # FIXME: insert proper C++ library support 10520 ld_shlibs_CXX=no 10521 fi 10522 ;; 10523 esac 10524 ;; 10525 irix5* | irix6*) 10526 case $cc_basename in 10527 CC*) 10528 # SGI C++ 10529 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10530 10531 # Archives containing C++ object files must be created using 10532 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10533 # necessary to make sure instantiated templates are included 10534 # in the archive. 10535 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10536 ;; 10537 *) 10538 if test "$GXX" = yes; then 10539 if test "$with_gnu_ld" = no; then 10540 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10541 else 10542 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' 10543 fi 10544 fi 10545 link_all_deplibs_CXX=yes 10546 ;; 10547 esac 10548 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10549 hardcode_libdir_separator_CXX=: 10550 ;; 10551 linux*) 10552 case $cc_basename in 10553 KCC*) 10554 # Kuck and Associates, Inc. (KAI) C++ Compiler 10555 10556 # KCC will only create a shared library if the output file 10557 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10558 # to its proper name (with version) after linking. 10559 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' 10560 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' 10561 # Commands to make compiler produce verbose output that lists 10562 # what "hidden" libraries, object files and flags are used when 10563 # linking a shared library. 10564 # 10565 # There doesn't appear to be a way to prevent this compiler from 10566 # explicitly linking system object files so we need to strip them 10567 # from the output so that they don't get included in the library 10568 # dependencies. 10569 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' 10570 10571 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10573 10574 # Archives containing C++ object files must be created using 10575 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10576 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10577 ;; 10578 icpc*) 10579 # Intel C++ 10580 with_gnu_ld=yes 10581 # version 8.0 and above of icpc choke on multiply defined symbols 10582 # if we add $predep_objects and $postdep_objects, however 7.1 and 10583 # earlier do not add the objects themselves. 10584 case `$CC -V 2>&1` in 10585 *"Version 7."*) 10586 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10587 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' 10588 ;; 10589 *) # Version 8.0 or newer 10590 tmp_idyn= 10591 case $host_cpu in 10592 ia64*) tmp_idyn=' -i_dynamic';; 10593 esac 10594 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10595 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10596 ;; 10597 esac 10598 archive_cmds_need_lc_CXX=no 10599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10601 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10602 ;; 10603 pgCC*) 10604 # Portland Group C++ compiler 10605 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10606 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 10607 10608 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10609 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10610 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10611 ;; 10612 cxx*) 10613 # Compaq C++ 10614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10615 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' 10616 10617 runpath_var=LD_RUN_PATH 10618 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10619 hardcode_libdir_separator_CXX=: 10620 10621 # Commands to make compiler produce verbose output that lists 10622 # what "hidden" libraries, object files and flags are used when 10623 # linking a shared library. 10624 # 10625 # There doesn't appear to be a way to prevent this compiler from 10626 # explicitly linking system object files so we need to strip them 10627 # from the output so that they don't get included in the library 10628 # dependencies. 10629 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' 10630 ;; 10631 esac 10632 ;; 10633 lynxos*) 10634 # FIXME: insert proper C++ library support 10635 ld_shlibs_CXX=no 10636 ;; 10637 m88k*) 10638 # FIXME: insert proper C++ library support 10639 ld_shlibs_CXX=no 10640 ;; 10641 mvs*) 10642 case $cc_basename in 10643 cxx*) 10644 # FIXME: insert proper C++ library support 10645 ld_shlibs_CXX=no 10646 ;; 10647 *) 10648 # FIXME: insert proper C++ library support 10649 ld_shlibs_CXX=no 10650 ;; 10651 esac 10652 ;; 10653 netbsd*) 10654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10655 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10656 wlarc= 10657 hardcode_libdir_flag_spec_CXX='-R$libdir' 10658 hardcode_direct_CXX=yes 10659 hardcode_shlibpath_var_CXX=no 10660 fi 10661 # Workaround some broken pre-1.5 toolchains 10662 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10663 ;; 10664 openbsd2*) 10665 # C++ shared libraries are fairly broken 10666 ld_shlibs_CXX=no 10667 ;; 10668 openbsd*) 10669 hardcode_direct_CXX=yes 10670 hardcode_shlibpath_var_CXX=no 10671 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10674 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10675 export_dynamic_flag_spec_CXX='${wl}-E' 10676 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10677 fi 10678 output_verbose_link_cmd='echo' 10679 ;; 10680 osf3*) 10681 case $cc_basename in 10682 KCC*) 10683 # Kuck and Associates, Inc. (KAI) C++ Compiler 10684 10685 # KCC will only create a shared library if the output file 10686 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10687 # to its proper name (with version) after linking. 10688 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' 10689 10690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10691 hardcode_libdir_separator_CXX=: 10692 10693 # Archives containing C++ object files must be created using 10694 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10695 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10696 10697 ;; 10698 RCC*) 10699 # Rational C++ 2.4.1 10700 # FIXME: insert proper C++ library support 10701 ld_shlibs_CXX=no 10702 ;; 10703 cxx*) 10704 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10705 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10706 10707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10708 hardcode_libdir_separator_CXX=: 10709 10710 # Commands to make compiler produce verbose output that lists 10711 # what "hidden" libraries, object files and flags are used when 10712 # linking a shared library. 10713 # 10714 # There doesn't appear to be a way to prevent this compiler from 10715 # explicitly linking system object files so we need to strip them 10716 # from the output so that they don't get included in the library 10717 # dependencies. 10718 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' 10719 ;; 10720 *) 10721 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10722 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10723 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10724 10725 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10726 hardcode_libdir_separator_CXX=: 10727 10728 # Commands to make compiler produce verbose output that lists 10729 # what "hidden" libraries, object files and flags are used when 10730 # linking a shared library. 10731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10732 10733 else 10734 # FIXME: insert proper C++ library support 10735 ld_shlibs_CXX=no 10736 fi 10737 ;; 10738 esac 10739 ;; 10740 osf4* | osf5*) 10741 case $cc_basename in 10742 KCC*) 10743 # Kuck and Associates, Inc. (KAI) C++ Compiler 10744 10745 # KCC will only create a shared library if the output file 10746 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10747 # to its proper name (with version) after linking. 10748 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' 10749 10750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10751 hardcode_libdir_separator_CXX=: 10752 10753 # Archives containing C++ object files must be created using 10754 # the KAI C++ compiler. 10755 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10756 ;; 10757 RCC*) 10758 # Rational C++ 2.4.1 10759 # FIXME: insert proper C++ library support 10760 ld_shlibs_CXX=no 10761 ;; 10762 cxx*) 10763 allow_undefined_flag_CXX=' -expect_unresolved \*' 10764 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10765 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10766 echo "-hidden">> $lib.exp~ 10767 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 10768 $rm $lib.exp' 10769 10770 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10771 hardcode_libdir_separator_CXX=: 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 -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' 10782 ;; 10783 *) 10784 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10785 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10786 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10787 10788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10789 hardcode_libdir_separator_CXX=: 10790 10791 # Commands to make compiler produce verbose output that lists 10792 # what "hidden" libraries, object files and flags are used when 10793 # linking a shared library. 10794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10795 10796 else 10797 # FIXME: insert proper C++ library support 10798 ld_shlibs_CXX=no 10799 fi 10800 ;; 10801 esac 10802 ;; 10803 psos*) 10804 # FIXME: insert proper C++ library support 10805 ld_shlibs_CXX=no 10806 ;; 10807 sco*) 10808 archive_cmds_need_lc_CXX=no 10809 case $cc_basename in 10810 CC*) 10811 # FIXME: insert proper C++ library support 10812 ld_shlibs_CXX=no 10813 ;; 10814 *) 10815 # FIXME: insert proper C++ library support 10816 ld_shlibs_CXX=no 10817 ;; 10818 esac 10819 ;; 10820 sunos4*) 10821 case $cc_basename in 10822 CC*) 10823 # Sun C++ 4.x 10824 # FIXME: insert proper C++ library support 10825 ld_shlibs_CXX=no 10826 ;; 10827 lcc*) 10828 # Lucid 10829 # FIXME: insert proper C++ library support 10830 ld_shlibs_CXX=no 10831 ;; 10832 *) 10833 # FIXME: insert proper C++ library support 10834 ld_shlibs_CXX=no 10835 ;; 10836 esac 10837 ;; 10838 solaris*) 10839 case $cc_basename in 10840 CC*) 10841 # Sun C++ 4.2, 5.x and Centerline C++ 10842 no_undefined_flag_CXX=' -zdefs' 10843 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10844 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10845 $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' 10846 10847 hardcode_libdir_flag_spec_CXX='-R$libdir' 10848 hardcode_shlibpath_var_CXX=no 10849 case $host_os in 10850 solaris2.[0-5] | solaris2.[0-5].*) ;; 10851 *) 10852 # The C++ compiler is used as linker so we must use $wl 10853 # flag to pass the commands to the underlying system 10854 # linker. We must also pass each convience library through 10855 # to the system linker between allextract/defaultextract. 10856 # The C++ compiler will combine linker options so we 10857 # cannot just pass the convience library names through 10858 # without $wl. 10859 # Supported since Solaris 2.6 (maybe 2.5.1?) 10860 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 10861 ;; 10862 esac 10863 link_all_deplibs_CXX=yes 10864 10865 # Commands to make compiler produce verbose output that lists 10866 # what "hidden" libraries, object files and flags are used when 10867 # linking a shared library. 10868 # 10869 # There doesn't appear to be a way to prevent this compiler from 10870 # explicitly linking system object files so we need to strip them 10871 # from the output so that they don't get included in the library 10872 # dependencies. 10873 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' 10874 10875 # Archives containing C++ object files must be created using 10876 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10877 # necessary to make sure instantiated templates are included 10878 # in the archive. 10879 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10880 ;; 10881 gcx*) 10882 # Green Hills C++ Compiler 10883 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10884 10885 # The C++ compiler must be used to create the archive. 10886 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10887 ;; 10888 *) 10889 # GNU C++ compiler with Solaris linker 10890 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10891 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10892 if $CC --version | grep -v '^2\.7' > /dev/null; then 10893 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10894 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10895 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10896 10897 # Commands to make compiler produce verbose output that lists 10898 # what "hidden" libraries, object files and flags are used when 10899 # linking a shared library. 10900 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10901 else 10902 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10903 # platform. 10904 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10905 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10906 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10907 10908 # Commands to make compiler produce verbose output that lists 10909 # what "hidden" libraries, object files and flags are used when 10910 # linking a shared library. 10911 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10912 fi 10913 10914 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10915 fi 10916 ;; 10917 esac 10918 ;; 10919 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10920 archive_cmds_need_lc_CXX=no 10921 ;; 10922 tandem*) 10923 case $cc_basename in 10924 NCC*) 10925 # NonStop-UX NCC 3.20 10926 # FIXME: insert proper C++ library support 10927 ld_shlibs_CXX=no 10928 ;; 10929 *) 10930 # FIXME: insert proper C++ library support 10931 ld_shlibs_CXX=no 10932 ;; 10933 esac 10934 ;; 10935 vxworks*) 10936 # FIXME: insert proper C++ library support 10937 ld_shlibs_CXX=no 10938 ;; 10939 *) 10940 # FIXME: insert proper C++ library support 10941 ld_shlibs_CXX=no 10942 ;; 10943esac 10944echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10945echo "${ECHO_T}$ld_shlibs_CXX" >&6 10946test "$ld_shlibs_CXX" = no && can_build_shared=no 10947 10948GCC_CXX="$GXX" 10949LD_CXX="$LD" 10950 10951 10952cat > conftest.$ac_ext <<EOF 10953class Foo 10954{ 10955public: 10956 Foo (void) { a = 0; } 10957private: 10958 int a; 10959}; 10960EOF 10961 10962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10963 (eval $ac_compile) 2>&5 10964 ac_status=$? 10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10966 (exit $ac_status); }; then 10967 # Parse the compiler output and extract the necessary 10968 # objects, libraries and library flags. 10969 10970 # Sentinel used to keep track of whether or not we are before 10971 # the conftest object file. 10972 pre_test_object_deps_done=no 10973 10974 # The `*' in the case matches for architectures that use `case' in 10975 # $output_verbose_cmd can trigger glob expansion during the loop 10976 # eval without this substitution. 10977 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10978 10979 for p in `eval $output_verbose_link_cmd`; do 10980 case $p in 10981 10982 -L* | -R* | -l*) 10983 # Some compilers place space between "-{L,R}" and the path. 10984 # Remove the space. 10985 if test $p = "-L" \ 10986 || test $p = "-R"; then 10987 prev=$p 10988 continue 10989 else 10990 prev= 10991 fi 10992 10993 if test "$pre_test_object_deps_done" = no; then 10994 case $p in 10995 -L* | -R*) 10996 # Internal compiler library paths should come after those 10997 # provided the user. The postdeps already come after the 10998 # user supplied libs so there is no need to process them. 10999 if test -z "$compiler_lib_search_path_CXX"; then 11000 compiler_lib_search_path_CXX="${prev}${p}" 11001 else 11002 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11003 fi 11004 ;; 11005 # The "-l" case would never come before the object being 11006 # linked, so don't bother handling this case. 11007 esac 11008 else 11009 if test -z "$postdeps_CXX"; then 11010 postdeps_CXX="${prev}${p}" 11011 else 11012 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11013 fi 11014 fi 11015 ;; 11016 11017 *.$objext) 11018 # This assumes that the test object file only shows up 11019 # once in the compiler output. 11020 if test "$p" = "conftest.$objext"; then 11021 pre_test_object_deps_done=yes 11022 continue 11023 fi 11024 11025 if test "$pre_test_object_deps_done" = no; then 11026 if test -z "$predep_objects_CXX"; then 11027 predep_objects_CXX="$p" 11028 else 11029 predep_objects_CXX="$predep_objects_CXX $p" 11030 fi 11031 else 11032 if test -z "$postdep_objects_CXX"; then 11033 postdep_objects_CXX="$p" 11034 else 11035 postdep_objects_CXX="$postdep_objects_CXX $p" 11036 fi 11037 fi 11038 ;; 11039 11040 *) ;; # Ignore the rest. 11041 11042 esac 11043 done 11044 11045 # Clean up. 11046 rm -f a.out a.exe 11047else 11048 echo "libtool.m4: error: problem compiling CXX test program" 11049fi 11050 11051$rm -f confest.$objext 11052 11053case " $postdeps_CXX " in 11054*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11055esac 11056 11057lt_prog_compiler_wl_CXX= 11058lt_prog_compiler_pic_CXX= 11059lt_prog_compiler_static_CXX= 11060 11061echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11062echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11063 11064 # C++ specific cases for pic, static, wl, etc. 11065 if test "$GXX" = yes; then 11066 lt_prog_compiler_wl_CXX='-Wl,' 11067 lt_prog_compiler_static_CXX='-static' 11068 11069 case $host_os in 11070 aix*) 11071 # All AIX code is PIC. 11072 if test "$host_cpu" = ia64; then 11073 # AIX 5 now supports IA64 processor 11074 lt_prog_compiler_static_CXX='-Bstatic' 11075 fi 11076 ;; 11077 amigaos*) 11078 # FIXME: we need at least 68020 code to build shared libraries, but 11079 # adding the `-m68020' flag to GCC prevents building anything better, 11080 # like `-m68040'. 11081 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11082 ;; 11083 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11084 # PIC is the default for these OSes. 11085 ;; 11086 mingw* | os2* | pw32*) 11087 # This hack is so that the source file can tell whether it is being 11088 # built for inclusion in a dll (and should export symbols for example). 11089 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11090 ;; 11091 darwin* | rhapsody*) 11092 # PIC is the default on this platform 11093 # Common symbols not allowed in MH_DYLIB files 11094 lt_prog_compiler_pic_CXX='-fno-common' 11095 ;; 11096 *djgpp*) 11097 # DJGPP does not support shared libraries at all 11098 lt_prog_compiler_pic_CXX= 11099 ;; 11100 sysv4*MP*) 11101 if test -d /usr/nec; then 11102 lt_prog_compiler_pic_CXX=-Kconform_pic 11103 fi 11104 ;; 11105 hpux*) 11106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11107 # not for PA HP-UX. 11108 case "$host_cpu" in 11109 hppa*64*|ia64*) 11110 ;; 11111 *) 11112 lt_prog_compiler_pic_CXX='-fPIC' 11113 ;; 11114 esac 11115 ;; 11116 *) 11117 lt_prog_compiler_pic_CXX='-fPIC' 11118 ;; 11119 esac 11120 else 11121 case $host_os in 11122 aix4* | aix5*) 11123 # All AIX code is PIC. 11124 if test "$host_cpu" = ia64; then 11125 # AIX 5 now supports IA64 processor 11126 lt_prog_compiler_static_CXX='-Bstatic' 11127 else 11128 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11129 fi 11130 ;; 11131 chorus*) 11132 case $cc_basename in 11133 cxch68*) 11134 # Green Hills C++ Compiler 11135 # _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" 11136 ;; 11137 esac 11138 ;; 11139 darwin*) 11140 # PIC is the default on this platform 11141 # Common symbols not allowed in MH_DYLIB files 11142 case $cc_basename in 11143 xlc*) 11144 lt_prog_compiler_pic_CXX='-qnocommon' 11145 lt_prog_compiler_wl_CXX='-Wl,' 11146 ;; 11147 esac 11148 ;; 11149 dgux*) 11150 case $cc_basename in 11151 ec++*) 11152 lt_prog_compiler_pic_CXX='-KPIC' 11153 ;; 11154 ghcx*) 11155 # Green Hills C++ Compiler 11156 lt_prog_compiler_pic_CXX='-pic' 11157 ;; 11158 *) 11159 ;; 11160 esac 11161 ;; 11162 freebsd* | kfreebsd*-gnu | dragonfly*) 11163 # FreeBSD uses GNU C++ 11164 ;; 11165 hpux9* | hpux10* | hpux11*) 11166 case $cc_basename in 11167 CC*) 11168 lt_prog_compiler_wl_CXX='-Wl,' 11169 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11170 if test "$host_cpu" != ia64; then 11171 lt_prog_compiler_pic_CXX='+Z' 11172 fi 11173 ;; 11174 aCC*) 11175 lt_prog_compiler_wl_CXX='-Wl,' 11176 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11177 case "$host_cpu" in 11178 hppa*64*|ia64*) 11179 # +Z the default 11180 ;; 11181 *) 11182 lt_prog_compiler_pic_CXX='+Z' 11183 ;; 11184 esac 11185 ;; 11186 *) 11187 ;; 11188 esac 11189 ;; 11190 irix5* | irix6* | nonstopux*) 11191 case $cc_basename in 11192 CC*) 11193 lt_prog_compiler_wl_CXX='-Wl,' 11194 lt_prog_compiler_static_CXX='-non_shared' 11195 # CC pic flag -KPIC is the default. 11196 ;; 11197 *) 11198 ;; 11199 esac 11200 ;; 11201 linux*) 11202 case $cc_basename in 11203 KCC*) 11204 # KAI C++ Compiler 11205 lt_prog_compiler_wl_CXX='--backend -Wl,' 11206 lt_prog_compiler_pic_CXX='-fPIC' 11207 ;; 11208 icpc* | ecpc*) 11209 # Intel C++ 11210 lt_prog_compiler_wl_CXX='-Wl,' 11211 lt_prog_compiler_pic_CXX='-KPIC' 11212 lt_prog_compiler_static_CXX='-static' 11213 ;; 11214 pgCC*) 11215 # Portland Group C++ compiler. 11216 lt_prog_compiler_wl_CXX='-Wl,' 11217 lt_prog_compiler_pic_CXX='-fpic' 11218 lt_prog_compiler_static_CXX='-static' 11219 ;; 11220 cxx*) 11221 # Compaq C++ 11222 # Make sure the PIC flag is empty. It appears that all Alpha 11223 # Linux and Compaq Tru64 Unix objects are PIC. 11224 lt_prog_compiler_pic_CXX= 11225 lt_prog_compiler_static_CXX='-non_shared' 11226 ;; 11227 *) 11228 ;; 11229 esac 11230 ;; 11231 lynxos*) 11232 ;; 11233 m88k*) 11234 ;; 11235 mvs*) 11236 case $cc_basename in 11237 cxx*) 11238 lt_prog_compiler_pic_CXX='-W c,exportall' 11239 ;; 11240 *) 11241 ;; 11242 esac 11243 ;; 11244 netbsd*) 11245 ;; 11246 osf3* | osf4* | osf5*) 11247 case $cc_basename in 11248 KCC*) 11249 lt_prog_compiler_wl_CXX='--backend -Wl,' 11250 ;; 11251 RCC*) 11252 # Rational C++ 2.4.1 11253 lt_prog_compiler_pic_CXX='-pic' 11254 ;; 11255 cxx*) 11256 # Digital/Compaq C++ 11257 lt_prog_compiler_wl_CXX='-Wl,' 11258 # Make sure the PIC flag is empty. It appears that all Alpha 11259 # Linux and Compaq Tru64 Unix objects are PIC. 11260 lt_prog_compiler_pic_CXX= 11261 lt_prog_compiler_static_CXX='-non_shared' 11262 ;; 11263 *) 11264 ;; 11265 esac 11266 ;; 11267 psos*) 11268 ;; 11269 sco*) 11270 case $cc_basename in 11271 CC*) 11272 lt_prog_compiler_pic_CXX='-fPIC' 11273 ;; 11274 *) 11275 ;; 11276 esac 11277 ;; 11278 solaris*) 11279 case $cc_basename in 11280 CC*) 11281 # Sun C++ 4.2, 5.x and Centerline C++ 11282 lt_prog_compiler_pic_CXX='-KPIC' 11283 lt_prog_compiler_static_CXX='-Bstatic' 11284 lt_prog_compiler_wl_CXX='-Qoption ld ' 11285 ;; 11286 gcx*) 11287 # Green Hills C++ Compiler 11288 lt_prog_compiler_pic_CXX='-PIC' 11289 ;; 11290 *) 11291 ;; 11292 esac 11293 ;; 11294 sunos4*) 11295 case $cc_basename in 11296 CC*) 11297 # Sun C++ 4.x 11298 lt_prog_compiler_pic_CXX='-pic' 11299 lt_prog_compiler_static_CXX='-Bstatic' 11300 ;; 11301 lcc*) 11302 # Lucid 11303 lt_prog_compiler_pic_CXX='-pic' 11304 ;; 11305 *) 11306 ;; 11307 esac 11308 ;; 11309 tandem*) 11310 case $cc_basename in 11311 NCC*) 11312 # NonStop-UX NCC 3.20 11313 lt_prog_compiler_pic_CXX='-KPIC' 11314 ;; 11315 *) 11316 ;; 11317 esac 11318 ;; 11319 unixware*) 11320 ;; 11321 vxworks*) 11322 ;; 11323 *) 11324 lt_prog_compiler_can_build_shared_CXX=no 11325 ;; 11326 esac 11327 fi 11328 11329echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11330echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11331 11332# 11333# Check to make sure the PIC flag actually works. 11334# 11335if test -n "$lt_prog_compiler_pic_CXX"; then 11336 11337echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11338echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11339if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11340 echo $ECHO_N "(cached) $ECHO_C" >&6 11341else 11342 lt_prog_compiler_pic_works_CXX=no 11343 ac_outfile=conftest.$ac_objext 11344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11345 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11346 # Insert the option either (1) after the last *FLAGS variable, or 11347 # (2) before a word containing "conftest.", or (3) at the end. 11348 # Note that $ac_compile itself does not contain backslashes and begins 11349 # with a dollar sign (not a hyphen), so the echo should work correctly. 11350 # The option is referenced via a variable to avoid confusing sed. 11351 lt_compile=`echo "$ac_compile" | $SED \ 11352 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11354 -e 's:$: $lt_compiler_flag:'` 11355 (eval echo "\"\$as_me:11355: $lt_compile\"" >&5) 11356 (eval "$lt_compile" 2>conftest.err) 11357 ac_status=$? 11358 cat conftest.err >&5 11359 echo "$as_me:11359: \$? = $ac_status" >&5 11360 if (exit $ac_status) && test -s "$ac_outfile"; then 11361 # The compiler can only warn and ignore the option if not recognized 11362 # So say no if there are warnings other than the usual output. 11363 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11364 $SED '/^$/d' conftest.err >conftest.er2 11365 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11366 lt_prog_compiler_pic_works_CXX=yes 11367 fi 11368 fi 11369 $rm conftest* 11370 11371fi 11372echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11373echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11374 11375if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11376 case $lt_prog_compiler_pic_CXX in 11377 "" | " "*) ;; 11378 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11379 esac 11380else 11381 lt_prog_compiler_pic_CXX= 11382 lt_prog_compiler_can_build_shared_CXX=no 11383fi 11384 11385fi 11386case "$host_os" in 11387 # For platforms which do not support PIC, -DPIC is meaningless: 11388 *djgpp*) 11389 lt_prog_compiler_pic_CXX= 11390 ;; 11391 *) 11392 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11393 ;; 11394esac 11395 11396echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11397echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11398if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11399 echo $ECHO_N "(cached) $ECHO_C" >&6 11400else 11401 lt_cv_prog_compiler_c_o_CXX=no 11402 $rm -r conftest 2>/dev/null 11403 mkdir conftest 11404 cd conftest 11405 mkdir out 11406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11407 11408 lt_compiler_flag="-o out/conftest2.$ac_objext" 11409 # Insert the option either (1) after the last *FLAGS variable, or 11410 # (2) before a word containing "conftest.", or (3) at the end. 11411 # Note that $ac_compile itself does not contain backslashes and begins 11412 # with a dollar sign (not a hyphen), so the echo should work correctly. 11413 lt_compile=`echo "$ac_compile" | $SED \ 11414 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11416 -e 's:$: $lt_compiler_flag:'` 11417 (eval echo "\"\$as_me:11417: $lt_compile\"" >&5) 11418 (eval "$lt_compile" 2>out/conftest.err) 11419 ac_status=$? 11420 cat out/conftest.err >&5 11421 echo "$as_me:11421: \$? = $ac_status" >&5 11422 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11423 then 11424 # The compiler can only warn and ignore the option if not recognized 11425 # So say no if there are warnings 11426 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11427 $SED '/^$/d' out/conftest.err >out/conftest.er2 11428 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11429 lt_cv_prog_compiler_c_o_CXX=yes 11430 fi 11431 fi 11432 chmod u+w . 11433 $rm conftest* 11434 # SGI C++ compiler will create directory out/ii_files/ for 11435 # template instantiation 11436 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11437 $rm out/* && rmdir out 11438 cd .. 11439 rmdir conftest 11440 $rm conftest* 11441 11442fi 11443echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11444echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11445 11446 11447hard_links="nottested" 11448if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11449 # do not overwrite the value of need_locks provided by the user 11450 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11451echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11452 hard_links=yes 11453 $rm conftest* 11454 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11455 touch conftest.a 11456 ln conftest.a conftest.b 2>&5 || hard_links=no 11457 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11458 echo "$as_me:$LINENO: result: $hard_links" >&5 11459echo "${ECHO_T}$hard_links" >&6 11460 if test "$hard_links" = no; then 11461 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11462echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11463 need_locks=warn 11464 fi 11465else 11466 need_locks=no 11467fi 11468 11469echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11470echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11471 11472 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11473 case $host_os in 11474 aix4* | aix5*) 11475 # If we're using GNU nm, then we don't want the "-C" option. 11476 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11477 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11478 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' 11479 else 11480 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' 11481 fi 11482 ;; 11483 pw32*) 11484 export_symbols_cmds_CXX="$ltdll_cmds" 11485 ;; 11486 cygwin* | mingw*) 11487 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' 11488 ;; 11489 *) 11490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11491 ;; 11492 esac 11493 11494echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11495echo "${ECHO_T}$ld_shlibs_CXX" >&6 11496test "$ld_shlibs_CXX" = no && can_build_shared=no 11497 11498variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11499if test "$GCC" = yes; then 11500 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11501fi 11502 11503# 11504# Do we need to explicitly link libc? 11505# 11506case "x$archive_cmds_need_lc_CXX" in 11507x|xyes) 11508 # Assume -lc should be added 11509 archive_cmds_need_lc_CXX=yes 11510 11511 if test "$enable_shared" = yes && test "$GCC" = yes; then 11512 case $archive_cmds_CXX in 11513 *'~'*) 11514 # FIXME: we may have to deal with multi-command sequences. 11515 ;; 11516 '$CC '*) 11517 # Test whether the compiler implicitly links with -lc since on some 11518 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11519 # to ld, don't add -lc before -lgcc. 11520 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11521echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11522 $rm conftest* 11523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11524 11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11526 (eval $ac_compile) 2>&5 11527 ac_status=$? 11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11529 (exit $ac_status); } 2>conftest.err; then 11530 soname=conftest 11531 lib=conftest 11532 libobjs=conftest.$ac_objext 11533 deplibs= 11534 wl=$lt_prog_compiler_wl_CXX 11535 compiler_flags=-v 11536 linker_flags=-v 11537 verstring= 11538 output_objdir=. 11539 libname=conftest 11540 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11541 allow_undefined_flag_CXX= 11542 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11543 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11544 ac_status=$? 11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11546 (exit $ac_status); } 11547 then 11548 archive_cmds_need_lc_CXX=no 11549 else 11550 archive_cmds_need_lc_CXX=yes 11551 fi 11552 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11553 else 11554 cat conftest.err 1>&5 11555 fi 11556 $rm conftest* 11557 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11558echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11559 ;; 11560 esac 11561 fi 11562 ;; 11563esac 11564 11565echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11566echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11567library_names_spec= 11568libname_spec='lib$name' 11569soname_spec= 11570shrext_cmds=".so" 11571postinstall_cmds= 11572postuninstall_cmds= 11573finish_cmds= 11574finish_eval= 11575shlibpath_var= 11576shlibpath_overrides_runpath=unknown 11577version_type=none 11578dynamic_linker="$host_os ld.so" 11579sys_lib_dlsearch_path_spec="/lib /usr/lib" 11580if test "$GCC" = yes; then 11581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11582 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11583 # if the path contains ";" then we assume it to be the separator 11584 # otherwise default to the standard path separator (i.e. ":") - it is 11585 # assumed that no part of a normal pathname contains ";" but that should 11586 # okay in the real world where ";" in dirpaths is itself problematic. 11587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11588 else 11589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11590 fi 11591else 11592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11593fi 11594need_lib_prefix=unknown 11595hardcode_into_libs=no 11596 11597# when you set need_version to no, make sure it does not cause -set_version 11598# flags to be left without arguments 11599need_version=unknown 11600 11601case $host_os in 11602aix3*) 11603 version_type=linux 11604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11605 shlibpath_var=LIBPATH 11606 11607 # AIX 3 has no versioning support, so we append a major version to the name. 11608 soname_spec='${libname}${release}${shared_ext}$major' 11609 ;; 11610 11611aix4* | aix5*) 11612 version_type=linux 11613 need_lib_prefix=no 11614 need_version=no 11615 hardcode_into_libs=yes 11616 if test "$host_cpu" = ia64; then 11617 # AIX 5 supports IA64 11618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11619 shlibpath_var=LD_LIBRARY_PATH 11620 else 11621 # With GCC up to 2.95.x, collect2 would create an import file 11622 # for dependence libraries. The import file would start with 11623 # the line `#! .'. This would cause the generated library to 11624 # depend on `.', always an invalid library. This was fixed in 11625 # development snapshots of GCC prior to 3.0. 11626 case $host_os in 11627 aix4 | aix4.[01] | aix4.[01].*) 11628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11629 echo ' yes ' 11630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11631 : 11632 else 11633 can_build_shared=no 11634 fi 11635 ;; 11636 esac 11637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11638 # soname into executable. Probably we can add versioning support to 11639 # collect2, so additional links can be useful in future. 11640 if test "$aix_use_runtimelinking" = yes; then 11641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11642 # instead of lib<name>.a to let people know that these are not 11643 # typical AIX shared libraries. 11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11645 else 11646 # We preserve .a as extension for shared libraries through AIX4.2 11647 # and later when we are not doing run time linking. 11648 library_names_spec='${libname}${release}.a $libname.a' 11649 soname_spec='${libname}${release}${shared_ext}$major' 11650 fi 11651 shlibpath_var=LIBPATH 11652 fi 11653 ;; 11654 11655amigaos*) 11656 library_names_spec='$libname.ixlibrary $libname.a' 11657 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11658 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' 11659 ;; 11660 11661beos*) 11662 library_names_spec='${libname}${shared_ext}' 11663 dynamic_linker="$host_os ld.so" 11664 shlibpath_var=LIBRARY_PATH 11665 ;; 11666 11667bsdi[45]*) 11668 version_type=linux 11669 need_version=no 11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11671 soname_spec='${libname}${release}${shared_ext}$major' 11672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11673 shlibpath_var=LD_LIBRARY_PATH 11674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11676 # the default ld.so.conf also contains /usr/contrib/lib and 11677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11678 # libtool to hard-code these into programs 11679 ;; 11680 11681cygwin* | mingw* | pw32*) 11682 version_type=windows 11683 shrext_cmds=".dll" 11684 need_version=no 11685 need_lib_prefix=no 11686 11687 case $GCC,$host_os in 11688 yes,cygwin* | yes,mingw* | yes,pw32*) 11689 library_names_spec='$libname.dll.a' 11690 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11691 postinstall_cmds='base_file=`basename \${file}`~ 11692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11693 dldir=$destdir/`dirname \$dlpath`~ 11694 test -d \$dldir || mkdir -p \$dldir~ 11695 $install_prog $dir/$dlname \$dldir/$dlname' 11696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11697 dlpath=$dir/\$dldll~ 11698 $rm \$dlpath' 11699 shlibpath_overrides_runpath=yes 11700 11701 case $host_os in 11702 cygwin*) 11703 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11705 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11706 ;; 11707 mingw*) 11708 # MinGW DLLs use traditional 'lib' prefix 11709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11711 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11712 # It is most probably a Windows format PATH printed by 11713 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11714 # path with ; separators, and with drive letters. We can handle the 11715 # drive letters (cygwin fileutils understands them), so leave them, 11716 # especially as we might pass files found there to a mingw objdump, 11717 # which wouldn't understand a cygwinified path. Ahh. 11718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11719 else 11720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11721 fi 11722 ;; 11723 pw32*) 11724 # pw32 DLLs use 'pw' prefix rather than 'lib' 11725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11726 ;; 11727 esac 11728 ;; 11729 11730 linux*) 11731 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 11732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11733 supports_anon_versioning=no 11734 case `$LD -v 2>/dev/null` in 11735 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11736 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11737 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11738 *\ 2.11.*) ;; # other 2.11 versions 11739 *) supports_anon_versioning=yes ;; 11740 esac 11741 if test $supports_anon_versioning = yes; then 11742 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 11743cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11744$echo "local: *; };" >> $output_objdir/$libname.ver~ 11745 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11746 else 11747 $archive_expsym_cmds="$archive_cmds" 11748 fi 11749 else 11750 ld_shlibs=no 11751 fi 11752 ;; 11753 11754 *) 11755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11756 ;; 11757 esac 11758 dynamic_linker='Win32 ld.exe' 11759 # FIXME: first we should search . and the directory the executable is in 11760 shlibpath_var=PATH 11761 ;; 11762 11763darwin* | rhapsody*) 11764 dynamic_linker="$host_os dyld" 11765 version_type=darwin 11766 need_lib_prefix=no 11767 need_version=no 11768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11769 soname_spec='${libname}${release}${major}$shared_ext' 11770 shlibpath_overrides_runpath=yes 11771 shlibpath_var=DYLD_LIBRARY_PATH 11772 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11774 if test "$GCC" = yes; then 11775 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"` 11776 else 11777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11778 fi 11779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11780 ;; 11781 11782dgux*) 11783 version_type=linux 11784 need_lib_prefix=no 11785 need_version=no 11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11787 soname_spec='${libname}${release}${shared_ext}$major' 11788 shlibpath_var=LD_LIBRARY_PATH 11789 ;; 11790 11791freebsd1*) 11792 dynamic_linker=no 11793 ;; 11794 11795kfreebsd*-gnu) 11796 version_type=linux 11797 need_lib_prefix=no 11798 need_version=no 11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11800 soname_spec='${libname}${release}${shared_ext}$major' 11801 shlibpath_var=LD_LIBRARY_PATH 11802 shlibpath_overrides_runpath=no 11803 hardcode_into_libs=yes 11804 dynamic_linker='GNU ld.so' 11805 ;; 11806 11807freebsd* | dragonfly*) 11808 # DragonFly does not have aout. When/if they implement a new 11809 # versioning mechanism, adjust this. 11810 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11811 version_type=freebsd-$objformat 11812 case $version_type in 11813 freebsd-elf*) 11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11815 need_version=no 11816 need_lib_prefix=no 11817 ;; 11818 freebsd-*) 11819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11820 need_version=yes 11821 ;; 11822 esac 11823 shlibpath_var=LD_LIBRARY_PATH 11824 case $host_os in 11825 freebsd2*) 11826 shlibpath_overrides_runpath=yes 11827 ;; 11828 freebsd3.[01]* | freebsdelf3.[01]*) 11829 shlibpath_overrides_runpath=yes 11830 hardcode_into_libs=yes 11831 ;; 11832 *) # from 3.2 on 11833 shlibpath_overrides_runpath=no 11834 hardcode_into_libs=yes 11835 ;; 11836 esac 11837 ;; 11838 11839gnu*) 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 hardcode_into_libs=yes 11847 ;; 11848 11849hpux9* | hpux10* | hpux11*) 11850 # Give a soname corresponding to the major version so that dld.sl refuses to 11851 # link against other versions. 11852 version_type=sunos 11853 need_lib_prefix=no 11854 need_version=no 11855 case "$host_cpu" in 11856 ia64*) 11857 shrext_cmds='.so' 11858 hardcode_into_libs=yes 11859 dynamic_linker="$host_os dld.so" 11860 shlibpath_var=LD_LIBRARY_PATH 11861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11863 soname_spec='${libname}${release}${shared_ext}$major' 11864 if test "X$HPUX_IA64_MODE" = X32; then 11865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11866 else 11867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11868 fi 11869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11870 ;; 11871 hppa*64*) 11872 shrext_cmds='.sl' 11873 hardcode_into_libs=yes 11874 dynamic_linker="$host_os dld.sl" 11875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11878 soname_spec='${libname}${release}${shared_ext}$major' 11879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11881 ;; 11882 *) 11883 shrext_cmds='.sl' 11884 dynamic_linker="$host_os dld.sl" 11885 shlibpath_var=SHLIB_PATH 11886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11888 soname_spec='${libname}${release}${shared_ext}$major' 11889 ;; 11890 esac 11891 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11892 postinstall_cmds='chmod 555 $lib' 11893 ;; 11894 11895irix5* | irix6* | nonstopux*) 11896 case $host_os in 11897 nonstopux*) version_type=nonstopux ;; 11898 *) 11899 if test "$lt_cv_prog_gnu_ld" = yes; then 11900 version_type=linux 11901 else 11902 version_type=irix 11903 fi ;; 11904 esac 11905 need_lib_prefix=no 11906 need_version=no 11907 soname_spec='${libname}${release}${shared_ext}$major' 11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11909 case $host_os in 11910 irix5* | nonstopux*) 11911 libsuff= shlibsuff= 11912 ;; 11913 *) 11914 case $LD in # libtool.m4 will add one of these switches to LD 11915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11916 libsuff= shlibsuff= libmagic=32-bit;; 11917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11918 libsuff=32 shlibsuff=N32 libmagic=N32;; 11919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11920 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11921 *) libsuff= shlibsuff= libmagic=never-match;; 11922 esac 11923 ;; 11924 esac 11925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11926 shlibpath_overrides_runpath=no 11927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11929 hardcode_into_libs=yes 11930 ;; 11931 11932# No shared lib support for Linux oldld, aout, or coff. 11933linux*oldld* | linux*aout* | linux*coff*) 11934 dynamic_linker=no 11935 ;; 11936 11937# This must be Linux ELF. 11938linux*) 11939 version_type=linux 11940 need_lib_prefix=no 11941 need_version=no 11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11943 soname_spec='${libname}${release}${shared_ext}$major' 11944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11945 shlibpath_var=LD_LIBRARY_PATH 11946 shlibpath_overrides_runpath=no 11947 # This implies no fast_install, which is unacceptable. 11948 # Some rework will be needed to allow for fast_install 11949 # before this can be enabled. 11950 hardcode_into_libs=yes 11951 11952 # Append ld.so.conf contents to the search path 11953 if test -f /etc/ld.so.conf; then 11954 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11955 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11956 fi 11957 11958 case $host_cpu:$lt_cv_cc_64bit_output in 11959 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) 11960 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" 11961 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" 11962 ;; 11963 esac 11964 11965 # We used to test for /lib/ld.so.1 and disable shared libraries on 11966 # powerpc, because MkLinux only supported shared libraries with the 11967 # GNU dynamic linker. Since this was broken with cross compilers, 11968 # most powerpc-linux boxes support dynamic linking these days and 11969 # people can always --disable-shared, the test was removed, and we 11970 # assume the GNU/Linux dynamic linker is in use. 11971 dynamic_linker='GNU/Linux ld.so' 11972 11973 # Find out which ABI we are using (multilib Linux x86_64 hack). 11974 libsuff= 11975 case "$host_cpu" in 11976 x86_64*) 11977 echo '#line 11977 "configure"' > conftest.$ac_ext 11978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11979 (eval $ac_compile) 2>&5 11980 ac_status=$? 11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11982 (exit $ac_status); }; then 11983 case `/usr/bin/file conftest.$ac_objext` in 11984 *64-bit*) 11985 libsuff=64 11986 ;; 11987 esac 11988 fi 11989 rm -rf conftest* 11990 ;; 11991 *) 11992 ;; 11993 esac 11994 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 11995 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11996 ;; 11997 11998knetbsd*-gnu) 11999 version_type=linux 12000 need_lib_prefix=no 12001 need_version=no 12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12003 soname_spec='${libname}${release}${shared_ext}$major' 12004 shlibpath_var=LD_LIBRARY_PATH 12005 shlibpath_overrides_runpath=no 12006 hardcode_into_libs=yes 12007 dynamic_linker='GNU ld.so' 12008 ;; 12009 12010netbsd*) 12011 version_type=sunos 12012 need_lib_prefix=no 12013 need_version=no 12014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12017 dynamic_linker='NetBSD (a.out) ld.so' 12018 else 12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12020 soname_spec='${libname}${release}${shared_ext}$major' 12021 dynamic_linker='NetBSD ld.elf_so' 12022 fi 12023 shlibpath_var=LD_LIBRARY_PATH 12024 shlibpath_overrides_runpath=yes 12025 hardcode_into_libs=yes 12026 ;; 12027 12028newsos6) 12029 version_type=linux 12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12031 shlibpath_var=LD_LIBRARY_PATH 12032 shlibpath_overrides_runpath=yes 12033 ;; 12034 12035nto-qnx*) 12036 version_type=linux 12037 need_lib_prefix=no 12038 need_version=no 12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12040 soname_spec='${libname}${release}${shared_ext}$major' 12041 shlibpath_var=LD_LIBRARY_PATH 12042 shlibpath_overrides_runpath=yes 12043 ;; 12044 12045openbsd*) 12046 version_type=sunos 12047 need_lib_prefix=no 12048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12049 case $host_os in 12050 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12051 *) need_version=no ;; 12052 esac 12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12055 shlibpath_var=LD_LIBRARY_PATH 12056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12057 case $host_os in 12058 openbsd2.[89] | openbsd2.[89].*) 12059 shlibpath_overrides_runpath=no 12060 ;; 12061 *) 12062 shlibpath_overrides_runpath=yes 12063 ;; 12064 esac 12065 else 12066 shlibpath_overrides_runpath=yes 12067 fi 12068 ;; 12069 12070os2*) 12071 libname_spec='$name' 12072 shrext_cmds=".dll" 12073 need_lib_prefix=no 12074 library_names_spec='$libname${shared_ext} $libname.a' 12075 dynamic_linker='OS/2 ld.exe' 12076 shlibpath_var=LIBPATH 12077 ;; 12078 12079osf3* | osf4* | osf5*) 12080 version_type=osf 12081 need_lib_prefix=no 12082 need_version=no 12083 soname_spec='${libname}${release}${shared_ext}$major' 12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12085 shlibpath_var=LD_LIBRARY_PATH 12086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12088 ;; 12089 12090sco3.2v5*) 12091 version_type=osf 12092 soname_spec='${libname}${release}${shared_ext}$major' 12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12094 shlibpath_var=LD_LIBRARY_PATH 12095 ;; 12096 12097solaris*) 12098 version_type=linux 12099 need_lib_prefix=no 12100 need_version=no 12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12102 soname_spec='${libname}${release}${shared_ext}$major' 12103 shlibpath_var=LD_LIBRARY_PATH 12104 shlibpath_overrides_runpath=yes 12105 hardcode_into_libs=yes 12106 # ldd complains unless libraries are executable 12107 postinstall_cmds='chmod +x $lib' 12108 ;; 12109 12110sunos4*) 12111 version_type=sunos 12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12113 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12114 shlibpath_var=LD_LIBRARY_PATH 12115 shlibpath_overrides_runpath=yes 12116 if test "$with_gnu_ld" = yes; then 12117 need_lib_prefix=no 12118 fi 12119 need_version=yes 12120 ;; 12121 12122sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12123 version_type=linux 12124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12125 soname_spec='${libname}${release}${shared_ext}$major' 12126 shlibpath_var=LD_LIBRARY_PATH 12127 case $host_vendor in 12128 sni) 12129 shlibpath_overrides_runpath=no 12130 need_lib_prefix=no 12131 export_dynamic_flag_spec='${wl}-Blargedynsym' 12132 runpath_var=LD_RUN_PATH 12133 ;; 12134 siemens) 12135 need_lib_prefix=no 12136 ;; 12137 motorola) 12138 need_lib_prefix=no 12139 need_version=no 12140 shlibpath_overrides_runpath=no 12141 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12142 ;; 12143 esac 12144 ;; 12145 12146sysv4*MP*) 12147 if test -d /usr/nec ;then 12148 version_type=linux 12149 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12150 soname_spec='$libname${shared_ext}.$major' 12151 shlibpath_var=LD_LIBRARY_PATH 12152 fi 12153 ;; 12154 12155uts4*) 12156 version_type=linux 12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12158 soname_spec='${libname}${release}${shared_ext}$major' 12159 shlibpath_var=LD_LIBRARY_PATH 12160 ;; 12161 12162*) 12163 dynamic_linker=no 12164 ;; 12165esac 12166echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12167echo "${ECHO_T}$dynamic_linker" >&6 12168test "$dynamic_linker" = no && can_build_shared=no 12169 12170echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12171echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12172hardcode_action_CXX= 12173if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12174 test -n "$runpath_var_CXX" || \ 12175 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12176 12177 # We can hardcode non-existant directories. 12178 if test "$hardcode_direct_CXX" != no && 12179 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12180 # have to relink, otherwise we might link with an installed library 12181 # when we should be linking with a yet-to-be-installed one 12182 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12183 test "$hardcode_minus_L_CXX" != no; then 12184 # Linking always hardcodes the temporary library directory. 12185 hardcode_action_CXX=relink 12186 else 12187 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12188 hardcode_action_CXX=immediate 12189 fi 12190else 12191 # We cannot hardcode anything, or else we can only hardcode existing 12192 # directories. 12193 hardcode_action_CXX=unsupported 12194fi 12195echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12196echo "${ECHO_T}$hardcode_action_CXX" >&6 12197 12198if test "$hardcode_action_CXX" = relink; then 12199 # Fast installation is not supported 12200 enable_fast_install=no 12201elif test "$shlibpath_overrides_runpath" = yes || 12202 test "$enable_shared" = no; then 12203 # Fast installation is not necessary 12204 enable_fast_install=needless 12205fi 12206 12207striplib= 12208old_striplib= 12209echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12210echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12211if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12213 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12214 echo "$as_me:$LINENO: result: yes" >&5 12215echo "${ECHO_T}yes" >&6 12216else 12217# FIXME - insert some real tests, host_os isn't really good enough 12218 case $host_os in 12219 darwin*) 12220 if test -n "$STRIP" ; then 12221 striplib="$STRIP -x" 12222 echo "$as_me:$LINENO: result: yes" >&5 12223echo "${ECHO_T}yes" >&6 12224 else 12225 echo "$as_me:$LINENO: result: no" >&5 12226echo "${ECHO_T}no" >&6 12227fi 12228 ;; 12229 *) 12230 echo "$as_me:$LINENO: result: no" >&5 12231echo "${ECHO_T}no" >&6 12232 ;; 12233 esac 12234fi 12235 12236if test "x$enable_dlopen" != xyes; then 12237 enable_dlopen=unknown 12238 enable_dlopen_self=unknown 12239 enable_dlopen_self_static=unknown 12240else 12241 lt_cv_dlopen=no 12242 lt_cv_dlopen_libs= 12243 12244 case $host_os in 12245 beos*) 12246 lt_cv_dlopen="load_add_on" 12247 lt_cv_dlopen_libs= 12248 lt_cv_dlopen_self=yes 12249 ;; 12250 12251 mingw* | pw32*) 12252 lt_cv_dlopen="LoadLibrary" 12253 lt_cv_dlopen_libs= 12254 ;; 12255 12256 cygwin*) 12257 lt_cv_dlopen="dlopen" 12258 lt_cv_dlopen_libs= 12259 ;; 12260 12261 darwin*) 12262 # if libdl is installed we need to link against it 12263 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12264echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12265if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12266 echo $ECHO_N "(cached) $ECHO_C" >&6 12267else 12268 ac_check_lib_save_LIBS=$LIBS 12269LIBS="-ldl $LIBS" 12270cat >conftest.$ac_ext <<_ACEOF 12271/* confdefs.h. */ 12272_ACEOF 12273cat confdefs.h >>conftest.$ac_ext 12274cat >>conftest.$ac_ext <<_ACEOF 12275/* end confdefs.h. */ 12276 12277/* Override any gcc2 internal prototype to avoid an error. */ 12278#ifdef __cplusplus 12279extern "C" 12280#endif 12281/* We use char because int might match the return type of a gcc2 12282 builtin and then its argument prototype would still apply. */ 12283char dlopen (); 12284int 12285main () 12286{ 12287dlopen (); 12288 ; 12289 return 0; 12290} 12291_ACEOF 12292rm -f conftest.$ac_objext conftest$ac_exeext 12293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12294 (eval $ac_link) 2>conftest.er1 12295 ac_status=$? 12296 grep -v '^ *+' conftest.er1 >conftest.err 12297 rm -f conftest.er1 12298 cat conftest.err >&5 12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12300 (exit $ac_status); } && 12301 { ac_try='test -z "$ac_cxx_werror_flag" 12302 || test ! -s conftest.err' 12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12304 (eval $ac_try) 2>&5 12305 ac_status=$? 12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12307 (exit $ac_status); }; } && 12308 { ac_try='test -s conftest$ac_exeext' 12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12310 (eval $ac_try) 2>&5 12311 ac_status=$? 12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12313 (exit $ac_status); }; }; then 12314 ac_cv_lib_dl_dlopen=yes 12315else 12316 echo "$as_me: failed program was:" >&5 12317sed 's/^/| /' conftest.$ac_ext >&5 12318 12319ac_cv_lib_dl_dlopen=no 12320fi 12321rm -f conftest.err conftest.$ac_objext \ 12322 conftest$ac_exeext conftest.$ac_ext 12323LIBS=$ac_check_lib_save_LIBS 12324fi 12325echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12326echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12327if test $ac_cv_lib_dl_dlopen = yes; then 12328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12329else 12330 12331 lt_cv_dlopen="dyld" 12332 lt_cv_dlopen_libs= 12333 lt_cv_dlopen_self=yes 12334 12335fi 12336 12337 ;; 12338 12339 *) 12340 echo "$as_me:$LINENO: checking for shl_load" >&5 12341echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12342if test "${ac_cv_func_shl_load+set}" = set; then 12343 echo $ECHO_N "(cached) $ECHO_C" >&6 12344else 12345 cat >conftest.$ac_ext <<_ACEOF 12346/* confdefs.h. */ 12347_ACEOF 12348cat confdefs.h >>conftest.$ac_ext 12349cat >>conftest.$ac_ext <<_ACEOF 12350/* end confdefs.h. */ 12351/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12352 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12353#define shl_load innocuous_shl_load 12354 12355/* System header to define __stub macros and hopefully few prototypes, 12356 which can conflict with char shl_load (); below. 12357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12358 <limits.h> exists even on freestanding compilers. */ 12359 12360#ifdef __STDC__ 12361# include <limits.h> 12362#else 12363# include <assert.h> 12364#endif 12365 12366#undef shl_load 12367 12368/* Override any gcc2 internal prototype to avoid an error. */ 12369#ifdef __cplusplus 12370extern "C" 12371{ 12372#endif 12373/* We use char because int might match the return type of a gcc2 12374 builtin and then its argument prototype would still apply. */ 12375char shl_load (); 12376/* The GNU C library defines this for functions which it implements 12377 to always fail with ENOSYS. Some functions are actually named 12378 something starting with __ and the normal name is an alias. */ 12379#if defined (__stub_shl_load) || defined (__stub___shl_load) 12380choke me 12381#else 12382char (*f) () = shl_load; 12383#endif 12384#ifdef __cplusplus 12385} 12386#endif 12387 12388int 12389main () 12390{ 12391return f != shl_load; 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396rm -f conftest.$ac_objext conftest$ac_exeext 12397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12398 (eval $ac_link) 2>conftest.er1 12399 ac_status=$? 12400 grep -v '^ *+' conftest.er1 >conftest.err 12401 rm -f conftest.er1 12402 cat conftest.err >&5 12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12404 (exit $ac_status); } && 12405 { ac_try='test -z "$ac_cxx_werror_flag" 12406 || test ! -s conftest.err' 12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12408 (eval $ac_try) 2>&5 12409 ac_status=$? 12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12411 (exit $ac_status); }; } && 12412 { ac_try='test -s conftest$ac_exeext' 12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12414 (eval $ac_try) 2>&5 12415 ac_status=$? 12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12417 (exit $ac_status); }; }; then 12418 ac_cv_func_shl_load=yes 12419else 12420 echo "$as_me: failed program was:" >&5 12421sed 's/^/| /' conftest.$ac_ext >&5 12422 12423ac_cv_func_shl_load=no 12424fi 12425rm -f conftest.err conftest.$ac_objext \ 12426 conftest$ac_exeext conftest.$ac_ext 12427fi 12428echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12429echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12430if test $ac_cv_func_shl_load = yes; then 12431 lt_cv_dlopen="shl_load" 12432else 12433 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12434echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12435if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12436 echo $ECHO_N "(cached) $ECHO_C" >&6 12437else 12438 ac_check_lib_save_LIBS=$LIBS 12439LIBS="-ldld $LIBS" 12440cat >conftest.$ac_ext <<_ACEOF 12441/* confdefs.h. */ 12442_ACEOF 12443cat confdefs.h >>conftest.$ac_ext 12444cat >>conftest.$ac_ext <<_ACEOF 12445/* end confdefs.h. */ 12446 12447/* Override any gcc2 internal prototype to avoid an error. */ 12448#ifdef __cplusplus 12449extern "C" 12450#endif 12451/* We use char because int might match the return type of a gcc2 12452 builtin and then its argument prototype would still apply. */ 12453char shl_load (); 12454int 12455main () 12456{ 12457shl_load (); 12458 ; 12459 return 0; 12460} 12461_ACEOF 12462rm -f conftest.$ac_objext conftest$ac_exeext 12463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12464 (eval $ac_link) 2>conftest.er1 12465 ac_status=$? 12466 grep -v '^ *+' conftest.er1 >conftest.err 12467 rm -f conftest.er1 12468 cat conftest.err >&5 12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12470 (exit $ac_status); } && 12471 { ac_try='test -z "$ac_cxx_werror_flag" 12472 || test ! -s conftest.err' 12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12474 (eval $ac_try) 2>&5 12475 ac_status=$? 12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12477 (exit $ac_status); }; } && 12478 { ac_try='test -s conftest$ac_exeext' 12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12480 (eval $ac_try) 2>&5 12481 ac_status=$? 12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12483 (exit $ac_status); }; }; then 12484 ac_cv_lib_dld_shl_load=yes 12485else 12486 echo "$as_me: failed program was:" >&5 12487sed 's/^/| /' conftest.$ac_ext >&5 12488 12489ac_cv_lib_dld_shl_load=no 12490fi 12491rm -f conftest.err conftest.$ac_objext \ 12492 conftest$ac_exeext conftest.$ac_ext 12493LIBS=$ac_check_lib_save_LIBS 12494fi 12495echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12496echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12497if test $ac_cv_lib_dld_shl_load = yes; then 12498 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12499else 12500 echo "$as_me:$LINENO: checking for dlopen" >&5 12501echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12502if test "${ac_cv_func_dlopen+set}" = set; then 12503 echo $ECHO_N "(cached) $ECHO_C" >&6 12504else 12505 cat >conftest.$ac_ext <<_ACEOF 12506/* confdefs.h. */ 12507_ACEOF 12508cat confdefs.h >>conftest.$ac_ext 12509cat >>conftest.$ac_ext <<_ACEOF 12510/* end confdefs.h. */ 12511/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12512 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12513#define dlopen innocuous_dlopen 12514 12515/* System header to define __stub macros and hopefully few prototypes, 12516 which can conflict with char dlopen (); below. 12517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12518 <limits.h> exists even on freestanding compilers. */ 12519 12520#ifdef __STDC__ 12521# include <limits.h> 12522#else 12523# include <assert.h> 12524#endif 12525 12526#undef dlopen 12527 12528/* Override any gcc2 internal prototype to avoid an error. */ 12529#ifdef __cplusplus 12530extern "C" 12531{ 12532#endif 12533/* We use char because int might match the return type of a gcc2 12534 builtin and then its argument prototype would still apply. */ 12535char dlopen (); 12536/* The GNU C library defines this for functions which it implements 12537 to always fail with ENOSYS. Some functions are actually named 12538 something starting with __ and the normal name is an alias. */ 12539#if defined (__stub_dlopen) || defined (__stub___dlopen) 12540choke me 12541#else 12542char (*f) () = dlopen; 12543#endif 12544#ifdef __cplusplus 12545} 12546#endif 12547 12548int 12549main () 12550{ 12551return f != dlopen; 12552 ; 12553 return 0; 12554} 12555_ACEOF 12556rm -f conftest.$ac_objext conftest$ac_exeext 12557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12558 (eval $ac_link) 2>conftest.er1 12559 ac_status=$? 12560 grep -v '^ *+' conftest.er1 >conftest.err 12561 rm -f conftest.er1 12562 cat conftest.err >&5 12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12564 (exit $ac_status); } && 12565 { ac_try='test -z "$ac_cxx_werror_flag" 12566 || test ! -s conftest.err' 12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12568 (eval $ac_try) 2>&5 12569 ac_status=$? 12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12571 (exit $ac_status); }; } && 12572 { ac_try='test -s conftest$ac_exeext' 12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12574 (eval $ac_try) 2>&5 12575 ac_status=$? 12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12577 (exit $ac_status); }; }; then 12578 ac_cv_func_dlopen=yes 12579else 12580 echo "$as_me: failed program was:" >&5 12581sed 's/^/| /' conftest.$ac_ext >&5 12582 12583ac_cv_func_dlopen=no 12584fi 12585rm -f conftest.err conftest.$ac_objext \ 12586 conftest$ac_exeext conftest.$ac_ext 12587fi 12588echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12589echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12590if test $ac_cv_func_dlopen = yes; then 12591 lt_cv_dlopen="dlopen" 12592else 12593 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12594echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12595if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12596 echo $ECHO_N "(cached) $ECHO_C" >&6 12597else 12598 ac_check_lib_save_LIBS=$LIBS 12599LIBS="-ldl $LIBS" 12600cat >conftest.$ac_ext <<_ACEOF 12601/* confdefs.h. */ 12602_ACEOF 12603cat confdefs.h >>conftest.$ac_ext 12604cat >>conftest.$ac_ext <<_ACEOF 12605/* end confdefs.h. */ 12606 12607/* Override any gcc2 internal prototype to avoid an error. */ 12608#ifdef __cplusplus 12609extern "C" 12610#endif 12611/* We use char because int might match the return type of a gcc2 12612 builtin and then its argument prototype would still apply. */ 12613char dlopen (); 12614int 12615main () 12616{ 12617dlopen (); 12618 ; 12619 return 0; 12620} 12621_ACEOF 12622rm -f conftest.$ac_objext conftest$ac_exeext 12623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12624 (eval $ac_link) 2>conftest.er1 12625 ac_status=$? 12626 grep -v '^ *+' conftest.er1 >conftest.err 12627 rm -f conftest.er1 12628 cat conftest.err >&5 12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12630 (exit $ac_status); } && 12631 { ac_try='test -z "$ac_cxx_werror_flag" 12632 || test ! -s conftest.err' 12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12634 (eval $ac_try) 2>&5 12635 ac_status=$? 12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12637 (exit $ac_status); }; } && 12638 { ac_try='test -s conftest$ac_exeext' 12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12640 (eval $ac_try) 2>&5 12641 ac_status=$? 12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12643 (exit $ac_status); }; }; then 12644 ac_cv_lib_dl_dlopen=yes 12645else 12646 echo "$as_me: failed program was:" >&5 12647sed 's/^/| /' conftest.$ac_ext >&5 12648 12649ac_cv_lib_dl_dlopen=no 12650fi 12651rm -f conftest.err conftest.$ac_objext \ 12652 conftest$ac_exeext conftest.$ac_ext 12653LIBS=$ac_check_lib_save_LIBS 12654fi 12655echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12656echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12657if test $ac_cv_lib_dl_dlopen = yes; then 12658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12659else 12660 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12661echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12662if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12663 echo $ECHO_N "(cached) $ECHO_C" >&6 12664else 12665 ac_check_lib_save_LIBS=$LIBS 12666LIBS="-lsvld $LIBS" 12667cat >conftest.$ac_ext <<_ACEOF 12668/* confdefs.h. */ 12669_ACEOF 12670cat confdefs.h >>conftest.$ac_ext 12671cat >>conftest.$ac_ext <<_ACEOF 12672/* end confdefs.h. */ 12673 12674/* Override any gcc2 internal prototype to avoid an error. */ 12675#ifdef __cplusplus 12676extern "C" 12677#endif 12678/* We use char because int might match the return type of a gcc2 12679 builtin and then its argument prototype would still apply. */ 12680char dlopen (); 12681int 12682main () 12683{ 12684dlopen (); 12685 ; 12686 return 0; 12687} 12688_ACEOF 12689rm -f conftest.$ac_objext conftest$ac_exeext 12690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12691 (eval $ac_link) 2>conftest.er1 12692 ac_status=$? 12693 grep -v '^ *+' conftest.er1 >conftest.err 12694 rm -f conftest.er1 12695 cat conftest.err >&5 12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12697 (exit $ac_status); } && 12698 { ac_try='test -z "$ac_cxx_werror_flag" 12699 || test ! -s conftest.err' 12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12701 (eval $ac_try) 2>&5 12702 ac_status=$? 12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12704 (exit $ac_status); }; } && 12705 { ac_try='test -s conftest$ac_exeext' 12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12707 (eval $ac_try) 2>&5 12708 ac_status=$? 12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12710 (exit $ac_status); }; }; then 12711 ac_cv_lib_svld_dlopen=yes 12712else 12713 echo "$as_me: failed program was:" >&5 12714sed 's/^/| /' conftest.$ac_ext >&5 12715 12716ac_cv_lib_svld_dlopen=no 12717fi 12718rm -f conftest.err conftest.$ac_objext \ 12719 conftest$ac_exeext conftest.$ac_ext 12720LIBS=$ac_check_lib_save_LIBS 12721fi 12722echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12723echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12724if test $ac_cv_lib_svld_dlopen = yes; then 12725 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12726else 12727 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12728echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12729if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12730 echo $ECHO_N "(cached) $ECHO_C" >&6 12731else 12732 ac_check_lib_save_LIBS=$LIBS 12733LIBS="-ldld $LIBS" 12734cat >conftest.$ac_ext <<_ACEOF 12735/* confdefs.h. */ 12736_ACEOF 12737cat confdefs.h >>conftest.$ac_ext 12738cat >>conftest.$ac_ext <<_ACEOF 12739/* end confdefs.h. */ 12740 12741/* Override any gcc2 internal prototype to avoid an error. */ 12742#ifdef __cplusplus 12743extern "C" 12744#endif 12745/* We use char because int might match the return type of a gcc2 12746 builtin and then its argument prototype would still apply. */ 12747char dld_link (); 12748int 12749main () 12750{ 12751dld_link (); 12752 ; 12753 return 0; 12754} 12755_ACEOF 12756rm -f conftest.$ac_objext conftest$ac_exeext 12757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12758 (eval $ac_link) 2>conftest.er1 12759 ac_status=$? 12760 grep -v '^ *+' conftest.er1 >conftest.err 12761 rm -f conftest.er1 12762 cat conftest.err >&5 12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12764 (exit $ac_status); } && 12765 { ac_try='test -z "$ac_cxx_werror_flag" 12766 || test ! -s conftest.err' 12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12768 (eval $ac_try) 2>&5 12769 ac_status=$? 12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12771 (exit $ac_status); }; } && 12772 { ac_try='test -s conftest$ac_exeext' 12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12774 (eval $ac_try) 2>&5 12775 ac_status=$? 12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12777 (exit $ac_status); }; }; then 12778 ac_cv_lib_dld_dld_link=yes 12779else 12780 echo "$as_me: failed program was:" >&5 12781sed 's/^/| /' conftest.$ac_ext >&5 12782 12783ac_cv_lib_dld_dld_link=no 12784fi 12785rm -f conftest.err conftest.$ac_objext \ 12786 conftest$ac_exeext conftest.$ac_ext 12787LIBS=$ac_check_lib_save_LIBS 12788fi 12789echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12790echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12791if test $ac_cv_lib_dld_dld_link = yes; then 12792 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12793fi 12794 12795 12796fi 12797 12798 12799fi 12800 12801 12802fi 12803 12804 12805fi 12806 12807 12808fi 12809 12810 ;; 12811 esac 12812 12813 if test "x$lt_cv_dlopen" != xno; then 12814 enable_dlopen=yes 12815 else 12816 enable_dlopen=no 12817 fi 12818 12819 case $lt_cv_dlopen in 12820 dlopen) 12821 save_CPPFLAGS="$CPPFLAGS" 12822 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12823 12824 save_LDFLAGS="$LDFLAGS" 12825 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12826 12827 save_LIBS="$LIBS" 12828 LIBS="$lt_cv_dlopen_libs $LIBS" 12829 12830 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12831echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12832if test "${lt_cv_dlopen_self+set}" = set; then 12833 echo $ECHO_N "(cached) $ECHO_C" >&6 12834else 12835 if test "$cross_compiling" = yes; then : 12836 lt_cv_dlopen_self=cross 12837else 12838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12839 lt_status=$lt_dlunknown 12840 cat > conftest.$ac_ext <<EOF 12841#line 12841 "configure" 12842#include "confdefs.h" 12843 12844#if HAVE_DLFCN_H 12845#include <dlfcn.h> 12846#endif 12847 12848#include <stdio.h> 12849 12850#ifdef RTLD_GLOBAL 12851# define LT_DLGLOBAL RTLD_GLOBAL 12852#else 12853# ifdef DL_GLOBAL 12854# define LT_DLGLOBAL DL_GLOBAL 12855# else 12856# define LT_DLGLOBAL 0 12857# endif 12858#endif 12859 12860/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12861 find out it does not work in some platform. */ 12862#ifndef LT_DLLAZY_OR_NOW 12863# ifdef RTLD_LAZY 12864# define LT_DLLAZY_OR_NOW RTLD_LAZY 12865# else 12866# ifdef DL_LAZY 12867# define LT_DLLAZY_OR_NOW DL_LAZY 12868# else 12869# ifdef RTLD_NOW 12870# define LT_DLLAZY_OR_NOW RTLD_NOW 12871# else 12872# ifdef DL_NOW 12873# define LT_DLLAZY_OR_NOW DL_NOW 12874# else 12875# define LT_DLLAZY_OR_NOW 0 12876# endif 12877# endif 12878# endif 12879# endif 12880#endif 12881 12882#ifdef __cplusplus 12883extern "C" void exit (int); 12884#endif 12885 12886void fnord() { int i=42;} 12887int main () 12888{ 12889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12890 int status = $lt_dlunknown; 12891 12892 if (self) 12893 { 12894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12896 /* dlclose (self); */ 12897 } 12898 12899 exit (status); 12900} 12901EOF 12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12903 (eval $ac_link) 2>&5 12904 ac_status=$? 12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12906 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12907 (./conftest; exit; ) 2>/dev/null 12908 lt_status=$? 12909 case x$lt_status in 12910 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12911 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12912 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12913 esac 12914 else : 12915 # compilation failed 12916 lt_cv_dlopen_self=no 12917 fi 12918fi 12919rm -fr conftest* 12920 12921 12922fi 12923echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12924echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12925 12926 if test "x$lt_cv_dlopen_self" = xyes; then 12927 LDFLAGS="$LDFLAGS $link_static_flag" 12928 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12929echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12930if test "${lt_cv_dlopen_self_static+set}" = set; then 12931 echo $ECHO_N "(cached) $ECHO_C" >&6 12932else 12933 if test "$cross_compiling" = yes; then : 12934 lt_cv_dlopen_self_static=cross 12935else 12936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12937 lt_status=$lt_dlunknown 12938 cat > conftest.$ac_ext <<EOF 12939#line 12939 "configure" 12940#include "confdefs.h" 12941 12942#if HAVE_DLFCN_H 12943#include <dlfcn.h> 12944#endif 12945 12946#include <stdio.h> 12947 12948#ifdef RTLD_GLOBAL 12949# define LT_DLGLOBAL RTLD_GLOBAL 12950#else 12951# ifdef DL_GLOBAL 12952# define LT_DLGLOBAL DL_GLOBAL 12953# else 12954# define LT_DLGLOBAL 0 12955# endif 12956#endif 12957 12958/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12959 find out it does not work in some platform. */ 12960#ifndef LT_DLLAZY_OR_NOW 12961# ifdef RTLD_LAZY 12962# define LT_DLLAZY_OR_NOW RTLD_LAZY 12963# else 12964# ifdef DL_LAZY 12965# define LT_DLLAZY_OR_NOW DL_LAZY 12966# else 12967# ifdef RTLD_NOW 12968# define LT_DLLAZY_OR_NOW RTLD_NOW 12969# else 12970# ifdef DL_NOW 12971# define LT_DLLAZY_OR_NOW DL_NOW 12972# else 12973# define LT_DLLAZY_OR_NOW 0 12974# endif 12975# endif 12976# endif 12977# endif 12978#endif 12979 12980#ifdef __cplusplus 12981extern "C" void exit (int); 12982#endif 12983 12984void fnord() { int i=42;} 12985int main () 12986{ 12987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12988 int status = $lt_dlunknown; 12989 12990 if (self) 12991 { 12992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12993 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12994 /* dlclose (self); */ 12995 } 12996 12997 exit (status); 12998} 12999EOF 13000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13001 (eval $ac_link) 2>&5 13002 ac_status=$? 13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13004 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13005 (./conftest; exit; ) 2>/dev/null 13006 lt_status=$? 13007 case x$lt_status in 13008 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13009 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13010 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13011 esac 13012 else : 13013 # compilation failed 13014 lt_cv_dlopen_self_static=no 13015 fi 13016fi 13017rm -fr conftest* 13018 13019 13020fi 13021echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13022echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13023 fi 13024 13025 CPPFLAGS="$save_CPPFLAGS" 13026 LDFLAGS="$save_LDFLAGS" 13027 LIBS="$save_LIBS" 13028 ;; 13029 esac 13030 13031 case $lt_cv_dlopen_self in 13032 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13033 *) enable_dlopen_self=unknown ;; 13034 esac 13035 13036 case $lt_cv_dlopen_self_static in 13037 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13038 *) enable_dlopen_self_static=unknown ;; 13039 esac 13040fi 13041 13042 13043# The else clause should only fire when bootstrapping the 13044# libtool distribution, otherwise you forgot to ship ltmain.sh 13045# with your package, and you will get complaints that there are 13046# no rules to generate ltmain.sh. 13047if test -f "$ltmain"; then 13048 # See if we are running on zsh, and set the options which allow our commands through 13049 # without removal of \ escapes. 13050 if test -n "${ZSH_VERSION+set}" ; then 13051 setopt NO_GLOB_SUBST 13052 fi 13053 # Now quote all the things that may contain metacharacters while being 13054 # careful not to overquote the AC_SUBSTed values. We take copies of the 13055 # variables and quote the copies for generation of the libtool script. 13056 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13057 SED SHELL STRIP \ 13058 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13059 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13060 deplibs_check_method reload_flag reload_cmds need_locks \ 13061 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13062 lt_cv_sys_global_symbol_to_c_name_address \ 13063 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13064 old_postinstall_cmds old_postuninstall_cmds \ 13065 compiler_CXX \ 13066 CC_CXX \ 13067 LD_CXX \ 13068 lt_prog_compiler_wl_CXX \ 13069 lt_prog_compiler_pic_CXX \ 13070 lt_prog_compiler_static_CXX \ 13071 lt_prog_compiler_no_builtin_flag_CXX \ 13072 export_dynamic_flag_spec_CXX \ 13073 thread_safe_flag_spec_CXX \ 13074 whole_archive_flag_spec_CXX \ 13075 enable_shared_with_static_runtimes_CXX \ 13076 old_archive_cmds_CXX \ 13077 old_archive_from_new_cmds_CXX \ 13078 predep_objects_CXX \ 13079 postdep_objects_CXX \ 13080 predeps_CXX \ 13081 postdeps_CXX \ 13082 compiler_lib_search_path_CXX \ 13083 archive_cmds_CXX \ 13084 archive_expsym_cmds_CXX \ 13085 postinstall_cmds_CXX \ 13086 postuninstall_cmds_CXX \ 13087 old_archive_from_expsyms_cmds_CXX \ 13088 allow_undefined_flag_CXX \ 13089 no_undefined_flag_CXX \ 13090 export_symbols_cmds_CXX \ 13091 hardcode_libdir_flag_spec_CXX \ 13092 hardcode_libdir_flag_spec_ld_CXX \ 13093 hardcode_libdir_separator_CXX \ 13094 hardcode_automatic_CXX \ 13095 module_cmds_CXX \ 13096 module_expsym_cmds_CXX \ 13097 lt_cv_prog_compiler_c_o_CXX \ 13098 exclude_expsyms_CXX \ 13099 include_expsyms_CXX; do 13100 13101 case $var in 13102 old_archive_cmds_CXX | \ 13103 old_archive_from_new_cmds_CXX | \ 13104 archive_cmds_CXX | \ 13105 archive_expsym_cmds_CXX | \ 13106 module_cmds_CXX | \ 13107 module_expsym_cmds_CXX | \ 13108 old_archive_from_expsyms_cmds_CXX | \ 13109 export_symbols_cmds_CXX | \ 13110 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13111 postinstall_cmds | postuninstall_cmds | \ 13112 old_postinstall_cmds | old_postuninstall_cmds | \ 13113 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13114 # Double-quote double-evaled strings. 13115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13116 ;; 13117 *) 13118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13119 ;; 13120 esac 13121 done 13122 13123 case $lt_echo in 13124 *'\$0 --fallback-echo"') 13125 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13126 ;; 13127 esac 13128 13129cfgfile="$ofile" 13130 13131 cat <<__EOF__ >> "$cfgfile" 13132# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13133 13134# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13135 13136# Shell to use when invoking shell scripts. 13137SHELL=$lt_SHELL 13138 13139# Whether or not to build shared libraries. 13140build_libtool_libs=$enable_shared 13141 13142# Whether or not to build static libraries. 13143build_old_libs=$enable_static 13144 13145# Whether or not to add -lc for building shared libraries. 13146build_libtool_need_lc=$archive_cmds_need_lc_CXX 13147 13148# Whether or not to disallow shared libs when runtime libs are static 13149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13150 13151# Whether or not to optimize for fast installation. 13152fast_install=$enable_fast_install 13153 13154# The host system. 13155host_alias=$host_alias 13156host=$host 13157host_os=$host_os 13158 13159# The build system. 13160build_alias=$build_alias 13161build=$build 13162build_os=$build_os 13163 13164# An echo program that does not interpret backslashes. 13165echo=$lt_echo 13166 13167# The archiver. 13168AR=$lt_AR 13169AR_FLAGS=$lt_AR_FLAGS 13170 13171# A C compiler. 13172LTCC=$lt_LTCC 13173 13174# A language-specific compiler. 13175CC=$lt_compiler_CXX 13176 13177# Is the compiler the GNU C compiler? 13178with_gcc=$GCC_CXX 13179 13180# An ERE matcher. 13181EGREP=$lt_EGREP 13182 13183# The linker used to build libraries. 13184LD=$lt_LD_CXX 13185 13186# Whether we need hard or soft links. 13187LN_S=$lt_LN_S 13188 13189# A BSD-compatible nm program. 13190NM=$lt_NM 13191 13192# A symbol stripping program 13193STRIP=$lt_STRIP 13194 13195# Used to examine libraries when file_magic_cmd begins "file" 13196MAGIC_CMD=$MAGIC_CMD 13197 13198# Used on cygwin: DLL creation program. 13199DLLTOOL="$DLLTOOL" 13200 13201# Used on cygwin: object dumper. 13202OBJDUMP="$OBJDUMP" 13203 13204# Used on cygwin: assembler. 13205AS="$AS" 13206 13207# The name of the directory that contains temporary libtool files. 13208objdir=$objdir 13209 13210# How to create reloadable object files. 13211reload_flag=$lt_reload_flag 13212reload_cmds=$lt_reload_cmds 13213 13214# How to pass a linker flag through the compiler. 13215wl=$lt_lt_prog_compiler_wl_CXX 13216 13217# Object file suffix (normally "o"). 13218objext="$ac_objext" 13219 13220# Old archive suffix (normally "a"). 13221libext="$libext" 13222 13223# Shared library suffix (normally ".so"). 13224shrext_cmds='$shrext_cmds' 13225 13226# Executable file suffix (normally ""). 13227exeext="$exeext" 13228 13229# Additional compiler flags for building library objects. 13230pic_flag=$lt_lt_prog_compiler_pic_CXX 13231pic_mode=$pic_mode 13232 13233# What is the maximum length of a command? 13234max_cmd_len=$lt_cv_sys_max_cmd_len 13235 13236# Does compiler simultaneously support -c and -o options? 13237compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13238 13239# Must we lock files when doing compilation? 13240need_locks=$lt_need_locks 13241 13242# Do we need the lib prefix for modules? 13243need_lib_prefix=$need_lib_prefix 13244 13245# Do we need a version for libraries? 13246need_version=$need_version 13247 13248# Whether dlopen is supported. 13249dlopen_support=$enable_dlopen 13250 13251# Whether dlopen of programs is supported. 13252dlopen_self=$enable_dlopen_self 13253 13254# Whether dlopen of statically linked programs is supported. 13255dlopen_self_static=$enable_dlopen_self_static 13256 13257# Compiler flag to prevent dynamic linking. 13258link_static_flag=$lt_lt_prog_compiler_static_CXX 13259 13260# Compiler flag to turn off builtin functions. 13261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13262 13263# Compiler flag to allow reflexive dlopens. 13264export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13265 13266# Compiler flag to generate shared objects directly from archives. 13267whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13268 13269# Compiler flag to generate thread-safe objects. 13270thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13271 13272# Library versioning type. 13273version_type=$version_type 13274 13275# Format of library name prefix. 13276libname_spec=$lt_libname_spec 13277 13278# List of archive names. First name is the real one, the rest are links. 13279# The last name is the one that the linker finds with -lNAME. 13280library_names_spec=$lt_library_names_spec 13281 13282# The coded name of the library, if different from the real name. 13283soname_spec=$lt_soname_spec 13284 13285# Commands used to build and install an old-style archive. 13286RANLIB=$lt_RANLIB 13287old_archive_cmds=$lt_old_archive_cmds_CXX 13288old_postinstall_cmds=$lt_old_postinstall_cmds 13289old_postuninstall_cmds=$lt_old_postuninstall_cmds 13290 13291# Create an old-style archive from a shared archive. 13292old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13293 13294# Create a temporary old-style archive to link instead of a shared archive. 13295old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13296 13297# Commands used to build and install a shared archive. 13298archive_cmds=$lt_archive_cmds_CXX 13299archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13300postinstall_cmds=$lt_postinstall_cmds 13301postuninstall_cmds=$lt_postuninstall_cmds 13302 13303# Commands used to build a loadable module (assumed same as above if empty) 13304module_cmds=$lt_module_cmds_CXX 13305module_expsym_cmds=$lt_module_expsym_cmds_CXX 13306 13307# Commands to strip libraries. 13308old_striplib=$lt_old_striplib 13309striplib=$lt_striplib 13310 13311# Dependencies to place before the objects being linked to create a 13312# shared library. 13313predep_objects=$lt_predep_objects_CXX 13314 13315# Dependencies to place after the objects being linked to create a 13316# shared library. 13317postdep_objects=$lt_postdep_objects_CXX 13318 13319# Dependencies to place before the objects being linked to create a 13320# shared library. 13321predeps=$lt_predeps_CXX 13322 13323# Dependencies to place after the objects being linked to create a 13324# shared library. 13325postdeps=$lt_postdeps_CXX 13326 13327# The library search path used internally by the compiler when linking 13328# a shared library. 13329compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13330 13331# Method to check whether dependent libraries are shared objects. 13332deplibs_check_method=$lt_deplibs_check_method 13333 13334# Command to use when deplibs_check_method == file_magic. 13335file_magic_cmd=$lt_file_magic_cmd 13336 13337# Flag that allows shared libraries with undefined symbols to be built. 13338allow_undefined_flag=$lt_allow_undefined_flag_CXX 13339 13340# Flag that forces no undefined symbols. 13341no_undefined_flag=$lt_no_undefined_flag_CXX 13342 13343# Commands used to finish a libtool library installation in a directory. 13344finish_cmds=$lt_finish_cmds 13345 13346# Same as above, but a single script fragment to be evaled but not shown. 13347finish_eval=$lt_finish_eval 13348 13349# Take the output of nm and produce a listing of raw symbols and C names. 13350global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13351 13352# Transform the output of nm in a proper C declaration 13353global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13354 13355# Transform the output of nm in a C name address pair 13356global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13357 13358# This is the shared library runtime path variable. 13359runpath_var=$runpath_var 13360 13361# This is the shared library path variable. 13362shlibpath_var=$shlibpath_var 13363 13364# Is shlibpath searched before the hard-coded library search path? 13365shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13366 13367# How to hardcode a shared library path into an executable. 13368hardcode_action=$hardcode_action_CXX 13369 13370# Whether we should hardcode library paths into libraries. 13371hardcode_into_libs=$hardcode_into_libs 13372 13373# Flag to hardcode \$libdir into a binary during linking. 13374# This must work even if \$libdir does not exist. 13375hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13376 13377# If ld is used when linking, flag to hardcode \$libdir into 13378# a binary during linking. This must work even if \$libdir does 13379# not exist. 13380hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13381 13382# Whether we need a single -rpath flag with a separated argument. 13383hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13384 13385# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13386# resulting binary. 13387hardcode_direct=$hardcode_direct_CXX 13388 13389# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13390# resulting binary. 13391hardcode_minus_L=$hardcode_minus_L_CXX 13392 13393# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13394# the resulting binary. 13395hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13396 13397# Set to yes if building a shared library automatically hardcodes DIR into the library 13398# and all subsequent libraries and executables linked against it. 13399hardcode_automatic=$hardcode_automatic_CXX 13400 13401# Variables whose values should be saved in libtool wrapper scripts and 13402# restored at relink time. 13403variables_saved_for_relink="$variables_saved_for_relink" 13404 13405# Whether libtool must link a program against all its dependency libraries. 13406link_all_deplibs=$link_all_deplibs_CXX 13407 13408# Compile-time system search path for libraries 13409sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13410 13411# Run-time system search path for libraries 13412sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13413 13414# Fix the shell variable \$srcfile for the compiler. 13415fix_srcfile_path="$fix_srcfile_path_CXX" 13416 13417# Set to yes if exported symbols are required. 13418always_export_symbols=$always_export_symbols_CXX 13419 13420# The commands to list exported symbols. 13421export_symbols_cmds=$lt_export_symbols_cmds_CXX 13422 13423# The commands to extract the exported symbol list from a shared archive. 13424extract_expsyms_cmds=$lt_extract_expsyms_cmds 13425 13426# Symbols that should not be listed in the preloaded symbols. 13427exclude_expsyms=$lt_exclude_expsyms_CXX 13428 13429# Symbols that must always be exported. 13430include_expsyms=$lt_include_expsyms_CXX 13431 13432# ### END LIBTOOL TAG CONFIG: $tagname 13433 13434__EOF__ 13435 13436 13437else 13438 # If there is no Makefile yet, we rely on a make rule to execute 13439 # `config.status --recheck' to rerun these tests and create the 13440 # libtool script then. 13441 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13442 if test -f "$ltmain_in"; then 13443 test -f Makefile && make "$ltmain" 13444 fi 13445fi 13446 13447 13448ac_ext=cc 13449ac_cpp='$CXXCPP $CPPFLAGS' 13450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13453 13454CC=$lt_save_CC 13455LDCXX=$LD 13456LD=$lt_save_LD 13457GCC=$lt_save_GCC 13458with_gnu_ldcxx=$with_gnu_ld 13459with_gnu_ld=$lt_save_with_gnu_ld 13460lt_cv_path_LDCXX=$lt_cv_path_LD 13461lt_cv_path_LD=$lt_save_path_LD 13462lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13463lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13464 13465 else 13466 tagname="" 13467 fi 13468 ;; 13469 13470 F77) 13471 if test -n "$F77" && test "X$F77" != "Xno"; then 13472 13473ac_ext=f 13474ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13475ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13476ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13477 13478 13479archive_cmds_need_lc_F77=no 13480allow_undefined_flag_F77= 13481always_export_symbols_F77=no 13482archive_expsym_cmds_F77= 13483export_dynamic_flag_spec_F77= 13484hardcode_direct_F77=no 13485hardcode_libdir_flag_spec_F77= 13486hardcode_libdir_flag_spec_ld_F77= 13487hardcode_libdir_separator_F77= 13488hardcode_minus_L_F77=no 13489hardcode_automatic_F77=no 13490module_cmds_F77= 13491module_expsym_cmds_F77= 13492link_all_deplibs_F77=unknown 13493old_archive_cmds_F77=$old_archive_cmds 13494no_undefined_flag_F77= 13495whole_archive_flag_spec_F77= 13496enable_shared_with_static_runtimes_F77=no 13497 13498# Source file extension for f77 test sources. 13499ac_ext=f 13500 13501# Object file extension for compiled f77 test sources. 13502objext=o 13503objext_F77=$objext 13504 13505# Code to be used in simple compile tests 13506lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13507 13508# Code to be used in simple link tests 13509lt_simple_link_test_code=" program t\n end\n" 13510 13511# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13512 13513# If no C compiler was specified, use CC. 13514LTCC=${LTCC-"$CC"} 13515 13516# Allow CC to be a program name with arguments. 13517compiler=$CC 13518 13519 13520# save warnings/boilerplate of simple test code 13521ac_outfile=conftest.$ac_objext 13522printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13523eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13524_lt_compiler_boilerplate=`cat conftest.err` 13525$rm conftest* 13526 13527ac_outfile=conftest.$ac_objext 13528printf "$lt_simple_link_test_code" >conftest.$ac_ext 13529eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13530_lt_linker_boilerplate=`cat conftest.err` 13531$rm conftest* 13532 13533 13534# Allow CC to be a program name with arguments. 13535lt_save_CC="$CC" 13536CC=${F77-"f77"} 13537compiler=$CC 13538compiler_F77=$CC 13539for cc_temp in $compiler""; do 13540 case $cc_temp in 13541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13543 \-*) ;; 13544 *) break;; 13545 esac 13546done 13547cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13548 13549 13550echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13551echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13552echo "$as_me:$LINENO: result: $can_build_shared" >&5 13553echo "${ECHO_T}$can_build_shared" >&6 13554 13555echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13556echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13557test "$can_build_shared" = "no" && enable_shared=no 13558 13559# On AIX, shared libraries and static libraries use the same namespace, and 13560# are all built from PIC. 13561case "$host_os" in 13562aix3*) 13563 test "$enable_shared" = yes && enable_static=no 13564 if test -n "$RANLIB"; then 13565 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13566 postinstall_cmds='$RANLIB $lib' 13567 fi 13568 ;; 13569aix4* | aix5*) 13570 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13571 test "$enable_shared" = yes && enable_static=no 13572 fi 13573 ;; 13574esac 13575echo "$as_me:$LINENO: result: $enable_shared" >&5 13576echo "${ECHO_T}$enable_shared" >&6 13577 13578echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13579echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13580# Make sure either enable_shared or enable_static is yes. 13581test "$enable_shared" = yes || enable_static=yes 13582echo "$as_me:$LINENO: result: $enable_static" >&5 13583echo "${ECHO_T}$enable_static" >&6 13584 13585test "$ld_shlibs_F77" = no && can_build_shared=no 13586 13587GCC_F77="$G77" 13588LD_F77="$LD" 13589 13590lt_prog_compiler_wl_F77= 13591lt_prog_compiler_pic_F77= 13592lt_prog_compiler_static_F77= 13593 13594echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13595echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13596 13597 if test "$GCC" = yes; then 13598 lt_prog_compiler_wl_F77='-Wl,' 13599 lt_prog_compiler_static_F77='-static' 13600 13601 case $host_os in 13602 aix*) 13603 # All AIX code is PIC. 13604 if test "$host_cpu" = ia64; then 13605 # AIX 5 now supports IA64 processor 13606 lt_prog_compiler_static_F77='-Bstatic' 13607 fi 13608 ;; 13609 13610 amigaos*) 13611 # FIXME: we need at least 68020 code to build shared libraries, but 13612 # adding the `-m68020' flag to GCC prevents building anything better, 13613 # like `-m68040'. 13614 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13615 ;; 13616 13617 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13618 # PIC is the default for these OSes. 13619 ;; 13620 13621 mingw* | pw32* | os2*) 13622 # This hack is so that the source file can tell whether it is being 13623 # built for inclusion in a dll (and should export symbols for example). 13624 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13625 ;; 13626 13627 darwin* | rhapsody*) 13628 # PIC is the default on this platform 13629 # Common symbols not allowed in MH_DYLIB files 13630 lt_prog_compiler_pic_F77='-fno-common' 13631 ;; 13632 13633 msdosdjgpp*) 13634 # Just because we use GCC doesn't mean we suddenly get shared libraries 13635 # on systems that don't support them. 13636 lt_prog_compiler_can_build_shared_F77=no 13637 enable_shared=no 13638 ;; 13639 13640 sysv4*MP*) 13641 if test -d /usr/nec; then 13642 lt_prog_compiler_pic_F77=-Kconform_pic 13643 fi 13644 ;; 13645 13646 hpux*) 13647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13648 # not for PA HP-UX. 13649 case "$host_cpu" in 13650 hppa*64*|ia64*) 13651 # +Z the default 13652 ;; 13653 *) 13654 lt_prog_compiler_pic_F77='-fPIC' 13655 ;; 13656 esac 13657 ;; 13658 13659 *) 13660 lt_prog_compiler_pic_F77='-fPIC' 13661 ;; 13662 esac 13663 else 13664 # PORTME Check for flag to pass linker flags through the system compiler. 13665 case $host_os in 13666 aix*) 13667 lt_prog_compiler_wl_F77='-Wl,' 13668 if test "$host_cpu" = ia64; then 13669 # AIX 5 now supports IA64 processor 13670 lt_prog_compiler_static_F77='-Bstatic' 13671 else 13672 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13673 fi 13674 ;; 13675 darwin*) 13676 # PIC is the default on this platform 13677 # Common symbols not allowed in MH_DYLIB files 13678 case $cc_basename in 13679 xlc*) 13680 lt_prog_compiler_pic_F77='-qnocommon' 13681 lt_prog_compiler_wl_F77='-Wl,' 13682 ;; 13683 esac 13684 ;; 13685 13686 mingw* | pw32* | os2*) 13687 # This hack is so that the source file can tell whether it is being 13688 # built for inclusion in a dll (and should export symbols for example). 13689 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13690 ;; 13691 13692 hpux9* | hpux10* | hpux11*) 13693 lt_prog_compiler_wl_F77='-Wl,' 13694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13695 # not for PA HP-UX. 13696 case "$host_cpu" in 13697 hppa*64*|ia64*) 13698 # +Z the default 13699 ;; 13700 *) 13701 lt_prog_compiler_pic_F77='+Z' 13702 ;; 13703 esac 13704 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13705 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13706 ;; 13707 13708 irix5* | irix6* | nonstopux*) 13709 lt_prog_compiler_wl_F77='-Wl,' 13710 # PIC (with -KPIC) is the default. 13711 lt_prog_compiler_static_F77='-non_shared' 13712 ;; 13713 13714 newsos6) 13715 lt_prog_compiler_pic_F77='-KPIC' 13716 lt_prog_compiler_static_F77='-Bstatic' 13717 ;; 13718 13719 linux*) 13720 case $cc_basename in 13721 icc* | ecc*) 13722 lt_prog_compiler_wl_F77='-Wl,' 13723 lt_prog_compiler_pic_F77='-KPIC' 13724 lt_prog_compiler_static_F77='-static' 13725 ;; 13726 pgcc* | pgf77* | pgf90*) 13727 # Portland Group compilers (*not* the Pentium gcc compiler, 13728 # which looks to be a dead project) 13729 lt_prog_compiler_wl_F77='-Wl,' 13730 lt_prog_compiler_pic_F77='-fpic' 13731 lt_prog_compiler_static_F77='-static' 13732 ;; 13733 ccc*) 13734 lt_prog_compiler_wl_F77='-Wl,' 13735 # All Alpha code is PIC. 13736 lt_prog_compiler_static_F77='-non_shared' 13737 ;; 13738 esac 13739 ;; 13740 13741 osf3* | osf4* | osf5*) 13742 lt_prog_compiler_wl_F77='-Wl,' 13743 # All OSF/1 code is PIC. 13744 lt_prog_compiler_static_F77='-non_shared' 13745 ;; 13746 13747 sco3.2v5*) 13748 lt_prog_compiler_pic_F77='-Kpic' 13749 lt_prog_compiler_static_F77='-dn' 13750 ;; 13751 13752 solaris*) 13753 lt_prog_compiler_pic_F77='-KPIC' 13754 lt_prog_compiler_static_F77='-Bstatic' 13755 case $cc_basename in 13756 f77* | f90* | f95*) 13757 lt_prog_compiler_wl_F77='-Qoption ld ';; 13758 *) 13759 lt_prog_compiler_wl_F77='-Wl,';; 13760 esac 13761 ;; 13762 13763 sunos4*) 13764 lt_prog_compiler_wl_F77='-Qoption ld ' 13765 lt_prog_compiler_pic_F77='-PIC' 13766 lt_prog_compiler_static_F77='-Bstatic' 13767 ;; 13768 13769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13770 lt_prog_compiler_wl_F77='-Wl,' 13771 lt_prog_compiler_pic_F77='-KPIC' 13772 lt_prog_compiler_static_F77='-Bstatic' 13773 ;; 13774 13775 sysv4*MP*) 13776 if test -d /usr/nec ;then 13777 lt_prog_compiler_pic_F77='-Kconform_pic' 13778 lt_prog_compiler_static_F77='-Bstatic' 13779 fi 13780 ;; 13781 13782 unicos*) 13783 lt_prog_compiler_wl_F77='-Wl,' 13784 lt_prog_compiler_can_build_shared_F77=no 13785 ;; 13786 13787 uts4*) 13788 lt_prog_compiler_pic_F77='-pic' 13789 lt_prog_compiler_static_F77='-Bstatic' 13790 ;; 13791 13792 *) 13793 lt_prog_compiler_can_build_shared_F77=no 13794 ;; 13795 esac 13796 fi 13797 13798echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13799echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13800 13801# 13802# Check to make sure the PIC flag actually works. 13803# 13804if test -n "$lt_prog_compiler_pic_F77"; then 13805 13806echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13807echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13808if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13809 echo $ECHO_N "(cached) $ECHO_C" >&6 13810else 13811 lt_prog_compiler_pic_works_F77=no 13812 ac_outfile=conftest.$ac_objext 13813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13814 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13815 # Insert the option either (1) after the last *FLAGS variable, or 13816 # (2) before a word containing "conftest.", or (3) at the end. 13817 # Note that $ac_compile itself does not contain backslashes and begins 13818 # with a dollar sign (not a hyphen), so the echo should work correctly. 13819 # The option is referenced via a variable to avoid confusing sed. 13820 lt_compile=`echo "$ac_compile" | $SED \ 13821 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13823 -e 's:$: $lt_compiler_flag:'` 13824 (eval echo "\"\$as_me:13824: $lt_compile\"" >&5) 13825 (eval "$lt_compile" 2>conftest.err) 13826 ac_status=$? 13827 cat conftest.err >&5 13828 echo "$as_me:13828: \$? = $ac_status" >&5 13829 if (exit $ac_status) && test -s "$ac_outfile"; then 13830 # The compiler can only warn and ignore the option if not recognized 13831 # So say no if there are warnings other than the usual output. 13832 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13833 $SED '/^$/d' conftest.err >conftest.er2 13834 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13835 lt_prog_compiler_pic_works_F77=yes 13836 fi 13837 fi 13838 $rm conftest* 13839 13840fi 13841echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13842echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13843 13844if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13845 case $lt_prog_compiler_pic_F77 in 13846 "" | " "*) ;; 13847 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13848 esac 13849else 13850 lt_prog_compiler_pic_F77= 13851 lt_prog_compiler_can_build_shared_F77=no 13852fi 13853 13854fi 13855case "$host_os" in 13856 # For platforms which do not support PIC, -DPIC is meaningless: 13857 *djgpp*) 13858 lt_prog_compiler_pic_F77= 13859 ;; 13860 *) 13861 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13862 ;; 13863esac 13864 13865echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13866echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13867if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13868 echo $ECHO_N "(cached) $ECHO_C" >&6 13869else 13870 lt_cv_prog_compiler_c_o_F77=no 13871 $rm -r conftest 2>/dev/null 13872 mkdir conftest 13873 cd conftest 13874 mkdir out 13875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13876 13877 lt_compiler_flag="-o out/conftest2.$ac_objext" 13878 # Insert the option either (1) after the last *FLAGS variable, or 13879 # (2) before a word containing "conftest.", or (3) at the end. 13880 # Note that $ac_compile itself does not contain backslashes and begins 13881 # with a dollar sign (not a hyphen), so the echo should work correctly. 13882 lt_compile=`echo "$ac_compile" | $SED \ 13883 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13885 -e 's:$: $lt_compiler_flag:'` 13886 (eval echo "\"\$as_me:13886: $lt_compile\"" >&5) 13887 (eval "$lt_compile" 2>out/conftest.err) 13888 ac_status=$? 13889 cat out/conftest.err >&5 13890 echo "$as_me:13890: \$? = $ac_status" >&5 13891 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13892 then 13893 # The compiler can only warn and ignore the option if not recognized 13894 # So say no if there are warnings 13895 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13896 $SED '/^$/d' out/conftest.err >out/conftest.er2 13897 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13898 lt_cv_prog_compiler_c_o_F77=yes 13899 fi 13900 fi 13901 chmod u+w . 13902 $rm conftest* 13903 # SGI C++ compiler will create directory out/ii_files/ for 13904 # template instantiation 13905 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13906 $rm out/* && rmdir out 13907 cd .. 13908 rmdir conftest 13909 $rm conftest* 13910 13911fi 13912echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13913echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13914 13915 13916hard_links="nottested" 13917if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13918 # do not overwrite the value of need_locks provided by the user 13919 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13920echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13921 hard_links=yes 13922 $rm conftest* 13923 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13924 touch conftest.a 13925 ln conftest.a conftest.b 2>&5 || hard_links=no 13926 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13927 echo "$as_me:$LINENO: result: $hard_links" >&5 13928echo "${ECHO_T}$hard_links" >&6 13929 if test "$hard_links" = no; then 13930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13931echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13932 need_locks=warn 13933 fi 13934else 13935 need_locks=no 13936fi 13937 13938echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13939echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13940 13941 runpath_var= 13942 allow_undefined_flag_F77= 13943 enable_shared_with_static_runtimes_F77=no 13944 archive_cmds_F77= 13945 archive_expsym_cmds_F77= 13946 old_archive_From_new_cmds_F77= 13947 old_archive_from_expsyms_cmds_F77= 13948 export_dynamic_flag_spec_F77= 13949 whole_archive_flag_spec_F77= 13950 thread_safe_flag_spec_F77= 13951 hardcode_libdir_flag_spec_F77= 13952 hardcode_libdir_flag_spec_ld_F77= 13953 hardcode_libdir_separator_F77= 13954 hardcode_direct_F77=no 13955 hardcode_minus_L_F77=no 13956 hardcode_shlibpath_var_F77=unsupported 13957 link_all_deplibs_F77=unknown 13958 hardcode_automatic_F77=no 13959 module_cmds_F77= 13960 module_expsym_cmds_F77= 13961 always_export_symbols_F77=no 13962 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13963 # include_expsyms should be a list of space-separated symbols to be *always* 13964 # included in the symbol list 13965 include_expsyms_F77= 13966 # exclude_expsyms can be an extended regexp of symbols to exclude 13967 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13968 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13969 # as well as any symbol that contains `d'. 13970 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13972 # platforms (ab)use it in PIC code, but their linkers get confused if 13973 # the symbol is explicitly referenced. Since portable code cannot 13974 # rely on this symbol name, it's probably fine to never include it in 13975 # preloaded symbol tables. 13976 extract_expsyms_cmds= 13977 # Just being paranoid about ensuring that cc_basename is set. 13978 for cc_temp in $compiler""; do 13979 case $cc_temp in 13980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13982 \-*) ;; 13983 *) break;; 13984 esac 13985done 13986cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13987 13988 case $host_os in 13989 cygwin* | mingw* | pw32*) 13990 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13991 # When not using gcc, we currently assume that we are using 13992 # Microsoft Visual C++. 13993 if test "$GCC" != yes; then 13994 with_gnu_ld=no 13995 fi 13996 ;; 13997 openbsd*) 13998 with_gnu_ld=no 13999 ;; 14000 esac 14001 14002 ld_shlibs_F77=yes 14003 if test "$with_gnu_ld" = yes; then 14004 # If archive_cmds runs LD, not CC, wlarc should be empty 14005 wlarc='${wl}' 14006 14007 # Set some defaults for GNU ld with shared library support. These 14008 # are reset later if shared libraries are not supported. Putting them 14009 # here allows them to be overridden if necessary. 14010 runpath_var=LD_RUN_PATH 14011 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14012 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14013 # ancient GNU ld didn't support --whole-archive et. al. 14014 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14015 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14016 else 14017 whole_archive_flag_spec_F77= 14018 fi 14019 supports_anon_versioning=no 14020 case `$LD -v 2>/dev/null` in 14021 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14024 *\ 2.11.*) ;; # other 2.11 versions 14025 *) supports_anon_versioning=yes ;; 14026 esac 14027 14028 # See if GNU ld supports shared libraries. 14029 case $host_os in 14030 aix3* | aix4* | aix5*) 14031 # On AIX/PPC, the GNU linker is very broken 14032 if test "$host_cpu" != ia64; then 14033 ld_shlibs_F77=no 14034 cat <<EOF 1>&2 14035 14036*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14037*** to be unable to reliably create shared libraries on AIX. 14038*** Therefore, libtool is disabling shared libraries support. If you 14039*** really care for shared libraries, you may want to modify your PATH 14040*** so that a non-GNU linker is found, and then restart. 14041 14042EOF 14043 fi 14044 ;; 14045 14046 amigaos*) 14047 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)' 14048 hardcode_libdir_flag_spec_F77='-L$libdir' 14049 hardcode_minus_L_F77=yes 14050 14051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14052 # that the semantics of dynamic libraries on AmigaOS, at least up 14053 # to version 4, is to share data among multiple programs linked 14054 # with the same dynamic library. Since this doesn't match the 14055 # behavior of shared libraries on other platforms, we can't use 14056 # them. 14057 ld_shlibs_F77=no 14058 ;; 14059 14060 beos*) 14061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14062 allow_undefined_flag_F77=unsupported 14063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14064 # support --undefined. This deserves some investigation. FIXME 14065 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14066 else 14067 ld_shlibs_F77=no 14068 fi 14069 ;; 14070 14071 cygwin* | mingw* | pw32*) 14072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14073 # as there is no search path for DLLs. 14074 hardcode_libdir_flag_spec_F77='-L$libdir' 14075 allow_undefined_flag_F77=unsupported 14076 always_export_symbols_F77=no 14077 enable_shared_with_static_runtimes_F77=yes 14078 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14079 14080 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14081 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14082 # If the export-symbols file already is a .def file (1st line 14083 # is EXPORTS), use it as is; otherwise, prepend... 14084 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14085 cp $export_symbols $output_objdir/$soname.def; 14086 else 14087 echo EXPORTS > $output_objdir/$soname.def; 14088 cat $export_symbols >> $output_objdir/$soname.def; 14089 fi~ 14090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14091 else 14092 ld_shlibs_F77=no 14093 fi 14094 ;; 14095 14096 linux*) 14097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14098 tmp_addflag= 14099 case $cc_basename,$host_cpu in 14100 pgcc*) # Portland Group C compiler 14101 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14102 tmp_addflag=' $pic_flag' 14103 ;; 14104 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 14105 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14106 tmp_addflag=' $pic_flag -Mnomain' ;; 14107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14108 tmp_addflag=' -i_dynamic' ;; 14109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14110 tmp_addflag=' -i_dynamic -nofor_main' ;; 14111 ifc* | ifort*) # Intel Fortran compiler 14112 tmp_addflag=' -nofor_main' ;; 14113 esac 14114 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14115 14116 if test $supports_anon_versioning = yes; then 14117 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14119 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14120 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14121 fi 14122 else 14123 ld_shlibs_F77=no 14124 fi 14125 ;; 14126 14127 netbsd*) 14128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14129 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14130 wlarc= 14131 else 14132 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14133 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14134 fi 14135 ;; 14136 14137 solaris* | sysv5*) 14138 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14139 ld_shlibs_F77=no 14140 cat <<EOF 1>&2 14141 14142*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14143*** create shared libraries on Solaris systems. Therefore, libtool 14144*** is disabling shared libraries support. We urge you to upgrade GNU 14145*** binutils to release 2.9.1 or newer. Another option is to modify 14146*** your PATH or compiler configuration so that the native linker is 14147*** used, and then restart. 14148 14149EOF 14150 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14151 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14152 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14153 else 14154 ld_shlibs_F77=no 14155 fi 14156 ;; 14157 14158 sunos4*) 14159 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14160 wlarc= 14161 hardcode_direct_F77=yes 14162 hardcode_shlibpath_var_F77=no 14163 ;; 14164 14165 *) 14166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14167 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14168 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14169 else 14170 ld_shlibs_F77=no 14171 fi 14172 ;; 14173 esac 14174 14175 if test "$ld_shlibs_F77" = no; then 14176 runpath_var= 14177 hardcode_libdir_flag_spec_F77= 14178 export_dynamic_flag_spec_F77= 14179 whole_archive_flag_spec_F77= 14180 fi 14181 else 14182 # PORTME fill in a description of your system's linker (not GNU ld) 14183 case $host_os in 14184 aix3*) 14185 allow_undefined_flag_F77=unsupported 14186 always_export_symbols_F77=yes 14187 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' 14188 # Note: this linker hardcodes the directories in LIBPATH if there 14189 # are no directories specified by -L. 14190 hardcode_minus_L_F77=yes 14191 if test "$GCC" = yes && test -z "$link_static_flag"; then 14192 # Neither direct hardcoding nor static linking is supported with a 14193 # broken collect2. 14194 hardcode_direct_F77=unsupported 14195 fi 14196 ;; 14197 14198 aix4* | aix5*) 14199 if test "$host_cpu" = ia64; then 14200 # On IA64, the linker does run time linking by default, so we don't 14201 # have to do anything special. 14202 aix_use_runtimelinking=no 14203 exp_sym_flag='-Bexport' 14204 no_entry_flag="" 14205 else 14206 # If we're using GNU nm, then we don't want the "-C" option. 14207 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14208 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14209 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' 14210 else 14211 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' 14212 fi 14213 aix_use_runtimelinking=no 14214 14215 # Test if we are trying to use run time linking or normal 14216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14217 # need to do runtime linking. 14218 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14219 for ld_flag in $LDFLAGS; do 14220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14221 aix_use_runtimelinking=yes 14222 break 14223 fi 14224 done 14225 esac 14226 14227 exp_sym_flag='-bexport' 14228 no_entry_flag='-bnoentry' 14229 fi 14230 14231 # When large executables or shared objects are built, AIX ld can 14232 # have problems creating the table of contents. If linking a library 14233 # or program results in "error TOC overflow" add -mminimal-toc to 14234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14236 14237 archive_cmds_F77='' 14238 hardcode_direct_F77=yes 14239 hardcode_libdir_separator_F77=':' 14240 link_all_deplibs_F77=yes 14241 14242 if test "$GCC" = yes; then 14243 case $host_os in aix4.[012]|aix4.[012].*) 14244 # We only want to do this on AIX 4.2 and lower, the check 14245 # below for broken collect2 doesn't work under 4.3+ 14246 collect2name=`${CC} -print-prog-name=collect2` 14247 if test -f "$collect2name" && \ 14248 strings "$collect2name" | grep resolve_lib_name >/dev/null 14249 then 14250 # We have reworked collect2 14251 hardcode_direct_F77=yes 14252 else 14253 # We have old collect2 14254 hardcode_direct_F77=unsupported 14255 # It fails to find uninstalled libraries when the uninstalled 14256 # path is not listed in the libpath. Setting hardcode_minus_L 14257 # to unsupported forces relinking 14258 hardcode_minus_L_F77=yes 14259 hardcode_libdir_flag_spec_F77='-L$libdir' 14260 hardcode_libdir_separator_F77= 14261 fi 14262 esac 14263 shared_flag='-shared' 14264 if test "$aix_use_runtimelinking" = yes; then 14265 shared_flag="$shared_flag "'${wl}-G' 14266 fi 14267 else 14268 # not using gcc 14269 if test "$host_cpu" = ia64; then 14270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14271 # chokes on -Wl,-G. The following line is correct: 14272 shared_flag='-G' 14273 else 14274 if test "$aix_use_runtimelinking" = yes; then 14275 shared_flag='${wl}-G' 14276 else 14277 shared_flag='${wl}-bM:SRE' 14278 fi 14279 fi 14280 fi 14281 14282 # It seems that -bexpall does not export symbols beginning with 14283 # underscore (_), so it is better to generate a list of symbols to export. 14284 always_export_symbols_F77=yes 14285 if test "$aix_use_runtimelinking" = yes; then 14286 # Warning - without using the other runtime loading flags (-brtl), 14287 # -berok will link without error, but may produce a broken library. 14288 allow_undefined_flag_F77='-berok' 14289 # Determine the default libpath from the value encoded in an empty executable. 14290 cat >conftest.$ac_ext <<_ACEOF 14291 program main 14292 14293 end 14294_ACEOF 14295rm -f conftest.$ac_objext conftest$ac_exeext 14296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14297 (eval $ac_link) 2>conftest.er1 14298 ac_status=$? 14299 grep -v '^ *+' conftest.er1 >conftest.err 14300 rm -f conftest.er1 14301 cat conftest.err >&5 14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14303 (exit $ac_status); } && 14304 { ac_try='test -z "$ac_f77_werror_flag" 14305 || test ! -s conftest.err' 14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14307 (eval $ac_try) 2>&5 14308 ac_status=$? 14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14310 (exit $ac_status); }; } && 14311 { ac_try='test -s conftest$ac_exeext' 14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14313 (eval $ac_try) 2>&5 14314 ac_status=$? 14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14316 (exit $ac_status); }; }; then 14317 14318aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14319}'` 14320# Check for a 64-bit object if we didn't find anything. 14321if 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; } 14322}'`; fi 14323else 14324 echo "$as_me: failed program was:" >&5 14325sed 's/^/| /' conftest.$ac_ext >&5 14326 14327fi 14328rm -f conftest.err conftest.$ac_objext \ 14329 conftest$ac_exeext conftest.$ac_ext 14330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14331 14332 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14333 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" 14334 else 14335 if test "$host_cpu" = ia64; then 14336 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14337 allow_undefined_flag_F77="-z nodefs" 14338 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" 14339 else 14340 # Determine the default libpath from the value encoded in an empty executable. 14341 cat >conftest.$ac_ext <<_ACEOF 14342 program main 14343 14344 end 14345_ACEOF 14346rm -f conftest.$ac_objext conftest$ac_exeext 14347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14348 (eval $ac_link) 2>conftest.er1 14349 ac_status=$? 14350 grep -v '^ *+' conftest.er1 >conftest.err 14351 rm -f conftest.er1 14352 cat conftest.err >&5 14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14354 (exit $ac_status); } && 14355 { ac_try='test -z "$ac_f77_werror_flag" 14356 || test ! -s conftest.err' 14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14358 (eval $ac_try) 2>&5 14359 ac_status=$? 14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14361 (exit $ac_status); }; } && 14362 { ac_try='test -s conftest$ac_exeext' 14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14364 (eval $ac_try) 2>&5 14365 ac_status=$? 14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14367 (exit $ac_status); }; }; then 14368 14369aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14370}'` 14371# Check for a 64-bit object if we didn't find anything. 14372if 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; } 14373}'`; fi 14374else 14375 echo "$as_me: failed program was:" >&5 14376sed 's/^/| /' conftest.$ac_ext >&5 14377 14378fi 14379rm -f conftest.err conftest.$ac_objext \ 14380 conftest$ac_exeext conftest.$ac_ext 14381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14382 14383 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14384 # Warning - without using the other run time loading flags, 14385 # -berok will link without error, but may produce a broken library. 14386 no_undefined_flag_F77=' ${wl}-bernotok' 14387 allow_undefined_flag_F77=' ${wl}-berok' 14388 # -bexpall does not export symbols beginning with underscore (_) 14389 always_export_symbols_F77=yes 14390 # Exported symbols can be pulled into shared objects from archives 14391 whole_archive_flag_spec_F77=' ' 14392 archive_cmds_need_lc_F77=yes 14393 # This is similar to how AIX traditionally builds it's shared libraries. 14394 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' 14395 fi 14396 fi 14397 ;; 14398 14399 amigaos*) 14400 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)' 14401 hardcode_libdir_flag_spec_F77='-L$libdir' 14402 hardcode_minus_L_F77=yes 14403 # see comment about different semantics on the GNU ld section 14404 ld_shlibs_F77=no 14405 ;; 14406 14407 bsdi[45]*) 14408 export_dynamic_flag_spec_F77=-rdynamic 14409 ;; 14410 14411 cygwin* | mingw* | pw32*) 14412 # When not using gcc, we currently assume that we are using 14413 # Microsoft Visual C++. 14414 # hardcode_libdir_flag_spec is actually meaningless, as there is 14415 # no search path for DLLs. 14416 hardcode_libdir_flag_spec_F77=' ' 14417 allow_undefined_flag_F77=unsupported 14418 # Tell ltmain to make .lib files, not .a files. 14419 libext=lib 14420 # Tell ltmain to make .dll files, not .so files. 14421 shrext_cmds=".dll" 14422 # FIXME: Setting linknames here is a bad hack. 14423 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14424 # The linker will automatically build a .lib file if we build a DLL. 14425 old_archive_From_new_cmds_F77='true' 14426 # FIXME: Should let the user specify the lib program. 14427 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14428 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14429 enable_shared_with_static_runtimes_F77=yes 14430 ;; 14431 14432 darwin* | rhapsody*) 14433 case "$host_os" in 14434 rhapsody* | darwin1.[012]) 14435 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14436 ;; 14437 *) # Darwin 1.3 on 14438 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14439 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14440 else 14441 case ${MACOSX_DEPLOYMENT_TARGET} in 14442 10.[012]) 14443 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14444 ;; 14445 10.*) 14446 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14447 ;; 14448 esac 14449 fi 14450 ;; 14451 esac 14452 archive_cmds_need_lc_F77=no 14453 hardcode_direct_F77=no 14454 hardcode_automatic_F77=yes 14455 hardcode_shlibpath_var_F77=unsupported 14456 whole_archive_flag_spec_F77='' 14457 link_all_deplibs_F77=yes 14458 if test "$GCC" = yes ; then 14459 output_verbose_link_cmd='echo' 14460 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14461 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14462 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14463 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}' 14464 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}' 14465 else 14466 case $cc_basename in 14467 xlc*) 14468 output_verbose_link_cmd='echo' 14469 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14470 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14471 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14472 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}' 14473 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}' 14474 ;; 14475 *) 14476 ld_shlibs_F77=no 14477 ;; 14478 esac 14479 fi 14480 ;; 14481 14482 dgux*) 14483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14484 hardcode_libdir_flag_spec_F77='-L$libdir' 14485 hardcode_shlibpath_var_F77=no 14486 ;; 14487 14488 freebsd1*) 14489 ld_shlibs_F77=no 14490 ;; 14491 14492 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14493 # support. Future versions do this automatically, but an explicit c++rt0.o 14494 # does not break anything, and helps significantly (at the cost of a little 14495 # extra space). 14496 freebsd2.2*) 14497 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14498 hardcode_libdir_flag_spec_F77='-R$libdir' 14499 hardcode_direct_F77=yes 14500 hardcode_shlibpath_var_F77=no 14501 ;; 14502 14503 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14504 freebsd2*) 14505 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14506 hardcode_direct_F77=yes 14507 hardcode_minus_L_F77=yes 14508 hardcode_shlibpath_var_F77=no 14509 ;; 14510 14511 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14512 freebsd* | kfreebsd*-gnu | dragonfly*) 14513 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14514 hardcode_libdir_flag_spec_F77='-R$libdir' 14515 hardcode_direct_F77=yes 14516 hardcode_shlibpath_var_F77=no 14517 ;; 14518 14519 hpux9*) 14520 if test "$GCC" = yes; then 14521 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' 14522 else 14523 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' 14524 fi 14525 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14526 hardcode_libdir_separator_F77=: 14527 hardcode_direct_F77=yes 14528 14529 # hardcode_minus_L: Not really in the search PATH, 14530 # but as the default location of the library. 14531 hardcode_minus_L_F77=yes 14532 export_dynamic_flag_spec_F77='${wl}-E' 14533 ;; 14534 14535 hpux10* | hpux11*) 14536 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14537 case "$host_cpu" in 14538 hppa*64*|ia64*) 14539 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14540 ;; 14541 *) 14542 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14543 ;; 14544 esac 14545 else 14546 case "$host_cpu" in 14547 hppa*64*|ia64*) 14548 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14549 ;; 14550 *) 14551 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14552 ;; 14553 esac 14554 fi 14555 if test "$with_gnu_ld" = no; then 14556 case "$host_cpu" in 14557 hppa*64*) 14558 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14559 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14560 hardcode_libdir_separator_F77=: 14561 hardcode_direct_F77=no 14562 hardcode_shlibpath_var_F77=no 14563 ;; 14564 ia64*) 14565 hardcode_libdir_flag_spec_F77='-L$libdir' 14566 hardcode_direct_F77=no 14567 hardcode_shlibpath_var_F77=no 14568 14569 # hardcode_minus_L: Not really in the search PATH, 14570 # but as the default location of the library. 14571 hardcode_minus_L_F77=yes 14572 ;; 14573 *) 14574 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14575 hardcode_libdir_separator_F77=: 14576 hardcode_direct_F77=yes 14577 export_dynamic_flag_spec_F77='${wl}-E' 14578 14579 # hardcode_minus_L: Not really in the search PATH, 14580 # but as the default location of the library. 14581 hardcode_minus_L_F77=yes 14582 ;; 14583 esac 14584 fi 14585 ;; 14586 14587 irix5* | irix6* | nonstopux*) 14588 if test "$GCC" = yes; then 14589 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' 14590 else 14591 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' 14592 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14593 fi 14594 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14595 hardcode_libdir_separator_F77=: 14596 link_all_deplibs_F77=yes 14597 ;; 14598 14599 netbsd*) 14600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14601 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14602 else 14603 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14604 fi 14605 hardcode_libdir_flag_spec_F77='-R$libdir' 14606 hardcode_direct_F77=yes 14607 hardcode_shlibpath_var_F77=no 14608 ;; 14609 14610 newsos6) 14611 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14612 hardcode_direct_F77=yes 14613 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14614 hardcode_libdir_separator_F77=: 14615 hardcode_shlibpath_var_F77=no 14616 ;; 14617 14618 openbsd*) 14619 hardcode_direct_F77=yes 14620 hardcode_shlibpath_var_F77=no 14621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14622 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14623 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14624 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14625 export_dynamic_flag_spec_F77='${wl}-E' 14626 else 14627 case $host_os in 14628 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14630 hardcode_libdir_flag_spec_F77='-R$libdir' 14631 ;; 14632 *) 14633 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14634 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14635 ;; 14636 esac 14637 fi 14638 ;; 14639 14640 os2*) 14641 hardcode_libdir_flag_spec_F77='-L$libdir' 14642 hardcode_minus_L_F77=yes 14643 allow_undefined_flag_F77=unsupported 14644 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' 14645 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14646 ;; 14647 14648 osf3*) 14649 if test "$GCC" = yes; then 14650 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14651 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' 14652 else 14653 allow_undefined_flag_F77=' -expect_unresolved \*' 14654 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' 14655 fi 14656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14657 hardcode_libdir_separator_F77=: 14658 ;; 14659 14660 osf4* | osf5*) # as osf3* with the addition of -msym flag 14661 if test "$GCC" = yes; then 14662 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14663 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' 14664 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14665 else 14666 allow_undefined_flag_F77=' -expect_unresolved \*' 14667 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' 14668 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~ 14669 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14670 14671 # Both c and cxx compiler support -rpath directly 14672 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14673 fi 14674 hardcode_libdir_separator_F77=: 14675 ;; 14676 14677 sco3.2v5*) 14678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14679 hardcode_shlibpath_var_F77=no 14680 export_dynamic_flag_spec_F77='${wl}-Bexport' 14681 runpath_var=LD_RUN_PATH 14682 hardcode_runpath_var=yes 14683 ;; 14684 14685 solaris*) 14686 no_undefined_flag_F77=' -z text' 14687 if test "$GCC" = yes; then 14688 wlarc='${wl}' 14689 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14690 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14691 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14692 else 14693 wlarc='' 14694 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14695 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14696 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14697 fi 14698 hardcode_libdir_flag_spec_F77='-R$libdir' 14699 hardcode_shlibpath_var_F77=no 14700 case $host_os in 14701 solaris2.[0-5] | solaris2.[0-5].*) ;; 14702 *) 14703 # The compiler driver will combine linker options so we 14704 # cannot just pass the convience library names through 14705 # without $wl, iff we do not link with $LD. 14706 # Luckily, gcc supports the same syntax we need for Sun Studio. 14707 # Supported since Solaris 2.6 (maybe 2.5.1?) 14708 case $wlarc in 14709 '') 14710 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14711 *) 14712 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14713 esac ;; 14714 esac 14715 link_all_deplibs_F77=yes 14716 ;; 14717 14718 sunos4*) 14719 if test "x$host_vendor" = xsequent; then 14720 # Use $CC to link under sequent, because it throws in some extra .o 14721 # files that make .init and .fini sections work. 14722 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14723 else 14724 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14725 fi 14726 hardcode_libdir_flag_spec_F77='-L$libdir' 14727 hardcode_direct_F77=yes 14728 hardcode_minus_L_F77=yes 14729 hardcode_shlibpath_var_F77=no 14730 ;; 14731 14732 sysv4) 14733 case $host_vendor in 14734 sni) 14735 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14736 hardcode_direct_F77=yes # is this really true??? 14737 ;; 14738 siemens) 14739 ## LD is ld it makes a PLAMLIB 14740 ## CC just makes a GrossModule. 14741 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14742 reload_cmds_F77='$CC -r -o $output$reload_objs' 14743 hardcode_direct_F77=no 14744 ;; 14745 motorola) 14746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14747 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14748 ;; 14749 esac 14750 runpath_var='LD_RUN_PATH' 14751 hardcode_shlibpath_var_F77=no 14752 ;; 14753 14754 sysv4.3*) 14755 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14756 hardcode_shlibpath_var_F77=no 14757 export_dynamic_flag_spec_F77='-Bexport' 14758 ;; 14759 14760 sysv4*MP*) 14761 if test -d /usr/nec; then 14762 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14763 hardcode_shlibpath_var_F77=no 14764 runpath_var=LD_RUN_PATH 14765 hardcode_runpath_var=yes 14766 ld_shlibs_F77=yes 14767 fi 14768 ;; 14769 14770 sysv4.2uw2*) 14771 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14772 hardcode_direct_F77=yes 14773 hardcode_minus_L_F77=no 14774 hardcode_shlibpath_var_F77=no 14775 hardcode_runpath_var=yes 14776 runpath_var=LD_RUN_PATH 14777 ;; 14778 14779 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14780 no_undefined_flag_F77='${wl}-z ${wl}text' 14781 if test "$GCC" = yes; then 14782 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14783 else 14784 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14785 fi 14786 runpath_var='LD_RUN_PATH' 14787 hardcode_shlibpath_var_F77=no 14788 ;; 14789 14790 sysv5*) 14791 no_undefined_flag_F77=' -z text' 14792 # $CC -shared without GNU ld will not create a library from C++ 14793 # object files and a static libstdc++, better avoid it by now 14794 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14795 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14796 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14797 hardcode_libdir_flag_spec_F77= 14798 hardcode_shlibpath_var_F77=no 14799 runpath_var='LD_RUN_PATH' 14800 ;; 14801 14802 uts4*) 14803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14804 hardcode_libdir_flag_spec_F77='-L$libdir' 14805 hardcode_shlibpath_var_F77=no 14806 ;; 14807 14808 *) 14809 ld_shlibs_F77=no 14810 ;; 14811 esac 14812 fi 14813 14814echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14815echo "${ECHO_T}$ld_shlibs_F77" >&6 14816test "$ld_shlibs_F77" = no && can_build_shared=no 14817 14818variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14819if test "$GCC" = yes; then 14820 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14821fi 14822 14823# 14824# Do we need to explicitly link libc? 14825# 14826case "x$archive_cmds_need_lc_F77" in 14827x|xyes) 14828 # Assume -lc should be added 14829 archive_cmds_need_lc_F77=yes 14830 14831 if test "$enable_shared" = yes && test "$GCC" = yes; then 14832 case $archive_cmds_F77 in 14833 *'~'*) 14834 # FIXME: we may have to deal with multi-command sequences. 14835 ;; 14836 '$CC '*) 14837 # Test whether the compiler implicitly links with -lc since on some 14838 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14839 # to ld, don't add -lc before -lgcc. 14840 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14841echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14842 $rm conftest* 14843 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14844 14845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14846 (eval $ac_compile) 2>&5 14847 ac_status=$? 14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14849 (exit $ac_status); } 2>conftest.err; then 14850 soname=conftest 14851 lib=conftest 14852 libobjs=conftest.$ac_objext 14853 deplibs= 14854 wl=$lt_prog_compiler_wl_F77 14855 compiler_flags=-v 14856 linker_flags=-v 14857 verstring= 14858 output_objdir=. 14859 libname=conftest 14860 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14861 allow_undefined_flag_F77= 14862 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14863 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14864 ac_status=$? 14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14866 (exit $ac_status); } 14867 then 14868 archive_cmds_need_lc_F77=no 14869 else 14870 archive_cmds_need_lc_F77=yes 14871 fi 14872 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14873 else 14874 cat conftest.err 1>&5 14875 fi 14876 $rm conftest* 14877 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14878echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14879 ;; 14880 esac 14881 fi 14882 ;; 14883esac 14884 14885echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14886echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14887library_names_spec= 14888libname_spec='lib$name' 14889soname_spec= 14890shrext_cmds=".so" 14891postinstall_cmds= 14892postuninstall_cmds= 14893finish_cmds= 14894finish_eval= 14895shlibpath_var= 14896shlibpath_overrides_runpath=unknown 14897version_type=none 14898dynamic_linker="$host_os ld.so" 14899sys_lib_dlsearch_path_spec="/lib /usr/lib" 14900if test "$GCC" = yes; then 14901 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14902 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14903 # if the path contains ";" then we assume it to be the separator 14904 # otherwise default to the standard path separator (i.e. ":") - it is 14905 # assumed that no part of a normal pathname contains ";" but that should 14906 # okay in the real world where ";" in dirpaths is itself problematic. 14907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14908 else 14909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14910 fi 14911else 14912 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14913fi 14914need_lib_prefix=unknown 14915hardcode_into_libs=no 14916 14917# when you set need_version to no, make sure it does not cause -set_version 14918# flags to be left without arguments 14919need_version=unknown 14920 14921case $host_os in 14922aix3*) 14923 version_type=linux 14924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14925 shlibpath_var=LIBPATH 14926 14927 # AIX 3 has no versioning support, so we append a major version to the name. 14928 soname_spec='${libname}${release}${shared_ext}$major' 14929 ;; 14930 14931aix4* | aix5*) 14932 version_type=linux 14933 need_lib_prefix=no 14934 need_version=no 14935 hardcode_into_libs=yes 14936 if test "$host_cpu" = ia64; then 14937 # AIX 5 supports IA64 14938 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14939 shlibpath_var=LD_LIBRARY_PATH 14940 else 14941 # With GCC up to 2.95.x, collect2 would create an import file 14942 # for dependence libraries. The import file would start with 14943 # the line `#! .'. This would cause the generated library to 14944 # depend on `.', always an invalid library. This was fixed in 14945 # development snapshots of GCC prior to 3.0. 14946 case $host_os in 14947 aix4 | aix4.[01] | aix4.[01].*) 14948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14949 echo ' yes ' 14950 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14951 : 14952 else 14953 can_build_shared=no 14954 fi 14955 ;; 14956 esac 14957 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14958 # soname into executable. Probably we can add versioning support to 14959 # collect2, so additional links can be useful in future. 14960 if test "$aix_use_runtimelinking" = yes; then 14961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14962 # instead of lib<name>.a to let people know that these are not 14963 # typical AIX shared libraries. 14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14965 else 14966 # We preserve .a as extension for shared libraries through AIX4.2 14967 # and later when we are not doing run time linking. 14968 library_names_spec='${libname}${release}.a $libname.a' 14969 soname_spec='${libname}${release}${shared_ext}$major' 14970 fi 14971 shlibpath_var=LIBPATH 14972 fi 14973 ;; 14974 14975amigaos*) 14976 library_names_spec='$libname.ixlibrary $libname.a' 14977 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14978 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' 14979 ;; 14980 14981beos*) 14982 library_names_spec='${libname}${shared_ext}' 14983 dynamic_linker="$host_os ld.so" 14984 shlibpath_var=LIBRARY_PATH 14985 ;; 14986 14987bsdi[45]*) 14988 version_type=linux 14989 need_version=no 14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14991 soname_spec='${libname}${release}${shared_ext}$major' 14992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14993 shlibpath_var=LD_LIBRARY_PATH 14994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14996 # the default ld.so.conf also contains /usr/contrib/lib and 14997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14998 # libtool to hard-code these into programs 14999 ;; 15000 15001cygwin* | mingw* | pw32*) 15002 version_type=windows 15003 shrext_cmds=".dll" 15004 need_version=no 15005 need_lib_prefix=no 15006 15007 case $GCC,$host_os in 15008 yes,cygwin* | yes,mingw* | yes,pw32*) 15009 library_names_spec='$libname.dll.a' 15010 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15011 postinstall_cmds='base_file=`basename \${file}`~ 15012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15013 dldir=$destdir/`dirname \$dlpath`~ 15014 test -d \$dldir || mkdir -p \$dldir~ 15015 $install_prog $dir/$dlname \$dldir/$dlname' 15016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15017 dlpath=$dir/\$dldll~ 15018 $rm \$dlpath' 15019 shlibpath_overrides_runpath=yes 15020 15021 case $host_os in 15022 cygwin*) 15023 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15024 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15025 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15026 ;; 15027 mingw*) 15028 # MinGW DLLs use traditional 'lib' prefix 15029 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15031 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15032 # It is most probably a Windows format PATH printed by 15033 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15034 # path with ; separators, and with drive letters. We can handle the 15035 # drive letters (cygwin fileutils understands them), so leave them, 15036 # especially as we might pass files found there to a mingw objdump, 15037 # which wouldn't understand a cygwinified path. Ahh. 15038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15039 else 15040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15041 fi 15042 ;; 15043 pw32*) 15044 # pw32 DLLs use 'pw' prefix rather than 'lib' 15045 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15046 ;; 15047 esac 15048 ;; 15049 15050 linux*) 15051 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 15052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15053 supports_anon_versioning=no 15054 case `$LD -v 2>/dev/null` in 15055 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15058 *\ 2.11.*) ;; # other 2.11 versions 15059 *) supports_anon_versioning=yes ;; 15060 esac 15061 if test $supports_anon_versioning = yes; then 15062 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 15063cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15064$echo "local: *; };" >> $output_objdir/$libname.ver~ 15065 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15066 else 15067 $archive_expsym_cmds="$archive_cmds" 15068 fi 15069 else 15070 ld_shlibs=no 15071 fi 15072 ;; 15073 15074 *) 15075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15076 ;; 15077 esac 15078 dynamic_linker='Win32 ld.exe' 15079 # FIXME: first we should search . and the directory the executable is in 15080 shlibpath_var=PATH 15081 ;; 15082 15083darwin* | rhapsody*) 15084 dynamic_linker="$host_os dyld" 15085 version_type=darwin 15086 need_lib_prefix=no 15087 need_version=no 15088 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15089 soname_spec='${libname}${release}${major}$shared_ext' 15090 shlibpath_overrides_runpath=yes 15091 shlibpath_var=DYLD_LIBRARY_PATH 15092 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 15093 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15094 if test "$GCC" = yes; then 15095 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"` 15096 else 15097 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15098 fi 15099 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15100 ;; 15101 15102dgux*) 15103 version_type=linux 15104 need_lib_prefix=no 15105 need_version=no 15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15107 soname_spec='${libname}${release}${shared_ext}$major' 15108 shlibpath_var=LD_LIBRARY_PATH 15109 ;; 15110 15111freebsd1*) 15112 dynamic_linker=no 15113 ;; 15114 15115kfreebsd*-gnu) 15116 version_type=linux 15117 need_lib_prefix=no 15118 need_version=no 15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15120 soname_spec='${libname}${release}${shared_ext}$major' 15121 shlibpath_var=LD_LIBRARY_PATH 15122 shlibpath_overrides_runpath=no 15123 hardcode_into_libs=yes 15124 dynamic_linker='GNU ld.so' 15125 ;; 15126 15127freebsd* | dragonfly*) 15128 # DragonFly does not have aout. When/if they implement a new 15129 # versioning mechanism, adjust this. 15130 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 15131 version_type=freebsd-$objformat 15132 case $version_type in 15133 freebsd-elf*) 15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15135 need_version=no 15136 need_lib_prefix=no 15137 ;; 15138 freebsd-*) 15139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15140 need_version=yes 15141 ;; 15142 esac 15143 shlibpath_var=LD_LIBRARY_PATH 15144 case $host_os in 15145 freebsd2*) 15146 shlibpath_overrides_runpath=yes 15147 ;; 15148 freebsd3.[01]* | freebsdelf3.[01]*) 15149 shlibpath_overrides_runpath=yes 15150 hardcode_into_libs=yes 15151 ;; 15152 *) # from 3.2 on 15153 shlibpath_overrides_runpath=no 15154 hardcode_into_libs=yes 15155 ;; 15156 esac 15157 ;; 15158 15159gnu*) 15160 version_type=linux 15161 need_lib_prefix=no 15162 need_version=no 15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15164 soname_spec='${libname}${release}${shared_ext}$major' 15165 shlibpath_var=LD_LIBRARY_PATH 15166 hardcode_into_libs=yes 15167 ;; 15168 15169hpux9* | hpux10* | hpux11*) 15170 # Give a soname corresponding to the major version so that dld.sl refuses to 15171 # link against other versions. 15172 version_type=sunos 15173 need_lib_prefix=no 15174 need_version=no 15175 case "$host_cpu" in 15176 ia64*) 15177 shrext_cmds='.so' 15178 hardcode_into_libs=yes 15179 dynamic_linker="$host_os dld.so" 15180 shlibpath_var=LD_LIBRARY_PATH 15181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15183 soname_spec='${libname}${release}${shared_ext}$major' 15184 if test "X$HPUX_IA64_MODE" = X32; then 15185 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15186 else 15187 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15188 fi 15189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15190 ;; 15191 hppa*64*) 15192 shrext_cmds='.sl' 15193 hardcode_into_libs=yes 15194 dynamic_linker="$host_os dld.sl" 15195 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15198 soname_spec='${libname}${release}${shared_ext}$major' 15199 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15201 ;; 15202 *) 15203 shrext_cmds='.sl' 15204 dynamic_linker="$host_os dld.sl" 15205 shlibpath_var=SHLIB_PATH 15206 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15208 soname_spec='${libname}${release}${shared_ext}$major' 15209 ;; 15210 esac 15211 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15212 postinstall_cmds='chmod 555 $lib' 15213 ;; 15214 15215irix5* | irix6* | nonstopux*) 15216 case $host_os in 15217 nonstopux*) version_type=nonstopux ;; 15218 *) 15219 if test "$lt_cv_prog_gnu_ld" = yes; then 15220 version_type=linux 15221 else 15222 version_type=irix 15223 fi ;; 15224 esac 15225 need_lib_prefix=no 15226 need_version=no 15227 soname_spec='${libname}${release}${shared_ext}$major' 15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15229 case $host_os in 15230 irix5* | nonstopux*) 15231 libsuff= shlibsuff= 15232 ;; 15233 *) 15234 case $LD in # libtool.m4 will add one of these switches to LD 15235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15236 libsuff= shlibsuff= libmagic=32-bit;; 15237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15238 libsuff=32 shlibsuff=N32 libmagic=N32;; 15239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15240 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15241 *) libsuff= shlibsuff= libmagic=never-match;; 15242 esac 15243 ;; 15244 esac 15245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15246 shlibpath_overrides_runpath=no 15247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15249 hardcode_into_libs=yes 15250 ;; 15251 15252# No shared lib support for Linux oldld, aout, or coff. 15253linux*oldld* | linux*aout* | linux*coff*) 15254 dynamic_linker=no 15255 ;; 15256 15257# This must be Linux ELF. 15258linux*) 15259 version_type=linux 15260 need_lib_prefix=no 15261 need_version=no 15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15263 soname_spec='${libname}${release}${shared_ext}$major' 15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15265 shlibpath_var=LD_LIBRARY_PATH 15266 shlibpath_overrides_runpath=no 15267 # This implies no fast_install, which is unacceptable. 15268 # Some rework will be needed to allow for fast_install 15269 # before this can be enabled. 15270 hardcode_into_libs=yes 15271 15272 # Append ld.so.conf contents to the search path 15273 if test -f /etc/ld.so.conf; then 15274 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15276 fi 15277 15278 case $host_cpu:$lt_cv_cc_64bit_output in 15279 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) 15280 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" 15281 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" 15282 ;; 15283 esac 15284 15285 # We used to test for /lib/ld.so.1 and disable shared libraries on 15286 # powerpc, because MkLinux only supported shared libraries with the 15287 # GNU dynamic linker. Since this was broken with cross compilers, 15288 # most powerpc-linux boxes support dynamic linking these days and 15289 # people can always --disable-shared, the test was removed, and we 15290 # assume the GNU/Linux dynamic linker is in use. 15291 dynamic_linker='GNU/Linux ld.so' 15292 15293 # Find out which ABI we are using (multilib Linux x86_64 hack). 15294 libsuff= 15295 case "$host_cpu" in 15296 x86_64*) 15297 echo '#line 15297 "configure"' > conftest.$ac_ext 15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15299 (eval $ac_compile) 2>&5 15300 ac_status=$? 15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15302 (exit $ac_status); }; then 15303 case `/usr/bin/file conftest.$ac_objext` in 15304 *64-bit*) 15305 libsuff=64 15306 ;; 15307 esac 15308 fi 15309 rm -rf conftest* 15310 ;; 15311 *) 15312 ;; 15313 esac 15314 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 15315 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 15316 ;; 15317 15318knetbsd*-gnu) 15319 version_type=linux 15320 need_lib_prefix=no 15321 need_version=no 15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15323 soname_spec='${libname}${release}${shared_ext}$major' 15324 shlibpath_var=LD_LIBRARY_PATH 15325 shlibpath_overrides_runpath=no 15326 hardcode_into_libs=yes 15327 dynamic_linker='GNU ld.so' 15328 ;; 15329 15330netbsd*) 15331 version_type=sunos 15332 need_lib_prefix=no 15333 need_version=no 15334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15337 dynamic_linker='NetBSD (a.out) ld.so' 15338 else 15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15340 soname_spec='${libname}${release}${shared_ext}$major' 15341 dynamic_linker='NetBSD ld.elf_so' 15342 fi 15343 shlibpath_var=LD_LIBRARY_PATH 15344 shlibpath_overrides_runpath=yes 15345 hardcode_into_libs=yes 15346 ;; 15347 15348newsos6) 15349 version_type=linux 15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15351 shlibpath_var=LD_LIBRARY_PATH 15352 shlibpath_overrides_runpath=yes 15353 ;; 15354 15355nto-qnx*) 15356 version_type=linux 15357 need_lib_prefix=no 15358 need_version=no 15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15360 soname_spec='${libname}${release}${shared_ext}$major' 15361 shlibpath_var=LD_LIBRARY_PATH 15362 shlibpath_overrides_runpath=yes 15363 ;; 15364 15365openbsd*) 15366 version_type=sunos 15367 need_lib_prefix=no 15368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15369 case $host_os in 15370 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15371 *) need_version=no ;; 15372 esac 15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15375 shlibpath_var=LD_LIBRARY_PATH 15376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15377 case $host_os in 15378 openbsd2.[89] | openbsd2.[89].*) 15379 shlibpath_overrides_runpath=no 15380 ;; 15381 *) 15382 shlibpath_overrides_runpath=yes 15383 ;; 15384 esac 15385 else 15386 shlibpath_overrides_runpath=yes 15387 fi 15388 ;; 15389 15390os2*) 15391 libname_spec='$name' 15392 shrext_cmds=".dll" 15393 need_lib_prefix=no 15394 library_names_spec='$libname${shared_ext} $libname.a' 15395 dynamic_linker='OS/2 ld.exe' 15396 shlibpath_var=LIBPATH 15397 ;; 15398 15399osf3* | osf4* | osf5*) 15400 version_type=osf 15401 need_lib_prefix=no 15402 need_version=no 15403 soname_spec='${libname}${release}${shared_ext}$major' 15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15405 shlibpath_var=LD_LIBRARY_PATH 15406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15408 ;; 15409 15410sco3.2v5*) 15411 version_type=osf 15412 soname_spec='${libname}${release}${shared_ext}$major' 15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15414 shlibpath_var=LD_LIBRARY_PATH 15415 ;; 15416 15417solaris*) 15418 version_type=linux 15419 need_lib_prefix=no 15420 need_version=no 15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15422 soname_spec='${libname}${release}${shared_ext}$major' 15423 shlibpath_var=LD_LIBRARY_PATH 15424 shlibpath_overrides_runpath=yes 15425 hardcode_into_libs=yes 15426 # ldd complains unless libraries are executable 15427 postinstall_cmds='chmod +x $lib' 15428 ;; 15429 15430sunos4*) 15431 version_type=sunos 15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15433 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15434 shlibpath_var=LD_LIBRARY_PATH 15435 shlibpath_overrides_runpath=yes 15436 if test "$with_gnu_ld" = yes; then 15437 need_lib_prefix=no 15438 fi 15439 need_version=yes 15440 ;; 15441 15442sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15443 version_type=linux 15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15445 soname_spec='${libname}${release}${shared_ext}$major' 15446 shlibpath_var=LD_LIBRARY_PATH 15447 case $host_vendor in 15448 sni) 15449 shlibpath_overrides_runpath=no 15450 need_lib_prefix=no 15451 export_dynamic_flag_spec='${wl}-Blargedynsym' 15452 runpath_var=LD_RUN_PATH 15453 ;; 15454 siemens) 15455 need_lib_prefix=no 15456 ;; 15457 motorola) 15458 need_lib_prefix=no 15459 need_version=no 15460 shlibpath_overrides_runpath=no 15461 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15462 ;; 15463 esac 15464 ;; 15465 15466sysv4*MP*) 15467 if test -d /usr/nec ;then 15468 version_type=linux 15469 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15470 soname_spec='$libname${shared_ext}.$major' 15471 shlibpath_var=LD_LIBRARY_PATH 15472 fi 15473 ;; 15474 15475uts4*) 15476 version_type=linux 15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15478 soname_spec='${libname}${release}${shared_ext}$major' 15479 shlibpath_var=LD_LIBRARY_PATH 15480 ;; 15481 15482*) 15483 dynamic_linker=no 15484 ;; 15485esac 15486echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15487echo "${ECHO_T}$dynamic_linker" >&6 15488test "$dynamic_linker" = no && can_build_shared=no 15489 15490echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15491echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15492hardcode_action_F77= 15493if test -n "$hardcode_libdir_flag_spec_F77" || \ 15494 test -n "$runpath_var_F77" || \ 15495 test "X$hardcode_automatic_F77" = "Xyes" ; then 15496 15497 # We can hardcode non-existant directories. 15498 if test "$hardcode_direct_F77" != no && 15499 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15500 # have to relink, otherwise we might link with an installed library 15501 # when we should be linking with a yet-to-be-installed one 15502 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15503 test "$hardcode_minus_L_F77" != no; then 15504 # Linking always hardcodes the temporary library directory. 15505 hardcode_action_F77=relink 15506 else 15507 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15508 hardcode_action_F77=immediate 15509 fi 15510else 15511 # We cannot hardcode anything, or else we can only hardcode existing 15512 # directories. 15513 hardcode_action_F77=unsupported 15514fi 15515echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15516echo "${ECHO_T}$hardcode_action_F77" >&6 15517 15518if test "$hardcode_action_F77" = relink; then 15519 # Fast installation is not supported 15520 enable_fast_install=no 15521elif test "$shlibpath_overrides_runpath" = yes || 15522 test "$enable_shared" = no; then 15523 # Fast installation is not necessary 15524 enable_fast_install=needless 15525fi 15526 15527striplib= 15528old_striplib= 15529echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15530echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15531if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15532 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15533 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15534 echo "$as_me:$LINENO: result: yes" >&5 15535echo "${ECHO_T}yes" >&6 15536else 15537# FIXME - insert some real tests, host_os isn't really good enough 15538 case $host_os in 15539 darwin*) 15540 if test -n "$STRIP" ; then 15541 striplib="$STRIP -x" 15542 echo "$as_me:$LINENO: result: yes" >&5 15543echo "${ECHO_T}yes" >&6 15544 else 15545 echo "$as_me:$LINENO: result: no" >&5 15546echo "${ECHO_T}no" >&6 15547fi 15548 ;; 15549 *) 15550 echo "$as_me:$LINENO: result: no" >&5 15551echo "${ECHO_T}no" >&6 15552 ;; 15553 esac 15554fi 15555 15556 15557 15558# The else clause should only fire when bootstrapping the 15559# libtool distribution, otherwise you forgot to ship ltmain.sh 15560# with your package, and you will get complaints that there are 15561# no rules to generate ltmain.sh. 15562if test -f "$ltmain"; then 15563 # See if we are running on zsh, and set the options which allow our commands through 15564 # without removal of \ escapes. 15565 if test -n "${ZSH_VERSION+set}" ; then 15566 setopt NO_GLOB_SUBST 15567 fi 15568 # Now quote all the things that may contain metacharacters while being 15569 # careful not to overquote the AC_SUBSTed values. We take copies of the 15570 # variables and quote the copies for generation of the libtool script. 15571 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15572 SED SHELL STRIP \ 15573 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15574 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15575 deplibs_check_method reload_flag reload_cmds need_locks \ 15576 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15577 lt_cv_sys_global_symbol_to_c_name_address \ 15578 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15579 old_postinstall_cmds old_postuninstall_cmds \ 15580 compiler_F77 \ 15581 CC_F77 \ 15582 LD_F77 \ 15583 lt_prog_compiler_wl_F77 \ 15584 lt_prog_compiler_pic_F77 \ 15585 lt_prog_compiler_static_F77 \ 15586 lt_prog_compiler_no_builtin_flag_F77 \ 15587 export_dynamic_flag_spec_F77 \ 15588 thread_safe_flag_spec_F77 \ 15589 whole_archive_flag_spec_F77 \ 15590 enable_shared_with_static_runtimes_F77 \ 15591 old_archive_cmds_F77 \ 15592 old_archive_from_new_cmds_F77 \ 15593 predep_objects_F77 \ 15594 postdep_objects_F77 \ 15595 predeps_F77 \ 15596 postdeps_F77 \ 15597 compiler_lib_search_path_F77 \ 15598 archive_cmds_F77 \ 15599 archive_expsym_cmds_F77 \ 15600 postinstall_cmds_F77 \ 15601 postuninstall_cmds_F77 \ 15602 old_archive_from_expsyms_cmds_F77 \ 15603 allow_undefined_flag_F77 \ 15604 no_undefined_flag_F77 \ 15605 export_symbols_cmds_F77 \ 15606 hardcode_libdir_flag_spec_F77 \ 15607 hardcode_libdir_flag_spec_ld_F77 \ 15608 hardcode_libdir_separator_F77 \ 15609 hardcode_automatic_F77 \ 15610 module_cmds_F77 \ 15611 module_expsym_cmds_F77 \ 15612 lt_cv_prog_compiler_c_o_F77 \ 15613 exclude_expsyms_F77 \ 15614 include_expsyms_F77; do 15615 15616 case $var in 15617 old_archive_cmds_F77 | \ 15618 old_archive_from_new_cmds_F77 | \ 15619 archive_cmds_F77 | \ 15620 archive_expsym_cmds_F77 | \ 15621 module_cmds_F77 | \ 15622 module_expsym_cmds_F77 | \ 15623 old_archive_from_expsyms_cmds_F77 | \ 15624 export_symbols_cmds_F77 | \ 15625 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15626 postinstall_cmds | postuninstall_cmds | \ 15627 old_postinstall_cmds | old_postuninstall_cmds | \ 15628 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15629 # Double-quote double-evaled strings. 15630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15631 ;; 15632 *) 15633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15634 ;; 15635 esac 15636 done 15637 15638 case $lt_echo in 15639 *'\$0 --fallback-echo"') 15640 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15641 ;; 15642 esac 15643 15644cfgfile="$ofile" 15645 15646 cat <<__EOF__ >> "$cfgfile" 15647# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15648 15649# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15650 15651# Shell to use when invoking shell scripts. 15652SHELL=$lt_SHELL 15653 15654# Whether or not to build shared libraries. 15655build_libtool_libs=$enable_shared 15656 15657# Whether or not to build static libraries. 15658build_old_libs=$enable_static 15659 15660# Whether or not to add -lc for building shared libraries. 15661build_libtool_need_lc=$archive_cmds_need_lc_F77 15662 15663# Whether or not to disallow shared libs when runtime libs are static 15664allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15665 15666# Whether or not to optimize for fast installation. 15667fast_install=$enable_fast_install 15668 15669# The host system. 15670host_alias=$host_alias 15671host=$host 15672host_os=$host_os 15673 15674# The build system. 15675build_alias=$build_alias 15676build=$build 15677build_os=$build_os 15678 15679# An echo program that does not interpret backslashes. 15680echo=$lt_echo 15681 15682# The archiver. 15683AR=$lt_AR 15684AR_FLAGS=$lt_AR_FLAGS 15685 15686# A C compiler. 15687LTCC=$lt_LTCC 15688 15689# A language-specific compiler. 15690CC=$lt_compiler_F77 15691 15692# Is the compiler the GNU C compiler? 15693with_gcc=$GCC_F77 15694 15695# An ERE matcher. 15696EGREP=$lt_EGREP 15697 15698# The linker used to build libraries. 15699LD=$lt_LD_F77 15700 15701# Whether we need hard or soft links. 15702LN_S=$lt_LN_S 15703 15704# A BSD-compatible nm program. 15705NM=$lt_NM 15706 15707# A symbol stripping program 15708STRIP=$lt_STRIP 15709 15710# Used to examine libraries when file_magic_cmd begins "file" 15711MAGIC_CMD=$MAGIC_CMD 15712 15713# Used on cygwin: DLL creation program. 15714DLLTOOL="$DLLTOOL" 15715 15716# Used on cygwin: object dumper. 15717OBJDUMP="$OBJDUMP" 15718 15719# Used on cygwin: assembler. 15720AS="$AS" 15721 15722# The name of the directory that contains temporary libtool files. 15723objdir=$objdir 15724 15725# How to create reloadable object files. 15726reload_flag=$lt_reload_flag 15727reload_cmds=$lt_reload_cmds 15728 15729# How to pass a linker flag through the compiler. 15730wl=$lt_lt_prog_compiler_wl_F77 15731 15732# Object file suffix (normally "o"). 15733objext="$ac_objext" 15734 15735# Old archive suffix (normally "a"). 15736libext="$libext" 15737 15738# Shared library suffix (normally ".so"). 15739shrext_cmds='$shrext_cmds' 15740 15741# Executable file suffix (normally ""). 15742exeext="$exeext" 15743 15744# Additional compiler flags for building library objects. 15745pic_flag=$lt_lt_prog_compiler_pic_F77 15746pic_mode=$pic_mode 15747 15748# What is the maximum length of a command? 15749max_cmd_len=$lt_cv_sys_max_cmd_len 15750 15751# Does compiler simultaneously support -c and -o options? 15752compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15753 15754# Must we lock files when doing compilation? 15755need_locks=$lt_need_locks 15756 15757# Do we need the lib prefix for modules? 15758need_lib_prefix=$need_lib_prefix 15759 15760# Do we need a version for libraries? 15761need_version=$need_version 15762 15763# Whether dlopen is supported. 15764dlopen_support=$enable_dlopen 15765 15766# Whether dlopen of programs is supported. 15767dlopen_self=$enable_dlopen_self 15768 15769# Whether dlopen of statically linked programs is supported. 15770dlopen_self_static=$enable_dlopen_self_static 15771 15772# Compiler flag to prevent dynamic linking. 15773link_static_flag=$lt_lt_prog_compiler_static_F77 15774 15775# Compiler flag to turn off builtin functions. 15776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15777 15778# Compiler flag to allow reflexive dlopens. 15779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15780 15781# Compiler flag to generate shared objects directly from archives. 15782whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15783 15784# Compiler flag to generate thread-safe objects. 15785thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15786 15787# Library versioning type. 15788version_type=$version_type 15789 15790# Format of library name prefix. 15791libname_spec=$lt_libname_spec 15792 15793# List of archive names. First name is the real one, the rest are links. 15794# The last name is the one that the linker finds with -lNAME. 15795library_names_spec=$lt_library_names_spec 15796 15797# The coded name of the library, if different from the real name. 15798soname_spec=$lt_soname_spec 15799 15800# Commands used to build and install an old-style archive. 15801RANLIB=$lt_RANLIB 15802old_archive_cmds=$lt_old_archive_cmds_F77 15803old_postinstall_cmds=$lt_old_postinstall_cmds 15804old_postuninstall_cmds=$lt_old_postuninstall_cmds 15805 15806# Create an old-style archive from a shared archive. 15807old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15808 15809# Create a temporary old-style archive to link instead of a shared archive. 15810old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15811 15812# Commands used to build and install a shared archive. 15813archive_cmds=$lt_archive_cmds_F77 15814archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15815postinstall_cmds=$lt_postinstall_cmds 15816postuninstall_cmds=$lt_postuninstall_cmds 15817 15818# Commands used to build a loadable module (assumed same as above if empty) 15819module_cmds=$lt_module_cmds_F77 15820module_expsym_cmds=$lt_module_expsym_cmds_F77 15821 15822# Commands to strip libraries. 15823old_striplib=$lt_old_striplib 15824striplib=$lt_striplib 15825 15826# Dependencies to place before the objects being linked to create a 15827# shared library. 15828predep_objects=$lt_predep_objects_F77 15829 15830# Dependencies to place after the objects being linked to create a 15831# shared library. 15832postdep_objects=$lt_postdep_objects_F77 15833 15834# Dependencies to place before the objects being linked to create a 15835# shared library. 15836predeps=$lt_predeps_F77 15837 15838# Dependencies to place after the objects being linked to create a 15839# shared library. 15840postdeps=$lt_postdeps_F77 15841 15842# The library search path used internally by the compiler when linking 15843# a shared library. 15844compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15845 15846# Method to check whether dependent libraries are shared objects. 15847deplibs_check_method=$lt_deplibs_check_method 15848 15849# Command to use when deplibs_check_method == file_magic. 15850file_magic_cmd=$lt_file_magic_cmd 15851 15852# Flag that allows shared libraries with undefined symbols to be built. 15853allow_undefined_flag=$lt_allow_undefined_flag_F77 15854 15855# Flag that forces no undefined symbols. 15856no_undefined_flag=$lt_no_undefined_flag_F77 15857 15858# Commands used to finish a libtool library installation in a directory. 15859finish_cmds=$lt_finish_cmds 15860 15861# Same as above, but a single script fragment to be evaled but not shown. 15862finish_eval=$lt_finish_eval 15863 15864# Take the output of nm and produce a listing of raw symbols and C names. 15865global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15866 15867# Transform the output of nm in a proper C declaration 15868global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15869 15870# Transform the output of nm in a C name address pair 15871global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15872 15873# This is the shared library runtime path variable. 15874runpath_var=$runpath_var 15875 15876# This is the shared library path variable. 15877shlibpath_var=$shlibpath_var 15878 15879# Is shlibpath searched before the hard-coded library search path? 15880shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15881 15882# How to hardcode a shared library path into an executable. 15883hardcode_action=$hardcode_action_F77 15884 15885# Whether we should hardcode library paths into libraries. 15886hardcode_into_libs=$hardcode_into_libs 15887 15888# Flag to hardcode \$libdir into a binary during linking. 15889# This must work even if \$libdir does not exist. 15890hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15891 15892# If ld is used when linking, flag to hardcode \$libdir into 15893# a binary during linking. This must work even if \$libdir does 15894# not exist. 15895hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15896 15897# Whether we need a single -rpath flag with a separated argument. 15898hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15899 15900# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15901# resulting binary. 15902hardcode_direct=$hardcode_direct_F77 15903 15904# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15905# resulting binary. 15906hardcode_minus_L=$hardcode_minus_L_F77 15907 15908# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15909# the resulting binary. 15910hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15911 15912# Set to yes if building a shared library automatically hardcodes DIR into the library 15913# and all subsequent libraries and executables linked against it. 15914hardcode_automatic=$hardcode_automatic_F77 15915 15916# Variables whose values should be saved in libtool wrapper scripts and 15917# restored at relink time. 15918variables_saved_for_relink="$variables_saved_for_relink" 15919 15920# Whether libtool must link a program against all its dependency libraries. 15921link_all_deplibs=$link_all_deplibs_F77 15922 15923# Compile-time system search path for libraries 15924sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15925 15926# Run-time system search path for libraries 15927sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15928 15929# Fix the shell variable \$srcfile for the compiler. 15930fix_srcfile_path="$fix_srcfile_path_F77" 15931 15932# Set to yes if exported symbols are required. 15933always_export_symbols=$always_export_symbols_F77 15934 15935# The commands to list exported symbols. 15936export_symbols_cmds=$lt_export_symbols_cmds_F77 15937 15938# The commands to extract the exported symbol list from a shared archive. 15939extract_expsyms_cmds=$lt_extract_expsyms_cmds 15940 15941# Symbols that should not be listed in the preloaded symbols. 15942exclude_expsyms=$lt_exclude_expsyms_F77 15943 15944# Symbols that must always be exported. 15945include_expsyms=$lt_include_expsyms_F77 15946 15947# ### END LIBTOOL TAG CONFIG: $tagname 15948 15949__EOF__ 15950 15951 15952else 15953 # If there is no Makefile yet, we rely on a make rule to execute 15954 # `config.status --recheck' to rerun these tests and create the 15955 # libtool script then. 15956 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15957 if test -f "$ltmain_in"; then 15958 test -f Makefile && make "$ltmain" 15959 fi 15960fi 15961 15962 15963ac_ext=cc 15964ac_cpp='$CXXCPP $CPPFLAGS' 15965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15968 15969CC="$lt_save_CC" 15970 15971 else 15972 tagname="" 15973 fi 15974 ;; 15975 15976 GCJ) 15977 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15978 15979 15980 15981# Source file extension for Java test sources. 15982ac_ext=java 15983 15984# Object file extension for compiled Java test sources. 15985objext=o 15986objext_GCJ=$objext 15987 15988# Code to be used in simple compile tests 15989lt_simple_compile_test_code="class foo {}\n" 15990 15991# Code to be used in simple link tests 15992lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15993 15994# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15995 15996# If no C compiler was specified, use CC. 15997LTCC=${LTCC-"$CC"} 15998 15999# Allow CC to be a program name with arguments. 16000compiler=$CC 16001 16002 16003# save warnings/boilerplate of simple test code 16004ac_outfile=conftest.$ac_objext 16005printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16007_lt_compiler_boilerplate=`cat conftest.err` 16008$rm conftest* 16009 16010ac_outfile=conftest.$ac_objext 16011printf "$lt_simple_link_test_code" >conftest.$ac_ext 16012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16013_lt_linker_boilerplate=`cat conftest.err` 16014$rm conftest* 16015 16016 16017# Allow CC to be a program name with arguments. 16018lt_save_CC="$CC" 16019CC=${GCJ-"gcj"} 16020compiler=$CC 16021compiler_GCJ=$CC 16022for cc_temp in $compiler""; do 16023 case $cc_temp in 16024 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16025 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16026 \-*) ;; 16027 *) break;; 16028 esac 16029done 16030cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16031 16032 16033# GCJ did not exist at the time GCC didn't implicitly link libc in. 16034archive_cmds_need_lc_GCJ=no 16035 16036old_archive_cmds_GCJ=$old_archive_cmds 16037 16038 16039lt_prog_compiler_no_builtin_flag_GCJ= 16040 16041if test "$GCC" = yes; then 16042 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16043 16044 16045echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16046echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16047if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16048 echo $ECHO_N "(cached) $ECHO_C" >&6 16049else 16050 lt_cv_prog_compiler_rtti_exceptions=no 16051 ac_outfile=conftest.$ac_objext 16052 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16053 lt_compiler_flag="-fno-rtti -fno-exceptions" 16054 # Insert the option either (1) after the last *FLAGS variable, or 16055 # (2) before a word containing "conftest.", or (3) at the end. 16056 # Note that $ac_compile itself does not contain backslashes and begins 16057 # with a dollar sign (not a hyphen), so the echo should work correctly. 16058 # The option is referenced via a variable to avoid confusing sed. 16059 lt_compile=`echo "$ac_compile" | $SED \ 16060 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16062 -e 's:$: $lt_compiler_flag:'` 16063 (eval echo "\"\$as_me:16063: $lt_compile\"" >&5) 16064 (eval "$lt_compile" 2>conftest.err) 16065 ac_status=$? 16066 cat conftest.err >&5 16067 echo "$as_me:16067: \$? = $ac_status" >&5 16068 if (exit $ac_status) && test -s "$ac_outfile"; then 16069 # The compiler can only warn and ignore the option if not recognized 16070 # So say no if there are warnings other than the usual output. 16071 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16072 $SED '/^$/d' conftest.err >conftest.er2 16073 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16074 lt_cv_prog_compiler_rtti_exceptions=yes 16075 fi 16076 fi 16077 $rm conftest* 16078 16079fi 16080echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16081echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16082 16083if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16084 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16085else 16086 : 16087fi 16088 16089fi 16090 16091lt_prog_compiler_wl_GCJ= 16092lt_prog_compiler_pic_GCJ= 16093lt_prog_compiler_static_GCJ= 16094 16095echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16096echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16097 16098 if test "$GCC" = yes; then 16099 lt_prog_compiler_wl_GCJ='-Wl,' 16100 lt_prog_compiler_static_GCJ='-static' 16101 16102 case $host_os in 16103 aix*) 16104 # All AIX code is PIC. 16105 if test "$host_cpu" = ia64; then 16106 # AIX 5 now supports IA64 processor 16107 lt_prog_compiler_static_GCJ='-Bstatic' 16108 fi 16109 ;; 16110 16111 amigaos*) 16112 # FIXME: we need at least 68020 code to build shared libraries, but 16113 # adding the `-m68020' flag to GCC prevents building anything better, 16114 # like `-m68040'. 16115 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16116 ;; 16117 16118 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16119 # PIC is the default for these OSes. 16120 ;; 16121 16122 mingw* | pw32* | os2*) 16123 # This hack is so that the source file can tell whether it is being 16124 # built for inclusion in a dll (and should export symbols for example). 16125 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16126 ;; 16127 16128 darwin* | rhapsody*) 16129 # PIC is the default on this platform 16130 # Common symbols not allowed in MH_DYLIB files 16131 lt_prog_compiler_pic_GCJ='-fno-common' 16132 ;; 16133 16134 msdosdjgpp*) 16135 # Just because we use GCC doesn't mean we suddenly get shared libraries 16136 # on systems that don't support them. 16137 lt_prog_compiler_can_build_shared_GCJ=no 16138 enable_shared=no 16139 ;; 16140 16141 sysv4*MP*) 16142 if test -d /usr/nec; then 16143 lt_prog_compiler_pic_GCJ=-Kconform_pic 16144 fi 16145 ;; 16146 16147 hpux*) 16148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16149 # not for PA HP-UX. 16150 case "$host_cpu" in 16151 hppa*64*|ia64*) 16152 # +Z the default 16153 ;; 16154 *) 16155 lt_prog_compiler_pic_GCJ='-fPIC' 16156 ;; 16157 esac 16158 ;; 16159 16160 *) 16161 lt_prog_compiler_pic_GCJ='-fPIC' 16162 ;; 16163 esac 16164 else 16165 # PORTME Check for flag to pass linker flags through the system compiler. 16166 case $host_os in 16167 aix*) 16168 lt_prog_compiler_wl_GCJ='-Wl,' 16169 if test "$host_cpu" = ia64; then 16170 # AIX 5 now supports IA64 processor 16171 lt_prog_compiler_static_GCJ='-Bstatic' 16172 else 16173 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16174 fi 16175 ;; 16176 darwin*) 16177 # PIC is the default on this platform 16178 # Common symbols not allowed in MH_DYLIB files 16179 case $cc_basename in 16180 xlc*) 16181 lt_prog_compiler_pic_GCJ='-qnocommon' 16182 lt_prog_compiler_wl_GCJ='-Wl,' 16183 ;; 16184 esac 16185 ;; 16186 16187 mingw* | pw32* | os2*) 16188 # This hack is so that the source file can tell whether it is being 16189 # built for inclusion in a dll (and should export symbols for example). 16190 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16191 ;; 16192 16193 hpux9* | hpux10* | hpux11*) 16194 lt_prog_compiler_wl_GCJ='-Wl,' 16195 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16196 # not for PA HP-UX. 16197 case "$host_cpu" in 16198 hppa*64*|ia64*) 16199 # +Z the default 16200 ;; 16201 *) 16202 lt_prog_compiler_pic_GCJ='+Z' 16203 ;; 16204 esac 16205 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16206 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16207 ;; 16208 16209 irix5* | irix6* | nonstopux*) 16210 lt_prog_compiler_wl_GCJ='-Wl,' 16211 # PIC (with -KPIC) is the default. 16212 lt_prog_compiler_static_GCJ='-non_shared' 16213 ;; 16214 16215 newsos6) 16216 lt_prog_compiler_pic_GCJ='-KPIC' 16217 lt_prog_compiler_static_GCJ='-Bstatic' 16218 ;; 16219 16220 linux*) 16221 case $cc_basename in 16222 icc* | ecc*) 16223 lt_prog_compiler_wl_GCJ='-Wl,' 16224 lt_prog_compiler_pic_GCJ='-KPIC' 16225 lt_prog_compiler_static_GCJ='-static' 16226 ;; 16227 pgcc* | pgf77* | pgf90*) 16228 # Portland Group compilers (*not* the Pentium gcc compiler, 16229 # which looks to be a dead project) 16230 lt_prog_compiler_wl_GCJ='-Wl,' 16231 lt_prog_compiler_pic_GCJ='-fpic' 16232 lt_prog_compiler_static_GCJ='-static' 16233 ;; 16234 ccc*) 16235 lt_prog_compiler_wl_GCJ='-Wl,' 16236 # All Alpha code is PIC. 16237 lt_prog_compiler_static_GCJ='-non_shared' 16238 ;; 16239 esac 16240 ;; 16241 16242 osf3* | osf4* | osf5*) 16243 lt_prog_compiler_wl_GCJ='-Wl,' 16244 # All OSF/1 code is PIC. 16245 lt_prog_compiler_static_GCJ='-non_shared' 16246 ;; 16247 16248 sco3.2v5*) 16249 lt_prog_compiler_pic_GCJ='-Kpic' 16250 lt_prog_compiler_static_GCJ='-dn' 16251 ;; 16252 16253 solaris*) 16254 lt_prog_compiler_pic_GCJ='-KPIC' 16255 lt_prog_compiler_static_GCJ='-Bstatic' 16256 case $cc_basename in 16257 f77* | f90* | f95*) 16258 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16259 *) 16260 lt_prog_compiler_wl_GCJ='-Wl,';; 16261 esac 16262 ;; 16263 16264 sunos4*) 16265 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16266 lt_prog_compiler_pic_GCJ='-PIC' 16267 lt_prog_compiler_static_GCJ='-Bstatic' 16268 ;; 16269 16270 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16271 lt_prog_compiler_wl_GCJ='-Wl,' 16272 lt_prog_compiler_pic_GCJ='-KPIC' 16273 lt_prog_compiler_static_GCJ='-Bstatic' 16274 ;; 16275 16276 sysv4*MP*) 16277 if test -d /usr/nec ;then 16278 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16279 lt_prog_compiler_static_GCJ='-Bstatic' 16280 fi 16281 ;; 16282 16283 unicos*) 16284 lt_prog_compiler_wl_GCJ='-Wl,' 16285 lt_prog_compiler_can_build_shared_GCJ=no 16286 ;; 16287 16288 uts4*) 16289 lt_prog_compiler_pic_GCJ='-pic' 16290 lt_prog_compiler_static_GCJ='-Bstatic' 16291 ;; 16292 16293 *) 16294 lt_prog_compiler_can_build_shared_GCJ=no 16295 ;; 16296 esac 16297 fi 16298 16299echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16300echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16301 16302# 16303# Check to make sure the PIC flag actually works. 16304# 16305if test -n "$lt_prog_compiler_pic_GCJ"; then 16306 16307echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16308echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16309if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16310 echo $ECHO_N "(cached) $ECHO_C" >&6 16311else 16312 lt_prog_compiler_pic_works_GCJ=no 16313 ac_outfile=conftest.$ac_objext 16314 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16315 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16316 # Insert the option either (1) after the last *FLAGS variable, or 16317 # (2) before a word containing "conftest.", or (3) at the end. 16318 # Note that $ac_compile itself does not contain backslashes and begins 16319 # with a dollar sign (not a hyphen), so the echo should work correctly. 16320 # The option is referenced via a variable to avoid confusing sed. 16321 lt_compile=`echo "$ac_compile" | $SED \ 16322 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16324 -e 's:$: $lt_compiler_flag:'` 16325 (eval echo "\"\$as_me:16325: $lt_compile\"" >&5) 16326 (eval "$lt_compile" 2>conftest.err) 16327 ac_status=$? 16328 cat conftest.err >&5 16329 echo "$as_me:16329: \$? = $ac_status" >&5 16330 if (exit $ac_status) && test -s "$ac_outfile"; then 16331 # The compiler can only warn and ignore the option if not recognized 16332 # So say no if there are warnings other than the usual output. 16333 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16334 $SED '/^$/d' conftest.err >conftest.er2 16335 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16336 lt_prog_compiler_pic_works_GCJ=yes 16337 fi 16338 fi 16339 $rm conftest* 16340 16341fi 16342echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16343echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16344 16345if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16346 case $lt_prog_compiler_pic_GCJ in 16347 "" | " "*) ;; 16348 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16349 esac 16350else 16351 lt_prog_compiler_pic_GCJ= 16352 lt_prog_compiler_can_build_shared_GCJ=no 16353fi 16354 16355fi 16356case "$host_os" in 16357 # For platforms which do not support PIC, -DPIC is meaningless: 16358 *djgpp*) 16359 lt_prog_compiler_pic_GCJ= 16360 ;; 16361 *) 16362 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16363 ;; 16364esac 16365 16366echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16367echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16368if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16369 echo $ECHO_N "(cached) $ECHO_C" >&6 16370else 16371 lt_cv_prog_compiler_c_o_GCJ=no 16372 $rm -r conftest 2>/dev/null 16373 mkdir conftest 16374 cd conftest 16375 mkdir out 16376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16377 16378 lt_compiler_flag="-o out/conftest2.$ac_objext" 16379 # Insert the option either (1) after the last *FLAGS variable, or 16380 # (2) before a word containing "conftest.", or (3) at the end. 16381 # Note that $ac_compile itself does not contain backslashes and begins 16382 # with a dollar sign (not a hyphen), so the echo should work correctly. 16383 lt_compile=`echo "$ac_compile" | $SED \ 16384 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16386 -e 's:$: $lt_compiler_flag:'` 16387 (eval echo "\"\$as_me:16387: $lt_compile\"" >&5) 16388 (eval "$lt_compile" 2>out/conftest.err) 16389 ac_status=$? 16390 cat out/conftest.err >&5 16391 echo "$as_me:16391: \$? = $ac_status" >&5 16392 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16393 then 16394 # The compiler can only warn and ignore the option if not recognized 16395 # So say no if there are warnings 16396 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16397 $SED '/^$/d' out/conftest.err >out/conftest.er2 16398 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16399 lt_cv_prog_compiler_c_o_GCJ=yes 16400 fi 16401 fi 16402 chmod u+w . 16403 $rm conftest* 16404 # SGI C++ compiler will create directory out/ii_files/ for 16405 # template instantiation 16406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16407 $rm out/* && rmdir out 16408 cd .. 16409 rmdir conftest 16410 $rm conftest* 16411 16412fi 16413echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16414echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16415 16416 16417hard_links="nottested" 16418if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16419 # do not overwrite the value of need_locks provided by the user 16420 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16421echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16422 hard_links=yes 16423 $rm conftest* 16424 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16425 touch conftest.a 16426 ln conftest.a conftest.b 2>&5 || hard_links=no 16427 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16428 echo "$as_me:$LINENO: result: $hard_links" >&5 16429echo "${ECHO_T}$hard_links" >&6 16430 if test "$hard_links" = no; then 16431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16432echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16433 need_locks=warn 16434 fi 16435else 16436 need_locks=no 16437fi 16438 16439echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16440echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16441 16442 runpath_var= 16443 allow_undefined_flag_GCJ= 16444 enable_shared_with_static_runtimes_GCJ=no 16445 archive_cmds_GCJ= 16446 archive_expsym_cmds_GCJ= 16447 old_archive_From_new_cmds_GCJ= 16448 old_archive_from_expsyms_cmds_GCJ= 16449 export_dynamic_flag_spec_GCJ= 16450 whole_archive_flag_spec_GCJ= 16451 thread_safe_flag_spec_GCJ= 16452 hardcode_libdir_flag_spec_GCJ= 16453 hardcode_libdir_flag_spec_ld_GCJ= 16454 hardcode_libdir_separator_GCJ= 16455 hardcode_direct_GCJ=no 16456 hardcode_minus_L_GCJ=no 16457 hardcode_shlibpath_var_GCJ=unsupported 16458 link_all_deplibs_GCJ=unknown 16459 hardcode_automatic_GCJ=no 16460 module_cmds_GCJ= 16461 module_expsym_cmds_GCJ= 16462 always_export_symbols_GCJ=no 16463 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16464 # include_expsyms should be a list of space-separated symbols to be *always* 16465 # included in the symbol list 16466 include_expsyms_GCJ= 16467 # exclude_expsyms can be an extended regexp of symbols to exclude 16468 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16470 # as well as any symbol that contains `d'. 16471 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16473 # platforms (ab)use it in PIC code, but their linkers get confused if 16474 # the symbol is explicitly referenced. Since portable code cannot 16475 # rely on this symbol name, it's probably fine to never include it in 16476 # preloaded symbol tables. 16477 extract_expsyms_cmds= 16478 # Just being paranoid about ensuring that cc_basename is set. 16479 for cc_temp in $compiler""; do 16480 case $cc_temp in 16481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16483 \-*) ;; 16484 *) break;; 16485 esac 16486done 16487cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16488 16489 case $host_os in 16490 cygwin* | mingw* | pw32*) 16491 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16492 # When not using gcc, we currently assume that we are using 16493 # Microsoft Visual C++. 16494 if test "$GCC" != yes; then 16495 with_gnu_ld=no 16496 fi 16497 ;; 16498 openbsd*) 16499 with_gnu_ld=no 16500 ;; 16501 esac 16502 16503 ld_shlibs_GCJ=yes 16504 if test "$with_gnu_ld" = yes; then 16505 # If archive_cmds runs LD, not CC, wlarc should be empty 16506 wlarc='${wl}' 16507 16508 # Set some defaults for GNU ld with shared library support. These 16509 # are reset later if shared libraries are not supported. Putting them 16510 # here allows them to be overridden if necessary. 16511 runpath_var=LD_RUN_PATH 16512 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16513 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16514 # ancient GNU ld didn't support --whole-archive et. al. 16515 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16516 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16517 else 16518 whole_archive_flag_spec_GCJ= 16519 fi 16520 supports_anon_versioning=no 16521 case `$LD -v 2>/dev/null` in 16522 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16523 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16524 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16525 *\ 2.11.*) ;; # other 2.11 versions 16526 *) supports_anon_versioning=yes ;; 16527 esac 16528 16529 # See if GNU ld supports shared libraries. 16530 case $host_os in 16531 aix3* | aix4* | aix5*) 16532 # On AIX/PPC, the GNU linker is very broken 16533 if test "$host_cpu" != ia64; then 16534 ld_shlibs_GCJ=no 16535 cat <<EOF 1>&2 16536 16537*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16538*** to be unable to reliably create shared libraries on AIX. 16539*** Therefore, libtool is disabling shared libraries support. If you 16540*** really care for shared libraries, you may want to modify your PATH 16541*** so that a non-GNU linker is found, and then restart. 16542 16543EOF 16544 fi 16545 ;; 16546 16547 amigaos*) 16548 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)' 16549 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16550 hardcode_minus_L_GCJ=yes 16551 16552 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16553 # that the semantics of dynamic libraries on AmigaOS, at least up 16554 # to version 4, is to share data among multiple programs linked 16555 # with the same dynamic library. Since this doesn't match the 16556 # behavior of shared libraries on other platforms, we can't use 16557 # them. 16558 ld_shlibs_GCJ=no 16559 ;; 16560 16561 beos*) 16562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16563 allow_undefined_flag_GCJ=unsupported 16564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16565 # support --undefined. This deserves some investigation. FIXME 16566 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16567 else 16568 ld_shlibs_GCJ=no 16569 fi 16570 ;; 16571 16572 cygwin* | mingw* | pw32*) 16573 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16574 # as there is no search path for DLLs. 16575 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16576 allow_undefined_flag_GCJ=unsupported 16577 always_export_symbols_GCJ=no 16578 enable_shared_with_static_runtimes_GCJ=yes 16579 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16580 16581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16582 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16583 # If the export-symbols file already is a .def file (1st line 16584 # is EXPORTS), use it as is; otherwise, prepend... 16585 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16586 cp $export_symbols $output_objdir/$soname.def; 16587 else 16588 echo EXPORTS > $output_objdir/$soname.def; 16589 cat $export_symbols >> $output_objdir/$soname.def; 16590 fi~ 16591 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16592 else 16593 ld_shlibs_GCJ=no 16594 fi 16595 ;; 16596 16597 linux*) 16598 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16599 tmp_addflag= 16600 case $cc_basename,$host_cpu in 16601 pgcc*) # Portland Group C compiler 16602 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16603 tmp_addflag=' $pic_flag' 16604 ;; 16605 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 16606 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16607 tmp_addflag=' $pic_flag -Mnomain' ;; 16608 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16609 tmp_addflag=' -i_dynamic' ;; 16610 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16611 tmp_addflag=' -i_dynamic -nofor_main' ;; 16612 ifc* | ifort*) # Intel Fortran compiler 16613 tmp_addflag=' -nofor_main' ;; 16614 esac 16615 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16616 16617 if test $supports_anon_versioning = yes; then 16618 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16620 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16621 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16622 fi 16623 else 16624 ld_shlibs_GCJ=no 16625 fi 16626 ;; 16627 16628 netbsd*) 16629 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16630 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16631 wlarc= 16632 else 16633 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16634 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16635 fi 16636 ;; 16637 16638 solaris* | sysv5*) 16639 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16640 ld_shlibs_GCJ=no 16641 cat <<EOF 1>&2 16642 16643*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16644*** create shared libraries on Solaris systems. Therefore, libtool 16645*** is disabling shared libraries support. We urge you to upgrade GNU 16646*** binutils to release 2.9.1 or newer. Another option is to modify 16647*** your PATH or compiler configuration so that the native linker is 16648*** used, and then restart. 16649 16650EOF 16651 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16652 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16653 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16654 else 16655 ld_shlibs_GCJ=no 16656 fi 16657 ;; 16658 16659 sunos4*) 16660 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16661 wlarc= 16662 hardcode_direct_GCJ=yes 16663 hardcode_shlibpath_var_GCJ=no 16664 ;; 16665 16666 *) 16667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16668 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16669 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16670 else 16671 ld_shlibs_GCJ=no 16672 fi 16673 ;; 16674 esac 16675 16676 if test "$ld_shlibs_GCJ" = no; then 16677 runpath_var= 16678 hardcode_libdir_flag_spec_GCJ= 16679 export_dynamic_flag_spec_GCJ= 16680 whole_archive_flag_spec_GCJ= 16681 fi 16682 else 16683 # PORTME fill in a description of your system's linker (not GNU ld) 16684 case $host_os in 16685 aix3*) 16686 allow_undefined_flag_GCJ=unsupported 16687 always_export_symbols_GCJ=yes 16688 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' 16689 # Note: this linker hardcodes the directories in LIBPATH if there 16690 # are no directories specified by -L. 16691 hardcode_minus_L_GCJ=yes 16692 if test "$GCC" = yes && test -z "$link_static_flag"; then 16693 # Neither direct hardcoding nor static linking is supported with a 16694 # broken collect2. 16695 hardcode_direct_GCJ=unsupported 16696 fi 16697 ;; 16698 16699 aix4* | aix5*) 16700 if test "$host_cpu" = ia64; then 16701 # On IA64, the linker does run time linking by default, so we don't 16702 # have to do anything special. 16703 aix_use_runtimelinking=no 16704 exp_sym_flag='-Bexport' 16705 no_entry_flag="" 16706 else 16707 # If we're using GNU nm, then we don't want the "-C" option. 16708 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16710 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' 16711 else 16712 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' 16713 fi 16714 aix_use_runtimelinking=no 16715 16716 # Test if we are trying to use run time linking or normal 16717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16718 # need to do runtime linking. 16719 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16720 for ld_flag in $LDFLAGS; do 16721 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16722 aix_use_runtimelinking=yes 16723 break 16724 fi 16725 done 16726 esac 16727 16728 exp_sym_flag='-bexport' 16729 no_entry_flag='-bnoentry' 16730 fi 16731 16732 # When large executables or shared objects are built, AIX ld can 16733 # have problems creating the table of contents. If linking a library 16734 # or program results in "error TOC overflow" add -mminimal-toc to 16735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16737 16738 archive_cmds_GCJ='' 16739 hardcode_direct_GCJ=yes 16740 hardcode_libdir_separator_GCJ=':' 16741 link_all_deplibs_GCJ=yes 16742 16743 if test "$GCC" = yes; then 16744 case $host_os in aix4.[012]|aix4.[012].*) 16745 # We only want to do this on AIX 4.2 and lower, the check 16746 # below for broken collect2 doesn't work under 4.3+ 16747 collect2name=`${CC} -print-prog-name=collect2` 16748 if test -f "$collect2name" && \ 16749 strings "$collect2name" | grep resolve_lib_name >/dev/null 16750 then 16751 # We have reworked collect2 16752 hardcode_direct_GCJ=yes 16753 else 16754 # We have old collect2 16755 hardcode_direct_GCJ=unsupported 16756 # It fails to find uninstalled libraries when the uninstalled 16757 # path is not listed in the libpath. Setting hardcode_minus_L 16758 # to unsupported forces relinking 16759 hardcode_minus_L_GCJ=yes 16760 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16761 hardcode_libdir_separator_GCJ= 16762 fi 16763 esac 16764 shared_flag='-shared' 16765 if test "$aix_use_runtimelinking" = yes; then 16766 shared_flag="$shared_flag "'${wl}-G' 16767 fi 16768 else 16769 # not using gcc 16770 if test "$host_cpu" = ia64; then 16771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16772 # chokes on -Wl,-G. The following line is correct: 16773 shared_flag='-G' 16774 else 16775 if test "$aix_use_runtimelinking" = yes; then 16776 shared_flag='${wl}-G' 16777 else 16778 shared_flag='${wl}-bM:SRE' 16779 fi 16780 fi 16781 fi 16782 16783 # It seems that -bexpall does not export symbols beginning with 16784 # underscore (_), so it is better to generate a list of symbols to export. 16785 always_export_symbols_GCJ=yes 16786 if test "$aix_use_runtimelinking" = yes; then 16787 # Warning - without using the other runtime loading flags (-brtl), 16788 # -berok will link without error, but may produce a broken library. 16789 allow_undefined_flag_GCJ='-berok' 16790 # Determine the default libpath from the value encoded in an empty executable. 16791 cat >conftest.$ac_ext <<_ACEOF 16792/* confdefs.h. */ 16793_ACEOF 16794cat confdefs.h >>conftest.$ac_ext 16795cat >>conftest.$ac_ext <<_ACEOF 16796/* end confdefs.h. */ 16797 16798int 16799main () 16800{ 16801 16802 ; 16803 return 0; 16804} 16805_ACEOF 16806rm -f conftest.$ac_objext conftest$ac_exeext 16807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16808 (eval $ac_link) 2>conftest.er1 16809 ac_status=$? 16810 grep -v '^ *+' conftest.er1 >conftest.err 16811 rm -f conftest.er1 16812 cat conftest.err >&5 16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16814 (exit $ac_status); } && 16815 { ac_try='test -z "$ac_cxx_werror_flag" 16816 || test ! -s conftest.err' 16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16818 (eval $ac_try) 2>&5 16819 ac_status=$? 16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16821 (exit $ac_status); }; } && 16822 { ac_try='test -s conftest$ac_exeext' 16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16824 (eval $ac_try) 2>&5 16825 ac_status=$? 16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16827 (exit $ac_status); }; }; then 16828 16829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16830}'` 16831# Check for a 64-bit object if we didn't find anything. 16832if 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; } 16833}'`; fi 16834else 16835 echo "$as_me: failed program was:" >&5 16836sed 's/^/| /' conftest.$ac_ext >&5 16837 16838fi 16839rm -f conftest.err conftest.$ac_objext \ 16840 conftest$ac_exeext conftest.$ac_ext 16841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16842 16843 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16844 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" 16845 else 16846 if test "$host_cpu" = ia64; then 16847 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16848 allow_undefined_flag_GCJ="-z nodefs" 16849 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" 16850 else 16851 # Determine the default libpath from the value encoded in an empty executable. 16852 cat >conftest.$ac_ext <<_ACEOF 16853/* confdefs.h. */ 16854_ACEOF 16855cat confdefs.h >>conftest.$ac_ext 16856cat >>conftest.$ac_ext <<_ACEOF 16857/* end confdefs.h. */ 16858 16859int 16860main () 16861{ 16862 16863 ; 16864 return 0; 16865} 16866_ACEOF 16867rm -f conftest.$ac_objext conftest$ac_exeext 16868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16869 (eval $ac_link) 2>conftest.er1 16870 ac_status=$? 16871 grep -v '^ *+' conftest.er1 >conftest.err 16872 rm -f conftest.er1 16873 cat conftest.err >&5 16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16875 (exit $ac_status); } && 16876 { ac_try='test -z "$ac_cxx_werror_flag" 16877 || test ! -s conftest.err' 16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16879 (eval $ac_try) 2>&5 16880 ac_status=$? 16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16882 (exit $ac_status); }; } && 16883 { ac_try='test -s conftest$ac_exeext' 16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16885 (eval $ac_try) 2>&5 16886 ac_status=$? 16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16888 (exit $ac_status); }; }; then 16889 16890aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16891}'` 16892# Check for a 64-bit object if we didn't find anything. 16893if 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; } 16894}'`; fi 16895else 16896 echo "$as_me: failed program was:" >&5 16897sed 's/^/| /' conftest.$ac_ext >&5 16898 16899fi 16900rm -f conftest.err conftest.$ac_objext \ 16901 conftest$ac_exeext conftest.$ac_ext 16902if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16903 16904 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16905 # Warning - without using the other run time loading flags, 16906 # -berok will link without error, but may produce a broken library. 16907 no_undefined_flag_GCJ=' ${wl}-bernotok' 16908 allow_undefined_flag_GCJ=' ${wl}-berok' 16909 # -bexpall does not export symbols beginning with underscore (_) 16910 always_export_symbols_GCJ=yes 16911 # Exported symbols can be pulled into shared objects from archives 16912 whole_archive_flag_spec_GCJ=' ' 16913 archive_cmds_need_lc_GCJ=yes 16914 # This is similar to how AIX traditionally builds it's shared libraries. 16915 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' 16916 fi 16917 fi 16918 ;; 16919 16920 amigaos*) 16921 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)' 16922 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16923 hardcode_minus_L_GCJ=yes 16924 # see comment about different semantics on the GNU ld section 16925 ld_shlibs_GCJ=no 16926 ;; 16927 16928 bsdi[45]*) 16929 export_dynamic_flag_spec_GCJ=-rdynamic 16930 ;; 16931 16932 cygwin* | mingw* | pw32*) 16933 # When not using gcc, we currently assume that we are using 16934 # Microsoft Visual C++. 16935 # hardcode_libdir_flag_spec is actually meaningless, as there is 16936 # no search path for DLLs. 16937 hardcode_libdir_flag_spec_GCJ=' ' 16938 allow_undefined_flag_GCJ=unsupported 16939 # Tell ltmain to make .lib files, not .a files. 16940 libext=lib 16941 # Tell ltmain to make .dll files, not .so files. 16942 shrext_cmds=".dll" 16943 # FIXME: Setting linknames here is a bad hack. 16944 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16945 # The linker will automatically build a .lib file if we build a DLL. 16946 old_archive_From_new_cmds_GCJ='true' 16947 # FIXME: Should let the user specify the lib program. 16948 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16949 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16950 enable_shared_with_static_runtimes_GCJ=yes 16951 ;; 16952 16953 darwin* | rhapsody*) 16954 case "$host_os" in 16955 rhapsody* | darwin1.[012]) 16956 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16957 ;; 16958 *) # Darwin 1.3 on 16959 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16960 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16961 else 16962 case ${MACOSX_DEPLOYMENT_TARGET} in 16963 10.[012]) 16964 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16965 ;; 16966 10.*) 16967 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16968 ;; 16969 esac 16970 fi 16971 ;; 16972 esac 16973 archive_cmds_need_lc_GCJ=no 16974 hardcode_direct_GCJ=no 16975 hardcode_automatic_GCJ=yes 16976 hardcode_shlibpath_var_GCJ=unsupported 16977 whole_archive_flag_spec_GCJ='' 16978 link_all_deplibs_GCJ=yes 16979 if test "$GCC" = yes ; then 16980 output_verbose_link_cmd='echo' 16981 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16982 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16983 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16984 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}' 16985 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}' 16986 else 16987 case $cc_basename in 16988 xlc*) 16989 output_verbose_link_cmd='echo' 16990 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16991 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16992 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16993 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}' 16994 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}' 16995 ;; 16996 *) 16997 ld_shlibs_GCJ=no 16998 ;; 16999 esac 17000 fi 17001 ;; 17002 17003 dgux*) 17004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17005 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17006 hardcode_shlibpath_var_GCJ=no 17007 ;; 17008 17009 freebsd1*) 17010 ld_shlibs_GCJ=no 17011 ;; 17012 17013 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17014 # support. Future versions do this automatically, but an explicit c++rt0.o 17015 # does not break anything, and helps significantly (at the cost of a little 17016 # extra space). 17017 freebsd2.2*) 17018 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17019 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17020 hardcode_direct_GCJ=yes 17021 hardcode_shlibpath_var_GCJ=no 17022 ;; 17023 17024 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17025 freebsd2*) 17026 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17027 hardcode_direct_GCJ=yes 17028 hardcode_minus_L_GCJ=yes 17029 hardcode_shlibpath_var_GCJ=no 17030 ;; 17031 17032 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17033 freebsd* | kfreebsd*-gnu | dragonfly*) 17034 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17035 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17036 hardcode_direct_GCJ=yes 17037 hardcode_shlibpath_var_GCJ=no 17038 ;; 17039 17040 hpux9*) 17041 if test "$GCC" = yes; then 17042 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' 17043 else 17044 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' 17045 fi 17046 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17047 hardcode_libdir_separator_GCJ=: 17048 hardcode_direct_GCJ=yes 17049 17050 # hardcode_minus_L: Not really in the search PATH, 17051 # but as the default location of the library. 17052 hardcode_minus_L_GCJ=yes 17053 export_dynamic_flag_spec_GCJ='${wl}-E' 17054 ;; 17055 17056 hpux10* | hpux11*) 17057 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17058 case "$host_cpu" in 17059 hppa*64*|ia64*) 17060 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17061 ;; 17062 *) 17063 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17064 ;; 17065 esac 17066 else 17067 case "$host_cpu" in 17068 hppa*64*|ia64*) 17069 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17070 ;; 17071 *) 17072 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17073 ;; 17074 esac 17075 fi 17076 if test "$with_gnu_ld" = no; then 17077 case "$host_cpu" in 17078 hppa*64*) 17079 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17080 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17081 hardcode_libdir_separator_GCJ=: 17082 hardcode_direct_GCJ=no 17083 hardcode_shlibpath_var_GCJ=no 17084 ;; 17085 ia64*) 17086 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17087 hardcode_direct_GCJ=no 17088 hardcode_shlibpath_var_GCJ=no 17089 17090 # hardcode_minus_L: Not really in the search PATH, 17091 # but as the default location of the library. 17092 hardcode_minus_L_GCJ=yes 17093 ;; 17094 *) 17095 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17096 hardcode_libdir_separator_GCJ=: 17097 hardcode_direct_GCJ=yes 17098 export_dynamic_flag_spec_GCJ='${wl}-E' 17099 17100 # hardcode_minus_L: Not really in the search PATH, 17101 # but as the default location of the library. 17102 hardcode_minus_L_GCJ=yes 17103 ;; 17104 esac 17105 fi 17106 ;; 17107 17108 irix5* | irix6* | nonstopux*) 17109 if test "$GCC" = yes; then 17110 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' 17111 else 17112 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' 17113 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17114 fi 17115 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17116 hardcode_libdir_separator_GCJ=: 17117 link_all_deplibs_GCJ=yes 17118 ;; 17119 17120 netbsd*) 17121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17122 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17123 else 17124 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17125 fi 17126 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17127 hardcode_direct_GCJ=yes 17128 hardcode_shlibpath_var_GCJ=no 17129 ;; 17130 17131 newsos6) 17132 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17133 hardcode_direct_GCJ=yes 17134 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17135 hardcode_libdir_separator_GCJ=: 17136 hardcode_shlibpath_var_GCJ=no 17137 ;; 17138 17139 openbsd*) 17140 hardcode_direct_GCJ=yes 17141 hardcode_shlibpath_var_GCJ=no 17142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17143 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17144 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17145 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17146 export_dynamic_flag_spec_GCJ='${wl}-E' 17147 else 17148 case $host_os in 17149 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17150 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17151 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17152 ;; 17153 *) 17154 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17156 ;; 17157 esac 17158 fi 17159 ;; 17160 17161 os2*) 17162 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17163 hardcode_minus_L_GCJ=yes 17164 allow_undefined_flag_GCJ=unsupported 17165 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' 17166 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17167 ;; 17168 17169 osf3*) 17170 if test "$GCC" = yes; then 17171 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17172 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' 17173 else 17174 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17175 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' 17176 fi 17177 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17178 hardcode_libdir_separator_GCJ=: 17179 ;; 17180 17181 osf4* | osf5*) # as osf3* with the addition of -msym flag 17182 if test "$GCC" = yes; then 17183 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17184 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' 17185 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17186 else 17187 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17188 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' 17189 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~ 17190 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17191 17192 # Both c and cxx compiler support -rpath directly 17193 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17194 fi 17195 hardcode_libdir_separator_GCJ=: 17196 ;; 17197 17198 sco3.2v5*) 17199 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17200 hardcode_shlibpath_var_GCJ=no 17201 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17202 runpath_var=LD_RUN_PATH 17203 hardcode_runpath_var=yes 17204 ;; 17205 17206 solaris*) 17207 no_undefined_flag_GCJ=' -z text' 17208 if test "$GCC" = yes; then 17209 wlarc='${wl}' 17210 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17211 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17212 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17213 else 17214 wlarc='' 17215 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17216 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17217 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17218 fi 17219 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17220 hardcode_shlibpath_var_GCJ=no 17221 case $host_os in 17222 solaris2.[0-5] | solaris2.[0-5].*) ;; 17223 *) 17224 # The compiler driver will combine linker options so we 17225 # cannot just pass the convience library names through 17226 # without $wl, iff we do not link with $LD. 17227 # Luckily, gcc supports the same syntax we need for Sun Studio. 17228 # Supported since Solaris 2.6 (maybe 2.5.1?) 17229 case $wlarc in 17230 '') 17231 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17232 *) 17233 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17234 esac ;; 17235 esac 17236 link_all_deplibs_GCJ=yes 17237 ;; 17238 17239 sunos4*) 17240 if test "x$host_vendor" = xsequent; then 17241 # Use $CC to link under sequent, because it throws in some extra .o 17242 # files that make .init and .fini sections work. 17243 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17244 else 17245 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17246 fi 17247 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17248 hardcode_direct_GCJ=yes 17249 hardcode_minus_L_GCJ=yes 17250 hardcode_shlibpath_var_GCJ=no 17251 ;; 17252 17253 sysv4) 17254 case $host_vendor in 17255 sni) 17256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17257 hardcode_direct_GCJ=yes # is this really true??? 17258 ;; 17259 siemens) 17260 ## LD is ld it makes a PLAMLIB 17261 ## CC just makes a GrossModule. 17262 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17263 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17264 hardcode_direct_GCJ=no 17265 ;; 17266 motorola) 17267 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17268 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17269 ;; 17270 esac 17271 runpath_var='LD_RUN_PATH' 17272 hardcode_shlibpath_var_GCJ=no 17273 ;; 17274 17275 sysv4.3*) 17276 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17277 hardcode_shlibpath_var_GCJ=no 17278 export_dynamic_flag_spec_GCJ='-Bexport' 17279 ;; 17280 17281 sysv4*MP*) 17282 if test -d /usr/nec; then 17283 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17284 hardcode_shlibpath_var_GCJ=no 17285 runpath_var=LD_RUN_PATH 17286 hardcode_runpath_var=yes 17287 ld_shlibs_GCJ=yes 17288 fi 17289 ;; 17290 17291 sysv4.2uw2*) 17292 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17293 hardcode_direct_GCJ=yes 17294 hardcode_minus_L_GCJ=no 17295 hardcode_shlibpath_var_GCJ=no 17296 hardcode_runpath_var=yes 17297 runpath_var=LD_RUN_PATH 17298 ;; 17299 17300 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17301 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17302 if test "$GCC" = yes; then 17303 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17304 else 17305 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17306 fi 17307 runpath_var='LD_RUN_PATH' 17308 hardcode_shlibpath_var_GCJ=no 17309 ;; 17310 17311 sysv5*) 17312 no_undefined_flag_GCJ=' -z text' 17313 # $CC -shared without GNU ld will not create a library from C++ 17314 # object files and a static libstdc++, better avoid it by now 17315 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17316 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17318 hardcode_libdir_flag_spec_GCJ= 17319 hardcode_shlibpath_var_GCJ=no 17320 runpath_var='LD_RUN_PATH' 17321 ;; 17322 17323 uts4*) 17324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17325 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17326 hardcode_shlibpath_var_GCJ=no 17327 ;; 17328 17329 *) 17330 ld_shlibs_GCJ=no 17331 ;; 17332 esac 17333 fi 17334 17335echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17336echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17337test "$ld_shlibs_GCJ" = no && can_build_shared=no 17338 17339variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17340if test "$GCC" = yes; then 17341 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17342fi 17343 17344# 17345# Do we need to explicitly link libc? 17346# 17347case "x$archive_cmds_need_lc_GCJ" in 17348x|xyes) 17349 # Assume -lc should be added 17350 archive_cmds_need_lc_GCJ=yes 17351 17352 if test "$enable_shared" = yes && test "$GCC" = yes; then 17353 case $archive_cmds_GCJ in 17354 *'~'*) 17355 # FIXME: we may have to deal with multi-command sequences. 17356 ;; 17357 '$CC '*) 17358 # Test whether the compiler implicitly links with -lc since on some 17359 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17360 # to ld, don't add -lc before -lgcc. 17361 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17362echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17363 $rm conftest* 17364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17365 17366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17367 (eval $ac_compile) 2>&5 17368 ac_status=$? 17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17370 (exit $ac_status); } 2>conftest.err; then 17371 soname=conftest 17372 lib=conftest 17373 libobjs=conftest.$ac_objext 17374 deplibs= 17375 wl=$lt_prog_compiler_wl_GCJ 17376 compiler_flags=-v 17377 linker_flags=-v 17378 verstring= 17379 output_objdir=. 17380 libname=conftest 17381 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17382 allow_undefined_flag_GCJ= 17383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17384 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17385 ac_status=$? 17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17387 (exit $ac_status); } 17388 then 17389 archive_cmds_need_lc_GCJ=no 17390 else 17391 archive_cmds_need_lc_GCJ=yes 17392 fi 17393 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17394 else 17395 cat conftest.err 1>&5 17396 fi 17397 $rm conftest* 17398 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17399echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17400 ;; 17401 esac 17402 fi 17403 ;; 17404esac 17405 17406echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17407echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17408library_names_spec= 17409libname_spec='lib$name' 17410soname_spec= 17411shrext_cmds=".so" 17412postinstall_cmds= 17413postuninstall_cmds= 17414finish_cmds= 17415finish_eval= 17416shlibpath_var= 17417shlibpath_overrides_runpath=unknown 17418version_type=none 17419dynamic_linker="$host_os ld.so" 17420sys_lib_dlsearch_path_spec="/lib /usr/lib" 17421if test "$GCC" = yes; then 17422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17423 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17424 # if the path contains ";" then we assume it to be the separator 17425 # otherwise default to the standard path separator (i.e. ":") - it is 17426 # assumed that no part of a normal pathname contains ";" but that should 17427 # okay in the real world where ";" in dirpaths is itself problematic. 17428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17429 else 17430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17431 fi 17432else 17433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17434fi 17435need_lib_prefix=unknown 17436hardcode_into_libs=no 17437 17438# when you set need_version to no, make sure it does not cause -set_version 17439# flags to be left without arguments 17440need_version=unknown 17441 17442case $host_os in 17443aix3*) 17444 version_type=linux 17445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17446 shlibpath_var=LIBPATH 17447 17448 # AIX 3 has no versioning support, so we append a major version to the name. 17449 soname_spec='${libname}${release}${shared_ext}$major' 17450 ;; 17451 17452aix4* | aix5*) 17453 version_type=linux 17454 need_lib_prefix=no 17455 need_version=no 17456 hardcode_into_libs=yes 17457 if test "$host_cpu" = ia64; then 17458 # AIX 5 supports IA64 17459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17460 shlibpath_var=LD_LIBRARY_PATH 17461 else 17462 # With GCC up to 2.95.x, collect2 would create an import file 17463 # for dependence libraries. The import file would start with 17464 # the line `#! .'. This would cause the generated library to 17465 # depend on `.', always an invalid library. This was fixed in 17466 # development snapshots of GCC prior to 3.0. 17467 case $host_os in 17468 aix4 | aix4.[01] | aix4.[01].*) 17469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17470 echo ' yes ' 17471 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17472 : 17473 else 17474 can_build_shared=no 17475 fi 17476 ;; 17477 esac 17478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17479 # soname into executable. Probably we can add versioning support to 17480 # collect2, so additional links can be useful in future. 17481 if test "$aix_use_runtimelinking" = yes; then 17482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17483 # instead of lib<name>.a to let people know that these are not 17484 # typical AIX shared libraries. 17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17486 else 17487 # We preserve .a as extension for shared libraries through AIX4.2 17488 # and later when we are not doing run time linking. 17489 library_names_spec='${libname}${release}.a $libname.a' 17490 soname_spec='${libname}${release}${shared_ext}$major' 17491 fi 17492 shlibpath_var=LIBPATH 17493 fi 17494 ;; 17495 17496amigaos*) 17497 library_names_spec='$libname.ixlibrary $libname.a' 17498 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17499 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' 17500 ;; 17501 17502beos*) 17503 library_names_spec='${libname}${shared_ext}' 17504 dynamic_linker="$host_os ld.so" 17505 shlibpath_var=LIBRARY_PATH 17506 ;; 17507 17508bsdi[45]*) 17509 version_type=linux 17510 need_version=no 17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17512 soname_spec='${libname}${release}${shared_ext}$major' 17513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17514 shlibpath_var=LD_LIBRARY_PATH 17515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17517 # the default ld.so.conf also contains /usr/contrib/lib and 17518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17519 # libtool to hard-code these into programs 17520 ;; 17521 17522cygwin* | mingw* | pw32*) 17523 version_type=windows 17524 shrext_cmds=".dll" 17525 need_version=no 17526 need_lib_prefix=no 17527 17528 case $GCC,$host_os in 17529 yes,cygwin* | yes,mingw* | yes,pw32*) 17530 library_names_spec='$libname.dll.a' 17531 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17532 postinstall_cmds='base_file=`basename \${file}`~ 17533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17534 dldir=$destdir/`dirname \$dlpath`~ 17535 test -d \$dldir || mkdir -p \$dldir~ 17536 $install_prog $dir/$dlname \$dldir/$dlname' 17537 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17538 dlpath=$dir/\$dldll~ 17539 $rm \$dlpath' 17540 shlibpath_overrides_runpath=yes 17541 17542 case $host_os in 17543 cygwin*) 17544 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17545 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17546 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17547 ;; 17548 mingw*) 17549 # MinGW DLLs use traditional 'lib' prefix 17550 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17552 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17553 # It is most probably a Windows format PATH printed by 17554 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17555 # path with ; separators, and with drive letters. We can handle the 17556 # drive letters (cygwin fileutils understands them), so leave them, 17557 # especially as we might pass files found there to a mingw objdump, 17558 # which wouldn't understand a cygwinified path. Ahh. 17559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17560 else 17561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17562 fi 17563 ;; 17564 pw32*) 17565 # pw32 DLLs use 'pw' prefix rather than 'lib' 17566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17567 ;; 17568 esac 17569 ;; 17570 17571 linux*) 17572 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 17573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17574 supports_anon_versioning=no 17575 case `$LD -v 2>/dev/null` in 17576 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17577 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17578 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17579 *\ 2.11.*) ;; # other 2.11 versions 17580 *) supports_anon_versioning=yes ;; 17581 esac 17582 if test $supports_anon_versioning = yes; then 17583 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 17584cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17585$echo "local: *; };" >> $output_objdir/$libname.ver~ 17586 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17587 else 17588 $archive_expsym_cmds="$archive_cmds" 17589 fi 17590 else 17591 ld_shlibs=no 17592 fi 17593 ;; 17594 17595 *) 17596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17597 ;; 17598 esac 17599 dynamic_linker='Win32 ld.exe' 17600 # FIXME: first we should search . and the directory the executable is in 17601 shlibpath_var=PATH 17602 ;; 17603 17604darwin* | rhapsody*) 17605 dynamic_linker="$host_os dyld" 17606 version_type=darwin 17607 need_lib_prefix=no 17608 need_version=no 17609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17610 soname_spec='${libname}${release}${major}$shared_ext' 17611 shlibpath_overrides_runpath=yes 17612 shlibpath_var=DYLD_LIBRARY_PATH 17613 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17615 if test "$GCC" = yes; then 17616 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"` 17617 else 17618 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17619 fi 17620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17621 ;; 17622 17623dgux*) 17624 version_type=linux 17625 need_lib_prefix=no 17626 need_version=no 17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17628 soname_spec='${libname}${release}${shared_ext}$major' 17629 shlibpath_var=LD_LIBRARY_PATH 17630 ;; 17631 17632freebsd1*) 17633 dynamic_linker=no 17634 ;; 17635 17636kfreebsd*-gnu) 17637 version_type=linux 17638 need_lib_prefix=no 17639 need_version=no 17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17641 soname_spec='${libname}${release}${shared_ext}$major' 17642 shlibpath_var=LD_LIBRARY_PATH 17643 shlibpath_overrides_runpath=no 17644 hardcode_into_libs=yes 17645 dynamic_linker='GNU ld.so' 17646 ;; 17647 17648freebsd* | dragonfly*) 17649 # DragonFly does not have aout. When/if they implement a new 17650 # versioning mechanism, adjust this. 17651 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17652 version_type=freebsd-$objformat 17653 case $version_type in 17654 freebsd-elf*) 17655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17656 need_version=no 17657 need_lib_prefix=no 17658 ;; 17659 freebsd-*) 17660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17661 need_version=yes 17662 ;; 17663 esac 17664 shlibpath_var=LD_LIBRARY_PATH 17665 case $host_os in 17666 freebsd2*) 17667 shlibpath_overrides_runpath=yes 17668 ;; 17669 freebsd3.[01]* | freebsdelf3.[01]*) 17670 shlibpath_overrides_runpath=yes 17671 hardcode_into_libs=yes 17672 ;; 17673 *) # from 3.2 on 17674 shlibpath_overrides_runpath=no 17675 hardcode_into_libs=yes 17676 ;; 17677 esac 17678 ;; 17679 17680gnu*) 17681 version_type=linux 17682 need_lib_prefix=no 17683 need_version=no 17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17685 soname_spec='${libname}${release}${shared_ext}$major' 17686 shlibpath_var=LD_LIBRARY_PATH 17687 hardcode_into_libs=yes 17688 ;; 17689 17690hpux9* | hpux10* | hpux11*) 17691 # Give a soname corresponding to the major version so that dld.sl refuses to 17692 # link against other versions. 17693 version_type=sunos 17694 need_lib_prefix=no 17695 need_version=no 17696 case "$host_cpu" in 17697 ia64*) 17698 shrext_cmds='.so' 17699 hardcode_into_libs=yes 17700 dynamic_linker="$host_os dld.so" 17701 shlibpath_var=LD_LIBRARY_PATH 17702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17704 soname_spec='${libname}${release}${shared_ext}$major' 17705 if test "X$HPUX_IA64_MODE" = X32; then 17706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17707 else 17708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17709 fi 17710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17711 ;; 17712 hppa*64*) 17713 shrext_cmds='.sl' 17714 hardcode_into_libs=yes 17715 dynamic_linker="$host_os dld.sl" 17716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17719 soname_spec='${libname}${release}${shared_ext}$major' 17720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17722 ;; 17723 *) 17724 shrext_cmds='.sl' 17725 dynamic_linker="$host_os dld.sl" 17726 shlibpath_var=SHLIB_PATH 17727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17729 soname_spec='${libname}${release}${shared_ext}$major' 17730 ;; 17731 esac 17732 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17733 postinstall_cmds='chmod 555 $lib' 17734 ;; 17735 17736irix5* | irix6* | nonstopux*) 17737 case $host_os in 17738 nonstopux*) version_type=nonstopux ;; 17739 *) 17740 if test "$lt_cv_prog_gnu_ld" = yes; then 17741 version_type=linux 17742 else 17743 version_type=irix 17744 fi ;; 17745 esac 17746 need_lib_prefix=no 17747 need_version=no 17748 soname_spec='${libname}${release}${shared_ext}$major' 17749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17750 case $host_os in 17751 irix5* | nonstopux*) 17752 libsuff= shlibsuff= 17753 ;; 17754 *) 17755 case $LD in # libtool.m4 will add one of these switches to LD 17756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17757 libsuff= shlibsuff= libmagic=32-bit;; 17758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17759 libsuff=32 shlibsuff=N32 libmagic=N32;; 17760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17761 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17762 *) libsuff= shlibsuff= libmagic=never-match;; 17763 esac 17764 ;; 17765 esac 17766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17767 shlibpath_overrides_runpath=no 17768 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17769 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17770 hardcode_into_libs=yes 17771 ;; 17772 17773# No shared lib support for Linux oldld, aout, or coff. 17774linux*oldld* | linux*aout* | linux*coff*) 17775 dynamic_linker=no 17776 ;; 17777 17778# This must be Linux ELF. 17779linux*) 17780 version_type=linux 17781 need_lib_prefix=no 17782 need_version=no 17783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17784 soname_spec='${libname}${release}${shared_ext}$major' 17785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17786 shlibpath_var=LD_LIBRARY_PATH 17787 shlibpath_overrides_runpath=no 17788 # This implies no fast_install, which is unacceptable. 17789 # Some rework will be needed to allow for fast_install 17790 # before this can be enabled. 17791 hardcode_into_libs=yes 17792 17793 # Append ld.so.conf contents to the search path 17794 if test -f /etc/ld.so.conf; then 17795 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17797 fi 17798 17799 case $host_cpu:$lt_cv_cc_64bit_output in 17800 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) 17801 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" 17802 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" 17803 ;; 17804 esac 17805 17806 # We used to test for /lib/ld.so.1 and disable shared libraries on 17807 # powerpc, because MkLinux only supported shared libraries with the 17808 # GNU dynamic linker. Since this was broken with cross compilers, 17809 # most powerpc-linux boxes support dynamic linking these days and 17810 # people can always --disable-shared, the test was removed, and we 17811 # assume the GNU/Linux dynamic linker is in use. 17812 dynamic_linker='GNU/Linux ld.so' 17813 17814 # Find out which ABI we are using (multilib Linux x86_64 hack). 17815 libsuff= 17816 case "$host_cpu" in 17817 x86_64*) 17818 echo '#line 17818 "configure"' > conftest.$ac_ext 17819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17820 (eval $ac_compile) 2>&5 17821 ac_status=$? 17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17823 (exit $ac_status); }; then 17824 case `/usr/bin/file conftest.$ac_objext` in 17825 *64-bit*) 17826 libsuff=64 17827 ;; 17828 esac 17829 fi 17830 rm -rf conftest* 17831 ;; 17832 *) 17833 ;; 17834 esac 17835 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 17836 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17837 ;; 17838 17839knetbsd*-gnu) 17840 version_type=linux 17841 need_lib_prefix=no 17842 need_version=no 17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17844 soname_spec='${libname}${release}${shared_ext}$major' 17845 shlibpath_var=LD_LIBRARY_PATH 17846 shlibpath_overrides_runpath=no 17847 hardcode_into_libs=yes 17848 dynamic_linker='GNU ld.so' 17849 ;; 17850 17851netbsd*) 17852 version_type=sunos 17853 need_lib_prefix=no 17854 need_version=no 17855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17858 dynamic_linker='NetBSD (a.out) ld.so' 17859 else 17860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17861 soname_spec='${libname}${release}${shared_ext}$major' 17862 dynamic_linker='NetBSD ld.elf_so' 17863 fi 17864 shlibpath_var=LD_LIBRARY_PATH 17865 shlibpath_overrides_runpath=yes 17866 hardcode_into_libs=yes 17867 ;; 17868 17869newsos6) 17870 version_type=linux 17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17872 shlibpath_var=LD_LIBRARY_PATH 17873 shlibpath_overrides_runpath=yes 17874 ;; 17875 17876nto-qnx*) 17877 version_type=linux 17878 need_lib_prefix=no 17879 need_version=no 17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17881 soname_spec='${libname}${release}${shared_ext}$major' 17882 shlibpath_var=LD_LIBRARY_PATH 17883 shlibpath_overrides_runpath=yes 17884 ;; 17885 17886openbsd*) 17887 version_type=sunos 17888 need_lib_prefix=no 17889 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17890 case $host_os in 17891 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17892 *) need_version=no ;; 17893 esac 17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17896 shlibpath_var=LD_LIBRARY_PATH 17897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17898 case $host_os in 17899 openbsd2.[89] | openbsd2.[89].*) 17900 shlibpath_overrides_runpath=no 17901 ;; 17902 *) 17903 shlibpath_overrides_runpath=yes 17904 ;; 17905 esac 17906 else 17907 shlibpath_overrides_runpath=yes 17908 fi 17909 ;; 17910 17911os2*) 17912 libname_spec='$name' 17913 shrext_cmds=".dll" 17914 need_lib_prefix=no 17915 library_names_spec='$libname${shared_ext} $libname.a' 17916 dynamic_linker='OS/2 ld.exe' 17917 shlibpath_var=LIBPATH 17918 ;; 17919 17920osf3* | osf4* | osf5*) 17921 version_type=osf 17922 need_lib_prefix=no 17923 need_version=no 17924 soname_spec='${libname}${release}${shared_ext}$major' 17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17926 shlibpath_var=LD_LIBRARY_PATH 17927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17929 ;; 17930 17931sco3.2v5*) 17932 version_type=osf 17933 soname_spec='${libname}${release}${shared_ext}$major' 17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17935 shlibpath_var=LD_LIBRARY_PATH 17936 ;; 17937 17938solaris*) 17939 version_type=linux 17940 need_lib_prefix=no 17941 need_version=no 17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17943 soname_spec='${libname}${release}${shared_ext}$major' 17944 shlibpath_var=LD_LIBRARY_PATH 17945 shlibpath_overrides_runpath=yes 17946 hardcode_into_libs=yes 17947 # ldd complains unless libraries are executable 17948 postinstall_cmds='chmod +x $lib' 17949 ;; 17950 17951sunos4*) 17952 version_type=sunos 17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17955 shlibpath_var=LD_LIBRARY_PATH 17956 shlibpath_overrides_runpath=yes 17957 if test "$with_gnu_ld" = yes; then 17958 need_lib_prefix=no 17959 fi 17960 need_version=yes 17961 ;; 17962 17963sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17964 version_type=linux 17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17966 soname_spec='${libname}${release}${shared_ext}$major' 17967 shlibpath_var=LD_LIBRARY_PATH 17968 case $host_vendor in 17969 sni) 17970 shlibpath_overrides_runpath=no 17971 need_lib_prefix=no 17972 export_dynamic_flag_spec='${wl}-Blargedynsym' 17973 runpath_var=LD_RUN_PATH 17974 ;; 17975 siemens) 17976 need_lib_prefix=no 17977 ;; 17978 motorola) 17979 need_lib_prefix=no 17980 need_version=no 17981 shlibpath_overrides_runpath=no 17982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17983 ;; 17984 esac 17985 ;; 17986 17987sysv4*MP*) 17988 if test -d /usr/nec ;then 17989 version_type=linux 17990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17991 soname_spec='$libname${shared_ext}.$major' 17992 shlibpath_var=LD_LIBRARY_PATH 17993 fi 17994 ;; 17995 17996uts4*) 17997 version_type=linux 17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17999 soname_spec='${libname}${release}${shared_ext}$major' 18000 shlibpath_var=LD_LIBRARY_PATH 18001 ;; 18002 18003*) 18004 dynamic_linker=no 18005 ;; 18006esac 18007echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18008echo "${ECHO_T}$dynamic_linker" >&6 18009test "$dynamic_linker" = no && can_build_shared=no 18010 18011echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18012echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18013hardcode_action_GCJ= 18014if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18015 test -n "$runpath_var_GCJ" || \ 18016 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18017 18018 # We can hardcode non-existant directories. 18019 if test "$hardcode_direct_GCJ" != no && 18020 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18021 # have to relink, otherwise we might link with an installed library 18022 # when we should be linking with a yet-to-be-installed one 18023 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18024 test "$hardcode_minus_L_GCJ" != no; then 18025 # Linking always hardcodes the temporary library directory. 18026 hardcode_action_GCJ=relink 18027 else 18028 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18029 hardcode_action_GCJ=immediate 18030 fi 18031else 18032 # We cannot hardcode anything, or else we can only hardcode existing 18033 # directories. 18034 hardcode_action_GCJ=unsupported 18035fi 18036echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18037echo "${ECHO_T}$hardcode_action_GCJ" >&6 18038 18039if test "$hardcode_action_GCJ" = relink; then 18040 # Fast installation is not supported 18041 enable_fast_install=no 18042elif test "$shlibpath_overrides_runpath" = yes || 18043 test "$enable_shared" = no; then 18044 # Fast installation is not necessary 18045 enable_fast_install=needless 18046fi 18047 18048striplib= 18049old_striplib= 18050echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18051echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18052if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18054 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18055 echo "$as_me:$LINENO: result: yes" >&5 18056echo "${ECHO_T}yes" >&6 18057else 18058# FIXME - insert some real tests, host_os isn't really good enough 18059 case $host_os in 18060 darwin*) 18061 if test -n "$STRIP" ; then 18062 striplib="$STRIP -x" 18063 echo "$as_me:$LINENO: result: yes" >&5 18064echo "${ECHO_T}yes" >&6 18065 else 18066 echo "$as_me:$LINENO: result: no" >&5 18067echo "${ECHO_T}no" >&6 18068fi 18069 ;; 18070 *) 18071 echo "$as_me:$LINENO: result: no" >&5 18072echo "${ECHO_T}no" >&6 18073 ;; 18074 esac 18075fi 18076 18077if test "x$enable_dlopen" != xyes; then 18078 enable_dlopen=unknown 18079 enable_dlopen_self=unknown 18080 enable_dlopen_self_static=unknown 18081else 18082 lt_cv_dlopen=no 18083 lt_cv_dlopen_libs= 18084 18085 case $host_os in 18086 beos*) 18087 lt_cv_dlopen="load_add_on" 18088 lt_cv_dlopen_libs= 18089 lt_cv_dlopen_self=yes 18090 ;; 18091 18092 mingw* | pw32*) 18093 lt_cv_dlopen="LoadLibrary" 18094 lt_cv_dlopen_libs= 18095 ;; 18096 18097 cygwin*) 18098 lt_cv_dlopen="dlopen" 18099 lt_cv_dlopen_libs= 18100 ;; 18101 18102 darwin*) 18103 # if libdl is installed we need to link against it 18104 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18105echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18106if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18107 echo $ECHO_N "(cached) $ECHO_C" >&6 18108else 18109 ac_check_lib_save_LIBS=$LIBS 18110LIBS="-ldl $LIBS" 18111cat >conftest.$ac_ext <<_ACEOF 18112/* confdefs.h. */ 18113_ACEOF 18114cat confdefs.h >>conftest.$ac_ext 18115cat >>conftest.$ac_ext <<_ACEOF 18116/* end confdefs.h. */ 18117 18118/* Override any gcc2 internal prototype to avoid an error. */ 18119#ifdef __cplusplus 18120extern "C" 18121#endif 18122/* We use char because int might match the return type of a gcc2 18123 builtin and then its argument prototype would still apply. */ 18124char dlopen (); 18125int 18126main () 18127{ 18128dlopen (); 18129 ; 18130 return 0; 18131} 18132_ACEOF 18133rm -f conftest.$ac_objext conftest$ac_exeext 18134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18135 (eval $ac_link) 2>conftest.er1 18136 ac_status=$? 18137 grep -v '^ *+' conftest.er1 >conftest.err 18138 rm -f conftest.er1 18139 cat conftest.err >&5 18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18141 (exit $ac_status); } && 18142 { ac_try='test -z "$ac_cxx_werror_flag" 18143 || test ! -s conftest.err' 18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18145 (eval $ac_try) 2>&5 18146 ac_status=$? 18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18148 (exit $ac_status); }; } && 18149 { ac_try='test -s conftest$ac_exeext' 18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18151 (eval $ac_try) 2>&5 18152 ac_status=$? 18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18154 (exit $ac_status); }; }; then 18155 ac_cv_lib_dl_dlopen=yes 18156else 18157 echo "$as_me: failed program was:" >&5 18158sed 's/^/| /' conftest.$ac_ext >&5 18159 18160ac_cv_lib_dl_dlopen=no 18161fi 18162rm -f conftest.err conftest.$ac_objext \ 18163 conftest$ac_exeext conftest.$ac_ext 18164LIBS=$ac_check_lib_save_LIBS 18165fi 18166echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18167echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18168if test $ac_cv_lib_dl_dlopen = yes; then 18169 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18170else 18171 18172 lt_cv_dlopen="dyld" 18173 lt_cv_dlopen_libs= 18174 lt_cv_dlopen_self=yes 18175 18176fi 18177 18178 ;; 18179 18180 *) 18181 echo "$as_me:$LINENO: checking for shl_load" >&5 18182echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18183if test "${ac_cv_func_shl_load+set}" = set; then 18184 echo $ECHO_N "(cached) $ECHO_C" >&6 18185else 18186 cat >conftest.$ac_ext <<_ACEOF 18187/* confdefs.h. */ 18188_ACEOF 18189cat confdefs.h >>conftest.$ac_ext 18190cat >>conftest.$ac_ext <<_ACEOF 18191/* end confdefs.h. */ 18192/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18193 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18194#define shl_load innocuous_shl_load 18195 18196/* System header to define __stub macros and hopefully few prototypes, 18197 which can conflict with char shl_load (); below. 18198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18199 <limits.h> exists even on freestanding compilers. */ 18200 18201#ifdef __STDC__ 18202# include <limits.h> 18203#else 18204# include <assert.h> 18205#endif 18206 18207#undef shl_load 18208 18209/* Override any gcc2 internal prototype to avoid an error. */ 18210#ifdef __cplusplus 18211extern "C" 18212{ 18213#endif 18214/* We use char because int might match the return type of a gcc2 18215 builtin and then its argument prototype would still apply. */ 18216char shl_load (); 18217/* The GNU C library defines this for functions which it implements 18218 to always fail with ENOSYS. Some functions are actually named 18219 something starting with __ and the normal name is an alias. */ 18220#if defined (__stub_shl_load) || defined (__stub___shl_load) 18221choke me 18222#else 18223char (*f) () = shl_load; 18224#endif 18225#ifdef __cplusplus 18226} 18227#endif 18228 18229int 18230main () 18231{ 18232return f != shl_load; 18233 ; 18234 return 0; 18235} 18236_ACEOF 18237rm -f conftest.$ac_objext conftest$ac_exeext 18238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18239 (eval $ac_link) 2>conftest.er1 18240 ac_status=$? 18241 grep -v '^ *+' conftest.er1 >conftest.err 18242 rm -f conftest.er1 18243 cat conftest.err >&5 18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18245 (exit $ac_status); } && 18246 { ac_try='test -z "$ac_cxx_werror_flag" 18247 || test ! -s conftest.err' 18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18249 (eval $ac_try) 2>&5 18250 ac_status=$? 18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18252 (exit $ac_status); }; } && 18253 { ac_try='test -s conftest$ac_exeext' 18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18255 (eval $ac_try) 2>&5 18256 ac_status=$? 18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18258 (exit $ac_status); }; }; then 18259 ac_cv_func_shl_load=yes 18260else 18261 echo "$as_me: failed program was:" >&5 18262sed 's/^/| /' conftest.$ac_ext >&5 18263 18264ac_cv_func_shl_load=no 18265fi 18266rm -f conftest.err conftest.$ac_objext \ 18267 conftest$ac_exeext conftest.$ac_ext 18268fi 18269echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18270echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18271if test $ac_cv_func_shl_load = yes; then 18272 lt_cv_dlopen="shl_load" 18273else 18274 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18275echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18276if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18277 echo $ECHO_N "(cached) $ECHO_C" >&6 18278else 18279 ac_check_lib_save_LIBS=$LIBS 18280LIBS="-ldld $LIBS" 18281cat >conftest.$ac_ext <<_ACEOF 18282/* confdefs.h. */ 18283_ACEOF 18284cat confdefs.h >>conftest.$ac_ext 18285cat >>conftest.$ac_ext <<_ACEOF 18286/* end confdefs.h. */ 18287 18288/* Override any gcc2 internal prototype to avoid an error. */ 18289#ifdef __cplusplus 18290extern "C" 18291#endif 18292/* We use char because int might match the return type of a gcc2 18293 builtin and then its argument prototype would still apply. */ 18294char shl_load (); 18295int 18296main () 18297{ 18298shl_load (); 18299 ; 18300 return 0; 18301} 18302_ACEOF 18303rm -f conftest.$ac_objext conftest$ac_exeext 18304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18305 (eval $ac_link) 2>conftest.er1 18306 ac_status=$? 18307 grep -v '^ *+' conftest.er1 >conftest.err 18308 rm -f conftest.er1 18309 cat conftest.err >&5 18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18311 (exit $ac_status); } && 18312 { ac_try='test -z "$ac_cxx_werror_flag" 18313 || test ! -s conftest.err' 18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18315 (eval $ac_try) 2>&5 18316 ac_status=$? 18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18318 (exit $ac_status); }; } && 18319 { ac_try='test -s conftest$ac_exeext' 18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18321 (eval $ac_try) 2>&5 18322 ac_status=$? 18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18324 (exit $ac_status); }; }; then 18325 ac_cv_lib_dld_shl_load=yes 18326else 18327 echo "$as_me: failed program was:" >&5 18328sed 's/^/| /' conftest.$ac_ext >&5 18329 18330ac_cv_lib_dld_shl_load=no 18331fi 18332rm -f conftest.err conftest.$ac_objext \ 18333 conftest$ac_exeext conftest.$ac_ext 18334LIBS=$ac_check_lib_save_LIBS 18335fi 18336echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18337echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18338if test $ac_cv_lib_dld_shl_load = yes; then 18339 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18340else 18341 echo "$as_me:$LINENO: checking for dlopen" >&5 18342echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18343if test "${ac_cv_func_dlopen+set}" = set; then 18344 echo $ECHO_N "(cached) $ECHO_C" >&6 18345else 18346 cat >conftest.$ac_ext <<_ACEOF 18347/* confdefs.h. */ 18348_ACEOF 18349cat confdefs.h >>conftest.$ac_ext 18350cat >>conftest.$ac_ext <<_ACEOF 18351/* end confdefs.h. */ 18352/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18353 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18354#define dlopen innocuous_dlopen 18355 18356/* System header to define __stub macros and hopefully few prototypes, 18357 which can conflict with char dlopen (); below. 18358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18359 <limits.h> exists even on freestanding compilers. */ 18360 18361#ifdef __STDC__ 18362# include <limits.h> 18363#else 18364# include <assert.h> 18365#endif 18366 18367#undef dlopen 18368 18369/* Override any gcc2 internal prototype to avoid an error. */ 18370#ifdef __cplusplus 18371extern "C" 18372{ 18373#endif 18374/* We use char because int might match the return type of a gcc2 18375 builtin and then its argument prototype would still apply. */ 18376char dlopen (); 18377/* The GNU C library defines this for functions which it implements 18378 to always fail with ENOSYS. Some functions are actually named 18379 something starting with __ and the normal name is an alias. */ 18380#if defined (__stub_dlopen) || defined (__stub___dlopen) 18381choke me 18382#else 18383char (*f) () = dlopen; 18384#endif 18385#ifdef __cplusplus 18386} 18387#endif 18388 18389int 18390main () 18391{ 18392return f != dlopen; 18393 ; 18394 return 0; 18395} 18396_ACEOF 18397rm -f conftest.$ac_objext conftest$ac_exeext 18398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18399 (eval $ac_link) 2>conftest.er1 18400 ac_status=$? 18401 grep -v '^ *+' conftest.er1 >conftest.err 18402 rm -f conftest.er1 18403 cat conftest.err >&5 18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18405 (exit $ac_status); } && 18406 { ac_try='test -z "$ac_cxx_werror_flag" 18407 || test ! -s conftest.err' 18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18409 (eval $ac_try) 2>&5 18410 ac_status=$? 18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18412 (exit $ac_status); }; } && 18413 { ac_try='test -s conftest$ac_exeext' 18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18415 (eval $ac_try) 2>&5 18416 ac_status=$? 18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18418 (exit $ac_status); }; }; then 18419 ac_cv_func_dlopen=yes 18420else 18421 echo "$as_me: failed program was:" >&5 18422sed 's/^/| /' conftest.$ac_ext >&5 18423 18424ac_cv_func_dlopen=no 18425fi 18426rm -f conftest.err conftest.$ac_objext \ 18427 conftest$ac_exeext conftest.$ac_ext 18428fi 18429echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18430echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18431if test $ac_cv_func_dlopen = yes; then 18432 lt_cv_dlopen="dlopen" 18433else 18434 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18435echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18436if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18437 echo $ECHO_N "(cached) $ECHO_C" >&6 18438else 18439 ac_check_lib_save_LIBS=$LIBS 18440LIBS="-ldl $LIBS" 18441cat >conftest.$ac_ext <<_ACEOF 18442/* confdefs.h. */ 18443_ACEOF 18444cat confdefs.h >>conftest.$ac_ext 18445cat >>conftest.$ac_ext <<_ACEOF 18446/* end confdefs.h. */ 18447 18448/* Override any gcc2 internal prototype to avoid an error. */ 18449#ifdef __cplusplus 18450extern "C" 18451#endif 18452/* We use char because int might match the return type of a gcc2 18453 builtin and then its argument prototype would still apply. */ 18454char dlopen (); 18455int 18456main () 18457{ 18458dlopen (); 18459 ; 18460 return 0; 18461} 18462_ACEOF 18463rm -f conftest.$ac_objext conftest$ac_exeext 18464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18465 (eval $ac_link) 2>conftest.er1 18466 ac_status=$? 18467 grep -v '^ *+' conftest.er1 >conftest.err 18468 rm -f conftest.er1 18469 cat conftest.err >&5 18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18471 (exit $ac_status); } && 18472 { ac_try='test -z "$ac_cxx_werror_flag" 18473 || test ! -s conftest.err' 18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18475 (eval $ac_try) 2>&5 18476 ac_status=$? 18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18478 (exit $ac_status); }; } && 18479 { ac_try='test -s conftest$ac_exeext' 18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18481 (eval $ac_try) 2>&5 18482 ac_status=$? 18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18484 (exit $ac_status); }; }; then 18485 ac_cv_lib_dl_dlopen=yes 18486else 18487 echo "$as_me: failed program was:" >&5 18488sed 's/^/| /' conftest.$ac_ext >&5 18489 18490ac_cv_lib_dl_dlopen=no 18491fi 18492rm -f conftest.err conftest.$ac_objext \ 18493 conftest$ac_exeext conftest.$ac_ext 18494LIBS=$ac_check_lib_save_LIBS 18495fi 18496echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18497echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18498if test $ac_cv_lib_dl_dlopen = yes; then 18499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18500else 18501 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18502echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18503if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18504 echo $ECHO_N "(cached) $ECHO_C" >&6 18505else 18506 ac_check_lib_save_LIBS=$LIBS 18507LIBS="-lsvld $LIBS" 18508cat >conftest.$ac_ext <<_ACEOF 18509/* confdefs.h. */ 18510_ACEOF 18511cat confdefs.h >>conftest.$ac_ext 18512cat >>conftest.$ac_ext <<_ACEOF 18513/* end confdefs.h. */ 18514 18515/* Override any gcc2 internal prototype to avoid an error. */ 18516#ifdef __cplusplus 18517extern "C" 18518#endif 18519/* We use char because int might match the return type of a gcc2 18520 builtin and then its argument prototype would still apply. */ 18521char dlopen (); 18522int 18523main () 18524{ 18525dlopen (); 18526 ; 18527 return 0; 18528} 18529_ACEOF 18530rm -f conftest.$ac_objext conftest$ac_exeext 18531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18532 (eval $ac_link) 2>conftest.er1 18533 ac_status=$? 18534 grep -v '^ *+' conftest.er1 >conftest.err 18535 rm -f conftest.er1 18536 cat conftest.err >&5 18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18538 (exit $ac_status); } && 18539 { ac_try='test -z "$ac_cxx_werror_flag" 18540 || test ! -s conftest.err' 18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18542 (eval $ac_try) 2>&5 18543 ac_status=$? 18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18545 (exit $ac_status); }; } && 18546 { ac_try='test -s conftest$ac_exeext' 18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18548 (eval $ac_try) 2>&5 18549 ac_status=$? 18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18551 (exit $ac_status); }; }; then 18552 ac_cv_lib_svld_dlopen=yes 18553else 18554 echo "$as_me: failed program was:" >&5 18555sed 's/^/| /' conftest.$ac_ext >&5 18556 18557ac_cv_lib_svld_dlopen=no 18558fi 18559rm -f conftest.err conftest.$ac_objext \ 18560 conftest$ac_exeext conftest.$ac_ext 18561LIBS=$ac_check_lib_save_LIBS 18562fi 18563echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18564echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18565if test $ac_cv_lib_svld_dlopen = yes; then 18566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18567else 18568 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18569echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18570if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18571 echo $ECHO_N "(cached) $ECHO_C" >&6 18572else 18573 ac_check_lib_save_LIBS=$LIBS 18574LIBS="-ldld $LIBS" 18575cat >conftest.$ac_ext <<_ACEOF 18576/* confdefs.h. */ 18577_ACEOF 18578cat confdefs.h >>conftest.$ac_ext 18579cat >>conftest.$ac_ext <<_ACEOF 18580/* end confdefs.h. */ 18581 18582/* Override any gcc2 internal prototype to avoid an error. */ 18583#ifdef __cplusplus 18584extern "C" 18585#endif 18586/* We use char because int might match the return type of a gcc2 18587 builtin and then its argument prototype would still apply. */ 18588char dld_link (); 18589int 18590main () 18591{ 18592dld_link (); 18593 ; 18594 return 0; 18595} 18596_ACEOF 18597rm -f conftest.$ac_objext conftest$ac_exeext 18598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18599 (eval $ac_link) 2>conftest.er1 18600 ac_status=$? 18601 grep -v '^ *+' conftest.er1 >conftest.err 18602 rm -f conftest.er1 18603 cat conftest.err >&5 18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18605 (exit $ac_status); } && 18606 { ac_try='test -z "$ac_cxx_werror_flag" 18607 || test ! -s conftest.err' 18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18609 (eval $ac_try) 2>&5 18610 ac_status=$? 18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18612 (exit $ac_status); }; } && 18613 { ac_try='test -s conftest$ac_exeext' 18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18615 (eval $ac_try) 2>&5 18616 ac_status=$? 18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18618 (exit $ac_status); }; }; then 18619 ac_cv_lib_dld_dld_link=yes 18620else 18621 echo "$as_me: failed program was:" >&5 18622sed 's/^/| /' conftest.$ac_ext >&5 18623 18624ac_cv_lib_dld_dld_link=no 18625fi 18626rm -f conftest.err conftest.$ac_objext \ 18627 conftest$ac_exeext conftest.$ac_ext 18628LIBS=$ac_check_lib_save_LIBS 18629fi 18630echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18631echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18632if test $ac_cv_lib_dld_dld_link = yes; then 18633 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18634fi 18635 18636 18637fi 18638 18639 18640fi 18641 18642 18643fi 18644 18645 18646fi 18647 18648 18649fi 18650 18651 ;; 18652 esac 18653 18654 if test "x$lt_cv_dlopen" != xno; then 18655 enable_dlopen=yes 18656 else 18657 enable_dlopen=no 18658 fi 18659 18660 case $lt_cv_dlopen in 18661 dlopen) 18662 save_CPPFLAGS="$CPPFLAGS" 18663 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18664 18665 save_LDFLAGS="$LDFLAGS" 18666 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18667 18668 save_LIBS="$LIBS" 18669 LIBS="$lt_cv_dlopen_libs $LIBS" 18670 18671 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18672echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18673if test "${lt_cv_dlopen_self+set}" = set; then 18674 echo $ECHO_N "(cached) $ECHO_C" >&6 18675else 18676 if test "$cross_compiling" = yes; then : 18677 lt_cv_dlopen_self=cross 18678else 18679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18680 lt_status=$lt_dlunknown 18681 cat > conftest.$ac_ext <<EOF 18682#line 18682 "configure" 18683#include "confdefs.h" 18684 18685#if HAVE_DLFCN_H 18686#include <dlfcn.h> 18687#endif 18688 18689#include <stdio.h> 18690 18691#ifdef RTLD_GLOBAL 18692# define LT_DLGLOBAL RTLD_GLOBAL 18693#else 18694# ifdef DL_GLOBAL 18695# define LT_DLGLOBAL DL_GLOBAL 18696# else 18697# define LT_DLGLOBAL 0 18698# endif 18699#endif 18700 18701/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18702 find out it does not work in some platform. */ 18703#ifndef LT_DLLAZY_OR_NOW 18704# ifdef RTLD_LAZY 18705# define LT_DLLAZY_OR_NOW RTLD_LAZY 18706# else 18707# ifdef DL_LAZY 18708# define LT_DLLAZY_OR_NOW DL_LAZY 18709# else 18710# ifdef RTLD_NOW 18711# define LT_DLLAZY_OR_NOW RTLD_NOW 18712# else 18713# ifdef DL_NOW 18714# define LT_DLLAZY_OR_NOW DL_NOW 18715# else 18716# define LT_DLLAZY_OR_NOW 0 18717# endif 18718# endif 18719# endif 18720# endif 18721#endif 18722 18723#ifdef __cplusplus 18724extern "C" void exit (int); 18725#endif 18726 18727void fnord() { int i=42;} 18728int main () 18729{ 18730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18731 int status = $lt_dlunknown; 18732 18733 if (self) 18734 { 18735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18736 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18737 /* dlclose (self); */ 18738 } 18739 18740 exit (status); 18741} 18742EOF 18743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18744 (eval $ac_link) 2>&5 18745 ac_status=$? 18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18747 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18748 (./conftest; exit; ) 2>/dev/null 18749 lt_status=$? 18750 case x$lt_status in 18751 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18752 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18753 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18754 esac 18755 else : 18756 # compilation failed 18757 lt_cv_dlopen_self=no 18758 fi 18759fi 18760rm -fr conftest* 18761 18762 18763fi 18764echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18765echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18766 18767 if test "x$lt_cv_dlopen_self" = xyes; then 18768 LDFLAGS="$LDFLAGS $link_static_flag" 18769 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18770echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18771if test "${lt_cv_dlopen_self_static+set}" = set; then 18772 echo $ECHO_N "(cached) $ECHO_C" >&6 18773else 18774 if test "$cross_compiling" = yes; then : 18775 lt_cv_dlopen_self_static=cross 18776else 18777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18778 lt_status=$lt_dlunknown 18779 cat > conftest.$ac_ext <<EOF 18780#line 18780 "configure" 18781#include "confdefs.h" 18782 18783#if HAVE_DLFCN_H 18784#include <dlfcn.h> 18785#endif 18786 18787#include <stdio.h> 18788 18789#ifdef RTLD_GLOBAL 18790# define LT_DLGLOBAL RTLD_GLOBAL 18791#else 18792# ifdef DL_GLOBAL 18793# define LT_DLGLOBAL DL_GLOBAL 18794# else 18795# define LT_DLGLOBAL 0 18796# endif 18797#endif 18798 18799/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18800 find out it does not work in some platform. */ 18801#ifndef LT_DLLAZY_OR_NOW 18802# ifdef RTLD_LAZY 18803# define LT_DLLAZY_OR_NOW RTLD_LAZY 18804# else 18805# ifdef DL_LAZY 18806# define LT_DLLAZY_OR_NOW DL_LAZY 18807# else 18808# ifdef RTLD_NOW 18809# define LT_DLLAZY_OR_NOW RTLD_NOW 18810# else 18811# ifdef DL_NOW 18812# define LT_DLLAZY_OR_NOW DL_NOW 18813# else 18814# define LT_DLLAZY_OR_NOW 0 18815# endif 18816# endif 18817# endif 18818# endif 18819#endif 18820 18821#ifdef __cplusplus 18822extern "C" void exit (int); 18823#endif 18824 18825void fnord() { int i=42;} 18826int main () 18827{ 18828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18829 int status = $lt_dlunknown; 18830 18831 if (self) 18832 { 18833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18835 /* dlclose (self); */ 18836 } 18837 18838 exit (status); 18839} 18840EOF 18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18842 (eval $ac_link) 2>&5 18843 ac_status=$? 18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18846 (./conftest; exit; ) 2>/dev/null 18847 lt_status=$? 18848 case x$lt_status in 18849 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18850 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18851 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18852 esac 18853 else : 18854 # compilation failed 18855 lt_cv_dlopen_self_static=no 18856 fi 18857fi 18858rm -fr conftest* 18859 18860 18861fi 18862echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18863echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18864 fi 18865 18866 CPPFLAGS="$save_CPPFLAGS" 18867 LDFLAGS="$save_LDFLAGS" 18868 LIBS="$save_LIBS" 18869 ;; 18870 esac 18871 18872 case $lt_cv_dlopen_self in 18873 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18874 *) enable_dlopen_self=unknown ;; 18875 esac 18876 18877 case $lt_cv_dlopen_self_static in 18878 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18879 *) enable_dlopen_self_static=unknown ;; 18880 esac 18881fi 18882 18883 18884# The else clause should only fire when bootstrapping the 18885# libtool distribution, otherwise you forgot to ship ltmain.sh 18886# with your package, and you will get complaints that there are 18887# no rules to generate ltmain.sh. 18888if test -f "$ltmain"; then 18889 # See if we are running on zsh, and set the options which allow our commands through 18890 # without removal of \ escapes. 18891 if test -n "${ZSH_VERSION+set}" ; then 18892 setopt NO_GLOB_SUBST 18893 fi 18894 # Now quote all the things that may contain metacharacters while being 18895 # careful not to overquote the AC_SUBSTed values. We take copies of the 18896 # variables and quote the copies for generation of the libtool script. 18897 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18898 SED SHELL STRIP \ 18899 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18900 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18901 deplibs_check_method reload_flag reload_cmds need_locks \ 18902 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18903 lt_cv_sys_global_symbol_to_c_name_address \ 18904 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18905 old_postinstall_cmds old_postuninstall_cmds \ 18906 compiler_GCJ \ 18907 CC_GCJ \ 18908 LD_GCJ \ 18909 lt_prog_compiler_wl_GCJ \ 18910 lt_prog_compiler_pic_GCJ \ 18911 lt_prog_compiler_static_GCJ \ 18912 lt_prog_compiler_no_builtin_flag_GCJ \ 18913 export_dynamic_flag_spec_GCJ \ 18914 thread_safe_flag_spec_GCJ \ 18915 whole_archive_flag_spec_GCJ \ 18916 enable_shared_with_static_runtimes_GCJ \ 18917 old_archive_cmds_GCJ \ 18918 old_archive_from_new_cmds_GCJ \ 18919 predep_objects_GCJ \ 18920 postdep_objects_GCJ \ 18921 predeps_GCJ \ 18922 postdeps_GCJ \ 18923 compiler_lib_search_path_GCJ \ 18924 archive_cmds_GCJ \ 18925 archive_expsym_cmds_GCJ \ 18926 postinstall_cmds_GCJ \ 18927 postuninstall_cmds_GCJ \ 18928 old_archive_from_expsyms_cmds_GCJ \ 18929 allow_undefined_flag_GCJ \ 18930 no_undefined_flag_GCJ \ 18931 export_symbols_cmds_GCJ \ 18932 hardcode_libdir_flag_spec_GCJ \ 18933 hardcode_libdir_flag_spec_ld_GCJ \ 18934 hardcode_libdir_separator_GCJ \ 18935 hardcode_automatic_GCJ \ 18936 module_cmds_GCJ \ 18937 module_expsym_cmds_GCJ \ 18938 lt_cv_prog_compiler_c_o_GCJ \ 18939 exclude_expsyms_GCJ \ 18940 include_expsyms_GCJ; do 18941 18942 case $var in 18943 old_archive_cmds_GCJ | \ 18944 old_archive_from_new_cmds_GCJ | \ 18945 archive_cmds_GCJ | \ 18946 archive_expsym_cmds_GCJ | \ 18947 module_cmds_GCJ | \ 18948 module_expsym_cmds_GCJ | \ 18949 old_archive_from_expsyms_cmds_GCJ | \ 18950 export_symbols_cmds_GCJ | \ 18951 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18952 postinstall_cmds | postuninstall_cmds | \ 18953 old_postinstall_cmds | old_postuninstall_cmds | \ 18954 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18955 # Double-quote double-evaled strings. 18956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18957 ;; 18958 *) 18959 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18960 ;; 18961 esac 18962 done 18963 18964 case $lt_echo in 18965 *'\$0 --fallback-echo"') 18966 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18967 ;; 18968 esac 18969 18970cfgfile="$ofile" 18971 18972 cat <<__EOF__ >> "$cfgfile" 18973# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18974 18975# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18976 18977# Shell to use when invoking shell scripts. 18978SHELL=$lt_SHELL 18979 18980# Whether or not to build shared libraries. 18981build_libtool_libs=$enable_shared 18982 18983# Whether or not to build static libraries. 18984build_old_libs=$enable_static 18985 18986# Whether or not to add -lc for building shared libraries. 18987build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18988 18989# Whether or not to disallow shared libs when runtime libs are static 18990allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18991 18992# Whether or not to optimize for fast installation. 18993fast_install=$enable_fast_install 18994 18995# The host system. 18996host_alias=$host_alias 18997host=$host 18998host_os=$host_os 18999 19000# The build system. 19001build_alias=$build_alias 19002build=$build 19003build_os=$build_os 19004 19005# An echo program that does not interpret backslashes. 19006echo=$lt_echo 19007 19008# The archiver. 19009AR=$lt_AR 19010AR_FLAGS=$lt_AR_FLAGS 19011 19012# A C compiler. 19013LTCC=$lt_LTCC 19014 19015# A language-specific compiler. 19016CC=$lt_compiler_GCJ 19017 19018# Is the compiler the GNU C compiler? 19019with_gcc=$GCC_GCJ 19020 19021# An ERE matcher. 19022EGREP=$lt_EGREP 19023 19024# The linker used to build libraries. 19025LD=$lt_LD_GCJ 19026 19027# Whether we need hard or soft links. 19028LN_S=$lt_LN_S 19029 19030# A BSD-compatible nm program. 19031NM=$lt_NM 19032 19033# A symbol stripping program 19034STRIP=$lt_STRIP 19035 19036# Used to examine libraries when file_magic_cmd begins "file" 19037MAGIC_CMD=$MAGIC_CMD 19038 19039# Used on cygwin: DLL creation program. 19040DLLTOOL="$DLLTOOL" 19041 19042# Used on cygwin: object dumper. 19043OBJDUMP="$OBJDUMP" 19044 19045# Used on cygwin: assembler. 19046AS="$AS" 19047 19048# The name of the directory that contains temporary libtool files. 19049objdir=$objdir 19050 19051# How to create reloadable object files. 19052reload_flag=$lt_reload_flag 19053reload_cmds=$lt_reload_cmds 19054 19055# How to pass a linker flag through the compiler. 19056wl=$lt_lt_prog_compiler_wl_GCJ 19057 19058# Object file suffix (normally "o"). 19059objext="$ac_objext" 19060 19061# Old archive suffix (normally "a"). 19062libext="$libext" 19063 19064# Shared library suffix (normally ".so"). 19065shrext_cmds='$shrext_cmds' 19066 19067# Executable file suffix (normally ""). 19068exeext="$exeext" 19069 19070# Additional compiler flags for building library objects. 19071pic_flag=$lt_lt_prog_compiler_pic_GCJ 19072pic_mode=$pic_mode 19073 19074# What is the maximum length of a command? 19075max_cmd_len=$lt_cv_sys_max_cmd_len 19076 19077# Does compiler simultaneously support -c and -o options? 19078compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19079 19080# Must we lock files when doing compilation? 19081need_locks=$lt_need_locks 19082 19083# Do we need the lib prefix for modules? 19084need_lib_prefix=$need_lib_prefix 19085 19086# Do we need a version for libraries? 19087need_version=$need_version 19088 19089# Whether dlopen is supported. 19090dlopen_support=$enable_dlopen 19091 19092# Whether dlopen of programs is supported. 19093dlopen_self=$enable_dlopen_self 19094 19095# Whether dlopen of statically linked programs is supported. 19096dlopen_self_static=$enable_dlopen_self_static 19097 19098# Compiler flag to prevent dynamic linking. 19099link_static_flag=$lt_lt_prog_compiler_static_GCJ 19100 19101# Compiler flag to turn off builtin functions. 19102no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19103 19104# Compiler flag to allow reflexive dlopens. 19105export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19106 19107# Compiler flag to generate shared objects directly from archives. 19108whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19109 19110# Compiler flag to generate thread-safe objects. 19111thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19112 19113# Library versioning type. 19114version_type=$version_type 19115 19116# Format of library name prefix. 19117libname_spec=$lt_libname_spec 19118 19119# List of archive names. First name is the real one, the rest are links. 19120# The last name is the one that the linker finds with -lNAME. 19121library_names_spec=$lt_library_names_spec 19122 19123# The coded name of the library, if different from the real name. 19124soname_spec=$lt_soname_spec 19125 19126# Commands used to build and install an old-style archive. 19127RANLIB=$lt_RANLIB 19128old_archive_cmds=$lt_old_archive_cmds_GCJ 19129old_postinstall_cmds=$lt_old_postinstall_cmds 19130old_postuninstall_cmds=$lt_old_postuninstall_cmds 19131 19132# Create an old-style archive from a shared archive. 19133old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19134 19135# Create a temporary old-style archive to link instead of a shared archive. 19136old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19137 19138# Commands used to build and install a shared archive. 19139archive_cmds=$lt_archive_cmds_GCJ 19140archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19141postinstall_cmds=$lt_postinstall_cmds 19142postuninstall_cmds=$lt_postuninstall_cmds 19143 19144# Commands used to build a loadable module (assumed same as above if empty) 19145module_cmds=$lt_module_cmds_GCJ 19146module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19147 19148# Commands to strip libraries. 19149old_striplib=$lt_old_striplib 19150striplib=$lt_striplib 19151 19152# Dependencies to place before the objects being linked to create a 19153# shared library. 19154predep_objects=$lt_predep_objects_GCJ 19155 19156# Dependencies to place after the objects being linked to create a 19157# shared library. 19158postdep_objects=$lt_postdep_objects_GCJ 19159 19160# Dependencies to place before the objects being linked to create a 19161# shared library. 19162predeps=$lt_predeps_GCJ 19163 19164# Dependencies to place after the objects being linked to create a 19165# shared library. 19166postdeps=$lt_postdeps_GCJ 19167 19168# The library search path used internally by the compiler when linking 19169# a shared library. 19170compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19171 19172# Method to check whether dependent libraries are shared objects. 19173deplibs_check_method=$lt_deplibs_check_method 19174 19175# Command to use when deplibs_check_method == file_magic. 19176file_magic_cmd=$lt_file_magic_cmd 19177 19178# Flag that allows shared libraries with undefined symbols to be built. 19179allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19180 19181# Flag that forces no undefined symbols. 19182no_undefined_flag=$lt_no_undefined_flag_GCJ 19183 19184# Commands used to finish a libtool library installation in a directory. 19185finish_cmds=$lt_finish_cmds 19186 19187# Same as above, but a single script fragment to be evaled but not shown. 19188finish_eval=$lt_finish_eval 19189 19190# Take the output of nm and produce a listing of raw symbols and C names. 19191global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19192 19193# Transform the output of nm in a proper C declaration 19194global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19195 19196# Transform the output of nm in a C name address pair 19197global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19198 19199# This is the shared library runtime path variable. 19200runpath_var=$runpath_var 19201 19202# This is the shared library path variable. 19203shlibpath_var=$shlibpath_var 19204 19205# Is shlibpath searched before the hard-coded library search path? 19206shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19207 19208# How to hardcode a shared library path into an executable. 19209hardcode_action=$hardcode_action_GCJ 19210 19211# Whether we should hardcode library paths into libraries. 19212hardcode_into_libs=$hardcode_into_libs 19213 19214# Flag to hardcode \$libdir into a binary during linking. 19215# This must work even if \$libdir does not exist. 19216hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19217 19218# If ld is used when linking, flag to hardcode \$libdir into 19219# a binary during linking. This must work even if \$libdir does 19220# not exist. 19221hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19222 19223# Whether we need a single -rpath flag with a separated argument. 19224hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19225 19226# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19227# resulting binary. 19228hardcode_direct=$hardcode_direct_GCJ 19229 19230# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19231# resulting binary. 19232hardcode_minus_L=$hardcode_minus_L_GCJ 19233 19234# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19235# the resulting binary. 19236hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19237 19238# Set to yes if building a shared library automatically hardcodes DIR into the library 19239# and all subsequent libraries and executables linked against it. 19240hardcode_automatic=$hardcode_automatic_GCJ 19241 19242# Variables whose values should be saved in libtool wrapper scripts and 19243# restored at relink time. 19244variables_saved_for_relink="$variables_saved_for_relink" 19245 19246# Whether libtool must link a program against all its dependency libraries. 19247link_all_deplibs=$link_all_deplibs_GCJ 19248 19249# Compile-time system search path for libraries 19250sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19251 19252# Run-time system search path for libraries 19253sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19254 19255# Fix the shell variable \$srcfile for the compiler. 19256fix_srcfile_path="$fix_srcfile_path_GCJ" 19257 19258# Set to yes if exported symbols are required. 19259always_export_symbols=$always_export_symbols_GCJ 19260 19261# The commands to list exported symbols. 19262export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19263 19264# The commands to extract the exported symbol list from a shared archive. 19265extract_expsyms_cmds=$lt_extract_expsyms_cmds 19266 19267# Symbols that should not be listed in the preloaded symbols. 19268exclude_expsyms=$lt_exclude_expsyms_GCJ 19269 19270# Symbols that must always be exported. 19271include_expsyms=$lt_include_expsyms_GCJ 19272 19273# ### END LIBTOOL TAG CONFIG: $tagname 19274 19275__EOF__ 19276 19277 19278else 19279 # If there is no Makefile yet, we rely on a make rule to execute 19280 # `config.status --recheck' to rerun these tests and create the 19281 # libtool script then. 19282 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19283 if test -f "$ltmain_in"; then 19284 test -f Makefile && make "$ltmain" 19285 fi 19286fi 19287 19288 19289ac_ext=cc 19290ac_cpp='$CXXCPP $CPPFLAGS' 19291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19294 19295CC="$lt_save_CC" 19296 19297 else 19298 tagname="" 19299 fi 19300 ;; 19301 19302 RC) 19303 19304 19305 19306# Source file extension for RC test sources. 19307ac_ext=rc 19308 19309# Object file extension for compiled RC test sources. 19310objext=o 19311objext_RC=$objext 19312 19313# Code to be used in simple compile tests 19314lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19315 19316# Code to be used in simple link tests 19317lt_simple_link_test_code="$lt_simple_compile_test_code" 19318 19319# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19320 19321# If no C compiler was specified, use CC. 19322LTCC=${LTCC-"$CC"} 19323 19324# Allow CC to be a program name with arguments. 19325compiler=$CC 19326 19327 19328# save warnings/boilerplate of simple test code 19329ac_outfile=conftest.$ac_objext 19330printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19331eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19332_lt_compiler_boilerplate=`cat conftest.err` 19333$rm conftest* 19334 19335ac_outfile=conftest.$ac_objext 19336printf "$lt_simple_link_test_code" >conftest.$ac_ext 19337eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19338_lt_linker_boilerplate=`cat conftest.err` 19339$rm conftest* 19340 19341 19342# Allow CC to be a program name with arguments. 19343lt_save_CC="$CC" 19344CC=${RC-"windres"} 19345compiler=$CC 19346compiler_RC=$CC 19347for cc_temp in $compiler""; do 19348 case $cc_temp in 19349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19351 \-*) ;; 19352 *) break;; 19353 esac 19354done 19355cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19356 19357lt_cv_prog_compiler_c_o_RC=yes 19358 19359# The else clause should only fire when bootstrapping the 19360# libtool distribution, otherwise you forgot to ship ltmain.sh 19361# with your package, and you will get complaints that there are 19362# no rules to generate ltmain.sh. 19363if test -f "$ltmain"; then 19364 # See if we are running on zsh, and set the options which allow our commands through 19365 # without removal of \ escapes. 19366 if test -n "${ZSH_VERSION+set}" ; then 19367 setopt NO_GLOB_SUBST 19368 fi 19369 # Now quote all the things that may contain metacharacters while being 19370 # careful not to overquote the AC_SUBSTed values. We take copies of the 19371 # variables and quote the copies for generation of the libtool script. 19372 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19373 SED SHELL STRIP \ 19374 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19375 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19376 deplibs_check_method reload_flag reload_cmds need_locks \ 19377 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19378 lt_cv_sys_global_symbol_to_c_name_address \ 19379 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19380 old_postinstall_cmds old_postuninstall_cmds \ 19381 compiler_RC \ 19382 CC_RC \ 19383 LD_RC \ 19384 lt_prog_compiler_wl_RC \ 19385 lt_prog_compiler_pic_RC \ 19386 lt_prog_compiler_static_RC \ 19387 lt_prog_compiler_no_builtin_flag_RC \ 19388 export_dynamic_flag_spec_RC \ 19389 thread_safe_flag_spec_RC \ 19390 whole_archive_flag_spec_RC \ 19391 enable_shared_with_static_runtimes_RC \ 19392 old_archive_cmds_RC \ 19393 old_archive_from_new_cmds_RC \ 19394 predep_objects_RC \ 19395 postdep_objects_RC \ 19396 predeps_RC \ 19397 postdeps_RC \ 19398 compiler_lib_search_path_RC \ 19399 archive_cmds_RC \ 19400 archive_expsym_cmds_RC \ 19401 postinstall_cmds_RC \ 19402 postuninstall_cmds_RC \ 19403 old_archive_from_expsyms_cmds_RC \ 19404 allow_undefined_flag_RC \ 19405 no_undefined_flag_RC \ 19406 export_symbols_cmds_RC \ 19407 hardcode_libdir_flag_spec_RC \ 19408 hardcode_libdir_flag_spec_ld_RC \ 19409 hardcode_libdir_separator_RC \ 19410 hardcode_automatic_RC \ 19411 module_cmds_RC \ 19412 module_expsym_cmds_RC \ 19413 lt_cv_prog_compiler_c_o_RC \ 19414 exclude_expsyms_RC \ 19415 include_expsyms_RC; do 19416 19417 case $var in 19418 old_archive_cmds_RC | \ 19419 old_archive_from_new_cmds_RC | \ 19420 archive_cmds_RC | \ 19421 archive_expsym_cmds_RC | \ 19422 module_cmds_RC | \ 19423 module_expsym_cmds_RC | \ 19424 old_archive_from_expsyms_cmds_RC | \ 19425 export_symbols_cmds_RC | \ 19426 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19427 postinstall_cmds | postuninstall_cmds | \ 19428 old_postinstall_cmds | old_postuninstall_cmds | \ 19429 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19430 # Double-quote double-evaled strings. 19431 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19432 ;; 19433 *) 19434 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19435 ;; 19436 esac 19437 done 19438 19439 case $lt_echo in 19440 *'\$0 --fallback-echo"') 19441 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19442 ;; 19443 esac 19444 19445cfgfile="$ofile" 19446 19447 cat <<__EOF__ >> "$cfgfile" 19448# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19449 19450# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19451 19452# Shell to use when invoking shell scripts. 19453SHELL=$lt_SHELL 19454 19455# Whether or not to build shared libraries. 19456build_libtool_libs=$enable_shared 19457 19458# Whether or not to build static libraries. 19459build_old_libs=$enable_static 19460 19461# Whether or not to add -lc for building shared libraries. 19462build_libtool_need_lc=$archive_cmds_need_lc_RC 19463 19464# Whether or not to disallow shared libs when runtime libs are static 19465allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19466 19467# Whether or not to optimize for fast installation. 19468fast_install=$enable_fast_install 19469 19470# The host system. 19471host_alias=$host_alias 19472host=$host 19473host_os=$host_os 19474 19475# The build system. 19476build_alias=$build_alias 19477build=$build 19478build_os=$build_os 19479 19480# An echo program that does not interpret backslashes. 19481echo=$lt_echo 19482 19483# The archiver. 19484AR=$lt_AR 19485AR_FLAGS=$lt_AR_FLAGS 19486 19487# A C compiler. 19488LTCC=$lt_LTCC 19489 19490# A language-specific compiler. 19491CC=$lt_compiler_RC 19492 19493# Is the compiler the GNU C compiler? 19494with_gcc=$GCC_RC 19495 19496# An ERE matcher. 19497EGREP=$lt_EGREP 19498 19499# The linker used to build libraries. 19500LD=$lt_LD_RC 19501 19502# Whether we need hard or soft links. 19503LN_S=$lt_LN_S 19504 19505# A BSD-compatible nm program. 19506NM=$lt_NM 19507 19508# A symbol stripping program 19509STRIP=$lt_STRIP 19510 19511# Used to examine libraries when file_magic_cmd begins "file" 19512MAGIC_CMD=$MAGIC_CMD 19513 19514# Used on cygwin: DLL creation program. 19515DLLTOOL="$DLLTOOL" 19516 19517# Used on cygwin: object dumper. 19518OBJDUMP="$OBJDUMP" 19519 19520# Used on cygwin: assembler. 19521AS="$AS" 19522 19523# The name of the directory that contains temporary libtool files. 19524objdir=$objdir 19525 19526# How to create reloadable object files. 19527reload_flag=$lt_reload_flag 19528reload_cmds=$lt_reload_cmds 19529 19530# How to pass a linker flag through the compiler. 19531wl=$lt_lt_prog_compiler_wl_RC 19532 19533# Object file suffix (normally "o"). 19534objext="$ac_objext" 19535 19536# Old archive suffix (normally "a"). 19537libext="$libext" 19538 19539# Shared library suffix (normally ".so"). 19540shrext_cmds='$shrext_cmds' 19541 19542# Executable file suffix (normally ""). 19543exeext="$exeext" 19544 19545# Additional compiler flags for building library objects. 19546pic_flag=$lt_lt_prog_compiler_pic_RC 19547pic_mode=$pic_mode 19548 19549# What is the maximum length of a command? 19550max_cmd_len=$lt_cv_sys_max_cmd_len 19551 19552# Does compiler simultaneously support -c and -o options? 19553compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19554 19555# Must we lock files when doing compilation? 19556need_locks=$lt_need_locks 19557 19558# Do we need the lib prefix for modules? 19559need_lib_prefix=$need_lib_prefix 19560 19561# Do we need a version for libraries? 19562need_version=$need_version 19563 19564# Whether dlopen is supported. 19565dlopen_support=$enable_dlopen 19566 19567# Whether dlopen of programs is supported. 19568dlopen_self=$enable_dlopen_self 19569 19570# Whether dlopen of statically linked programs is supported. 19571dlopen_self_static=$enable_dlopen_self_static 19572 19573# Compiler flag to prevent dynamic linking. 19574link_static_flag=$lt_lt_prog_compiler_static_RC 19575 19576# Compiler flag to turn off builtin functions. 19577no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19578 19579# Compiler flag to allow reflexive dlopens. 19580export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19581 19582# Compiler flag to generate shared objects directly from archives. 19583whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19584 19585# Compiler flag to generate thread-safe objects. 19586thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19587 19588# Library versioning type. 19589version_type=$version_type 19590 19591# Format of library name prefix. 19592libname_spec=$lt_libname_spec 19593 19594# List of archive names. First name is the real one, the rest are links. 19595# The last name is the one that the linker finds with -lNAME. 19596library_names_spec=$lt_library_names_spec 19597 19598# The coded name of the library, if different from the real name. 19599soname_spec=$lt_soname_spec 19600 19601# Commands used to build and install an old-style archive. 19602RANLIB=$lt_RANLIB 19603old_archive_cmds=$lt_old_archive_cmds_RC 19604old_postinstall_cmds=$lt_old_postinstall_cmds 19605old_postuninstall_cmds=$lt_old_postuninstall_cmds 19606 19607# Create an old-style archive from a shared archive. 19608old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19609 19610# Create a temporary old-style archive to link instead of a shared archive. 19611old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19612 19613# Commands used to build and install a shared archive. 19614archive_cmds=$lt_archive_cmds_RC 19615archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19616postinstall_cmds=$lt_postinstall_cmds 19617postuninstall_cmds=$lt_postuninstall_cmds 19618 19619# Commands used to build a loadable module (assumed same as above if empty) 19620module_cmds=$lt_module_cmds_RC 19621module_expsym_cmds=$lt_module_expsym_cmds_RC 19622 19623# Commands to strip libraries. 19624old_striplib=$lt_old_striplib 19625striplib=$lt_striplib 19626 19627# Dependencies to place before the objects being linked to create a 19628# shared library. 19629predep_objects=$lt_predep_objects_RC 19630 19631# Dependencies to place after the objects being linked to create a 19632# shared library. 19633postdep_objects=$lt_postdep_objects_RC 19634 19635# Dependencies to place before the objects being linked to create a 19636# shared library. 19637predeps=$lt_predeps_RC 19638 19639# Dependencies to place after the objects being linked to create a 19640# shared library. 19641postdeps=$lt_postdeps_RC 19642 19643# The library search path used internally by the compiler when linking 19644# a shared library. 19645compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19646 19647# Method to check whether dependent libraries are shared objects. 19648deplibs_check_method=$lt_deplibs_check_method 19649 19650# Command to use when deplibs_check_method == file_magic. 19651file_magic_cmd=$lt_file_magic_cmd 19652 19653# Flag that allows shared libraries with undefined symbols to be built. 19654allow_undefined_flag=$lt_allow_undefined_flag_RC 19655 19656# Flag that forces no undefined symbols. 19657no_undefined_flag=$lt_no_undefined_flag_RC 19658 19659# Commands used to finish a libtool library installation in a directory. 19660finish_cmds=$lt_finish_cmds 19661 19662# Same as above, but a single script fragment to be evaled but not shown. 19663finish_eval=$lt_finish_eval 19664 19665# Take the output of nm and produce a listing of raw symbols and C names. 19666global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19667 19668# Transform the output of nm in a proper C declaration 19669global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19670 19671# Transform the output of nm in a C name address pair 19672global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19673 19674# This is the shared library runtime path variable. 19675runpath_var=$runpath_var 19676 19677# This is the shared library path variable. 19678shlibpath_var=$shlibpath_var 19679 19680# Is shlibpath searched before the hard-coded library search path? 19681shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19682 19683# How to hardcode a shared library path into an executable. 19684hardcode_action=$hardcode_action_RC 19685 19686# Whether we should hardcode library paths into libraries. 19687hardcode_into_libs=$hardcode_into_libs 19688 19689# Flag to hardcode \$libdir into a binary during linking. 19690# This must work even if \$libdir does not exist. 19691hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19692 19693# If ld is used when linking, flag to hardcode \$libdir into 19694# a binary during linking. This must work even if \$libdir does 19695# not exist. 19696hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19697 19698# Whether we need a single -rpath flag with a separated argument. 19699hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19700 19701# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19702# resulting binary. 19703hardcode_direct=$hardcode_direct_RC 19704 19705# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19706# resulting binary. 19707hardcode_minus_L=$hardcode_minus_L_RC 19708 19709# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19710# the resulting binary. 19711hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19712 19713# Set to yes if building a shared library automatically hardcodes DIR into the library 19714# and all subsequent libraries and executables linked against it. 19715hardcode_automatic=$hardcode_automatic_RC 19716 19717# Variables whose values should be saved in libtool wrapper scripts and 19718# restored at relink time. 19719variables_saved_for_relink="$variables_saved_for_relink" 19720 19721# Whether libtool must link a program against all its dependency libraries. 19722link_all_deplibs=$link_all_deplibs_RC 19723 19724# Compile-time system search path for libraries 19725sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19726 19727# Run-time system search path for libraries 19728sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19729 19730# Fix the shell variable \$srcfile for the compiler. 19731fix_srcfile_path="$fix_srcfile_path_RC" 19732 19733# Set to yes if exported symbols are required. 19734always_export_symbols=$always_export_symbols_RC 19735 19736# The commands to list exported symbols. 19737export_symbols_cmds=$lt_export_symbols_cmds_RC 19738 19739# The commands to extract the exported symbol list from a shared archive. 19740extract_expsyms_cmds=$lt_extract_expsyms_cmds 19741 19742# Symbols that should not be listed in the preloaded symbols. 19743exclude_expsyms=$lt_exclude_expsyms_RC 19744 19745# Symbols that must always be exported. 19746include_expsyms=$lt_include_expsyms_RC 19747 19748# ### END LIBTOOL TAG CONFIG: $tagname 19749 19750__EOF__ 19751 19752 19753else 19754 # If there is no Makefile yet, we rely on a make rule to execute 19755 # `config.status --recheck' to rerun these tests and create the 19756 # libtool script then. 19757 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19758 if test -f "$ltmain_in"; then 19759 test -f Makefile && make "$ltmain" 19760 fi 19761fi 19762 19763 19764ac_ext=cc 19765ac_cpp='$CXXCPP $CPPFLAGS' 19766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19769 19770CC="$lt_save_CC" 19771 19772 ;; 19773 19774 *) 19775 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19776echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19777 { (exit 1); exit 1; }; } 19778 ;; 19779 esac 19780 19781 # Append the new tag name to the list of available tags. 19782 if test -n "$tagname" ; then 19783 available_tags="$available_tags $tagname" 19784 fi 19785 fi 19786 done 19787 IFS="$lt_save_ifs" 19788 19789 # Now substitute the updated list of available tags. 19790 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19791 mv "${ofile}T" "$ofile" 19792 chmod +x "$ofile" 19793 else 19794 rm -f "${ofile}T" 19795 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19796echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19797 { (exit 1); exit 1; }; } 19798 fi 19799fi 19800 19801 19802 19803# This can be used to rebuild libtool when needed 19804LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19805 19806# Always use our own libtool. 19807LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19808 19809# Prevent multiple expansion 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 echo "$as_me:$LINENO: checking for sdl-config" >&5 19835echo $ECHO_N "checking for sdl-config... $ECHO_C" >&6 19836 if test -n "$LIBSDL_CONFIG"; then 19837 kde_cv_path="$LIBSDL_CONFIG"; 19838 else 19839 kde_cache=`echo sdl-config | sed 'y%./+-%__p_%'` 19840 19841 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then 19842 echo $ECHO_N "(cached) $ECHO_C" >&6 19843else 19844 19845 kde_cv_path="NONE" 19846 dirs="${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin" 19847 kde_save_IFS=$IFS 19848 IFS=':' 19849 for dir in $PATH; do 19850 dirs="$dirs $dir" 19851 done 19852 IFS=$kde_save_IFS 19853 19854 for dir in $dirs; do 19855 if test -x "$dir/sdl-config"; then 19856 if test -n "" 19857 then 19858 evalstr="$dir/sdl-config 2>&1 " 19859 if eval $evalstr; then 19860 kde_cv_path="$dir/sdl-config" 19861 break 19862 fi 19863 else 19864 kde_cv_path="$dir/sdl-config" 19865 break 19866 fi 19867 fi 19868 done 19869 19870 eval "kde_cv_path_$kde_cache=$kde_cv_path" 19871 19872 19873fi 19874 19875 19876 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" 19877 19878 fi 19879 19880 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then 19881 echo "$as_me:$LINENO: result: not found" >&5 19882echo "${ECHO_T}not found" >&6 19883 19884 { echo "$as_me:$LINENO: WARNING: Could not find libsdl anywhere, check http://www.sdl.org" >&5 19885echo "$as_me: WARNING: Could not find libsdl anywhere, check http://www.sdl.org" >&2;} 19886 19887 else 19888 echo "$as_me:$LINENO: result: $kde_cv_path" >&5 19889echo "${ECHO_T}$kde_cv_path" >&6 19890 LIBSDL_CONFIG=$kde_cv_path 19891 19892 fi 19893 19894 19895if test -n "$LIBSDL_CONFIG"; then 19896 LIBSDL_LIBS="`$LIBSDL_CONFIG --libs`" 19897 LIBSDL_RPATH= 19898 for args in $LIBSDL_LIBS; do 19899 case $args in 19900 -L*) 19901 LIBSDL_RPATH="$LIBSDL_RPATH $args" 19902 ;; 19903 esac 19904 done 19905 LIBSDL_RPATH=`echo $LIBSDL_RPATH | sed -e "s/-L/-R/g"` 19906 LIBSDL_CFLAGS="`$LIBSDL_CONFIG --cflags`" 19907 19908 19909cat >>confdefs.h <<_ACEOF 19910#define HAVE_LIBSDL 1 19911_ACEOF 19912 19913fi 19914 19915 19916 19917 19918 19919 19920 ac_config_files="$ac_config_files Makefile src/Makefile" 19921cat >confcache <<\_ACEOF 19922# This file is a shell script that caches the results of configure 19923# tests run on this system so they can be shared between configure 19924# scripts and configure runs, see configure's option --config-cache. 19925# It is not useful on other systems. If it contains results you don't 19926# want to keep, you may remove or edit it. 19927# 19928# config.status only pays attention to the cache file if you give it 19929# the --recheck option to rerun configure. 19930# 19931# `ac_cv_env_foo' variables (set or unset) will be overridden when 19932# loading this file, other *unset* `ac_cv_foo' will be assigned the 19933# following values. 19934 19935_ACEOF 19936 19937# The following way of writing the cache mishandles newlines in values, 19938# but we know of no workaround that is simple, portable, and efficient. 19939# So, don't put newlines in cache variables' values. 19940# Ultrix sh set writes to stderr and can't be redirected directly, 19941# and sets the high bit in the cache file unless we assign to the vars. 19942{ 19943 (set) 2>&1 | 19944 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19945 *ac_space=\ *) 19946 # `set' does not quote correctly, so add quotes (double-quote 19947 # substitution turns \\\\ into \\, and sed turns \\ into \). 19948 sed -n \ 19949 "s/'/'\\\\''/g; 19950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19951 ;; 19952 *) 19953 # `set' quotes correctly as required by POSIX, so do not add quotes. 19954 sed -n \ 19955 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19956 ;; 19957 esac; 19958} | 19959 sed ' 19960 t clear 19961 : clear 19962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19963 t end 19964 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19965 : end' >>confcache 19966if diff $cache_file confcache >/dev/null 2>&1; then :; else 19967 if test -w $cache_file; then 19968 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19969 cat confcache >$cache_file 19970 else 19971 echo "not updating unwritable cache $cache_file" 19972 fi 19973fi 19974rm -f confcache 19975 19976test "x$prefix" = xNONE && prefix=$ac_default_prefix 19977# Let make expand exec_prefix. 19978test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19979 19980# VPATH may cause trouble with some makes, so we remove $(srcdir), 19981# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19982# trailing colons and then remove the whole line if VPATH becomes empty 19983# (actually we leave an empty line to preserve line numbers). 19984if test "x$srcdir" = x.; then 19985 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19986s/:*\$(srcdir):*/:/; 19987s/:*\${srcdir}:*/:/; 19988s/:*@srcdir@:*/:/; 19989s/^\([^=]*=[ ]*\):*/\1/; 19990s/:*$//; 19991s/^[^=]*=[ ]*$//; 19992}' 19993fi 19994 19995DEFS=-DHAVE_CONFIG_H 19996 19997ac_libobjs= 19998ac_ltlibobjs= 19999for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20000 # 1. Remove the extension, and $U if already installed. 20001 ac_i=`echo "$ac_i" | 20002 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20003 # 2. Add them. 20004 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20005 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20006done 20007LIBOBJS=$ac_libobjs 20008 20009LTLIBOBJS=$ac_ltlibobjs 20010 20011 20012if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20013 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20014Usually this means the macro was only invoked conditionally." >&5 20015echo "$as_me: error: conditional \"AMDEP\" was never defined. 20016Usually this means the macro was only invoked conditionally." >&2;} 20017 { (exit 1); exit 1; }; } 20018fi 20019if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20020 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20021Usually this means the macro was only invoked conditionally." >&5 20022echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20023Usually this means the macro was only invoked conditionally." >&2;} 20024 { (exit 1); exit 1; }; } 20025fi 20026if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20027 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20028Usually this means the macro was only invoked conditionally." >&5 20029echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20030Usually this means the macro was only invoked conditionally." >&2;} 20031 { (exit 1); exit 1; }; } 20032fi 20033 20034: ${CONFIG_STATUS=./config.status} 20035ac_clean_files_save=$ac_clean_files 20036ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20037{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20038echo "$as_me: creating $CONFIG_STATUS" >&6;} 20039cat >$CONFIG_STATUS <<_ACEOF 20040#! $SHELL 20041# Generated by $as_me. 20042# Run this file to recreate the current configuration. 20043# Compiler output produced by configure, useful for debugging 20044# configure, is in config.log if it exists. 20045 20046debug=false 20047ac_cs_recheck=false 20048ac_cs_silent=false 20049SHELL=\${CONFIG_SHELL-$SHELL} 20050_ACEOF 20051 20052cat >>$CONFIG_STATUS <<\_ACEOF 20053## --------------------- ## 20054## M4sh Initialization. ## 20055## --------------------- ## 20056 20057# Be Bourne compatible 20058if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20059 emulate sh 20060 NULLCMD=: 20061 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20062 # is contrary to our usage. Disable this feature. 20063 alias -g '${1+"$@"}'='"$@"' 20064elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20065 set -o posix 20066fi 20067DUALCASE=1; export DUALCASE # for MKS sh 20068 20069# Support unset when possible. 20070if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20071 as_unset=unset 20072else 20073 as_unset=false 20074fi 20075 20076 20077# Work around bugs in pre-3.0 UWIN ksh. 20078$as_unset ENV MAIL MAILPATH 20079PS1='$ ' 20080PS2='> ' 20081PS4='+ ' 20082 20083# NLS nuisances. 20084for as_var in \ 20085 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20086 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20087 LC_TELEPHONE LC_TIME 20088do 20089 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20090 eval $as_var=C; export $as_var 20091 else 20092 $as_unset $as_var 20093 fi 20094done 20095 20096# Required to use basename. 20097if expr a : '\(a\)' >/dev/null 2>&1; then 20098 as_expr=expr 20099else 20100 as_expr=false 20101fi 20102 20103if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20104 as_basename=basename 20105else 20106 as_basename=false 20107fi 20108 20109 20110# Name of the executable. 20111as_me=`$as_basename "$0" || 20112$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20113 X"$0" : 'X\(//\)$' \| \ 20114 X"$0" : 'X\(/\)$' \| \ 20115 . : '\(.\)' 2>/dev/null || 20116echo X/"$0" | 20117 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20118 /^X\/\(\/\/\)$/{ s//\1/; q; } 20119 /^X\/\(\/\).*/{ s//\1/; q; } 20120 s/.*/./; q'` 20121 20122 20123# PATH needs CR, and LINENO needs CR and PATH. 20124# Avoid depending upon Character Ranges. 20125as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20126as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20127as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20128as_cr_digits='0123456789' 20129as_cr_alnum=$as_cr_Letters$as_cr_digits 20130 20131# The user is always right. 20132if test "${PATH_SEPARATOR+set}" != set; then 20133 echo "#! /bin/sh" >conf$$.sh 20134 echo "exit 0" >>conf$$.sh 20135 chmod +x conf$$.sh 20136 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20137 PATH_SEPARATOR=';' 20138 else 20139 PATH_SEPARATOR=: 20140 fi 20141 rm -f conf$$.sh 20142fi 20143 20144 20145 as_lineno_1=$LINENO 20146 as_lineno_2=$LINENO 20147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20148 test "x$as_lineno_1" != "x$as_lineno_2" && 20149 test "x$as_lineno_3" = "x$as_lineno_2" || { 20150 # Find who we are. Look in the path if we contain no path at all 20151 # relative or not. 20152 case $0 in 20153 *[\\/]* ) as_myself=$0 ;; 20154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20155for as_dir in $PATH 20156do 20157 IFS=$as_save_IFS 20158 test -z "$as_dir" && as_dir=. 20159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20160done 20161 20162 ;; 20163 esac 20164 # We did not find ourselves, most probably we were run as `sh COMMAND' 20165 # in which case we are not to be found in the path. 20166 if test "x$as_myself" = x; then 20167 as_myself=$0 20168 fi 20169 if test ! -f "$as_myself"; then 20170 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20171echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20172 { (exit 1); exit 1; }; } 20173 fi 20174 case $CONFIG_SHELL in 20175 '') 20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20177for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20178do 20179 IFS=$as_save_IFS 20180 test -z "$as_dir" && as_dir=. 20181 for as_base in sh bash ksh sh5; do 20182 case $as_dir in 20183 /*) 20184 if ("$as_dir/$as_base" -c ' 20185 as_lineno_1=$LINENO 20186 as_lineno_2=$LINENO 20187 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20188 test "x$as_lineno_1" != "x$as_lineno_2" && 20189 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20190 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20191 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20192 CONFIG_SHELL=$as_dir/$as_base 20193 export CONFIG_SHELL 20194 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20195 fi;; 20196 esac 20197 done 20198done 20199;; 20200 esac 20201 20202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20203 # uniformly replaced by the line number. The first 'sed' inserts a 20204 # line-number line before each line; the second 'sed' does the real 20205 # work. The second script uses 'N' to pair each line-number line 20206 # with the numbered line, and appends trailing '-' during 20207 # substitution so that $LINENO is not a special case at line end. 20208 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20209 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20210 sed '=' <$as_myself | 20211 sed ' 20212 N 20213 s,$,-, 20214 : loop 20215 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20216 t loop 20217 s,-$,, 20218 s,^['$as_cr_digits']*\n,, 20219 ' >$as_me.lineno && 20220 chmod +x $as_me.lineno || 20221 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20222echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20223 { (exit 1); exit 1; }; } 20224 20225 # Don't try to exec as it changes $[0], causing all sort of problems 20226 # (the dirname of $[0] is not the place where we might find the 20227 # original and so on. Autoconf is especially sensible to this). 20228 . ./$as_me.lineno 20229 # Exit status is that of the last command. 20230 exit 20231} 20232 20233 20234case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20235 *c*,-n*) ECHO_N= ECHO_C=' 20236' ECHO_T=' ' ;; 20237 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20238 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20239esac 20240 20241if expr a : '\(a\)' >/dev/null 2>&1; then 20242 as_expr=expr 20243else 20244 as_expr=false 20245fi 20246 20247rm -f conf$$ conf$$.exe conf$$.file 20248echo >conf$$.file 20249if ln -s conf$$.file conf$$ 2>/dev/null; then 20250 # We could just check for DJGPP; but this test a) works b) is more generic 20251 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20252 if test -f conf$$.exe; then 20253 # Don't use ln at all; we don't have any links 20254 as_ln_s='cp -p' 20255 else 20256 as_ln_s='ln -s' 20257 fi 20258elif ln conf$$.file conf$$ 2>/dev/null; then 20259 as_ln_s=ln 20260else 20261 as_ln_s='cp -p' 20262fi 20263rm -f conf$$ conf$$.exe conf$$.file 20264 20265if mkdir -p . 2>/dev/null; then 20266 as_mkdir_p=: 20267else 20268 test -d ./-p && rmdir ./-p 20269 as_mkdir_p=false 20270fi 20271 20272as_executable_p="test -f" 20273 20274# Sed expression to map a string onto a valid CPP name. 20275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20276 20277# Sed expression to map a string onto a valid variable name. 20278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20279 20280 20281# IFS 20282# We need space, tab and new line, in precisely that order. 20283as_nl=' 20284' 20285IFS=" $as_nl" 20286 20287# CDPATH. 20288$as_unset CDPATH 20289 20290exec 6>&1 20291 20292# Open the log real soon, to keep \$[0] and so on meaningful, and to 20293# report actual input values of CONFIG_FILES etc. instead of their 20294# values after options handling. Logging --version etc. is OK. 20295exec 5>>config.log 20296{ 20297 echo 20298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20299## Running $as_me. ## 20300_ASBOX 20301} >&5 20302cat >&5 <<_CSEOF 20303 20304This file was extended by $as_me, which was 20305generated by GNU Autoconf 2.59. Invocation command line was 20306 20307 CONFIG_FILES = $CONFIG_FILES 20308 CONFIG_HEADERS = $CONFIG_HEADERS 20309 CONFIG_LINKS = $CONFIG_LINKS 20310 CONFIG_COMMANDS = $CONFIG_COMMANDS 20311 $ $0 $@ 20312 20313_CSEOF 20314echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20315echo >&5 20316_ACEOF 20317 20318# Files that config.status was made for. 20319if test -n "$ac_config_files"; then 20320 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20321fi 20322 20323if test -n "$ac_config_headers"; then 20324 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20325fi 20326 20327if test -n "$ac_config_links"; then 20328 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20329fi 20330 20331if test -n "$ac_config_commands"; then 20332 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20333fi 20334 20335cat >>$CONFIG_STATUS <<\_ACEOF 20336 20337ac_cs_usage="\ 20338\`$as_me' instantiates files from templates according to the 20339current configuration. 20340 20341Usage: $0 [OPTIONS] [FILE]... 20342 20343 -h, --help print this help, then exit 20344 -V, --version print version number, then exit 20345 -q, --quiet do not print progress messages 20346 -d, --debug don't remove temporary files 20347 --recheck update $as_me by reconfiguring in the same conditions 20348 --file=FILE[:TEMPLATE] 20349 instantiate the configuration file FILE 20350 --header=FILE[:TEMPLATE] 20351 instantiate the configuration header FILE 20352 20353Configuration files: 20354$config_files 20355 20356Configuration headers: 20357$config_headers 20358 20359Configuration commands: 20360$config_commands 20361 20362Report bugs to <bug-autoconf@gnu.org>." 20363_ACEOF 20364 20365cat >>$CONFIG_STATUS <<_ACEOF 20366ac_cs_version="\\ 20367config.status 20368configured by $0, generated by GNU Autoconf 2.59, 20369 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20370 20371Copyright (C) 2003 Free Software Foundation, Inc. 20372This config.status script is free software; the Free Software Foundation 20373gives unlimited permission to copy, distribute and modify it." 20374srcdir=$srcdir 20375INSTALL="$INSTALL" 20376_ACEOF 20377 20378cat >>$CONFIG_STATUS <<\_ACEOF 20379# If no file are specified by the user, then we need to provide default 20380# value. By we need to know if files were specified by the user. 20381ac_need_defaults=: 20382while test $# != 0 20383do 20384 case $1 in 20385 --*=*) 20386 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20387 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20388 ac_shift=: 20389 ;; 20390 -*) 20391 ac_option=$1 20392 ac_optarg=$2 20393 ac_shift=shift 20394 ;; 20395 *) # This is not an option, so the user has probably given explicit 20396 # arguments. 20397 ac_option=$1 20398 ac_need_defaults=false;; 20399 esac 20400 20401 case $ac_option in 20402 # Handling of the options. 20403_ACEOF 20404cat >>$CONFIG_STATUS <<\_ACEOF 20405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20406 ac_cs_recheck=: ;; 20407 --version | --vers* | -V ) 20408 echo "$ac_cs_version"; exit 0 ;; 20409 --he | --h) 20410 # Conflict between --help and --header 20411 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20412Try \`$0 --help' for more information." >&5 20413echo "$as_me: error: ambiguous option: $1 20414Try \`$0 --help' for more information." >&2;} 20415 { (exit 1); exit 1; }; };; 20416 --help | --hel | -h ) 20417 echo "$ac_cs_usage"; exit 0 ;; 20418 --debug | --d* | -d ) 20419 debug=: ;; 20420 --file | --fil | --fi | --f ) 20421 $ac_shift 20422 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20423 ac_need_defaults=false;; 20424 --header | --heade | --head | --hea ) 20425 $ac_shift 20426 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20427 ac_need_defaults=false;; 20428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20429 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20430 ac_cs_silent=: ;; 20431 20432 # This is an error. 20433 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20434Try \`$0 --help' for more information." >&5 20435echo "$as_me: error: unrecognized option: $1 20436Try \`$0 --help' for more information." >&2;} 20437 { (exit 1); exit 1; }; } ;; 20438 20439 *) ac_config_targets="$ac_config_targets $1" ;; 20440 20441 esac 20442 shift 20443done 20444 20445ac_configure_extra_args= 20446 20447if $ac_cs_silent; then 20448 exec 6>/dev/null 20449 ac_configure_extra_args="$ac_configure_extra_args --silent" 20450fi 20451 20452_ACEOF 20453cat >>$CONFIG_STATUS <<_ACEOF 20454if \$ac_cs_recheck; then 20455 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20456 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20457fi 20458 20459_ACEOF 20460 20461cat >>$CONFIG_STATUS <<_ACEOF 20462# 20463# INIT-COMMANDS section. 20464# 20465 20466AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20467 20468_ACEOF 20469 20470 20471 20472cat >>$CONFIG_STATUS <<\_ACEOF 20473for ac_config_target in $ac_config_targets 20474do 20475 case "$ac_config_target" in 20476 # Handling of arguments. 20477 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20478 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20479 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20480 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20481 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20482echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20483 { (exit 1); exit 1; }; };; 20484 esac 20485done 20486 20487# If the user did not use the arguments to specify the items to instantiate, 20488# then the envvar interface is used. Set only those that are not. 20489# We use the long form for the default assignment because of an extremely 20490# bizarre bug on SunOS 4.1.3. 20491if $ac_need_defaults; then 20492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20495fi 20496 20497# Have a temporary directory for convenience. Make it in the build tree 20498# simply because there is no reason to put it here, and in addition, 20499# creating and moving files from /tmp can sometimes cause problems. 20500# Create a temporary directory, and hook for its removal unless debugging. 20501$debug || 20502{ 20503 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20504 trap '{ (exit 1); exit 1; }' 1 2 13 15 20505} 20506 20507# Create a (secure) tmp directory for tmp files. 20508 20509{ 20510 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20511 test -n "$tmp" && test -d "$tmp" 20512} || 20513{ 20514 tmp=./confstat$$-$RANDOM 20515 (umask 077 && mkdir $tmp) 20516} || 20517{ 20518 echo "$me: cannot create a temporary directory in ." >&2 20519 { (exit 1); exit 1; } 20520} 20521 20522_ACEOF 20523 20524cat >>$CONFIG_STATUS <<_ACEOF 20525 20526# 20527# CONFIG_FILES section. 20528# 20529 20530# No need to generate the scripts if there are no CONFIG_FILES. 20531# This happens for instance when ./config.status config.h 20532if test -n "\$CONFIG_FILES"; then 20533 # Protect against being on the right side of a sed subst in config.status. 20534 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20535 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20536s,@SHELL@,$SHELL,;t t 20537s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20538s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20539s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20540s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20541s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20542s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20543s,@exec_prefix@,$exec_prefix,;t t 20544s,@prefix@,$prefix,;t t 20545s,@program_transform_name@,$program_transform_name,;t t 20546s,@bindir@,$bindir,;t t 20547s,@sbindir@,$sbindir,;t t 20548s,@libexecdir@,$libexecdir,;t t 20549s,@datadir@,$datadir,;t t 20550s,@sysconfdir@,$sysconfdir,;t t 20551s,@sharedstatedir@,$sharedstatedir,;t t 20552s,@localstatedir@,$localstatedir,;t t 20553s,@libdir@,$libdir,;t t 20554s,@includedir@,$includedir,;t t 20555s,@oldincludedir@,$oldincludedir,;t t 20556s,@infodir@,$infodir,;t t 20557s,@mandir@,$mandir,;t t 20558s,@build_alias@,$build_alias,;t t 20559s,@host_alias@,$host_alias,;t t 20560s,@target_alias@,$target_alias,;t t 20561s,@DEFS@,$DEFS,;t t 20562s,@ECHO_C@,$ECHO_C,;t t 20563s,@ECHO_N@,$ECHO_N,;t t 20564s,@ECHO_T@,$ECHO_T,;t t 20565s,@LIBS@,$LIBS,;t t 20566s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20567s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20568s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20569s,@CYGPATH_W@,$CYGPATH_W,;t t 20570s,@PACKAGE@,$PACKAGE,;t t 20571s,@VERSION@,$VERSION,;t t 20572s,@ACLOCAL@,$ACLOCAL,;t t 20573s,@AUTOCONF@,$AUTOCONF,;t t 20574s,@AUTOMAKE@,$AUTOMAKE,;t t 20575s,@AUTOHEADER@,$AUTOHEADER,;t t 20576s,@MAKEINFO@,$MAKEINFO,;t t 20577s,@install_sh@,$install_sh,;t t 20578s,@STRIP@,$STRIP,;t t 20579s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20580s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20581s,@mkdir_p@,$mkdir_p,;t t 20582s,@AWK@,$AWK,;t t 20583s,@SET_MAKE@,$SET_MAKE,;t t 20584s,@am__leading_dot@,$am__leading_dot,;t t 20585s,@AMTAR@,$AMTAR,;t t 20586s,@am__tar@,$am__tar,;t t 20587s,@am__untar@,$am__untar,;t t 20588s,@CXX@,$CXX,;t t 20589s,@CXXFLAGS@,$CXXFLAGS,;t t 20590s,@LDFLAGS@,$LDFLAGS,;t t 20591s,@CPPFLAGS@,$CPPFLAGS,;t t 20592s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20593s,@EXEEXT@,$EXEEXT,;t t 20594s,@OBJEXT@,$OBJEXT,;t t 20595s,@DEPDIR@,$DEPDIR,;t t 20596s,@am__include@,$am__include,;t t 20597s,@am__quote@,$am__quote,;t t 20598s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20599s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20600s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20601s,@CXXDEPMODE@,$CXXDEPMODE,;t t 20602s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 20603s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 20604s,@build@,$build,;t t 20605s,@build_cpu@,$build_cpu,;t t 20606s,@build_vendor@,$build_vendor,;t t 20607s,@build_os@,$build_os,;t t 20608s,@host@,$host,;t t 20609s,@host_cpu@,$host_cpu,;t t 20610s,@host_vendor@,$host_vendor,;t t 20611s,@host_os@,$host_os,;t t 20612s,@CC@,$CC,;t t 20613s,@CFLAGS@,$CFLAGS,;t t 20614s,@ac_ct_CC@,$ac_ct_CC,;t t 20615s,@CCDEPMODE@,$CCDEPMODE,;t t 20616s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20617s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20618s,@EGREP@,$EGREP,;t t 20619s,@LN_S@,$LN_S,;t t 20620s,@ECHO@,$ECHO,;t t 20621s,@AR@,$AR,;t t 20622s,@ac_ct_AR@,$ac_ct_AR,;t t 20623s,@RANLIB@,$RANLIB,;t t 20624s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20625s,@CPP@,$CPP,;t t 20626s,@CXXCPP@,$CXXCPP,;t t 20627s,@F77@,$F77,;t t 20628s,@FFLAGS@,$FFLAGS,;t t 20629s,@ac_ct_F77@,$ac_ct_F77,;t t 20630s,@LIBTOOL@,$LIBTOOL,;t t 20631s,@LIBSDL_LIBS@,$LIBSDL_LIBS,;t t 20632s,@LIBSDL_CFLAGS@,$LIBSDL_CFLAGS,;t t 20633s,@LIBSDL_RPATH@,$LIBSDL_RPATH,;t t 20634s,@LIBOBJS@,$LIBOBJS,;t t 20635s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20636CEOF 20637 20638_ACEOF 20639 20640 cat >>$CONFIG_STATUS <<\_ACEOF 20641 # Split the substitutions into bite-sized pieces for seds with 20642 # small command number limits, like on Digital OSF/1 and HP-UX. 20643 ac_max_sed_lines=48 20644 ac_sed_frag=1 # Number of current file. 20645 ac_beg=1 # First line for current file. 20646 ac_end=$ac_max_sed_lines # Line after last line for current file. 20647 ac_more_lines=: 20648 ac_sed_cmds= 20649 while $ac_more_lines; do 20650 if test $ac_beg -gt 1; then 20651 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20652 else 20653 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20654 fi 20655 if test ! -s $tmp/subs.frag; then 20656 ac_more_lines=false 20657 else 20658 # The purpose of the label and of the branching condition is to 20659 # speed up the sed processing (if there are no `@' at all, there 20660 # is no need to browse any of the substitutions). 20661 # These are the two extra sed commands mentioned above. 20662 (echo ':t 20663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20664 if test -z "$ac_sed_cmds"; then 20665 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20666 else 20667 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20668 fi 20669 ac_sed_frag=`expr $ac_sed_frag + 1` 20670 ac_beg=$ac_end 20671 ac_end=`expr $ac_end + $ac_max_sed_lines` 20672 fi 20673 done 20674 if test -z "$ac_sed_cmds"; then 20675 ac_sed_cmds=cat 20676 fi 20677fi # test -n "$CONFIG_FILES" 20678 20679_ACEOF 20680cat >>$CONFIG_STATUS <<\_ACEOF 20681for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20683 case $ac_file in 20684 - | *:- | *:-:* ) # input from stdin 20685 cat >$tmp/stdin 20686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20690 * ) ac_file_in=$ac_file.in ;; 20691 esac 20692 20693 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20694 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20695$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20696 X"$ac_file" : 'X\(//\)[^/]' \| \ 20697 X"$ac_file" : 'X\(//\)$' \| \ 20698 X"$ac_file" : 'X\(/\)' \| \ 20699 . : '\(.\)' 2>/dev/null || 20700echo X"$ac_file" | 20701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20702 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20703 /^X\(\/\/\)$/{ s//\1/; q; } 20704 /^X\(\/\).*/{ s//\1/; q; } 20705 s/.*/./; q'` 20706 { if $as_mkdir_p; then 20707 mkdir -p "$ac_dir" 20708 else 20709 as_dir="$ac_dir" 20710 as_dirs= 20711 while test ! -d "$as_dir"; do 20712 as_dirs="$as_dir $as_dirs" 20713 as_dir=`(dirname "$as_dir") 2>/dev/null || 20714$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20715 X"$as_dir" : 'X\(//\)[^/]' \| \ 20716 X"$as_dir" : 'X\(//\)$' \| \ 20717 X"$as_dir" : 'X\(/\)' \| \ 20718 . : '\(.\)' 2>/dev/null || 20719echo X"$as_dir" | 20720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20721 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20722 /^X\(\/\/\)$/{ s//\1/; q; } 20723 /^X\(\/\).*/{ s//\1/; q; } 20724 s/.*/./; q'` 20725 done 20726 test ! -n "$as_dirs" || mkdir $as_dirs 20727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20728echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20729 { (exit 1); exit 1; }; }; } 20730 20731 ac_builddir=. 20732 20733if test "$ac_dir" != .; then 20734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20735 # A "../" for each directory in $ac_dir_suffix. 20736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20737else 20738 ac_dir_suffix= ac_top_builddir= 20739fi 20740 20741case $srcdir in 20742 .) # No --srcdir option. We are building in place. 20743 ac_srcdir=. 20744 if test -z "$ac_top_builddir"; then 20745 ac_top_srcdir=. 20746 else 20747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20748 fi ;; 20749 [\\/]* | ?:[\\/]* ) # Absolute path. 20750 ac_srcdir=$srcdir$ac_dir_suffix; 20751 ac_top_srcdir=$srcdir ;; 20752 *) # Relative path. 20753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20754 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20755esac 20756 20757# Do not use `cd foo && pwd` to compute absolute paths, because 20758# the directories may not exist. 20759case `pwd` in 20760.) ac_abs_builddir="$ac_dir";; 20761*) 20762 case "$ac_dir" in 20763 .) ac_abs_builddir=`pwd`;; 20764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20765 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20766 esac;; 20767esac 20768case $ac_abs_builddir in 20769.) ac_abs_top_builddir=${ac_top_builddir}.;; 20770*) 20771 case ${ac_top_builddir}. in 20772 .) ac_abs_top_builddir=$ac_abs_builddir;; 20773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20775 esac;; 20776esac 20777case $ac_abs_builddir in 20778.) ac_abs_srcdir=$ac_srcdir;; 20779*) 20780 case $ac_srcdir in 20781 .) ac_abs_srcdir=$ac_abs_builddir;; 20782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20784 esac;; 20785esac 20786case $ac_abs_builddir in 20787.) ac_abs_top_srcdir=$ac_top_srcdir;; 20788*) 20789 case $ac_top_srcdir in 20790 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20793 esac;; 20794esac 20795 20796 20797 case $INSTALL in 20798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20799 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20800 esac 20801 20802 if test x"$ac_file" != x-; then 20803 { echo "$as_me:$LINENO: creating $ac_file" >&5 20804echo "$as_me: creating $ac_file" >&6;} 20805 rm -f "$ac_file" 20806 fi 20807 # Let's still pretend it is `configure' which instantiates (i.e., don't 20808 # use $as_me), people would be surprised to read: 20809 # /* config.h. Generated by config.status. */ 20810 if test x"$ac_file" = x-; then 20811 configure_input= 20812 else 20813 configure_input="$ac_file. " 20814 fi 20815 configure_input=$configure_input"Generated from `echo $ac_file_in | 20816 sed 's,.*/,,'` by configure." 20817 20818 # First look for the input files in the build tree, otherwise in the 20819 # src tree. 20820 ac_file_inputs=`IFS=: 20821 for f in $ac_file_in; do 20822 case $f in 20823 -) echo $tmp/stdin ;; 20824 [\\/$]*) 20825 # Absolute (can't be DOS-style, as IFS=:) 20826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20827echo "$as_me: error: cannot find input file: $f" >&2;} 20828 { (exit 1); exit 1; }; } 20829 echo "$f";; 20830 *) # Relative 20831 if test -f "$f"; then 20832 # Build tree 20833 echo "$f" 20834 elif test -f "$srcdir/$f"; then 20835 # Source tree 20836 echo "$srcdir/$f" 20837 else 20838 # /dev/null tree 20839 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20840echo "$as_me: error: cannot find input file: $f" >&2;} 20841 { (exit 1); exit 1; }; } 20842 fi;; 20843 esac 20844 done` || { (exit 1); exit 1; } 20845_ACEOF 20846cat >>$CONFIG_STATUS <<_ACEOF 20847 sed "$ac_vpsub 20848$extrasub 20849_ACEOF 20850cat >>$CONFIG_STATUS <<\_ACEOF 20851:t 20852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20853s,@configure_input@,$configure_input,;t t 20854s,@srcdir@,$ac_srcdir,;t t 20855s,@abs_srcdir@,$ac_abs_srcdir,;t t 20856s,@top_srcdir@,$ac_top_srcdir,;t t 20857s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20858s,@builddir@,$ac_builddir,;t t 20859s,@abs_builddir@,$ac_abs_builddir,;t t 20860s,@top_builddir@,$ac_top_builddir,;t t 20861s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20862s,@INSTALL@,$ac_INSTALL,;t t 20863" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20864 rm -f $tmp/stdin 20865 if test x"$ac_file" != x-; then 20866 mv $tmp/out $ac_file 20867 else 20868 cat $tmp/out 20869 rm -f $tmp/out 20870 fi 20871 20872done 20873_ACEOF 20874cat >>$CONFIG_STATUS <<\_ACEOF 20875 20876# 20877# CONFIG_HEADER section. 20878# 20879 20880# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20881# NAME is the cpp macro being defined and VALUE is the value it is being given. 20882# 20883# ac_d sets the value in "#define NAME VALUE" lines. 20884ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20885ac_dB='[ ].*$,\1#\2' 20886ac_dC=' ' 20887ac_dD=',;t' 20888# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20889ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20890ac_uB='$,\1#\2define\3' 20891ac_uC=' ' 20892ac_uD=',;t' 20893 20894for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20896 case $ac_file in 20897 - | *:- | *:-:* ) # input from stdin 20898 cat >$tmp/stdin 20899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20903 * ) ac_file_in=$ac_file.in ;; 20904 esac 20905 20906 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20907echo "$as_me: creating $ac_file" >&6;} 20908 20909 # First look for the input files in the build tree, otherwise in the 20910 # src tree. 20911 ac_file_inputs=`IFS=: 20912 for f in $ac_file_in; do 20913 case $f in 20914 -) echo $tmp/stdin ;; 20915 [\\/$]*) 20916 # Absolute (can't be DOS-style, as IFS=:) 20917 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20918echo "$as_me: error: cannot find input file: $f" >&2;} 20919 { (exit 1); exit 1; }; } 20920 # Do quote $f, to prevent DOS paths from being IFS'd. 20921 echo "$f";; 20922 *) # Relative 20923 if test -f "$f"; then 20924 # Build tree 20925 echo "$f" 20926 elif test -f "$srcdir/$f"; then 20927 # Source tree 20928 echo "$srcdir/$f" 20929 else 20930 # /dev/null tree 20931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20932echo "$as_me: error: cannot find input file: $f" >&2;} 20933 { (exit 1); exit 1; }; } 20934 fi;; 20935 esac 20936 done` || { (exit 1); exit 1; } 20937 # Remove the trailing spaces. 20938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20939 20940_ACEOF 20941 20942# Transform confdefs.h into two sed scripts, `conftest.defines' and 20943# `conftest.undefs', that substitutes the proper values into 20944# config.h.in to produce config.h. The first handles `#define' 20945# templates, and the second `#undef' templates. 20946# And first: Protect against being on the right side of a sed subst in 20947# config.status. Protect against being in an unquoted here document 20948# in config.status. 20949rm -f conftest.defines conftest.undefs 20950# Using a here document instead of a string reduces the quoting nightmare. 20951# Putting comments in sed scripts is not portable. 20952# 20953# `end' is used to avoid that the second main sed command (meant for 20954# 0-ary CPP macros) applies to n-ary macro definitions. 20955# See the Autoconf documentation for `clear'. 20956cat >confdef2sed.sed <<\_ACEOF 20957s/[\\&,]/\\&/g 20958s,[\\$`],\\&,g 20959t clear 20960: clear 20961s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20962t end 20963s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20964: end 20965_ACEOF 20966# If some macros were called several times there might be several times 20967# the same #defines, which is useless. Nevertheless, we may not want to 20968# sort them, since we want the *last* AC-DEFINE to be honored. 20969uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20970sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20971rm -f confdef2sed.sed 20972 20973# This sed command replaces #undef with comments. This is necessary, for 20974# example, in the case of _POSIX_SOURCE, which is predefined and required 20975# on some systems where configure will not decide to define it. 20976cat >>conftest.undefs <<\_ACEOF 20977s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20978_ACEOF 20979 20980# Break up conftest.defines because some shells have a limit on the size 20981# of here documents, and old seds have small limits too (100 cmds). 20982echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20983echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20984echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20985echo ' :' >>$CONFIG_STATUS 20986rm -f conftest.tail 20987while grep . conftest.defines >/dev/null 20988do 20989 # Write a limited-size here document to $tmp/defines.sed. 20990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20991 # Speed up: don't consider the non `#define' lines. 20992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20993 # Work around the forget-to-reset-the-flag bug. 20994 echo 't clr' >>$CONFIG_STATUS 20995 echo ': clr' >>$CONFIG_STATUS 20996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20997 echo 'CEOF 20998 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20999 rm -f $tmp/in 21000 mv $tmp/out $tmp/in 21001' >>$CONFIG_STATUS 21002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21003 rm -f conftest.defines 21004 mv conftest.tail conftest.defines 21005done 21006rm -f conftest.defines 21007echo ' fi # grep' >>$CONFIG_STATUS 21008echo >>$CONFIG_STATUS 21009 21010# Break up conftest.undefs because some shells have a limit on the size 21011# of here documents, and old seds have small limits too (100 cmds). 21012echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21013rm -f conftest.tail 21014while grep . conftest.undefs >/dev/null 21015do 21016 # Write a limited-size here document to $tmp/undefs.sed. 21017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21018 # Speed up: don't consider the non `#undef' 21019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21020 # Work around the forget-to-reset-the-flag bug. 21021 echo 't clr' >>$CONFIG_STATUS 21022 echo ': clr' >>$CONFIG_STATUS 21023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21024 echo 'CEOF 21025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21026 rm -f $tmp/in 21027 mv $tmp/out $tmp/in 21028' >>$CONFIG_STATUS 21029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21030 rm -f conftest.undefs 21031 mv conftest.tail conftest.undefs 21032done 21033rm -f conftest.undefs 21034 21035cat >>$CONFIG_STATUS <<\_ACEOF 21036 # Let's still pretend it is `configure' which instantiates (i.e., don't 21037 # use $as_me), people would be surprised to read: 21038 # /* config.h. Generated by config.status. */ 21039 if test x"$ac_file" = x-; then 21040 echo "/* Generated by configure. */" >$tmp/config.h 21041 else 21042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21043 fi 21044 cat $tmp/in >>$tmp/config.h 21045 rm -f $tmp/in 21046 if test x"$ac_file" != x-; then 21047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21049echo "$as_me: $ac_file is unchanged" >&6;} 21050 else 21051 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21053 X"$ac_file" : 'X\(//\)[^/]' \| \ 21054 X"$ac_file" : 'X\(//\)$' \| \ 21055 X"$ac_file" : 'X\(/\)' \| \ 21056 . : '\(.\)' 2>/dev/null || 21057echo X"$ac_file" | 21058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21059 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21060 /^X\(\/\/\)$/{ s//\1/; q; } 21061 /^X\(\/\).*/{ s//\1/; q; } 21062 s/.*/./; q'` 21063 { if $as_mkdir_p; then 21064 mkdir -p "$ac_dir" 21065 else 21066 as_dir="$ac_dir" 21067 as_dirs= 21068 while test ! -d "$as_dir"; do 21069 as_dirs="$as_dir $as_dirs" 21070 as_dir=`(dirname "$as_dir") 2>/dev/null || 21071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21072 X"$as_dir" : 'X\(//\)[^/]' \| \ 21073 X"$as_dir" : 'X\(//\)$' \| \ 21074 X"$as_dir" : 'X\(/\)' \| \ 21075 . : '\(.\)' 2>/dev/null || 21076echo X"$as_dir" | 21077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21078 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21079 /^X\(\/\/\)$/{ s//\1/; q; } 21080 /^X\(\/\).*/{ s//\1/; q; } 21081 s/.*/./; q'` 21082 done 21083 test ! -n "$as_dirs" || mkdir $as_dirs 21084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21086 { (exit 1); exit 1; }; }; } 21087 21088 rm -f $ac_file 21089 mv $tmp/config.h $ac_file 21090 fi 21091 else 21092 cat $tmp/config.h 21093 rm -f $tmp/config.h 21094 fi 21095# Compute $ac_file's index in $config_headers. 21096_am_stamp_count=1 21097for _am_header in $config_headers :; do 21098 case $_am_header in 21099 $ac_file | $ac_file:* ) 21100 break ;; 21101 * ) 21102 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21103 esac 21104done 21105echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21106$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21107 X$ac_file : 'X\(//\)[^/]' \| \ 21108 X$ac_file : 'X\(//\)$' \| \ 21109 X$ac_file : 'X\(/\)' \| \ 21110 . : '\(.\)' 2>/dev/null || 21111echo X$ac_file | 21112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21113 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21114 /^X\(\/\/\)$/{ s//\1/; q; } 21115 /^X\(\/\).*/{ s//\1/; q; } 21116 s/.*/./; q'`/stamp-h$_am_stamp_count 21117done 21118_ACEOF 21119cat >>$CONFIG_STATUS <<\_ACEOF 21120 21121# 21122# CONFIG_COMMANDS section. 21123# 21124for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21125 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21126 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21127 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21128$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21129 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21130 X"$ac_dest" : 'X\(//\)$' \| \ 21131 X"$ac_dest" : 'X\(/\)' \| \ 21132 . : '\(.\)' 2>/dev/null || 21133echo X"$ac_dest" | 21134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21135 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21136 /^X\(\/\/\)$/{ s//\1/; q; } 21137 /^X\(\/\).*/{ s//\1/; q; } 21138 s/.*/./; q'` 21139 { if $as_mkdir_p; then 21140 mkdir -p "$ac_dir" 21141 else 21142 as_dir="$ac_dir" 21143 as_dirs= 21144 while test ! -d "$as_dir"; do 21145 as_dirs="$as_dir $as_dirs" 21146 as_dir=`(dirname "$as_dir") 2>/dev/null || 21147$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21148 X"$as_dir" : 'X\(//\)[^/]' \| \ 21149 X"$as_dir" : 'X\(//\)$' \| \ 21150 X"$as_dir" : 'X\(/\)' \| \ 21151 . : '\(.\)' 2>/dev/null || 21152echo X"$as_dir" | 21153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21154 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21155 /^X\(\/\/\)$/{ s//\1/; q; } 21156 /^X\(\/\).*/{ s//\1/; q; } 21157 s/.*/./; q'` 21158 done 21159 test ! -n "$as_dirs" || mkdir $as_dirs 21160 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21161echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21162 { (exit 1); exit 1; }; }; } 21163 21164 ac_builddir=. 21165 21166if test "$ac_dir" != .; then 21167 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21168 # A "../" for each directory in $ac_dir_suffix. 21169 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21170else 21171 ac_dir_suffix= ac_top_builddir= 21172fi 21173 21174case $srcdir in 21175 .) # No --srcdir option. We are building in place. 21176 ac_srcdir=. 21177 if test -z "$ac_top_builddir"; then 21178 ac_top_srcdir=. 21179 else 21180 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21181 fi ;; 21182 [\\/]* | ?:[\\/]* ) # Absolute path. 21183 ac_srcdir=$srcdir$ac_dir_suffix; 21184 ac_top_srcdir=$srcdir ;; 21185 *) # Relative path. 21186 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21187 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21188esac 21189 21190# Do not use `cd foo && pwd` to compute absolute paths, because 21191# the directories may not exist. 21192case `pwd` in 21193.) ac_abs_builddir="$ac_dir";; 21194*) 21195 case "$ac_dir" in 21196 .) ac_abs_builddir=`pwd`;; 21197 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21198 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21199 esac;; 21200esac 21201case $ac_abs_builddir in 21202.) ac_abs_top_builddir=${ac_top_builddir}.;; 21203*) 21204 case ${ac_top_builddir}. in 21205 .) ac_abs_top_builddir=$ac_abs_builddir;; 21206 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21207 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21208 esac;; 21209esac 21210case $ac_abs_builddir in 21211.) ac_abs_srcdir=$ac_srcdir;; 21212*) 21213 case $ac_srcdir in 21214 .) ac_abs_srcdir=$ac_abs_builddir;; 21215 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21216 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21217 esac;; 21218esac 21219case $ac_abs_builddir in 21220.) ac_abs_top_srcdir=$ac_top_srcdir;; 21221*) 21222 case $ac_top_srcdir in 21223 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21224 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21225 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21226 esac;; 21227esac 21228 21229 21230 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21231echo "$as_me: executing $ac_dest commands" >&6;} 21232 case $ac_dest in 21233 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21234 # Strip MF so we end up with the name of the file. 21235 mf=`echo "$mf" | sed -e 's/:.*$//'` 21236 # Check whether this is an Automake generated Makefile or not. 21237 # We used to match only the files named `Makefile.in', but 21238 # some people rename them; so instead we look at the file content. 21239 # Grep'ing the first line is not enough: some people post-process 21240 # each Makefile.in and add a new line on top of each file to say so. 21241 # So let's grep whole file. 21242 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21243 dirpart=`(dirname "$mf") 2>/dev/null || 21244$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21245 X"$mf" : 'X\(//\)[^/]' \| \ 21246 X"$mf" : 'X\(//\)$' \| \ 21247 X"$mf" : 'X\(/\)' \| \ 21248 . : '\(.\)' 2>/dev/null || 21249echo X"$mf" | 21250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21251 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21252 /^X\(\/\/\)$/{ s//\1/; q; } 21253 /^X\(\/\).*/{ s//\1/; q; } 21254 s/.*/./; q'` 21255 else 21256 continue 21257 fi 21258 # Extract the definition of DEPDIR, am__include, and am__quote 21259 # from the Makefile without running `make'. 21260 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21261 test -z "$DEPDIR" && continue 21262 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21263 test -z "am__include" && continue 21264 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21265 # When using ansi2knr, U may be empty or an underscore; expand it 21266 U=`sed -n 's/^U = //p' < "$mf"` 21267 # Find all dependency output files, they are included files with 21268 # $(DEPDIR) in their names. We invoke sed twice because it is the 21269 # simplest approach to changing $(DEPDIR) to its actual value in the 21270 # expansion. 21271 for file in `sed -n " 21272 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21273 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21274 # Make sure the directory exists. 21275 test -f "$dirpart/$file" && continue 21276 fdir=`(dirname "$file") 2>/dev/null || 21277$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21278 X"$file" : 'X\(//\)[^/]' \| \ 21279 X"$file" : 'X\(//\)$' \| \ 21280 X"$file" : 'X\(/\)' \| \ 21281 . : '\(.\)' 2>/dev/null || 21282echo X"$file" | 21283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21284 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21285 /^X\(\/\/\)$/{ s//\1/; q; } 21286 /^X\(\/\).*/{ s//\1/; q; } 21287 s/.*/./; q'` 21288 { if $as_mkdir_p; then 21289 mkdir -p $dirpart/$fdir 21290 else 21291 as_dir=$dirpart/$fdir 21292 as_dirs= 21293 while test ! -d "$as_dir"; do 21294 as_dirs="$as_dir $as_dirs" 21295 as_dir=`(dirname "$as_dir") 2>/dev/null || 21296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21297 X"$as_dir" : 'X\(//\)[^/]' \| \ 21298 X"$as_dir" : 'X\(//\)$' \| \ 21299 X"$as_dir" : 'X\(/\)' \| \ 21300 . : '\(.\)' 2>/dev/null || 21301echo X"$as_dir" | 21302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21303 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21304 /^X\(\/\/\)$/{ s//\1/; q; } 21305 /^X\(\/\).*/{ s//\1/; q; } 21306 s/.*/./; q'` 21307 done 21308 test ! -n "$as_dirs" || mkdir $as_dirs 21309 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21310echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21311 { (exit 1); exit 1; }; }; } 21312 21313 # echo "creating $dirpart/$file" 21314 echo '# dummy' > "$dirpart/$file" 21315 done 21316done 21317 ;; 21318 esac 21319done 21320_ACEOF 21321 21322cat >>$CONFIG_STATUS <<\_ACEOF 21323 21324{ (exit 0); exit 0; } 21325_ACEOF 21326chmod +x $CONFIG_STATUS 21327ac_clean_files=$ac_clean_files_save 21328 21329 21330# configure is writing to config.log, and then calls config.status. 21331# config.status does its own redirection, appending to config.log. 21332# Unfortunately, on DOS this fails, as config.log is still kept open 21333# by configure, so config.status won't be able to write to it; its 21334# output is simply discarded. So we exec the FD to /dev/null, 21335# effectively closing config.log, so it can be properly (re)opened and 21336# appended to by config.status. When coming back to configure, we 21337# need to make the FD available again. 21338if test "$no_create" != yes; then 21339 ac_cs_success=: 21340 ac_config_status_args= 21341 test "$silent" = yes && 21342 ac_config_status_args="$ac_config_status_args --quiet" 21343 exec 5>/dev/null 21344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21345 exec 5>>config.log 21346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21347 # would make configure fail if this is the last instruction. 21348 $ac_cs_success || { (exit 1); exit 1; } 21349fi 21350 21351