configure revision 641f7ef4fc3d5eb23fa7fa9220760cd8f8fa728a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for LLVM 1.4. 4# 5# Report bugs to <llvmbugs@cs.uiuc.edu>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string="`eval $cmd`") 2>/dev/null && 291 echo_test_string="`eval $cmd`" && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='LLVM' 425PACKAGE_TARNAME='-llvm-' 426PACKAGE_VERSION='1.4' 427PACKAGE_STRING='LLVM 1.4' 428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' 429 430ac_unique_file=""Makefile.config.in"" 431ac_subdirs_all="$ac_subdirs_all projects/sample" 432ac_subdirs_all="$ac_subdirs_all projects/Stacker" 433ac_subdirs_all="$ac_subdirs_all projects/llvm-test" 434ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" 435ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" 436ac_subdirs_all="$ac_subdirs_all projects/Java" 437ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" 438ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw" 439ac_subdirs_all="$ac_subdirs_all ${i}" 440# Factoring default headers for most tests. 441ac_includes_default="\ 442#include <stdio.h> 443#if HAVE_SYS_TYPES_H 444# include <sys/types.h> 445#endif 446#if HAVE_SYS_STAT_H 447# include <sys/stat.h> 448#endif 449#if STDC_HEADERS 450# include <stdlib.h> 451# include <stddef.h> 452#else 453# if HAVE_STDLIB_H 454# include <stdlib.h> 455# endif 456#endif 457#if HAVE_STRING_H 458# if !STDC_HEADERS && HAVE_MEMORY_H 459# include <memory.h> 460# endif 461# include <string.h> 462#endif 463#if HAVE_STRINGS_H 464# include <strings.h> 465#endif 466#if HAVE_INTTYPES_H 467# include <inttypes.h> 468#else 469# if HAVE_STDINT_H 470# include <stdint.h> 471# endif 472#endif 473#if HAVE_UNISTD_H 474# include <unistd.h> 475#endif" 476 477ac_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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' 478ac_subst_files='' 479 480# Initialize some variables set by options. 481ac_init_help= 482ac_init_version=false 483# The variables have the same names as the options, with 484# dashes changed to underlines. 485cache_file=/dev/null 486exec_prefix=NONE 487no_create= 488no_recursion= 489prefix=NONE 490program_prefix=NONE 491program_suffix=NONE 492program_transform_name=s,x,x, 493silent= 494site= 495srcdir= 496verbose= 497x_includes=NONE 498x_libraries=NONE 499 500# Installation directory options. 501# These are left unexpanded so users can "make install exec_prefix=/foo" 502# and all the variables that are supposed to be based on exec_prefix 503# by default will actually change. 504# Use braces instead of parens because sh, perl, etc. also accept them. 505bindir='${exec_prefix}/bin' 506sbindir='${exec_prefix}/sbin' 507libexecdir='${exec_prefix}/libexec' 508datadir='${prefix}/share' 509sysconfdir='${prefix}/etc' 510sharedstatedir='${prefix}/com' 511localstatedir='${prefix}/var' 512libdir='${exec_prefix}/lib' 513includedir='${prefix}/include' 514oldincludedir='/usr/include' 515infodir='${prefix}/info' 516mandir='${prefix}/man' 517 518ac_prev= 519for ac_option 520do 521 # If the previous option needs an argument, assign it. 522 if test -n "$ac_prev"; then 523 eval "$ac_prev=\$ac_option" 524 ac_prev= 525 continue 526 fi 527 528 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 529 530 # Accept the important Cygnus configure options, so we can diagnose typos. 531 532 case $ac_option in 533 534 -bindir | --bindir | --bindi | --bind | --bin | --bi) 535 ac_prev=bindir ;; 536 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 537 bindir=$ac_optarg ;; 538 539 -build | --build | --buil | --bui | --bu) 540 ac_prev=build_alias ;; 541 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 542 build_alias=$ac_optarg ;; 543 544 -cache-file | --cache-file | --cache-fil | --cache-fi \ 545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 546 ac_prev=cache_file ;; 547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 549 cache_file=$ac_optarg ;; 550 551 --config-cache | -C) 552 cache_file=config.cache ;; 553 554 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 555 ac_prev=datadir ;; 556 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 557 | --da=*) 558 datadir=$ac_optarg ;; 559 560 -disable-* | --disable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 eval "enable_$ac_feature=no" ;; 568 569 -enable-* | --enable-*) 570 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 571 # Reject names that are not valid shell variable names. 572 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 573 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 574 { (exit 1); exit 1; }; } 575 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 576 case $ac_option in 577 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 578 *) ac_optarg=yes ;; 579 esac 580 eval "enable_$ac_feature='$ac_optarg'" ;; 581 582 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 583 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 584 | --exec | --exe | --ex) 585 ac_prev=exec_prefix ;; 586 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 587 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 588 | --exec=* | --exe=* | --ex=*) 589 exec_prefix=$ac_optarg ;; 590 591 -gas | --gas | --ga | --g) 592 # Obsolete; use --with-gas. 593 with_gas=yes ;; 594 595 -help | --help | --hel | --he | -h) 596 ac_init_help=long ;; 597 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 598 ac_init_help=recursive ;; 599 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 600 ac_init_help=short ;; 601 602 -host | --host | --hos | --ho) 603 ac_prev=host_alias ;; 604 -host=* | --host=* | --hos=* | --ho=*) 605 host_alias=$ac_optarg ;; 606 607 -includedir | --includedir | --includedi | --included | --include \ 608 | --includ | --inclu | --incl | --inc) 609 ac_prev=includedir ;; 610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 611 | --includ=* | --inclu=* | --incl=* | --inc=*) 612 includedir=$ac_optarg ;; 613 614 -infodir | --infodir | --infodi | --infod | --info | --inf) 615 ac_prev=infodir ;; 616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 617 infodir=$ac_optarg ;; 618 619 -libdir | --libdir | --libdi | --libd) 620 ac_prev=libdir ;; 621 -libdir=* | --libdir=* | --libdi=* | --libd=*) 622 libdir=$ac_optarg ;; 623 624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 625 | --libexe | --libex | --libe) 626 ac_prev=libexecdir ;; 627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 628 | --libexe=* | --libex=* | --libe=*) 629 libexecdir=$ac_optarg ;; 630 631 -localstatedir | --localstatedir | --localstatedi | --localstated \ 632 | --localstate | --localstat | --localsta | --localst \ 633 | --locals | --local | --loca | --loc | --lo) 634 ac_prev=localstatedir ;; 635 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 636 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 637 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 638 localstatedir=$ac_optarg ;; 639 640 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 641 ac_prev=mandir ;; 642 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 643 mandir=$ac_optarg ;; 644 645 -nfp | --nfp | --nf) 646 # Obsolete; use --without-fp. 647 with_fp=no ;; 648 649 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 650 | --no-cr | --no-c | -n) 651 no_create=yes ;; 652 653 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 654 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 655 no_recursion=yes ;; 656 657 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 658 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 659 | --oldin | --oldi | --old | --ol | --o) 660 ac_prev=oldincludedir ;; 661 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 662 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 663 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 664 oldincludedir=$ac_optarg ;; 665 666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 667 ac_prev=prefix ;; 668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 669 prefix=$ac_optarg ;; 670 671 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 672 | --program-pre | --program-pr | --program-p) 673 ac_prev=program_prefix ;; 674 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 675 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 676 program_prefix=$ac_optarg ;; 677 678 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 679 | --program-suf | --program-su | --program-s) 680 ac_prev=program_suffix ;; 681 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 682 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 683 program_suffix=$ac_optarg ;; 684 685 -program-transform-name | --program-transform-name \ 686 | --program-transform-nam | --program-transform-na \ 687 | --program-transform-n | --program-transform- \ 688 | --program-transform | --program-transfor \ 689 | --program-transfo | --program-transf \ 690 | --program-trans | --program-tran \ 691 | --progr-tra | --program-tr | --program-t) 692 ac_prev=program_transform_name ;; 693 -program-transform-name=* | --program-transform-name=* \ 694 | --program-transform-nam=* | --program-transform-na=* \ 695 | --program-transform-n=* | --program-transform-=* \ 696 | --program-transform=* | --program-transfor=* \ 697 | --program-transfo=* | --program-transf=* \ 698 | --program-trans=* | --program-tran=* \ 699 | --progr-tra=* | --program-tr=* | --program-t=*) 700 program_transform_name=$ac_optarg ;; 701 702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 703 | -silent | --silent | --silen | --sile | --sil) 704 silent=yes ;; 705 706 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 707 ac_prev=sbindir ;; 708 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 709 | --sbi=* | --sb=*) 710 sbindir=$ac_optarg ;; 711 712 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 713 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 714 | --sharedst | --shareds | --shared | --share | --shar \ 715 | --sha | --sh) 716 ac_prev=sharedstatedir ;; 717 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 718 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 719 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 720 | --sha=* | --sh=*) 721 sharedstatedir=$ac_optarg ;; 722 723 -site | --site | --sit) 724 ac_prev=site ;; 725 -site=* | --site=* | --sit=*) 726 site=$ac_optarg ;; 727 728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 729 ac_prev=srcdir ;; 730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 731 srcdir=$ac_optarg ;; 732 733 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 734 | --syscon | --sysco | --sysc | --sys | --sy) 735 ac_prev=sysconfdir ;; 736 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 737 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 738 sysconfdir=$ac_optarg ;; 739 740 -target | --target | --targe | --targ | --tar | --ta | --t) 741 ac_prev=target_alias ;; 742 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 743 target_alias=$ac_optarg ;; 744 745 -v | -verbose | --verbose | --verbos | --verbo | --verb) 746 verbose=yes ;; 747 748 -version | --version | --versio | --versi | --vers | -V) 749 ac_init_version=: ;; 750 751 -with-* | --with-*) 752 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 753 # Reject names that are not valid shell variable names. 754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 755 { echo "$as_me: error: invalid package name: $ac_package" >&2 756 { (exit 1); exit 1; }; } 757 ac_package=`echo $ac_package| sed 's/-/_/g'` 758 case $ac_option in 759 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 760 *) ac_optarg=yes ;; 761 esac 762 eval "with_$ac_package='$ac_optarg'" ;; 763 764 -without-* | --without-*) 765 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 766 # Reject names that are not valid shell variable names. 767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 768 { echo "$as_me: error: invalid package name: $ac_package" >&2 769 { (exit 1); exit 1; }; } 770 ac_package=`echo $ac_package | sed 's/-/_/g'` 771 eval "with_$ac_package=no" ;; 772 773 --x) 774 # Obsolete; use --with-x. 775 with_x=yes ;; 776 777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 778 | --x-incl | --x-inc | --x-in | --x-i) 779 ac_prev=x_includes ;; 780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 782 x_includes=$ac_optarg ;; 783 784 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 786 ac_prev=x_libraries ;; 787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 789 x_libraries=$ac_optarg ;; 790 791 -*) { echo "$as_me: error: unrecognized option: $ac_option 792Try \`$0 --help' for more information." >&2 793 { (exit 1); exit 1; }; } 794 ;; 795 796 *=*) 797 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 798 # Reject names that are not valid shell variable names. 799 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 800 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 801 { (exit 1); exit 1; }; } 802 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 803 eval "$ac_envvar='$ac_optarg'" 804 export $ac_envvar ;; 805 806 *) 807 # FIXME: should be removed in autoconf 3.0. 808 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 809 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 810 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 811 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 812 ;; 813 814 esac 815done 816 817if test -n "$ac_prev"; then 818 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 819 { echo "$as_me: error: missing argument to $ac_option" >&2 820 { (exit 1); exit 1; }; } 821fi 822 823# Be sure to have absolute paths. 824for ac_var in exec_prefix prefix 825do 826 eval ac_val=$`echo $ac_var` 827 case $ac_val in 828 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 830 { (exit 1); exit 1; }; };; 831 esac 832done 833 834# Be sure to have absolute paths. 835for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 836 localstatedir libdir includedir oldincludedir infodir mandir 837do 838 eval ac_val=$`echo $ac_var` 839 case $ac_val in 840 [\\/$]* | ?:[\\/]* ) ;; 841 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 842 { (exit 1); exit 1; }; };; 843 esac 844done 845 846# There might be people who depend on the old broken behavior: `$host' 847# used to hold the argument of --host etc. 848# FIXME: To remove some day. 849build=$build_alias 850host=$host_alias 851target=$target_alias 852 853# FIXME: To remove some day. 854if test "x$host_alias" != x; then 855 if test "x$build_alias" = x; then 856 cross_compiling=maybe 857 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 858 If a cross compiler is detected then cross compile mode will be used." >&2 859 elif test "x$build_alias" != "x$host_alias"; then 860 cross_compiling=yes 861 fi 862fi 863 864ac_tool_prefix= 865test -n "$host_alias" && ac_tool_prefix=$host_alias- 866 867test "$silent" = yes && exec 6>/dev/null 868 869 870# Find the source files, if location was not specified. 871if test -z "$srcdir"; then 872 ac_srcdir_defaulted=yes 873 # Try the directory containing this script, then its parent. 874 ac_confdir=`(dirname "$0") 2>/dev/null || 875$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 876 X"$0" : 'X\(//\)[^/]' \| \ 877 X"$0" : 'X\(//\)$' \| \ 878 X"$0" : 'X\(/\)' \| \ 879 . : '\(.\)' 2>/dev/null || 880echo X"$0" | 881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 882 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 883 /^X\(\/\/\)$/{ s//\1/; q; } 884 /^X\(\/\).*/{ s//\1/; q; } 885 s/.*/./; q'` 886 srcdir=$ac_confdir 887 if test ! -r $srcdir/$ac_unique_file; then 888 srcdir=.. 889 fi 890else 891 ac_srcdir_defaulted=no 892fi 893if test ! -r $srcdir/$ac_unique_file; then 894 if test "$ac_srcdir_defaulted" = yes; then 895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 896 { (exit 1); exit 1; }; } 897 else 898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 899 { (exit 1); exit 1; }; } 900 fi 901fi 902(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 903 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 904 { (exit 1); exit 1; }; } 905srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 906ac_env_build_alias_set=${build_alias+set} 907ac_env_build_alias_value=$build_alias 908ac_cv_env_build_alias_set=${build_alias+set} 909ac_cv_env_build_alias_value=$build_alias 910ac_env_host_alias_set=${host_alias+set} 911ac_env_host_alias_value=$host_alias 912ac_cv_env_host_alias_set=${host_alias+set} 913ac_cv_env_host_alias_value=$host_alias 914ac_env_target_alias_set=${target_alias+set} 915ac_env_target_alias_value=$target_alias 916ac_cv_env_target_alias_set=${target_alias+set} 917ac_cv_env_target_alias_value=$target_alias 918ac_env_CXX_set=${CXX+set} 919ac_env_CXX_value=$CXX 920ac_cv_env_CXX_set=${CXX+set} 921ac_cv_env_CXX_value=$CXX 922ac_env_CXXFLAGS_set=${CXXFLAGS+set} 923ac_env_CXXFLAGS_value=$CXXFLAGS 924ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 925ac_cv_env_CXXFLAGS_value=$CXXFLAGS 926ac_env_LDFLAGS_set=${LDFLAGS+set} 927ac_env_LDFLAGS_value=$LDFLAGS 928ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 929ac_cv_env_LDFLAGS_value=$LDFLAGS 930ac_env_CPPFLAGS_set=${CPPFLAGS+set} 931ac_env_CPPFLAGS_value=$CPPFLAGS 932ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 933ac_cv_env_CPPFLAGS_value=$CPPFLAGS 934ac_env_CC_set=${CC+set} 935ac_env_CC_value=$CC 936ac_cv_env_CC_set=${CC+set} 937ac_cv_env_CC_value=$CC 938ac_env_CFLAGS_set=${CFLAGS+set} 939ac_env_CFLAGS_value=$CFLAGS 940ac_cv_env_CFLAGS_set=${CFLAGS+set} 941ac_cv_env_CFLAGS_value=$CFLAGS 942ac_env_CPP_set=${CPP+set} 943ac_env_CPP_value=$CPP 944ac_cv_env_CPP_set=${CPP+set} 945ac_cv_env_CPP_value=$CPP 946ac_env_CXXCPP_set=${CXXCPP+set} 947ac_env_CXXCPP_value=$CXXCPP 948ac_cv_env_CXXCPP_set=${CXXCPP+set} 949ac_cv_env_CXXCPP_value=$CXXCPP 950ac_env_F77_set=${F77+set} 951ac_env_F77_value=$F77 952ac_cv_env_F77_set=${F77+set} 953ac_cv_env_F77_value=$F77 954ac_env_FFLAGS_set=${FFLAGS+set} 955ac_env_FFLAGS_value=$FFLAGS 956ac_cv_env_FFLAGS_set=${FFLAGS+set} 957ac_cv_env_FFLAGS_value=$FFLAGS 958 959# 960# Report the --help message. 961# 962if test "$ac_init_help" = "long"; then 963 # Omit some internal or obsolete options to make the list less imposing. 964 # This message is too long to be a string in the A/UX 3.1 sh. 965 cat <<_ACEOF 966\`configure' configures LLVM 1.4 to adapt to many kinds of systems. 967 968Usage: $0 [OPTION]... [VAR=VALUE]... 969 970To assign environment variables (e.g., CC, CFLAGS...), specify them as 971VAR=VALUE. See below for descriptions of some of the useful variables. 972 973Defaults for the options are specified in brackets. 974 975Configuration: 976 -h, --help display this help and exit 977 --help=short display options specific to this package 978 --help=recursive display the short help of all the included packages 979 -V, --version display version information and exit 980 -q, --quiet, --silent do not print \`checking...' messages 981 --cache-file=FILE cache test results in FILE [disabled] 982 -C, --config-cache alias for \`--cache-file=config.cache' 983 -n, --no-create do not create output files 984 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 985 986_ACEOF 987 988 cat <<_ACEOF 989Installation directories: 990 --prefix=PREFIX install architecture-independent files in PREFIX 991 [$ac_default_prefix] 992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 993 [PREFIX] 994 995By default, \`make install' will install all the files in 996\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 997an installation prefix other than \`$ac_default_prefix' using \`--prefix', 998for instance \`--prefix=\$HOME'. 999 1000For better control, use the options below. 1001 1002Fine tuning of the installation directories: 1003 --bindir=DIR user executables [EPREFIX/bin] 1004 --sbindir=DIR system admin executables [EPREFIX/sbin] 1005 --libexecdir=DIR program executables [EPREFIX/libexec] 1006 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1010 --libdir=DIR object code libraries [EPREFIX/lib] 1011 --includedir=DIR C header files [PREFIX/include] 1012 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1013 --infodir=DIR info documentation [PREFIX/info] 1014 --mandir=DIR man documentation [PREFIX/man] 1015_ACEOF 1016 1017 cat <<\_ACEOF 1018 1019System types: 1020 --build=BUILD configure for building on BUILD [guessed] 1021 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1022 --target=TARGET configure for building compilers for TARGET [HOST] 1023_ACEOF 1024fi 1025 1026if test -n "$ac_init_help"; then 1027 case $ac_init_help in 1028 short | recursive ) echo "Configuration of LLVM 1.4:";; 1029 esac 1030 cat <<\_ACEOF 1031 1032Optional Features: 1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1035 --enable-shared[=PKGS] 1036 build shared libraries [default=yes] 1037 --enable-static[=PKGS] 1038 build static libraries [default=yes] 1039 --enable-fast-install[=PKGS] 1040 optimize for fast installation [default=yes] 1041 --disable-libtool-lock avoid locking (might break parallel builds) 1042 --enable-optimized Compile with optimizations enabled (default is NO) 1043 --enable-jit Enable Just In Time Compiling (default is YES) 1044 1045Optional Packages: 1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1049 --with-pic try to use only PIC/non-PIC objects [default=use 1050 both] 1051 --with-tags[=TAGS] 1052 include additional configurations [automatic] 1053 --with-llvmgccdir Location of LLVM GCC front-end 1054 1055Some influential environment variables: 1056 CXX C++ compiler command 1057 CXXFLAGS C++ compiler flags 1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1059 nonstandard directory <lib dir> 1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1061 headers in a nonstandard directory <include dir> 1062 CC C compiler command 1063 CFLAGS C compiler flags 1064 CPP C preprocessor 1065 CXXCPP C++ preprocessor 1066 F77 Fortran 77 compiler command 1067 FFLAGS Fortran 77 compiler flags 1068 1069Use these variables to override the choices made by `configure' or to help 1070it to find libraries and programs with nonstandard names/locations. 1071 1072Report bugs to <llvmbugs@cs.uiuc.edu>. 1073_ACEOF 1074fi 1075 1076if test "$ac_init_help" = "recursive"; then 1077 # If there are subdirs, report their specific --help. 1078 ac_popdir=`pwd` 1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1080 test -d $ac_dir || continue 1081 ac_builddir=. 1082 1083if test "$ac_dir" != .; then 1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1085 # A "../" for each directory in $ac_dir_suffix. 1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1087else 1088 ac_dir_suffix= ac_top_builddir= 1089fi 1090 1091case $srcdir in 1092 .) # No --srcdir option. We are building in place. 1093 ac_srcdir=. 1094 if test -z "$ac_top_builddir"; then 1095 ac_top_srcdir=. 1096 else 1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1098 fi ;; 1099 [\\/]* | ?:[\\/]* ) # Absolute path. 1100 ac_srcdir=$srcdir$ac_dir_suffix; 1101 ac_top_srcdir=$srcdir ;; 1102 *) # Relative path. 1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1104 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1105esac 1106 1107# Do not use `cd foo && pwd` to compute absolute paths, because 1108# the directories may not exist. 1109case `pwd` in 1110.) ac_abs_builddir="$ac_dir";; 1111*) 1112 case "$ac_dir" in 1113 .) ac_abs_builddir=`pwd`;; 1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1115 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1116 esac;; 1117esac 1118case $ac_abs_builddir in 1119.) ac_abs_top_builddir=${ac_top_builddir}.;; 1120*) 1121 case ${ac_top_builddir}. in 1122 .) ac_abs_top_builddir=$ac_abs_builddir;; 1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1125 esac;; 1126esac 1127case $ac_abs_builddir in 1128.) ac_abs_srcdir=$ac_srcdir;; 1129*) 1130 case $ac_srcdir in 1131 .) ac_abs_srcdir=$ac_abs_builddir;; 1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1134 esac;; 1135esac 1136case $ac_abs_builddir in 1137.) ac_abs_top_srcdir=$ac_top_srcdir;; 1138*) 1139 case $ac_top_srcdir in 1140 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1143 esac;; 1144esac 1145 1146 cd $ac_dir 1147 # Check for guested configure; otherwise get Cygnus style configure. 1148 if test -f $ac_srcdir/configure.gnu; then 1149 echo 1150 $SHELL $ac_srcdir/configure.gnu --help=recursive 1151 elif test -f $ac_srcdir/configure; then 1152 echo 1153 $SHELL $ac_srcdir/configure --help=recursive 1154 elif test -f $ac_srcdir/configure.ac || 1155 test -f $ac_srcdir/configure.in; then 1156 echo 1157 $ac_configure --help 1158 else 1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1160 fi 1161 cd $ac_popdir 1162 done 1163fi 1164 1165test -n "$ac_init_help" && exit 0 1166if $ac_init_version; then 1167 cat <<\_ACEOF 1168LLVM configure 1.4 1169generated by GNU Autoconf 2.59 1170 1171Copyright (C) 2003 Free Software Foundation, Inc. 1172This configure script is free software; the Free Software Foundation 1173gives unlimited permission to copy, distribute and modify it. 1174_ACEOF 1175 exit 0 1176fi 1177exec 5>config.log 1178cat >&5 <<_ACEOF 1179This file contains any messages produced by compilers while 1180running configure, to aid debugging if configure makes a mistake. 1181 1182It was created by LLVM $as_me 1.4, which was 1183generated by GNU Autoconf 2.59. Invocation command line was 1184 1185 $ $0 $@ 1186 1187_ACEOF 1188{ 1189cat <<_ASUNAME 1190## --------- ## 1191## Platform. ## 1192## --------- ## 1193 1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1195uname -m = `(uname -m) 2>/dev/null || echo unknown` 1196uname -r = `(uname -r) 2>/dev/null || echo unknown` 1197uname -s = `(uname -s) 2>/dev/null || echo unknown` 1198uname -v = `(uname -v) 2>/dev/null || echo unknown` 1199 1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1201/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1202 1203/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1204/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1206hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1207/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1208/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1209/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1210 1211_ASUNAME 1212 1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1214for as_dir in $PATH 1215do 1216 IFS=$as_save_IFS 1217 test -z "$as_dir" && as_dir=. 1218 echo "PATH: $as_dir" 1219done 1220 1221} >&5 1222 1223cat >&5 <<_ACEOF 1224 1225 1226## ----------- ## 1227## Core tests. ## 1228## ----------- ## 1229 1230_ACEOF 1231 1232 1233# Keep a trace of the command line. 1234# Strip out --no-create and --no-recursion so they do not pile up. 1235# Strip out --silent because we don't want to record it for future runs. 1236# Also quote any args containing shell meta-characters. 1237# Make two passes to allow for proper duplicate-argument suppression. 1238ac_configure_args= 1239ac_configure_args0= 1240ac_configure_args1= 1241ac_sep= 1242ac_must_keep_next=false 1243for ac_pass in 1 2 1244do 1245 for ac_arg 1246 do 1247 case $ac_arg in 1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1250 | -silent | --silent | --silen | --sile | --sil) 1251 continue ;; 1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1254 esac 1255 case $ac_pass in 1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1257 2) 1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1259 if test $ac_must_keep_next = true; then 1260 ac_must_keep_next=false # Got value, back to normal. 1261 else 1262 case $ac_arg in 1263 *=* | --config-cache | -C | -disable-* | --disable-* \ 1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1266 | -with-* | --with-* | -without-* | --without-* | --x) 1267 case "$ac_configure_args0 " in 1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1269 esac 1270 ;; 1271 -* ) ac_must_keep_next=true ;; 1272 esac 1273 fi 1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1275 # Get rid of the leading space. 1276 ac_sep=" " 1277 ;; 1278 esac 1279 done 1280done 1281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1283 1284# When interrupted or exit'd, cleanup temporary files, and complete 1285# config.log. We remove comments because anyway the quotes in there 1286# would cause problems or look ugly. 1287# WARNING: Be sure not to use single quotes in there, as some shells, 1288# such as our DU 5.0 friend, will then `close' the trap. 1289trap 'exit_status=$? 1290 # Save into config.log some information that might help in debugging. 1291 { 1292 echo 1293 1294 cat <<\_ASBOX 1295## ---------------- ## 1296## Cache variables. ## 1297## ---------------- ## 1298_ASBOX 1299 echo 1300 # The following way of writing the cache mishandles newlines in values, 1301{ 1302 (set) 2>&1 | 1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1304 *ac_space=\ *) 1305 sed -n \ 1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1308 ;; 1309 *) 1310 sed -n \ 1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1312 ;; 1313 esac; 1314} 1315 echo 1316 1317 cat <<\_ASBOX 1318## ----------------- ## 1319## Output variables. ## 1320## ----------------- ## 1321_ASBOX 1322 echo 1323 for ac_var in $ac_subst_vars 1324 do 1325 eval ac_val=$`echo $ac_var` 1326 echo "$ac_var='"'"'$ac_val'"'"'" 1327 done | sort 1328 echo 1329 1330 if test -n "$ac_subst_files"; then 1331 cat <<\_ASBOX 1332## ------------- ## 1333## Output files. ## 1334## ------------- ## 1335_ASBOX 1336 echo 1337 for ac_var in $ac_subst_files 1338 do 1339 eval ac_val=$`echo $ac_var` 1340 echo "$ac_var='"'"'$ac_val'"'"'" 1341 done | sort 1342 echo 1343 fi 1344 1345 if test -s confdefs.h; then 1346 cat <<\_ASBOX 1347## ----------- ## 1348## confdefs.h. ## 1349## ----------- ## 1350_ASBOX 1351 echo 1352 sed "/^$/d" confdefs.h | sort 1353 echo 1354 fi 1355 test "$ac_signal" != 0 && 1356 echo "$as_me: caught signal $ac_signal" 1357 echo "$as_me: exit $exit_status" 1358 } >&5 1359 rm -f core *.core && 1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1361 exit $exit_status 1362 ' 0 1363for ac_signal in 1 2 13 15; do 1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1365done 1366ac_signal=0 1367 1368# confdefs.h avoids OS command line length limits that DEFS can exceed. 1369rm -rf conftest* confdefs.h 1370# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1371echo >confdefs.h 1372 1373# Predefined preprocessor variables. 1374 1375cat >>confdefs.h <<_ACEOF 1376#define PACKAGE_NAME "$PACKAGE_NAME" 1377_ACEOF 1378 1379 1380cat >>confdefs.h <<_ACEOF 1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1382_ACEOF 1383 1384 1385cat >>confdefs.h <<_ACEOF 1386#define PACKAGE_VERSION "$PACKAGE_VERSION" 1387_ACEOF 1388 1389 1390cat >>confdefs.h <<_ACEOF 1391#define PACKAGE_STRING "$PACKAGE_STRING" 1392_ACEOF 1393 1394 1395cat >>confdefs.h <<_ACEOF 1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1397_ACEOF 1398 1399 1400# Let the site file select an alternate cache file if it wants to. 1401# Prefer explicitly selected file to automatically selected ones. 1402if test -z "$CONFIG_SITE"; then 1403 if test "x$prefix" != xNONE; then 1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1405 else 1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1407 fi 1408fi 1409for ac_site_file in $CONFIG_SITE; do 1410 if test -r "$ac_site_file"; then 1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1412echo "$as_me: loading site script $ac_site_file" >&6;} 1413 sed 's/^/| /' "$ac_site_file" >&5 1414 . "$ac_site_file" 1415 fi 1416done 1417 1418if test -r "$cache_file"; then 1419 # Some versions of bash will fail to source /dev/null (special 1420 # files actually), so we avoid doing that. 1421 if test -f "$cache_file"; then 1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1423echo "$as_me: loading cache $cache_file" >&6;} 1424 case $cache_file in 1425 [\\/]* | ?:[\\/]* ) . $cache_file;; 1426 *) . ./$cache_file;; 1427 esac 1428 fi 1429else 1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1431echo "$as_me: creating cache $cache_file" >&6;} 1432 >$cache_file 1433fi 1434 1435# Check that the precious variables saved in the cache have kept the same 1436# value. 1437ac_cache_corrupted=false 1438for ac_var in `(set) 2>&1 | 1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1441 eval ac_new_set=\$ac_env_${ac_var}_set 1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1443 eval ac_new_val="\$ac_env_${ac_var}_value" 1444 case $ac_old_set,$ac_new_set in 1445 set,) 1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1448 ac_cache_corrupted=: ;; 1449 ,set) 1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1452 ac_cache_corrupted=: ;; 1453 ,);; 1454 *) 1455 if test "x$ac_old_val" != "x$ac_new_val"; then 1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1459echo "$as_me: former value: $ac_old_val" >&2;} 1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1461echo "$as_me: current value: $ac_new_val" >&2;} 1462 ac_cache_corrupted=: 1463 fi;; 1464 esac 1465 # Pass precious variables to config.status. 1466 if test "$ac_new_set" = set; then 1467 case $ac_new_val in 1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1470 *) ac_arg=$ac_var=$ac_new_val ;; 1471 esac 1472 case " $ac_configure_args " in 1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1475 esac 1476 fi 1477done 1478if $ac_cache_corrupted; then 1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1480echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1483 { (exit 1); exit 1; }; } 1484fi 1485 1486ac_ext=c 1487ac_cpp='$CPP $CPPFLAGS' 1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1490ac_compiler_gnu=$ac_cv_c_compiler_gnu 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519ac_aux_dir= 1520for ac_dir in autoconf $srcdir/autoconf; do 1521 if test -f $ac_dir/install-sh; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/install-sh -c" 1524 break 1525 elif test -f $ac_dir/install.sh; then 1526 ac_aux_dir=$ac_dir 1527 ac_install_sh="$ac_aux_dir/install.sh -c" 1528 break 1529 elif test -f $ac_dir/shtool; then 1530 ac_aux_dir=$ac_dir 1531 ac_install_sh="$ac_aux_dir/shtool install -c" 1532 break 1533 fi 1534done 1535if test -z "$ac_aux_dir"; then 1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1537echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1538 { (exit 1); exit 1; }; } 1539fi 1540ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1541ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1543 1544 1545 1546if test ${srcdir} != "." ; then 1547 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1548 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1549echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1550 { (exit 1); exit 1; }; } 1551 fi 1552fi 1553 1554for i in `ls ${srcdir}/projects` 1555do 1556 if test -d ${srcdir}/projects/${i} ; then 1557 case ${i} in 1558 "CVS") ;; 1559 "sample") 1560 1561subdirs="$subdirs projects/sample" 1562 ;; 1563 "Stacker") 1564 1565subdirs="$subdirs projects/Stacker" 1566 ;; 1567 "llvm-test") 1568 1569subdirs="$subdirs projects/llvm-test" 1570 ;; 1571 "llvm-reopt") 1572 1573subdirs="$subdirs projects/llvm-reopt" 1574;; 1575 "llvm-gcc") 1576 1577subdirs="$subdirs projects/llvm-gcc" 1578 ;; 1579 "Java") 1580 1581subdirs="$subdirs projects/Java" 1582 ;; 1583 "llvm-tv") 1584 1585subdirs="$subdirs projects/llvm-tv" 1586 ;; 1587 "llvm-fefw") 1588 1589subdirs="$subdirs projects/llvm-fefw" 1590 ;; 1591 *) 1592 1593subdirs="$subdirs ${i}" 1594 ;; 1595 esac 1596 fi 1597done 1598 1599 ac_config_headers="$ac_config_headers include/llvm/Config/config.h" 1600 1601 1602 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator" 1603 1604 1605 ac_config_commands="$ac_config_commands Makefile" 1606 1607 1608 ac_config_commands="$ac_config_commands Makefile.common" 1609 1610 1611 ac_config_commands="$ac_config_commands examples/Makefile" 1612 1613 1614 ac_config_commands="$ac_config_commands lib/Makefile" 1615 1616 1617 ac_config_commands="$ac_config_commands runtime/Makefile" 1618 1619 1620 ac_config_commands="$ac_config_commands test/Makefile" 1621 1622 1623 ac_config_commands="$ac_config_commands test/Makefile.tests" 1624 1625 1626 ac_config_commands="$ac_config_commands test/QMTest/llvm.py" 1627 1628 1629 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" 1630 1631 1632 ac_config_commands="$ac_config_commands tools/Makefile" 1633 1634 1635 ac_config_commands="$ac_config_commands utils/Makefile" 1636 1637 1638 ac_config_commands="$ac_config_commands projects/Makefile" 1639 1640 1641 1642# Find a good install program. We prefer a C program (faster), 1643# so one script is as good as another. But avoid the broken or 1644# incompatible versions: 1645# SysV /etc/install, /usr/sbin/install 1646# SunOS /usr/etc/install 1647# IRIX /sbin/install 1648# AIX /bin/install 1649# AmigaOS /C/install, which installs bootblocks on floppy discs 1650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1651# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1653# OS/2's system install, which has a completely different semantic 1654# ./install, which can be erroneously created by make from ./install.sh. 1655echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1656echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1657if test -z "$INSTALL"; then 1658if test "${ac_cv_path_install+set}" = set; then 1659 echo $ECHO_N "(cached) $ECHO_C" >&6 1660else 1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1662for as_dir in $PATH 1663do 1664 IFS=$as_save_IFS 1665 test -z "$as_dir" && as_dir=. 1666 # Account for people who put trailing slashes in PATH elements. 1667case $as_dir/ in 1668 ./ | .// | /cC/* | \ 1669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1671 /usr/ucb/* ) ;; 1672 *) 1673 # OSF1 and SCO ODT 3.0 have their own names for install. 1674 # Don't use installbsd from OSF since it installs stuff as root 1675 # by default. 1676 for ac_prog in ginstall scoinst install; do 1677 for ac_exec_ext in '' $ac_executable_extensions; do 1678 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1679 if test $ac_prog = install && 1680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1681 # AIX install. It has an incompatible calling convention. 1682 : 1683 elif test $ac_prog = install && 1684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1685 # program-specific install script used by HP pwplus--don't use. 1686 : 1687 else 1688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1689 break 3 1690 fi 1691 fi 1692 done 1693 done 1694 ;; 1695esac 1696done 1697 1698 1699fi 1700 if test "${ac_cv_path_install+set}" = set; then 1701 INSTALL=$ac_cv_path_install 1702 else 1703 # As a last resort, use the slow shell script. We don't cache a 1704 # path for INSTALL within a source directory, because that will 1705 # break other packages using the cache if that directory is 1706 # removed, or if the path is relative. 1707 INSTALL=$ac_install_sh 1708 fi 1709fi 1710echo "$as_me:$LINENO: result: $INSTALL" >&5 1711echo "${ECHO_T}$INSTALL" >&6 1712 1713# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1714# It thinks the first close brace ends the variable substitution. 1715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1716 1717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1718 1719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1720 1721 1722# Make sure we can run config.sub. 1723$ac_config_sub sun4 >/dev/null 2>&1 || 1724 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1725echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1726 { (exit 1); exit 1; }; } 1727 1728echo "$as_me:$LINENO: checking build system type" >&5 1729echo $ECHO_N "checking build system type... $ECHO_C" >&6 1730if test "${ac_cv_build+set}" = set; then 1731 echo $ECHO_N "(cached) $ECHO_C" >&6 1732else 1733 ac_cv_build_alias=$build_alias 1734test -z "$ac_cv_build_alias" && 1735 ac_cv_build_alias=`$ac_config_guess` 1736test -z "$ac_cv_build_alias" && 1737 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1738echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1739 { (exit 1); exit 1; }; } 1740ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1741 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1742echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1743 { (exit 1); exit 1; }; } 1744 1745fi 1746echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1747echo "${ECHO_T}$ac_cv_build" >&6 1748build=$ac_cv_build 1749build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1750build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1751build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1752 1753 1754echo "$as_me:$LINENO: checking host system type" >&5 1755echo $ECHO_N "checking host system type... $ECHO_C" >&6 1756if test "${ac_cv_host+set}" = set; then 1757 echo $ECHO_N "(cached) $ECHO_C" >&6 1758else 1759 ac_cv_host_alias=$host_alias 1760test -z "$ac_cv_host_alias" && 1761 ac_cv_host_alias=$ac_cv_build_alias 1762ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1763 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1764echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1765 { (exit 1); exit 1; }; } 1766 1767fi 1768echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1769echo "${ECHO_T}$ac_cv_host" >&6 1770host=$ac_cv_host 1771host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1772host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1773host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1774 1775 1776echo "$as_me:$LINENO: checking target system type" >&5 1777echo $ECHO_N "checking target system type... $ECHO_C" >&6 1778if test "${ac_cv_target+set}" = set; then 1779 echo $ECHO_N "(cached) $ECHO_C" >&6 1780else 1781 ac_cv_target_alias=$target_alias 1782test "x$ac_cv_target_alias" = "x" && 1783 ac_cv_target_alias=$ac_cv_host_alias 1784ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1785 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1786echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1787 { (exit 1); exit 1; }; } 1788 1789fi 1790echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1791echo "${ECHO_T}$ac_cv_target" >&6 1792target=$ac_cv_target 1793target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1794target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1795target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1796 1797 1798# The aliases save the names the user supplied, while $host etc. 1799# will get canonicalized. 1800test -n "$target_alias" && 1801 test "$program_prefix$program_suffix$program_transform_name" = \ 1802 NONENONEs,x,x, && 1803 program_prefix=${target_alias}- 1804 1805 1806echo "$as_me:$LINENO: checking support for generic build operating system" >&5 1807echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6 1808case $build in 1809 *-*-aix*) 1810 OS=AIX 1811 1812 platform_type="AIX" 1813 ;; 1814 *-*-cygwin*) 1815 OS=Cygwin 1816 1817 platform_type="Cygwin" 1818 ;; 1819 *-*-darwin*) 1820 OS=Darwin 1821 1822 platform_type="Darwin" 1823 ;; 1824 *-*-freebsd*) 1825 OS=Linux 1826 1827 platform_type="FreeBSD" 1828 ;; 1829 *-*-interix*) 1830 OS=SunOS 1831 1832 platform_type="Interix" 1833 ;; 1834 *-*-linux*) 1835 OS=Linux 1836 1837 platform_type="Linux" 1838 if test -d /home/vadve/lattner/local/x86/llvm-gcc 1839 then 1840 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ 1841 1842 fi 1843 ;; 1844 *-*-solaris*) 1845 OS=SunOS 1846 1847 platform_type="SunOS" 1848 if test -d /home/vadve/lattner/local/sparc/llvm-gcc 1849 then 1850 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ 1851 1852 fi 1853 ;; 1854 *-*-win32*) 1855 OS=Win32 1856 1857 platform_type="Win32" 1858 ;; 1859 *-*-mingw*) 1860 OS=Win32 1861 1862 platform_type="Win32" 1863 ;; 1864 *) 1865 OS=Unknown 1866 1867 platform_type="Unknown" 1868 ;; 1869esac 1870 1871if test "$platform_type" = "Unknown" ; then 1872 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5 1873echo "$as_me: error: Platform is unknown, configure can't continue" >&2;} 1874 { (exit 1); exit 1; }; } 1875fi 1876 1877 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type" 1878 1879 1880 1881echo "$as_me:$LINENO: checking target architecture" >&5 1882echo $ECHO_N "checking target architecture... $ECHO_C" >&6 1883case $target in 1884 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 1885 1886 ;; 1887esac 1888 1889case $target in 1890 i*86-*) 1891 ARCH="x86" 1892 ARCH=x86 1893 1894 ;; 1895 sparc*-*) 1896 ARCH="Sparc" 1897 ARCH=Sparc 1898 1899 ;; 1900 powerpc*-*) 1901 ARCH="PowerPC" 1902 ARCH=PowerPC 1903 1904 ;; 1905 *) 1906 ARCH="Unknown" 1907 ARCH=Unknown 1908 1909 ;; 1910esac 1911 1912echo "$as_me:$LINENO: result: $ARCH" >&5 1913echo "${ECHO_T}$ARCH" >&6 1914 1915ac_ext=cc 1916ac_cpp='$CXXCPP $CPPFLAGS' 1917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1920if test -n "$ac_tool_prefix"; then 1921 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1922 do 1923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1924set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1925echo "$as_me:$LINENO: checking for $ac_word" >&5 1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1927if test "${ac_cv_prog_CXX+set}" = set; then 1928 echo $ECHO_N "(cached) $ECHO_C" >&6 1929else 1930 if test -n "$CXX"; then 1931 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1932else 1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1934for as_dir in $PATH 1935do 1936 IFS=$as_save_IFS 1937 test -z "$as_dir" && as_dir=. 1938 for ac_exec_ext in '' $ac_executable_extensions; do 1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1940 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1942 break 2 1943 fi 1944done 1945done 1946 1947fi 1948fi 1949CXX=$ac_cv_prog_CXX 1950if test -n "$CXX"; then 1951 echo "$as_me:$LINENO: result: $CXX" >&5 1952echo "${ECHO_T}$CXX" >&6 1953else 1954 echo "$as_me:$LINENO: result: no" >&5 1955echo "${ECHO_T}no" >&6 1956fi 1957 1958 test -n "$CXX" && break 1959 done 1960fi 1961if test -z "$CXX"; then 1962 ac_ct_CXX=$CXX 1963 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1964do 1965 # Extract the first word of "$ac_prog", so it can be a program name with args. 1966set dummy $ac_prog; ac_word=$2 1967echo "$as_me:$LINENO: checking for $ac_word" >&5 1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1969if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1970 echo $ECHO_N "(cached) $ECHO_C" >&6 1971else 1972 if test -n "$ac_ct_CXX"; then 1973 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1974else 1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1976for as_dir in $PATH 1977do 1978 IFS=$as_save_IFS 1979 test -z "$as_dir" && as_dir=. 1980 for ac_exec_ext in '' $ac_executable_extensions; do 1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1982 ac_cv_prog_ac_ct_CXX="$ac_prog" 1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1984 break 2 1985 fi 1986done 1987done 1988 1989fi 1990fi 1991ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1992if test -n "$ac_ct_CXX"; then 1993 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1994echo "${ECHO_T}$ac_ct_CXX" >&6 1995else 1996 echo "$as_me:$LINENO: result: no" >&5 1997echo "${ECHO_T}no" >&6 1998fi 1999 2000 test -n "$ac_ct_CXX" && break 2001done 2002test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2003 2004 CXX=$ac_ct_CXX 2005fi 2006 2007 2008# Provide some information about the compiler. 2009echo "$as_me:$LINENO:" \ 2010 "checking for C++ compiler version" >&5 2011ac_compiler=`set X $ac_compile; echo $2` 2012{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2013 (eval $ac_compiler --version </dev/null >&5) 2>&5 2014 ac_status=$? 2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2016 (exit $ac_status); } 2017{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2018 (eval $ac_compiler -v </dev/null >&5) 2>&5 2019 ac_status=$? 2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2021 (exit $ac_status); } 2022{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2023 (eval $ac_compiler -V </dev/null >&5) 2>&5 2024 ac_status=$? 2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2026 (exit $ac_status); } 2027 2028cat >conftest.$ac_ext <<_ACEOF 2029/* confdefs.h. */ 2030_ACEOF 2031cat confdefs.h >>conftest.$ac_ext 2032cat >>conftest.$ac_ext <<_ACEOF 2033/* end confdefs.h. */ 2034 2035int 2036main () 2037{ 2038 2039 ; 2040 return 0; 2041} 2042_ACEOF 2043ac_clean_files_save=$ac_clean_files 2044ac_clean_files="$ac_clean_files a.out a.exe b.out" 2045# Try to create an executable without -o first, disregard a.out. 2046# It will help us diagnose broken compilers, and finding out an intuition 2047# of exeext. 2048echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2049echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 2050ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2051if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2052 (eval $ac_link_default) 2>&5 2053 ac_status=$? 2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2055 (exit $ac_status); }; then 2056 # Find the output, starting from the most likely. This scheme is 2057# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2058# resort. 2059 2060# Be careful to initialize this variable, since it used to be cached. 2061# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2062ac_cv_exeext= 2063# b.out is created by i960 compilers. 2064for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2065do 2066 test -f "$ac_file" || continue 2067 case $ac_file in 2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2069 ;; 2070 conftest.$ac_ext ) 2071 # This is the source file. 2072 ;; 2073 [ab].out ) 2074 # We found the default executable, but exeext='' is most 2075 # certainly right. 2076 break;; 2077 *.* ) 2078 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2079 # FIXME: I believe we export ac_cv_exeext for Libtool, 2080 # but it would be cool to find out if it's true. Does anybody 2081 # maintain Libtool? --akim. 2082 export ac_cv_exeext 2083 break;; 2084 * ) 2085 break;; 2086 esac 2087done 2088else 2089 echo "$as_me: failed program was:" >&5 2090sed 's/^/| /' conftest.$ac_ext >&5 2091 2092{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2093See \`config.log' for more details." >&5 2094echo "$as_me: error: C++ compiler cannot create executables 2095See \`config.log' for more details." >&2;} 2096 { (exit 77); exit 77; }; } 2097fi 2098 2099ac_exeext=$ac_cv_exeext 2100echo "$as_me:$LINENO: result: $ac_file" >&5 2101echo "${ECHO_T}$ac_file" >&6 2102 2103# Check the compiler produces executables we can run. If not, either 2104# the compiler is broken, or we cross compile. 2105echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2106echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 2107# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2108# If not cross compiling, check that we can run a simple program. 2109if test "$cross_compiling" != yes; then 2110 if { ac_try='./$ac_file' 2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2112 (eval $ac_try) 2>&5 2113 ac_status=$? 2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2115 (exit $ac_status); }; }; then 2116 cross_compiling=no 2117 else 2118 if test "$cross_compiling" = maybe; then 2119 cross_compiling=yes 2120 else 2121 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2122If you meant to cross compile, use \`--host'. 2123See \`config.log' for more details." >&5 2124echo "$as_me: error: cannot run C++ compiled programs. 2125If you meant to cross compile, use \`--host'. 2126See \`config.log' for more details." >&2;} 2127 { (exit 1); exit 1; }; } 2128 fi 2129 fi 2130fi 2131echo "$as_me:$LINENO: result: yes" >&5 2132echo "${ECHO_T}yes" >&6 2133 2134rm -f a.out a.exe conftest$ac_cv_exeext b.out 2135ac_clean_files=$ac_clean_files_save 2136# Check the compiler produces executables we can run. If not, either 2137# the compiler is broken, or we cross compile. 2138echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2139echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2140echo "$as_me:$LINENO: result: $cross_compiling" >&5 2141echo "${ECHO_T}$cross_compiling" >&6 2142 2143echo "$as_me:$LINENO: checking for suffix of executables" >&5 2144echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2146 (eval $ac_link) 2>&5 2147 ac_status=$? 2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2149 (exit $ac_status); }; then 2150 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2151# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2152# work properly (i.e., refer to `conftest.exe'), while it won't with 2153# `rm'. 2154for ac_file in conftest.exe conftest conftest.*; do 2155 test -f "$ac_file" || continue 2156 case $ac_file in 2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2159 export ac_cv_exeext 2160 break;; 2161 * ) break;; 2162 esac 2163done 2164else 2165 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2166See \`config.log' for more details." >&5 2167echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2168See \`config.log' for more details." >&2;} 2169 { (exit 1); exit 1; }; } 2170fi 2171 2172rm -f conftest$ac_cv_exeext 2173echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2174echo "${ECHO_T}$ac_cv_exeext" >&6 2175 2176rm -f conftest.$ac_ext 2177EXEEXT=$ac_cv_exeext 2178ac_exeext=$EXEEXT 2179echo "$as_me:$LINENO: checking for suffix of object files" >&5 2180echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2181if test "${ac_cv_objext+set}" = set; then 2182 echo $ECHO_N "(cached) $ECHO_C" >&6 2183else 2184 cat >conftest.$ac_ext <<_ACEOF 2185/* confdefs.h. */ 2186_ACEOF 2187cat confdefs.h >>conftest.$ac_ext 2188cat >>conftest.$ac_ext <<_ACEOF 2189/* end confdefs.h. */ 2190 2191int 2192main () 2193{ 2194 2195 ; 2196 return 0; 2197} 2198_ACEOF 2199rm -f conftest.o conftest.obj 2200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2201 (eval $ac_compile) 2>&5 2202 ac_status=$? 2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2204 (exit $ac_status); }; then 2205 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2206 case $ac_file in 2207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2208 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2209 break;; 2210 esac 2211done 2212else 2213 echo "$as_me: failed program was:" >&5 2214sed 's/^/| /' conftest.$ac_ext >&5 2215 2216{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2217See \`config.log' for more details." >&5 2218echo "$as_me: error: cannot compute suffix of object files: cannot compile 2219See \`config.log' for more details." >&2;} 2220 { (exit 1); exit 1; }; } 2221fi 2222 2223rm -f conftest.$ac_cv_objext conftest.$ac_ext 2224fi 2225echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2226echo "${ECHO_T}$ac_cv_objext" >&6 2227OBJEXT=$ac_cv_objext 2228ac_objext=$OBJEXT 2229echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2230echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2231if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2232 echo $ECHO_N "(cached) $ECHO_C" >&6 2233else 2234 cat >conftest.$ac_ext <<_ACEOF 2235/* confdefs.h. */ 2236_ACEOF 2237cat confdefs.h >>conftest.$ac_ext 2238cat >>conftest.$ac_ext <<_ACEOF 2239/* end confdefs.h. */ 2240 2241int 2242main () 2243{ 2244#ifndef __GNUC__ 2245 choke me 2246#endif 2247 2248 ; 2249 return 0; 2250} 2251_ACEOF 2252rm -f conftest.$ac_objext 2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2254 (eval $ac_compile) 2>conftest.er1 2255 ac_status=$? 2256 grep -v '^ *+' conftest.er1 >conftest.err 2257 rm -f conftest.er1 2258 cat conftest.err >&5 2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2260 (exit $ac_status); } && 2261 { ac_try='test -z "$ac_cxx_werror_flag" 2262 || test ! -s conftest.err' 2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2264 (eval $ac_try) 2>&5 2265 ac_status=$? 2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2267 (exit $ac_status); }; } && 2268 { ac_try='test -s conftest.$ac_objext' 2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2270 (eval $ac_try) 2>&5 2271 ac_status=$? 2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2273 (exit $ac_status); }; }; then 2274 ac_compiler_gnu=yes 2275else 2276 echo "$as_me: failed program was:" >&5 2277sed 's/^/| /' conftest.$ac_ext >&5 2278 2279ac_compiler_gnu=no 2280fi 2281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2282ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2283 2284fi 2285echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2286echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2287GXX=`test $ac_compiler_gnu = yes && echo yes` 2288ac_test_CXXFLAGS=${CXXFLAGS+set} 2289ac_save_CXXFLAGS=$CXXFLAGS 2290CXXFLAGS="-g" 2291echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2292echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2293if test "${ac_cv_prog_cxx_g+set}" = set; then 2294 echo $ECHO_N "(cached) $ECHO_C" >&6 2295else 2296 cat >conftest.$ac_ext <<_ACEOF 2297/* confdefs.h. */ 2298_ACEOF 2299cat confdefs.h >>conftest.$ac_ext 2300cat >>conftest.$ac_ext <<_ACEOF 2301/* end confdefs.h. */ 2302 2303int 2304main () 2305{ 2306 2307 ; 2308 return 0; 2309} 2310_ACEOF 2311rm -f conftest.$ac_objext 2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2313 (eval $ac_compile) 2>conftest.er1 2314 ac_status=$? 2315 grep -v '^ *+' conftest.er1 >conftest.err 2316 rm -f conftest.er1 2317 cat conftest.err >&5 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); } && 2320 { ac_try='test -z "$ac_cxx_werror_flag" 2321 || test ! -s conftest.err' 2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2323 (eval $ac_try) 2>&5 2324 ac_status=$? 2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2326 (exit $ac_status); }; } && 2327 { ac_try='test -s conftest.$ac_objext' 2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2329 (eval $ac_try) 2>&5 2330 ac_status=$? 2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2332 (exit $ac_status); }; }; then 2333 ac_cv_prog_cxx_g=yes 2334else 2335 echo "$as_me: failed program was:" >&5 2336sed 's/^/| /' conftest.$ac_ext >&5 2337 2338ac_cv_prog_cxx_g=no 2339fi 2340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2341fi 2342echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2343echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2344if test "$ac_test_CXXFLAGS" = set; then 2345 CXXFLAGS=$ac_save_CXXFLAGS 2346elif test $ac_cv_prog_cxx_g = yes; then 2347 if test "$GXX" = yes; then 2348 CXXFLAGS="-g -O2" 2349 else 2350 CXXFLAGS="-g" 2351 fi 2352else 2353 if test "$GXX" = yes; then 2354 CXXFLAGS="-O2" 2355 else 2356 CXXFLAGS= 2357 fi 2358fi 2359for ac_declaration in \ 2360 '' \ 2361 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2362 'extern "C" void std::exit (int); using std::exit;' \ 2363 'extern "C" void exit (int) throw ();' \ 2364 'extern "C" void exit (int);' \ 2365 'void exit (int);' 2366do 2367 cat >conftest.$ac_ext <<_ACEOF 2368/* confdefs.h. */ 2369_ACEOF 2370cat confdefs.h >>conftest.$ac_ext 2371cat >>conftest.$ac_ext <<_ACEOF 2372/* end confdefs.h. */ 2373$ac_declaration 2374#include <stdlib.h> 2375int 2376main () 2377{ 2378exit (42); 2379 ; 2380 return 0; 2381} 2382_ACEOF 2383rm -f conftest.$ac_objext 2384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2385 (eval $ac_compile) 2>conftest.er1 2386 ac_status=$? 2387 grep -v '^ *+' conftest.er1 >conftest.err 2388 rm -f conftest.er1 2389 cat conftest.err >&5 2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2391 (exit $ac_status); } && 2392 { ac_try='test -z "$ac_cxx_werror_flag" 2393 || test ! -s conftest.err' 2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2395 (eval $ac_try) 2>&5 2396 ac_status=$? 2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2398 (exit $ac_status); }; } && 2399 { ac_try='test -s conftest.$ac_objext' 2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2401 (eval $ac_try) 2>&5 2402 ac_status=$? 2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2404 (exit $ac_status); }; }; then 2405 : 2406else 2407 echo "$as_me: failed program was:" >&5 2408sed 's/^/| /' conftest.$ac_ext >&5 2409 2410continue 2411fi 2412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2413 cat >conftest.$ac_ext <<_ACEOF 2414/* confdefs.h. */ 2415_ACEOF 2416cat confdefs.h >>conftest.$ac_ext 2417cat >>conftest.$ac_ext <<_ACEOF 2418/* end confdefs.h. */ 2419$ac_declaration 2420int 2421main () 2422{ 2423exit (42); 2424 ; 2425 return 0; 2426} 2427_ACEOF 2428rm -f conftest.$ac_objext 2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2430 (eval $ac_compile) 2>conftest.er1 2431 ac_status=$? 2432 grep -v '^ *+' conftest.er1 >conftest.err 2433 rm -f conftest.er1 2434 cat conftest.err >&5 2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2436 (exit $ac_status); } && 2437 { ac_try='test -z "$ac_cxx_werror_flag" 2438 || test ! -s conftest.err' 2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2440 (eval $ac_try) 2>&5 2441 ac_status=$? 2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2443 (exit $ac_status); }; } && 2444 { ac_try='test -s conftest.$ac_objext' 2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2446 (eval $ac_try) 2>&5 2447 ac_status=$? 2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2449 (exit $ac_status); }; }; then 2450 break 2451else 2452 echo "$as_me: failed program was:" >&5 2453sed 's/^/| /' conftest.$ac_ext >&5 2454 2455fi 2456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2457done 2458rm -f conftest* 2459if test -n "$ac_declaration"; then 2460 echo '#ifdef __cplusplus' >>confdefs.h 2461 echo $ac_declaration >>confdefs.h 2462 echo '#endif' >>confdefs.h 2463fi 2464 2465ac_ext=c 2466ac_cpp='$CPP $CPPFLAGS' 2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2469ac_compiler_gnu=$ac_cv_c_compiler_gnu 2470 2471ac_ext=c 2472ac_cpp='$CPP $CPPFLAGS' 2473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2475ac_compiler_gnu=$ac_cv_c_compiler_gnu 2476if test -n "$ac_tool_prefix"; then 2477 for ac_prog in gcc 2478 do 2479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2480set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2481echo "$as_me:$LINENO: checking for $ac_word" >&5 2482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2483if test "${ac_cv_prog_CC+set}" = set; then 2484 echo $ECHO_N "(cached) $ECHO_C" >&6 2485else 2486 if test -n "$CC"; then 2487 ac_cv_prog_CC="$CC" # Let the user override the test. 2488else 2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 for ac_exec_ext in '' $ac_executable_extensions; do 2495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2496 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2498 break 2 2499 fi 2500done 2501done 2502 2503fi 2504fi 2505CC=$ac_cv_prog_CC 2506if test -n "$CC"; then 2507 echo "$as_me:$LINENO: result: $CC" >&5 2508echo "${ECHO_T}$CC" >&6 2509else 2510 echo "$as_me:$LINENO: result: no" >&5 2511echo "${ECHO_T}no" >&6 2512fi 2513 2514 test -n "$CC" && break 2515 done 2516fi 2517if test -z "$CC"; then 2518 ac_ct_CC=$CC 2519 for ac_prog in gcc 2520do 2521 # Extract the first word of "$ac_prog", so it can be a program name with args. 2522set dummy $ac_prog; ac_word=$2 2523echo "$as_me:$LINENO: checking for $ac_word" >&5 2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2525if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2526 echo $ECHO_N "(cached) $ECHO_C" >&6 2527else 2528 if test -n "$ac_ct_CC"; then 2529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2530else 2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532for as_dir in $PATH 2533do 2534 IFS=$as_save_IFS 2535 test -z "$as_dir" && as_dir=. 2536 for ac_exec_ext in '' $ac_executable_extensions; do 2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2538 ac_cv_prog_ac_ct_CC="$ac_prog" 2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2540 break 2 2541 fi 2542done 2543done 2544 2545fi 2546fi 2547ac_ct_CC=$ac_cv_prog_ac_ct_CC 2548if test -n "$ac_ct_CC"; then 2549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2550echo "${ECHO_T}$ac_ct_CC" >&6 2551else 2552 echo "$as_me:$LINENO: result: no" >&5 2553echo "${ECHO_T}no" >&6 2554fi 2555 2556 test -n "$ac_ct_CC" && break 2557done 2558 2559 CC=$ac_ct_CC 2560fi 2561 2562 2563test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2564See \`config.log' for more details." >&5 2565echo "$as_me: error: no acceptable C compiler found in \$PATH 2566See \`config.log' for more details." >&2;} 2567 { (exit 1); exit 1; }; } 2568 2569# Provide some information about the compiler. 2570echo "$as_me:$LINENO:" \ 2571 "checking for C compiler version" >&5 2572ac_compiler=`set X $ac_compile; echo $2` 2573{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2574 (eval $ac_compiler --version </dev/null >&5) 2>&5 2575 ac_status=$? 2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2577 (exit $ac_status); } 2578{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2579 (eval $ac_compiler -v </dev/null >&5) 2>&5 2580 ac_status=$? 2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582 (exit $ac_status); } 2583{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2584 (eval $ac_compiler -V </dev/null >&5) 2>&5 2585 ac_status=$? 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); } 2588 2589echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2590echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2591if test "${ac_cv_c_compiler_gnu+set}" = set; then 2592 echo $ECHO_N "(cached) $ECHO_C" >&6 2593else 2594 cat >conftest.$ac_ext <<_ACEOF 2595/* confdefs.h. */ 2596_ACEOF 2597cat confdefs.h >>conftest.$ac_ext 2598cat >>conftest.$ac_ext <<_ACEOF 2599/* end confdefs.h. */ 2600 2601int 2602main () 2603{ 2604#ifndef __GNUC__ 2605 choke me 2606#endif 2607 2608 ; 2609 return 0; 2610} 2611_ACEOF 2612rm -f conftest.$ac_objext 2613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2614 (eval $ac_compile) 2>conftest.er1 2615 ac_status=$? 2616 grep -v '^ *+' conftest.er1 >conftest.err 2617 rm -f conftest.er1 2618 cat conftest.err >&5 2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2620 (exit $ac_status); } && 2621 { ac_try='test -z "$ac_c_werror_flag" 2622 || test ! -s conftest.err' 2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2624 (eval $ac_try) 2>&5 2625 ac_status=$? 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); }; } && 2628 { ac_try='test -s conftest.$ac_objext' 2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2630 (eval $ac_try) 2>&5 2631 ac_status=$? 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); }; }; then 2634 ac_compiler_gnu=yes 2635else 2636 echo "$as_me: failed program was:" >&5 2637sed 's/^/| /' conftest.$ac_ext >&5 2638 2639ac_compiler_gnu=no 2640fi 2641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2642ac_cv_c_compiler_gnu=$ac_compiler_gnu 2643 2644fi 2645echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2646echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2647GCC=`test $ac_compiler_gnu = yes && echo yes` 2648ac_test_CFLAGS=${CFLAGS+set} 2649ac_save_CFLAGS=$CFLAGS 2650CFLAGS="-g" 2651echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2652echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2653if test "${ac_cv_prog_cc_g+set}" = set; then 2654 echo $ECHO_N "(cached) $ECHO_C" >&6 2655else 2656 cat >conftest.$ac_ext <<_ACEOF 2657/* confdefs.h. */ 2658_ACEOF 2659cat confdefs.h >>conftest.$ac_ext 2660cat >>conftest.$ac_ext <<_ACEOF 2661/* end confdefs.h. */ 2662 2663int 2664main () 2665{ 2666 2667 ; 2668 return 0; 2669} 2670_ACEOF 2671rm -f conftest.$ac_objext 2672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2673 (eval $ac_compile) 2>conftest.er1 2674 ac_status=$? 2675 grep -v '^ *+' conftest.er1 >conftest.err 2676 rm -f conftest.er1 2677 cat conftest.err >&5 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); } && 2680 { ac_try='test -z "$ac_c_werror_flag" 2681 || test ! -s conftest.err' 2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2683 (eval $ac_try) 2>&5 2684 ac_status=$? 2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2686 (exit $ac_status); }; } && 2687 { ac_try='test -s conftest.$ac_objext' 2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2689 (eval $ac_try) 2>&5 2690 ac_status=$? 2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 (exit $ac_status); }; }; then 2693 ac_cv_prog_cc_g=yes 2694else 2695 echo "$as_me: failed program was:" >&5 2696sed 's/^/| /' conftest.$ac_ext >&5 2697 2698ac_cv_prog_cc_g=no 2699fi 2700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2701fi 2702echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2703echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2704if test "$ac_test_CFLAGS" = set; then 2705 CFLAGS=$ac_save_CFLAGS 2706elif test $ac_cv_prog_cc_g = yes; then 2707 if test "$GCC" = yes; then 2708 CFLAGS="-g -O2" 2709 else 2710 CFLAGS="-g" 2711 fi 2712else 2713 if test "$GCC" = yes; then 2714 CFLAGS="-O2" 2715 else 2716 CFLAGS= 2717 fi 2718fi 2719echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2720echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2721if test "${ac_cv_prog_cc_stdc+set}" = set; then 2722 echo $ECHO_N "(cached) $ECHO_C" >&6 2723else 2724 ac_cv_prog_cc_stdc=no 2725ac_save_CC=$CC 2726cat >conftest.$ac_ext <<_ACEOF 2727/* confdefs.h. */ 2728_ACEOF 2729cat confdefs.h >>conftest.$ac_ext 2730cat >>conftest.$ac_ext <<_ACEOF 2731/* end confdefs.h. */ 2732#include <stdarg.h> 2733#include <stdio.h> 2734#include <sys/types.h> 2735#include <sys/stat.h> 2736/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2737struct buf { int x; }; 2738FILE * (*rcsopen) (struct buf *, struct stat *, int); 2739static char *e (p, i) 2740 char **p; 2741 int i; 2742{ 2743 return p[i]; 2744} 2745static char *f (char * (*g) (char **, int), char **p, ...) 2746{ 2747 char *s; 2748 va_list v; 2749 va_start (v,p); 2750 s = g (p, va_arg (v,int)); 2751 va_end (v); 2752 return s; 2753} 2754 2755/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2756 function prototypes and stuff, but not '\xHH' hex character constants. 2757 These don't provoke an error unfortunately, instead are silently treated 2758 as 'x'. The following induces an error, until -std1 is added to get 2759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2760 array size at least. It's necessary to write '\x00'==0 to get something 2761 that's true only with -std1. */ 2762int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2763 2764int test (int i, double x); 2765struct s1 {int (*f) (int a);}; 2766struct s2 {int (*f) (double a);}; 2767int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2768int argc; 2769char **argv; 2770int 2771main () 2772{ 2773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2774 ; 2775 return 0; 2776} 2777_ACEOF 2778# Don't try gcc -ansi; that turns off useful extensions and 2779# breaks some systems' header files. 2780# AIX -qlanglvl=ansi 2781# Ultrix and OSF/1 -std1 2782# HP-UX 10.20 and later -Ae 2783# HP-UX older versions -Aa -D_HPUX_SOURCE 2784# SVR4 -Xc -D__EXTENSIONS__ 2785for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2786do 2787 CC="$ac_save_CC $ac_arg" 2788 rm -f conftest.$ac_objext 2789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2790 (eval $ac_compile) 2>conftest.er1 2791 ac_status=$? 2792 grep -v '^ *+' conftest.er1 >conftest.err 2793 rm -f conftest.er1 2794 cat conftest.err >&5 2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2796 (exit $ac_status); } && 2797 { ac_try='test -z "$ac_c_werror_flag" 2798 || test ! -s conftest.err' 2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2800 (eval $ac_try) 2>&5 2801 ac_status=$? 2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2803 (exit $ac_status); }; } && 2804 { ac_try='test -s conftest.$ac_objext' 2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2806 (eval $ac_try) 2>&5 2807 ac_status=$? 2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2809 (exit $ac_status); }; }; then 2810 ac_cv_prog_cc_stdc=$ac_arg 2811break 2812else 2813 echo "$as_me: failed program was:" >&5 2814sed 's/^/| /' conftest.$ac_ext >&5 2815 2816fi 2817rm -f conftest.err conftest.$ac_objext 2818done 2819rm -f conftest.$ac_ext conftest.$ac_objext 2820CC=$ac_save_CC 2821 2822fi 2823 2824case "x$ac_cv_prog_cc_stdc" in 2825 x|xno) 2826 echo "$as_me:$LINENO: result: none needed" >&5 2827echo "${ECHO_T}none needed" >&6 ;; 2828 *) 2829 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2830echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2831 CC="$CC $ac_cv_prog_cc_stdc" ;; 2832esac 2833 2834# Some people use a C++ compiler to compile C. Since we use `exit', 2835# in C++ we need to declare it. In case someone uses the same compiler 2836# for both compiling C and C++ we need to have the C++ compiler decide 2837# the declaration of exit, since it's the most demanding environment. 2838cat >conftest.$ac_ext <<_ACEOF 2839#ifndef __cplusplus 2840 choke me 2841#endif 2842_ACEOF 2843rm -f conftest.$ac_objext 2844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2845 (eval $ac_compile) 2>conftest.er1 2846 ac_status=$? 2847 grep -v '^ *+' conftest.er1 >conftest.err 2848 rm -f conftest.er1 2849 cat conftest.err >&5 2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2851 (exit $ac_status); } && 2852 { ac_try='test -z "$ac_c_werror_flag" 2853 || test ! -s conftest.err' 2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2855 (eval $ac_try) 2>&5 2856 ac_status=$? 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2858 (exit $ac_status); }; } && 2859 { ac_try='test -s conftest.$ac_objext' 2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2861 (eval $ac_try) 2>&5 2862 ac_status=$? 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2864 (exit $ac_status); }; }; then 2865 for ac_declaration in \ 2866 '' \ 2867 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2868 'extern "C" void std::exit (int); using std::exit;' \ 2869 'extern "C" void exit (int) throw ();' \ 2870 'extern "C" void exit (int);' \ 2871 'void exit (int);' 2872do 2873 cat >conftest.$ac_ext <<_ACEOF 2874/* confdefs.h. */ 2875_ACEOF 2876cat confdefs.h >>conftest.$ac_ext 2877cat >>conftest.$ac_ext <<_ACEOF 2878/* end confdefs.h. */ 2879$ac_declaration 2880#include <stdlib.h> 2881int 2882main () 2883{ 2884exit (42); 2885 ; 2886 return 0; 2887} 2888_ACEOF 2889rm -f conftest.$ac_objext 2890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2891 (eval $ac_compile) 2>conftest.er1 2892 ac_status=$? 2893 grep -v '^ *+' conftest.er1 >conftest.err 2894 rm -f conftest.er1 2895 cat conftest.err >&5 2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); } && 2898 { ac_try='test -z "$ac_c_werror_flag" 2899 || test ! -s conftest.err' 2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2901 (eval $ac_try) 2>&5 2902 ac_status=$? 2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2904 (exit $ac_status); }; } && 2905 { ac_try='test -s conftest.$ac_objext' 2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2907 (eval $ac_try) 2>&5 2908 ac_status=$? 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); }; }; then 2911 : 2912else 2913 echo "$as_me: failed program was:" >&5 2914sed 's/^/| /' conftest.$ac_ext >&5 2915 2916continue 2917fi 2918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2919 cat >conftest.$ac_ext <<_ACEOF 2920/* confdefs.h. */ 2921_ACEOF 2922cat confdefs.h >>conftest.$ac_ext 2923cat >>conftest.$ac_ext <<_ACEOF 2924/* end confdefs.h. */ 2925$ac_declaration 2926int 2927main () 2928{ 2929exit (42); 2930 ; 2931 return 0; 2932} 2933_ACEOF 2934rm -f conftest.$ac_objext 2935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2936 (eval $ac_compile) 2>conftest.er1 2937 ac_status=$? 2938 grep -v '^ *+' conftest.er1 >conftest.err 2939 rm -f conftest.er1 2940 cat conftest.err >&5 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2942 (exit $ac_status); } && 2943 { ac_try='test -z "$ac_c_werror_flag" 2944 || test ! -s conftest.err' 2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2946 (eval $ac_try) 2>&5 2947 ac_status=$? 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); }; } && 2950 { ac_try='test -s conftest.$ac_objext' 2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2952 (eval $ac_try) 2>&5 2953 ac_status=$? 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); }; }; then 2956 break 2957else 2958 echo "$as_me: failed program was:" >&5 2959sed 's/^/| /' conftest.$ac_ext >&5 2960 2961fi 2962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2963done 2964rm -f conftest* 2965if test -n "$ac_declaration"; then 2966 echo '#ifdef __cplusplus' >>confdefs.h 2967 echo $ac_declaration >>confdefs.h 2968 echo '#endif' >>confdefs.h 2969fi 2970 2971else 2972 echo "$as_me: failed program was:" >&5 2973sed 's/^/| /' conftest.$ac_ext >&5 2974 2975fi 2976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2977ac_ext=c 2978ac_cpp='$CPP $CPPFLAGS' 2979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2981ac_compiler_gnu=$ac_cv_c_compiler_gnu 2982 2983if test "$GCC" != "yes" 2984then 2985 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 2986echo "$as_me: error: gcc required but not found" >&2;} 2987 { (exit 1); exit 1; }; } 2988fi 2989ac_ext=c 2990ac_cpp='$CPP $CPPFLAGS' 2991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2993ac_compiler_gnu=$ac_cv_c_compiler_gnu 2994echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2995echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2996# On Suns, sometimes $CPP names a directory. 2997if test -n "$CPP" && test -d "$CPP"; then 2998 CPP= 2999fi 3000if test -z "$CPP"; then 3001 if test "${ac_cv_prog_CPP+set}" = set; then 3002 echo $ECHO_N "(cached) $ECHO_C" >&6 3003else 3004 # Double quotes because CPP needs to be expanded 3005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3006 do 3007 ac_preproc_ok=false 3008for ac_c_preproc_warn_flag in '' yes 3009do 3010 # Use a header file that comes with gcc, so configuring glibc 3011 # with a fresh cross-compiler works. 3012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3013 # <limits.h> exists even on freestanding compilers. 3014 # On the NeXT, cc -E runs the code through the compiler's parser, 3015 # not just through cpp. "Syntax error" is here to catch this case. 3016 cat >conftest.$ac_ext <<_ACEOF 3017/* confdefs.h. */ 3018_ACEOF 3019cat confdefs.h >>conftest.$ac_ext 3020cat >>conftest.$ac_ext <<_ACEOF 3021/* end confdefs.h. */ 3022#ifdef __STDC__ 3023# include <limits.h> 3024#else 3025# include <assert.h> 3026#endif 3027 Syntax error 3028_ACEOF 3029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3031 ac_status=$? 3032 grep -v '^ *+' conftest.er1 >conftest.err 3033 rm -f conftest.er1 3034 cat conftest.err >&5 3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3036 (exit $ac_status); } >/dev/null; then 3037 if test -s conftest.err; then 3038 ac_cpp_err=$ac_c_preproc_warn_flag 3039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3040 else 3041 ac_cpp_err= 3042 fi 3043else 3044 ac_cpp_err=yes 3045fi 3046if test -z "$ac_cpp_err"; then 3047 : 3048else 3049 echo "$as_me: failed program was:" >&5 3050sed 's/^/| /' conftest.$ac_ext >&5 3051 3052 # Broken: fails on valid input. 3053continue 3054fi 3055rm -f conftest.err conftest.$ac_ext 3056 3057 # OK, works on sane cases. Now check whether non-existent headers 3058 # can be detected and how. 3059 cat >conftest.$ac_ext <<_ACEOF 3060/* confdefs.h. */ 3061_ACEOF 3062cat confdefs.h >>conftest.$ac_ext 3063cat >>conftest.$ac_ext <<_ACEOF 3064/* end confdefs.h. */ 3065#include <ac_nonexistent.h> 3066_ACEOF 3067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3069 ac_status=$? 3070 grep -v '^ *+' conftest.er1 >conftest.err 3071 rm -f conftest.er1 3072 cat conftest.err >&5 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); } >/dev/null; then 3075 if test -s conftest.err; then 3076 ac_cpp_err=$ac_c_preproc_warn_flag 3077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3078 else 3079 ac_cpp_err= 3080 fi 3081else 3082 ac_cpp_err=yes 3083fi 3084if test -z "$ac_cpp_err"; then 3085 # Broken: success on invalid input. 3086continue 3087else 3088 echo "$as_me: failed program was:" >&5 3089sed 's/^/| /' conftest.$ac_ext >&5 3090 3091 # Passes both tests. 3092ac_preproc_ok=: 3093break 3094fi 3095rm -f conftest.err conftest.$ac_ext 3096 3097done 3098# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3099rm -f conftest.err conftest.$ac_ext 3100if $ac_preproc_ok; then 3101 break 3102fi 3103 3104 done 3105 ac_cv_prog_CPP=$CPP 3106 3107fi 3108 CPP=$ac_cv_prog_CPP 3109else 3110 ac_cv_prog_CPP=$CPP 3111fi 3112echo "$as_me:$LINENO: result: $CPP" >&5 3113echo "${ECHO_T}$CPP" >&6 3114ac_preproc_ok=false 3115for ac_c_preproc_warn_flag in '' yes 3116do 3117 # Use a header file that comes with gcc, so configuring glibc 3118 # with a fresh cross-compiler works. 3119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3120 # <limits.h> exists even on freestanding compilers. 3121 # On the NeXT, cc -E runs the code through the compiler's parser, 3122 # not just through cpp. "Syntax error" is here to catch this case. 3123 cat >conftest.$ac_ext <<_ACEOF 3124/* confdefs.h. */ 3125_ACEOF 3126cat confdefs.h >>conftest.$ac_ext 3127cat >>conftest.$ac_ext <<_ACEOF 3128/* end confdefs.h. */ 3129#ifdef __STDC__ 3130# include <limits.h> 3131#else 3132# include <assert.h> 3133#endif 3134 Syntax error 3135_ACEOF 3136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3138 ac_status=$? 3139 grep -v '^ *+' conftest.er1 >conftest.err 3140 rm -f conftest.er1 3141 cat conftest.err >&5 3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 (exit $ac_status); } >/dev/null; then 3144 if test -s conftest.err; then 3145 ac_cpp_err=$ac_c_preproc_warn_flag 3146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3147 else 3148 ac_cpp_err= 3149 fi 3150else 3151 ac_cpp_err=yes 3152fi 3153if test -z "$ac_cpp_err"; then 3154 : 3155else 3156 echo "$as_me: failed program was:" >&5 3157sed 's/^/| /' conftest.$ac_ext >&5 3158 3159 # Broken: fails on valid input. 3160continue 3161fi 3162rm -f conftest.err conftest.$ac_ext 3163 3164 # OK, works on sane cases. Now check whether non-existent headers 3165 # can be detected and how. 3166 cat >conftest.$ac_ext <<_ACEOF 3167/* confdefs.h. */ 3168_ACEOF 3169cat confdefs.h >>conftest.$ac_ext 3170cat >>conftest.$ac_ext <<_ACEOF 3171/* end confdefs.h. */ 3172#include <ac_nonexistent.h> 3173_ACEOF 3174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3176 ac_status=$? 3177 grep -v '^ *+' conftest.er1 >conftest.err 3178 rm -f conftest.er1 3179 cat conftest.err >&5 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } >/dev/null; then 3182 if test -s conftest.err; then 3183 ac_cpp_err=$ac_c_preproc_warn_flag 3184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3185 else 3186 ac_cpp_err= 3187 fi 3188else 3189 ac_cpp_err=yes 3190fi 3191if test -z "$ac_cpp_err"; then 3192 # Broken: success on invalid input. 3193continue 3194else 3195 echo "$as_me: failed program was:" >&5 3196sed 's/^/| /' conftest.$ac_ext >&5 3197 3198 # Passes both tests. 3199ac_preproc_ok=: 3200break 3201fi 3202rm -f conftest.err conftest.$ac_ext 3203 3204done 3205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3206rm -f conftest.err conftest.$ac_ext 3207if $ac_preproc_ok; then 3208 : 3209else 3210 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3211See \`config.log' for more details." >&5 3212echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3213See \`config.log' for more details." >&2;} 3214 { (exit 1); exit 1; }; } 3215fi 3216 3217ac_ext=c 3218ac_cpp='$CPP $CPPFLAGS' 3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3221ac_compiler_gnu=$ac_cv_c_compiler_gnu 3222 3223if test "$GXX" != "yes" 3224then 3225 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 3226echo "$as_me: error: g++ required but not found" >&2;} 3227 { (exit 1); exit 1; }; } 3228fi 3229 3230gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` 3231if test "$gccmajor" -lt "3" 3232then 3233 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 3234echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 3235 { (exit 1); exit 1; }; } 3236fi 3237 3238 echo "$as_me:$LINENO: checking for GNU make" >&5 3239echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 3240if test "${_cv_gnu_make_command+set}" = set; then 3241 echo $ECHO_N "(cached) $ECHO_C" >&6 3242else 3243 _cv_gnu_make_command='' ; 3244 for a in "$MAKE" make gmake gnumake ; do 3245 if test -z "$a" ; then continue ; fi ; 3246 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 3247 _cv_gnu_make_command=$a ; 3248 break; 3249 fi 3250 done ; 3251 3252fi 3253echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 3254echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; 3255 if test "x$_cv_gnu_make_command" != "x" ; then 3256 ifGNUmake='' ; 3257 else 3258 ifGNUmake='#' ; 3259 echo "$as_me:$LINENO: result: \"Not found\"" >&5 3260echo "${ECHO_T}\"Not found\"" >&6; 3261 fi 3262 3263 3264if test -z "$_cv_gnu_make_command" 3265then 3266 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 3267echo "$as_me: error: GNU Make required but not found" >&2;} 3268 { (exit 1); exit 1; }; } 3269fi 3270 3271 3272echo "$as_me:$LINENO: checking " >&5 3273echo $ECHO_N "checking ... $ECHO_C" >&6 3274if test "${ac_cv_has_flex+set}" = set; then 3275 echo $ECHO_N "(cached) $ECHO_C" >&6 3276else 3277 for ac_prog in flex lex 3278do 3279 # Extract the first word of "$ac_prog", so it can be a program name with args. 3280set dummy $ac_prog; ac_word=$2 3281echo "$as_me:$LINENO: checking for $ac_word" >&5 3282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3283if test "${ac_cv_prog_LEX+set}" = set; then 3284 echo $ECHO_N "(cached) $ECHO_C" >&6 3285else 3286 if test -n "$LEX"; then 3287 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3288else 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_exec_ext in '' $ac_executable_extensions; do 3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3296 ac_cv_prog_LEX="$ac_prog" 3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3298 break 2 3299 fi 3300done 3301done 3302 3303fi 3304fi 3305LEX=$ac_cv_prog_LEX 3306if test -n "$LEX"; then 3307 echo "$as_me:$LINENO: result: $LEX" >&5 3308echo "${ECHO_T}$LEX" >&6 3309else 3310 echo "$as_me:$LINENO: result: no" >&5 3311echo "${ECHO_T}no" >&6 3312fi 3313 3314 test -n "$LEX" && break 3315done 3316test -n "$LEX" || LEX=":" 3317 3318if test -z "$LEXLIB" 3319then 3320 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 3321echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 3322if test "${ac_cv_lib_fl_yywrap+set}" = set; then 3323 echo $ECHO_N "(cached) $ECHO_C" >&6 3324else 3325 ac_check_lib_save_LIBS=$LIBS 3326LIBS="-lfl $LIBS" 3327cat >conftest.$ac_ext <<_ACEOF 3328/* confdefs.h. */ 3329_ACEOF 3330cat confdefs.h >>conftest.$ac_ext 3331cat >>conftest.$ac_ext <<_ACEOF 3332/* end confdefs.h. */ 3333 3334/* Override any gcc2 internal prototype to avoid an error. */ 3335#ifdef __cplusplus 3336extern "C" 3337#endif 3338/* We use char because int might match the return type of a gcc2 3339 builtin and then its argument prototype would still apply. */ 3340char yywrap (); 3341int 3342main () 3343{ 3344yywrap (); 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349rm -f conftest.$ac_objext conftest$ac_exeext 3350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3351 (eval $ac_link) 2>conftest.er1 3352 ac_status=$? 3353 grep -v '^ *+' conftest.er1 >conftest.err 3354 rm -f conftest.er1 3355 cat conftest.err >&5 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } && 3358 { ac_try='test -z "$ac_c_werror_flag" 3359 || test ! -s conftest.err' 3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3361 (eval $ac_try) 2>&5 3362 ac_status=$? 3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3364 (exit $ac_status); }; } && 3365 { ac_try='test -s conftest$ac_exeext' 3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3367 (eval $ac_try) 2>&5 3368 ac_status=$? 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); }; }; then 3371 ac_cv_lib_fl_yywrap=yes 3372else 3373 echo "$as_me: failed program was:" >&5 3374sed 's/^/| /' conftest.$ac_ext >&5 3375 3376ac_cv_lib_fl_yywrap=no 3377fi 3378rm -f conftest.err conftest.$ac_objext \ 3379 conftest$ac_exeext conftest.$ac_ext 3380LIBS=$ac_check_lib_save_LIBS 3381fi 3382echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 3383echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 3384if test $ac_cv_lib_fl_yywrap = yes; then 3385 LEXLIB="-lfl" 3386else 3387 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 3388echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 3389if test "${ac_cv_lib_l_yywrap+set}" = set; then 3390 echo $ECHO_N "(cached) $ECHO_C" >&6 3391else 3392 ac_check_lib_save_LIBS=$LIBS 3393LIBS="-ll $LIBS" 3394cat >conftest.$ac_ext <<_ACEOF 3395/* confdefs.h. */ 3396_ACEOF 3397cat confdefs.h >>conftest.$ac_ext 3398cat >>conftest.$ac_ext <<_ACEOF 3399/* end confdefs.h. */ 3400 3401/* Override any gcc2 internal prototype to avoid an error. */ 3402#ifdef __cplusplus 3403extern "C" 3404#endif 3405/* We use char because int might match the return type of a gcc2 3406 builtin and then its argument prototype would still apply. */ 3407char yywrap (); 3408int 3409main () 3410{ 3411yywrap (); 3412 ; 3413 return 0; 3414} 3415_ACEOF 3416rm -f conftest.$ac_objext conftest$ac_exeext 3417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3418 (eval $ac_link) 2>conftest.er1 3419 ac_status=$? 3420 grep -v '^ *+' conftest.er1 >conftest.err 3421 rm -f conftest.er1 3422 cat conftest.err >&5 3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424 (exit $ac_status); } && 3425 { ac_try='test -z "$ac_c_werror_flag" 3426 || test ! -s conftest.err' 3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3428 (eval $ac_try) 2>&5 3429 ac_status=$? 3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3431 (exit $ac_status); }; } && 3432 { ac_try='test -s conftest$ac_exeext' 3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3434 (eval $ac_try) 2>&5 3435 ac_status=$? 3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3437 (exit $ac_status); }; }; then 3438 ac_cv_lib_l_yywrap=yes 3439else 3440 echo "$as_me: failed program was:" >&5 3441sed 's/^/| /' conftest.$ac_ext >&5 3442 3443ac_cv_lib_l_yywrap=no 3444fi 3445rm -f conftest.err conftest.$ac_objext \ 3446 conftest$ac_exeext conftest.$ac_ext 3447LIBS=$ac_check_lib_save_LIBS 3448fi 3449echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 3450echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 3451if test $ac_cv_lib_l_yywrap = yes; then 3452 LEXLIB="-ll" 3453fi 3454 3455fi 3456 3457fi 3458 3459if test "x$LEX" != "x:"; then 3460 echo "$as_me:$LINENO: checking lex output file root" >&5 3461echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 3462if test "${ac_cv_prog_lex_root+set}" = set; then 3463 echo $ECHO_N "(cached) $ECHO_C" >&6 3464else 3465 # The minimal lex program is just a single line: %%. But some broken lexes 3466# (Solaris, I think it was) want two %% lines, so accommodate them. 3467cat >conftest.l <<_ACEOF 3468%% 3469%% 3470_ACEOF 3471{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 3472 (eval $LEX conftest.l) 2>&5 3473 ac_status=$? 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); } 3476if test -f lex.yy.c; then 3477 ac_cv_prog_lex_root=lex.yy 3478elif test -f lexyy.c; then 3479 ac_cv_prog_lex_root=lexyy 3480else 3481 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 3482echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 3483 { (exit 1); exit 1; }; } 3484fi 3485fi 3486echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 3487echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 3488rm -f conftest.l 3489LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3490 3491echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 3492echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 3493if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 3494 echo $ECHO_N "(cached) $ECHO_C" >&6 3495else 3496 # POSIX says lex can declare yytext either as a pointer or an array; the 3497# default is implementation-dependent. Figure out which it is, since 3498# not all implementations provide the %pointer and %array declarations. 3499ac_cv_prog_lex_yytext_pointer=no 3500echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 3501ac_save_LIBS=$LIBS 3502LIBS="$LIBS $LEXLIB" 3503cat >conftest.$ac_ext <<_ACEOF 3504`cat $LEX_OUTPUT_ROOT.c` 3505_ACEOF 3506rm -f conftest.$ac_objext conftest$ac_exeext 3507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3508 (eval $ac_link) 2>conftest.er1 3509 ac_status=$? 3510 grep -v '^ *+' conftest.er1 >conftest.err 3511 rm -f conftest.er1 3512 cat conftest.err >&5 3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3514 (exit $ac_status); } && 3515 { ac_try='test -z "$ac_c_werror_flag" 3516 || test ! -s conftest.err' 3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3518 (eval $ac_try) 2>&5 3519 ac_status=$? 3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3521 (exit $ac_status); }; } && 3522 { ac_try='test -s conftest$ac_exeext' 3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3524 (eval $ac_try) 2>&5 3525 ac_status=$? 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); }; }; then 3528 ac_cv_prog_lex_yytext_pointer=yes 3529else 3530 echo "$as_me: failed program was:" >&5 3531sed 's/^/| /' conftest.$ac_ext >&5 3532 3533fi 3534rm -f conftest.err conftest.$ac_objext \ 3535 conftest$ac_exeext conftest.$ac_ext 3536LIBS=$ac_save_LIBS 3537rm -f "${LEX_OUTPUT_ROOT}.c" 3538 3539fi 3540echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 3541echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 3542if test $ac_cv_prog_lex_yytext_pointer = yes; then 3543 3544cat >>confdefs.h <<\_ACEOF 3545#define YYTEXT_POINTER 1 3546_ACEOF 3547 3548fi 3549 3550fi 3551 3552fi 3553echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 3554echo "${ECHO_T}$ac_cv_has_flex" >&6 3555if test "$LEX" != "flex"; then 3556 { { echo "$as_me:$LINENO: error: flex not found but required" >&5 3557echo "$as_me: error: flex not found but required" >&2;} 3558 { (exit 1); exit 1; }; } 3559else 3560 FLEX=flex 3561 3562fi 3563 3564echo "$as_me:$LINENO: checking " >&5 3565echo $ECHO_N "checking ... $ECHO_C" >&6 3566if test "${ac_cv_has_bison+set}" = set; then 3567 echo $ECHO_N "(cached) $ECHO_C" >&6 3568else 3569 for ac_prog in 'bison -y' byacc 3570do 3571 # Extract the first word of "$ac_prog", so it can be a program name with args. 3572set dummy $ac_prog; ac_word=$2 3573echo "$as_me:$LINENO: checking for $ac_word" >&5 3574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3575if test "${ac_cv_prog_YACC+set}" = set; then 3576 echo $ECHO_N "(cached) $ECHO_C" >&6 3577else 3578 if test -n "$YACC"; then 3579 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3580else 3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582for as_dir in $PATH 3583do 3584 IFS=$as_save_IFS 3585 test -z "$as_dir" && as_dir=. 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3588 ac_cv_prog_YACC="$ac_prog" 3589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3590 break 2 3591 fi 3592done 3593done 3594 3595fi 3596fi 3597YACC=$ac_cv_prog_YACC 3598if test -n "$YACC"; then 3599 echo "$as_me:$LINENO: result: $YACC" >&5 3600echo "${ECHO_T}$YACC" >&6 3601else 3602 echo "$as_me:$LINENO: result: no" >&5 3603echo "${ECHO_T}no" >&6 3604fi 3605 3606 test -n "$YACC" && break 3607done 3608test -n "$YACC" || YACC="yacc" 3609 3610 3611fi 3612echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 3613echo "${ECHO_T}$ac_cv_has_bison" >&6 3614if test "$YACC" != "bison -y"; then 3615 { { echo "$as_me:$LINENO: error: bison not found but required" >&5 3616echo "$as_me: error: bison not found but required" >&2;} 3617 { (exit 1); exit 1; }; } 3618else 3619 BISON=bison 3620 3621fi 3622 3623# Check whether --enable-shared or --disable-shared was given. 3624if test "${enable_shared+set}" = set; then 3625 enableval="$enable_shared" 3626 p=${PACKAGE-default} 3627 case $enableval in 3628 yes) enable_shared=yes ;; 3629 no) enable_shared=no ;; 3630 *) 3631 enable_shared=no 3632 # Look at the argument we got. We use all the common list separators. 3633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3634 for pkg in $enableval; do 3635 IFS="$lt_save_ifs" 3636 if test "X$pkg" = "X$p"; then 3637 enable_shared=yes 3638 fi 3639 done 3640 IFS="$lt_save_ifs" 3641 ;; 3642 esac 3643else 3644 enable_shared=yes 3645fi; 3646 3647# Check whether --enable-static or --disable-static was given. 3648if test "${enable_static+set}" = set; then 3649 enableval="$enable_static" 3650 p=${PACKAGE-default} 3651 case $enableval in 3652 yes) enable_static=yes ;; 3653 no) enable_static=no ;; 3654 *) 3655 enable_static=no 3656 # Look at the argument we got. We use all the common list separators. 3657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3658 for pkg in $enableval; do 3659 IFS="$lt_save_ifs" 3660 if test "X$pkg" = "X$p"; then 3661 enable_static=yes 3662 fi 3663 done 3664 IFS="$lt_save_ifs" 3665 ;; 3666 esac 3667else 3668 enable_static=yes 3669fi; 3670 3671# Check whether --enable-fast-install or --disable-fast-install was given. 3672if test "${enable_fast_install+set}" = set; then 3673 enableval="$enable_fast_install" 3674 p=${PACKAGE-default} 3675 case $enableval in 3676 yes) enable_fast_install=yes ;; 3677 no) enable_fast_install=no ;; 3678 *) 3679 enable_fast_install=no 3680 # Look at the argument we got. We use all the common list separators. 3681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3682 for pkg in $enableval; do 3683 IFS="$lt_save_ifs" 3684 if test "X$pkg" = "X$p"; then 3685 enable_fast_install=yes 3686 fi 3687 done 3688 IFS="$lt_save_ifs" 3689 ;; 3690 esac 3691else 3692 enable_fast_install=yes 3693fi; 3694 3695echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3696echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3697if test "${lt_cv_path_SED+set}" = set; then 3698 echo $ECHO_N "(cached) $ECHO_C" >&6 3699else 3700 # Loop through the user's path and test for sed and gsed. 3701# Then use that list of sed's as ones to test for truncation. 3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3703for as_dir in $PATH 3704do 3705 IFS=$as_save_IFS 3706 test -z "$as_dir" && as_dir=. 3707 for lt_ac_prog in sed gsed; do 3708 for ac_exec_ext in '' $ac_executable_extensions; do 3709 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3710 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3711 fi 3712 done 3713 done 3714done 3715lt_ac_max=0 3716lt_ac_count=0 3717# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3718# along with /bin/sed that truncates output. 3719for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3720 test ! -f $lt_ac_sed && break 3721 cat /dev/null > conftest.in 3722 lt_ac_count=0 3723 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3724 # Check for GNU sed and select it if it is found. 3725 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3726 lt_cv_path_SED=$lt_ac_sed 3727 break 3728 fi 3729 while true; do 3730 cat conftest.in conftest.in >conftest.tmp 3731 mv conftest.tmp conftest.in 3732 cp conftest.in conftest.nl 3733 echo >>conftest.nl 3734 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3735 cmp -s conftest.out conftest.nl || break 3736 # 10000 chars as input seems more than enough 3737 test $lt_ac_count -gt 10 && break 3738 lt_ac_count=`expr $lt_ac_count + 1` 3739 if test $lt_ac_count -gt $lt_ac_max; then 3740 lt_ac_max=$lt_ac_count 3741 lt_cv_path_SED=$lt_ac_sed 3742 fi 3743 done 3744done 3745 3746fi 3747 3748SED=$lt_cv_path_SED 3749echo "$as_me:$LINENO: result: $SED" >&5 3750echo "${ECHO_T}$SED" >&6 3751 3752echo "$as_me:$LINENO: checking for egrep" >&5 3753echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3754if test "${ac_cv_prog_egrep+set}" = set; then 3755 echo $ECHO_N "(cached) $ECHO_C" >&6 3756else 3757 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3758 then ac_cv_prog_egrep='grep -E' 3759 else ac_cv_prog_egrep='egrep' 3760 fi 3761fi 3762echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3763echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3764 EGREP=$ac_cv_prog_egrep 3765 3766 3767 3768# Check whether --with-gnu-ld or --without-gnu-ld was given. 3769if test "${with_gnu_ld+set}" = set; then 3770 withval="$with_gnu_ld" 3771 test "$withval" = no || with_gnu_ld=yes 3772else 3773 with_gnu_ld=no 3774fi; 3775ac_prog=ld 3776if test "$GCC" = yes; then 3777 # Check if gcc -print-prog-name=ld gives a path. 3778 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3779echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3780 case $host in 3781 *-*-mingw*) 3782 # gcc leaves a trailing carriage return which upsets mingw 3783 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3784 *) 3785 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3786 esac 3787 case $ac_prog in 3788 # Accept absolute paths. 3789 [\\/]* | ?:[\\/]*) 3790 re_direlt='/[^/][^/]*/\.\./' 3791 # Canonicalize the pathname of ld 3792 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3793 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3794 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3795 done 3796 test -z "$LD" && LD="$ac_prog" 3797 ;; 3798 "") 3799 # If it fails, then pretend we aren't using GCC. 3800 ac_prog=ld 3801 ;; 3802 *) 3803 # If it is relative, then search for the first ld in PATH. 3804 with_gnu_ld=unknown 3805 ;; 3806 esac 3807elif test "$with_gnu_ld" = yes; then 3808 echo "$as_me:$LINENO: checking for GNU ld" >&5 3809echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3810else 3811 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3812echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3813fi 3814if test "${lt_cv_path_LD+set}" = set; then 3815 echo $ECHO_N "(cached) $ECHO_C" >&6 3816else 3817 if test -z "$LD"; then 3818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3819 for ac_dir in $PATH; do 3820 IFS="$lt_save_ifs" 3821 test -z "$ac_dir" && ac_dir=. 3822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3823 lt_cv_path_LD="$ac_dir/$ac_prog" 3824 # Check to see if the program is GNU ld. I'd rather use --version, 3825 # but apparently some GNU ld's only accept -v. 3826 # Break only if it was the GNU/non-GNU ld that we prefer. 3827 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3828 *GNU* | *'with BFD'*) 3829 test "$with_gnu_ld" != no && break 3830 ;; 3831 *) 3832 test "$with_gnu_ld" != yes && break 3833 ;; 3834 esac 3835 fi 3836 done 3837 IFS="$lt_save_ifs" 3838else 3839 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3840fi 3841fi 3842 3843LD="$lt_cv_path_LD" 3844if test -n "$LD"; then 3845 echo "$as_me:$LINENO: result: $LD" >&5 3846echo "${ECHO_T}$LD" >&6 3847else 3848 echo "$as_me:$LINENO: result: no" >&5 3849echo "${ECHO_T}no" >&6 3850fi 3851test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3852echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3853 { (exit 1); exit 1; }; } 3854echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3855echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3856if test "${lt_cv_prog_gnu_ld+set}" = set; then 3857 echo $ECHO_N "(cached) $ECHO_C" >&6 3858else 3859 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3860case `$LD -v 2>&1 </dev/null` in 3861*GNU* | *'with BFD'*) 3862 lt_cv_prog_gnu_ld=yes 3863 ;; 3864*) 3865 lt_cv_prog_gnu_ld=no 3866 ;; 3867esac 3868fi 3869echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3870echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3871with_gnu_ld=$lt_cv_prog_gnu_ld 3872 3873 3874echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3875echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3876if test "${lt_cv_ld_reload_flag+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 lt_cv_ld_reload_flag='-r' 3880fi 3881echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3882echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3883reload_flag=$lt_cv_ld_reload_flag 3884case $reload_flag in 3885"" | " "*) ;; 3886*) reload_flag=" $reload_flag" ;; 3887esac 3888reload_cmds='$LD$reload_flag -o $output$reload_objs' 3889case $host_os in 3890 darwin*) 3891 if test "$GCC" = yes; then 3892 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3893 else 3894 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3895 fi 3896 ;; 3897esac 3898 3899echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3900echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3901if test "${lt_cv_path_NM+set}" = set; then 3902 echo $ECHO_N "(cached) $ECHO_C" >&6 3903else 3904 if test -n "$NM"; then 3905 # Let the user override the test. 3906 lt_cv_path_NM="$NM" 3907else 3908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3909 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3910 IFS="$lt_save_ifs" 3911 test -z "$ac_dir" && ac_dir=. 3912 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3913 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3914 # Check to see if the nm accepts a BSD-compat flag. 3915 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3916 # nm: unknown option "B" ignored 3917 # Tru64's nm complains that /dev/null is an invalid object file 3918 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3919 */dev/null* | *'Invalid file or object type'*) 3920 lt_cv_path_NM="$tmp_nm -B" 3921 break 3922 ;; 3923 *) 3924 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3925 */dev/null*) 3926 lt_cv_path_NM="$tmp_nm -p" 3927 break 3928 ;; 3929 *) 3930 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3931 continue # so that we can try to find one that supports BSD flags 3932 ;; 3933 esac 3934 esac 3935 fi 3936 done 3937 IFS="$lt_save_ifs" 3938 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3939fi 3940fi 3941echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3942echo "${ECHO_T}$lt_cv_path_NM" >&6 3943NM="$lt_cv_path_NM" 3944 3945echo "$as_me:$LINENO: checking whether ln -s works" >&5 3946echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3947LN_S=$as_ln_s 3948if test "$LN_S" = "ln -s"; then 3949 echo "$as_me:$LINENO: result: yes" >&5 3950echo "${ECHO_T}yes" >&6 3951else 3952 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3953echo "${ECHO_T}no, using $LN_S" >&6 3954fi 3955 3956echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3957echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3958if test "${lt_cv_deplibs_check_method+set}" = set; then 3959 echo $ECHO_N "(cached) $ECHO_C" >&6 3960else 3961 lt_cv_file_magic_cmd='$MAGIC_CMD' 3962lt_cv_file_magic_test_file= 3963lt_cv_deplibs_check_method='unknown' 3964# Need to set the preceding variable on all platforms that support 3965# interlibrary dependencies. 3966# 'none' -- dependencies not supported. 3967# `unknown' -- same as none, but documents that we really don't know. 3968# 'pass_all' -- all dependencies passed with no checks. 3969# 'test_compile' -- check by making test program. 3970# 'file_magic [[regex]]' -- check by looking for files in library path 3971# which responds to the $file_magic_cmd with a given extended regex. 3972# If you have `file' or equivalent on your system and you're not sure 3973# whether `pass_all' will *always* work, you probably want this one. 3974 3975case $host_os in 3976aix4* | aix5*) 3977 lt_cv_deplibs_check_method=pass_all 3978 ;; 3979 3980beos*) 3981 lt_cv_deplibs_check_method=pass_all 3982 ;; 3983 3984bsdi[45]*) 3985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3986 lt_cv_file_magic_cmd='/usr/bin/file -L' 3987 lt_cv_file_magic_test_file=/shlib/libc.so 3988 ;; 3989 3990cygwin*) 3991 # func_win32_libid is a shell function defined in ltmain.sh 3992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3993 lt_cv_file_magic_cmd='func_win32_libid' 3994 ;; 3995 3996mingw* | pw32*) 3997 # Base MSYS/MinGW do not provide the 'file' command needed by 3998 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4000 lt_cv_file_magic_cmd='$OBJDUMP -f' 4001 ;; 4002 4003darwin* | rhapsody*) 4004 lt_cv_deplibs_check_method=pass_all 4005 ;; 4006 4007freebsd* | kfreebsd*-gnu) 4008 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4009 case $host_cpu in 4010 i*86 ) 4011 # Not sure whether the presence of OpenBSD here was a mistake. 4012 # Let's accept both of them until this is cleared up. 4013 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4014 lt_cv_file_magic_cmd=/usr/bin/file 4015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4016 ;; 4017 esac 4018 else 4019 lt_cv_deplibs_check_method=pass_all 4020 fi 4021 ;; 4022 4023gnu*) 4024 lt_cv_deplibs_check_method=pass_all 4025 ;; 4026 4027hpux10.20* | hpux11*) 4028 lt_cv_file_magic_cmd=/usr/bin/file 4029 case "$host_cpu" in 4030 ia64*) 4031 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4032 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4033 ;; 4034 hppa*64*) 4035 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]' 4036 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4037 ;; 4038 *) 4039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4040 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4041 ;; 4042 esac 4043 ;; 4044 4045irix5* | irix6* | nonstopux*) 4046 case $LD in 4047 *-32|*"-32 ") libmagic=32-bit;; 4048 *-n32|*"-n32 ") libmagic=N32;; 4049 *-64|*"-64 ") libmagic=64-bit;; 4050 *) libmagic=never-match;; 4051 esac 4052 lt_cv_deplibs_check_method=pass_all 4053 ;; 4054 4055# This must be Linux ELF. 4056linux*) 4057 lt_cv_deplibs_check_method=pass_all 4058 ;; 4059 4060netbsd*) 4061 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4063 else 4064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4065 fi 4066 ;; 4067 4068newos6*) 4069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4070 lt_cv_file_magic_cmd=/usr/bin/file 4071 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4072 ;; 4073 4074nto-qnx*) 4075 lt_cv_deplibs_check_method=unknown 4076 ;; 4077 4078openbsd*) 4079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4081 else 4082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4083 fi 4084 ;; 4085 4086osf3* | osf4* | osf5*) 4087 lt_cv_deplibs_check_method=pass_all 4088 ;; 4089 4090sco3.2v5*) 4091 lt_cv_deplibs_check_method=pass_all 4092 ;; 4093 4094solaris*) 4095 lt_cv_deplibs_check_method=pass_all 4096 ;; 4097 4098sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4099 case $host_vendor in 4100 motorola) 4101 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]' 4102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4103 ;; 4104 ncr) 4105 lt_cv_deplibs_check_method=pass_all 4106 ;; 4107 sequent) 4108 lt_cv_file_magic_cmd='/bin/file' 4109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4110 ;; 4111 sni) 4112 lt_cv_file_magic_cmd='/bin/file' 4113 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4114 lt_cv_file_magic_test_file=/lib/libc.so 4115 ;; 4116 siemens) 4117 lt_cv_deplibs_check_method=pass_all 4118 ;; 4119 esac 4120 ;; 4121 4122sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4123 lt_cv_deplibs_check_method=pass_all 4124 ;; 4125esac 4126 4127fi 4128echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4129echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4130file_magic_cmd=$lt_cv_file_magic_cmd 4131deplibs_check_method=$lt_cv_deplibs_check_method 4132test -z "$deplibs_check_method" && deplibs_check_method=unknown 4133 4134 4135 4136 4137# If no C compiler was specified, use CC. 4138LTCC=${LTCC-"$CC"} 4139 4140# Allow CC to be a program name with arguments. 4141compiler=$CC 4142 4143# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4144if test "${enable_libtool_lock+set}" = set; then 4145 enableval="$enable_libtool_lock" 4146 4147fi; 4148test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4149 4150# Some flags need to be propagated to the compiler or linker for good 4151# libtool support. 4152case $host in 4153ia64-*-hpux*) 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.$ac_objext` in 4162 *ELF-32*) 4163 HPUX_IA64_MODE="32" 4164 ;; 4165 *ELF-64*) 4166 HPUX_IA64_MODE="64" 4167 ;; 4168 esac 4169 fi 4170 rm -rf conftest* 4171 ;; 4172*-*-irix6*) 4173 # Find out which ABI we are using. 4174 echo '#line 4174 "configure"' > conftest.$ac_ext 4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4176 (eval $ac_compile) 2>&5 4177 ac_status=$? 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4179 (exit $ac_status); }; then 4180 if test "$lt_cv_prog_gnu_ld" = yes; then 4181 case `/usr/bin/file conftest.$ac_objext` in 4182 *32-bit*) 4183 LD="${LD-ld} -melf32bsmip" 4184 ;; 4185 *N32*) 4186 LD="${LD-ld} -melf32bmipn32" 4187 ;; 4188 *64-bit*) 4189 LD="${LD-ld} -melf64bmip" 4190 ;; 4191 esac 4192 else 4193 case `/usr/bin/file conftest.$ac_objext` in 4194 *32-bit*) 4195 LD="${LD-ld} -32" 4196 ;; 4197 *N32*) 4198 LD="${LD-ld} -n32" 4199 ;; 4200 *64-bit*) 4201 LD="${LD-ld} -64" 4202 ;; 4203 esac 4204 fi 4205 fi 4206 rm -rf conftest* 4207 ;; 4208 4209x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4210 # Find out which ABI we are using. 4211 echo 'int i;' > conftest.$ac_ext 4212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4213 (eval $ac_compile) 2>&5 4214 ac_status=$? 4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4216 (exit $ac_status); }; then 4217 case "`/usr/bin/file conftest.o`" in 4218 *32-bit*) 4219 case $host in 4220 x86_64-*linux*) 4221 LD="${LD-ld} -m elf_i386" 4222 ;; 4223 ppc64-*linux*|powerpc64-*linux*) 4224 LD="${LD-ld} -m elf32ppclinux" 4225 ;; 4226 s390x-*linux*) 4227 LD="${LD-ld} -m elf_s390" 4228 ;; 4229 sparc64-*linux*) 4230 LD="${LD-ld} -m elf32_sparc" 4231 ;; 4232 esac 4233 ;; 4234 *64-bit*) 4235 case $host in 4236 x86_64-*linux*) 4237 LD="${LD-ld} -m elf_x86_64" 4238 ;; 4239 ppc*-*linux*|powerpc*-*linux*) 4240 LD="${LD-ld} -m elf64ppc" 4241 ;; 4242 s390*-*linux*) 4243 LD="${LD-ld} -m elf64_s390" 4244 ;; 4245 sparc*-*linux*) 4246 LD="${LD-ld} -m elf64_sparc" 4247 ;; 4248 esac 4249 ;; 4250 esac 4251 fi 4252 rm -rf conftest* 4253 ;; 4254 4255*-*-sco3.2v5*) 4256 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4257 SAVE_CFLAGS="$CFLAGS" 4258 CFLAGS="$CFLAGS -belf" 4259 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4260echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4261if test "${lt_cv_cc_needs_belf+set}" = set; then 4262 echo $ECHO_N "(cached) $ECHO_C" >&6 4263else 4264 ac_ext=c 4265ac_cpp='$CPP $CPPFLAGS' 4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4268ac_compiler_gnu=$ac_cv_c_compiler_gnu 4269 4270 cat >conftest.$ac_ext <<_ACEOF 4271/* confdefs.h. */ 4272_ACEOF 4273cat confdefs.h >>conftest.$ac_ext 4274cat >>conftest.$ac_ext <<_ACEOF 4275/* end confdefs.h. */ 4276 4277int 4278main () 4279{ 4280 4281 ; 4282 return 0; 4283} 4284_ACEOF 4285rm -f conftest.$ac_objext conftest$ac_exeext 4286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4287 (eval $ac_link) 2>conftest.er1 4288 ac_status=$? 4289 grep -v '^ *+' conftest.er1 >conftest.err 4290 rm -f conftest.er1 4291 cat conftest.err >&5 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); } && 4294 { ac_try='test -z "$ac_c_werror_flag" 4295 || test ! -s conftest.err' 4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4297 (eval $ac_try) 2>&5 4298 ac_status=$? 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); }; } && 4301 { ac_try='test -s conftest$ac_exeext' 4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4303 (eval $ac_try) 2>&5 4304 ac_status=$? 4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4306 (exit $ac_status); }; }; then 4307 lt_cv_cc_needs_belf=yes 4308else 4309 echo "$as_me: failed program was:" >&5 4310sed 's/^/| /' conftest.$ac_ext >&5 4311 4312lt_cv_cc_needs_belf=no 4313fi 4314rm -f conftest.err conftest.$ac_objext \ 4315 conftest$ac_exeext conftest.$ac_ext 4316 ac_ext=c 4317ac_cpp='$CPP $CPPFLAGS' 4318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4320ac_compiler_gnu=$ac_cv_c_compiler_gnu 4321 4322fi 4323echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4324echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4327 CFLAGS="$SAVE_CFLAGS" 4328 fi 4329 ;; 4330 4331esac 4332 4333need_locks="$enable_libtool_lock" 4334 4335 4336 4337echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4338echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4339if test "${ac_cv_header_stdc+set}" = set; then 4340 echo $ECHO_N "(cached) $ECHO_C" >&6 4341else 4342 cat >conftest.$ac_ext <<_ACEOF 4343/* confdefs.h. */ 4344_ACEOF 4345cat confdefs.h >>conftest.$ac_ext 4346cat >>conftest.$ac_ext <<_ACEOF 4347/* end confdefs.h. */ 4348#include <stdlib.h> 4349#include <stdarg.h> 4350#include <string.h> 4351#include <float.h> 4352 4353int 4354main () 4355{ 4356 4357 ; 4358 return 0; 4359} 4360_ACEOF 4361rm -f conftest.$ac_objext 4362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4363 (eval $ac_compile) 2>conftest.er1 4364 ac_status=$? 4365 grep -v '^ *+' conftest.er1 >conftest.err 4366 rm -f conftest.er1 4367 cat conftest.err >&5 4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4369 (exit $ac_status); } && 4370 { ac_try='test -z "$ac_c_werror_flag" 4371 || test ! -s conftest.err' 4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4373 (eval $ac_try) 2>&5 4374 ac_status=$? 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); }; } && 4377 { ac_try='test -s conftest.$ac_objext' 4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4379 (eval $ac_try) 2>&5 4380 ac_status=$? 4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4382 (exit $ac_status); }; }; then 4383 ac_cv_header_stdc=yes 4384else 4385 echo "$as_me: failed program was:" >&5 4386sed 's/^/| /' conftest.$ac_ext >&5 4387 4388ac_cv_header_stdc=no 4389fi 4390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4391 4392if test $ac_cv_header_stdc = yes; then 4393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4394 cat >conftest.$ac_ext <<_ACEOF 4395/* confdefs.h. */ 4396_ACEOF 4397cat confdefs.h >>conftest.$ac_ext 4398cat >>conftest.$ac_ext <<_ACEOF 4399/* end confdefs.h. */ 4400#include <string.h> 4401 4402_ACEOF 4403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4404 $EGREP "memchr" >/dev/null 2>&1; then 4405 : 4406else 4407 ac_cv_header_stdc=no 4408fi 4409rm -f conftest* 4410 4411fi 4412 4413if test $ac_cv_header_stdc = yes; then 4414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4415 cat >conftest.$ac_ext <<_ACEOF 4416/* confdefs.h. */ 4417_ACEOF 4418cat confdefs.h >>conftest.$ac_ext 4419cat >>conftest.$ac_ext <<_ACEOF 4420/* end confdefs.h. */ 4421#include <stdlib.h> 4422 4423_ACEOF 4424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4425 $EGREP "free" >/dev/null 2>&1; then 4426 : 4427else 4428 ac_cv_header_stdc=no 4429fi 4430rm -f conftest* 4431 4432fi 4433 4434if test $ac_cv_header_stdc = yes; then 4435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4436 if test "$cross_compiling" = yes; then 4437 : 4438else 4439 cat >conftest.$ac_ext <<_ACEOF 4440/* confdefs.h. */ 4441_ACEOF 4442cat confdefs.h >>conftest.$ac_ext 4443cat >>conftest.$ac_ext <<_ACEOF 4444/* end confdefs.h. */ 4445#include <ctype.h> 4446#if ((' ' & 0x0FF) == 0x020) 4447# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4448# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4449#else 4450# define ISLOWER(c) \ 4451 (('a' <= (c) && (c) <= 'i') \ 4452 || ('j' <= (c) && (c) <= 'r') \ 4453 || ('s' <= (c) && (c) <= 'z')) 4454# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4455#endif 4456 4457#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4458int 4459main () 4460{ 4461 int i; 4462 for (i = 0; i < 256; i++) 4463 if (XOR (islower (i), ISLOWER (i)) 4464 || toupper (i) != TOUPPER (i)) 4465 exit(2); 4466 exit (0); 4467} 4468_ACEOF 4469rm -f conftest$ac_exeext 4470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4471 (eval $ac_link) 2>&5 4472 ac_status=$? 4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4476 (eval $ac_try) 2>&5 4477 ac_status=$? 4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4479 (exit $ac_status); }; }; then 4480 : 4481else 4482 echo "$as_me: program exited with status $ac_status" >&5 4483echo "$as_me: failed program was:" >&5 4484sed 's/^/| /' conftest.$ac_ext >&5 4485 4486( exit $ac_status ) 4487ac_cv_header_stdc=no 4488fi 4489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4490fi 4491fi 4492fi 4493echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4494echo "${ECHO_T}$ac_cv_header_stdc" >&6 4495if test $ac_cv_header_stdc = yes; then 4496 4497cat >>confdefs.h <<\_ACEOF 4498#define STDC_HEADERS 1 4499_ACEOF 4500 4501fi 4502 4503# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4514 inttypes.h stdint.h unistd.h 4515do 4516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4517echo "$as_me:$LINENO: checking for $ac_header" >&5 4518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4519if eval "test \"\${$as_ac_Header+set}\" = set"; then 4520 echo $ECHO_N "(cached) $ECHO_C" >&6 4521else 4522 cat >conftest.$ac_ext <<_ACEOF 4523/* confdefs.h. */ 4524_ACEOF 4525cat confdefs.h >>conftest.$ac_ext 4526cat >>conftest.$ac_ext <<_ACEOF 4527/* end confdefs.h. */ 4528$ac_includes_default 4529 4530#include <$ac_header> 4531_ACEOF 4532rm -f conftest.$ac_objext 4533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4534 (eval $ac_compile) 2>conftest.er1 4535 ac_status=$? 4536 grep -v '^ *+' conftest.er1 >conftest.err 4537 rm -f conftest.er1 4538 cat conftest.err >&5 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); } && 4541 { ac_try='test -z "$ac_c_werror_flag" 4542 || test ! -s conftest.err' 4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4544 (eval $ac_try) 2>&5 4545 ac_status=$? 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); }; } && 4548 { ac_try='test -s conftest.$ac_objext' 4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4550 (eval $ac_try) 2>&5 4551 ac_status=$? 4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4553 (exit $ac_status); }; }; then 4554 eval "$as_ac_Header=yes" 4555else 4556 echo "$as_me: failed program was:" >&5 4557sed 's/^/| /' conftest.$ac_ext >&5 4558 4559eval "$as_ac_Header=no" 4560fi 4561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4562fi 4563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4565if test `eval echo '${'$as_ac_Header'}'` = yes; then 4566 cat >>confdefs.h <<_ACEOF 4567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4568_ACEOF 4569 4570fi 4571 4572done 4573 4574 4575 4576for ac_header in dlfcn.h 4577do 4578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4579if eval "test \"\${$as_ac_Header+set}\" = set"; then 4580 echo "$as_me:$LINENO: checking for $ac_header" >&5 4581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4582if eval "test \"\${$as_ac_Header+set}\" = set"; then 4583 echo $ECHO_N "(cached) $ECHO_C" >&6 4584fi 4585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4587else 4588 # Is the header compilable? 4589echo "$as_me:$LINENO: checking $ac_header usability" >&5 4590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4591cat >conftest.$ac_ext <<_ACEOF 4592/* confdefs.h. */ 4593_ACEOF 4594cat confdefs.h >>conftest.$ac_ext 4595cat >>conftest.$ac_ext <<_ACEOF 4596/* end confdefs.h. */ 4597$ac_includes_default 4598#include <$ac_header> 4599_ACEOF 4600rm -f conftest.$ac_objext 4601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4602 (eval $ac_compile) 2>conftest.er1 4603 ac_status=$? 4604 grep -v '^ *+' conftest.er1 >conftest.err 4605 rm -f conftest.er1 4606 cat conftest.err >&5 4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4608 (exit $ac_status); } && 4609 { ac_try='test -z "$ac_c_werror_flag" 4610 || test ! -s conftest.err' 4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4612 (eval $ac_try) 2>&5 4613 ac_status=$? 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); }; } && 4616 { ac_try='test -s conftest.$ac_objext' 4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4618 (eval $ac_try) 2>&5 4619 ac_status=$? 4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4621 (exit $ac_status); }; }; then 4622 ac_header_compiler=yes 4623else 4624 echo "$as_me: failed program was:" >&5 4625sed 's/^/| /' conftest.$ac_ext >&5 4626 4627ac_header_compiler=no 4628fi 4629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4631echo "${ECHO_T}$ac_header_compiler" >&6 4632 4633# Is the header present? 4634echo "$as_me:$LINENO: checking $ac_header presence" >&5 4635echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4636cat >conftest.$ac_ext <<_ACEOF 4637/* confdefs.h. */ 4638_ACEOF 4639cat confdefs.h >>conftest.$ac_ext 4640cat >>conftest.$ac_ext <<_ACEOF 4641/* end confdefs.h. */ 4642#include <$ac_header> 4643_ACEOF 4644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4646 ac_status=$? 4647 grep -v '^ *+' conftest.er1 >conftest.err 4648 rm -f conftest.er1 4649 cat conftest.err >&5 4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4651 (exit $ac_status); } >/dev/null; then 4652 if test -s conftest.err; then 4653 ac_cpp_err=$ac_c_preproc_warn_flag 4654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4655 else 4656 ac_cpp_err= 4657 fi 4658else 4659 ac_cpp_err=yes 4660fi 4661if test -z "$ac_cpp_err"; then 4662 ac_header_preproc=yes 4663else 4664 echo "$as_me: failed program was:" >&5 4665sed 's/^/| /' conftest.$ac_ext >&5 4666 4667 ac_header_preproc=no 4668fi 4669rm -f conftest.err conftest.$ac_ext 4670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4671echo "${ECHO_T}$ac_header_preproc" >&6 4672 4673# So? What about this header? 4674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4675 yes:no: ) 4676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4680 ac_header_preproc=yes 4681 ;; 4682 no:yes:* ) 4683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4690echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4695 ( 4696 cat <<\_ASBOX 4697## ----------------------------------- ## 4698## Report this to llvmbugs@cs.uiuc.edu ## 4699## ----------------------------------- ## 4700_ASBOX 4701 ) | 4702 sed "s/^/$as_me: WARNING: /" >&2 4703 ;; 4704esac 4705echo "$as_me:$LINENO: checking for $ac_header" >&5 4706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4707if eval "test \"\${$as_ac_Header+set}\" = set"; then 4708 echo $ECHO_N "(cached) $ECHO_C" >&6 4709else 4710 eval "$as_ac_Header=\$ac_header_preproc" 4711fi 4712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4714 4715fi 4716if test `eval echo '${'$as_ac_Header'}'` = yes; then 4717 cat >>confdefs.h <<_ACEOF 4718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4719_ACEOF 4720 4721fi 4722 4723done 4724 4725 4726 4727if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4728 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4729 (test "X$CXX" != "Xg++"))) ; then 4730 ac_ext=cc 4731ac_cpp='$CXXCPP $CPPFLAGS' 4732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4735echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4736echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4737if test -z "$CXXCPP"; then 4738 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4739 echo $ECHO_N "(cached) $ECHO_C" >&6 4740else 4741 # Double quotes because CXXCPP needs to be expanded 4742 for CXXCPP in "$CXX -E" "/lib/cpp" 4743 do 4744 ac_preproc_ok=false 4745for ac_cxx_preproc_warn_flag in '' yes 4746do 4747 # Use a header file that comes with gcc, so configuring glibc 4748 # with a fresh cross-compiler works. 4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4750 # <limits.h> exists even on freestanding compilers. 4751 # On the NeXT, cc -E runs the code through the compiler's parser, 4752 # not just through cpp. "Syntax error" is here to catch this case. 4753 cat >conftest.$ac_ext <<_ACEOF 4754/* confdefs.h. */ 4755_ACEOF 4756cat confdefs.h >>conftest.$ac_ext 4757cat >>conftest.$ac_ext <<_ACEOF 4758/* end confdefs.h. */ 4759#ifdef __STDC__ 4760# include <limits.h> 4761#else 4762# include <assert.h> 4763#endif 4764 Syntax error 4765_ACEOF 4766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4768 ac_status=$? 4769 grep -v '^ *+' conftest.er1 >conftest.err 4770 rm -f conftest.er1 4771 cat conftest.err >&5 4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4773 (exit $ac_status); } >/dev/null; then 4774 if test -s conftest.err; then 4775 ac_cpp_err=$ac_cxx_preproc_warn_flag 4776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4777 else 4778 ac_cpp_err= 4779 fi 4780else 4781 ac_cpp_err=yes 4782fi 4783if test -z "$ac_cpp_err"; then 4784 : 4785else 4786 echo "$as_me: failed program was:" >&5 4787sed 's/^/| /' conftest.$ac_ext >&5 4788 4789 # Broken: fails on valid input. 4790continue 4791fi 4792rm -f conftest.err conftest.$ac_ext 4793 4794 # OK, works on sane cases. Now check whether non-existent headers 4795 # can be detected and how. 4796 cat >conftest.$ac_ext <<_ACEOF 4797/* confdefs.h. */ 4798_ACEOF 4799cat confdefs.h >>conftest.$ac_ext 4800cat >>conftest.$ac_ext <<_ACEOF 4801/* end confdefs.h. */ 4802#include <ac_nonexistent.h> 4803_ACEOF 4804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4806 ac_status=$? 4807 grep -v '^ *+' conftest.er1 >conftest.err 4808 rm -f conftest.er1 4809 cat conftest.err >&5 4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4811 (exit $ac_status); } >/dev/null; then 4812 if test -s conftest.err; then 4813 ac_cpp_err=$ac_cxx_preproc_warn_flag 4814 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4815 else 4816 ac_cpp_err= 4817 fi 4818else 4819 ac_cpp_err=yes 4820fi 4821if test -z "$ac_cpp_err"; then 4822 # Broken: success on invalid input. 4823continue 4824else 4825 echo "$as_me: failed program was:" >&5 4826sed 's/^/| /' conftest.$ac_ext >&5 4827 4828 # Passes both tests. 4829ac_preproc_ok=: 4830break 4831fi 4832rm -f conftest.err conftest.$ac_ext 4833 4834done 4835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4836rm -f conftest.err conftest.$ac_ext 4837if $ac_preproc_ok; then 4838 break 4839fi 4840 4841 done 4842 ac_cv_prog_CXXCPP=$CXXCPP 4843 4844fi 4845 CXXCPP=$ac_cv_prog_CXXCPP 4846else 4847 ac_cv_prog_CXXCPP=$CXXCPP 4848fi 4849echo "$as_me:$LINENO: result: $CXXCPP" >&5 4850echo "${ECHO_T}$CXXCPP" >&6 4851ac_preproc_ok=false 4852for ac_cxx_preproc_warn_flag in '' yes 4853do 4854 # Use a header file that comes with gcc, so configuring glibc 4855 # with a fresh cross-compiler works. 4856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4857 # <limits.h> exists even on freestanding compilers. 4858 # On the NeXT, cc -E runs the code through the compiler's parser, 4859 # not just through cpp. "Syntax error" is here to catch this case. 4860 cat >conftest.$ac_ext <<_ACEOF 4861/* confdefs.h. */ 4862_ACEOF 4863cat confdefs.h >>conftest.$ac_ext 4864cat >>conftest.$ac_ext <<_ACEOF 4865/* end confdefs.h. */ 4866#ifdef __STDC__ 4867# include <limits.h> 4868#else 4869# include <assert.h> 4870#endif 4871 Syntax error 4872_ACEOF 4873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4875 ac_status=$? 4876 grep -v '^ *+' conftest.er1 >conftest.err 4877 rm -f conftest.er1 4878 cat conftest.err >&5 4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4880 (exit $ac_status); } >/dev/null; then 4881 if test -s conftest.err; then 4882 ac_cpp_err=$ac_cxx_preproc_warn_flag 4883 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4884 else 4885 ac_cpp_err= 4886 fi 4887else 4888 ac_cpp_err=yes 4889fi 4890if test -z "$ac_cpp_err"; then 4891 : 4892else 4893 echo "$as_me: failed program was:" >&5 4894sed 's/^/| /' conftest.$ac_ext >&5 4895 4896 # Broken: fails on valid input. 4897continue 4898fi 4899rm -f conftest.err conftest.$ac_ext 4900 4901 # OK, works on sane cases. Now check whether non-existent headers 4902 # can be detected and how. 4903 cat >conftest.$ac_ext <<_ACEOF 4904/* confdefs.h. */ 4905_ACEOF 4906cat confdefs.h >>conftest.$ac_ext 4907cat >>conftest.$ac_ext <<_ACEOF 4908/* end confdefs.h. */ 4909#include <ac_nonexistent.h> 4910_ACEOF 4911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4913 ac_status=$? 4914 grep -v '^ *+' conftest.er1 >conftest.err 4915 rm -f conftest.er1 4916 cat conftest.err >&5 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4918 (exit $ac_status); } >/dev/null; then 4919 if test -s conftest.err; then 4920 ac_cpp_err=$ac_cxx_preproc_warn_flag 4921 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4922 else 4923 ac_cpp_err= 4924 fi 4925else 4926 ac_cpp_err=yes 4927fi 4928if test -z "$ac_cpp_err"; then 4929 # Broken: success on invalid input. 4930continue 4931else 4932 echo "$as_me: failed program was:" >&5 4933sed 's/^/| /' conftest.$ac_ext >&5 4934 4935 # Passes both tests. 4936ac_preproc_ok=: 4937break 4938fi 4939rm -f conftest.err conftest.$ac_ext 4940 4941done 4942# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4943rm -f conftest.err conftest.$ac_ext 4944if $ac_preproc_ok; then 4945 : 4946else 4947 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4948See \`config.log' for more details." >&5 4949echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4950See \`config.log' for more details." >&2;} 4951 { (exit 1); exit 1; }; } 4952fi 4953 4954ac_ext=cc 4955ac_cpp='$CXXCPP $CPPFLAGS' 4956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4959 4960fi 4961 4962 4963ac_ext=f 4964ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4965ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4966ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4967if test -n "$ac_tool_prefix"; then 4968 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4969 do 4970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4971set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4972echo "$as_me:$LINENO: checking for $ac_word" >&5 4973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4974if test "${ac_cv_prog_F77+set}" = set; then 4975 echo $ECHO_N "(cached) $ECHO_C" >&6 4976else 4977 if test -n "$F77"; then 4978 ac_cv_prog_F77="$F77" # Let the user override the test. 4979else 4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4981for as_dir in $PATH 4982do 4983 IFS=$as_save_IFS 4984 test -z "$as_dir" && as_dir=. 4985 for ac_exec_ext in '' $ac_executable_extensions; do 4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4987 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4989 break 2 4990 fi 4991done 4992done 4993 4994fi 4995fi 4996F77=$ac_cv_prog_F77 4997if test -n "$F77"; then 4998 echo "$as_me:$LINENO: result: $F77" >&5 4999echo "${ECHO_T}$F77" >&6 5000else 5001 echo "$as_me:$LINENO: result: no" >&5 5002echo "${ECHO_T}no" >&6 5003fi 5004 5005 test -n "$F77" && break 5006 done 5007fi 5008if test -z "$F77"; then 5009 ac_ct_F77=$F77 5010 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5011do 5012 # Extract the first word of "$ac_prog", so it can be a program name with args. 5013set dummy $ac_prog; ac_word=$2 5014echo "$as_me:$LINENO: checking for $ac_word" >&5 5015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5016if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5017 echo $ECHO_N "(cached) $ECHO_C" >&6 5018else 5019 if test -n "$ac_ct_F77"; then 5020 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5021else 5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5023for as_dir in $PATH 5024do 5025 IFS=$as_save_IFS 5026 test -z "$as_dir" && as_dir=. 5027 for ac_exec_ext in '' $ac_executable_extensions; do 5028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5029 ac_cv_prog_ac_ct_F77="$ac_prog" 5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5031 break 2 5032 fi 5033done 5034done 5035 5036fi 5037fi 5038ac_ct_F77=$ac_cv_prog_ac_ct_F77 5039if test -n "$ac_ct_F77"; then 5040 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5041echo "${ECHO_T}$ac_ct_F77" >&6 5042else 5043 echo "$as_me:$LINENO: result: no" >&5 5044echo "${ECHO_T}no" >&6 5045fi 5046 5047 test -n "$ac_ct_F77" && break 5048done 5049 5050 F77=$ac_ct_F77 5051fi 5052 5053 5054# Provide some information about the compiler. 5055echo "$as_me:5055:" \ 5056 "checking for Fortran 77 compiler version" >&5 5057ac_compiler=`set X $ac_compile; echo $2` 5058{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5059 (eval $ac_compiler --version </dev/null >&5) 2>&5 5060 ac_status=$? 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5062 (exit $ac_status); } 5063{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5064 (eval $ac_compiler -v </dev/null >&5) 2>&5 5065 ac_status=$? 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); } 5068{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5069 (eval $ac_compiler -V </dev/null >&5) 2>&5 5070 ac_status=$? 5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5072 (exit $ac_status); } 5073rm -f a.out 5074 5075# If we don't use `.F' as extension, the preprocessor is not run on the 5076# input file. (Note that this only needs to work for GNU compilers.) 5077ac_save_ext=$ac_ext 5078ac_ext=F 5079echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5080echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5081if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5082 echo $ECHO_N "(cached) $ECHO_C" >&6 5083else 5084 cat >conftest.$ac_ext <<_ACEOF 5085 program main 5086#ifndef __GNUC__ 5087 choke me 5088#endif 5089 5090 end 5091_ACEOF 5092rm -f conftest.$ac_objext 5093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5094 (eval $ac_compile) 2>conftest.er1 5095 ac_status=$? 5096 grep -v '^ *+' conftest.er1 >conftest.err 5097 rm -f conftest.er1 5098 cat conftest.err >&5 5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); } && 5101 { ac_try='test -z "$ac_f77_werror_flag" 5102 || test ! -s conftest.err' 5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5104 (eval $ac_try) 2>&5 5105 ac_status=$? 5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5107 (exit $ac_status); }; } && 5108 { ac_try='test -s conftest.$ac_objext' 5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5110 (eval $ac_try) 2>&5 5111 ac_status=$? 5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5113 (exit $ac_status); }; }; then 5114 ac_compiler_gnu=yes 5115else 5116 echo "$as_me: failed program was:" >&5 5117sed 's/^/| /' conftest.$ac_ext >&5 5118 5119ac_compiler_gnu=no 5120fi 5121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5122ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5123 5124fi 5125echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5126echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5127ac_ext=$ac_save_ext 5128ac_test_FFLAGS=${FFLAGS+set} 5129ac_save_FFLAGS=$FFLAGS 5130FFLAGS= 5131echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5132echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5133if test "${ac_cv_prog_f77_g+set}" = set; then 5134 echo $ECHO_N "(cached) $ECHO_C" >&6 5135else 5136 FFLAGS=-g 5137cat >conftest.$ac_ext <<_ACEOF 5138 program main 5139 5140 end 5141_ACEOF 5142rm -f conftest.$ac_objext 5143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5144 (eval $ac_compile) 2>conftest.er1 5145 ac_status=$? 5146 grep -v '^ *+' conftest.er1 >conftest.err 5147 rm -f conftest.er1 5148 cat conftest.err >&5 5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 (exit $ac_status); } && 5151 { ac_try='test -z "$ac_f77_werror_flag" 5152 || test ! -s conftest.err' 5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5154 (eval $ac_try) 2>&5 5155 ac_status=$? 5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5157 (exit $ac_status); }; } && 5158 { ac_try='test -s conftest.$ac_objext' 5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5160 (eval $ac_try) 2>&5 5161 ac_status=$? 5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5163 (exit $ac_status); }; }; then 5164 ac_cv_prog_f77_g=yes 5165else 5166 echo "$as_me: failed program was:" >&5 5167sed 's/^/| /' conftest.$ac_ext >&5 5168 5169ac_cv_prog_f77_g=no 5170fi 5171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5172 5173fi 5174echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5175echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5176if test "$ac_test_FFLAGS" = set; then 5177 FFLAGS=$ac_save_FFLAGS 5178elif test $ac_cv_prog_f77_g = yes; then 5179 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5180 FFLAGS="-g -O2" 5181 else 5182 FFLAGS="-g" 5183 fi 5184else 5185 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5186 FFLAGS="-O2" 5187 else 5188 FFLAGS= 5189 fi 5190fi 5191 5192G77=`test $ac_compiler_gnu = yes && echo yes` 5193ac_ext=c 5194ac_cpp='$CPP $CPPFLAGS' 5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5197ac_compiler_gnu=$ac_cv_c_compiler_gnu 5198 5199 5200 5201# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5202 5203# find the maximum length of command line arguments 5204echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5205echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5206if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5207 echo $ECHO_N "(cached) $ECHO_C" >&6 5208else 5209 i=0 5210 teststring="ABCD" 5211 5212 case $build_os in 5213 msdosdjgpp*) 5214 # On DJGPP, this test can blow up pretty badly due to problems in libc 5215 # (any single argument exceeding 2000 bytes causes a buffer overrun 5216 # during glob expansion). Even if it were fixed, the result of this 5217 # check would be larger than it should be. 5218 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5219 ;; 5220 5221 gnu*) 5222 # Under GNU Hurd, this test is not required because there is 5223 # no limit to the length of command line arguments. 5224 # Libtool will interpret -1 as no limit whatsoever 5225 lt_cv_sys_max_cmd_len=-1; 5226 ;; 5227 5228 cygwin* | mingw*) 5229 # On Win9x/ME, this test blows up -- it succeeds, but takes 5230 # about 5 minutes as the teststring grows exponentially. 5231 # Worse, since 9x/ME are not pre-emptively multitasking, 5232 # you end up with a "frozen" computer, even though with patience 5233 # the test eventually succeeds (with a max line length of 256k). 5234 # Instead, let's just punt: use the minimum linelength reported by 5235 # all of the supported platforms: 8192 (on NT/2K/XP). 5236 lt_cv_sys_max_cmd_len=8192; 5237 ;; 5238 5239 amigaos*) 5240 # On AmigaOS with pdksh, this test takes hours, literally. 5241 # So we just punt and use a minimum line length of 8192. 5242 lt_cv_sys_max_cmd_len=8192; 5243 ;; 5244 5245 netbsd* | freebsd* | openbsd* | darwin* ) 5246 # This has been around since 386BSD, at least. Likely further. 5247 if test -x /sbin/sysctl; then 5248 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5249 elif test -x /usr/sbin/sysctl; then 5250 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5251 else 5252 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 5253 fi 5254 # And add a safety zone 5255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5256 ;; 5257 5258 *) 5259 # If test is not a shell built-in, we'll probably end up computing a 5260 # maximum length that is only half of the actual maximum length, but 5261 # we can't tell. 5262 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5263 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5264 = "XX$teststring") >/dev/null 2>&1 && 5265 new_result=`expr "X$teststring" : ".*" 2>&1` && 5266 lt_cv_sys_max_cmd_len=$new_result && 5267 test $i != 17 # 1/2 MB should be enough 5268 do 5269 i=`expr $i + 1` 5270 teststring=$teststring$teststring 5271 done 5272 teststring= 5273 # Add a significant safety factor because C++ compilers can tack on massive 5274 # amounts of additional arguments before passing them to the linker. 5275 # It appears as though 1/2 is a usable value. 5276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5277 ;; 5278 esac 5279 5280fi 5281 5282if test -n $lt_cv_sys_max_cmd_len ; then 5283 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5284echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5285else 5286 echo "$as_me:$LINENO: result: none" >&5 5287echo "${ECHO_T}none" >&6 5288fi 5289 5290 5291 5292 5293# Check for command to grab the raw symbol name followed by C symbol from nm. 5294echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5295echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5296if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5297 echo $ECHO_N "(cached) $ECHO_C" >&6 5298else 5299 5300# These are sane defaults that work on at least a few old systems. 5301# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5302 5303# Character class describing NM global symbol codes. 5304symcode='[BCDEGRST]' 5305 5306# Regexp to match symbols that can be accessed directly from C. 5307sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5308 5309# Transform the above into a raw symbol and a C symbol. 5310symxfrm='\1 \2\3 \3' 5311 5312# Transform an extracted symbol line into a proper C declaration 5313lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5314 5315# Transform an extracted symbol line into symbol name and symbol address 5316lt_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'" 5317 5318# Define system-specific variables. 5319case $host_os in 5320aix*) 5321 symcode='[BCDT]' 5322 ;; 5323cygwin* | mingw* | pw32*) 5324 symcode='[ABCDGISTW]' 5325 ;; 5326hpux*) # Its linker distinguishes data from code symbols 5327 if test "$host_cpu" = ia64; then 5328 symcode='[ABCDEGRST]' 5329 fi 5330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5331 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'" 5332 ;; 5333linux*) 5334 if test "$host_cpu" = ia64; then 5335 symcode='[ABCDGIRSTW]' 5336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5337 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'" 5338 fi 5339 ;; 5340irix* | nonstopux*) 5341 symcode='[BCDEGRST]' 5342 ;; 5343osf*) 5344 symcode='[BCDEGQRST]' 5345 ;; 5346solaris* | sysv5*) 5347 symcode='[BDRT]' 5348 ;; 5349sysv4) 5350 symcode='[DFNSTU]' 5351 ;; 5352esac 5353 5354# Handle CRLF in mingw tool chain 5355opt_cr= 5356case $build_os in 5357mingw*) 5358 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5359 ;; 5360esac 5361 5362# If we're using GNU nm, then use its standard symbol codes. 5363case `$NM -V 2>&1` in 5364*GNU* | *'with BFD'*) 5365 symcode='[ABCDGIRSTW]' ;; 5366esac 5367 5368# Try without a prefix undercore, then with it. 5369for ac_symprfx in "" "_"; do 5370 5371 # Write the raw and C identifiers. 5372 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5373 5374 # Check to see that the pipe works correctly. 5375 pipe_works=no 5376 5377 rm -f conftest* 5378 cat > conftest.$ac_ext <<EOF 5379#ifdef __cplusplus 5380extern "C" { 5381#endif 5382char nm_test_var; 5383void nm_test_func(){} 5384#ifdef __cplusplus 5385} 5386#endif 5387int main(){nm_test_var='a';nm_test_func();return(0);} 5388EOF 5389 5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5391 (eval $ac_compile) 2>&5 5392 ac_status=$? 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5394 (exit $ac_status); }; then 5395 # Now try to grab the symbols. 5396 nlist=conftest.nm 5397 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5398 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5399 ac_status=$? 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); } && test -s "$nlist"; then 5402 # Try sorting and uniquifying the output. 5403 if sort "$nlist" | uniq > "$nlist"T; then 5404 mv -f "$nlist"T "$nlist" 5405 else 5406 rm -f "$nlist"T 5407 fi 5408 5409 # Make sure that we snagged all the symbols we need. 5410 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5411 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5412 cat <<EOF > conftest.$ac_ext 5413#ifdef __cplusplus 5414extern "C" { 5415#endif 5416 5417EOF 5418 # Now generate the symbol file. 5419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5420 5421 cat <<EOF >> conftest.$ac_ext 5422#if defined (__STDC__) && __STDC__ 5423# define lt_ptr_t void * 5424#else 5425# define lt_ptr_t char * 5426# define const 5427#endif 5428 5429/* The mapping between symbol names and symbols. */ 5430const struct { 5431 const char *name; 5432 lt_ptr_t address; 5433} 5434lt_preloaded_symbols[] = 5435{ 5436EOF 5437 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5438 cat <<\EOF >> conftest.$ac_ext 5439 {0, (lt_ptr_t) 0} 5440}; 5441 5442#ifdef __cplusplus 5443} 5444#endif 5445EOF 5446 # Now try linking the two files. 5447 mv conftest.$ac_objext conftstm.$ac_objext 5448 lt_save_LIBS="$LIBS" 5449 lt_save_CFLAGS="$CFLAGS" 5450 LIBS="conftstm.$ac_objext" 5451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5453 (eval $ac_link) 2>&5 5454 ac_status=$? 5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5456 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5457 pipe_works=yes 5458 fi 5459 LIBS="$lt_save_LIBS" 5460 CFLAGS="$lt_save_CFLAGS" 5461 else 5462 echo "cannot find nm_test_func in $nlist" >&5 5463 fi 5464 else 5465 echo "cannot find nm_test_var in $nlist" >&5 5466 fi 5467 else 5468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5469 fi 5470 else 5471 echo "$progname: failed program was:" >&5 5472 cat conftest.$ac_ext >&5 5473 fi 5474 rm -f conftest* conftst* 5475 5476 # Do not use the global_symbol_pipe unless it works. 5477 if test "$pipe_works" = yes; then 5478 break 5479 else 5480 lt_cv_sys_global_symbol_pipe= 5481 fi 5482done 5483 5484fi 5485 5486if test -z "$lt_cv_sys_global_symbol_pipe"; then 5487 lt_cv_sys_global_symbol_to_cdecl= 5488fi 5489if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5490 echo "$as_me:$LINENO: result: failed" >&5 5491echo "${ECHO_T}failed" >&6 5492else 5493 echo "$as_me:$LINENO: result: ok" >&5 5494echo "${ECHO_T}ok" >&6 5495fi 5496 5497echo "$as_me:$LINENO: checking for objdir" >&5 5498echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5499if test "${lt_cv_objdir+set}" = set; then 5500 echo $ECHO_N "(cached) $ECHO_C" >&6 5501else 5502 rm -f .libs 2>/dev/null 5503mkdir .libs 2>/dev/null 5504if test -d .libs; then 5505 lt_cv_objdir=.libs 5506else 5507 # MS-DOS does not allow filenames that begin with a dot. 5508 lt_cv_objdir=_libs 5509fi 5510rmdir .libs 2>/dev/null 5511fi 5512echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5513echo "${ECHO_T}$lt_cv_objdir" >&6 5514objdir=$lt_cv_objdir 5515 5516 5517 5518 5519 5520case $host_os in 5521aix3*) 5522 # AIX sometimes has problems with the GCC collect2 program. For some 5523 # reason, if we set the COLLECT_NAMES environment variable, the problems 5524 # vanish in a puff of smoke. 5525 if test "X${COLLECT_NAMES+set}" != Xset; then 5526 COLLECT_NAMES= 5527 export COLLECT_NAMES 5528 fi 5529 ;; 5530esac 5531 5532# Sed substitution that helps us do robust quoting. It backslashifies 5533# metacharacters that are still active within double-quoted strings. 5534Xsed='sed -e s/^X//' 5535sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5536 5537# Same as above, but do not quote variable references. 5538double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5539 5540# Sed substitution to delay expansion of an escaped shell variable in a 5541# double_quote_subst'ed string. 5542delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5543 5544# Sed substitution to avoid accidental globbing in evaled expressions 5545no_glob_subst='s/\*/\\\*/g' 5546 5547# Constants: 5548rm="rm -f" 5549 5550# Global variables: 5551default_ofile=mklib 5552can_build_shared=yes 5553 5554# All known linkers require a `.a' archive for static linking (except M$VC, 5555# which needs '.lib'). 5556libext=a 5557ltmain="$ac_aux_dir/ltmain.sh" 5558ofile="$default_ofile" 5559with_gnu_ld="$lt_cv_prog_gnu_ld" 5560 5561if test -n "$ac_tool_prefix"; then 5562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5563set dummy ${ac_tool_prefix}ar; ac_word=$2 5564echo "$as_me:$LINENO: checking for $ac_word" >&5 5565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5566if test "${ac_cv_prog_AR+set}" = set; then 5567 echo $ECHO_N "(cached) $ECHO_C" >&6 5568else 5569 if test -n "$AR"; then 5570 ac_cv_prog_AR="$AR" # Let the user override the test. 5571else 5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5573for as_dir in $PATH 5574do 5575 IFS=$as_save_IFS 5576 test -z "$as_dir" && as_dir=. 5577 for ac_exec_ext in '' $ac_executable_extensions; do 5578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5579 ac_cv_prog_AR="${ac_tool_prefix}ar" 5580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5581 break 2 5582 fi 5583done 5584done 5585 5586fi 5587fi 5588AR=$ac_cv_prog_AR 5589if test -n "$AR"; then 5590 echo "$as_me:$LINENO: result: $AR" >&5 5591echo "${ECHO_T}$AR" >&6 5592else 5593 echo "$as_me:$LINENO: result: no" >&5 5594echo "${ECHO_T}no" >&6 5595fi 5596 5597fi 5598if test -z "$ac_cv_prog_AR"; then 5599 ac_ct_AR=$AR 5600 # Extract the first word of "ar", so it can be a program name with args. 5601set dummy ar; ac_word=$2 5602echo "$as_me:$LINENO: checking for $ac_word" >&5 5603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5604if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5605 echo $ECHO_N "(cached) $ECHO_C" >&6 5606else 5607 if test -n "$ac_ct_AR"; then 5608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5609else 5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5611for as_dir in $PATH 5612do 5613 IFS=$as_save_IFS 5614 test -z "$as_dir" && as_dir=. 5615 for ac_exec_ext in '' $ac_executable_extensions; do 5616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5617 ac_cv_prog_ac_ct_AR="ar" 5618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5619 break 2 5620 fi 5621done 5622done 5623 5624 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5625fi 5626fi 5627ac_ct_AR=$ac_cv_prog_ac_ct_AR 5628if test -n "$ac_ct_AR"; then 5629 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5630echo "${ECHO_T}$ac_ct_AR" >&6 5631else 5632 echo "$as_me:$LINENO: result: no" >&5 5633echo "${ECHO_T}no" >&6 5634fi 5635 5636 AR=$ac_ct_AR 5637else 5638 AR="$ac_cv_prog_AR" 5639fi 5640 5641if test -n "$ac_tool_prefix"; then 5642 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5643set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5644echo "$as_me:$LINENO: checking for $ac_word" >&5 5645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5646if test "${ac_cv_prog_RANLIB+set}" = set; then 5647 echo $ECHO_N "(cached) $ECHO_C" >&6 5648else 5649 if test -n "$RANLIB"; then 5650 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5651else 5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5653for as_dir in $PATH 5654do 5655 IFS=$as_save_IFS 5656 test -z "$as_dir" && as_dir=. 5657 for ac_exec_ext in '' $ac_executable_extensions; do 5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5659 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5661 break 2 5662 fi 5663done 5664done 5665 5666fi 5667fi 5668RANLIB=$ac_cv_prog_RANLIB 5669if test -n "$RANLIB"; then 5670 echo "$as_me:$LINENO: result: $RANLIB" >&5 5671echo "${ECHO_T}$RANLIB" >&6 5672else 5673 echo "$as_me:$LINENO: result: no" >&5 5674echo "${ECHO_T}no" >&6 5675fi 5676 5677fi 5678if test -z "$ac_cv_prog_RANLIB"; then 5679 ac_ct_RANLIB=$RANLIB 5680 # Extract the first word of "ranlib", so it can be a program name with args. 5681set dummy ranlib; ac_word=$2 5682echo "$as_me:$LINENO: checking for $ac_word" >&5 5683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5684if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5685 echo $ECHO_N "(cached) $ECHO_C" >&6 5686else 5687 if test -n "$ac_ct_RANLIB"; then 5688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5689else 5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691for as_dir in $PATH 5692do 5693 IFS=$as_save_IFS 5694 test -z "$as_dir" && as_dir=. 5695 for ac_exec_ext in '' $ac_executable_extensions; do 5696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5697 ac_cv_prog_ac_ct_RANLIB="ranlib" 5698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5699 break 2 5700 fi 5701done 5702done 5703 5704 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5705fi 5706fi 5707ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5708if test -n "$ac_ct_RANLIB"; then 5709 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5710echo "${ECHO_T}$ac_ct_RANLIB" >&6 5711else 5712 echo "$as_me:$LINENO: result: no" >&5 5713echo "${ECHO_T}no" >&6 5714fi 5715 5716 RANLIB=$ac_ct_RANLIB 5717else 5718 RANLIB="$ac_cv_prog_RANLIB" 5719fi 5720 5721if test -n "$ac_tool_prefix"; then 5722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5723set dummy ${ac_tool_prefix}strip; ac_word=$2 5724echo "$as_me:$LINENO: checking for $ac_word" >&5 5725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5726if test "${ac_cv_prog_STRIP+set}" = set; then 5727 echo $ECHO_N "(cached) $ECHO_C" >&6 5728else 5729 if test -n "$STRIP"; then 5730 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5731else 5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5733for as_dir in $PATH 5734do 5735 IFS=$as_save_IFS 5736 test -z "$as_dir" && as_dir=. 5737 for ac_exec_ext in '' $ac_executable_extensions; do 5738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5739 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5741 break 2 5742 fi 5743done 5744done 5745 5746fi 5747fi 5748STRIP=$ac_cv_prog_STRIP 5749if test -n "$STRIP"; then 5750 echo "$as_me:$LINENO: result: $STRIP" >&5 5751echo "${ECHO_T}$STRIP" >&6 5752else 5753 echo "$as_me:$LINENO: result: no" >&5 5754echo "${ECHO_T}no" >&6 5755fi 5756 5757fi 5758if test -z "$ac_cv_prog_STRIP"; then 5759 ac_ct_STRIP=$STRIP 5760 # Extract the first word of "strip", so it can be a program name with args. 5761set dummy strip; ac_word=$2 5762echo "$as_me:$LINENO: checking for $ac_word" >&5 5763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5764if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5765 echo $ECHO_N "(cached) $ECHO_C" >&6 5766else 5767 if test -n "$ac_ct_STRIP"; then 5768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5769else 5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5771for as_dir in $PATH 5772do 5773 IFS=$as_save_IFS 5774 test -z "$as_dir" && as_dir=. 5775 for ac_exec_ext in '' $ac_executable_extensions; do 5776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5777 ac_cv_prog_ac_ct_STRIP="strip" 5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5779 break 2 5780 fi 5781done 5782done 5783 5784 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5785fi 5786fi 5787ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5788if test -n "$ac_ct_STRIP"; then 5789 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5790echo "${ECHO_T}$ac_ct_STRIP" >&6 5791else 5792 echo "$as_me:$LINENO: result: no" >&5 5793echo "${ECHO_T}no" >&6 5794fi 5795 5796 STRIP=$ac_ct_STRIP 5797else 5798 STRIP="$ac_cv_prog_STRIP" 5799fi 5800 5801 5802old_CC="$CC" 5803old_CFLAGS="$CFLAGS" 5804 5805# Set sane defaults for various variables 5806test -z "$AR" && AR=ar 5807test -z "$AR_FLAGS" && AR_FLAGS=cru 5808test -z "$AS" && AS=as 5809test -z "$CC" && CC=cc 5810test -z "$LTCC" && LTCC=$CC 5811test -z "$DLLTOOL" && DLLTOOL=dlltool 5812test -z "$LD" && LD=ld 5813test -z "$LN_S" && LN_S="ln -s" 5814test -z "$MAGIC_CMD" && MAGIC_CMD=file 5815test -z "$NM" && NM=nm 5816test -z "$SED" && SED=sed 5817test -z "$OBJDUMP" && OBJDUMP=objdump 5818test -z "$RANLIB" && RANLIB=: 5819test -z "$STRIP" && STRIP=: 5820test -z "$ac_objext" && ac_objext=o 5821 5822# Determine commands to create old-style static archives. 5823old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5824old_postinstall_cmds='chmod 644 $oldlib' 5825old_postuninstall_cmds= 5826 5827if test -n "$RANLIB"; then 5828 case $host_os in 5829 openbsd*) 5830 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds" 5831 ;; 5832 *) 5833 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds" 5834 ;; 5835 esac 5836 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib" 5837fi 5838 5839cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 5840 5841# Only perform the check for file, if the check method requires it 5842case $deplibs_check_method in 5843file_magic*) 5844 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5845 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5846echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5847if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5848 echo $ECHO_N "(cached) $ECHO_C" >&6 5849else 5850 case $MAGIC_CMD in 5851[\\/*] | ?:[\\/]*) 5852 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5853 ;; 5854*) 5855 lt_save_MAGIC_CMD="$MAGIC_CMD" 5856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5857 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5858 for ac_dir in $ac_dummy; do 5859 IFS="$lt_save_ifs" 5860 test -z "$ac_dir" && ac_dir=. 5861 if test -f $ac_dir/${ac_tool_prefix}file; then 5862 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5863 if test -n "$file_magic_test_file"; then 5864 case $deplibs_check_method in 5865 "file_magic "*) 5866 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5868 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5869 $EGREP "$file_magic_regex" > /dev/null; then 5870 : 5871 else 5872 cat <<EOF 1>&2 5873 5874*** Warning: the command libtool uses to detect shared libraries, 5875*** $file_magic_cmd, produces output that libtool cannot recognize. 5876*** The result is that libtool may fail to recognize shared libraries 5877*** as such. This will affect the creation of libtool libraries that 5878*** depend on shared libraries, but programs linked with such libtool 5879*** libraries will work regardless of this problem. Nevertheless, you 5880*** may want to report the problem to your system manager and/or to 5881*** bug-libtool@gnu.org 5882 5883EOF 5884 fi ;; 5885 esac 5886 fi 5887 break 5888 fi 5889 done 5890 IFS="$lt_save_ifs" 5891 MAGIC_CMD="$lt_save_MAGIC_CMD" 5892 ;; 5893esac 5894fi 5895 5896MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5897if test -n "$MAGIC_CMD"; then 5898 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5899echo "${ECHO_T}$MAGIC_CMD" >&6 5900else 5901 echo "$as_me:$LINENO: result: no" >&5 5902echo "${ECHO_T}no" >&6 5903fi 5904 5905if test -z "$lt_cv_path_MAGIC_CMD"; then 5906 if test -n "$ac_tool_prefix"; then 5907 echo "$as_me:$LINENO: checking for file" >&5 5908echo $ECHO_N "checking for file... $ECHO_C" >&6 5909if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5910 echo $ECHO_N "(cached) $ECHO_C" >&6 5911else 5912 case $MAGIC_CMD in 5913[\\/*] | ?:[\\/]*) 5914 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5915 ;; 5916*) 5917 lt_save_MAGIC_CMD="$MAGIC_CMD" 5918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5919 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5920 for ac_dir in $ac_dummy; do 5921 IFS="$lt_save_ifs" 5922 test -z "$ac_dir" && ac_dir=. 5923 if test -f $ac_dir/file; then 5924 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5925 if test -n "$file_magic_test_file"; then 5926 case $deplibs_check_method in 5927 "file_magic "*) 5928 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5930 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5931 $EGREP "$file_magic_regex" > /dev/null; then 5932 : 5933 else 5934 cat <<EOF 1>&2 5935 5936*** Warning: the command libtool uses to detect shared libraries, 5937*** $file_magic_cmd, produces output that libtool cannot recognize. 5938*** The result is that libtool may fail to recognize shared libraries 5939*** as such. This will affect the creation of libtool libraries that 5940*** depend on shared libraries, but programs linked with such libtool 5941*** libraries will work regardless of this problem. Nevertheless, you 5942*** may want to report the problem to your system manager and/or to 5943*** bug-libtool@gnu.org 5944 5945EOF 5946 fi ;; 5947 esac 5948 fi 5949 break 5950 fi 5951 done 5952 IFS="$lt_save_ifs" 5953 MAGIC_CMD="$lt_save_MAGIC_CMD" 5954 ;; 5955esac 5956fi 5957 5958MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5959if test -n "$MAGIC_CMD"; then 5960 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5961echo "${ECHO_T}$MAGIC_CMD" >&6 5962else 5963 echo "$as_me:$LINENO: result: no" >&5 5964echo "${ECHO_T}no" >&6 5965fi 5966 5967 else 5968 MAGIC_CMD=: 5969 fi 5970fi 5971 5972 fi 5973 ;; 5974esac 5975 5976enable_dlopen=no 5977enable_win32_dll=no 5978 5979# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5980if test "${enable_libtool_lock+set}" = set; then 5981 enableval="$enable_libtool_lock" 5982 5983fi; 5984test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5985 5986 5987# Check whether --with-pic or --without-pic was given. 5988if test "${with_pic+set}" = set; then 5989 withval="$with_pic" 5990 pic_mode="$withval" 5991else 5992 pic_mode=default 5993fi; 5994test -z "$pic_mode" && pic_mode=default 5995 5996# Use C for the default configuration in the libtool script 5997tagname= 5998lt_save_CC="$CC" 5999ac_ext=c 6000ac_cpp='$CPP $CPPFLAGS' 6001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6003ac_compiler_gnu=$ac_cv_c_compiler_gnu 6004 6005 6006# Source file extension for C test sources. 6007ac_ext=c 6008 6009# Object file extension for compiled C test sources. 6010objext=o 6011objext=$objext 6012 6013# Code to be used in simple compile tests 6014lt_simple_compile_test_code="int some_variable = 0;\n" 6015 6016# Code to be used in simple link tests 6017lt_simple_link_test_code='int main(){return(0);}\n' 6018 6019 6020# If no C compiler was specified, use CC. 6021LTCC=${LTCC-"$CC"} 6022 6023# Allow CC to be a program name with arguments. 6024compiler=$CC 6025 6026 6027# 6028# Check for any special shared library compilation flags. 6029# 6030lt_prog_cc_shlib= 6031if test "$GCC" = no; then 6032 case $host_os in 6033 sco3.2v5*) 6034 lt_prog_cc_shlib='-belf' 6035 ;; 6036 esac 6037fi 6038if test -n "$lt_prog_cc_shlib"; then 6039 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6040echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6041 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6042 else 6043 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6044echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6045 lt_cv_prog_cc_can_build_shared=no 6046 fi 6047fi 6048 6049 6050# 6051# Check to make sure the static flag actually works. 6052# 6053echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6054echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6055if test "${lt_prog_compiler_static_works+set}" = set; then 6056 echo $ECHO_N "(cached) $ECHO_C" >&6 6057else 6058 lt_prog_compiler_static_works=no 6059 save_LDFLAGS="$LDFLAGS" 6060 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6061 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6063 # The compiler can only warn and ignore the option if not recognized 6064 # So say no if there are warnings 6065 if test -s conftest.err; then 6066 # Append any errors to the config.log. 6067 cat conftest.err 1>&5 6068 else 6069 lt_prog_compiler_static_works=yes 6070 fi 6071 fi 6072 $rm conftest* 6073 LDFLAGS="$save_LDFLAGS" 6074 6075fi 6076echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6077echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6078 6079if test x"$lt_prog_compiler_static_works" = xyes; then 6080 : 6081else 6082 lt_prog_compiler_static= 6083fi 6084 6085 6086 6087 6088lt_prog_compiler_no_builtin_flag= 6089 6090if test "$GCC" = yes; then 6091 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6092 6093 6094echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6095echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6096if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6097 echo $ECHO_N "(cached) $ECHO_C" >&6 6098else 6099 lt_cv_prog_compiler_rtti_exceptions=no 6100 ac_outfile=conftest.$ac_objext 6101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6102 lt_compiler_flag="-fno-rtti -fno-exceptions" 6103 # Insert the option either (1) after the last *FLAGS variable, or 6104 # (2) before a word containing "conftest.", or (3) at the end. 6105 # Note that $ac_compile itself does not contain backslashes and begins 6106 # with a dollar sign (not a hyphen), so the echo should work correctly. 6107 # The option is referenced via a variable to avoid confusing sed. 6108 lt_compile=`echo "$ac_compile" | $SED \ 6109 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6111 -e 's:$: $lt_compiler_flag:'` 6112 (eval echo "\"\$as_me:6112: $lt_compile\"" >&5) 6113 (eval "$lt_compile" 2>conftest.err) 6114 ac_status=$? 6115 cat conftest.err >&5 6116 echo "$as_me:6116: \$? = $ac_status" >&5 6117 if (exit $ac_status) && test -s "$ac_outfile"; then 6118 # The compiler can only warn and ignore the option if not recognized 6119 # So say no if there are warnings 6120 if test ! -s conftest.err; then 6121 lt_cv_prog_compiler_rtti_exceptions=yes 6122 fi 6123 fi 6124 $rm conftest* 6125 6126fi 6127echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6128echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6129 6130if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6131 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6132else 6133 : 6134fi 6135 6136fi 6137 6138lt_prog_compiler_wl= 6139lt_prog_compiler_pic= 6140lt_prog_compiler_static= 6141 6142echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6143echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6144 6145 if test "$GCC" = yes; then 6146 lt_prog_compiler_wl='-Wl,' 6147 lt_prog_compiler_static='-static' 6148 6149 case $host_os in 6150 aix*) 6151 # All AIX code is PIC. 6152 if test "$host_cpu" = ia64; then 6153 # AIX 5 now supports IA64 processor 6154 lt_prog_compiler_static='-Bstatic' 6155 fi 6156 ;; 6157 6158 amigaos*) 6159 # FIXME: we need at least 68020 code to build shared libraries, but 6160 # adding the `-m68020' flag to GCC prevents building anything better, 6161 # like `-m68040'. 6162 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6163 ;; 6164 6165 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6166 # PIC is the default for these OSes. 6167 ;; 6168 6169 mingw* | pw32* | os2*) 6170 # This hack is so that the source file can tell whether it is being 6171 # built for inclusion in a dll (and should export symbols for example). 6172 lt_prog_compiler_pic='-DDLL_EXPORT' 6173 ;; 6174 6175 darwin* | rhapsody*) 6176 # PIC is the default on this platform 6177 # Common symbols not allowed in MH_DYLIB files 6178 lt_prog_compiler_pic='-fno-common' 6179 ;; 6180 6181 msdosdjgpp*) 6182 # Just because we use GCC doesn't mean we suddenly get shared libraries 6183 # on systems that don't support them. 6184 lt_prog_compiler_can_build_shared=no 6185 enable_shared=no 6186 ;; 6187 6188 sysv4*MP*) 6189 if test -d /usr/nec; then 6190 lt_prog_compiler_pic=-Kconform_pic 6191 fi 6192 ;; 6193 6194 hpux*) 6195 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6196 # not for PA HP-UX. 6197 case "$host_cpu" in 6198 hppa*64*|ia64*) 6199 # +Z the default 6200 ;; 6201 *) 6202 lt_prog_compiler_pic='-fPIC' 6203 ;; 6204 esac 6205 ;; 6206 6207 *) 6208 lt_prog_compiler_pic='-fPIC' 6209 ;; 6210 esac 6211 else 6212 # PORTME Check for flag to pass linker flags through the system compiler. 6213 case $host_os in 6214 aix*) 6215 lt_prog_compiler_wl='-Wl,' 6216 if test "$host_cpu" = ia64; then 6217 # AIX 5 now supports IA64 processor 6218 lt_prog_compiler_static='-Bstatic' 6219 else 6220 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6221 fi 6222 ;; 6223 darwin*) 6224 # PIC is the default on this platform 6225 # Common symbols not allowed in MH_DYLIB files 6226 case "$cc_basename" in 6227 xlc*) 6228 lt_prog_compiler_pic='-qnocommon' 6229 lt_prog_compiler_wl='-Wl,' 6230 ;; 6231 esac 6232 ;; 6233 6234 mingw* | pw32* | os2*) 6235 # This hack is so that the source file can tell whether it is being 6236 # built for inclusion in a dll (and should export symbols for example). 6237 lt_prog_compiler_pic='-DDLL_EXPORT' 6238 ;; 6239 6240 hpux9* | hpux10* | hpux11*) 6241 lt_prog_compiler_wl='-Wl,' 6242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6243 # not for PA HP-UX. 6244 case "$host_cpu" in 6245 hppa*64*|ia64*) 6246 # +Z the default 6247 ;; 6248 *) 6249 lt_prog_compiler_pic='+Z' 6250 ;; 6251 esac 6252 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6253 lt_prog_compiler_static='${wl}-a ${wl}archive' 6254 ;; 6255 6256 irix5* | irix6* | nonstopux*) 6257 lt_prog_compiler_wl='-Wl,' 6258 # PIC (with -KPIC) is the default. 6259 lt_prog_compiler_static='-non_shared' 6260 ;; 6261 6262 newsos6) 6263 lt_prog_compiler_pic='-KPIC' 6264 lt_prog_compiler_static='-Bstatic' 6265 ;; 6266 6267 linux*) 6268 case $CC in 6269 icc* | ecc*) 6270 lt_prog_compiler_wl='-Wl,' 6271 lt_prog_compiler_pic='-KPIC' 6272 lt_prog_compiler_static='-static' 6273 ;; 6274 ccc*) 6275 lt_prog_compiler_wl='-Wl,' 6276 # All Alpha code is PIC. 6277 lt_prog_compiler_static='-non_shared' 6278 ;; 6279 esac 6280 ;; 6281 6282 osf3* | osf4* | osf5*) 6283 lt_prog_compiler_wl='-Wl,' 6284 # All OSF/1 code is PIC. 6285 lt_prog_compiler_static='-non_shared' 6286 ;; 6287 6288 sco3.2v5*) 6289 lt_prog_compiler_pic='-Kpic' 6290 lt_prog_compiler_static='-dn' 6291 ;; 6292 6293 solaris*) 6294 lt_prog_compiler_wl='-Wl,' 6295 lt_prog_compiler_pic='-KPIC' 6296 lt_prog_compiler_static='-Bstatic' 6297 ;; 6298 6299 sunos4*) 6300 lt_prog_compiler_wl='-Qoption ld ' 6301 lt_prog_compiler_pic='-PIC' 6302 lt_prog_compiler_static='-Bstatic' 6303 ;; 6304 6305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6306 lt_prog_compiler_wl='-Wl,' 6307 lt_prog_compiler_pic='-KPIC' 6308 lt_prog_compiler_static='-Bstatic' 6309 ;; 6310 6311 sysv4*MP*) 6312 if test -d /usr/nec ;then 6313 lt_prog_compiler_pic='-Kconform_pic' 6314 lt_prog_compiler_static='-Bstatic' 6315 fi 6316 ;; 6317 6318 uts4*) 6319 lt_prog_compiler_pic='-pic' 6320 lt_prog_compiler_static='-Bstatic' 6321 ;; 6322 6323 *) 6324 lt_prog_compiler_can_build_shared=no 6325 ;; 6326 esac 6327 fi 6328 6329echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6330echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6331 6332# 6333# Check to make sure the PIC flag actually works. 6334# 6335if test -n "$lt_prog_compiler_pic"; then 6336 6337echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6338echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6339if test "${lt_prog_compiler_pic_works+set}" = set; then 6340 echo $ECHO_N "(cached) $ECHO_C" >&6 6341else 6342 lt_prog_compiler_pic_works=no 6343 ac_outfile=conftest.$ac_objext 6344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6345 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6346 # Insert the option either (1) after the last *FLAGS variable, or 6347 # (2) before a word containing "conftest.", or (3) at the end. 6348 # Note that $ac_compile itself does not contain backslashes and begins 6349 # with a dollar sign (not a hyphen), so the echo should work correctly. 6350 # The option is referenced via a variable to avoid confusing sed. 6351 lt_compile=`echo "$ac_compile" | $SED \ 6352 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6354 -e 's:$: $lt_compiler_flag:'` 6355 (eval echo "\"\$as_me:6355: $lt_compile\"" >&5) 6356 (eval "$lt_compile" 2>conftest.err) 6357 ac_status=$? 6358 cat conftest.err >&5 6359 echo "$as_me:6359: \$? = $ac_status" >&5 6360 if (exit $ac_status) && test -s "$ac_outfile"; then 6361 # The compiler can only warn and ignore the option if not recognized 6362 # So say no if there are warnings 6363 if test ! -s conftest.err; then 6364 lt_prog_compiler_pic_works=yes 6365 fi 6366 fi 6367 $rm conftest* 6368 6369fi 6370echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6371echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6372 6373if test x"$lt_prog_compiler_pic_works" = xyes; then 6374 case $lt_prog_compiler_pic in 6375 "" | " "*) ;; 6376 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6377 esac 6378else 6379 lt_prog_compiler_pic= 6380 lt_prog_compiler_can_build_shared=no 6381fi 6382 6383fi 6384case "$host_os" in 6385 # For platforms which do not support PIC, -DPIC is meaningless: 6386 *djgpp*) 6387 lt_prog_compiler_pic= 6388 ;; 6389 *) 6390 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6391 ;; 6392esac 6393 6394echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6395echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6396if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6397 echo $ECHO_N "(cached) $ECHO_C" >&6 6398else 6399 lt_cv_prog_compiler_c_o=no 6400 $rm -r conftest 2>/dev/null 6401 mkdir conftest 6402 cd conftest 6403 mkdir out 6404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6405 6406 lt_compiler_flag="-o out/conftest2.$ac_objext" 6407 # Insert the option either (1) after the last *FLAGS variable, or 6408 # (2) before a word containing "conftest.", or (3) at the end. 6409 # Note that $ac_compile itself does not contain backslashes and begins 6410 # with a dollar sign (not a hyphen), so the echo should work correctly. 6411 lt_compile=`echo "$ac_compile" | $SED \ 6412 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6414 -e 's:$: $lt_compiler_flag:'` 6415 (eval echo "\"\$as_me:6415: $lt_compile\"" >&5) 6416 (eval "$lt_compile" 2>out/conftest.err) 6417 ac_status=$? 6418 cat out/conftest.err >&5 6419 echo "$as_me:6419: \$? = $ac_status" >&5 6420 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6421 then 6422 # The compiler can only warn and ignore the option if not recognized 6423 # So say no if there are warnings 6424 if test ! -s out/conftest.err; then 6425 lt_cv_prog_compiler_c_o=yes 6426 fi 6427 fi 6428 chmod u+w . 6429 $rm conftest* 6430 # SGI C++ compiler will create directory out/ii_files/ for 6431 # template instantiation 6432 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6433 $rm out/* && rmdir out 6434 cd .. 6435 rmdir conftest 6436 $rm conftest* 6437 6438fi 6439echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6440echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6441 6442 6443hard_links="nottested" 6444if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6445 # do not overwrite the value of need_locks provided by the user 6446 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6447echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6448 hard_links=yes 6449 $rm conftest* 6450 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6451 touch conftest.a 6452 ln conftest.a conftest.b 2>&5 || hard_links=no 6453 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6454 echo "$as_me:$LINENO: result: $hard_links" >&5 6455echo "${ECHO_T}$hard_links" >&6 6456 if test "$hard_links" = no; then 6457 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6458echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6459 need_locks=warn 6460 fi 6461else 6462 need_locks=no 6463fi 6464 6465echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6466echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6467 6468 runpath_var= 6469 allow_undefined_flag= 6470 enable_shared_with_static_runtimes=no 6471 archive_cmds= 6472 archive_expsym_cmds= 6473 old_archive_From_new_cmds= 6474 old_archive_from_expsyms_cmds= 6475 export_dynamic_flag_spec= 6476 whole_archive_flag_spec= 6477 thread_safe_flag_spec= 6478 hardcode_libdir_flag_spec= 6479 hardcode_libdir_flag_spec_ld= 6480 hardcode_libdir_separator= 6481 hardcode_direct=no 6482 hardcode_minus_L=no 6483 hardcode_shlibpath_var=unsupported 6484 link_all_deplibs=unknown 6485 hardcode_automatic=no 6486 module_cmds= 6487 module_expsym_cmds= 6488 always_export_symbols=no 6489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6490 # include_expsyms should be a list of space-separated symbols to be *always* 6491 # included in the symbol list 6492 include_expsyms= 6493 # exclude_expsyms can be an extended regexp of symbols to exclude 6494 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6495 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6496 # as well as any symbol that contains `d'. 6497 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6498 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6499 # platforms (ab)use it in PIC code, but their linkers get confused if 6500 # the symbol is explicitly referenced. Since portable code cannot 6501 # rely on this symbol name, it's probably fine to never include it in 6502 # preloaded symbol tables. 6503 extract_expsyms_cmds= 6504 6505 case $host_os in 6506 cygwin* | mingw* | pw32*) 6507 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6508 # When not using gcc, we currently assume that we are using 6509 # Microsoft Visual C++. 6510 if test "$GCC" != yes; then 6511 with_gnu_ld=no 6512 fi 6513 ;; 6514 openbsd*) 6515 with_gnu_ld=no 6516 ;; 6517 esac 6518 6519 ld_shlibs=yes 6520 if test "$with_gnu_ld" = yes; then 6521 # If archive_cmds runs LD, not CC, wlarc should be empty 6522 wlarc='${wl}' 6523 6524 # See if GNU ld supports shared libraries. 6525 case $host_os in 6526 aix3* | aix4* | aix5*) 6527 # On AIX/PPC, the GNU linker is very broken 6528 if test "$host_cpu" != ia64; then 6529 ld_shlibs=no 6530 cat <<EOF 1>&2 6531 6532*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6533*** to be unable to reliably create shared libraries on AIX. 6534*** Therefore, libtool is disabling shared libraries support. If you 6535*** really care for shared libraries, you may want to modify your PATH 6536*** so that a non-GNU linker is found, and then restart. 6537 6538EOF 6539 fi 6540 ;; 6541 6542 amigaos*) 6543 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)' 6544 hardcode_libdir_flag_spec='-L$libdir' 6545 hardcode_minus_L=yes 6546 6547 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6548 # that the semantics of dynamic libraries on AmigaOS, at least up 6549 # to version 4, is to share data among multiple programs linked 6550 # with the same dynamic library. Since this doesn't match the 6551 # behavior of shared libraries on other platforms, we can't use 6552 # them. 6553 ld_shlibs=no 6554 ;; 6555 6556 beos*) 6557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6558 allow_undefined_flag=unsupported 6559 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6560 # support --undefined. This deserves some investigation. FIXME 6561 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6562 else 6563 ld_shlibs=no 6564 fi 6565 ;; 6566 6567 cygwin* | mingw* | pw32*) 6568 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6569 # as there is no search path for DLLs. 6570 hardcode_libdir_flag_spec='-L$libdir' 6571 allow_undefined_flag=unsupported 6572 always_export_symbols=no 6573 enable_shared_with_static_runtimes=yes 6574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6575 6576 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6578 # If the export-symbols file already is a .def file (1st line 6579 # is EXPORTS), use it as is; otherwise, prepend... 6580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6581 cp $export_symbols $output_objdir/$soname.def; 6582 else 6583 echo EXPORTS > $output_objdir/$soname.def; 6584 cat $export_symbols >> $output_objdir/$soname.def; 6585 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6586 else 6587 ld_shlibs=no 6588 fi 6589 ;; 6590 6591 netbsd*) 6592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6594 wlarc= 6595 else 6596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6598 fi 6599 ;; 6600 6601 solaris* | sysv5*) 6602 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6603 ld_shlibs=no 6604 cat <<EOF 1>&2 6605 6606*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6607*** create shared libraries on Solaris systems. Therefore, libtool 6608*** is disabling shared libraries support. We urge you to upgrade GNU 6609*** binutils to release 2.9.1 or newer. Another option is to modify 6610*** your PATH or compiler configuration so that the native linker is 6611*** used, and then restart. 6612 6613EOF 6614 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6617 else 6618 ld_shlibs=no 6619 fi 6620 ;; 6621 6622 sunos4*) 6623 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6624 wlarc= 6625 hardcode_direct=yes 6626 hardcode_shlibpath_var=no 6627 ;; 6628 6629 linux*) 6630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6631 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6632 archive_cmds="$tmp_archive_cmds" 6633 supports_anon_versioning=no 6634 case `$LD -v 2>/dev/null` in 6635 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6636 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6637 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6638 *\ 2.11.*) ;; # other 2.11 versions 6639 *) supports_anon_versioning=yes ;; 6640 esac 6641 if test $supports_anon_versioning = yes; then 6642 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; 6643 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6644 else 6645 archive_expsym_cmds="$tmp_archive_cmds" 6646 fi 6647 else 6648 ld_shlibs=no 6649 fi 6650 ;; 6651 6652 *) 6653 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6656 else 6657 ld_shlibs=no 6658 fi 6659 ;; 6660 esac 6661 6662 if test "$ld_shlibs" = yes; then 6663 runpath_var=LD_RUN_PATH 6664 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6665 export_dynamic_flag_spec='${wl}--export-dynamic' 6666 # ancient GNU ld didn't support --whole-archive et. al. 6667 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6668 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6669 else 6670 whole_archive_flag_spec= 6671 fi 6672 fi 6673 else 6674 # PORTME fill in a description of your system's linker (not GNU ld) 6675 case $host_os in 6676 aix3*) 6677 allow_undefined_flag=unsupported 6678 always_export_symbols=yes 6679 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' 6680 # Note: this linker hardcodes the directories in LIBPATH if there 6681 # are no directories specified by -L. 6682 hardcode_minus_L=yes 6683 if test "$GCC" = yes && test -z "$link_static_flag"; then 6684 # Neither direct hardcoding nor static linking is supported with a 6685 # broken collect2. 6686 hardcode_direct=unsupported 6687 fi 6688 ;; 6689 6690 aix4* | aix5*) 6691 if test "$host_cpu" = ia64; then 6692 # On IA64, the linker does run time linking by default, so we don't 6693 # have to do anything special. 6694 aix_use_runtimelinking=no 6695 exp_sym_flag='-Bexport' 6696 no_entry_flag="" 6697 else 6698 # If we're using GNU nm, then we don't want the "-C" option. 6699 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6700 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6701 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' 6702 else 6703 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' 6704 fi 6705 aix_use_runtimelinking=no 6706 6707 # Test if we are trying to use run time linking or normal 6708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6709 # need to do runtime linking. 6710 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6711 for ld_flag in $LDFLAGS; do 6712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6713 aix_use_runtimelinking=yes 6714 break 6715 fi 6716 done 6717 esac 6718 6719 exp_sym_flag='-bexport' 6720 no_entry_flag='-bnoentry' 6721 fi 6722 6723 # When large executables or shared objects are built, AIX ld can 6724 # have problems creating the table of contents. If linking a library 6725 # or program results in "error TOC overflow" add -mminimal-toc to 6726 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6727 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6728 6729 archive_cmds='' 6730 hardcode_direct=yes 6731 hardcode_libdir_separator=':' 6732 link_all_deplibs=yes 6733 6734 if test "$GCC" = yes; then 6735 case $host_os in aix4.012|aix4.012.*) 6736 # We only want to do this on AIX 4.2 and lower, the check 6737 # below for broken collect2 doesn't work under 4.3+ 6738 collect2name=`${CC} -print-prog-name=collect2` 6739 if test -f "$collect2name" && \ 6740 strings "$collect2name" | grep resolve_lib_name >/dev/null 6741 then 6742 # We have reworked collect2 6743 hardcode_direct=yes 6744 else 6745 # We have old collect2 6746 hardcode_direct=unsupported 6747 # It fails to find uninstalled libraries when the uninstalled 6748 # path is not listed in the libpath. Setting hardcode_minus_L 6749 # to unsupported forces relinking 6750 hardcode_minus_L=yes 6751 hardcode_libdir_flag_spec='-L$libdir' 6752 hardcode_libdir_separator= 6753 fi 6754 esac 6755 shared_flag='-shared' 6756 else 6757 # not using gcc 6758 if test "$host_cpu" = ia64; then 6759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6760 # chokes on -Wl,-G. The following line is correct: 6761 shared_flag='-G' 6762 else 6763 if test "$aix_use_runtimelinking" = yes; then 6764 shared_flag='${wl}-G' 6765 else 6766 shared_flag='${wl}-bM:SRE' 6767 fi 6768 fi 6769 fi 6770 6771 # It seems that -bexpall does not export symbols beginning with 6772 # underscore (_), so it is better to generate a list of symbols to export. 6773 always_export_symbols=yes 6774 if test "$aix_use_runtimelinking" = yes; then 6775 # Warning - without using the other runtime loading flags (-brtl), 6776 # -berok will link without error, but may produce a broken library. 6777 allow_undefined_flag='-berok' 6778 # Determine the default libpath from the value encoded in an empty executable. 6779 cat >conftest.$ac_ext <<_ACEOF 6780/* confdefs.h. */ 6781_ACEOF 6782cat confdefs.h >>conftest.$ac_ext 6783cat >>conftest.$ac_ext <<_ACEOF 6784/* end confdefs.h. */ 6785 6786int 6787main () 6788{ 6789 6790 ; 6791 return 0; 6792} 6793_ACEOF 6794rm -f conftest.$ac_objext conftest$ac_exeext 6795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6796 (eval $ac_link) 2>conftest.er1 6797 ac_status=$? 6798 grep -v '^ *+' conftest.er1 >conftest.err 6799 rm -f conftest.er1 6800 cat conftest.err >&5 6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6802 (exit $ac_status); } && 6803 { ac_try='test -z "$ac_c_werror_flag" 6804 || test ! -s conftest.err' 6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6806 (eval $ac_try) 2>&5 6807 ac_status=$? 6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6809 (exit $ac_status); }; } && 6810 { ac_try='test -s conftest$ac_exeext' 6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6812 (eval $ac_try) 2>&5 6813 ac_status=$? 6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 (exit $ac_status); }; }; then 6816 6817aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6818}'` 6819# Check for a 64-bit object if we didn't find anything. 6820if 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; } 6821}'`; fi 6822else 6823 echo "$as_me: failed program was:" >&5 6824sed 's/^/| /' conftest.$ac_ext >&5 6825 6826fi 6827rm -f conftest.err conftest.$ac_objext \ 6828 conftest$ac_exeext conftest.$ac_ext 6829if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6830 6831 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6832 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" 6833 else 6834 if test "$host_cpu" = ia64; then 6835 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6836 allow_undefined_flag="-z nodefs" 6837 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" 6838 else 6839 # Determine the default libpath from the value encoded in an empty executable. 6840 cat >conftest.$ac_ext <<_ACEOF 6841/* confdefs.h. */ 6842_ACEOF 6843cat confdefs.h >>conftest.$ac_ext 6844cat >>conftest.$ac_ext <<_ACEOF 6845/* end confdefs.h. */ 6846 6847int 6848main () 6849{ 6850 6851 ; 6852 return 0; 6853} 6854_ACEOF 6855rm -f conftest.$ac_objext conftest$ac_exeext 6856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6857 (eval $ac_link) 2>conftest.er1 6858 ac_status=$? 6859 grep -v '^ *+' conftest.er1 >conftest.err 6860 rm -f conftest.er1 6861 cat conftest.err >&5 6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6863 (exit $ac_status); } && 6864 { ac_try='test -z "$ac_c_werror_flag" 6865 || test ! -s conftest.err' 6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6867 (eval $ac_try) 2>&5 6868 ac_status=$? 6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6870 (exit $ac_status); }; } && 6871 { ac_try='test -s conftest$ac_exeext' 6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6873 (eval $ac_try) 2>&5 6874 ac_status=$? 6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6876 (exit $ac_status); }; }; then 6877 6878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6879}'` 6880# Check for a 64-bit object if we didn't find anything. 6881if 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; } 6882}'`; fi 6883else 6884 echo "$as_me: failed program was:" >&5 6885sed 's/^/| /' conftest.$ac_ext >&5 6886 6887fi 6888rm -f conftest.err conftest.$ac_objext \ 6889 conftest$ac_exeext conftest.$ac_ext 6890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6891 6892 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6893 # Warning - without using the other run time loading flags, 6894 # -berok will link without error, but may produce a broken library. 6895 no_undefined_flag=' ${wl}-bernotok' 6896 allow_undefined_flag=' ${wl}-berok' 6897 # -bexpall does not export symbols beginning with underscore (_) 6898 always_export_symbols=yes 6899 # Exported symbols can be pulled into shared objects from archives 6900 whole_archive_flag_spec=' ' 6901 archive_cmds_need_lc=yes 6902 # This is similar to how AIX traditionally builds it's shared libraries. 6903 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' 6904 fi 6905 fi 6906 ;; 6907 6908 amigaos*) 6909 archive_cmds='$rm $output_objdir/a2ixlibrary.data;$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data;$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data;$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data;$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data;$AR $AR_FLAGS $lib $libobjs;$RANLIB $lib;(cd $output_objdir && a2ixlibrary -32)' 6910 hardcode_libdir_flag_spec='-L$libdir' 6911 hardcode_minus_L=yes 6912 # see comment about different semantics on the GNU ld section 6913 ld_shlibs=no 6914 ;; 6915 6916 bsdi[45]*) 6917 export_dynamic_flag_spec=-rdynamic 6918 ;; 6919 6920 cygwin* | mingw* | pw32*) 6921 # When not using gcc, we currently assume that we are using 6922 # Microsoft Visual C++. 6923 # hardcode_libdir_flag_spec is actually meaningless, as there is 6924 # no search path for DLLs. 6925 hardcode_libdir_flag_spec=' ' 6926 allow_undefined_flag=unsupported 6927 # Tell ltmain to make .lib files, not .a files. 6928 libext=lib 6929 # Tell ltmain to make .dll files, not .so files. 6930 shrext_cmds=".dll" 6931 # FIXME: Setting linknames here is a bad hack. 6932 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames=' 6933 # The linker will automatically build a .lib file if we build a DLL. 6934 old_archive_From_new_cmds='true' 6935 # FIXME: Should let the user specify the lib program. 6936 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6937 fix_srcfile_path='`cygpath -w "$srcfile"`' 6938 enable_shared_with_static_runtimes=yes 6939 ;; 6940 6941 darwin* | rhapsody*) 6942 case "$host_os" in 6943 rhapsody* | darwin1.[012]) 6944 allow_undefined_flag='${wl}-undefined ${wl}suppress' 6945 ;; 6946 *) # Darwin 1.3 on 6947 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6948 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6949 else 6950 case ${MACOSX_DEPLOYMENT_TARGET} in 6951 10.[012]) 6952 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6953 ;; 6954 10.*) 6955 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 6956 ;; 6957 esac 6958 fi 6959 ;; 6960 esac 6961 archive_cmds_need_lc=no 6962 hardcode_direct=no 6963 hardcode_automatic=yes 6964 hardcode_shlibpath_var=unsupported 6965 whole_archive_flag_spec='' 6966 link_all_deplibs=yes 6967 if test "$GCC" = yes ; then 6968 output_verbose_link_cmd='echo' 6969 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6970 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6972 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}' 6973 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}' 6974 else 6975 case "$cc_basename" in 6976 xlc*) 6977 output_verbose_link_cmd='echo' 6978 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 6979 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6980 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6981 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}' 6982 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}' 6983 ;; 6984 *) 6985 ld_shlibs=no 6986 ;; 6987 esac 6988 fi 6989 ;; 6990 6991 dgux*) 6992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6993 hardcode_libdir_flag_spec='-L$libdir' 6994 hardcode_shlibpath_var=no 6995 ;; 6996 6997 freebsd1*) 6998 ld_shlibs=no 6999 ;; 7000 7001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7002 # support. Future versions do this automatically, but an explicit c++rt0.o 7003 # does not break anything, and helps significantly (at the cost of a little 7004 # extra space). 7005 freebsd2.2*) 7006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7007 hardcode_libdir_flag_spec='-R$libdir' 7008 hardcode_direct=yes 7009 hardcode_shlibpath_var=no 7010 ;; 7011 7012 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7013 freebsd2*) 7014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7015 hardcode_direct=yes 7016 hardcode_minus_L=yes 7017 hardcode_shlibpath_var=no 7018 ;; 7019 7020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7021 freebsd* | kfreebsd*-gnu) 7022 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7023 hardcode_libdir_flag_spec='-R$libdir' 7024 hardcode_direct=yes 7025 hardcode_shlibpath_var=no 7026 ;; 7027 7028 hpux9*) 7029 if test "$GCC" = yes; then 7030 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' 7031 else 7032 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' 7033 fi 7034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7035 hardcode_libdir_separator=: 7036 hardcode_direct=yes 7037 7038 # hardcode_minus_L: Not really in the search PATH, 7039 # but as the default location of the library. 7040 hardcode_minus_L=yes 7041 export_dynamic_flag_spec='${wl}-E' 7042 ;; 7043 7044 hpux10* | hpux11*) 7045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7046 case "$host_cpu" in 7047 hppa*64*|ia64*) 7048 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7049 ;; 7050 *) 7051 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7052 ;; 7053 esac 7054 else 7055 case "$host_cpu" in 7056 hppa*64*|ia64*) 7057 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7058 ;; 7059 *) 7060 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7061 ;; 7062 esac 7063 fi 7064 if test "$with_gnu_ld" = no; then 7065 case "$host_cpu" in 7066 hppa*64*) 7067 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7068 hardcode_libdir_flag_spec_ld='+b $libdir' 7069 hardcode_libdir_separator=: 7070 hardcode_direct=no 7071 hardcode_shlibpath_var=no 7072 ;; 7073 ia64*) 7074 hardcode_libdir_flag_spec='-L$libdir' 7075 hardcode_direct=no 7076 hardcode_shlibpath_var=no 7077 7078 # hardcode_minus_L: Not really in the search PATH, 7079 # but as the default location of the library. 7080 hardcode_minus_L=yes 7081 ;; 7082 *) 7083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7084 hardcode_libdir_separator=: 7085 hardcode_direct=yes 7086 export_dynamic_flag_spec='${wl}-E' 7087 7088 # hardcode_minus_L: Not really in the search PATH, 7089 # but as the default location of the library. 7090 hardcode_minus_L=yes 7091 ;; 7092 esac 7093 fi 7094 ;; 7095 7096 irix5* | irix6* | nonstopux*) 7097 if test "$GCC" = yes; then 7098 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' 7099 else 7100 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' 7101 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7102 fi 7103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7104 hardcode_libdir_separator=: 7105 link_all_deplibs=yes 7106 ;; 7107 7108 netbsd*) 7109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7111 else 7112 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7113 fi 7114 hardcode_libdir_flag_spec='-R$libdir' 7115 hardcode_direct=yes 7116 hardcode_shlibpath_var=no 7117 ;; 7118 7119 newsos6) 7120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7121 hardcode_direct=yes 7122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7123 hardcode_libdir_separator=: 7124 hardcode_shlibpath_var=no 7125 ;; 7126 7127 openbsd*) 7128 hardcode_direct=yes 7129 hardcode_shlibpath_var=no 7130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7131 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7132 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7133 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7134 export_dynamic_flag_spec='${wl}-E' 7135 else 7136 case $host_os in 7137 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7139 hardcode_libdir_flag_spec='-R$libdir' 7140 ;; 7141 *) 7142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7144 ;; 7145 esac 7146 fi 7147 ;; 7148 7149 os2*) 7150 hardcode_libdir_flag_spec='-L$libdir' 7151 hardcode_minus_L=yes 7152 allow_undefined_flag=unsupported 7153 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' 7154 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7155 ;; 7156 7157 osf3*) 7158 if test "$GCC" = yes; then 7159 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7160 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' 7161 else 7162 allow_undefined_flag=' -expect_unresolved \*' 7163 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' 7164 fi 7165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7166 hardcode_libdir_separator=: 7167 ;; 7168 7169 osf4* | osf5*) # as osf3* with the addition of -msym flag 7170 if test "$GCC" = yes; then 7171 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7172 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' 7173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7174 else 7175 allow_undefined_flag=' -expect_unresolved \*' 7176 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' 7177 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp' 7178 # Both c and cxx compiler support -rpath directly 7179 hardcode_libdir_flag_spec='-rpath $libdir' 7180 fi 7181 hardcode_libdir_separator=: 7182 ;; 7183 7184 sco3.2v5*) 7185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7186 hardcode_shlibpath_var=no 7187 export_dynamic_flag_spec='${wl}-Bexport' 7188 runpath_var=LD_RUN_PATH 7189 hardcode_runpath_var=yes 7190 ;; 7191 7192 solaris*) 7193 no_undefined_flag=' -z text' 7194 if test "$GCC" = yes; then 7195 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7196 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp' 7197 else 7198 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7199 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp' 7200 fi 7201 hardcode_libdir_flag_spec='-R$libdir' 7202 hardcode_shlibpath_var=no 7203 case $host_os in 7204 solaris2.[0-5] | solaris2.[0-5].*) ;; 7205 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7206 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7207 esac 7208 link_all_deplibs=yes 7209 ;; 7210 7211 sunos4*) 7212 if test "x$host_vendor" = xsequent; then 7213 # Use $CC to link under sequent, because it throws in some extra .o 7214 # files that make .init and .fini sections work. 7215 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7216 else 7217 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7218 fi 7219 hardcode_libdir_flag_spec='-L$libdir' 7220 hardcode_direct=yes 7221 hardcode_minus_L=yes 7222 hardcode_shlibpath_var=no 7223 ;; 7224 7225 sysv4) 7226 case $host_vendor in 7227 sni) 7228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7229 hardcode_direct=yes # is this really true??? 7230 ;; 7231 siemens) 7232 ## LD is ld it makes a PLAMLIB 7233 ## CC just makes a GrossModule. 7234 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7235 reload_cmds='$CC -r -o $output$reload_objs' 7236 hardcode_direct=no 7237 ;; 7238 motorola) 7239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7240 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7241 ;; 7242 esac 7243 runpath_var='LD_RUN_PATH' 7244 hardcode_shlibpath_var=no 7245 ;; 7246 7247 sysv4.3*) 7248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7249 hardcode_shlibpath_var=no 7250 export_dynamic_flag_spec='-Bexport' 7251 ;; 7252 7253 sysv4*MP*) 7254 if test -d /usr/nec; then 7255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7256 hardcode_shlibpath_var=no 7257 runpath_var=LD_RUN_PATH 7258 hardcode_runpath_var=yes 7259 ld_shlibs=yes 7260 fi 7261 ;; 7262 7263 sysv4.2uw2*) 7264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7265 hardcode_direct=yes 7266 hardcode_minus_L=no 7267 hardcode_shlibpath_var=no 7268 hardcode_runpath_var=yes 7269 runpath_var=LD_RUN_PATH 7270 ;; 7271 7272 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7273 no_undefined_flag='${wl}-z ${wl}text' 7274 if test "$GCC" = yes; then 7275 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7276 else 7277 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7278 fi 7279 runpath_var='LD_RUN_PATH' 7280 hardcode_shlibpath_var=no 7281 ;; 7282 7283 sysv5*) 7284 no_undefined_flag=' -z text' 7285 # $CC -shared without GNU ld will not create a library from C++ 7286 # object files and a static libstdc++, better avoid it by now 7287 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7288 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp' 7289 hardcode_libdir_flag_spec= 7290 hardcode_shlibpath_var=no 7291 runpath_var='LD_RUN_PATH' 7292 ;; 7293 7294 uts4*) 7295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7296 hardcode_libdir_flag_spec='-L$libdir' 7297 hardcode_shlibpath_var=no 7298 ;; 7299 7300 *) 7301 ld_shlibs=no 7302 ;; 7303 esac 7304 fi 7305 7306echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7307echo "${ECHO_T}$ld_shlibs" >&6 7308test "$ld_shlibs" = no && can_build_shared=no 7309 7310variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7311if test "$GCC" = yes; then 7312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7313fi 7314 7315# 7316# Do we need to explicitly link libc? 7317# 7318case "x$archive_cmds_need_lc" in 7319x|xyes) 7320 # Assume -lc should be added 7321 archive_cmds_need_lc=yes 7322 7323 if test "$enable_shared" = yes && test "$GCC" = yes; then 7324 case $archive_cmds in 7325 *'~'*) 7326 # FIXME: we may have to deal with multi-command sequences. 7327 ;; 7328 '$CC '*) 7329 # Test whether the compiler implicitly links with -lc since on some 7330 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7331 # to ld, don't add -lc before -lgcc. 7332 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7333echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7334 $rm conftest* 7335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7336 7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7338 (eval $ac_compile) 2>&5 7339 ac_status=$? 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7341 (exit $ac_status); } 2>conftest.err; then 7342 soname=conftest 7343 lib=conftest 7344 libobjs=conftest.$ac_objext 7345 deplibs= 7346 wl=$lt_prog_compiler_wl 7347 compiler_flags=-v 7348 linker_flags=-v 7349 verstring= 7350 output_objdir=. 7351 libname=conftest 7352 lt_save_allow_undefined_flag=$allow_undefined_flag 7353 allow_undefined_flag= 7354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7355 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7356 ac_status=$? 7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7358 (exit $ac_status); } 7359 then 7360 archive_cmds_need_lc=no 7361 else 7362 archive_cmds_need_lc=yes 7363 fi 7364 allow_undefined_flag=$lt_save_allow_undefined_flag 7365 else 7366 cat conftest.err 1>&5 7367 fi 7368 $rm conftest* 7369 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7370echo "${ECHO_T}$archive_cmds_need_lc" >&6 7371 ;; 7372 esac 7373 fi 7374 ;; 7375esac 7376 7377echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7378echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7379library_names_spec= 7380libname_spec='lib$name' 7381soname_spec= 7382shrext_cmds=".so" 7383postinstall_cmds= 7384postuninstall_cmds= 7385finish_cmds= 7386finish_eval= 7387shlibpath_var= 7388shlibpath_overrides_runpath=unknown 7389version_type=none 7390dynamic_linker="$host_os ld.so" 7391sys_lib_dlsearch_path_spec="/lib /usr/lib" 7392if test "$GCC" = yes; then 7393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7395 # if the path contains ";" then we assume it to be the separator 7396 # otherwise default to the standard path separator (i.e. ":") - it is 7397 # assumed that no part of a normal pathname contains ";" but that should 7398 # okay in the real world where ";" in dirpaths is itself problematic. 7399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7400 else 7401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7402 fi 7403else 7404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7405fi 7406need_lib_prefix=unknown 7407hardcode_into_libs=no 7408 7409# when you set need_version to no, make sure it does not cause -set_version 7410# flags to be left without arguments 7411need_version=unknown 7412 7413case $host_os in 7414aix3*) 7415 version_type=linux 7416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7417 shlibpath_var=LIBPATH 7418 7419 # AIX 3 has no versioning support, so we append a major version to the name. 7420 soname_spec='${libname}${release}${shared_ext}$major' 7421 ;; 7422 7423aix4* | aix5*) 7424 version_type=linux 7425 need_lib_prefix=no 7426 need_version=no 7427 hardcode_into_libs=yes 7428 if test "$host_cpu" = ia64; then 7429 # AIX 5 supports IA64 7430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7431 shlibpath_var=LD_LIBRARY_PATH 7432 else 7433 # With GCC up to 2.95.x, collect2 would create an import file 7434 # for dependence libraries. The import file would start with 7435 # the line `#! .'. This would cause the generated library to 7436 # depend on `.', always an invalid library. This was fixed in 7437 # development snapshots of GCC prior to 3.0. 7438 case $host_os in 7439 aix4 | aix4.[01] | aix4.[01].*) 7440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7441 echo ' yes ' 7442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7443 : 7444 else 7445 can_build_shared=no 7446 fi 7447 ;; 7448 esac 7449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7450 # soname into executable. Probably we can add versioning support to 7451 # collect2, so additional links can be useful in future. 7452 if test "$aix_use_runtimelinking" = yes; then 7453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7454 # instead of lib<name>.a to let people know that these are not 7455 # typical AIX shared libraries. 7456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7457 else 7458 # We preserve .a as extension for shared libraries through AIX4.2 7459 # and later when we are not doing run time linking. 7460 library_names_spec='${libname}${release}.a $libname.a' 7461 soname_spec='${libname}${release}${shared_ext}$major' 7462 fi 7463 shlibpath_var=LIBPATH 7464 fi 7465 ;; 7466 7467amigaos*) 7468 library_names_spec='$libname.ixlibrary $libname.a' 7469 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7470 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' 7471 ;; 7472 7473beos*) 7474 library_names_spec='${libname}${shared_ext}' 7475 dynamic_linker="$host_os ld.so" 7476 shlibpath_var=LIBRARY_PATH 7477 ;; 7478 7479bsdi[45]*) 7480 version_type=linux 7481 need_version=no 7482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7483 soname_spec='${libname}${release}${shared_ext}$major' 7484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7485 shlibpath_var=LD_LIBRARY_PATH 7486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7488 # the default ld.so.conf also contains /usr/contrib/lib and 7489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7490 # libtool to hard-code these into programs 7491 ;; 7492 7493cygwin* | mingw* | pw32*) 7494 version_type=windows 7495 shrext_cmds=".dll" 7496 need_version=no 7497 need_lib_prefix=no 7498 7499 case $GCC,$host_os in 7500 yes,cygwin* | yes,mingw* | yes,pw32*) 7501 library_names_spec='$libname.dll.a' 7502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7503 postinstall_cmds='base_file=`basename \${file}`; 7504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; 7505 dldir=$destdir/`dirname \$dlpath`; 7506 test -d \$dldir || mkdir -p \$dldir; 7507 $install_prog $dir/$dlname \$dldir/$dlname' 7508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; 7509 dlpath=$dir/\$dldll; 7510 $rm \$dlpath' 7511 shlibpath_overrides_runpath=yes 7512 7513 case $host_os in 7514 cygwin*) 7515 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7516 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7517 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7518 ;; 7519 mingw*) 7520 # MinGW DLLs use traditional 'lib' prefix 7521 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7522 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7523 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7524 # It is most probably a Windows format PATH printed by 7525 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7526 # path with ; separators, and with drive letters. We can handle the 7527 # drive letters (cygwin fileutils understands them), so leave them, 7528 # especially as we might pass files found there to a mingw objdump, 7529 # which wouldn't understand a cygwinified path. Ahh. 7530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7531 else 7532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7533 fi 7534 ;; 7535 pw32*) 7536 # pw32 DLLs use 'pw' prefix rather than 'lib' 7537 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7538 ;; 7539 esac 7540 ;; 7541 7542 *) 7543 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7544 ;; 7545 esac 7546 dynamic_linker='Win32 ld.exe' 7547 # FIXME: first we should search . and the directory the executable is in 7548 shlibpath_var=PATH 7549 ;; 7550 7551darwin* | rhapsody*) 7552 dynamic_linker="$host_os dyld" 7553 version_type=darwin 7554 need_lib_prefix=no 7555 need_version=no 7556 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7557 soname_spec='${libname}${release}${major}$shared_ext' 7558 shlibpath_overrides_runpath=yes 7559 shlibpath_var=DYLD_LIBRARY_PATH 7560 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7561 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7562 if test "$GCC" = yes; then 7563 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"` 7564 else 7565 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7566 fi 7567 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7568 ;; 7569 7570dgux*) 7571 version_type=linux 7572 need_lib_prefix=no 7573 need_version=no 7574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7575 soname_spec='${libname}${release}${shared_ext}$major' 7576 shlibpath_var=LD_LIBRARY_PATH 7577 ;; 7578 7579freebsd1*) 7580 dynamic_linker=no 7581 ;; 7582 7583kfreebsd*-gnu) 7584 version_type=linux 7585 need_lib_prefix=no 7586 need_version=no 7587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7588 soname_spec='${libname}${release}${shared_ext}$major' 7589 shlibpath_var=LD_LIBRARY_PATH 7590 shlibpath_overrides_runpath=no 7591 hardcode_into_libs=yes 7592 dynamic_linker='GNU ld.so' 7593 ;; 7594 7595freebsd*) 7596 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7597 version_type=freebsd-$objformat 7598 case $version_type in 7599 freebsd-elf*) 7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7601 need_version=no 7602 need_lib_prefix=no 7603 ;; 7604 freebsd-*) 7605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7606 need_version=yes 7607 ;; 7608 esac 7609 shlibpath_var=LD_LIBRARY_PATH 7610 case $host_os in 7611 freebsd2*) 7612 shlibpath_overrides_runpath=yes 7613 ;; 7614 freebsd3.01* | freebsdelf3.01*) 7615 shlibpath_overrides_runpath=yes 7616 hardcode_into_libs=yes 7617 ;; 7618 *) # from 3.2 on 7619 shlibpath_overrides_runpath=no 7620 hardcode_into_libs=yes 7621 ;; 7622 esac 7623 ;; 7624 7625gnu*) 7626 version_type=linux 7627 need_lib_prefix=no 7628 need_version=no 7629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7630 soname_spec='${libname}${release}${shared_ext}$major' 7631 shlibpath_var=LD_LIBRARY_PATH 7632 hardcode_into_libs=yes 7633 ;; 7634 7635hpux9* | hpux10* | hpux11*) 7636 # Give a soname corresponding to the major version so that dld.sl refuses to 7637 # link against other versions. 7638 version_type=sunos 7639 need_lib_prefix=no 7640 need_version=no 7641 case "$host_cpu" in 7642 ia64*) 7643 shrext_cmds='.so' 7644 hardcode_into_libs=yes 7645 dynamic_linker="$host_os dld.so" 7646 shlibpath_var=LD_LIBRARY_PATH 7647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7649 soname_spec='${libname}${release}${shared_ext}$major' 7650 if test "X$HPUX_IA64_MODE" = X32; then 7651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7652 else 7653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7654 fi 7655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7656 ;; 7657 hppa*64*) 7658 shrext_cmds='.sl' 7659 hardcode_into_libs=yes 7660 dynamic_linker="$host_os dld.sl" 7661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7664 soname_spec='${libname}${release}${shared_ext}$major' 7665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7667 ;; 7668 *) 7669 shrext_cmds='.sl' 7670 dynamic_linker="$host_os dld.sl" 7671 shlibpath_var=SHLIB_PATH 7672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7674 soname_spec='${libname}${release}${shared_ext}$major' 7675 ;; 7676 esac 7677 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7678 postinstall_cmds='chmod 555 $lib' 7679 ;; 7680 7681irix5* | irix6* | nonstopux*) 7682 case $host_os in 7683 nonstopux*) version_type=nonstopux ;; 7684 *) 7685 if test "$lt_cv_prog_gnu_ld" = yes; then 7686 version_type=linux 7687 else 7688 version_type=irix 7689 fi ;; 7690 esac 7691 need_lib_prefix=no 7692 need_version=no 7693 soname_spec='${libname}${release}${shared_ext}$major' 7694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7695 case $host_os in 7696 irix5* | nonstopux*) 7697 libsuff= shlibsuff= 7698 ;; 7699 *) 7700 case $LD in # libtool.m4 will add one of these switches to LD 7701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7702 libsuff= shlibsuff= libmagic=32-bit;; 7703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7704 libsuff=32 shlibsuff=N32 libmagic=N32;; 7705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7706 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7707 *) libsuff= shlibsuff= libmagic=never-match;; 7708 esac 7709 ;; 7710 esac 7711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7712 shlibpath_overrides_runpath=no 7713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7715 hardcode_into_libs=yes 7716 ;; 7717 7718# No shared lib support for Linux oldld, aout, or coff. 7719linux*oldld* | linux*aout* | linux*coff*) 7720 dynamic_linker=no 7721 ;; 7722 7723# This must be Linux ELF. 7724linux*) 7725 version_type=linux 7726 need_lib_prefix=no 7727 need_version=no 7728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7729 soname_spec='${libname}${release}${shared_ext}$major' 7730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7731 shlibpath_var=LD_LIBRARY_PATH 7732 shlibpath_overrides_runpath=no 7733 # This implies no fast_install, which is unacceptable. 7734 # Some rework will be needed to allow for fast_install 7735 # before this can be enabled. 7736 hardcode_into_libs=yes 7737 7738 # Append ld.so.conf contents to the search path 7739 if test -f /etc/ld.so.conf; then 7740 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 7741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7742 fi 7743 7744 # We used to test for /lib/ld.so.1 and disable shared libraries on 7745 # powerpc, because MkLinux only supported shared libraries with the 7746 # GNU dynamic linker. Since this was broken with cross compilers, 7747 # most powerpc-linux boxes support dynamic linking these days and 7748 # people can always --disable-shared, the test was removed, and we 7749 # assume the GNU/Linux dynamic linker is in use. 7750 dynamic_linker='GNU/Linux ld.so' 7751 ;; 7752 7753knetbsd*-gnu) 7754 version_type=linux 7755 need_lib_prefix=no 7756 need_version=no 7757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7758 soname_spec='${libname}${release}${shared_ext}$major' 7759 shlibpath_var=LD_LIBRARY_PATH 7760 shlibpath_overrides_runpath=no 7761 hardcode_into_libs=yes 7762 dynamic_linker='GNU ld.so' 7763 ;; 7764 7765netbsd*) 7766 version_type=sunos 7767 need_lib_prefix=no 7768 need_version=no 7769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7772 dynamic_linker='NetBSD (a.out) ld.so' 7773 else 7774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7775 soname_spec='${libname}${release}${shared_ext}$major' 7776 dynamic_linker='NetBSD ld.elf_so' 7777 fi 7778 shlibpath_var=LD_LIBRARY_PATH 7779 shlibpath_overrides_runpath=yes 7780 hardcode_into_libs=yes 7781 ;; 7782 7783newsos6) 7784 version_type=linux 7785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7786 shlibpath_var=LD_LIBRARY_PATH 7787 shlibpath_overrides_runpath=yes 7788 ;; 7789 7790nto-qnx*) 7791 version_type=linux 7792 need_lib_prefix=no 7793 need_version=no 7794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7795 soname_spec='${libname}${release}${shared_ext}$major' 7796 shlibpath_var=LD_LIBRARY_PATH 7797 shlibpath_overrides_runpath=yes 7798 ;; 7799 7800openbsd*) 7801 version_type=sunos 7802 need_lib_prefix=no 7803 need_version=no 7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7806 shlibpath_var=LD_LIBRARY_PATH 7807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7808 case $host_os in 7809 openbsd2.[89] | openbsd2.[89].*) 7810 shlibpath_overrides_runpath=no 7811 ;; 7812 *) 7813 shlibpath_overrides_runpath=yes 7814 ;; 7815 esac 7816 else 7817 shlibpath_overrides_runpath=yes 7818 fi 7819 ;; 7820 7821os2*) 7822 libname_spec='$name' 7823 shrext_cmds=".dll" 7824 need_lib_prefix=no 7825 library_names_spec='$libname${shared_ext} $libname.a' 7826 dynamic_linker='OS/2 ld.exe' 7827 shlibpath_var=LIBPATH 7828 ;; 7829 7830osf3* | osf4* | osf5*) 7831 version_type=osf 7832 need_lib_prefix=no 7833 need_version=no 7834 soname_spec='${libname}${release}${shared_ext}$major' 7835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7836 shlibpath_var=LD_LIBRARY_PATH 7837 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7838 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7839 ;; 7840 7841sco3.2v5*) 7842 version_type=osf 7843 soname_spec='${libname}${release}${shared_ext}$major' 7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7845 shlibpath_var=LD_LIBRARY_PATH 7846 ;; 7847 7848solaris*) 7849 version_type=linux 7850 need_lib_prefix=no 7851 need_version=no 7852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7853 soname_spec='${libname}${release}${shared_ext}$major' 7854 shlibpath_var=LD_LIBRARY_PATH 7855 shlibpath_overrides_runpath=yes 7856 hardcode_into_libs=yes 7857 # ldd complains unless libraries are executable 7858 postinstall_cmds='chmod +x $lib' 7859 ;; 7860 7861sunos4*) 7862 version_type=sunos 7863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7865 shlibpath_var=LD_LIBRARY_PATH 7866 shlibpath_overrides_runpath=yes 7867 if test "$with_gnu_ld" = yes; then 7868 need_lib_prefix=no 7869 fi 7870 need_version=yes 7871 ;; 7872 7873sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7874 version_type=linux 7875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7876 soname_spec='${libname}${release}${shared_ext}$major' 7877 shlibpath_var=LD_LIBRARY_PATH 7878 case $host_vendor in 7879 sni) 7880 shlibpath_overrides_runpath=no 7881 need_lib_prefix=no 7882 export_dynamic_flag_spec='${wl}-Blargedynsym' 7883 runpath_var=LD_RUN_PATH 7884 ;; 7885 siemens) 7886 need_lib_prefix=no 7887 ;; 7888 motorola) 7889 need_lib_prefix=no 7890 need_version=no 7891 shlibpath_overrides_runpath=no 7892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7893 ;; 7894 esac 7895 ;; 7896 7897sysv4*MP*) 7898 if test -d /usr/nec ;then 7899 version_type=linux 7900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7901 soname_spec='$libname${shared_ext}.$major' 7902 shlibpath_var=LD_LIBRARY_PATH 7903 fi 7904 ;; 7905 7906uts4*) 7907 version_type=linux 7908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7909 soname_spec='${libname}${release}${shared_ext}$major' 7910 shlibpath_var=LD_LIBRARY_PATH 7911 ;; 7912 7913*) 7914 dynamic_linker=no 7915 ;; 7916esac 7917echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7918echo "${ECHO_T}$dynamic_linker" >&6 7919test "$dynamic_linker" = no && can_build_shared=no 7920 7921echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7922echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7923hardcode_action= 7924if test -n "$hardcode_libdir_flag_spec" || \ 7925 test -n "$runpath_var" || \ 7926 test "X$hardcode_automatic" = "Xyes" ; then 7927 7928 # We can hardcode non-existant directories. 7929 if test "$hardcode_direct" != no && 7930 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7931 # have to relink, otherwise we might link with an installed library 7932 # when we should be linking with a yet-to-be-installed one 7933 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7934 test "$hardcode_minus_L" != no; then 7935 # Linking always hardcodes the temporary library directory. 7936 hardcode_action=relink 7937 else 7938 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7939 hardcode_action=immediate 7940 fi 7941else 7942 # We cannot hardcode anything, or else we can only hardcode existing 7943 # directories. 7944 hardcode_action=unsupported 7945fi 7946echo "$as_me:$LINENO: result: $hardcode_action" >&5 7947echo "${ECHO_T}$hardcode_action" >&6 7948 7949if test "$hardcode_action" = relink; then 7950 # Fast installation is not supported 7951 enable_fast_install=no 7952elif test "$shlibpath_overrides_runpath" = yes || 7953 test "$enable_shared" = no; then 7954 # Fast installation is not necessary 7955 enable_fast_install=needless 7956fi 7957 7958striplib= 7959old_striplib= 7960echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7961echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7962if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7963 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7964 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7965 echo "$as_me:$LINENO: result: yes" >&5 7966echo "${ECHO_T}yes" >&6 7967else 7968# FIXME - insert some real tests, host_os isn't really good enough 7969 case $host_os in 7970 darwin*) 7971 if test -n "$STRIP" ; then 7972 striplib="$STRIP -x" 7973 echo "$as_me:$LINENO: result: yes" >&5 7974echo "${ECHO_T}yes" >&6 7975 else 7976 echo "$as_me:$LINENO: result: no" >&5 7977echo "${ECHO_T}no" >&6 7978fi 7979 ;; 7980 *) 7981 echo "$as_me:$LINENO: result: no" >&5 7982echo "${ECHO_T}no" >&6 7983 ;; 7984 esac 7985fi 7986 7987if test "x$enable_dlopen" != xyes; then 7988 enable_dlopen=unknown 7989 enable_dlopen_self=unknown 7990 enable_dlopen_self_static=unknown 7991else 7992 lt_cv_dlopen=no 7993 lt_cv_dlopen_libs= 7994 7995 case $host_os in 7996 beos*) 7997 lt_cv_dlopen="load_add_on" 7998 lt_cv_dlopen_libs= 7999 lt_cv_dlopen_self=yes 8000 ;; 8001 8002 mingw* | pw32*) 8003 lt_cv_dlopen="LoadLibrary" 8004 lt_cv_dlopen_libs= 8005 ;; 8006 8007 cygwin*) 8008 lt_cv_dlopen="dlopen" 8009 lt_cv_dlopen_libs= 8010 ;; 8011 8012 darwin*) 8013 # if libdl is installed we need to link against it 8014 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8015echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8016if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8017 echo $ECHO_N "(cached) $ECHO_C" >&6 8018else 8019 ac_check_lib_save_LIBS=$LIBS 8020LIBS="-ldl $LIBS" 8021cat >conftest.$ac_ext <<_ACEOF 8022/* confdefs.h. */ 8023_ACEOF 8024cat confdefs.h >>conftest.$ac_ext 8025cat >>conftest.$ac_ext <<_ACEOF 8026/* end confdefs.h. */ 8027 8028/* Override any gcc2 internal prototype to avoid an error. */ 8029#ifdef __cplusplus 8030extern "C" 8031#endif 8032/* We use char because int might match the return type of a gcc2 8033 builtin and then its argument prototype would still apply. */ 8034char dlopen (); 8035int 8036main () 8037{ 8038dlopen (); 8039 ; 8040 return 0; 8041} 8042_ACEOF 8043rm -f conftest.$ac_objext conftest$ac_exeext 8044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8045 (eval $ac_link) 2>conftest.er1 8046 ac_status=$? 8047 grep -v '^ *+' conftest.er1 >conftest.err 8048 rm -f conftest.er1 8049 cat conftest.err >&5 8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8051 (exit $ac_status); } && 8052 { ac_try='test -z "$ac_c_werror_flag" 8053 || test ! -s conftest.err' 8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8055 (eval $ac_try) 2>&5 8056 ac_status=$? 8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8058 (exit $ac_status); }; } && 8059 { ac_try='test -s conftest$ac_exeext' 8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8061 (eval $ac_try) 2>&5 8062 ac_status=$? 8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8064 (exit $ac_status); }; }; then 8065 ac_cv_lib_dl_dlopen=yes 8066else 8067 echo "$as_me: failed program was:" >&5 8068sed 's/^/| /' conftest.$ac_ext >&5 8069 8070ac_cv_lib_dl_dlopen=no 8071fi 8072rm -f conftest.err conftest.$ac_objext \ 8073 conftest$ac_exeext conftest.$ac_ext 8074LIBS=$ac_check_lib_save_LIBS 8075fi 8076echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8077echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8078if test $ac_cv_lib_dl_dlopen = yes; then 8079 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8080else 8081 8082 lt_cv_dlopen="dyld" 8083 lt_cv_dlopen_libs= 8084 lt_cv_dlopen_self=yes 8085 8086fi 8087 8088 ;; 8089 8090 *) 8091 echo "$as_me:$LINENO: checking for shl_load" >&5 8092echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8093if test "${ac_cv_func_shl_load+set}" = set; then 8094 echo $ECHO_N "(cached) $ECHO_C" >&6 8095else 8096 cat >conftest.$ac_ext <<_ACEOF 8097/* confdefs.h. */ 8098_ACEOF 8099cat confdefs.h >>conftest.$ac_ext 8100cat >>conftest.$ac_ext <<_ACEOF 8101/* end confdefs.h. */ 8102/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8103 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8104#define shl_load innocuous_shl_load 8105 8106/* System header to define __stub macros and hopefully few prototypes, 8107 which can conflict with char shl_load (); below. 8108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8109 <limits.h> exists even on freestanding compilers. */ 8110 8111#ifdef __STDC__ 8112# include <limits.h> 8113#else 8114# include <assert.h> 8115#endif 8116 8117#undef shl_load 8118 8119/* Override any gcc2 internal prototype to avoid an error. */ 8120#ifdef __cplusplus 8121extern "C" 8122{ 8123#endif 8124/* We use char because int might match the return type of a gcc2 8125 builtin and then its argument prototype would still apply. */ 8126char shl_load (); 8127/* The GNU C library defines this for functions which it implements 8128 to always fail with ENOSYS. Some functions are actually named 8129 something starting with __ and the normal name is an alias. */ 8130#if defined (__stub_shl_load) || defined (__stub___shl_load) 8131choke me 8132#else 8133char (*f) () = shl_load; 8134#endif 8135#ifdef __cplusplus 8136} 8137#endif 8138 8139int 8140main () 8141{ 8142return f != shl_load; 8143 ; 8144 return 0; 8145} 8146_ACEOF 8147rm -f conftest.$ac_objext conftest$ac_exeext 8148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8149 (eval $ac_link) 2>conftest.er1 8150 ac_status=$? 8151 grep -v '^ *+' conftest.er1 >conftest.err 8152 rm -f conftest.er1 8153 cat conftest.err >&5 8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8155 (exit $ac_status); } && 8156 { ac_try='test -z "$ac_c_werror_flag" 8157 || test ! -s conftest.err' 8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8159 (eval $ac_try) 2>&5 8160 ac_status=$? 8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8162 (exit $ac_status); }; } && 8163 { ac_try='test -s conftest$ac_exeext' 8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8165 (eval $ac_try) 2>&5 8166 ac_status=$? 8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8168 (exit $ac_status); }; }; then 8169 ac_cv_func_shl_load=yes 8170else 8171 echo "$as_me: failed program was:" >&5 8172sed 's/^/| /' conftest.$ac_ext >&5 8173 8174ac_cv_func_shl_load=no 8175fi 8176rm -f conftest.err conftest.$ac_objext \ 8177 conftest$ac_exeext conftest.$ac_ext 8178fi 8179echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8180echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8181if test $ac_cv_func_shl_load = yes; then 8182 lt_cv_dlopen="shl_load" 8183else 8184 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8185echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8186if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8187 echo $ECHO_N "(cached) $ECHO_C" >&6 8188else 8189 ac_check_lib_save_LIBS=$LIBS 8190LIBS="-ldld $LIBS" 8191cat >conftest.$ac_ext <<_ACEOF 8192/* confdefs.h. */ 8193_ACEOF 8194cat confdefs.h >>conftest.$ac_ext 8195cat >>conftest.$ac_ext <<_ACEOF 8196/* end confdefs.h. */ 8197 8198/* Override any gcc2 internal prototype to avoid an error. */ 8199#ifdef __cplusplus 8200extern "C" 8201#endif 8202/* We use char because int might match the return type of a gcc2 8203 builtin and then its argument prototype would still apply. */ 8204char shl_load (); 8205int 8206main () 8207{ 8208shl_load (); 8209 ; 8210 return 0; 8211} 8212_ACEOF 8213rm -f conftest.$ac_objext conftest$ac_exeext 8214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8215 (eval $ac_link) 2>conftest.er1 8216 ac_status=$? 8217 grep -v '^ *+' conftest.er1 >conftest.err 8218 rm -f conftest.er1 8219 cat conftest.err >&5 8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8221 (exit $ac_status); } && 8222 { ac_try='test -z "$ac_c_werror_flag" 8223 || test ! -s conftest.err' 8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8225 (eval $ac_try) 2>&5 8226 ac_status=$? 8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8228 (exit $ac_status); }; } && 8229 { ac_try='test -s conftest$ac_exeext' 8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8231 (eval $ac_try) 2>&5 8232 ac_status=$? 8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8234 (exit $ac_status); }; }; then 8235 ac_cv_lib_dld_shl_load=yes 8236else 8237 echo "$as_me: failed program was:" >&5 8238sed 's/^/| /' conftest.$ac_ext >&5 8239 8240ac_cv_lib_dld_shl_load=no 8241fi 8242rm -f conftest.err conftest.$ac_objext \ 8243 conftest$ac_exeext conftest.$ac_ext 8244LIBS=$ac_check_lib_save_LIBS 8245fi 8246echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8247echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8248if test $ac_cv_lib_dld_shl_load = yes; then 8249 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8250else 8251 echo "$as_me:$LINENO: checking for dlopen" >&5 8252echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8253if test "${ac_cv_func_dlopen+set}" = set; then 8254 echo $ECHO_N "(cached) $ECHO_C" >&6 8255else 8256 cat >conftest.$ac_ext <<_ACEOF 8257/* confdefs.h. */ 8258_ACEOF 8259cat confdefs.h >>conftest.$ac_ext 8260cat >>conftest.$ac_ext <<_ACEOF 8261/* end confdefs.h. */ 8262/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8263 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8264#define dlopen innocuous_dlopen 8265 8266/* System header to define __stub macros and hopefully few prototypes, 8267 which can conflict with char dlopen (); below. 8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8269 <limits.h> exists even on freestanding compilers. */ 8270 8271#ifdef __STDC__ 8272# include <limits.h> 8273#else 8274# include <assert.h> 8275#endif 8276 8277#undef dlopen 8278 8279/* Override any gcc2 internal prototype to avoid an error. */ 8280#ifdef __cplusplus 8281extern "C" 8282{ 8283#endif 8284/* We use char because int might match the return type of a gcc2 8285 builtin and then its argument prototype would still apply. */ 8286char dlopen (); 8287/* The GNU C library defines this for functions which it implements 8288 to always fail with ENOSYS. Some functions are actually named 8289 something starting with __ and the normal name is an alias. */ 8290#if defined (__stub_dlopen) || defined (__stub___dlopen) 8291choke me 8292#else 8293char (*f) () = dlopen; 8294#endif 8295#ifdef __cplusplus 8296} 8297#endif 8298 8299int 8300main () 8301{ 8302return f != dlopen; 8303 ; 8304 return 0; 8305} 8306_ACEOF 8307rm -f conftest.$ac_objext conftest$ac_exeext 8308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8309 (eval $ac_link) 2>conftest.er1 8310 ac_status=$? 8311 grep -v '^ *+' conftest.er1 >conftest.err 8312 rm -f conftest.er1 8313 cat conftest.err >&5 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8315 (exit $ac_status); } && 8316 { ac_try='test -z "$ac_c_werror_flag" 8317 || test ! -s conftest.err' 8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8319 (eval $ac_try) 2>&5 8320 ac_status=$? 8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8322 (exit $ac_status); }; } && 8323 { ac_try='test -s conftest$ac_exeext' 8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8325 (eval $ac_try) 2>&5 8326 ac_status=$? 8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8328 (exit $ac_status); }; }; then 8329 ac_cv_func_dlopen=yes 8330else 8331 echo "$as_me: failed program was:" >&5 8332sed 's/^/| /' conftest.$ac_ext >&5 8333 8334ac_cv_func_dlopen=no 8335fi 8336rm -f conftest.err conftest.$ac_objext \ 8337 conftest$ac_exeext conftest.$ac_ext 8338fi 8339echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8340echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8341if test $ac_cv_func_dlopen = yes; then 8342 lt_cv_dlopen="dlopen" 8343else 8344 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8345echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8346if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8347 echo $ECHO_N "(cached) $ECHO_C" >&6 8348else 8349 ac_check_lib_save_LIBS=$LIBS 8350LIBS="-ldl $LIBS" 8351cat >conftest.$ac_ext <<_ACEOF 8352/* confdefs.h. */ 8353_ACEOF 8354cat confdefs.h >>conftest.$ac_ext 8355cat >>conftest.$ac_ext <<_ACEOF 8356/* end confdefs.h. */ 8357 8358/* Override any gcc2 internal prototype to avoid an error. */ 8359#ifdef __cplusplus 8360extern "C" 8361#endif 8362/* We use char because int might match the return type of a gcc2 8363 builtin and then its argument prototype would still apply. */ 8364char dlopen (); 8365int 8366main () 8367{ 8368dlopen (); 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373rm -f conftest.$ac_objext conftest$ac_exeext 8374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8375 (eval $ac_link) 2>conftest.er1 8376 ac_status=$? 8377 grep -v '^ *+' conftest.er1 >conftest.err 8378 rm -f conftest.er1 8379 cat conftest.err >&5 8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8381 (exit $ac_status); } && 8382 { ac_try='test -z "$ac_c_werror_flag" 8383 || test ! -s conftest.err' 8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8385 (eval $ac_try) 2>&5 8386 ac_status=$? 8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8388 (exit $ac_status); }; } && 8389 { ac_try='test -s conftest$ac_exeext' 8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8391 (eval $ac_try) 2>&5 8392 ac_status=$? 8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8394 (exit $ac_status); }; }; then 8395 ac_cv_lib_dl_dlopen=yes 8396else 8397 echo "$as_me: failed program was:" >&5 8398sed 's/^/| /' conftest.$ac_ext >&5 8399 8400ac_cv_lib_dl_dlopen=no 8401fi 8402rm -f conftest.err conftest.$ac_objext \ 8403 conftest$ac_exeext conftest.$ac_ext 8404LIBS=$ac_check_lib_save_LIBS 8405fi 8406echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8407echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8408if test $ac_cv_lib_dl_dlopen = yes; then 8409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8410else 8411 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8412echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8413if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8414 echo $ECHO_N "(cached) $ECHO_C" >&6 8415else 8416 ac_check_lib_save_LIBS=$LIBS 8417LIBS="-lsvld $LIBS" 8418cat >conftest.$ac_ext <<_ACEOF 8419/* confdefs.h. */ 8420_ACEOF 8421cat confdefs.h >>conftest.$ac_ext 8422cat >>conftest.$ac_ext <<_ACEOF 8423/* end confdefs.h. */ 8424 8425/* Override any gcc2 internal prototype to avoid an error. */ 8426#ifdef __cplusplus 8427extern "C" 8428#endif 8429/* We use char because int might match the return type of a gcc2 8430 builtin and then its argument prototype would still apply. */ 8431char dlopen (); 8432int 8433main () 8434{ 8435dlopen (); 8436 ; 8437 return 0; 8438} 8439_ACEOF 8440rm -f conftest.$ac_objext conftest$ac_exeext 8441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8442 (eval $ac_link) 2>conftest.er1 8443 ac_status=$? 8444 grep -v '^ *+' conftest.er1 >conftest.err 8445 rm -f conftest.er1 8446 cat conftest.err >&5 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8448 (exit $ac_status); } && 8449 { ac_try='test -z "$ac_c_werror_flag" 8450 || test ! -s conftest.err' 8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8452 (eval $ac_try) 2>&5 8453 ac_status=$? 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8455 (exit $ac_status); }; } && 8456 { ac_try='test -s conftest$ac_exeext' 8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8458 (eval $ac_try) 2>&5 8459 ac_status=$? 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 (exit $ac_status); }; }; then 8462 ac_cv_lib_svld_dlopen=yes 8463else 8464 echo "$as_me: failed program was:" >&5 8465sed 's/^/| /' conftest.$ac_ext >&5 8466 8467ac_cv_lib_svld_dlopen=no 8468fi 8469rm -f conftest.err conftest.$ac_objext \ 8470 conftest$ac_exeext conftest.$ac_ext 8471LIBS=$ac_check_lib_save_LIBS 8472fi 8473echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8474echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8475if test $ac_cv_lib_svld_dlopen = yes; then 8476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8477else 8478 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8479echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8480if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8481 echo $ECHO_N "(cached) $ECHO_C" >&6 8482else 8483 ac_check_lib_save_LIBS=$LIBS 8484LIBS="-ldld $LIBS" 8485cat >conftest.$ac_ext <<_ACEOF 8486/* confdefs.h. */ 8487_ACEOF 8488cat confdefs.h >>conftest.$ac_ext 8489cat >>conftest.$ac_ext <<_ACEOF 8490/* end confdefs.h. */ 8491 8492/* Override any gcc2 internal prototype to avoid an error. */ 8493#ifdef __cplusplus 8494extern "C" 8495#endif 8496/* We use char because int might match the return type of a gcc2 8497 builtin and then its argument prototype would still apply. */ 8498char dld_link (); 8499int 8500main () 8501{ 8502dld_link (); 8503 ; 8504 return 0; 8505} 8506_ACEOF 8507rm -f conftest.$ac_objext conftest$ac_exeext 8508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8509 (eval $ac_link) 2>conftest.er1 8510 ac_status=$? 8511 grep -v '^ *+' conftest.er1 >conftest.err 8512 rm -f conftest.er1 8513 cat conftest.err >&5 8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8515 (exit $ac_status); } && 8516 { ac_try='test -z "$ac_c_werror_flag" 8517 || test ! -s conftest.err' 8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8519 (eval $ac_try) 2>&5 8520 ac_status=$? 8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8522 (exit $ac_status); }; } && 8523 { ac_try='test -s conftest$ac_exeext' 8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8525 (eval $ac_try) 2>&5 8526 ac_status=$? 8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8528 (exit $ac_status); }; }; then 8529 ac_cv_lib_dld_dld_link=yes 8530else 8531 echo "$as_me: failed program was:" >&5 8532sed 's/^/| /' conftest.$ac_ext >&5 8533 8534ac_cv_lib_dld_dld_link=no 8535fi 8536rm -f conftest.err conftest.$ac_objext \ 8537 conftest$ac_exeext conftest.$ac_ext 8538LIBS=$ac_check_lib_save_LIBS 8539fi 8540echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8541echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8542if test $ac_cv_lib_dld_dld_link = yes; then 8543 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8544fi 8545 8546 8547fi 8548 8549 8550fi 8551 8552 8553fi 8554 8555 8556fi 8557 8558 8559fi 8560 8561 ;; 8562 esac 8563 8564 if test "x$lt_cv_dlopen" != xno; then 8565 enable_dlopen=yes 8566 else 8567 enable_dlopen=no 8568 fi 8569 8570 case $lt_cv_dlopen in 8571 dlopen) 8572 save_CPPFLAGS="$CPPFLAGS" 8573 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8574 8575 save_LDFLAGS="$LDFLAGS" 8576 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8577 8578 save_LIBS="$LIBS" 8579 LIBS="$lt_cv_dlopen_libs $LIBS" 8580 8581 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8582echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8583if test "${lt_cv_dlopen_self+set}" = set; then 8584 echo $ECHO_N "(cached) $ECHO_C" >&6 8585else 8586 if test "$cross_compiling" = yes; then : 8587 lt_cv_dlopen_self=cross 8588else 8589 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8590 lt_status=$lt_dlunknown 8591 cat > conftest.$ac_ext <<EOF 8592#line 8592 "configure" 8593#include "confdefs.h" 8594 8595#if HAVE_DLFCN_H 8596#include <dlfcn.h> 8597#endif 8598 8599#include <stdio.h> 8600 8601#ifdef RTLD_GLOBAL 8602# define LT_DLGLOBAL RTLD_GLOBAL 8603#else 8604# ifdef DL_GLOBAL 8605# define LT_DLGLOBAL DL_GLOBAL 8606# else 8607# define LT_DLGLOBAL 0 8608# endif 8609#endif 8610 8611/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8612 find out it does not work in some platform. */ 8613#ifndef LT_DLLAZY_OR_NOW 8614# ifdef RTLD_LAZY 8615# define LT_DLLAZY_OR_NOW RTLD_LAZY 8616# else 8617# ifdef DL_LAZY 8618# define LT_DLLAZY_OR_NOW DL_LAZY 8619# else 8620# ifdef RTLD_NOW 8621# define LT_DLLAZY_OR_NOW RTLD_NOW 8622# else 8623# ifdef DL_NOW 8624# define LT_DLLAZY_OR_NOW DL_NOW 8625# else 8626# define LT_DLLAZY_OR_NOW 0 8627# endif 8628# endif 8629# endif 8630# endif 8631#endif 8632 8633#ifdef __cplusplus 8634extern "C" void exit (int); 8635#endif 8636 8637void fnord() { int i=42;} 8638int main () 8639{ 8640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8641 int status = $lt_dlunknown; 8642 8643 if (self) 8644 { 8645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8646 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8647 /* dlclose (self); */ 8648 } 8649 8650 exit (status); 8651} 8652EOF 8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8654 (eval $ac_link) 2>&5 8655 ac_status=$? 8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8657 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8658 (./conftest; exit; ) 2>/dev/null 8659 lt_status=$? 8660 case x$lt_status in 8661 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8662 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8663 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8664 esac 8665 else : 8666 # compilation failed 8667 lt_cv_dlopen_self=no 8668 fi 8669fi 8670rm -fr conftest* 8671 8672 8673fi 8674echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8675echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8676 8677 if test "x$lt_cv_dlopen_self" = xyes; then 8678 LDFLAGS="$LDFLAGS $link_static_flag" 8679 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8680echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8681if test "${lt_cv_dlopen_self_static+set}" = set; then 8682 echo $ECHO_N "(cached) $ECHO_C" >&6 8683else 8684 if test "$cross_compiling" = yes; then : 8685 lt_cv_dlopen_self_static=cross 8686else 8687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8688 lt_status=$lt_dlunknown 8689 cat > conftest.$ac_ext <<EOF 8690#line 8690 "configure" 8691#include "confdefs.h" 8692 8693#if HAVE_DLFCN_H 8694#include <dlfcn.h> 8695#endif 8696 8697#include <stdio.h> 8698 8699#ifdef RTLD_GLOBAL 8700# define LT_DLGLOBAL RTLD_GLOBAL 8701#else 8702# ifdef DL_GLOBAL 8703# define LT_DLGLOBAL DL_GLOBAL 8704# else 8705# define LT_DLGLOBAL 0 8706# endif 8707#endif 8708 8709/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8710 find out it does not work in some platform. */ 8711#ifndef LT_DLLAZY_OR_NOW 8712# ifdef RTLD_LAZY 8713# define LT_DLLAZY_OR_NOW RTLD_LAZY 8714# else 8715# ifdef DL_LAZY 8716# define LT_DLLAZY_OR_NOW DL_LAZY 8717# else 8718# ifdef RTLD_NOW 8719# define LT_DLLAZY_OR_NOW RTLD_NOW 8720# else 8721# ifdef DL_NOW 8722# define LT_DLLAZY_OR_NOW DL_NOW 8723# else 8724# define LT_DLLAZY_OR_NOW 0 8725# endif 8726# endif 8727# endif 8728# endif 8729#endif 8730 8731#ifdef __cplusplus 8732extern "C" void exit (int); 8733#endif 8734 8735void fnord() { int i=42;} 8736int main () 8737{ 8738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8739 int status = $lt_dlunknown; 8740 8741 if (self) 8742 { 8743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8745 /* dlclose (self); */ 8746 } 8747 8748 exit (status); 8749} 8750EOF 8751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8752 (eval $ac_link) 2>&5 8753 ac_status=$? 8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8756 (./conftest; exit; ) 2>/dev/null 8757 lt_status=$? 8758 case x$lt_status in 8759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8761 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8762 esac 8763 else : 8764 # compilation failed 8765 lt_cv_dlopen_self_static=no 8766 fi 8767fi 8768rm -fr conftest* 8769 8770 8771fi 8772echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8773echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8774 fi 8775 8776 CPPFLAGS="$save_CPPFLAGS" 8777 LDFLAGS="$save_LDFLAGS" 8778 LIBS="$save_LIBS" 8779 ;; 8780 esac 8781 8782 case $lt_cv_dlopen_self in 8783 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8784 *) enable_dlopen_self=unknown ;; 8785 esac 8786 8787 case $lt_cv_dlopen_self_static in 8788 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8789 *) enable_dlopen_self_static=unknown ;; 8790 esac 8791fi 8792 8793 8794# Report which librarie types wil actually be built 8795echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8796echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8797echo "$as_me:$LINENO: result: $can_build_shared" >&5 8798echo "${ECHO_T}$can_build_shared" >&6 8799 8800echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8801echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8802test "$can_build_shared" = "no" && enable_shared=no 8803 8804# On AIX, shared libraries and static libraries use the same namespace, and 8805# are all built from PIC. 8806case "$host_os" in 8807aix3*) 8808 test "$enable_shared" = yes && enable_static=no 8809 if test -n "$RANLIB"; then 8810 archive_cmds="$archive_cmds;\$RANLIB \$lib" 8811 postinstall_cmds='$RANLIB $lib' 8812 fi 8813 ;; 8814 8815aix4* | aix5*) 8816 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8817 test "$enable_shared" = yes && enable_static=no 8818 fi 8819 ;; 8820esac 8821echo "$as_me:$LINENO: result: $enable_shared" >&5 8822echo "${ECHO_T}$enable_shared" >&6 8823 8824echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8825echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8826# Make sure either enable_shared or enable_static is yes. 8827test "$enable_shared" = yes || enable_static=yes 8828echo "$as_me:$LINENO: result: $enable_static" >&5 8829echo "${ECHO_T}$enable_static" >&6 8830 8831# The else clause should only fire when bootstrapping the 8832# libtool distribution, otherwise you forgot to ship ltmain.sh 8833# with your package, and you will get complaints that there are 8834# no rules to generate ltmain.sh. 8835if test -f "$ltmain"; then 8836 # See if we are running on zsh, and set the options which allow our commands through 8837 # without removal of \ escapes. 8838 if test -n "${ZSH_VERSION+set}" ; then 8839 setopt NO_GLOB_SUBST 8840 fi 8841 # Now quote all the things that may contain metacharacters while being 8842 # careful not to overquote the AC_SUBSTed values. We take copies of the 8843 # variables and quote the copies for generation of the libtool script. 8844 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 8845 SED SHELL STRIP \ 8846 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8847 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8848 deplibs_check_method reload_flag reload_cmds need_locks \ 8849 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8850 lt_cv_sys_global_symbol_to_c_name_address \ 8851 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8852 old_postinstall_cmds old_postuninstall_cmds \ 8853 compiler \ 8854 CC \ 8855 LD \ 8856 lt_prog_compiler_wl \ 8857 lt_prog_compiler_pic \ 8858 lt_prog_compiler_static \ 8859 lt_prog_compiler_no_builtin_flag \ 8860 export_dynamic_flag_spec \ 8861 thread_safe_flag_spec \ 8862 whole_archive_flag_spec \ 8863 enable_shared_with_static_runtimes \ 8864 old_archive_cmds \ 8865 old_archive_from_new_cmds \ 8866 predep_objects \ 8867 postdep_objects \ 8868 predeps \ 8869 postdeps \ 8870 compiler_lib_search_path \ 8871 archive_cmds \ 8872 archive_expsym_cmds \ 8873 postinstall_cmds \ 8874 postuninstall_cmds \ 8875 old_archive_from_expsyms_cmds \ 8876 allow_undefined_flag \ 8877 no_undefined_flag \ 8878 export_symbols_cmds \ 8879 hardcode_libdir_flag_spec \ 8880 hardcode_libdir_flag_spec_ld \ 8881 hardcode_libdir_separator \ 8882 hardcode_automatic \ 8883 module_cmds \ 8884 module_expsym_cmds \ 8885 lt_cv_prog_compiler_c_o \ 8886 exclude_expsyms \ 8887 include_expsyms; do 8888 8889 case $var in 8890 old_archive_cmds | \ 8891 old_archive_from_new_cmds | \ 8892 archive_cmds | \ 8893 archive_expsym_cmds | \ 8894 module_cmds | \ 8895 module_expsym_cmds | \ 8896 old_archive_from_expsyms_cmds | \ 8897 export_symbols_cmds | \ 8898 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8899 postinstall_cmds | postuninstall_cmds | \ 8900 old_postinstall_cmds | old_postuninstall_cmds | \ 8901 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8902 # Double-quote double-evaled strings. 8903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8904 ;; 8905 *) 8906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8907 ;; 8908 esac 8909 done 8910 8911 case $lt_echo in 8912 *'\$0 --fallback-echo"') 8913 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8914 ;; 8915 esac 8916 8917cfgfile="${ofile}T" 8918 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8919 $rm -f "$cfgfile" 8920 { echo "$as_me:$LINENO: creating $ofile" >&5 8921echo "$as_me: creating $ofile" >&6;} 8922 8923 cat <<__EOF__ >> "$cfgfile" 8924#! $SHELL 8925 8926# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8927# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8928# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8929# 8930# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8931# Free Software Foundation, Inc. 8932# 8933# This file is part of GNU Libtool: 8934# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8935# 8936# This program is free software; you can redistribute it and/or modify 8937# it under the terms of the GNU General Public License as published by 8938# the Free Software Foundation; either version 2 of the License, or 8939# (at your option) any later version. 8940# 8941# This program is distributed in the hope that it will be useful, but 8942# WITHOUT ANY WARRANTY; without even the implied warranty of 8943# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8944# General Public License for more details. 8945# 8946# You should have received a copy of the GNU General Public License 8947# along with this program; if not, write to the Free Software 8948# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8949# 8950# As a special exception to the GNU General Public License, if you 8951# distribute this file as part of a program that contains a 8952# configuration script generated by Autoconf, you may include it under 8953# the same distribution terms that you use for the rest of that program. 8954 8955# A sed program that does not truncate output. 8956SED=$lt_SED 8957 8958# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8959Xsed="$SED -e s/^X//" 8960 8961# The HP-UX ksh and POSIX shell print the target directory to stdout 8962# if CDPATH is set. 8963(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8964 8965# The names of the tagged configurations supported by this script. 8966available_tags= 8967 8968# ### BEGIN LIBTOOL CONFIG 8969 8970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8971 8972# Shell to use when invoking shell scripts. 8973SHELL=$lt_SHELL 8974 8975# Whether or not to build shared libraries. 8976build_libtool_libs=$enable_shared 8977 8978# Whether or not to build static libraries. 8979build_old_libs=$enable_static 8980 8981# Whether or not to add -lc for building shared libraries. 8982build_libtool_need_lc=$archive_cmds_need_lc 8983 8984# Whether or not to disallow shared libs when runtime libs are static 8985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8986 8987# Whether or not to optimize for fast installation. 8988fast_install=$enable_fast_install 8989 8990# The host system. 8991host_alias=$host_alias 8992host=$host 8993 8994# An echo program that does not interpret backslashes. 8995echo=$lt_echo 8996 8997# The archiver. 8998AR=$lt_AR 8999AR_FLAGS=$lt_AR_FLAGS 9000 9001# A C compiler. 9002LTCC=$lt_LTCC 9003 9004# A language-specific compiler. 9005CC=$lt_compiler 9006 9007# Is the compiler the GNU C compiler? 9008with_gcc=$GCC 9009 9010# An ERE matcher. 9011EGREP=$lt_EGREP 9012 9013# The linker used to build libraries. 9014LD=$lt_LD 9015 9016# Whether we need hard or soft links. 9017LN_S=$lt_LN_S 9018 9019# A BSD-compatible nm program. 9020NM=$lt_NM 9021 9022# A symbol stripping program 9023STRIP=$lt_STRIP 9024 9025# Used to examine libraries when file_magic_cmd begins "file" 9026MAGIC_CMD=$MAGIC_CMD 9027 9028# Used on cygwin: DLL creation program. 9029DLLTOOL="$DLLTOOL" 9030 9031# Used on cygwin: object dumper. 9032OBJDUMP="$OBJDUMP" 9033 9034# Used on cygwin: assembler. 9035AS="$AS" 9036 9037# The name of the directory that contains temporary libtool files. 9038objdir=$objdir 9039 9040# How to create reloadable object files. 9041reload_flag=$lt_reload_flag 9042reload_cmds=$lt_reload_cmds 9043 9044# How to pass a linker flag through the compiler. 9045wl=$lt_lt_prog_compiler_wl 9046 9047# Object file suffix (normally "o"). 9048objext="$ac_objext" 9049 9050# Old archive suffix (normally "a"). 9051libext="$libext" 9052 9053# Shared library suffix (normally ".so"). 9054shrext_cmds='$shrext_cmds' 9055 9056# Executable file suffix (normally ""). 9057exeext="$exeext" 9058 9059# Additional compiler flags for building library objects. 9060pic_flag=$lt_lt_prog_compiler_pic 9061pic_mode=$pic_mode 9062 9063# What is the maximum length of a command? 9064max_cmd_len=$lt_cv_sys_max_cmd_len 9065 9066# Does compiler simultaneously support -c and -o options? 9067compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9068 9069# Must we lock files when doing compilation ? 9070need_locks=$lt_need_locks 9071 9072# Do we need the lib prefix for modules? 9073need_lib_prefix=$need_lib_prefix 9074 9075# Do we need a version for libraries? 9076need_version=$need_version 9077 9078# Whether dlopen is supported. 9079dlopen_support=$enable_dlopen 9080 9081# Whether dlopen of programs is supported. 9082dlopen_self=$enable_dlopen_self 9083 9084# Whether dlopen of statically linked programs is supported. 9085dlopen_self_static=$enable_dlopen_self_static 9086 9087# Compiler flag to prevent dynamic linking. 9088link_static_flag=$lt_lt_prog_compiler_static 9089 9090# Compiler flag to turn off builtin functions. 9091no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9092 9093# Compiler flag to allow reflexive dlopens. 9094export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9095 9096# Compiler flag to generate shared objects directly from archives. 9097whole_archive_flag_spec=$lt_whole_archive_flag_spec 9098 9099# Compiler flag to generate thread-safe objects. 9100thread_safe_flag_spec=$lt_thread_safe_flag_spec 9101 9102# Library versioning type. 9103version_type=$version_type 9104 9105# Format of library name prefix. 9106libname_spec=$lt_libname_spec 9107 9108# List of archive names. First name is the real one, the rest are links. 9109# The last name is the one that the linker finds with -lNAME. 9110library_names_spec=$lt_library_names_spec 9111 9112# The coded name of the library, if different from the real name. 9113soname_spec=$lt_soname_spec 9114 9115# Commands used to build and install an old-style archive. 9116RANLIB=$lt_RANLIB 9117old_archive_cmds=$lt_old_archive_cmds 9118old_postinstall_cmds=$lt_old_postinstall_cmds 9119old_postuninstall_cmds=$lt_old_postuninstall_cmds 9120 9121# Create an old-style archive from a shared archive. 9122old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9123 9124# Create a temporary old-style archive to link instead of a shared archive. 9125old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9126 9127# Commands used to build and install a shared archive. 9128archive_cmds=$lt_archive_cmds 9129archive_expsym_cmds=$lt_archive_expsym_cmds 9130postinstall_cmds=$lt_postinstall_cmds 9131postuninstall_cmds=$lt_postuninstall_cmds 9132 9133# Commands used to build a loadable module (assumed same as above if empty) 9134module_cmds=$lt_module_cmds 9135module_expsym_cmds=$lt_module_expsym_cmds 9136 9137# Commands to strip libraries. 9138old_striplib=$lt_old_striplib 9139striplib=$lt_striplib 9140 9141# Dependencies to place before the objects being linked to create a 9142# shared library. 9143predep_objects=$lt_predep_objects 9144 9145# Dependencies to place after the objects being linked to create a 9146# shared library. 9147postdep_objects=$lt_postdep_objects 9148 9149# Dependencies to place before the objects being linked to create a 9150# shared library. 9151predeps=$lt_predeps 9152 9153# Dependencies to place after the objects being linked to create a 9154# shared library. 9155postdeps=$lt_postdeps 9156 9157# The library search path used internally by the compiler when linking 9158# a shared library. 9159compiler_lib_search_path=$lt_compiler_lib_search_path 9160 9161# Method to check whether dependent libraries are shared objects. 9162deplibs_check_method=$lt_deplibs_check_method 9163 9164# Command to use when deplibs_check_method == file_magic. 9165file_magic_cmd=$lt_file_magic_cmd 9166 9167# Flag that allows shared libraries with undefined symbols to be built. 9168allow_undefined_flag=$lt_allow_undefined_flag 9169 9170# Flag that forces no undefined symbols. 9171no_undefined_flag=$lt_no_undefined_flag 9172 9173# Commands used to finish a libtool library installation in a directory. 9174finish_cmds=$lt_finish_cmds 9175 9176# Same as above, but a single script fragment to be evaled but not shown. 9177finish_eval=$lt_finish_eval 9178 9179# Take the output of nm and produce a listing of raw symbols and C names. 9180global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9181 9182# Transform the output of nm in a proper C declaration 9183global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9184 9185# Transform the output of nm in a C name address pair 9186global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9187 9188# This is the shared library runtime path variable. 9189runpath_var=$runpath_var 9190 9191# This is the shared library path variable. 9192shlibpath_var=$shlibpath_var 9193 9194# Is shlibpath searched before the hard-coded library search path? 9195shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9196 9197# How to hardcode a shared library path into an executable. 9198hardcode_action=$hardcode_action 9199 9200# Whether we should hardcode library paths into libraries. 9201hardcode_into_libs=$hardcode_into_libs 9202 9203# Flag to hardcode \$libdir into a binary during linking. 9204# This must work even if \$libdir does not exist. 9205hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9206 9207# If ld is used when linking, flag to hardcode \$libdir into 9208# a binary during linking. This must work even if \$libdir does 9209# not exist. 9210hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9211 9212# Whether we need a single -rpath flag with a separated argument. 9213hardcode_libdir_separator=$lt_hardcode_libdir_separator 9214 9215# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9216# resulting binary. 9217hardcode_direct=$hardcode_direct 9218 9219# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9220# resulting binary. 9221hardcode_minus_L=$hardcode_minus_L 9222 9223# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9224# the resulting binary. 9225hardcode_shlibpath_var=$hardcode_shlibpath_var 9226 9227# Set to yes if building a shared library automatically hardcodes DIR into the library 9228# and all subsequent libraries and executables linked against it. 9229hardcode_automatic=$hardcode_automatic 9230 9231# Variables whose values should be saved in libtool wrapper scripts and 9232# restored at relink time. 9233variables_saved_for_relink="$variables_saved_for_relink" 9234 9235# Whether libtool must link a program against all its dependency libraries. 9236link_all_deplibs=$link_all_deplibs 9237 9238# Compile-time system search path for libraries 9239sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9240 9241# Run-time system search path for libraries 9242sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9243 9244# Fix the shell variable \$srcfile for the compiler. 9245fix_srcfile_path="$fix_srcfile_path" 9246 9247# Set to yes if exported symbols are required. 9248always_export_symbols=$always_export_symbols 9249 9250# The commands to list exported symbols. 9251export_symbols_cmds=$lt_export_symbols_cmds 9252 9253# The commands to extract the exported symbol list from a shared archive. 9254extract_expsyms_cmds=$lt_extract_expsyms_cmds 9255 9256# Symbols that should not be listed in the preloaded symbols. 9257exclude_expsyms=$lt_exclude_expsyms 9258 9259# Symbols that must always be exported. 9260include_expsyms=$lt_include_expsyms 9261 9262# ### END LIBTOOL CONFIG 9263 9264__EOF__ 9265 9266 9267 case $host_os in 9268 aix3*) 9269 cat <<\EOF >> "$cfgfile" 9270 9271# AIX sometimes has problems with the GCC collect2 program. For some 9272# reason, if we set the COLLECT_NAMES environment variable, the problems 9273# vanish in a puff of smoke. 9274if test "X${COLLECT_NAMES+set}" != Xset; then 9275 COLLECT_NAMES= 9276 export COLLECT_NAMES 9277fi 9278EOF 9279 ;; 9280 esac 9281 9282 # We use sed instead of cat because bash on DJGPP gets confused if 9283 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9284 # text mode, it properly converts lines to CR/LF. This bash problem 9285 # is reportedly fixed, but why not run on old versions too? 9286 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9287 9288 mv -f "$cfgfile" "$ofile" || \ 9289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9290 chmod +x "$ofile" 9291 9292else 9293 # If there is no Makefile yet, we rely on a make rule to execute 9294 # `config.status --recheck' to rerun these tests and create the 9295 # libtool script then. 9296 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9297 if test -f "$ltmain_in"; then 9298 test -f Makefile && make "$ltmain" 9299 fi 9300fi 9301 9302 9303ac_ext=c 9304ac_cpp='$CPP $CPPFLAGS' 9305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9307ac_compiler_gnu=$ac_cv_c_compiler_gnu 9308 9309CC="$lt_save_CC" 9310 9311 9312# Check whether --with-tags or --without-tags was given. 9313if test "${with_tags+set}" = set; then 9314 withval="$with_tags" 9315 tagnames="$withval" 9316fi; 9317 9318if test -f "$ltmain" && test -n "$tagnames"; then 9319 if test ! -f "${ofile}"; then 9320 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9321echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9322 fi 9323 9324 if test -z "$LTCC"; then 9325 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9326 if test -z "$LTCC"; then 9327 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9328echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9329 else 9330 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9331echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9332 fi 9333 fi 9334 9335 # Extract list of available tagged configurations in $ofile. 9336 # Note that this assumes the entire list is on one line. 9337 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9338 9339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9340 for tagname in $tagnames; do 9341 IFS="$lt_save_ifs" 9342 # Check whether tagname contains only valid characters 9343 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9344 "") ;; 9345 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9346echo "$as_me: error: invalid tag name: $tagname" >&2;} 9347 { (exit 1); exit 1; }; } 9348 ;; 9349 esac 9350 9351 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9352 then 9353 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9354echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9355 { (exit 1); exit 1; }; } 9356 fi 9357 9358 # Update the list of available tags. 9359 if test -n "$tagname"; then 9360 echo appending configuration tag \"$tagname\" to $ofile 9361 9362 case $tagname in 9363 CXX) 9364 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9365 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9366 (test "X$CXX" != "Xg++"))) ; then 9367 ac_ext=cc 9368ac_cpp='$CXXCPP $CPPFLAGS' 9369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9372 9373 9374 9375 9376archive_cmds_need_lc_CXX=no 9377allow_undefined_flag_CXX= 9378always_export_symbols_CXX=no 9379archive_expsym_cmds_CXX= 9380export_dynamic_flag_spec_CXX= 9381hardcode_direct_CXX=no 9382hardcode_libdir_flag_spec_CXX= 9383hardcode_libdir_flag_spec_ld_CXX= 9384hardcode_libdir_separator_CXX= 9385hardcode_minus_L_CXX=no 9386hardcode_automatic_CXX=no 9387module_cmds_CXX= 9388module_expsym_cmds_CXX= 9389link_all_deplibs_CXX=unknown 9390old_archive_cmds_CXX=$old_archive_cmds 9391no_undefined_flag_CXX= 9392whole_archive_flag_spec_CXX= 9393enable_shared_with_static_runtimes_CXX=no 9394 9395# Dependencies to place before and after the object being linked: 9396predep_objects_CXX= 9397postdep_objects_CXX= 9398predeps_CXX= 9399postdeps_CXX= 9400compiler_lib_search_path_CXX= 9401 9402# Source file extension for C++ test sources. 9403ac_ext=cc 9404 9405# Object file extension for compiled C++ test sources. 9406objext=o 9407objext_CXX=$objext 9408 9409# Code to be used in simple compile tests 9410lt_simple_compile_test_code="int some_variable = 0;\n" 9411 9412# Code to be used in simple link tests 9413lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9414 9415# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9416 9417# If no C compiler was specified, use CC. 9418LTCC=${LTCC-"$CC"} 9419 9420# Allow CC to be a program name with arguments. 9421compiler=$CC 9422 9423 9424# Allow CC to be a program name with arguments. 9425lt_save_CC=$CC 9426lt_save_LD=$LD 9427lt_save_GCC=$GCC 9428GCC=$GXX 9429lt_save_with_gnu_ld=$with_gnu_ld 9430lt_save_path_LD=$lt_cv_path_LD 9431if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9432 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9433else 9434 unset lt_cv_prog_gnu_ld 9435fi 9436if test -n "${lt_cv_path_LDCXX+set}"; then 9437 lt_cv_path_LD=$lt_cv_path_LDCXX 9438else 9439 unset lt_cv_path_LD 9440fi 9441test -z "${LDCXX+set}" || LD=$LDCXX 9442CC=${CXX-"c++"} 9443compiler=$CC 9444compiler_CXX=$CC 9445cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9446 9447# We don't want -fno-exception wen compiling C++ code, so set the 9448# no_builtin_flag separately 9449if test "$GXX" = yes; then 9450 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9451else 9452 lt_prog_compiler_no_builtin_flag_CXX= 9453fi 9454 9455if test "$GXX" = yes; then 9456 # Set up default GNU C++ configuration 9457 9458 9459# Check whether --with-gnu-ld or --without-gnu-ld was given. 9460if test "${with_gnu_ld+set}" = set; then 9461 withval="$with_gnu_ld" 9462 test "$withval" = no || with_gnu_ld=yes 9463else 9464 with_gnu_ld=no 9465fi; 9466ac_prog=ld 9467if test "$GCC" = yes; then 9468 # Check if gcc -print-prog-name=ld gives a path. 9469 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9470echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9471 case $host in 9472 *-*-mingw*) 9473 # gcc leaves a trailing carriage return which upsets mingw 9474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9475 *) 9476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9477 esac 9478 case $ac_prog in 9479 # Accept absolute paths. 9480 [\\/]* | ?:[\\/]*) 9481 re_direlt='/[^/][^/]*/\.\./' 9482 # Canonicalize the pathname of ld 9483 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9484 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9485 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9486 done 9487 test -z "$LD" && LD="$ac_prog" 9488 ;; 9489 "") 9490 # If it fails, then pretend we aren't using GCC. 9491 ac_prog=ld 9492 ;; 9493 *) 9494 # If it is relative, then search for the first ld in PATH. 9495 with_gnu_ld=unknown 9496 ;; 9497 esac 9498elif test "$with_gnu_ld" = yes; then 9499 echo "$as_me:$LINENO: checking for GNU ld" >&5 9500echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9501else 9502 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9503echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9504fi 9505if test "${lt_cv_path_LD+set}" = set; then 9506 echo $ECHO_N "(cached) $ECHO_C" >&6 9507else 9508 if test -z "$LD"; then 9509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9510 for ac_dir in $PATH; do 9511 IFS="$lt_save_ifs" 9512 test -z "$ac_dir" && ac_dir=. 9513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9514 lt_cv_path_LD="$ac_dir/$ac_prog" 9515 # Check to see if the program is GNU ld. I'd rather use --version, 9516 # but apparently some GNU ld's only accept -v. 9517 # Break only if it was the GNU/non-GNU ld that we prefer. 9518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9519 *GNU* | *'with BFD'*) 9520 test "$with_gnu_ld" != no && break 9521 ;; 9522 *) 9523 test "$with_gnu_ld" != yes && break 9524 ;; 9525 esac 9526 fi 9527 done 9528 IFS="$lt_save_ifs" 9529else 9530 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9531fi 9532fi 9533 9534LD="$lt_cv_path_LD" 9535if test -n "$LD"; then 9536 echo "$as_me:$LINENO: result: $LD" >&5 9537echo "${ECHO_T}$LD" >&6 9538else 9539 echo "$as_me:$LINENO: result: no" >&5 9540echo "${ECHO_T}no" >&6 9541fi 9542test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9543echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9544 { (exit 1); exit 1; }; } 9545echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9546echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9547if test "${lt_cv_prog_gnu_ld+set}" = set; then 9548 echo $ECHO_N "(cached) $ECHO_C" >&6 9549else 9550 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9551case `$LD -v 2>&1 </dev/null` in 9552*GNU* | *'with BFD'*) 9553 lt_cv_prog_gnu_ld=yes 9554 ;; 9555*) 9556 lt_cv_prog_gnu_ld=no 9557 ;; 9558esac 9559fi 9560echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9561echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9562with_gnu_ld=$lt_cv_prog_gnu_ld 9563 9564 9565 9566 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9567 # archiving commands below assume that GNU ld is being used. 9568 if test "$with_gnu_ld" = yes; then 9569 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9570 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' 9571 9572 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9574 9575 # If archive_cmds runs LD, not CC, wlarc should be empty 9576 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9577 # investigate it a little bit more. (MM) 9578 wlarc='${wl}' 9579 9580 # ancient GNU ld didn't support --whole-archive et. al. 9581 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9582 grep 'no-whole-archive' > /dev/null; then 9583 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9584 else 9585 whole_archive_flag_spec_CXX= 9586 fi 9587 else 9588 with_gnu_ld=no 9589 wlarc= 9590 9591 # A generic and very simple default shared library creation 9592 # command for GNU C++ for the case where it uses the native 9593 # linker, instead of GNU ld. If possible, this setting should 9594 # overridden to take advantage of the native linker features on 9595 # the platform it is being used on. 9596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9597 fi 9598 9599 # Commands to make compiler produce verbose output that lists 9600 # what "hidden" libraries, object files and flags are used when 9601 # linking a shared library. 9602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9603 9604else 9605 GXX=no 9606 with_gnu_ld=no 9607 wlarc= 9608fi 9609 9610# PORTME: fill in a description of your system's C++ link characteristics 9611echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9612echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9613ld_shlibs_CXX=yes 9614case $host_os in 9615 aix3*) 9616 # FIXME: insert proper C++ library support 9617 ld_shlibs_CXX=no 9618 ;; 9619 aix4* | aix5*) 9620 if test "$host_cpu" = ia64; then 9621 # On IA64, the linker does run time linking by default, so we don't 9622 # have to do anything special. 9623 aix_use_runtimelinking=no 9624 exp_sym_flag='-Bexport' 9625 no_entry_flag="" 9626 else 9627 aix_use_runtimelinking=no 9628 9629 # Test if we are trying to use run time linking or normal 9630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9631 # need to do runtime linking. 9632 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9633 for ld_flag in $LDFLAGS; do 9634 case $ld_flag in 9635 *-brtl*) 9636 aix_use_runtimelinking=yes 9637 break 9638 ;; 9639 esac 9640 done 9641 esac 9642 9643 exp_sym_flag='-bexport' 9644 no_entry_flag='-bnoentry' 9645 fi 9646 9647 # When large executables or shared objects are built, AIX ld can 9648 # have problems creating the table of contents. If linking a library 9649 # or program results in "error TOC overflow" add -mminimal-toc to 9650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9652 9653 archive_cmds_CXX='' 9654 hardcode_direct_CXX=yes 9655 hardcode_libdir_separator_CXX=':' 9656 link_all_deplibs_CXX=yes 9657 9658 if test "$GXX" = yes; then 9659 case $host_os in aix4.012|aix4.012.*) 9660 # We only want to do this on AIX 4.2 and lower, the check 9661 # below for broken collect2 doesn't work under 4.3+ 9662 collect2name=`${CC} -print-prog-name=collect2` 9663 if test -f "$collect2name" && \ 9664 strings "$collect2name" | grep resolve_lib_name >/dev/null 9665 then 9666 # We have reworked collect2 9667 hardcode_direct_CXX=yes 9668 else 9669 # We have old collect2 9670 hardcode_direct_CXX=unsupported 9671 # It fails to find uninstalled libraries when the uninstalled 9672 # path is not listed in the libpath. Setting hardcode_minus_L 9673 # to unsupported forces relinking 9674 hardcode_minus_L_CXX=yes 9675 hardcode_libdir_flag_spec_CXX='-L$libdir' 9676 hardcode_libdir_separator_CXX= 9677 fi 9678 esac 9679 shared_flag='-shared' 9680 else 9681 # not using gcc 9682 if test "$host_cpu" = ia64; then 9683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9684 # chokes on -Wl,-G. The following line is correct: 9685 shared_flag='-G' 9686 else 9687 if test "$aix_use_runtimelinking" = yes; then 9688 shared_flag='${wl}-G' 9689 else 9690 shared_flag='${wl}-bM:SRE' 9691 fi 9692 fi 9693 fi 9694 9695 # It seems that -bexpall does not export symbols beginning with 9696 # underscore (_), so it is better to generate a list of symbols to export. 9697 always_export_symbols_CXX=yes 9698 if test "$aix_use_runtimelinking" = yes; then 9699 # Warning - without using the other runtime loading flags (-brtl), 9700 # -berok will link without error, but may produce a broken library. 9701 allow_undefined_flag_CXX='-berok' 9702 # Determine the default libpath from the value encoded in an empty executable. 9703 cat >conftest.$ac_ext <<_ACEOF 9704/* confdefs.h. */ 9705_ACEOF 9706cat confdefs.h >>conftest.$ac_ext 9707cat >>conftest.$ac_ext <<_ACEOF 9708/* end confdefs.h. */ 9709 9710int 9711main () 9712{ 9713 9714 ; 9715 return 0; 9716} 9717_ACEOF 9718rm -f conftest.$ac_objext conftest$ac_exeext 9719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9720 (eval $ac_link) 2>conftest.er1 9721 ac_status=$? 9722 grep -v '^ *+' conftest.er1 >conftest.err 9723 rm -f conftest.er1 9724 cat conftest.err >&5 9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9726 (exit $ac_status); } && 9727 { ac_try='test -z "$ac_cxx_werror_flag" 9728 || test ! -s conftest.err' 9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9730 (eval $ac_try) 2>&5 9731 ac_status=$? 9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9733 (exit $ac_status); }; } && 9734 { ac_try='test -s conftest$ac_exeext' 9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9736 (eval $ac_try) 2>&5 9737 ac_status=$? 9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9739 (exit $ac_status); }; }; then 9740 9741aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9742}'` 9743# Check for a 64-bit object if we didn't find anything. 9744if 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; } 9745}'`; fi 9746else 9747 echo "$as_me: failed program was:" >&5 9748sed 's/^/| /' conftest.$ac_ext >&5 9749 9750fi 9751rm -f conftest.err conftest.$ac_objext \ 9752 conftest$ac_exeext conftest.$ac_ext 9753if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9754 9755 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9756 9757 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" 9758 else 9759 if test "$host_cpu" = ia64; then 9760 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9761 allow_undefined_flag_CXX="-z nodefs" 9762 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" 9763 else 9764 # Determine the default libpath from the value encoded in an empty executable. 9765 cat >conftest.$ac_ext <<_ACEOF 9766/* confdefs.h. */ 9767_ACEOF 9768cat confdefs.h >>conftest.$ac_ext 9769cat >>conftest.$ac_ext <<_ACEOF 9770/* end confdefs.h. */ 9771 9772int 9773main () 9774{ 9775 9776 ; 9777 return 0; 9778} 9779_ACEOF 9780rm -f conftest.$ac_objext conftest$ac_exeext 9781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9782 (eval $ac_link) 2>conftest.er1 9783 ac_status=$? 9784 grep -v '^ *+' conftest.er1 >conftest.err 9785 rm -f conftest.er1 9786 cat conftest.err >&5 9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9788 (exit $ac_status); } && 9789 { ac_try='test -z "$ac_cxx_werror_flag" 9790 || test ! -s conftest.err' 9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9792 (eval $ac_try) 2>&5 9793 ac_status=$? 9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9795 (exit $ac_status); }; } && 9796 { ac_try='test -s conftest$ac_exeext' 9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9798 (eval $ac_try) 2>&5 9799 ac_status=$? 9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9801 (exit $ac_status); }; }; then 9802 9803aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9804}'` 9805# Check for a 64-bit object if we didn't find anything. 9806if 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; } 9807}'`; fi 9808else 9809 echo "$as_me: failed program was:" >&5 9810sed 's/^/| /' conftest.$ac_ext >&5 9811 9812fi 9813rm -f conftest.err conftest.$ac_objext \ 9814 conftest$ac_exeext conftest.$ac_ext 9815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9816 9817 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9818 # Warning - without using the other run time loading flags, 9819 # -berok will link without error, but may produce a broken library. 9820 no_undefined_flag_CXX=' ${wl}-bernotok' 9821 allow_undefined_flag_CXX=' ${wl}-berok' 9822 # -bexpall does not export symbols beginning with underscore (_) 9823 always_export_symbols_CXX=yes 9824 # Exported symbols can be pulled into shared objects from archives 9825 whole_archive_flag_spec_CXX=' ' 9826 archive_cmds_need_lc_CXX=yes 9827 # This is similar to how AIX traditionally builds it's shared libraries. 9828 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' 9829 fi 9830 fi 9831 ;; 9832 chorus*) 9833 case $cc_basename in 9834 *) 9835 # FIXME: insert proper C++ library support 9836 ld_shlibs_CXX=no 9837 ;; 9838 esac 9839 ;; 9840 9841 9842 cygwin* | mingw* | pw32*) 9843 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9844 # as there is no search path for DLLs. 9845 hardcode_libdir_flag_spec_CXX='-L$libdir' 9846 allow_undefined_flag_CXX=unsupported 9847 always_export_symbols_CXX=no 9848 enable_shared_with_static_runtimes_CXX=yes 9849 9850 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9851 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' 9852 # If the export-symbols file already is a .def file (1st line 9853 # is EXPORTS), use it as is; otherwise, prepend... 9854 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9855 cp $export_symbols $output_objdir/$soname.def; 9856 else 9857 echo EXPORTS > $output_objdir/$soname.def; 9858 cat $export_symbols >> $output_objdir/$soname.def; 9859 fi;$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' 9860 else 9861 ld_shlibs_CXX=no 9862 fi 9863 ;; 9864 darwin* | rhapsody*) 9865 case "$host_os" in 9866 rhapsody* | darwin1.[012]) 9867 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 9868 ;; 9869 *) # Darwin 1.3 on 9870 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9871 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9872 else 9873 case ${MACOSX_DEPLOYMENT_TARGET} in 9874 10.[012]) 9875 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9876 ;; 9877 10.*) 9878 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 9879 ;; 9880 esac 9881 fi 9882 ;; 9883 esac 9884 archive_cmds_need_lc_CXX=no 9885 hardcode_direct_CXX=no 9886 hardcode_automatic_CXX=yes 9887 hardcode_shlibpath_var_CXX=unsupported 9888 whole_archive_flag_spec_CXX='' 9889 link_all_deplibs_CXX=yes 9890 9891 if test "$GXX" = yes ; then 9892 lt_int_apple_cc_single_mod=no 9893 output_verbose_link_cmd='echo' 9894 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 9895 lt_int_apple_cc_single_mod=yes 9896 fi 9897 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9898 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9899 else 9900 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' 9901 fi 9902 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9904 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9905 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}' 9906 else 9907 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}' 9908 fi 9909 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}' 9910 else 9911 case "$cc_basename" in 9912 xlc*) 9913 output_verbose_link_cmd='echo' 9914 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' 9915 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9916 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9917 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}' 9918 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}' 9919 ;; 9920 *) 9921 ld_shlibs_CXX=no 9922 ;; 9923 esac 9924 fi 9925 ;; 9926 9927 dgux*) 9928 case $cc_basename in 9929 ec++) 9930 # FIXME: insert proper C++ library support 9931 ld_shlibs_CXX=no 9932 ;; 9933 ghcx) 9934 # Green Hills C++ Compiler 9935 # FIXME: insert proper C++ library support 9936 ld_shlibs_CXX=no 9937 ;; 9938 *) 9939 # FIXME: insert proper C++ library support 9940 ld_shlibs_CXX=no 9941 ;; 9942 esac 9943 ;; 9944 freebsd12*) 9945 # C++ shared libraries reported to be fairly broken before switch to ELF 9946 ld_shlibs_CXX=no 9947 ;; 9948 freebsd-elf*) 9949 archive_cmds_need_lc_CXX=no 9950 ;; 9951 freebsd* | kfreebsd*-gnu) 9952 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9953 # conventions 9954 ld_shlibs_CXX=yes 9955 ;; 9956 gnu*) 9957 ;; 9958 hpux9*) 9959 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9960 hardcode_libdir_separator_CXX=: 9961 export_dynamic_flag_spec_CXX='${wl}-E' 9962 hardcode_direct_CXX=yes 9963 hardcode_minus_L_CXX=yes # Not in the search PATH, 9964 # but as the default 9965 # location of the library. 9966 9967 case $cc_basename in 9968 CC) 9969 # FIXME: insert proper C++ library support 9970 ld_shlibs_CXX=no 9971 ;; 9972 aCC) 9973 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' 9974 # Commands to make compiler produce verbose output that lists 9975 # what "hidden" libraries, object files and flags are used when 9976 # linking a shared library. 9977 # 9978 # There doesn't appear to be a way to prevent this compiler from 9979 # explicitly linking system object files so we need to strip them 9980 # from the output so that they don't get included in the library 9981 # dependencies. 9982 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' 9983 ;; 9984 *) 9985 if test "$GXX" = yes; then 9986 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' 9987 else 9988 # FIXME: insert proper C++ library support 9989 ld_shlibs_CXX=no 9990 fi 9991 ;; 9992 esac 9993 ;; 9994 hpux10*|hpux11*) 9995 if test $with_gnu_ld = no; then 9996 case "$host_cpu" in 9997 hppa*64*) 9998 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9999 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10000 hardcode_libdir_separator_CXX=: 10001 ;; 10002 ia64*) 10003 hardcode_libdir_flag_spec_CXX='-L$libdir' 10004 ;; 10005 *) 10006 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10007 hardcode_libdir_separator_CXX=: 10008 export_dynamic_flag_spec_CXX='${wl}-E' 10009 ;; 10010 esac 10011 fi 10012 case "$host_cpu" in 10013 hppa*64*) 10014 hardcode_direct_CXX=no 10015 hardcode_shlibpath_var_CXX=no 10016 ;; 10017 ia64*) 10018 hardcode_direct_CXX=no 10019 hardcode_shlibpath_var_CXX=no 10020 hardcode_minus_L_CXX=yes # Not in the search PATH, 10021 # but as the default 10022 # location of the library. 10023 ;; 10024 *) 10025 hardcode_direct_CXX=yes 10026 hardcode_minus_L_CXX=yes # Not in the search PATH, 10027 # but as the default 10028 # location of the library. 10029 ;; 10030 esac 10031 10032 case $cc_basename in 10033 CC) 10034 # FIXME: insert proper C++ library support 10035 ld_shlibs_CXX=no 10036 ;; 10037 aCC) 10038 case "$host_cpu" in 10039 hppa*64*|ia64*) 10040 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10041 ;; 10042 *) 10043 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10044 ;; 10045 esac 10046 # Commands to make compiler produce verbose output that lists 10047 # what "hidden" libraries, object files and flags are used when 10048 # linking a shared library. 10049 # 10050 # There doesn't appear to be a way to prevent this compiler from 10051 # explicitly linking system object files so we need to strip them 10052 # from the output so that they don't get included in the library 10053 # dependencies. 10054 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' 10055 ;; 10056 *) 10057 if test "$GXX" = yes; then 10058 if test $with_gnu_ld = no; then 10059 case "$host_cpu" in 10060 ia64*|hppa*64*) 10061 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10062 ;; 10063 *) 10064 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' 10065 ;; 10066 esac 10067 fi 10068 else 10069 # FIXME: insert proper C++ library support 10070 ld_shlibs_CXX=no 10071 fi 10072 ;; 10073 esac 10074 ;; 10075 irix5* | irix6*) 10076 case $cc_basename in 10077 CC) 10078 # SGI C++ 10079 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10080 10081 # Archives containing C++ object files must be created using 10082 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10083 # necessary to make sure instantiated templates are included 10084 # in the archive. 10085 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10086 ;; 10087 *) 10088 if test "$GXX" = yes; then 10089 if test "$with_gnu_ld" = no; then 10090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10091 else 10092 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' 10093 fi 10094 fi 10095 link_all_deplibs_CXX=yes 10096 ;; 10097 esac 10098 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10099 hardcode_libdir_separator_CXX=: 10100 ;; 10101 linux*) 10102 case $cc_basename in 10103 KCC) 10104 # Kuck and Associates, Inc. (KAI) C++ Compiler 10105 10106 # KCC will only create a shared library if the output file 10107 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10108 # to its proper name (with version) after linking. 10109 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' 10110 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' 10111 # Commands to make compiler produce verbose output that lists 10112 # what "hidden" libraries, object files and flags are used when 10113 # linking a shared library. 10114 # 10115 # There doesn't appear to be a way to prevent this compiler from 10116 # explicitly linking system object files so we need to strip them 10117 # from the output so that they don't get included in the library 10118 # dependencies. 10119 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' 10120 10121 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10122 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10123 10124 # Archives containing C++ object files must be created using 10125 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10126 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10127 ;; 10128 icpc) 10129 # Intel C++ 10130 with_gnu_ld=yes 10131 # version 8.0 and above of icpc choke on multiply defined symbols 10132 # if we add $predep_objects and $postdep_objects, however 7.1 and 10133 # earlier do not add the objects themselves. 10134 case `$CC -V 2>&1` in 10135 *"Version 7."*) 10136 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10137 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' 10138 ;; 10139 *) # Version 8.0 or newer 10140 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10141 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10142 ;; 10143 esac 10144 archive_cmds_need_lc_CXX=no 10145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10147 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10148 ;; 10149 cxx) 10150 # Compaq C++ 10151 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10152 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' 10153 10154 runpath_var=LD_RUN_PATH 10155 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10156 hardcode_libdir_separator_CXX=: 10157 10158 # Commands to make compiler produce verbose output that lists 10159 # what "hidden" libraries, object files and flags are used when 10160 # linking a shared library. 10161 # 10162 # There doesn't appear to be a way to prevent this compiler from 10163 # explicitly linking system object files so we need to strip them 10164 # from the output so that they don't get included in the library 10165 # dependencies. 10166 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' 10167 ;; 10168 esac 10169 ;; 10170 lynxos*) 10171 # FIXME: insert proper C++ library support 10172 ld_shlibs_CXX=no 10173 ;; 10174 m88k*) 10175 # FIXME: insert proper C++ library support 10176 ld_shlibs_CXX=no 10177 ;; 10178 mvs*) 10179 case $cc_basename in 10180 cxx) 10181 # FIXME: insert proper C++ library support 10182 ld_shlibs_CXX=no 10183 ;; 10184 *) 10185 # FIXME: insert proper C++ library support 10186 ld_shlibs_CXX=no 10187 ;; 10188 esac 10189 ;; 10190 netbsd*) 10191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10192 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10193 wlarc= 10194 hardcode_libdir_flag_spec_CXX='-R$libdir' 10195 hardcode_direct_CXX=yes 10196 hardcode_shlibpath_var_CXX=no 10197 fi 10198 # Workaround some broken pre-1.5 toolchains 10199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10200 ;; 10201 openbsd2*) 10202 # C++ shared libraries are fairly broken 10203 ld_shlibs_CXX=no 10204 ;; 10205 openbsd*) 10206 hardcode_direct_CXX=yes 10207 hardcode_shlibpath_var_CXX=no 10208 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10211 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10212 export_dynamic_flag_spec_CXX='${wl}-E' 10213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10214 fi 10215 output_verbose_link_cmd='echo' 10216 ;; 10217 osf3*) 10218 case $cc_basename in 10219 KCC) 10220 # Kuck and Associates, Inc. (KAI) C++ Compiler 10221 10222 # KCC will only create a shared library if the output file 10223 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10224 # to its proper name (with version) after linking. 10225 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' 10226 10227 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10228 hardcode_libdir_separator_CXX=: 10229 10230 # Archives containing C++ object files must be created using 10231 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10232 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10233 10234 ;; 10235 RCC) 10236 # Rational C++ 2.4.1 10237 # FIXME: insert proper C++ library support 10238 ld_shlibs_CXX=no 10239 ;; 10240 cxx) 10241 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10242 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10243 10244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10245 hardcode_libdir_separator_CXX=: 10246 10247 # Commands to make compiler produce verbose output that lists 10248 # what "hidden" libraries, object files and flags are used when 10249 # linking a shared library. 10250 # 10251 # There doesn't appear to be a way to prevent this compiler from 10252 # explicitly linking system object files so we need to strip them 10253 # from the output so that they don't get included in the library 10254 # dependencies. 10255 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' 10256 ;; 10257 *) 10258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10260 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10261 10262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10263 hardcode_libdir_separator_CXX=: 10264 10265 # Commands to make compiler produce verbose output that lists 10266 # what "hidden" libraries, object files and flags are used when 10267 # linking a shared library. 10268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10269 10270 else 10271 # FIXME: insert proper C++ library support 10272 ld_shlibs_CXX=no 10273 fi 10274 ;; 10275 esac 10276 ;; 10277 osf4* | osf5*) 10278 case $cc_basename in 10279 KCC) 10280 # Kuck and Associates, Inc. (KAI) C++ Compiler 10281 10282 # KCC will only create a shared library if the output file 10283 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10284 # to its proper name (with version) after linking. 10285 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' 10286 10287 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10288 hardcode_libdir_separator_CXX=: 10289 10290 # Archives containing C++ object files must be created using 10291 # the KAI C++ compiler. 10292 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10293 ;; 10294 RCC) 10295 # Rational C++ 2.4.1 10296 # FIXME: insert proper C++ library support 10297 ld_shlibs_CXX=no 10298 ;; 10299 cxx) 10300 allow_undefined_flag_CXX=' -expect_unresolved \*' 10301 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10302 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib;$rm $lib.exp' 10303 10304 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10305 hardcode_libdir_separator_CXX=: 10306 10307 # Commands to make compiler produce verbose output that lists 10308 # what "hidden" libraries, object files and flags are used when 10309 # linking a shared library. 10310 # 10311 # There doesn't appear to be a way to prevent this compiler from 10312 # explicitly linking system object files so we need to strip them 10313 # from the output so that they don't get included in the library 10314 # dependencies. 10315 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' 10316 ;; 10317 *) 10318 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10319 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10320 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10321 10322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10323 hardcode_libdir_separator_CXX=: 10324 10325 # Commands to make compiler produce verbose output that lists 10326 # what "hidden" libraries, object files and flags are used when 10327 # linking a shared library. 10328 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10329 10330 else 10331 # FIXME: insert proper C++ library support 10332 ld_shlibs_CXX=no 10333 fi 10334 ;; 10335 esac 10336 ;; 10337 psos*) 10338 # FIXME: insert proper C++ library support 10339 ld_shlibs_CXX=no 10340 ;; 10341 sco*) 10342 archive_cmds_need_lc_CXX=no 10343 case $cc_basename in 10344 CC) 10345 # FIXME: insert proper C++ library support 10346 ld_shlibs_CXX=no 10347 ;; 10348 *) 10349 # FIXME: insert proper C++ library support 10350 ld_shlibs_CXX=no 10351 ;; 10352 esac 10353 ;; 10354 sunos4*) 10355 case $cc_basename in 10356 CC) 10357 # Sun C++ 4.x 10358 # FIXME: insert proper C++ library support 10359 ld_shlibs_CXX=no 10360 ;; 10361 lcc) 10362 # Lucid 10363 # FIXME: insert proper C++ library support 10364 ld_shlibs_CXX=no 10365 ;; 10366 *) 10367 # FIXME: insert proper C++ library support 10368 ld_shlibs_CXX=no 10369 ;; 10370 esac 10371 ;; 10372 solaris*) 10373 case $cc_basename in 10374 CC) 10375 # Sun C++ 4.2, 5.x and Centerline C++ 10376 no_undefined_flag_CXX=' -zdefs' 10377 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10378 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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' 10379 10380 hardcode_libdir_flag_spec_CXX='-R$libdir' 10381 hardcode_shlibpath_var_CXX=no 10382 case $host_os in 10383 solaris2.0-5 | solaris2.0-5.*) ;; 10384 *) 10385 # The C++ compiler is used as linker so we must use $wl 10386 # flag to pass the commands to the underlying system 10387 # linker. 10388 # Supported since Solaris 2.6 (maybe 2.5.1?) 10389 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10390 ;; 10391 esac 10392 link_all_deplibs_CXX=yes 10393 10394 # Commands to make compiler produce verbose output that lists 10395 # what "hidden" libraries, object files and flags are used when 10396 # linking a shared library. 10397 # 10398 # There doesn't appear to be a way to prevent this compiler from 10399 # explicitly linking system object files so we need to strip them 10400 # from the output so that they don't get included in the library 10401 # dependencies. 10402 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' 10403 10404 # Archives containing C++ object files must be created using 10405 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10406 # necessary to make sure instantiated templates are included 10407 # in the archive. 10408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10409 ;; 10410 gcx) 10411 # Green Hills C++ Compiler 10412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10413 10414 # The C++ compiler must be used to create the archive. 10415 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10416 ;; 10417 *) 10418 # GNU C++ compiler with Solaris linker 10419 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10420 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10421 if $CC --version | grep -v '^2\.7' > /dev/null; then 10422 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10423 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp' 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 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10428 else 10429 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10430 # platform. 10431 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10432 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; 10433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp' 10434 10435 # Commands to make compiler produce verbose output that lists 10436 # what "hidden" libraries, object files and flags are used when 10437 # linking a shared library. 10438 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10439 fi 10440 10441 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10442 fi 10443 ;; 10444 esac 10445 ;; 10446 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10447 archive_cmds_need_lc_CXX=no 10448 ;; 10449 tandem*) 10450 case $cc_basename in 10451 NCC) 10452 # NonStop-UX NCC 3.20 10453 # FIXME: insert proper C++ library support 10454 ld_shlibs_CXX=no 10455 ;; 10456 *) 10457 # FIXME: insert proper C++ library support 10458 ld_shlibs_CXX=no 10459 ;; 10460 esac 10461 ;; 10462 vxworks*) 10463 # FIXME: insert proper C++ library support 10464 ld_shlibs_CXX=no 10465 ;; 10466 *) 10467 # FIXME: insert proper C++ library support 10468 ld_shlibs_CXX=no 10469 ;; 10470esac 10471echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10472echo "${ECHO_T}$ld_shlibs_CXX" >&6 10473test "$ld_shlibs_CXX" = no && can_build_shared=no 10474 10475GCC_CXX="$GXX" 10476LD_CXX="$LD" 10477 10478 10479cat > conftest.$ac_ext <<EOF 10480class Foo 10481{ 10482public: 10483 Foo (void) { a = 0; } 10484private: 10485 int a; 10486}; 10487EOF 10488 10489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10490 (eval $ac_compile) 2>&5 10491 ac_status=$? 10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10493 (exit $ac_status); }; then 10494 # Parse the compiler output and extract the necessary 10495 # objects, libraries and library flags. 10496 10497 # Sentinel used to keep track of whether or not we are before 10498 # the conftest object file. 10499 pre_test_object_deps_done=no 10500 10501 # The `*' in the case matches for architectures that use `case' in 10502 # $output_verbose_cmd can trigger glob expansion during the loop 10503 # eval without this substitution. 10504 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10505 10506 for p in `eval $output_verbose_link_cmd`; do 10507 case $p in 10508 10509 -L* | -R* | -l*) 10510 # Some compilers place space between "-{L,R}" and the path. 10511 # Remove the space. 10512 if test $p = "-L" \ 10513 || test $p = "-R"; then 10514 prev=$p 10515 continue 10516 else 10517 prev= 10518 fi 10519 10520 if test "$pre_test_object_deps_done" = no; then 10521 case $p in 10522 -L* | -R*) 10523 # Internal compiler library paths should come after those 10524 # provided the user. The postdeps already come after the 10525 # user supplied libs so there is no need to process them. 10526 if test -z "$compiler_lib_search_path_CXX"; then 10527 compiler_lib_search_path_CXX="${prev}${p}" 10528 else 10529 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10530 fi 10531 ;; 10532 # The "-l" case would never come before the object being 10533 # linked, so don't bother handling this case. 10534 esac 10535 else 10536 if test -z "$postdeps_CXX"; then 10537 postdeps_CXX="${prev}${p}" 10538 else 10539 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10540 fi 10541 fi 10542 ;; 10543 10544 *.$objext) 10545 # This assumes that the test object file only shows up 10546 # once in the compiler output. 10547 if test "$p" = "conftest.$objext"; then 10548 pre_test_object_deps_done=yes 10549 continue 10550 fi 10551 10552 if test "$pre_test_object_deps_done" = no; then 10553 if test -z "$predep_objects_CXX"; then 10554 predep_objects_CXX="$p" 10555 else 10556 predep_objects_CXX="$predep_objects_CXX $p" 10557 fi 10558 else 10559 if test -z "$postdep_objects_CXX"; then 10560 postdep_objects_CXX="$p" 10561 else 10562 postdep_objects_CXX="$postdep_objects_CXX $p" 10563 fi 10564 fi 10565 ;; 10566 10567 *) ;; # Ignore the rest. 10568 10569 esac 10570 done 10571 10572 # Clean up. 10573 rm -f a.out a.exe 10574else 10575 echo "libtool.m4: error: problem compiling CXX test program" 10576fi 10577 10578$rm -f confest.$objext 10579 10580case " $postdeps_CXX " in 10581*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10582esac 10583 10584lt_prog_compiler_wl_CXX= 10585lt_prog_compiler_pic_CXX= 10586lt_prog_compiler_static_CXX= 10587 10588echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10589echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10590 10591 # C++ specific cases for pic, static, wl, etc. 10592 if test "$GXX" = yes; then 10593 lt_prog_compiler_wl_CXX='-Wl,' 10594 lt_prog_compiler_static_CXX='-static' 10595 10596 case $host_os in 10597 aix*) 10598 # All AIX code is PIC. 10599 if test "$host_cpu" = ia64; then 10600 # AIX 5 now supports IA64 processor 10601 lt_prog_compiler_static_CXX='-Bstatic' 10602 fi 10603 ;; 10604 amigaos*) 10605 # FIXME: we need at least 68020 code to build shared libraries, but 10606 # adding the `-m68020' flag to GCC prevents building anything better, 10607 # like `-m68040'. 10608 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10609 ;; 10610 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10611 # PIC is the default for these OSes. 10612 ;; 10613 mingw* | os2* | pw32*) 10614 # This hack is so that the source file can tell whether it is being 10615 # built for inclusion in a dll (and should export symbols for example). 10616 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10617 ;; 10618 darwin* | rhapsody*) 10619 # PIC is the default on this platform 10620 # Common symbols not allowed in MH_DYLIB files 10621 lt_prog_compiler_pic_CXX='-fno-common' 10622 ;; 10623 *djgpp*) 10624 # DJGPP does not support shared libraries at all 10625 lt_prog_compiler_pic_CXX= 10626 ;; 10627 sysv4*MP*) 10628 if test -d /usr/nec; then 10629 lt_prog_compiler_pic_CXX=-Kconform_pic 10630 fi 10631 ;; 10632 hpux*) 10633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10634 # not for PA HP-UX. 10635 case "$host_cpu" in 10636 hppa*64*|ia64*) 10637 ;; 10638 *) 10639 lt_prog_compiler_pic_CXX='-fPIC' 10640 ;; 10641 esac 10642 ;; 10643 *) 10644 lt_prog_compiler_pic_CXX='-fPIC' 10645 ;; 10646 esac 10647 else 10648 case $host_os in 10649 aix4* | aix5*) 10650 # All AIX code is PIC. 10651 if test "$host_cpu" = ia64; then 10652 # AIX 5 now supports IA64 processor 10653 lt_prog_compiler_static_CXX='-Bstatic' 10654 else 10655 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10656 fi 10657 ;; 10658 chorus*) 10659 case $cc_basename in 10660 cxch68) 10661 # Green Hills C++ Compiler 10662 # _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" 10663 ;; 10664 esac 10665 ;; 10666 darwin*) 10667 # PIC is the default on this platform 10668 # Common symbols not allowed in MH_DYLIB files 10669 case "$cc_basename" in 10670 xlc*) 10671 lt_prog_compiler_pic_CXX='-qnocommon' 10672 lt_prog_compiler_wl_CXX='-Wl,' 10673 ;; 10674 esac 10675 ;; 10676 dgux*) 10677 case $cc_basename in 10678 ec++) 10679 lt_prog_compiler_pic_CXX='-KPIC' 10680 ;; 10681 ghcx) 10682 # Green Hills C++ Compiler 10683 lt_prog_compiler_pic_CXX='-pic' 10684 ;; 10685 *) 10686 ;; 10687 esac 10688 ;; 10689 freebsd* | kfreebsd*-gnu) 10690 # FreeBSD uses GNU C++ 10691 ;; 10692 hpux9* | hpux10* | hpux11*) 10693 case $cc_basename in 10694 CC) 10695 lt_prog_compiler_wl_CXX='-Wl,' 10696 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10697 if test "$host_cpu" != ia64; then 10698 lt_prog_compiler_pic_CXX='+Z' 10699 fi 10700 ;; 10701 aCC) 10702 lt_prog_compiler_wl_CXX='-Wl,' 10703 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10704 case "$host_cpu" in 10705 hppa*64*|ia64*) 10706 # +Z the default 10707 ;; 10708 *) 10709 lt_prog_compiler_pic_CXX='+Z' 10710 ;; 10711 esac 10712 ;; 10713 *) 10714 ;; 10715 esac 10716 ;; 10717 irix5* | irix6* | nonstopux*) 10718 case $cc_basename in 10719 CC) 10720 lt_prog_compiler_wl_CXX='-Wl,' 10721 lt_prog_compiler_static_CXX='-non_shared' 10722 # CC pic flag -KPIC is the default. 10723 ;; 10724 *) 10725 ;; 10726 esac 10727 ;; 10728 linux*) 10729 case $cc_basename in 10730 KCC) 10731 # KAI C++ Compiler 10732 lt_prog_compiler_wl_CXX='--backend -Wl,' 10733 lt_prog_compiler_pic_CXX='-fPIC' 10734 ;; 10735 icpc) 10736 # Intel C++ 10737 lt_prog_compiler_wl_CXX='-Wl,' 10738 lt_prog_compiler_pic_CXX='-KPIC' 10739 lt_prog_compiler_static_CXX='-static' 10740 ;; 10741 cxx) 10742 # Compaq C++ 10743 # Make sure the PIC flag is empty. It appears that all Alpha 10744 # Linux and Compaq Tru64 Unix objects are PIC. 10745 lt_prog_compiler_pic_CXX= 10746 lt_prog_compiler_static_CXX='-non_shared' 10747 ;; 10748 *) 10749 ;; 10750 esac 10751 ;; 10752 lynxos*) 10753 ;; 10754 m88k*) 10755 ;; 10756 mvs*) 10757 case $cc_basename in 10758 cxx) 10759 lt_prog_compiler_pic_CXX='-W c,exportall' 10760 ;; 10761 *) 10762 ;; 10763 esac 10764 ;; 10765 netbsd*) 10766 ;; 10767 osf3* | osf4* | osf5*) 10768 case $cc_basename in 10769 KCC) 10770 lt_prog_compiler_wl_CXX='--backend -Wl,' 10771 ;; 10772 RCC) 10773 # Rational C++ 2.4.1 10774 lt_prog_compiler_pic_CXX='-pic' 10775 ;; 10776 cxx) 10777 # Digital/Compaq C++ 10778 lt_prog_compiler_wl_CXX='-Wl,' 10779 # Make sure the PIC flag is empty. It appears that all Alpha 10780 # Linux and Compaq Tru64 Unix objects are PIC. 10781 lt_prog_compiler_pic_CXX= 10782 lt_prog_compiler_static_CXX='-non_shared' 10783 ;; 10784 *) 10785 ;; 10786 esac 10787 ;; 10788 psos*) 10789 ;; 10790 sco*) 10791 case $cc_basename in 10792 CC) 10793 lt_prog_compiler_pic_CXX='-fPIC' 10794 ;; 10795 *) 10796 ;; 10797 esac 10798 ;; 10799 solaris*) 10800 case $cc_basename in 10801 CC) 10802 # Sun C++ 4.2, 5.x and Centerline C++ 10803 lt_prog_compiler_pic_CXX='-KPIC' 10804 lt_prog_compiler_static_CXX='-Bstatic' 10805 lt_prog_compiler_wl_CXX='-Qoption ld ' 10806 ;; 10807 gcx) 10808 # Green Hills C++ Compiler 10809 lt_prog_compiler_pic_CXX='-PIC' 10810 ;; 10811 *) 10812 ;; 10813 esac 10814 ;; 10815 sunos4*) 10816 case $cc_basename in 10817 CC) 10818 # Sun C++ 4.x 10819 lt_prog_compiler_pic_CXX='-pic' 10820 lt_prog_compiler_static_CXX='-Bstatic' 10821 ;; 10822 lcc) 10823 # Lucid 10824 lt_prog_compiler_pic_CXX='-pic' 10825 ;; 10826 *) 10827 ;; 10828 esac 10829 ;; 10830 tandem*) 10831 case $cc_basename in 10832 NCC) 10833 # NonStop-UX NCC 3.20 10834 lt_prog_compiler_pic_CXX='-KPIC' 10835 ;; 10836 *) 10837 ;; 10838 esac 10839 ;; 10840 unixware*) 10841 ;; 10842 vxworks*) 10843 ;; 10844 *) 10845 lt_prog_compiler_can_build_shared_CXX=no 10846 ;; 10847 esac 10848 fi 10849 10850echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10851echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10852 10853# 10854# Check to make sure the PIC flag actually works. 10855# 10856if test -n "$lt_prog_compiler_pic_CXX"; then 10857 10858echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10859echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10860if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10861 echo $ECHO_N "(cached) $ECHO_C" >&6 10862else 10863 lt_prog_compiler_pic_works_CXX=no 10864 ac_outfile=conftest.$ac_objext 10865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10866 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10867 # Insert the option either (1) after the last *FLAGS variable, or 10868 # (2) before a word containing "conftest.", or (3) at the end. 10869 # Note that $ac_compile itself does not contain backslashes and begins 10870 # with a dollar sign (not a hyphen), so the echo should work correctly. 10871 # The option is referenced via a variable to avoid confusing sed. 10872 lt_compile=`echo "$ac_compile" | $SED \ 10873 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10875 -e 's:$: $lt_compiler_flag:'` 10876 (eval echo "\"\$as_me:10876: $lt_compile\"" >&5) 10877 (eval "$lt_compile" 2>conftest.err) 10878 ac_status=$? 10879 cat conftest.err >&5 10880 echo "$as_me:10880: \$? = $ac_status" >&5 10881 if (exit $ac_status) && test -s "$ac_outfile"; then 10882 # The compiler can only warn and ignore the option if not recognized 10883 # So say no if there are warnings 10884 if test ! -s conftest.err; then 10885 lt_prog_compiler_pic_works_CXX=yes 10886 fi 10887 fi 10888 $rm conftest* 10889 10890fi 10891echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10892echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10893 10894if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10895 case $lt_prog_compiler_pic_CXX in 10896 "" | " "*) ;; 10897 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10898 esac 10899else 10900 lt_prog_compiler_pic_CXX= 10901 lt_prog_compiler_can_build_shared_CXX=no 10902fi 10903 10904fi 10905case "$host_os" in 10906 # For platforms which do not support PIC, -DPIC is meaningless: 10907 *djgpp*) 10908 lt_prog_compiler_pic_CXX= 10909 ;; 10910 *) 10911 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10912 ;; 10913esac 10914 10915echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10916echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10917if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10918 echo $ECHO_N "(cached) $ECHO_C" >&6 10919else 10920 lt_cv_prog_compiler_c_o_CXX=no 10921 $rm -r conftest 2>/dev/null 10922 mkdir conftest 10923 cd conftest 10924 mkdir out 10925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10926 10927 lt_compiler_flag="-o out/conftest2.$ac_objext" 10928 # Insert the option either (1) after the last *FLAGS variable, or 10929 # (2) before a word containing "conftest.", or (3) at the end. 10930 # Note that $ac_compile itself does not contain backslashes and begins 10931 # with a dollar sign (not a hyphen), so the echo should work correctly. 10932 lt_compile=`echo "$ac_compile" | $SED \ 10933 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10935 -e 's:$: $lt_compiler_flag:'` 10936 (eval echo "\"\$as_me:10936: $lt_compile\"" >&5) 10937 (eval "$lt_compile" 2>out/conftest.err) 10938 ac_status=$? 10939 cat out/conftest.err >&5 10940 echo "$as_me:10940: \$? = $ac_status" >&5 10941 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10942 then 10943 # The compiler can only warn and ignore the option if not recognized 10944 # So say no if there are warnings 10945 if test ! -s out/conftest.err; then 10946 lt_cv_prog_compiler_c_o_CXX=yes 10947 fi 10948 fi 10949 chmod u+w . 10950 $rm conftest* 10951 # SGI C++ compiler will create directory out/ii_files/ for 10952 # template instantiation 10953 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10954 $rm out/* && rmdir out 10955 cd .. 10956 rmdir conftest 10957 $rm conftest* 10958 10959fi 10960echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 10961echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 10962 10963 10964hard_links="nottested" 10965if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 10966 # do not overwrite the value of need_locks provided by the user 10967 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10968echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10969 hard_links=yes 10970 $rm conftest* 10971 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10972 touch conftest.a 10973 ln conftest.a conftest.b 2>&5 || hard_links=no 10974 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10975 echo "$as_me:$LINENO: result: $hard_links" >&5 10976echo "${ECHO_T}$hard_links" >&6 10977 if test "$hard_links" = no; then 10978 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10979echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10980 need_locks=warn 10981 fi 10982else 10983 need_locks=no 10984fi 10985 10986echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10987echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10988 10989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10990 case $host_os in 10991 aix4* | aix5*) 10992 # If we're using GNU nm, then we don't want the "-C" option. 10993 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10994 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10995 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' 10996 else 10997 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' 10998 fi 10999 ;; 11000 pw32*) 11001 export_symbols_cmds_CXX="$ltdll_cmds" 11002 ;; 11003 cygwin* | mingw*) 11004 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11005 ;; 11006 *) 11007 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11008 ;; 11009 esac 11010 11011echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11012echo "${ECHO_T}$ld_shlibs_CXX" >&6 11013test "$ld_shlibs_CXX" = no && can_build_shared=no 11014 11015variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11016if test "$GCC" = yes; then 11017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11018fi 11019 11020# 11021# Do we need to explicitly link libc? 11022# 11023case "x$archive_cmds_need_lc_CXX" in 11024x|xyes) 11025 # Assume -lc should be added 11026 archive_cmds_need_lc_CXX=yes 11027 11028 if test "$enable_shared" = yes && test "$GCC" = yes; then 11029 case $archive_cmds_CXX in 11030 *'~'*) 11031 # FIXME: we may have to deal with multi-command sequences. 11032 ;; 11033 '$CC '*) 11034 # Test whether the compiler implicitly links with -lc since on some 11035 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11036 # to ld, don't add -lc before -lgcc. 11037 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11038echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11039 $rm conftest* 11040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11041 11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11043 (eval $ac_compile) 2>&5 11044 ac_status=$? 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 (exit $ac_status); } 2>conftest.err; then 11047 soname=conftest 11048 lib=conftest 11049 libobjs=conftest.$ac_objext 11050 deplibs= 11051 wl=$lt_prog_compiler_wl_CXX 11052 compiler_flags=-v 11053 linker_flags=-v 11054 verstring= 11055 output_objdir=. 11056 libname=conftest 11057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11058 allow_undefined_flag_CXX= 11059 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11060 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11061 ac_status=$? 11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11063 (exit $ac_status); } 11064 then 11065 archive_cmds_need_lc_CXX=no 11066 else 11067 archive_cmds_need_lc_CXX=yes 11068 fi 11069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11070 else 11071 cat conftest.err 1>&5 11072 fi 11073 $rm conftest* 11074 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11075echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11076 ;; 11077 esac 11078 fi 11079 ;; 11080esac 11081 11082echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11083echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11084library_names_spec= 11085libname_spec='lib$name' 11086soname_spec= 11087shrext_cmds=".so" 11088postinstall_cmds= 11089postuninstall_cmds= 11090finish_cmds= 11091finish_eval= 11092shlibpath_var= 11093shlibpath_overrides_runpath=unknown 11094version_type=none 11095dynamic_linker="$host_os ld.so" 11096sys_lib_dlsearch_path_spec="/lib /usr/lib" 11097if test "$GCC" = yes; then 11098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11099 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11100 # if the path contains ";" then we assume it to be the separator 11101 # otherwise default to the standard path separator (i.e. ":") - it is 11102 # assumed that no part of a normal pathname contains ";" but that should 11103 # okay in the real world where ";" in dirpaths is itself problematic. 11104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11105 else 11106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11107 fi 11108else 11109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11110fi 11111need_lib_prefix=unknown 11112hardcode_into_libs=no 11113 11114# when you set need_version to no, make sure it does not cause -set_version 11115# flags to be left without arguments 11116need_version=unknown 11117 11118case $host_os in 11119aix3*) 11120 version_type=linux 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11122 shlibpath_var=LIBPATH 11123 11124 # AIX 3 has no versioning support, so we append a major version to the name. 11125 soname_spec='${libname}${release}${shared_ext}$major' 11126 ;; 11127 11128aix4* | aix5*) 11129 version_type=linux 11130 need_lib_prefix=no 11131 need_version=no 11132 hardcode_into_libs=yes 11133 if test "$host_cpu" = ia64; then 11134 # AIX 5 supports IA64 11135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11136 shlibpath_var=LD_LIBRARY_PATH 11137 else 11138 # With GCC up to 2.95.x, collect2 would create an import file 11139 # for dependence libraries. The import file would start with 11140 # the line `#! .'. This would cause the generated library to 11141 # depend on `.', always an invalid library. This was fixed in 11142 # development snapshots of GCC prior to 3.0. 11143 case $host_os in 11144 aix4 | aix4.[01] | aix4.[01].*) 11145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11146 echo ' yes ' 11147 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11148 : 11149 else 11150 can_build_shared=no 11151 fi 11152 ;; 11153 esac 11154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11155 # soname into executable. Probably we can add versioning support to 11156 # collect2, so additional links can be useful in future. 11157 if test "$aix_use_runtimelinking" = yes; then 11158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11159 # instead of lib<name>.a to let people know that these are not 11160 # typical AIX shared libraries. 11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11162 else 11163 # We preserve .a as extension for shared libraries through AIX4.2 11164 # and later when we are not doing run time linking. 11165 library_names_spec='${libname}${release}.a $libname.a' 11166 soname_spec='${libname}${release}${shared_ext}$major' 11167 fi 11168 shlibpath_var=LIBPATH 11169 fi 11170 ;; 11171 11172amigaos*) 11173 library_names_spec='$libname.ixlibrary $libname.a' 11174 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11175 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' 11176 ;; 11177 11178beos*) 11179 library_names_spec='${libname}${shared_ext}' 11180 dynamic_linker="$host_os ld.so" 11181 shlibpath_var=LIBRARY_PATH 11182 ;; 11183 11184bsdi[45]*) 11185 version_type=linux 11186 need_version=no 11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11188 soname_spec='${libname}${release}${shared_ext}$major' 11189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11190 shlibpath_var=LD_LIBRARY_PATH 11191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11193 # the default ld.so.conf also contains /usr/contrib/lib and 11194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11195 # libtool to hard-code these into programs 11196 ;; 11197 11198cygwin* | mingw* | pw32*) 11199 version_type=windows 11200 shrext_cmds=".dll" 11201 need_version=no 11202 need_lib_prefix=no 11203 11204 case $GCC,$host_os in 11205 yes,cygwin* | yes,mingw* | yes,pw32*) 11206 library_names_spec='$libname.dll.a' 11207 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11208 postinstall_cmds='base_file=`basename \${file}`; 11209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; 11210 dldir=$destdir/`dirname \$dlpath`; 11211 test -d \$dldir || mkdir -p \$dldir; 11212 $install_prog $dir/$dlname \$dldir/$dlname' 11213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; 11214 dlpath=$dir/\$dldll; 11215 $rm \$dlpath' 11216 shlibpath_overrides_runpath=yes 11217 11218 case $host_os in 11219 cygwin*) 11220 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11222 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11223 ;; 11224 mingw*) 11225 # MinGW DLLs use traditional 'lib' prefix 11226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11227 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11228 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11229 # It is most probably a Windows format PATH printed by 11230 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11231 # path with ; separators, and with drive letters. We can handle the 11232 # drive letters (cygwin fileutils understands them), so leave them, 11233 # especially as we might pass files found there to a mingw objdump, 11234 # which wouldn't understand a cygwinified path. Ahh. 11235 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11236 else 11237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11238 fi 11239 ;; 11240 pw32*) 11241 # pw32 DLLs use 'pw' prefix rather than 'lib' 11242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11243 ;; 11244 esac 11245 ;; 11246 11247 *) 11248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11249 ;; 11250 esac 11251 dynamic_linker='Win32 ld.exe' 11252 # FIXME: first we should search . and the directory the executable is in 11253 shlibpath_var=PATH 11254 ;; 11255 11256darwin* | rhapsody*) 11257 dynamic_linker="$host_os dyld" 11258 version_type=darwin 11259 need_lib_prefix=no 11260 need_version=no 11261 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11262 soname_spec='${libname}${release}${major}$shared_ext' 11263 shlibpath_overrides_runpath=yes 11264 shlibpath_var=DYLD_LIBRARY_PATH 11265 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11266 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11267 if test "$GCC" = yes; then 11268 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"` 11269 else 11270 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11271 fi 11272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11273 ;; 11274 11275dgux*) 11276 version_type=linux 11277 need_lib_prefix=no 11278 need_version=no 11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11280 soname_spec='${libname}${release}${shared_ext}$major' 11281 shlibpath_var=LD_LIBRARY_PATH 11282 ;; 11283 11284freebsd1*) 11285 dynamic_linker=no 11286 ;; 11287 11288kfreebsd*-gnu) 11289 version_type=linux 11290 need_lib_prefix=no 11291 need_version=no 11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11293 soname_spec='${libname}${release}${shared_ext}$major' 11294 shlibpath_var=LD_LIBRARY_PATH 11295 shlibpath_overrides_runpath=no 11296 hardcode_into_libs=yes 11297 dynamic_linker='GNU ld.so' 11298 ;; 11299 11300freebsd*) 11301 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11302 version_type=freebsd-$objformat 11303 case $version_type in 11304 freebsd-elf*) 11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11306 need_version=no 11307 need_lib_prefix=no 11308 ;; 11309 freebsd-*) 11310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11311 need_version=yes 11312 ;; 11313 esac 11314 shlibpath_var=LD_LIBRARY_PATH 11315 case $host_os in 11316 freebsd2*) 11317 shlibpath_overrides_runpath=yes 11318 ;; 11319 freebsd3.01* | freebsdelf3.01*) 11320 shlibpath_overrides_runpath=yes 11321 hardcode_into_libs=yes 11322 ;; 11323 *) # from 3.2 on 11324 shlibpath_overrides_runpath=no 11325 hardcode_into_libs=yes 11326 ;; 11327 esac 11328 ;; 11329 11330gnu*) 11331 version_type=linux 11332 need_lib_prefix=no 11333 need_version=no 11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11335 soname_spec='${libname}${release}${shared_ext}$major' 11336 shlibpath_var=LD_LIBRARY_PATH 11337 hardcode_into_libs=yes 11338 ;; 11339 11340hpux9* | hpux10* | hpux11*) 11341 # Give a soname corresponding to the major version so that dld.sl refuses to 11342 # link against other versions. 11343 version_type=sunos 11344 need_lib_prefix=no 11345 need_version=no 11346 case "$host_cpu" in 11347 ia64*) 11348 shrext_cmds='.so' 11349 hardcode_into_libs=yes 11350 dynamic_linker="$host_os dld.so" 11351 shlibpath_var=LD_LIBRARY_PATH 11352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11354 soname_spec='${libname}${release}${shared_ext}$major' 11355 if test "X$HPUX_IA64_MODE" = X32; then 11356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11357 else 11358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11359 fi 11360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11361 ;; 11362 hppa*64*) 11363 shrext_cmds='.sl' 11364 hardcode_into_libs=yes 11365 dynamic_linker="$host_os dld.sl" 11366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11369 soname_spec='${libname}${release}${shared_ext}$major' 11370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11372 ;; 11373 *) 11374 shrext_cmds='.sl' 11375 dynamic_linker="$host_os dld.sl" 11376 shlibpath_var=SHLIB_PATH 11377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11379 soname_spec='${libname}${release}${shared_ext}$major' 11380 ;; 11381 esac 11382 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11383 postinstall_cmds='chmod 555 $lib' 11384 ;; 11385 11386irix5* | irix6* | nonstopux*) 11387 case $host_os in 11388 nonstopux*) version_type=nonstopux ;; 11389 *) 11390 if test "$lt_cv_prog_gnu_ld" = yes; then 11391 version_type=linux 11392 else 11393 version_type=irix 11394 fi ;; 11395 esac 11396 need_lib_prefix=no 11397 need_version=no 11398 soname_spec='${libname}${release}${shared_ext}$major' 11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11400 case $host_os in 11401 irix5* | nonstopux*) 11402 libsuff= shlibsuff= 11403 ;; 11404 *) 11405 case $LD in # libtool.m4 will add one of these switches to LD 11406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11407 libsuff= shlibsuff= libmagic=32-bit;; 11408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11409 libsuff=32 shlibsuff=N32 libmagic=N32;; 11410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11411 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11412 *) libsuff= shlibsuff= libmagic=never-match;; 11413 esac 11414 ;; 11415 esac 11416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11417 shlibpath_overrides_runpath=no 11418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11420 hardcode_into_libs=yes 11421 ;; 11422 11423# No shared lib support for Linux oldld, aout, or coff. 11424linux*oldld* | linux*aout* | linux*coff*) 11425 dynamic_linker=no 11426 ;; 11427 11428# This must be Linux ELF. 11429linux*) 11430 version_type=linux 11431 need_lib_prefix=no 11432 need_version=no 11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11434 soname_spec='${libname}${release}${shared_ext}$major' 11435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11436 shlibpath_var=LD_LIBRARY_PATH 11437 shlibpath_overrides_runpath=no 11438 # This implies no fast_install, which is unacceptable. 11439 # Some rework will be needed to allow for fast_install 11440 # before this can be enabled. 11441 hardcode_into_libs=yes 11442 11443 # Append ld.so.conf contents to the search path 11444 if test -f /etc/ld.so.conf; then 11445 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11447 fi 11448 11449 # We used to test for /lib/ld.so.1 and disable shared libraries on 11450 # powerpc, because MkLinux only supported shared libraries with the 11451 # GNU dynamic linker. Since this was broken with cross compilers, 11452 # most powerpc-linux boxes support dynamic linking these days and 11453 # people can always --disable-shared, the test was removed, and we 11454 # assume the GNU/Linux dynamic linker is in use. 11455 dynamic_linker='GNU/Linux ld.so' 11456 ;; 11457 11458knetbsd*-gnu) 11459 version_type=linux 11460 need_lib_prefix=no 11461 need_version=no 11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11463 soname_spec='${libname}${release}${shared_ext}$major' 11464 shlibpath_var=LD_LIBRARY_PATH 11465 shlibpath_overrides_runpath=no 11466 hardcode_into_libs=yes 11467 dynamic_linker='GNU ld.so' 11468 ;; 11469 11470netbsd*) 11471 version_type=sunos 11472 need_lib_prefix=no 11473 need_version=no 11474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11477 dynamic_linker='NetBSD (a.out) ld.so' 11478 else 11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11480 soname_spec='${libname}${release}${shared_ext}$major' 11481 dynamic_linker='NetBSD ld.elf_so' 11482 fi 11483 shlibpath_var=LD_LIBRARY_PATH 11484 shlibpath_overrides_runpath=yes 11485 hardcode_into_libs=yes 11486 ;; 11487 11488newsos6) 11489 version_type=linux 11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11491 shlibpath_var=LD_LIBRARY_PATH 11492 shlibpath_overrides_runpath=yes 11493 ;; 11494 11495nto-qnx*) 11496 version_type=linux 11497 need_lib_prefix=no 11498 need_version=no 11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11500 soname_spec='${libname}${release}${shared_ext}$major' 11501 shlibpath_var=LD_LIBRARY_PATH 11502 shlibpath_overrides_runpath=yes 11503 ;; 11504 11505openbsd*) 11506 version_type=sunos 11507 need_lib_prefix=no 11508 need_version=no 11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11511 shlibpath_var=LD_LIBRARY_PATH 11512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11513 case $host_os in 11514 openbsd2.[89] | openbsd2.[89].*) 11515 shlibpath_overrides_runpath=no 11516 ;; 11517 *) 11518 shlibpath_overrides_runpath=yes 11519 ;; 11520 esac 11521 else 11522 shlibpath_overrides_runpath=yes 11523 fi 11524 ;; 11525 11526os2*) 11527 libname_spec='$name' 11528 shrext_cmds=".dll" 11529 need_lib_prefix=no 11530 library_names_spec='$libname${shared_ext} $libname.a' 11531 dynamic_linker='OS/2 ld.exe' 11532 shlibpath_var=LIBPATH 11533 ;; 11534 11535osf3* | osf4* | osf5*) 11536 version_type=osf 11537 need_lib_prefix=no 11538 need_version=no 11539 soname_spec='${libname}${release}${shared_ext}$major' 11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11541 shlibpath_var=LD_LIBRARY_PATH 11542 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11543 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11544 ;; 11545 11546sco3.2v5*) 11547 version_type=osf 11548 soname_spec='${libname}${release}${shared_ext}$major' 11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11550 shlibpath_var=LD_LIBRARY_PATH 11551 ;; 11552 11553solaris*) 11554 version_type=linux 11555 need_lib_prefix=no 11556 need_version=no 11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11558 soname_spec='${libname}${release}${shared_ext}$major' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 shlibpath_overrides_runpath=yes 11561 hardcode_into_libs=yes 11562 # ldd complains unless libraries are executable 11563 postinstall_cmds='chmod +x $lib' 11564 ;; 11565 11566sunos4*) 11567 version_type=sunos 11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11569 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11570 shlibpath_var=LD_LIBRARY_PATH 11571 shlibpath_overrides_runpath=yes 11572 if test "$with_gnu_ld" = yes; then 11573 need_lib_prefix=no 11574 fi 11575 need_version=yes 11576 ;; 11577 11578sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11579 version_type=linux 11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11581 soname_spec='${libname}${release}${shared_ext}$major' 11582 shlibpath_var=LD_LIBRARY_PATH 11583 case $host_vendor in 11584 sni) 11585 shlibpath_overrides_runpath=no 11586 need_lib_prefix=no 11587 export_dynamic_flag_spec='${wl}-Blargedynsym' 11588 runpath_var=LD_RUN_PATH 11589 ;; 11590 siemens) 11591 need_lib_prefix=no 11592 ;; 11593 motorola) 11594 need_lib_prefix=no 11595 need_version=no 11596 shlibpath_overrides_runpath=no 11597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11598 ;; 11599 esac 11600 ;; 11601 11602sysv4*MP*) 11603 if test -d /usr/nec ;then 11604 version_type=linux 11605 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11606 soname_spec='$libname${shared_ext}.$major' 11607 shlibpath_var=LD_LIBRARY_PATH 11608 fi 11609 ;; 11610 11611uts4*) 11612 version_type=linux 11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11614 soname_spec='${libname}${release}${shared_ext}$major' 11615 shlibpath_var=LD_LIBRARY_PATH 11616 ;; 11617 11618*) 11619 dynamic_linker=no 11620 ;; 11621esac 11622echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11623echo "${ECHO_T}$dynamic_linker" >&6 11624test "$dynamic_linker" = no && can_build_shared=no 11625 11626echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11627echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11628hardcode_action_CXX= 11629if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11630 test -n "$runpath_var_CXX" || \ 11631 test "X$hardcode_automatic_CXX" = "Xyes" ; then 11632 11633 # We can hardcode non-existant directories. 11634 if test "$hardcode_direct_CXX" != no && 11635 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11636 # have to relink, otherwise we might link with an installed library 11637 # when we should be linking with a yet-to-be-installed one 11638 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11639 test "$hardcode_minus_L_CXX" != no; then 11640 # Linking always hardcodes the temporary library directory. 11641 hardcode_action_CXX=relink 11642 else 11643 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11644 hardcode_action_CXX=immediate 11645 fi 11646else 11647 # We cannot hardcode anything, or else we can only hardcode existing 11648 # directories. 11649 hardcode_action_CXX=unsupported 11650fi 11651echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11652echo "${ECHO_T}$hardcode_action_CXX" >&6 11653 11654if test "$hardcode_action_CXX" = relink; then 11655 # Fast installation is not supported 11656 enable_fast_install=no 11657elif test "$shlibpath_overrides_runpath" = yes || 11658 test "$enable_shared" = no; then 11659 # Fast installation is not necessary 11660 enable_fast_install=needless 11661fi 11662 11663striplib= 11664old_striplib= 11665echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11666echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11667if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11668 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11669 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11670 echo "$as_me:$LINENO: result: yes" >&5 11671echo "${ECHO_T}yes" >&6 11672else 11673# FIXME - insert some real tests, host_os isn't really good enough 11674 case $host_os in 11675 darwin*) 11676 if test -n "$STRIP" ; then 11677 striplib="$STRIP -x" 11678 echo "$as_me:$LINENO: result: yes" >&5 11679echo "${ECHO_T}yes" >&6 11680 else 11681 echo "$as_me:$LINENO: result: no" >&5 11682echo "${ECHO_T}no" >&6 11683fi 11684 ;; 11685 *) 11686 echo "$as_me:$LINENO: result: no" >&5 11687echo "${ECHO_T}no" >&6 11688 ;; 11689 esac 11690fi 11691 11692if test "x$enable_dlopen" != xyes; then 11693 enable_dlopen=unknown 11694 enable_dlopen_self=unknown 11695 enable_dlopen_self_static=unknown 11696else 11697 lt_cv_dlopen=no 11698 lt_cv_dlopen_libs= 11699 11700 case $host_os in 11701 beos*) 11702 lt_cv_dlopen="load_add_on" 11703 lt_cv_dlopen_libs= 11704 lt_cv_dlopen_self=yes 11705 ;; 11706 11707 mingw* | pw32*) 11708 lt_cv_dlopen="LoadLibrary" 11709 lt_cv_dlopen_libs= 11710 ;; 11711 11712 cygwin*) 11713 lt_cv_dlopen="dlopen" 11714 lt_cv_dlopen_libs= 11715 ;; 11716 11717 darwin*) 11718 # if libdl is installed we need to link against it 11719 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11720echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11721if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11722 echo $ECHO_N "(cached) $ECHO_C" >&6 11723else 11724 ac_check_lib_save_LIBS=$LIBS 11725LIBS="-ldl $LIBS" 11726cat >conftest.$ac_ext <<_ACEOF 11727/* confdefs.h. */ 11728_ACEOF 11729cat confdefs.h >>conftest.$ac_ext 11730cat >>conftest.$ac_ext <<_ACEOF 11731/* end confdefs.h. */ 11732 11733/* Override any gcc2 internal prototype to avoid an error. */ 11734#ifdef __cplusplus 11735extern "C" 11736#endif 11737/* We use char because int might match the return type of a gcc2 11738 builtin and then its argument prototype would still apply. */ 11739char dlopen (); 11740int 11741main () 11742{ 11743dlopen (); 11744 ; 11745 return 0; 11746} 11747_ACEOF 11748rm -f conftest.$ac_objext conftest$ac_exeext 11749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11750 (eval $ac_link) 2>conftest.er1 11751 ac_status=$? 11752 grep -v '^ *+' conftest.er1 >conftest.err 11753 rm -f conftest.er1 11754 cat conftest.err >&5 11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11756 (exit $ac_status); } && 11757 { ac_try='test -z "$ac_cxx_werror_flag" 11758 || test ! -s conftest.err' 11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11760 (eval $ac_try) 2>&5 11761 ac_status=$? 11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11763 (exit $ac_status); }; } && 11764 { ac_try='test -s conftest$ac_exeext' 11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11766 (eval $ac_try) 2>&5 11767 ac_status=$? 11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11769 (exit $ac_status); }; }; then 11770 ac_cv_lib_dl_dlopen=yes 11771else 11772 echo "$as_me: failed program was:" >&5 11773sed 's/^/| /' conftest.$ac_ext >&5 11774 11775ac_cv_lib_dl_dlopen=no 11776fi 11777rm -f conftest.err conftest.$ac_objext \ 11778 conftest$ac_exeext conftest.$ac_ext 11779LIBS=$ac_check_lib_save_LIBS 11780fi 11781echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11782echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11783if test $ac_cv_lib_dl_dlopen = yes; then 11784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11785else 11786 11787 lt_cv_dlopen="dyld" 11788 lt_cv_dlopen_libs= 11789 lt_cv_dlopen_self=yes 11790 11791fi 11792 11793 ;; 11794 11795 *) 11796 echo "$as_me:$LINENO: checking for shl_load" >&5 11797echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11798if test "${ac_cv_func_shl_load+set}" = set; then 11799 echo $ECHO_N "(cached) $ECHO_C" >&6 11800else 11801 cat >conftest.$ac_ext <<_ACEOF 11802/* confdefs.h. */ 11803_ACEOF 11804cat confdefs.h >>conftest.$ac_ext 11805cat >>conftest.$ac_ext <<_ACEOF 11806/* end confdefs.h. */ 11807/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11809#define shl_load innocuous_shl_load 11810 11811/* System header to define __stub macros and hopefully few prototypes, 11812 which can conflict with char shl_load (); below. 11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11814 <limits.h> exists even on freestanding compilers. */ 11815 11816#ifdef __STDC__ 11817# include <limits.h> 11818#else 11819# include <assert.h> 11820#endif 11821 11822#undef shl_load 11823 11824/* Override any gcc2 internal prototype to avoid an error. */ 11825#ifdef __cplusplus 11826extern "C" 11827{ 11828#endif 11829/* We use char because int might match the return type of a gcc2 11830 builtin and then its argument prototype would still apply. */ 11831char shl_load (); 11832/* The GNU C library defines this for functions which it implements 11833 to always fail with ENOSYS. Some functions are actually named 11834 something starting with __ and the normal name is an alias. */ 11835#if defined (__stub_shl_load) || defined (__stub___shl_load) 11836choke me 11837#else 11838char (*f) () = shl_load; 11839#endif 11840#ifdef __cplusplus 11841} 11842#endif 11843 11844int 11845main () 11846{ 11847return f != shl_load; 11848 ; 11849 return 0; 11850} 11851_ACEOF 11852rm -f conftest.$ac_objext conftest$ac_exeext 11853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11854 (eval $ac_link) 2>conftest.er1 11855 ac_status=$? 11856 grep -v '^ *+' conftest.er1 >conftest.err 11857 rm -f conftest.er1 11858 cat conftest.err >&5 11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11860 (exit $ac_status); } && 11861 { ac_try='test -z "$ac_cxx_werror_flag" 11862 || test ! -s conftest.err' 11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11864 (eval $ac_try) 2>&5 11865 ac_status=$? 11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11867 (exit $ac_status); }; } && 11868 { ac_try='test -s conftest$ac_exeext' 11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11870 (eval $ac_try) 2>&5 11871 ac_status=$? 11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11873 (exit $ac_status); }; }; then 11874 ac_cv_func_shl_load=yes 11875else 11876 echo "$as_me: failed program was:" >&5 11877sed 's/^/| /' conftest.$ac_ext >&5 11878 11879ac_cv_func_shl_load=no 11880fi 11881rm -f conftest.err conftest.$ac_objext \ 11882 conftest$ac_exeext conftest.$ac_ext 11883fi 11884echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11885echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11886if test $ac_cv_func_shl_load = yes; then 11887 lt_cv_dlopen="shl_load" 11888else 11889 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11890echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11891if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11892 echo $ECHO_N "(cached) $ECHO_C" >&6 11893else 11894 ac_check_lib_save_LIBS=$LIBS 11895LIBS="-ldld $LIBS" 11896cat >conftest.$ac_ext <<_ACEOF 11897/* confdefs.h. */ 11898_ACEOF 11899cat confdefs.h >>conftest.$ac_ext 11900cat >>conftest.$ac_ext <<_ACEOF 11901/* end confdefs.h. */ 11902 11903/* Override any gcc2 internal prototype to avoid an error. */ 11904#ifdef __cplusplus 11905extern "C" 11906#endif 11907/* We use char because int might match the return type of a gcc2 11908 builtin and then its argument prototype would still apply. */ 11909char shl_load (); 11910int 11911main () 11912{ 11913shl_load (); 11914 ; 11915 return 0; 11916} 11917_ACEOF 11918rm -f conftest.$ac_objext conftest$ac_exeext 11919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11920 (eval $ac_link) 2>conftest.er1 11921 ac_status=$? 11922 grep -v '^ *+' conftest.er1 >conftest.err 11923 rm -f conftest.er1 11924 cat conftest.err >&5 11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11926 (exit $ac_status); } && 11927 { ac_try='test -z "$ac_cxx_werror_flag" 11928 || test ! -s conftest.err' 11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11930 (eval $ac_try) 2>&5 11931 ac_status=$? 11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11933 (exit $ac_status); }; } && 11934 { ac_try='test -s conftest$ac_exeext' 11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11936 (eval $ac_try) 2>&5 11937 ac_status=$? 11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11939 (exit $ac_status); }; }; then 11940 ac_cv_lib_dld_shl_load=yes 11941else 11942 echo "$as_me: failed program was:" >&5 11943sed 's/^/| /' conftest.$ac_ext >&5 11944 11945ac_cv_lib_dld_shl_load=no 11946fi 11947rm -f conftest.err conftest.$ac_objext \ 11948 conftest$ac_exeext conftest.$ac_ext 11949LIBS=$ac_check_lib_save_LIBS 11950fi 11951echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11952echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11953if test $ac_cv_lib_dld_shl_load = yes; then 11954 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11955else 11956 echo "$as_me:$LINENO: checking for dlopen" >&5 11957echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11958if test "${ac_cv_func_dlopen+set}" = set; then 11959 echo $ECHO_N "(cached) $ECHO_C" >&6 11960else 11961 cat >conftest.$ac_ext <<_ACEOF 11962/* confdefs.h. */ 11963_ACEOF 11964cat confdefs.h >>conftest.$ac_ext 11965cat >>conftest.$ac_ext <<_ACEOF 11966/* end confdefs.h. */ 11967/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11968 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11969#define dlopen innocuous_dlopen 11970 11971/* System header to define __stub macros and hopefully few prototypes, 11972 which can conflict with char dlopen (); below. 11973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11974 <limits.h> exists even on freestanding compilers. */ 11975 11976#ifdef __STDC__ 11977# include <limits.h> 11978#else 11979# include <assert.h> 11980#endif 11981 11982#undef dlopen 11983 11984/* Override any gcc2 internal prototype to avoid an error. */ 11985#ifdef __cplusplus 11986extern "C" 11987{ 11988#endif 11989/* We use char because int might match the return type of a gcc2 11990 builtin and then its argument prototype would still apply. */ 11991char dlopen (); 11992/* The GNU C library defines this for functions which it implements 11993 to always fail with ENOSYS. Some functions are actually named 11994 something starting with __ and the normal name is an alias. */ 11995#if defined (__stub_dlopen) || defined (__stub___dlopen) 11996choke me 11997#else 11998char (*f) () = dlopen; 11999#endif 12000#ifdef __cplusplus 12001} 12002#endif 12003 12004int 12005main () 12006{ 12007return f != dlopen; 12008 ; 12009 return 0; 12010} 12011_ACEOF 12012rm -f conftest.$ac_objext conftest$ac_exeext 12013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12014 (eval $ac_link) 2>conftest.er1 12015 ac_status=$? 12016 grep -v '^ *+' conftest.er1 >conftest.err 12017 rm -f conftest.er1 12018 cat conftest.err >&5 12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12020 (exit $ac_status); } && 12021 { ac_try='test -z "$ac_cxx_werror_flag" 12022 || test ! -s conftest.err' 12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12024 (eval $ac_try) 2>&5 12025 ac_status=$? 12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12027 (exit $ac_status); }; } && 12028 { ac_try='test -s conftest$ac_exeext' 12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12030 (eval $ac_try) 2>&5 12031 ac_status=$? 12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12033 (exit $ac_status); }; }; then 12034 ac_cv_func_dlopen=yes 12035else 12036 echo "$as_me: failed program was:" >&5 12037sed 's/^/| /' conftest.$ac_ext >&5 12038 12039ac_cv_func_dlopen=no 12040fi 12041rm -f conftest.err conftest.$ac_objext \ 12042 conftest$ac_exeext conftest.$ac_ext 12043fi 12044echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12045echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12046if test $ac_cv_func_dlopen = yes; then 12047 lt_cv_dlopen="dlopen" 12048else 12049 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12051if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12052 echo $ECHO_N "(cached) $ECHO_C" >&6 12053else 12054 ac_check_lib_save_LIBS=$LIBS 12055LIBS="-ldl $LIBS" 12056cat >conftest.$ac_ext <<_ACEOF 12057/* confdefs.h. */ 12058_ACEOF 12059cat confdefs.h >>conftest.$ac_ext 12060cat >>conftest.$ac_ext <<_ACEOF 12061/* end confdefs.h. */ 12062 12063/* Override any gcc2 internal prototype to avoid an error. */ 12064#ifdef __cplusplus 12065extern "C" 12066#endif 12067/* We use char because int might match the return type of a gcc2 12068 builtin and then its argument prototype would still apply. */ 12069char dlopen (); 12070int 12071main () 12072{ 12073dlopen (); 12074 ; 12075 return 0; 12076} 12077_ACEOF 12078rm -f conftest.$ac_objext conftest$ac_exeext 12079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12080 (eval $ac_link) 2>conftest.er1 12081 ac_status=$? 12082 grep -v '^ *+' conftest.er1 >conftest.err 12083 rm -f conftest.er1 12084 cat conftest.err >&5 12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12086 (exit $ac_status); } && 12087 { ac_try='test -z "$ac_cxx_werror_flag" 12088 || test ! -s conftest.err' 12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12090 (eval $ac_try) 2>&5 12091 ac_status=$? 12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12093 (exit $ac_status); }; } && 12094 { ac_try='test -s conftest$ac_exeext' 12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12096 (eval $ac_try) 2>&5 12097 ac_status=$? 12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12099 (exit $ac_status); }; }; then 12100 ac_cv_lib_dl_dlopen=yes 12101else 12102 echo "$as_me: failed program was:" >&5 12103sed 's/^/| /' conftest.$ac_ext >&5 12104 12105ac_cv_lib_dl_dlopen=no 12106fi 12107rm -f conftest.err conftest.$ac_objext \ 12108 conftest$ac_exeext conftest.$ac_ext 12109LIBS=$ac_check_lib_save_LIBS 12110fi 12111echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12112echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12113if test $ac_cv_lib_dl_dlopen = yes; then 12114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12115else 12116 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12117echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12118if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12119 echo $ECHO_N "(cached) $ECHO_C" >&6 12120else 12121 ac_check_lib_save_LIBS=$LIBS 12122LIBS="-lsvld $LIBS" 12123cat >conftest.$ac_ext <<_ACEOF 12124/* confdefs.h. */ 12125_ACEOF 12126cat confdefs.h >>conftest.$ac_ext 12127cat >>conftest.$ac_ext <<_ACEOF 12128/* end confdefs.h. */ 12129 12130/* Override any gcc2 internal prototype to avoid an error. */ 12131#ifdef __cplusplus 12132extern "C" 12133#endif 12134/* We use char because int might match the return type of a gcc2 12135 builtin and then its argument prototype would still apply. */ 12136char dlopen (); 12137int 12138main () 12139{ 12140dlopen (); 12141 ; 12142 return 0; 12143} 12144_ACEOF 12145rm -f conftest.$ac_objext conftest$ac_exeext 12146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12147 (eval $ac_link) 2>conftest.er1 12148 ac_status=$? 12149 grep -v '^ *+' conftest.er1 >conftest.err 12150 rm -f conftest.er1 12151 cat conftest.err >&5 12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12153 (exit $ac_status); } && 12154 { ac_try='test -z "$ac_cxx_werror_flag" 12155 || test ! -s conftest.err' 12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12157 (eval $ac_try) 2>&5 12158 ac_status=$? 12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12160 (exit $ac_status); }; } && 12161 { ac_try='test -s conftest$ac_exeext' 12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12163 (eval $ac_try) 2>&5 12164 ac_status=$? 12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12166 (exit $ac_status); }; }; then 12167 ac_cv_lib_svld_dlopen=yes 12168else 12169 echo "$as_me: failed program was:" >&5 12170sed 's/^/| /' conftest.$ac_ext >&5 12171 12172ac_cv_lib_svld_dlopen=no 12173fi 12174rm -f conftest.err conftest.$ac_objext \ 12175 conftest$ac_exeext conftest.$ac_ext 12176LIBS=$ac_check_lib_save_LIBS 12177fi 12178echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12179echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12180if test $ac_cv_lib_svld_dlopen = yes; then 12181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12182else 12183 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12184echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12185if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12186 echo $ECHO_N "(cached) $ECHO_C" >&6 12187else 12188 ac_check_lib_save_LIBS=$LIBS 12189LIBS="-ldld $LIBS" 12190cat >conftest.$ac_ext <<_ACEOF 12191/* confdefs.h. */ 12192_ACEOF 12193cat confdefs.h >>conftest.$ac_ext 12194cat >>conftest.$ac_ext <<_ACEOF 12195/* end confdefs.h. */ 12196 12197/* Override any gcc2 internal prototype to avoid an error. */ 12198#ifdef __cplusplus 12199extern "C" 12200#endif 12201/* We use char because int might match the return type of a gcc2 12202 builtin and then its argument prototype would still apply. */ 12203char dld_link (); 12204int 12205main () 12206{ 12207dld_link (); 12208 ; 12209 return 0; 12210} 12211_ACEOF 12212rm -f conftest.$ac_objext conftest$ac_exeext 12213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12214 (eval $ac_link) 2>conftest.er1 12215 ac_status=$? 12216 grep -v '^ *+' conftest.er1 >conftest.err 12217 rm -f conftest.er1 12218 cat conftest.err >&5 12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12220 (exit $ac_status); } && 12221 { ac_try='test -z "$ac_cxx_werror_flag" 12222 || test ! -s conftest.err' 12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12224 (eval $ac_try) 2>&5 12225 ac_status=$? 12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12227 (exit $ac_status); }; } && 12228 { ac_try='test -s conftest$ac_exeext' 12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12230 (eval $ac_try) 2>&5 12231 ac_status=$? 12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12233 (exit $ac_status); }; }; then 12234 ac_cv_lib_dld_dld_link=yes 12235else 12236 echo "$as_me: failed program was:" >&5 12237sed 's/^/| /' conftest.$ac_ext >&5 12238 12239ac_cv_lib_dld_dld_link=no 12240fi 12241rm -f conftest.err conftest.$ac_objext \ 12242 conftest$ac_exeext conftest.$ac_ext 12243LIBS=$ac_check_lib_save_LIBS 12244fi 12245echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12246echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12247if test $ac_cv_lib_dld_dld_link = yes; then 12248 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12249fi 12250 12251 12252fi 12253 12254 12255fi 12256 12257 12258fi 12259 12260 12261fi 12262 12263 12264fi 12265 12266 ;; 12267 esac 12268 12269 if test "x$lt_cv_dlopen" != xno; then 12270 enable_dlopen=yes 12271 else 12272 enable_dlopen=no 12273 fi 12274 12275 case $lt_cv_dlopen in 12276 dlopen) 12277 save_CPPFLAGS="$CPPFLAGS" 12278 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12279 12280 save_LDFLAGS="$LDFLAGS" 12281 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12282 12283 save_LIBS="$LIBS" 12284 LIBS="$lt_cv_dlopen_libs $LIBS" 12285 12286 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12287echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12288if test "${lt_cv_dlopen_self+set}" = set; then 12289 echo $ECHO_N "(cached) $ECHO_C" >&6 12290else 12291 if test "$cross_compiling" = yes; then : 12292 lt_cv_dlopen_self=cross 12293else 12294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12295 lt_status=$lt_dlunknown 12296 cat > conftest.$ac_ext <<EOF 12297#line 12297 "configure" 12298#include "confdefs.h" 12299 12300#if HAVE_DLFCN_H 12301#include <dlfcn.h> 12302#endif 12303 12304#include <stdio.h> 12305 12306#ifdef RTLD_GLOBAL 12307# define LT_DLGLOBAL RTLD_GLOBAL 12308#else 12309# ifdef DL_GLOBAL 12310# define LT_DLGLOBAL DL_GLOBAL 12311# else 12312# define LT_DLGLOBAL 0 12313# endif 12314#endif 12315 12316/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12317 find out it does not work in some platform. */ 12318#ifndef LT_DLLAZY_OR_NOW 12319# ifdef RTLD_LAZY 12320# define LT_DLLAZY_OR_NOW RTLD_LAZY 12321# else 12322# ifdef DL_LAZY 12323# define LT_DLLAZY_OR_NOW DL_LAZY 12324# else 12325# ifdef RTLD_NOW 12326# define LT_DLLAZY_OR_NOW RTLD_NOW 12327# else 12328# ifdef DL_NOW 12329# define LT_DLLAZY_OR_NOW DL_NOW 12330# else 12331# define LT_DLLAZY_OR_NOW 0 12332# endif 12333# endif 12334# endif 12335# endif 12336#endif 12337 12338#ifdef __cplusplus 12339extern "C" void exit (int); 12340#endif 12341 12342void fnord() { int i=42;} 12343int main () 12344{ 12345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12346 int status = $lt_dlunknown; 12347 12348 if (self) 12349 { 12350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12352 /* dlclose (self); */ 12353 } 12354 12355 exit (status); 12356} 12357EOF 12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12359 (eval $ac_link) 2>&5 12360 ac_status=$? 12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12363 (./conftest; exit; ) 2>/dev/null 12364 lt_status=$? 12365 case x$lt_status in 12366 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12367 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12368 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12369 esac 12370 else : 12371 # compilation failed 12372 lt_cv_dlopen_self=no 12373 fi 12374fi 12375rm -fr conftest* 12376 12377 12378fi 12379echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12380echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12381 12382 if test "x$lt_cv_dlopen_self" = xyes; then 12383 LDFLAGS="$LDFLAGS $link_static_flag" 12384 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12385echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12386if test "${lt_cv_dlopen_self_static+set}" = set; then 12387 echo $ECHO_N "(cached) $ECHO_C" >&6 12388else 12389 if test "$cross_compiling" = yes; then : 12390 lt_cv_dlopen_self_static=cross 12391else 12392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12393 lt_status=$lt_dlunknown 12394 cat > conftest.$ac_ext <<EOF 12395#line 12395 "configure" 12396#include "confdefs.h" 12397 12398#if HAVE_DLFCN_H 12399#include <dlfcn.h> 12400#endif 12401 12402#include <stdio.h> 12403 12404#ifdef RTLD_GLOBAL 12405# define LT_DLGLOBAL RTLD_GLOBAL 12406#else 12407# ifdef DL_GLOBAL 12408# define LT_DLGLOBAL DL_GLOBAL 12409# else 12410# define LT_DLGLOBAL 0 12411# endif 12412#endif 12413 12414/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12415 find out it does not work in some platform. */ 12416#ifndef LT_DLLAZY_OR_NOW 12417# ifdef RTLD_LAZY 12418# define LT_DLLAZY_OR_NOW RTLD_LAZY 12419# else 12420# ifdef DL_LAZY 12421# define LT_DLLAZY_OR_NOW DL_LAZY 12422# else 12423# ifdef RTLD_NOW 12424# define LT_DLLAZY_OR_NOW RTLD_NOW 12425# else 12426# ifdef DL_NOW 12427# define LT_DLLAZY_OR_NOW DL_NOW 12428# else 12429# define LT_DLLAZY_OR_NOW 0 12430# endif 12431# endif 12432# endif 12433# endif 12434#endif 12435 12436#ifdef __cplusplus 12437extern "C" void exit (int); 12438#endif 12439 12440void fnord() { int i=42;} 12441int main () 12442{ 12443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12444 int status = $lt_dlunknown; 12445 12446 if (self) 12447 { 12448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12449 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12450 /* dlclose (self); */ 12451 } 12452 12453 exit (status); 12454} 12455EOF 12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12457 (eval $ac_link) 2>&5 12458 ac_status=$? 12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12460 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12461 (./conftest; exit; ) 2>/dev/null 12462 lt_status=$? 12463 case x$lt_status in 12464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12466 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12467 esac 12468 else : 12469 # compilation failed 12470 lt_cv_dlopen_self_static=no 12471 fi 12472fi 12473rm -fr conftest* 12474 12475 12476fi 12477echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12478echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12479 fi 12480 12481 CPPFLAGS="$save_CPPFLAGS" 12482 LDFLAGS="$save_LDFLAGS" 12483 LIBS="$save_LIBS" 12484 ;; 12485 esac 12486 12487 case $lt_cv_dlopen_self in 12488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12489 *) enable_dlopen_self=unknown ;; 12490 esac 12491 12492 case $lt_cv_dlopen_self_static in 12493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12494 *) enable_dlopen_self_static=unknown ;; 12495 esac 12496fi 12497 12498 12499# The else clause should only fire when bootstrapping the 12500# libtool distribution, otherwise you forgot to ship ltmain.sh 12501# with your package, and you will get complaints that there are 12502# no rules to generate ltmain.sh. 12503if test -f "$ltmain"; then 12504 # See if we are running on zsh, and set the options which allow our commands through 12505 # without removal of \ escapes. 12506 if test -n "${ZSH_VERSION+set}" ; then 12507 setopt NO_GLOB_SUBST 12508 fi 12509 # Now quote all the things that may contain metacharacters while being 12510 # careful not to overquote the AC_SUBSTed values. We take copies of the 12511 # variables and quote the copies for generation of the libtool script. 12512 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12513 SED SHELL STRIP \ 12514 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12515 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12516 deplibs_check_method reload_flag reload_cmds need_locks \ 12517 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12518 lt_cv_sys_global_symbol_to_c_name_address \ 12519 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12520 old_postinstall_cmds old_postuninstall_cmds \ 12521 compiler_CXX \ 12522 CC_CXX \ 12523 LD_CXX \ 12524 lt_prog_compiler_wl_CXX \ 12525 lt_prog_compiler_pic_CXX \ 12526 lt_prog_compiler_static_CXX \ 12527 lt_prog_compiler_no_builtin_flag_CXX \ 12528 export_dynamic_flag_spec_CXX \ 12529 thread_safe_flag_spec_CXX \ 12530 whole_archive_flag_spec_CXX \ 12531 enable_shared_with_static_runtimes_CXX \ 12532 old_archive_cmds_CXX \ 12533 old_archive_from_new_cmds_CXX \ 12534 predep_objects_CXX \ 12535 postdep_objects_CXX \ 12536 predeps_CXX \ 12537 postdeps_CXX \ 12538 compiler_lib_search_path_CXX \ 12539 archive_cmds_CXX \ 12540 archive_expsym_cmds_CXX \ 12541 postinstall_cmds_CXX \ 12542 postuninstall_cmds_CXX \ 12543 old_archive_from_expsyms_cmds_CXX \ 12544 allow_undefined_flag_CXX \ 12545 no_undefined_flag_CXX \ 12546 export_symbols_cmds_CXX \ 12547 hardcode_libdir_flag_spec_CXX \ 12548 hardcode_libdir_flag_spec_ld_CXX \ 12549 hardcode_libdir_separator_CXX \ 12550 hardcode_automatic_CXX \ 12551 module_cmds_CXX \ 12552 module_expsym_cmds_CXX \ 12553 lt_cv_prog_compiler_c_o_CXX \ 12554 exclude_expsyms_CXX \ 12555 include_expsyms_CXX; do 12556 12557 case $var in 12558 old_archive_cmds_CXX | \ 12559 old_archive_from_new_cmds_CXX | \ 12560 archive_cmds_CXX | \ 12561 archive_expsym_cmds_CXX | \ 12562 module_cmds_CXX | \ 12563 module_expsym_cmds_CXX | \ 12564 old_archive_from_expsyms_cmds_CXX | \ 12565 export_symbols_cmds_CXX | \ 12566 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12567 postinstall_cmds | postuninstall_cmds | \ 12568 old_postinstall_cmds | old_postuninstall_cmds | \ 12569 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12570 # Double-quote double-evaled strings. 12571 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12572 ;; 12573 *) 12574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12575 ;; 12576 esac 12577 done 12578 12579 case $lt_echo in 12580 *'\$0 --fallback-echo"') 12581 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12582 ;; 12583 esac 12584 12585cfgfile="$ofile" 12586 12587 cat <<__EOF__ >> "$cfgfile" 12588# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12589 12590# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12591 12592# Shell to use when invoking shell scripts. 12593SHELL=$lt_SHELL 12594 12595# Whether or not to build shared libraries. 12596build_libtool_libs=$enable_shared 12597 12598# Whether or not to build static libraries. 12599build_old_libs=$enable_static 12600 12601# Whether or not to add -lc for building shared libraries. 12602build_libtool_need_lc=$archive_cmds_need_lc_CXX 12603 12604# Whether or not to disallow shared libs when runtime libs are static 12605allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12606 12607# Whether or not to optimize for fast installation. 12608fast_install=$enable_fast_install 12609 12610# The host system. 12611host_alias=$host_alias 12612host=$host 12613 12614# An echo program that does not interpret backslashes. 12615echo=$lt_echo 12616 12617# The archiver. 12618AR=$lt_AR 12619AR_FLAGS=$lt_AR_FLAGS 12620 12621# A C compiler. 12622LTCC=$lt_LTCC 12623 12624# A language-specific compiler. 12625CC=$lt_compiler_CXX 12626 12627# Is the compiler the GNU C compiler? 12628with_gcc=$GCC_CXX 12629 12630# An ERE matcher. 12631EGREP=$lt_EGREP 12632 12633# The linker used to build libraries. 12634LD=$lt_LD_CXX 12635 12636# Whether we need hard or soft links. 12637LN_S=$lt_LN_S 12638 12639# A BSD-compatible nm program. 12640NM=$lt_NM 12641 12642# A symbol stripping program 12643STRIP=$lt_STRIP 12644 12645# Used to examine libraries when file_magic_cmd begins "file" 12646MAGIC_CMD=$MAGIC_CMD 12647 12648# Used on cygwin: DLL creation program. 12649DLLTOOL="$DLLTOOL" 12650 12651# Used on cygwin: object dumper. 12652OBJDUMP="$OBJDUMP" 12653 12654# Used on cygwin: assembler. 12655AS="$AS" 12656 12657# The name of the directory that contains temporary libtool files. 12658objdir=$objdir 12659 12660# How to create reloadable object files. 12661reload_flag=$lt_reload_flag 12662reload_cmds=$lt_reload_cmds 12663 12664# How to pass a linker flag through the compiler. 12665wl=$lt_lt_prog_compiler_wl_CXX 12666 12667# Object file suffix (normally "o"). 12668objext="$ac_objext" 12669 12670# Old archive suffix (normally "a"). 12671libext="$libext" 12672 12673# Shared library suffix (normally ".so"). 12674shrext_cmds='$shrext_cmds' 12675 12676# Executable file suffix (normally ""). 12677exeext="$exeext" 12678 12679# Additional compiler flags for building library objects. 12680pic_flag=$lt_lt_prog_compiler_pic_CXX 12681pic_mode=$pic_mode 12682 12683# What is the maximum length of a command? 12684max_cmd_len=$lt_cv_sys_max_cmd_len 12685 12686# Does compiler simultaneously support -c and -o options? 12687compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12688 12689# Must we lock files when doing compilation ? 12690need_locks=$lt_need_locks 12691 12692# Do we need the lib prefix for modules? 12693need_lib_prefix=$need_lib_prefix 12694 12695# Do we need a version for libraries? 12696need_version=$need_version 12697 12698# Whether dlopen is supported. 12699dlopen_support=$enable_dlopen 12700 12701# Whether dlopen of programs is supported. 12702dlopen_self=$enable_dlopen_self 12703 12704# Whether dlopen of statically linked programs is supported. 12705dlopen_self_static=$enable_dlopen_self_static 12706 12707# Compiler flag to prevent dynamic linking. 12708link_static_flag=$lt_lt_prog_compiler_static_CXX 12709 12710# Compiler flag to turn off builtin functions. 12711no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12712 12713# Compiler flag to allow reflexive dlopens. 12714export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12715 12716# Compiler flag to generate shared objects directly from archives. 12717whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12718 12719# Compiler flag to generate thread-safe objects. 12720thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12721 12722# Library versioning type. 12723version_type=$version_type 12724 12725# Format of library name prefix. 12726libname_spec=$lt_libname_spec 12727 12728# List of archive names. First name is the real one, the rest are links. 12729# The last name is the one that the linker finds with -lNAME. 12730library_names_spec=$lt_library_names_spec 12731 12732# The coded name of the library, if different from the real name. 12733soname_spec=$lt_soname_spec 12734 12735# Commands used to build and install an old-style archive. 12736RANLIB=$lt_RANLIB 12737old_archive_cmds=$lt_old_archive_cmds_CXX 12738old_postinstall_cmds=$lt_old_postinstall_cmds 12739old_postuninstall_cmds=$lt_old_postuninstall_cmds 12740 12741# Create an old-style archive from a shared archive. 12742old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12743 12744# Create a temporary old-style archive to link instead of a shared archive. 12745old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12746 12747# Commands used to build and install a shared archive. 12748archive_cmds=$lt_archive_cmds_CXX 12749archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12750postinstall_cmds=$lt_postinstall_cmds 12751postuninstall_cmds=$lt_postuninstall_cmds 12752 12753# Commands used to build a loadable module (assumed same as above if empty) 12754module_cmds=$lt_module_cmds_CXX 12755module_expsym_cmds=$lt_module_expsym_cmds_CXX 12756 12757# Commands to strip libraries. 12758old_striplib=$lt_old_striplib 12759striplib=$lt_striplib 12760 12761# Dependencies to place before the objects being linked to create a 12762# shared library. 12763predep_objects=$lt_predep_objects_CXX 12764 12765# Dependencies to place after the objects being linked to create a 12766# shared library. 12767postdep_objects=$lt_postdep_objects_CXX 12768 12769# Dependencies to place before the objects being linked to create a 12770# shared library. 12771predeps=$lt_predeps_CXX 12772 12773# Dependencies to place after the objects being linked to create a 12774# shared library. 12775postdeps=$lt_postdeps_CXX 12776 12777# The library search path used internally by the compiler when linking 12778# a shared library. 12779compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12780 12781# Method to check whether dependent libraries are shared objects. 12782deplibs_check_method=$lt_deplibs_check_method 12783 12784# Command to use when deplibs_check_method == file_magic. 12785file_magic_cmd=$lt_file_magic_cmd 12786 12787# Flag that allows shared libraries with undefined symbols to be built. 12788allow_undefined_flag=$lt_allow_undefined_flag_CXX 12789 12790# Flag that forces no undefined symbols. 12791no_undefined_flag=$lt_no_undefined_flag_CXX 12792 12793# Commands used to finish a libtool library installation in a directory. 12794finish_cmds=$lt_finish_cmds 12795 12796# Same as above, but a single script fragment to be evaled but not shown. 12797finish_eval=$lt_finish_eval 12798 12799# Take the output of nm and produce a listing of raw symbols and C names. 12800global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12801 12802# Transform the output of nm in a proper C declaration 12803global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12804 12805# Transform the output of nm in a C name address pair 12806global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12807 12808# This is the shared library runtime path variable. 12809runpath_var=$runpath_var 12810 12811# This is the shared library path variable. 12812shlibpath_var=$shlibpath_var 12813 12814# Is shlibpath searched before the hard-coded library search path? 12815shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12816 12817# How to hardcode a shared library path into an executable. 12818hardcode_action=$hardcode_action_CXX 12819 12820# Whether we should hardcode library paths into libraries. 12821hardcode_into_libs=$hardcode_into_libs 12822 12823# Flag to hardcode \$libdir into a binary during linking. 12824# This must work even if \$libdir does not exist. 12825hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12826 12827# If ld is used when linking, flag to hardcode \$libdir into 12828# a binary during linking. This must work even if \$libdir does 12829# not exist. 12830hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12831 12832# Whether we need a single -rpath flag with a separated argument. 12833hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12834 12835# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12836# resulting binary. 12837hardcode_direct=$hardcode_direct_CXX 12838 12839# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12840# resulting binary. 12841hardcode_minus_L=$hardcode_minus_L_CXX 12842 12843# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12844# the resulting binary. 12845hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12846 12847# Set to yes if building a shared library automatically hardcodes DIR into the library 12848# and all subsequent libraries and executables linked against it. 12849hardcode_automatic=$hardcode_automatic_CXX 12850 12851# Variables whose values should be saved in libtool wrapper scripts and 12852# restored at relink time. 12853variables_saved_for_relink="$variables_saved_for_relink" 12854 12855# Whether libtool must link a program against all its dependency libraries. 12856link_all_deplibs=$link_all_deplibs_CXX 12857 12858# Compile-time system search path for libraries 12859sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12860 12861# Run-time system search path for libraries 12862sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12863 12864# Fix the shell variable \$srcfile for the compiler. 12865fix_srcfile_path="$fix_srcfile_path_CXX" 12866 12867# Set to yes if exported symbols are required. 12868always_export_symbols=$always_export_symbols_CXX 12869 12870# The commands to list exported symbols. 12871export_symbols_cmds=$lt_export_symbols_cmds_CXX 12872 12873# The commands to extract the exported symbol list from a shared archive. 12874extract_expsyms_cmds=$lt_extract_expsyms_cmds 12875 12876# Symbols that should not be listed in the preloaded symbols. 12877exclude_expsyms=$lt_exclude_expsyms_CXX 12878 12879# Symbols that must always be exported. 12880include_expsyms=$lt_include_expsyms_CXX 12881 12882# ### END LIBTOOL TAG CONFIG: $tagname 12883 12884__EOF__ 12885 12886 12887else 12888 # If there is no Makefile yet, we rely on a make rule to execute 12889 # `config.status --recheck' to rerun these tests and create the 12890 # libtool script then. 12891 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12892 if test -f "$ltmain_in"; then 12893 test -f Makefile && make "$ltmain" 12894 fi 12895fi 12896 12897 12898ac_ext=c 12899ac_cpp='$CPP $CPPFLAGS' 12900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12902ac_compiler_gnu=$ac_cv_c_compiler_gnu 12903 12904CC=$lt_save_CC 12905LDCXX=$LD 12906LD=$lt_save_LD 12907GCC=$lt_save_GCC 12908with_gnu_ldcxx=$with_gnu_ld 12909with_gnu_ld=$lt_save_with_gnu_ld 12910lt_cv_path_LDCXX=$lt_cv_path_LD 12911lt_cv_path_LD=$lt_save_path_LD 12912lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12913lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12914 12915 else 12916 tagname="" 12917 fi 12918 ;; 12919 12920 F77) 12921 if test -n "$F77" && test "X$F77" != "Xno"; then 12922 12923ac_ext=f 12924ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12925ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12926ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12927 12928 12929archive_cmds_need_lc_F77=no 12930allow_undefined_flag_F77= 12931always_export_symbols_F77=no 12932archive_expsym_cmds_F77= 12933export_dynamic_flag_spec_F77= 12934hardcode_direct_F77=no 12935hardcode_libdir_flag_spec_F77= 12936hardcode_libdir_flag_spec_ld_F77= 12937hardcode_libdir_separator_F77= 12938hardcode_minus_L_F77=no 12939hardcode_automatic_F77=no 12940module_cmds_F77= 12941module_expsym_cmds_F77= 12942link_all_deplibs_F77=unknown 12943old_archive_cmds_F77=$old_archive_cmds 12944no_undefined_flag_F77= 12945whole_archive_flag_spec_F77= 12946enable_shared_with_static_runtimes_F77=no 12947 12948# Source file extension for f77 test sources. 12949ac_ext=f 12950 12951# Object file extension for compiled f77 test sources. 12952objext=o 12953objext_F77=$objext 12954 12955# Code to be used in simple compile tests 12956lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12957 12958# Code to be used in simple link tests 12959lt_simple_link_test_code=" program t\n end\n" 12960 12961# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12962 12963# If no C compiler was specified, use CC. 12964LTCC=${LTCC-"$CC"} 12965 12966# Allow CC to be a program name with arguments. 12967compiler=$CC 12968 12969 12970# Allow CC to be a program name with arguments. 12971lt_save_CC="$CC" 12972CC=${F77-"f77"} 12973compiler=$CC 12974compiler_F77=$CC 12975cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 12976 12977echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12978echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12979echo "$as_me:$LINENO: result: $can_build_shared" >&5 12980echo "${ECHO_T}$can_build_shared" >&6 12981 12982echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12983echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12984test "$can_build_shared" = "no" && enable_shared=no 12985 12986# On AIX, shared libraries and static libraries use the same namespace, and 12987# are all built from PIC. 12988case "$host_os" in 12989aix3*) 12990 test "$enable_shared" = yes && enable_static=no 12991 if test -n "$RANLIB"; then 12992 archive_cmds="$archive_cmds;\$RANLIB \$lib" 12993 postinstall_cmds='$RANLIB $lib' 12994 fi 12995 ;; 12996aix4* | aix5*) 12997 test "$enable_shared" = yes && enable_static=no 12998 ;; 12999esac 13000echo "$as_me:$LINENO: result: $enable_shared" >&5 13001echo "${ECHO_T}$enable_shared" >&6 13002 13003echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13004echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13005# Make sure either enable_shared or enable_static is yes. 13006test "$enable_shared" = yes || enable_static=yes 13007echo "$as_me:$LINENO: result: $enable_static" >&5 13008echo "${ECHO_T}$enable_static" >&6 13009 13010test "$ld_shlibs_F77" = no && can_build_shared=no 13011 13012GCC_F77="$G77" 13013LD_F77="$LD" 13014 13015lt_prog_compiler_wl_F77= 13016lt_prog_compiler_pic_F77= 13017lt_prog_compiler_static_F77= 13018 13019echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13020echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13021 13022 if test "$GCC" = yes; then 13023 lt_prog_compiler_wl_F77='-Wl,' 13024 lt_prog_compiler_static_F77='-static' 13025 13026 case $host_os in 13027 aix*) 13028 # All AIX code is PIC. 13029 if test "$host_cpu" = ia64; then 13030 # AIX 5 now supports IA64 processor 13031 lt_prog_compiler_static_F77='-Bstatic' 13032 fi 13033 ;; 13034 13035 amigaos*) 13036 # FIXME: we need at least 68020 code to build shared libraries, but 13037 # adding the `-m68020' flag to GCC prevents building anything better, 13038 # like `-m68040'. 13039 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13040 ;; 13041 13042 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13043 # PIC is the default for these OSes. 13044 ;; 13045 13046 mingw* | pw32* | os2*) 13047 # This hack is so that the source file can tell whether it is being 13048 # built for inclusion in a dll (and should export symbols for example). 13049 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13050 ;; 13051 13052 darwin* | rhapsody*) 13053 # PIC is the default on this platform 13054 # Common symbols not allowed in MH_DYLIB files 13055 lt_prog_compiler_pic_F77='-fno-common' 13056 ;; 13057 13058 msdosdjgpp*) 13059 # Just because we use GCC doesn't mean we suddenly get shared libraries 13060 # on systems that don't support them. 13061 lt_prog_compiler_can_build_shared_F77=no 13062 enable_shared=no 13063 ;; 13064 13065 sysv4*MP*) 13066 if test -d /usr/nec; then 13067 lt_prog_compiler_pic_F77=-Kconform_pic 13068 fi 13069 ;; 13070 13071 hpux*) 13072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13073 # not for PA HP-UX. 13074 case "$host_cpu" in 13075 hppa*64*|ia64*) 13076 # +Z the default 13077 ;; 13078 *) 13079 lt_prog_compiler_pic_F77='-fPIC' 13080 ;; 13081 esac 13082 ;; 13083 13084 *) 13085 lt_prog_compiler_pic_F77='-fPIC' 13086 ;; 13087 esac 13088 else 13089 # PORTME Check for flag to pass linker flags through the system compiler. 13090 case $host_os in 13091 aix*) 13092 lt_prog_compiler_wl_F77='-Wl,' 13093 if test "$host_cpu" = ia64; then 13094 # AIX 5 now supports IA64 processor 13095 lt_prog_compiler_static_F77='-Bstatic' 13096 else 13097 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13098 fi 13099 ;; 13100 darwin*) 13101 # PIC is the default on this platform 13102 # Common symbols not allowed in MH_DYLIB files 13103 case "$cc_basename" in 13104 xlc*) 13105 lt_prog_compiler_pic_F77='-qnocommon' 13106 lt_prog_compiler_wl_F77='-Wl,' 13107 ;; 13108 esac 13109 ;; 13110 13111 mingw* | pw32* | os2*) 13112 # This hack is so that the source file can tell whether it is being 13113 # built for inclusion in a dll (and should export symbols for example). 13114 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13115 ;; 13116 13117 hpux9* | hpux10* | hpux11*) 13118 lt_prog_compiler_wl_F77='-Wl,' 13119 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13120 # not for PA HP-UX. 13121 case "$host_cpu" in 13122 hppa*64*|ia64*) 13123 # +Z the default 13124 ;; 13125 *) 13126 lt_prog_compiler_pic_F77='+Z' 13127 ;; 13128 esac 13129 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13130 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13131 ;; 13132 13133 irix5* | irix6* | nonstopux*) 13134 lt_prog_compiler_wl_F77='-Wl,' 13135 # PIC (with -KPIC) is the default. 13136 lt_prog_compiler_static_F77='-non_shared' 13137 ;; 13138 13139 newsos6) 13140 lt_prog_compiler_pic_F77='-KPIC' 13141 lt_prog_compiler_static_F77='-Bstatic' 13142 ;; 13143 13144 linux*) 13145 case $CC in 13146 icc* | ecc*) 13147 lt_prog_compiler_wl_F77='-Wl,' 13148 lt_prog_compiler_pic_F77='-KPIC' 13149 lt_prog_compiler_static_F77='-static' 13150 ;; 13151 ccc*) 13152 lt_prog_compiler_wl_F77='-Wl,' 13153 # All Alpha code is PIC. 13154 lt_prog_compiler_static_F77='-non_shared' 13155 ;; 13156 esac 13157 ;; 13158 13159 osf3* | osf4* | osf5*) 13160 lt_prog_compiler_wl_F77='-Wl,' 13161 # All OSF/1 code is PIC. 13162 lt_prog_compiler_static_F77='-non_shared' 13163 ;; 13164 13165 sco3.2v5*) 13166 lt_prog_compiler_pic_F77='-Kpic' 13167 lt_prog_compiler_static_F77='-dn' 13168 ;; 13169 13170 solaris*) 13171 lt_prog_compiler_wl_F77='-Wl,' 13172 lt_prog_compiler_pic_F77='-KPIC' 13173 lt_prog_compiler_static_F77='-Bstatic' 13174 ;; 13175 13176 sunos4*) 13177 lt_prog_compiler_wl_F77='-Qoption ld ' 13178 lt_prog_compiler_pic_F77='-PIC' 13179 lt_prog_compiler_static_F77='-Bstatic' 13180 ;; 13181 13182 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13183 lt_prog_compiler_wl_F77='-Wl,' 13184 lt_prog_compiler_pic_F77='-KPIC' 13185 lt_prog_compiler_static_F77='-Bstatic' 13186 ;; 13187 13188 sysv4*MP*) 13189 if test -d /usr/nec ;then 13190 lt_prog_compiler_pic_F77='-Kconform_pic' 13191 lt_prog_compiler_static_F77='-Bstatic' 13192 fi 13193 ;; 13194 13195 uts4*) 13196 lt_prog_compiler_pic_F77='-pic' 13197 lt_prog_compiler_static_F77='-Bstatic' 13198 ;; 13199 13200 *) 13201 lt_prog_compiler_can_build_shared_F77=no 13202 ;; 13203 esac 13204 fi 13205 13206echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13207echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13208 13209# 13210# Check to make sure the PIC flag actually works. 13211# 13212if test -n "$lt_prog_compiler_pic_F77"; then 13213 13214echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13215echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13216if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13217 echo $ECHO_N "(cached) $ECHO_C" >&6 13218else 13219 lt_prog_compiler_pic_works_F77=no 13220 ac_outfile=conftest.$ac_objext 13221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13222 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13223 # Insert the option either (1) after the last *FLAGS variable, or 13224 # (2) before a word containing "conftest.", or (3) at the end. 13225 # Note that $ac_compile itself does not contain backslashes and begins 13226 # with a dollar sign (not a hyphen), so the echo should work correctly. 13227 # The option is referenced via a variable to avoid confusing sed. 13228 lt_compile=`echo "$ac_compile" | $SED \ 13229 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13231 -e 's:$: $lt_compiler_flag:'` 13232 (eval echo "\"\$as_me:13232: $lt_compile\"" >&5) 13233 (eval "$lt_compile" 2>conftest.err) 13234 ac_status=$? 13235 cat conftest.err >&5 13236 echo "$as_me:13236: \$? = $ac_status" >&5 13237 if (exit $ac_status) && test -s "$ac_outfile"; then 13238 # The compiler can only warn and ignore the option if not recognized 13239 # So say no if there are warnings 13240 if test ! -s conftest.err; then 13241 lt_prog_compiler_pic_works_F77=yes 13242 fi 13243 fi 13244 $rm conftest* 13245 13246fi 13247echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13248echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13249 13250if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13251 case $lt_prog_compiler_pic_F77 in 13252 "" | " "*) ;; 13253 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13254 esac 13255else 13256 lt_prog_compiler_pic_F77= 13257 lt_prog_compiler_can_build_shared_F77=no 13258fi 13259 13260fi 13261case "$host_os" in 13262 # For platforms which do not support PIC, -DPIC is meaningless: 13263 *djgpp*) 13264 lt_prog_compiler_pic_F77= 13265 ;; 13266 *) 13267 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13268 ;; 13269esac 13270 13271echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13272echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13273if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13274 echo $ECHO_N "(cached) $ECHO_C" >&6 13275else 13276 lt_cv_prog_compiler_c_o_F77=no 13277 $rm -r conftest 2>/dev/null 13278 mkdir conftest 13279 cd conftest 13280 mkdir out 13281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13282 13283 lt_compiler_flag="-o out/conftest2.$ac_objext" 13284 # Insert the option either (1) after the last *FLAGS variable, or 13285 # (2) before a word containing "conftest.", or (3) at the end. 13286 # Note that $ac_compile itself does not contain backslashes and begins 13287 # with a dollar sign (not a hyphen), so the echo should work correctly. 13288 lt_compile=`echo "$ac_compile" | $SED \ 13289 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13291 -e 's:$: $lt_compiler_flag:'` 13292 (eval echo "\"\$as_me:13292: $lt_compile\"" >&5) 13293 (eval "$lt_compile" 2>out/conftest.err) 13294 ac_status=$? 13295 cat out/conftest.err >&5 13296 echo "$as_me:13296: \$? = $ac_status" >&5 13297 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13298 then 13299 # The compiler can only warn and ignore the option if not recognized 13300 # So say no if there are warnings 13301 if test ! -s out/conftest.err; then 13302 lt_cv_prog_compiler_c_o_F77=yes 13303 fi 13304 fi 13305 chmod u+w . 13306 $rm conftest* 13307 # SGI C++ compiler will create directory out/ii_files/ for 13308 # template instantiation 13309 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13310 $rm out/* && rmdir out 13311 cd .. 13312 rmdir conftest 13313 $rm conftest* 13314 13315fi 13316echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13317echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13318 13319 13320hard_links="nottested" 13321if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13322 # do not overwrite the value of need_locks provided by the user 13323 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13324echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13325 hard_links=yes 13326 $rm conftest* 13327 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13328 touch conftest.a 13329 ln conftest.a conftest.b 2>&5 || hard_links=no 13330 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13331 echo "$as_me:$LINENO: result: $hard_links" >&5 13332echo "${ECHO_T}$hard_links" >&6 13333 if test "$hard_links" = no; then 13334 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13335echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13336 need_locks=warn 13337 fi 13338else 13339 need_locks=no 13340fi 13341 13342echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13343echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13344 13345 runpath_var= 13346 allow_undefined_flag_F77= 13347 enable_shared_with_static_runtimes_F77=no 13348 archive_cmds_F77= 13349 archive_expsym_cmds_F77= 13350 old_archive_From_new_cmds_F77= 13351 old_archive_from_expsyms_cmds_F77= 13352 export_dynamic_flag_spec_F77= 13353 whole_archive_flag_spec_F77= 13354 thread_safe_flag_spec_F77= 13355 hardcode_libdir_flag_spec_F77= 13356 hardcode_libdir_flag_spec_ld_F77= 13357 hardcode_libdir_separator_F77= 13358 hardcode_direct_F77=no 13359 hardcode_minus_L_F77=no 13360 hardcode_shlibpath_var_F77=unsupported 13361 link_all_deplibs_F77=unknown 13362 hardcode_automatic_F77=no 13363 module_cmds_F77= 13364 module_expsym_cmds_F77= 13365 always_export_symbols_F77=no 13366 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13367 # include_expsyms should be a list of space-separated symbols to be *always* 13368 # included in the symbol list 13369 include_expsyms_F77= 13370 # exclude_expsyms can be an extended regexp of symbols to exclude 13371 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13372 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13373 # as well as any symbol that contains `d'. 13374 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13376 # platforms (ab)use it in PIC code, but their linkers get confused if 13377 # the symbol is explicitly referenced. Since portable code cannot 13378 # rely on this symbol name, it's probably fine to never include it in 13379 # preloaded symbol tables. 13380 extract_expsyms_cmds= 13381 13382 case $host_os in 13383 cygwin* | mingw* | pw32*) 13384 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13385 # When not using gcc, we currently assume that we are using 13386 # Microsoft Visual C++. 13387 if test "$GCC" != yes; then 13388 with_gnu_ld=no 13389 fi 13390 ;; 13391 openbsd*) 13392 with_gnu_ld=no 13393 ;; 13394 esac 13395 13396 ld_shlibs_F77=yes 13397 if test "$with_gnu_ld" = yes; then 13398 # If archive_cmds runs LD, not CC, wlarc should be empty 13399 wlarc='${wl}' 13400 13401 # See if GNU ld supports shared libraries. 13402 case $host_os in 13403 aix3* | aix4* | aix5*) 13404 # On AIX/PPC, the GNU linker is very broken 13405 if test "$host_cpu" != ia64; then 13406 ld_shlibs_F77=no 13407 cat <<EOF 1>&2 13408 13409*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13410*** to be unable to reliably create shared libraries on AIX. 13411*** Therefore, libtool is disabling shared libraries support. If you 13412*** really care for shared libraries, you may want to modify your PATH 13413*** so that a non-GNU linker is found, and then restart. 13414 13415EOF 13416 fi 13417 ;; 13418 13419 amigaos*) 13420 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)' 13421 hardcode_libdir_flag_spec_F77='-L$libdir' 13422 hardcode_minus_L_F77=yes 13423 13424 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13425 # that the semantics of dynamic libraries on AmigaOS, at least up 13426 # to version 4, is to share data among multiple programs linked 13427 # with the same dynamic library. Since this doesn't match the 13428 # behavior of shared libraries on other platforms, we can't use 13429 # them. 13430 ld_shlibs_F77=no 13431 ;; 13432 13433 beos*) 13434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13435 allow_undefined_flag_F77=unsupported 13436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13437 # support --undefined. This deserves some investigation. FIXME 13438 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13439 else 13440 ld_shlibs_F77=no 13441 fi 13442 ;; 13443 13444 cygwin* | mingw* | pw32*) 13445 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13446 # as there is no search path for DLLs. 13447 hardcode_libdir_flag_spec_F77='-L$libdir' 13448 allow_undefined_flag_F77=unsupported 13449 always_export_symbols_F77=no 13450 enable_shared_with_static_runtimes_F77=yes 13451 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13452 13453 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13454 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13455 # If the export-symbols file already is a .def file (1st line 13456 # is EXPORTS), use it as is; otherwise, prepend... 13457 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13458 cp $export_symbols $output_objdir/$soname.def; 13459 else 13460 echo EXPORTS > $output_objdir/$soname.def; 13461 cat $export_symbols >> $output_objdir/$soname.def; 13462 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13463 else 13464 ld_shlibs=no 13465 fi 13466 ;; 13467 13468 netbsd*) 13469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13470 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13471 wlarc= 13472 else 13473 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13474 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13475 fi 13476 ;; 13477 13478 solaris* | sysv5*) 13479 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13480 ld_shlibs_F77=no 13481 cat <<EOF 1>&2 13482 13483*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13484*** create shared libraries on Solaris systems. Therefore, libtool 13485*** is disabling shared libraries support. We urge you to upgrade GNU 13486*** binutils to release 2.9.1 or newer. Another option is to modify 13487*** your PATH or compiler configuration so that the native linker is 13488*** used, and then restart. 13489 13490EOF 13491 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13492 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13493 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13494 else 13495 ld_shlibs_F77=no 13496 fi 13497 ;; 13498 13499 sunos4*) 13500 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13501 wlarc= 13502 hardcode_direct_F77=yes 13503 hardcode_shlibpath_var_F77=no 13504 ;; 13505 13506 linux*) 13507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13508 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13509 archive_cmds_F77="$tmp_archive_cmds" 13510 supports_anon_versioning=no 13511 case `$LD -v 2>/dev/null` in 13512 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13515 *\ 2.11.*) ;; # other 2.11 versions 13516 *) supports_anon_versioning=yes ;; 13517 esac 13518 if test $supports_anon_versioning = yes; then 13519 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; 13520 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13521 else 13522 archive_expsym_cmds_F77="$tmp_archive_cmds" 13523 fi 13524 else 13525 ld_shlibs_F77=no 13526 fi 13527 ;; 13528 13529 *) 13530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13533 else 13534 ld_shlibs_F77=no 13535 fi 13536 ;; 13537 esac 13538 13539 if test "$ld_shlibs_F77" = yes; then 13540 runpath_var=LD_RUN_PATH 13541 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13542 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13543 # ancient GNU ld didn't support --whole-archive et. al. 13544 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13545 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13546 else 13547 whole_archive_flag_spec_F77= 13548 fi 13549 fi 13550 else 13551 # PORTME fill in a description of your system's linker (not GNU ld) 13552 case $host_os in 13553 aix3*) 13554 allow_undefined_flag_F77=unsupported 13555 always_export_symbols_F77=yes 13556 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' 13557 # Note: this linker hardcodes the directories in LIBPATH if there 13558 # are no directories specified by -L. 13559 hardcode_minus_L_F77=yes 13560 if test "$GCC" = yes && test -z "$link_static_flag"; then 13561 # Neither direct hardcoding nor static linking is supported with a 13562 # broken collect2. 13563 hardcode_direct_F77=unsupported 13564 fi 13565 ;; 13566 13567 aix4* | aix5*) 13568 if test "$host_cpu" = ia64; then 13569 # On IA64, the linker does run time linking by default, so we don't 13570 # have to do anything special. 13571 aix_use_runtimelinking=no 13572 exp_sym_flag='-Bexport' 13573 no_entry_flag="" 13574 else 13575 # If we're using GNU nm, then we don't want the "-C" option. 13576 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13578 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' 13579 else 13580 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' 13581 fi 13582 aix_use_runtimelinking=no 13583 13584 # Test if we are trying to use run time linking or normal 13585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13586 # need to do runtime linking. 13587 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13588 for ld_flag in $LDFLAGS; do 13589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13590 aix_use_runtimelinking=yes 13591 break 13592 fi 13593 done 13594 esac 13595 13596 exp_sym_flag='-bexport' 13597 no_entry_flag='-bnoentry' 13598 fi 13599 13600 # When large executables or shared objects are built, AIX ld can 13601 # have problems creating the table of contents. If linking a library 13602 # or program results in "error TOC overflow" add -mminimal-toc to 13603 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13604 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13605 13606 archive_cmds_F77='' 13607 hardcode_direct_F77=yes 13608 hardcode_libdir_separator_F77=':' 13609 link_all_deplibs_F77=yes 13610 13611 if test "$GCC" = yes; then 13612 case $host_os in aix4.012|aix4.012.*) 13613 # We only want to do this on AIX 4.2 and lower, the check 13614 # below for broken collect2 doesn't work under 4.3+ 13615 collect2name=`${CC} -print-prog-name=collect2` 13616 if test -f "$collect2name" && \ 13617 strings "$collect2name" | grep resolve_lib_name >/dev/null 13618 then 13619 # We have reworked collect2 13620 hardcode_direct_F77=yes 13621 else 13622 # We have old collect2 13623 hardcode_direct_F77=unsupported 13624 # It fails to find uninstalled libraries when the uninstalled 13625 # path is not listed in the libpath. Setting hardcode_minus_L 13626 # to unsupported forces relinking 13627 hardcode_minus_L_F77=yes 13628 hardcode_libdir_flag_spec_F77='-L$libdir' 13629 hardcode_libdir_separator_F77= 13630 fi 13631 esac 13632 shared_flag='-shared' 13633 else 13634 # not using gcc 13635 if test "$host_cpu" = ia64; then 13636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13637 # chokes on -Wl,-G. The following line is correct: 13638 shared_flag='-G' 13639 else 13640 if test "$aix_use_runtimelinking" = yes; then 13641 shared_flag='${wl}-G' 13642 else 13643 shared_flag='${wl}-bM:SRE' 13644 fi 13645 fi 13646 fi 13647 13648 # It seems that -bexpall does not export symbols beginning with 13649 # underscore (_), so it is better to generate a list of symbols to export. 13650 always_export_symbols_F77=yes 13651 if test "$aix_use_runtimelinking" = yes; then 13652 # Warning - without using the other runtime loading flags (-brtl), 13653 # -berok will link without error, but may produce a broken library. 13654 allow_undefined_flag_F77='-berok' 13655 # Determine the default libpath from the value encoded in an empty executable. 13656 cat >conftest.$ac_ext <<_ACEOF 13657 program main 13658 13659 end 13660_ACEOF 13661rm -f conftest.$ac_objext conftest$ac_exeext 13662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13663 (eval $ac_link) 2>conftest.er1 13664 ac_status=$? 13665 grep -v '^ *+' conftest.er1 >conftest.err 13666 rm -f conftest.er1 13667 cat conftest.err >&5 13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13669 (exit $ac_status); } && 13670 { ac_try='test -z "$ac_f77_werror_flag" 13671 || test ! -s conftest.err' 13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13673 (eval $ac_try) 2>&5 13674 ac_status=$? 13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13676 (exit $ac_status); }; } && 13677 { ac_try='test -s conftest$ac_exeext' 13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13679 (eval $ac_try) 2>&5 13680 ac_status=$? 13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13682 (exit $ac_status); }; }; then 13683 13684aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13685}'` 13686# Check for a 64-bit object if we didn't find anything. 13687if 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; } 13688}'`; fi 13689else 13690 echo "$as_me: failed program was:" >&5 13691sed 's/^/| /' conftest.$ac_ext >&5 13692 13693fi 13694rm -f conftest.err conftest.$ac_objext \ 13695 conftest$ac_exeext conftest.$ac_ext 13696if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13697 13698 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13699 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" 13700 else 13701 if test "$host_cpu" = ia64; then 13702 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13703 allow_undefined_flag_F77="-z nodefs" 13704 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" 13705 else 13706 # Determine the default libpath from the value encoded in an empty executable. 13707 cat >conftest.$ac_ext <<_ACEOF 13708 program main 13709 13710 end 13711_ACEOF 13712rm -f conftest.$ac_objext conftest$ac_exeext 13713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13714 (eval $ac_link) 2>conftest.er1 13715 ac_status=$? 13716 grep -v '^ *+' conftest.er1 >conftest.err 13717 rm -f conftest.er1 13718 cat conftest.err >&5 13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13720 (exit $ac_status); } && 13721 { ac_try='test -z "$ac_f77_werror_flag" 13722 || test ! -s conftest.err' 13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13724 (eval $ac_try) 2>&5 13725 ac_status=$? 13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13727 (exit $ac_status); }; } && 13728 { ac_try='test -s conftest$ac_exeext' 13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13730 (eval $ac_try) 2>&5 13731 ac_status=$? 13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13733 (exit $ac_status); }; }; then 13734 13735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13736}'` 13737# Check for a 64-bit object if we didn't find anything. 13738if 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; } 13739}'`; fi 13740else 13741 echo "$as_me: failed program was:" >&5 13742sed 's/^/| /' conftest.$ac_ext >&5 13743 13744fi 13745rm -f conftest.err conftest.$ac_objext \ 13746 conftest$ac_exeext conftest.$ac_ext 13747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13748 13749 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13750 # Warning - without using the other run time loading flags, 13751 # -berok will link without error, but may produce a broken library. 13752 no_undefined_flag_F77=' ${wl}-bernotok' 13753 allow_undefined_flag_F77=' ${wl}-berok' 13754 # -bexpall does not export symbols beginning with underscore (_) 13755 always_export_symbols_F77=yes 13756 # Exported symbols can be pulled into shared objects from archives 13757 whole_archive_flag_spec_F77=' ' 13758 archive_cmds_need_lc_F77=yes 13759 # This is similar to how AIX traditionally builds it's shared libraries. 13760 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' 13761 fi 13762 fi 13763 ;; 13764 13765 amigaos*) 13766 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)' 13767 hardcode_libdir_flag_spec_F77='-L$libdir' 13768 hardcode_minus_L_F77=yes 13769 # see comment about different semantics on the GNU ld section 13770 ld_shlibs_F77=no 13771 ;; 13772 13773 bsdi[45]*) 13774 export_dynamic_flag_spec_F77=-rdynamic 13775 ;; 13776 13777 cygwin* | mingw* | pw32*) 13778 # When not using gcc, we currently assume that we are using 13779 # Microsoft Visual C++. 13780 # hardcode_libdir_flag_spec is actually meaningless, as there is 13781 # no search path for DLLs. 13782 hardcode_libdir_flag_spec_F77=' ' 13783 allow_undefined_flag_F77=unsupported 13784 # Tell ltmain to make .lib files, not .a files. 13785 libext=lib 13786 # Tell ltmain to make .dll files, not .so files. 13787 shrext_cmds=".dll" 13788 # FIXME: Setting linknames here is a bad hack. 13789 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames=' 13790 # The linker will automatically build a .lib file if we build a DLL. 13791 old_archive_From_new_cmds_F77='true' 13792 # FIXME: Should let the user specify the lib program. 13793 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13794 fix_srcfile_path='`cygpath -w "$srcfile"`' 13795 enable_shared_with_static_runtimes_F77=yes 13796 ;; 13797 13798 darwin* | rhapsody*) 13799 case "$host_os" in 13800 rhapsody* | darwin1.[012]) 13801 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13802 ;; 13803 *) # Darwin 1.3 on 13804 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13805 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13806 else 13807 case ${MACOSX_DEPLOYMENT_TARGET} in 13808 10.[012]) 13809 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13810 ;; 13811 10.*) 13812 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13813 ;; 13814 esac 13815 fi 13816 ;; 13817 esac 13818 archive_cmds_need_lc_F77=no 13819 hardcode_direct_F77=no 13820 hardcode_automatic_F77=yes 13821 hardcode_shlibpath_var_F77=unsupported 13822 whole_archive_flag_spec_F77='' 13823 link_all_deplibs_F77=yes 13824 if test "$GCC" = yes ; then 13825 output_verbose_link_cmd='echo' 13826 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13827 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13829 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}' 13830 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}' 13831 else 13832 case "$cc_basename" in 13833 xlc*) 13834 output_verbose_link_cmd='echo' 13835 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13836 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13838 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}' 13839 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}' 13840 ;; 13841 *) 13842 ld_shlibs_F77=no 13843 ;; 13844 esac 13845 fi 13846 ;; 13847 13848 dgux*) 13849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13850 hardcode_libdir_flag_spec_F77='-L$libdir' 13851 hardcode_shlibpath_var_F77=no 13852 ;; 13853 13854 freebsd1*) 13855 ld_shlibs_F77=no 13856 ;; 13857 13858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13859 # support. Future versions do this automatically, but an explicit c++rt0.o 13860 # does not break anything, and helps significantly (at the cost of a little 13861 # extra space). 13862 freebsd2.2*) 13863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13864 hardcode_libdir_flag_spec_F77='-R$libdir' 13865 hardcode_direct_F77=yes 13866 hardcode_shlibpath_var_F77=no 13867 ;; 13868 13869 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13870 freebsd2*) 13871 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13872 hardcode_direct_F77=yes 13873 hardcode_minus_L_F77=yes 13874 hardcode_shlibpath_var_F77=no 13875 ;; 13876 13877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13878 freebsd* | kfreebsd*-gnu) 13879 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13880 hardcode_libdir_flag_spec_F77='-R$libdir' 13881 hardcode_direct_F77=yes 13882 hardcode_shlibpath_var_F77=no 13883 ;; 13884 13885 hpux9*) 13886 if test "$GCC" = yes; then 13887 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' 13888 else 13889 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' 13890 fi 13891 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13892 hardcode_libdir_separator_F77=: 13893 hardcode_direct_F77=yes 13894 13895 # hardcode_minus_L: Not really in the search PATH, 13896 # but as the default location of the library. 13897 hardcode_minus_L_F77=yes 13898 export_dynamic_flag_spec_F77='${wl}-E' 13899 ;; 13900 13901 hpux10* | hpux11*) 13902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13903 case "$host_cpu" in 13904 hppa*64*|ia64*) 13905 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13906 ;; 13907 *) 13908 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13909 ;; 13910 esac 13911 else 13912 case "$host_cpu" in 13913 hppa*64*|ia64*) 13914 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 13915 ;; 13916 *) 13917 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13918 ;; 13919 esac 13920 fi 13921 if test "$with_gnu_ld" = no; then 13922 case "$host_cpu" in 13923 hppa*64*) 13924 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13925 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13926 hardcode_libdir_separator_F77=: 13927 hardcode_direct_F77=no 13928 hardcode_shlibpath_var_F77=no 13929 ;; 13930 ia64*) 13931 hardcode_libdir_flag_spec_F77='-L$libdir' 13932 hardcode_direct_F77=no 13933 hardcode_shlibpath_var_F77=no 13934 13935 # hardcode_minus_L: Not really in the search PATH, 13936 # but as the default location of the library. 13937 hardcode_minus_L_F77=yes 13938 ;; 13939 *) 13940 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13941 hardcode_libdir_separator_F77=: 13942 hardcode_direct_F77=yes 13943 export_dynamic_flag_spec_F77='${wl}-E' 13944 13945 # hardcode_minus_L: Not really in the search PATH, 13946 # but as the default location of the library. 13947 hardcode_minus_L_F77=yes 13948 ;; 13949 esac 13950 fi 13951 ;; 13952 13953 irix5* | irix6* | nonstopux*) 13954 if test "$GCC" = yes; then 13955 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' 13956 else 13957 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' 13958 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13959 fi 13960 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13961 hardcode_libdir_separator_F77=: 13962 link_all_deplibs_F77=yes 13963 ;; 13964 13965 netbsd*) 13966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13967 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13968 else 13969 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13970 fi 13971 hardcode_libdir_flag_spec_F77='-R$libdir' 13972 hardcode_direct_F77=yes 13973 hardcode_shlibpath_var_F77=no 13974 ;; 13975 13976 newsos6) 13977 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13978 hardcode_direct_F77=yes 13979 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13980 hardcode_libdir_separator_F77=: 13981 hardcode_shlibpath_var_F77=no 13982 ;; 13983 13984 openbsd*) 13985 hardcode_direct_F77=yes 13986 hardcode_shlibpath_var_F77=no 13987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13988 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13989 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13990 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13991 export_dynamic_flag_spec_F77='${wl}-E' 13992 else 13993 case $host_os in 13994 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13995 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13996 hardcode_libdir_flag_spec_F77='-R$libdir' 13997 ;; 13998 *) 13999 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14000 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14001 ;; 14002 esac 14003 fi 14004 ;; 14005 14006 os2*) 14007 hardcode_libdir_flag_spec_F77='-L$libdir' 14008 hardcode_minus_L_F77=yes 14009 allow_undefined_flag_F77=unsupported 14010 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' 14011 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14012 ;; 14013 14014 osf3*) 14015 if test "$GCC" = yes; then 14016 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14017 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' 14018 else 14019 allow_undefined_flag_F77=' -expect_unresolved \*' 14020 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' 14021 fi 14022 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14023 hardcode_libdir_separator_F77=: 14024 ;; 14025 14026 osf4* | osf5*) # as osf3* with the addition of -msym flag 14027 if test "$GCC" = yes; then 14028 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14029 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' 14030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14031 else 14032 allow_undefined_flag_F77=' -expect_unresolved \*' 14033 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' 14034 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; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp' 14035 # Both c and cxx compiler support -rpath directly 14036 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14037 fi 14038 hardcode_libdir_separator_F77=: 14039 ;; 14040 14041 sco3.2v5*) 14042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14043 hardcode_shlibpath_var_F77=no 14044 export_dynamic_flag_spec_F77='${wl}-Bexport' 14045 runpath_var=LD_RUN_PATH 14046 hardcode_runpath_var=yes 14047 ;; 14048 14049 solaris*) 14050 no_undefined_flag_F77=' -z text' 14051 if test "$GCC" = yes; then 14052 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14053 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp' 14054 else 14055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp' 14057 fi 14058 hardcode_libdir_flag_spec_F77='-R$libdir' 14059 hardcode_shlibpath_var_F77=no 14060 case $host_os in 14061 solaris2.[0-5] | solaris2.[0-5].*) ;; 14062 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14063 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14064 esac 14065 link_all_deplibs_F77=yes 14066 ;; 14067 14068 sunos4*) 14069 if test "x$host_vendor" = xsequent; then 14070 # Use $CC to link under sequent, because it throws in some extra .o 14071 # files that make .init and .fini sections work. 14072 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14073 else 14074 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14075 fi 14076 hardcode_libdir_flag_spec_F77='-L$libdir' 14077 hardcode_direct_F77=yes 14078 hardcode_minus_L_F77=yes 14079 hardcode_shlibpath_var_F77=no 14080 ;; 14081 14082 sysv4) 14083 case $host_vendor in 14084 sni) 14085 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14086 hardcode_direct_F77=yes # is this really true??? 14087 ;; 14088 siemens) 14089 ## LD is ld it makes a PLAMLIB 14090 ## CC just makes a GrossModule. 14091 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14092 reload_cmds_F77='$CC -r -o $output$reload_objs' 14093 hardcode_direct_F77=no 14094 ;; 14095 motorola) 14096 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14097 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14098 ;; 14099 esac 14100 runpath_var='LD_RUN_PATH' 14101 hardcode_shlibpath_var_F77=no 14102 ;; 14103 14104 sysv4.3*) 14105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14106 hardcode_shlibpath_var_F77=no 14107 export_dynamic_flag_spec_F77='-Bexport' 14108 ;; 14109 14110 sysv4*MP*) 14111 if test -d /usr/nec; then 14112 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14113 hardcode_shlibpath_var_F77=no 14114 runpath_var=LD_RUN_PATH 14115 hardcode_runpath_var=yes 14116 ld_shlibs_F77=yes 14117 fi 14118 ;; 14119 14120 sysv4.2uw2*) 14121 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14122 hardcode_direct_F77=yes 14123 hardcode_minus_L_F77=no 14124 hardcode_shlibpath_var_F77=no 14125 hardcode_runpath_var=yes 14126 runpath_var=LD_RUN_PATH 14127 ;; 14128 14129 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14130 no_undefined_flag_F77='${wl}-z ${wl}text' 14131 if test "$GCC" = yes; then 14132 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14133 else 14134 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14135 fi 14136 runpath_var='LD_RUN_PATH' 14137 hardcode_shlibpath_var_F77=no 14138 ;; 14139 14140 sysv5*) 14141 no_undefined_flag_F77=' -z text' 14142 # $CC -shared without GNU ld will not create a library from C++ 14143 # object files and a static libstdc++, better avoid it by now 14144 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14145 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp' 14146 hardcode_libdir_flag_spec_F77= 14147 hardcode_shlibpath_var_F77=no 14148 runpath_var='LD_RUN_PATH' 14149 ;; 14150 14151 uts4*) 14152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14153 hardcode_libdir_flag_spec_F77='-L$libdir' 14154 hardcode_shlibpath_var_F77=no 14155 ;; 14156 14157 *) 14158 ld_shlibs_F77=no 14159 ;; 14160 esac 14161 fi 14162 14163echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14164echo "${ECHO_T}$ld_shlibs_F77" >&6 14165test "$ld_shlibs_F77" = no && can_build_shared=no 14166 14167variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14168if test "$GCC" = yes; then 14169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14170fi 14171 14172# 14173# Do we need to explicitly link libc? 14174# 14175case "x$archive_cmds_need_lc_F77" in 14176x|xyes) 14177 # Assume -lc should be added 14178 archive_cmds_need_lc_F77=yes 14179 14180 if test "$enable_shared" = yes && test "$GCC" = yes; then 14181 case $archive_cmds_F77 in 14182 *'~'*) 14183 # FIXME: we may have to deal with multi-command sequences. 14184 ;; 14185 '$CC '*) 14186 # Test whether the compiler implicitly links with -lc since on some 14187 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14188 # to ld, don't add -lc before -lgcc. 14189 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14190echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14191 $rm conftest* 14192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14193 14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14195 (eval $ac_compile) 2>&5 14196 ac_status=$? 14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14198 (exit $ac_status); } 2>conftest.err; then 14199 soname=conftest 14200 lib=conftest 14201 libobjs=conftest.$ac_objext 14202 deplibs= 14203 wl=$lt_prog_compiler_wl_F77 14204 compiler_flags=-v 14205 linker_flags=-v 14206 verstring= 14207 output_objdir=. 14208 libname=conftest 14209 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14210 allow_undefined_flag_F77= 14211 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14212 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14213 ac_status=$? 14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14215 (exit $ac_status); } 14216 then 14217 archive_cmds_need_lc_F77=no 14218 else 14219 archive_cmds_need_lc_F77=yes 14220 fi 14221 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14222 else 14223 cat conftest.err 1>&5 14224 fi 14225 $rm conftest* 14226 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14227echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14228 ;; 14229 esac 14230 fi 14231 ;; 14232esac 14233 14234echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14235echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14236library_names_spec= 14237libname_spec='lib$name' 14238soname_spec= 14239shrext_cmds=".so" 14240postinstall_cmds= 14241postuninstall_cmds= 14242finish_cmds= 14243finish_eval= 14244shlibpath_var= 14245shlibpath_overrides_runpath=unknown 14246version_type=none 14247dynamic_linker="$host_os ld.so" 14248sys_lib_dlsearch_path_spec="/lib /usr/lib" 14249if test "$GCC" = yes; then 14250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14251 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14252 # if the path contains ";" then we assume it to be the separator 14253 # otherwise default to the standard path separator (i.e. ":") - it is 14254 # assumed that no part of a normal pathname contains ";" but that should 14255 # okay in the real world where ";" in dirpaths is itself problematic. 14256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14257 else 14258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14259 fi 14260else 14261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14262fi 14263need_lib_prefix=unknown 14264hardcode_into_libs=no 14265 14266# when you set need_version to no, make sure it does not cause -set_version 14267# flags to be left without arguments 14268need_version=unknown 14269 14270case $host_os in 14271aix3*) 14272 version_type=linux 14273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14274 shlibpath_var=LIBPATH 14275 14276 # AIX 3 has no versioning support, so we append a major version to the name. 14277 soname_spec='${libname}${release}${shared_ext}$major' 14278 ;; 14279 14280aix4* | aix5*) 14281 version_type=linux 14282 need_lib_prefix=no 14283 need_version=no 14284 hardcode_into_libs=yes 14285 if test "$host_cpu" = ia64; then 14286 # AIX 5 supports IA64 14287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14288 shlibpath_var=LD_LIBRARY_PATH 14289 else 14290 # With GCC up to 2.95.x, collect2 would create an import file 14291 # for dependence libraries. The import file would start with 14292 # the line `#! .'. This would cause the generated library to 14293 # depend on `.', always an invalid library. This was fixed in 14294 # development snapshots of GCC prior to 3.0. 14295 case $host_os in 14296 aix4 | aix4.[01] | aix4.[01].*) 14297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14298 echo ' yes ' 14299 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14300 : 14301 else 14302 can_build_shared=no 14303 fi 14304 ;; 14305 esac 14306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14307 # soname into executable. Probably we can add versioning support to 14308 # collect2, so additional links can be useful in future. 14309 if test "$aix_use_runtimelinking" = yes; then 14310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14311 # instead of lib<name>.a to let people know that these are not 14312 # typical AIX shared libraries. 14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14314 else 14315 # We preserve .a as extension for shared libraries through AIX4.2 14316 # and later when we are not doing run time linking. 14317 library_names_spec='${libname}${release}.a $libname.a' 14318 soname_spec='${libname}${release}${shared_ext}$major' 14319 fi 14320 shlibpath_var=LIBPATH 14321 fi 14322 ;; 14323 14324amigaos*) 14325 library_names_spec='$libname.ixlibrary $libname.a' 14326 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14327 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' 14328 ;; 14329 14330beos*) 14331 library_names_spec='${libname}${shared_ext}' 14332 dynamic_linker="$host_os ld.so" 14333 shlibpath_var=LIBRARY_PATH 14334 ;; 14335 14336bsdi[45]*) 14337 version_type=linux 14338 need_version=no 14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14340 soname_spec='${libname}${release}${shared_ext}$major' 14341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14342 shlibpath_var=LD_LIBRARY_PATH 14343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14345 # the default ld.so.conf also contains /usr/contrib/lib and 14346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14347 # libtool to hard-code these into programs 14348 ;; 14349 14350cygwin* | mingw* | pw32*) 14351 version_type=windows 14352 shrext_cmds=".dll" 14353 need_version=no 14354 need_lib_prefix=no 14355 14356 case $GCC,$host_os in 14357 yes,cygwin* | yes,mingw* | yes,pw32*) 14358 library_names_spec='$libname.dll.a' 14359 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14360 postinstall_cmds='base_file=`basename \${file}`; 14361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; 14362 dldir=$destdir/`dirname \$dlpath`; 14363 test -d \$dldir || mkdir -p \$dldir; 14364 $install_prog $dir/$dlname \$dldir/$dlname' 14365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; 14366 dlpath=$dir/\$dldll; 14367 $rm \$dlpath' 14368 shlibpath_overrides_runpath=yes 14369 14370 case $host_os in 14371 cygwin*) 14372 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14375 ;; 14376 mingw*) 14377 # MinGW DLLs use traditional 'lib' prefix 14378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14381 # It is most probably a Windows format PATH printed by 14382 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14383 # path with ; separators, and with drive letters. We can handle the 14384 # drive letters (cygwin fileutils understands them), so leave them, 14385 # especially as we might pass files found there to a mingw objdump, 14386 # which wouldn't understand a cygwinified path. Ahh. 14387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14388 else 14389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14390 fi 14391 ;; 14392 pw32*) 14393 # pw32 DLLs use 'pw' prefix rather than 'lib' 14394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14395 ;; 14396 esac 14397 ;; 14398 14399 *) 14400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14401 ;; 14402 esac 14403 dynamic_linker='Win32 ld.exe' 14404 # FIXME: first we should search . and the directory the executable is in 14405 shlibpath_var=PATH 14406 ;; 14407 14408darwin* | rhapsody*) 14409 dynamic_linker="$host_os dyld" 14410 version_type=darwin 14411 need_lib_prefix=no 14412 need_version=no 14413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14414 soname_spec='${libname}${release}${major}$shared_ext' 14415 shlibpath_overrides_runpath=yes 14416 shlibpath_var=DYLD_LIBRARY_PATH 14417 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14419 if test "$GCC" = yes; then 14420 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"` 14421 else 14422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14423 fi 14424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14425 ;; 14426 14427dgux*) 14428 version_type=linux 14429 need_lib_prefix=no 14430 need_version=no 14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14432 soname_spec='${libname}${release}${shared_ext}$major' 14433 shlibpath_var=LD_LIBRARY_PATH 14434 ;; 14435 14436freebsd1*) 14437 dynamic_linker=no 14438 ;; 14439 14440kfreebsd*-gnu) 14441 version_type=linux 14442 need_lib_prefix=no 14443 need_version=no 14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14445 soname_spec='${libname}${release}${shared_ext}$major' 14446 shlibpath_var=LD_LIBRARY_PATH 14447 shlibpath_overrides_runpath=no 14448 hardcode_into_libs=yes 14449 dynamic_linker='GNU ld.so' 14450 ;; 14451 14452freebsd*) 14453 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14454 version_type=freebsd-$objformat 14455 case $version_type in 14456 freebsd-elf*) 14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14458 need_version=no 14459 need_lib_prefix=no 14460 ;; 14461 freebsd-*) 14462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14463 need_version=yes 14464 ;; 14465 esac 14466 shlibpath_var=LD_LIBRARY_PATH 14467 case $host_os in 14468 freebsd2*) 14469 shlibpath_overrides_runpath=yes 14470 ;; 14471 freebsd3.01* | freebsdelf3.01*) 14472 shlibpath_overrides_runpath=yes 14473 hardcode_into_libs=yes 14474 ;; 14475 *) # from 3.2 on 14476 shlibpath_overrides_runpath=no 14477 hardcode_into_libs=yes 14478 ;; 14479 esac 14480 ;; 14481 14482gnu*) 14483 version_type=linux 14484 need_lib_prefix=no 14485 need_version=no 14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14487 soname_spec='${libname}${release}${shared_ext}$major' 14488 shlibpath_var=LD_LIBRARY_PATH 14489 hardcode_into_libs=yes 14490 ;; 14491 14492hpux9* | hpux10* | hpux11*) 14493 # Give a soname corresponding to the major version so that dld.sl refuses to 14494 # link against other versions. 14495 version_type=sunos 14496 need_lib_prefix=no 14497 need_version=no 14498 case "$host_cpu" in 14499 ia64*) 14500 shrext_cmds='.so' 14501 hardcode_into_libs=yes 14502 dynamic_linker="$host_os dld.so" 14503 shlibpath_var=LD_LIBRARY_PATH 14504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14506 soname_spec='${libname}${release}${shared_ext}$major' 14507 if test "X$HPUX_IA64_MODE" = X32; then 14508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14509 else 14510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14511 fi 14512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14513 ;; 14514 hppa*64*) 14515 shrext_cmds='.sl' 14516 hardcode_into_libs=yes 14517 dynamic_linker="$host_os dld.sl" 14518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14521 soname_spec='${libname}${release}${shared_ext}$major' 14522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14524 ;; 14525 *) 14526 shrext_cmds='.sl' 14527 dynamic_linker="$host_os dld.sl" 14528 shlibpath_var=SHLIB_PATH 14529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14531 soname_spec='${libname}${release}${shared_ext}$major' 14532 ;; 14533 esac 14534 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14535 postinstall_cmds='chmod 555 $lib' 14536 ;; 14537 14538irix5* | irix6* | nonstopux*) 14539 case $host_os in 14540 nonstopux*) version_type=nonstopux ;; 14541 *) 14542 if test "$lt_cv_prog_gnu_ld" = yes; then 14543 version_type=linux 14544 else 14545 version_type=irix 14546 fi ;; 14547 esac 14548 need_lib_prefix=no 14549 need_version=no 14550 soname_spec='${libname}${release}${shared_ext}$major' 14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14552 case $host_os in 14553 irix5* | nonstopux*) 14554 libsuff= shlibsuff= 14555 ;; 14556 *) 14557 case $LD in # libtool.m4 will add one of these switches to LD 14558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14559 libsuff= shlibsuff= libmagic=32-bit;; 14560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14561 libsuff=32 shlibsuff=N32 libmagic=N32;; 14562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14563 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14564 *) libsuff= shlibsuff= libmagic=never-match;; 14565 esac 14566 ;; 14567 esac 14568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14569 shlibpath_overrides_runpath=no 14570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14572 hardcode_into_libs=yes 14573 ;; 14574 14575# No shared lib support for Linux oldld, aout, or coff. 14576linux*oldld* | linux*aout* | linux*coff*) 14577 dynamic_linker=no 14578 ;; 14579 14580# This must be Linux ELF. 14581linux*) 14582 version_type=linux 14583 need_lib_prefix=no 14584 need_version=no 14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14586 soname_spec='${libname}${release}${shared_ext}$major' 14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14588 shlibpath_var=LD_LIBRARY_PATH 14589 shlibpath_overrides_runpath=no 14590 # This implies no fast_install, which is unacceptable. 14591 # Some rework will be needed to allow for fast_install 14592 # before this can be enabled. 14593 hardcode_into_libs=yes 14594 14595 # Append ld.so.conf contents to the search path 14596 if test -f /etc/ld.so.conf; then 14597 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14599 fi 14600 14601 # We used to test for /lib/ld.so.1 and disable shared libraries on 14602 # powerpc, because MkLinux only supported shared libraries with the 14603 # GNU dynamic linker. Since this was broken with cross compilers, 14604 # most powerpc-linux boxes support dynamic linking these days and 14605 # people can always --disable-shared, the test was removed, and we 14606 # assume the GNU/Linux dynamic linker is in use. 14607 dynamic_linker='GNU/Linux ld.so' 14608 ;; 14609 14610knetbsd*-gnu) 14611 version_type=linux 14612 need_lib_prefix=no 14613 need_version=no 14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14615 soname_spec='${libname}${release}${shared_ext}$major' 14616 shlibpath_var=LD_LIBRARY_PATH 14617 shlibpath_overrides_runpath=no 14618 hardcode_into_libs=yes 14619 dynamic_linker='GNU ld.so' 14620 ;; 14621 14622netbsd*) 14623 version_type=sunos 14624 need_lib_prefix=no 14625 need_version=no 14626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14629 dynamic_linker='NetBSD (a.out) ld.so' 14630 else 14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14632 soname_spec='${libname}${release}${shared_ext}$major' 14633 dynamic_linker='NetBSD ld.elf_so' 14634 fi 14635 shlibpath_var=LD_LIBRARY_PATH 14636 shlibpath_overrides_runpath=yes 14637 hardcode_into_libs=yes 14638 ;; 14639 14640newsos6) 14641 version_type=linux 14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14643 shlibpath_var=LD_LIBRARY_PATH 14644 shlibpath_overrides_runpath=yes 14645 ;; 14646 14647nto-qnx*) 14648 version_type=linux 14649 need_lib_prefix=no 14650 need_version=no 14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14652 soname_spec='${libname}${release}${shared_ext}$major' 14653 shlibpath_var=LD_LIBRARY_PATH 14654 shlibpath_overrides_runpath=yes 14655 ;; 14656 14657openbsd*) 14658 version_type=sunos 14659 need_lib_prefix=no 14660 need_version=no 14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14663 shlibpath_var=LD_LIBRARY_PATH 14664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14665 case $host_os in 14666 openbsd2.[89] | openbsd2.[89].*) 14667 shlibpath_overrides_runpath=no 14668 ;; 14669 *) 14670 shlibpath_overrides_runpath=yes 14671 ;; 14672 esac 14673 else 14674 shlibpath_overrides_runpath=yes 14675 fi 14676 ;; 14677 14678os2*) 14679 libname_spec='$name' 14680 shrext_cmds=".dll" 14681 need_lib_prefix=no 14682 library_names_spec='$libname${shared_ext} $libname.a' 14683 dynamic_linker='OS/2 ld.exe' 14684 shlibpath_var=LIBPATH 14685 ;; 14686 14687osf3* | osf4* | osf5*) 14688 version_type=osf 14689 need_lib_prefix=no 14690 need_version=no 14691 soname_spec='${libname}${release}${shared_ext}$major' 14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14693 shlibpath_var=LD_LIBRARY_PATH 14694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14696 ;; 14697 14698sco3.2v5*) 14699 version_type=osf 14700 soname_spec='${libname}${release}${shared_ext}$major' 14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14702 shlibpath_var=LD_LIBRARY_PATH 14703 ;; 14704 14705solaris*) 14706 version_type=linux 14707 need_lib_prefix=no 14708 need_version=no 14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14710 soname_spec='${libname}${release}${shared_ext}$major' 14711 shlibpath_var=LD_LIBRARY_PATH 14712 shlibpath_overrides_runpath=yes 14713 hardcode_into_libs=yes 14714 # ldd complains unless libraries are executable 14715 postinstall_cmds='chmod +x $lib' 14716 ;; 14717 14718sunos4*) 14719 version_type=sunos 14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14721 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14722 shlibpath_var=LD_LIBRARY_PATH 14723 shlibpath_overrides_runpath=yes 14724 if test "$with_gnu_ld" = yes; then 14725 need_lib_prefix=no 14726 fi 14727 need_version=yes 14728 ;; 14729 14730sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14731 version_type=linux 14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14733 soname_spec='${libname}${release}${shared_ext}$major' 14734 shlibpath_var=LD_LIBRARY_PATH 14735 case $host_vendor in 14736 sni) 14737 shlibpath_overrides_runpath=no 14738 need_lib_prefix=no 14739 export_dynamic_flag_spec='${wl}-Blargedynsym' 14740 runpath_var=LD_RUN_PATH 14741 ;; 14742 siemens) 14743 need_lib_prefix=no 14744 ;; 14745 motorola) 14746 need_lib_prefix=no 14747 need_version=no 14748 shlibpath_overrides_runpath=no 14749 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14750 ;; 14751 esac 14752 ;; 14753 14754sysv4*MP*) 14755 if test -d /usr/nec ;then 14756 version_type=linux 14757 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14758 soname_spec='$libname${shared_ext}.$major' 14759 shlibpath_var=LD_LIBRARY_PATH 14760 fi 14761 ;; 14762 14763uts4*) 14764 version_type=linux 14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14766 soname_spec='${libname}${release}${shared_ext}$major' 14767 shlibpath_var=LD_LIBRARY_PATH 14768 ;; 14769 14770*) 14771 dynamic_linker=no 14772 ;; 14773esac 14774echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14775echo "${ECHO_T}$dynamic_linker" >&6 14776test "$dynamic_linker" = no && can_build_shared=no 14777 14778echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14779echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14780hardcode_action_F77= 14781if test -n "$hardcode_libdir_flag_spec_F77" || \ 14782 test -n "$runpath_var_F77" || \ 14783 test "X$hardcode_automatic_F77" = "Xyes" ; then 14784 14785 # We can hardcode non-existant directories. 14786 if test "$hardcode_direct_F77" != no && 14787 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14788 # have to relink, otherwise we might link with an installed library 14789 # when we should be linking with a yet-to-be-installed one 14790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14791 test "$hardcode_minus_L_F77" != no; then 14792 # Linking always hardcodes the temporary library directory. 14793 hardcode_action_F77=relink 14794 else 14795 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14796 hardcode_action_F77=immediate 14797 fi 14798else 14799 # We cannot hardcode anything, or else we can only hardcode existing 14800 # directories. 14801 hardcode_action_F77=unsupported 14802fi 14803echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14804echo "${ECHO_T}$hardcode_action_F77" >&6 14805 14806if test "$hardcode_action_F77" = relink; then 14807 # Fast installation is not supported 14808 enable_fast_install=no 14809elif test "$shlibpath_overrides_runpath" = yes || 14810 test "$enable_shared" = no; then 14811 # Fast installation is not necessary 14812 enable_fast_install=needless 14813fi 14814 14815striplib= 14816old_striplib= 14817echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 14818echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 14819if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 14820 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14821 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14822 echo "$as_me:$LINENO: result: yes" >&5 14823echo "${ECHO_T}yes" >&6 14824else 14825# FIXME - insert some real tests, host_os isn't really good enough 14826 case $host_os in 14827 darwin*) 14828 if test -n "$STRIP" ; then 14829 striplib="$STRIP -x" 14830 echo "$as_me:$LINENO: result: yes" >&5 14831echo "${ECHO_T}yes" >&6 14832 else 14833 echo "$as_me:$LINENO: result: no" >&5 14834echo "${ECHO_T}no" >&6 14835fi 14836 ;; 14837 *) 14838 echo "$as_me:$LINENO: result: no" >&5 14839echo "${ECHO_T}no" >&6 14840 ;; 14841 esac 14842fi 14843 14844 14845 14846# The else clause should only fire when bootstrapping the 14847# libtool distribution, otherwise you forgot to ship ltmain.sh 14848# with your package, and you will get complaints that there are 14849# no rules to generate ltmain.sh. 14850if test -f "$ltmain"; then 14851 # See if we are running on zsh, and set the options which allow our commands through 14852 # without removal of \ escapes. 14853 if test -n "${ZSH_VERSION+set}" ; then 14854 setopt NO_GLOB_SUBST 14855 fi 14856 # Now quote all the things that may contain metacharacters while being 14857 # careful not to overquote the AC_SUBSTed values. We take copies of the 14858 # variables and quote the copies for generation of the libtool script. 14859 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 14860 SED SHELL STRIP \ 14861 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14862 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14863 deplibs_check_method reload_flag reload_cmds need_locks \ 14864 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14865 lt_cv_sys_global_symbol_to_c_name_address \ 14866 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14867 old_postinstall_cmds old_postuninstall_cmds \ 14868 compiler_F77 \ 14869 CC_F77 \ 14870 LD_F77 \ 14871 lt_prog_compiler_wl_F77 \ 14872 lt_prog_compiler_pic_F77 \ 14873 lt_prog_compiler_static_F77 \ 14874 lt_prog_compiler_no_builtin_flag_F77 \ 14875 export_dynamic_flag_spec_F77 \ 14876 thread_safe_flag_spec_F77 \ 14877 whole_archive_flag_spec_F77 \ 14878 enable_shared_with_static_runtimes_F77 \ 14879 old_archive_cmds_F77 \ 14880 old_archive_from_new_cmds_F77 \ 14881 predep_objects_F77 \ 14882 postdep_objects_F77 \ 14883 predeps_F77 \ 14884 postdeps_F77 \ 14885 compiler_lib_search_path_F77 \ 14886 archive_cmds_F77 \ 14887 archive_expsym_cmds_F77 \ 14888 postinstall_cmds_F77 \ 14889 postuninstall_cmds_F77 \ 14890 old_archive_from_expsyms_cmds_F77 \ 14891 allow_undefined_flag_F77 \ 14892 no_undefined_flag_F77 \ 14893 export_symbols_cmds_F77 \ 14894 hardcode_libdir_flag_spec_F77 \ 14895 hardcode_libdir_flag_spec_ld_F77 \ 14896 hardcode_libdir_separator_F77 \ 14897 hardcode_automatic_F77 \ 14898 module_cmds_F77 \ 14899 module_expsym_cmds_F77 \ 14900 lt_cv_prog_compiler_c_o_F77 \ 14901 exclude_expsyms_F77 \ 14902 include_expsyms_F77; do 14903 14904 case $var in 14905 old_archive_cmds_F77 | \ 14906 old_archive_from_new_cmds_F77 | \ 14907 archive_cmds_F77 | \ 14908 archive_expsym_cmds_F77 | \ 14909 module_cmds_F77 | \ 14910 module_expsym_cmds_F77 | \ 14911 old_archive_from_expsyms_cmds_F77 | \ 14912 export_symbols_cmds_F77 | \ 14913 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14914 postinstall_cmds | postuninstall_cmds | \ 14915 old_postinstall_cmds | old_postuninstall_cmds | \ 14916 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14917 # Double-quote double-evaled strings. 14918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14919 ;; 14920 *) 14921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14922 ;; 14923 esac 14924 done 14925 14926 case $lt_echo in 14927 *'\$0 --fallback-echo"') 14928 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14929 ;; 14930 esac 14931 14932cfgfile="$ofile" 14933 14934 cat <<__EOF__ >> "$cfgfile" 14935# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14936 14937# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14938 14939# Shell to use when invoking shell scripts. 14940SHELL=$lt_SHELL 14941 14942# Whether or not to build shared libraries. 14943build_libtool_libs=$enable_shared 14944 14945# Whether or not to build static libraries. 14946build_old_libs=$enable_static 14947 14948# Whether or not to add -lc for building shared libraries. 14949build_libtool_need_lc=$archive_cmds_need_lc_F77 14950 14951# Whether or not to disallow shared libs when runtime libs are static 14952allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14953 14954# Whether or not to optimize for fast installation. 14955fast_install=$enable_fast_install 14956 14957# The host system. 14958host_alias=$host_alias 14959host=$host 14960 14961# An echo program that does not interpret backslashes. 14962echo=$lt_echo 14963 14964# The archiver. 14965AR=$lt_AR 14966AR_FLAGS=$lt_AR_FLAGS 14967 14968# A C compiler. 14969LTCC=$lt_LTCC 14970 14971# A language-specific compiler. 14972CC=$lt_compiler_F77 14973 14974# Is the compiler the GNU C compiler? 14975with_gcc=$GCC_F77 14976 14977# An ERE matcher. 14978EGREP=$lt_EGREP 14979 14980# The linker used to build libraries. 14981LD=$lt_LD_F77 14982 14983# Whether we need hard or soft links. 14984LN_S=$lt_LN_S 14985 14986# A BSD-compatible nm program. 14987NM=$lt_NM 14988 14989# A symbol stripping program 14990STRIP=$lt_STRIP 14991 14992# Used to examine libraries when file_magic_cmd begins "file" 14993MAGIC_CMD=$MAGIC_CMD 14994 14995# Used on cygwin: DLL creation program. 14996DLLTOOL="$DLLTOOL" 14997 14998# Used on cygwin: object dumper. 14999OBJDUMP="$OBJDUMP" 15000 15001# Used on cygwin: assembler. 15002AS="$AS" 15003 15004# The name of the directory that contains temporary libtool files. 15005objdir=$objdir 15006 15007# How to create reloadable object files. 15008reload_flag=$lt_reload_flag 15009reload_cmds=$lt_reload_cmds 15010 15011# How to pass a linker flag through the compiler. 15012wl=$lt_lt_prog_compiler_wl_F77 15013 15014# Object file suffix (normally "o"). 15015objext="$ac_objext" 15016 15017# Old archive suffix (normally "a"). 15018libext="$libext" 15019 15020# Shared library suffix (normally ".so"). 15021shrext_cmds='$shrext_cmds' 15022 15023# Executable file suffix (normally ""). 15024exeext="$exeext" 15025 15026# Additional compiler flags for building library objects. 15027pic_flag=$lt_lt_prog_compiler_pic_F77 15028pic_mode=$pic_mode 15029 15030# What is the maximum length of a command? 15031max_cmd_len=$lt_cv_sys_max_cmd_len 15032 15033# Does compiler simultaneously support -c and -o options? 15034compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15035 15036# Must we lock files when doing compilation ? 15037need_locks=$lt_need_locks 15038 15039# Do we need the lib prefix for modules? 15040need_lib_prefix=$need_lib_prefix 15041 15042# Do we need a version for libraries? 15043need_version=$need_version 15044 15045# Whether dlopen is supported. 15046dlopen_support=$enable_dlopen 15047 15048# Whether dlopen of programs is supported. 15049dlopen_self=$enable_dlopen_self 15050 15051# Whether dlopen of statically linked programs is supported. 15052dlopen_self_static=$enable_dlopen_self_static 15053 15054# Compiler flag to prevent dynamic linking. 15055link_static_flag=$lt_lt_prog_compiler_static_F77 15056 15057# Compiler flag to turn off builtin functions. 15058no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15059 15060# Compiler flag to allow reflexive dlopens. 15061export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15062 15063# Compiler flag to generate shared objects directly from archives. 15064whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15065 15066# Compiler flag to generate thread-safe objects. 15067thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15068 15069# Library versioning type. 15070version_type=$version_type 15071 15072# Format of library name prefix. 15073libname_spec=$lt_libname_spec 15074 15075# List of archive names. First name is the real one, the rest are links. 15076# The last name is the one that the linker finds with -lNAME. 15077library_names_spec=$lt_library_names_spec 15078 15079# The coded name of the library, if different from the real name. 15080soname_spec=$lt_soname_spec 15081 15082# Commands used to build and install an old-style archive. 15083RANLIB=$lt_RANLIB 15084old_archive_cmds=$lt_old_archive_cmds_F77 15085old_postinstall_cmds=$lt_old_postinstall_cmds 15086old_postuninstall_cmds=$lt_old_postuninstall_cmds 15087 15088# Create an old-style archive from a shared archive. 15089old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15090 15091# Create a temporary old-style archive to link instead of a shared archive. 15092old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15093 15094# Commands used to build and install a shared archive. 15095archive_cmds=$lt_archive_cmds_F77 15096archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15097postinstall_cmds=$lt_postinstall_cmds 15098postuninstall_cmds=$lt_postuninstall_cmds 15099 15100# Commands used to build a loadable module (assumed same as above if empty) 15101module_cmds=$lt_module_cmds_F77 15102module_expsym_cmds=$lt_module_expsym_cmds_F77 15103 15104# Commands to strip libraries. 15105old_striplib=$lt_old_striplib 15106striplib=$lt_striplib 15107 15108# Dependencies to place before the objects being linked to create a 15109# shared library. 15110predep_objects=$lt_predep_objects_F77 15111 15112# Dependencies to place after the objects being linked to create a 15113# shared library. 15114postdep_objects=$lt_postdep_objects_F77 15115 15116# Dependencies to place before the objects being linked to create a 15117# shared library. 15118predeps=$lt_predeps_F77 15119 15120# Dependencies to place after the objects being linked to create a 15121# shared library. 15122postdeps=$lt_postdeps_F77 15123 15124# The library search path used internally by the compiler when linking 15125# a shared library. 15126compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15127 15128# Method to check whether dependent libraries are shared objects. 15129deplibs_check_method=$lt_deplibs_check_method 15130 15131# Command to use when deplibs_check_method == file_magic. 15132file_magic_cmd=$lt_file_magic_cmd 15133 15134# Flag that allows shared libraries with undefined symbols to be built. 15135allow_undefined_flag=$lt_allow_undefined_flag_F77 15136 15137# Flag that forces no undefined symbols. 15138no_undefined_flag=$lt_no_undefined_flag_F77 15139 15140# Commands used to finish a libtool library installation in a directory. 15141finish_cmds=$lt_finish_cmds 15142 15143# Same as above, but a single script fragment to be evaled but not shown. 15144finish_eval=$lt_finish_eval 15145 15146# Take the output of nm and produce a listing of raw symbols and C names. 15147global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15148 15149# Transform the output of nm in a proper C declaration 15150global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15151 15152# Transform the output of nm in a C name address pair 15153global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15154 15155# This is the shared library runtime path variable. 15156runpath_var=$runpath_var 15157 15158# This is the shared library path variable. 15159shlibpath_var=$shlibpath_var 15160 15161# Is shlibpath searched before the hard-coded library search path? 15162shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15163 15164# How to hardcode a shared library path into an executable. 15165hardcode_action=$hardcode_action_F77 15166 15167# Whether we should hardcode library paths into libraries. 15168hardcode_into_libs=$hardcode_into_libs 15169 15170# Flag to hardcode \$libdir into a binary during linking. 15171# This must work even if \$libdir does not exist. 15172hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15173 15174# If ld is used when linking, flag to hardcode \$libdir into 15175# a binary during linking. This must work even if \$libdir does 15176# not exist. 15177hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15178 15179# Whether we need a single -rpath flag with a separated argument. 15180hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15181 15182# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15183# resulting binary. 15184hardcode_direct=$hardcode_direct_F77 15185 15186# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15187# resulting binary. 15188hardcode_minus_L=$hardcode_minus_L_F77 15189 15190# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15191# the resulting binary. 15192hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15193 15194# Set to yes if building a shared library automatically hardcodes DIR into the library 15195# and all subsequent libraries and executables linked against it. 15196hardcode_automatic=$hardcode_automatic_F77 15197 15198# Variables whose values should be saved in libtool wrapper scripts and 15199# restored at relink time. 15200variables_saved_for_relink="$variables_saved_for_relink" 15201 15202# Whether libtool must link a program against all its dependency libraries. 15203link_all_deplibs=$link_all_deplibs_F77 15204 15205# Compile-time system search path for libraries 15206sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15207 15208# Run-time system search path for libraries 15209sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15210 15211# Fix the shell variable \$srcfile for the compiler. 15212fix_srcfile_path="$fix_srcfile_path_F77" 15213 15214# Set to yes if exported symbols are required. 15215always_export_symbols=$always_export_symbols_F77 15216 15217# The commands to list exported symbols. 15218export_symbols_cmds=$lt_export_symbols_cmds_F77 15219 15220# The commands to extract the exported symbol list from a shared archive. 15221extract_expsyms_cmds=$lt_extract_expsyms_cmds 15222 15223# Symbols that should not be listed in the preloaded symbols. 15224exclude_expsyms=$lt_exclude_expsyms_F77 15225 15226# Symbols that must always be exported. 15227include_expsyms=$lt_include_expsyms_F77 15228 15229# ### END LIBTOOL TAG CONFIG: $tagname 15230 15231__EOF__ 15232 15233 15234else 15235 # If there is no Makefile yet, we rely on a make rule to execute 15236 # `config.status --recheck' to rerun these tests and create the 15237 # libtool script then. 15238 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15239 if test -f "$ltmain_in"; then 15240 test -f Makefile && make "$ltmain" 15241 fi 15242fi 15243 15244 15245ac_ext=c 15246ac_cpp='$CPP $CPPFLAGS' 15247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15249ac_compiler_gnu=$ac_cv_c_compiler_gnu 15250 15251CC="$lt_save_CC" 15252 15253 else 15254 tagname="" 15255 fi 15256 ;; 15257 15258 GCJ) 15259 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15260 ac_ext=c 15261ac_cpp='$CPP $CPPFLAGS' 15262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15264ac_compiler_gnu=$ac_cv_c_compiler_gnu 15265 15266 15267# Source file extension for Java test sources. 15268ac_ext=java 15269 15270# Object file extension for compiled Java test sources. 15271objext=o 15272objext_GCJ=$objext 15273 15274# Code to be used in simple compile tests 15275lt_simple_compile_test_code="class foo {}\n" 15276 15277# Code to be used in simple link tests 15278lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15279 15280# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15281 15282# If no C compiler was specified, use CC. 15283LTCC=${LTCC-"$CC"} 15284 15285# Allow CC to be a program name with arguments. 15286compiler=$CC 15287 15288 15289# Allow CC to be a program name with arguments. 15290lt_save_CC="$CC" 15291CC=${GCJ-"gcj"} 15292compiler=$CC 15293compiler_GCJ=$CC 15294 15295# GCJ did not exist at the time GCC didn't implicitly link libc in. 15296archive_cmds_need_lc_GCJ=no 15297 15298 15299lt_prog_compiler_no_builtin_flag_GCJ= 15300 15301if test "$GCC" = yes; then 15302 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15303 15304 15305echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15306echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15307if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15308 echo $ECHO_N "(cached) $ECHO_C" >&6 15309else 15310 lt_cv_prog_compiler_rtti_exceptions=no 15311 ac_outfile=conftest.$ac_objext 15312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15313 lt_compiler_flag="-fno-rtti -fno-exceptions" 15314 # Insert the option either (1) after the last *FLAGS variable, or 15315 # (2) before a word containing "conftest.", or (3) at the end. 15316 # Note that $ac_compile itself does not contain backslashes and begins 15317 # with a dollar sign (not a hyphen), so the echo should work correctly. 15318 # The option is referenced via a variable to avoid confusing sed. 15319 lt_compile=`echo "$ac_compile" | $SED \ 15320 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15322 -e 's:$: $lt_compiler_flag:'` 15323 (eval echo "\"\$as_me:15323: $lt_compile\"" >&5) 15324 (eval "$lt_compile" 2>conftest.err) 15325 ac_status=$? 15326 cat conftest.err >&5 15327 echo "$as_me:15327: \$? = $ac_status" >&5 15328 if (exit $ac_status) && test -s "$ac_outfile"; then 15329 # The compiler can only warn and ignore the option if not recognized 15330 # So say no if there are warnings 15331 if test ! -s conftest.err; then 15332 lt_cv_prog_compiler_rtti_exceptions=yes 15333 fi 15334 fi 15335 $rm conftest* 15336 15337fi 15338echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15339echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15340 15341if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15342 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15343else 15344 : 15345fi 15346 15347fi 15348 15349lt_prog_compiler_wl_GCJ= 15350lt_prog_compiler_pic_GCJ= 15351lt_prog_compiler_static_GCJ= 15352 15353echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15354echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15355 15356 if test "$GCC" = yes; then 15357 lt_prog_compiler_wl_GCJ='-Wl,' 15358 lt_prog_compiler_static_GCJ='-static' 15359 15360 case $host_os in 15361 aix*) 15362 # All AIX code is PIC. 15363 if test "$host_cpu" = ia64; then 15364 # AIX 5 now supports IA64 processor 15365 lt_prog_compiler_static_GCJ='-Bstatic' 15366 fi 15367 ;; 15368 15369 amigaos*) 15370 # FIXME: we need at least 68020 code to build shared libraries, but 15371 # adding the `-m68020' flag to GCC prevents building anything better, 15372 # like `-m68040'. 15373 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15374 ;; 15375 15376 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15377 # PIC is the default for these OSes. 15378 ;; 15379 15380 mingw* | pw32* | os2*) 15381 # This hack is so that the source file can tell whether it is being 15382 # built for inclusion in a dll (and should export symbols for example). 15383 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15384 ;; 15385 15386 darwin* | rhapsody*) 15387 # PIC is the default on this platform 15388 # Common symbols not allowed in MH_DYLIB files 15389 lt_prog_compiler_pic_GCJ='-fno-common' 15390 ;; 15391 15392 msdosdjgpp*) 15393 # Just because we use GCC doesn't mean we suddenly get shared libraries 15394 # on systems that don't support them. 15395 lt_prog_compiler_can_build_shared_GCJ=no 15396 enable_shared=no 15397 ;; 15398 15399 sysv4*MP*) 15400 if test -d /usr/nec; then 15401 lt_prog_compiler_pic_GCJ=-Kconform_pic 15402 fi 15403 ;; 15404 15405 hpux*) 15406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15407 # not for PA HP-UX. 15408 case "$host_cpu" in 15409 hppa*64*|ia64*) 15410 # +Z the default 15411 ;; 15412 *) 15413 lt_prog_compiler_pic_GCJ='-fPIC' 15414 ;; 15415 esac 15416 ;; 15417 15418 *) 15419 lt_prog_compiler_pic_GCJ='-fPIC' 15420 ;; 15421 esac 15422 else 15423 # PORTME Check for flag to pass linker flags through the system compiler. 15424 case $host_os in 15425 aix*) 15426 lt_prog_compiler_wl_GCJ='-Wl,' 15427 if test "$host_cpu" = ia64; then 15428 # AIX 5 now supports IA64 processor 15429 lt_prog_compiler_static_GCJ='-Bstatic' 15430 else 15431 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15432 fi 15433 ;; 15434 darwin*) 15435 # PIC is the default on this platform 15436 # Common symbols not allowed in MH_DYLIB files 15437 case "$cc_basename" in 15438 xlc*) 15439 lt_prog_compiler_pic_GCJ='-qnocommon' 15440 lt_prog_compiler_wl_GCJ='-Wl,' 15441 ;; 15442 esac 15443 ;; 15444 15445 mingw* | pw32* | os2*) 15446 # This hack is so that the source file can tell whether it is being 15447 # built for inclusion in a dll (and should export symbols for example). 15448 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15449 ;; 15450 15451 hpux9* | hpux10* | hpux11*) 15452 lt_prog_compiler_wl_GCJ='-Wl,' 15453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15454 # not for PA HP-UX. 15455 case "$host_cpu" in 15456 hppa*64*|ia64*) 15457 # +Z the default 15458 ;; 15459 *) 15460 lt_prog_compiler_pic_GCJ='+Z' 15461 ;; 15462 esac 15463 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15464 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15465 ;; 15466 15467 irix5* | irix6* | nonstopux*) 15468 lt_prog_compiler_wl_GCJ='-Wl,' 15469 # PIC (with -KPIC) is the default. 15470 lt_prog_compiler_static_GCJ='-non_shared' 15471 ;; 15472 15473 newsos6) 15474 lt_prog_compiler_pic_GCJ='-KPIC' 15475 lt_prog_compiler_static_GCJ='-Bstatic' 15476 ;; 15477 15478 linux*) 15479 case $CC in 15480 icc* | ecc*) 15481 lt_prog_compiler_wl_GCJ='-Wl,' 15482 lt_prog_compiler_pic_GCJ='-KPIC' 15483 lt_prog_compiler_static_GCJ='-static' 15484 ;; 15485 ccc*) 15486 lt_prog_compiler_wl_GCJ='-Wl,' 15487 # All Alpha code is PIC. 15488 lt_prog_compiler_static_GCJ='-non_shared' 15489 ;; 15490 esac 15491 ;; 15492 15493 osf3* | osf4* | osf5*) 15494 lt_prog_compiler_wl_GCJ='-Wl,' 15495 # All OSF/1 code is PIC. 15496 lt_prog_compiler_static_GCJ='-non_shared' 15497 ;; 15498 15499 sco3.2v5*) 15500 lt_prog_compiler_pic_GCJ='-Kpic' 15501 lt_prog_compiler_static_GCJ='-dn' 15502 ;; 15503 15504 solaris*) 15505 lt_prog_compiler_wl_GCJ='-Wl,' 15506 lt_prog_compiler_pic_GCJ='-KPIC' 15507 lt_prog_compiler_static_GCJ='-Bstatic' 15508 ;; 15509 15510 sunos4*) 15511 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15512 lt_prog_compiler_pic_GCJ='-PIC' 15513 lt_prog_compiler_static_GCJ='-Bstatic' 15514 ;; 15515 15516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15517 lt_prog_compiler_wl_GCJ='-Wl,' 15518 lt_prog_compiler_pic_GCJ='-KPIC' 15519 lt_prog_compiler_static_GCJ='-Bstatic' 15520 ;; 15521 15522 sysv4*MP*) 15523 if test -d /usr/nec ;then 15524 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15525 lt_prog_compiler_static_GCJ='-Bstatic' 15526 fi 15527 ;; 15528 15529 uts4*) 15530 lt_prog_compiler_pic_GCJ='-pic' 15531 lt_prog_compiler_static_GCJ='-Bstatic' 15532 ;; 15533 15534 *) 15535 lt_prog_compiler_can_build_shared_GCJ=no 15536 ;; 15537 esac 15538 fi 15539 15540echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15541echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15542 15543# 15544# Check to make sure the PIC flag actually works. 15545# 15546if test -n "$lt_prog_compiler_pic_GCJ"; then 15547 15548echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15549echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15550if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15551 echo $ECHO_N "(cached) $ECHO_C" >&6 15552else 15553 lt_prog_compiler_pic_works_GCJ=no 15554 ac_outfile=conftest.$ac_objext 15555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15556 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15557 # Insert the option either (1) after the last *FLAGS variable, or 15558 # (2) before a word containing "conftest.", or (3) at the end. 15559 # Note that $ac_compile itself does not contain backslashes and begins 15560 # with a dollar sign (not a hyphen), so the echo should work correctly. 15561 # The option is referenced via a variable to avoid confusing sed. 15562 lt_compile=`echo "$ac_compile" | $SED \ 15563 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15565 -e 's:$: $lt_compiler_flag:'` 15566 (eval echo "\"\$as_me:15566: $lt_compile\"" >&5) 15567 (eval "$lt_compile" 2>conftest.err) 15568 ac_status=$? 15569 cat conftest.err >&5 15570 echo "$as_me:15570: \$? = $ac_status" >&5 15571 if (exit $ac_status) && test -s "$ac_outfile"; then 15572 # The compiler can only warn and ignore the option if not recognized 15573 # So say no if there are warnings 15574 if test ! -s conftest.err; then 15575 lt_prog_compiler_pic_works_GCJ=yes 15576 fi 15577 fi 15578 $rm conftest* 15579 15580fi 15581echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15582echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15583 15584if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15585 case $lt_prog_compiler_pic_GCJ in 15586 "" | " "*) ;; 15587 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15588 esac 15589else 15590 lt_prog_compiler_pic_GCJ= 15591 lt_prog_compiler_can_build_shared_GCJ=no 15592fi 15593 15594fi 15595case "$host_os" in 15596 # For platforms which do not support PIC, -DPIC is meaningless: 15597 *djgpp*) 15598 lt_prog_compiler_pic_GCJ= 15599 ;; 15600 *) 15601 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15602 ;; 15603esac 15604 15605echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15606echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15607if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15608 echo $ECHO_N "(cached) $ECHO_C" >&6 15609else 15610 lt_cv_prog_compiler_c_o_GCJ=no 15611 $rm -r conftest 2>/dev/null 15612 mkdir conftest 15613 cd conftest 15614 mkdir out 15615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15616 15617 lt_compiler_flag="-o out/conftest2.$ac_objext" 15618 # Insert the option either (1) after the last *FLAGS variable, or 15619 # (2) before a word containing "conftest.", or (3) at the end. 15620 # Note that $ac_compile itself does not contain backslashes and begins 15621 # with a dollar sign (not a hyphen), so the echo should work correctly. 15622 lt_compile=`echo "$ac_compile" | $SED \ 15623 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15625 -e 's:$: $lt_compiler_flag:'` 15626 (eval echo "\"\$as_me:15626: $lt_compile\"" >&5) 15627 (eval "$lt_compile" 2>out/conftest.err) 15628 ac_status=$? 15629 cat out/conftest.err >&5 15630 echo "$as_me:15630: \$? = $ac_status" >&5 15631 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15632 then 15633 # The compiler can only warn and ignore the option if not recognized 15634 # So say no if there are warnings 15635 if test ! -s out/conftest.err; then 15636 lt_cv_prog_compiler_c_o_GCJ=yes 15637 fi 15638 fi 15639 chmod u+w . 15640 $rm conftest* 15641 # SGI C++ compiler will create directory out/ii_files/ for 15642 # template instantiation 15643 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15644 $rm out/* && rmdir out 15645 cd .. 15646 rmdir conftest 15647 $rm conftest* 15648 15649fi 15650echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15651echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15652 15653 15654hard_links="nottested" 15655if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15656 # do not overwrite the value of need_locks provided by the user 15657 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15658echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15659 hard_links=yes 15660 $rm conftest* 15661 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15662 touch conftest.a 15663 ln conftest.a conftest.b 2>&5 || hard_links=no 15664 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15665 echo "$as_me:$LINENO: result: $hard_links" >&5 15666echo "${ECHO_T}$hard_links" >&6 15667 if test "$hard_links" = no; then 15668 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15669echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15670 need_locks=warn 15671 fi 15672else 15673 need_locks=no 15674fi 15675 15676echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15677echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15678 15679 runpath_var= 15680 allow_undefined_flag_GCJ= 15681 enable_shared_with_static_runtimes_GCJ=no 15682 archive_cmds_GCJ= 15683 archive_expsym_cmds_GCJ= 15684 old_archive_From_new_cmds_GCJ= 15685 old_archive_from_expsyms_cmds_GCJ= 15686 export_dynamic_flag_spec_GCJ= 15687 whole_archive_flag_spec_GCJ= 15688 thread_safe_flag_spec_GCJ= 15689 hardcode_libdir_flag_spec_GCJ= 15690 hardcode_libdir_flag_spec_ld_GCJ= 15691 hardcode_libdir_separator_GCJ= 15692 hardcode_direct_GCJ=no 15693 hardcode_minus_L_GCJ=no 15694 hardcode_shlibpath_var_GCJ=unsupported 15695 link_all_deplibs_GCJ=unknown 15696 hardcode_automatic_GCJ=no 15697 module_cmds_GCJ= 15698 module_expsym_cmds_GCJ= 15699 always_export_symbols_GCJ=no 15700 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15701 # include_expsyms should be a list of space-separated symbols to be *always* 15702 # included in the symbol list 15703 include_expsyms_GCJ= 15704 # exclude_expsyms can be an extended regexp of symbols to exclude 15705 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15706 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15707 # as well as any symbol that contains `d'. 15708 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15709 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15710 # platforms (ab)use it in PIC code, but their linkers get confused if 15711 # the symbol is explicitly referenced. Since portable code cannot 15712 # rely on this symbol name, it's probably fine to never include it in 15713 # preloaded symbol tables. 15714 extract_expsyms_cmds= 15715 15716 case $host_os in 15717 cygwin* | mingw* | pw32*) 15718 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15719 # When not using gcc, we currently assume that we are using 15720 # Microsoft Visual C++. 15721 if test "$GCC" != yes; then 15722 with_gnu_ld=no 15723 fi 15724 ;; 15725 openbsd*) 15726 with_gnu_ld=no 15727 ;; 15728 esac 15729 15730 ld_shlibs_GCJ=yes 15731 if test "$with_gnu_ld" = yes; then 15732 # If archive_cmds runs LD, not CC, wlarc should be empty 15733 wlarc='${wl}' 15734 15735 # See if GNU ld supports shared libraries. 15736 case $host_os in 15737 aix3* | aix4* | aix5*) 15738 # On AIX/PPC, the GNU linker is very broken 15739 if test "$host_cpu" != ia64; then 15740 ld_shlibs_GCJ=no 15741 cat <<EOF 1>&2 15742 15743*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15744*** to be unable to reliably create shared libraries on AIX. 15745*** Therefore, libtool is disabling shared libraries support. If you 15746*** really care for shared libraries, you may want to modify your PATH 15747*** so that a non-GNU linker is found, and then restart. 15748 15749EOF 15750 fi 15751 ;; 15752 15753 amigaos*) 15754 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)' 15755 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15756 hardcode_minus_L_GCJ=yes 15757 15758 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15759 # that the semantics of dynamic libraries on AmigaOS, at least up 15760 # to version 4, is to share data among multiple programs linked 15761 # with the same dynamic library. Since this doesn't match the 15762 # behavior of shared libraries on other platforms, we can't use 15763 # them. 15764 ld_shlibs_GCJ=no 15765 ;; 15766 15767 beos*) 15768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15769 allow_undefined_flag_GCJ=unsupported 15770 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15771 # support --undefined. This deserves some investigation. FIXME 15772 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15773 else 15774 ld_shlibs_GCJ=no 15775 fi 15776 ;; 15777 15778 cygwin* | mingw* | pw32*) 15779 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15780 # as there is no search path for DLLs. 15781 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15782 allow_undefined_flag_GCJ=unsupported 15783 always_export_symbols_GCJ=no 15784 enable_shared_with_static_runtimes_GCJ=yes 15785 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15786 15787 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15788 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15789 # If the export-symbols file already is a .def file (1st line 15790 # is EXPORTS), use it as is; otherwise, prepend... 15791 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15792 cp $export_symbols $output_objdir/$soname.def; 15793 else 15794 echo EXPORTS > $output_objdir/$soname.def; 15795 cat $export_symbols >> $output_objdir/$soname.def; 15796 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15797 else 15798 ld_shlibs=no 15799 fi 15800 ;; 15801 15802 netbsd*) 15803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15804 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15805 wlarc= 15806 else 15807 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15808 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15809 fi 15810 ;; 15811 15812 solaris* | sysv5*) 15813 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15814 ld_shlibs_GCJ=no 15815 cat <<EOF 1>&2 15816 15817*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15818*** create shared libraries on Solaris systems. Therefore, libtool 15819*** is disabling shared libraries support. We urge you to upgrade GNU 15820*** binutils to release 2.9.1 or newer. Another option is to modify 15821*** your PATH or compiler configuration so that the native linker is 15822*** used, and then restart. 15823 15824EOF 15825 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15826 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15827 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15828 else 15829 ld_shlibs_GCJ=no 15830 fi 15831 ;; 15832 15833 sunos4*) 15834 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15835 wlarc= 15836 hardcode_direct_GCJ=yes 15837 hardcode_shlibpath_var_GCJ=no 15838 ;; 15839 15840 linux*) 15841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15842 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15843 archive_cmds_GCJ="$tmp_archive_cmds" 15844 supports_anon_versioning=no 15845 case `$LD -v 2>/dev/null` in 15846 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15847 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15848 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15849 *\ 2.11.*) ;; # other 2.11 versions 15850 *) supports_anon_versioning=yes ;; 15851 esac 15852 if test $supports_anon_versioning = yes; then 15853 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; 15854 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15855 else 15856 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 15857 fi 15858 else 15859 ld_shlibs_GCJ=no 15860 fi 15861 ;; 15862 15863 *) 15864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15866 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15867 else 15868 ld_shlibs_GCJ=no 15869 fi 15870 ;; 15871 esac 15872 15873 if test "$ld_shlibs_GCJ" = yes; then 15874 runpath_var=LD_RUN_PATH 15875 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15876 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15877 # ancient GNU ld didn't support --whole-archive et. al. 15878 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15879 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15880 else 15881 whole_archive_flag_spec_GCJ= 15882 fi 15883 fi 15884 else 15885 # PORTME fill in a description of your system's linker (not GNU ld) 15886 case $host_os in 15887 aix3*) 15888 allow_undefined_flag_GCJ=unsupported 15889 always_export_symbols_GCJ=yes 15890 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' 15891 # Note: this linker hardcodes the directories in LIBPATH if there 15892 # are no directories specified by -L. 15893 hardcode_minus_L_GCJ=yes 15894 if test "$GCC" = yes && test -z "$link_static_flag"; then 15895 # Neither direct hardcoding nor static linking is supported with a 15896 # broken collect2. 15897 hardcode_direct_GCJ=unsupported 15898 fi 15899 ;; 15900 15901 aix4* | aix5*) 15902 if test "$host_cpu" = ia64; then 15903 # On IA64, the linker does run time linking by default, so we don't 15904 # have to do anything special. 15905 aix_use_runtimelinking=no 15906 exp_sym_flag='-Bexport' 15907 no_entry_flag="" 15908 else 15909 # If we're using GNU nm, then we don't want the "-C" option. 15910 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15912 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' 15913 else 15914 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' 15915 fi 15916 aix_use_runtimelinking=no 15917 15918 # Test if we are trying to use run time linking or normal 15919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15920 # need to do runtime linking. 15921 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15922 for ld_flag in $LDFLAGS; do 15923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15924 aix_use_runtimelinking=yes 15925 break 15926 fi 15927 done 15928 esac 15929 15930 exp_sym_flag='-bexport' 15931 no_entry_flag='-bnoentry' 15932 fi 15933 15934 # When large executables or shared objects are built, AIX ld can 15935 # have problems creating the table of contents. If linking a library 15936 # or program results in "error TOC overflow" add -mminimal-toc to 15937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15939 15940 archive_cmds_GCJ='' 15941 hardcode_direct_GCJ=yes 15942 hardcode_libdir_separator_GCJ=':' 15943 link_all_deplibs_GCJ=yes 15944 15945 if test "$GCC" = yes; then 15946 case $host_os in aix4.012|aix4.012.*) 15947 # We only want to do this on AIX 4.2 and lower, the check 15948 # below for broken collect2 doesn't work under 4.3+ 15949 collect2name=`${CC} -print-prog-name=collect2` 15950 if test -f "$collect2name" && \ 15951 strings "$collect2name" | grep resolve_lib_name >/dev/null 15952 then 15953 # We have reworked collect2 15954 hardcode_direct_GCJ=yes 15955 else 15956 # We have old collect2 15957 hardcode_direct_GCJ=unsupported 15958 # It fails to find uninstalled libraries when the uninstalled 15959 # path is not listed in the libpath. Setting hardcode_minus_L 15960 # to unsupported forces relinking 15961 hardcode_minus_L_GCJ=yes 15962 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15963 hardcode_libdir_separator_GCJ= 15964 fi 15965 esac 15966 shared_flag='-shared' 15967 else 15968 # not using gcc 15969 if test "$host_cpu" = ia64; then 15970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15971 # chokes on -Wl,-G. The following line is correct: 15972 shared_flag='-G' 15973 else 15974 if test "$aix_use_runtimelinking" = yes; then 15975 shared_flag='${wl}-G' 15976 else 15977 shared_flag='${wl}-bM:SRE' 15978 fi 15979 fi 15980 fi 15981 15982 # It seems that -bexpall does not export symbols beginning with 15983 # underscore (_), so it is better to generate a list of symbols to export. 15984 always_export_symbols_GCJ=yes 15985 if test "$aix_use_runtimelinking" = yes; then 15986 # Warning - without using the other runtime loading flags (-brtl), 15987 # -berok will link without error, but may produce a broken library. 15988 allow_undefined_flag_GCJ='-berok' 15989 # Determine the default libpath from the value encoded in an empty executable. 15990 cat >conftest.$ac_ext <<_ACEOF 15991/* confdefs.h. */ 15992_ACEOF 15993cat confdefs.h >>conftest.$ac_ext 15994cat >>conftest.$ac_ext <<_ACEOF 15995/* end confdefs.h. */ 15996 15997int 15998main () 15999{ 16000 16001 ; 16002 return 0; 16003} 16004_ACEOF 16005rm -f conftest.$ac_objext conftest$ac_exeext 16006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16007 (eval $ac_link) 2>conftest.er1 16008 ac_status=$? 16009 grep -v '^ *+' conftest.er1 >conftest.err 16010 rm -f conftest.er1 16011 cat conftest.err >&5 16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16013 (exit $ac_status); } && 16014 { ac_try='test -z "$ac_c_werror_flag" 16015 || test ! -s conftest.err' 16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16017 (eval $ac_try) 2>&5 16018 ac_status=$? 16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16020 (exit $ac_status); }; } && 16021 { ac_try='test -s conftest$ac_exeext' 16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16023 (eval $ac_try) 2>&5 16024 ac_status=$? 16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16026 (exit $ac_status); }; }; then 16027 16028aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16029}'` 16030# Check for a 64-bit object if we didn't find anything. 16031if 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; } 16032}'`; fi 16033else 16034 echo "$as_me: failed program was:" >&5 16035sed 's/^/| /' conftest.$ac_ext >&5 16036 16037fi 16038rm -f conftest.err conftest.$ac_objext \ 16039 conftest$ac_exeext conftest.$ac_ext 16040if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16041 16042 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16043 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" 16044 else 16045 if test "$host_cpu" = ia64; then 16046 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16047 allow_undefined_flag_GCJ="-z nodefs" 16048 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" 16049 else 16050 # Determine the default libpath from the value encoded in an empty executable. 16051 cat >conftest.$ac_ext <<_ACEOF 16052/* confdefs.h. */ 16053_ACEOF 16054cat confdefs.h >>conftest.$ac_ext 16055cat >>conftest.$ac_ext <<_ACEOF 16056/* end confdefs.h. */ 16057 16058int 16059main () 16060{ 16061 16062 ; 16063 return 0; 16064} 16065_ACEOF 16066rm -f conftest.$ac_objext conftest$ac_exeext 16067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16068 (eval $ac_link) 2>conftest.er1 16069 ac_status=$? 16070 grep -v '^ *+' conftest.er1 >conftest.err 16071 rm -f conftest.er1 16072 cat conftest.err >&5 16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16074 (exit $ac_status); } && 16075 { ac_try='test -z "$ac_c_werror_flag" 16076 || test ! -s conftest.err' 16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16078 (eval $ac_try) 2>&5 16079 ac_status=$? 16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16081 (exit $ac_status); }; } && 16082 { ac_try='test -s conftest$ac_exeext' 16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16084 (eval $ac_try) 2>&5 16085 ac_status=$? 16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16087 (exit $ac_status); }; }; then 16088 16089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16090}'` 16091# Check for a 64-bit object if we didn't find anything. 16092if 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; } 16093}'`; fi 16094else 16095 echo "$as_me: failed program was:" >&5 16096sed 's/^/| /' conftest.$ac_ext >&5 16097 16098fi 16099rm -f conftest.err conftest.$ac_objext \ 16100 conftest$ac_exeext conftest.$ac_ext 16101if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16102 16103 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16104 # Warning - without using the other run time loading flags, 16105 # -berok will link without error, but may produce a broken library. 16106 no_undefined_flag_GCJ=' ${wl}-bernotok' 16107 allow_undefined_flag_GCJ=' ${wl}-berok' 16108 # -bexpall does not export symbols beginning with underscore (_) 16109 always_export_symbols_GCJ=yes 16110 # Exported symbols can be pulled into shared objects from archives 16111 whole_archive_flag_spec_GCJ=' ' 16112 archive_cmds_need_lc_GCJ=yes 16113 # This is similar to how AIX traditionally builds it's shared libraries. 16114 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' 16115 fi 16116 fi 16117 ;; 16118 16119 amigaos*) 16120 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)' 16121 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16122 hardcode_minus_L_GCJ=yes 16123 # see comment about different semantics on the GNU ld section 16124 ld_shlibs_GCJ=no 16125 ;; 16126 16127 bsdi[45]*) 16128 export_dynamic_flag_spec_GCJ=-rdynamic 16129 ;; 16130 16131 cygwin* | mingw* | pw32*) 16132 # When not using gcc, we currently assume that we are using 16133 # Microsoft Visual C++. 16134 # hardcode_libdir_flag_spec is actually meaningless, as there is 16135 # no search path for DLLs. 16136 hardcode_libdir_flag_spec_GCJ=' ' 16137 allow_undefined_flag_GCJ=unsupported 16138 # Tell ltmain to make .lib files, not .a files. 16139 libext=lib 16140 # Tell ltmain to make .dll files, not .so files. 16141 shrext_cmds=".dll" 16142 # FIXME: Setting linknames here is a bad hack. 16143 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames=' 16144 # The linker will automatically build a .lib file if we build a DLL. 16145 old_archive_From_new_cmds_GCJ='true' 16146 # FIXME: Should let the user specify the lib program. 16147 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16148 fix_srcfile_path='`cygpath -w "$srcfile"`' 16149 enable_shared_with_static_runtimes_GCJ=yes 16150 ;; 16151 16152 darwin* | rhapsody*) 16153 case "$host_os" in 16154 rhapsody* | darwin1.[012]) 16155 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16156 ;; 16157 *) # Darwin 1.3 on 16158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16159 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16160 else 16161 case ${MACOSX_DEPLOYMENT_TARGET} in 16162 10.[012]) 16163 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16164 ;; 16165 10.*) 16166 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16167 ;; 16168 esac 16169 fi 16170 ;; 16171 esac 16172 archive_cmds_need_lc_GCJ=no 16173 hardcode_direct_GCJ=no 16174 hardcode_automatic_GCJ=yes 16175 hardcode_shlibpath_var_GCJ=unsupported 16176 whole_archive_flag_spec_GCJ='' 16177 link_all_deplibs_GCJ=yes 16178 if test "$GCC" = yes ; then 16179 output_verbose_link_cmd='echo' 16180 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16181 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16183 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}' 16184 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}' 16185 else 16186 case "$cc_basename" in 16187 xlc*) 16188 output_verbose_link_cmd='echo' 16189 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16190 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16192 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}' 16193 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}' 16194 ;; 16195 *) 16196 ld_shlibs_GCJ=no 16197 ;; 16198 esac 16199 fi 16200 ;; 16201 16202 dgux*) 16203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16204 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16205 hardcode_shlibpath_var_GCJ=no 16206 ;; 16207 16208 freebsd1*) 16209 ld_shlibs_GCJ=no 16210 ;; 16211 16212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16213 # support. Future versions do this automatically, but an explicit c++rt0.o 16214 # does not break anything, and helps significantly (at the cost of a little 16215 # extra space). 16216 freebsd2.2*) 16217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16218 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16219 hardcode_direct_GCJ=yes 16220 hardcode_shlibpath_var_GCJ=no 16221 ;; 16222 16223 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16224 freebsd2*) 16225 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16226 hardcode_direct_GCJ=yes 16227 hardcode_minus_L_GCJ=yes 16228 hardcode_shlibpath_var_GCJ=no 16229 ;; 16230 16231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16232 freebsd* | kfreebsd*-gnu) 16233 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16234 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16235 hardcode_direct_GCJ=yes 16236 hardcode_shlibpath_var_GCJ=no 16237 ;; 16238 16239 hpux9*) 16240 if test "$GCC" = yes; then 16241 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' 16242 else 16243 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' 16244 fi 16245 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16246 hardcode_libdir_separator_GCJ=: 16247 hardcode_direct_GCJ=yes 16248 16249 # hardcode_minus_L: Not really in the search PATH, 16250 # but as the default location of the library. 16251 hardcode_minus_L_GCJ=yes 16252 export_dynamic_flag_spec_GCJ='${wl}-E' 16253 ;; 16254 16255 hpux10* | hpux11*) 16256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16257 case "$host_cpu" in 16258 hppa*64*|ia64*) 16259 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16260 ;; 16261 *) 16262 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16263 ;; 16264 esac 16265 else 16266 case "$host_cpu" in 16267 hppa*64*|ia64*) 16268 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16269 ;; 16270 *) 16271 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16272 ;; 16273 esac 16274 fi 16275 if test "$with_gnu_ld" = no; then 16276 case "$host_cpu" in 16277 hppa*64*) 16278 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16279 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16280 hardcode_libdir_separator_GCJ=: 16281 hardcode_direct_GCJ=no 16282 hardcode_shlibpath_var_GCJ=no 16283 ;; 16284 ia64*) 16285 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16286 hardcode_direct_GCJ=no 16287 hardcode_shlibpath_var_GCJ=no 16288 16289 # hardcode_minus_L: Not really in the search PATH, 16290 # but as the default location of the library. 16291 hardcode_minus_L_GCJ=yes 16292 ;; 16293 *) 16294 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16295 hardcode_libdir_separator_GCJ=: 16296 hardcode_direct_GCJ=yes 16297 export_dynamic_flag_spec_GCJ='${wl}-E' 16298 16299 # hardcode_minus_L: Not really in the search PATH, 16300 # but as the default location of the library. 16301 hardcode_minus_L_GCJ=yes 16302 ;; 16303 esac 16304 fi 16305 ;; 16306 16307 irix5* | irix6* | nonstopux*) 16308 if test "$GCC" = yes; then 16309 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' 16310 else 16311 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' 16312 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16313 fi 16314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16315 hardcode_libdir_separator_GCJ=: 16316 link_all_deplibs_GCJ=yes 16317 ;; 16318 16319 netbsd*) 16320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16321 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16322 else 16323 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16324 fi 16325 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16326 hardcode_direct_GCJ=yes 16327 hardcode_shlibpath_var_GCJ=no 16328 ;; 16329 16330 newsos6) 16331 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16332 hardcode_direct_GCJ=yes 16333 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16334 hardcode_libdir_separator_GCJ=: 16335 hardcode_shlibpath_var_GCJ=no 16336 ;; 16337 16338 openbsd*) 16339 hardcode_direct_GCJ=yes 16340 hardcode_shlibpath_var_GCJ=no 16341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16342 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16343 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16344 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16345 export_dynamic_flag_spec_GCJ='${wl}-E' 16346 else 16347 case $host_os in 16348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16349 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16350 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16351 ;; 16352 *) 16353 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16355 ;; 16356 esac 16357 fi 16358 ;; 16359 16360 os2*) 16361 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16362 hardcode_minus_L_GCJ=yes 16363 allow_undefined_flag_GCJ=unsupported 16364 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' 16365 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16366 ;; 16367 16368 osf3*) 16369 if test "$GCC" = yes; then 16370 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16371 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' 16372 else 16373 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16374 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' 16375 fi 16376 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16377 hardcode_libdir_separator_GCJ=: 16378 ;; 16379 16380 osf4* | osf5*) # as osf3* with the addition of -msym flag 16381 if test "$GCC" = yes; then 16382 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16383 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' 16384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16385 else 16386 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16387 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' 16388 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; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp' 16389 # Both c and cxx compiler support -rpath directly 16390 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16391 fi 16392 hardcode_libdir_separator_GCJ=: 16393 ;; 16394 16395 sco3.2v5*) 16396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16397 hardcode_shlibpath_var_GCJ=no 16398 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16399 runpath_var=LD_RUN_PATH 16400 hardcode_runpath_var=yes 16401 ;; 16402 16403 solaris*) 16404 no_undefined_flag_GCJ=' -z text' 16405 if test "$GCC" = yes; then 16406 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16407 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp' 16408 else 16409 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16410 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp' 16411 fi 16412 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16413 hardcode_shlibpath_var_GCJ=no 16414 case $host_os in 16415 solaris2.[0-5] | solaris2.[0-5].*) ;; 16416 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16417 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16418 esac 16419 link_all_deplibs_GCJ=yes 16420 ;; 16421 16422 sunos4*) 16423 if test "x$host_vendor" = xsequent; then 16424 # Use $CC to link under sequent, because it throws in some extra .o 16425 # files that make .init and .fini sections work. 16426 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16427 else 16428 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16429 fi 16430 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16431 hardcode_direct_GCJ=yes 16432 hardcode_minus_L_GCJ=yes 16433 hardcode_shlibpath_var_GCJ=no 16434 ;; 16435 16436 sysv4) 16437 case $host_vendor in 16438 sni) 16439 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16440 hardcode_direct_GCJ=yes # is this really true??? 16441 ;; 16442 siemens) 16443 ## LD is ld it makes a PLAMLIB 16444 ## CC just makes a GrossModule. 16445 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16446 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16447 hardcode_direct_GCJ=no 16448 ;; 16449 motorola) 16450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16451 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16452 ;; 16453 esac 16454 runpath_var='LD_RUN_PATH' 16455 hardcode_shlibpath_var_GCJ=no 16456 ;; 16457 16458 sysv4.3*) 16459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16460 hardcode_shlibpath_var_GCJ=no 16461 export_dynamic_flag_spec_GCJ='-Bexport' 16462 ;; 16463 16464 sysv4*MP*) 16465 if test -d /usr/nec; then 16466 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16467 hardcode_shlibpath_var_GCJ=no 16468 runpath_var=LD_RUN_PATH 16469 hardcode_runpath_var=yes 16470 ld_shlibs_GCJ=yes 16471 fi 16472 ;; 16473 16474 sysv4.2uw2*) 16475 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16476 hardcode_direct_GCJ=yes 16477 hardcode_minus_L_GCJ=no 16478 hardcode_shlibpath_var_GCJ=no 16479 hardcode_runpath_var=yes 16480 runpath_var=LD_RUN_PATH 16481 ;; 16482 16483 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16484 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16485 if test "$GCC" = yes; then 16486 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16487 else 16488 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16489 fi 16490 runpath_var='LD_RUN_PATH' 16491 hardcode_shlibpath_var_GCJ=no 16492 ;; 16493 16494 sysv5*) 16495 no_undefined_flag_GCJ=' -z text' 16496 # $CC -shared without GNU ld will not create a library from C++ 16497 # object files and a static libstdc++, better avoid it by now 16498 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16499 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp' 16500 hardcode_libdir_flag_spec_GCJ= 16501 hardcode_shlibpath_var_GCJ=no 16502 runpath_var='LD_RUN_PATH' 16503 ;; 16504 16505 uts4*) 16506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16507 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16508 hardcode_shlibpath_var_GCJ=no 16509 ;; 16510 16511 *) 16512 ld_shlibs_GCJ=no 16513 ;; 16514 esac 16515 fi 16516 16517echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16518echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16519test "$ld_shlibs_GCJ" = no && can_build_shared=no 16520 16521variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16522if test "$GCC" = yes; then 16523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16524fi 16525 16526# 16527# Do we need to explicitly link libc? 16528# 16529case "x$archive_cmds_need_lc_GCJ" in 16530x|xyes) 16531 # Assume -lc should be added 16532 archive_cmds_need_lc_GCJ=yes 16533 16534 if test "$enable_shared" = yes && test "$GCC" = yes; then 16535 case $archive_cmds_GCJ in 16536 *'~'*) 16537 # FIXME: we may have to deal with multi-command sequences. 16538 ;; 16539 '$CC '*) 16540 # Test whether the compiler implicitly links with -lc since on some 16541 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16542 # to ld, don't add -lc before -lgcc. 16543 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16544echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16545 $rm conftest* 16546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16547 16548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16549 (eval $ac_compile) 2>&5 16550 ac_status=$? 16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16552 (exit $ac_status); } 2>conftest.err; then 16553 soname=conftest 16554 lib=conftest 16555 libobjs=conftest.$ac_objext 16556 deplibs= 16557 wl=$lt_prog_compiler_wl_GCJ 16558 compiler_flags=-v 16559 linker_flags=-v 16560 verstring= 16561 output_objdir=. 16562 libname=conftest 16563 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16564 allow_undefined_flag_GCJ= 16565 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16566 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16567 ac_status=$? 16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16569 (exit $ac_status); } 16570 then 16571 archive_cmds_need_lc_GCJ=no 16572 else 16573 archive_cmds_need_lc_GCJ=yes 16574 fi 16575 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16576 else 16577 cat conftest.err 1>&5 16578 fi 16579 $rm conftest* 16580 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16581echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16582 ;; 16583 esac 16584 fi 16585 ;; 16586esac 16587 16588echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16589echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16590library_names_spec= 16591libname_spec='lib$name' 16592soname_spec= 16593shrext_cmds=".so" 16594postinstall_cmds= 16595postuninstall_cmds= 16596finish_cmds= 16597finish_eval= 16598shlibpath_var= 16599shlibpath_overrides_runpath=unknown 16600version_type=none 16601dynamic_linker="$host_os ld.so" 16602sys_lib_dlsearch_path_spec="/lib /usr/lib" 16603if test "$GCC" = yes; then 16604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16605 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16606 # if the path contains ";" then we assume it to be the separator 16607 # otherwise default to the standard path separator (i.e. ":") - it is 16608 # assumed that no part of a normal pathname contains ";" but that should 16609 # okay in the real world where ";" in dirpaths is itself problematic. 16610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16611 else 16612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16613 fi 16614else 16615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16616fi 16617need_lib_prefix=unknown 16618hardcode_into_libs=no 16619 16620# when you set need_version to no, make sure it does not cause -set_version 16621# flags to be left without arguments 16622need_version=unknown 16623 16624case $host_os in 16625aix3*) 16626 version_type=linux 16627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16628 shlibpath_var=LIBPATH 16629 16630 # AIX 3 has no versioning support, so we append a major version to the name. 16631 soname_spec='${libname}${release}${shared_ext}$major' 16632 ;; 16633 16634aix4* | aix5*) 16635 version_type=linux 16636 need_lib_prefix=no 16637 need_version=no 16638 hardcode_into_libs=yes 16639 if test "$host_cpu" = ia64; then 16640 # AIX 5 supports IA64 16641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16642 shlibpath_var=LD_LIBRARY_PATH 16643 else 16644 # With GCC up to 2.95.x, collect2 would create an import file 16645 # for dependence libraries. The import file would start with 16646 # the line `#! .'. This would cause the generated library to 16647 # depend on `.', always an invalid library. This was fixed in 16648 # development snapshots of GCC prior to 3.0. 16649 case $host_os in 16650 aix4 | aix4.[01] | aix4.[01].*) 16651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16652 echo ' yes ' 16653 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16654 : 16655 else 16656 can_build_shared=no 16657 fi 16658 ;; 16659 esac 16660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16661 # soname into executable. Probably we can add versioning support to 16662 # collect2, so additional links can be useful in future. 16663 if test "$aix_use_runtimelinking" = yes; then 16664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16665 # instead of lib<name>.a to let people know that these are not 16666 # typical AIX shared libraries. 16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16668 else 16669 # We preserve .a as extension for shared libraries through AIX4.2 16670 # and later when we are not doing run time linking. 16671 library_names_spec='${libname}${release}.a $libname.a' 16672 soname_spec='${libname}${release}${shared_ext}$major' 16673 fi 16674 shlibpath_var=LIBPATH 16675 fi 16676 ;; 16677 16678amigaos*) 16679 library_names_spec='$libname.ixlibrary $libname.a' 16680 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16681 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' 16682 ;; 16683 16684beos*) 16685 library_names_spec='${libname}${shared_ext}' 16686 dynamic_linker="$host_os ld.so" 16687 shlibpath_var=LIBRARY_PATH 16688 ;; 16689 16690bsdi[45]*) 16691 version_type=linux 16692 need_version=no 16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16694 soname_spec='${libname}${release}${shared_ext}$major' 16695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16696 shlibpath_var=LD_LIBRARY_PATH 16697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16699 # the default ld.so.conf also contains /usr/contrib/lib and 16700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16701 # libtool to hard-code these into programs 16702 ;; 16703 16704cygwin* | mingw* | pw32*) 16705 version_type=windows 16706 shrext_cmds=".dll" 16707 need_version=no 16708 need_lib_prefix=no 16709 16710 case $GCC,$host_os in 16711 yes,cygwin* | yes,mingw* | yes,pw32*) 16712 library_names_spec='$libname.dll.a' 16713 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16714 postinstall_cmds='base_file=`basename \${file}`; 16715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; 16716 dldir=$destdir/`dirname \$dlpath`; 16717 test -d \$dldir || mkdir -p \$dldir; 16718 $install_prog $dir/$dlname \$dldir/$dlname' 16719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; 16720 dlpath=$dir/\$dldll; 16721 $rm \$dlpath' 16722 shlibpath_overrides_runpath=yes 16723 16724 case $host_os in 16725 cygwin*) 16726 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16727 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16728 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16729 ;; 16730 mingw*) 16731 # MinGW DLLs use traditional 'lib' prefix 16732 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16733 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16734 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16735 # It is most probably a Windows format PATH printed by 16736 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16737 # path with ; separators, and with drive letters. We can handle the 16738 # drive letters (cygwin fileutils understands them), so leave them, 16739 # especially as we might pass files found there to a mingw objdump, 16740 # which wouldn't understand a cygwinified path. Ahh. 16741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16742 else 16743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16744 fi 16745 ;; 16746 pw32*) 16747 # pw32 DLLs use 'pw' prefix rather than 'lib' 16748 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16749 ;; 16750 esac 16751 ;; 16752 16753 *) 16754 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16755 ;; 16756 esac 16757 dynamic_linker='Win32 ld.exe' 16758 # FIXME: first we should search . and the directory the executable is in 16759 shlibpath_var=PATH 16760 ;; 16761 16762darwin* | rhapsody*) 16763 dynamic_linker="$host_os dyld" 16764 version_type=darwin 16765 need_lib_prefix=no 16766 need_version=no 16767 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16768 soname_spec='${libname}${release}${major}$shared_ext' 16769 shlibpath_overrides_runpath=yes 16770 shlibpath_var=DYLD_LIBRARY_PATH 16771 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 16772 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16773 if test "$GCC" = yes; then 16774 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"` 16775 else 16776 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16777 fi 16778 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16779 ;; 16780 16781dgux*) 16782 version_type=linux 16783 need_lib_prefix=no 16784 need_version=no 16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16786 soname_spec='${libname}${release}${shared_ext}$major' 16787 shlibpath_var=LD_LIBRARY_PATH 16788 ;; 16789 16790freebsd1*) 16791 dynamic_linker=no 16792 ;; 16793 16794kfreebsd*-gnu) 16795 version_type=linux 16796 need_lib_prefix=no 16797 need_version=no 16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16799 soname_spec='${libname}${release}${shared_ext}$major' 16800 shlibpath_var=LD_LIBRARY_PATH 16801 shlibpath_overrides_runpath=no 16802 hardcode_into_libs=yes 16803 dynamic_linker='GNU ld.so' 16804 ;; 16805 16806freebsd*) 16807 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16808 version_type=freebsd-$objformat 16809 case $version_type in 16810 freebsd-elf*) 16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16812 need_version=no 16813 need_lib_prefix=no 16814 ;; 16815 freebsd-*) 16816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16817 need_version=yes 16818 ;; 16819 esac 16820 shlibpath_var=LD_LIBRARY_PATH 16821 case $host_os in 16822 freebsd2*) 16823 shlibpath_overrides_runpath=yes 16824 ;; 16825 freebsd3.01* | freebsdelf3.01*) 16826 shlibpath_overrides_runpath=yes 16827 hardcode_into_libs=yes 16828 ;; 16829 *) # from 3.2 on 16830 shlibpath_overrides_runpath=no 16831 hardcode_into_libs=yes 16832 ;; 16833 esac 16834 ;; 16835 16836gnu*) 16837 version_type=linux 16838 need_lib_prefix=no 16839 need_version=no 16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16841 soname_spec='${libname}${release}${shared_ext}$major' 16842 shlibpath_var=LD_LIBRARY_PATH 16843 hardcode_into_libs=yes 16844 ;; 16845 16846hpux9* | hpux10* | hpux11*) 16847 # Give a soname corresponding to the major version so that dld.sl refuses to 16848 # link against other versions. 16849 version_type=sunos 16850 need_lib_prefix=no 16851 need_version=no 16852 case "$host_cpu" in 16853 ia64*) 16854 shrext_cmds='.so' 16855 hardcode_into_libs=yes 16856 dynamic_linker="$host_os dld.so" 16857 shlibpath_var=LD_LIBRARY_PATH 16858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16860 soname_spec='${libname}${release}${shared_ext}$major' 16861 if test "X$HPUX_IA64_MODE" = X32; then 16862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16863 else 16864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16865 fi 16866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16867 ;; 16868 hppa*64*) 16869 shrext_cmds='.sl' 16870 hardcode_into_libs=yes 16871 dynamic_linker="$host_os dld.sl" 16872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16875 soname_spec='${libname}${release}${shared_ext}$major' 16876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16878 ;; 16879 *) 16880 shrext_cmds='.sl' 16881 dynamic_linker="$host_os dld.sl" 16882 shlibpath_var=SHLIB_PATH 16883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16885 soname_spec='${libname}${release}${shared_ext}$major' 16886 ;; 16887 esac 16888 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16889 postinstall_cmds='chmod 555 $lib' 16890 ;; 16891 16892irix5* | irix6* | nonstopux*) 16893 case $host_os in 16894 nonstopux*) version_type=nonstopux ;; 16895 *) 16896 if test "$lt_cv_prog_gnu_ld" = yes; then 16897 version_type=linux 16898 else 16899 version_type=irix 16900 fi ;; 16901 esac 16902 need_lib_prefix=no 16903 need_version=no 16904 soname_spec='${libname}${release}${shared_ext}$major' 16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16906 case $host_os in 16907 irix5* | nonstopux*) 16908 libsuff= shlibsuff= 16909 ;; 16910 *) 16911 case $LD in # libtool.m4 will add one of these switches to LD 16912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16913 libsuff= shlibsuff= libmagic=32-bit;; 16914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16915 libsuff=32 shlibsuff=N32 libmagic=N32;; 16916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16917 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16918 *) libsuff= shlibsuff= libmagic=never-match;; 16919 esac 16920 ;; 16921 esac 16922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16923 shlibpath_overrides_runpath=no 16924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16926 hardcode_into_libs=yes 16927 ;; 16928 16929# No shared lib support for Linux oldld, aout, or coff. 16930linux*oldld* | linux*aout* | linux*coff*) 16931 dynamic_linker=no 16932 ;; 16933 16934# This must be Linux ELF. 16935linux*) 16936 version_type=linux 16937 need_lib_prefix=no 16938 need_version=no 16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16940 soname_spec='${libname}${release}${shared_ext}$major' 16941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16942 shlibpath_var=LD_LIBRARY_PATH 16943 shlibpath_overrides_runpath=no 16944 # This implies no fast_install, which is unacceptable. 16945 # Some rework will be needed to allow for fast_install 16946 # before this can be enabled. 16947 hardcode_into_libs=yes 16948 16949 # Append ld.so.conf contents to the search path 16950 if test -f /etc/ld.so.conf; then 16951 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 16952 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16953 fi 16954 16955 # We used to test for /lib/ld.so.1 and disable shared libraries on 16956 # powerpc, because MkLinux only supported shared libraries with the 16957 # GNU dynamic linker. Since this was broken with cross compilers, 16958 # most powerpc-linux boxes support dynamic linking these days and 16959 # people can always --disable-shared, the test was removed, and we 16960 # assume the GNU/Linux dynamic linker is in use. 16961 dynamic_linker='GNU/Linux ld.so' 16962 ;; 16963 16964knetbsd*-gnu) 16965 version_type=linux 16966 need_lib_prefix=no 16967 need_version=no 16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16969 soname_spec='${libname}${release}${shared_ext}$major' 16970 shlibpath_var=LD_LIBRARY_PATH 16971 shlibpath_overrides_runpath=no 16972 hardcode_into_libs=yes 16973 dynamic_linker='GNU ld.so' 16974 ;; 16975 16976netbsd*) 16977 version_type=sunos 16978 need_lib_prefix=no 16979 need_version=no 16980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16983 dynamic_linker='NetBSD (a.out) ld.so' 16984 else 16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16986 soname_spec='${libname}${release}${shared_ext}$major' 16987 dynamic_linker='NetBSD ld.elf_so' 16988 fi 16989 shlibpath_var=LD_LIBRARY_PATH 16990 shlibpath_overrides_runpath=yes 16991 hardcode_into_libs=yes 16992 ;; 16993 16994newsos6) 16995 version_type=linux 16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16997 shlibpath_var=LD_LIBRARY_PATH 16998 shlibpath_overrides_runpath=yes 16999 ;; 17000 17001nto-qnx*) 17002 version_type=linux 17003 need_lib_prefix=no 17004 need_version=no 17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17006 soname_spec='${libname}${release}${shared_ext}$major' 17007 shlibpath_var=LD_LIBRARY_PATH 17008 shlibpath_overrides_runpath=yes 17009 ;; 17010 17011openbsd*) 17012 version_type=sunos 17013 need_lib_prefix=no 17014 need_version=no 17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17017 shlibpath_var=LD_LIBRARY_PATH 17018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17019 case $host_os in 17020 openbsd2.[89] | openbsd2.[89].*) 17021 shlibpath_overrides_runpath=no 17022 ;; 17023 *) 17024 shlibpath_overrides_runpath=yes 17025 ;; 17026 esac 17027 else 17028 shlibpath_overrides_runpath=yes 17029 fi 17030 ;; 17031 17032os2*) 17033 libname_spec='$name' 17034 shrext_cmds=".dll" 17035 need_lib_prefix=no 17036 library_names_spec='$libname${shared_ext} $libname.a' 17037 dynamic_linker='OS/2 ld.exe' 17038 shlibpath_var=LIBPATH 17039 ;; 17040 17041osf3* | osf4* | osf5*) 17042 version_type=osf 17043 need_lib_prefix=no 17044 need_version=no 17045 soname_spec='${libname}${release}${shared_ext}$major' 17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17047 shlibpath_var=LD_LIBRARY_PATH 17048 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17049 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17050 ;; 17051 17052sco3.2v5*) 17053 version_type=osf 17054 soname_spec='${libname}${release}${shared_ext}$major' 17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17056 shlibpath_var=LD_LIBRARY_PATH 17057 ;; 17058 17059solaris*) 17060 version_type=linux 17061 need_lib_prefix=no 17062 need_version=no 17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17064 soname_spec='${libname}${release}${shared_ext}$major' 17065 shlibpath_var=LD_LIBRARY_PATH 17066 shlibpath_overrides_runpath=yes 17067 hardcode_into_libs=yes 17068 # ldd complains unless libraries are executable 17069 postinstall_cmds='chmod +x $lib' 17070 ;; 17071 17072sunos4*) 17073 version_type=sunos 17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17076 shlibpath_var=LD_LIBRARY_PATH 17077 shlibpath_overrides_runpath=yes 17078 if test "$with_gnu_ld" = yes; then 17079 need_lib_prefix=no 17080 fi 17081 need_version=yes 17082 ;; 17083 17084sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17085 version_type=linux 17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17087 soname_spec='${libname}${release}${shared_ext}$major' 17088 shlibpath_var=LD_LIBRARY_PATH 17089 case $host_vendor in 17090 sni) 17091 shlibpath_overrides_runpath=no 17092 need_lib_prefix=no 17093 export_dynamic_flag_spec='${wl}-Blargedynsym' 17094 runpath_var=LD_RUN_PATH 17095 ;; 17096 siemens) 17097 need_lib_prefix=no 17098 ;; 17099 motorola) 17100 need_lib_prefix=no 17101 need_version=no 17102 shlibpath_overrides_runpath=no 17103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17104 ;; 17105 esac 17106 ;; 17107 17108sysv4*MP*) 17109 if test -d /usr/nec ;then 17110 version_type=linux 17111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17112 soname_spec='$libname${shared_ext}.$major' 17113 shlibpath_var=LD_LIBRARY_PATH 17114 fi 17115 ;; 17116 17117uts4*) 17118 version_type=linux 17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17120 soname_spec='${libname}${release}${shared_ext}$major' 17121 shlibpath_var=LD_LIBRARY_PATH 17122 ;; 17123 17124*) 17125 dynamic_linker=no 17126 ;; 17127esac 17128echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17129echo "${ECHO_T}$dynamic_linker" >&6 17130test "$dynamic_linker" = no && can_build_shared=no 17131 17132echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17133echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17134hardcode_action_GCJ= 17135if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17136 test -n "$runpath_var_GCJ" || \ 17137 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17138 17139 # We can hardcode non-existant directories. 17140 if test "$hardcode_direct_GCJ" != no && 17141 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17142 # have to relink, otherwise we might link with an installed library 17143 # when we should be linking with a yet-to-be-installed one 17144 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17145 test "$hardcode_minus_L_GCJ" != no; then 17146 # Linking always hardcodes the temporary library directory. 17147 hardcode_action_GCJ=relink 17148 else 17149 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17150 hardcode_action_GCJ=immediate 17151 fi 17152else 17153 # We cannot hardcode anything, or else we can only hardcode existing 17154 # directories. 17155 hardcode_action_GCJ=unsupported 17156fi 17157echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17158echo "${ECHO_T}$hardcode_action_GCJ" >&6 17159 17160if test "$hardcode_action_GCJ" = relink; then 17161 # Fast installation is not supported 17162 enable_fast_install=no 17163elif test "$shlibpath_overrides_runpath" = yes || 17164 test "$enable_shared" = no; then 17165 # Fast installation is not necessary 17166 enable_fast_install=needless 17167fi 17168 17169striplib= 17170old_striplib= 17171echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17172echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17173if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17174 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17175 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17176 echo "$as_me:$LINENO: result: yes" >&5 17177echo "${ECHO_T}yes" >&6 17178else 17179# FIXME - insert some real tests, host_os isn't really good enough 17180 case $host_os in 17181 darwin*) 17182 if test -n "$STRIP" ; then 17183 striplib="$STRIP -x" 17184 echo "$as_me:$LINENO: result: yes" >&5 17185echo "${ECHO_T}yes" >&6 17186 else 17187 echo "$as_me:$LINENO: result: no" >&5 17188echo "${ECHO_T}no" >&6 17189fi 17190 ;; 17191 *) 17192 echo "$as_me:$LINENO: result: no" >&5 17193echo "${ECHO_T}no" >&6 17194 ;; 17195 esac 17196fi 17197 17198if test "x$enable_dlopen" != xyes; then 17199 enable_dlopen=unknown 17200 enable_dlopen_self=unknown 17201 enable_dlopen_self_static=unknown 17202else 17203 lt_cv_dlopen=no 17204 lt_cv_dlopen_libs= 17205 17206 case $host_os in 17207 beos*) 17208 lt_cv_dlopen="load_add_on" 17209 lt_cv_dlopen_libs= 17210 lt_cv_dlopen_self=yes 17211 ;; 17212 17213 mingw* | pw32*) 17214 lt_cv_dlopen="LoadLibrary" 17215 lt_cv_dlopen_libs= 17216 ;; 17217 17218 cygwin*) 17219 lt_cv_dlopen="dlopen" 17220 lt_cv_dlopen_libs= 17221 ;; 17222 17223 darwin*) 17224 # if libdl is installed we need to link against it 17225 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17226echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17227if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17228 echo $ECHO_N "(cached) $ECHO_C" >&6 17229else 17230 ac_check_lib_save_LIBS=$LIBS 17231LIBS="-ldl $LIBS" 17232cat >conftest.$ac_ext <<_ACEOF 17233/* confdefs.h. */ 17234_ACEOF 17235cat confdefs.h >>conftest.$ac_ext 17236cat >>conftest.$ac_ext <<_ACEOF 17237/* end confdefs.h. */ 17238 17239/* Override any gcc2 internal prototype to avoid an error. */ 17240#ifdef __cplusplus 17241extern "C" 17242#endif 17243/* We use char because int might match the return type of a gcc2 17244 builtin and then its argument prototype would still apply. */ 17245char dlopen (); 17246int 17247main () 17248{ 17249dlopen (); 17250 ; 17251 return 0; 17252} 17253_ACEOF 17254rm -f conftest.$ac_objext conftest$ac_exeext 17255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17256 (eval $ac_link) 2>conftest.er1 17257 ac_status=$? 17258 grep -v '^ *+' conftest.er1 >conftest.err 17259 rm -f conftest.er1 17260 cat conftest.err >&5 17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17262 (exit $ac_status); } && 17263 { ac_try='test -z "$ac_c_werror_flag" 17264 || test ! -s conftest.err' 17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17266 (eval $ac_try) 2>&5 17267 ac_status=$? 17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17269 (exit $ac_status); }; } && 17270 { ac_try='test -s conftest$ac_exeext' 17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17272 (eval $ac_try) 2>&5 17273 ac_status=$? 17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17275 (exit $ac_status); }; }; then 17276 ac_cv_lib_dl_dlopen=yes 17277else 17278 echo "$as_me: failed program was:" >&5 17279sed 's/^/| /' conftest.$ac_ext >&5 17280 17281ac_cv_lib_dl_dlopen=no 17282fi 17283rm -f conftest.err conftest.$ac_objext \ 17284 conftest$ac_exeext conftest.$ac_ext 17285LIBS=$ac_check_lib_save_LIBS 17286fi 17287echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17288echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17289if test $ac_cv_lib_dl_dlopen = yes; then 17290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17291else 17292 17293 lt_cv_dlopen="dyld" 17294 lt_cv_dlopen_libs= 17295 lt_cv_dlopen_self=yes 17296 17297fi 17298 17299 ;; 17300 17301 *) 17302 echo "$as_me:$LINENO: checking for shl_load" >&5 17303echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17304if test "${ac_cv_func_shl_load+set}" = set; then 17305 echo $ECHO_N "(cached) $ECHO_C" >&6 17306else 17307 cat >conftest.$ac_ext <<_ACEOF 17308/* confdefs.h. */ 17309_ACEOF 17310cat confdefs.h >>conftest.$ac_ext 17311cat >>conftest.$ac_ext <<_ACEOF 17312/* end confdefs.h. */ 17313/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17315#define shl_load innocuous_shl_load 17316 17317/* System header to define __stub macros and hopefully few prototypes, 17318 which can conflict with char shl_load (); below. 17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17320 <limits.h> exists even on freestanding compilers. */ 17321 17322#ifdef __STDC__ 17323# include <limits.h> 17324#else 17325# include <assert.h> 17326#endif 17327 17328#undef shl_load 17329 17330/* Override any gcc2 internal prototype to avoid an error. */ 17331#ifdef __cplusplus 17332extern "C" 17333{ 17334#endif 17335/* We use char because int might match the return type of a gcc2 17336 builtin and then its argument prototype would still apply. */ 17337char shl_load (); 17338/* The GNU C library defines this for functions which it implements 17339 to always fail with ENOSYS. Some functions are actually named 17340 something starting with __ and the normal name is an alias. */ 17341#if defined (__stub_shl_load) || defined (__stub___shl_load) 17342choke me 17343#else 17344char (*f) () = shl_load; 17345#endif 17346#ifdef __cplusplus 17347} 17348#endif 17349 17350int 17351main () 17352{ 17353return f != shl_load; 17354 ; 17355 return 0; 17356} 17357_ACEOF 17358rm -f conftest.$ac_objext conftest$ac_exeext 17359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17360 (eval $ac_link) 2>conftest.er1 17361 ac_status=$? 17362 grep -v '^ *+' conftest.er1 >conftest.err 17363 rm -f conftest.er1 17364 cat conftest.err >&5 17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17366 (exit $ac_status); } && 17367 { ac_try='test -z "$ac_c_werror_flag" 17368 || test ! -s conftest.err' 17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17370 (eval $ac_try) 2>&5 17371 ac_status=$? 17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17373 (exit $ac_status); }; } && 17374 { ac_try='test -s conftest$ac_exeext' 17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17376 (eval $ac_try) 2>&5 17377 ac_status=$? 17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17379 (exit $ac_status); }; }; then 17380 ac_cv_func_shl_load=yes 17381else 17382 echo "$as_me: failed program was:" >&5 17383sed 's/^/| /' conftest.$ac_ext >&5 17384 17385ac_cv_func_shl_load=no 17386fi 17387rm -f conftest.err conftest.$ac_objext \ 17388 conftest$ac_exeext conftest.$ac_ext 17389fi 17390echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17391echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17392if test $ac_cv_func_shl_load = yes; then 17393 lt_cv_dlopen="shl_load" 17394else 17395 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17396echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17397if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17398 echo $ECHO_N "(cached) $ECHO_C" >&6 17399else 17400 ac_check_lib_save_LIBS=$LIBS 17401LIBS="-ldld $LIBS" 17402cat >conftest.$ac_ext <<_ACEOF 17403/* confdefs.h. */ 17404_ACEOF 17405cat confdefs.h >>conftest.$ac_ext 17406cat >>conftest.$ac_ext <<_ACEOF 17407/* end confdefs.h. */ 17408 17409/* Override any gcc2 internal prototype to avoid an error. */ 17410#ifdef __cplusplus 17411extern "C" 17412#endif 17413/* We use char because int might match the return type of a gcc2 17414 builtin and then its argument prototype would still apply. */ 17415char shl_load (); 17416int 17417main () 17418{ 17419shl_load (); 17420 ; 17421 return 0; 17422} 17423_ACEOF 17424rm -f conftest.$ac_objext conftest$ac_exeext 17425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17426 (eval $ac_link) 2>conftest.er1 17427 ac_status=$? 17428 grep -v '^ *+' conftest.er1 >conftest.err 17429 rm -f conftest.er1 17430 cat conftest.err >&5 17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17432 (exit $ac_status); } && 17433 { ac_try='test -z "$ac_c_werror_flag" 17434 || test ! -s conftest.err' 17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17436 (eval $ac_try) 2>&5 17437 ac_status=$? 17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17439 (exit $ac_status); }; } && 17440 { ac_try='test -s conftest$ac_exeext' 17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17442 (eval $ac_try) 2>&5 17443 ac_status=$? 17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17445 (exit $ac_status); }; }; then 17446 ac_cv_lib_dld_shl_load=yes 17447else 17448 echo "$as_me: failed program was:" >&5 17449sed 's/^/| /' conftest.$ac_ext >&5 17450 17451ac_cv_lib_dld_shl_load=no 17452fi 17453rm -f conftest.err conftest.$ac_objext \ 17454 conftest$ac_exeext conftest.$ac_ext 17455LIBS=$ac_check_lib_save_LIBS 17456fi 17457echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17458echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17459if test $ac_cv_lib_dld_shl_load = yes; then 17460 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17461else 17462 echo "$as_me:$LINENO: checking for dlopen" >&5 17463echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17464if test "${ac_cv_func_dlopen+set}" = set; then 17465 echo $ECHO_N "(cached) $ECHO_C" >&6 17466else 17467 cat >conftest.$ac_ext <<_ACEOF 17468/* confdefs.h. */ 17469_ACEOF 17470cat confdefs.h >>conftest.$ac_ext 17471cat >>conftest.$ac_ext <<_ACEOF 17472/* end confdefs.h. */ 17473/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17474 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17475#define dlopen innocuous_dlopen 17476 17477/* System header to define __stub macros and hopefully few prototypes, 17478 which can conflict with char dlopen (); below. 17479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17480 <limits.h> exists even on freestanding compilers. */ 17481 17482#ifdef __STDC__ 17483# include <limits.h> 17484#else 17485# include <assert.h> 17486#endif 17487 17488#undef dlopen 17489 17490/* Override any gcc2 internal prototype to avoid an error. */ 17491#ifdef __cplusplus 17492extern "C" 17493{ 17494#endif 17495/* We use char because int might match the return type of a gcc2 17496 builtin and then its argument prototype would still apply. */ 17497char dlopen (); 17498/* The GNU C library defines this for functions which it implements 17499 to always fail with ENOSYS. Some functions are actually named 17500 something starting with __ and the normal name is an alias. */ 17501#if defined (__stub_dlopen) || defined (__stub___dlopen) 17502choke me 17503#else 17504char (*f) () = dlopen; 17505#endif 17506#ifdef __cplusplus 17507} 17508#endif 17509 17510int 17511main () 17512{ 17513return f != dlopen; 17514 ; 17515 return 0; 17516} 17517_ACEOF 17518rm -f conftest.$ac_objext conftest$ac_exeext 17519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17520 (eval $ac_link) 2>conftest.er1 17521 ac_status=$? 17522 grep -v '^ *+' conftest.er1 >conftest.err 17523 rm -f conftest.er1 17524 cat conftest.err >&5 17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17526 (exit $ac_status); } && 17527 { ac_try='test -z "$ac_c_werror_flag" 17528 || test ! -s conftest.err' 17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17530 (eval $ac_try) 2>&5 17531 ac_status=$? 17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17533 (exit $ac_status); }; } && 17534 { ac_try='test -s conftest$ac_exeext' 17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17536 (eval $ac_try) 2>&5 17537 ac_status=$? 17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17539 (exit $ac_status); }; }; then 17540 ac_cv_func_dlopen=yes 17541else 17542 echo "$as_me: failed program was:" >&5 17543sed 's/^/| /' conftest.$ac_ext >&5 17544 17545ac_cv_func_dlopen=no 17546fi 17547rm -f conftest.err conftest.$ac_objext \ 17548 conftest$ac_exeext conftest.$ac_ext 17549fi 17550echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17551echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17552if test $ac_cv_func_dlopen = yes; then 17553 lt_cv_dlopen="dlopen" 17554else 17555 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17556echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17557if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17558 echo $ECHO_N "(cached) $ECHO_C" >&6 17559else 17560 ac_check_lib_save_LIBS=$LIBS 17561LIBS="-ldl $LIBS" 17562cat >conftest.$ac_ext <<_ACEOF 17563/* confdefs.h. */ 17564_ACEOF 17565cat confdefs.h >>conftest.$ac_ext 17566cat >>conftest.$ac_ext <<_ACEOF 17567/* end confdefs.h. */ 17568 17569/* Override any gcc2 internal prototype to avoid an error. */ 17570#ifdef __cplusplus 17571extern "C" 17572#endif 17573/* We use char because int might match the return type of a gcc2 17574 builtin and then its argument prototype would still apply. */ 17575char dlopen (); 17576int 17577main () 17578{ 17579dlopen (); 17580 ; 17581 return 0; 17582} 17583_ACEOF 17584rm -f conftest.$ac_objext conftest$ac_exeext 17585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17586 (eval $ac_link) 2>conftest.er1 17587 ac_status=$? 17588 grep -v '^ *+' conftest.er1 >conftest.err 17589 rm -f conftest.er1 17590 cat conftest.err >&5 17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17592 (exit $ac_status); } && 17593 { ac_try='test -z "$ac_c_werror_flag" 17594 || test ! -s conftest.err' 17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17596 (eval $ac_try) 2>&5 17597 ac_status=$? 17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17599 (exit $ac_status); }; } && 17600 { ac_try='test -s conftest$ac_exeext' 17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17602 (eval $ac_try) 2>&5 17603 ac_status=$? 17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17605 (exit $ac_status); }; }; then 17606 ac_cv_lib_dl_dlopen=yes 17607else 17608 echo "$as_me: failed program was:" >&5 17609sed 's/^/| /' conftest.$ac_ext >&5 17610 17611ac_cv_lib_dl_dlopen=no 17612fi 17613rm -f conftest.err conftest.$ac_objext \ 17614 conftest$ac_exeext conftest.$ac_ext 17615LIBS=$ac_check_lib_save_LIBS 17616fi 17617echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17618echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17619if test $ac_cv_lib_dl_dlopen = yes; then 17620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17621else 17622 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17623echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17624if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17625 echo $ECHO_N "(cached) $ECHO_C" >&6 17626else 17627 ac_check_lib_save_LIBS=$LIBS 17628LIBS="-lsvld $LIBS" 17629cat >conftest.$ac_ext <<_ACEOF 17630/* confdefs.h. */ 17631_ACEOF 17632cat confdefs.h >>conftest.$ac_ext 17633cat >>conftest.$ac_ext <<_ACEOF 17634/* end confdefs.h. */ 17635 17636/* Override any gcc2 internal prototype to avoid an error. */ 17637#ifdef __cplusplus 17638extern "C" 17639#endif 17640/* We use char because int might match the return type of a gcc2 17641 builtin and then its argument prototype would still apply. */ 17642char dlopen (); 17643int 17644main () 17645{ 17646dlopen (); 17647 ; 17648 return 0; 17649} 17650_ACEOF 17651rm -f conftest.$ac_objext conftest$ac_exeext 17652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17653 (eval $ac_link) 2>conftest.er1 17654 ac_status=$? 17655 grep -v '^ *+' conftest.er1 >conftest.err 17656 rm -f conftest.er1 17657 cat conftest.err >&5 17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17659 (exit $ac_status); } && 17660 { ac_try='test -z "$ac_c_werror_flag" 17661 || test ! -s conftest.err' 17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17663 (eval $ac_try) 2>&5 17664 ac_status=$? 17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17666 (exit $ac_status); }; } && 17667 { ac_try='test -s conftest$ac_exeext' 17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17669 (eval $ac_try) 2>&5 17670 ac_status=$? 17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17672 (exit $ac_status); }; }; then 17673 ac_cv_lib_svld_dlopen=yes 17674else 17675 echo "$as_me: failed program was:" >&5 17676sed 's/^/| /' conftest.$ac_ext >&5 17677 17678ac_cv_lib_svld_dlopen=no 17679fi 17680rm -f conftest.err conftest.$ac_objext \ 17681 conftest$ac_exeext conftest.$ac_ext 17682LIBS=$ac_check_lib_save_LIBS 17683fi 17684echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17685echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17686if test $ac_cv_lib_svld_dlopen = yes; then 17687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17688else 17689 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17690echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17691if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17692 echo $ECHO_N "(cached) $ECHO_C" >&6 17693else 17694 ac_check_lib_save_LIBS=$LIBS 17695LIBS="-ldld $LIBS" 17696cat >conftest.$ac_ext <<_ACEOF 17697/* confdefs.h. */ 17698_ACEOF 17699cat confdefs.h >>conftest.$ac_ext 17700cat >>conftest.$ac_ext <<_ACEOF 17701/* end confdefs.h. */ 17702 17703/* Override any gcc2 internal prototype to avoid an error. */ 17704#ifdef __cplusplus 17705extern "C" 17706#endif 17707/* We use char because int might match the return type of a gcc2 17708 builtin and then its argument prototype would still apply. */ 17709char dld_link (); 17710int 17711main () 17712{ 17713dld_link (); 17714 ; 17715 return 0; 17716} 17717_ACEOF 17718rm -f conftest.$ac_objext conftest$ac_exeext 17719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17720 (eval $ac_link) 2>conftest.er1 17721 ac_status=$? 17722 grep -v '^ *+' conftest.er1 >conftest.err 17723 rm -f conftest.er1 17724 cat conftest.err >&5 17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17726 (exit $ac_status); } && 17727 { ac_try='test -z "$ac_c_werror_flag" 17728 || test ! -s conftest.err' 17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17730 (eval $ac_try) 2>&5 17731 ac_status=$? 17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17733 (exit $ac_status); }; } && 17734 { ac_try='test -s conftest$ac_exeext' 17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17736 (eval $ac_try) 2>&5 17737 ac_status=$? 17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17739 (exit $ac_status); }; }; then 17740 ac_cv_lib_dld_dld_link=yes 17741else 17742 echo "$as_me: failed program was:" >&5 17743sed 's/^/| /' conftest.$ac_ext >&5 17744 17745ac_cv_lib_dld_dld_link=no 17746fi 17747rm -f conftest.err conftest.$ac_objext \ 17748 conftest$ac_exeext conftest.$ac_ext 17749LIBS=$ac_check_lib_save_LIBS 17750fi 17751echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 17752echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 17753if test $ac_cv_lib_dld_dld_link = yes; then 17754 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 17755fi 17756 17757 17758fi 17759 17760 17761fi 17762 17763 17764fi 17765 17766 17767fi 17768 17769 17770fi 17771 17772 ;; 17773 esac 17774 17775 if test "x$lt_cv_dlopen" != xno; then 17776 enable_dlopen=yes 17777 else 17778 enable_dlopen=no 17779 fi 17780 17781 case $lt_cv_dlopen in 17782 dlopen) 17783 save_CPPFLAGS="$CPPFLAGS" 17784 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17785 17786 save_LDFLAGS="$LDFLAGS" 17787 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17788 17789 save_LIBS="$LIBS" 17790 LIBS="$lt_cv_dlopen_libs $LIBS" 17791 17792 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 17793echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 17794if test "${lt_cv_dlopen_self+set}" = set; then 17795 echo $ECHO_N "(cached) $ECHO_C" >&6 17796else 17797 if test "$cross_compiling" = yes; then : 17798 lt_cv_dlopen_self=cross 17799else 17800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17801 lt_status=$lt_dlunknown 17802 cat > conftest.$ac_ext <<EOF 17803#line 17803 "configure" 17804#include "confdefs.h" 17805 17806#if HAVE_DLFCN_H 17807#include <dlfcn.h> 17808#endif 17809 17810#include <stdio.h> 17811 17812#ifdef RTLD_GLOBAL 17813# define LT_DLGLOBAL RTLD_GLOBAL 17814#else 17815# ifdef DL_GLOBAL 17816# define LT_DLGLOBAL DL_GLOBAL 17817# else 17818# define LT_DLGLOBAL 0 17819# endif 17820#endif 17821 17822/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17823 find out it does not work in some platform. */ 17824#ifndef LT_DLLAZY_OR_NOW 17825# ifdef RTLD_LAZY 17826# define LT_DLLAZY_OR_NOW RTLD_LAZY 17827# else 17828# ifdef DL_LAZY 17829# define LT_DLLAZY_OR_NOW DL_LAZY 17830# else 17831# ifdef RTLD_NOW 17832# define LT_DLLAZY_OR_NOW RTLD_NOW 17833# else 17834# ifdef DL_NOW 17835# define LT_DLLAZY_OR_NOW DL_NOW 17836# else 17837# define LT_DLLAZY_OR_NOW 0 17838# endif 17839# endif 17840# endif 17841# endif 17842#endif 17843 17844#ifdef __cplusplus 17845extern "C" void exit (int); 17846#endif 17847 17848void fnord() { int i=42;} 17849int main () 17850{ 17851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17852 int status = $lt_dlunknown; 17853 17854 if (self) 17855 { 17856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17857 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17858 /* dlclose (self); */ 17859 } 17860 17861 exit (status); 17862} 17863EOF 17864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17865 (eval $ac_link) 2>&5 17866 ac_status=$? 17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17868 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17869 (./conftest; exit; ) 2>/dev/null 17870 lt_status=$? 17871 case x$lt_status in 17872 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17873 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17874 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17875 esac 17876 else : 17877 # compilation failed 17878 lt_cv_dlopen_self=no 17879 fi 17880fi 17881rm -fr conftest* 17882 17883 17884fi 17885echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17886echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17887 17888 if test "x$lt_cv_dlopen_self" = xyes; then 17889 LDFLAGS="$LDFLAGS $link_static_flag" 17890 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17891echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17892if test "${lt_cv_dlopen_self_static+set}" = set; then 17893 echo $ECHO_N "(cached) $ECHO_C" >&6 17894else 17895 if test "$cross_compiling" = yes; then : 17896 lt_cv_dlopen_self_static=cross 17897else 17898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17899 lt_status=$lt_dlunknown 17900 cat > conftest.$ac_ext <<EOF 17901#line 17901 "configure" 17902#include "confdefs.h" 17903 17904#if HAVE_DLFCN_H 17905#include <dlfcn.h> 17906#endif 17907 17908#include <stdio.h> 17909 17910#ifdef RTLD_GLOBAL 17911# define LT_DLGLOBAL RTLD_GLOBAL 17912#else 17913# ifdef DL_GLOBAL 17914# define LT_DLGLOBAL DL_GLOBAL 17915# else 17916# define LT_DLGLOBAL 0 17917# endif 17918#endif 17919 17920/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17921 find out it does not work in some platform. */ 17922#ifndef LT_DLLAZY_OR_NOW 17923# ifdef RTLD_LAZY 17924# define LT_DLLAZY_OR_NOW RTLD_LAZY 17925# else 17926# ifdef DL_LAZY 17927# define LT_DLLAZY_OR_NOW DL_LAZY 17928# else 17929# ifdef RTLD_NOW 17930# define LT_DLLAZY_OR_NOW RTLD_NOW 17931# else 17932# ifdef DL_NOW 17933# define LT_DLLAZY_OR_NOW DL_NOW 17934# else 17935# define LT_DLLAZY_OR_NOW 0 17936# endif 17937# endif 17938# endif 17939# endif 17940#endif 17941 17942#ifdef __cplusplus 17943extern "C" void exit (int); 17944#endif 17945 17946void fnord() { int i=42;} 17947int main () 17948{ 17949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17950 int status = $lt_dlunknown; 17951 17952 if (self) 17953 { 17954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17955 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17956 /* dlclose (self); */ 17957 } 17958 17959 exit (status); 17960} 17961EOF 17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17963 (eval $ac_link) 2>&5 17964 ac_status=$? 17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17966 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17967 (./conftest; exit; ) 2>/dev/null 17968 lt_status=$? 17969 case x$lt_status in 17970 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17971 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17972 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 17973 esac 17974 else : 17975 # compilation failed 17976 lt_cv_dlopen_self_static=no 17977 fi 17978fi 17979rm -fr conftest* 17980 17981 17982fi 17983echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17984echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 17985 fi 17986 17987 CPPFLAGS="$save_CPPFLAGS" 17988 LDFLAGS="$save_LDFLAGS" 17989 LIBS="$save_LIBS" 17990 ;; 17991 esac 17992 17993 case $lt_cv_dlopen_self in 17994 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17995 *) enable_dlopen_self=unknown ;; 17996 esac 17997 17998 case $lt_cv_dlopen_self_static in 17999 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18000 *) enable_dlopen_self_static=unknown ;; 18001 esac 18002fi 18003 18004 18005# The else clause should only fire when bootstrapping the 18006# libtool distribution, otherwise you forgot to ship ltmain.sh 18007# with your package, and you will get complaints that there are 18008# no rules to generate ltmain.sh. 18009if test -f "$ltmain"; then 18010 # See if we are running on zsh, and set the options which allow our commands through 18011 # without removal of \ escapes. 18012 if test -n "${ZSH_VERSION+set}" ; then 18013 setopt NO_GLOB_SUBST 18014 fi 18015 # Now quote all the things that may contain metacharacters while being 18016 # careful not to overquote the AC_SUBSTed values. We take copies of the 18017 # variables and quote the copies for generation of the libtool script. 18018 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18019 SED SHELL STRIP \ 18020 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18021 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18022 deplibs_check_method reload_flag reload_cmds need_locks \ 18023 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18024 lt_cv_sys_global_symbol_to_c_name_address \ 18025 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18026 old_postinstall_cmds old_postuninstall_cmds \ 18027 compiler_GCJ \ 18028 CC_GCJ \ 18029 LD_GCJ \ 18030 lt_prog_compiler_wl_GCJ \ 18031 lt_prog_compiler_pic_GCJ \ 18032 lt_prog_compiler_static_GCJ \ 18033 lt_prog_compiler_no_builtin_flag_GCJ \ 18034 export_dynamic_flag_spec_GCJ \ 18035 thread_safe_flag_spec_GCJ \ 18036 whole_archive_flag_spec_GCJ \ 18037 enable_shared_with_static_runtimes_GCJ \ 18038 old_archive_cmds_GCJ \ 18039 old_archive_from_new_cmds_GCJ \ 18040 predep_objects_GCJ \ 18041 postdep_objects_GCJ \ 18042 predeps_GCJ \ 18043 postdeps_GCJ \ 18044 compiler_lib_search_path_GCJ \ 18045 archive_cmds_GCJ \ 18046 archive_expsym_cmds_GCJ \ 18047 postinstall_cmds_GCJ \ 18048 postuninstall_cmds_GCJ \ 18049 old_archive_from_expsyms_cmds_GCJ \ 18050 allow_undefined_flag_GCJ \ 18051 no_undefined_flag_GCJ \ 18052 export_symbols_cmds_GCJ \ 18053 hardcode_libdir_flag_spec_GCJ \ 18054 hardcode_libdir_flag_spec_ld_GCJ \ 18055 hardcode_libdir_separator_GCJ \ 18056 hardcode_automatic_GCJ \ 18057 module_cmds_GCJ \ 18058 module_expsym_cmds_GCJ \ 18059 lt_cv_prog_compiler_c_o_GCJ \ 18060 exclude_expsyms_GCJ \ 18061 include_expsyms_GCJ; do 18062 18063 case $var in 18064 old_archive_cmds_GCJ | \ 18065 old_archive_from_new_cmds_GCJ | \ 18066 archive_cmds_GCJ | \ 18067 archive_expsym_cmds_GCJ | \ 18068 module_cmds_GCJ | \ 18069 module_expsym_cmds_GCJ | \ 18070 old_archive_from_expsyms_cmds_GCJ | \ 18071 export_symbols_cmds_GCJ | \ 18072 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18073 postinstall_cmds | postuninstall_cmds | \ 18074 old_postinstall_cmds | old_postuninstall_cmds | \ 18075 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18076 # Double-quote double-evaled strings. 18077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18078 ;; 18079 *) 18080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18081 ;; 18082 esac 18083 done 18084 18085 case $lt_echo in 18086 *'\$0 --fallback-echo"') 18087 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18088 ;; 18089 esac 18090 18091cfgfile="$ofile" 18092 18093 cat <<__EOF__ >> "$cfgfile" 18094# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18095 18096# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18097 18098# Shell to use when invoking shell scripts. 18099SHELL=$lt_SHELL 18100 18101# Whether or not to build shared libraries. 18102build_libtool_libs=$enable_shared 18103 18104# Whether or not to build static libraries. 18105build_old_libs=$enable_static 18106 18107# Whether or not to add -lc for building shared libraries. 18108build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18109 18110# Whether or not to disallow shared libs when runtime libs are static 18111allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18112 18113# Whether or not to optimize for fast installation. 18114fast_install=$enable_fast_install 18115 18116# The host system. 18117host_alias=$host_alias 18118host=$host 18119 18120# An echo program that does not interpret backslashes. 18121echo=$lt_echo 18122 18123# The archiver. 18124AR=$lt_AR 18125AR_FLAGS=$lt_AR_FLAGS 18126 18127# A C compiler. 18128LTCC=$lt_LTCC 18129 18130# A language-specific compiler. 18131CC=$lt_compiler_GCJ 18132 18133# Is the compiler the GNU C compiler? 18134with_gcc=$GCC_GCJ 18135 18136# An ERE matcher. 18137EGREP=$lt_EGREP 18138 18139# The linker used to build libraries. 18140LD=$lt_LD_GCJ 18141 18142# Whether we need hard or soft links. 18143LN_S=$lt_LN_S 18144 18145# A BSD-compatible nm program. 18146NM=$lt_NM 18147 18148# A symbol stripping program 18149STRIP=$lt_STRIP 18150 18151# Used to examine libraries when file_magic_cmd begins "file" 18152MAGIC_CMD=$MAGIC_CMD 18153 18154# Used on cygwin: DLL creation program. 18155DLLTOOL="$DLLTOOL" 18156 18157# Used on cygwin: object dumper. 18158OBJDUMP="$OBJDUMP" 18159 18160# Used on cygwin: assembler. 18161AS="$AS" 18162 18163# The name of the directory that contains temporary libtool files. 18164objdir=$objdir 18165 18166# How to create reloadable object files. 18167reload_flag=$lt_reload_flag 18168reload_cmds=$lt_reload_cmds 18169 18170# How to pass a linker flag through the compiler. 18171wl=$lt_lt_prog_compiler_wl_GCJ 18172 18173# Object file suffix (normally "o"). 18174objext="$ac_objext" 18175 18176# Old archive suffix (normally "a"). 18177libext="$libext" 18178 18179# Shared library suffix (normally ".so"). 18180shrext_cmds='$shrext_cmds' 18181 18182# Executable file suffix (normally ""). 18183exeext="$exeext" 18184 18185# Additional compiler flags for building library objects. 18186pic_flag=$lt_lt_prog_compiler_pic_GCJ 18187pic_mode=$pic_mode 18188 18189# What is the maximum length of a command? 18190max_cmd_len=$lt_cv_sys_max_cmd_len 18191 18192# Does compiler simultaneously support -c and -o options? 18193compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18194 18195# Must we lock files when doing compilation ? 18196need_locks=$lt_need_locks 18197 18198# Do we need the lib prefix for modules? 18199need_lib_prefix=$need_lib_prefix 18200 18201# Do we need a version for libraries? 18202need_version=$need_version 18203 18204# Whether dlopen is supported. 18205dlopen_support=$enable_dlopen 18206 18207# Whether dlopen of programs is supported. 18208dlopen_self=$enable_dlopen_self 18209 18210# Whether dlopen of statically linked programs is supported. 18211dlopen_self_static=$enable_dlopen_self_static 18212 18213# Compiler flag to prevent dynamic linking. 18214link_static_flag=$lt_lt_prog_compiler_static_GCJ 18215 18216# Compiler flag to turn off builtin functions. 18217no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18218 18219# Compiler flag to allow reflexive dlopens. 18220export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18221 18222# Compiler flag to generate shared objects directly from archives. 18223whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18224 18225# Compiler flag to generate thread-safe objects. 18226thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18227 18228# Library versioning type. 18229version_type=$version_type 18230 18231# Format of library name prefix. 18232libname_spec=$lt_libname_spec 18233 18234# List of archive names. First name is the real one, the rest are links. 18235# The last name is the one that the linker finds with -lNAME. 18236library_names_spec=$lt_library_names_spec 18237 18238# The coded name of the library, if different from the real name. 18239soname_spec=$lt_soname_spec 18240 18241# Commands used to build and install an old-style archive. 18242RANLIB=$lt_RANLIB 18243old_archive_cmds=$lt_old_archive_cmds_GCJ 18244old_postinstall_cmds=$lt_old_postinstall_cmds 18245old_postuninstall_cmds=$lt_old_postuninstall_cmds 18246 18247# Create an old-style archive from a shared archive. 18248old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18249 18250# Create a temporary old-style archive to link instead of a shared archive. 18251old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18252 18253# Commands used to build and install a shared archive. 18254archive_cmds=$lt_archive_cmds_GCJ 18255archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18256postinstall_cmds=$lt_postinstall_cmds 18257postuninstall_cmds=$lt_postuninstall_cmds 18258 18259# Commands used to build a loadable module (assumed same as above if empty) 18260module_cmds=$lt_module_cmds_GCJ 18261module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18262 18263# Commands to strip libraries. 18264old_striplib=$lt_old_striplib 18265striplib=$lt_striplib 18266 18267# Dependencies to place before the objects being linked to create a 18268# shared library. 18269predep_objects=$lt_predep_objects_GCJ 18270 18271# Dependencies to place after the objects being linked to create a 18272# shared library. 18273postdep_objects=$lt_postdep_objects_GCJ 18274 18275# Dependencies to place before the objects being linked to create a 18276# shared library. 18277predeps=$lt_predeps_GCJ 18278 18279# Dependencies to place after the objects being linked to create a 18280# shared library. 18281postdeps=$lt_postdeps_GCJ 18282 18283# The library search path used internally by the compiler when linking 18284# a shared library. 18285compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18286 18287# Method to check whether dependent libraries are shared objects. 18288deplibs_check_method=$lt_deplibs_check_method 18289 18290# Command to use when deplibs_check_method == file_magic. 18291file_magic_cmd=$lt_file_magic_cmd 18292 18293# Flag that allows shared libraries with undefined symbols to be built. 18294allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18295 18296# Flag that forces no undefined symbols. 18297no_undefined_flag=$lt_no_undefined_flag_GCJ 18298 18299# Commands used to finish a libtool library installation in a directory. 18300finish_cmds=$lt_finish_cmds 18301 18302# Same as above, but a single script fragment to be evaled but not shown. 18303finish_eval=$lt_finish_eval 18304 18305# Take the output of nm and produce a listing of raw symbols and C names. 18306global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18307 18308# Transform the output of nm in a proper C declaration 18309global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18310 18311# Transform the output of nm in a C name address pair 18312global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18313 18314# This is the shared library runtime path variable. 18315runpath_var=$runpath_var 18316 18317# This is the shared library path variable. 18318shlibpath_var=$shlibpath_var 18319 18320# Is shlibpath searched before the hard-coded library search path? 18321shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18322 18323# How to hardcode a shared library path into an executable. 18324hardcode_action=$hardcode_action_GCJ 18325 18326# Whether we should hardcode library paths into libraries. 18327hardcode_into_libs=$hardcode_into_libs 18328 18329# Flag to hardcode \$libdir into a binary during linking. 18330# This must work even if \$libdir does not exist. 18331hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18332 18333# If ld is used when linking, flag to hardcode \$libdir into 18334# a binary during linking. This must work even if \$libdir does 18335# not exist. 18336hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18337 18338# Whether we need a single -rpath flag with a separated argument. 18339hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18340 18341# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18342# resulting binary. 18343hardcode_direct=$hardcode_direct_GCJ 18344 18345# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18346# resulting binary. 18347hardcode_minus_L=$hardcode_minus_L_GCJ 18348 18349# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18350# the resulting binary. 18351hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18352 18353# Set to yes if building a shared library automatically hardcodes DIR into the library 18354# and all subsequent libraries and executables linked against it. 18355hardcode_automatic=$hardcode_automatic_GCJ 18356 18357# Variables whose values should be saved in libtool wrapper scripts and 18358# restored at relink time. 18359variables_saved_for_relink="$variables_saved_for_relink" 18360 18361# Whether libtool must link a program against all its dependency libraries. 18362link_all_deplibs=$link_all_deplibs_GCJ 18363 18364# Compile-time system search path for libraries 18365sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18366 18367# Run-time system search path for libraries 18368sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18369 18370# Fix the shell variable \$srcfile for the compiler. 18371fix_srcfile_path="$fix_srcfile_path_GCJ" 18372 18373# Set to yes if exported symbols are required. 18374always_export_symbols=$always_export_symbols_GCJ 18375 18376# The commands to list exported symbols. 18377export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18378 18379# The commands to extract the exported symbol list from a shared archive. 18380extract_expsyms_cmds=$lt_extract_expsyms_cmds 18381 18382# Symbols that should not be listed in the preloaded symbols. 18383exclude_expsyms=$lt_exclude_expsyms_GCJ 18384 18385# Symbols that must always be exported. 18386include_expsyms=$lt_include_expsyms_GCJ 18387 18388# ### END LIBTOOL TAG CONFIG: $tagname 18389 18390__EOF__ 18391 18392 18393else 18394 # If there is no Makefile yet, we rely on a make rule to execute 18395 # `config.status --recheck' to rerun these tests and create the 18396 # libtool script then. 18397 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18398 if test -f "$ltmain_in"; then 18399 test -f Makefile && make "$ltmain" 18400 fi 18401fi 18402 18403 18404ac_ext=c 18405ac_cpp='$CPP $CPPFLAGS' 18406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18408ac_compiler_gnu=$ac_cv_c_compiler_gnu 18409 18410CC="$lt_save_CC" 18411 18412 else 18413 tagname="" 18414 fi 18415 ;; 18416 18417 RC) 18418 ac_ext=c 18419ac_cpp='$CPP $CPPFLAGS' 18420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18422ac_compiler_gnu=$ac_cv_c_compiler_gnu 18423 18424 18425# Source file extension for RC test sources. 18426ac_ext=rc 18427 18428# Object file extension for compiled RC test sources. 18429objext=o 18430objext_RC=$objext 18431 18432# Code to be used in simple compile tests 18433lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18434 18435# Code to be used in simple link tests 18436lt_simple_link_test_code="$lt_simple_compile_test_code" 18437 18438# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18439 18440# If no C compiler was specified, use CC. 18441LTCC=${LTCC-"$CC"} 18442 18443# Allow CC to be a program name with arguments. 18444compiler=$CC 18445 18446 18447# Allow CC to be a program name with arguments. 18448lt_save_CC="$CC" 18449CC=${RC-"windres"} 18450compiler=$CC 18451compiler_RC=$CC 18452lt_cv_prog_compiler_c_o_RC=yes 18453 18454# The else clause should only fire when bootstrapping the 18455# libtool distribution, otherwise you forgot to ship ltmain.sh 18456# with your package, and you will get complaints that there are 18457# no rules to generate ltmain.sh. 18458if test -f "$ltmain"; then 18459 # See if we are running on zsh, and set the options which allow our commands through 18460 # without removal of \ escapes. 18461 if test -n "${ZSH_VERSION+set}" ; then 18462 setopt NO_GLOB_SUBST 18463 fi 18464 # Now quote all the things that may contain metacharacters while being 18465 # careful not to overquote the AC_SUBSTed values. We take copies of the 18466 # variables and quote the copies for generation of the libtool script. 18467 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18468 SED SHELL STRIP \ 18469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18471 deplibs_check_method reload_flag reload_cmds need_locks \ 18472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18473 lt_cv_sys_global_symbol_to_c_name_address \ 18474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18475 old_postinstall_cmds old_postuninstall_cmds \ 18476 compiler_RC \ 18477 CC_RC \ 18478 LD_RC \ 18479 lt_prog_compiler_wl_RC \ 18480 lt_prog_compiler_pic_RC \ 18481 lt_prog_compiler_static_RC \ 18482 lt_prog_compiler_no_builtin_flag_RC \ 18483 export_dynamic_flag_spec_RC \ 18484 thread_safe_flag_spec_RC \ 18485 whole_archive_flag_spec_RC \ 18486 enable_shared_with_static_runtimes_RC \ 18487 old_archive_cmds_RC \ 18488 old_archive_from_new_cmds_RC \ 18489 predep_objects_RC \ 18490 postdep_objects_RC \ 18491 predeps_RC \ 18492 postdeps_RC \ 18493 compiler_lib_search_path_RC \ 18494 archive_cmds_RC \ 18495 archive_expsym_cmds_RC \ 18496 postinstall_cmds_RC \ 18497 postuninstall_cmds_RC \ 18498 old_archive_from_expsyms_cmds_RC \ 18499 allow_undefined_flag_RC \ 18500 no_undefined_flag_RC \ 18501 export_symbols_cmds_RC \ 18502 hardcode_libdir_flag_spec_RC \ 18503 hardcode_libdir_flag_spec_ld_RC \ 18504 hardcode_libdir_separator_RC \ 18505 hardcode_automatic_RC \ 18506 module_cmds_RC \ 18507 module_expsym_cmds_RC \ 18508 lt_cv_prog_compiler_c_o_RC \ 18509 exclude_expsyms_RC \ 18510 include_expsyms_RC; do 18511 18512 case $var in 18513 old_archive_cmds_RC | \ 18514 old_archive_from_new_cmds_RC | \ 18515 archive_cmds_RC | \ 18516 archive_expsym_cmds_RC | \ 18517 module_cmds_RC | \ 18518 module_expsym_cmds_RC | \ 18519 old_archive_from_expsyms_cmds_RC | \ 18520 export_symbols_cmds_RC | \ 18521 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18522 postinstall_cmds | postuninstall_cmds | \ 18523 old_postinstall_cmds | old_postuninstall_cmds | \ 18524 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18525 # Double-quote double-evaled strings. 18526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18527 ;; 18528 *) 18529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18530 ;; 18531 esac 18532 done 18533 18534 case $lt_echo in 18535 *'\$0 --fallback-echo"') 18536 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18537 ;; 18538 esac 18539 18540cfgfile="$ofile" 18541 18542 cat <<__EOF__ >> "$cfgfile" 18543# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18544 18545# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18546 18547# Shell to use when invoking shell scripts. 18548SHELL=$lt_SHELL 18549 18550# Whether or not to build shared libraries. 18551build_libtool_libs=$enable_shared 18552 18553# Whether or not to build static libraries. 18554build_old_libs=$enable_static 18555 18556# Whether or not to add -lc for building shared libraries. 18557build_libtool_need_lc=$archive_cmds_need_lc_RC 18558 18559# Whether or not to disallow shared libs when runtime libs are static 18560allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18561 18562# Whether or not to optimize for fast installation. 18563fast_install=$enable_fast_install 18564 18565# The host system. 18566host_alias=$host_alias 18567host=$host 18568 18569# An echo program that does not interpret backslashes. 18570echo=$lt_echo 18571 18572# The archiver. 18573AR=$lt_AR 18574AR_FLAGS=$lt_AR_FLAGS 18575 18576# A C compiler. 18577LTCC=$lt_LTCC 18578 18579# A language-specific compiler. 18580CC=$lt_compiler_RC 18581 18582# Is the compiler the GNU C compiler? 18583with_gcc=$GCC_RC 18584 18585# An ERE matcher. 18586EGREP=$lt_EGREP 18587 18588# The linker used to build libraries. 18589LD=$lt_LD_RC 18590 18591# Whether we need hard or soft links. 18592LN_S=$lt_LN_S 18593 18594# A BSD-compatible nm program. 18595NM=$lt_NM 18596 18597# A symbol stripping program 18598STRIP=$lt_STRIP 18599 18600# Used to examine libraries when file_magic_cmd begins "file" 18601MAGIC_CMD=$MAGIC_CMD 18602 18603# Used on cygwin: DLL creation program. 18604DLLTOOL="$DLLTOOL" 18605 18606# Used on cygwin: object dumper. 18607OBJDUMP="$OBJDUMP" 18608 18609# Used on cygwin: assembler. 18610AS="$AS" 18611 18612# The name of the directory that contains temporary libtool files. 18613objdir=$objdir 18614 18615# How to create reloadable object files. 18616reload_flag=$lt_reload_flag 18617reload_cmds=$lt_reload_cmds 18618 18619# How to pass a linker flag through the compiler. 18620wl=$lt_lt_prog_compiler_wl_RC 18621 18622# Object file suffix (normally "o"). 18623objext="$ac_objext" 18624 18625# Old archive suffix (normally "a"). 18626libext="$libext" 18627 18628# Shared library suffix (normally ".so"). 18629shrext_cmds='$shrext_cmds' 18630 18631# Executable file suffix (normally ""). 18632exeext="$exeext" 18633 18634# Additional compiler flags for building library objects. 18635pic_flag=$lt_lt_prog_compiler_pic_RC 18636pic_mode=$pic_mode 18637 18638# What is the maximum length of a command? 18639max_cmd_len=$lt_cv_sys_max_cmd_len 18640 18641# Does compiler simultaneously support -c and -o options? 18642compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18643 18644# Must we lock files when doing compilation ? 18645need_locks=$lt_need_locks 18646 18647# Do we need the lib prefix for modules? 18648need_lib_prefix=$need_lib_prefix 18649 18650# Do we need a version for libraries? 18651need_version=$need_version 18652 18653# Whether dlopen is supported. 18654dlopen_support=$enable_dlopen 18655 18656# Whether dlopen of programs is supported. 18657dlopen_self=$enable_dlopen_self 18658 18659# Whether dlopen of statically linked programs is supported. 18660dlopen_self_static=$enable_dlopen_self_static 18661 18662# Compiler flag to prevent dynamic linking. 18663link_static_flag=$lt_lt_prog_compiler_static_RC 18664 18665# Compiler flag to turn off builtin functions. 18666no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18667 18668# Compiler flag to allow reflexive dlopens. 18669export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18670 18671# Compiler flag to generate shared objects directly from archives. 18672whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18673 18674# Compiler flag to generate thread-safe objects. 18675thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18676 18677# Library versioning type. 18678version_type=$version_type 18679 18680# Format of library name prefix. 18681libname_spec=$lt_libname_spec 18682 18683# List of archive names. First name is the real one, the rest are links. 18684# The last name is the one that the linker finds with -lNAME. 18685library_names_spec=$lt_library_names_spec 18686 18687# The coded name of the library, if different from the real name. 18688soname_spec=$lt_soname_spec 18689 18690# Commands used to build and install an old-style archive. 18691RANLIB=$lt_RANLIB 18692old_archive_cmds=$lt_old_archive_cmds_RC 18693old_postinstall_cmds=$lt_old_postinstall_cmds 18694old_postuninstall_cmds=$lt_old_postuninstall_cmds 18695 18696# Create an old-style archive from a shared archive. 18697old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18698 18699# Create a temporary old-style archive to link instead of a shared archive. 18700old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18701 18702# Commands used to build and install a shared archive. 18703archive_cmds=$lt_archive_cmds_RC 18704archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18705postinstall_cmds=$lt_postinstall_cmds 18706postuninstall_cmds=$lt_postuninstall_cmds 18707 18708# Commands used to build a loadable module (assumed same as above if empty) 18709module_cmds=$lt_module_cmds_RC 18710module_expsym_cmds=$lt_module_expsym_cmds_RC 18711 18712# Commands to strip libraries. 18713old_striplib=$lt_old_striplib 18714striplib=$lt_striplib 18715 18716# Dependencies to place before the objects being linked to create a 18717# shared library. 18718predep_objects=$lt_predep_objects_RC 18719 18720# Dependencies to place after the objects being linked to create a 18721# shared library. 18722postdep_objects=$lt_postdep_objects_RC 18723 18724# Dependencies to place before the objects being linked to create a 18725# shared library. 18726predeps=$lt_predeps_RC 18727 18728# Dependencies to place after the objects being linked to create a 18729# shared library. 18730postdeps=$lt_postdeps_RC 18731 18732# The library search path used internally by the compiler when linking 18733# a shared library. 18734compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18735 18736# Method to check whether dependent libraries are shared objects. 18737deplibs_check_method=$lt_deplibs_check_method 18738 18739# Command to use when deplibs_check_method == file_magic. 18740file_magic_cmd=$lt_file_magic_cmd 18741 18742# Flag that allows shared libraries with undefined symbols to be built. 18743allow_undefined_flag=$lt_allow_undefined_flag_RC 18744 18745# Flag that forces no undefined symbols. 18746no_undefined_flag=$lt_no_undefined_flag_RC 18747 18748# Commands used to finish a libtool library installation in a directory. 18749finish_cmds=$lt_finish_cmds 18750 18751# Same as above, but a single script fragment to be evaled but not shown. 18752finish_eval=$lt_finish_eval 18753 18754# Take the output of nm and produce a listing of raw symbols and C names. 18755global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18756 18757# Transform the output of nm in a proper C declaration 18758global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18759 18760# Transform the output of nm in a C name address pair 18761global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18762 18763# This is the shared library runtime path variable. 18764runpath_var=$runpath_var 18765 18766# This is the shared library path variable. 18767shlibpath_var=$shlibpath_var 18768 18769# Is shlibpath searched before the hard-coded library search path? 18770shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18771 18772# How to hardcode a shared library path into an executable. 18773hardcode_action=$hardcode_action_RC 18774 18775# Whether we should hardcode library paths into libraries. 18776hardcode_into_libs=$hardcode_into_libs 18777 18778# Flag to hardcode \$libdir into a binary during linking. 18779# This must work even if \$libdir does not exist. 18780hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18781 18782# If ld is used when linking, flag to hardcode \$libdir into 18783# a binary during linking. This must work even if \$libdir does 18784# not exist. 18785hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18786 18787# Whether we need a single -rpath flag with a separated argument. 18788hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18789 18790# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18791# resulting binary. 18792hardcode_direct=$hardcode_direct_RC 18793 18794# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18795# resulting binary. 18796hardcode_minus_L=$hardcode_minus_L_RC 18797 18798# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18799# the resulting binary. 18800hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18801 18802# Set to yes if building a shared library automatically hardcodes DIR into the library 18803# and all subsequent libraries and executables linked against it. 18804hardcode_automatic=$hardcode_automatic_RC 18805 18806# Variables whose values should be saved in libtool wrapper scripts and 18807# restored at relink time. 18808variables_saved_for_relink="$variables_saved_for_relink" 18809 18810# Whether libtool must link a program against all its dependency libraries. 18811link_all_deplibs=$link_all_deplibs_RC 18812 18813# Compile-time system search path for libraries 18814sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18815 18816# Run-time system search path for libraries 18817sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18818 18819# Fix the shell variable \$srcfile for the compiler. 18820fix_srcfile_path="$fix_srcfile_path_RC" 18821 18822# Set to yes if exported symbols are required. 18823always_export_symbols=$always_export_symbols_RC 18824 18825# The commands to list exported symbols. 18826export_symbols_cmds=$lt_export_symbols_cmds_RC 18827 18828# The commands to extract the exported symbol list from a shared archive. 18829extract_expsyms_cmds=$lt_extract_expsyms_cmds 18830 18831# Symbols that should not be listed in the preloaded symbols. 18832exclude_expsyms=$lt_exclude_expsyms_RC 18833 18834# Symbols that must always be exported. 18835include_expsyms=$lt_include_expsyms_RC 18836 18837# ### END LIBTOOL TAG CONFIG: $tagname 18838 18839__EOF__ 18840 18841 18842else 18843 # If there is no Makefile yet, we rely on a make rule to execute 18844 # `config.status --recheck' to rerun these tests and create the 18845 # libtool script then. 18846 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18847 if test -f "$ltmain_in"; then 18848 test -f Makefile && make "$ltmain" 18849 fi 18850fi 18851 18852 18853ac_ext=c 18854ac_cpp='$CPP $CPPFLAGS' 18855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18857ac_compiler_gnu=$ac_cv_c_compiler_gnu 18858 18859CC="$lt_save_CC" 18860 18861 ;; 18862 18863 *) 18864 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18865echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18866 { (exit 1); exit 1; }; } 18867 ;; 18868 esac 18869 18870 # Append the new tag name to the list of available tags. 18871 if test -n "$tagname" ; then 18872 available_tags="$available_tags $tagname" 18873 fi 18874 fi 18875 done 18876 IFS="$lt_save_ifs" 18877 18878 # Now substitute the updated list of available tags. 18879 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18880 mv "${ofile}T" "$ofile" 18881 chmod +x "$ofile" 18882 else 18883 rm -f "${ofile}T" 18884 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18885echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18886 { (exit 1); exit 1; }; } 18887 fi 18888fi 18889 18890 18891 18892# This can be used to rebuild libtool when needed 18893LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18894 18895# Always use our own libtool. 18896LIBTOOL='$(SHELL) $(top_builddir)/mklib' 18897 18898# Prevent multiple expansion 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920# Extract the first word of "dot", so it can be a program name with args. 18921set dummy dot; ac_word=$2 18922echo "$as_me:$LINENO: checking for $ac_word" >&5 18923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18924if test "${ac_cv_path_DOT+set}" = set; then 18925 echo $ECHO_N "(cached) $ECHO_C" >&6 18926else 18927 case $DOT in 18928 [\\/]* | ?:[\\/]*) 18929 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 18930 ;; 18931 *) 18932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18933for as_dir in $PATH 18934do 18935 IFS=$as_save_IFS 18936 test -z "$as_dir" && as_dir=. 18937 for ac_exec_ext in '' $ac_executable_extensions; do 18938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18939 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 18940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18941 break 2 18942 fi 18943done 18944done 18945 18946 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" 18947 ;; 18948esac 18949fi 18950DOT=$ac_cv_path_DOT 18951 18952if test -n "$DOT"; then 18953 echo "$as_me:$LINENO: result: $DOT" >&5 18954echo "${ECHO_T}$DOT" >&6 18955else 18956 echo "$as_me:$LINENO: result: no" >&5 18957echo "${ECHO_T}no" >&6 18958fi 18959 18960# Extract the first word of "etags", so it can be a program name with args. 18961set dummy etags; ac_word=$2 18962echo "$as_me:$LINENO: checking for $ac_word" >&5 18963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18964if test "${ac_cv_path_ETAGS+set}" = set; then 18965 echo $ECHO_N "(cached) $ECHO_C" >&6 18966else 18967 case $ETAGS in 18968 [\\/]* | ?:[\\/]*) 18969 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 18970 ;; 18971 *) 18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18973for as_dir in $PATH 18974do 18975 IFS=$as_save_IFS 18976 test -z "$as_dir" && as_dir=. 18977 for ac_exec_ext in '' $ac_executable_extensions; do 18978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18979 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 18980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18981 break 2 18982 fi 18983done 18984done 18985 18986 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" 18987 ;; 18988esac 18989fi 18990ETAGS=$ac_cv_path_ETAGS 18991 18992if test -n "$ETAGS"; then 18993 echo "$as_me:$LINENO: result: $ETAGS" >&5 18994echo "${ECHO_T}$ETAGS" >&6 18995else 18996 echo "$as_me:$LINENO: result: no" >&5 18997echo "${ECHO_T}no" >&6 18998fi 18999 19000etags_version=`$ETAGS --version 2>&1` 19001case "$etags_version" in 19002 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; 19003 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; 19004 *) ETAGSFLAGS="" ;; 19005esac 19006ETAGSFLAGS=$ETAGSFLAGS 19007 19008# Extract the first word of "python", so it can be a program name with args. 19009set dummy python; ac_word=$2 19010echo "$as_me:$LINENO: checking for $ac_word" >&5 19011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19012if test "${ac_cv_path_PYTHON+set}" = set; then 19013 echo $ECHO_N "(cached) $ECHO_C" >&6 19014else 19015 case $PYTHON in 19016 [\\/]* | ?:[\\/]*) 19017 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 19018 ;; 19019 *) 19020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19021for as_dir in $PATH 19022do 19023 IFS=$as_save_IFS 19024 test -z "$as_dir" && as_dir=. 19025 for ac_exec_ext in '' $ac_executable_extensions; do 19026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19027 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 19028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19029 break 2 19030 fi 19031done 19032done 19033 19034 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" 19035 ;; 19036esac 19037fi 19038PYTHON=$ac_cv_path_PYTHON 19039 19040if test -n "$PYTHON"; then 19041 echo "$as_me:$LINENO: result: $PYTHON" >&5 19042echo "${ECHO_T}$PYTHON" >&6 19043else 19044 echo "$as_me:$LINENO: result: no" >&5 19045echo "${ECHO_T}no" >&6 19046fi 19047 19048if test "$PYTHON" = "false" 19049then 19050 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 19051echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} 19052fi 19053# Extract the first word of "qmtest", so it can be a program name with args. 19054set dummy qmtest; ac_word=$2 19055echo "$as_me:$LINENO: checking for $ac_word" >&5 19056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19057if test "${ac_cv_path_QMTEST+set}" = set; then 19058 echo $ECHO_N "(cached) $ECHO_C" >&6 19059else 19060 case $QMTEST in 19061 [\\/]* | ?:[\\/]*) 19062 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. 19063 ;; 19064 *) 19065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19066for as_dir in $PATH 19067do 19068 IFS=$as_save_IFS 19069 test -z "$as_dir" && as_dir=. 19070 for ac_exec_ext in '' $ac_executable_extensions; do 19071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19072 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" 19073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19074 break 2 19075 fi 19076done 19077done 19078 19079 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" 19080 ;; 19081esac 19082fi 19083QMTEST=$ac_cv_path_QMTEST 19084 19085if test -n "$QMTEST"; then 19086 echo "$as_me:$LINENO: result: $QMTEST" >&5 19087echo "${ECHO_T}$QMTEST" >&6 19088else 19089 echo "$as_me:$LINENO: result: no" >&5 19090echo "${ECHO_T}no" >&6 19091fi 19092 19093if test "$QMTEST" = "false" 19094then 19095 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 19096echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} 19097fi 19098 19099pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` 19100pymajor=`echo $pyversion | cut -d. -f1` 19101pyminor=`echo $pyversion | cut -d. -f2` 19102 19103if test "$pymajor" -ge "2" 19104then 19105 if test "$pymajor" -eq "2" 19106 then 19107 if test "$pyminor" -lt "2" 19108 then 19109 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 19110echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} 19111 fi 19112 fi 19113else 19114 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 19115echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} 19116fi 19117 19118 19119echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 19120echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 19121if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 19122 echo $ECHO_N "(cached) $ECHO_C" >&6 19123else 19124 ac_check_lib_save_LIBS=$LIBS 19125LIBS="-lelf $LIBS" 19126cat >conftest.$ac_ext <<_ACEOF 19127/* confdefs.h. */ 19128_ACEOF 19129cat confdefs.h >>conftest.$ac_ext 19130cat >>conftest.$ac_ext <<_ACEOF 19131/* end confdefs.h. */ 19132 19133/* Override any gcc2 internal prototype to avoid an error. */ 19134#ifdef __cplusplus 19135extern "C" 19136#endif 19137/* We use char because int might match the return type of a gcc2 19138 builtin and then its argument prototype would still apply. */ 19139char elf_begin (); 19140int 19141main () 19142{ 19143elf_begin (); 19144 ; 19145 return 0; 19146} 19147_ACEOF 19148rm -f conftest.$ac_objext conftest$ac_exeext 19149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19150 (eval $ac_link) 2>conftest.er1 19151 ac_status=$? 19152 grep -v '^ *+' conftest.er1 >conftest.err 19153 rm -f conftest.er1 19154 cat conftest.err >&5 19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19156 (exit $ac_status); } && 19157 { ac_try='test -z "$ac_c_werror_flag" 19158 || test ! -s conftest.err' 19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19160 (eval $ac_try) 2>&5 19161 ac_status=$? 19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19163 (exit $ac_status); }; } && 19164 { ac_try='test -s conftest$ac_exeext' 19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19166 (eval $ac_try) 2>&5 19167 ac_status=$? 19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19169 (exit $ac_status); }; }; then 19170 ac_cv_lib_elf_elf_begin=yes 19171else 19172 echo "$as_me: failed program was:" >&5 19173sed 's/^/| /' conftest.$ac_ext >&5 19174 19175ac_cv_lib_elf_elf_begin=no 19176fi 19177rm -f conftest.err conftest.$ac_objext \ 19178 conftest$ac_exeext conftest.$ac_ext 19179LIBS=$ac_check_lib_save_LIBS 19180fi 19181echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 19182echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 19183if test $ac_cv_lib_elf_elf_begin = yes; then 19184 cat >>confdefs.h <<_ACEOF 19185#define HAVE_LIBELF 1 19186_ACEOF 19187 19188 LIBS="-lelf $LIBS" 19189 19190fi 19191 19192 19193echo "$as_me:$LINENO: checking for library containing dlopen" >&5 19194echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 19195if test "${ac_cv_search_dlopen+set}" = set; then 19196 echo $ECHO_N "(cached) $ECHO_C" >&6 19197else 19198 ac_func_search_save_LIBS=$LIBS 19199ac_cv_search_dlopen=no 19200cat >conftest.$ac_ext <<_ACEOF 19201/* confdefs.h. */ 19202_ACEOF 19203cat confdefs.h >>conftest.$ac_ext 19204cat >>conftest.$ac_ext <<_ACEOF 19205/* end confdefs.h. */ 19206 19207/* Override any gcc2 internal prototype to avoid an error. */ 19208#ifdef __cplusplus 19209extern "C" 19210#endif 19211/* We use char because int might match the return type of a gcc2 19212 builtin and then its argument prototype would still apply. */ 19213char dlopen (); 19214int 19215main () 19216{ 19217dlopen (); 19218 ; 19219 return 0; 19220} 19221_ACEOF 19222rm -f conftest.$ac_objext conftest$ac_exeext 19223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19224 (eval $ac_link) 2>conftest.er1 19225 ac_status=$? 19226 grep -v '^ *+' conftest.er1 >conftest.err 19227 rm -f conftest.er1 19228 cat conftest.err >&5 19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19230 (exit $ac_status); } && 19231 { ac_try='test -z "$ac_c_werror_flag" 19232 || test ! -s conftest.err' 19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19234 (eval $ac_try) 2>&5 19235 ac_status=$? 19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19237 (exit $ac_status); }; } && 19238 { ac_try='test -s conftest$ac_exeext' 19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19240 (eval $ac_try) 2>&5 19241 ac_status=$? 19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19243 (exit $ac_status); }; }; then 19244 ac_cv_search_dlopen="none required" 19245else 19246 echo "$as_me: failed program was:" >&5 19247sed 's/^/| /' conftest.$ac_ext >&5 19248 19249fi 19250rm -f conftest.err conftest.$ac_objext \ 19251 conftest$ac_exeext conftest.$ac_ext 19252if test "$ac_cv_search_dlopen" = no; then 19253 for ac_lib in dl; do 19254 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19255 cat >conftest.$ac_ext <<_ACEOF 19256/* confdefs.h. */ 19257_ACEOF 19258cat confdefs.h >>conftest.$ac_ext 19259cat >>conftest.$ac_ext <<_ACEOF 19260/* end confdefs.h. */ 19261 19262/* Override any gcc2 internal prototype to avoid an error. */ 19263#ifdef __cplusplus 19264extern "C" 19265#endif 19266/* We use char because int might match the return type of a gcc2 19267 builtin and then its argument prototype would still apply. */ 19268char dlopen (); 19269int 19270main () 19271{ 19272dlopen (); 19273 ; 19274 return 0; 19275} 19276_ACEOF 19277rm -f conftest.$ac_objext conftest$ac_exeext 19278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19279 (eval $ac_link) 2>conftest.er1 19280 ac_status=$? 19281 grep -v '^ *+' conftest.er1 >conftest.err 19282 rm -f conftest.er1 19283 cat conftest.err >&5 19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19285 (exit $ac_status); } && 19286 { ac_try='test -z "$ac_c_werror_flag" 19287 || test ! -s conftest.err' 19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19289 (eval $ac_try) 2>&5 19290 ac_status=$? 19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19292 (exit $ac_status); }; } && 19293 { ac_try='test -s conftest$ac_exeext' 19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19295 (eval $ac_try) 2>&5 19296 ac_status=$? 19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19298 (exit $ac_status); }; }; then 19299 ac_cv_search_dlopen="-l$ac_lib" 19300break 19301else 19302 echo "$as_me: failed program was:" >&5 19303sed 's/^/| /' conftest.$ac_ext >&5 19304 19305fi 19306rm -f conftest.err conftest.$ac_objext \ 19307 conftest$ac_exeext conftest.$ac_ext 19308 done 19309fi 19310LIBS=$ac_func_search_save_LIBS 19311fi 19312echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 19313echo "${ECHO_T}$ac_cv_search_dlopen" >&6 19314if test "$ac_cv_search_dlopen" != no; then 19315 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" 19316 19317cat >>confdefs.h <<\_ACEOF 19318#define HAVE_DLOPEN 1 19319_ACEOF 19320 19321else 19322 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 19323echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 19324fi 19325 19326 19327echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 19328echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 19329if test "${ac_cv_search_mallinfo+set}" = set; then 19330 echo $ECHO_N "(cached) $ECHO_C" >&6 19331else 19332 ac_func_search_save_LIBS=$LIBS 19333ac_cv_search_mallinfo=no 19334cat >conftest.$ac_ext <<_ACEOF 19335/* confdefs.h. */ 19336_ACEOF 19337cat confdefs.h >>conftest.$ac_ext 19338cat >>conftest.$ac_ext <<_ACEOF 19339/* end confdefs.h. */ 19340 19341/* Override any gcc2 internal prototype to avoid an error. */ 19342#ifdef __cplusplus 19343extern "C" 19344#endif 19345/* We use char because int might match the return type of a gcc2 19346 builtin and then its argument prototype would still apply. */ 19347char mallinfo (); 19348int 19349main () 19350{ 19351mallinfo (); 19352 ; 19353 return 0; 19354} 19355_ACEOF 19356rm -f conftest.$ac_objext conftest$ac_exeext 19357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19358 (eval $ac_link) 2>conftest.er1 19359 ac_status=$? 19360 grep -v '^ *+' conftest.er1 >conftest.err 19361 rm -f conftest.er1 19362 cat conftest.err >&5 19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19364 (exit $ac_status); } && 19365 { ac_try='test -z "$ac_c_werror_flag" 19366 || test ! -s conftest.err' 19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19368 (eval $ac_try) 2>&5 19369 ac_status=$? 19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19371 (exit $ac_status); }; } && 19372 { ac_try='test -s conftest$ac_exeext' 19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19374 (eval $ac_try) 2>&5 19375 ac_status=$? 19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19377 (exit $ac_status); }; }; then 19378 ac_cv_search_mallinfo="none required" 19379else 19380 echo "$as_me: failed program was:" >&5 19381sed 's/^/| /' conftest.$ac_ext >&5 19382 19383fi 19384rm -f conftest.err conftest.$ac_objext \ 19385 conftest$ac_exeext conftest.$ac_ext 19386if test "$ac_cv_search_mallinfo" = no; then 19387 for ac_lib in malloc; do 19388 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19389 cat >conftest.$ac_ext <<_ACEOF 19390/* confdefs.h. */ 19391_ACEOF 19392cat confdefs.h >>conftest.$ac_ext 19393cat >>conftest.$ac_ext <<_ACEOF 19394/* end confdefs.h. */ 19395 19396/* Override any gcc2 internal prototype to avoid an error. */ 19397#ifdef __cplusplus 19398extern "C" 19399#endif 19400/* We use char because int might match the return type of a gcc2 19401 builtin and then its argument prototype would still apply. */ 19402char mallinfo (); 19403int 19404main () 19405{ 19406mallinfo (); 19407 ; 19408 return 0; 19409} 19410_ACEOF 19411rm -f conftest.$ac_objext conftest$ac_exeext 19412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19413 (eval $ac_link) 2>conftest.er1 19414 ac_status=$? 19415 grep -v '^ *+' conftest.er1 >conftest.err 19416 rm -f conftest.er1 19417 cat conftest.err >&5 19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19419 (exit $ac_status); } && 19420 { ac_try='test -z "$ac_c_werror_flag" 19421 || test ! -s conftest.err' 19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19423 (eval $ac_try) 2>&5 19424 ac_status=$? 19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19426 (exit $ac_status); }; } && 19427 { ac_try='test -s conftest$ac_exeext' 19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19429 (eval $ac_try) 2>&5 19430 ac_status=$? 19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19432 (exit $ac_status); }; }; then 19433 ac_cv_search_mallinfo="-l$ac_lib" 19434break 19435else 19436 echo "$as_me: failed program was:" >&5 19437sed 's/^/| /' conftest.$ac_ext >&5 19438 19439fi 19440rm -f conftest.err conftest.$ac_objext \ 19441 conftest$ac_exeext conftest.$ac_ext 19442 done 19443fi 19444LIBS=$ac_func_search_save_LIBS 19445fi 19446echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 19447echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 19448if test "$ac_cv_search_mallinfo" != no; then 19449 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" 19450 19451cat >>confdefs.h <<\_ACEOF 19452#define HAVE_MALLINFO 1 19453_ACEOF 19454 19455fi 19456 19457 19458echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 19459echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 19460if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 19461 echo $ECHO_N "(cached) $ECHO_C" >&6 19462else 19463 ac_func_search_save_LIBS=$LIBS 19464ac_cv_search_pthread_mutex_lock=no 19465cat >conftest.$ac_ext <<_ACEOF 19466/* confdefs.h. */ 19467_ACEOF 19468cat confdefs.h >>conftest.$ac_ext 19469cat >>conftest.$ac_ext <<_ACEOF 19470/* end confdefs.h. */ 19471 19472/* Override any gcc2 internal prototype to avoid an error. */ 19473#ifdef __cplusplus 19474extern "C" 19475#endif 19476/* We use char because int might match the return type of a gcc2 19477 builtin and then its argument prototype would still apply. */ 19478char pthread_mutex_lock (); 19479int 19480main () 19481{ 19482pthread_mutex_lock (); 19483 ; 19484 return 0; 19485} 19486_ACEOF 19487rm -f conftest.$ac_objext conftest$ac_exeext 19488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19489 (eval $ac_link) 2>conftest.er1 19490 ac_status=$? 19491 grep -v '^ *+' conftest.er1 >conftest.err 19492 rm -f conftest.er1 19493 cat conftest.err >&5 19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19495 (exit $ac_status); } && 19496 { ac_try='test -z "$ac_c_werror_flag" 19497 || test ! -s conftest.err' 19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19499 (eval $ac_try) 2>&5 19500 ac_status=$? 19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19502 (exit $ac_status); }; } && 19503 { ac_try='test -s conftest$ac_exeext' 19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19505 (eval $ac_try) 2>&5 19506 ac_status=$? 19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19508 (exit $ac_status); }; }; then 19509 ac_cv_search_pthread_mutex_lock="none required" 19510else 19511 echo "$as_me: failed program was:" >&5 19512sed 's/^/| /' conftest.$ac_ext >&5 19513 19514fi 19515rm -f conftest.err conftest.$ac_objext \ 19516 conftest$ac_exeext conftest.$ac_ext 19517if test "$ac_cv_search_pthread_mutex_lock" = no; then 19518 for ac_lib in pthread; do 19519 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19520 cat >conftest.$ac_ext <<_ACEOF 19521/* confdefs.h. */ 19522_ACEOF 19523cat confdefs.h >>conftest.$ac_ext 19524cat >>conftest.$ac_ext <<_ACEOF 19525/* end confdefs.h. */ 19526 19527/* Override any gcc2 internal prototype to avoid an error. */ 19528#ifdef __cplusplus 19529extern "C" 19530#endif 19531/* We use char because int might match the return type of a gcc2 19532 builtin and then its argument prototype would still apply. */ 19533char pthread_mutex_lock (); 19534int 19535main () 19536{ 19537pthread_mutex_lock (); 19538 ; 19539 return 0; 19540} 19541_ACEOF 19542rm -f conftest.$ac_objext conftest$ac_exeext 19543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19544 (eval $ac_link) 2>conftest.er1 19545 ac_status=$? 19546 grep -v '^ *+' conftest.er1 >conftest.err 19547 rm -f conftest.er1 19548 cat conftest.err >&5 19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19550 (exit $ac_status); } && 19551 { ac_try='test -z "$ac_c_werror_flag" 19552 || test ! -s conftest.err' 19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19554 (eval $ac_try) 2>&5 19555 ac_status=$? 19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19557 (exit $ac_status); }; } && 19558 { ac_try='test -s conftest$ac_exeext' 19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19560 (eval $ac_try) 2>&5 19561 ac_status=$? 19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19563 (exit $ac_status); }; }; then 19564 ac_cv_search_pthread_mutex_lock="-l$ac_lib" 19565break 19566else 19567 echo "$as_me: failed program was:" >&5 19568sed 's/^/| /' conftest.$ac_ext >&5 19569 19570fi 19571rm -f conftest.err conftest.$ac_objext \ 19572 conftest$ac_exeext conftest.$ac_ext 19573 done 19574fi 19575LIBS=$ac_func_search_save_LIBS 19576fi 19577echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 19578echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 19579if test "$ac_cv_search_pthread_mutex_lock" != no; then 19580 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" 19581 HAVE_PTHREAD_MUTEX_LOCK=1 19582else 19583 HAVE_PTHREAD_MUTEX_LOCK=0 19584fi 19585 19586 19587 19588echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19589echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19590if test "${ac_cv_header_stdc+set}" = set; then 19591 echo $ECHO_N "(cached) $ECHO_C" >&6 19592else 19593 cat >conftest.$ac_ext <<_ACEOF 19594/* confdefs.h. */ 19595_ACEOF 19596cat confdefs.h >>conftest.$ac_ext 19597cat >>conftest.$ac_ext <<_ACEOF 19598/* end confdefs.h. */ 19599#include <stdlib.h> 19600#include <stdarg.h> 19601#include <string.h> 19602#include <float.h> 19603 19604int 19605main () 19606{ 19607 19608 ; 19609 return 0; 19610} 19611_ACEOF 19612rm -f conftest.$ac_objext 19613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19614 (eval $ac_compile) 2>conftest.er1 19615 ac_status=$? 19616 grep -v '^ *+' conftest.er1 >conftest.err 19617 rm -f conftest.er1 19618 cat conftest.err >&5 19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19620 (exit $ac_status); } && 19621 { ac_try='test -z "$ac_c_werror_flag" 19622 || test ! -s conftest.err' 19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19624 (eval $ac_try) 2>&5 19625 ac_status=$? 19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19627 (exit $ac_status); }; } && 19628 { ac_try='test -s conftest.$ac_objext' 19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19630 (eval $ac_try) 2>&5 19631 ac_status=$? 19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19633 (exit $ac_status); }; }; then 19634 ac_cv_header_stdc=yes 19635else 19636 echo "$as_me: failed program was:" >&5 19637sed 's/^/| /' conftest.$ac_ext >&5 19638 19639ac_cv_header_stdc=no 19640fi 19641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19642 19643if test $ac_cv_header_stdc = yes; then 19644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19645 cat >conftest.$ac_ext <<_ACEOF 19646/* confdefs.h. */ 19647_ACEOF 19648cat confdefs.h >>conftest.$ac_ext 19649cat >>conftest.$ac_ext <<_ACEOF 19650/* end confdefs.h. */ 19651#include <string.h> 19652 19653_ACEOF 19654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19655 $EGREP "memchr" >/dev/null 2>&1; then 19656 : 19657else 19658 ac_cv_header_stdc=no 19659fi 19660rm -f conftest* 19661 19662fi 19663 19664if test $ac_cv_header_stdc = yes; then 19665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19666 cat >conftest.$ac_ext <<_ACEOF 19667/* confdefs.h. */ 19668_ACEOF 19669cat confdefs.h >>conftest.$ac_ext 19670cat >>conftest.$ac_ext <<_ACEOF 19671/* end confdefs.h. */ 19672#include <stdlib.h> 19673 19674_ACEOF 19675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19676 $EGREP "free" >/dev/null 2>&1; then 19677 : 19678else 19679 ac_cv_header_stdc=no 19680fi 19681rm -f conftest* 19682 19683fi 19684 19685if test $ac_cv_header_stdc = yes; then 19686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19687 if test "$cross_compiling" = yes; then 19688 : 19689else 19690 cat >conftest.$ac_ext <<_ACEOF 19691/* confdefs.h. */ 19692_ACEOF 19693cat confdefs.h >>conftest.$ac_ext 19694cat >>conftest.$ac_ext <<_ACEOF 19695/* end confdefs.h. */ 19696#include <ctype.h> 19697#if ((' ' & 0x0FF) == 0x020) 19698# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19699# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19700#else 19701# define ISLOWER(c) \ 19702 (('a' <= (c) && (c) <= 'i') \ 19703 || ('j' <= (c) && (c) <= 'r') \ 19704 || ('s' <= (c) && (c) <= 'z')) 19705# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19706#endif 19707 19708#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19709int 19710main () 19711{ 19712 int i; 19713 for (i = 0; i < 256; i++) 19714 if (XOR (islower (i), ISLOWER (i)) 19715 || toupper (i) != TOUPPER (i)) 19716 exit(2); 19717 exit (0); 19718} 19719_ACEOF 19720rm -f conftest$ac_exeext 19721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19722 (eval $ac_link) 2>&5 19723 ac_status=$? 19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19727 (eval $ac_try) 2>&5 19728 ac_status=$? 19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19730 (exit $ac_status); }; }; then 19731 : 19732else 19733 echo "$as_me: program exited with status $ac_status" >&5 19734echo "$as_me: failed program was:" >&5 19735sed 's/^/| /' conftest.$ac_ext >&5 19736 19737( exit $ac_status ) 19738ac_cv_header_stdc=no 19739fi 19740rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19741fi 19742fi 19743fi 19744echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19745echo "${ECHO_T}$ac_cv_header_stdc" >&6 19746if test $ac_cv_header_stdc = yes; then 19747 19748cat >>confdefs.h <<\_ACEOF 19749#define STDC_HEADERS 1 19750_ACEOF 19751 19752fi 19753 19754echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 19755echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 19756if test "${ac_cv_header_sys_wait_h+set}" = set; then 19757 echo $ECHO_N "(cached) $ECHO_C" >&6 19758else 19759 cat >conftest.$ac_ext <<_ACEOF 19760/* confdefs.h. */ 19761_ACEOF 19762cat confdefs.h >>conftest.$ac_ext 19763cat >>conftest.$ac_ext <<_ACEOF 19764/* end confdefs.h. */ 19765#include <sys/types.h> 19766#include <sys/wait.h> 19767#ifndef WEXITSTATUS 19768# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 19769#endif 19770#ifndef WIFEXITED 19771# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 19772#endif 19773 19774int 19775main () 19776{ 19777 int s; 19778 wait (&s); 19779 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 19780 ; 19781 return 0; 19782} 19783_ACEOF 19784rm -f conftest.$ac_objext 19785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19786 (eval $ac_compile) 2>conftest.er1 19787 ac_status=$? 19788 grep -v '^ *+' conftest.er1 >conftest.err 19789 rm -f conftest.er1 19790 cat conftest.err >&5 19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19792 (exit $ac_status); } && 19793 { ac_try='test -z "$ac_c_werror_flag" 19794 || test ! -s conftest.err' 19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19796 (eval $ac_try) 2>&5 19797 ac_status=$? 19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19799 (exit $ac_status); }; } && 19800 { ac_try='test -s conftest.$ac_objext' 19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19802 (eval $ac_try) 2>&5 19803 ac_status=$? 19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19805 (exit $ac_status); }; }; then 19806 ac_cv_header_sys_wait_h=yes 19807else 19808 echo "$as_me: failed program was:" >&5 19809sed 's/^/| /' conftest.$ac_ext >&5 19810 19811ac_cv_header_sys_wait_h=no 19812fi 19813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19814fi 19815echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 19816echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 19817if test $ac_cv_header_sys_wait_h = yes; then 19818 19819cat >>confdefs.h <<\_ACEOF 19820#define HAVE_SYS_WAIT_H 1 19821_ACEOF 19822 19823fi 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h 19838do 19839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19840if eval "test \"\${$as_ac_Header+set}\" = set"; then 19841 echo "$as_me:$LINENO: checking for $ac_header" >&5 19842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19843if eval "test \"\${$as_ac_Header+set}\" = set"; then 19844 echo $ECHO_N "(cached) $ECHO_C" >&6 19845fi 19846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19848else 19849 # Is the header compilable? 19850echo "$as_me:$LINENO: checking $ac_header usability" >&5 19851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19852cat >conftest.$ac_ext <<_ACEOF 19853/* confdefs.h. */ 19854_ACEOF 19855cat confdefs.h >>conftest.$ac_ext 19856cat >>conftest.$ac_ext <<_ACEOF 19857/* end confdefs.h. */ 19858$ac_includes_default 19859#include <$ac_header> 19860_ACEOF 19861rm -f conftest.$ac_objext 19862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19863 (eval $ac_compile) 2>conftest.er1 19864 ac_status=$? 19865 grep -v '^ *+' conftest.er1 >conftest.err 19866 rm -f conftest.er1 19867 cat conftest.err >&5 19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19869 (exit $ac_status); } && 19870 { ac_try='test -z "$ac_c_werror_flag" 19871 || test ! -s conftest.err' 19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19873 (eval $ac_try) 2>&5 19874 ac_status=$? 19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19876 (exit $ac_status); }; } && 19877 { ac_try='test -s conftest.$ac_objext' 19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19879 (eval $ac_try) 2>&5 19880 ac_status=$? 19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19882 (exit $ac_status); }; }; then 19883 ac_header_compiler=yes 19884else 19885 echo "$as_me: failed program was:" >&5 19886sed 's/^/| /' conftest.$ac_ext >&5 19887 19888ac_header_compiler=no 19889fi 19890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19892echo "${ECHO_T}$ac_header_compiler" >&6 19893 19894# Is the header present? 19895echo "$as_me:$LINENO: checking $ac_header presence" >&5 19896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19897cat >conftest.$ac_ext <<_ACEOF 19898/* confdefs.h. */ 19899_ACEOF 19900cat confdefs.h >>conftest.$ac_ext 19901cat >>conftest.$ac_ext <<_ACEOF 19902/* end confdefs.h. */ 19903#include <$ac_header> 19904_ACEOF 19905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19907 ac_status=$? 19908 grep -v '^ *+' conftest.er1 >conftest.err 19909 rm -f conftest.er1 19910 cat conftest.err >&5 19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19912 (exit $ac_status); } >/dev/null; then 19913 if test -s conftest.err; then 19914 ac_cpp_err=$ac_c_preproc_warn_flag 19915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19916 else 19917 ac_cpp_err= 19918 fi 19919else 19920 ac_cpp_err=yes 19921fi 19922if test -z "$ac_cpp_err"; then 19923 ac_header_preproc=yes 19924else 19925 echo "$as_me: failed program was:" >&5 19926sed 's/^/| /' conftest.$ac_ext >&5 19927 19928 ac_header_preproc=no 19929fi 19930rm -f conftest.err conftest.$ac_ext 19931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19932echo "${ECHO_T}$ac_header_preproc" >&6 19933 19934# So? What about this header? 19935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19936 yes:no: ) 19937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19941 ac_header_preproc=yes 19942 ;; 19943 no:yes:* ) 19944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19956 ( 19957 cat <<\_ASBOX 19958## ----------------------------------- ## 19959## Report this to llvmbugs@cs.uiuc.edu ## 19960## ----------------------------------- ## 19961_ASBOX 19962 ) | 19963 sed "s/^/$as_me: WARNING: /" >&2 19964 ;; 19965esac 19966echo "$as_me:$LINENO: checking for $ac_header" >&5 19967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19968if eval "test \"\${$as_ac_Header+set}\" = set"; then 19969 echo $ECHO_N "(cached) $ECHO_C" >&6 19970else 19971 eval "$as_ac_Header=\$ac_header_preproc" 19972fi 19973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19975 19976fi 19977if test `eval echo '${'$as_ac_Header'}'` = yes; then 19978 cat >>confdefs.h <<_ACEOF 19979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19980_ACEOF 19981 19982fi 19983 19984done 19985 19986 19987if test "${ac_cv_header_sys_types_h+set}" = set; then 19988 echo "$as_me:$LINENO: checking for sys/types.h" >&5 19989echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 19990if test "${ac_cv_header_sys_types_h+set}" = set; then 19991 echo $ECHO_N "(cached) $ECHO_C" >&6 19992fi 19993echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 19994echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 19995else 19996 # Is the header compilable? 19997echo "$as_me:$LINENO: checking sys/types.h usability" >&5 19998echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 19999cat >conftest.$ac_ext <<_ACEOF 20000/* confdefs.h. */ 20001_ACEOF 20002cat confdefs.h >>conftest.$ac_ext 20003cat >>conftest.$ac_ext <<_ACEOF 20004/* end confdefs.h. */ 20005$ac_includes_default 20006#include <sys/types.h> 20007_ACEOF 20008rm -f conftest.$ac_objext 20009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20010 (eval $ac_compile) 2>conftest.er1 20011 ac_status=$? 20012 grep -v '^ *+' conftest.er1 >conftest.err 20013 rm -f conftest.er1 20014 cat conftest.err >&5 20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20016 (exit $ac_status); } && 20017 { ac_try='test -z "$ac_c_werror_flag" 20018 || test ! -s conftest.err' 20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20020 (eval $ac_try) 2>&5 20021 ac_status=$? 20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20023 (exit $ac_status); }; } && 20024 { ac_try='test -s conftest.$ac_objext' 20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20026 (eval $ac_try) 2>&5 20027 ac_status=$? 20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20029 (exit $ac_status); }; }; then 20030 ac_header_compiler=yes 20031else 20032 echo "$as_me: failed program was:" >&5 20033sed 's/^/| /' conftest.$ac_ext >&5 20034 20035ac_header_compiler=no 20036fi 20037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20039echo "${ECHO_T}$ac_header_compiler" >&6 20040 20041# Is the header present? 20042echo "$as_me:$LINENO: checking sys/types.h presence" >&5 20043echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 20044cat >conftest.$ac_ext <<_ACEOF 20045/* confdefs.h. */ 20046_ACEOF 20047cat confdefs.h >>conftest.$ac_ext 20048cat >>conftest.$ac_ext <<_ACEOF 20049/* end confdefs.h. */ 20050#include <sys/types.h> 20051_ACEOF 20052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20054 ac_status=$? 20055 grep -v '^ *+' conftest.er1 >conftest.err 20056 rm -f conftest.er1 20057 cat conftest.err >&5 20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20059 (exit $ac_status); } >/dev/null; then 20060 if test -s conftest.err; then 20061 ac_cpp_err=$ac_c_preproc_warn_flag 20062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20063 else 20064 ac_cpp_err= 20065 fi 20066else 20067 ac_cpp_err=yes 20068fi 20069if test -z "$ac_cpp_err"; then 20070 ac_header_preproc=yes 20071else 20072 echo "$as_me: failed program was:" >&5 20073sed 's/^/| /' conftest.$ac_ext >&5 20074 20075 ac_header_preproc=no 20076fi 20077rm -f conftest.err conftest.$ac_ext 20078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20079echo "${ECHO_T}$ac_header_preproc" >&6 20080 20081# So? What about this header? 20082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20083 yes:no: ) 20084 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 20085echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20086 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 20087echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} 20088 ac_header_preproc=yes 20089 ;; 20090 no:yes:* ) 20091 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 20092echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} 20093 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 20094echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} 20095 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 20096echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} 20097 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 20098echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} 20099 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 20100echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} 20101 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 20102echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} 20103 ( 20104 cat <<\_ASBOX 20105## ----------------------------------- ## 20106## Report this to llvmbugs@cs.uiuc.edu ## 20107## ----------------------------------- ## 20108_ASBOX 20109 ) | 20110 sed "s/^/$as_me: WARNING: /" >&2 20111 ;; 20112esac 20113echo "$as_me:$LINENO: checking for sys/types.h" >&5 20114echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 20115if test "${ac_cv_header_sys_types_h+set}" = set; then 20116 echo $ECHO_N "(cached) $ECHO_C" >&6 20117else 20118 ac_cv_header_sys_types_h=$ac_header_preproc 20119fi 20120echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 20121echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 20122 20123fi 20124if test $ac_cv_header_sys_types_h = yes; then 20125 INCLUDE_SYS_TYPES_H='#include <sys/types.h>' 20126else 20127 INCLUDE_SYS_TYPES_H='' 20128fi 20129 20130 20131 20132if test "${ac_cv_header_inttypes_h+set}" = set; then 20133 echo "$as_me:$LINENO: checking for inttypes.h" >&5 20134echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 20135if test "${ac_cv_header_inttypes_h+set}" = set; then 20136 echo $ECHO_N "(cached) $ECHO_C" >&6 20137fi 20138echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 20139echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 20140else 20141 # Is the header compilable? 20142echo "$as_me:$LINENO: checking inttypes.h usability" >&5 20143echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6 20144cat >conftest.$ac_ext <<_ACEOF 20145/* confdefs.h. */ 20146_ACEOF 20147cat confdefs.h >>conftest.$ac_ext 20148cat >>conftest.$ac_ext <<_ACEOF 20149/* end confdefs.h. */ 20150$ac_includes_default 20151#include <inttypes.h> 20152_ACEOF 20153rm -f conftest.$ac_objext 20154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20155 (eval $ac_compile) 2>conftest.er1 20156 ac_status=$? 20157 grep -v '^ *+' conftest.er1 >conftest.err 20158 rm -f conftest.er1 20159 cat conftest.err >&5 20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20161 (exit $ac_status); } && 20162 { ac_try='test -z "$ac_c_werror_flag" 20163 || test ! -s conftest.err' 20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20165 (eval $ac_try) 2>&5 20166 ac_status=$? 20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20168 (exit $ac_status); }; } && 20169 { ac_try='test -s conftest.$ac_objext' 20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20171 (eval $ac_try) 2>&5 20172 ac_status=$? 20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20174 (exit $ac_status); }; }; then 20175 ac_header_compiler=yes 20176else 20177 echo "$as_me: failed program was:" >&5 20178sed 's/^/| /' conftest.$ac_ext >&5 20179 20180ac_header_compiler=no 20181fi 20182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20184echo "${ECHO_T}$ac_header_compiler" >&6 20185 20186# Is the header present? 20187echo "$as_me:$LINENO: checking inttypes.h presence" >&5 20188echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6 20189cat >conftest.$ac_ext <<_ACEOF 20190/* confdefs.h. */ 20191_ACEOF 20192cat confdefs.h >>conftest.$ac_ext 20193cat >>conftest.$ac_ext <<_ACEOF 20194/* end confdefs.h. */ 20195#include <inttypes.h> 20196_ACEOF 20197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20199 ac_status=$? 20200 grep -v '^ *+' conftest.er1 >conftest.err 20201 rm -f conftest.er1 20202 cat conftest.err >&5 20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20204 (exit $ac_status); } >/dev/null; then 20205 if test -s conftest.err; then 20206 ac_cpp_err=$ac_c_preproc_warn_flag 20207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20208 else 20209 ac_cpp_err= 20210 fi 20211else 20212 ac_cpp_err=yes 20213fi 20214if test -z "$ac_cpp_err"; then 20215 ac_header_preproc=yes 20216else 20217 echo "$as_me: failed program was:" >&5 20218sed 's/^/| /' conftest.$ac_ext >&5 20219 20220 ac_header_preproc=no 20221fi 20222rm -f conftest.err conftest.$ac_ext 20223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20224echo "${ECHO_T}$ac_header_preproc" >&6 20225 20226# So? What about this header? 20227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20228 yes:no: ) 20229 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 20230echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20231 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5 20232echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;} 20233 ac_header_preproc=yes 20234 ;; 20235 no:yes:* ) 20236 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 20237echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} 20238 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5 20239echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;} 20240 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5 20241echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;} 20242 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5 20243echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;} 20244 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 20245echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} 20246 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5 20247echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;} 20248 ( 20249 cat <<\_ASBOX 20250## ----------------------------------- ## 20251## Report this to llvmbugs@cs.uiuc.edu ## 20252## ----------------------------------- ## 20253_ASBOX 20254 ) | 20255 sed "s/^/$as_me: WARNING: /" >&2 20256 ;; 20257esac 20258echo "$as_me:$LINENO: checking for inttypes.h" >&5 20259echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 20260if test "${ac_cv_header_inttypes_h+set}" = set; then 20261 echo $ECHO_N "(cached) $ECHO_C" >&6 20262else 20263 ac_cv_header_inttypes_h=$ac_header_preproc 20264fi 20265echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 20266echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 20267 20268fi 20269if test $ac_cv_header_inttypes_h = yes; then 20270 INCLUDE_INTTYPES_H='#include <inttypes.h>' 20271else 20272 INCLUDE_INTTYPES_H='' 20273fi 20274 20275 20276 20277if test "${ac_cv_header_stdint_h+set}" = set; then 20278 echo "$as_me:$LINENO: checking for stdint.h" >&5 20279echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 20280if test "${ac_cv_header_stdint_h+set}" = set; then 20281 echo $ECHO_N "(cached) $ECHO_C" >&6 20282fi 20283echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 20284echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 20285else 20286 # Is the header compilable? 20287echo "$as_me:$LINENO: checking stdint.h usability" >&5 20288echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 20289cat >conftest.$ac_ext <<_ACEOF 20290/* confdefs.h. */ 20291_ACEOF 20292cat confdefs.h >>conftest.$ac_ext 20293cat >>conftest.$ac_ext <<_ACEOF 20294/* end confdefs.h. */ 20295$ac_includes_default 20296#include <stdint.h> 20297_ACEOF 20298rm -f conftest.$ac_objext 20299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20300 (eval $ac_compile) 2>conftest.er1 20301 ac_status=$? 20302 grep -v '^ *+' conftest.er1 >conftest.err 20303 rm -f conftest.er1 20304 cat conftest.err >&5 20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20306 (exit $ac_status); } && 20307 { ac_try='test -z "$ac_c_werror_flag" 20308 || test ! -s conftest.err' 20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20310 (eval $ac_try) 2>&5 20311 ac_status=$? 20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20313 (exit $ac_status); }; } && 20314 { ac_try='test -s conftest.$ac_objext' 20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20316 (eval $ac_try) 2>&5 20317 ac_status=$? 20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20319 (exit $ac_status); }; }; then 20320 ac_header_compiler=yes 20321else 20322 echo "$as_me: failed program was:" >&5 20323sed 's/^/| /' conftest.$ac_ext >&5 20324 20325ac_header_compiler=no 20326fi 20327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20329echo "${ECHO_T}$ac_header_compiler" >&6 20330 20331# Is the header present? 20332echo "$as_me:$LINENO: checking stdint.h presence" >&5 20333echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 20334cat >conftest.$ac_ext <<_ACEOF 20335/* confdefs.h. */ 20336_ACEOF 20337cat confdefs.h >>conftest.$ac_ext 20338cat >>conftest.$ac_ext <<_ACEOF 20339/* end confdefs.h. */ 20340#include <stdint.h> 20341_ACEOF 20342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20344 ac_status=$? 20345 grep -v '^ *+' conftest.er1 >conftest.err 20346 rm -f conftest.er1 20347 cat conftest.err >&5 20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20349 (exit $ac_status); } >/dev/null; then 20350 if test -s conftest.err; then 20351 ac_cpp_err=$ac_c_preproc_warn_flag 20352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20353 else 20354 ac_cpp_err= 20355 fi 20356else 20357 ac_cpp_err=yes 20358fi 20359if test -z "$ac_cpp_err"; then 20360 ac_header_preproc=yes 20361else 20362 echo "$as_me: failed program was:" >&5 20363sed 's/^/| /' conftest.$ac_ext >&5 20364 20365 ac_header_preproc=no 20366fi 20367rm -f conftest.err conftest.$ac_ext 20368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20369echo "${ECHO_T}$ac_header_preproc" >&6 20370 20371# So? What about this header? 20372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20373 yes:no: ) 20374 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 20375echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20376 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 20377echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} 20378 ac_header_preproc=yes 20379 ;; 20380 no:yes:* ) 20381 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 20382echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} 20383 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 20384echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} 20385 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 20386echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} 20387 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 20388echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} 20389 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 20390echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} 20391 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 20392echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} 20393 ( 20394 cat <<\_ASBOX 20395## ----------------------------------- ## 20396## Report this to llvmbugs@cs.uiuc.edu ## 20397## ----------------------------------- ## 20398_ASBOX 20399 ) | 20400 sed "s/^/$as_me: WARNING: /" >&2 20401 ;; 20402esac 20403echo "$as_me:$LINENO: checking for stdint.h" >&5 20404echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 20405if test "${ac_cv_header_stdint_h+set}" = set; then 20406 echo $ECHO_N "(cached) $ECHO_C" >&6 20407else 20408 ac_cv_header_stdint_h=$ac_header_preproc 20409fi 20410echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 20411echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 20412 20413fi 20414if test $ac_cv_header_stdint_h = yes; then 20415 INCLUDE_STDINT_H='#include <stdint.h>' 20416else 20417 INCLUDE_STDINT_H='' 20418fi 20419 20420 20421 20422 20423 20424echo "$as_me:$LINENO: checking for pid_t" >&5 20425echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 20426if test "${ac_cv_type_pid_t+set}" = set; then 20427 echo $ECHO_N "(cached) $ECHO_C" >&6 20428else 20429 cat >conftest.$ac_ext <<_ACEOF 20430/* confdefs.h. */ 20431_ACEOF 20432cat confdefs.h >>conftest.$ac_ext 20433cat >>conftest.$ac_ext <<_ACEOF 20434/* end confdefs.h. */ 20435$ac_includes_default 20436int 20437main () 20438{ 20439if ((pid_t *) 0) 20440 return 0; 20441if (sizeof (pid_t)) 20442 return 0; 20443 ; 20444 return 0; 20445} 20446_ACEOF 20447rm -f conftest.$ac_objext 20448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20449 (eval $ac_compile) 2>conftest.er1 20450 ac_status=$? 20451 grep -v '^ *+' conftest.er1 >conftest.err 20452 rm -f conftest.er1 20453 cat conftest.err >&5 20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20455 (exit $ac_status); } && 20456 { ac_try='test -z "$ac_c_werror_flag" 20457 || test ! -s conftest.err' 20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20459 (eval $ac_try) 2>&5 20460 ac_status=$? 20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20462 (exit $ac_status); }; } && 20463 { ac_try='test -s conftest.$ac_objext' 20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20465 (eval $ac_try) 2>&5 20466 ac_status=$? 20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20468 (exit $ac_status); }; }; then 20469 ac_cv_type_pid_t=yes 20470else 20471 echo "$as_me: failed program was:" >&5 20472sed 's/^/| /' conftest.$ac_ext >&5 20473 20474ac_cv_type_pid_t=no 20475fi 20476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20477fi 20478echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 20479echo "${ECHO_T}$ac_cv_type_pid_t" >&6 20480if test $ac_cv_type_pid_t = yes; then 20481 : 20482else 20483 20484cat >>confdefs.h <<_ACEOF 20485#define pid_t int 20486_ACEOF 20487 20488fi 20489 20490echo "$as_me:$LINENO: checking for size_t" >&5 20491echo $ECHO_N "checking for size_t... $ECHO_C" >&6 20492if test "${ac_cv_type_size_t+set}" = set; then 20493 echo $ECHO_N "(cached) $ECHO_C" >&6 20494else 20495 cat >conftest.$ac_ext <<_ACEOF 20496/* confdefs.h. */ 20497_ACEOF 20498cat confdefs.h >>conftest.$ac_ext 20499cat >>conftest.$ac_ext <<_ACEOF 20500/* end confdefs.h. */ 20501$ac_includes_default 20502int 20503main () 20504{ 20505if ((size_t *) 0) 20506 return 0; 20507if (sizeof (size_t)) 20508 return 0; 20509 ; 20510 return 0; 20511} 20512_ACEOF 20513rm -f conftest.$ac_objext 20514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20515 (eval $ac_compile) 2>conftest.er1 20516 ac_status=$? 20517 grep -v '^ *+' conftest.er1 >conftest.err 20518 rm -f conftest.er1 20519 cat conftest.err >&5 20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20521 (exit $ac_status); } && 20522 { ac_try='test -z "$ac_c_werror_flag" 20523 || test ! -s conftest.err' 20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20525 (eval $ac_try) 2>&5 20526 ac_status=$? 20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20528 (exit $ac_status); }; } && 20529 { ac_try='test -s conftest.$ac_objext' 20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20531 (eval $ac_try) 2>&5 20532 ac_status=$? 20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20534 (exit $ac_status); }; }; then 20535 ac_cv_type_size_t=yes 20536else 20537 echo "$as_me: failed program was:" >&5 20538sed 's/^/| /' conftest.$ac_ext >&5 20539 20540ac_cv_type_size_t=no 20541fi 20542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20543fi 20544echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20545echo "${ECHO_T}$ac_cv_type_size_t" >&6 20546if test $ac_cv_type_size_t = yes; then 20547 : 20548else 20549 20550cat >>confdefs.h <<_ACEOF 20551#define size_t unsigned 20552_ACEOF 20553 20554fi 20555 20556echo "$as_me:$LINENO: checking for int64_t" >&5 20557echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 20558if test "${ac_cv_type_int64_t+set}" = set; then 20559 echo $ECHO_N "(cached) $ECHO_C" >&6 20560else 20561 cat >conftest.$ac_ext <<_ACEOF 20562/* confdefs.h. */ 20563_ACEOF 20564cat confdefs.h >>conftest.$ac_ext 20565cat >>conftest.$ac_ext <<_ACEOF 20566/* end confdefs.h. */ 20567$ac_includes_default 20568int 20569main () 20570{ 20571if ((int64_t *) 0) 20572 return 0; 20573if (sizeof (int64_t)) 20574 return 0; 20575 ; 20576 return 0; 20577} 20578_ACEOF 20579rm -f conftest.$ac_objext 20580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20581 (eval $ac_compile) 2>conftest.er1 20582 ac_status=$? 20583 grep -v '^ *+' conftest.er1 >conftest.err 20584 rm -f conftest.er1 20585 cat conftest.err >&5 20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20587 (exit $ac_status); } && 20588 { ac_try='test -z "$ac_c_werror_flag" 20589 || test ! -s conftest.err' 20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20591 (eval $ac_try) 2>&5 20592 ac_status=$? 20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20594 (exit $ac_status); }; } && 20595 { ac_try='test -s conftest.$ac_objext' 20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20597 (eval $ac_try) 2>&5 20598 ac_status=$? 20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20600 (exit $ac_status); }; }; then 20601 ac_cv_type_int64_t=yes 20602else 20603 echo "$as_me: failed program was:" >&5 20604sed 's/^/| /' conftest.$ac_ext >&5 20605 20606ac_cv_type_int64_t=no 20607fi 20608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20609fi 20610echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 20611echo "${ECHO_T}$ac_cv_type_int64_t" >&6 20612if test $ac_cv_type_int64_t = yes; then 20613 20614cat >>confdefs.h <<_ACEOF 20615#define HAVE_INT64_T 1 20616_ACEOF 20617 20618 20619else 20620 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 20621echo "$as_me: error: Type int64_t required but not found" >&2;} 20622 { (exit 1); exit 1; }; } 20623fi 20624 20625echo "$as_me:$LINENO: checking for uint64_t" >&5 20626echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 20627if test "${ac_cv_type_uint64_t+set}" = set; then 20628 echo $ECHO_N "(cached) $ECHO_C" >&6 20629else 20630 cat >conftest.$ac_ext <<_ACEOF 20631/* confdefs.h. */ 20632_ACEOF 20633cat confdefs.h >>conftest.$ac_ext 20634cat >>conftest.$ac_ext <<_ACEOF 20635/* end confdefs.h. */ 20636$ac_includes_default 20637int 20638main () 20639{ 20640if ((uint64_t *) 0) 20641 return 0; 20642if (sizeof (uint64_t)) 20643 return 0; 20644 ; 20645 return 0; 20646} 20647_ACEOF 20648rm -f conftest.$ac_objext 20649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20650 (eval $ac_compile) 2>conftest.er1 20651 ac_status=$? 20652 grep -v '^ *+' conftest.er1 >conftest.err 20653 rm -f conftest.er1 20654 cat conftest.err >&5 20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20656 (exit $ac_status); } && 20657 { ac_try='test -z "$ac_c_werror_flag" 20658 || test ! -s conftest.err' 20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20660 (eval $ac_try) 2>&5 20661 ac_status=$? 20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20663 (exit $ac_status); }; } && 20664 { ac_try='test -s conftest.$ac_objext' 20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20666 (eval $ac_try) 2>&5 20667 ac_status=$? 20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20669 (exit $ac_status); }; }; then 20670 ac_cv_type_uint64_t=yes 20671else 20672 echo "$as_me: failed program was:" >&5 20673sed 's/^/| /' conftest.$ac_ext >&5 20674 20675ac_cv_type_uint64_t=no 20676fi 20677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20678fi 20679echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 20680echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 20681if test $ac_cv_type_uint64_t = yes; then 20682 20683cat >>confdefs.h <<_ACEOF 20684#define HAVE_UINT64_T 1 20685_ACEOF 20686 20687 20688else 20689 echo "$as_me:$LINENO: checking for u_int64_t" >&5 20690echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 20691if test "${ac_cv_type_u_int64_t+set}" = set; then 20692 echo $ECHO_N "(cached) $ECHO_C" >&6 20693else 20694 cat >conftest.$ac_ext <<_ACEOF 20695/* confdefs.h. */ 20696_ACEOF 20697cat confdefs.h >>conftest.$ac_ext 20698cat >>conftest.$ac_ext <<_ACEOF 20699/* end confdefs.h. */ 20700$ac_includes_default 20701int 20702main () 20703{ 20704if ((u_int64_t *) 0) 20705 return 0; 20706if (sizeof (u_int64_t)) 20707 return 0; 20708 ; 20709 return 0; 20710} 20711_ACEOF 20712rm -f conftest.$ac_objext 20713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20714 (eval $ac_compile) 2>conftest.er1 20715 ac_status=$? 20716 grep -v '^ *+' conftest.er1 >conftest.err 20717 rm -f conftest.er1 20718 cat conftest.err >&5 20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20720 (exit $ac_status); } && 20721 { ac_try='test -z "$ac_c_werror_flag" 20722 || test ! -s conftest.err' 20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20724 (eval $ac_try) 2>&5 20725 ac_status=$? 20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20727 (exit $ac_status); }; } && 20728 { ac_try='test -s conftest.$ac_objext' 20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20730 (eval $ac_try) 2>&5 20731 ac_status=$? 20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20733 (exit $ac_status); }; }; then 20734 ac_cv_type_u_int64_t=yes 20735else 20736 echo "$as_me: failed program was:" >&5 20737sed 's/^/| /' conftest.$ac_ext >&5 20738 20739ac_cv_type_u_int64_t=no 20740fi 20741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20742fi 20743echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 20744echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 20745if test $ac_cv_type_u_int64_t = yes; then 20746 20747cat >>confdefs.h <<_ACEOF 20748#define HAVE_U_INT64_T 1 20749_ACEOF 20750 20751 20752else 20753 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 20754echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 20755 { (exit 1); exit 1; }; } 20756fi 20757 20758fi 20759 20760echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20761echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 20762if test "${ac_cv_header_time+set}" = set; then 20763 echo $ECHO_N "(cached) $ECHO_C" >&6 20764else 20765 cat >conftest.$ac_ext <<_ACEOF 20766/* confdefs.h. */ 20767_ACEOF 20768cat confdefs.h >>conftest.$ac_ext 20769cat >>conftest.$ac_ext <<_ACEOF 20770/* end confdefs.h. */ 20771#include <sys/types.h> 20772#include <sys/time.h> 20773#include <time.h> 20774 20775int 20776main () 20777{ 20778if ((struct tm *) 0) 20779return 0; 20780 ; 20781 return 0; 20782} 20783_ACEOF 20784rm -f conftest.$ac_objext 20785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20786 (eval $ac_compile) 2>conftest.er1 20787 ac_status=$? 20788 grep -v '^ *+' conftest.er1 >conftest.err 20789 rm -f conftest.er1 20790 cat conftest.err >&5 20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20792 (exit $ac_status); } && 20793 { ac_try='test -z "$ac_c_werror_flag" 20794 || test ! -s conftest.err' 20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20796 (eval $ac_try) 2>&5 20797 ac_status=$? 20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20799 (exit $ac_status); }; } && 20800 { ac_try='test -s conftest.$ac_objext' 20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20802 (eval $ac_try) 2>&5 20803 ac_status=$? 20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20805 (exit $ac_status); }; }; then 20806 ac_cv_header_time=yes 20807else 20808 echo "$as_me: failed program was:" >&5 20809sed 's/^/| /' conftest.$ac_ext >&5 20810 20811ac_cv_header_time=no 20812fi 20813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20814fi 20815echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20816echo "${ECHO_T}$ac_cv_header_time" >&6 20817if test $ac_cv_header_time = yes; then 20818 20819cat >>confdefs.h <<\_ACEOF 20820#define TIME_WITH_SYS_TIME 1 20821_ACEOF 20822 20823fi 20824 20825echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 20826echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 20827if test "${ac_cv_struct_tm+set}" = set; then 20828 echo $ECHO_N "(cached) $ECHO_C" >&6 20829else 20830 cat >conftest.$ac_ext <<_ACEOF 20831/* confdefs.h. */ 20832_ACEOF 20833cat confdefs.h >>conftest.$ac_ext 20834cat >>conftest.$ac_ext <<_ACEOF 20835/* end confdefs.h. */ 20836#include <sys/types.h> 20837#include <time.h> 20838 20839int 20840main () 20841{ 20842struct tm *tp; tp->tm_sec; 20843 ; 20844 return 0; 20845} 20846_ACEOF 20847rm -f conftest.$ac_objext 20848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20849 (eval $ac_compile) 2>conftest.er1 20850 ac_status=$? 20851 grep -v '^ *+' conftest.er1 >conftest.err 20852 rm -f conftest.er1 20853 cat conftest.err >&5 20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20855 (exit $ac_status); } && 20856 { ac_try='test -z "$ac_c_werror_flag" 20857 || test ! -s conftest.err' 20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20859 (eval $ac_try) 2>&5 20860 ac_status=$? 20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20862 (exit $ac_status); }; } && 20863 { ac_try='test -s conftest.$ac_objext' 20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20865 (eval $ac_try) 2>&5 20866 ac_status=$? 20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20868 (exit $ac_status); }; }; then 20869 ac_cv_struct_tm=time.h 20870else 20871 echo "$as_me: failed program was:" >&5 20872sed 's/^/| /' conftest.$ac_ext >&5 20873 20874ac_cv_struct_tm=sys/time.h 20875fi 20876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20877fi 20878echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 20879echo "${ECHO_T}$ac_cv_struct_tm" >&6 20880if test $ac_cv_struct_tm = sys/time.h; then 20881 20882cat >>confdefs.h <<\_ACEOF 20883#define TM_IN_SYS_TIME 1 20884_ACEOF 20885 20886fi 20887 20888 20889 20890 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5 20891echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6 20892 ac_ext=c 20893ac_cpp='$CPP $CPPFLAGS' 20894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20896ac_compiler_gnu=$ac_cv_c_compiler_gnu 20897 20898 if test "$cross_compiling" = yes; then 20899 ac_c_printf_a=no 20900else 20901 cat >conftest.$ac_ext <<_ACEOF 20902 20903 /* confdefs.h. */ 20904_ACEOF 20905cat confdefs.h >>conftest.$ac_ext 20906cat >>conftest.$ac_ext <<_ACEOF 20907/* end confdefs.h. */ 20908 20909#include <stdio.h> 20910#include <stdlib.h> 20911 20912int 20913main () 20914{ 20915 20916volatile double A, B; 20917char Buffer[100]; 20918A = 1; 20919A /= 10.0; 20920sprintf(Buffer, "%a", A); 20921B = atof(Buffer); 20922if (A != B) 20923 return (1); 20924if (A != 0x1.999999999999ap-4) 20925 return (1); 20926return (0); 20927 ; 20928 return 0; 20929} 20930_ACEOF 20931rm -f conftest$ac_exeext 20932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20933 (eval $ac_link) 2>&5 20934 ac_status=$? 20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20938 (eval $ac_try) 2>&5 20939 ac_status=$? 20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20941 (exit $ac_status); }; }; then 20942 ac_c_printf_a=yes 20943else 20944 echo "$as_me: program exited with status $ac_status" >&5 20945echo "$as_me: failed program was:" >&5 20946sed 's/^/| /' conftest.$ac_ext >&5 20947 20948( exit $ac_status ) 20949ac_c_printf_a=no 20950fi 20951rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20952fi 20953 ac_ext=c 20954ac_cpp='$CPP $CPPFLAGS' 20955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20957ac_compiler_gnu=$ac_cv_c_compiler_gnu 20958 20959 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5 20960echo "${ECHO_T}$ac_c_printf_a" >&6 20961 if test "$ac_c_printf_a" = "yes"; then 20962 20963cat >>confdefs.h <<\_ACEOF 20964#define HAVE_PRINTF_A 1 20965_ACEOF 20966 20967 fi 20968 20969 20970echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 20971echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 20972if test "${ac_cv_c_bigendian+set}" = set; then 20973 echo $ECHO_N "(cached) $ECHO_C" >&6 20974else 20975 # See if sys/param.h defines the BYTE_ORDER macro. 20976cat >conftest.$ac_ext <<_ACEOF 20977/* confdefs.h. */ 20978_ACEOF 20979cat confdefs.h >>conftest.$ac_ext 20980cat >>conftest.$ac_ext <<_ACEOF 20981/* end confdefs.h. */ 20982#include <sys/types.h> 20983#include <sys/param.h> 20984 20985int 20986main () 20987{ 20988#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 20989 bogus endian macros 20990#endif 20991 20992 ; 20993 return 0; 20994} 20995_ACEOF 20996rm -f conftest.$ac_objext 20997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20998 (eval $ac_compile) 2>conftest.er1 20999 ac_status=$? 21000 grep -v '^ *+' conftest.er1 >conftest.err 21001 rm -f conftest.er1 21002 cat conftest.err >&5 21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21004 (exit $ac_status); } && 21005 { ac_try='test -z "$ac_c_werror_flag" 21006 || test ! -s conftest.err' 21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21008 (eval $ac_try) 2>&5 21009 ac_status=$? 21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21011 (exit $ac_status); }; } && 21012 { ac_try='test -s conftest.$ac_objext' 21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21014 (eval $ac_try) 2>&5 21015 ac_status=$? 21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21017 (exit $ac_status); }; }; then 21018 # It does; now see whether it defined to BIG_ENDIAN or not. 21019cat >conftest.$ac_ext <<_ACEOF 21020/* confdefs.h. */ 21021_ACEOF 21022cat confdefs.h >>conftest.$ac_ext 21023cat >>conftest.$ac_ext <<_ACEOF 21024/* end confdefs.h. */ 21025#include <sys/types.h> 21026#include <sys/param.h> 21027 21028int 21029main () 21030{ 21031#if BYTE_ORDER != BIG_ENDIAN 21032 not big endian 21033#endif 21034 21035 ; 21036 return 0; 21037} 21038_ACEOF 21039rm -f conftest.$ac_objext 21040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21041 (eval $ac_compile) 2>conftest.er1 21042 ac_status=$? 21043 grep -v '^ *+' conftest.er1 >conftest.err 21044 rm -f conftest.er1 21045 cat conftest.err >&5 21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21047 (exit $ac_status); } && 21048 { ac_try='test -z "$ac_c_werror_flag" 21049 || test ! -s conftest.err' 21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21051 (eval $ac_try) 2>&5 21052 ac_status=$? 21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21054 (exit $ac_status); }; } && 21055 { ac_try='test -s conftest.$ac_objext' 21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21057 (eval $ac_try) 2>&5 21058 ac_status=$? 21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21060 (exit $ac_status); }; }; then 21061 ac_cv_c_bigendian=yes 21062else 21063 echo "$as_me: failed program was:" >&5 21064sed 's/^/| /' conftest.$ac_ext >&5 21065 21066ac_cv_c_bigendian=no 21067fi 21068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21069else 21070 echo "$as_me: failed program was:" >&5 21071sed 's/^/| /' conftest.$ac_ext >&5 21072 21073# It does not; compile a test program. 21074if test "$cross_compiling" = yes; then 21075 # try to guess the endianness by grepping values into an object file 21076 ac_cv_c_bigendian=unknown 21077 cat >conftest.$ac_ext <<_ACEOF 21078/* confdefs.h. */ 21079_ACEOF 21080cat confdefs.h >>conftest.$ac_ext 21081cat >>conftest.$ac_ext <<_ACEOF 21082/* end confdefs.h. */ 21083short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 21084short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 21085void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 21086short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 21087short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 21088void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 21089int 21090main () 21091{ 21092 _ascii (); _ebcdic (); 21093 ; 21094 return 0; 21095} 21096_ACEOF 21097rm -f conftest.$ac_objext 21098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21099 (eval $ac_compile) 2>conftest.er1 21100 ac_status=$? 21101 grep -v '^ *+' conftest.er1 >conftest.err 21102 rm -f conftest.er1 21103 cat conftest.err >&5 21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21105 (exit $ac_status); } && 21106 { ac_try='test -z "$ac_c_werror_flag" 21107 || test ! -s conftest.err' 21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21109 (eval $ac_try) 2>&5 21110 ac_status=$? 21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21112 (exit $ac_status); }; } && 21113 { ac_try='test -s conftest.$ac_objext' 21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21115 (eval $ac_try) 2>&5 21116 ac_status=$? 21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21118 (exit $ac_status); }; }; then 21119 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 21120 ac_cv_c_bigendian=yes 21121fi 21122if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 21123 if test "$ac_cv_c_bigendian" = unknown; then 21124 ac_cv_c_bigendian=no 21125 else 21126 # finding both strings is unlikely to happen, but who knows? 21127 ac_cv_c_bigendian=unknown 21128 fi 21129fi 21130else 21131 echo "$as_me: failed program was:" >&5 21132sed 's/^/| /' conftest.$ac_ext >&5 21133 21134fi 21135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21136else 21137 cat >conftest.$ac_ext <<_ACEOF 21138/* confdefs.h. */ 21139_ACEOF 21140cat confdefs.h >>conftest.$ac_ext 21141cat >>conftest.$ac_ext <<_ACEOF 21142/* end confdefs.h. */ 21143int 21144main () 21145{ 21146 /* Are we little or big endian? From Harbison&Steele. */ 21147 union 21148 { 21149 long l; 21150 char c[sizeof (long)]; 21151 } u; 21152 u.l = 1; 21153 exit (u.c[sizeof (long) - 1] == 1); 21154} 21155_ACEOF 21156rm -f conftest$ac_exeext 21157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21158 (eval $ac_link) 2>&5 21159 ac_status=$? 21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21163 (eval $ac_try) 2>&5 21164 ac_status=$? 21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21166 (exit $ac_status); }; }; then 21167 ac_cv_c_bigendian=no 21168else 21169 echo "$as_me: program exited with status $ac_status" >&5 21170echo "$as_me: failed program was:" >&5 21171sed 's/^/| /' conftest.$ac_ext >&5 21172 21173( exit $ac_status ) 21174ac_cv_c_bigendian=yes 21175fi 21176rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21177fi 21178fi 21179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21180fi 21181echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 21182echo "${ECHO_T}$ac_cv_c_bigendian" >&6 21183case $ac_cv_c_bigendian in 21184 yes) 21185 ENDIAN=big 21186 ;; 21187 no) 21188 ENDIAN=little 21189 ;; 21190 *) 21191 { { echo "$as_me:$LINENO: error: unknown endianness 21192presetting ac_cv_c_bigendian=no (or yes) will help" >&5 21193echo "$as_me: error: unknown endianness 21194presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 21195 { (exit 1); exit 1; }; } ;; 21196esac 21197 21198 21199echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 21200echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 21201if test "${ac_cv_cxx_namespaces+set}" = set; then 21202 echo $ECHO_N "(cached) $ECHO_C" >&6 21203else 21204 ac_ext=cc 21205ac_cpp='$CXXCPP $CPPFLAGS' 21206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21209 21210 cat >conftest.$ac_ext <<_ACEOF 21211/* confdefs.h. */ 21212_ACEOF 21213cat confdefs.h >>conftest.$ac_ext 21214cat >>conftest.$ac_ext <<_ACEOF 21215/* end confdefs.h. */ 21216namespace Outer { namespace Inner { int i = 0; }} 21217int 21218main () 21219{ 21220using namespace Outer::Inner; return i; 21221 ; 21222 return 0; 21223} 21224_ACEOF 21225rm -f conftest.$ac_objext 21226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21227 (eval $ac_compile) 2>conftest.er1 21228 ac_status=$? 21229 grep -v '^ *+' conftest.er1 >conftest.err 21230 rm -f conftest.er1 21231 cat conftest.err >&5 21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21233 (exit $ac_status); } && 21234 { ac_try='test -z "$ac_cxx_werror_flag" 21235 || test ! -s conftest.err' 21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21237 (eval $ac_try) 2>&5 21238 ac_status=$? 21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21240 (exit $ac_status); }; } && 21241 { ac_try='test -s conftest.$ac_objext' 21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21243 (eval $ac_try) 2>&5 21244 ac_status=$? 21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21246 (exit $ac_status); }; }; then 21247 ac_cv_cxx_namespaces=yes 21248else 21249 echo "$as_me: failed program was:" >&5 21250sed 's/^/| /' conftest.$ac_ext >&5 21251 21252ac_cv_cxx_namespaces=no 21253fi 21254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21255 ac_ext=c 21256ac_cpp='$CPP $CPPFLAGS' 21257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21259ac_compiler_gnu=$ac_cv_c_compiler_gnu 21260 21261 21262fi 21263echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 21264echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 21265if test "$ac_cv_cxx_namespaces" = yes; then 21266 21267cat >>confdefs.h <<\_ACEOF 21268#define HAVE_NAMESPACES 21269_ACEOF 21270 21271fi 21272 21273echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 21274echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 21275if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then 21276 echo $ECHO_N "(cached) $ECHO_C" >&6 21277else 21278 21279 ac_ext=cc 21280ac_cpp='$CXXCPP $CPPFLAGS' 21281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21284 21285 cat >conftest.$ac_ext <<_ACEOF 21286/* confdefs.h. */ 21287_ACEOF 21288cat confdefs.h >>conftest.$ac_ext 21289cat >>conftest.$ac_ext <<_ACEOF 21290/* end confdefs.h. */ 21291#include <ext/hash_map> 21292#ifdef HAVE_NAMESPACES 21293using namespace std; 21294#endif 21295int 21296main () 21297{ 21298hash_map<int, int> t; 21299 ; 21300 return 0; 21301} 21302_ACEOF 21303rm -f conftest.$ac_objext 21304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21305 (eval $ac_compile) 2>conftest.er1 21306 ac_status=$? 21307 grep -v '^ *+' conftest.er1 >conftest.err 21308 rm -f conftest.er1 21309 cat conftest.err >&5 21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21311 (exit $ac_status); } && 21312 { ac_try='test -z "$ac_cxx_werror_flag" 21313 || test ! -s conftest.err' 21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21315 (eval $ac_try) 2>&5 21316 ac_status=$? 21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21318 (exit $ac_status); }; } && 21319 { ac_try='test -s conftest.$ac_objext' 21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21321 (eval $ac_try) 2>&5 21322 ac_status=$? 21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21324 (exit $ac_status); }; }; then 21325 ac_cv_cxx_have_std_ext_hash_map=yes 21326else 21327 echo "$as_me: failed program was:" >&5 21328sed 's/^/| /' conftest.$ac_ext >&5 21329 21330ac_cv_cxx_have_std_ext_hash_map=no 21331fi 21332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21333 ac_ext=c 21334ac_cpp='$CPP $CPPFLAGS' 21335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21337ac_compiler_gnu=$ac_cv_c_compiler_gnu 21338 21339fi 21340echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 21341echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 21342 HAVE_STD_EXT_HASH_MAP=0 21343 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes 21344 then 21345 HAVE_STD_EXT_HASH_MAP=1 21346 fi 21347 21348 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 21349echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 21350if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then 21351 echo $ECHO_N "(cached) $ECHO_C" >&6 21352else 21353 21354 ac_ext=cc 21355ac_cpp='$CXXCPP $CPPFLAGS' 21356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21359 21360 cat >conftest.$ac_ext <<_ACEOF 21361/* confdefs.h. */ 21362_ACEOF 21363cat confdefs.h >>conftest.$ac_ext 21364cat >>conftest.$ac_ext <<_ACEOF 21365/* end confdefs.h. */ 21366#include <ext/hash_map> 21367#ifdef HAVE_NAMESPACES 21368using namespace __gnu_cxx; 21369#endif 21370int 21371main () 21372{ 21373hash_map<int,int> t; 21374 ; 21375 return 0; 21376} 21377_ACEOF 21378rm -f conftest.$ac_objext 21379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21380 (eval $ac_compile) 2>conftest.er1 21381 ac_status=$? 21382 grep -v '^ *+' conftest.er1 >conftest.err 21383 rm -f conftest.er1 21384 cat conftest.err >&5 21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21386 (exit $ac_status); } && 21387 { ac_try='test -z "$ac_cxx_werror_flag" 21388 || test ! -s conftest.err' 21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21390 (eval $ac_try) 2>&5 21391 ac_status=$? 21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21393 (exit $ac_status); }; } && 21394 { ac_try='test -s conftest.$ac_objext' 21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21396 (eval $ac_try) 2>&5 21397 ac_status=$? 21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21399 (exit $ac_status); }; }; then 21400 ac_cv_cxx_have_gnu_ext_hash_map=yes 21401else 21402 echo "$as_me: failed program was:" >&5 21403sed 's/^/| /' conftest.$ac_ext >&5 21404 21405ac_cv_cxx_have_gnu_ext_hash_map=no 21406fi 21407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21408 ac_ext=c 21409ac_cpp='$CPP $CPPFLAGS' 21410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21412ac_compiler_gnu=$ac_cv_c_compiler_gnu 21413 21414fi 21415echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 21416echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 21417 HAVE_GNU_EXT_HASH_MAP=0 21418 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes 21419 then 21420 HAVE_GNU_EXT_HASH_MAP=1 21421 fi 21422 21423 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 21424echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 21425if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then 21426 echo $ECHO_N "(cached) $ECHO_C" >&6 21427else 21428 21429 ac_ext=cc 21430ac_cpp='$CXXCPP $CPPFLAGS' 21431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21434 21435 cat >conftest.$ac_ext <<_ACEOF 21436/* confdefs.h. */ 21437_ACEOF 21438cat confdefs.h >>conftest.$ac_ext 21439cat >>conftest.$ac_ext <<_ACEOF 21440/* end confdefs.h. */ 21441#include <hash_map> 21442int 21443main () 21444{ 21445hash_map<int,int> t; 21446 ; 21447 return 0; 21448} 21449_ACEOF 21450rm -f conftest.$ac_objext 21451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21452 (eval $ac_compile) 2>conftest.er1 21453 ac_status=$? 21454 grep -v '^ *+' conftest.er1 >conftest.err 21455 rm -f conftest.er1 21456 cat conftest.err >&5 21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21458 (exit $ac_status); } && 21459 { ac_try='test -z "$ac_cxx_werror_flag" 21460 || test ! -s conftest.err' 21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21462 (eval $ac_try) 2>&5 21463 ac_status=$? 21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21465 (exit $ac_status); }; } && 21466 { ac_try='test -s conftest.$ac_objext' 21467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21468 (eval $ac_try) 2>&5 21469 ac_status=$? 21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21471 (exit $ac_status); }; }; then 21472 ac_cv_cxx_have_global_hash_map=yes 21473else 21474 echo "$as_me: failed program was:" >&5 21475sed 's/^/| /' conftest.$ac_ext >&5 21476 21477ac_cv_cxx_have_global_hash_map=no 21478fi 21479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21480 ac_ext=c 21481ac_cpp='$CPP $CPPFLAGS' 21482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21484ac_compiler_gnu=$ac_cv_c_compiler_gnu 21485 21486fi 21487echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 21488echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 21489 HAVE_GLOBAL_HASH_MAP=0 21490 if test "$ac_cv_cxx_have_global_hash_map" = yes 21491 then 21492 HAVE_GLOBAL_HASH_MAP=1 21493 fi 21494 21495echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 21496echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 21497if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then 21498 echo $ECHO_N "(cached) $ECHO_C" >&6 21499else 21500 21501 ac_ext=cc 21502ac_cpp='$CXXCPP $CPPFLAGS' 21503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21506 21507 cat >conftest.$ac_ext <<_ACEOF 21508/* confdefs.h. */ 21509_ACEOF 21510cat confdefs.h >>conftest.$ac_ext 21511cat >>conftest.$ac_ext <<_ACEOF 21512/* end confdefs.h. */ 21513#include <ext/hash_set> 21514#ifdef HAVE_NAMESPACES 21515using namespace std; 21516#endif 21517int 21518main () 21519{ 21520hash_set<int> t; 21521 ; 21522 return 0; 21523} 21524_ACEOF 21525rm -f conftest.$ac_objext 21526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21527 (eval $ac_compile) 2>conftest.er1 21528 ac_status=$? 21529 grep -v '^ *+' conftest.er1 >conftest.err 21530 rm -f conftest.er1 21531 cat conftest.err >&5 21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21533 (exit $ac_status); } && 21534 { ac_try='test -z "$ac_cxx_werror_flag" 21535 || test ! -s conftest.err' 21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21537 (eval $ac_try) 2>&5 21538 ac_status=$? 21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21540 (exit $ac_status); }; } && 21541 { ac_try='test -s conftest.$ac_objext' 21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21543 (eval $ac_try) 2>&5 21544 ac_status=$? 21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21546 (exit $ac_status); }; }; then 21547 ac_cv_cxx_have_std_ext_hash_set=yes 21548else 21549 echo "$as_me: failed program was:" >&5 21550sed 's/^/| /' conftest.$ac_ext >&5 21551 21552ac_cv_cxx_have_std_ext_hash_set=no 21553fi 21554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21555 ac_ext=c 21556ac_cpp='$CPP $CPPFLAGS' 21557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21559ac_compiler_gnu=$ac_cv_c_compiler_gnu 21560 21561fi 21562echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 21563echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 21564 HAVE_STD_EXT_HASH_SET=0 21565 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes 21566 then 21567 HAVE_STD_EXT_HASH_SET=1 21568 fi 21569 21570 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 21571echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 21572if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then 21573 echo $ECHO_N "(cached) $ECHO_C" >&6 21574else 21575 21576 ac_ext=cc 21577ac_cpp='$CXXCPP $CPPFLAGS' 21578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21581 21582 cat >conftest.$ac_ext <<_ACEOF 21583/* confdefs.h. */ 21584_ACEOF 21585cat confdefs.h >>conftest.$ac_ext 21586cat >>conftest.$ac_ext <<_ACEOF 21587/* end confdefs.h. */ 21588#include <ext/hash_set> 21589#ifdef HAVE_NAMESPACES 21590using namespace __gnu_cxx; 21591#endif 21592int 21593main () 21594{ 21595hash_set<int> t; 21596 ; 21597 return 0; 21598} 21599_ACEOF 21600rm -f conftest.$ac_objext 21601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21602 (eval $ac_compile) 2>conftest.er1 21603 ac_status=$? 21604 grep -v '^ *+' conftest.er1 >conftest.err 21605 rm -f conftest.er1 21606 cat conftest.err >&5 21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21608 (exit $ac_status); } && 21609 { ac_try='test -z "$ac_cxx_werror_flag" 21610 || test ! -s conftest.err' 21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21612 (eval $ac_try) 2>&5 21613 ac_status=$? 21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21615 (exit $ac_status); }; } && 21616 { ac_try='test -s conftest.$ac_objext' 21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21618 (eval $ac_try) 2>&5 21619 ac_status=$? 21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21621 (exit $ac_status); }; }; then 21622 ac_cv_cxx_have_gnu_ext_hash_set=yes 21623else 21624 echo "$as_me: failed program was:" >&5 21625sed 's/^/| /' conftest.$ac_ext >&5 21626 21627ac_cv_cxx_have_gnu_ext_hash_set=no 21628fi 21629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21630 ac_ext=c 21631ac_cpp='$CPP $CPPFLAGS' 21632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21634ac_compiler_gnu=$ac_cv_c_compiler_gnu 21635 21636fi 21637echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 21638echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 21639 HAVE_GNU_EXT_HASH_SET=0 21640 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes 21641 then 21642 HAVE_GNU_EXT_HASH_SET=1 21643 fi 21644 21645 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 21646echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 21647if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then 21648 echo $ECHO_N "(cached) $ECHO_C" >&6 21649else 21650 21651 ac_ext=cc 21652ac_cpp='$CXXCPP $CPPFLAGS' 21653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21656 21657 cat >conftest.$ac_ext <<_ACEOF 21658/* confdefs.h. */ 21659_ACEOF 21660cat confdefs.h >>conftest.$ac_ext 21661cat >>conftest.$ac_ext <<_ACEOF 21662/* end confdefs.h. */ 21663#include <hash_set> 21664int 21665main () 21666{ 21667hash_set<int> t; return 0; 21668 ; 21669 return 0; 21670} 21671_ACEOF 21672rm -f conftest.$ac_objext 21673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21674 (eval $ac_compile) 2>conftest.er1 21675 ac_status=$? 21676 grep -v '^ *+' conftest.er1 >conftest.err 21677 rm -f conftest.er1 21678 cat conftest.err >&5 21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21680 (exit $ac_status); } && 21681 { ac_try='test -z "$ac_cxx_werror_flag" 21682 || test ! -s conftest.err' 21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21684 (eval $ac_try) 2>&5 21685 ac_status=$? 21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21687 (exit $ac_status); }; } && 21688 { ac_try='test -s conftest.$ac_objext' 21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21690 (eval $ac_try) 2>&5 21691 ac_status=$? 21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21693 (exit $ac_status); }; }; then 21694 ac_cv_cxx_have_global_hash_set=yes 21695else 21696 echo "$as_me: failed program was:" >&5 21697sed 's/^/| /' conftest.$ac_ext >&5 21698 21699ac_cv_cxx_have_global_hash_set=no 21700fi 21701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21702 ac_ext=c 21703ac_cpp='$CPP $CPPFLAGS' 21704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21706ac_compiler_gnu=$ac_cv_c_compiler_gnu 21707 21708fi 21709echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 21710echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 21711 HAVE_GLOBAL_HASH_SET=0 21712 if test "$ac_cv_cxx_have_global_hash_set" = yes 21713 then 21714 HAVE_GLOBAL_HASH_SET=1 21715 fi 21716 21717echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 21718echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 21719if test "${ac_cv_cxx_have_std_iterator+set}" = set; then 21720 echo $ECHO_N "(cached) $ECHO_C" >&6 21721else 21722 21723 ac_ext=cc 21724ac_cpp='$CXXCPP $CPPFLAGS' 21725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21728 21729 cat >conftest.$ac_ext <<_ACEOF 21730/* confdefs.h. */ 21731_ACEOF 21732cat confdefs.h >>conftest.$ac_ext 21733cat >>conftest.$ac_ext <<_ACEOF 21734/* end confdefs.h. */ 21735#include <iterator> 21736#ifdef HAVE_NAMESPACES 21737using namespace std; 21738#endif 21739int 21740main () 21741{ 21742iterator<int,int,int> t; return 0; 21743 ; 21744 return 0; 21745} 21746_ACEOF 21747rm -f conftest.$ac_objext 21748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21749 (eval $ac_compile) 2>conftest.er1 21750 ac_status=$? 21751 grep -v '^ *+' conftest.er1 >conftest.err 21752 rm -f conftest.er1 21753 cat conftest.err >&5 21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21755 (exit $ac_status); } && 21756 { ac_try='test -z "$ac_cxx_werror_flag" 21757 || test ! -s conftest.err' 21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21759 (eval $ac_try) 2>&5 21760 ac_status=$? 21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21762 (exit $ac_status); }; } && 21763 { ac_try='test -s conftest.$ac_objext' 21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21765 (eval $ac_try) 2>&5 21766 ac_status=$? 21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21768 (exit $ac_status); }; }; then 21769 ac_cv_cxx_have_std_iterator=yes 21770else 21771 echo "$as_me: failed program was:" >&5 21772sed 's/^/| /' conftest.$ac_ext >&5 21773 21774ac_cv_cxx_have_std_iterator=no 21775fi 21776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21777 ac_ext=c 21778ac_cpp='$CPP $CPPFLAGS' 21779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21781ac_compiler_gnu=$ac_cv_c_compiler_gnu 21782 21783 21784fi 21785echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 21786echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 21787HAVE_STD_ITERATOR=0 21788if test "$ac_cv_cxx_have_std_iterator" = yes 21789then 21790 HAVE_STD_ITERATOR=1 21791fi 21792 21793echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 21794echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 21795if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then 21796 echo $ECHO_N "(cached) $ECHO_C" >&6 21797else 21798 21799 ac_ext=cc 21800ac_cpp='$CXXCPP $CPPFLAGS' 21801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21804 21805 cat >conftest.$ac_ext <<_ACEOF 21806/* confdefs.h. */ 21807_ACEOF 21808cat confdefs.h >>conftest.$ac_ext 21809cat >>conftest.$ac_ext <<_ACEOF 21810/* end confdefs.h. */ 21811#include <iterator> 21812#ifdef HAVE_NAMESPACES 21813using namespace std; 21814#endif 21815int 21816main () 21817{ 21818bidirectional_iterator<int,int> t; return 0; 21819 ; 21820 return 0; 21821} 21822_ACEOF 21823rm -f conftest.$ac_objext 21824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21825 (eval $ac_compile) 2>conftest.er1 21826 ac_status=$? 21827 grep -v '^ *+' conftest.er1 >conftest.err 21828 rm -f conftest.er1 21829 cat conftest.err >&5 21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21831 (exit $ac_status); } && 21832 { ac_try='test -z "$ac_cxx_werror_flag" 21833 || test ! -s conftest.err' 21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21835 (eval $ac_try) 2>&5 21836 ac_status=$? 21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21838 (exit $ac_status); }; } && 21839 { ac_try='test -s conftest.$ac_objext' 21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21841 (eval $ac_try) 2>&5 21842 ac_status=$? 21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21844 (exit $ac_status); }; }; then 21845 ac_cv_cxx_have_bi_iterator=yes 21846else 21847 echo "$as_me: failed program was:" >&5 21848sed 's/^/| /' conftest.$ac_ext >&5 21849 21850ac_cv_cxx_have_bi_iterator=no 21851fi 21852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21853 ac_ext=c 21854ac_cpp='$CPP $CPPFLAGS' 21855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21857ac_compiler_gnu=$ac_cv_c_compiler_gnu 21858 21859 21860fi 21861echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 21862echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 21863HAVE_BI_ITERATOR=0 21864if test "$ac_cv_cxx_have_bi_iterator" = yes 21865then 21866 HAVE_BI_ITERATOR=1 21867fi 21868 21869echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 21870echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 21871if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then 21872 echo $ECHO_N "(cached) $ECHO_C" >&6 21873else 21874 21875 ac_ext=cc 21876ac_cpp='$CXXCPP $CPPFLAGS' 21877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21880 21881 cat >conftest.$ac_ext <<_ACEOF 21882/* confdefs.h. */ 21883_ACEOF 21884cat confdefs.h >>conftest.$ac_ext 21885cat >>conftest.$ac_ext <<_ACEOF 21886/* end confdefs.h. */ 21887#include <iterator> 21888#ifdef HAVE_NAMESPACES 21889using namespace std; 21890#endif 21891int 21892main () 21893{ 21894forward_iterator<int,int> t; return 0; 21895 ; 21896 return 0; 21897} 21898_ACEOF 21899rm -f conftest.$ac_objext 21900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21901 (eval $ac_compile) 2>conftest.er1 21902 ac_status=$? 21903 grep -v '^ *+' conftest.er1 >conftest.err 21904 rm -f conftest.er1 21905 cat conftest.err >&5 21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21907 (exit $ac_status); } && 21908 { ac_try='test -z "$ac_cxx_werror_flag" 21909 || test ! -s conftest.err' 21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21911 (eval $ac_try) 2>&5 21912 ac_status=$? 21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21914 (exit $ac_status); }; } && 21915 { ac_try='test -s conftest.$ac_objext' 21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21917 (eval $ac_try) 2>&5 21918 ac_status=$? 21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21920 (exit $ac_status); }; }; then 21921 ac_cv_cxx_have_fwd_iterator=yes 21922else 21923 echo "$as_me: failed program was:" >&5 21924sed 's/^/| /' conftest.$ac_ext >&5 21925 21926ac_cv_cxx_have_fwd_iterator=no 21927fi 21928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21929 ac_ext=c 21930ac_cpp='$CPP $CPPFLAGS' 21931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21933ac_compiler_gnu=$ac_cv_c_compiler_gnu 21934 21935 21936fi 21937echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 21938echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 21939HAVE_FWD_ITERATOR=0 21940if test "$ac_cv_cxx_have_fwd_iterator" = yes 21941then 21942 HAVE_FWD_ITERATOR=1 21943fi 21944 21945 21946 21947echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 21948echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 21949if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 21950 echo $ECHO_N "(cached) $ECHO_C" >&6 21951else 21952 ac_ext=cc 21953ac_cpp='$CXXCPP $CPPFLAGS' 21954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21957 21958 cat >conftest.$ac_ext <<_ACEOF 21959/* confdefs.h. */ 21960_ACEOF 21961cat confdefs.h >>conftest.$ac_ext 21962cat >>conftest.$ac_ext <<_ACEOF 21963/* end confdefs.h. */ 21964#include <math.h> 21965 int foo(float f) {return isnan(f);} 21966_ACEOF 21967rm -f conftest.$ac_objext 21968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21969 (eval $ac_compile) 2>conftest.er1 21970 ac_status=$? 21971 grep -v '^ *+' conftest.er1 >conftest.err 21972 rm -f conftest.er1 21973 cat conftest.err >&5 21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21975 (exit $ac_status); } && 21976 { ac_try='test -z "$ac_cxx_werror_flag" 21977 || test ! -s conftest.err' 21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21979 (eval $ac_try) 2>&5 21980 ac_status=$? 21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21982 (exit $ac_status); }; } && 21983 { ac_try='test -s conftest.$ac_objext' 21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21985 (eval $ac_try) 2>&5 21986 ac_status=$? 21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21988 (exit $ac_status); }; }; then 21989 ac_cv_func_isnan_in_math_h=yes 21990else 21991 echo "$as_me: failed program was:" >&5 21992sed 's/^/| /' conftest.$ac_ext >&5 21993 21994ac_cv_func_isnan_in_math_h=no 21995fi 21996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21997 ac_ext=c 21998ac_cpp='$CPP $CPPFLAGS' 21999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22001ac_compiler_gnu=$ac_cv_c_compiler_gnu 22002 22003fi 22004echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 22005echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 22006 if test "$ac_cv_func_isnan_in_math_h" = "yes" 22007 then 22008 22009cat >>confdefs.h <<\_ACEOF 22010#define HAVE_ISNAN_IN_MATH_H 1 22011_ACEOF 22012 22013 fi 22014echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 22015echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 22016if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 22017 echo $ECHO_N "(cached) $ECHO_C" >&6 22018else 22019 ac_ext=cc 22020ac_cpp='$CXXCPP $CPPFLAGS' 22021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22024 22025 cat >conftest.$ac_ext <<_ACEOF 22026/* confdefs.h. */ 22027_ACEOF 22028cat confdefs.h >>conftest.$ac_ext 22029cat >>conftest.$ac_ext <<_ACEOF 22030/* end confdefs.h. */ 22031#include <cmath> 22032 int foo(float f) {return isnan(f);} 22033_ACEOF 22034rm -f conftest.$ac_objext 22035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22036 (eval $ac_compile) 2>conftest.er1 22037 ac_status=$? 22038 grep -v '^ *+' conftest.er1 >conftest.err 22039 rm -f conftest.er1 22040 cat conftest.err >&5 22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22042 (exit $ac_status); } && 22043 { ac_try='test -z "$ac_cxx_werror_flag" 22044 || test ! -s conftest.err' 22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22046 (eval $ac_try) 2>&5 22047 ac_status=$? 22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22049 (exit $ac_status); }; } && 22050 { ac_try='test -s conftest.$ac_objext' 22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22052 (eval $ac_try) 2>&5 22053 ac_status=$? 22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22055 (exit $ac_status); }; }; then 22056 ac_cv_func_isnan_in_cmath=yes 22057else 22058 echo "$as_me: failed program was:" >&5 22059sed 's/^/| /' conftest.$ac_ext >&5 22060 22061ac_cv_func_isnan_in_cmath=no 22062fi 22063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22064 ac_ext=c 22065ac_cpp='$CPP $CPPFLAGS' 22066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22068ac_compiler_gnu=$ac_cv_c_compiler_gnu 22069 22070fi 22071echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 22072echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 22073 if test "$ac_cv_func_isnan_in_cmath" = "yes" 22074 then 22075 22076cat >>confdefs.h <<\_ACEOF 22077#define HAVE_ISNAN_IN_CMATH 1 22078_ACEOF 22079 22080 fi 22081echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 22082echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 22083if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 22084 echo $ECHO_N "(cached) $ECHO_C" >&6 22085else 22086 ac_ext=cc 22087ac_cpp='$CXXCPP $CPPFLAGS' 22088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22091 22092 cat >conftest.$ac_ext <<_ACEOF 22093/* confdefs.h. */ 22094_ACEOF 22095cat confdefs.h >>conftest.$ac_ext 22096cat >>conftest.$ac_ext <<_ACEOF 22097/* end confdefs.h. */ 22098#include <cmath> 22099 using std::isnan; int foo(float f) {return isnan(f);} 22100_ACEOF 22101rm -f conftest.$ac_objext 22102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22103 (eval $ac_compile) 2>conftest.er1 22104 ac_status=$? 22105 grep -v '^ *+' conftest.er1 >conftest.err 22106 rm -f conftest.er1 22107 cat conftest.err >&5 22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22109 (exit $ac_status); } && 22110 { ac_try='test -z "$ac_cxx_werror_flag" 22111 || test ! -s conftest.err' 22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22113 (eval $ac_try) 2>&5 22114 ac_status=$? 22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22116 (exit $ac_status); }; } && 22117 { ac_try='test -s conftest.$ac_objext' 22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22119 (eval $ac_try) 2>&5 22120 ac_status=$? 22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22122 (exit $ac_status); }; }; then 22123 ac_cv_func_std_isnan_in_cmath=yes 22124else 22125 echo "$as_me: failed program was:" >&5 22126sed 's/^/| /' conftest.$ac_ext >&5 22127 22128ac_cv_func_std_isnan_in_cmath=no 22129fi 22130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22131 ac_ext=c 22132ac_cpp='$CPP $CPPFLAGS' 22133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22135ac_compiler_gnu=$ac_cv_c_compiler_gnu 22136 22137fi 22138echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 22139echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 22140 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" 22141 then 22142 22143cat >>confdefs.h <<\_ACEOF 22144#define HAVE_STD_ISNAN_IN_CMATH 1 22145_ACEOF 22146 22147 fi 22148 22149 22150echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 22151echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 22152if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 22153 echo $ECHO_N "(cached) $ECHO_C" >&6 22154else 22155 ac_ext=cc 22156ac_cpp='$CXXCPP $CPPFLAGS' 22157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22160 22161 cat >conftest.$ac_ext <<_ACEOF 22162/* confdefs.h. */ 22163_ACEOF 22164cat confdefs.h >>conftest.$ac_ext 22165cat >>conftest.$ac_ext <<_ACEOF 22166/* end confdefs.h. */ 22167#include <math.h> 22168 int foo(float f) {return isinf(f);} 22169_ACEOF 22170rm -f conftest.$ac_objext 22171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22172 (eval $ac_compile) 2>conftest.er1 22173 ac_status=$? 22174 grep -v '^ *+' conftest.er1 >conftest.err 22175 rm -f conftest.er1 22176 cat conftest.err >&5 22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22178 (exit $ac_status); } && 22179 { ac_try='test -z "$ac_cxx_werror_flag" 22180 || test ! -s conftest.err' 22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22182 (eval $ac_try) 2>&5 22183 ac_status=$? 22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22185 (exit $ac_status); }; } && 22186 { ac_try='test -s conftest.$ac_objext' 22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22188 (eval $ac_try) 2>&5 22189 ac_status=$? 22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22191 (exit $ac_status); }; }; then 22192 ac_cv_func_isinf_in_math_h=yes 22193else 22194 echo "$as_me: failed program was:" >&5 22195sed 's/^/| /' conftest.$ac_ext >&5 22196 22197ac_cv_func_isinf_in_math_h=no 22198fi 22199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22200 ac_ext=c 22201ac_cpp='$CPP $CPPFLAGS' 22202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22204ac_compiler_gnu=$ac_cv_c_compiler_gnu 22205 22206fi 22207echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 22208echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 22209 if test "$ac_cv_func_isinf_in_math_h" = "yes" 22210 then 22211 22212cat >>confdefs.h <<\_ACEOF 22213#define HAVE_ISINF_IN_MATH_H 1 22214_ACEOF 22215 22216 fi 22217echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 22218echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 22219if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 22220 echo $ECHO_N "(cached) $ECHO_C" >&6 22221else 22222 ac_ext=cc 22223ac_cpp='$CXXCPP $CPPFLAGS' 22224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22227 22228 cat >conftest.$ac_ext <<_ACEOF 22229/* confdefs.h. */ 22230_ACEOF 22231cat confdefs.h >>conftest.$ac_ext 22232cat >>conftest.$ac_ext <<_ACEOF 22233/* end confdefs.h. */ 22234#include <cmath> 22235 int foo(float f) {return isinf(f);} 22236_ACEOF 22237rm -f conftest.$ac_objext 22238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22239 (eval $ac_compile) 2>conftest.er1 22240 ac_status=$? 22241 grep -v '^ *+' conftest.er1 >conftest.err 22242 rm -f conftest.er1 22243 cat conftest.err >&5 22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22245 (exit $ac_status); } && 22246 { ac_try='test -z "$ac_cxx_werror_flag" 22247 || test ! -s conftest.err' 22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22249 (eval $ac_try) 2>&5 22250 ac_status=$? 22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22252 (exit $ac_status); }; } && 22253 { ac_try='test -s conftest.$ac_objext' 22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22255 (eval $ac_try) 2>&5 22256 ac_status=$? 22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22258 (exit $ac_status); }; }; then 22259 ac_cv_func_isinf_in_cmath=yes 22260else 22261 echo "$as_me: failed program was:" >&5 22262sed 's/^/| /' conftest.$ac_ext >&5 22263 22264ac_cv_func_isinf_in_cmath=no 22265fi 22266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22267 ac_ext=c 22268ac_cpp='$CPP $CPPFLAGS' 22269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22271ac_compiler_gnu=$ac_cv_c_compiler_gnu 22272 22273fi 22274echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 22275echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 22276 if test "$ac_cv_func_isinf_in_cmath" = "yes" 22277 then 22278 22279cat >>confdefs.h <<\_ACEOF 22280#define HAVE_ISINF_IN_CMATH 1 22281_ACEOF 22282 22283 fi 22284echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 22285echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 22286if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 22287 echo $ECHO_N "(cached) $ECHO_C" >&6 22288else 22289 ac_ext=cc 22290ac_cpp='$CXXCPP $CPPFLAGS' 22291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22294 22295 cat >conftest.$ac_ext <<_ACEOF 22296/* confdefs.h. */ 22297_ACEOF 22298cat confdefs.h >>conftest.$ac_ext 22299cat >>conftest.$ac_ext <<_ACEOF 22300/* end confdefs.h. */ 22301#include <cmath> 22302 using std::isinf; int foo(float f) {return isinf(f);} 22303_ACEOF 22304rm -f conftest.$ac_objext 22305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22306 (eval $ac_compile) 2>conftest.er1 22307 ac_status=$? 22308 grep -v '^ *+' conftest.er1 >conftest.err 22309 rm -f conftest.er1 22310 cat conftest.err >&5 22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22312 (exit $ac_status); } && 22313 { ac_try='test -z "$ac_cxx_werror_flag" 22314 || test ! -s conftest.err' 22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22316 (eval $ac_try) 2>&5 22317 ac_status=$? 22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22319 (exit $ac_status); }; } && 22320 { ac_try='test -s conftest.$ac_objext' 22321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22322 (eval $ac_try) 2>&5 22323 ac_status=$? 22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22325 (exit $ac_status); }; }; then 22326 ac_cv_func_std_isinf_in_cmath=yes 22327else 22328 echo "$as_me: failed program was:" >&5 22329sed 's/^/| /' conftest.$ac_ext >&5 22330 22331ac_cv_func_std_isinf_in_cmath=no 22332fi 22333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22334 ac_ext=c 22335ac_cpp='$CPP $CPPFLAGS' 22336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22338ac_compiler_gnu=$ac_cv_c_compiler_gnu 22339 22340fi 22341echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 22342echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 22343 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" 22344 then 22345 22346cat >>confdefs.h <<\_ACEOF 22347#define HAVE_STD_ISINF_IN_CMATH 1 22348_ACEOF 22349 22350 fi 22351echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 22352echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 22353if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 22354 echo $ECHO_N "(cached) $ECHO_C" >&6 22355else 22356 ac_ext=cc 22357ac_cpp='$CXXCPP $CPPFLAGS' 22358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22361 22362 cat >conftest.$ac_ext <<_ACEOF 22363/* confdefs.h. */ 22364_ACEOF 22365cat confdefs.h >>conftest.$ac_ext 22366cat >>conftest.$ac_ext <<_ACEOF 22367/* end confdefs.h. */ 22368#include <ieeefp.h> 22369 int foo(float f) {return finite(f);} 22370_ACEOF 22371rm -f conftest.$ac_objext 22372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22373 (eval $ac_compile) 2>conftest.er1 22374 ac_status=$? 22375 grep -v '^ *+' conftest.er1 >conftest.err 22376 rm -f conftest.er1 22377 cat conftest.err >&5 22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22379 (exit $ac_status); } && 22380 { ac_try='test -z "$ac_cxx_werror_flag" 22381 || test ! -s conftest.err' 22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22383 (eval $ac_try) 2>&5 22384 ac_status=$? 22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22386 (exit $ac_status); }; } && 22387 { ac_try='test -s conftest.$ac_objext' 22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22389 (eval $ac_try) 2>&5 22390 ac_status=$? 22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22392 (exit $ac_status); }; }; then 22393 ac_cv_func_finite_in_ieeefp_h=yes 22394else 22395 echo "$as_me: failed program was:" >&5 22396sed 's/^/| /' conftest.$ac_ext >&5 22397 22398ac_cv_func_finite_in_ieeefp_h=no 22399fi 22400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22401 ac_ext=c 22402ac_cpp='$CPP $CPPFLAGS' 22403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22405ac_compiler_gnu=$ac_cv_c_compiler_gnu 22406 22407fi 22408echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 22409echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 22410 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" 22411 then 22412 22413cat >>confdefs.h <<\_ACEOF 22414#define HAVE_FINITE_IN_IEEEFP_H 1 22415_ACEOF 22416 22417 fi 22418 22419 22420# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 22421# for constant arguments. Useless! 22422echo "$as_me:$LINENO: checking for working alloca.h" >&5 22423echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 22424if test "${ac_cv_working_alloca_h+set}" = set; then 22425 echo $ECHO_N "(cached) $ECHO_C" >&6 22426else 22427 cat >conftest.$ac_ext <<_ACEOF 22428/* confdefs.h. */ 22429_ACEOF 22430cat confdefs.h >>conftest.$ac_ext 22431cat >>conftest.$ac_ext <<_ACEOF 22432/* end confdefs.h. */ 22433#include <alloca.h> 22434int 22435main () 22436{ 22437char *p = (char *) alloca (2 * sizeof (int)); 22438 ; 22439 return 0; 22440} 22441_ACEOF 22442rm -f conftest.$ac_objext conftest$ac_exeext 22443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22444 (eval $ac_link) 2>conftest.er1 22445 ac_status=$? 22446 grep -v '^ *+' conftest.er1 >conftest.err 22447 rm -f conftest.er1 22448 cat conftest.err >&5 22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22450 (exit $ac_status); } && 22451 { ac_try='test -z "$ac_c_werror_flag" 22452 || test ! -s conftest.err' 22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22454 (eval $ac_try) 2>&5 22455 ac_status=$? 22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22457 (exit $ac_status); }; } && 22458 { ac_try='test -s conftest$ac_exeext' 22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22460 (eval $ac_try) 2>&5 22461 ac_status=$? 22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22463 (exit $ac_status); }; }; then 22464 ac_cv_working_alloca_h=yes 22465else 22466 echo "$as_me: failed program was:" >&5 22467sed 's/^/| /' conftest.$ac_ext >&5 22468 22469ac_cv_working_alloca_h=no 22470fi 22471rm -f conftest.err conftest.$ac_objext \ 22472 conftest$ac_exeext conftest.$ac_ext 22473fi 22474echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 22475echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 22476if test $ac_cv_working_alloca_h = yes; then 22477 22478cat >>confdefs.h <<\_ACEOF 22479#define HAVE_ALLOCA_H 1 22480_ACEOF 22481 22482fi 22483 22484echo "$as_me:$LINENO: checking for alloca" >&5 22485echo $ECHO_N "checking for alloca... $ECHO_C" >&6 22486if test "${ac_cv_func_alloca_works+set}" = set; then 22487 echo $ECHO_N "(cached) $ECHO_C" >&6 22488else 22489 cat >conftest.$ac_ext <<_ACEOF 22490/* confdefs.h. */ 22491_ACEOF 22492cat confdefs.h >>conftest.$ac_ext 22493cat >>conftest.$ac_ext <<_ACEOF 22494/* end confdefs.h. */ 22495#ifdef __GNUC__ 22496# define alloca __builtin_alloca 22497#else 22498# ifdef _MSC_VER 22499# include <malloc.h> 22500# define alloca _alloca 22501# else 22502# if HAVE_ALLOCA_H 22503# include <alloca.h> 22504# else 22505# ifdef _AIX 22506 #pragma alloca 22507# else 22508# ifndef alloca /* predefined by HP cc +Olibcalls */ 22509char *alloca (); 22510# endif 22511# endif 22512# endif 22513# endif 22514#endif 22515 22516int 22517main () 22518{ 22519char *p = (char *) alloca (1); 22520 ; 22521 return 0; 22522} 22523_ACEOF 22524rm -f conftest.$ac_objext conftest$ac_exeext 22525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22526 (eval $ac_link) 2>conftest.er1 22527 ac_status=$? 22528 grep -v '^ *+' conftest.er1 >conftest.err 22529 rm -f conftest.er1 22530 cat conftest.err >&5 22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22532 (exit $ac_status); } && 22533 { ac_try='test -z "$ac_c_werror_flag" 22534 || test ! -s conftest.err' 22535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22536 (eval $ac_try) 2>&5 22537 ac_status=$? 22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22539 (exit $ac_status); }; } && 22540 { ac_try='test -s conftest$ac_exeext' 22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22542 (eval $ac_try) 2>&5 22543 ac_status=$? 22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22545 (exit $ac_status); }; }; then 22546 ac_cv_func_alloca_works=yes 22547else 22548 echo "$as_me: failed program was:" >&5 22549sed 's/^/| /' conftest.$ac_ext >&5 22550 22551ac_cv_func_alloca_works=no 22552fi 22553rm -f conftest.err conftest.$ac_objext \ 22554 conftest$ac_exeext conftest.$ac_ext 22555fi 22556echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 22557echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 22558 22559if test $ac_cv_func_alloca_works = yes; then 22560 22561cat >>confdefs.h <<\_ACEOF 22562#define HAVE_ALLOCA 1 22563_ACEOF 22564 22565else 22566 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 22567# that cause trouble. Some versions do not even contain alloca or 22568# contain a buggy version. If you still want to use their alloca, 22569# use ar to extract alloca.o from them instead of compiling alloca.c. 22570 22571ALLOCA=alloca.$ac_objext 22572 22573cat >>confdefs.h <<\_ACEOF 22574#define C_ALLOCA 1 22575_ACEOF 22576 22577 22578echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 22579echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 22580if test "${ac_cv_os_cray+set}" = set; then 22581 echo $ECHO_N "(cached) $ECHO_C" >&6 22582else 22583 cat >conftest.$ac_ext <<_ACEOF 22584/* confdefs.h. */ 22585_ACEOF 22586cat confdefs.h >>conftest.$ac_ext 22587cat >>conftest.$ac_ext <<_ACEOF 22588/* end confdefs.h. */ 22589#if defined(CRAY) && ! defined(CRAY2) 22590webecray 22591#else 22592wenotbecray 22593#endif 22594 22595_ACEOF 22596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22597 $EGREP "webecray" >/dev/null 2>&1; then 22598 ac_cv_os_cray=yes 22599else 22600 ac_cv_os_cray=no 22601fi 22602rm -f conftest* 22603 22604fi 22605echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 22606echo "${ECHO_T}$ac_cv_os_cray" >&6 22607if test $ac_cv_os_cray = yes; then 22608 for ac_func in _getb67 GETB67 getb67; do 22609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22610echo "$as_me:$LINENO: checking for $ac_func" >&5 22611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22612if eval "test \"\${$as_ac_var+set}\" = set"; then 22613 echo $ECHO_N "(cached) $ECHO_C" >&6 22614else 22615 cat >conftest.$ac_ext <<_ACEOF 22616/* confdefs.h. */ 22617_ACEOF 22618cat confdefs.h >>conftest.$ac_ext 22619cat >>conftest.$ac_ext <<_ACEOF 22620/* end confdefs.h. */ 22621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22622 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22623#define $ac_func innocuous_$ac_func 22624 22625/* System header to define __stub macros and hopefully few prototypes, 22626 which can conflict with char $ac_func (); below. 22627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22628 <limits.h> exists even on freestanding compilers. */ 22629 22630#ifdef __STDC__ 22631# include <limits.h> 22632#else 22633# include <assert.h> 22634#endif 22635 22636#undef $ac_func 22637 22638/* Override any gcc2 internal prototype to avoid an error. */ 22639#ifdef __cplusplus 22640extern "C" 22641{ 22642#endif 22643/* We use char because int might match the return type of a gcc2 22644 builtin and then its argument prototype would still apply. */ 22645char $ac_func (); 22646/* The GNU C library defines this for functions which it implements 22647 to always fail with ENOSYS. Some functions are actually named 22648 something starting with __ and the normal name is an alias. */ 22649#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22650choke me 22651#else 22652char (*f) () = $ac_func; 22653#endif 22654#ifdef __cplusplus 22655} 22656#endif 22657 22658int 22659main () 22660{ 22661return f != $ac_func; 22662 ; 22663 return 0; 22664} 22665_ACEOF 22666rm -f conftest.$ac_objext conftest$ac_exeext 22667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22668 (eval $ac_link) 2>conftest.er1 22669 ac_status=$? 22670 grep -v '^ *+' conftest.er1 >conftest.err 22671 rm -f conftest.er1 22672 cat conftest.err >&5 22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22674 (exit $ac_status); } && 22675 { ac_try='test -z "$ac_c_werror_flag" 22676 || test ! -s conftest.err' 22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22678 (eval $ac_try) 2>&5 22679 ac_status=$? 22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22681 (exit $ac_status); }; } && 22682 { ac_try='test -s conftest$ac_exeext' 22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22684 (eval $ac_try) 2>&5 22685 ac_status=$? 22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22687 (exit $ac_status); }; }; then 22688 eval "$as_ac_var=yes" 22689else 22690 echo "$as_me: failed program was:" >&5 22691sed 's/^/| /' conftest.$ac_ext >&5 22692 22693eval "$as_ac_var=no" 22694fi 22695rm -f conftest.err conftest.$ac_objext \ 22696 conftest$ac_exeext conftest.$ac_ext 22697fi 22698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22699echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22700if test `eval echo '${'$as_ac_var'}'` = yes; then 22701 22702cat >>confdefs.h <<_ACEOF 22703#define CRAY_STACKSEG_END $ac_func 22704_ACEOF 22705 22706 break 22707fi 22708 22709 done 22710fi 22711 22712echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 22713echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 22714if test "${ac_cv_c_stack_direction+set}" = set; then 22715 echo $ECHO_N "(cached) $ECHO_C" >&6 22716else 22717 if test "$cross_compiling" = yes; then 22718 ac_cv_c_stack_direction=0 22719else 22720 cat >conftest.$ac_ext <<_ACEOF 22721/* confdefs.h. */ 22722_ACEOF 22723cat confdefs.h >>conftest.$ac_ext 22724cat >>conftest.$ac_ext <<_ACEOF 22725/* end confdefs.h. */ 22726int 22727find_stack_direction () 22728{ 22729 static char *addr = 0; 22730 auto char dummy; 22731 if (addr == 0) 22732 { 22733 addr = &dummy; 22734 return find_stack_direction (); 22735 } 22736 else 22737 return (&dummy > addr) ? 1 : -1; 22738} 22739 22740int 22741main () 22742{ 22743 exit (find_stack_direction () < 0); 22744} 22745_ACEOF 22746rm -f conftest$ac_exeext 22747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22748 (eval $ac_link) 2>&5 22749 ac_status=$? 22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22753 (eval $ac_try) 2>&5 22754 ac_status=$? 22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22756 (exit $ac_status); }; }; then 22757 ac_cv_c_stack_direction=1 22758else 22759 echo "$as_me: program exited with status $ac_status" >&5 22760echo "$as_me: failed program was:" >&5 22761sed 's/^/| /' conftest.$ac_ext >&5 22762 22763( exit $ac_status ) 22764ac_cv_c_stack_direction=-1 22765fi 22766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22767fi 22768fi 22769echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 22770echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 22771 22772cat >>confdefs.h <<_ACEOF 22773#define STACK_DIRECTION $ac_cv_c_stack_direction 22774_ACEOF 22775 22776 22777fi 22778 22779 22780 22781for ac_header in stdlib.h unistd.h 22782do 22783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22784if eval "test \"\${$as_ac_Header+set}\" = set"; then 22785 echo "$as_me:$LINENO: checking for $ac_header" >&5 22786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22787if eval "test \"\${$as_ac_Header+set}\" = set"; then 22788 echo $ECHO_N "(cached) $ECHO_C" >&6 22789fi 22790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22792else 22793 # Is the header compilable? 22794echo "$as_me:$LINENO: checking $ac_header usability" >&5 22795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 22796cat >conftest.$ac_ext <<_ACEOF 22797/* confdefs.h. */ 22798_ACEOF 22799cat confdefs.h >>conftest.$ac_ext 22800cat >>conftest.$ac_ext <<_ACEOF 22801/* end confdefs.h. */ 22802$ac_includes_default 22803#include <$ac_header> 22804_ACEOF 22805rm -f conftest.$ac_objext 22806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22807 (eval $ac_compile) 2>conftest.er1 22808 ac_status=$? 22809 grep -v '^ *+' conftest.er1 >conftest.err 22810 rm -f conftest.er1 22811 cat conftest.err >&5 22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22813 (exit $ac_status); } && 22814 { ac_try='test -z "$ac_c_werror_flag" 22815 || test ! -s conftest.err' 22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22817 (eval $ac_try) 2>&5 22818 ac_status=$? 22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22820 (exit $ac_status); }; } && 22821 { ac_try='test -s conftest.$ac_objext' 22822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22823 (eval $ac_try) 2>&5 22824 ac_status=$? 22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22826 (exit $ac_status); }; }; then 22827 ac_header_compiler=yes 22828else 22829 echo "$as_me: failed program was:" >&5 22830sed 's/^/| /' conftest.$ac_ext >&5 22831 22832ac_header_compiler=no 22833fi 22834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22836echo "${ECHO_T}$ac_header_compiler" >&6 22837 22838# Is the header present? 22839echo "$as_me:$LINENO: checking $ac_header presence" >&5 22840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 22841cat >conftest.$ac_ext <<_ACEOF 22842/* confdefs.h. */ 22843_ACEOF 22844cat confdefs.h >>conftest.$ac_ext 22845cat >>conftest.$ac_ext <<_ACEOF 22846/* end confdefs.h. */ 22847#include <$ac_header> 22848_ACEOF 22849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22851 ac_status=$? 22852 grep -v '^ *+' conftest.er1 >conftest.err 22853 rm -f conftest.er1 22854 cat conftest.err >&5 22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22856 (exit $ac_status); } >/dev/null; then 22857 if test -s conftest.err; then 22858 ac_cpp_err=$ac_c_preproc_warn_flag 22859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22860 else 22861 ac_cpp_err= 22862 fi 22863else 22864 ac_cpp_err=yes 22865fi 22866if test -z "$ac_cpp_err"; then 22867 ac_header_preproc=yes 22868else 22869 echo "$as_me: failed program was:" >&5 22870sed 's/^/| /' conftest.$ac_ext >&5 22871 22872 ac_header_preproc=no 22873fi 22874rm -f conftest.err conftest.$ac_ext 22875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22876echo "${ECHO_T}$ac_header_preproc" >&6 22877 22878# So? What about this header? 22879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22880 yes:no: ) 22881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22885 ac_header_preproc=yes 22886 ;; 22887 no:yes:* ) 22888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22900 ( 22901 cat <<\_ASBOX 22902## ----------------------------------- ## 22903## Report this to llvmbugs@cs.uiuc.edu ## 22904## ----------------------------------- ## 22905_ASBOX 22906 ) | 22907 sed "s/^/$as_me: WARNING: /" >&2 22908 ;; 22909esac 22910echo "$as_me:$LINENO: checking for $ac_header" >&5 22911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22912if eval "test \"\${$as_ac_Header+set}\" = set"; then 22913 echo $ECHO_N "(cached) $ECHO_C" >&6 22914else 22915 eval "$as_ac_Header=\$ac_header_preproc" 22916fi 22917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22919 22920fi 22921if test `eval echo '${'$as_ac_Header'}'` = yes; then 22922 cat >>confdefs.h <<_ACEOF 22923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22924_ACEOF 22925 22926fi 22927 22928done 22929 22930 22931for ac_func in getpagesize 22932do 22933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22934echo "$as_me:$LINENO: checking for $ac_func" >&5 22935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22936if eval "test \"\${$as_ac_var+set}\" = set"; then 22937 echo $ECHO_N "(cached) $ECHO_C" >&6 22938else 22939 cat >conftest.$ac_ext <<_ACEOF 22940/* confdefs.h. */ 22941_ACEOF 22942cat confdefs.h >>conftest.$ac_ext 22943cat >>conftest.$ac_ext <<_ACEOF 22944/* end confdefs.h. */ 22945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22946 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22947#define $ac_func innocuous_$ac_func 22948 22949/* System header to define __stub macros and hopefully few prototypes, 22950 which can conflict with char $ac_func (); below. 22951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22952 <limits.h> exists even on freestanding compilers. */ 22953 22954#ifdef __STDC__ 22955# include <limits.h> 22956#else 22957# include <assert.h> 22958#endif 22959 22960#undef $ac_func 22961 22962/* Override any gcc2 internal prototype to avoid an error. */ 22963#ifdef __cplusplus 22964extern "C" 22965{ 22966#endif 22967/* We use char because int might match the return type of a gcc2 22968 builtin and then its argument prototype would still apply. */ 22969char $ac_func (); 22970/* The GNU C library defines this for functions which it implements 22971 to always fail with ENOSYS. Some functions are actually named 22972 something starting with __ and the normal name is an alias. */ 22973#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22974choke me 22975#else 22976char (*f) () = $ac_func; 22977#endif 22978#ifdef __cplusplus 22979} 22980#endif 22981 22982int 22983main () 22984{ 22985return f != $ac_func; 22986 ; 22987 return 0; 22988} 22989_ACEOF 22990rm -f conftest.$ac_objext conftest$ac_exeext 22991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22992 (eval $ac_link) 2>conftest.er1 22993 ac_status=$? 22994 grep -v '^ *+' conftest.er1 >conftest.err 22995 rm -f conftest.er1 22996 cat conftest.err >&5 22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22998 (exit $ac_status); } && 22999 { ac_try='test -z "$ac_c_werror_flag" 23000 || test ! -s conftest.err' 23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23002 (eval $ac_try) 2>&5 23003 ac_status=$? 23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23005 (exit $ac_status); }; } && 23006 { ac_try='test -s conftest$ac_exeext' 23007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23008 (eval $ac_try) 2>&5 23009 ac_status=$? 23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23011 (exit $ac_status); }; }; then 23012 eval "$as_ac_var=yes" 23013else 23014 echo "$as_me: failed program was:" >&5 23015sed 's/^/| /' conftest.$ac_ext >&5 23016 23017eval "$as_ac_var=no" 23018fi 23019rm -f conftest.err conftest.$ac_objext \ 23020 conftest$ac_exeext conftest.$ac_ext 23021fi 23022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23024if test `eval echo '${'$as_ac_var'}'` = yes; then 23025 cat >>confdefs.h <<_ACEOF 23026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23027_ACEOF 23028 23029fi 23030done 23031 23032echo "$as_me:$LINENO: checking for working mmap" >&5 23033echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 23034if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 23035 echo $ECHO_N "(cached) $ECHO_C" >&6 23036else 23037 if test "$cross_compiling" = yes; then 23038 ac_cv_func_mmap_fixed_mapped=no 23039else 23040 cat >conftest.$ac_ext <<_ACEOF 23041/* confdefs.h. */ 23042_ACEOF 23043cat confdefs.h >>conftest.$ac_ext 23044cat >>conftest.$ac_ext <<_ACEOF 23045/* end confdefs.h. */ 23046$ac_includes_default 23047/* malloc might have been renamed as rpl_malloc. */ 23048#undef malloc 23049 23050/* Thanks to Mike Haertel and Jim Avera for this test. 23051 Here is a matrix of mmap possibilities: 23052 mmap private not fixed 23053 mmap private fixed at somewhere currently unmapped 23054 mmap private fixed at somewhere already mapped 23055 mmap shared not fixed 23056 mmap shared fixed at somewhere currently unmapped 23057 mmap shared fixed at somewhere already mapped 23058 For private mappings, we should verify that changes cannot be read() 23059 back from the file, nor mmap's back from the file at a different 23060 address. (There have been systems where private was not correctly 23061 implemented like the infamous i386 svr4.0, and systems where the 23062 VM page cache was not coherent with the file system buffer cache 23063 like early versions of FreeBSD and possibly contemporary NetBSD.) 23064 For shared mappings, we should conversely verify that changes get 23065 propagated back to all the places they're supposed to be. 23066 23067 Grep wants private fixed already mapped. 23068 The main things grep needs to know about mmap are: 23069 * does it exist and is it safe to write into the mmap'd area 23070 * how to use it (BSD variants) */ 23071 23072#include <fcntl.h> 23073#include <sys/mman.h> 23074 23075#if !STDC_HEADERS && !HAVE_STDLIB_H 23076char *malloc (); 23077#endif 23078 23079/* This mess was copied from the GNU getpagesize.h. */ 23080#if !HAVE_GETPAGESIZE 23081/* Assume that all systems that can run configure have sys/param.h. */ 23082# if !HAVE_SYS_PARAM_H 23083# define HAVE_SYS_PARAM_H 1 23084# endif 23085 23086# ifdef _SC_PAGESIZE 23087# define getpagesize() sysconf(_SC_PAGESIZE) 23088# else /* no _SC_PAGESIZE */ 23089# if HAVE_SYS_PARAM_H 23090# include <sys/param.h> 23091# ifdef EXEC_PAGESIZE 23092# define getpagesize() EXEC_PAGESIZE 23093# else /* no EXEC_PAGESIZE */ 23094# ifdef NBPG 23095# define getpagesize() NBPG * CLSIZE 23096# ifndef CLSIZE 23097# define CLSIZE 1 23098# endif /* no CLSIZE */ 23099# else /* no NBPG */ 23100# ifdef NBPC 23101# define getpagesize() NBPC 23102# else /* no NBPC */ 23103# ifdef PAGESIZE 23104# define getpagesize() PAGESIZE 23105# endif /* PAGESIZE */ 23106# endif /* no NBPC */ 23107# endif /* no NBPG */ 23108# endif /* no EXEC_PAGESIZE */ 23109# else /* no HAVE_SYS_PARAM_H */ 23110# define getpagesize() 8192 /* punt totally */ 23111# endif /* no HAVE_SYS_PARAM_H */ 23112# endif /* no _SC_PAGESIZE */ 23113 23114#endif /* no HAVE_GETPAGESIZE */ 23115 23116int 23117main () 23118{ 23119 char *data, *data2, *data3; 23120 int i, pagesize; 23121 int fd; 23122 23123 pagesize = getpagesize (); 23124 23125 /* First, make a file with some known garbage in it. */ 23126 data = (char *) malloc (pagesize); 23127 if (!data) 23128 exit (1); 23129 for (i = 0; i < pagesize; ++i) 23130 *(data + i) = rand (); 23131 umask (0); 23132 fd = creat ("conftest.mmap", 0600); 23133 if (fd < 0) 23134 exit (1); 23135 if (write (fd, data, pagesize) != pagesize) 23136 exit (1); 23137 close (fd); 23138 23139 /* Next, try to mmap the file at a fixed address which already has 23140 something else allocated at it. If we can, also make sure that 23141 we see the same garbage. */ 23142 fd = open ("conftest.mmap", O_RDWR); 23143 if (fd < 0) 23144 exit (1); 23145 data2 = (char *) malloc (2 * pagesize); 23146 if (!data2) 23147 exit (1); 23148 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 23149 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 23150 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 23151 exit (1); 23152 for (i = 0; i < pagesize; ++i) 23153 if (*(data + i) != *(data2 + i)) 23154 exit (1); 23155 23156 /* Finally, make sure that changes to the mapped area do not 23157 percolate back to the file as seen by read(). (This is a bug on 23158 some variants of i386 svr4.0.) */ 23159 for (i = 0; i < pagesize; ++i) 23160 *(data2 + i) = *(data2 + i) + 1; 23161 data3 = (char *) malloc (pagesize); 23162 if (!data3) 23163 exit (1); 23164 if (read (fd, data3, pagesize) != pagesize) 23165 exit (1); 23166 for (i = 0; i < pagesize; ++i) 23167 if (*(data + i) != *(data3 + i)) 23168 exit (1); 23169 close (fd); 23170 exit (0); 23171} 23172_ACEOF 23173rm -f conftest$ac_exeext 23174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23175 (eval $ac_link) 2>&5 23176 ac_status=$? 23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23180 (eval $ac_try) 2>&5 23181 ac_status=$? 23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23183 (exit $ac_status); }; }; then 23184 ac_cv_func_mmap_fixed_mapped=yes 23185else 23186 echo "$as_me: program exited with status $ac_status" >&5 23187echo "$as_me: failed program was:" >&5 23188sed 's/^/| /' conftest.$ac_ext >&5 23189 23190( exit $ac_status ) 23191ac_cv_func_mmap_fixed_mapped=no 23192fi 23193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23194fi 23195fi 23196echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 23197echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 23198if test $ac_cv_func_mmap_fixed_mapped = yes; then 23199 23200cat >>confdefs.h <<\_ACEOF 23201#define HAVE_MMAP 1 23202_ACEOF 23203 23204fi 23205rm -f conftest.mmap 23206 23207if test "$ac_cv_func_mmap_fixed_mapped" = "no" 23208then 23209 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 23210echo "$as_me: WARNING: mmap() required but not found" >&2;} 23211fi 23212echo "$as_me:$LINENO: checking for mmap of files" >&5 23213echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 23214if test "${ac_cv_func_mmap_file+set}" = set; then 23215 echo $ECHO_N "(cached) $ECHO_C" >&6 23216else 23217 ac_ext=c 23218ac_cpp='$CPP $CPPFLAGS' 23219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23221ac_compiler_gnu=$ac_cv_c_compiler_gnu 23222 23223 if test "$cross_compiling" = yes; then 23224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 23225See \`config.log' for more details." >&5 23226echo "$as_me: error: cannot run test program while cross compiling 23227See \`config.log' for more details." >&2;} 23228 { (exit 1); exit 1; }; } 23229else 23230 cat >conftest.$ac_ext <<_ACEOF 23231 23232 /* confdefs.h. */ 23233_ACEOF 23234cat confdefs.h >>conftest.$ac_ext 23235cat >>conftest.$ac_ext <<_ACEOF 23236/* end confdefs.h. */ 23237 23238#include <sys/types.h> 23239#include <sys/mman.h> 23240#include <fcntl.h> 23241 23242int 23243main () 23244{ 23245 23246 int fd; 23247 int main () { 23248 fd = creat ("foo",0777); 23249 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 23250 unlink ("foo"); 23251 return (fd != (int) MAP_FAILED);} 23252 ; 23253 return 0; 23254} 23255_ACEOF 23256rm -f conftest$ac_exeext 23257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23258 (eval $ac_link) 2>&5 23259 ac_status=$? 23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23263 (eval $ac_try) 2>&5 23264 ac_status=$? 23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23266 (exit $ac_status); }; }; then 23267 ac_cv_func_mmap_file=yes 23268else 23269 echo "$as_me: program exited with status $ac_status" >&5 23270echo "$as_me: failed program was:" >&5 23271sed 's/^/| /' conftest.$ac_ext >&5 23272 23273( exit $ac_status ) 23274ac_cv_func_mmap_file=no 23275fi 23276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23277fi 23278 ac_ext=c 23279ac_cpp='$CPP $CPPFLAGS' 23280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23282ac_compiler_gnu=$ac_cv_c_compiler_gnu 23283 23284 23285fi 23286echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 23287echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 23288if test "$ac_cv_func_mmap_file" = yes; then 23289 23290cat >>confdefs.h <<\_ACEOF 23291#define HAVE_MMAP_FILE 23292_ACEOF 23293 23294 MMAP_FILE=yes 23295 23296fi 23297 23298if test "$ac_cv_func_mmap_file" = "no" 23299then 23300 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 23301echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 23302fi 23303echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 23304echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 23305if test "${ac_cv_header_mmap_anon+set}" = set; then 23306 echo $ECHO_N "(cached) $ECHO_C" >&6 23307else 23308 ac_ext=c 23309ac_cpp='$CPP $CPPFLAGS' 23310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23312ac_compiler_gnu=$ac_cv_c_compiler_gnu 23313 23314 cat >conftest.$ac_ext <<_ACEOF 23315/* confdefs.h. */ 23316_ACEOF 23317cat confdefs.h >>conftest.$ac_ext 23318cat >>conftest.$ac_ext <<_ACEOF 23319/* end confdefs.h. */ 23320#include <sys/mman.h> 23321#include <unistd.h> 23322#include <fcntl.h> 23323int 23324main () 23325{ 23326mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 23327 ; 23328 return 0; 23329} 23330_ACEOF 23331rm -f conftest.$ac_objext 23332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23333 (eval $ac_compile) 2>conftest.er1 23334 ac_status=$? 23335 grep -v '^ *+' conftest.er1 >conftest.err 23336 rm -f conftest.er1 23337 cat conftest.err >&5 23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23339 (exit $ac_status); } && 23340 { ac_try='test -z "$ac_c_werror_flag" 23341 || test ! -s conftest.err' 23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23343 (eval $ac_try) 2>&5 23344 ac_status=$? 23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23346 (exit $ac_status); }; } && 23347 { ac_try='test -s conftest.$ac_objext' 23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23349 (eval $ac_try) 2>&5 23350 ac_status=$? 23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23352 (exit $ac_status); }; }; then 23353 ac_cv_header_mmap_anon=yes 23354else 23355 echo "$as_me: failed program was:" >&5 23356sed 's/^/| /' conftest.$ac_ext >&5 23357 23358ac_cv_header_mmap_anon=no 23359fi 23360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23361 ac_ext=c 23362ac_cpp='$CPP $CPPFLAGS' 23363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23365ac_compiler_gnu=$ac_cv_c_compiler_gnu 23366 23367 23368fi 23369echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 23370echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 23371if test "$ac_cv_header_mmap_anon" = yes; then 23372 23373cat >>confdefs.h <<\_ACEOF 23374#define HAVE_MMAP_ANONYMOUS 23375_ACEOF 23376 23377fi 23378 23379echo "$as_me:$LINENO: checking return type of signal handlers" >&5 23380echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 23381if test "${ac_cv_type_signal+set}" = set; then 23382 echo $ECHO_N "(cached) $ECHO_C" >&6 23383else 23384 cat >conftest.$ac_ext <<_ACEOF 23385/* confdefs.h. */ 23386_ACEOF 23387cat confdefs.h >>conftest.$ac_ext 23388cat >>conftest.$ac_ext <<_ACEOF 23389/* end confdefs.h. */ 23390#include <sys/types.h> 23391#include <signal.h> 23392#ifdef signal 23393# undef signal 23394#endif 23395#ifdef __cplusplus 23396extern "C" void (*signal (int, void (*)(int)))(int); 23397#else 23398void (*signal ()) (); 23399#endif 23400 23401int 23402main () 23403{ 23404int i; 23405 ; 23406 return 0; 23407} 23408_ACEOF 23409rm -f conftest.$ac_objext 23410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23411 (eval $ac_compile) 2>conftest.er1 23412 ac_status=$? 23413 grep -v '^ *+' conftest.er1 >conftest.err 23414 rm -f conftest.er1 23415 cat conftest.err >&5 23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23417 (exit $ac_status); } && 23418 { ac_try='test -z "$ac_c_werror_flag" 23419 || test ! -s conftest.err' 23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23421 (eval $ac_try) 2>&5 23422 ac_status=$? 23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23424 (exit $ac_status); }; } && 23425 { ac_try='test -s conftest.$ac_objext' 23426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23427 (eval $ac_try) 2>&5 23428 ac_status=$? 23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23430 (exit $ac_status); }; }; then 23431 ac_cv_type_signal=void 23432else 23433 echo "$as_me: failed program was:" >&5 23434sed 's/^/| /' conftest.$ac_ext >&5 23435 23436ac_cv_type_signal=int 23437fi 23438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23439fi 23440echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 23441echo "${ECHO_T}$ac_cv_type_signal" >&6 23442 23443cat >>confdefs.h <<_ACEOF 23444#define RETSIGTYPE $ac_cv_type_signal 23445_ACEOF 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage 23458do 23459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23460echo "$as_me:$LINENO: checking for $ac_func" >&5 23461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23462if eval "test \"\${$as_ac_var+set}\" = set"; then 23463 echo $ECHO_N "(cached) $ECHO_C" >&6 23464else 23465 cat >conftest.$ac_ext <<_ACEOF 23466/* confdefs.h. */ 23467_ACEOF 23468cat confdefs.h >>conftest.$ac_ext 23469cat >>conftest.$ac_ext <<_ACEOF 23470/* end confdefs.h. */ 23471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23472 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23473#define $ac_func innocuous_$ac_func 23474 23475/* System header to define __stub macros and hopefully few prototypes, 23476 which can conflict with char $ac_func (); below. 23477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23478 <limits.h> exists even on freestanding compilers. */ 23479 23480#ifdef __STDC__ 23481# include <limits.h> 23482#else 23483# include <assert.h> 23484#endif 23485 23486#undef $ac_func 23487 23488/* Override any gcc2 internal prototype to avoid an error. */ 23489#ifdef __cplusplus 23490extern "C" 23491{ 23492#endif 23493/* We use char because int might match the return type of a gcc2 23494 builtin and then its argument prototype would still apply. */ 23495char $ac_func (); 23496/* The GNU C library defines this for functions which it implements 23497 to always fail with ENOSYS. Some functions are actually named 23498 something starting with __ and the normal name is an alias. */ 23499#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23500choke me 23501#else 23502char (*f) () = $ac_func; 23503#endif 23504#ifdef __cplusplus 23505} 23506#endif 23507 23508int 23509main () 23510{ 23511return f != $ac_func; 23512 ; 23513 return 0; 23514} 23515_ACEOF 23516rm -f conftest.$ac_objext conftest$ac_exeext 23517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23518 (eval $ac_link) 2>conftest.er1 23519 ac_status=$? 23520 grep -v '^ *+' conftest.er1 >conftest.err 23521 rm -f conftest.er1 23522 cat conftest.err >&5 23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23524 (exit $ac_status); } && 23525 { ac_try='test -z "$ac_c_werror_flag" 23526 || test ! -s conftest.err' 23527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23528 (eval $ac_try) 2>&5 23529 ac_status=$? 23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23531 (exit $ac_status); }; } && 23532 { ac_try='test -s conftest$ac_exeext' 23533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23534 (eval $ac_try) 2>&5 23535 ac_status=$? 23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23537 (exit $ac_status); }; }; then 23538 eval "$as_ac_var=yes" 23539else 23540 echo "$as_me: failed program was:" >&5 23541sed 's/^/| /' conftest.$ac_ext >&5 23542 23543eval "$as_ac_var=no" 23544fi 23545rm -f conftest.err conftest.$ac_objext \ 23546 conftest$ac_exeext conftest.$ac_ext 23547fi 23548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23550if test `eval echo '${'$as_ac_var'}'` = yes; then 23551 cat >>confdefs.h <<_ACEOF 23552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23553_ACEOF 23554 23555fi 23556done 23557 23558echo "$as_me:$LINENO: checking for mprotect" >&5 23559echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 23560if test "${ac_cv_func_mprotect+set}" = set; then 23561 echo $ECHO_N "(cached) $ECHO_C" >&6 23562else 23563 cat >conftest.$ac_ext <<_ACEOF 23564/* confdefs.h. */ 23565_ACEOF 23566cat confdefs.h >>conftest.$ac_ext 23567cat >>conftest.$ac_ext <<_ACEOF 23568/* end confdefs.h. */ 23569/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. 23570 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23571#define mprotect innocuous_mprotect 23572 23573/* System header to define __stub macros and hopefully few prototypes, 23574 which can conflict with char mprotect (); below. 23575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23576 <limits.h> exists even on freestanding compilers. */ 23577 23578#ifdef __STDC__ 23579# include <limits.h> 23580#else 23581# include <assert.h> 23582#endif 23583 23584#undef mprotect 23585 23586/* Override any gcc2 internal prototype to avoid an error. */ 23587#ifdef __cplusplus 23588extern "C" 23589{ 23590#endif 23591/* We use char because int might match the return type of a gcc2 23592 builtin and then its argument prototype would still apply. */ 23593char mprotect (); 23594/* The GNU C library defines this for functions which it implements 23595 to always fail with ENOSYS. Some functions are actually named 23596 something starting with __ and the normal name is an alias. */ 23597#if defined (__stub_mprotect) || defined (__stub___mprotect) 23598choke me 23599#else 23600char (*f) () = mprotect; 23601#endif 23602#ifdef __cplusplus 23603} 23604#endif 23605 23606int 23607main () 23608{ 23609return f != mprotect; 23610 ; 23611 return 0; 23612} 23613_ACEOF 23614rm -f conftest.$ac_objext conftest$ac_exeext 23615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23616 (eval $ac_link) 2>conftest.er1 23617 ac_status=$? 23618 grep -v '^ *+' conftest.er1 >conftest.err 23619 rm -f conftest.er1 23620 cat conftest.err >&5 23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23622 (exit $ac_status); } && 23623 { ac_try='test -z "$ac_c_werror_flag" 23624 || test ! -s conftest.err' 23625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23626 (eval $ac_try) 2>&5 23627 ac_status=$? 23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23629 (exit $ac_status); }; } && 23630 { ac_try='test -s conftest$ac_exeext' 23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23632 (eval $ac_try) 2>&5 23633 ac_status=$? 23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23635 (exit $ac_status); }; }; then 23636 ac_cv_func_mprotect=yes 23637else 23638 echo "$as_me: failed program was:" >&5 23639sed 's/^/| /' conftest.$ac_ext >&5 23640 23641ac_cv_func_mprotect=no 23642fi 23643rm -f conftest.err conftest.$ac_objext \ 23644 conftest$ac_exeext conftest.$ac_ext 23645fi 23646echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 23647echo "${ECHO_T}$ac_cv_func_mprotect" >&6 23648if test $ac_cv_func_mprotect = yes; then 23649 : 23650else 23651 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 23652echo "$as_me: error: Function mprotect() required but not found" >&2;} 23653 { (exit 1); exit 1; }; } 23654fi 23655 23656 23657 23658 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 23659echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 23660 ac_ext=c 23661ac_cpp='$CPP $CPPFLAGS' 23662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23664ac_compiler_gnu=$ac_cv_c_compiler_gnu 23665 23666 oldcflags="$CFLAGS" 23667 CFLAGS="$CFLAGS -Wl,-R." 23668 cat >conftest.$ac_ext <<_ACEOF 23669/* confdefs.h. */ 23670_ACEOF 23671cat confdefs.h >>conftest.$ac_ext 23672cat >>conftest.$ac_ext <<_ACEOF 23673/* end confdefs.h. */ 23674 23675int 23676main () 23677{ 23678int main() { return 0; } 23679 ; 23680 return 0; 23681} 23682_ACEOF 23683rm -f conftest.$ac_objext conftest$ac_exeext 23684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23685 (eval $ac_link) 2>conftest.er1 23686 ac_status=$? 23687 grep -v '^ *+' conftest.er1 >conftest.err 23688 rm -f conftest.er1 23689 cat conftest.err >&5 23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23691 (exit $ac_status); } && 23692 { ac_try='test -z "$ac_c_werror_flag" 23693 || test ! -s conftest.err' 23694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23695 (eval $ac_try) 2>&5 23696 ac_status=$? 23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23698 (exit $ac_status); }; } && 23699 { ac_try='test -s conftest$ac_exeext' 23700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23701 (eval $ac_try) 2>&5 23702 ac_status=$? 23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23704 (exit $ac_status); }; }; then 23705 ac_cv_link_use_r=yes 23706else 23707 echo "$as_me: failed program was:" >&5 23708sed 's/^/| /' conftest.$ac_ext >&5 23709 23710ac_cv_link_use_r=no 23711fi 23712rm -f conftest.err conftest.$ac_objext \ 23713 conftest$ac_exeext conftest.$ac_ext 23714 CFLAGS="$oldcflags" 23715 ac_ext=c 23716ac_cpp='$CPP $CPPFLAGS' 23717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23719ac_compiler_gnu=$ac_cv_c_compiler_gnu 23720 23721 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5 23722echo "${ECHO_T}$ac_cv_link_use_r" >&6 23723 if test "$ac_cv_link_use_r" = yes 23724 then 23725 23726cat >>confdefs.h <<\_ACEOF 23727#define HAVE_LINK_R 1 23728_ACEOF 23729 23730 fi 23731 23732 23733# Check whether --enable-optimized or --disable-optimized was given. 23734if test "${enable_optimized+set}" = set; then 23735 enableval="$enable_optimized" 23736 23737else 23738 enableval=no 23739fi; 23740if test ${enableval} = "no" 23741then 23742 ENABLE_OPTIMIZED= 23743 23744else 23745 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 23746 23747fi 23748 23749# Check whether --enable-jit or --disable-jit was given. 23750if test "${enable_jit+set}" = set; then 23751 enableval="$enable_jit" 23752 23753else 23754 enableval=default 23755fi; 23756if test ${enableval} = "no" 23757then 23758 JIT= 23759 23760else 23761 case $target in 23762 *i*86*) 23763 JIT=TARGET_HAS_JIT=1 23764 23765 ;; 23766 *sparc*) 23767 JIT=TARGET_HAS_JIT=1 23768 23769 ;; 23770 *) 23771 JIT= 23772 23773 ;; 23774 esac 23775fi 23776 23777 23778# Check whether --with-llvmgccdir or --without-llvmgccdir was given. 23779if test "${with_llvmgccdir+set}" = set; then 23780 withval="$with_llvmgccdir" 23781 LLVMGCCDIR=$withval 23782 23783fi; 23784echo "$as_me:$LINENO: checking for llvm-gcc" >&5 23785echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 23786LLVM_GCC_CHECK=no 23787if test -d "$LLVMGCCDIR" 23788then 23789 if test -x "$LLVMGCCDIR/bin/gcc" 23790 then 23791 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" 23792 fi 23793fi 23794llvmgccwarn=no 23795echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 23796echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 23797if test "$LLVM_GCC_CHECK" = "no" 23798then 23799 llvmgccwarn=yes 23800fi 23801echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 23802echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 23803LLVM_GCC_SANE=no 23804if test -x "$LLVM_GCC_CHECK" 23805then 23806 cp /dev/null conftest.c 23807 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 23808 if test $? -eq 0 23809 then 23810 LLVM_GCC_SANE=yes 23811 fi 23812 rm conftest.c 23813 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` 23814 LLVMCC1=$llvmcc1path 23815 23816 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` 23817 LLVMCC1PLUS=$llvmcc1pluspath 23818 23819fi 23820echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 23821echo "${ECHO_T}$LLVM_GCC_SANE" >&6 23822if test "$LLVM_GCC_SANE" = "no" 23823then 23824 llvmgccwarn=yes 23825fi 23826 23827echo "$as_me:$LINENO: checking for shared library suffix" >&5 23828echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 23829eval "SHLIBEXT=$shrext_cmds" 23830echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 23831echo "${ECHO_T}$SHLIBEXT" >&6 23832SHLIBEXT=$SHLIBEXT 23833 23834 23835cat >>confdefs.h <<_ACEOF 23836#define SHLIBEXT "$SHLIBEXT" 23837_ACEOF 23838 23839 23840# Translate the various configuration directories and other basic 23841# information into substitutions that will end up in config.h.in so 23842# that these configured values can be hard-wired into a program. 23843eval LLVM_PREFIX="${prefix}"; 23844eval LLVM_BINDIR="${prefix}/bin"; 23845eval LLVM_LIBDIR="${prefix}/lib"; 23846eval LLVM_DATADIR="${prefix}/data"; 23847eval LLVM_DOCSDIR="${prefix}/docs"; 23848eval LLVM_ETCDIR="${prefix}/etc"; 23849eval LLVM_INCLUDEDIR="${prefix}/include"; 23850eval LLVM_INFODIR="${prefix}/info"; 23851eval LLVM_MANDIR="${prefix}/man"; 23852LLVM_CONFIGTIME=`date` 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864cat >>confdefs.h <<_ACEOF 23865#define LLVM_PREFIX "$LLVM_PREFIX" 23866_ACEOF 23867 23868 23869cat >>confdefs.h <<_ACEOF 23870#define LLVM_BINDIR "$LLVM_BINDIR" 23871_ACEOF 23872 23873 23874cat >>confdefs.h <<_ACEOF 23875#define LLVM_LIBDIR "$LLVM_LIBDIR" 23876_ACEOF 23877 23878 23879cat >>confdefs.h <<_ACEOF 23880#define LLVM_DATADIR "$LLVM_DATADIR" 23881_ACEOF 23882 23883 23884cat >>confdefs.h <<_ACEOF 23885#define LLVM_DATADIR "$LLVM_DOCSDIR" 23886_ACEOF 23887 23888 23889cat >>confdefs.h <<_ACEOF 23890#define LLVM_ETCDIR "$LLVM_ETCDIR" 23891_ACEOF 23892 23893 23894cat >>confdefs.h <<_ACEOF 23895#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 23896_ACEOF 23897 23898 23899cat >>confdefs.h <<_ACEOF 23900#define LLVM_INFODIR "$LLVM_INFODIR" 23901_ACEOF 23902 23903 23904cat >>confdefs.h <<_ACEOF 23905#define LLVM_MANDIR "$LLVM_MANDIR" 23906_ACEOF 23907 23908 23909cat >>confdefs.h <<_ACEOF 23910#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 23911_ACEOF 23912 23913 23914cat >confcache <<\_ACEOF 23915# This file is a shell script that caches the results of configure 23916# tests run on this system so they can be shared between configure 23917# scripts and configure runs, see configure's option --config-cache. 23918# It is not useful on other systems. If it contains results you don't 23919# want to keep, you may remove or edit it. 23920# 23921# config.status only pays attention to the cache file if you give it 23922# the --recheck option to rerun configure. 23923# 23924# `ac_cv_env_foo' variables (set or unset) will be overridden when 23925# loading this file, other *unset* `ac_cv_foo' will be assigned the 23926# following values. 23927 23928_ACEOF 23929 23930# The following way of writing the cache mishandles newlines in values, 23931# but we know of no workaround that is simple, portable, and efficient. 23932# So, don't put newlines in cache variables' values. 23933# Ultrix sh set writes to stderr and can't be redirected directly, 23934# and sets the high bit in the cache file unless we assign to the vars. 23935{ 23936 (set) 2>&1 | 23937 case `(ac_space=' '; set | grep ac_space) 2>&1` in 23938 *ac_space=\ *) 23939 # `set' does not quote correctly, so add quotes (double-quote 23940 # substitution turns \\\\ into \\, and sed turns \\ into \). 23941 sed -n \ 23942 "s/'/'\\\\''/g; 23943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23944 ;; 23945 *) 23946 # `set' quotes correctly as required by POSIX, so do not add quotes. 23947 sed -n \ 23948 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 23949 ;; 23950 esac; 23951} | 23952 sed ' 23953 t clear 23954 : clear 23955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23956 t end 23957 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23958 : end' >>confcache 23959if diff $cache_file confcache >/dev/null 2>&1; then :; else 23960 if test -w $cache_file; then 23961 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 23962 cat confcache >$cache_file 23963 else 23964 echo "not updating unwritable cache $cache_file" 23965 fi 23966fi 23967rm -f confcache 23968 23969test "x$prefix" = xNONE && prefix=$ac_default_prefix 23970# Let make expand exec_prefix. 23971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23972 23973# VPATH may cause trouble with some makes, so we remove $(srcdir), 23974# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23975# trailing colons and then remove the whole line if VPATH becomes empty 23976# (actually we leave an empty line to preserve line numbers). 23977if test "x$srcdir" = x.; then 23978 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23979s/:*\$(srcdir):*/:/; 23980s/:*\${srcdir}:*/:/; 23981s/:*@srcdir@:*/:/; 23982s/^\([^=]*=[ ]*\):*/\1/; 23983s/:*$//; 23984s/^[^=]*=[ ]*$//; 23985}' 23986fi 23987 23988DEFS=-DHAVE_CONFIG_H 23989 23990ac_libobjs= 23991ac_ltlibobjs= 23992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23993 # 1. Remove the extension, and $U if already installed. 23994 ac_i=`echo "$ac_i" | 23995 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 23996 # 2. Add them. 23997 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 23998 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 23999done 24000LIBOBJS=$ac_libobjs 24001 24002LTLIBOBJS=$ac_ltlibobjs 24003 24004 24005 24006: ${CONFIG_STATUS=./config.status} 24007ac_clean_files_save=$ac_clean_files 24008ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24009{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 24010echo "$as_me: creating $CONFIG_STATUS" >&6;} 24011cat >$CONFIG_STATUS <<_ACEOF 24012#! $SHELL 24013# Generated by $as_me. 24014# Run this file to recreate the current configuration. 24015# Compiler output produced by configure, useful for debugging 24016# configure, is in config.log if it exists. 24017 24018debug=false 24019ac_cs_recheck=false 24020ac_cs_silent=false 24021SHELL=\${CONFIG_SHELL-$SHELL} 24022_ACEOF 24023 24024cat >>$CONFIG_STATUS <<\_ACEOF 24025## --------------------- ## 24026## M4sh Initialization. ## 24027## --------------------- ## 24028 24029# Be Bourne compatible 24030if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 24031 emulate sh 24032 NULLCMD=: 24033 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 24034 # is contrary to our usage. Disable this feature. 24035 alias -g '${1+"$@"}'='"$@"' 24036elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24037 set -o posix 24038fi 24039DUALCASE=1; export DUALCASE # for MKS sh 24040 24041# Support unset when possible. 24042if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 24043 as_unset=unset 24044else 24045 as_unset=false 24046fi 24047 24048 24049# Work around bugs in pre-3.0 UWIN ksh. 24050$as_unset ENV MAIL MAILPATH 24051PS1='$ ' 24052PS2='> ' 24053PS4='+ ' 24054 24055# NLS nuisances. 24056for as_var in \ 24057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 24058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 24059 LC_TELEPHONE LC_TIME 24060do 24061 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 24062 eval $as_var=C; export $as_var 24063 else 24064 $as_unset $as_var 24065 fi 24066done 24067 24068# Required to use basename. 24069if expr a : '\(a\)' >/dev/null 2>&1; then 24070 as_expr=expr 24071else 24072 as_expr=false 24073fi 24074 24075if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 24076 as_basename=basename 24077else 24078 as_basename=false 24079fi 24080 24081 24082# Name of the executable. 24083as_me=`$as_basename "$0" || 24084$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24085 X"$0" : 'X\(//\)$' \| \ 24086 X"$0" : 'X\(/\)$' \| \ 24087 . : '\(.\)' 2>/dev/null || 24088echo X/"$0" | 24089 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 24090 /^X\/\(\/\/\)$/{ s//\1/; q; } 24091 /^X\/\(\/\).*/{ s//\1/; q; } 24092 s/.*/./; q'` 24093 24094 24095# PATH needs CR, and LINENO needs CR and PATH. 24096# Avoid depending upon Character Ranges. 24097as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24099as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24100as_cr_digits='0123456789' 24101as_cr_alnum=$as_cr_Letters$as_cr_digits 24102 24103# The user is always right. 24104if test "${PATH_SEPARATOR+set}" != set; then 24105 echo "#! /bin/sh" >conf$$.sh 24106 echo "exit 0" >>conf$$.sh 24107 chmod +x conf$$.sh 24108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 24109 PATH_SEPARATOR=';' 24110 else 24111 PATH_SEPARATOR=: 24112 fi 24113 rm -f conf$$.sh 24114fi 24115 24116 24117 as_lineno_1=$LINENO 24118 as_lineno_2=$LINENO 24119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 24120 test "x$as_lineno_1" != "x$as_lineno_2" && 24121 test "x$as_lineno_3" = "x$as_lineno_2" || { 24122 # Find who we are. Look in the path if we contain no path at all 24123 # relative or not. 24124 case $0 in 24125 *[\\/]* ) as_myself=$0 ;; 24126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24127for as_dir in $PATH 24128do 24129 IFS=$as_save_IFS 24130 test -z "$as_dir" && as_dir=. 24131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24132done 24133 24134 ;; 24135 esac 24136 # We did not find ourselves, most probably we were run as `sh COMMAND' 24137 # in which case we are not to be found in the path. 24138 if test "x$as_myself" = x; then 24139 as_myself=$0 24140 fi 24141 if test ! -f "$as_myself"; then 24142 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 24143echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 24144 { (exit 1); exit 1; }; } 24145 fi 24146 case $CONFIG_SHELL in 24147 '') 24148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24149for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 24150do 24151 IFS=$as_save_IFS 24152 test -z "$as_dir" && as_dir=. 24153 for as_base in sh bash ksh sh5; do 24154 case $as_dir in 24155 /*) 24156 if ("$as_dir/$as_base" -c ' 24157 as_lineno_1=$LINENO 24158 as_lineno_2=$LINENO 24159 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 24160 test "x$as_lineno_1" != "x$as_lineno_2" && 24161 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 24162 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 24163 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 24164 CONFIG_SHELL=$as_dir/$as_base 24165 export CONFIG_SHELL 24166 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 24167 fi;; 24168 esac 24169 done 24170done 24171;; 24172 esac 24173 24174 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 24175 # uniformly replaced by the line number. The first 'sed' inserts a 24176 # line-number line before each line; the second 'sed' does the real 24177 # work. The second script uses 'N' to pair each line-number line 24178 # with the numbered line, and appends trailing '-' during 24179 # substitution so that $LINENO is not a special case at line end. 24180 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 24181 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 24182 sed '=' <$as_myself | 24183 sed ' 24184 N 24185 s,$,-, 24186 : loop 24187 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 24188 t loop 24189 s,-$,, 24190 s,^['$as_cr_digits']*\n,, 24191 ' >$as_me.lineno && 24192 chmod +x $as_me.lineno || 24193 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 24194echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 24195 { (exit 1); exit 1; }; } 24196 24197 # Don't try to exec as it changes $[0], causing all sort of problems 24198 # (the dirname of $[0] is not the place where we might find the 24199 # original and so on. Autoconf is especially sensible to this). 24200 . ./$as_me.lineno 24201 # Exit status is that of the last command. 24202 exit 24203} 24204 24205 24206case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 24207 *c*,-n*) ECHO_N= ECHO_C=' 24208' ECHO_T=' ' ;; 24209 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 24210 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 24211esac 24212 24213if expr a : '\(a\)' >/dev/null 2>&1; then 24214 as_expr=expr 24215else 24216 as_expr=false 24217fi 24218 24219rm -f conf$$ conf$$.exe conf$$.file 24220echo >conf$$.file 24221if ln -s conf$$.file conf$$ 2>/dev/null; then 24222 # We could just check for DJGPP; but this test a) works b) is more generic 24223 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 24224 if test -f conf$$.exe; then 24225 # Don't use ln at all; we don't have any links 24226 as_ln_s='cp -p' 24227 else 24228 as_ln_s='ln -s' 24229 fi 24230elif ln conf$$.file conf$$ 2>/dev/null; then 24231 as_ln_s=ln 24232else 24233 as_ln_s='cp -p' 24234fi 24235rm -f conf$$ conf$$.exe conf$$.file 24236 24237if mkdir -p . 2>/dev/null; then 24238 as_mkdir_p=: 24239else 24240 test -d ./-p && rmdir ./-p 24241 as_mkdir_p=false 24242fi 24243 24244as_executable_p="test -f" 24245 24246# Sed expression to map a string onto a valid CPP name. 24247as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24248 24249# Sed expression to map a string onto a valid variable name. 24250as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24251 24252 24253# IFS 24254# We need space, tab and new line, in precisely that order. 24255as_nl=' 24256' 24257IFS=" $as_nl" 24258 24259# CDPATH. 24260$as_unset CDPATH 24261 24262exec 6>&1 24263 24264# Open the log real soon, to keep \$[0] and so on meaningful, and to 24265# report actual input values of CONFIG_FILES etc. instead of their 24266# values after options handling. Logging --version etc. is OK. 24267exec 5>>config.log 24268{ 24269 echo 24270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24271## Running $as_me. ## 24272_ASBOX 24273} >&5 24274cat >&5 <<_CSEOF 24275 24276This file was extended by LLVM $as_me 1.4, which was 24277generated by GNU Autoconf 2.59. Invocation command line was 24278 24279 CONFIG_FILES = $CONFIG_FILES 24280 CONFIG_HEADERS = $CONFIG_HEADERS 24281 CONFIG_LINKS = $CONFIG_LINKS 24282 CONFIG_COMMANDS = $CONFIG_COMMANDS 24283 $ $0 $@ 24284 24285_CSEOF 24286echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 24287echo >&5 24288_ACEOF 24289 24290# Files that config.status was made for. 24291if test -n "$ac_config_files"; then 24292 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 24293fi 24294 24295if test -n "$ac_config_headers"; then 24296 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 24297fi 24298 24299if test -n "$ac_config_links"; then 24300 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 24301fi 24302 24303if test -n "$ac_config_commands"; then 24304 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 24305fi 24306 24307cat >>$CONFIG_STATUS <<\_ACEOF 24308 24309ac_cs_usage="\ 24310\`$as_me' instantiates files from templates according to the 24311current configuration. 24312 24313Usage: $0 [OPTIONS] [FILE]... 24314 24315 -h, --help print this help, then exit 24316 -V, --version print version number, then exit 24317 -q, --quiet do not print progress messages 24318 -d, --debug don't remove temporary files 24319 --recheck update $as_me by reconfiguring in the same conditions 24320 --file=FILE[:TEMPLATE] 24321 instantiate the configuration file FILE 24322 --header=FILE[:TEMPLATE] 24323 instantiate the configuration header FILE 24324 24325Configuration files: 24326$config_files 24327 24328Configuration headers: 24329$config_headers 24330 24331Configuration links: 24332$config_links 24333 24334Configuration commands: 24335$config_commands 24336 24337Report bugs to <bug-autoconf@gnu.org>." 24338_ACEOF 24339 24340cat >>$CONFIG_STATUS <<_ACEOF 24341ac_cs_version="\\ 24342LLVM config.status 1.4 24343configured by $0, generated by GNU Autoconf 2.59, 24344 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 24345 24346Copyright (C) 2003 Free Software Foundation, Inc. 24347This config.status script is free software; the Free Software Foundation 24348gives unlimited permission to copy, distribute and modify it." 24349srcdir=$srcdir 24350INSTALL="$INSTALL" 24351_ACEOF 24352 24353cat >>$CONFIG_STATUS <<\_ACEOF 24354# If no file are specified by the user, then we need to provide default 24355# value. By we need to know if files were specified by the user. 24356ac_need_defaults=: 24357while test $# != 0 24358do 24359 case $1 in 24360 --*=*) 24361 ac_option=`expr "x$1" : 'x\([^=]*\)='` 24362 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 24363 ac_shift=: 24364 ;; 24365 -*) 24366 ac_option=$1 24367 ac_optarg=$2 24368 ac_shift=shift 24369 ;; 24370 *) # This is not an option, so the user has probably given explicit 24371 # arguments. 24372 ac_option=$1 24373 ac_need_defaults=false;; 24374 esac 24375 24376 case $ac_option in 24377 # Handling of the options. 24378_ACEOF 24379cat >>$CONFIG_STATUS <<\_ACEOF 24380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24381 ac_cs_recheck=: ;; 24382 --version | --vers* | -V ) 24383 echo "$ac_cs_version"; exit 0 ;; 24384 --he | --h) 24385 # Conflict between --help and --header 24386 { { echo "$as_me:$LINENO: error: ambiguous option: $1 24387Try \`$0 --help' for more information." >&5 24388echo "$as_me: error: ambiguous option: $1 24389Try \`$0 --help' for more information." >&2;} 24390 { (exit 1); exit 1; }; };; 24391 --help | --hel | -h ) 24392 echo "$ac_cs_usage"; exit 0 ;; 24393 --debug | --d* | -d ) 24394 debug=: ;; 24395 --file | --fil | --fi | --f ) 24396 $ac_shift 24397 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24398 ac_need_defaults=false;; 24399 --header | --heade | --head | --hea ) 24400 $ac_shift 24401 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24402 ac_need_defaults=false;; 24403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24404 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24405 ac_cs_silent=: ;; 24406 24407 # This is an error. 24408 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 24409Try \`$0 --help' for more information." >&5 24410echo "$as_me: error: unrecognized option: $1 24411Try \`$0 --help' for more information." >&2;} 24412 { (exit 1); exit 1; }; } ;; 24413 24414 *) ac_config_targets="$ac_config_targets $1" ;; 24415 24416 esac 24417 shift 24418done 24419 24420ac_configure_extra_args= 24421 24422if $ac_cs_silent; then 24423 exec 6>/dev/null 24424 ac_configure_extra_args="$ac_configure_extra_args --silent" 24425fi 24426 24427_ACEOF 24428cat >>$CONFIG_STATUS <<_ACEOF 24429if \$ac_cs_recheck; then 24430 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24431 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24432fi 24433 24434_ACEOF 24435 24436cat >>$CONFIG_STATUS <<_ACEOF 24437# 24438# INIT-COMMANDS section. 24439# 24440 24441${srcdir}/autoconf/mkinstalldirs `dirname Makefile` 24442${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` 24443${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` 24444${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` 24445${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` 24446${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` 24447${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 24448${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` 24449${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` 24450${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` 24451${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` 24452${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` 24453 24454_ACEOF 24455 24456 24457 24458cat >>$CONFIG_STATUS <<\_ACEOF 24459for ac_config_target in $ac_config_targets 24460do 24461 case "$ac_config_target" in 24462 # Handling of arguments. 24463 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 24464 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;; 24465 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;; 24466 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;; 24467 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;; 24468 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;; 24469 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;; 24470 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 24471 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 24472 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 24473 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 24474 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 24475 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 24476 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 24477 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; 24478 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; 24479 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 24480 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 24481 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 24482 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 24483 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24484echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24485 { (exit 1); exit 1; }; };; 24486 esac 24487done 24488 24489# If the user did not use the arguments to specify the items to instantiate, 24490# then the envvar interface is used. Set only those that are not. 24491# We use the long form for the default assignment because of an extremely 24492# bizarre bug on SunOS 4.1.3. 24493if $ac_need_defaults; then 24494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24496 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 24497 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24498fi 24499 24500# Have a temporary directory for convenience. Make it in the build tree 24501# simply because there is no reason to put it here, and in addition, 24502# creating and moving files from /tmp can sometimes cause problems. 24503# Create a temporary directory, and hook for its removal unless debugging. 24504$debug || 24505{ 24506 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 24507 trap '{ (exit 1); exit 1; }' 1 2 13 15 24508} 24509 24510# Create a (secure) tmp directory for tmp files. 24511 24512{ 24513 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 24514 test -n "$tmp" && test -d "$tmp" 24515} || 24516{ 24517 tmp=./confstat$$-$RANDOM 24518 (umask 077 && mkdir $tmp) 24519} || 24520{ 24521 echo "$me: cannot create a temporary directory in ." >&2 24522 { (exit 1); exit 1; } 24523} 24524 24525_ACEOF 24526 24527cat >>$CONFIG_STATUS <<_ACEOF 24528 24529# 24530# CONFIG_FILES section. 24531# 24532 24533# No need to generate the scripts if there are no CONFIG_FILES. 24534# This happens for instance when ./config.status config.h 24535if test -n "\$CONFIG_FILES"; then 24536 # Protect against being on the right side of a sed subst in config.status. 24537 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 24538 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 24539s,@SHELL@,$SHELL,;t t 24540s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 24541s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 24542s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 24543s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 24544s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 24545s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 24546s,@exec_prefix@,$exec_prefix,;t t 24547s,@prefix@,$prefix,;t t 24548s,@program_transform_name@,$program_transform_name,;t t 24549s,@bindir@,$bindir,;t t 24550s,@sbindir@,$sbindir,;t t 24551s,@libexecdir@,$libexecdir,;t t 24552s,@datadir@,$datadir,;t t 24553s,@sysconfdir@,$sysconfdir,;t t 24554s,@sharedstatedir@,$sharedstatedir,;t t 24555s,@localstatedir@,$localstatedir,;t t 24556s,@libdir@,$libdir,;t t 24557s,@includedir@,$includedir,;t t 24558s,@oldincludedir@,$oldincludedir,;t t 24559s,@infodir@,$infodir,;t t 24560s,@mandir@,$mandir,;t t 24561s,@build_alias@,$build_alias,;t t 24562s,@host_alias@,$host_alias,;t t 24563s,@target_alias@,$target_alias,;t t 24564s,@DEFS@,$DEFS,;t t 24565s,@ECHO_C@,$ECHO_C,;t t 24566s,@ECHO_N@,$ECHO_N,;t t 24567s,@ECHO_T@,$ECHO_T,;t t 24568s,@LIBS@,$LIBS,;t t 24569s,@subdirs@,$subdirs,;t t 24570s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 24571s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 24572s,@INSTALL_DATA@,$INSTALL_DATA,;t t 24573s,@build@,$build,;t t 24574s,@build_cpu@,$build_cpu,;t t 24575s,@build_vendor@,$build_vendor,;t t 24576s,@build_os@,$build_os,;t t 24577s,@host@,$host,;t t 24578s,@host_cpu@,$host_cpu,;t t 24579s,@host_vendor@,$host_vendor,;t t 24580s,@host_os@,$host_os,;t t 24581s,@target@,$target,;t t 24582s,@target_cpu@,$target_cpu,;t t 24583s,@target_vendor@,$target_vendor,;t t 24584s,@target_os@,$target_os,;t t 24585s,@OS@,$OS,;t t 24586s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t 24587s,@ARCH@,$ARCH,;t t 24588s,@CXX@,$CXX,;t t 24589s,@CXXFLAGS@,$CXXFLAGS,;t t 24590s,@LDFLAGS@,$LDFLAGS,;t t 24591s,@CPPFLAGS@,$CPPFLAGS,;t t 24592s,@ac_ct_CXX@,$ac_ct_CXX,;t t 24593s,@EXEEXT@,$EXEEXT,;t t 24594s,@OBJEXT@,$OBJEXT,;t t 24595s,@CC@,$CC,;t t 24596s,@CFLAGS@,$CFLAGS,;t t 24597s,@ac_ct_CC@,$ac_ct_CC,;t t 24598s,@CPP@,$CPP,;t t 24599s,@ifGNUmake@,$ifGNUmake,;t t 24600s,@LEX@,$LEX,;t t 24601s,@LEXLIB@,$LEXLIB,;t t 24602s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 24603s,@FLEX@,$FLEX,;t t 24604s,@YACC@,$YACC,;t t 24605s,@BISON@,$BISON,;t t 24606s,@EGREP@,$EGREP,;t t 24607s,@LN_S@,$LN_S,;t t 24608s,@ECHO@,$ECHO,;t t 24609s,@AR@,$AR,;t t 24610s,@ac_ct_AR@,$ac_ct_AR,;t t 24611s,@RANLIB@,$RANLIB,;t t 24612s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 24613s,@STRIP@,$STRIP,;t t 24614s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 24615s,@CXXCPP@,$CXXCPP,;t t 24616s,@F77@,$F77,;t t 24617s,@FFLAGS@,$FFLAGS,;t t 24618s,@ac_ct_F77@,$ac_ct_F77,;t t 24619s,@LIBTOOL@,$LIBTOOL,;t t 24620s,@DOT@,$DOT,;t t 24621s,@ETAGS@,$ETAGS,;t t 24622s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t 24623s,@PYTHON@,$PYTHON,;t t 24624s,@QMTEST@,$QMTEST,;t t 24625s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t 24626s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t 24627s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t 24628s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t 24629s,@ENDIAN@,$ENDIAN,;t t 24630s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t 24631s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t 24632s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t 24633s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t 24634s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t 24635s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t 24636s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t 24637s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t 24638s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t 24639s,@ALLOCA@,$ALLOCA,;t t 24640s,@MMAP_FILE@,$MMAP_FILE,;t t 24641s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t 24642s,@JIT@,$JIT,;t t 24643s,@LLVMCC1@,$LLVMCC1,;t t 24644s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t 24645s,@SHLIBEXT@,$SHLIBEXT,;t t 24646s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t 24647s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t 24648s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t 24649s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t 24650s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t 24651s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t 24652s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t 24653s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t 24654s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t 24655s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t 24656s,@LIBOBJS@,$LIBOBJS,;t t 24657s,@LTLIBOBJS@,$LTLIBOBJS,;t t 24658CEOF 24659 24660_ACEOF 24661 24662 cat >>$CONFIG_STATUS <<\_ACEOF 24663 # Split the substitutions into bite-sized pieces for seds with 24664 # small command number limits, like on Digital OSF/1 and HP-UX. 24665 ac_max_sed_lines=48 24666 ac_sed_frag=1 # Number of current file. 24667 ac_beg=1 # First line for current file. 24668 ac_end=$ac_max_sed_lines # Line after last line for current file. 24669 ac_more_lines=: 24670 ac_sed_cmds= 24671 while $ac_more_lines; do 24672 if test $ac_beg -gt 1; then 24673 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24674 else 24675 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24676 fi 24677 if test ! -s $tmp/subs.frag; then 24678 ac_more_lines=false 24679 else 24680 # The purpose of the label and of the branching condition is to 24681 # speed up the sed processing (if there are no `@' at all, there 24682 # is no need to browse any of the substitutions). 24683 # These are the two extra sed commands mentioned above. 24684 (echo ':t 24685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 24686 if test -z "$ac_sed_cmds"; then 24687 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 24688 else 24689 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 24690 fi 24691 ac_sed_frag=`expr $ac_sed_frag + 1` 24692 ac_beg=$ac_end 24693 ac_end=`expr $ac_end + $ac_max_sed_lines` 24694 fi 24695 done 24696 if test -z "$ac_sed_cmds"; then 24697 ac_sed_cmds=cat 24698 fi 24699fi # test -n "$CONFIG_FILES" 24700 24701_ACEOF 24702cat >>$CONFIG_STATUS <<\_ACEOF 24703for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 24704 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24705 case $ac_file in 24706 - | *:- | *:-:* ) # input from stdin 24707 cat >$tmp/stdin 24708 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24709 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24710 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24712 * ) ac_file_in=$ac_file.in ;; 24713 esac 24714 24715 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 24716 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24717$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24718 X"$ac_file" : 'X\(//\)[^/]' \| \ 24719 X"$ac_file" : 'X\(//\)$' \| \ 24720 X"$ac_file" : 'X\(/\)' \| \ 24721 . : '\(.\)' 2>/dev/null || 24722echo X"$ac_file" | 24723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24724 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24725 /^X\(\/\/\)$/{ s//\1/; q; } 24726 /^X\(\/\).*/{ s//\1/; q; } 24727 s/.*/./; q'` 24728 { if $as_mkdir_p; then 24729 mkdir -p "$ac_dir" 24730 else 24731 as_dir="$ac_dir" 24732 as_dirs= 24733 while test ! -d "$as_dir"; do 24734 as_dirs="$as_dir $as_dirs" 24735 as_dir=`(dirname "$as_dir") 2>/dev/null || 24736$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24737 X"$as_dir" : 'X\(//\)[^/]' \| \ 24738 X"$as_dir" : 'X\(//\)$' \| \ 24739 X"$as_dir" : 'X\(/\)' \| \ 24740 . : '\(.\)' 2>/dev/null || 24741echo X"$as_dir" | 24742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24743 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24744 /^X\(\/\/\)$/{ s//\1/; q; } 24745 /^X\(\/\).*/{ s//\1/; q; } 24746 s/.*/./; q'` 24747 done 24748 test ! -n "$as_dirs" || mkdir $as_dirs 24749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24750echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24751 { (exit 1); exit 1; }; }; } 24752 24753 ac_builddir=. 24754 24755if test "$ac_dir" != .; then 24756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24757 # A "../" for each directory in $ac_dir_suffix. 24758 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24759else 24760 ac_dir_suffix= ac_top_builddir= 24761fi 24762 24763case $srcdir in 24764 .) # No --srcdir option. We are building in place. 24765 ac_srcdir=. 24766 if test -z "$ac_top_builddir"; then 24767 ac_top_srcdir=. 24768 else 24769 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24770 fi ;; 24771 [\\/]* | ?:[\\/]* ) # Absolute path. 24772 ac_srcdir=$srcdir$ac_dir_suffix; 24773 ac_top_srcdir=$srcdir ;; 24774 *) # Relative path. 24775 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24776 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24777esac 24778 24779# Do not use `cd foo && pwd` to compute absolute paths, because 24780# the directories may not exist. 24781case `pwd` in 24782.) ac_abs_builddir="$ac_dir";; 24783*) 24784 case "$ac_dir" in 24785 .) ac_abs_builddir=`pwd`;; 24786 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24787 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24788 esac;; 24789esac 24790case $ac_abs_builddir in 24791.) ac_abs_top_builddir=${ac_top_builddir}.;; 24792*) 24793 case ${ac_top_builddir}. in 24794 .) ac_abs_top_builddir=$ac_abs_builddir;; 24795 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24796 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24797 esac;; 24798esac 24799case $ac_abs_builddir in 24800.) ac_abs_srcdir=$ac_srcdir;; 24801*) 24802 case $ac_srcdir in 24803 .) ac_abs_srcdir=$ac_abs_builddir;; 24804 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24805 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24806 esac;; 24807esac 24808case $ac_abs_builddir in 24809.) ac_abs_top_srcdir=$ac_top_srcdir;; 24810*) 24811 case $ac_top_srcdir in 24812 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24813 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24814 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24815 esac;; 24816esac 24817 24818 24819 case $INSTALL in 24820 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24821 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 24822 esac 24823 24824 if test x"$ac_file" != x-; then 24825 { echo "$as_me:$LINENO: creating $ac_file" >&5 24826echo "$as_me: creating $ac_file" >&6;} 24827 rm -f "$ac_file" 24828 fi 24829 # Let's still pretend it is `configure' which instantiates (i.e., don't 24830 # use $as_me), people would be surprised to read: 24831 # /* config.h. Generated by config.status. */ 24832 if test x"$ac_file" = x-; then 24833 configure_input= 24834 else 24835 configure_input="$ac_file. " 24836 fi 24837 configure_input=$configure_input"Generated from `echo $ac_file_in | 24838 sed 's,.*/,,'` by configure." 24839 24840 # First look for the input files in the build tree, otherwise in the 24841 # src tree. 24842 ac_file_inputs=`IFS=: 24843 for f in $ac_file_in; do 24844 case $f in 24845 -) echo $tmp/stdin ;; 24846 [\\/$]*) 24847 # Absolute (can't be DOS-style, as IFS=:) 24848 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24849echo "$as_me: error: cannot find input file: $f" >&2;} 24850 { (exit 1); exit 1; }; } 24851 echo "$f";; 24852 *) # Relative 24853 if test -f "$f"; then 24854 # Build tree 24855 echo "$f" 24856 elif test -f "$srcdir/$f"; then 24857 # Source tree 24858 echo "$srcdir/$f" 24859 else 24860 # /dev/null tree 24861 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24862echo "$as_me: error: cannot find input file: $f" >&2;} 24863 { (exit 1); exit 1; }; } 24864 fi;; 24865 esac 24866 done` || { (exit 1); exit 1; } 24867_ACEOF 24868cat >>$CONFIG_STATUS <<_ACEOF 24869 sed "$ac_vpsub 24870$extrasub 24871_ACEOF 24872cat >>$CONFIG_STATUS <<\_ACEOF 24873:t 24874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24875s,@configure_input@,$configure_input,;t t 24876s,@srcdir@,$ac_srcdir,;t t 24877s,@abs_srcdir@,$ac_abs_srcdir,;t t 24878s,@top_srcdir@,$ac_top_srcdir,;t t 24879s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 24880s,@builddir@,$ac_builddir,;t t 24881s,@abs_builddir@,$ac_abs_builddir,;t t 24882s,@top_builddir@,$ac_top_builddir,;t t 24883s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 24884s,@INSTALL@,$ac_INSTALL,;t t 24885" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 24886 rm -f $tmp/stdin 24887 if test x"$ac_file" != x-; then 24888 mv $tmp/out $ac_file 24889 else 24890 cat $tmp/out 24891 rm -f $tmp/out 24892 fi 24893 24894done 24895_ACEOF 24896cat >>$CONFIG_STATUS <<\_ACEOF 24897 24898# 24899# CONFIG_HEADER section. 24900# 24901 24902# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 24903# NAME is the cpp macro being defined and VALUE is the value it is being given. 24904# 24905# ac_d sets the value in "#define NAME VALUE" lines. 24906ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 24907ac_dB='[ ].*$,\1#\2' 24908ac_dC=' ' 24909ac_dD=',;t' 24910# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 24911ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 24912ac_uB='$,\1#\2define\3' 24913ac_uC=' ' 24914ac_uD=',;t' 24915 24916for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 24917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24918 case $ac_file in 24919 - | *:- | *:-:* ) # input from stdin 24920 cat >$tmp/stdin 24921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24925 * ) ac_file_in=$ac_file.in ;; 24926 esac 24927 24928 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 24929echo "$as_me: creating $ac_file" >&6;} 24930 24931 # First look for the input files in the build tree, otherwise in the 24932 # src tree. 24933 ac_file_inputs=`IFS=: 24934 for f in $ac_file_in; do 24935 case $f in 24936 -) echo $tmp/stdin ;; 24937 [\\/$]*) 24938 # Absolute (can't be DOS-style, as IFS=:) 24939 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24940echo "$as_me: error: cannot find input file: $f" >&2;} 24941 { (exit 1); exit 1; }; } 24942 # Do quote $f, to prevent DOS paths from being IFS'd. 24943 echo "$f";; 24944 *) # Relative 24945 if test -f "$f"; then 24946 # Build tree 24947 echo "$f" 24948 elif test -f "$srcdir/$f"; then 24949 # Source tree 24950 echo "$srcdir/$f" 24951 else 24952 # /dev/null tree 24953 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24954echo "$as_me: error: cannot find input file: $f" >&2;} 24955 { (exit 1); exit 1; }; } 24956 fi;; 24957 esac 24958 done` || { (exit 1); exit 1; } 24959 # Remove the trailing spaces. 24960 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 24961 24962_ACEOF 24963 24964# Transform confdefs.h into two sed scripts, `conftest.defines' and 24965# `conftest.undefs', that substitutes the proper values into 24966# config.h.in to produce config.h. The first handles `#define' 24967# templates, and the second `#undef' templates. 24968# And first: Protect against being on the right side of a sed subst in 24969# config.status. Protect against being in an unquoted here document 24970# in config.status. 24971rm -f conftest.defines conftest.undefs 24972# Using a here document instead of a string reduces the quoting nightmare. 24973# Putting comments in sed scripts is not portable. 24974# 24975# `end' is used to avoid that the second main sed command (meant for 24976# 0-ary CPP macros) applies to n-ary macro definitions. 24977# See the Autoconf documentation for `clear'. 24978cat >confdef2sed.sed <<\_ACEOF 24979s/[\\&,]/\\&/g 24980s,[\\$`],\\&,g 24981t clear 24982: clear 24983s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 24984t end 24985s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 24986: end 24987_ACEOF 24988# If some macros were called several times there might be several times 24989# the same #defines, which is useless. Nevertheless, we may not want to 24990# sort them, since we want the *last* AC-DEFINE to be honored. 24991uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 24992sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 24993rm -f confdef2sed.sed 24994 24995# This sed command replaces #undef with comments. This is necessary, for 24996# example, in the case of _POSIX_SOURCE, which is predefined and required 24997# on some systems where configure will not decide to define it. 24998cat >>conftest.undefs <<\_ACEOF 24999s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 25000_ACEOF 25001 25002# Break up conftest.defines because some shells have a limit on the size 25003# of here documents, and old seds have small limits too (100 cmds). 25004echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 25005echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 25006echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 25007echo ' :' >>$CONFIG_STATUS 25008rm -f conftest.tail 25009while grep . conftest.defines >/dev/null 25010do 25011 # Write a limited-size here document to $tmp/defines.sed. 25012 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 25013 # Speed up: don't consider the non `#define' lines. 25014 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 25015 # Work around the forget-to-reset-the-flag bug. 25016 echo 't clr' >>$CONFIG_STATUS 25017 echo ': clr' >>$CONFIG_STATUS 25018 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 25019 echo 'CEOF 25020 sed -f $tmp/defines.sed $tmp/in >$tmp/out 25021 rm -f $tmp/in 25022 mv $tmp/out $tmp/in 25023' >>$CONFIG_STATUS 25024 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 25025 rm -f conftest.defines 25026 mv conftest.tail conftest.defines 25027done 25028rm -f conftest.defines 25029echo ' fi # grep' >>$CONFIG_STATUS 25030echo >>$CONFIG_STATUS 25031 25032# Break up conftest.undefs because some shells have a limit on the size 25033# of here documents, and old seds have small limits too (100 cmds). 25034echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 25035rm -f conftest.tail 25036while grep . conftest.undefs >/dev/null 25037do 25038 # Write a limited-size here document to $tmp/undefs.sed. 25039 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 25040 # Speed up: don't consider the non `#undef' 25041 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 25042 # Work around the forget-to-reset-the-flag bug. 25043 echo 't clr' >>$CONFIG_STATUS 25044 echo ': clr' >>$CONFIG_STATUS 25045 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 25046 echo 'CEOF 25047 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 25048 rm -f $tmp/in 25049 mv $tmp/out $tmp/in 25050' >>$CONFIG_STATUS 25051 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 25052 rm -f conftest.undefs 25053 mv conftest.tail conftest.undefs 25054done 25055rm -f conftest.undefs 25056 25057cat >>$CONFIG_STATUS <<\_ACEOF 25058 # Let's still pretend it is `configure' which instantiates (i.e., don't 25059 # use $as_me), people would be surprised to read: 25060 # /* config.h. Generated by config.status. */ 25061 if test x"$ac_file" = x-; then 25062 echo "/* Generated by configure. */" >$tmp/config.h 25063 else 25064 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 25065 fi 25066 cat $tmp/in >>$tmp/config.h 25067 rm -f $tmp/in 25068 if test x"$ac_file" != x-; then 25069 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 25070 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 25071echo "$as_me: $ac_file is unchanged" >&6;} 25072 else 25073 ac_dir=`(dirname "$ac_file") 2>/dev/null || 25074$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25075 X"$ac_file" : 'X\(//\)[^/]' \| \ 25076 X"$ac_file" : 'X\(//\)$' \| \ 25077 X"$ac_file" : 'X\(/\)' \| \ 25078 . : '\(.\)' 2>/dev/null || 25079echo X"$ac_file" | 25080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25081 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25082 /^X\(\/\/\)$/{ s//\1/; q; } 25083 /^X\(\/\).*/{ s//\1/; q; } 25084 s/.*/./; q'` 25085 { if $as_mkdir_p; then 25086 mkdir -p "$ac_dir" 25087 else 25088 as_dir="$ac_dir" 25089 as_dirs= 25090 while test ! -d "$as_dir"; do 25091 as_dirs="$as_dir $as_dirs" 25092 as_dir=`(dirname "$as_dir") 2>/dev/null || 25093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25094 X"$as_dir" : 'X\(//\)[^/]' \| \ 25095 X"$as_dir" : 'X\(//\)$' \| \ 25096 X"$as_dir" : 'X\(/\)' \| \ 25097 . : '\(.\)' 2>/dev/null || 25098echo X"$as_dir" | 25099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25100 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25101 /^X\(\/\/\)$/{ s//\1/; q; } 25102 /^X\(\/\).*/{ s//\1/; q; } 25103 s/.*/./; q'` 25104 done 25105 test ! -n "$as_dirs" || mkdir $as_dirs 25106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 25107echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 25108 { (exit 1); exit 1; }; }; } 25109 25110 rm -f $ac_file 25111 mv $tmp/config.h $ac_file 25112 fi 25113 else 25114 cat $tmp/config.h 25115 rm -f $tmp/config.h 25116 fi 25117done 25118_ACEOF 25119cat >>$CONFIG_STATUS <<\_ACEOF 25120 25121# 25122# CONFIG_LINKS section. 25123# 25124 25125for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue 25126 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 25127 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 25128 25129 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 25130echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} 25131 25132 if test ! -r $srcdir/$ac_source; then 25133 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 25134echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 25135 { (exit 1); exit 1; }; } 25136 fi 25137 rm -f $ac_dest 25138 25139 # Make relative symlinks. 25140 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || 25141$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25142 X"$ac_dest" : 'X\(//\)[^/]' \| \ 25143 X"$ac_dest" : 'X\(//\)$' \| \ 25144 X"$ac_dest" : 'X\(/\)' \| \ 25145 . : '\(.\)' 2>/dev/null || 25146echo X"$ac_dest" | 25147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25148 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25149 /^X\(\/\/\)$/{ s//\1/; q; } 25150 /^X\(\/\).*/{ s//\1/; q; } 25151 s/.*/./; q'` 25152 { if $as_mkdir_p; then 25153 mkdir -p "$ac_dest_dir" 25154 else 25155 as_dir="$ac_dest_dir" 25156 as_dirs= 25157 while test ! -d "$as_dir"; do 25158 as_dirs="$as_dir $as_dirs" 25159 as_dir=`(dirname "$as_dir") 2>/dev/null || 25160$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25161 X"$as_dir" : 'X\(//\)[^/]' \| \ 25162 X"$as_dir" : 'X\(//\)$' \| \ 25163 X"$as_dir" : 'X\(/\)' \| \ 25164 . : '\(.\)' 2>/dev/null || 25165echo X"$as_dir" | 25166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25167 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25168 /^X\(\/\/\)$/{ s//\1/; q; } 25169 /^X\(\/\).*/{ s//\1/; q; } 25170 s/.*/./; q'` 25171 done 25172 test ! -n "$as_dirs" || mkdir $as_dirs 25173 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 25174echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} 25175 { (exit 1); exit 1; }; }; } 25176 25177 ac_builddir=. 25178 25179if test "$ac_dest_dir" != .; then 25180 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` 25181 # A "../" for each directory in $ac_dir_suffix. 25182 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 25183else 25184 ac_dir_suffix= ac_top_builddir= 25185fi 25186 25187case $srcdir in 25188 .) # No --srcdir option. We are building in place. 25189 ac_srcdir=. 25190 if test -z "$ac_top_builddir"; then 25191 ac_top_srcdir=. 25192 else 25193 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 25194 fi ;; 25195 [\\/]* | ?:[\\/]* ) # Absolute path. 25196 ac_srcdir=$srcdir$ac_dir_suffix; 25197 ac_top_srcdir=$srcdir ;; 25198 *) # Relative path. 25199 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 25200 ac_top_srcdir=$ac_top_builddir$srcdir ;; 25201esac 25202 25203# Do not use `cd foo && pwd` to compute absolute paths, because 25204# the directories may not exist. 25205case `pwd` in 25206.) ac_abs_builddir="$ac_dest_dir";; 25207*) 25208 case "$ac_dest_dir" in 25209 .) ac_abs_builddir=`pwd`;; 25210 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; 25211 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; 25212 esac;; 25213esac 25214case $ac_abs_builddir in 25215.) ac_abs_top_builddir=${ac_top_builddir}.;; 25216*) 25217 case ${ac_top_builddir}. in 25218 .) ac_abs_top_builddir=$ac_abs_builddir;; 25219 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 25220 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 25221 esac;; 25222esac 25223case $ac_abs_builddir in 25224.) ac_abs_srcdir=$ac_srcdir;; 25225*) 25226 case $ac_srcdir in 25227 .) ac_abs_srcdir=$ac_abs_builddir;; 25228 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 25229 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 25230 esac;; 25231esac 25232case $ac_abs_builddir in 25233.) ac_abs_top_srcdir=$ac_top_srcdir;; 25234*) 25235 case $ac_top_srcdir in 25236 .) ac_abs_top_srcdir=$ac_abs_builddir;; 25237 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 25238 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 25239 esac;; 25240esac 25241 25242 25243 case $srcdir in 25244 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 25245 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; 25246 esac 25247 25248 # Try a symlink, then a hard link, then a copy. 25249 ln -s $ac_rel_source $ac_dest 2>/dev/null || 25250 ln $srcdir/$ac_source $ac_dest 2>/dev/null || 25251 cp -p $srcdir/$ac_source $ac_dest || 25252 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 25253echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} 25254 { (exit 1); exit 1; }; } 25255done 25256_ACEOF 25257cat >>$CONFIG_STATUS <<\_ACEOF 25258 25259# 25260# CONFIG_COMMANDS section. 25261# 25262for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 25263 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 25264 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 25265 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 25266$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25267 X"$ac_dest" : 'X\(//\)[^/]' \| \ 25268 X"$ac_dest" : 'X\(//\)$' \| \ 25269 X"$ac_dest" : 'X\(/\)' \| \ 25270 . : '\(.\)' 2>/dev/null || 25271echo X"$ac_dest" | 25272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25273 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25274 /^X\(\/\/\)$/{ s//\1/; q; } 25275 /^X\(\/\).*/{ s//\1/; q; } 25276 s/.*/./; q'` 25277 { if $as_mkdir_p; then 25278 mkdir -p "$ac_dir" 25279 else 25280 as_dir="$ac_dir" 25281 as_dirs= 25282 while test ! -d "$as_dir"; do 25283 as_dirs="$as_dir $as_dirs" 25284 as_dir=`(dirname "$as_dir") 2>/dev/null || 25285$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25286 X"$as_dir" : 'X\(//\)[^/]' \| \ 25287 X"$as_dir" : 'X\(//\)$' \| \ 25288 X"$as_dir" : 'X\(/\)' \| \ 25289 . : '\(.\)' 2>/dev/null || 25290echo X"$as_dir" | 25291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25292 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25293 /^X\(\/\/\)$/{ s//\1/; q; } 25294 /^X\(\/\).*/{ s//\1/; q; } 25295 s/.*/./; q'` 25296 done 25297 test ! -n "$as_dirs" || mkdir $as_dirs 25298 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 25299echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 25300 { (exit 1); exit 1; }; }; } 25301 25302 ac_builddir=. 25303 25304if test "$ac_dir" != .; then 25305 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 25306 # A "../" for each directory in $ac_dir_suffix. 25307 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 25308else 25309 ac_dir_suffix= ac_top_builddir= 25310fi 25311 25312case $srcdir in 25313 .) # No --srcdir option. We are building in place. 25314 ac_srcdir=. 25315 if test -z "$ac_top_builddir"; then 25316 ac_top_srcdir=. 25317 else 25318 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 25319 fi ;; 25320 [\\/]* | ?:[\\/]* ) # Absolute path. 25321 ac_srcdir=$srcdir$ac_dir_suffix; 25322 ac_top_srcdir=$srcdir ;; 25323 *) # Relative path. 25324 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 25325 ac_top_srcdir=$ac_top_builddir$srcdir ;; 25326esac 25327 25328# Do not use `cd foo && pwd` to compute absolute paths, because 25329# the directories may not exist. 25330case `pwd` in 25331.) ac_abs_builddir="$ac_dir";; 25332*) 25333 case "$ac_dir" in 25334 .) ac_abs_builddir=`pwd`;; 25335 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 25336 *) ac_abs_builddir=`pwd`/"$ac_dir";; 25337 esac;; 25338esac 25339case $ac_abs_builddir in 25340.) ac_abs_top_builddir=${ac_top_builddir}.;; 25341*) 25342 case ${ac_top_builddir}. in 25343 .) ac_abs_top_builddir=$ac_abs_builddir;; 25344 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 25345 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 25346 esac;; 25347esac 25348case $ac_abs_builddir in 25349.) ac_abs_srcdir=$ac_srcdir;; 25350*) 25351 case $ac_srcdir in 25352 .) ac_abs_srcdir=$ac_abs_builddir;; 25353 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 25354 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 25355 esac;; 25356esac 25357case $ac_abs_builddir in 25358.) ac_abs_top_srcdir=$ac_top_srcdir;; 25359*) 25360 case $ac_top_srcdir in 25361 .) ac_abs_top_srcdir=$ac_abs_builddir;; 25362 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 25363 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 25364 esac;; 25365esac 25366 25367 25368 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 25369echo "$as_me: executing $ac_dest commands" >&6;} 25370 case $ac_dest in 25371 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; 25372 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; 25373 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; 25374 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; 25375 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 25376 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; 25377 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 25378 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; 25379 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; 25380 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; 25381 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; 25382 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; 25383 esac 25384done 25385_ACEOF 25386 25387cat >>$CONFIG_STATUS <<\_ACEOF 25388 25389{ (exit 0); exit 0; } 25390_ACEOF 25391chmod +x $CONFIG_STATUS 25392ac_clean_files=$ac_clean_files_save 25393 25394 25395# configure is writing to config.log, and then calls config.status. 25396# config.status does its own redirection, appending to config.log. 25397# Unfortunately, on DOS this fails, as config.log is still kept open 25398# by configure, so config.status won't be able to write to it; its 25399# output is simply discarded. So we exec the FD to /dev/null, 25400# effectively closing config.log, so it can be properly (re)opened and 25401# appended to by config.status. When coming back to configure, we 25402# need to make the FD available again. 25403if test "$no_create" != yes; then 25404 ac_cs_success=: 25405 ac_config_status_args= 25406 test "$silent" = yes && 25407 ac_config_status_args="$ac_config_status_args --quiet" 25408 exec 5>/dev/null 25409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25410 exec 5>>config.log 25411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25412 # would make configure fail if this is the last instruction. 25413 $ac_cs_success || { (exit 1); exit 1; } 25414fi 25415 25416# 25417# CONFIG_SUBDIRS section. 25418# 25419if test "$no_recursion" != yes; then 25420 25421 # Remove --cache-file and --srcdir arguments so they do not pile up. 25422 ac_sub_configure_args= 25423 ac_prev= 25424 for ac_arg in $ac_configure_args; do 25425 if test -n "$ac_prev"; then 25426 ac_prev= 25427 continue 25428 fi 25429 case $ac_arg in 25430 -cache-file | --cache-file | --cache-fil | --cache-fi \ 25431 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 25432 ac_prev=cache_file ;; 25433 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 25434 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 25435 | --c=*) 25436 ;; 25437 --config-cache | -C) 25438 ;; 25439 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 25440 ac_prev=srcdir ;; 25441 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 25442 ;; 25443 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 25444 ac_prev=prefix ;; 25445 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 25446 ;; 25447 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 25448 esac 25449 done 25450 25451 # Always prepend --prefix to ensure using the same prefix 25452 # in subdir configurations. 25453 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 25454 25455 ac_popdir=`pwd` 25456 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 25457 25458 # Do not complain, so a configure script can configure whichever 25459 # parts of a large source tree are present. 25460 test -d $srcdir/$ac_dir || continue 25461 25462 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 25463echo "$as_me: configuring in $ac_dir" >&6;} 25464 { if $as_mkdir_p; then 25465 mkdir -p "$ac_dir" 25466 else 25467 as_dir="$ac_dir" 25468 as_dirs= 25469 while test ! -d "$as_dir"; do 25470 as_dirs="$as_dir $as_dirs" 25471 as_dir=`(dirname "$as_dir") 2>/dev/null || 25472$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25473 X"$as_dir" : 'X\(//\)[^/]' \| \ 25474 X"$as_dir" : 'X\(//\)$' \| \ 25475 X"$as_dir" : 'X\(/\)' \| \ 25476 . : '\(.\)' 2>/dev/null || 25477echo X"$as_dir" | 25478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25479 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25480 /^X\(\/\/\)$/{ s//\1/; q; } 25481 /^X\(\/\).*/{ s//\1/; q; } 25482 s/.*/./; q'` 25483 done 25484 test ! -n "$as_dirs" || mkdir $as_dirs 25485 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 25486echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 25487 { (exit 1); exit 1; }; }; } 25488 25489 ac_builddir=. 25490 25491if test "$ac_dir" != .; then 25492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 25493 # A "../" for each directory in $ac_dir_suffix. 25494 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 25495else 25496 ac_dir_suffix= ac_top_builddir= 25497fi 25498 25499case $srcdir in 25500 .) # No --srcdir option. We are building in place. 25501 ac_srcdir=. 25502 if test -z "$ac_top_builddir"; then 25503 ac_top_srcdir=. 25504 else 25505 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 25506 fi ;; 25507 [\\/]* | ?:[\\/]* ) # Absolute path. 25508 ac_srcdir=$srcdir$ac_dir_suffix; 25509 ac_top_srcdir=$srcdir ;; 25510 *) # Relative path. 25511 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 25512 ac_top_srcdir=$ac_top_builddir$srcdir ;; 25513esac 25514 25515# Do not use `cd foo && pwd` to compute absolute paths, because 25516# the directories may not exist. 25517case `pwd` in 25518.) ac_abs_builddir="$ac_dir";; 25519*) 25520 case "$ac_dir" in 25521 .) ac_abs_builddir=`pwd`;; 25522 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 25523 *) ac_abs_builddir=`pwd`/"$ac_dir";; 25524 esac;; 25525esac 25526case $ac_abs_builddir in 25527.) ac_abs_top_builddir=${ac_top_builddir}.;; 25528*) 25529 case ${ac_top_builddir}. in 25530 .) ac_abs_top_builddir=$ac_abs_builddir;; 25531 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 25532 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 25533 esac;; 25534esac 25535case $ac_abs_builddir in 25536.) ac_abs_srcdir=$ac_srcdir;; 25537*) 25538 case $ac_srcdir in 25539 .) ac_abs_srcdir=$ac_abs_builddir;; 25540 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 25541 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 25542 esac;; 25543esac 25544case $ac_abs_builddir in 25545.) ac_abs_top_srcdir=$ac_top_srcdir;; 25546*) 25547 case $ac_top_srcdir in 25548 .) ac_abs_top_srcdir=$ac_abs_builddir;; 25549 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 25550 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 25551 esac;; 25552esac 25553 25554 25555 cd $ac_dir 25556 25557 # Check for guested configure; otherwise get Cygnus style configure. 25558 if test -f $ac_srcdir/configure.gnu; then 25559 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 25560 elif test -f $ac_srcdir/configure; then 25561 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 25562 elif test -f $ac_srcdir/configure.in; then 25563 ac_sub_configure=$ac_configure 25564 else 25565 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 25566echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 25567 ac_sub_configure= 25568 fi 25569 25570 # The recursion is here. 25571 if test -n "$ac_sub_configure"; then 25572 # Make the cache file name correct relative to the subdirectory. 25573 case $cache_file in 25574 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 25575 *) # Relative path. 25576 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 25577 esac 25578 25579 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 25580echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 25581 # The eval makes quoting arguments work. 25582 eval $ac_sub_configure $ac_sub_configure_args \ 25583 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 25584 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 25585echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 25586 { (exit 1); exit 1; }; } 25587 fi 25588 25589 cd $ac_popdir 25590 done 25591fi 25592 25593 25594if test $llvmgccwarn = yes 25595then 25596 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 25597echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} 25598 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 25599echo "$as_me: WARNING: ***** appear to be working." >&2;} 25600 { echo "$as_me:$LINENO: WARNING: ***** " >&5 25601echo "$as_me: WARNING: ***** " >&2;} 25602 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 25603echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} 25604 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 25605echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} 25606 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 25607echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} 25608fi 25609 25610