configure revision ceca90415f982efe844b37b0cb3e5a228a0b7c57
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57 for LLVM 1.4. 4# 5# Report bugs to <llvmbugs@cs.uiuc.edu>. 6# 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 8# Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 24fi 25 26# Support unset when possible. 27if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false 224fi 225 226as_executable_p="test -f" 227 228# Sed expression to map a string onto a valid CPP name. 229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 230 231# Sed expression to map a string onto a valid variable name. 232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 233 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH 243 244 245 246# Check that we are running under the correct shell. 247SHELL=${CONFIG_SHELL-/bin/sh} 248 249case X$ECHO in 250X*--fallback-echo) 251 # Remove one level of quotation (which was required for Make). 252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 253 ;; 254esac 255 256echo=${ECHO-echo} 257if test "X$1" = X--no-reexec; then 258 # Discard the --no-reexec flag, and continue. 259 shift 260elif test "X$1" = X--fallback-echo; then 261 # Avoid inline document here, it may be left over 262 : 263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 264 # Yippee, $echo works! 265 : 266else 267 # Restart under the correct shell. 268 exec $SHELL "$0" --no-reexec ${1+"$@"} 269fi 270 271if test "X$1" = X--fallback-echo; then 272 # used as fallback echo 273 shift 274 cat <<EOF 275$* 276EOF 277 exit 0 278fi 279 280# The HP-UX ksh and POSIX shell print the target directory to stdout 281# if CDPATH is set. 282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 283 284if test -z "$ECHO"; then 285if test "X${echo_test_string+set}" != Xset; then 286# find a string as large as possible, as long as the shell can cope with it 287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 289 if (echo_test_string="`eval $cmd`") 2>/dev/null && 290 echo_test_string="`eval $cmd`" && 291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 292 then 293 break 294 fi 295 done 296fi 297 298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 300 test "X$echo_testing_string" = "X$echo_test_string"; then 301 : 302else 303 # The Solaris, AIX, and Digital Unix default echo programs unquote 304 # backslashes. This makes it impossible to quote backslashes using 305 # echo "$something" | sed 's/\\/\\\\/g' 306 # 307 # So, first we look for a working echo in the user's PATH. 308 309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 310 for dir in $PATH /usr/ucb; do 311 IFS="$lt_save_ifs" 312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 315 test "X$echo_testing_string" = "X$echo_test_string"; then 316 echo="$dir/echo" 317 break 318 fi 319 done 320 IFS="$lt_save_ifs" 321 322 if test "X$echo" = Xecho; then 323 # We didn't find a better echo, so look for alternatives. 324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 326 test "X$echo_testing_string" = "X$echo_test_string"; then 327 # This shell has a builtin print -r that does the trick. 328 echo='print -r' 329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 330 test "X$CONFIG_SHELL" != X/bin/ksh; then 331 # If we have ksh, try running configure again with it. 332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 333 export ORIGINAL_CONFIG_SHELL 334 CONFIG_SHELL=/bin/ksh 335 export CONFIG_SHELL 336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 337 else 338 # Try using printf. 339 echo='printf %s\n' 340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 342 test "X$echo_testing_string" = "X$echo_test_string"; then 343 # Cool, printf works 344 : 345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 346 test "X$echo_testing_string" = 'X\t' && 347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 348 test "X$echo_testing_string" = "X$echo_test_string"; then 349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 350 export CONFIG_SHELL 351 SHELL="$CONFIG_SHELL" 352 export SHELL 353 echo="$CONFIG_SHELL $0 --fallback-echo" 354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 355 test "X$echo_testing_string" = 'X\t' && 356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 357 test "X$echo_testing_string" = "X$echo_test_string"; then 358 echo="$CONFIG_SHELL $0 --fallback-echo" 359 else 360 # maybe with a smaller string... 361 prev=: 362 363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 365 then 366 break 367 fi 368 prev="$cmd" 369 done 370 371 if test "$prev" != 'sed 50q "$0"'; then 372 echo_test_string=`eval $prev` 373 export echo_test_string 374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 375 else 376 # Oops. We lost completely, so just stick with echo. 377 echo=echo 378 fi 379 fi 380 fi 381 fi 382fi 383fi 384 385# Copy echo and quote the copy suitably for passing to libtool from 386# the Makefile, instead of quoting the original, which is used later. 387ECHO=$echo 388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 390fi 391 392 393 394 395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` 396 397tagnames=`echo "$tagnames,F77" | sed 's/^,//'` 398 399# Name of the host. 400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 401# so uname gets run too. 402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 403 404exec 6>&1 405 406# 407# Initializations. 408# 409ac_default_prefix=/usr/local 410ac_config_libobj_dir=. 411cross_compiling=no 412subdirs= 413MFLAGS= 414MAKEFLAGS= 415SHELL=${CONFIG_SHELL-/bin/sh} 416 417# Maximum number of lines to put in a shell here document. 418# This variable seems obsolete. It should probably be removed, and 419# only ac_max_sed_lines should be used. 420: ${ac_max_here_lines=38} 421 422# Identity of this package. 423PACKAGE_NAME='LLVM' 424PACKAGE_TARNAME='-llvm-' 425PACKAGE_VERSION='1.4' 426PACKAGE_STRING='LLVM 1.4' 427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' 428 429ac_subdirs_all="$ac_subdirs_all projects/${i}" 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_unique_file=""Makefile.config.in"" 468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 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 SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CXX_set=${CXX+set} 910ac_env_CXX_value=$CXX 911ac_cv_env_CXX_set=${CXX+set} 912ac_cv_env_CXX_value=$CXX 913ac_env_CXXFLAGS_set=${CXXFLAGS+set} 914ac_env_CXXFLAGS_value=$CXXFLAGS 915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 916ac_cv_env_CXXFLAGS_value=$CXXFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_CC_set=${CC+set} 926ac_env_CC_value=$CC 927ac_cv_env_CC_set=${CC+set} 928ac_cv_env_CC_value=$CC 929ac_env_CFLAGS_set=${CFLAGS+set} 930ac_env_CFLAGS_value=$CFLAGS 931ac_cv_env_CFLAGS_set=${CFLAGS+set} 932ac_cv_env_CFLAGS_value=$CFLAGS 933ac_env_CPP_set=${CPP+set} 934ac_env_CPP_value=$CPP 935ac_cv_env_CPP_set=${CPP+set} 936ac_cv_env_CPP_value=$CPP 937ac_env_CXXCPP_set=${CXXCPP+set} 938ac_env_CXXCPP_value=$CXXCPP 939ac_cv_env_CXXCPP_set=${CXXCPP+set} 940ac_cv_env_CXXCPP_value=$CXXCPP 941ac_env_F77_set=${F77+set} 942ac_env_F77_value=$F77 943ac_cv_env_F77_set=${F77+set} 944ac_cv_env_F77_value=$F77 945ac_env_FFLAGS_set=${FFLAGS+set} 946ac_env_FFLAGS_value=$FFLAGS 947ac_cv_env_FFLAGS_set=${FFLAGS+set} 948ac_cv_env_FFLAGS_value=$FFLAGS 949 950# 951# Report the --help message. 952# 953if test "$ac_init_help" = "long"; then 954 # Omit some internal or obsolete options to make the list less imposing. 955 # This message is too long to be a string in the A/UX 3.1 sh. 956 cat <<_ACEOF 957\`configure' configures LLVM 1.4 to adapt to many kinds of systems. 958 959Usage: $0 [OPTION]... [VAR=VALUE]... 960 961To assign environment variables (e.g., CC, CFLAGS...), specify them as 962VAR=VALUE. See below for descriptions of some of the useful variables. 963 964Defaults for the options are specified in brackets. 965 966Configuration: 967 -h, --help display this help and exit 968 --help=short display options specific to this package 969 --help=recursive display the short help of all the included packages 970 -V, --version display version information and exit 971 -q, --quiet, --silent do not print \`checking...' messages 972 --cache-file=FILE cache test results in FILE [disabled] 973 -C, --config-cache alias for \`--cache-file=config.cache' 974 -n, --no-create do not create output files 975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 976 977_ACEOF 978 979 cat <<_ACEOF 980Installation directories: 981 --prefix=PREFIX install architecture-independent files in PREFIX 982 [$ac_default_prefix] 983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 984 [PREFIX] 985 986By default, \`make install' will install all the files in 987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 988an installation prefix other than \`$ac_default_prefix' using \`--prefix', 989for instance \`--prefix=\$HOME'. 990 991For better control, use the options below. 992 993Fine tuning of the installation directories: 994 --bindir=DIR user executables [EPREFIX/bin] 995 --sbindir=DIR system admin executables [EPREFIX/sbin] 996 --libexecdir=DIR program executables [EPREFIX/libexec] 997 --datadir=DIR read-only architecture-independent data [PREFIX/share] 998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1001 --libdir=DIR object code libraries [EPREFIX/lib] 1002 --includedir=DIR C header files [PREFIX/include] 1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1004 --infodir=DIR info documentation [PREFIX/info] 1005 --mandir=DIR man documentation [PREFIX/man] 1006_ACEOF 1007 1008 cat <<\_ACEOF 1009 1010System types: 1011 --build=BUILD configure for building on BUILD [guessed] 1012 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1013 --target=TARGET configure for building compilers for TARGET [HOST] 1014_ACEOF 1015fi 1016 1017if test -n "$ac_init_help"; then 1018 case $ac_init_help in 1019 short | recursive ) echo "Configuration of LLVM 1.4:";; 1020 esac 1021 cat <<\_ACEOF 1022 1023Optional Features: 1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1026 --enable-shared[=PKGS] 1027 build shared libraries [default=yes] 1028 --enable-static[=PKGS] 1029 build static libraries [default=yes] 1030 --enable-fast-install[=PKGS] 1031 optimize for fast installation [default=yes] 1032 --disable-libtool-lock avoid locking (might break parallel builds) 1033 --enable-optimized Compile with optimizations enabled (default is NO) 1034 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR) 1035 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR) 1036 --enable-povray=ARG Use povray as a benchmark (srcs in DIR) 1037 --enable-precompiled_bytecode 1038 Use pre-compiled bytecode (default is NO) 1039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES) 1040 --enable-jit Enable Just In Time Compiling (default is YES) 1041 1042Optional Packages: 1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1046 --with-pic try to use only PIC/non-PIC objects [default=use 1047 both] 1048 --with-tags[=TAGS] 1049 include additional configurations [automatic] 1050 --with-llvmgccdir Location of LLVM GCC front-end 1051 --with-bcrepos Location of Bytecode Repository 1052 --with-papi Location of PAPI 1053 1054Some influential environment variables: 1055 CXX C++ compiler command 1056 CXXFLAGS C++ compiler flags 1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1058 nonstandard directory <lib dir> 1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1060 headers in a nonstandard directory <include dir> 1061 CC C compiler command 1062 CFLAGS C compiler flags 1063 CPP C preprocessor 1064 CXXCPP C++ preprocessor 1065 F77 Fortran 77 compiler command 1066 FFLAGS Fortran 77 compiler flags 1067 1068Use these variables to override the choices made by `configure' or to help 1069it to find libraries and programs with nonstandard names/locations. 1070 1071Report bugs to <llvmbugs@cs.uiuc.edu>. 1072_ACEOF 1073fi 1074 1075if test "$ac_init_help" = "recursive"; then 1076 # If there are subdirs, report their specific --help. 1077 ac_popdir=`pwd` 1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1079 test -d $ac_dir || continue 1080 ac_builddir=. 1081 1082if test "$ac_dir" != .; then 1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1084 # A "../" for each directory in $ac_dir_suffix. 1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1086else 1087 ac_dir_suffix= ac_top_builddir= 1088fi 1089 1090case $srcdir in 1091 .) # No --srcdir option. We are building in place. 1092 ac_srcdir=. 1093 if test -z "$ac_top_builddir"; then 1094 ac_top_srcdir=. 1095 else 1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1097 fi ;; 1098 [\\/]* | ?:[\\/]* ) # Absolute path. 1099 ac_srcdir=$srcdir$ac_dir_suffix; 1100 ac_top_srcdir=$srcdir ;; 1101 *) # Relative path. 1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1103 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1104esac 1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1106# absolute. 1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 1109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1111 1112 cd $ac_dir 1113 # Check for guested configure; otherwise get Cygnus style configure. 1114 if test -f $ac_srcdir/configure.gnu; then 1115 echo 1116 $SHELL $ac_srcdir/configure.gnu --help=recursive 1117 elif test -f $ac_srcdir/configure; then 1118 echo 1119 $SHELL $ac_srcdir/configure --help=recursive 1120 elif test -f $ac_srcdir/configure.ac || 1121 test -f $ac_srcdir/configure.in; then 1122 echo 1123 $ac_configure --help 1124 else 1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1126 fi 1127 cd $ac_popdir 1128 done 1129fi 1130 1131test -n "$ac_init_help" && exit 0 1132if $ac_init_version; then 1133 cat <<\_ACEOF 1134LLVM configure 1.4 1135generated by GNU Autoconf 2.57 1136 1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1138Free Software Foundation, Inc. 1139This configure script is free software; the Free Software Foundation 1140gives unlimited permission to copy, distribute and modify it. 1141_ACEOF 1142 exit 0 1143fi 1144exec 5>config.log 1145cat >&5 <<_ACEOF 1146This file contains any messages produced by compilers while 1147running configure, to aid debugging if configure makes a mistake. 1148 1149It was created by LLVM $as_me 1.4, which was 1150generated by GNU Autoconf 2.57. Invocation command line was 1151 1152 $ $0 $@ 1153 1154_ACEOF 1155{ 1156cat <<_ASUNAME 1157## --------- ## 1158## Platform. ## 1159## --------- ## 1160 1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1162uname -m = `(uname -m) 2>/dev/null || echo unknown` 1163uname -r = `(uname -r) 2>/dev/null || echo unknown` 1164uname -s = `(uname -s) 2>/dev/null || echo unknown` 1165uname -v = `(uname -v) 2>/dev/null || echo unknown` 1166 1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1169 1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1177 1178_ASUNAME 1179 1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1181for as_dir in $PATH 1182do 1183 IFS=$as_save_IFS 1184 test -z "$as_dir" && as_dir=. 1185 echo "PATH: $as_dir" 1186done 1187 1188} >&5 1189 1190cat >&5 <<_ACEOF 1191 1192 1193## ----------- ## 1194## Core tests. ## 1195## ----------- ## 1196 1197_ACEOF 1198 1199 1200# Keep a trace of the command line. 1201# Strip out --no-create and --no-recursion so they do not pile up. 1202# Strip out --silent because we don't want to record it for future runs. 1203# Also quote any args containing shell meta-characters. 1204# Make two passes to allow for proper duplicate-argument suppression. 1205ac_configure_args= 1206ac_configure_args0= 1207ac_configure_args1= 1208ac_sep= 1209ac_must_keep_next=false 1210for ac_pass in 1 2 1211do 1212 for ac_arg 1213 do 1214 case $ac_arg in 1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1217 | -silent | --silent | --silen | --sile | --sil) 1218 continue ;; 1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1221 esac 1222 case $ac_pass in 1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1224 2) 1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1226 if test $ac_must_keep_next = true; then 1227 ac_must_keep_next=false # Got value, back to normal. 1228 else 1229 case $ac_arg in 1230 *=* | --config-cache | -C | -disable-* | --disable-* \ 1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1233 | -with-* | --with-* | -without-* | --without-* | --x) 1234 case "$ac_configure_args0 " in 1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1236 esac 1237 ;; 1238 -* ) ac_must_keep_next=true ;; 1239 esac 1240 fi 1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1242 # Get rid of the leading space. 1243 ac_sep=" " 1244 ;; 1245 esac 1246 done 1247done 1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1250 1251# When interrupted or exit'd, cleanup temporary files, and complete 1252# config.log. We remove comments because anyway the quotes in there 1253# would cause problems or look ugly. 1254# WARNING: Be sure not to use single quotes in there, as some shells, 1255# such as our DU 5.0 friend, will then `close' the trap. 1256trap 'exit_status=$? 1257 # Save into config.log some information that might help in debugging. 1258 { 1259 echo 1260 1261 cat <<\_ASBOX 1262## ---------------- ## 1263## Cache variables. ## 1264## ---------------- ## 1265_ASBOX 1266 echo 1267 # The following way of writing the cache mishandles newlines in values, 1268{ 1269 (set) 2>&1 | 1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1271 *ac_space=\ *) 1272 sed -n \ 1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1275 ;; 1276 *) 1277 sed -n \ 1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1279 ;; 1280 esac; 1281} 1282 echo 1283 1284 cat <<\_ASBOX 1285## ----------------- ## 1286## Output variables. ## 1287## ----------------- ## 1288_ASBOX 1289 echo 1290 for ac_var in $ac_subst_vars 1291 do 1292 eval ac_val=$`echo $ac_var` 1293 echo "$ac_var='"'"'$ac_val'"'"'" 1294 done | sort 1295 echo 1296 1297 if test -n "$ac_subst_files"; then 1298 cat <<\_ASBOX 1299## ------------- ## 1300## Output files. ## 1301## ------------- ## 1302_ASBOX 1303 echo 1304 for ac_var in $ac_subst_files 1305 do 1306 eval ac_val=$`echo $ac_var` 1307 echo "$ac_var='"'"'$ac_val'"'"'" 1308 done | sort 1309 echo 1310 fi 1311 1312 if test -s confdefs.h; then 1313 cat <<\_ASBOX 1314## ----------- ## 1315## confdefs.h. ## 1316## ----------- ## 1317_ASBOX 1318 echo 1319 sed "/^$/d" confdefs.h | sort 1320 echo 1321 fi 1322 test "$ac_signal" != 0 && 1323 echo "$as_me: caught signal $ac_signal" 1324 echo "$as_me: exit $exit_status" 1325 } >&5 1326 rm -f core core.* *.core && 1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1328 exit $exit_status 1329 ' 0 1330for ac_signal in 1 2 13 15; do 1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1332done 1333ac_signal=0 1334 1335# confdefs.h avoids OS command line length limits that DEFS can exceed. 1336rm -rf conftest* confdefs.h 1337# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1338echo >confdefs.h 1339 1340# Predefined preprocessor variables. 1341 1342cat >>confdefs.h <<_ACEOF 1343#define PACKAGE_NAME "$PACKAGE_NAME" 1344_ACEOF 1345 1346 1347cat >>confdefs.h <<_ACEOF 1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1349_ACEOF 1350 1351 1352cat >>confdefs.h <<_ACEOF 1353#define PACKAGE_VERSION "$PACKAGE_VERSION" 1354_ACEOF 1355 1356 1357cat >>confdefs.h <<_ACEOF 1358#define PACKAGE_STRING "$PACKAGE_STRING" 1359_ACEOF 1360 1361 1362cat >>confdefs.h <<_ACEOF 1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1364_ACEOF 1365 1366 1367# Let the site file select an alternate cache file if it wants to. 1368# Prefer explicitly selected file to automatically selected ones. 1369if test -z "$CONFIG_SITE"; then 1370 if test "x$prefix" != xNONE; then 1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1372 else 1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1374 fi 1375fi 1376for ac_site_file in $CONFIG_SITE; do 1377 if test -r "$ac_site_file"; then 1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1379echo "$as_me: loading site script $ac_site_file" >&6;} 1380 sed 's/^/| /' "$ac_site_file" >&5 1381 . "$ac_site_file" 1382 fi 1383done 1384 1385if test -r "$cache_file"; then 1386 # Some versions of bash will fail to source /dev/null (special 1387 # files actually), so we avoid doing that. 1388 if test -f "$cache_file"; then 1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1390echo "$as_me: loading cache $cache_file" >&6;} 1391 case $cache_file in 1392 [\\/]* | ?:[\\/]* ) . $cache_file;; 1393 *) . ./$cache_file;; 1394 esac 1395 fi 1396else 1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1398echo "$as_me: creating cache $cache_file" >&6;} 1399 >$cache_file 1400fi 1401 1402# Check that the precious variables saved in the cache have kept the same 1403# value. 1404ac_cache_corrupted=false 1405for ac_var in `(set) 2>&1 | 1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1408 eval ac_new_set=\$ac_env_${ac_var}_set 1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1410 eval ac_new_val="\$ac_env_${ac_var}_value" 1411 case $ac_old_set,$ac_new_set in 1412 set,) 1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1415 ac_cache_corrupted=: ;; 1416 ,set) 1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1419 ac_cache_corrupted=: ;; 1420 ,);; 1421 *) 1422 if test "x$ac_old_val" != "x$ac_new_val"; then 1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1426echo "$as_me: former value: $ac_old_val" >&2;} 1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1428echo "$as_me: current value: $ac_new_val" >&2;} 1429 ac_cache_corrupted=: 1430 fi;; 1431 esac 1432 # Pass precious variables to config.status. 1433 if test "$ac_new_set" = set; then 1434 case $ac_new_val in 1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1437 *) ac_arg=$ac_var=$ac_new_val ;; 1438 esac 1439 case " $ac_configure_args " in 1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1442 esac 1443 fi 1444done 1445if $ac_cache_corrupted; then 1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1447echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1450 { (exit 1); exit 1; }; } 1451fi 1452 1453ac_ext=c 1454ac_cpp='$CPP $CPPFLAGS' 1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1457ac_compiler_gnu=$ac_cv_c_compiler_gnu 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486ac_aux_dir= 1487for ac_dir in autoconf $srcdir/autoconf; do 1488 if test -f $ac_dir/install-sh; then 1489 ac_aux_dir=$ac_dir 1490 ac_install_sh="$ac_aux_dir/install-sh -c" 1491 break 1492 elif test -f $ac_dir/install.sh; then 1493 ac_aux_dir=$ac_dir 1494 ac_install_sh="$ac_aux_dir/install.sh -c" 1495 break 1496 elif test -f $ac_dir/shtool; then 1497 ac_aux_dir=$ac_dir 1498 ac_install_sh="$ac_aux_dir/shtool install -c" 1499 break 1500 fi 1501done 1502if test -z "$ac_aux_dir"; then 1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1505 { (exit 1); exit 1; }; } 1506fi 1507ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1508ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1510 1511 1512if test ${srcdir} != "." 1513then 1514 if test -f ${srcdir}/include/llvm/Config/config.h 1515 then 1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1517echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1518 { (exit 1); exit 1; }; } 1519 fi 1520fi 1521 1522for i in `ls ${srcdir}/projects` 1523do 1524 if test ${i} != "CVS" 1525 then 1526 if test -f ${srcdir}/projects/${i}/configure 1527 then 1528 1529 1530subdirs="$subdirs projects/${i}" 1531 1532 fi 1533 fi 1534done 1535 1536 ac_config_headers="$ac_config_headers include/llvm/Config/config.h" 1537 1538 1539 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" 1540 1541 1542 ac_config_commands="$ac_config_commands Makefile" 1543 1544 1545 ac_config_commands="$ac_config_commands Makefile.common" 1546 1547 1548 ac_config_commands="$ac_config_commands examples/Makefile" 1549 1550 1551 ac_config_commands="$ac_config_commands lib/Makefile" 1552 1553 1554 ac_config_commands="$ac_config_commands runtime/Makefile" 1555 1556 1557 ac_config_commands="$ac_config_commands test/Makefile" 1558 1559 1560 ac_config_commands="$ac_config_commands test/Makefile.tests" 1561 1562 1563 ac_config_commands="$ac_config_commands test/QMTest/llvm.py" 1564 1565 1566 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" 1567 1568 1569 ac_config_commands="$ac_config_commands test/Programs/Makefile" 1570 1571 1572 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs" 1573 1574 1575 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests" 1576 1577 1578 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile" 1579 1580 1581 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report" 1582 1583 1584 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report" 1585 1586 1587 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile" 1588 1589 1590 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile" 1591 1592 1593 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile" 1594 1595 1596 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile" 1597 1598 1599 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report" 1600 1601 1602 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile" 1603 1604 1605 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report" 1606 1607 1608 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile" 1609 1610 1611 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot" 1612 1613 1614 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile" 1615 1616 1617 ac_config_commands="$ac_config_commands test/Programs/External/Makefile" 1618 1619 1620 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile" 1621 1622 1623 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec" 1624 1625 1626 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000" 1627 1628 1629 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95" 1630 1631 1632 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile" 1633 1634 1635 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc" 1636 1637 1638 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" 1639 1640 1641 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" 1642 1643 1644 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" 1645 1646 1647 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" 1648 1649 1650 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" 1651 1652 1653 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" 1654 1655 1656 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" 1657 1658 1659 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" 1660 1661 1662 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" 1663 1664 1665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" 1666 1667 1668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" 1669 1670 1671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" 1672 1673 1674 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" 1675 1676 1677 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile" 1678 1679 1680 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc" 1681 1682 1683 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" 1684 1685 1686 ac_config_commands="$ac_config_commands tools/Makefile" 1687 1688 1689 ac_config_commands="$ac_config_commands utils/Makefile" 1690 1691 1692 ac_config_commands="$ac_config_commands projects/Makefile" 1693 1694 1695 1696# Find a good install program. We prefer a C program (faster), 1697# so one script is as good as another. But avoid the broken or 1698# incompatible versions: 1699# SysV /etc/install, /usr/sbin/install 1700# SunOS /usr/etc/install 1701# IRIX /sbin/install 1702# AIX /bin/install 1703# AmigaOS /C/install, which installs bootblocks on floppy discs 1704# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1705# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1706# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1707# ./install, which can be erroneously created by make from ./install.sh. 1708echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1709echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1710if test -z "$INSTALL"; then 1711if test "${ac_cv_path_install+set}" = set; then 1712 echo $ECHO_N "(cached) $ECHO_C" >&6 1713else 1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1715for as_dir in $PATH 1716do 1717 IFS=$as_save_IFS 1718 test -z "$as_dir" && as_dir=. 1719 # Account for people who put trailing slashes in PATH elements. 1720case $as_dir/ in 1721 ./ | .// | /cC/* | \ 1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1723 /usr/ucb/* ) ;; 1724 *) 1725 # OSF1 and SCO ODT 3.0 have their own names for install. 1726 # Don't use installbsd from OSF since it installs stuff as root 1727 # by default. 1728 for ac_prog in ginstall scoinst install; do 1729 for ac_exec_ext in '' $ac_executable_extensions; do 1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1731 if test $ac_prog = install && 1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1733 # AIX install. It has an incompatible calling convention. 1734 : 1735 elif test $ac_prog = install && 1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1737 # program-specific install script used by HP pwplus--don't use. 1738 : 1739 else 1740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1741 break 3 1742 fi 1743 fi 1744 done 1745 done 1746 ;; 1747esac 1748done 1749 1750 1751fi 1752 if test "${ac_cv_path_install+set}" = set; then 1753 INSTALL=$ac_cv_path_install 1754 else 1755 # As a last resort, use the slow shell script. We don't cache a 1756 # path for INSTALL within a source directory, because that will 1757 # break other packages using the cache if that directory is 1758 # removed, or if the path is relative. 1759 INSTALL=$ac_install_sh 1760 fi 1761fi 1762echo "$as_me:$LINENO: result: $INSTALL" >&5 1763echo "${ECHO_T}$INSTALL" >&6 1764 1765# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1766# It thinks the first close brace ends the variable substitution. 1767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1768 1769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1770 1771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1772 1773 1774# Make sure we can run config.sub. 1775$ac_config_sub sun4 >/dev/null 2>&1 || 1776 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1777echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1778 { (exit 1); exit 1; }; } 1779 1780echo "$as_me:$LINENO: checking build system type" >&5 1781echo $ECHO_N "checking build system type... $ECHO_C" >&6 1782if test "${ac_cv_build+set}" = set; then 1783 echo $ECHO_N "(cached) $ECHO_C" >&6 1784else 1785 ac_cv_build_alias=$build_alias 1786test -z "$ac_cv_build_alias" && 1787 ac_cv_build_alias=`$ac_config_guess` 1788test -z "$ac_cv_build_alias" && 1789 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1790echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1791 { (exit 1); exit 1; }; } 1792ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1793 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1794echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1795 { (exit 1); exit 1; }; } 1796 1797fi 1798echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1799echo "${ECHO_T}$ac_cv_build" >&6 1800build=$ac_cv_build 1801build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1802build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1803build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1804 1805 1806echo "$as_me:$LINENO: checking host system type" >&5 1807echo $ECHO_N "checking host system type... $ECHO_C" >&6 1808if test "${ac_cv_host+set}" = set; then 1809 echo $ECHO_N "(cached) $ECHO_C" >&6 1810else 1811 ac_cv_host_alias=$host_alias 1812test -z "$ac_cv_host_alias" && 1813 ac_cv_host_alias=$ac_cv_build_alias 1814ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1815 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1816echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1817 { (exit 1); exit 1; }; } 1818 1819fi 1820echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1821echo "${ECHO_T}$ac_cv_host" >&6 1822host=$ac_cv_host 1823host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1824host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1825host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1826 1827 1828echo "$as_me:$LINENO: checking target system type" >&5 1829echo $ECHO_N "checking target system type... $ECHO_C" >&6 1830if test "${ac_cv_target+set}" = set; then 1831 echo $ECHO_N "(cached) $ECHO_C" >&6 1832else 1833 ac_cv_target_alias=$target_alias 1834test "x$ac_cv_target_alias" = "x" && 1835 ac_cv_target_alias=$ac_cv_host_alias 1836ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1837 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1838echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1839 { (exit 1); exit 1; }; } 1840 1841fi 1842echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1843echo "${ECHO_T}$ac_cv_target" >&6 1844target=$ac_cv_target 1845target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1846target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1847target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1848 1849 1850# The aliases save the names the user supplied, while $host etc. 1851# will get canonicalized. 1852test -n "$target_alias" && 1853 test "$program_prefix$program_suffix$program_transform_name" = \ 1854 NONENONEs,x,x, && 1855 program_prefix=${target_alias}- 1856 1857 1858echo "$as_me:$LINENO: checking support for generic build operating system" >&5 1859echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6 1860case $build in 1861 *-*-aix*) 1862 OS=AIX 1863 1864 platform_type="AIX" 1865 ;; 1866 *-*-cygwin*) 1867 OS=Cygwin 1868 1869 platform_type="Cygwin" 1870 ;; 1871 *-*-darwin*) 1872 OS=Darwin 1873 1874 platform_type="Darwin" 1875 ;; 1876 *-*-freebsd*) 1877 OS=Linux 1878 1879 platform_type="FreeBSD" 1880 ;; 1881 *-*-interix*) 1882 OS=SunOS 1883 1884 platform_type="Interix" 1885 ;; 1886 *-*-linux*) 1887 OS=Linux 1888 1889 platform_type="Linux" 1890 if test -d /home/vadve/lattner/local/x86/llvm-gcc 1891 then 1892 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ 1893 1894 fi 1895 ;; 1896 *-*-solaris*) 1897 OS=SunOS 1898 1899 platform_type="SunOS" 1900 if test -d /home/vadve/lattner/local/sparc/llvm-gcc 1901 then 1902 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ 1903 1904 fi 1905 ;; 1906 *-*-win32*) 1907 OS=Win32 1908 1909 platform_type="Win32" 1910 ;; 1911 *) 1912 OS=Unknown 1913 1914 platform_type="Unknown" 1915 ;; 1916esac 1917 1918if test "$platform_type" = "Unknown" ; then 1919 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5 1920echo "$as_me: error: Platform is unknown, configure can't continue" >&2;} 1921 { (exit 1); exit 1; }; } 1922fi 1923 1924 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type" 1925 1926 1927echo "$as_me:$LINENO: result: $platform_type" >&5 1928echo "${ECHO_T}$platform_type" >&6 1929 1930echo "$as_me:$LINENO: checking target architecture" >&5 1931echo $ECHO_N "checking target architecture... $ECHO_C" >&6 1932case $target in 1933 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 1934 1935 ;; 1936esac 1937 1938case $target in 1939 i*86-*) 1940 ARCH="x86" 1941 ARCH=x86 1942 1943 ;; 1944 sparc*-*) 1945 ARCH="Sparc" 1946 ARCH=Sparc 1947 1948 ;; 1949 powerpc*-*) 1950 ARCH="PowerPC" 1951 ARCH=PowerPC 1952 1953 ;; 1954 *) 1955 ARCH="Unknown" 1956 ARCH=Unknown 1957 1958 ;; 1959esac 1960 1961echo "$as_me:$LINENO: result: $ARCH" >&5 1962echo "${ECHO_T}$ARCH" >&6 1963 1964ac_ext=cc 1965ac_cpp='$CXXCPP $CPPFLAGS' 1966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1969if test -n "$ac_tool_prefix"; then 1970 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1971 do 1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1973set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1974echo "$as_me:$LINENO: checking for $ac_word" >&5 1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1976if test "${ac_cv_prog_CXX+set}" = set; then 1977 echo $ECHO_N "(cached) $ECHO_C" >&6 1978else 1979 if test -n "$CXX"; then 1980 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1981else 1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1983for as_dir in $PATH 1984do 1985 IFS=$as_save_IFS 1986 test -z "$as_dir" && as_dir=. 1987 for ac_exec_ext in '' $ac_executable_extensions; do 1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1989 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1991 break 2 1992 fi 1993done 1994done 1995 1996fi 1997fi 1998CXX=$ac_cv_prog_CXX 1999if test -n "$CXX"; then 2000 echo "$as_me:$LINENO: result: $CXX" >&5 2001echo "${ECHO_T}$CXX" >&6 2002else 2003 echo "$as_me:$LINENO: result: no" >&5 2004echo "${ECHO_T}no" >&6 2005fi 2006 2007 test -n "$CXX" && break 2008 done 2009fi 2010if test -z "$CXX"; then 2011 ac_ct_CXX=$CXX 2012 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2013do 2014 # Extract the first word of "$ac_prog", so it can be a program name with args. 2015set dummy $ac_prog; ac_word=$2 2016echo "$as_me:$LINENO: checking for $ac_word" >&5 2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2018if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2019 echo $ECHO_N "(cached) $ECHO_C" >&6 2020else 2021 if test -n "$ac_ct_CXX"; then 2022 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2023else 2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2025for as_dir in $PATH 2026do 2027 IFS=$as_save_IFS 2028 test -z "$as_dir" && as_dir=. 2029 for ac_exec_ext in '' $ac_executable_extensions; do 2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2031 ac_cv_prog_ac_ct_CXX="$ac_prog" 2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2033 break 2 2034 fi 2035done 2036done 2037 2038fi 2039fi 2040ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2041if test -n "$ac_ct_CXX"; then 2042 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2043echo "${ECHO_T}$ac_ct_CXX" >&6 2044else 2045 echo "$as_me:$LINENO: result: no" >&5 2046echo "${ECHO_T}no" >&6 2047fi 2048 2049 test -n "$ac_ct_CXX" && break 2050done 2051test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2052 2053 CXX=$ac_ct_CXX 2054fi 2055 2056 2057# Provide some information about the compiler. 2058echo "$as_me:$LINENO:" \ 2059 "checking for C++ compiler version" >&5 2060ac_compiler=`set X $ac_compile; echo $2` 2061{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2062 (eval $ac_compiler --version </dev/null >&5) 2>&5 2063 ac_status=$? 2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2065 (exit $ac_status); } 2066{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2067 (eval $ac_compiler -v </dev/null >&5) 2>&5 2068 ac_status=$? 2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2070 (exit $ac_status); } 2071{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2072 (eval $ac_compiler -V </dev/null >&5) 2>&5 2073 ac_status=$? 2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2075 (exit $ac_status); } 2076 2077cat >conftest.$ac_ext <<_ACEOF 2078#line $LINENO "configure" 2079/* confdefs.h. */ 2080_ACEOF 2081cat confdefs.h >>conftest.$ac_ext 2082cat >>conftest.$ac_ext <<_ACEOF 2083/* end confdefs.h. */ 2084 2085int 2086main () 2087{ 2088 2089 ; 2090 return 0; 2091} 2092_ACEOF 2093ac_clean_files_save=$ac_clean_files 2094ac_clean_files="$ac_clean_files a.out a.exe b.out" 2095# Try to create an executable without -o first, disregard a.out. 2096# It will help us diagnose broken compilers, and finding out an intuition 2097# of exeext. 2098echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 2099echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 2100ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2101if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2102 (eval $ac_link_default) 2>&5 2103 ac_status=$? 2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2105 (exit $ac_status); }; then 2106 # Find the output, starting from the most likely. This scheme is 2107# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2108# resort. 2109 2110# Be careful to initialize this variable, since it used to be cached. 2111# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2112ac_cv_exeext= 2113# b.out is created by i960 compilers. 2114for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2115do 2116 test -f "$ac_file" || continue 2117 case $ac_file in 2118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2119 ;; 2120 conftest.$ac_ext ) 2121 # This is the source file. 2122 ;; 2123 [ab].out ) 2124 # We found the default executable, but exeext='' is most 2125 # certainly right. 2126 break;; 2127 *.* ) 2128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2129 # FIXME: I believe we export ac_cv_exeext for Libtool, 2130 # but it would be cool to find out if it's true. Does anybody 2131 # maintain Libtool? --akim. 2132 export ac_cv_exeext 2133 break;; 2134 * ) 2135 break;; 2136 esac 2137done 2138else 2139 echo "$as_me: failed program was:" >&5 2140sed 's/^/| /' conftest.$ac_ext >&5 2141 2142{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2143See \`config.log' for more details." >&5 2144echo "$as_me: error: C++ compiler cannot create executables 2145See \`config.log' for more details." >&2;} 2146 { (exit 77); exit 77; }; } 2147fi 2148 2149ac_exeext=$ac_cv_exeext 2150echo "$as_me:$LINENO: result: $ac_file" >&5 2151echo "${ECHO_T}$ac_file" >&6 2152 2153# Check the compiler produces executables we can run. If not, either 2154# the compiler is broken, or we cross compile. 2155echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2156echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 2157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2158# If not cross compiling, check that we can run a simple program. 2159if test "$cross_compiling" != yes; then 2160 if { ac_try='./$ac_file' 2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2162 (eval $ac_try) 2>&5 2163 ac_status=$? 2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2165 (exit $ac_status); }; }; then 2166 cross_compiling=no 2167 else 2168 if test "$cross_compiling" = maybe; then 2169 cross_compiling=yes 2170 else 2171 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2172If you meant to cross compile, use \`--host'. 2173See \`config.log' for more details." >&5 2174echo "$as_me: error: cannot run C++ compiled programs. 2175If you meant to cross compile, use \`--host'. 2176See \`config.log' for more details." >&2;} 2177 { (exit 1); exit 1; }; } 2178 fi 2179 fi 2180fi 2181echo "$as_me:$LINENO: result: yes" >&5 2182echo "${ECHO_T}yes" >&6 2183 2184rm -f a.out a.exe conftest$ac_cv_exeext b.out 2185ac_clean_files=$ac_clean_files_save 2186# Check the compiler produces executables we can run. If not, either 2187# the compiler is broken, or we cross compile. 2188echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2190echo "$as_me:$LINENO: result: $cross_compiling" >&5 2191echo "${ECHO_T}$cross_compiling" >&6 2192 2193echo "$as_me:$LINENO: checking for suffix of executables" >&5 2194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2196 (eval $ac_link) 2>&5 2197 ac_status=$? 2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2199 (exit $ac_status); }; then 2200 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2201# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2202# work properly (i.e., refer to `conftest.exe'), while it won't with 2203# `rm'. 2204for ac_file in conftest.exe conftest conftest.*; do 2205 test -f "$ac_file" || continue 2206 case $ac_file in 2207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2209 export ac_cv_exeext 2210 break;; 2211 * ) break;; 2212 esac 2213done 2214else 2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2216See \`config.log' for more details." >&5 2217echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2218See \`config.log' for more details." >&2;} 2219 { (exit 1); exit 1; }; } 2220fi 2221 2222rm -f conftest$ac_cv_exeext 2223echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2224echo "${ECHO_T}$ac_cv_exeext" >&6 2225 2226rm -f conftest.$ac_ext 2227EXEEXT=$ac_cv_exeext 2228ac_exeext=$EXEEXT 2229echo "$as_me:$LINENO: checking for suffix of object files" >&5 2230echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2231if test "${ac_cv_objext+set}" = set; then 2232 echo $ECHO_N "(cached) $ECHO_C" >&6 2233else 2234 cat >conftest.$ac_ext <<_ACEOF 2235#line $LINENO "configure" 2236/* confdefs.h. */ 2237_ACEOF 2238cat confdefs.h >>conftest.$ac_ext 2239cat >>conftest.$ac_ext <<_ACEOF 2240/* end confdefs.h. */ 2241 2242int 2243main () 2244{ 2245 2246 ; 2247 return 0; 2248} 2249_ACEOF 2250rm -f conftest.o conftest.obj 2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2252 (eval $ac_compile) 2>&5 2253 ac_status=$? 2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2255 (exit $ac_status); }; then 2256 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2257 case $ac_file in 2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2260 break;; 2261 esac 2262done 2263else 2264 echo "$as_me: failed program was:" >&5 2265sed 's/^/| /' conftest.$ac_ext >&5 2266 2267{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2268See \`config.log' for more details." >&5 2269echo "$as_me: error: cannot compute suffix of object files: cannot compile 2270See \`config.log' for more details." >&2;} 2271 { (exit 1); exit 1; }; } 2272fi 2273 2274rm -f conftest.$ac_cv_objext conftest.$ac_ext 2275fi 2276echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2277echo "${ECHO_T}$ac_cv_objext" >&6 2278OBJEXT=$ac_cv_objext 2279ac_objext=$OBJEXT 2280echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2281echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2282if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2283 echo $ECHO_N "(cached) $ECHO_C" >&6 2284else 2285 cat >conftest.$ac_ext <<_ACEOF 2286#line $LINENO "configure" 2287/* confdefs.h. */ 2288_ACEOF 2289cat confdefs.h >>conftest.$ac_ext 2290cat >>conftest.$ac_ext <<_ACEOF 2291/* end confdefs.h. */ 2292 2293int 2294main () 2295{ 2296#ifndef __GNUC__ 2297 choke me 2298#endif 2299 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304rm -f conftest.$ac_objext 2305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2306 (eval $ac_compile) 2>&5 2307 ac_status=$? 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2309 (exit $ac_status); } && 2310 { ac_try='test -s conftest.$ac_objext' 2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2312 (eval $ac_try) 2>&5 2313 ac_status=$? 2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 (exit $ac_status); }; }; then 2316 ac_compiler_gnu=yes 2317else 2318 echo "$as_me: failed program was:" >&5 2319sed 's/^/| /' conftest.$ac_ext >&5 2320 2321ac_compiler_gnu=no 2322fi 2323rm -f conftest.$ac_objext conftest.$ac_ext 2324ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2325 2326fi 2327echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2328echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2329GXX=`test $ac_compiler_gnu = yes && echo yes` 2330ac_test_CXXFLAGS=${CXXFLAGS+set} 2331ac_save_CXXFLAGS=$CXXFLAGS 2332CXXFLAGS="-g" 2333echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2334echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2335if test "${ac_cv_prog_cxx_g+set}" = set; then 2336 echo $ECHO_N "(cached) $ECHO_C" >&6 2337else 2338 cat >conftest.$ac_ext <<_ACEOF 2339#line $LINENO "configure" 2340/* confdefs.h. */ 2341_ACEOF 2342cat confdefs.h >>conftest.$ac_ext 2343cat >>conftest.$ac_ext <<_ACEOF 2344/* end confdefs.h. */ 2345 2346int 2347main () 2348{ 2349 2350 ; 2351 return 0; 2352} 2353_ACEOF 2354rm -f conftest.$ac_objext 2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2356 (eval $ac_compile) 2>&5 2357 ac_status=$? 2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2359 (exit $ac_status); } && 2360 { ac_try='test -s conftest.$ac_objext' 2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2362 (eval $ac_try) 2>&5 2363 ac_status=$? 2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2365 (exit $ac_status); }; }; then 2366 ac_cv_prog_cxx_g=yes 2367else 2368 echo "$as_me: failed program was:" >&5 2369sed 's/^/| /' conftest.$ac_ext >&5 2370 2371ac_cv_prog_cxx_g=no 2372fi 2373rm -f conftest.$ac_objext conftest.$ac_ext 2374fi 2375echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2376echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2377if test "$ac_test_CXXFLAGS" = set; then 2378 CXXFLAGS=$ac_save_CXXFLAGS 2379elif test $ac_cv_prog_cxx_g = yes; then 2380 if test "$GXX" = yes; then 2381 CXXFLAGS="-g -O2" 2382 else 2383 CXXFLAGS="-g" 2384 fi 2385else 2386 if test "$GXX" = yes; then 2387 CXXFLAGS="-O2" 2388 else 2389 CXXFLAGS= 2390 fi 2391fi 2392for ac_declaration in \ 2393 ''\ 2394 '#include <stdlib.h>' \ 2395 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2396 'extern "C" void std::exit (int); using std::exit;' \ 2397 'extern "C" void exit (int) throw ();' \ 2398 'extern "C" void exit (int);' \ 2399 'void exit (int);' 2400do 2401 cat >conftest.$ac_ext <<_ACEOF 2402#line $LINENO "configure" 2403/* confdefs.h. */ 2404_ACEOF 2405cat confdefs.h >>conftest.$ac_ext 2406cat >>conftest.$ac_ext <<_ACEOF 2407/* end confdefs.h. */ 2408#include <stdlib.h> 2409$ac_declaration 2410int 2411main () 2412{ 2413exit (42); 2414 ; 2415 return 0; 2416} 2417_ACEOF 2418rm -f conftest.$ac_objext 2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2420 (eval $ac_compile) 2>&5 2421 ac_status=$? 2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2423 (exit $ac_status); } && 2424 { ac_try='test -s conftest.$ac_objext' 2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2426 (eval $ac_try) 2>&5 2427 ac_status=$? 2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2429 (exit $ac_status); }; }; then 2430 : 2431else 2432 echo "$as_me: failed program was:" >&5 2433sed 's/^/| /' conftest.$ac_ext >&5 2434 2435continue 2436fi 2437rm -f conftest.$ac_objext conftest.$ac_ext 2438 cat >conftest.$ac_ext <<_ACEOF 2439#line $LINENO "configure" 2440/* confdefs.h. */ 2441_ACEOF 2442cat confdefs.h >>conftest.$ac_ext 2443cat >>conftest.$ac_ext <<_ACEOF 2444/* end confdefs.h. */ 2445$ac_declaration 2446int 2447main () 2448{ 2449exit (42); 2450 ; 2451 return 0; 2452} 2453_ACEOF 2454rm -f conftest.$ac_objext 2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2456 (eval $ac_compile) 2>&5 2457 ac_status=$? 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); } && 2460 { ac_try='test -s conftest.$ac_objext' 2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2462 (eval $ac_try) 2>&5 2463 ac_status=$? 2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2465 (exit $ac_status); }; }; then 2466 break 2467else 2468 echo "$as_me: failed program was:" >&5 2469sed 's/^/| /' conftest.$ac_ext >&5 2470 2471fi 2472rm -f conftest.$ac_objext conftest.$ac_ext 2473done 2474rm -f conftest* 2475if test -n "$ac_declaration"; then 2476 echo '#ifdef __cplusplus' >>confdefs.h 2477 echo $ac_declaration >>confdefs.h 2478 echo '#endif' >>confdefs.h 2479fi 2480 2481ac_ext=c 2482ac_cpp='$CPP $CPPFLAGS' 2483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2485ac_compiler_gnu=$ac_cv_c_compiler_gnu 2486 2487ac_ext=c 2488ac_cpp='$CPP $CPPFLAGS' 2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2491ac_compiler_gnu=$ac_cv_c_compiler_gnu 2492if test -n "$ac_tool_prefix"; then 2493 for ac_prog in gcc 2494 do 2495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2496set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2497echo "$as_me:$LINENO: checking for $ac_word" >&5 2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2499if test "${ac_cv_prog_CC+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 if test -n "$CC"; then 2503 ac_cv_prog_CC="$CC" # Let the user override the test. 2504else 2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2506for as_dir in $PATH 2507do 2508 IFS=$as_save_IFS 2509 test -z "$as_dir" && as_dir=. 2510 for ac_exec_ext in '' $ac_executable_extensions; do 2511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2514 break 2 2515 fi 2516done 2517done 2518 2519fi 2520fi 2521CC=$ac_cv_prog_CC 2522if test -n "$CC"; then 2523 echo "$as_me:$LINENO: result: $CC" >&5 2524echo "${ECHO_T}$CC" >&6 2525else 2526 echo "$as_me:$LINENO: result: no" >&5 2527echo "${ECHO_T}no" >&6 2528fi 2529 2530 test -n "$CC" && break 2531 done 2532fi 2533if test -z "$CC"; then 2534 ac_ct_CC=$CC 2535 for ac_prog in gcc 2536do 2537 # Extract the first word of "$ac_prog", so it can be a program name with args. 2538set dummy $ac_prog; ac_word=$2 2539echo "$as_me:$LINENO: checking for $ac_word" >&5 2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2541if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2542 echo $ECHO_N "(cached) $ECHO_C" >&6 2543else 2544 if test -n "$ac_ct_CC"; then 2545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2546else 2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2554 ac_cv_prog_ac_ct_CC="$ac_prog" 2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559done 2560 2561fi 2562fi 2563ac_ct_CC=$ac_cv_prog_ac_ct_CC 2564if test -n "$ac_ct_CC"; then 2565 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2566echo "${ECHO_T}$ac_ct_CC" >&6 2567else 2568 echo "$as_me:$LINENO: result: no" >&5 2569echo "${ECHO_T}no" >&6 2570fi 2571 2572 test -n "$ac_ct_CC" && break 2573done 2574 2575 CC=$ac_ct_CC 2576fi 2577 2578 2579test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2580See \`config.log' for more details." >&5 2581echo "$as_me: error: no acceptable C compiler found in \$PATH 2582See \`config.log' for more details." >&2;} 2583 { (exit 1); exit 1; }; } 2584 2585# Provide some information about the compiler. 2586echo "$as_me:$LINENO:" \ 2587 "checking for C compiler version" >&5 2588ac_compiler=`set X $ac_compile; echo $2` 2589{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2590 (eval $ac_compiler --version </dev/null >&5) 2>&5 2591 ac_status=$? 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); } 2594{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2595 (eval $ac_compiler -v </dev/null >&5) 2>&5 2596 ac_status=$? 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2598 (exit $ac_status); } 2599{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2600 (eval $ac_compiler -V </dev/null >&5) 2>&5 2601 ac_status=$? 2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2603 (exit $ac_status); } 2604 2605echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2606echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2607if test "${ac_cv_c_compiler_gnu+set}" = set; then 2608 echo $ECHO_N "(cached) $ECHO_C" >&6 2609else 2610 cat >conftest.$ac_ext <<_ACEOF 2611#line $LINENO "configure" 2612/* confdefs.h. */ 2613_ACEOF 2614cat confdefs.h >>conftest.$ac_ext 2615cat >>conftest.$ac_ext <<_ACEOF 2616/* end confdefs.h. */ 2617 2618int 2619main () 2620{ 2621#ifndef __GNUC__ 2622 choke me 2623#endif 2624 2625 ; 2626 return 0; 2627} 2628_ACEOF 2629rm -f conftest.$ac_objext 2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2631 (eval $ac_compile) 2>&5 2632 ac_status=$? 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); } && 2635 { ac_try='test -s conftest.$ac_objext' 2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2637 (eval $ac_try) 2>&5 2638 ac_status=$? 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); }; }; then 2641 ac_compiler_gnu=yes 2642else 2643 echo "$as_me: failed program was:" >&5 2644sed 's/^/| /' conftest.$ac_ext >&5 2645 2646ac_compiler_gnu=no 2647fi 2648rm -f conftest.$ac_objext conftest.$ac_ext 2649ac_cv_c_compiler_gnu=$ac_compiler_gnu 2650 2651fi 2652echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2653echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2654GCC=`test $ac_compiler_gnu = yes && echo yes` 2655ac_test_CFLAGS=${CFLAGS+set} 2656ac_save_CFLAGS=$CFLAGS 2657CFLAGS="-g" 2658echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2659echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2660if test "${ac_cv_prog_cc_g+set}" = set; then 2661 echo $ECHO_N "(cached) $ECHO_C" >&6 2662else 2663 cat >conftest.$ac_ext <<_ACEOF 2664#line $LINENO "configure" 2665/* confdefs.h. */ 2666_ACEOF 2667cat confdefs.h >>conftest.$ac_ext 2668cat >>conftest.$ac_ext <<_ACEOF 2669/* end confdefs.h. */ 2670 2671int 2672main () 2673{ 2674 2675 ; 2676 return 0; 2677} 2678_ACEOF 2679rm -f conftest.$ac_objext 2680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2681 (eval $ac_compile) 2>&5 2682 ac_status=$? 2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2684 (exit $ac_status); } && 2685 { ac_try='test -s conftest.$ac_objext' 2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2687 (eval $ac_try) 2>&5 2688 ac_status=$? 2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2690 (exit $ac_status); }; }; then 2691 ac_cv_prog_cc_g=yes 2692else 2693 echo "$as_me: failed program was:" >&5 2694sed 's/^/| /' conftest.$ac_ext >&5 2695 2696ac_cv_prog_cc_g=no 2697fi 2698rm -f conftest.$ac_objext conftest.$ac_ext 2699fi 2700echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2701echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2702if test "$ac_test_CFLAGS" = set; then 2703 CFLAGS=$ac_save_CFLAGS 2704elif test $ac_cv_prog_cc_g = yes; then 2705 if test "$GCC" = yes; then 2706 CFLAGS="-g -O2" 2707 else 2708 CFLAGS="-g" 2709 fi 2710else 2711 if test "$GCC" = yes; then 2712 CFLAGS="-O2" 2713 else 2714 CFLAGS= 2715 fi 2716fi 2717echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2718echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2719if test "${ac_cv_prog_cc_stdc+set}" = set; then 2720 echo $ECHO_N "(cached) $ECHO_C" >&6 2721else 2722 ac_cv_prog_cc_stdc=no 2723ac_save_CC=$CC 2724cat >conftest.$ac_ext <<_ACEOF 2725#line $LINENO "configure" 2726/* confdefs.h. */ 2727_ACEOF 2728cat confdefs.h >>conftest.$ac_ext 2729cat >>conftest.$ac_ext <<_ACEOF 2730/* end confdefs.h. */ 2731#include <stdarg.h> 2732#include <stdio.h> 2733#include <sys/types.h> 2734#include <sys/stat.h> 2735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2736struct buf { int x; }; 2737FILE * (*rcsopen) (struct buf *, struct stat *, int); 2738static char *e (p, i) 2739 char **p; 2740 int i; 2741{ 2742 return p[i]; 2743} 2744static char *f (char * (*g) (char **, int), char **p, ...) 2745{ 2746 char *s; 2747 va_list v; 2748 va_start (v,p); 2749 s = g (p, va_arg (v,int)); 2750 va_end (v); 2751 return s; 2752} 2753int test (int i, double x); 2754struct s1 {int (*f) (int a);}; 2755struct s2 {int (*f) (double a);}; 2756int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2757int argc; 2758char **argv; 2759int 2760main () 2761{ 2762return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2763 ; 2764 return 0; 2765} 2766_ACEOF 2767# Don't try gcc -ansi; that turns off useful extensions and 2768# breaks some systems' header files. 2769# AIX -qlanglvl=ansi 2770# Ultrix and OSF/1 -std1 2771# HP-UX 10.20 and later -Ae 2772# HP-UX older versions -Aa -D_HPUX_SOURCE 2773# SVR4 -Xc -D__EXTENSIONS__ 2774for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2775do 2776 CC="$ac_save_CC $ac_arg" 2777 rm -f conftest.$ac_objext 2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2779 (eval $ac_compile) 2>&5 2780 ac_status=$? 2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2782 (exit $ac_status); } && 2783 { ac_try='test -s conftest.$ac_objext' 2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2785 (eval $ac_try) 2>&5 2786 ac_status=$? 2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2788 (exit $ac_status); }; }; then 2789 ac_cv_prog_cc_stdc=$ac_arg 2790break 2791else 2792 echo "$as_me: failed program was:" >&5 2793sed 's/^/| /' conftest.$ac_ext >&5 2794 2795fi 2796rm -f conftest.$ac_objext 2797done 2798rm -f conftest.$ac_ext conftest.$ac_objext 2799CC=$ac_save_CC 2800 2801fi 2802 2803case "x$ac_cv_prog_cc_stdc" in 2804 x|xno) 2805 echo "$as_me:$LINENO: result: none needed" >&5 2806echo "${ECHO_T}none needed" >&6 ;; 2807 *) 2808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2809echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2810 CC="$CC $ac_cv_prog_cc_stdc" ;; 2811esac 2812 2813# Some people use a C++ compiler to compile C. Since we use `exit', 2814# in C++ we need to declare it. In case someone uses the same compiler 2815# for both compiling C and C++ we need to have the C++ compiler decide 2816# the declaration of exit, since it's the most demanding environment. 2817cat >conftest.$ac_ext <<_ACEOF 2818#ifndef __cplusplus 2819 choke me 2820#endif 2821_ACEOF 2822rm -f conftest.$ac_objext 2823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2824 (eval $ac_compile) 2>&5 2825 ac_status=$? 2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2827 (exit $ac_status); } && 2828 { ac_try='test -s conftest.$ac_objext' 2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2830 (eval $ac_try) 2>&5 2831 ac_status=$? 2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 (exit $ac_status); }; }; then 2834 for ac_declaration in \ 2835 ''\ 2836 '#include <stdlib.h>' \ 2837 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2838 'extern "C" void std::exit (int); using std::exit;' \ 2839 'extern "C" void exit (int) throw ();' \ 2840 'extern "C" void exit (int);' \ 2841 'void exit (int);' 2842do 2843 cat >conftest.$ac_ext <<_ACEOF 2844#line $LINENO "configure" 2845/* confdefs.h. */ 2846_ACEOF 2847cat confdefs.h >>conftest.$ac_ext 2848cat >>conftest.$ac_ext <<_ACEOF 2849/* end confdefs.h. */ 2850#include <stdlib.h> 2851$ac_declaration 2852int 2853main () 2854{ 2855exit (42); 2856 ; 2857 return 0; 2858} 2859_ACEOF 2860rm -f conftest.$ac_objext 2861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2862 (eval $ac_compile) 2>&5 2863 ac_status=$? 2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 (exit $ac_status); } && 2866 { ac_try='test -s conftest.$ac_objext' 2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2868 (eval $ac_try) 2>&5 2869 ac_status=$? 2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2871 (exit $ac_status); }; }; then 2872 : 2873else 2874 echo "$as_me: failed program was:" >&5 2875sed 's/^/| /' conftest.$ac_ext >&5 2876 2877continue 2878fi 2879rm -f conftest.$ac_objext conftest.$ac_ext 2880 cat >conftest.$ac_ext <<_ACEOF 2881#line $LINENO "configure" 2882/* confdefs.h. */ 2883_ACEOF 2884cat confdefs.h >>conftest.$ac_ext 2885cat >>conftest.$ac_ext <<_ACEOF 2886/* end confdefs.h. */ 2887$ac_declaration 2888int 2889main () 2890{ 2891exit (42); 2892 ; 2893 return 0; 2894} 2895_ACEOF 2896rm -f conftest.$ac_objext 2897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2898 (eval $ac_compile) 2>&5 2899 ac_status=$? 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); } && 2902 { ac_try='test -s conftest.$ac_objext' 2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2904 (eval $ac_try) 2>&5 2905 ac_status=$? 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); }; }; then 2908 break 2909else 2910 echo "$as_me: failed program was:" >&5 2911sed 's/^/| /' conftest.$ac_ext >&5 2912 2913fi 2914rm -f conftest.$ac_objext conftest.$ac_ext 2915done 2916rm -f conftest* 2917if test -n "$ac_declaration"; then 2918 echo '#ifdef __cplusplus' >>confdefs.h 2919 echo $ac_declaration >>confdefs.h 2920 echo '#endif' >>confdefs.h 2921fi 2922 2923else 2924 echo "$as_me: failed program was:" >&5 2925sed 's/^/| /' conftest.$ac_ext >&5 2926 2927fi 2928rm -f conftest.$ac_objext conftest.$ac_ext 2929ac_ext=c 2930ac_cpp='$CPP $CPPFLAGS' 2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2933ac_compiler_gnu=$ac_cv_c_compiler_gnu 2934 2935ac_ext=c 2936ac_cpp='$CPP $CPPFLAGS' 2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2939ac_compiler_gnu=$ac_cv_c_compiler_gnu 2940echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2941echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2942# On Suns, sometimes $CPP names a directory. 2943if test -n "$CPP" && test -d "$CPP"; then 2944 CPP= 2945fi 2946if test -z "$CPP"; then 2947 if test "${ac_cv_prog_CPP+set}" = set; then 2948 echo $ECHO_N "(cached) $ECHO_C" >&6 2949else 2950 # Double quotes because CPP needs to be expanded 2951 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2952 do 2953 ac_preproc_ok=false 2954for ac_c_preproc_warn_flag in '' yes 2955do 2956 # Use a header file that comes with gcc, so configuring glibc 2957 # with a fresh cross-compiler works. 2958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2959 # <limits.h> exists even on freestanding compilers. 2960 # On the NeXT, cc -E runs the code through the compiler's parser, 2961 # not just through cpp. "Syntax error" is here to catch this case. 2962 cat >conftest.$ac_ext <<_ACEOF 2963#line $LINENO "configure" 2964/* confdefs.h. */ 2965_ACEOF 2966cat confdefs.h >>conftest.$ac_ext 2967cat >>conftest.$ac_ext <<_ACEOF 2968/* end confdefs.h. */ 2969#ifdef __STDC__ 2970# include <limits.h> 2971#else 2972# include <assert.h> 2973#endif 2974 Syntax error 2975_ACEOF 2976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2978 ac_status=$? 2979 grep -v '^ *+' conftest.er1 >conftest.err 2980 rm -f conftest.er1 2981 cat conftest.err >&5 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); } >/dev/null; then 2984 if test -s conftest.err; then 2985 ac_cpp_err=$ac_c_preproc_warn_flag 2986 else 2987 ac_cpp_err= 2988 fi 2989else 2990 ac_cpp_err=yes 2991fi 2992if test -z "$ac_cpp_err"; then 2993 : 2994else 2995 echo "$as_me: failed program was:" >&5 2996sed 's/^/| /' conftest.$ac_ext >&5 2997 2998 # Broken: fails on valid input. 2999continue 3000fi 3001rm -f conftest.err conftest.$ac_ext 3002 3003 # OK, works on sane cases. Now check whether non-existent headers 3004 # can be detected and how. 3005 cat >conftest.$ac_ext <<_ACEOF 3006#line $LINENO "configure" 3007/* confdefs.h. */ 3008_ACEOF 3009cat confdefs.h >>conftest.$ac_ext 3010cat >>conftest.$ac_ext <<_ACEOF 3011/* end confdefs.h. */ 3012#include <ac_nonexistent.h> 3013_ACEOF 3014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3016 ac_status=$? 3017 grep -v '^ *+' conftest.er1 >conftest.err 3018 rm -f conftest.er1 3019 cat conftest.err >&5 3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3021 (exit $ac_status); } >/dev/null; then 3022 if test -s conftest.err; then 3023 ac_cpp_err=$ac_c_preproc_warn_flag 3024 else 3025 ac_cpp_err= 3026 fi 3027else 3028 ac_cpp_err=yes 3029fi 3030if test -z "$ac_cpp_err"; then 3031 # Broken: success on invalid input. 3032continue 3033else 3034 echo "$as_me: failed program was:" >&5 3035sed 's/^/| /' conftest.$ac_ext >&5 3036 3037 # Passes both tests. 3038ac_preproc_ok=: 3039break 3040fi 3041rm -f conftest.err conftest.$ac_ext 3042 3043done 3044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3045rm -f conftest.err conftest.$ac_ext 3046if $ac_preproc_ok; then 3047 break 3048fi 3049 3050 done 3051 ac_cv_prog_CPP=$CPP 3052 3053fi 3054 CPP=$ac_cv_prog_CPP 3055else 3056 ac_cv_prog_CPP=$CPP 3057fi 3058echo "$as_me:$LINENO: result: $CPP" >&5 3059echo "${ECHO_T}$CPP" >&6 3060ac_preproc_ok=false 3061for ac_c_preproc_warn_flag in '' yes 3062do 3063 # Use a header file that comes with gcc, so configuring glibc 3064 # with a fresh cross-compiler works. 3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3066 # <limits.h> exists even on freestanding compilers. 3067 # On the NeXT, cc -E runs the code through the compiler's parser, 3068 # not just through cpp. "Syntax error" is here to catch this case. 3069 cat >conftest.$ac_ext <<_ACEOF 3070#line $LINENO "configure" 3071/* confdefs.h. */ 3072_ACEOF 3073cat confdefs.h >>conftest.$ac_ext 3074cat >>conftest.$ac_ext <<_ACEOF 3075/* end confdefs.h. */ 3076#ifdef __STDC__ 3077# include <limits.h> 3078#else 3079# include <assert.h> 3080#endif 3081 Syntax error 3082_ACEOF 3083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3085 ac_status=$? 3086 grep -v '^ *+' conftest.er1 >conftest.err 3087 rm -f conftest.er1 3088 cat conftest.err >&5 3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); } >/dev/null; then 3091 if test -s conftest.err; then 3092 ac_cpp_err=$ac_c_preproc_warn_flag 3093 else 3094 ac_cpp_err= 3095 fi 3096else 3097 ac_cpp_err=yes 3098fi 3099if test -z "$ac_cpp_err"; then 3100 : 3101else 3102 echo "$as_me: failed program was:" >&5 3103sed 's/^/| /' conftest.$ac_ext >&5 3104 3105 # Broken: fails on valid input. 3106continue 3107fi 3108rm -f conftest.err conftest.$ac_ext 3109 3110 # OK, works on sane cases. Now check whether non-existent headers 3111 # can be detected and how. 3112 cat >conftest.$ac_ext <<_ACEOF 3113#line $LINENO "configure" 3114/* confdefs.h. */ 3115_ACEOF 3116cat confdefs.h >>conftest.$ac_ext 3117cat >>conftest.$ac_ext <<_ACEOF 3118/* end confdefs.h. */ 3119#include <ac_nonexistent.h> 3120_ACEOF 3121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3123 ac_status=$? 3124 grep -v '^ *+' conftest.er1 >conftest.err 3125 rm -f conftest.er1 3126 cat conftest.err >&5 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3128 (exit $ac_status); } >/dev/null; then 3129 if test -s conftest.err; then 3130 ac_cpp_err=$ac_c_preproc_warn_flag 3131 else 3132 ac_cpp_err= 3133 fi 3134else 3135 ac_cpp_err=yes 3136fi 3137if test -z "$ac_cpp_err"; then 3138 # Broken: success on invalid input. 3139continue 3140else 3141 echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144 # Passes both tests. 3145ac_preproc_ok=: 3146break 3147fi 3148rm -f conftest.err conftest.$ac_ext 3149 3150done 3151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3152rm -f conftest.err conftest.$ac_ext 3153if $ac_preproc_ok; then 3154 : 3155else 3156 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3157See \`config.log' for more details." >&5 3158echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3159See \`config.log' for more details." >&2;} 3160 { (exit 1); exit 1; }; } 3161fi 3162 3163ac_ext=c 3164ac_cpp='$CPP $CPPFLAGS' 3165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3167ac_compiler_gnu=$ac_cv_c_compiler_gnu 3168 3169 3170if test "$GCC" != "yes" 3171then 3172 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 3173echo "$as_me: error: gcc required but not found" >&2;} 3174 { (exit 1); exit 1; }; } 3175fi 3176if test "$GXX" != "yes" 3177then 3178 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 3179echo "$as_me: error: g++ required but not found" >&2;} 3180 { (exit 1); exit 1; }; } 3181fi 3182 3183gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` 3184if test "$gccmajor" -lt "3" 3185then 3186 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 3187echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 3188 { (exit 1); exit 1; }; } 3189fi 3190 3191 echo "$as_me:$LINENO: checking for GNU make" >&5 3192echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 3193if test "${_cv_gnu_make_command+set}" = set; then 3194 echo $ECHO_N "(cached) $ECHO_C" >&6 3195else 3196 _cv_gnu_make_command='' ; 3197 for a in "$MAKE" make gmake gnumake ; do 3198 if test -z "$a" ; then continue ; fi ; 3199 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 3200 _cv_gnu_make_command=$a ; 3201 break; 3202 fi 3203 done ; 3204 3205fi 3206echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 3207echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; 3208 if test "x$_cv_gnu_make_command" != "x" ; then 3209 ifGNUmake='' ; 3210 else 3211 ifGNUmake='#' ; 3212 echo "$as_me:$LINENO: result: \"Not found\"" >&5 3213echo "${ECHO_T}\"Not found\"" >&6; 3214 fi 3215 3216 3217if test -z "$_cv_gnu_make_command" 3218then 3219 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 3220echo "$as_me: error: GNU Make required but not found" >&2;} 3221 { (exit 1); exit 1; }; } 3222fi 3223 3224 3225echo "$as_me:$LINENO: checking " >&5 3226echo $ECHO_N "checking ... $ECHO_C" >&6 3227if test "${ac_cv_has_flex+set}" = set; then 3228 echo $ECHO_N "(cached) $ECHO_C" >&6 3229else 3230 for ac_prog in flex lex 3231do 3232 # Extract the first word of "$ac_prog", so it can be a program name with args. 3233set dummy $ac_prog; ac_word=$2 3234echo "$as_me:$LINENO: checking for $ac_word" >&5 3235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3236if test "${ac_cv_prog_LEX+set}" = set; then 3237 echo $ECHO_N "(cached) $ECHO_C" >&6 3238else 3239 if test -n "$LEX"; then 3240 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3241else 3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 test -z "$as_dir" && as_dir=. 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3249 ac_cv_prog_LEX="$ac_prog" 3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253done 3254done 3255 3256fi 3257fi 3258LEX=$ac_cv_prog_LEX 3259if test -n "$LEX"; then 3260 echo "$as_me:$LINENO: result: $LEX" >&5 3261echo "${ECHO_T}$LEX" >&6 3262else 3263 echo "$as_me:$LINENO: result: no" >&5 3264echo "${ECHO_T}no" >&6 3265fi 3266 3267 test -n "$LEX" && break 3268done 3269test -n "$LEX" || LEX=":" 3270 3271if test -z "$LEXLIB" 3272then 3273 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 3274echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 3275if test "${ac_cv_lib_fl_yywrap+set}" = set; then 3276 echo $ECHO_N "(cached) $ECHO_C" >&6 3277else 3278 ac_check_lib_save_LIBS=$LIBS 3279LIBS="-lfl $LIBS" 3280cat >conftest.$ac_ext <<_ACEOF 3281#line $LINENO "configure" 3282/* confdefs.h. */ 3283_ACEOF 3284cat confdefs.h >>conftest.$ac_ext 3285cat >>conftest.$ac_ext <<_ACEOF 3286/* end confdefs.h. */ 3287 3288/* Override any gcc2 internal prototype to avoid an error. */ 3289#ifdef __cplusplus 3290extern "C" 3291#endif 3292/* We use char because int might match the return type of a gcc2 3293 builtin and then its argument prototype would still apply. */ 3294char yywrap (); 3295int 3296main () 3297{ 3298yywrap (); 3299 ; 3300 return 0; 3301} 3302_ACEOF 3303rm -f conftest.$ac_objext conftest$ac_exeext 3304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3305 (eval $ac_link) 2>&5 3306 ac_status=$? 3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } && 3309 { ac_try='test -s conftest$ac_exeext' 3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3311 (eval $ac_try) 2>&5 3312 ac_status=$? 3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3314 (exit $ac_status); }; }; then 3315 ac_cv_lib_fl_yywrap=yes 3316else 3317 echo "$as_me: failed program was:" >&5 3318sed 's/^/| /' conftest.$ac_ext >&5 3319 3320ac_cv_lib_fl_yywrap=no 3321fi 3322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3323LIBS=$ac_check_lib_save_LIBS 3324fi 3325echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 3326echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 3327if test $ac_cv_lib_fl_yywrap = yes; then 3328 LEXLIB="-lfl" 3329else 3330 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 3331echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 3332if test "${ac_cv_lib_l_yywrap+set}" = set; then 3333 echo $ECHO_N "(cached) $ECHO_C" >&6 3334else 3335 ac_check_lib_save_LIBS=$LIBS 3336LIBS="-ll $LIBS" 3337cat >conftest.$ac_ext <<_ACEOF 3338#line $LINENO "configure" 3339/* confdefs.h. */ 3340_ACEOF 3341cat confdefs.h >>conftest.$ac_ext 3342cat >>conftest.$ac_ext <<_ACEOF 3343/* end confdefs.h. */ 3344 3345/* Override any gcc2 internal prototype to avoid an error. */ 3346#ifdef __cplusplus 3347extern "C" 3348#endif 3349/* We use char because int might match the return type of a gcc2 3350 builtin and then its argument prototype would still apply. */ 3351char yywrap (); 3352int 3353main () 3354{ 3355yywrap (); 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360rm -f conftest.$ac_objext conftest$ac_exeext 3361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3362 (eval $ac_link) 2>&5 3363 ac_status=$? 3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365 (exit $ac_status); } && 3366 { ac_try='test -s conftest$ac_exeext' 3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3368 (eval $ac_try) 2>&5 3369 ac_status=$? 3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); }; }; then 3372 ac_cv_lib_l_yywrap=yes 3373else 3374 echo "$as_me: failed program was:" >&5 3375sed 's/^/| /' conftest.$ac_ext >&5 3376 3377ac_cv_lib_l_yywrap=no 3378fi 3379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3380LIBS=$ac_check_lib_save_LIBS 3381fi 3382echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 3383echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 3384if test $ac_cv_lib_l_yywrap = yes; then 3385 LEXLIB="-ll" 3386fi 3387 3388fi 3389 3390fi 3391 3392if test "x$LEX" != "x:"; then 3393 echo "$as_me:$LINENO: checking lex output file root" >&5 3394echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 3395if test "${ac_cv_prog_lex_root+set}" = set; then 3396 echo $ECHO_N "(cached) $ECHO_C" >&6 3397else 3398 # The minimal lex program is just a single line: %%. But some broken lexes 3399# (Solaris, I think it was) want two %% lines, so accommodate them. 3400cat >conftest.l <<_ACEOF 3401%% 3402%% 3403_ACEOF 3404{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 3405 (eval $LEX conftest.l) 2>&5 3406 ac_status=$? 3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3408 (exit $ac_status); } 3409if test -f lex.yy.c; then 3410 ac_cv_prog_lex_root=lex.yy 3411elif test -f lexyy.c; then 3412 ac_cv_prog_lex_root=lexyy 3413else 3414 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 3415echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 3416 { (exit 1); exit 1; }; } 3417fi 3418fi 3419echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 3420echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 3421rm -f conftest.l 3422LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3423 3424echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 3425echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 3426if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 3427 echo $ECHO_N "(cached) $ECHO_C" >&6 3428else 3429 # POSIX says lex can declare yytext either as a pointer or an array; the 3430# default is implementation-dependent. Figure out which it is, since 3431# not all implementations provide the %pointer and %array declarations. 3432ac_cv_prog_lex_yytext_pointer=no 3433echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 3434ac_save_LIBS=$LIBS 3435LIBS="$LIBS $LEXLIB" 3436cat >conftest.$ac_ext <<_ACEOF 3437`cat $LEX_OUTPUT_ROOT.c` 3438_ACEOF 3439rm -f conftest.$ac_objext conftest$ac_exeext 3440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3441 (eval $ac_link) 2>&5 3442 ac_status=$? 3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3444 (exit $ac_status); } && 3445 { ac_try='test -s conftest$ac_exeext' 3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3447 (eval $ac_try) 2>&5 3448 ac_status=$? 3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3450 (exit $ac_status); }; }; then 3451 ac_cv_prog_lex_yytext_pointer=yes 3452else 3453 echo "$as_me: failed program was:" >&5 3454sed 's/^/| /' conftest.$ac_ext >&5 3455 3456fi 3457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3458LIBS=$ac_save_LIBS 3459rm -f "${LEX_OUTPUT_ROOT}.c" 3460 3461fi 3462echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 3463echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 3464if test $ac_cv_prog_lex_yytext_pointer = yes; then 3465 3466cat >>confdefs.h <<\_ACEOF 3467#define YYTEXT_POINTER 1 3468_ACEOF 3469 3470fi 3471 3472fi 3473 3474fi 3475echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 3476echo "${ECHO_T}$ac_cv_has_flex" >&6 3477if test "$LEX" != "flex"; then 3478 { { echo "$as_me:$LINENO: error: flex not found but required" >&5 3479echo "$as_me: error: flex not found but required" >&2;} 3480 { (exit 1); exit 1; }; } 3481fi 3482 3483echo "$as_me:$LINENO: checking " >&5 3484echo $ECHO_N "checking ... $ECHO_C" >&6 3485if test "${ac_cv_has_bison+set}" = set; then 3486 echo $ECHO_N "(cached) $ECHO_C" >&6 3487else 3488 for ac_prog in 'bison -y' byacc 3489do 3490 # Extract the first word of "$ac_prog", so it can be a program name with args. 3491set dummy $ac_prog; ac_word=$2 3492echo "$as_me:$LINENO: checking for $ac_word" >&5 3493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3494if test "${ac_cv_prog_YACC+set}" = set; then 3495 echo $ECHO_N "(cached) $ECHO_C" >&6 3496else 3497 if test -n "$YACC"; then 3498 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3499else 3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501for as_dir in $PATH 3502do 3503 IFS=$as_save_IFS 3504 test -z "$as_dir" && as_dir=. 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3507 ac_cv_prog_YACC="$ac_prog" 3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3509 break 2 3510 fi 3511done 3512done 3513 3514fi 3515fi 3516YACC=$ac_cv_prog_YACC 3517if test -n "$YACC"; then 3518 echo "$as_me:$LINENO: result: $YACC" >&5 3519echo "${ECHO_T}$YACC" >&6 3520else 3521 echo "$as_me:$LINENO: result: no" >&5 3522echo "${ECHO_T}no" >&6 3523fi 3524 3525 test -n "$YACC" && break 3526done 3527test -n "$YACC" || YACC="yacc" 3528 3529 3530fi 3531echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 3532echo "${ECHO_T}$ac_cv_has_bison" >&6 3533if test "$YACC" != "bison -y"; then 3534 { { echo "$as_me:$LINENO: error: bison not found but required" >&5 3535echo "$as_me: error: bison not found but required" >&2;} 3536 { (exit 1); exit 1; }; } 3537else 3538 BISON=bison 3539 3540fi 3541 3542# Check whether --enable-shared or --disable-shared was given. 3543if test "${enable_shared+set}" = set; then 3544 enableval="$enable_shared" 3545 p=${PACKAGE-default} 3546 case $enableval in 3547 yes) enable_shared=yes ;; 3548 no) enable_shared=no ;; 3549 *) 3550 enable_shared=no 3551 # Look at the argument we got. We use all the common list separators. 3552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3553 for pkg in $enableval; do 3554 IFS="$lt_save_ifs" 3555 if test "X$pkg" = "X$p"; then 3556 enable_shared=yes 3557 fi 3558 done 3559 IFS="$lt_save_ifs" 3560 ;; 3561 esac 3562else 3563 enable_shared=yes 3564fi; 3565 3566# Check whether --enable-static or --disable-static was given. 3567if test "${enable_static+set}" = set; then 3568 enableval="$enable_static" 3569 p=${PACKAGE-default} 3570 case $enableval in 3571 yes) enable_static=yes ;; 3572 no) enable_static=no ;; 3573 *) 3574 enable_static=no 3575 # Look at the argument we got. We use all the common list separators. 3576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3577 for pkg in $enableval; do 3578 IFS="$lt_save_ifs" 3579 if test "X$pkg" = "X$p"; then 3580 enable_static=yes 3581 fi 3582 done 3583 IFS="$lt_save_ifs" 3584 ;; 3585 esac 3586else 3587 enable_static=yes 3588fi; 3589 3590# Check whether --enable-fast-install or --disable-fast-install was given. 3591if test "${enable_fast_install+set}" = set; then 3592 enableval="$enable_fast_install" 3593 p=${PACKAGE-default} 3594 case $enableval in 3595 yes) enable_fast_install=yes ;; 3596 no) enable_fast_install=no ;; 3597 *) 3598 enable_fast_install=no 3599 # Look at the argument we got. We use all the common list separators. 3600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3601 for pkg in $enableval; do 3602 IFS="$lt_save_ifs" 3603 if test "X$pkg" = "X$p"; then 3604 enable_fast_install=yes 3605 fi 3606 done 3607 IFS="$lt_save_ifs" 3608 ;; 3609 esac 3610else 3611 enable_fast_install=yes 3612fi; 3613 3614echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3615echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3616if test "${lt_cv_path_SED+set}" = set; then 3617 echo $ECHO_N "(cached) $ECHO_C" >&6 3618else 3619 # Loop through the user's path and test for sed and gsed. 3620# Then use that list of sed's as ones to test for truncation. 3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3622for as_dir in $PATH 3623do 3624 IFS=$as_save_IFS 3625 test -z "$as_dir" && as_dir=. 3626 for lt_ac_prog in sed gsed; do 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3629 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3630 fi 3631 done 3632 done 3633done 3634lt_ac_max=0 3635lt_ac_count=0 3636# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3637# along with /bin/sed that truncates output. 3638for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3639 test ! -f $lt_ac_sed && break 3640 cat /dev/null > conftest.in 3641 lt_ac_count=0 3642 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3643 # Check for GNU sed and select it if it is found. 3644 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3645 lt_cv_path_SED=$lt_ac_sed 3646 break 3647 fi 3648 while true; do 3649 cat conftest.in conftest.in >conftest.tmp 3650 mv conftest.tmp conftest.in 3651 cp conftest.in conftest.nl 3652 echo >>conftest.nl 3653 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3654 cmp -s conftest.out conftest.nl || break 3655 # 10000 chars as input seems more than enough 3656 test $lt_ac_count -gt 10 && break 3657 lt_ac_count=`expr $lt_ac_count + 1` 3658 if test $lt_ac_count -gt $lt_ac_max; then 3659 lt_ac_max=$lt_ac_count 3660 lt_cv_path_SED=$lt_ac_sed 3661 fi 3662 done 3663done 3664SED=$lt_cv_path_SED 3665 3666fi 3667 3668echo "$as_me:$LINENO: result: $SED" >&5 3669echo "${ECHO_T}$SED" >&6 3670 3671echo "$as_me:$LINENO: checking for egrep" >&5 3672echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3673if test "${ac_cv_prog_egrep+set}" = set; then 3674 echo $ECHO_N "(cached) $ECHO_C" >&6 3675else 3676 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3677 then ac_cv_prog_egrep='grep -E' 3678 else ac_cv_prog_egrep='egrep' 3679 fi 3680fi 3681echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3682echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3683 EGREP=$ac_cv_prog_egrep 3684 3685 3686 3687# Check whether --with-gnu-ld or --without-gnu-ld was given. 3688if test "${with_gnu_ld+set}" = set; then 3689 withval="$with_gnu_ld" 3690 test "$withval" = no || with_gnu_ld=yes 3691else 3692 with_gnu_ld=no 3693fi; 3694ac_prog=ld 3695if test "$GCC" = yes; then 3696 # Check if gcc -print-prog-name=ld gives a path. 3697 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3698echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3699 case $host in 3700 *-*-mingw*) 3701 # gcc leaves a trailing carriage return which upsets mingw 3702 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3703 *) 3704 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3705 esac 3706 case $ac_prog in 3707 # Accept absolute paths. 3708 [\\/]* | ?:[\\/]*) 3709 re_direlt='/[^/][^/]*/\.\./' 3710 # Canonicalize the path of ld 3711 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3712 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3713 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3714 done 3715 test -z "$LD" && LD="$ac_prog" 3716 ;; 3717 "") 3718 # If it fails, then pretend we aren't using GCC. 3719 ac_prog=ld 3720 ;; 3721 *) 3722 # If it is relative, then search for the first ld in PATH. 3723 with_gnu_ld=unknown 3724 ;; 3725 esac 3726elif test "$with_gnu_ld" = yes; then 3727 echo "$as_me:$LINENO: checking for GNU ld" >&5 3728echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3729else 3730 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3731echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3732fi 3733if test "${lt_cv_path_LD+set}" = set; then 3734 echo $ECHO_N "(cached) $ECHO_C" >&6 3735else 3736 if test -z "$LD"; then 3737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3738 for ac_dir in $PATH; do 3739 IFS="$lt_save_ifs" 3740 test -z "$ac_dir" && ac_dir=. 3741 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3742 lt_cv_path_LD="$ac_dir/$ac_prog" 3743 # Check to see if the program is GNU ld. I'd rather use --version, 3744 # but apparently some GNU ld's only accept -v. 3745 # Break only if it was the GNU/non-GNU ld that we prefer. 3746 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3747 *GNU* | *'with BFD'*) 3748 test "$with_gnu_ld" != no && break 3749 ;; 3750 *) 3751 test "$with_gnu_ld" != yes && break 3752 ;; 3753 esac 3754 fi 3755 done 3756 IFS="$lt_save_ifs" 3757else 3758 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3759fi 3760fi 3761 3762LD="$lt_cv_path_LD" 3763if test -n "$LD"; then 3764 echo "$as_me:$LINENO: result: $LD" >&5 3765echo "${ECHO_T}$LD" >&6 3766else 3767 echo "$as_me:$LINENO: result: no" >&5 3768echo "${ECHO_T}no" >&6 3769fi 3770test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3771echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3772 { (exit 1); exit 1; }; } 3773echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3774echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3775if test "${lt_cv_prog_gnu_ld+set}" = set; then 3776 echo $ECHO_N "(cached) $ECHO_C" >&6 3777else 3778 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3779case `"$LD" -v 2>&1 </dev/null` in 3780*GNU* | *'with BFD'*) 3781 lt_cv_prog_gnu_ld=yes 3782 ;; 3783*) 3784 lt_cv_prog_gnu_ld=no 3785 ;; 3786esac 3787fi 3788echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3789echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3790with_gnu_ld=$lt_cv_prog_gnu_ld 3791 3792 3793echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3794echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3795if test "${lt_cv_ld_reload_flag+set}" = set; then 3796 echo $ECHO_N "(cached) $ECHO_C" >&6 3797else 3798 lt_cv_ld_reload_flag='-r' 3799fi 3800echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3801echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3802reload_flag=$lt_cv_ld_reload_flag 3803case $reload_flag in 3804"" | " "*) ;; 3805*) reload_flag=" $reload_flag" ;; 3806esac 3807reload_cmds='$LD$reload_flag -o $output$reload_objs' 3808 3809echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3810echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3811if test "${lt_cv_path_NM+set}" = set; then 3812 echo $ECHO_N "(cached) $ECHO_C" >&6 3813else 3814 if test -n "$NM"; then 3815 # Let the user override the test. 3816 lt_cv_path_NM="$NM" 3817else 3818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3819 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3820 IFS="$lt_save_ifs" 3821 test -z "$ac_dir" && ac_dir=. 3822 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3823 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3824 # Check to see if the nm accepts a BSD-compat flag. 3825 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3826 # nm: unknown option "B" ignored 3827 # Tru64's nm complains that /dev/null is an invalid object file 3828 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3829 */dev/null* | *'Invalid file or object type'*) 3830 lt_cv_path_NM="$tmp_nm -B" 3831 break 3832 ;; 3833 *) 3834 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3835 */dev/null*) 3836 lt_cv_path_NM="$tmp_nm -p" 3837 break 3838 ;; 3839 *) 3840 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3841 continue # so that we can try to find one that supports BSD flags 3842 ;; 3843 esac 3844 esac 3845 fi 3846 done 3847 IFS="$lt_save_ifs" 3848 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3849fi 3850fi 3851echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3852echo "${ECHO_T}$lt_cv_path_NM" >&6 3853NM="$lt_cv_path_NM" 3854 3855echo "$as_me:$LINENO: checking whether ln -s works" >&5 3856echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3857LN_S=$as_ln_s 3858if test "$LN_S" = "ln -s"; then 3859 echo "$as_me:$LINENO: result: yes" >&5 3860echo "${ECHO_T}yes" >&6 3861else 3862 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3863echo "${ECHO_T}no, using $LN_S" >&6 3864fi 3865 3866echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3867echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3868if test "${lt_cv_deplibs_check_method+set}" = set; then 3869 echo $ECHO_N "(cached) $ECHO_C" >&6 3870else 3871 lt_cv_file_magic_cmd='$MAGIC_CMD' 3872lt_cv_file_magic_test_file= 3873lt_cv_deplibs_check_method='unknown' 3874# Need to set the preceding variable on all platforms that support 3875# interlibrary dependencies. 3876# 'none' -- dependencies not supported. 3877# `unknown' -- same as none, but documents that we really don't know. 3878# 'pass_all' -- all dependencies passed with no checks. 3879# 'test_compile' -- check by making test program. 3880# 'file_magic [[regex]]' -- check by looking for files in library path 3881# which responds to the $file_magic_cmd with a given extended regex. 3882# If you have `file' or equivalent on your system and you're not sure 3883# whether `pass_all' will *always* work, you probably want this one. 3884 3885case $host_os in 3886aix4* | aix5*) 3887 lt_cv_deplibs_check_method=pass_all 3888 ;; 3889 3890beos*) 3891 lt_cv_deplibs_check_method=pass_all 3892 ;; 3893 3894bsdi4*) 3895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3896 lt_cv_file_magic_cmd='/usr/bin/file -L' 3897 lt_cv_file_magic_test_file=/shlib/libc.so 3898 ;; 3899 3900cygwin* | mingw* | pw32*) 3901 # win32_libid is a shell function defined in ltmain.sh 3902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3903 lt_cv_file_magic_cmd='win32_libid' 3904 ;; 3905 3906darwin* | rhapsody*) 3907 # this will be overwritten by pass_all, but leave it in just in case 3908 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3909 lt_cv_file_magic_cmd='/usr/bin/file -L' 3910 case "$host_os" in 3911 rhapsody* | darwin1.[012]) 3912 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 3913 ;; 3914 *) # Darwin 1.3 on 3915 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3916 ;; 3917 esac 3918 lt_cv_deplibs_check_method=pass_all 3919 ;; 3920 3921freebsd*) 3922 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3923 case $host_cpu in 3924 i*86 ) 3925 # Not sure whether the presence of OpenBSD here was a mistake. 3926 # Let's accept both of them until this is cleared up. 3927 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3928 lt_cv_file_magic_cmd=/usr/bin/file 3929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3930 ;; 3931 esac 3932 else 3933 lt_cv_deplibs_check_method=pass_all 3934 fi 3935 ;; 3936 3937gnu*) 3938 lt_cv_deplibs_check_method=pass_all 3939 ;; 3940 3941hpux10.20* | hpux11*) 3942 lt_cv_file_magic_cmd=/usr/bin/file 3943 case "$host_cpu" in 3944 ia64*) 3945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3946 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3947 ;; 3948 hppa*64*) 3949 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]' 3950 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3951 ;; 3952 *) 3953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3954 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3955 ;; 3956 esac 3957 ;; 3958 3959irix5* | irix6* | nonstopux*) 3960 case $host_os in 3961 irix5* | nonstopux*) 3962 # this will be overridden with pass_all, but let us keep it just in case 3963 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3964 ;; 3965 *) 3966 case $LD in 3967 *-32|*"-32 ") libmagic=32-bit;; 3968 *-n32|*"-n32 ") libmagic=N32;; 3969 *-64|*"-64 ") libmagic=64-bit;; 3970 *) libmagic=never-match;; 3971 esac 3972 # this will be overridden with pass_all, but let us keep it just in case 3973 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3974 ;; 3975 esac 3976 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3977 lt_cv_deplibs_check_method=pass_all 3978 ;; 3979 3980# This must be Linux ELF. 3981linux*) 3982 case $host_cpu in 3983 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) 3984 lt_cv_deplibs_check_method=pass_all ;; 3985 *) 3986 # glibc up to 2.1.1 does not perform some relocations on ARM 3987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3988 esac 3989 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3990 ;; 3991 3992netbsd*) 3993 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3995 else 3996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3997 fi 3998 ;; 3999 4000newos6*) 4001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4002 lt_cv_file_magic_cmd=/usr/bin/file 4003 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4004 ;; 4005 4006nto-qnx) 4007 lt_cv_deplibs_check_method=unknown 4008 ;; 4009 4010openbsd*) 4011 lt_cv_file_magic_cmd=/usr/bin/file 4012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4015 else 4016 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4017 fi 4018 ;; 4019 4020osf3* | osf4* | osf5*) 4021 # this will be overridden with pass_all, but let us keep it just in case 4022 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 4023 lt_cv_file_magic_test_file=/shlib/libc.so 4024 lt_cv_deplibs_check_method=pass_all 4025 ;; 4026 4027sco3.2v5*) 4028 lt_cv_deplibs_check_method=pass_all 4029 ;; 4030 4031solaris*) 4032 lt_cv_deplibs_check_method=pass_all 4033 lt_cv_file_magic_test_file=/lib/libc.so 4034 ;; 4035 4036sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4037 case $host_vendor in 4038 motorola) 4039 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]' 4040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4041 ;; 4042 ncr) 4043 lt_cv_deplibs_check_method=pass_all 4044 ;; 4045 sequent) 4046 lt_cv_file_magic_cmd='/bin/file' 4047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4048 ;; 4049 sni) 4050 lt_cv_file_magic_cmd='/bin/file' 4051 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4052 lt_cv_file_magic_test_file=/lib/libc.so 4053 ;; 4054 siemens) 4055 lt_cv_deplibs_check_method=pass_all 4056 ;; 4057 esac 4058 ;; 4059 4060sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4061 lt_cv_deplibs_check_method=pass_all 4062 ;; 4063esac 4064 4065fi 4066echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4067echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4068file_magic_cmd=$lt_cv_file_magic_cmd 4069deplibs_check_method=$lt_cv_deplibs_check_method 4070test -z "$deplibs_check_method" && deplibs_check_method=unknown 4071 4072 4073 4074 4075# If no C compiler was specified, use CC. 4076LTCC=${LTCC-"$CC"} 4077 4078# Allow CC to be a program name with arguments. 4079compiler=$CC 4080 4081# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4082if test "${enable_libtool_lock+set}" = set; then 4083 enableval="$enable_libtool_lock" 4084 4085fi; 4086test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4087 4088# Some flags need to be propagated to the compiler or linker for good 4089# libtool support. 4090case $host in 4091ia64-*-hpux*) 4092 # Find out which ABI we are using. 4093 echo 'int i;' > conftest.$ac_ext 4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4095 (eval $ac_compile) 2>&5 4096 ac_status=$? 4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4098 (exit $ac_status); }; then 4099 case `/usr/bin/file conftest.$ac_objext` in 4100 *ELF-32*) 4101 HPUX_IA64_MODE="32" 4102 ;; 4103 *ELF-64*) 4104 HPUX_IA64_MODE="64" 4105 ;; 4106 esac 4107 fi 4108 rm -rf conftest* 4109 ;; 4110*-*-irix6*) 4111 # Find out which ABI we are using. 4112 echo '#line 4112 "configure"' > conftest.$ac_ext 4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4114 (eval $ac_compile) 2>&5 4115 ac_status=$? 4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4117 (exit $ac_status); }; then 4118 if test "$lt_cv_prog_gnu_ld" = yes; then 4119 case `/usr/bin/file conftest.$ac_objext` in 4120 *32-bit*) 4121 LD="${LD-ld} -melf32bsmip" 4122 ;; 4123 *N32*) 4124 LD="${LD-ld} -melf32bmipn32" 4125 ;; 4126 *64-bit*) 4127 LD="${LD-ld} -melf64bmip" 4128 ;; 4129 esac 4130 else 4131 case `/usr/bin/file conftest.$ac_objext` in 4132 *32-bit*) 4133 LD="${LD-ld} -32" 4134 ;; 4135 *N32*) 4136 LD="${LD-ld} -n32" 4137 ;; 4138 *64-bit*) 4139 LD="${LD-ld} -64" 4140 ;; 4141 esac 4142 fi 4143 fi 4144 rm -rf conftest* 4145 ;; 4146 4147x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4148 # Find out which ABI we are using. 4149 echo 'int i;' > conftest.$ac_ext 4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4151 (eval $ac_compile) 2>&5 4152 ac_status=$? 4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4154 (exit $ac_status); }; then 4155 case "`/usr/bin/file conftest.o`" in 4156 *32-bit*) 4157 case $host in 4158 x86_64-*linux*) 4159 LD="${LD-ld} -m elf_i386" 4160 ;; 4161 ppc64-*linux*) 4162 LD="${LD-ld} -m elf32ppclinux" 4163 ;; 4164 s390x-*linux*) 4165 LD="${LD-ld} -m elf_s390" 4166 ;; 4167 sparc64-*linux*) 4168 LD="${LD-ld} -m elf32_sparc" 4169 ;; 4170 esac 4171 ;; 4172 *64-bit*) 4173 case $host in 4174 x86_64-*linux*) 4175 LD="${LD-ld} -m elf_x86_64" 4176 ;; 4177 ppc*-*linux*|powerpc*-*linux*) 4178 LD="${LD-ld} -m elf64ppc" 4179 ;; 4180 s390*-*linux*) 4181 LD="${LD-ld} -m elf64_s390" 4182 ;; 4183 sparc*-*linux*) 4184 LD="${LD-ld} -m elf64_sparc" 4185 ;; 4186 esac 4187 ;; 4188 esac 4189 fi 4190 rm -rf conftest* 4191 ;; 4192 4193*-*-sco3.2v5*) 4194 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4195 SAVE_CFLAGS="$CFLAGS" 4196 CFLAGS="$CFLAGS -belf" 4197 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4198echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4199if test "${lt_cv_cc_needs_belf+set}" = set; then 4200 echo $ECHO_N "(cached) $ECHO_C" >&6 4201else 4202 ac_ext=c 4203ac_cpp='$CPP $CPPFLAGS' 4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4206ac_compiler_gnu=$ac_cv_c_compiler_gnu 4207 4208 cat >conftest.$ac_ext <<_ACEOF 4209#line $LINENO "configure" 4210/* confdefs.h. */ 4211_ACEOF 4212cat confdefs.h >>conftest.$ac_ext 4213cat >>conftest.$ac_ext <<_ACEOF 4214/* end confdefs.h. */ 4215 4216int 4217main () 4218{ 4219 4220 ; 4221 return 0; 4222} 4223_ACEOF 4224rm -f conftest.$ac_objext conftest$ac_exeext 4225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4226 (eval $ac_link) 2>&5 4227 ac_status=$? 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4229 (exit $ac_status); } && 4230 { ac_try='test -s conftest$ac_exeext' 4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4232 (eval $ac_try) 2>&5 4233 ac_status=$? 4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4235 (exit $ac_status); }; }; then 4236 lt_cv_cc_needs_belf=yes 4237else 4238 echo "$as_me: failed program was:" >&5 4239sed 's/^/| /' conftest.$ac_ext >&5 4240 4241lt_cv_cc_needs_belf=no 4242fi 4243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4244 ac_ext=c 4245ac_cpp='$CPP $CPPFLAGS' 4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4248ac_compiler_gnu=$ac_cv_c_compiler_gnu 4249 4250fi 4251echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4252echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4253 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4255 CFLAGS="$SAVE_CFLAGS" 4256 fi 4257 ;; 4258 4259esac 4260 4261need_locks="$enable_libtool_lock" 4262 4263 4264 4265echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4266echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4267if test "${ac_cv_header_stdc+set}" = set; then 4268 echo $ECHO_N "(cached) $ECHO_C" >&6 4269else 4270 cat >conftest.$ac_ext <<_ACEOF 4271#line $LINENO "configure" 4272/* confdefs.h. */ 4273_ACEOF 4274cat confdefs.h >>conftest.$ac_ext 4275cat >>conftest.$ac_ext <<_ACEOF 4276/* end confdefs.h. */ 4277#include <stdlib.h> 4278#include <stdarg.h> 4279#include <string.h> 4280#include <float.h> 4281 4282int 4283main () 4284{ 4285 4286 ; 4287 return 0; 4288} 4289_ACEOF 4290rm -f conftest.$ac_objext 4291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4292 (eval $ac_compile) 2>&5 4293 ac_status=$? 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4295 (exit $ac_status); } && 4296 { ac_try='test -s conftest.$ac_objext' 4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4298 (eval $ac_try) 2>&5 4299 ac_status=$? 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4301 (exit $ac_status); }; }; then 4302 ac_cv_header_stdc=yes 4303else 4304 echo "$as_me: failed program was:" >&5 4305sed 's/^/| /' conftest.$ac_ext >&5 4306 4307ac_cv_header_stdc=no 4308fi 4309rm -f conftest.$ac_objext conftest.$ac_ext 4310 4311if test $ac_cv_header_stdc = yes; then 4312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4313 cat >conftest.$ac_ext <<_ACEOF 4314#line $LINENO "configure" 4315/* confdefs.h. */ 4316_ACEOF 4317cat confdefs.h >>conftest.$ac_ext 4318cat >>conftest.$ac_ext <<_ACEOF 4319/* end confdefs.h. */ 4320#include <string.h> 4321 4322_ACEOF 4323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4324 $EGREP "memchr" >/dev/null 2>&1; then 4325 : 4326else 4327 ac_cv_header_stdc=no 4328fi 4329rm -f conftest* 4330 4331fi 4332 4333if test $ac_cv_header_stdc = yes; then 4334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4335 cat >conftest.$ac_ext <<_ACEOF 4336#line $LINENO "configure" 4337/* confdefs.h. */ 4338_ACEOF 4339cat confdefs.h >>conftest.$ac_ext 4340cat >>conftest.$ac_ext <<_ACEOF 4341/* end confdefs.h. */ 4342#include <stdlib.h> 4343 4344_ACEOF 4345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4346 $EGREP "free" >/dev/null 2>&1; then 4347 : 4348else 4349 ac_cv_header_stdc=no 4350fi 4351rm -f conftest* 4352 4353fi 4354 4355if test $ac_cv_header_stdc = yes; then 4356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4357 if test "$cross_compiling" = yes; then 4358 : 4359else 4360 cat >conftest.$ac_ext <<_ACEOF 4361#line $LINENO "configure" 4362/* confdefs.h. */ 4363_ACEOF 4364cat confdefs.h >>conftest.$ac_ext 4365cat >>conftest.$ac_ext <<_ACEOF 4366/* end confdefs.h. */ 4367#include <ctype.h> 4368#if ((' ' & 0x0FF) == 0x020) 4369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4371#else 4372# define ISLOWER(c) \ 4373 (('a' <= (c) && (c) <= 'i') \ 4374 || ('j' <= (c) && (c) <= 'r') \ 4375 || ('s' <= (c) && (c) <= 'z')) 4376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4377#endif 4378 4379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4380int 4381main () 4382{ 4383 int i; 4384 for (i = 0; i < 256; i++) 4385 if (XOR (islower (i), ISLOWER (i)) 4386 || toupper (i) != TOUPPER (i)) 4387 exit(2); 4388 exit (0); 4389} 4390_ACEOF 4391rm -f conftest$ac_exeext 4392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4393 (eval $ac_link) 2>&5 4394 ac_status=$? 4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4398 (eval $ac_try) 2>&5 4399 ac_status=$? 4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4401 (exit $ac_status); }; }; then 4402 : 4403else 4404 echo "$as_me: program exited with status $ac_status" >&5 4405echo "$as_me: failed program was:" >&5 4406sed 's/^/| /' conftest.$ac_ext >&5 4407 4408( exit $ac_status ) 4409ac_cv_header_stdc=no 4410fi 4411rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4412fi 4413fi 4414fi 4415echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4416echo "${ECHO_T}$ac_cv_header_stdc" >&6 4417if test $ac_cv_header_stdc = yes; then 4418 4419cat >>confdefs.h <<\_ACEOF 4420#define STDC_HEADERS 1 4421_ACEOF 4422 4423fi 4424 4425# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4436 inttypes.h stdint.h unistd.h 4437do 4438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4439echo "$as_me:$LINENO: checking for $ac_header" >&5 4440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4441if eval "test \"\${$as_ac_Header+set}\" = set"; then 4442 echo $ECHO_N "(cached) $ECHO_C" >&6 4443else 4444 cat >conftest.$ac_ext <<_ACEOF 4445#line $LINENO "configure" 4446/* confdefs.h. */ 4447_ACEOF 4448cat confdefs.h >>conftest.$ac_ext 4449cat >>conftest.$ac_ext <<_ACEOF 4450/* end confdefs.h. */ 4451$ac_includes_default 4452 4453#include <$ac_header> 4454_ACEOF 4455rm -f conftest.$ac_objext 4456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4457 (eval $ac_compile) 2>&5 4458 ac_status=$? 4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4460 (exit $ac_status); } && 4461 { ac_try='test -s conftest.$ac_objext' 4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4463 (eval $ac_try) 2>&5 4464 ac_status=$? 4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4466 (exit $ac_status); }; }; then 4467 eval "$as_ac_Header=yes" 4468else 4469 echo "$as_me: failed program was:" >&5 4470sed 's/^/| /' conftest.$ac_ext >&5 4471 4472eval "$as_ac_Header=no" 4473fi 4474rm -f conftest.$ac_objext conftest.$ac_ext 4475fi 4476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4478if test `eval echo '${'$as_ac_Header'}'` = yes; then 4479 cat >>confdefs.h <<_ACEOF 4480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4481_ACEOF 4482 4483fi 4484 4485done 4486 4487 4488 4489for ac_header in dlfcn.h 4490do 4491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4492if eval "test \"\${$as_ac_Header+set}\" = set"; then 4493 echo "$as_me:$LINENO: checking for $ac_header" >&5 4494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4495if eval "test \"\${$as_ac_Header+set}\" = set"; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497fi 4498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4500else 4501 # Is the header compilable? 4502echo "$as_me:$LINENO: checking $ac_header usability" >&5 4503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4504cat >conftest.$ac_ext <<_ACEOF 4505#line $LINENO "configure" 4506/* confdefs.h. */ 4507_ACEOF 4508cat confdefs.h >>conftest.$ac_ext 4509cat >>conftest.$ac_ext <<_ACEOF 4510/* end confdefs.h. */ 4511$ac_includes_default 4512#include <$ac_header> 4513_ACEOF 4514rm -f conftest.$ac_objext 4515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4516 (eval $ac_compile) 2>&5 4517 ac_status=$? 4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4519 (exit $ac_status); } && 4520 { ac_try='test -s conftest.$ac_objext' 4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4522 (eval $ac_try) 2>&5 4523 ac_status=$? 4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4525 (exit $ac_status); }; }; then 4526 ac_header_compiler=yes 4527else 4528 echo "$as_me: failed program was:" >&5 4529sed 's/^/| /' conftest.$ac_ext >&5 4530 4531ac_header_compiler=no 4532fi 4533rm -f conftest.$ac_objext conftest.$ac_ext 4534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4535echo "${ECHO_T}$ac_header_compiler" >&6 4536 4537# Is the header present? 4538echo "$as_me:$LINENO: checking $ac_header presence" >&5 4539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4540cat >conftest.$ac_ext <<_ACEOF 4541#line $LINENO "configure" 4542/* confdefs.h. */ 4543_ACEOF 4544cat confdefs.h >>conftest.$ac_ext 4545cat >>conftest.$ac_ext <<_ACEOF 4546/* end confdefs.h. */ 4547#include <$ac_header> 4548_ACEOF 4549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4551 ac_status=$? 4552 grep -v '^ *+' conftest.er1 >conftest.err 4553 rm -f conftest.er1 4554 cat conftest.err >&5 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); } >/dev/null; then 4557 if test -s conftest.err; then 4558 ac_cpp_err=$ac_c_preproc_warn_flag 4559 else 4560 ac_cpp_err= 4561 fi 4562else 4563 ac_cpp_err=yes 4564fi 4565if test -z "$ac_cpp_err"; then 4566 ac_header_preproc=yes 4567else 4568 echo "$as_me: failed program was:" >&5 4569sed 's/^/| /' conftest.$ac_ext >&5 4570 4571 ac_header_preproc=no 4572fi 4573rm -f conftest.err conftest.$ac_ext 4574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4575echo "${ECHO_T}$ac_header_preproc" >&6 4576 4577# So? What about this header? 4578case $ac_header_compiler:$ac_header_preproc in 4579 yes:no ) 4580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4584 ( 4585 cat <<\_ASBOX 4586## ------------------------------------ ## 4587## Report this to bug-autoconf@gnu.org. ## 4588## ------------------------------------ ## 4589_ASBOX 4590 ) | 4591 sed "s/^/$as_me: WARNING: /" >&2 4592 ;; 4593 no:yes ) 4594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4595echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4597echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4600 ( 4601 cat <<\_ASBOX 4602## ------------------------------------ ## 4603## Report this to bug-autoconf@gnu.org. ## 4604## ------------------------------------ ## 4605_ASBOX 4606 ) | 4607 sed "s/^/$as_me: WARNING: /" >&2 4608 ;; 4609esac 4610echo "$as_me:$LINENO: checking for $ac_header" >&5 4611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4612if eval "test \"\${$as_ac_Header+set}\" = set"; then 4613 echo $ECHO_N "(cached) $ECHO_C" >&6 4614else 4615 eval "$as_ac_Header=$ac_header_preproc" 4616fi 4617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4619 4620fi 4621if test `eval echo '${'$as_ac_Header'}'` = yes; then 4622 cat >>confdefs.h <<_ACEOF 4623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4624_ACEOF 4625 4626fi 4627 4628done 4629 4630ac_ext=cc 4631ac_cpp='$CXXCPP $CPPFLAGS' 4632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4635echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4636echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4637if test -z "$CXXCPP"; then 4638 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4639 echo $ECHO_N "(cached) $ECHO_C" >&6 4640else 4641 # Double quotes because CXXCPP needs to be expanded 4642 for CXXCPP in "$CXX -E" "/lib/cpp" 4643 do 4644 ac_preproc_ok=false 4645for ac_cxx_preproc_warn_flag in '' yes 4646do 4647 # Use a header file that comes with gcc, so configuring glibc 4648 # with a fresh cross-compiler works. 4649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4650 # <limits.h> exists even on freestanding compilers. 4651 # On the NeXT, cc -E runs the code through the compiler's parser, 4652 # not just through cpp. "Syntax error" is here to catch this case. 4653 cat >conftest.$ac_ext <<_ACEOF 4654#line $LINENO "configure" 4655/* confdefs.h. */ 4656_ACEOF 4657cat confdefs.h >>conftest.$ac_ext 4658cat >>conftest.$ac_ext <<_ACEOF 4659/* end confdefs.h. */ 4660#ifdef __STDC__ 4661# include <limits.h> 4662#else 4663# include <assert.h> 4664#endif 4665 Syntax error 4666_ACEOF 4667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4669 ac_status=$? 4670 grep -v '^ *+' conftest.er1 >conftest.err 4671 rm -f conftest.er1 4672 cat conftest.err >&5 4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4674 (exit $ac_status); } >/dev/null; then 4675 if test -s conftest.err; then 4676 ac_cpp_err=$ac_cxx_preproc_warn_flag 4677 else 4678 ac_cpp_err= 4679 fi 4680else 4681 ac_cpp_err=yes 4682fi 4683if test -z "$ac_cpp_err"; then 4684 : 4685else 4686 echo "$as_me: failed program was:" >&5 4687sed 's/^/| /' conftest.$ac_ext >&5 4688 4689 # Broken: fails on valid input. 4690continue 4691fi 4692rm -f conftest.err conftest.$ac_ext 4693 4694 # OK, works on sane cases. Now check whether non-existent headers 4695 # can be detected and how. 4696 cat >conftest.$ac_ext <<_ACEOF 4697#line $LINENO "configure" 4698/* confdefs.h. */ 4699_ACEOF 4700cat confdefs.h >>conftest.$ac_ext 4701cat >>conftest.$ac_ext <<_ACEOF 4702/* end confdefs.h. */ 4703#include <ac_nonexistent.h> 4704_ACEOF 4705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4707 ac_status=$? 4708 grep -v '^ *+' conftest.er1 >conftest.err 4709 rm -f conftest.er1 4710 cat conftest.err >&5 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4712 (exit $ac_status); } >/dev/null; then 4713 if test -s conftest.err; then 4714 ac_cpp_err=$ac_cxx_preproc_warn_flag 4715 else 4716 ac_cpp_err= 4717 fi 4718else 4719 ac_cpp_err=yes 4720fi 4721if test -z "$ac_cpp_err"; then 4722 # Broken: success on invalid input. 4723continue 4724else 4725 echo "$as_me: failed program was:" >&5 4726sed 's/^/| /' conftest.$ac_ext >&5 4727 4728 # Passes both tests. 4729ac_preproc_ok=: 4730break 4731fi 4732rm -f conftest.err conftest.$ac_ext 4733 4734done 4735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4736rm -f conftest.err conftest.$ac_ext 4737if $ac_preproc_ok; then 4738 break 4739fi 4740 4741 done 4742 ac_cv_prog_CXXCPP=$CXXCPP 4743 4744fi 4745 CXXCPP=$ac_cv_prog_CXXCPP 4746else 4747 ac_cv_prog_CXXCPP=$CXXCPP 4748fi 4749echo "$as_me:$LINENO: result: $CXXCPP" >&5 4750echo "${ECHO_T}$CXXCPP" >&6 4751ac_preproc_ok=false 4752for ac_cxx_preproc_warn_flag in '' yes 4753do 4754 # Use a header file that comes with gcc, so configuring glibc 4755 # with a fresh cross-compiler works. 4756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4757 # <limits.h> exists even on freestanding compilers. 4758 # On the NeXT, cc -E runs the code through the compiler's parser, 4759 # not just through cpp. "Syntax error" is here to catch this case. 4760 cat >conftest.$ac_ext <<_ACEOF 4761#line $LINENO "configure" 4762/* confdefs.h. */ 4763_ACEOF 4764cat confdefs.h >>conftest.$ac_ext 4765cat >>conftest.$ac_ext <<_ACEOF 4766/* end confdefs.h. */ 4767#ifdef __STDC__ 4768# include <limits.h> 4769#else 4770# include <assert.h> 4771#endif 4772 Syntax error 4773_ACEOF 4774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4776 ac_status=$? 4777 grep -v '^ *+' conftest.er1 >conftest.err 4778 rm -f conftest.er1 4779 cat conftest.err >&5 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); } >/dev/null; then 4782 if test -s conftest.err; then 4783 ac_cpp_err=$ac_cxx_preproc_warn_flag 4784 else 4785 ac_cpp_err= 4786 fi 4787else 4788 ac_cpp_err=yes 4789fi 4790if test -z "$ac_cpp_err"; then 4791 : 4792else 4793 echo "$as_me: failed program was:" >&5 4794sed 's/^/| /' conftest.$ac_ext >&5 4795 4796 # Broken: fails on valid input. 4797continue 4798fi 4799rm -f conftest.err conftest.$ac_ext 4800 4801 # OK, works on sane cases. Now check whether non-existent headers 4802 # can be detected and how. 4803 cat >conftest.$ac_ext <<_ACEOF 4804#line $LINENO "configure" 4805/* confdefs.h. */ 4806_ACEOF 4807cat confdefs.h >>conftest.$ac_ext 4808cat >>conftest.$ac_ext <<_ACEOF 4809/* end confdefs.h. */ 4810#include <ac_nonexistent.h> 4811_ACEOF 4812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4814 ac_status=$? 4815 grep -v '^ *+' conftest.er1 >conftest.err 4816 rm -f conftest.er1 4817 cat conftest.err >&5 4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4819 (exit $ac_status); } >/dev/null; then 4820 if test -s conftest.err; then 4821 ac_cpp_err=$ac_cxx_preproc_warn_flag 4822 else 4823 ac_cpp_err= 4824 fi 4825else 4826 ac_cpp_err=yes 4827fi 4828if test -z "$ac_cpp_err"; then 4829 # Broken: success on invalid input. 4830continue 4831else 4832 echo "$as_me: failed program was:" >&5 4833sed 's/^/| /' conftest.$ac_ext >&5 4834 4835 # Passes both tests. 4836ac_preproc_ok=: 4837break 4838fi 4839rm -f conftest.err conftest.$ac_ext 4840 4841done 4842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4843rm -f conftest.err conftest.$ac_ext 4844if $ac_preproc_ok; then 4845 : 4846else 4847 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4848See \`config.log' for more details." >&5 4849echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4850See \`config.log' for more details." >&2;} 4851 { (exit 1); exit 1; }; } 4852fi 4853 4854ac_ext=cc 4855ac_cpp='$CXXCPP $CPPFLAGS' 4856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4859 4860 4861ac_ext=f 4862ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4863ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4864ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4865if test -n "$ac_tool_prefix"; then 4866 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 4867 do 4868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4869set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4870echo "$as_me:$LINENO: checking for $ac_word" >&5 4871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4872if test "${ac_cv_prog_F77+set}" = set; then 4873 echo $ECHO_N "(cached) $ECHO_C" >&6 4874else 4875 if test -n "$F77"; then 4876 ac_cv_prog_F77="$F77" # Let the user override the test. 4877else 4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4879for as_dir in $PATH 4880do 4881 IFS=$as_save_IFS 4882 test -z "$as_dir" && as_dir=. 4883 for ac_exec_ext in '' $ac_executable_extensions; do 4884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4885 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4887 break 2 4888 fi 4889done 4890done 4891 4892fi 4893fi 4894F77=$ac_cv_prog_F77 4895if test -n "$F77"; then 4896 echo "$as_me:$LINENO: result: $F77" >&5 4897echo "${ECHO_T}$F77" >&6 4898else 4899 echo "$as_me:$LINENO: result: no" >&5 4900echo "${ECHO_T}no" >&6 4901fi 4902 4903 test -n "$F77" && break 4904 done 4905fi 4906if test -z "$F77"; then 4907 ac_ct_F77=$F77 4908 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 4909do 4910 # Extract the first word of "$ac_prog", so it can be a program name with args. 4911set dummy $ac_prog; ac_word=$2 4912echo "$as_me:$LINENO: checking for $ac_word" >&5 4913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4914if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4915 echo $ECHO_N "(cached) $ECHO_C" >&6 4916else 4917 if test -n "$ac_ct_F77"; then 4918 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4919else 4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4921for as_dir in $PATH 4922do 4923 IFS=$as_save_IFS 4924 test -z "$as_dir" && as_dir=. 4925 for ac_exec_ext in '' $ac_executable_extensions; do 4926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4927 ac_cv_prog_ac_ct_F77="$ac_prog" 4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4929 break 2 4930 fi 4931done 4932done 4933 4934fi 4935fi 4936ac_ct_F77=$ac_cv_prog_ac_ct_F77 4937if test -n "$ac_ct_F77"; then 4938 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4939echo "${ECHO_T}$ac_ct_F77" >&6 4940else 4941 echo "$as_me:$LINENO: result: no" >&5 4942echo "${ECHO_T}no" >&6 4943fi 4944 4945 test -n "$ac_ct_F77" && break 4946done 4947 4948 F77=$ac_ct_F77 4949fi 4950 4951 4952# Provide some information about the compiler. 4953echo "$as_me:4953:" \ 4954 "checking for Fortran 77 compiler version" >&5 4955ac_compiler=`set X $ac_compile; echo $2` 4956{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4957 (eval $ac_compiler --version </dev/null >&5) 2>&5 4958 ac_status=$? 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4960 (exit $ac_status); } 4961{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4962 (eval $ac_compiler -v </dev/null >&5) 2>&5 4963 ac_status=$? 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4965 (exit $ac_status); } 4966{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4967 (eval $ac_compiler -V </dev/null >&5) 2>&5 4968 ac_status=$? 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4970 (exit $ac_status); } 4971 4972# If we don't use `.F' as extension, the preprocessor is not run on the 4973# input file. 4974ac_save_ext=$ac_ext 4975ac_ext=F 4976echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4977echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4978if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4979 echo $ECHO_N "(cached) $ECHO_C" >&6 4980else 4981 cat >conftest.$ac_ext <<_ACEOF 4982 program main 4983#ifndef __GNUC__ 4984 choke me 4985#endif 4986 4987 end 4988_ACEOF 4989rm -f conftest.$ac_objext 4990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4991 (eval $ac_compile) 2>&5 4992 ac_status=$? 4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4994 (exit $ac_status); } && 4995 { ac_try='test -s conftest.$ac_objext' 4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4997 (eval $ac_try) 2>&5 4998 ac_status=$? 4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5000 (exit $ac_status); }; }; then 5001 ac_compiler_gnu=yes 5002else 5003 echo "$as_me: failed program was:" >&5 5004sed 's/^/| /' conftest.$ac_ext >&5 5005 5006ac_compiler_gnu=no 5007fi 5008rm -f conftest.$ac_objext conftest.$ac_ext 5009ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5010 5011fi 5012echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5013echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5014ac_ext=$ac_save_ext 5015G77=`test $ac_compiler_gnu = yes && echo yes` 5016ac_test_FFLAGS=${FFLAGS+set} 5017ac_save_FFLAGS=$FFLAGS 5018FFLAGS= 5019echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5020echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5021if test "${ac_cv_prog_f77_g+set}" = set; then 5022 echo $ECHO_N "(cached) $ECHO_C" >&6 5023else 5024 FFLAGS=-g 5025cat >conftest.$ac_ext <<_ACEOF 5026 program main 5027 5028 end 5029_ACEOF 5030rm -f conftest.$ac_objext 5031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5032 (eval $ac_compile) 2>&5 5033 ac_status=$? 5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5035 (exit $ac_status); } && 5036 { ac_try='test -s conftest.$ac_objext' 5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5038 (eval $ac_try) 2>&5 5039 ac_status=$? 5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5041 (exit $ac_status); }; }; then 5042 ac_cv_prog_f77_g=yes 5043else 5044 echo "$as_me: failed program was:" >&5 5045sed 's/^/| /' conftest.$ac_ext >&5 5046 5047ac_cv_prog_f77_g=no 5048fi 5049rm -f conftest.$ac_objext conftest.$ac_ext 5050 5051fi 5052echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5053echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5054if test "$ac_test_FFLAGS" = set; then 5055 FFLAGS=$ac_save_FFLAGS 5056elif test $ac_cv_prog_f77_g = yes; then 5057 if test "$G77" = yes; then 5058 FFLAGS="-g -O2" 5059 else 5060 FFLAGS="-g" 5061 fi 5062else 5063 if test "$G77" = yes; then 5064 FFLAGS="-O2" 5065 else 5066 FFLAGS= 5067 fi 5068fi 5069ac_ext=c 5070ac_cpp='$CPP $CPPFLAGS' 5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5073ac_compiler_gnu=$ac_cv_c_compiler_gnu 5074 5075 5076 5077# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5078 5079# find the maximum length of command line arguments 5080echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5081echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5082if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5083 echo $ECHO_N "(cached) $ECHO_C" >&6 5084else 5085 i=0 5086 testring="ABCD" 5087 5088 case $build_os in 5089 msdosdjgpp*) 5090 # On DJGPP, this test can blow up pretty badly due to problems in libc 5091 # (any single argument exceeding 2000 bytes causes a buffer overrun 5092 # during glob expansion). Even if it were fixed, the result of this 5093 # check would be larger than it should be. 5094 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5095 ;; 5096 5097 gnu*) 5098 # Under GNU Hurd, this test is not required because there is 5099 # no limit to the length of command line arguments. 5100 # Libtool will interpret -1 as no limit whatsoever 5101 lt_cv_sys_max_cmd_len=-1; 5102 ;; 5103 5104 cygwin* | mingw*) 5105 # On Win9x/ME, this test blows up -- it succeeds, but takes 5106 # about 5 minutes as the teststring grows exponentially. 5107 # Worse, since 9x/ME are not pre-emptively multitasking, 5108 # you end up with a "frozen" computer, even though with patience 5109 # the test eventually succeeds (with a max line length of 256k). 5110 # Instead, let's just punt: use the minimum linelength reported by 5111 # all of the supported platforms: 8192 (on NT/2K/XP). 5112 lt_cv_sys_max_cmd_len=8192; 5113 ;; 5114 5115 *) 5116 # If test is not a shell built-in, we'll probably end up computing a 5117 # maximum length that is only half of the actual maximum length, but 5118 # we can't tell. 5119 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 5120 = "XX$testring") >/dev/null 2>&1 && 5121 new_result=`expr "X$testring" : ".*" 2>&1` && 5122 lt_cv_sys_max_cmd_len=$new_result && 5123 test $i != 17 # 1/2 MB should be enough 5124 do 5125 i=`expr $i + 1` 5126 testring=$testring$testring 5127 done 5128 testring= 5129 # Add a significant safety factor because C++ compilers can tack on massive 5130 # amounts of additional arguments before passing them to the linker. 5131 # It appears as though 1/2 is a usable value. 5132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5133 ;; 5134 esac 5135 5136fi 5137 5138if test -n $lt_cv_sys_max_cmd_len ; then 5139 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5140echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5141else 5142 echo "$as_me:$LINENO: result: none" >&5 5143echo "${ECHO_T}none" >&6 5144fi 5145 5146 5147 5148 5149# Check for command to grab the raw symbol name followed by C symbol from nm. 5150echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5151echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5152if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5153 echo $ECHO_N "(cached) $ECHO_C" >&6 5154else 5155 5156# These are sane defaults that work on at least a few old systems. 5157# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5158 5159# Character class describing NM global symbol codes. 5160symcode='[BCDEGRST]' 5161 5162# Regexp to match symbols that can be accessed directly from C. 5163sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5164 5165# Transform the above into a raw symbol and a C symbol. 5166symxfrm='\1 \2\3 \3' 5167 5168# Transform an extracted symbol line into a proper C declaration 5169lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5170 5171# Transform an extracted symbol line into symbol name and symbol address 5172lt_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'" 5173 5174# Define system-specific variables. 5175case $host_os in 5176aix*) 5177 symcode='[BCDT]' 5178 ;; 5179cygwin* | mingw* | pw32*) 5180 symcode='[ABCDGISTW]' 5181 ;; 5182hpux*) # Its linker distinguishes data from code symbols 5183 if test "$host_cpu" = ia64; then 5184 symcode='[ABCDEGRST]' 5185 fi 5186 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5187 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'" 5188 ;; 5189irix* | nonstopux*) 5190 symcode='[BCDEGRST]' 5191 ;; 5192osf*) 5193 symcode='[BCDEGQRST]' 5194 ;; 5195solaris* | sysv5*) 5196 symcode='[BDT]' 5197 ;; 5198sysv4) 5199 symcode='[DFNSTU]' 5200 ;; 5201esac 5202 5203# Handle CRLF in mingw tool chain 5204opt_cr= 5205case $build_os in 5206mingw*) 5207 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5208 ;; 5209esac 5210 5211# If we're using GNU nm, then use its standard symbol codes. 5212case `$NM -V 2>&1` in 5213*GNU* | *'with BFD'*) 5214 symcode='[ABCDGISTW]' ;; 5215esac 5216 5217# Try without a prefix undercore, then with it. 5218for ac_symprfx in "" "_"; do 5219 5220 # Write the raw and C identifiers. 5221 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5222 5223 # Check to see that the pipe works correctly. 5224 pipe_works=no 5225 5226 rm -f conftest* 5227 cat > conftest.$ac_ext <<EOF 5228#ifdef __cplusplus 5229extern "C" { 5230#endif 5231char nm_test_var; 5232void nm_test_func(){} 5233#ifdef __cplusplus 5234} 5235#endif 5236int main(){nm_test_var='a';nm_test_func();return(0);} 5237EOF 5238 5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5240 (eval $ac_compile) 2>&5 5241 ac_status=$? 5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5243 (exit $ac_status); }; then 5244 # Now try to grab the symbols. 5245 nlist=conftest.nm 5246 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5247 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5248 ac_status=$? 5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5250 (exit $ac_status); } && test -s "$nlist"; then 5251 # Try sorting and uniquifying the output. 5252 if sort "$nlist" | uniq > "$nlist"T; then 5253 mv -f "$nlist"T "$nlist" 5254 else 5255 rm -f "$nlist"T 5256 fi 5257 5258 # Make sure that we snagged all the symbols we need. 5259 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5260 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5261 cat <<EOF > conftest.$ac_ext 5262#ifdef __cplusplus 5263extern "C" { 5264#endif 5265 5266EOF 5267 # Now generate the symbol file. 5268 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5269 5270 cat <<EOF >> conftest.$ac_ext 5271#if defined (__STDC__) && __STDC__ 5272# define lt_ptr_t void * 5273#else 5274# define lt_ptr_t char * 5275# define const 5276#endif 5277 5278/* The mapping between symbol names and symbols. */ 5279const struct { 5280 const char *name; 5281 lt_ptr_t address; 5282} 5283lt_preloaded_symbols[] = 5284{ 5285EOF 5286 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5287 cat <<\EOF >> conftest.$ac_ext 5288 {0, (lt_ptr_t) 0} 5289}; 5290 5291#ifdef __cplusplus 5292} 5293#endif 5294EOF 5295 # Now try linking the two files. 5296 mv conftest.$ac_objext conftstm.$ac_objext 5297 lt_save_LIBS="$LIBS" 5298 lt_save_CFLAGS="$CFLAGS" 5299 LIBS="conftstm.$ac_objext" 5300 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5302 (eval $ac_link) 2>&5 5303 ac_status=$? 5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5305 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5306 pipe_works=yes 5307 fi 5308 LIBS="$lt_save_LIBS" 5309 CFLAGS="$lt_save_CFLAGS" 5310 else 5311 echo "cannot find nm_test_func in $nlist" >&5 5312 fi 5313 else 5314 echo "cannot find nm_test_var in $nlist" >&5 5315 fi 5316 else 5317 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5318 fi 5319 else 5320 echo "$progname: failed program was:" >&5 5321 cat conftest.$ac_ext >&5 5322 fi 5323 rm -f conftest* conftst* 5324 5325 # Do not use the global_symbol_pipe unless it works. 5326 if test "$pipe_works" = yes; then 5327 break 5328 else 5329 lt_cv_sys_global_symbol_pipe= 5330 fi 5331done 5332 5333fi 5334 5335if test -z "$lt_cv_sys_global_symbol_pipe"; then 5336 lt_cv_sys_global_symbol_to_cdecl= 5337fi 5338if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5339 echo "$as_me:$LINENO: result: failed" >&5 5340echo "${ECHO_T}failed" >&6 5341else 5342 echo "$as_me:$LINENO: result: ok" >&5 5343echo "${ECHO_T}ok" >&6 5344fi 5345 5346echo "$as_me:$LINENO: checking for objdir" >&5 5347echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5348if test "${lt_cv_objdir+set}" = set; then 5349 echo $ECHO_N "(cached) $ECHO_C" >&6 5350else 5351 rm -f .libs 2>/dev/null 5352mkdir .libs 2>/dev/null 5353if test -d .libs; then 5354 lt_cv_objdir=.libs 5355else 5356 # MS-DOS does not allow filenames that begin with a dot. 5357 lt_cv_objdir=_libs 5358fi 5359rmdir .libs 2>/dev/null 5360fi 5361echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5362echo "${ECHO_T}$lt_cv_objdir" >&6 5363objdir=$lt_cv_objdir 5364 5365 5366 5367 5368 5369case $host_os in 5370aix3*) 5371 # AIX sometimes has problems with the GCC collect2 program. For some 5372 # reason, if we set the COLLECT_NAMES environment variable, the problems 5373 # vanish in a puff of smoke. 5374 if test "X${COLLECT_NAMES+set}" != Xset; then 5375 COLLECT_NAMES= 5376 export COLLECT_NAMES 5377 fi 5378 ;; 5379esac 5380 5381# Sed substitution that helps us do robust quoting. It backslashifies 5382# metacharacters that are still active within double-quoted strings. 5383Xsed='sed -e s/^X//' 5384sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5385 5386# Same as above, but do not quote variable references. 5387double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5388 5389# Sed substitution to delay expansion of an escaped shell variable in a 5390# double_quote_subst'ed string. 5391delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5392 5393# Sed substitution to avoid accidental globbing in evaled expressions 5394no_glob_subst='s/\*/\\\*/g' 5395 5396# Constants: 5397rm="rm -f" 5398 5399# Global variables: 5400default_ofile=mklib 5401can_build_shared=yes 5402 5403# All known linkers require a `.a' archive for static linking (except M$VC, 5404# which needs '.lib'). 5405libext=a 5406ltmain="$ac_aux_dir/ltmain.sh" 5407ofile="$default_ofile" 5408with_gnu_ld="$lt_cv_prog_gnu_ld" 5409 5410if test -n "$ac_tool_prefix"; then 5411 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5412set dummy ${ac_tool_prefix}ar; ac_word=$2 5413echo "$as_me:$LINENO: checking for $ac_word" >&5 5414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5415if test "${ac_cv_prog_AR+set}" = set; then 5416 echo $ECHO_N "(cached) $ECHO_C" >&6 5417else 5418 if test -n "$AR"; then 5419 ac_cv_prog_AR="$AR" # Let the user override the test. 5420else 5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5422for as_dir in $PATH 5423do 5424 IFS=$as_save_IFS 5425 test -z "$as_dir" && as_dir=. 5426 for ac_exec_ext in '' $ac_executable_extensions; do 5427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5428 ac_cv_prog_AR="${ac_tool_prefix}ar" 5429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5430 break 2 5431 fi 5432done 5433done 5434 5435fi 5436fi 5437AR=$ac_cv_prog_AR 5438if test -n "$AR"; then 5439 echo "$as_me:$LINENO: result: $AR" >&5 5440echo "${ECHO_T}$AR" >&6 5441else 5442 echo "$as_me:$LINENO: result: no" >&5 5443echo "${ECHO_T}no" >&6 5444fi 5445 5446fi 5447if test -z "$ac_cv_prog_AR"; then 5448 ac_ct_AR=$AR 5449 # Extract the first word of "ar", so it can be a program name with args. 5450set dummy ar; ac_word=$2 5451echo "$as_me:$LINENO: checking for $ac_word" >&5 5452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5453if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5454 echo $ECHO_N "(cached) $ECHO_C" >&6 5455else 5456 if test -n "$ac_ct_AR"; then 5457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5458else 5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5466 ac_cv_prog_ac_ct_AR="ar" 5467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471done 5472 5473 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5474fi 5475fi 5476ac_ct_AR=$ac_cv_prog_ac_ct_AR 5477if test -n "$ac_ct_AR"; then 5478 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5479echo "${ECHO_T}$ac_ct_AR" >&6 5480else 5481 echo "$as_me:$LINENO: result: no" >&5 5482echo "${ECHO_T}no" >&6 5483fi 5484 5485 AR=$ac_ct_AR 5486else 5487 AR="$ac_cv_prog_AR" 5488fi 5489 5490if test -n "$ac_tool_prefix"; then 5491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5492set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5493echo "$as_me:$LINENO: checking for $ac_word" >&5 5494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5495if test "${ac_cv_prog_RANLIB+set}" = set; then 5496 echo $ECHO_N "(cached) $ECHO_C" >&6 5497else 5498 if test -n "$RANLIB"; then 5499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5500else 5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5502for as_dir in $PATH 5503do 5504 IFS=$as_save_IFS 5505 test -z "$as_dir" && as_dir=. 5506 for ac_exec_ext in '' $ac_executable_extensions; do 5507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5510 break 2 5511 fi 5512done 5513done 5514 5515fi 5516fi 5517RANLIB=$ac_cv_prog_RANLIB 5518if test -n "$RANLIB"; then 5519 echo "$as_me:$LINENO: result: $RANLIB" >&5 5520echo "${ECHO_T}$RANLIB" >&6 5521else 5522 echo "$as_me:$LINENO: result: no" >&5 5523echo "${ECHO_T}no" >&6 5524fi 5525 5526fi 5527if test -z "$ac_cv_prog_RANLIB"; then 5528 ac_ct_RANLIB=$RANLIB 5529 # Extract the first word of "ranlib", so it can be a program name with args. 5530set dummy ranlib; ac_word=$2 5531echo "$as_me:$LINENO: checking for $ac_word" >&5 5532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5533if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5534 echo $ECHO_N "(cached) $ECHO_C" >&6 5535else 5536 if test -n "$ac_ct_RANLIB"; then 5537 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5538else 5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5540for as_dir in $PATH 5541do 5542 IFS=$as_save_IFS 5543 test -z "$as_dir" && as_dir=. 5544 for ac_exec_ext in '' $ac_executable_extensions; do 5545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5546 ac_cv_prog_ac_ct_RANLIB="ranlib" 5547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5548 break 2 5549 fi 5550done 5551done 5552 5553 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5554fi 5555fi 5556ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5557if test -n "$ac_ct_RANLIB"; then 5558 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5559echo "${ECHO_T}$ac_ct_RANLIB" >&6 5560else 5561 echo "$as_me:$LINENO: result: no" >&5 5562echo "${ECHO_T}no" >&6 5563fi 5564 5565 RANLIB=$ac_ct_RANLIB 5566else 5567 RANLIB="$ac_cv_prog_RANLIB" 5568fi 5569 5570if test -n "$ac_tool_prefix"; then 5571 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5572set dummy ${ac_tool_prefix}strip; ac_word=$2 5573echo "$as_me:$LINENO: checking for $ac_word" >&5 5574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5575if test "${ac_cv_prog_STRIP+set}" = set; then 5576 echo $ECHO_N "(cached) $ECHO_C" >&6 5577else 5578 if test -n "$STRIP"; then 5579 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5580else 5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5582for as_dir in $PATH 5583do 5584 IFS=$as_save_IFS 5585 test -z "$as_dir" && as_dir=. 5586 for ac_exec_ext in '' $ac_executable_extensions; do 5587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5588 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5590 break 2 5591 fi 5592done 5593done 5594 5595fi 5596fi 5597STRIP=$ac_cv_prog_STRIP 5598if test -n "$STRIP"; then 5599 echo "$as_me:$LINENO: result: $STRIP" >&5 5600echo "${ECHO_T}$STRIP" >&6 5601else 5602 echo "$as_me:$LINENO: result: no" >&5 5603echo "${ECHO_T}no" >&6 5604fi 5605 5606fi 5607if test -z "$ac_cv_prog_STRIP"; then 5608 ac_ct_STRIP=$STRIP 5609 # Extract the first word of "strip", so it can be a program name with args. 5610set dummy strip; ac_word=$2 5611echo "$as_me:$LINENO: checking for $ac_word" >&5 5612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5613if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5614 echo $ECHO_N "(cached) $ECHO_C" >&6 5615else 5616 if test -n "$ac_ct_STRIP"; then 5617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5618else 5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5620for as_dir in $PATH 5621do 5622 IFS=$as_save_IFS 5623 test -z "$as_dir" && as_dir=. 5624 for ac_exec_ext in '' $ac_executable_extensions; do 5625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5626 ac_cv_prog_ac_ct_STRIP="strip" 5627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5628 break 2 5629 fi 5630done 5631done 5632 5633 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5634fi 5635fi 5636ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5637if test -n "$ac_ct_STRIP"; then 5638 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5639echo "${ECHO_T}$ac_ct_STRIP" >&6 5640else 5641 echo "$as_me:$LINENO: result: no" >&5 5642echo "${ECHO_T}no" >&6 5643fi 5644 5645 STRIP=$ac_ct_STRIP 5646else 5647 STRIP="$ac_cv_prog_STRIP" 5648fi 5649 5650 5651old_CC="$CC" 5652old_CFLAGS="$CFLAGS" 5653 5654# Set sane defaults for various variables 5655test -z "$AR" && AR=ar 5656test -z "$AR_FLAGS" && AR_FLAGS=cru 5657test -z "$AS" && AS=as 5658test -z "$CC" && CC=cc 5659test -z "$LTCC" && LTCC=$CC 5660test -z "$DLLTOOL" && DLLTOOL=dlltool 5661test -z "$LD" && LD=ld 5662test -z "$LN_S" && LN_S="ln -s" 5663test -z "$MAGIC_CMD" && MAGIC_CMD=file 5664test -z "$NM" && NM=nm 5665test -z "$SED" && SED=sed 5666test -z "$OBJDUMP" && OBJDUMP=objdump 5667test -z "$RANLIB" && RANLIB=: 5668test -z "$STRIP" && STRIP=: 5669test -z "$ac_objext" && ac_objext=o 5670 5671# Determine commands to create old-style static archives. 5672old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5673old_postinstall_cmds='chmod 644 $oldlib' 5674old_postuninstall_cmds= 5675 5676if test -n "$RANLIB"; then 5677 case $host_os in 5678 openbsd*) 5679 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5680 ;; 5681 *) 5682 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5683 ;; 5684 esac 5685 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5686fi 5687 5688# Only perform the check for file, if the check method requires it 5689case $deplibs_check_method in 5690file_magic*) 5691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5692 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5693echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5694if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5695 echo $ECHO_N "(cached) $ECHO_C" >&6 5696else 5697 case $MAGIC_CMD in 5698[\\/*] | ?:[\\/]*) 5699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5700 ;; 5701*) 5702 lt_save_MAGIC_CMD="$MAGIC_CMD" 5703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5705 for ac_dir in $ac_dummy; do 5706 IFS="$lt_save_ifs" 5707 test -z "$ac_dir" && ac_dir=. 5708 if test -f $ac_dir/${ac_tool_prefix}file; then 5709 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5710 if test -n "$file_magic_test_file"; then 5711 case $deplibs_check_method in 5712 "file_magic "*) 5713 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5716 $EGREP "$file_magic_regex" > /dev/null; then 5717 : 5718 else 5719 cat <<EOF 1>&2 5720 5721*** Warning: the command libtool uses to detect shared libraries, 5722*** $file_magic_cmd, produces output that libtool cannot recognize. 5723*** The result is that libtool may fail to recognize shared libraries 5724*** as such. This will affect the creation of libtool libraries that 5725*** depend on shared libraries, but programs linked with such libtool 5726*** libraries will work regardless of this problem. Nevertheless, you 5727*** may want to report the problem to your system manager and/or to 5728*** bug-libtool@gnu.org 5729 5730EOF 5731 fi ;; 5732 esac 5733 fi 5734 break 5735 fi 5736 done 5737 IFS="$lt_save_ifs" 5738 MAGIC_CMD="$lt_save_MAGIC_CMD" 5739 ;; 5740esac 5741fi 5742 5743MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5744if test -n "$MAGIC_CMD"; then 5745 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5746echo "${ECHO_T}$MAGIC_CMD" >&6 5747else 5748 echo "$as_me:$LINENO: result: no" >&5 5749echo "${ECHO_T}no" >&6 5750fi 5751 5752if test -z "$lt_cv_path_MAGIC_CMD"; then 5753 if test -n "$ac_tool_prefix"; then 5754 echo "$as_me:$LINENO: checking for file" >&5 5755echo $ECHO_N "checking for file... $ECHO_C" >&6 5756if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5757 echo $ECHO_N "(cached) $ECHO_C" >&6 5758else 5759 case $MAGIC_CMD in 5760[\\/*] | ?:[\\/]*) 5761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5762 ;; 5763*) 5764 lt_save_MAGIC_CMD="$MAGIC_CMD" 5765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5767 for ac_dir in $ac_dummy; do 5768 IFS="$lt_save_ifs" 5769 test -z "$ac_dir" && ac_dir=. 5770 if test -f $ac_dir/file; then 5771 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5772 if test -n "$file_magic_test_file"; then 5773 case $deplibs_check_method in 5774 "file_magic "*) 5775 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5778 $EGREP "$file_magic_regex" > /dev/null; then 5779 : 5780 else 5781 cat <<EOF 1>&2 5782 5783*** Warning: the command libtool uses to detect shared libraries, 5784*** $file_magic_cmd, produces output that libtool cannot recognize. 5785*** The result is that libtool may fail to recognize shared libraries 5786*** as such. This will affect the creation of libtool libraries that 5787*** depend on shared libraries, but programs linked with such libtool 5788*** libraries will work regardless of this problem. Nevertheless, you 5789*** may want to report the problem to your system manager and/or to 5790*** bug-libtool@gnu.org 5791 5792EOF 5793 fi ;; 5794 esac 5795 fi 5796 break 5797 fi 5798 done 5799 IFS="$lt_save_ifs" 5800 MAGIC_CMD="$lt_save_MAGIC_CMD" 5801 ;; 5802esac 5803fi 5804 5805MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5806if test -n "$MAGIC_CMD"; then 5807 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5808echo "${ECHO_T}$MAGIC_CMD" >&6 5809else 5810 echo "$as_me:$LINENO: result: no" >&5 5811echo "${ECHO_T}no" >&6 5812fi 5813 5814 else 5815 MAGIC_CMD=: 5816 fi 5817fi 5818 5819 fi 5820 ;; 5821esac 5822 5823enable_dlopen=no 5824enable_win32_dll=no 5825 5826# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5827if test "${enable_libtool_lock+set}" = set; then 5828 enableval="$enable_libtool_lock" 5829 5830fi; 5831test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5832 5833 5834# Check whether --with-pic or --without-pic was given. 5835if test "${with_pic+set}" = set; then 5836 withval="$with_pic" 5837 pic_mode="$withval" 5838else 5839 pic_mode=default 5840fi; 5841test -z "$pic_mode" && pic_mode=default 5842 5843# Use C for the default configuration in the libtool script 5844tagname= 5845lt_save_CC="$CC" 5846ac_ext=c 5847ac_cpp='$CPP $CPPFLAGS' 5848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5850ac_compiler_gnu=$ac_cv_c_compiler_gnu 5851 5852 5853# Source file extension for C test sources. 5854ac_ext=c 5855 5856# Object file extension for compiled C test sources. 5857objext=o 5858objext=$objext 5859 5860# Code to be used in simple compile tests 5861lt_simple_compile_test_code="int some_variable = 0;\n" 5862 5863# Code to be used in simple link tests 5864lt_simple_link_test_code='int main(){return(0);}\n' 5865 5866 5867# If no C compiler was specified, use CC. 5868LTCC=${LTCC-"$CC"} 5869 5870# Allow CC to be a program name with arguments. 5871compiler=$CC 5872 5873 5874# 5875# Check for any special shared library compilation flags. 5876# 5877lt_prog_cc_shlib= 5878if test "$GCC" = no; then 5879 case $host_os in 5880 sco3.2v5*) 5881 lt_prog_cc_shlib='-belf' 5882 ;; 5883 esac 5884fi 5885if test -n "$lt_prog_cc_shlib"; then 5886 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5887echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5888 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5889 else 5890 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5891echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5892 lt_cv_prog_cc_can_build_shared=no 5893 fi 5894fi 5895 5896 5897# 5898# Check to make sure the static flag actually works. 5899# 5900echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 5901echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 5902if test "${lt_prog_compiler_static_works+set}" = set; then 5903 echo $ECHO_N "(cached) $ECHO_C" >&6 5904else 5905 lt_prog_compiler_static_works=no 5906 save_LDFLAGS="$LDFLAGS" 5907 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 5908 printf "$lt_simple_link_test_code" > conftest.$ac_ext 5909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 5910 # The compiler can only warn and ignore the option if not recognized 5911 # So say no if there are warnings 5912 if test -s conftest.err; then 5913 # Append any errors to the config.log. 5914 cat conftest.err 1>&5 5915 else 5916 lt_prog_compiler_static_works=yes 5917 fi 5918 fi 5919 $rm conftest* 5920 LDFLAGS="$save_LDFLAGS" 5921 5922fi 5923echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 5924echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 5925 5926if test x"$lt_prog_compiler_static_works" = xyes; then 5927 : 5928else 5929 lt_prog_compiler_static= 5930fi 5931 5932 5933 5934 5935lt_prog_compiler_no_builtin_flag= 5936 5937if test "$GCC" = yes; then 5938 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5939 5940 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5941echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5942if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5943 echo $ECHO_N "(cached) $ECHO_C" >&6 5944else 5945 lt_cv_prog_compiler_rtti_exceptions=no 5946 ac_outfile=conftest.$ac_objext 5947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5948 lt_compiler_flag="-fno-rtti -fno-exceptions" 5949 # Insert the option either (1) after the last *FLAGS variable, or 5950 # (2) before a word containing "conftest.", or (3) at the end. 5951 # Note that $ac_compile itself does not contain backslashes and begins 5952 # with a dollar sign (not a hyphen), so the echo should work correctly. 5953 # The option is referenced via a variable to avoid confusing sed. 5954 lt_compile=`echo "$ac_compile" | $SED \ 5955 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5957 -e 's:$: $lt_compiler_flag:'` 5958 (eval echo "\"\$as_me:5958: $lt_compile\"" >&5) 5959 (eval "$lt_compile" 2>conftest.err) 5960 ac_status=$? 5961 cat conftest.err >&5 5962 echo "$as_me:5962: \$? = $ac_status" >&5 5963 if (exit $ac_status) && test -s "$ac_outfile"; then 5964 # The compiler can only warn and ignore the option if not recognized 5965 # So say no if there are warnings 5966 if test ! -s conftest.err; then 5967 lt_cv_prog_compiler_rtti_exceptions=yes 5968 fi 5969 fi 5970 $rm conftest* 5971 5972fi 5973echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5974echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5975 5976if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5977 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5978else 5979 : 5980fi 5981 5982fi 5983 5984lt_prog_compiler_wl= 5985lt_prog_compiler_pic= 5986lt_prog_compiler_static= 5987 5988echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5989echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5990 5991 if test "$GCC" = yes; then 5992 lt_prog_compiler_wl='-Wl,' 5993 lt_prog_compiler_static='-static' 5994 5995 case $host_os in 5996 aix*) 5997 # All AIX code is PIC. 5998 if test "$host_cpu" = ia64; then 5999 # AIX 5 now supports IA64 processor 6000 lt_prog_compiler_static='-Bstatic' 6001 fi 6002 ;; 6003 6004 amigaos*) 6005 # FIXME: we need at least 68020 code to build shared libraries, but 6006 # adding the `-m68020' flag to GCC prevents building anything better, 6007 # like `-m68040'. 6008 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6009 ;; 6010 6011 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6012 # PIC is the default for these OSes. 6013 ;; 6014 6015 mingw* | pw32* | os2*) 6016 # This hack is so that the source file can tell whether it is being 6017 # built for inclusion in a dll (and should export symbols for example). 6018 lt_prog_compiler_pic='-DDLL_EXPORT' 6019 ;; 6020 6021 darwin* | rhapsody*) 6022 # PIC is the default on this platform 6023 # Common symbols not allowed in MH_DYLIB files 6024 lt_prog_compiler_pic='-fno-common' 6025 ;; 6026 6027 msdosdjgpp*) 6028 # Just because we use GCC doesn't mean we suddenly get shared libraries 6029 # on systems that don't support them. 6030 lt_prog_compiler_can_build_shared=no 6031 enable_shared=no 6032 ;; 6033 6034 sysv4*MP*) 6035 if test -d /usr/nec; then 6036 lt_prog_compiler_pic=-Kconform_pic 6037 fi 6038 ;; 6039 6040 hpux*) 6041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6042 # not for PA HP-UX. 6043 case "$host_cpu" in 6044 hppa*64*|ia64*) 6045 # +Z the default 6046 ;; 6047 *) 6048 lt_prog_compiler_pic='-fPIC' 6049 ;; 6050 esac 6051 ;; 6052 6053 *) 6054 lt_prog_compiler_pic='-fPIC' 6055 ;; 6056 esac 6057 else 6058 # PORTME Check for flag to pass linker flags through the system compiler. 6059 case $host_os in 6060 aix*) 6061 lt_prog_compiler_wl='-Wl,' 6062 if test "$host_cpu" = ia64; then 6063 # AIX 5 now supports IA64 processor 6064 lt_prog_compiler_static='-Bstatic' 6065 else 6066 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6067 fi 6068 ;; 6069 6070 mingw* | pw32* | os2*) 6071 # This hack is so that the source file can tell whether it is being 6072 # built for inclusion in a dll (and should export symbols for example). 6073 lt_prog_compiler_pic='-DDLL_EXPORT' 6074 ;; 6075 6076 hpux9* | hpux10* | hpux11*) 6077 lt_prog_compiler_wl='-Wl,' 6078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6079 # not for PA HP-UX. 6080 case "$host_cpu" in 6081 hppa*64*|ia64*) 6082 # +Z the default 6083 ;; 6084 *) 6085 lt_prog_compiler_pic='+Z' 6086 ;; 6087 esac 6088 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6089 lt_prog_compiler_static='${wl}-a ${wl}archive' 6090 ;; 6091 6092 irix5* | irix6* | nonstopux*) 6093 lt_prog_compiler_wl='-Wl,' 6094 # PIC (with -KPIC) is the default. 6095 lt_prog_compiler_static='-non_shared' 6096 ;; 6097 6098 newsos6) 6099 lt_prog_compiler_pic='-KPIC' 6100 lt_prog_compiler_static='-Bstatic' 6101 ;; 6102 6103 linux*) 6104 case $CC in 6105 icc|ecc) 6106 lt_prog_compiler_wl='-Wl,' 6107 lt_prog_compiler_pic='-KPIC' 6108 lt_prog_compiler_static='-static' 6109 ;; 6110 ccc) 6111 lt_prog_compiler_wl='-Wl,' 6112 # All Alpha code is PIC. 6113 lt_prog_compiler_static='-non_shared' 6114 ;; 6115 esac 6116 ;; 6117 6118 osf3* | osf4* | osf5*) 6119 lt_prog_compiler_wl='-Wl,' 6120 # All OSF/1 code is PIC. 6121 lt_prog_compiler_static='-non_shared' 6122 ;; 6123 6124 sco3.2v5*) 6125 lt_prog_compiler_pic='-Kpic' 6126 lt_prog_compiler_static='-dn' 6127 ;; 6128 6129 solaris*) 6130 lt_prog_compiler_wl='-Wl,' 6131 lt_prog_compiler_pic='-KPIC' 6132 lt_prog_compiler_static='-Bstatic' 6133 ;; 6134 6135 sunos4*) 6136 lt_prog_compiler_wl='-Qoption ld ' 6137 lt_prog_compiler_pic='-PIC' 6138 lt_prog_compiler_static='-Bstatic' 6139 ;; 6140 6141 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6142 lt_prog_compiler_wl='-Wl,' 6143 lt_prog_compiler_pic='-KPIC' 6144 lt_prog_compiler_static='-Bstatic' 6145 ;; 6146 6147 sysv4*MP*) 6148 if test -d /usr/nec ;then 6149 lt_prog_compiler_pic='-Kconform_pic' 6150 lt_prog_compiler_static='-Bstatic' 6151 fi 6152 ;; 6153 6154 uts4*) 6155 lt_prog_compiler_pic='-pic' 6156 lt_prog_compiler_static='-Bstatic' 6157 ;; 6158 6159 *) 6160 lt_prog_compiler_can_build_shared=no 6161 ;; 6162 esac 6163 fi 6164 6165echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6166echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6167 6168# 6169# Check to make sure the PIC flag actually works. 6170# 6171if test -n "$lt_prog_compiler_pic"; then 6172 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6173echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6174if test "${lt_prog_compiler_pic_works+set}" = set; then 6175 echo $ECHO_N "(cached) $ECHO_C" >&6 6176else 6177 lt_prog_compiler_pic_works=no 6178 ac_outfile=conftest.$ac_objext 6179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6181 # Insert the option either (1) after the last *FLAGS variable, or 6182 # (2) before a word containing "conftest.", or (3) at the end. 6183 # Note that $ac_compile itself does not contain backslashes and begins 6184 # with a dollar sign (not a hyphen), so the echo should work correctly. 6185 # The option is referenced via a variable to avoid confusing sed. 6186 lt_compile=`echo "$ac_compile" | $SED \ 6187 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6189 -e 's:$: $lt_compiler_flag:'` 6190 (eval echo "\"\$as_me:6190: $lt_compile\"" >&5) 6191 (eval "$lt_compile" 2>conftest.err) 6192 ac_status=$? 6193 cat conftest.err >&5 6194 echo "$as_me:6194: \$? = $ac_status" >&5 6195 if (exit $ac_status) && test -s "$ac_outfile"; then 6196 # The compiler can only warn and ignore the option if not recognized 6197 # So say no if there are warnings 6198 if test ! -s conftest.err; then 6199 lt_prog_compiler_pic_works=yes 6200 fi 6201 fi 6202 $rm conftest* 6203 6204fi 6205echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6206echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6207 6208if test x"$lt_prog_compiler_pic_works" = xyes; then 6209 case $lt_prog_compiler_pic in 6210 "" | " "*) ;; 6211 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6212 esac 6213else 6214 lt_prog_compiler_pic= 6215 lt_prog_compiler_can_build_shared=no 6216fi 6217 6218fi 6219case "$host_os" in 6220 # For platforms which do not support PIC, -DPIC is meaningless: 6221 *djgpp*) 6222 lt_prog_compiler_pic= 6223 ;; 6224 *) 6225 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6226 ;; 6227esac 6228 6229echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6230echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6231if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6232 echo $ECHO_N "(cached) $ECHO_C" >&6 6233else 6234 lt_cv_prog_compiler_c_o=no 6235 $rm -r conftest 2>/dev/null 6236 mkdir conftest 6237 cd conftest 6238 mkdir out 6239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6240 6241 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 6242 # that will create temporary files in the current directory regardless of 6243 # the output directory. Thus, making CWD read-only will cause this test 6244 # to fail, enabling locking or at least warning the user not to do parallel 6245 # builds. 6246 chmod -w . 6247 6248 lt_compiler_flag="-o out/conftest2.$ac_objext" 6249 # Insert the option either (1) after the last *FLAGS variable, or 6250 # (2) before a word containing "conftest.", or (3) at the end. 6251 # Note that $ac_compile itself does not contain backslashes and begins 6252 # with a dollar sign (not a hyphen), so the echo should work correctly. 6253 lt_compile=`echo "$ac_compile" | $SED \ 6254 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6256 -e 's:$: $lt_compiler_flag:'` 6257 (eval echo "\"\$as_me:6257: $lt_compile\"" >&5) 6258 (eval "$lt_compile" 2>out/conftest.err) 6259 ac_status=$? 6260 cat out/conftest.err >&5 6261 echo "$as_me:6261: \$? = $ac_status" >&5 6262 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6263 then 6264 # The compiler can only warn and ignore the option if not recognized 6265 # So say no if there are warnings 6266 if test ! -s out/conftest.err; then 6267 lt_cv_prog_compiler_c_o=yes 6268 fi 6269 fi 6270 chmod u+w . 6271 $rm conftest* out/* 6272 rmdir out 6273 cd .. 6274 rmdir conftest 6275 $rm conftest* 6276 6277fi 6278echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6279echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6280 6281 6282hard_links="nottested" 6283if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6284 # do not overwrite the value of need_locks provided by the user 6285 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6286echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6287 hard_links=yes 6288 $rm conftest* 6289 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6290 touch conftest.a 6291 ln conftest.a conftest.b 2>&5 || hard_links=no 6292 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6293 echo "$as_me:$LINENO: result: $hard_links" >&5 6294echo "${ECHO_T}$hard_links" >&6 6295 if test "$hard_links" = no; then 6296 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6297echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6298 need_locks=warn 6299 fi 6300else 6301 need_locks=no 6302fi 6303 6304echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6305echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6306 6307 runpath_var= 6308 allow_undefined_flag= 6309 enable_shared_with_static_runtimes=no 6310 archive_cmds= 6311 archive_expsym_cmds= 6312 old_archive_From_new_cmds= 6313 old_archive_from_expsyms_cmds= 6314 export_dynamic_flag_spec= 6315 whole_archive_flag_spec= 6316 thread_safe_flag_spec= 6317 hardcode_libdir_flag_spec= 6318 hardcode_libdir_flag_spec_ld= 6319 hardcode_libdir_separator= 6320 hardcode_direct=no 6321 hardcode_minus_L=no 6322 hardcode_shlibpath_var=unsupported 6323 link_all_deplibs=unknown 6324 hardcode_automatic=no 6325 module_cmds= 6326 module_expsym_cmds= 6327 always_export_symbols=no 6328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6329 # include_expsyms should be a list of space-separated symbols to be *always* 6330 # included in the symbol list 6331 include_expsyms= 6332 # exclude_expsyms can be an extended regexp of symbols to exclude 6333 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6334 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6335 # as well as any symbol that contains `d'. 6336 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6337 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6338 # platforms (ab)use it in PIC code, but their linkers get confused if 6339 # the symbol is explicitly referenced. Since portable code cannot 6340 # rely on this symbol name, it's probably fine to never include it in 6341 # preloaded symbol tables. 6342 extract_expsyms_cmds= 6343 6344 case $host_os in 6345 cygwin* | mingw* | pw32*) 6346 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6347 # When not using gcc, we currently assume that we are using 6348 # Microsoft Visual C++. 6349 if test "$GCC" != yes; then 6350 with_gnu_ld=no 6351 fi 6352 ;; 6353 openbsd*) 6354 with_gnu_ld=no 6355 ;; 6356 esac 6357 6358 ld_shlibs=yes 6359 if test "$with_gnu_ld" = yes; then 6360 # If archive_cmds runs LD, not CC, wlarc should be empty 6361 wlarc='${wl}' 6362 6363 # See if GNU ld supports shared libraries. 6364 case $host_os in 6365 aix3* | aix4* | aix5*) 6366 # On AIX/PPC, the GNU linker is very broken 6367 if test "$host_cpu" != ia64; then 6368 ld_shlibs=no 6369 cat <<EOF 1>&2 6370 6371*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6372*** to be unable to reliably create shared libraries on AIX. 6373*** Therefore, libtool is disabling shared libraries support. If you 6374*** really care for shared libraries, you may want to modify your PATH 6375*** so that a non-GNU linker is found, and then restart. 6376 6377EOF 6378 fi 6379 ;; 6380 6381 amigaos*) 6382 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)' 6383 hardcode_libdir_flag_spec='-L$libdir' 6384 hardcode_minus_L=yes 6385 6386 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6387 # that the semantics of dynamic libraries on AmigaOS, at least up 6388 # to version 4, is to share data among multiple programs linked 6389 # with the same dynamic library. Since this doesn't match the 6390 # behavior of shared libraries on other platforms, we can't use 6391 # them. 6392 ld_shlibs=no 6393 ;; 6394 6395 beos*) 6396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6397 allow_undefined_flag=unsupported 6398 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6399 # support --undefined. This deserves some investigation. FIXME 6400 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6401 else 6402 ld_shlibs=no 6403 fi 6404 ;; 6405 6406 cygwin* | mingw* | pw32*) 6407 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6408 # as there is no search path for DLLs. 6409 hardcode_libdir_flag_spec='-L$libdir' 6410 allow_undefined_flag=unsupported 6411 always_export_symbols=no 6412 enable_shared_with_static_runtimes=yes 6413 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6414 6415 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6417 # If the export-symbols file already is a .def file (1st line 6418 # is EXPORTS), use it as is; otherwise, prepend... 6419 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6420 cp $export_symbols $output_objdir/$soname.def; 6421 else 6422 echo EXPORTS > $output_objdir/$soname.def; 6423 cat $export_symbols >> $output_objdir/$soname.def; 6424 fi~ 6425 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6426 else 6427 ld_shlibs=no 6428 fi 6429 ;; 6430 6431 netbsd*) 6432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6433 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6434 wlarc= 6435 else 6436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6438 fi 6439 ;; 6440 6441 solaris* | sysv5*) 6442 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6443 ld_shlibs=no 6444 cat <<EOF 1>&2 6445 6446*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6447*** create shared libraries on Solaris systems. Therefore, libtool 6448*** is disabling shared libraries support. We urge you to upgrade GNU 6449*** binutils to release 2.9.1 or newer. Another option is to modify 6450*** your PATH or compiler configuration so that the native linker is 6451*** used, and then restart. 6452 6453EOF 6454 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6457 else 6458 ld_shlibs=no 6459 fi 6460 ;; 6461 6462 sunos4*) 6463 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6464 wlarc= 6465 hardcode_direct=yes 6466 hardcode_shlibpath_var=no 6467 ;; 6468 6469 *) 6470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6473 else 6474 ld_shlibs=no 6475 fi 6476 ;; 6477 esac 6478 6479 if test "$ld_shlibs" = yes; then 6480 runpath_var=LD_RUN_PATH 6481 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6482 export_dynamic_flag_spec='${wl}--export-dynamic' 6483 # ancient GNU ld didn't support --whole-archive et. al. 6484 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6485 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6486 else 6487 whole_archive_flag_spec= 6488 fi 6489 fi 6490 else 6491 # PORTME fill in a description of your system's linker (not GNU ld) 6492 case $host_os in 6493 aix3*) 6494 allow_undefined_flag=unsupported 6495 always_export_symbols=yes 6496 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' 6497 # Note: this linker hardcodes the directories in LIBPATH if there 6498 # are no directories specified by -L. 6499 hardcode_minus_L=yes 6500 if test "$GCC" = yes && test -z "$link_static_flag"; then 6501 # Neither direct hardcoding nor static linking is supported with a 6502 # broken collect2. 6503 hardcode_direct=unsupported 6504 fi 6505 ;; 6506 6507 aix4* | aix5*) 6508 if test "$host_cpu" = ia64; then 6509 # On IA64, the linker does run time linking by default, so we don't 6510 # have to do anything special. 6511 aix_use_runtimelinking=no 6512 exp_sym_flag='-Bexport' 6513 no_entry_flag="" 6514 else 6515 # If we're using GNU nm, then we don't want the "-C" option. 6516 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6517 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6518 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' 6519 else 6520 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' 6521 fi 6522 aix_use_runtimelinking=no 6523 6524 # Test if we are trying to use run time linking or normal 6525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6526 # need to do runtime linking. 6527 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6528 for ld_flag in $LDFLAGS; do 6529 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6530 aix_use_runtimelinking=yes 6531 break 6532 fi 6533 done 6534 esac 6535 6536 exp_sym_flag='-bexport' 6537 no_entry_flag='-bnoentry' 6538 fi 6539 6540 # When large executables or shared objects are built, AIX ld can 6541 # have problems creating the table of contents. If linking a library 6542 # or program results in "error TOC overflow" add -mminimal-toc to 6543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6545 6546 archive_cmds='' 6547 hardcode_direct=yes 6548 hardcode_libdir_separator=':' 6549 link_all_deplibs=yes 6550 6551 if test "$GCC" = yes; then 6552 case $host_os in aix4.012|aix4.012.*) 6553 # We only want to do this on AIX 4.2 and lower, the check 6554 # below for broken collect2 doesn't work under 4.3+ 6555 collect2name=`${CC} -print-prog-name=collect2` 6556 if test -f "$collect2name" && \ 6557 strings "$collect2name" | grep resolve_lib_name >/dev/null 6558 then 6559 # We have reworked collect2 6560 hardcode_direct=yes 6561 else 6562 # We have old collect2 6563 hardcode_direct=unsupported 6564 # It fails to find uninstalled libraries when the uninstalled 6565 # path is not listed in the libpath. Setting hardcode_minus_L 6566 # to unsupported forces relinking 6567 hardcode_minus_L=yes 6568 hardcode_libdir_flag_spec='-L$libdir' 6569 hardcode_libdir_separator= 6570 fi 6571 esac 6572 shared_flag='-shared' 6573 else 6574 # not using gcc 6575 if test "$host_cpu" = ia64; then 6576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6577 # chokes on -Wl,-G. The following line is correct: 6578 shared_flag='-G' 6579 else 6580 if test "$aix_use_runtimelinking" = yes; then 6581 shared_flag='${wl}-G' 6582 else 6583 shared_flag='${wl}-bM:SRE' 6584 fi 6585 fi 6586 fi 6587 6588 # It seems that -bexpall does not export symbols beginning with 6589 # underscore (_), so it is better to generate a list of symbols to export. 6590 always_export_symbols=yes 6591 if test "$aix_use_runtimelinking" = yes; then 6592 # Warning - without using the other runtime loading flags (-brtl), 6593 # -berok will link without error, but may produce a broken library. 6594 allow_undefined_flag='-berok' 6595 # Determine the default libpath from the value encoded in an empty executable. 6596 cat >conftest.$ac_ext <<_ACEOF 6597#line $LINENO "configure" 6598/* confdefs.h. */ 6599_ACEOF 6600cat confdefs.h >>conftest.$ac_ext 6601cat >>conftest.$ac_ext <<_ACEOF 6602/* end confdefs.h. */ 6603 6604int 6605main () 6606{ 6607 6608 ; 6609 return 0; 6610} 6611_ACEOF 6612rm -f conftest.$ac_objext conftest$ac_exeext 6613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6614 (eval $ac_link) 2>&5 6615 ac_status=$? 6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6617 (exit $ac_status); } && 6618 { ac_try='test -s conftest$ac_exeext' 6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6620 (eval $ac_try) 2>&5 6621 ac_status=$? 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6623 (exit $ac_status); }; }; then 6624 6625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6626}'` 6627# Check for a 64-bit object if we didn't find anything. 6628if 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; } 6629}'`; fi 6630else 6631 echo "$as_me: failed program was:" >&5 6632sed 's/^/| /' conftest.$ac_ext >&5 6633 6634fi 6635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6636if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6637 6638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6639 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" 6640 else 6641 if test "$host_cpu" = ia64; then 6642 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6643 allow_undefined_flag="-z nodefs" 6644 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" 6645 else 6646 # Determine the default libpath from the value encoded in an empty executable. 6647 cat >conftest.$ac_ext <<_ACEOF 6648#line $LINENO "configure" 6649/* confdefs.h. */ 6650_ACEOF 6651cat confdefs.h >>conftest.$ac_ext 6652cat >>conftest.$ac_ext <<_ACEOF 6653/* end confdefs.h. */ 6654 6655int 6656main () 6657{ 6658 6659 ; 6660 return 0; 6661} 6662_ACEOF 6663rm -f conftest.$ac_objext conftest$ac_exeext 6664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6665 (eval $ac_link) 2>&5 6666 ac_status=$? 6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6668 (exit $ac_status); } && 6669 { ac_try='test -s conftest$ac_exeext' 6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6671 (eval $ac_try) 2>&5 6672 ac_status=$? 6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6674 (exit $ac_status); }; }; then 6675 6676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6677}'` 6678# Check for a 64-bit object if we didn't find anything. 6679if 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; } 6680}'`; fi 6681else 6682 echo "$as_me: failed program was:" >&5 6683sed 's/^/| /' conftest.$ac_ext >&5 6684 6685fi 6686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6688 6689 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6690 # Warning - without using the other run time loading flags, 6691 # -berok will link without error, but may produce a broken library. 6692 no_undefined_flag=' ${wl}-bernotok' 6693 allow_undefined_flag=' ${wl}-berok' 6694 # -bexpall does not export symbols beginning with underscore (_) 6695 always_export_symbols=yes 6696 # Exported symbols can be pulled into shared objects from archives 6697 whole_archive_flag_spec=' ' 6698 archive_cmds_need_lc=yes 6699 # This is similar to how AIX traditionally builds it's shared libraries. 6700 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' 6701 fi 6702 fi 6703 ;; 6704 6705 amigaos*) 6706 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)' 6707 hardcode_libdir_flag_spec='-L$libdir' 6708 hardcode_minus_L=yes 6709 # see comment about different semantics on the GNU ld section 6710 ld_shlibs=no 6711 ;; 6712 6713 bsdi4*) 6714 export_dynamic_flag_spec=-rdynamic 6715 ;; 6716 6717 cygwin* | mingw* | pw32*) 6718 # When not using gcc, we currently assume that we are using 6719 # Microsoft Visual C++. 6720 # hardcode_libdir_flag_spec is actually meaningless, as there is 6721 # no search path for DLLs. 6722 hardcode_libdir_flag_spec=' ' 6723 allow_undefined_flag=unsupported 6724 # Tell ltmain to make .lib files, not .a files. 6725 libext=lib 6726 # Tell ltmain to make .dll files, not .so files. 6727 shrext=".dll" 6728 # FIXME: Setting linknames here is a bad hack. 6729 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6730 # The linker will automatically build a .lib file if we build a DLL. 6731 old_archive_From_new_cmds='true' 6732 # FIXME: Should let the user specify the lib program. 6733 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6734 fix_srcfile_path='`cygpath -w "$srcfile"`' 6735 enable_shared_with_static_runtimes=yes 6736 ;; 6737 6738 darwin* | rhapsody*) 6739 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 6740 archive_cmds_need_lc=no 6741 case "$host_os" in 6742 rhapsody* | darwin1.[012]) 6743 allow_undefined_flag='-undefined suppress' 6744 ;; 6745 *) # Darwin 1.3 on 6746 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 6747 ;; 6748 esac 6749 # FIXME: Relying on posixy $() will cause problems for 6750 # cross-compilation, but unfortunately the echo tests do not 6751 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 6752 # `"' quotes if we put them in here... so don't! 6753 lt_int_apple_cc_single_mod=no 6754 output_verbose_link_cmd='echo' 6755 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 6756 lt_int_apple_cc_single_mod=yes 6757 fi 6758 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6759 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6760 else 6761 archive_cmds='$CC -r ${wl}-bind_at_load -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' 6762 fi 6763 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 6764 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6765 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6766 archive_expsym_cmds='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}' 6767 else 6768 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 6769 fi 6770 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6771 hardcode_direct=no 6772 hardcode_automatic=yes 6773 hardcode_shlibpath_var=unsupported 6774 whole_archive_flag_spec='-all_load $convenience' 6775 link_all_deplibs=yes 6776 fi 6777 ;; 6778 6779 dgux*) 6780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6781 hardcode_libdir_flag_spec='-L$libdir' 6782 hardcode_shlibpath_var=no 6783 ;; 6784 6785 freebsd1*) 6786 ld_shlibs=no 6787 ;; 6788 6789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6790 # support. Future versions do this automatically, but an explicit c++rt0.o 6791 # does not break anything, and helps significantly (at the cost of a little 6792 # extra space). 6793 freebsd2.2*) 6794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6795 hardcode_libdir_flag_spec='-R$libdir' 6796 hardcode_direct=yes 6797 hardcode_shlibpath_var=no 6798 ;; 6799 6800 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6801 freebsd2*) 6802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6803 hardcode_direct=yes 6804 hardcode_minus_L=yes 6805 hardcode_shlibpath_var=no 6806 ;; 6807 6808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6809 freebsd*) 6810 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6811 hardcode_libdir_flag_spec='-R$libdir' 6812 hardcode_direct=yes 6813 hardcode_shlibpath_var=no 6814 ;; 6815 6816 hpux9*) 6817 if test "$GCC" = yes; then 6818 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' 6819 else 6820 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' 6821 fi 6822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6823 hardcode_libdir_separator=: 6824 hardcode_direct=yes 6825 6826 # hardcode_minus_L: Not really in the search PATH, 6827 # but as the default location of the library. 6828 hardcode_minus_L=yes 6829 export_dynamic_flag_spec='${wl}-E' 6830 ;; 6831 6832 hpux10* | hpux11*) 6833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6834 case "$host_cpu" in 6835 hppa*64*|ia64*) 6836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6837 ;; 6838 *) 6839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6840 ;; 6841 esac 6842 else 6843 case "$host_cpu" in 6844 hppa*64*|ia64*) 6845 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6846 ;; 6847 *) 6848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6849 ;; 6850 esac 6851 fi 6852 if test "$with_gnu_ld" = no; then 6853 case "$host_cpu" in 6854 hppa*64*) 6855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6856 hardcode_libdir_flag_spec_ld='+b $libdir' 6857 hardcode_libdir_separator=: 6858 hardcode_direct=no 6859 hardcode_shlibpath_var=no 6860 ;; 6861 ia64*) 6862 hardcode_libdir_flag_spec='-L$libdir' 6863 hardcode_direct=no 6864 hardcode_shlibpath_var=no 6865 6866 # hardcode_minus_L: Not really in the search PATH, 6867 # but as the default location of the library. 6868 hardcode_minus_L=yes 6869 ;; 6870 *) 6871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6872 hardcode_libdir_separator=: 6873 hardcode_direct=yes 6874 export_dynamic_flag_spec='${wl}-E' 6875 6876 # hardcode_minus_L: Not really in the search PATH, 6877 # but as the default location of the library. 6878 hardcode_minus_L=yes 6879 ;; 6880 esac 6881 fi 6882 ;; 6883 6884 irix5* | irix6* | nonstopux*) 6885 if test "$GCC" = yes; then 6886 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' 6887 else 6888 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' 6889 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6890 fi 6891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6892 hardcode_libdir_separator=: 6893 link_all_deplibs=yes 6894 ;; 6895 6896 netbsd*) 6897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6899 else 6900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6901 fi 6902 hardcode_libdir_flag_spec='-R$libdir' 6903 hardcode_direct=yes 6904 hardcode_shlibpath_var=no 6905 ;; 6906 6907 newsos6) 6908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6909 hardcode_direct=yes 6910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6911 hardcode_libdir_separator=: 6912 hardcode_shlibpath_var=no 6913 ;; 6914 6915 openbsd*) 6916 hardcode_direct=yes 6917 hardcode_shlibpath_var=no 6918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6921 export_dynamic_flag_spec='${wl}-E' 6922 else 6923 case $host_os in 6924 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6926 hardcode_libdir_flag_spec='-R$libdir' 6927 ;; 6928 *) 6929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6931 ;; 6932 esac 6933 fi 6934 ;; 6935 6936 os2*) 6937 hardcode_libdir_flag_spec='-L$libdir' 6938 hardcode_minus_L=yes 6939 allow_undefined_flag=unsupported 6940 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' 6941 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6942 ;; 6943 6944 osf3*) 6945 if test "$GCC" = yes; then 6946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6947 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' 6948 else 6949 allow_undefined_flag=' -expect_unresolved \*' 6950 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' 6951 fi 6952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6953 hardcode_libdir_separator=: 6954 ;; 6955 6956 osf4* | osf5*) # as osf3* with the addition of -msym flag 6957 if test "$GCC" = yes; then 6958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6959 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' 6960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6961 else 6962 allow_undefined_flag=' -expect_unresolved \*' 6963 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' 6964 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6965 $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' 6966 6967 # Both c and cxx compiler support -rpath directly 6968 hardcode_libdir_flag_spec='-rpath $libdir' 6969 fi 6970 hardcode_libdir_separator=: 6971 ;; 6972 6973 sco3.2v5*) 6974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6975 hardcode_shlibpath_var=no 6976 export_dynamic_flag_spec='${wl}-Bexport' 6977 runpath_var=LD_RUN_PATH 6978 hardcode_runpath_var=yes 6979 ;; 6980 6981 solaris*) 6982 no_undefined_flag=' -z text' 6983 if test "$GCC" = yes; then 6984 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6985 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6986 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6987 else 6988 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6989 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6991 fi 6992 hardcode_libdir_flag_spec='-R$libdir' 6993 hardcode_shlibpath_var=no 6994 case $host_os in 6995 solaris2.[0-5] | solaris2.[0-5].*) ;; 6996 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6997 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6998 esac 6999 link_all_deplibs=yes 7000 ;; 7001 7002 sunos4*) 7003 if test "x$host_vendor" = xsequent; then 7004 # Use $CC to link under sequent, because it throws in some extra .o 7005 # files that make .init and .fini sections work. 7006 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7007 else 7008 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7009 fi 7010 hardcode_libdir_flag_spec='-L$libdir' 7011 hardcode_direct=yes 7012 hardcode_minus_L=yes 7013 hardcode_shlibpath_var=no 7014 ;; 7015 7016 sysv4) 7017 case $host_vendor in 7018 sni) 7019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7020 hardcode_direct=yes # is this really true??? 7021 ;; 7022 siemens) 7023 ## LD is ld it makes a PLAMLIB 7024 ## CC just makes a GrossModule. 7025 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7026 reload_cmds='$CC -r -o $output$reload_objs' 7027 hardcode_direct=no 7028 ;; 7029 motorola) 7030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7031 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7032 ;; 7033 esac 7034 runpath_var='LD_RUN_PATH' 7035 hardcode_shlibpath_var=no 7036 ;; 7037 7038 sysv4.3*) 7039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7040 hardcode_shlibpath_var=no 7041 export_dynamic_flag_spec='-Bexport' 7042 ;; 7043 7044 sysv4*MP*) 7045 if test -d /usr/nec; then 7046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7047 hardcode_shlibpath_var=no 7048 runpath_var=LD_RUN_PATH 7049 hardcode_runpath_var=yes 7050 ld_shlibs=yes 7051 fi 7052 ;; 7053 7054 sysv4.2uw2*) 7055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7056 hardcode_direct=yes 7057 hardcode_minus_L=no 7058 hardcode_shlibpath_var=no 7059 hardcode_runpath_var=yes 7060 runpath_var=LD_RUN_PATH 7061 ;; 7062 7063 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7064 no_undefined_flag='${wl}-z ${wl}text' 7065 if test "$GCC" = yes; then 7066 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7067 else 7068 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7069 fi 7070 runpath_var='LD_RUN_PATH' 7071 hardcode_shlibpath_var=no 7072 ;; 7073 7074 sysv5*) 7075 no_undefined_flag=' -z text' 7076 # $CC -shared without GNU ld will not create a library from C++ 7077 # object files and a static libstdc++, better avoid it by now 7078 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7079 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7081 hardcode_libdir_flag_spec= 7082 hardcode_shlibpath_var=no 7083 runpath_var='LD_RUN_PATH' 7084 ;; 7085 7086 uts4*) 7087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7088 hardcode_libdir_flag_spec='-L$libdir' 7089 hardcode_shlibpath_var=no 7090 ;; 7091 7092 *) 7093 ld_shlibs=no 7094 ;; 7095 esac 7096 fi 7097 7098echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7099echo "${ECHO_T}$ld_shlibs" >&6 7100test "$ld_shlibs" = no && can_build_shared=no 7101 7102variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7103if test "$GCC" = yes; then 7104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7105fi 7106 7107# 7108# Do we need to explicitly link libc? 7109# 7110case "x$archive_cmds_need_lc" in 7111x|xyes) 7112 # Assume -lc should be added 7113 archive_cmds_need_lc=yes 7114 7115 if test "$enable_shared" = yes && test "$GCC" = yes; then 7116 case $archive_cmds in 7117 *'~'*) 7118 # FIXME: we may have to deal with multi-command sequences. 7119 ;; 7120 '$CC '*) 7121 # Test whether the compiler implicitly links with -lc since on some 7122 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7123 # to ld, don't add -lc before -lgcc. 7124 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7125echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7126 $rm conftest* 7127 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7128 7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7130 (eval $ac_compile) 2>&5 7131 ac_status=$? 7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7133 (exit $ac_status); } 2>conftest.err; then 7134 soname=conftest 7135 lib=conftest 7136 libobjs=conftest.$ac_objext 7137 deplibs= 7138 wl=$lt_prog_compiler_wl 7139 compiler_flags=-v 7140 linker_flags=-v 7141 verstring= 7142 output_objdir=. 7143 libname=conftest 7144 lt_save_allow_undefined_flag=$allow_undefined_flag 7145 allow_undefined_flag= 7146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7147 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7148 ac_status=$? 7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7150 (exit $ac_status); } 7151 then 7152 archive_cmds_need_lc=no 7153 else 7154 archive_cmds_need_lc=yes 7155 fi 7156 allow_undefined_flag=$lt_save_allow_undefined_flag 7157 else 7158 cat conftest.err 1>&5 7159 fi 7160 $rm conftest* 7161 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7162echo "${ECHO_T}$archive_cmds_need_lc" >&6 7163 ;; 7164 esac 7165 fi 7166 ;; 7167esac 7168 7169echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7170echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7171hardcode_action= 7172if test -n "$hardcode_libdir_flag_spec" || \ 7173 test -n "$runpath_var " || \ 7174 test "X$hardcode_automatic"="Xyes" ; then 7175 7176 # We can hardcode non-existant directories. 7177 if test "$hardcode_direct" != no && 7178 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7179 # have to relink, otherwise we might link with an installed library 7180 # when we should be linking with a yet-to-be-installed one 7181 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7182 test "$hardcode_minus_L" != no; then 7183 # Linking always hardcodes the temporary library directory. 7184 hardcode_action=relink 7185 else 7186 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7187 hardcode_action=immediate 7188 fi 7189else 7190 # We cannot hardcode anything, or else we can only hardcode existing 7191 # directories. 7192 hardcode_action=unsupported 7193fi 7194echo "$as_me:$LINENO: result: $hardcode_action" >&5 7195echo "${ECHO_T}$hardcode_action" >&6 7196 7197if test "$hardcode_action" = relink; then 7198 # Fast installation is not supported 7199 enable_fast_install=no 7200elif test "$shlibpath_overrides_runpath" = yes || 7201 test "$enable_shared" = no; then 7202 # Fast installation is not necessary 7203 enable_fast_install=needless 7204fi 7205 7206striplib= 7207old_striplib= 7208echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7209echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7210if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7212 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7213 echo "$as_me:$LINENO: result: yes" >&5 7214echo "${ECHO_T}yes" >&6 7215else 7216# FIXME - insert some real tests, host_os isn't really good enough 7217 case $host_os in 7218 darwin*) 7219 if test -n "$STRIP" ; then 7220 striplib="$STRIP -x" 7221 echo "$as_me:$LINENO: result: yes" >&5 7222echo "${ECHO_T}yes" >&6 7223 else 7224 echo "$as_me:$LINENO: result: no" >&5 7225echo "${ECHO_T}no" >&6 7226fi 7227 ;; 7228 *) 7229 echo "$as_me:$LINENO: result: no" >&5 7230echo "${ECHO_T}no" >&6 7231 ;; 7232 esac 7233fi 7234 7235echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7236echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7237library_names_spec= 7238libname_spec='lib$name' 7239soname_spec= 7240shrext=".so" 7241postinstall_cmds= 7242postuninstall_cmds= 7243finish_cmds= 7244finish_eval= 7245shlibpath_var= 7246shlibpath_overrides_runpath=unknown 7247version_type=none 7248dynamic_linker="$host_os ld.so" 7249sys_lib_dlsearch_path_spec="/lib /usr/lib" 7250if test "$GCC" = yes; then 7251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7252 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7253 # if the path contains ";" then we assume it to be the separator 7254 # otherwise default to the standard path separator (i.e. ":") - it is 7255 # assumed that no part of a normal pathname contains ";" but that should 7256 # okay in the real world where ";" in dirpaths is itself problematic. 7257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7258 else 7259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7260 fi 7261else 7262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7263fi 7264need_lib_prefix=unknown 7265hardcode_into_libs=no 7266 7267# when you set need_version to no, make sure it does not cause -set_version 7268# flags to be left without arguments 7269need_version=unknown 7270 7271case $host_os in 7272aix3*) 7273 version_type=linux 7274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7275 shlibpath_var=LIBPATH 7276 7277 # AIX 3 has no versioning support, so we append a major version to the name. 7278 soname_spec='${libname}${release}${shared_ext}$major' 7279 ;; 7280 7281aix4* | aix5*) 7282 version_type=linux 7283 need_lib_prefix=no 7284 need_version=no 7285 hardcode_into_libs=yes 7286 if test "$host_cpu" = ia64; then 7287 # AIX 5 supports IA64 7288 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7289 shlibpath_var=LD_LIBRARY_PATH 7290 else 7291 # With GCC up to 2.95.x, collect2 would create an import file 7292 # for dependence libraries. The import file would start with 7293 # the line `#! .'. This would cause the generated library to 7294 # depend on `.', always an invalid library. This was fixed in 7295 # development snapshots of GCC prior to 3.0. 7296 case $host_os in 7297 aix4 | aix4.[01] | aix4.[01].*) 7298 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7299 echo ' yes ' 7300 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7301 : 7302 else 7303 can_build_shared=no 7304 fi 7305 ;; 7306 esac 7307 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7308 # soname into executable. Probably we can add versioning support to 7309 # collect2, so additional links can be useful in future. 7310 if test "$aix_use_runtimelinking" = yes; then 7311 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7312 # instead of lib<name>.a to let people know that these are not 7313 # typical AIX shared libraries. 7314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7315 else 7316 # We preserve .a as extension for shared libraries through AIX4.2 7317 # and later when we are not doing run time linking. 7318 library_names_spec='${libname}${release}.a $libname.a' 7319 soname_spec='${libname}${release}${shared_ext}$major' 7320 fi 7321 shlibpath_var=LIBPATH 7322 fi 7323 ;; 7324 7325amigaos*) 7326 library_names_spec='$libname.ixlibrary $libname.a' 7327 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7328 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' 7329 ;; 7330 7331beos*) 7332 library_names_spec='${libname}${shared_ext}' 7333 dynamic_linker="$host_os ld.so" 7334 shlibpath_var=LIBRARY_PATH 7335 ;; 7336 7337bsdi4*) 7338 version_type=linux 7339 need_version=no 7340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7341 soname_spec='${libname}${release}${shared_ext}$major' 7342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7343 shlibpath_var=LD_LIBRARY_PATH 7344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7346 # the default ld.so.conf also contains /usr/contrib/lib and 7347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7348 # libtool to hard-code these into programs 7349 ;; 7350 7351cygwin* | mingw* | pw32*) 7352 version_type=windows 7353 shrext=".dll" 7354 need_version=no 7355 need_lib_prefix=no 7356 7357 case $GCC,$host_os in 7358 yes,cygwin* | yes,mingw* | yes,pw32*) 7359 library_names_spec='$libname.dll.a' 7360 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7361 postinstall_cmds='base_file=`basename \${file}`~ 7362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7363 dldir=$destdir/`dirname \$dlpath`~ 7364 test -d \$dldir || mkdir -p \$dldir~ 7365 $install_prog $dir/$dlname \$dldir/$dlname' 7366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7367 dlpath=$dir/\$dldll~ 7368 $rm \$dlpath' 7369 shlibpath_overrides_runpath=yes 7370 7371 case $host_os in 7372 cygwin*) 7373 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7375 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 7376 ;; 7377 mingw*) 7378 # MinGW DLLs use traditional 'lib' prefix 7379 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7381 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7382 # It is most probably a Windows format PATH printed by 7383 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7384 # path with ; separators, and with drive letters. We can handle the 7385 # drive letters (cygwin fileutils understands them), so leave them, 7386 # especially as we might pass files found there to a mingw objdump, 7387 # which wouldn't understand a cygwinified path. Ahh. 7388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7389 else 7390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7391 fi 7392 ;; 7393 pw32*) 7394 # pw32 DLLs use 'pw' prefix rather than 'lib' 7395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7396 ;; 7397 esac 7398 ;; 7399 7400 *) 7401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7402 ;; 7403 esac 7404 dynamic_linker='Win32 ld.exe' 7405 # FIXME: first we should search . and the directory the executable is in 7406 shlibpath_var=PATH 7407 ;; 7408 7409darwin* | rhapsody*) 7410 dynamic_linker="$host_os dyld" 7411 version_type=darwin 7412 need_lib_prefix=no 7413 need_version=no 7414 # FIXME: Relying on posixy $() will cause problems for 7415 # cross-compilation, but unfortunately the echo tests do not 7416 # yet detect zsh echo's removal of \ escapes. 7417 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7418 soname_spec='${libname}${release}${major}$shared_ext' 7419 shlibpath_overrides_runpath=yes 7420 shlibpath_var=DYLD_LIBRARY_PATH 7421 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 7422 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7423 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 7424 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"` 7425 fi 7426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7427 ;; 7428 7429dgux*) 7430 version_type=linux 7431 need_lib_prefix=no 7432 need_version=no 7433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7434 soname_spec='${libname}${release}${shared_ext}$major' 7435 shlibpath_var=LD_LIBRARY_PATH 7436 ;; 7437 7438freebsd1*) 7439 dynamic_linker=no 7440 ;; 7441 7442freebsd*) 7443 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7444 version_type=freebsd-$objformat 7445 case $version_type in 7446 freebsd-elf*) 7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7448 need_version=no 7449 need_lib_prefix=no 7450 ;; 7451 freebsd-*) 7452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7453 need_version=yes 7454 ;; 7455 esac 7456 shlibpath_var=LD_LIBRARY_PATH 7457 case $host_os in 7458 freebsd2*) 7459 shlibpath_overrides_runpath=yes 7460 ;; 7461 freebsd3.01* | freebsdelf3.01*) 7462 shlibpath_overrides_runpath=yes 7463 hardcode_into_libs=yes 7464 ;; 7465 *) # from 3.2 on 7466 shlibpath_overrides_runpath=no 7467 hardcode_into_libs=yes 7468 ;; 7469 esac 7470 ;; 7471 7472gnu*) 7473 version_type=linux 7474 need_lib_prefix=no 7475 need_version=no 7476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7477 soname_spec='${libname}${release}${shared_ext}$major' 7478 shlibpath_var=LD_LIBRARY_PATH 7479 hardcode_into_libs=yes 7480 ;; 7481 7482hpux9* | hpux10* | hpux11*) 7483 # Give a soname corresponding to the major version so that dld.sl refuses to 7484 # link against other versions. 7485 version_type=sunos 7486 need_lib_prefix=no 7487 need_version=no 7488 case "$host_cpu" in 7489 ia64*) 7490 shrext='.so' 7491 hardcode_into_libs=yes 7492 dynamic_linker="$host_os dld.so" 7493 shlibpath_var=LD_LIBRARY_PATH 7494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7496 soname_spec='${libname}${release}${shared_ext}$major' 7497 if test "X$HPUX_IA64_MODE" = X32; then 7498 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7499 else 7500 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7501 fi 7502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7503 ;; 7504 hppa*64*) 7505 shrext='.sl' 7506 hardcode_into_libs=yes 7507 dynamic_linker="$host_os dld.sl" 7508 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7511 soname_spec='${libname}${release}${shared_ext}$major' 7512 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7514 ;; 7515 *) 7516 shrext='.sl' 7517 dynamic_linker="$host_os dld.sl" 7518 shlibpath_var=SHLIB_PATH 7519 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7521 soname_spec='${libname}${release}${shared_ext}$major' 7522 ;; 7523 esac 7524 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7525 postinstall_cmds='chmod 555 $lib' 7526 ;; 7527 7528irix5* | irix6* | nonstopux*) 7529 case $host_os in 7530 nonstopux*) version_type=nonstopux ;; 7531 *) 7532 if test "$lt_cv_prog_gnu_ld" = yes; then 7533 version_type=linux 7534 else 7535 version_type=irix 7536 fi ;; 7537 esac 7538 need_lib_prefix=no 7539 need_version=no 7540 soname_spec='${libname}${release}${shared_ext}$major' 7541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7542 case $host_os in 7543 irix5* | nonstopux*) 7544 libsuff= shlibsuff= 7545 ;; 7546 *) 7547 case $LD in # libtool.m4 will add one of these switches to LD 7548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7549 libsuff= shlibsuff= libmagic=32-bit;; 7550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7551 libsuff=32 shlibsuff=N32 libmagic=N32;; 7552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7553 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7554 *) libsuff= shlibsuff= libmagic=never-match;; 7555 esac 7556 ;; 7557 esac 7558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7559 shlibpath_overrides_runpath=no 7560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7562 hardcode_into_libs=yes 7563 ;; 7564 7565# No shared lib support for Linux oldld, aout, or coff. 7566linux*oldld* | linux*aout* | linux*coff*) 7567 dynamic_linker=no 7568 ;; 7569 7570# This must be Linux ELF. 7571linux*) 7572 version_type=linux 7573 need_lib_prefix=no 7574 need_version=no 7575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7576 soname_spec='${libname}${release}${shared_ext}$major' 7577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7578 shlibpath_var=LD_LIBRARY_PATH 7579 shlibpath_overrides_runpath=no 7580 # This implies no fast_install, which is unacceptable. 7581 # Some rework will be needed to allow for fast_install 7582 # before this can be enabled. 7583 hardcode_into_libs=yes 7584 7585 # We used to test for /lib/ld.so.1 and disable shared libraries on 7586 # powerpc, because MkLinux only supported shared libraries with the 7587 # GNU dynamic linker. Since this was broken with cross compilers, 7588 # most powerpc-linux boxes support dynamic linking these days and 7589 # people can always --disable-shared, the test was removed, and we 7590 # assume the GNU/Linux dynamic linker is in use. 7591 dynamic_linker='GNU/Linux ld.so' 7592 ;; 7593 7594netbsd*) 7595 version_type=sunos 7596 need_lib_prefix=no 7597 need_version=no 7598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7601 dynamic_linker='NetBSD (a.out) ld.so' 7602 else 7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 7604 soname_spec='${libname}${release}${shared_ext}$major' 7605 dynamic_linker='NetBSD ld.elf_so' 7606 fi 7607 shlibpath_var=LD_LIBRARY_PATH 7608 shlibpath_overrides_runpath=yes 7609 hardcode_into_libs=yes 7610 ;; 7611 7612newsos6) 7613 version_type=linux 7614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7615 shlibpath_var=LD_LIBRARY_PATH 7616 shlibpath_overrides_runpath=yes 7617 ;; 7618 7619nto-qnx) 7620 version_type=linux 7621 need_lib_prefix=no 7622 need_version=no 7623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7624 soname_spec='${libname}${release}${shared_ext}$major' 7625 shlibpath_var=LD_LIBRARY_PATH 7626 shlibpath_overrides_runpath=yes 7627 ;; 7628 7629openbsd*) 7630 version_type=sunos 7631 need_lib_prefix=no 7632 need_version=no 7633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7635 shlibpath_var=LD_LIBRARY_PATH 7636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7637 case $host_os in 7638 openbsd2.[89] | openbsd2.[89].*) 7639 shlibpath_overrides_runpath=no 7640 ;; 7641 *) 7642 shlibpath_overrides_runpath=yes 7643 ;; 7644 esac 7645 else 7646 shlibpath_overrides_runpath=yes 7647 fi 7648 ;; 7649 7650os2*) 7651 libname_spec='$name' 7652 shrext=".dll" 7653 need_lib_prefix=no 7654 library_names_spec='$libname${shared_ext} $libname.a' 7655 dynamic_linker='OS/2 ld.exe' 7656 shlibpath_var=LIBPATH 7657 ;; 7658 7659osf3* | osf4* | osf5*) 7660 version_type=osf 7661 need_lib_prefix=no 7662 need_version=no 7663 soname_spec='${libname}${release}${shared_ext}$major' 7664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7665 shlibpath_var=LD_LIBRARY_PATH 7666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7668 ;; 7669 7670sco3.2v5*) 7671 version_type=osf 7672 soname_spec='${libname}${release}${shared_ext}$major' 7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7674 shlibpath_var=LD_LIBRARY_PATH 7675 ;; 7676 7677solaris*) 7678 version_type=linux 7679 need_lib_prefix=no 7680 need_version=no 7681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7682 soname_spec='${libname}${release}${shared_ext}$major' 7683 shlibpath_var=LD_LIBRARY_PATH 7684 shlibpath_overrides_runpath=yes 7685 hardcode_into_libs=yes 7686 # ldd complains unless libraries are executable 7687 postinstall_cmds='chmod +x $lib' 7688 ;; 7689 7690sunos4*) 7691 version_type=sunos 7692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7694 shlibpath_var=LD_LIBRARY_PATH 7695 shlibpath_overrides_runpath=yes 7696 if test "$with_gnu_ld" = yes; then 7697 need_lib_prefix=no 7698 fi 7699 need_version=yes 7700 ;; 7701 7702sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7703 version_type=linux 7704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7705 soname_spec='${libname}${release}${shared_ext}$major' 7706 shlibpath_var=LD_LIBRARY_PATH 7707 case $host_vendor in 7708 sni) 7709 shlibpath_overrides_runpath=no 7710 need_lib_prefix=no 7711 export_dynamic_flag_spec='${wl}-Blargedynsym' 7712 runpath_var=LD_RUN_PATH 7713 ;; 7714 siemens) 7715 need_lib_prefix=no 7716 ;; 7717 motorola) 7718 need_lib_prefix=no 7719 need_version=no 7720 shlibpath_overrides_runpath=no 7721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7722 ;; 7723 esac 7724 ;; 7725 7726sysv4*MP*) 7727 if test -d /usr/nec ;then 7728 version_type=linux 7729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7730 soname_spec='$libname${shared_ext}.$major' 7731 shlibpath_var=LD_LIBRARY_PATH 7732 fi 7733 ;; 7734 7735uts4*) 7736 version_type=linux 7737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7738 soname_spec='${libname}${release}${shared_ext}$major' 7739 shlibpath_var=LD_LIBRARY_PATH 7740 ;; 7741 7742*) 7743 dynamic_linker=no 7744 ;; 7745esac 7746echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7747echo "${ECHO_T}$dynamic_linker" >&6 7748test "$dynamic_linker" = no && can_build_shared=no 7749 7750if test "x$enable_dlopen" != xyes; then 7751 enable_dlopen=unknown 7752 enable_dlopen_self=unknown 7753 enable_dlopen_self_static=unknown 7754else 7755 lt_cv_dlopen=no 7756 lt_cv_dlopen_libs= 7757 7758 case $host_os in 7759 beos*) 7760 lt_cv_dlopen="load_add_on" 7761 lt_cv_dlopen_libs= 7762 lt_cv_dlopen_self=yes 7763 ;; 7764 7765 mingw* | pw32*) 7766 lt_cv_dlopen="LoadLibrary" 7767 lt_cv_dlopen_libs= 7768 ;; 7769 7770 cygwin*) 7771 lt_cv_dlopen="dlopen" 7772 lt_cv_dlopen_libs= 7773 ;; 7774 7775 darwin*) 7776 # if libdl is installed we need to link against it 7777 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7778echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7779if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7780 echo $ECHO_N "(cached) $ECHO_C" >&6 7781else 7782 ac_check_lib_save_LIBS=$LIBS 7783LIBS="-ldl $LIBS" 7784cat >conftest.$ac_ext <<_ACEOF 7785#line $LINENO "configure" 7786/* confdefs.h. */ 7787_ACEOF 7788cat confdefs.h >>conftest.$ac_ext 7789cat >>conftest.$ac_ext <<_ACEOF 7790/* end confdefs.h. */ 7791 7792/* Override any gcc2 internal prototype to avoid an error. */ 7793#ifdef __cplusplus 7794extern "C" 7795#endif 7796/* We use char because int might match the return type of a gcc2 7797 builtin and then its argument prototype would still apply. */ 7798char dlopen (); 7799int 7800main () 7801{ 7802dlopen (); 7803 ; 7804 return 0; 7805} 7806_ACEOF 7807rm -f conftest.$ac_objext conftest$ac_exeext 7808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7809 (eval $ac_link) 2>&5 7810 ac_status=$? 7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7812 (exit $ac_status); } && 7813 { ac_try='test -s conftest$ac_exeext' 7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7815 (eval $ac_try) 2>&5 7816 ac_status=$? 7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7818 (exit $ac_status); }; }; then 7819 ac_cv_lib_dl_dlopen=yes 7820else 7821 echo "$as_me: failed program was:" >&5 7822sed 's/^/| /' conftest.$ac_ext >&5 7823 7824ac_cv_lib_dl_dlopen=no 7825fi 7826rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7827LIBS=$ac_check_lib_save_LIBS 7828fi 7829echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7830echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7831if test $ac_cv_lib_dl_dlopen = yes; then 7832 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7833else 7834 7835 lt_cv_dlopen="dyld" 7836 lt_cv_dlopen_libs= 7837 lt_cv_dlopen_self=yes 7838 7839fi 7840 7841 ;; 7842 7843 *) 7844 echo "$as_me:$LINENO: checking for shl_load" >&5 7845echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7846if test "${ac_cv_func_shl_load+set}" = set; then 7847 echo $ECHO_N "(cached) $ECHO_C" >&6 7848else 7849 cat >conftest.$ac_ext <<_ACEOF 7850#line $LINENO "configure" 7851/* confdefs.h. */ 7852_ACEOF 7853cat confdefs.h >>conftest.$ac_ext 7854cat >>conftest.$ac_ext <<_ACEOF 7855/* end confdefs.h. */ 7856/* System header to define __stub macros and hopefully few prototypes, 7857 which can conflict with char shl_load (); below. 7858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7859 <limits.h> exists even on freestanding compilers. */ 7860#ifdef __STDC__ 7861# include <limits.h> 7862#else 7863# include <assert.h> 7864#endif 7865/* Override any gcc2 internal prototype to avoid an error. */ 7866#ifdef __cplusplus 7867extern "C" 7868{ 7869#endif 7870/* We use char because int might match the return type of a gcc2 7871 builtin and then its argument prototype would still apply. */ 7872char shl_load (); 7873/* The GNU C library defines this for functions which it implements 7874 to always fail with ENOSYS. Some functions are actually named 7875 something starting with __ and the normal name is an alias. */ 7876#if defined (__stub_shl_load) || defined (__stub___shl_load) 7877choke me 7878#else 7879char (*f) () = shl_load; 7880#endif 7881#ifdef __cplusplus 7882} 7883#endif 7884 7885int 7886main () 7887{ 7888return f != shl_load; 7889 ; 7890 return 0; 7891} 7892_ACEOF 7893rm -f conftest.$ac_objext conftest$ac_exeext 7894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7895 (eval $ac_link) 2>&5 7896 ac_status=$? 7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7898 (exit $ac_status); } && 7899 { ac_try='test -s conftest$ac_exeext' 7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7901 (eval $ac_try) 2>&5 7902 ac_status=$? 7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7904 (exit $ac_status); }; }; then 7905 ac_cv_func_shl_load=yes 7906else 7907 echo "$as_me: failed program was:" >&5 7908sed 's/^/| /' conftest.$ac_ext >&5 7909 7910ac_cv_func_shl_load=no 7911fi 7912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7913fi 7914echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7915echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7916if test $ac_cv_func_shl_load = yes; then 7917 lt_cv_dlopen="shl_load" 7918else 7919 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7920echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7921if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7922 echo $ECHO_N "(cached) $ECHO_C" >&6 7923else 7924 ac_check_lib_save_LIBS=$LIBS 7925LIBS="-ldld $LIBS" 7926cat >conftest.$ac_ext <<_ACEOF 7927#line $LINENO "configure" 7928/* confdefs.h. */ 7929_ACEOF 7930cat confdefs.h >>conftest.$ac_ext 7931cat >>conftest.$ac_ext <<_ACEOF 7932/* end confdefs.h. */ 7933 7934/* Override any gcc2 internal prototype to avoid an error. */ 7935#ifdef __cplusplus 7936extern "C" 7937#endif 7938/* We use char because int might match the return type of a gcc2 7939 builtin and then its argument prototype would still apply. */ 7940char shl_load (); 7941int 7942main () 7943{ 7944shl_load (); 7945 ; 7946 return 0; 7947} 7948_ACEOF 7949rm -f conftest.$ac_objext conftest$ac_exeext 7950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7951 (eval $ac_link) 2>&5 7952 ac_status=$? 7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7954 (exit $ac_status); } && 7955 { ac_try='test -s conftest$ac_exeext' 7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7957 (eval $ac_try) 2>&5 7958 ac_status=$? 7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7960 (exit $ac_status); }; }; then 7961 ac_cv_lib_dld_shl_load=yes 7962else 7963 echo "$as_me: failed program was:" >&5 7964sed 's/^/| /' conftest.$ac_ext >&5 7965 7966ac_cv_lib_dld_shl_load=no 7967fi 7968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7969LIBS=$ac_check_lib_save_LIBS 7970fi 7971echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7972echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7973if test $ac_cv_lib_dld_shl_load = yes; then 7974 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7975else 7976 echo "$as_me:$LINENO: checking for dlopen" >&5 7977echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7978if test "${ac_cv_func_dlopen+set}" = set; then 7979 echo $ECHO_N "(cached) $ECHO_C" >&6 7980else 7981 cat >conftest.$ac_ext <<_ACEOF 7982#line $LINENO "configure" 7983/* confdefs.h. */ 7984_ACEOF 7985cat confdefs.h >>conftest.$ac_ext 7986cat >>conftest.$ac_ext <<_ACEOF 7987/* end confdefs.h. */ 7988/* System header to define __stub macros and hopefully few prototypes, 7989 which can conflict with char dlopen (); below. 7990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7991 <limits.h> exists even on freestanding compilers. */ 7992#ifdef __STDC__ 7993# include <limits.h> 7994#else 7995# include <assert.h> 7996#endif 7997/* Override any gcc2 internal prototype to avoid an error. */ 7998#ifdef __cplusplus 7999extern "C" 8000{ 8001#endif 8002/* We use char because int might match the return type of a gcc2 8003 builtin and then its argument prototype would still apply. */ 8004char dlopen (); 8005/* The GNU C library defines this for functions which it implements 8006 to always fail with ENOSYS. Some functions are actually named 8007 something starting with __ and the normal name is an alias. */ 8008#if defined (__stub_dlopen) || defined (__stub___dlopen) 8009choke me 8010#else 8011char (*f) () = dlopen; 8012#endif 8013#ifdef __cplusplus 8014} 8015#endif 8016 8017int 8018main () 8019{ 8020return f != dlopen; 8021 ; 8022 return 0; 8023} 8024_ACEOF 8025rm -f conftest.$ac_objext conftest$ac_exeext 8026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8027 (eval $ac_link) 2>&5 8028 ac_status=$? 8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8030 (exit $ac_status); } && 8031 { ac_try='test -s conftest$ac_exeext' 8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8033 (eval $ac_try) 2>&5 8034 ac_status=$? 8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8036 (exit $ac_status); }; }; then 8037 ac_cv_func_dlopen=yes 8038else 8039 echo "$as_me: failed program was:" >&5 8040sed 's/^/| /' conftest.$ac_ext >&5 8041 8042ac_cv_func_dlopen=no 8043fi 8044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8045fi 8046echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8047echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8048if test $ac_cv_func_dlopen = yes; then 8049 lt_cv_dlopen="dlopen" 8050else 8051 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8052echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8053if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8054 echo $ECHO_N "(cached) $ECHO_C" >&6 8055else 8056 ac_check_lib_save_LIBS=$LIBS 8057LIBS="-ldl $LIBS" 8058cat >conftest.$ac_ext <<_ACEOF 8059#line $LINENO "configure" 8060/* confdefs.h. */ 8061_ACEOF 8062cat confdefs.h >>conftest.$ac_ext 8063cat >>conftest.$ac_ext <<_ACEOF 8064/* end confdefs.h. */ 8065 8066/* Override any gcc2 internal prototype to avoid an error. */ 8067#ifdef __cplusplus 8068extern "C" 8069#endif 8070/* We use char because int might match the return type of a gcc2 8071 builtin and then its argument prototype would still apply. */ 8072char dlopen (); 8073int 8074main () 8075{ 8076dlopen (); 8077 ; 8078 return 0; 8079} 8080_ACEOF 8081rm -f conftest.$ac_objext conftest$ac_exeext 8082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8083 (eval $ac_link) 2>&5 8084 ac_status=$? 8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8086 (exit $ac_status); } && 8087 { ac_try='test -s conftest$ac_exeext' 8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8089 (eval $ac_try) 2>&5 8090 ac_status=$? 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8092 (exit $ac_status); }; }; then 8093 ac_cv_lib_dl_dlopen=yes 8094else 8095 echo "$as_me: failed program was:" >&5 8096sed 's/^/| /' conftest.$ac_ext >&5 8097 8098ac_cv_lib_dl_dlopen=no 8099fi 8100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8101LIBS=$ac_check_lib_save_LIBS 8102fi 8103echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8104echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8105if test $ac_cv_lib_dl_dlopen = yes; then 8106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8107else 8108 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8109echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8110if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8111 echo $ECHO_N "(cached) $ECHO_C" >&6 8112else 8113 ac_check_lib_save_LIBS=$LIBS 8114LIBS="-lsvld $LIBS" 8115cat >conftest.$ac_ext <<_ACEOF 8116#line $LINENO "configure" 8117/* confdefs.h. */ 8118_ACEOF 8119cat confdefs.h >>conftest.$ac_ext 8120cat >>conftest.$ac_ext <<_ACEOF 8121/* end confdefs.h. */ 8122 8123/* Override any gcc2 internal prototype to avoid an error. */ 8124#ifdef __cplusplus 8125extern "C" 8126#endif 8127/* We use char because int might match the return type of a gcc2 8128 builtin and then its argument prototype would still apply. */ 8129char dlopen (); 8130int 8131main () 8132{ 8133dlopen (); 8134 ; 8135 return 0; 8136} 8137_ACEOF 8138rm -f conftest.$ac_objext conftest$ac_exeext 8139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8140 (eval $ac_link) 2>&5 8141 ac_status=$? 8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8143 (exit $ac_status); } && 8144 { ac_try='test -s conftest$ac_exeext' 8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8146 (eval $ac_try) 2>&5 8147 ac_status=$? 8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8149 (exit $ac_status); }; }; then 8150 ac_cv_lib_svld_dlopen=yes 8151else 8152 echo "$as_me: failed program was:" >&5 8153sed 's/^/| /' conftest.$ac_ext >&5 8154 8155ac_cv_lib_svld_dlopen=no 8156fi 8157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8158LIBS=$ac_check_lib_save_LIBS 8159fi 8160echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8161echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8162if test $ac_cv_lib_svld_dlopen = yes; then 8163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8164else 8165 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8166echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8167if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8168 echo $ECHO_N "(cached) $ECHO_C" >&6 8169else 8170 ac_check_lib_save_LIBS=$LIBS 8171LIBS="-ldld $LIBS" 8172cat >conftest.$ac_ext <<_ACEOF 8173#line $LINENO "configure" 8174/* confdefs.h. */ 8175_ACEOF 8176cat confdefs.h >>conftest.$ac_ext 8177cat >>conftest.$ac_ext <<_ACEOF 8178/* end confdefs.h. */ 8179 8180/* Override any gcc2 internal prototype to avoid an error. */ 8181#ifdef __cplusplus 8182extern "C" 8183#endif 8184/* We use char because int might match the return type of a gcc2 8185 builtin and then its argument prototype would still apply. */ 8186char dld_link (); 8187int 8188main () 8189{ 8190dld_link (); 8191 ; 8192 return 0; 8193} 8194_ACEOF 8195rm -f conftest.$ac_objext conftest$ac_exeext 8196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8197 (eval $ac_link) 2>&5 8198 ac_status=$? 8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8200 (exit $ac_status); } && 8201 { ac_try='test -s conftest$ac_exeext' 8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8203 (eval $ac_try) 2>&5 8204 ac_status=$? 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8206 (exit $ac_status); }; }; then 8207 ac_cv_lib_dld_dld_link=yes 8208else 8209 echo "$as_me: failed program was:" >&5 8210sed 's/^/| /' conftest.$ac_ext >&5 8211 8212ac_cv_lib_dld_dld_link=no 8213fi 8214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8215LIBS=$ac_check_lib_save_LIBS 8216fi 8217echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8218echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8219if test $ac_cv_lib_dld_dld_link = yes; then 8220 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8221fi 8222 8223 8224fi 8225 8226 8227fi 8228 8229 8230fi 8231 8232 8233fi 8234 8235 8236fi 8237 8238 ;; 8239 esac 8240 8241 if test "x$lt_cv_dlopen" != xno; then 8242 enable_dlopen=yes 8243 else 8244 enable_dlopen=no 8245 fi 8246 8247 case $lt_cv_dlopen in 8248 dlopen) 8249 save_CPPFLAGS="$CPPFLAGS" 8250 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8251 8252 save_LDFLAGS="$LDFLAGS" 8253 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8254 8255 save_LIBS="$LIBS" 8256 LIBS="$lt_cv_dlopen_libs $LIBS" 8257 8258 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8259echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8260if test "${lt_cv_dlopen_self+set}" = set; then 8261 echo $ECHO_N "(cached) $ECHO_C" >&6 8262else 8263 if test "$cross_compiling" = yes; then : 8264 lt_cv_dlopen_self=cross 8265else 8266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8267 lt_status=$lt_dlunknown 8268 cat > conftest.$ac_ext <<EOF 8269#line 8269 "configure" 8270#include "confdefs.h" 8271 8272#if HAVE_DLFCN_H 8273#include <dlfcn.h> 8274#endif 8275 8276#include <stdio.h> 8277 8278#ifdef RTLD_GLOBAL 8279# define LT_DLGLOBAL RTLD_GLOBAL 8280#else 8281# ifdef DL_GLOBAL 8282# define LT_DLGLOBAL DL_GLOBAL 8283# else 8284# define LT_DLGLOBAL 0 8285# endif 8286#endif 8287 8288/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8289 find out it does not work in some platform. */ 8290#ifndef LT_DLLAZY_OR_NOW 8291# ifdef RTLD_LAZY 8292# define LT_DLLAZY_OR_NOW RTLD_LAZY 8293# else 8294# ifdef DL_LAZY 8295# define LT_DLLAZY_OR_NOW DL_LAZY 8296# else 8297# ifdef RTLD_NOW 8298# define LT_DLLAZY_OR_NOW RTLD_NOW 8299# else 8300# ifdef DL_NOW 8301# define LT_DLLAZY_OR_NOW DL_NOW 8302# else 8303# define LT_DLLAZY_OR_NOW 0 8304# endif 8305# endif 8306# endif 8307# endif 8308#endif 8309 8310#ifdef __cplusplus 8311extern "C" void exit (int); 8312#endif 8313 8314void fnord() { int i=42;} 8315int main () 8316{ 8317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8318 int status = $lt_dlunknown; 8319 8320 if (self) 8321 { 8322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8324 /* dlclose (self); */ 8325 } 8326 8327 exit (status); 8328} 8329EOF 8330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8331 (eval $ac_link) 2>&5 8332 ac_status=$? 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8334 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8335 (./conftest; exit; ) 2>/dev/null 8336 lt_status=$? 8337 case x$lt_status in 8338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8340 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8341 esac 8342 else : 8343 # compilation failed 8344 lt_cv_dlopen_self=no 8345 fi 8346fi 8347rm -fr conftest* 8348 8349 8350fi 8351echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8352echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8353 8354 if test "x$lt_cv_dlopen_self" = xyes; then 8355 LDFLAGS="$LDFLAGS $link_static_flag" 8356 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8357echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8358if test "${lt_cv_dlopen_self_static+set}" = set; then 8359 echo $ECHO_N "(cached) $ECHO_C" >&6 8360else 8361 if test "$cross_compiling" = yes; then : 8362 lt_cv_dlopen_self_static=cross 8363else 8364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8365 lt_status=$lt_dlunknown 8366 cat > conftest.$ac_ext <<EOF 8367#line 8367 "configure" 8368#include "confdefs.h" 8369 8370#if HAVE_DLFCN_H 8371#include <dlfcn.h> 8372#endif 8373 8374#include <stdio.h> 8375 8376#ifdef RTLD_GLOBAL 8377# define LT_DLGLOBAL RTLD_GLOBAL 8378#else 8379# ifdef DL_GLOBAL 8380# define LT_DLGLOBAL DL_GLOBAL 8381# else 8382# define LT_DLGLOBAL 0 8383# endif 8384#endif 8385 8386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8387 find out it does not work in some platform. */ 8388#ifndef LT_DLLAZY_OR_NOW 8389# ifdef RTLD_LAZY 8390# define LT_DLLAZY_OR_NOW RTLD_LAZY 8391# else 8392# ifdef DL_LAZY 8393# define LT_DLLAZY_OR_NOW DL_LAZY 8394# else 8395# ifdef RTLD_NOW 8396# define LT_DLLAZY_OR_NOW RTLD_NOW 8397# else 8398# ifdef DL_NOW 8399# define LT_DLLAZY_OR_NOW DL_NOW 8400# else 8401# define LT_DLLAZY_OR_NOW 0 8402# endif 8403# endif 8404# endif 8405# endif 8406#endif 8407 8408#ifdef __cplusplus 8409extern "C" void exit (int); 8410#endif 8411 8412void fnord() { int i=42;} 8413int main () 8414{ 8415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8416 int status = $lt_dlunknown; 8417 8418 if (self) 8419 { 8420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8422 /* dlclose (self); */ 8423 } 8424 8425 exit (status); 8426} 8427EOF 8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8429 (eval $ac_link) 2>&5 8430 ac_status=$? 8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8433 (./conftest; exit; ) 2>/dev/null 8434 lt_status=$? 8435 case x$lt_status in 8436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8438 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8439 esac 8440 else : 8441 # compilation failed 8442 lt_cv_dlopen_self_static=no 8443 fi 8444fi 8445rm -fr conftest* 8446 8447 8448fi 8449echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8450echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8451 fi 8452 8453 CPPFLAGS="$save_CPPFLAGS" 8454 LDFLAGS="$save_LDFLAGS" 8455 LIBS="$save_LIBS" 8456 ;; 8457 esac 8458 8459 case $lt_cv_dlopen_self in 8460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8461 *) enable_dlopen_self=unknown ;; 8462 esac 8463 8464 case $lt_cv_dlopen_self_static in 8465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8466 *) enable_dlopen_self_static=unknown ;; 8467 esac 8468fi 8469 8470 8471# Report which librarie types wil actually be built 8472echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8473echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8474echo "$as_me:$LINENO: result: $can_build_shared" >&5 8475echo "${ECHO_T}$can_build_shared" >&6 8476 8477echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8478echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8479test "$can_build_shared" = "no" && enable_shared=no 8480 8481# On AIX, shared libraries and static libraries use the same namespace, and 8482# are all built from PIC. 8483case "$host_os" in 8484aix3*) 8485 test "$enable_shared" = yes && enable_static=no 8486 if test -n "$RANLIB"; then 8487 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8488 postinstall_cmds='$RANLIB $lib' 8489 fi 8490 ;; 8491 8492aix4*) 8493 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8494 test "$enable_shared" = yes && enable_static=no 8495 fi 8496 ;; 8497 darwin* | rhapsody*) 8498 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 8499 archive_cmds_need_lc=no 8500 case "$host_os" in 8501 rhapsody* | darwin1.[012]) 8502 allow_undefined_flag='-undefined suppress' 8503 ;; 8504 *) # Darwin 1.3 on 8505 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 8506 ;; 8507 esac 8508 # FIXME: Relying on posixy $() will cause problems for 8509 # cross-compilation, but unfortunately the echo tests do not 8510 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 8511 # `"' quotes if we put them in here... so don't! 8512 output_verbose_link_cmd='echo' 8513 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 8514 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 8515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8516 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}' 8517 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8518 hardcode_direct=no 8519 hardcode_automatic=yes 8520 hardcode_shlibpath_var=unsupported 8521 whole_archive_flag_spec='-all_load $convenience' 8522 link_all_deplibs=yes 8523 fi 8524 ;; 8525esac 8526echo "$as_me:$LINENO: result: $enable_shared" >&5 8527echo "${ECHO_T}$enable_shared" >&6 8528 8529echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8530echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8531# Make sure either enable_shared or enable_static is yes. 8532test "$enable_shared" = yes || enable_static=yes 8533echo "$as_me:$LINENO: result: $enable_static" >&5 8534echo "${ECHO_T}$enable_static" >&6 8535 8536# The else clause should only fire when bootstrapping the 8537# libtool distribution, otherwise you forgot to ship ltmain.sh 8538# with your package, and you will get complaints that there are 8539# no rules to generate ltmain.sh. 8540if test -f "$ltmain"; then 8541 # See if we are running on zsh, and set the options which allow our commands through 8542 # without removal of \ escapes. 8543 if test -n "${ZSH_VERSION+set}" ; then 8544 setopt NO_GLOB_SUBST 8545 fi 8546 # Now quote all the things that may contain metacharacters while being 8547 # careful not to overquote the AC_SUBSTed values. We take copies of the 8548 # variables and quote the copies for generation of the libtool script. 8549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 8550 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8551 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8552 deplibs_check_method reload_flag reload_cmds need_locks \ 8553 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8554 lt_cv_sys_global_symbol_to_c_name_address \ 8555 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8556 old_postinstall_cmds old_postuninstall_cmds \ 8557 compiler \ 8558 CC \ 8559 LD \ 8560 lt_prog_compiler_wl \ 8561 lt_prog_compiler_pic \ 8562 lt_prog_compiler_static \ 8563 lt_prog_compiler_no_builtin_flag \ 8564 export_dynamic_flag_spec \ 8565 thread_safe_flag_spec \ 8566 whole_archive_flag_spec \ 8567 enable_shared_with_static_runtimes \ 8568 old_archive_cmds \ 8569 old_archive_from_new_cmds \ 8570 predep_objects \ 8571 postdep_objects \ 8572 predeps \ 8573 postdeps \ 8574 compiler_lib_search_path \ 8575 archive_cmds \ 8576 archive_expsym_cmds \ 8577 postinstall_cmds \ 8578 postuninstall_cmds \ 8579 old_archive_from_expsyms_cmds \ 8580 allow_undefined_flag \ 8581 no_undefined_flag \ 8582 export_symbols_cmds \ 8583 hardcode_libdir_flag_spec \ 8584 hardcode_libdir_flag_spec_ld \ 8585 hardcode_libdir_separator \ 8586 hardcode_automatic \ 8587 module_cmds \ 8588 module_expsym_cmds \ 8589 lt_cv_prog_compiler_c_o \ 8590 exclude_expsyms \ 8591 include_expsyms; do 8592 8593 case $var in 8594 old_archive_cmds | \ 8595 old_archive_from_new_cmds | \ 8596 archive_cmds | \ 8597 archive_expsym_cmds | \ 8598 module_cmds | \ 8599 module_expsym_cmds | \ 8600 old_archive_from_expsyms_cmds | \ 8601 export_symbols_cmds | \ 8602 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8603 postinstall_cmds | postuninstall_cmds | \ 8604 old_postinstall_cmds | old_postuninstall_cmds | \ 8605 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8606 # Double-quote double-evaled strings. 8607 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8608 ;; 8609 *) 8610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8611 ;; 8612 esac 8613 done 8614 8615 case $lt_echo in 8616 *'\$0 --fallback-echo"') 8617 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8618 ;; 8619 esac 8620 8621cfgfile="${ofile}T" 8622 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8623 $rm -f "$cfgfile" 8624 { echo "$as_me:$LINENO: creating $ofile" >&5 8625echo "$as_me: creating $ofile" >&6;} 8626 8627 cat <<__EOF__ >> "$cfgfile" 8628#! $SHELL 8629 8630# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8631# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8632# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8633# 8634# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8635# Free Software Foundation, Inc. 8636# 8637# This file is part of GNU Libtool: 8638# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8639# 8640# This program is free software; you can redistribute it and/or modify 8641# it under the terms of the GNU General Public License as published by 8642# the Free Software Foundation; either version 2 of the License, or 8643# (at your option) any later version. 8644# 8645# This program is distributed in the hope that it will be useful, but 8646# WITHOUT ANY WARRANTY; without even the implied warranty of 8647# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8648# General Public License for more details. 8649# 8650# You should have received a copy of the GNU General Public License 8651# along with this program; if not, write to the Free Software 8652# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8653# 8654# As a special exception to the GNU General Public License, if you 8655# distribute this file as part of a program that contains a 8656# configuration script generated by Autoconf, you may include it under 8657# the same distribution terms that you use for the rest of that program. 8658 8659# A sed program that does not truncate output. 8660SED=$lt_SED 8661 8662# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8663Xsed="$SED -e s/^X//" 8664 8665# The HP-UX ksh and POSIX shell print the target directory to stdout 8666# if CDPATH is set. 8667if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 8668 8669# The names of the tagged configurations supported by this script. 8670available_tags= 8671 8672# ### BEGIN LIBTOOL CONFIG 8673 8674# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8675 8676# Shell to use when invoking shell scripts. 8677SHELL=$lt_SHELL 8678 8679# Whether or not to build shared libraries. 8680build_libtool_libs=$enable_shared 8681 8682# Whether or not to build static libraries. 8683build_old_libs=$enable_static 8684 8685# Whether or not to add -lc for building shared libraries. 8686build_libtool_need_lc=$archive_cmds_need_lc 8687 8688# Whether or not to disallow shared libs when runtime libs are static 8689allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8690 8691# Whether or not to optimize for fast installation. 8692fast_install=$enable_fast_install 8693 8694# The host system. 8695host_alias=$host_alias 8696host=$host 8697 8698# An echo program that does not interpret backslashes. 8699echo=$lt_echo 8700 8701# The archiver. 8702AR=$lt_AR 8703AR_FLAGS=$lt_AR_FLAGS 8704 8705# A C compiler. 8706LTCC=$lt_LTCC 8707 8708# A language-specific compiler. 8709CC=$lt_compiler 8710 8711# Is the compiler the GNU C compiler? 8712with_gcc=$GCC 8713 8714# An ERE matcher. 8715EGREP=$lt_EGREP 8716 8717# The linker used to build libraries. 8718LD=$lt_LD 8719 8720# Whether we need hard or soft links. 8721LN_S=$lt_LN_S 8722 8723# A BSD-compatible nm program. 8724NM=$lt_NM 8725 8726# A symbol stripping program 8727STRIP=$STRIP 8728 8729# Used to examine libraries when file_magic_cmd begins "file" 8730MAGIC_CMD=$MAGIC_CMD 8731 8732# Used on cygwin: DLL creation program. 8733DLLTOOL="$DLLTOOL" 8734 8735# Used on cygwin: object dumper. 8736OBJDUMP="$OBJDUMP" 8737 8738# Used on cygwin: assembler. 8739AS="$AS" 8740 8741# The name of the directory that contains temporary libtool files. 8742objdir=$objdir 8743 8744# How to create reloadable object files. 8745reload_flag=$lt_reload_flag 8746reload_cmds=$lt_reload_cmds 8747 8748# How to pass a linker flag through the compiler. 8749wl=$lt_lt_prog_compiler_wl 8750 8751# Object file suffix (normally "o"). 8752objext="$ac_objext" 8753 8754# Old archive suffix (normally "a"). 8755libext="$libext" 8756 8757# Shared library suffix (normally ".so"). 8758shrext='$shrext' 8759 8760# Executable file suffix (normally ""). 8761exeext="$exeext" 8762 8763# Additional compiler flags for building library objects. 8764pic_flag=$lt_lt_prog_compiler_pic 8765pic_mode=$pic_mode 8766 8767# What is the maximum length of a command? 8768max_cmd_len=$lt_cv_sys_max_cmd_len 8769 8770# Does compiler simultaneously support -c and -o options? 8771compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8772 8773# Must we lock files when doing compilation ? 8774need_locks=$lt_need_locks 8775 8776# Do we need the lib prefix for modules? 8777need_lib_prefix=$need_lib_prefix 8778 8779# Do we need a version for libraries? 8780need_version=$need_version 8781 8782# Whether dlopen is supported. 8783dlopen_support=$enable_dlopen 8784 8785# Whether dlopen of programs is supported. 8786dlopen_self=$enable_dlopen_self 8787 8788# Whether dlopen of statically linked programs is supported. 8789dlopen_self_static=$enable_dlopen_self_static 8790 8791# Compiler flag to prevent dynamic linking. 8792link_static_flag=$lt_lt_prog_compiler_static 8793 8794# Compiler flag to turn off builtin functions. 8795no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8796 8797# Compiler flag to allow reflexive dlopens. 8798export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8799 8800# Compiler flag to generate shared objects directly from archives. 8801whole_archive_flag_spec=$lt_whole_archive_flag_spec 8802 8803# Compiler flag to generate thread-safe objects. 8804thread_safe_flag_spec=$lt_thread_safe_flag_spec 8805 8806# Library versioning type. 8807version_type=$version_type 8808 8809# Format of library name prefix. 8810libname_spec=$lt_libname_spec 8811 8812# List of archive names. First name is the real one, the rest are links. 8813# The last name is the one that the linker finds with -lNAME. 8814library_names_spec=$lt_library_names_spec 8815 8816# The coded name of the library, if different from the real name. 8817soname_spec=$lt_soname_spec 8818 8819# Commands used to build and install an old-style archive. 8820RANLIB=$lt_RANLIB 8821old_archive_cmds=$lt_old_archive_cmds 8822old_postinstall_cmds=$lt_old_postinstall_cmds 8823old_postuninstall_cmds=$lt_old_postuninstall_cmds 8824 8825# Create an old-style archive from a shared archive. 8826old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8827 8828# Create a temporary old-style archive to link instead of a shared archive. 8829old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8830 8831# Commands used to build and install a shared archive. 8832archive_cmds=$lt_archive_cmds 8833archive_expsym_cmds=$lt_archive_expsym_cmds 8834postinstall_cmds=$lt_postinstall_cmds 8835postuninstall_cmds=$lt_postuninstall_cmds 8836 8837# Commands used to build a loadable module (assumed same as above if empty) 8838module_cmds=$lt_module_cmds 8839module_expsym_cmds=$lt_module_expsym_cmds 8840 8841# Commands to strip libraries. 8842old_striplib=$lt_old_striplib 8843striplib=$lt_striplib 8844 8845# Dependencies to place before the objects being linked to create a 8846# shared library. 8847predep_objects=$lt_predep_objects 8848 8849# Dependencies to place after the objects being linked to create a 8850# shared library. 8851postdep_objects=$lt_postdep_objects 8852 8853# Dependencies to place before the objects being linked to create a 8854# shared library. 8855predeps=$lt_predeps 8856 8857# Dependencies to place after the objects being linked to create a 8858# shared library. 8859postdeps=$lt_postdeps 8860 8861# The library search path used internally by the compiler when linking 8862# a shared library. 8863compiler_lib_search_path=$lt_compiler_lib_search_path 8864 8865# Method to check whether dependent libraries are shared objects. 8866deplibs_check_method=$lt_deplibs_check_method 8867 8868# Command to use when deplibs_check_method == file_magic. 8869file_magic_cmd=$lt_file_magic_cmd 8870 8871# Flag that allows shared libraries with undefined symbols to be built. 8872allow_undefined_flag=$lt_allow_undefined_flag 8873 8874# Flag that forces no undefined symbols. 8875no_undefined_flag=$lt_no_undefined_flag 8876 8877# Commands used to finish a libtool library installation in a directory. 8878finish_cmds=$lt_finish_cmds 8879 8880# Same as above, but a single script fragment to be evaled but not shown. 8881finish_eval=$lt_finish_eval 8882 8883# Take the output of nm and produce a listing of raw symbols and C names. 8884global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 8885 8886# Transform the output of nm in a proper C declaration 8887global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 8888 8889# Transform the output of nm in a C name address pair 8890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 8891 8892# This is the shared library runtime path variable. 8893runpath_var=$runpath_var 8894 8895# This is the shared library path variable. 8896shlibpath_var=$shlibpath_var 8897 8898# Is shlibpath searched before the hard-coded library search path? 8899shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8900 8901# How to hardcode a shared library path into an executable. 8902hardcode_action=$hardcode_action 8903 8904# Whether we should hardcode library paths into libraries. 8905hardcode_into_libs=$hardcode_into_libs 8906 8907# Flag to hardcode \$libdir into a binary during linking. 8908# This must work even if \$libdir does not exist. 8909hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8910 8911# If ld is used when linking, flag to hardcode \$libdir into 8912# a binary during linking. This must work even if \$libdir does 8913# not exist. 8914hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 8915 8916# Whether we need a single -rpath flag with a separated argument. 8917hardcode_libdir_separator=$lt_hardcode_libdir_separator 8918 8919# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 8920# resulting binary. 8921hardcode_direct=$hardcode_direct 8922 8923# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8924# resulting binary. 8925hardcode_minus_L=$hardcode_minus_L 8926 8927# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8928# the resulting binary. 8929hardcode_shlibpath_var=$hardcode_shlibpath_var 8930 8931# Set to yes if building a shared library automatically hardcodes DIR into the library 8932# and all subsequent libraries and executables linked against it. 8933hardcode_automatic=$hardcode_automatic 8934 8935# Variables whose values should be saved in libtool wrapper scripts and 8936# restored at relink time. 8937variables_saved_for_relink="$variables_saved_for_relink" 8938 8939# Whether libtool must link a program against all its dependency libraries. 8940link_all_deplibs=$link_all_deplibs 8941 8942# Compile-time system search path for libraries 8943sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8944 8945# Run-time system search path for libraries 8946sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8947 8948# Fix the shell variable \$srcfile for the compiler. 8949fix_srcfile_path="$fix_srcfile_path" 8950 8951# Set to yes if exported symbols are required. 8952always_export_symbols=$always_export_symbols 8953 8954# The commands to list exported symbols. 8955export_symbols_cmds=$lt_export_symbols_cmds 8956 8957# The commands to extract the exported symbol list from a shared archive. 8958extract_expsyms_cmds=$lt_extract_expsyms_cmds 8959 8960# Symbols that should not be listed in the preloaded symbols. 8961exclude_expsyms=$lt_exclude_expsyms 8962 8963# Symbols that must always be exported. 8964include_expsyms=$lt_include_expsyms 8965 8966# ### END LIBTOOL CONFIG 8967 8968__EOF__ 8969 8970 8971 case $host_os in 8972 aix3*) 8973 cat <<\EOF >> "$cfgfile" 8974 8975# AIX sometimes has problems with the GCC collect2 program. For some 8976# reason, if we set the COLLECT_NAMES environment variable, the problems 8977# vanish in a puff of smoke. 8978if test "X${COLLECT_NAMES+set}" != Xset; then 8979 COLLECT_NAMES= 8980 export COLLECT_NAMES 8981fi 8982EOF 8983 ;; 8984 esac 8985 8986 # We use sed instead of cat because bash on DJGPP gets confused if 8987 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8988 # text mode, it properly converts lines to CR/LF. This bash problem 8989 # is reportedly fixed, but why not run on old versions too? 8990 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 8991 8992 mv -f "$cfgfile" "$ofile" || \ 8993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 8994 chmod +x "$ofile" 8995 8996else 8997 # If there is no Makefile yet, we rely on a make rule to execute 8998 # `config.status --recheck' to rerun these tests and create the 8999 # libtool script then. 9000 test -f Makefile && make "$ltmain" 9001fi 9002 9003 9004ac_ext=c 9005ac_cpp='$CPP $CPPFLAGS' 9006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9008ac_compiler_gnu=$ac_cv_c_compiler_gnu 9009 9010CC="$lt_save_CC" 9011 9012 9013# Check whether --with-tags or --without-tags was given. 9014if test "${with_tags+set}" = set; then 9015 withval="$with_tags" 9016 tagnames="$withval" 9017fi; 9018 9019if test -f "$ltmain" && test -n "$tagnames"; then 9020 if test ! -f "${ofile}"; then 9021 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9022echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9023 fi 9024 9025 if test -z "$LTCC"; then 9026 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9027 if test -z "$LTCC"; then 9028 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9029echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9030 else 9031 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9032echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9033 fi 9034 fi 9035 9036 # Extract list of available tagged configurations in $ofile. 9037 # Note that this assumes the entire list is on one line. 9038 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9039 9040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9041 for tagname in $tagnames; do 9042 IFS="$lt_save_ifs" 9043 # Check whether tagname contains only valid characters 9044 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9045 "") ;; 9046 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9047echo "$as_me: error: invalid tag name: $tagname" >&2;} 9048 { (exit 1); exit 1; }; } 9049 ;; 9050 esac 9051 9052 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9053 then 9054 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9055echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9056 { (exit 1); exit 1; }; } 9057 fi 9058 9059 # Update the list of available tags. 9060 if test -n "$tagname"; then 9061 echo appending configuration tag \"$tagname\" to $ofile 9062 9063 case $tagname in 9064 CXX) 9065 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9066 ac_ext=cc 9067ac_cpp='$CXXCPP $CPPFLAGS' 9068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9071 9072 9073 9074 9075archive_cmds_need_lc_CXX=no 9076allow_undefined_flag_CXX= 9077always_export_symbols_CXX=no 9078archive_expsym_cmds_CXX= 9079export_dynamic_flag_spec_CXX= 9080hardcode_direct_CXX=no 9081hardcode_libdir_flag_spec_CXX= 9082hardcode_libdir_flag_spec_ld_CXX= 9083hardcode_libdir_separator_CXX= 9084hardcode_minus_L_CXX=no 9085hardcode_automatic_CXX=no 9086module_cmds_CXX= 9087module_expsym_cmds_CXX= 9088link_all_deplibs_CXX=unknown 9089old_archive_cmds_CXX=$old_archive_cmds 9090no_undefined_flag_CXX= 9091whole_archive_flag_spec_CXX= 9092enable_shared_with_static_runtimes_CXX=no 9093 9094# Dependencies to place before and after the object being linked: 9095predep_objects_CXX= 9096postdep_objects_CXX= 9097predeps_CXX= 9098postdeps_CXX= 9099compiler_lib_search_path_CXX= 9100 9101# Source file extension for C++ test sources. 9102ac_ext=cc 9103 9104# Object file extension for compiled C++ test sources. 9105objext=o 9106objext_CXX=$objext 9107 9108# Code to be used in simple compile tests 9109lt_simple_compile_test_code="int some_variable = 0;\n" 9110 9111# Code to be used in simple link tests 9112lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9113 9114# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9115 9116# If no C compiler was specified, use CC. 9117LTCC=${LTCC-"$CC"} 9118 9119# Allow CC to be a program name with arguments. 9120compiler=$CC 9121 9122 9123# Allow CC to be a program name with arguments. 9124lt_save_CC=$CC 9125lt_save_LD=$LD 9126lt_save_GCC=$GCC 9127GCC=$GXX 9128lt_save_with_gnu_ld=$with_gnu_ld 9129lt_save_path_LD=$lt_cv_path_LD 9130if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9131 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9132else 9133 unset lt_cv_prog_gnu_ld 9134fi 9135if test -n "${lt_cv_path_LDCXX+set}"; then 9136 lt_cv_path_LD=$lt_cv_path_LDCXX 9137else 9138 unset lt_cv_path_LD 9139fi 9140test -z "${LDCXX+set}" || LD=$LDCXX 9141CC=${CXX-"c++"} 9142compiler=$CC 9143compiler_CXX=$CC 9144cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9145 9146# We don't want -fno-exception wen compiling C++ code, so set the 9147# no_builtin_flag separately 9148if test "$GXX" = yes; then 9149 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9150else 9151 lt_prog_compiler_no_builtin_flag_CXX= 9152fi 9153 9154if test "$GXX" = yes; then 9155 # Set up default GNU C++ configuration 9156 9157 9158# Check whether --with-gnu-ld or --without-gnu-ld was given. 9159if test "${with_gnu_ld+set}" = set; then 9160 withval="$with_gnu_ld" 9161 test "$withval" = no || with_gnu_ld=yes 9162else 9163 with_gnu_ld=no 9164fi; 9165ac_prog=ld 9166if test "$GCC" = yes; then 9167 # Check if gcc -print-prog-name=ld gives a path. 9168 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9169echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9170 case $host in 9171 *-*-mingw*) 9172 # gcc leaves a trailing carriage return which upsets mingw 9173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9174 *) 9175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9176 esac 9177 case $ac_prog in 9178 # Accept absolute paths. 9179 [\\/]* | ?:[\\/]*) 9180 re_direlt='/[^/][^/]*/\.\./' 9181 # Canonicalize the path of ld 9182 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9183 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9184 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9185 done 9186 test -z "$LD" && LD="$ac_prog" 9187 ;; 9188 "") 9189 # If it fails, then pretend we aren't using GCC. 9190 ac_prog=ld 9191 ;; 9192 *) 9193 # If it is relative, then search for the first ld in PATH. 9194 with_gnu_ld=unknown 9195 ;; 9196 esac 9197elif test "$with_gnu_ld" = yes; then 9198 echo "$as_me:$LINENO: checking for GNU ld" >&5 9199echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9200else 9201 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9202echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9203fi 9204if test "${lt_cv_path_LD+set}" = set; then 9205 echo $ECHO_N "(cached) $ECHO_C" >&6 9206else 9207 if test -z "$LD"; then 9208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9209 for ac_dir in $PATH; do 9210 IFS="$lt_save_ifs" 9211 test -z "$ac_dir" && ac_dir=. 9212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9213 lt_cv_path_LD="$ac_dir/$ac_prog" 9214 # Check to see if the program is GNU ld. I'd rather use --version, 9215 # but apparently some GNU ld's only accept -v. 9216 # Break only if it was the GNU/non-GNU ld that we prefer. 9217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9218 *GNU* | *'with BFD'*) 9219 test "$with_gnu_ld" != no && break 9220 ;; 9221 *) 9222 test "$with_gnu_ld" != yes && break 9223 ;; 9224 esac 9225 fi 9226 done 9227 IFS="$lt_save_ifs" 9228else 9229 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9230fi 9231fi 9232 9233LD="$lt_cv_path_LD" 9234if test -n "$LD"; then 9235 echo "$as_me:$LINENO: result: $LD" >&5 9236echo "${ECHO_T}$LD" >&6 9237else 9238 echo "$as_me:$LINENO: result: no" >&5 9239echo "${ECHO_T}no" >&6 9240fi 9241test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9242echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9243 { (exit 1); exit 1; }; } 9244echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9245echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9246if test "${lt_cv_prog_gnu_ld+set}" = set; then 9247 echo $ECHO_N "(cached) $ECHO_C" >&6 9248else 9249 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9250case `"$LD" -v 2>&1 </dev/null` in 9251*GNU* | *'with BFD'*) 9252 lt_cv_prog_gnu_ld=yes 9253 ;; 9254*) 9255 lt_cv_prog_gnu_ld=no 9256 ;; 9257esac 9258fi 9259echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9260echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9261with_gnu_ld=$lt_cv_prog_gnu_ld 9262 9263 9264 9265 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9266 # archiving commands below assume that GNU ld is being used. 9267 if test "$with_gnu_ld" = yes; then 9268 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9269 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' 9270 9271 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9272 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9273 9274 # If archive_cmds runs LD, not CC, wlarc should be empty 9275 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9276 # investigate it a little bit more. (MM) 9277 wlarc='${wl}' 9278 9279 # ancient GNU ld didn't support --whole-archive et. al. 9280 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9281 grep 'no-whole-archive' > /dev/null; then 9282 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9283 else 9284 whole_archive_flag_spec_CXX= 9285 fi 9286 else 9287 with_gnu_ld=no 9288 wlarc= 9289 9290 # A generic and very simple default shared library creation 9291 # command for GNU C++ for the case where it uses the native 9292 # linker, instead of GNU ld. If possible, this setting should 9293 # overridden to take advantage of the native linker features on 9294 # the platform it is being used on. 9295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9296 fi 9297 9298 # Commands to make compiler produce verbose output that lists 9299 # what "hidden" libraries, object files and flags are used when 9300 # linking a shared library. 9301 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9302 9303else 9304 GXX=no 9305 with_gnu_ld=no 9306 wlarc= 9307fi 9308 9309# PORTME: fill in a description of your system's C++ link characteristics 9310echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9311echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9312ld_shlibs_CXX=yes 9313case $host_os in 9314 aix3*) 9315 # FIXME: insert proper C++ library support 9316 ld_shlibs_CXX=no 9317 ;; 9318 aix4* | aix5*) 9319 if test "$host_cpu" = ia64; then 9320 # On IA64, the linker does run time linking by default, so we don't 9321 # have to do anything special. 9322 aix_use_runtimelinking=no 9323 exp_sym_flag='-Bexport' 9324 no_entry_flag="" 9325 else 9326 aix_use_runtimelinking=no 9327 9328 # Test if we are trying to use run time linking or normal 9329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9330 # need to do runtime linking. 9331 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9332 for ld_flag in $LDFLAGS; do 9333 case $ld_flag in 9334 *-brtl*) 9335 aix_use_runtimelinking=yes 9336 break 9337 ;; 9338 esac 9339 done 9340 esac 9341 9342 exp_sym_flag='-bexport' 9343 no_entry_flag='-bnoentry' 9344 fi 9345 9346 # When large executables or shared objects are built, AIX ld can 9347 # have problems creating the table of contents. If linking a library 9348 # or program results in "error TOC overflow" add -mminimal-toc to 9349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9351 9352 archive_cmds_CXX='' 9353 hardcode_direct_CXX=yes 9354 hardcode_libdir_separator_CXX=':' 9355 link_all_deplibs_CXX=yes 9356 9357 if test "$GXX" = yes; then 9358 case $host_os in aix4.012|aix4.012.*) 9359 # We only want to do this on AIX 4.2 and lower, the check 9360 # below for broken collect2 doesn't work under 4.3+ 9361 collect2name=`${CC} -print-prog-name=collect2` 9362 if test -f "$collect2name" && \ 9363 strings "$collect2name" | grep resolve_lib_name >/dev/null 9364 then 9365 # We have reworked collect2 9366 hardcode_direct_CXX=yes 9367 else 9368 # We have old collect2 9369 hardcode_direct_CXX=unsupported 9370 # It fails to find uninstalled libraries when the uninstalled 9371 # path is not listed in the libpath. Setting hardcode_minus_L 9372 # to unsupported forces relinking 9373 hardcode_minus_L_CXX=yes 9374 hardcode_libdir_flag_spec_CXX='-L$libdir' 9375 hardcode_libdir_separator_CXX= 9376 fi 9377 esac 9378 shared_flag='-shared' 9379 else 9380 # not using gcc 9381 if test "$host_cpu" = ia64; then 9382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9383 # chokes on -Wl,-G. The following line is correct: 9384 shared_flag='-G' 9385 else 9386 if test "$aix_use_runtimelinking" = yes; then 9387 shared_flag='${wl}-G' 9388 else 9389 shared_flag='${wl}-bM:SRE' 9390 fi 9391 fi 9392 fi 9393 9394 # It seems that -bexpall does not export symbols beginning with 9395 # underscore (_), so it is better to generate a list of symbols to export. 9396 always_export_symbols_CXX=yes 9397 if test "$aix_use_runtimelinking" = yes; then 9398 # Warning - without using the other runtime loading flags (-brtl), 9399 # -berok will link without error, but may produce a broken library. 9400 allow_undefined_flag_CXX='-berok' 9401 # Determine the default libpath from the value encoded in an empty executable. 9402 cat >conftest.$ac_ext <<_ACEOF 9403#line $LINENO "configure" 9404/* confdefs.h. */ 9405_ACEOF 9406cat confdefs.h >>conftest.$ac_ext 9407cat >>conftest.$ac_ext <<_ACEOF 9408/* end confdefs.h. */ 9409 9410int 9411main () 9412{ 9413 9414 ; 9415 return 0; 9416} 9417_ACEOF 9418rm -f conftest.$ac_objext conftest$ac_exeext 9419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9420 (eval $ac_link) 2>&5 9421 ac_status=$? 9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9423 (exit $ac_status); } && 9424 { ac_try='test -s conftest$ac_exeext' 9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9426 (eval $ac_try) 2>&5 9427 ac_status=$? 9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9429 (exit $ac_status); }; }; then 9430 9431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9432}'` 9433# Check for a 64-bit object if we didn't find anything. 9434if 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; } 9435}'`; fi 9436else 9437 echo "$as_me: failed program was:" >&5 9438sed 's/^/| /' conftest.$ac_ext >&5 9439 9440fi 9441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9442if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9443 9444 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9445 9446 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" 9447 else 9448 if test "$host_cpu" = ia64; then 9449 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9450 allow_undefined_flag_CXX="-z nodefs" 9451 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" 9452 else 9453 # Determine the default libpath from the value encoded in an empty executable. 9454 cat >conftest.$ac_ext <<_ACEOF 9455#line $LINENO "configure" 9456/* confdefs.h. */ 9457_ACEOF 9458cat confdefs.h >>conftest.$ac_ext 9459cat >>conftest.$ac_ext <<_ACEOF 9460/* end confdefs.h. */ 9461 9462int 9463main () 9464{ 9465 9466 ; 9467 return 0; 9468} 9469_ACEOF 9470rm -f conftest.$ac_objext conftest$ac_exeext 9471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9472 (eval $ac_link) 2>&5 9473 ac_status=$? 9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9475 (exit $ac_status); } && 9476 { ac_try='test -s conftest$ac_exeext' 9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9478 (eval $ac_try) 2>&5 9479 ac_status=$? 9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9481 (exit $ac_status); }; }; then 9482 9483aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9484}'` 9485# Check for a 64-bit object if we didn't find anything. 9486if 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; } 9487}'`; fi 9488else 9489 echo "$as_me: failed program was:" >&5 9490sed 's/^/| /' conftest.$ac_ext >&5 9491 9492fi 9493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9495 9496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9497 # Warning - without using the other run time loading flags, 9498 # -berok will link without error, but may produce a broken library. 9499 no_undefined_flag_CXX=' ${wl}-bernotok' 9500 allow_undefined_flag_CXX=' ${wl}-berok' 9501 # -bexpall does not export symbols beginning with underscore (_) 9502 always_export_symbols_CXX=yes 9503 # Exported symbols can be pulled into shared objects from archives 9504 whole_archive_flag_spec_CXX=' ' 9505 archive_cmds_need_lc_CXX=yes 9506 # This is similar to how AIX traditionally builds it's shared libraries. 9507 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' 9508 fi 9509 fi 9510 ;; 9511 chorus*) 9512 case $cc_basename in 9513 *) 9514 # FIXME: insert proper C++ library support 9515 ld_shlibs_CXX=no 9516 ;; 9517 esac 9518 ;; 9519 9520 cygwin* | mingw* | pw32*) 9521 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9522 # as there is no search path for DLLs. 9523 hardcode_libdir_flag_spec_CXX='-L$libdir' 9524 allow_undefined_flag_CXX=unsupported 9525 always_export_symbols_CXX=no 9526 enable_shared_with_static_runtimes_CXX=yes 9527 9528 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9529 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' 9530 # If the export-symbols file already is a .def file (1st line 9531 # is EXPORTS), use it as is; otherwise, prepend... 9532 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9533 cp $export_symbols $output_objdir/$soname.def; 9534 else 9535 echo EXPORTS > $output_objdir/$soname.def; 9536 cat $export_symbols >> $output_objdir/$soname.def; 9537 fi~ 9538 $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' 9539 else 9540 ld_shlibs_CXX=no 9541 fi 9542 ;; 9543 9544 darwin* | rhapsody*) 9545 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 9546 archive_cmds_need_lc_CXX=no 9547 case "$host_os" in 9548 rhapsody* | darwin1.[012]) 9549 allow_undefined_flag_CXX='-undefined suppress' 9550 ;; 9551 *) # Darwin 1.3 on 9552 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 9553 ;; 9554 esac 9555 lt_int_apple_cc_single_mod=no 9556 output_verbose_link_cmd='echo' 9557 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 9558 lt_int_apple_cc_single_mod=yes 9559 fi 9560 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9561 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9562 else 9563 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' 9564 fi 9565 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 9566 9567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9569 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}' 9570 else 9571 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 9572 fi 9573 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9574 hardcode_direct_CXX=no 9575 hardcode_automatic_CXX=yes 9576 hardcode_shlibpath_var_CXX=unsupported 9577 whole_archive_flag_spec_CXX='-all_load $convenience' 9578 link_all_deplibs_CXX=yes 9579 fi 9580 ;; 9581 9582 dgux*) 9583 case $cc_basename in 9584 ec++) 9585 # FIXME: insert proper C++ library support 9586 ld_shlibs_CXX=no 9587 ;; 9588 ghcx) 9589 # Green Hills C++ Compiler 9590 # FIXME: insert proper C++ library support 9591 ld_shlibs_CXX=no 9592 ;; 9593 *) 9594 # FIXME: insert proper C++ library support 9595 ld_shlibs_CXX=no 9596 ;; 9597 esac 9598 ;; 9599 freebsd12*) 9600 # C++ shared libraries reported to be fairly broken before switch to ELF 9601 ld_shlibs_CXX=no 9602 ;; 9603 freebsd-elf*) 9604 archive_cmds_need_lc_CXX=no 9605 ;; 9606 freebsd*) 9607 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9608 # conventions 9609 ld_shlibs_CXX=yes 9610 ;; 9611 gnu*) 9612 ;; 9613 hpux9*) 9614 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9615 hardcode_libdir_separator_CXX=: 9616 export_dynamic_flag_spec_CXX='${wl}-E' 9617 hardcode_direct_CXX=yes 9618 hardcode_minus_L_CXX=yes # Not in the search PATH, 9619 # but as the default 9620 # location of the library. 9621 9622 case $cc_basename in 9623 CC) 9624 # FIXME: insert proper C++ library support 9625 ld_shlibs_CXX=no 9626 ;; 9627 aCC) 9628 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' 9629 # Commands to make compiler produce verbose output that lists 9630 # what "hidden" libraries, object files and flags are used when 9631 # linking a shared library. 9632 # 9633 # There doesn't appear to be a way to prevent this compiler from 9634 # explicitly linking system object files so we need to strip them 9635 # from the output so that they don't get included in the library 9636 # dependencies. 9637 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 9638 ;; 9639 *) 9640 if test "$GXX" = yes; then 9641 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' 9642 else 9643 # FIXME: insert proper C++ library support 9644 ld_shlibs_CXX=no 9645 fi 9646 ;; 9647 esac 9648 ;; 9649 hpux10*|hpux11*) 9650 if test $with_gnu_ld = no; then 9651 case "$host_cpu" in 9652 hppa*64*) 9653 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9654 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 9655 hardcode_libdir_separator_CXX=: 9656 ;; 9657 ia64*) 9658 hardcode_libdir_flag_spec_CXX='-L$libdir' 9659 ;; 9660 *) 9661 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9662 hardcode_libdir_separator_CXX=: 9663 export_dynamic_flag_spec_CXX='${wl}-E' 9664 ;; 9665 esac 9666 fi 9667 case "$host_cpu" in 9668 hppa*64*) 9669 hardcode_direct_CXX=no 9670 hardcode_shlibpath_var_CXX=no 9671 ;; 9672 ia64*) 9673 hardcode_direct_CXX=no 9674 hardcode_shlibpath_var_CXX=no 9675 hardcode_minus_L_CXX=yes # Not in the search PATH, 9676 # but as the default 9677 # location of the library. 9678 ;; 9679 *) 9680 hardcode_direct_CXX=yes 9681 hardcode_minus_L_CXX=yes # Not in the search PATH, 9682 # but as the default 9683 # location of the library. 9684 ;; 9685 esac 9686 9687 case $cc_basename in 9688 CC) 9689 # FIXME: insert proper C++ library support 9690 ld_shlibs_CXX=no 9691 ;; 9692 aCC) 9693 case "$host_cpu" in 9694 hppa*64*|ia64*) 9695 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9696 ;; 9697 *) 9698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9699 ;; 9700 esac 9701 # Commands to make compiler produce verbose output that lists 9702 # what "hidden" libraries, object files and flags are used when 9703 # linking a shared library. 9704 # 9705 # There doesn't appear to be a way to prevent this compiler from 9706 # explicitly linking system object files so we need to strip them 9707 # from the output so that they don't get included in the library 9708 # dependencies. 9709 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' 9710 ;; 9711 *) 9712 if test "$GXX" = yes; then 9713 if test $with_gnu_ld = no; then 9714 case "$host_cpu" in 9715 ia64*|hppa*64*) 9716 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9717 ;; 9718 *) 9719 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' 9720 ;; 9721 esac 9722 fi 9723 else 9724 # FIXME: insert proper C++ library support 9725 ld_shlibs_CXX=no 9726 fi 9727 ;; 9728 esac 9729 ;; 9730 irix5* | irix6*) 9731 case $cc_basename in 9732 CC) 9733 # SGI C++ 9734 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' 9735 9736 # Archives containing C++ object files must be created using 9737 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 9738 # necessary to make sure instantiated templates are included 9739 # in the archive. 9740 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 9741 ;; 9742 *) 9743 if test "$GXX" = yes; then 9744 if test "$with_gnu_ld" = no; then 9745 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' 9746 else 9747 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' 9748 fi 9749 fi 9750 link_all_deplibs_CXX=yes 9751 ;; 9752 esac 9753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9754 hardcode_libdir_separator_CXX=: 9755 ;; 9756 linux*) 9757 case $cc_basename in 9758 KCC) 9759 # Kuck and Associates, Inc. (KAI) C++ Compiler 9760 9761 # KCC will only create a shared library if the output file 9762 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9763 # to its proper name (with version) after linking. 9764 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' 9765 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' 9766 # Commands to make compiler produce verbose output that lists 9767 # what "hidden" libraries, object files and flags are used when 9768 # linking a shared library. 9769 # 9770 # There doesn't appear to be a way to prevent this compiler from 9771 # explicitly linking system object files so we need to strip them 9772 # from the output so that they don't get included in the library 9773 # dependencies. 9774 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' 9775 9776 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 9777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9778 9779 # Archives containing C++ object files must be created using 9780 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9781 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9782 ;; 9783 icpc) 9784 # Intel C++ 9785 with_gnu_ld=yes 9786 archive_cmds_need_lc_CXX=no 9787 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9788 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' 9789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9791 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9792 ;; 9793 cxx) 9794 # Compaq C++ 9795 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9796 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' 9797 9798 runpath_var=LD_RUN_PATH 9799 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9800 hardcode_libdir_separator_CXX=: 9801 9802 # Commands to make compiler produce verbose output that lists 9803 # what "hidden" libraries, object files and flags are used when 9804 # linking a shared library. 9805 # 9806 # There doesn't appear to be a way to prevent this compiler from 9807 # explicitly linking system object files so we need to strip them 9808 # from the output so that they don't get included in the library 9809 # dependencies. 9810 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' 9811 ;; 9812 esac 9813 ;; 9814 lynxos*) 9815 # FIXME: insert proper C++ library support 9816 ld_shlibs_CXX=no 9817 ;; 9818 m88k*) 9819 # FIXME: insert proper C++ library support 9820 ld_shlibs_CXX=no 9821 ;; 9822 mvs*) 9823 case $cc_basename in 9824 cxx) 9825 # FIXME: insert proper C++ library support 9826 ld_shlibs_CXX=no 9827 ;; 9828 *) 9829 # FIXME: insert proper C++ library support 9830 ld_shlibs_CXX=no 9831 ;; 9832 esac 9833 ;; 9834 netbsd*) 9835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9836 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 9837 wlarc= 9838 hardcode_libdir_flag_spec_CXX='-R$libdir' 9839 hardcode_direct_CXX=yes 9840 hardcode_shlibpath_var_CXX=no 9841 fi 9842 # Workaround some broken pre-1.5 toolchains 9843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 9844 ;; 9845 osf3*) 9846 case $cc_basename in 9847 KCC) 9848 # Kuck and Associates, Inc. (KAI) C++ Compiler 9849 9850 # KCC will only create a shared library if the output file 9851 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9852 # to its proper name (with version) after linking. 9853 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' 9854 9855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9856 hardcode_libdir_separator_CXX=: 9857 9858 # Archives containing C++ object files must be created using 9859 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9861 9862 ;; 9863 RCC) 9864 # Rational C++ 2.4.1 9865 # FIXME: insert proper C++ library support 9866 ld_shlibs_CXX=no 9867 ;; 9868 cxx) 9869 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9870 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' 9871 9872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9873 hardcode_libdir_separator_CXX=: 9874 9875 # Commands to make compiler produce verbose output that lists 9876 # what "hidden" libraries, object files and flags are used when 9877 # linking a shared library. 9878 # 9879 # There doesn't appear to be a way to prevent this compiler from 9880 # explicitly linking system object files so we need to strip them 9881 # from the output so that they don't get included in the library 9882 # dependencies. 9883 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' 9884 ;; 9885 *) 9886 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9887 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9888 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' 9889 9890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9891 hardcode_libdir_separator_CXX=: 9892 9893 # Commands to make compiler produce verbose output that lists 9894 # what "hidden" libraries, object files and flags are used when 9895 # linking a shared library. 9896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9897 9898 else 9899 # FIXME: insert proper C++ library support 9900 ld_shlibs_CXX=no 9901 fi 9902 ;; 9903 esac 9904 ;; 9905 osf4* | osf5*) 9906 case $cc_basename in 9907 KCC) 9908 # Kuck and Associates, Inc. (KAI) C++ Compiler 9909 9910 # KCC will only create a shared library if the output file 9911 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9912 # to its proper name (with version) after linking. 9913 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' 9914 9915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9916 hardcode_libdir_separator_CXX=: 9917 9918 # Archives containing C++ object files must be created using 9919 # the KAI C++ compiler. 9920 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 9921 ;; 9922 RCC) 9923 # Rational C++ 2.4.1 9924 # FIXME: insert proper C++ library support 9925 ld_shlibs_CXX=no 9926 ;; 9927 cxx) 9928 allow_undefined_flag_CXX=' -expect_unresolved \*' 9929 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' 9930 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 9931 echo "-hidden">> $lib.exp~ 9932 $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~ 9933 $rm $lib.exp' 9934 9935 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9936 hardcode_libdir_separator_CXX=: 9937 9938 # Commands to make compiler produce verbose output that lists 9939 # what "hidden" libraries, object files and flags are used when 9940 # linking a shared library. 9941 # 9942 # There doesn't appear to be a way to prevent this compiler from 9943 # explicitly linking system object files so we need to strip them 9944 # from the output so that they don't get included in the library 9945 # dependencies. 9946 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' 9947 ;; 9948 *) 9949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9951 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' 9952 9953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9954 hardcode_libdir_separator_CXX=: 9955 9956 # Commands to make compiler produce verbose output that lists 9957 # what "hidden" libraries, object files and flags are used when 9958 # linking a shared library. 9959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9960 9961 else 9962 # FIXME: insert proper C++ library support 9963 ld_shlibs_CXX=no 9964 fi 9965 ;; 9966 esac 9967 ;; 9968 psos*) 9969 # FIXME: insert proper C++ library support 9970 ld_shlibs_CXX=no 9971 ;; 9972 sco*) 9973 archive_cmds_need_lc_CXX=no 9974 case $cc_basename in 9975 CC) 9976 # FIXME: insert proper C++ library support 9977 ld_shlibs_CXX=no 9978 ;; 9979 *) 9980 # FIXME: insert proper C++ library support 9981 ld_shlibs_CXX=no 9982 ;; 9983 esac 9984 ;; 9985 sunos4*) 9986 case $cc_basename in 9987 CC) 9988 # Sun C++ 4.x 9989 # FIXME: insert proper C++ library support 9990 ld_shlibs_CXX=no 9991 ;; 9992 lcc) 9993 # Lucid 9994 # FIXME: insert proper C++ library support 9995 ld_shlibs_CXX=no 9996 ;; 9997 *) 9998 # FIXME: insert proper C++ library support 9999 ld_shlibs_CXX=no 10000 ;; 10001 esac 10002 ;; 10003 solaris*) 10004 case $cc_basename in 10005 CC) 10006 # Sun C++ 4.2, 5.x and Centerline C++ 10007 no_undefined_flag_CXX=' -zdefs' 10008 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10009 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10010 $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' 10011 10012 hardcode_libdir_flag_spec_CXX='-R$libdir' 10013 hardcode_shlibpath_var_CXX=no 10014 case $host_os in 10015 solaris2.0-5 | solaris2.0-5.*) ;; 10016 *) 10017 # The C++ compiler is used as linker so we must use $wl 10018 # flag to pass the commands to the underlying system 10019 # linker. 10020 # Supported since Solaris 2.6 (maybe 2.5.1?) 10021 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10022 ;; 10023 esac 10024 link_all_deplibs_CXX=yes 10025 10026 # Commands to make compiler produce verbose output that lists 10027 # what "hidden" libraries, object files and flags are used when 10028 # linking a shared library. 10029 # 10030 # There doesn't appear to be a way to prevent this compiler from 10031 # explicitly linking system object files so we need to strip them 10032 # from the output so that they don't get included in the library 10033 # dependencies. 10034 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' 10035 10036 # Archives containing C++ object files must be created using 10037 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10038 # necessary to make sure instantiated templates are included 10039 # in the archive. 10040 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10041 ;; 10042 gcx) 10043 # Green Hills C++ Compiler 10044 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10045 10046 # The C++ compiler must be used to create the archive. 10047 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10048 ;; 10049 *) 10050 # GNU C++ compiler with Solaris linker 10051 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10052 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10053 if $CC --version | grep -v '^2\.7' > /dev/null; then 10054 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10055 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10056 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10057 10058 # Commands to make compiler produce verbose output that lists 10059 # what "hidden" libraries, object files and flags are used when 10060 # linking a shared library. 10061 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10062 else 10063 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10064 # platform. 10065 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10066 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10067 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10068 10069 # Commands to make compiler produce verbose output that lists 10070 # what "hidden" libraries, object files and flags are used when 10071 # linking a shared library. 10072 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10073 fi 10074 10075 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10076 fi 10077 ;; 10078 esac 10079 ;; 10080 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10081 archive_cmds_need_lc_CXX=no 10082 ;; 10083 tandem*) 10084 case $cc_basename in 10085 NCC) 10086 # NonStop-UX NCC 3.20 10087 # FIXME: insert proper C++ library support 10088 ld_shlibs_CXX=no 10089 ;; 10090 *) 10091 # FIXME: insert proper C++ library support 10092 ld_shlibs_CXX=no 10093 ;; 10094 esac 10095 ;; 10096 vxworks*) 10097 # FIXME: insert proper C++ library support 10098 ld_shlibs_CXX=no 10099 ;; 10100 *) 10101 # FIXME: insert proper C++ library support 10102 ld_shlibs_CXX=no 10103 ;; 10104esac 10105echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10106echo "${ECHO_T}$ld_shlibs_CXX" >&6 10107test "$ld_shlibs_CXX" = no && can_build_shared=no 10108 10109GCC_CXX="$GXX" 10110LD_CXX="$LD" 10111 10112 10113cat > conftest.$ac_ext <<EOF 10114class Foo 10115{ 10116public: 10117 Foo (void) { a = 0; } 10118private: 10119 int a; 10120}; 10121EOF 10122 10123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10124 (eval $ac_compile) 2>&5 10125 ac_status=$? 10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10127 (exit $ac_status); }; then 10128 # Parse the compiler output and extract the necessary 10129 # objects, libraries and library flags. 10130 10131 # Sentinel used to keep track of whether or not we are before 10132 # the conftest object file. 10133 pre_test_object_deps_done=no 10134 10135 # The `*' in the case matches for architectures that use `case' in 10136 # $output_verbose_cmd can trigger glob expansion during the loop 10137 # eval without this substitution. 10138 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10139 10140 for p in `eval $output_verbose_link_cmd`; do 10141 case $p in 10142 10143 -L* | -R* | -l*) 10144 # Some compilers place space between "-{L,R}" and the path. 10145 # Remove the space. 10146 if test $p = "-L" \ 10147 || test $p = "-R"; then 10148 prev=$p 10149 continue 10150 else 10151 prev= 10152 fi 10153 10154 if test "$pre_test_object_deps_done" = no; then 10155 case $p in 10156 -L* | -R*) 10157 # Internal compiler library paths should come after those 10158 # provided the user. The postdeps already come after the 10159 # user supplied libs so there is no need to process them. 10160 if test -z "$compiler_lib_search_path_CXX"; then 10161 compiler_lib_search_path_CXX="${prev}${p}" 10162 else 10163 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10164 fi 10165 ;; 10166 # The "-l" case would never come before the object being 10167 # linked, so don't bother handling this case. 10168 esac 10169 else 10170 if test -z "$postdeps_CXX"; then 10171 postdeps_CXX="${prev}${p}" 10172 else 10173 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10174 fi 10175 fi 10176 ;; 10177 10178 *.$objext) 10179 # This assumes that the test object file only shows up 10180 # once in the compiler output. 10181 if test "$p" = "conftest.$objext"; then 10182 pre_test_object_deps_done=yes 10183 continue 10184 fi 10185 10186 if test "$pre_test_object_deps_done" = no; then 10187 if test -z "$predep_objects_CXX"; then 10188 predep_objects_CXX="$p" 10189 else 10190 predep_objects_CXX="$predep_objects_CXX $p" 10191 fi 10192 else 10193 if test -z "$postdep_objects_CXX"; then 10194 postdep_objects_CXX="$p" 10195 else 10196 postdep_objects_CXX="$postdep_objects_CXX $p" 10197 fi 10198 fi 10199 ;; 10200 10201 *) ;; # Ignore the rest. 10202 10203 esac 10204 done 10205 10206 # Clean up. 10207 rm -f a.out a.exe 10208else 10209 echo "libtool.m4: error: problem compiling CXX test program" 10210fi 10211 10212$rm -f confest.$objext 10213 10214case " $postdeps_CXX " in 10215*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10216esac 10217 10218lt_prog_compiler_wl_CXX= 10219lt_prog_compiler_pic_CXX= 10220lt_prog_compiler_static_CXX= 10221 10222echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10223echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10224 10225 # C++ specific cases for pic, static, wl, etc. 10226 if test "$GXX" = yes; then 10227 lt_prog_compiler_wl_CXX='-Wl,' 10228 lt_prog_compiler_static_CXX='-static' 10229 10230 case $host_os in 10231 aix*) 10232 # All AIX code is PIC. 10233 if test "$host_cpu" = ia64; then 10234 # AIX 5 now supports IA64 processor 10235 lt_prog_compiler_static_CXX='-Bstatic' 10236 fi 10237 ;; 10238 amigaos*) 10239 # FIXME: we need at least 68020 code to build shared libraries, but 10240 # adding the `-m68020' flag to GCC prevents building anything better, 10241 # like `-m68040'. 10242 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10243 ;; 10244 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10245 # PIC is the default for these OSes. 10246 ;; 10247 mingw* | os2* | pw32*) 10248 # This hack is so that the source file can tell whether it is being 10249 # built for inclusion in a dll (and should export symbols for example). 10250 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10251 ;; 10252 darwin* | rhapsody*) 10253 # PIC is the default on this platform 10254 # Common symbols not allowed in MH_DYLIB files 10255 lt_prog_compiler_pic_CXX='-fno-common' 10256 ;; 10257 *djgpp*) 10258 # DJGPP does not support shared libraries at all 10259 lt_prog_compiler_pic_CXX= 10260 ;; 10261 sysv4*MP*) 10262 if test -d /usr/nec; then 10263 lt_prog_compiler_pic_CXX=-Kconform_pic 10264 fi 10265 ;; 10266 hpux*) 10267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10268 # not for PA HP-UX. 10269 case "$host_cpu" in 10270 hppa*64*|ia64*) 10271 ;; 10272 *) 10273 lt_prog_compiler_pic_CXX='-fPIC' 10274 ;; 10275 esac 10276 ;; 10277 *) 10278 lt_prog_compiler_pic_CXX='-fPIC' 10279 ;; 10280 esac 10281 else 10282 case $host_os in 10283 aix4* | aix5*) 10284 # All AIX code is PIC. 10285 if test "$host_cpu" = ia64; then 10286 # AIX 5 now supports IA64 processor 10287 lt_prog_compiler_static_CXX='-Bstatic' 10288 else 10289 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10290 fi 10291 ;; 10292 chorus*) 10293 case $cc_basename in 10294 cxch68) 10295 # Green Hills C++ Compiler 10296 # _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" 10297 ;; 10298 esac 10299 ;; 10300 dgux*) 10301 case $cc_basename in 10302 ec++) 10303 lt_prog_compiler_pic_CXX='-KPIC' 10304 ;; 10305 ghcx) 10306 # Green Hills C++ Compiler 10307 lt_prog_compiler_pic_CXX='-pic' 10308 ;; 10309 *) 10310 ;; 10311 esac 10312 ;; 10313 freebsd*) 10314 # FreeBSD uses GNU C++ 10315 ;; 10316 hpux9* | hpux10* | hpux11*) 10317 case $cc_basename in 10318 CC) 10319 lt_prog_compiler_wl_CXX='-Wl,' 10320 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10321 if test "$host_cpu" != ia64; then 10322 lt_prog_compiler_pic_CXX='+Z' 10323 fi 10324 ;; 10325 aCC) 10326 lt_prog_compiler_wl_CXX='-Wl,' 10327 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10328 case "$host_cpu" in 10329 hppa*64*|ia64*) 10330 # +Z the default 10331 ;; 10332 *) 10333 lt_prog_compiler_pic_CXX='+Z' 10334 ;; 10335 esac 10336 ;; 10337 *) 10338 ;; 10339 esac 10340 ;; 10341 irix5* | irix6* | nonstopux*) 10342 case $cc_basename in 10343 CC) 10344 lt_prog_compiler_wl_CXX='-Wl,' 10345 lt_prog_compiler_static_CXX='-non_shared' 10346 # CC pic flag -KPIC is the default. 10347 ;; 10348 *) 10349 ;; 10350 esac 10351 ;; 10352 linux*) 10353 case $cc_basename in 10354 KCC) 10355 # KAI C++ Compiler 10356 lt_prog_compiler_wl_CXX='--backend -Wl,' 10357 lt_prog_compiler_pic_CXX='-fPIC' 10358 ;; 10359 icpc) 10360 # Intel C++ 10361 lt_prog_compiler_wl_CXX='-Wl,' 10362 lt_prog_compiler_pic_CXX='-KPIC' 10363 lt_prog_compiler_static_CXX='-static' 10364 ;; 10365 cxx) 10366 # Compaq C++ 10367 # Make sure the PIC flag is empty. It appears that all Alpha 10368 # Linux and Compaq Tru64 Unix objects are PIC. 10369 lt_prog_compiler_pic_CXX= 10370 lt_prog_compiler_static_CXX='-non_shared' 10371 ;; 10372 *) 10373 ;; 10374 esac 10375 ;; 10376 lynxos*) 10377 ;; 10378 m88k*) 10379 ;; 10380 mvs*) 10381 case $cc_basename in 10382 cxx) 10383 lt_prog_compiler_pic_CXX='-W c,exportall' 10384 ;; 10385 *) 10386 ;; 10387 esac 10388 ;; 10389 netbsd*) 10390 ;; 10391 osf3* | osf4* | osf5*) 10392 case $cc_basename in 10393 KCC) 10394 lt_prog_compiler_wl_CXX='--backend -Wl,' 10395 ;; 10396 RCC) 10397 # Rational C++ 2.4.1 10398 lt_prog_compiler_pic_CXX='-pic' 10399 ;; 10400 cxx) 10401 # Digital/Compaq C++ 10402 lt_prog_compiler_wl_CXX='-Wl,' 10403 # Make sure the PIC flag is empty. It appears that all Alpha 10404 # Linux and Compaq Tru64 Unix objects are PIC. 10405 lt_prog_compiler_pic_CXX= 10406 lt_prog_compiler_static_CXX='-non_shared' 10407 ;; 10408 *) 10409 ;; 10410 esac 10411 ;; 10412 psos*) 10413 ;; 10414 sco*) 10415 case $cc_basename in 10416 CC) 10417 lt_prog_compiler_pic_CXX='-fPIC' 10418 ;; 10419 *) 10420 ;; 10421 esac 10422 ;; 10423 solaris*) 10424 case $cc_basename in 10425 CC) 10426 # Sun C++ 4.2, 5.x and Centerline C++ 10427 lt_prog_compiler_pic_CXX='-KPIC' 10428 lt_prog_compiler_static_CXX='-Bstatic' 10429 lt_prog_compiler_wl_CXX='-Qoption ld ' 10430 ;; 10431 gcx) 10432 # Green Hills C++ Compiler 10433 lt_prog_compiler_pic_CXX='-PIC' 10434 ;; 10435 *) 10436 ;; 10437 esac 10438 ;; 10439 sunos4*) 10440 case $cc_basename in 10441 CC) 10442 # Sun C++ 4.x 10443 lt_prog_compiler_pic_CXX='-pic' 10444 lt_prog_compiler_static_CXX='-Bstatic' 10445 ;; 10446 lcc) 10447 # Lucid 10448 lt_prog_compiler_pic_CXX='-pic' 10449 ;; 10450 *) 10451 ;; 10452 esac 10453 ;; 10454 tandem*) 10455 case $cc_basename in 10456 NCC) 10457 # NonStop-UX NCC 3.20 10458 lt_prog_compiler_pic_CXX='-KPIC' 10459 ;; 10460 *) 10461 ;; 10462 esac 10463 ;; 10464 unixware*) 10465 ;; 10466 vxworks*) 10467 ;; 10468 *) 10469 lt_prog_compiler_can_build_shared_CXX=no 10470 ;; 10471 esac 10472 fi 10473 10474echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10475echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10476 10477# 10478# Check to make sure the PIC flag actually works. 10479# 10480if test -n "$lt_prog_compiler_pic_CXX"; then 10481 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10482echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10483if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10484 echo $ECHO_N "(cached) $ECHO_C" >&6 10485else 10486 lt_prog_compiler_pic_works_CXX=no 10487 ac_outfile=conftest.$ac_objext 10488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10489 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10490 # Insert the option either (1) after the last *FLAGS variable, or 10491 # (2) before a word containing "conftest.", or (3) at the end. 10492 # Note that $ac_compile itself does not contain backslashes and begins 10493 # with a dollar sign (not a hyphen), so the echo should work correctly. 10494 # The option is referenced via a variable to avoid confusing sed. 10495 lt_compile=`echo "$ac_compile" | $SED \ 10496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10498 -e 's:$: $lt_compiler_flag:'` 10499 (eval echo "\"\$as_me:10499: $lt_compile\"" >&5) 10500 (eval "$lt_compile" 2>conftest.err) 10501 ac_status=$? 10502 cat conftest.err >&5 10503 echo "$as_me:10503: \$? = $ac_status" >&5 10504 if (exit $ac_status) && test -s "$ac_outfile"; then 10505 # The compiler can only warn and ignore the option if not recognized 10506 # So say no if there are warnings 10507 if test ! -s conftest.err; then 10508 lt_prog_compiler_pic_works_CXX=yes 10509 fi 10510 fi 10511 $rm conftest* 10512 10513fi 10514echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10515echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10516 10517if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10518 case $lt_prog_compiler_pic_CXX in 10519 "" | " "*) ;; 10520 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10521 esac 10522else 10523 lt_prog_compiler_pic_CXX= 10524 lt_prog_compiler_can_build_shared_CXX=no 10525fi 10526 10527fi 10528case "$host_os" in 10529 # For platforms which do not support PIC, -DPIC is meaningless: 10530 *djgpp*) 10531 lt_prog_compiler_pic_CXX= 10532 ;; 10533 *) 10534 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10535 ;; 10536esac 10537 10538echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10539echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10540if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10541 echo $ECHO_N "(cached) $ECHO_C" >&6 10542else 10543 lt_cv_prog_compiler_c_o_CXX=no 10544 $rm -r conftest 2>/dev/null 10545 mkdir conftest 10546 cd conftest 10547 mkdir out 10548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10549 10550 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 10551 # that will create temporary files in the current directory regardless of 10552 # the output directory. Thus, making CWD read-only will cause this test 10553 # to fail, enabling locking or at least warning the user not to do parallel 10554 # builds. 10555 chmod -w . 10556 10557 lt_compiler_flag="-o out/conftest2.$ac_objext" 10558 # Insert the option either (1) after the last *FLAGS variable, or 10559 # (2) before a word containing "conftest.", or (3) at the end. 10560 # Note that $ac_compile itself does not contain backslashes and begins 10561 # with a dollar sign (not a hyphen), so the echo should work correctly. 10562 lt_compile=`echo "$ac_compile" | $SED \ 10563 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10565 -e 's:$: $lt_compiler_flag:'` 10566 (eval echo "\"\$as_me:10566: $lt_compile\"" >&5) 10567 (eval "$lt_compile" 2>out/conftest.err) 10568 ac_status=$? 10569 cat out/conftest.err >&5 10570 echo "$as_me:10570: \$? = $ac_status" >&5 10571 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10572 then 10573 # The compiler can only warn and ignore the option if not recognized 10574 # So say no if there are warnings 10575 if test ! -s out/conftest.err; then 10576 lt_cv_prog_compiler_c_o_CXX=yes 10577 fi 10578 fi 10579 chmod u+w . 10580 $rm conftest* out/* 10581 rmdir out 10582 cd .. 10583 rmdir conftest 10584 $rm conftest* 10585 10586fi 10587echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 10588echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 10589 10590 10591hard_links="nottested" 10592if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 10593 # do not overwrite the value of need_locks provided by the user 10594 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10595echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10596 hard_links=yes 10597 $rm conftest* 10598 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10599 touch conftest.a 10600 ln conftest.a conftest.b 2>&5 || hard_links=no 10601 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10602 echo "$as_me:$LINENO: result: $hard_links" >&5 10603echo "${ECHO_T}$hard_links" >&6 10604 if test "$hard_links" = no; then 10605 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10606echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10607 need_locks=warn 10608 fi 10609else 10610 need_locks=no 10611fi 10612 10613echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10614echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10615 10616 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10617 case $host_os in 10618 aix4* | aix5*) 10619 # If we're using GNU nm, then we don't want the "-C" option. 10620 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10621 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10622 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' 10623 else 10624 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' 10625 fi 10626 ;; 10627 pw32*) 10628 export_symbols_cmds_CXX="$ltdll_cmds" 10629 ;; 10630 cygwin* | mingw*) 10631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10632 ;; 10633 *) 10634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10635 ;; 10636 esac 10637 10638echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10639echo "${ECHO_T}$ld_shlibs_CXX" >&6 10640test "$ld_shlibs_CXX" = no && can_build_shared=no 10641 10642variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10643if test "$GCC" = yes; then 10644 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10645fi 10646 10647# 10648# Do we need to explicitly link libc? 10649# 10650case "x$archive_cmds_need_lc_CXX" in 10651x|xyes) 10652 # Assume -lc should be added 10653 archive_cmds_need_lc_CXX=yes 10654 10655 if test "$enable_shared" = yes && test "$GCC" = yes; then 10656 case $archive_cmds_CXX in 10657 *'~'*) 10658 # FIXME: we may have to deal with multi-command sequences. 10659 ;; 10660 '$CC '*) 10661 # Test whether the compiler implicitly links with -lc since on some 10662 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10663 # to ld, don't add -lc before -lgcc. 10664 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10665echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 10666 $rm conftest* 10667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10668 10669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10670 (eval $ac_compile) 2>&5 10671 ac_status=$? 10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10673 (exit $ac_status); } 2>conftest.err; then 10674 soname=conftest 10675 lib=conftest 10676 libobjs=conftest.$ac_objext 10677 deplibs= 10678 wl=$lt_prog_compiler_wl_CXX 10679 compiler_flags=-v 10680 linker_flags=-v 10681 verstring= 10682 output_objdir=. 10683 libname=conftest 10684 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 10685 allow_undefined_flag_CXX= 10686 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10687 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10688 ac_status=$? 10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10690 (exit $ac_status); } 10691 then 10692 archive_cmds_need_lc_CXX=no 10693 else 10694 archive_cmds_need_lc_CXX=yes 10695 fi 10696 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 10697 else 10698 cat conftest.err 1>&5 10699 fi 10700 $rm conftest* 10701 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 10702echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 10703 ;; 10704 esac 10705 fi 10706 ;; 10707esac 10708 10709echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10710echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10711hardcode_action_CXX= 10712if test -n "$hardcode_libdir_flag_spec_CXX" || \ 10713 test -n "$runpath_var CXX" || \ 10714 test "X$hardcode_automatic_CXX"="Xyes" ; then 10715 10716 # We can hardcode non-existant directories. 10717 if test "$hardcode_direct_CXX" != no && 10718 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10719 # have to relink, otherwise we might link with an installed library 10720 # when we should be linking with a yet-to-be-installed one 10721 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 10722 test "$hardcode_minus_L_CXX" != no; then 10723 # Linking always hardcodes the temporary library directory. 10724 hardcode_action_CXX=relink 10725 else 10726 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10727 hardcode_action_CXX=immediate 10728 fi 10729else 10730 # We cannot hardcode anything, or else we can only hardcode existing 10731 # directories. 10732 hardcode_action_CXX=unsupported 10733fi 10734echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 10735echo "${ECHO_T}$hardcode_action_CXX" >&6 10736 10737if test "$hardcode_action_CXX" = relink; then 10738 # Fast installation is not supported 10739 enable_fast_install=no 10740elif test "$shlibpath_overrides_runpath" = yes || 10741 test "$enable_shared" = no; then 10742 # Fast installation is not necessary 10743 enable_fast_install=needless 10744fi 10745 10746striplib= 10747old_striplib= 10748echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10749echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10750if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10751 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10752 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10753 echo "$as_me:$LINENO: result: yes" >&5 10754echo "${ECHO_T}yes" >&6 10755else 10756# FIXME - insert some real tests, host_os isn't really good enough 10757 case $host_os in 10758 darwin*) 10759 if test -n "$STRIP" ; then 10760 striplib="$STRIP -x" 10761 echo "$as_me:$LINENO: result: yes" >&5 10762echo "${ECHO_T}yes" >&6 10763 else 10764 echo "$as_me:$LINENO: result: no" >&5 10765echo "${ECHO_T}no" >&6 10766fi 10767 ;; 10768 *) 10769 echo "$as_me:$LINENO: result: no" >&5 10770echo "${ECHO_T}no" >&6 10771 ;; 10772 esac 10773fi 10774 10775echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10776echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 10777library_names_spec= 10778libname_spec='lib$name' 10779soname_spec= 10780shrext=".so" 10781postinstall_cmds= 10782postuninstall_cmds= 10783finish_cmds= 10784finish_eval= 10785shlibpath_var= 10786shlibpath_overrides_runpath=unknown 10787version_type=none 10788dynamic_linker="$host_os ld.so" 10789sys_lib_dlsearch_path_spec="/lib /usr/lib" 10790if test "$GCC" = yes; then 10791 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10792 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10793 # if the path contains ";" then we assume it to be the separator 10794 # otherwise default to the standard path separator (i.e. ":") - it is 10795 # assumed that no part of a normal pathname contains ";" but that should 10796 # okay in the real world where ";" in dirpaths is itself problematic. 10797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10798 else 10799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10800 fi 10801else 10802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10803fi 10804need_lib_prefix=unknown 10805hardcode_into_libs=no 10806 10807# when you set need_version to no, make sure it does not cause -set_version 10808# flags to be left without arguments 10809need_version=unknown 10810 10811case $host_os in 10812aix3*) 10813 version_type=linux 10814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10815 shlibpath_var=LIBPATH 10816 10817 # AIX 3 has no versioning support, so we append a major version to the name. 10818 soname_spec='${libname}${release}${shared_ext}$major' 10819 ;; 10820 10821aix4* | aix5*) 10822 version_type=linux 10823 need_lib_prefix=no 10824 need_version=no 10825 hardcode_into_libs=yes 10826 if test "$host_cpu" = ia64; then 10827 # AIX 5 supports IA64 10828 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10829 shlibpath_var=LD_LIBRARY_PATH 10830 else 10831 # With GCC up to 2.95.x, collect2 would create an import file 10832 # for dependence libraries. The import file would start with 10833 # the line `#! .'. This would cause the generated library to 10834 # depend on `.', always an invalid library. This was fixed in 10835 # development snapshots of GCC prior to 3.0. 10836 case $host_os in 10837 aix4 | aix4.[01] | aix4.[01].*) 10838 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10839 echo ' yes ' 10840 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10841 : 10842 else 10843 can_build_shared=no 10844 fi 10845 ;; 10846 esac 10847 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10848 # soname into executable. Probably we can add versioning support to 10849 # collect2, so additional links can be useful in future. 10850 if test "$aix_use_runtimelinking" = yes; then 10851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10852 # instead of lib<name>.a to let people know that these are not 10853 # typical AIX shared libraries. 10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10855 else 10856 # We preserve .a as extension for shared libraries through AIX4.2 10857 # and later when we are not doing run time linking. 10858 library_names_spec='${libname}${release}.a $libname.a' 10859 soname_spec='${libname}${release}${shared_ext}$major' 10860 fi 10861 shlibpath_var=LIBPATH 10862 fi 10863 ;; 10864 10865amigaos*) 10866 library_names_spec='$libname.ixlibrary $libname.a' 10867 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10868 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' 10869 ;; 10870 10871beos*) 10872 library_names_spec='${libname}${shared_ext}' 10873 dynamic_linker="$host_os ld.so" 10874 shlibpath_var=LIBRARY_PATH 10875 ;; 10876 10877bsdi4*) 10878 version_type=linux 10879 need_version=no 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10881 soname_spec='${libname}${release}${shared_ext}$major' 10882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10883 shlibpath_var=LD_LIBRARY_PATH 10884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10886 # the default ld.so.conf also contains /usr/contrib/lib and 10887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10888 # libtool to hard-code these into programs 10889 ;; 10890 10891cygwin* | mingw* | pw32*) 10892 version_type=windows 10893 shrext=".dll" 10894 need_version=no 10895 need_lib_prefix=no 10896 10897 case $GCC,$host_os in 10898 yes,cygwin* | yes,mingw* | yes,pw32*) 10899 library_names_spec='$libname.dll.a' 10900 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10901 postinstall_cmds='base_file=`basename \${file}`~ 10902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10903 dldir=$destdir/`dirname \$dlpath`~ 10904 test -d \$dldir || mkdir -p \$dldir~ 10905 $install_prog $dir/$dlname \$dldir/$dlname' 10906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10907 dlpath=$dir/\$dldll~ 10908 $rm \$dlpath' 10909 shlibpath_overrides_runpath=yes 10910 10911 case $host_os in 10912 cygwin*) 10913 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10915 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 10916 ;; 10917 mingw*) 10918 # MinGW DLLs use traditional 'lib' prefix 10919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10921 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10922 # It is most probably a Windows format PATH printed by 10923 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10924 # path with ; separators, and with drive letters. We can handle the 10925 # drive letters (cygwin fileutils understands them), so leave them, 10926 # especially as we might pass files found there to a mingw objdump, 10927 # which wouldn't understand a cygwinified path. Ahh. 10928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10929 else 10930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10931 fi 10932 ;; 10933 pw32*) 10934 # pw32 DLLs use 'pw' prefix rather than 'lib' 10935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 10936 ;; 10937 esac 10938 ;; 10939 10940 *) 10941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10942 ;; 10943 esac 10944 dynamic_linker='Win32 ld.exe' 10945 # FIXME: first we should search . and the directory the executable is in 10946 shlibpath_var=PATH 10947 ;; 10948 10949darwin* | rhapsody*) 10950 dynamic_linker="$host_os dyld" 10951 version_type=darwin 10952 need_lib_prefix=no 10953 need_version=no 10954 # FIXME: Relying on posixy $() will cause problems for 10955 # cross-compilation, but unfortunately the echo tests do not 10956 # yet detect zsh echo's removal of \ escapes. 10957 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10958 soname_spec='${libname}${release}${major}$shared_ext' 10959 shlibpath_overrides_runpath=yes 10960 shlibpath_var=DYLD_LIBRARY_PATH 10961 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 10962 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10963 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 10964 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"` 10965 fi 10966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10967 ;; 10968 10969dgux*) 10970 version_type=linux 10971 need_lib_prefix=no 10972 need_version=no 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10974 soname_spec='${libname}${release}${shared_ext}$major' 10975 shlibpath_var=LD_LIBRARY_PATH 10976 ;; 10977 10978freebsd1*) 10979 dynamic_linker=no 10980 ;; 10981 10982freebsd*) 10983 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 10984 version_type=freebsd-$objformat 10985 case $version_type in 10986 freebsd-elf*) 10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10988 need_version=no 10989 need_lib_prefix=no 10990 ;; 10991 freebsd-*) 10992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10993 need_version=yes 10994 ;; 10995 esac 10996 shlibpath_var=LD_LIBRARY_PATH 10997 case $host_os in 10998 freebsd2*) 10999 shlibpath_overrides_runpath=yes 11000 ;; 11001 freebsd3.01* | freebsdelf3.01*) 11002 shlibpath_overrides_runpath=yes 11003 hardcode_into_libs=yes 11004 ;; 11005 *) # from 3.2 on 11006 shlibpath_overrides_runpath=no 11007 hardcode_into_libs=yes 11008 ;; 11009 esac 11010 ;; 11011 11012gnu*) 11013 version_type=linux 11014 need_lib_prefix=no 11015 need_version=no 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11017 soname_spec='${libname}${release}${shared_ext}$major' 11018 shlibpath_var=LD_LIBRARY_PATH 11019 hardcode_into_libs=yes 11020 ;; 11021 11022hpux9* | hpux10* | hpux11*) 11023 # Give a soname corresponding to the major version so that dld.sl refuses to 11024 # link against other versions. 11025 version_type=sunos 11026 need_lib_prefix=no 11027 need_version=no 11028 case "$host_cpu" in 11029 ia64*) 11030 shrext='.so' 11031 hardcode_into_libs=yes 11032 dynamic_linker="$host_os dld.so" 11033 shlibpath_var=LD_LIBRARY_PATH 11034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11036 soname_spec='${libname}${release}${shared_ext}$major' 11037 if test "X$HPUX_IA64_MODE" = X32; then 11038 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11039 else 11040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11041 fi 11042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11043 ;; 11044 hppa*64*) 11045 shrext='.sl' 11046 hardcode_into_libs=yes 11047 dynamic_linker="$host_os dld.sl" 11048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11051 soname_spec='${libname}${release}${shared_ext}$major' 11052 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11054 ;; 11055 *) 11056 shrext='.sl' 11057 dynamic_linker="$host_os dld.sl" 11058 shlibpath_var=SHLIB_PATH 11059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11061 soname_spec='${libname}${release}${shared_ext}$major' 11062 ;; 11063 esac 11064 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11065 postinstall_cmds='chmod 555 $lib' 11066 ;; 11067 11068irix5* | irix6* | nonstopux*) 11069 case $host_os in 11070 nonstopux*) version_type=nonstopux ;; 11071 *) 11072 if test "$lt_cv_prog_gnu_ld" = yes; then 11073 version_type=linux 11074 else 11075 version_type=irix 11076 fi ;; 11077 esac 11078 need_lib_prefix=no 11079 need_version=no 11080 soname_spec='${libname}${release}${shared_ext}$major' 11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11082 case $host_os in 11083 irix5* | nonstopux*) 11084 libsuff= shlibsuff= 11085 ;; 11086 *) 11087 case $LD in # libtool.m4 will add one of these switches to LD 11088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11089 libsuff= shlibsuff= libmagic=32-bit;; 11090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11091 libsuff=32 shlibsuff=N32 libmagic=N32;; 11092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11093 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11094 *) libsuff= shlibsuff= libmagic=never-match;; 11095 esac 11096 ;; 11097 esac 11098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11099 shlibpath_overrides_runpath=no 11100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11102 hardcode_into_libs=yes 11103 ;; 11104 11105# No shared lib support for Linux oldld, aout, or coff. 11106linux*oldld* | linux*aout* | linux*coff*) 11107 dynamic_linker=no 11108 ;; 11109 11110# This must be Linux ELF. 11111linux*) 11112 version_type=linux 11113 need_lib_prefix=no 11114 need_version=no 11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11116 soname_spec='${libname}${release}${shared_ext}$major' 11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11118 shlibpath_var=LD_LIBRARY_PATH 11119 shlibpath_overrides_runpath=no 11120 # This implies no fast_install, which is unacceptable. 11121 # Some rework will be needed to allow for fast_install 11122 # before this can be enabled. 11123 hardcode_into_libs=yes 11124 11125 # We used to test for /lib/ld.so.1 and disable shared libraries on 11126 # powerpc, because MkLinux only supported shared libraries with the 11127 # GNU dynamic linker. Since this was broken with cross compilers, 11128 # most powerpc-linux boxes support dynamic linking these days and 11129 # people can always --disable-shared, the test was removed, and we 11130 # assume the GNU/Linux dynamic linker is in use. 11131 dynamic_linker='GNU/Linux ld.so' 11132 ;; 11133 11134netbsd*) 11135 version_type=sunos 11136 need_lib_prefix=no 11137 need_version=no 11138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11141 dynamic_linker='NetBSD (a.out) ld.so' 11142 else 11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 11144 soname_spec='${libname}${release}${shared_ext}$major' 11145 dynamic_linker='NetBSD ld.elf_so' 11146 fi 11147 shlibpath_var=LD_LIBRARY_PATH 11148 shlibpath_overrides_runpath=yes 11149 hardcode_into_libs=yes 11150 ;; 11151 11152newsos6) 11153 version_type=linux 11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11155 shlibpath_var=LD_LIBRARY_PATH 11156 shlibpath_overrides_runpath=yes 11157 ;; 11158 11159nto-qnx) 11160 version_type=linux 11161 need_lib_prefix=no 11162 need_version=no 11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11164 soname_spec='${libname}${release}${shared_ext}$major' 11165 shlibpath_var=LD_LIBRARY_PATH 11166 shlibpath_overrides_runpath=yes 11167 ;; 11168 11169openbsd*) 11170 version_type=sunos 11171 need_lib_prefix=no 11172 need_version=no 11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11175 shlibpath_var=LD_LIBRARY_PATH 11176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11177 case $host_os in 11178 openbsd2.[89] | openbsd2.[89].*) 11179 shlibpath_overrides_runpath=no 11180 ;; 11181 *) 11182 shlibpath_overrides_runpath=yes 11183 ;; 11184 esac 11185 else 11186 shlibpath_overrides_runpath=yes 11187 fi 11188 ;; 11189 11190os2*) 11191 libname_spec='$name' 11192 shrext=".dll" 11193 need_lib_prefix=no 11194 library_names_spec='$libname${shared_ext} $libname.a' 11195 dynamic_linker='OS/2 ld.exe' 11196 shlibpath_var=LIBPATH 11197 ;; 11198 11199osf3* | osf4* | osf5*) 11200 version_type=osf 11201 need_lib_prefix=no 11202 need_version=no 11203 soname_spec='${libname}${release}${shared_ext}$major' 11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11205 shlibpath_var=LD_LIBRARY_PATH 11206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11208 ;; 11209 11210sco3.2v5*) 11211 version_type=osf 11212 soname_spec='${libname}${release}${shared_ext}$major' 11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11214 shlibpath_var=LD_LIBRARY_PATH 11215 ;; 11216 11217solaris*) 11218 version_type=linux 11219 need_lib_prefix=no 11220 need_version=no 11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11222 soname_spec='${libname}${release}${shared_ext}$major' 11223 shlibpath_var=LD_LIBRARY_PATH 11224 shlibpath_overrides_runpath=yes 11225 hardcode_into_libs=yes 11226 # ldd complains unless libraries are executable 11227 postinstall_cmds='chmod +x $lib' 11228 ;; 11229 11230sunos4*) 11231 version_type=sunos 11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11234 shlibpath_var=LD_LIBRARY_PATH 11235 shlibpath_overrides_runpath=yes 11236 if test "$with_gnu_ld" = yes; then 11237 need_lib_prefix=no 11238 fi 11239 need_version=yes 11240 ;; 11241 11242sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11243 version_type=linux 11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11245 soname_spec='${libname}${release}${shared_ext}$major' 11246 shlibpath_var=LD_LIBRARY_PATH 11247 case $host_vendor in 11248 sni) 11249 shlibpath_overrides_runpath=no 11250 need_lib_prefix=no 11251 export_dynamic_flag_spec='${wl}-Blargedynsym' 11252 runpath_var=LD_RUN_PATH 11253 ;; 11254 siemens) 11255 need_lib_prefix=no 11256 ;; 11257 motorola) 11258 need_lib_prefix=no 11259 need_version=no 11260 shlibpath_overrides_runpath=no 11261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11262 ;; 11263 esac 11264 ;; 11265 11266sysv4*MP*) 11267 if test -d /usr/nec ;then 11268 version_type=linux 11269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11270 soname_spec='$libname${shared_ext}.$major' 11271 shlibpath_var=LD_LIBRARY_PATH 11272 fi 11273 ;; 11274 11275uts4*) 11276 version_type=linux 11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11278 soname_spec='${libname}${release}${shared_ext}$major' 11279 shlibpath_var=LD_LIBRARY_PATH 11280 ;; 11281 11282*) 11283 dynamic_linker=no 11284 ;; 11285esac 11286echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11287echo "${ECHO_T}$dynamic_linker" >&6 11288test "$dynamic_linker" = no && can_build_shared=no 11289 11290if test "x$enable_dlopen" != xyes; then 11291 enable_dlopen=unknown 11292 enable_dlopen_self=unknown 11293 enable_dlopen_self_static=unknown 11294else 11295 lt_cv_dlopen=no 11296 lt_cv_dlopen_libs= 11297 11298 case $host_os in 11299 beos*) 11300 lt_cv_dlopen="load_add_on" 11301 lt_cv_dlopen_libs= 11302 lt_cv_dlopen_self=yes 11303 ;; 11304 11305 mingw* | pw32*) 11306 lt_cv_dlopen="LoadLibrary" 11307 lt_cv_dlopen_libs= 11308 ;; 11309 11310 cygwin*) 11311 lt_cv_dlopen="dlopen" 11312 lt_cv_dlopen_libs= 11313 ;; 11314 11315 darwin*) 11316 # if libdl is installed we need to link against it 11317 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11318echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11319if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11320 echo $ECHO_N "(cached) $ECHO_C" >&6 11321else 11322 ac_check_lib_save_LIBS=$LIBS 11323LIBS="-ldl $LIBS" 11324cat >conftest.$ac_ext <<_ACEOF 11325#line $LINENO "configure" 11326/* confdefs.h. */ 11327_ACEOF 11328cat confdefs.h >>conftest.$ac_ext 11329cat >>conftest.$ac_ext <<_ACEOF 11330/* end confdefs.h. */ 11331 11332/* Override any gcc2 internal prototype to avoid an error. */ 11333#ifdef __cplusplus 11334extern "C" 11335#endif 11336/* We use char because int might match the return type of a gcc2 11337 builtin and then its argument prototype would still apply. */ 11338char dlopen (); 11339int 11340main () 11341{ 11342dlopen (); 11343 ; 11344 return 0; 11345} 11346_ACEOF 11347rm -f conftest.$ac_objext conftest$ac_exeext 11348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11349 (eval $ac_link) 2>&5 11350 ac_status=$? 11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11352 (exit $ac_status); } && 11353 { ac_try='test -s conftest$ac_exeext' 11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11355 (eval $ac_try) 2>&5 11356 ac_status=$? 11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11358 (exit $ac_status); }; }; then 11359 ac_cv_lib_dl_dlopen=yes 11360else 11361 echo "$as_me: failed program was:" >&5 11362sed 's/^/| /' conftest.$ac_ext >&5 11363 11364ac_cv_lib_dl_dlopen=no 11365fi 11366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11367LIBS=$ac_check_lib_save_LIBS 11368fi 11369echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11370echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11371if test $ac_cv_lib_dl_dlopen = yes; then 11372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11373else 11374 11375 lt_cv_dlopen="dyld" 11376 lt_cv_dlopen_libs= 11377 lt_cv_dlopen_self=yes 11378 11379fi 11380 11381 ;; 11382 11383 *) 11384 echo "$as_me:$LINENO: checking for shl_load" >&5 11385echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11386if test "${ac_cv_func_shl_load+set}" = set; then 11387 echo $ECHO_N "(cached) $ECHO_C" >&6 11388else 11389 cat >conftest.$ac_ext <<_ACEOF 11390#line $LINENO "configure" 11391/* confdefs.h. */ 11392_ACEOF 11393cat confdefs.h >>conftest.$ac_ext 11394cat >>conftest.$ac_ext <<_ACEOF 11395/* end confdefs.h. */ 11396/* System header to define __stub macros and hopefully few prototypes, 11397 which can conflict with char shl_load (); below. 11398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11399 <limits.h> exists even on freestanding compilers. */ 11400#ifdef __STDC__ 11401# include <limits.h> 11402#else 11403# include <assert.h> 11404#endif 11405/* Override any gcc2 internal prototype to avoid an error. */ 11406#ifdef __cplusplus 11407extern "C" 11408{ 11409#endif 11410/* We use char because int might match the return type of a gcc2 11411 builtin and then its argument prototype would still apply. */ 11412char shl_load (); 11413/* The GNU C library defines this for functions which it implements 11414 to always fail with ENOSYS. Some functions are actually named 11415 something starting with __ and the normal name is an alias. */ 11416#if defined (__stub_shl_load) || defined (__stub___shl_load) 11417choke me 11418#else 11419char (*f) () = shl_load; 11420#endif 11421#ifdef __cplusplus 11422} 11423#endif 11424 11425int 11426main () 11427{ 11428return f != shl_load; 11429 ; 11430 return 0; 11431} 11432_ACEOF 11433rm -f conftest.$ac_objext conftest$ac_exeext 11434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11435 (eval $ac_link) 2>&5 11436 ac_status=$? 11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11438 (exit $ac_status); } && 11439 { ac_try='test -s conftest$ac_exeext' 11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11441 (eval $ac_try) 2>&5 11442 ac_status=$? 11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11444 (exit $ac_status); }; }; then 11445 ac_cv_func_shl_load=yes 11446else 11447 echo "$as_me: failed program was:" >&5 11448sed 's/^/| /' conftest.$ac_ext >&5 11449 11450ac_cv_func_shl_load=no 11451fi 11452rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11453fi 11454echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11455echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11456if test $ac_cv_func_shl_load = yes; then 11457 lt_cv_dlopen="shl_load" 11458else 11459 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11460echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11461if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11462 echo $ECHO_N "(cached) $ECHO_C" >&6 11463else 11464 ac_check_lib_save_LIBS=$LIBS 11465LIBS="-ldld $LIBS" 11466cat >conftest.$ac_ext <<_ACEOF 11467#line $LINENO "configure" 11468/* confdefs.h. */ 11469_ACEOF 11470cat confdefs.h >>conftest.$ac_ext 11471cat >>conftest.$ac_ext <<_ACEOF 11472/* end confdefs.h. */ 11473 11474/* Override any gcc2 internal prototype to avoid an error. */ 11475#ifdef __cplusplus 11476extern "C" 11477#endif 11478/* We use char because int might match the return type of a gcc2 11479 builtin and then its argument prototype would still apply. */ 11480char shl_load (); 11481int 11482main () 11483{ 11484shl_load (); 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489rm -f conftest.$ac_objext conftest$ac_exeext 11490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11491 (eval $ac_link) 2>&5 11492 ac_status=$? 11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11494 (exit $ac_status); } && 11495 { ac_try='test -s conftest$ac_exeext' 11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11497 (eval $ac_try) 2>&5 11498 ac_status=$? 11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11500 (exit $ac_status); }; }; then 11501 ac_cv_lib_dld_shl_load=yes 11502else 11503 echo "$as_me: failed program was:" >&5 11504sed 's/^/| /' conftest.$ac_ext >&5 11505 11506ac_cv_lib_dld_shl_load=no 11507fi 11508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11509LIBS=$ac_check_lib_save_LIBS 11510fi 11511echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11512echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11513if test $ac_cv_lib_dld_shl_load = yes; then 11514 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11515else 11516 echo "$as_me:$LINENO: checking for dlopen" >&5 11517echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11518if test "${ac_cv_func_dlopen+set}" = set; then 11519 echo $ECHO_N "(cached) $ECHO_C" >&6 11520else 11521 cat >conftest.$ac_ext <<_ACEOF 11522#line $LINENO "configure" 11523/* confdefs.h. */ 11524_ACEOF 11525cat confdefs.h >>conftest.$ac_ext 11526cat >>conftest.$ac_ext <<_ACEOF 11527/* end confdefs.h. */ 11528/* System header to define __stub macros and hopefully few prototypes, 11529 which can conflict with char dlopen (); below. 11530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11531 <limits.h> exists even on freestanding compilers. */ 11532#ifdef __STDC__ 11533# include <limits.h> 11534#else 11535# include <assert.h> 11536#endif 11537/* Override any gcc2 internal prototype to avoid an error. */ 11538#ifdef __cplusplus 11539extern "C" 11540{ 11541#endif 11542/* We use char because int might match the return type of a gcc2 11543 builtin and then its argument prototype would still apply. */ 11544char dlopen (); 11545/* The GNU C library defines this for functions which it implements 11546 to always fail with ENOSYS. Some functions are actually named 11547 something starting with __ and the normal name is an alias. */ 11548#if defined (__stub_dlopen) || defined (__stub___dlopen) 11549choke me 11550#else 11551char (*f) () = dlopen; 11552#endif 11553#ifdef __cplusplus 11554} 11555#endif 11556 11557int 11558main () 11559{ 11560return f != dlopen; 11561 ; 11562 return 0; 11563} 11564_ACEOF 11565rm -f conftest.$ac_objext conftest$ac_exeext 11566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11567 (eval $ac_link) 2>&5 11568 ac_status=$? 11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11570 (exit $ac_status); } && 11571 { ac_try='test -s conftest$ac_exeext' 11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11573 (eval $ac_try) 2>&5 11574 ac_status=$? 11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11576 (exit $ac_status); }; }; then 11577 ac_cv_func_dlopen=yes 11578else 11579 echo "$as_me: failed program was:" >&5 11580sed 's/^/| /' conftest.$ac_ext >&5 11581 11582ac_cv_func_dlopen=no 11583fi 11584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11585fi 11586echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11587echo "${ECHO_T}$ac_cv_func_dlopen" >&6 11588if test $ac_cv_func_dlopen = yes; then 11589 lt_cv_dlopen="dlopen" 11590else 11591 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11592echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11593if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11594 echo $ECHO_N "(cached) $ECHO_C" >&6 11595else 11596 ac_check_lib_save_LIBS=$LIBS 11597LIBS="-ldl $LIBS" 11598cat >conftest.$ac_ext <<_ACEOF 11599#line $LINENO "configure" 11600/* confdefs.h. */ 11601_ACEOF 11602cat confdefs.h >>conftest.$ac_ext 11603cat >>conftest.$ac_ext <<_ACEOF 11604/* end confdefs.h. */ 11605 11606/* Override any gcc2 internal prototype to avoid an error. */ 11607#ifdef __cplusplus 11608extern "C" 11609#endif 11610/* We use char because int might match the return type of a gcc2 11611 builtin and then its argument prototype would still apply. */ 11612char dlopen (); 11613int 11614main () 11615{ 11616dlopen (); 11617 ; 11618 return 0; 11619} 11620_ACEOF 11621rm -f conftest.$ac_objext conftest$ac_exeext 11622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11623 (eval $ac_link) 2>&5 11624 ac_status=$? 11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11626 (exit $ac_status); } && 11627 { ac_try='test -s conftest$ac_exeext' 11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11629 (eval $ac_try) 2>&5 11630 ac_status=$? 11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 (exit $ac_status); }; }; then 11633 ac_cv_lib_dl_dlopen=yes 11634else 11635 echo "$as_me: failed program was:" >&5 11636sed 's/^/| /' conftest.$ac_ext >&5 11637 11638ac_cv_lib_dl_dlopen=no 11639fi 11640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11641LIBS=$ac_check_lib_save_LIBS 11642fi 11643echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11644echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11645if test $ac_cv_lib_dl_dlopen = yes; then 11646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11647else 11648 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11649echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 11650if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11651 echo $ECHO_N "(cached) $ECHO_C" >&6 11652else 11653 ac_check_lib_save_LIBS=$LIBS 11654LIBS="-lsvld $LIBS" 11655cat >conftest.$ac_ext <<_ACEOF 11656#line $LINENO "configure" 11657/* confdefs.h. */ 11658_ACEOF 11659cat confdefs.h >>conftest.$ac_ext 11660cat >>conftest.$ac_ext <<_ACEOF 11661/* end confdefs.h. */ 11662 11663/* Override any gcc2 internal prototype to avoid an error. */ 11664#ifdef __cplusplus 11665extern "C" 11666#endif 11667/* We use char because int might match the return type of a gcc2 11668 builtin and then its argument prototype would still apply. */ 11669char dlopen (); 11670int 11671main () 11672{ 11673dlopen (); 11674 ; 11675 return 0; 11676} 11677_ACEOF 11678rm -f conftest.$ac_objext conftest$ac_exeext 11679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11680 (eval $ac_link) 2>&5 11681 ac_status=$? 11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11683 (exit $ac_status); } && 11684 { ac_try='test -s conftest$ac_exeext' 11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11686 (eval $ac_try) 2>&5 11687 ac_status=$? 11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11689 (exit $ac_status); }; }; then 11690 ac_cv_lib_svld_dlopen=yes 11691else 11692 echo "$as_me: failed program was:" >&5 11693sed 's/^/| /' conftest.$ac_ext >&5 11694 11695ac_cv_lib_svld_dlopen=no 11696fi 11697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11698LIBS=$ac_check_lib_save_LIBS 11699fi 11700echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11701echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 11702if test $ac_cv_lib_svld_dlopen = yes; then 11703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11704else 11705 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11706echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 11707if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11708 echo $ECHO_N "(cached) $ECHO_C" >&6 11709else 11710 ac_check_lib_save_LIBS=$LIBS 11711LIBS="-ldld $LIBS" 11712cat >conftest.$ac_ext <<_ACEOF 11713#line $LINENO "configure" 11714/* confdefs.h. */ 11715_ACEOF 11716cat confdefs.h >>conftest.$ac_ext 11717cat >>conftest.$ac_ext <<_ACEOF 11718/* end confdefs.h. */ 11719 11720/* Override any gcc2 internal prototype to avoid an error. */ 11721#ifdef __cplusplus 11722extern "C" 11723#endif 11724/* We use char because int might match the return type of a gcc2 11725 builtin and then its argument prototype would still apply. */ 11726char dld_link (); 11727int 11728main () 11729{ 11730dld_link (); 11731 ; 11732 return 0; 11733} 11734_ACEOF 11735rm -f conftest.$ac_objext conftest$ac_exeext 11736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11737 (eval $ac_link) 2>&5 11738 ac_status=$? 11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11740 (exit $ac_status); } && 11741 { ac_try='test -s conftest$ac_exeext' 11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11743 (eval $ac_try) 2>&5 11744 ac_status=$? 11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11746 (exit $ac_status); }; }; then 11747 ac_cv_lib_dld_dld_link=yes 11748else 11749 echo "$as_me: failed program was:" >&5 11750sed 's/^/| /' conftest.$ac_ext >&5 11751 11752ac_cv_lib_dld_dld_link=no 11753fi 11754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11755LIBS=$ac_check_lib_save_LIBS 11756fi 11757echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11758echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11759if test $ac_cv_lib_dld_dld_link = yes; then 11760 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11761fi 11762 11763 11764fi 11765 11766 11767fi 11768 11769 11770fi 11771 11772 11773fi 11774 11775 11776fi 11777 11778 ;; 11779 esac 11780 11781 if test "x$lt_cv_dlopen" != xno; then 11782 enable_dlopen=yes 11783 else 11784 enable_dlopen=no 11785 fi 11786 11787 case $lt_cv_dlopen in 11788 dlopen) 11789 save_CPPFLAGS="$CPPFLAGS" 11790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11791 11792 save_LDFLAGS="$LDFLAGS" 11793 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11794 11795 save_LIBS="$LIBS" 11796 LIBS="$lt_cv_dlopen_libs $LIBS" 11797 11798 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11799echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11800if test "${lt_cv_dlopen_self+set}" = set; then 11801 echo $ECHO_N "(cached) $ECHO_C" >&6 11802else 11803 if test "$cross_compiling" = yes; then : 11804 lt_cv_dlopen_self=cross 11805else 11806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11807 lt_status=$lt_dlunknown 11808 cat > conftest.$ac_ext <<EOF 11809#line 11809 "configure" 11810#include "confdefs.h" 11811 11812#if HAVE_DLFCN_H 11813#include <dlfcn.h> 11814#endif 11815 11816#include <stdio.h> 11817 11818#ifdef RTLD_GLOBAL 11819# define LT_DLGLOBAL RTLD_GLOBAL 11820#else 11821# ifdef DL_GLOBAL 11822# define LT_DLGLOBAL DL_GLOBAL 11823# else 11824# define LT_DLGLOBAL 0 11825# endif 11826#endif 11827 11828/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11829 find out it does not work in some platform. */ 11830#ifndef LT_DLLAZY_OR_NOW 11831# ifdef RTLD_LAZY 11832# define LT_DLLAZY_OR_NOW RTLD_LAZY 11833# else 11834# ifdef DL_LAZY 11835# define LT_DLLAZY_OR_NOW DL_LAZY 11836# else 11837# ifdef RTLD_NOW 11838# define LT_DLLAZY_OR_NOW RTLD_NOW 11839# else 11840# ifdef DL_NOW 11841# define LT_DLLAZY_OR_NOW DL_NOW 11842# else 11843# define LT_DLLAZY_OR_NOW 0 11844# endif 11845# endif 11846# endif 11847# endif 11848#endif 11849 11850#ifdef __cplusplus 11851extern "C" void exit (int); 11852#endif 11853 11854void fnord() { int i=42;} 11855int main () 11856{ 11857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11858 int status = $lt_dlunknown; 11859 11860 if (self) 11861 { 11862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11863 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11864 /* dlclose (self); */ 11865 } 11866 11867 exit (status); 11868} 11869EOF 11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11871 (eval $ac_link) 2>&5 11872 ac_status=$? 11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11874 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11875 (./conftest; exit; ) 2>/dev/null 11876 lt_status=$? 11877 case x$lt_status in 11878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11880 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 11881 esac 11882 else : 11883 # compilation failed 11884 lt_cv_dlopen_self=no 11885 fi 11886fi 11887rm -fr conftest* 11888 11889 11890fi 11891echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11892echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11893 11894 if test "x$lt_cv_dlopen_self" = xyes; then 11895 LDFLAGS="$LDFLAGS $link_static_flag" 11896 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11897echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11898if test "${lt_cv_dlopen_self_static+set}" = set; then 11899 echo $ECHO_N "(cached) $ECHO_C" >&6 11900else 11901 if test "$cross_compiling" = yes; then : 11902 lt_cv_dlopen_self_static=cross 11903else 11904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11905 lt_status=$lt_dlunknown 11906 cat > conftest.$ac_ext <<EOF 11907#line 11907 "configure" 11908#include "confdefs.h" 11909 11910#if HAVE_DLFCN_H 11911#include <dlfcn.h> 11912#endif 11913 11914#include <stdio.h> 11915 11916#ifdef RTLD_GLOBAL 11917# define LT_DLGLOBAL RTLD_GLOBAL 11918#else 11919# ifdef DL_GLOBAL 11920# define LT_DLGLOBAL DL_GLOBAL 11921# else 11922# define LT_DLGLOBAL 0 11923# endif 11924#endif 11925 11926/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11927 find out it does not work in some platform. */ 11928#ifndef LT_DLLAZY_OR_NOW 11929# ifdef RTLD_LAZY 11930# define LT_DLLAZY_OR_NOW RTLD_LAZY 11931# else 11932# ifdef DL_LAZY 11933# define LT_DLLAZY_OR_NOW DL_LAZY 11934# else 11935# ifdef RTLD_NOW 11936# define LT_DLLAZY_OR_NOW RTLD_NOW 11937# else 11938# ifdef DL_NOW 11939# define LT_DLLAZY_OR_NOW DL_NOW 11940# else 11941# define LT_DLLAZY_OR_NOW 0 11942# endif 11943# endif 11944# endif 11945# endif 11946#endif 11947 11948#ifdef __cplusplus 11949extern "C" void exit (int); 11950#endif 11951 11952void fnord() { int i=42;} 11953int main () 11954{ 11955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11956 int status = $lt_dlunknown; 11957 11958 if (self) 11959 { 11960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11962 /* dlclose (self); */ 11963 } 11964 11965 exit (status); 11966} 11967EOF 11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11969 (eval $ac_link) 2>&5 11970 ac_status=$? 11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11973 (./conftest; exit; ) 2>/dev/null 11974 lt_status=$? 11975 case x$lt_status in 11976 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11977 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11978 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 11979 esac 11980 else : 11981 # compilation failed 11982 lt_cv_dlopen_self_static=no 11983 fi 11984fi 11985rm -fr conftest* 11986 11987 11988fi 11989echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11990echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11991 fi 11992 11993 CPPFLAGS="$save_CPPFLAGS" 11994 LDFLAGS="$save_LDFLAGS" 11995 LIBS="$save_LIBS" 11996 ;; 11997 esac 11998 11999 case $lt_cv_dlopen_self in 12000 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12001 *) enable_dlopen_self=unknown ;; 12002 esac 12003 12004 case $lt_cv_dlopen_self_static in 12005 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12006 *) enable_dlopen_self_static=unknown ;; 12007 esac 12008fi 12009 12010 12011# The else clause should only fire when bootstrapping the 12012# libtool distribution, otherwise you forgot to ship ltmain.sh 12013# with your package, and you will get complaints that there are 12014# no rules to generate ltmain.sh. 12015if test -f "$ltmain"; then 12016 # See if we are running on zsh, and set the options which allow our commands through 12017 # without removal of \ escapes. 12018 if test -n "${ZSH_VERSION+set}" ; then 12019 setopt NO_GLOB_SUBST 12020 fi 12021 # Now quote all the things that may contain metacharacters while being 12022 # careful not to overquote the AC_SUBSTed values. We take copies of the 12023 # variables and quote the copies for generation of the libtool script. 12024 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 12025 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12026 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12027 deplibs_check_method reload_flag reload_cmds need_locks \ 12028 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12029 lt_cv_sys_global_symbol_to_c_name_address \ 12030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12031 old_postinstall_cmds old_postuninstall_cmds \ 12032 compiler_CXX \ 12033 CC_CXX \ 12034 LD_CXX \ 12035 lt_prog_compiler_wl_CXX \ 12036 lt_prog_compiler_pic_CXX \ 12037 lt_prog_compiler_static_CXX \ 12038 lt_prog_compiler_no_builtin_flag_CXX \ 12039 export_dynamic_flag_spec_CXX \ 12040 thread_safe_flag_spec_CXX \ 12041 whole_archive_flag_spec_CXX \ 12042 enable_shared_with_static_runtimes_CXX \ 12043 old_archive_cmds_CXX \ 12044 old_archive_from_new_cmds_CXX \ 12045 predep_objects_CXX \ 12046 postdep_objects_CXX \ 12047 predeps_CXX \ 12048 postdeps_CXX \ 12049 compiler_lib_search_path_CXX \ 12050 archive_cmds_CXX \ 12051 archive_expsym_cmds_CXX \ 12052 postinstall_cmds_CXX \ 12053 postuninstall_cmds_CXX \ 12054 old_archive_from_expsyms_cmds_CXX \ 12055 allow_undefined_flag_CXX \ 12056 no_undefined_flag_CXX \ 12057 export_symbols_cmds_CXX \ 12058 hardcode_libdir_flag_spec_CXX \ 12059 hardcode_libdir_flag_spec_ld_CXX \ 12060 hardcode_libdir_separator_CXX \ 12061 hardcode_automatic_CXX \ 12062 module_cmds_CXX \ 12063 module_expsym_cmds_CXX \ 12064 lt_cv_prog_compiler_c_o_CXX \ 12065 exclude_expsyms_CXX \ 12066 include_expsyms_CXX; do 12067 12068 case $var in 12069 old_archive_cmds_CXX | \ 12070 old_archive_from_new_cmds_CXX | \ 12071 archive_cmds_CXX | \ 12072 archive_expsym_cmds_CXX | \ 12073 module_cmds_CXX | \ 12074 module_expsym_cmds_CXX | \ 12075 old_archive_from_expsyms_cmds_CXX | \ 12076 export_symbols_cmds_CXX | \ 12077 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12078 postinstall_cmds | postuninstall_cmds | \ 12079 old_postinstall_cmds | old_postuninstall_cmds | \ 12080 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12081 # Double-quote double-evaled strings. 12082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12083 ;; 12084 *) 12085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12086 ;; 12087 esac 12088 done 12089 12090 case $lt_echo in 12091 *'\$0 --fallback-echo"') 12092 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12093 ;; 12094 esac 12095 12096cfgfile="$ofile" 12097 12098 cat <<__EOF__ >> "$cfgfile" 12099# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12100 12101# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12102 12103# Shell to use when invoking shell scripts. 12104SHELL=$lt_SHELL 12105 12106# Whether or not to build shared libraries. 12107build_libtool_libs=$enable_shared 12108 12109# Whether or not to build static libraries. 12110build_old_libs=$enable_static 12111 12112# Whether or not to add -lc for building shared libraries. 12113build_libtool_need_lc=$archive_cmds_need_lc_CXX 12114 12115# Whether or not to disallow shared libs when runtime libs are static 12116allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12117 12118# Whether or not to optimize for fast installation. 12119fast_install=$enable_fast_install 12120 12121# The host system. 12122host_alias=$host_alias 12123host=$host 12124 12125# An echo program that does not interpret backslashes. 12126echo=$lt_echo 12127 12128# The archiver. 12129AR=$lt_AR 12130AR_FLAGS=$lt_AR_FLAGS 12131 12132# A C compiler. 12133LTCC=$lt_LTCC 12134 12135# A language-specific compiler. 12136CC=$lt_compiler_CXX 12137 12138# Is the compiler the GNU C compiler? 12139with_gcc=$GCC_CXX 12140 12141# An ERE matcher. 12142EGREP=$lt_EGREP 12143 12144# The linker used to build libraries. 12145LD=$lt_LD_CXX 12146 12147# Whether we need hard or soft links. 12148LN_S=$lt_LN_S 12149 12150# A BSD-compatible nm program. 12151NM=$lt_NM 12152 12153# A symbol stripping program 12154STRIP=$STRIP 12155 12156# Used to examine libraries when file_magic_cmd begins "file" 12157MAGIC_CMD=$MAGIC_CMD 12158 12159# Used on cygwin: DLL creation program. 12160DLLTOOL="$DLLTOOL" 12161 12162# Used on cygwin: object dumper. 12163OBJDUMP="$OBJDUMP" 12164 12165# Used on cygwin: assembler. 12166AS="$AS" 12167 12168# The name of the directory that contains temporary libtool files. 12169objdir=$objdir 12170 12171# How to create reloadable object files. 12172reload_flag=$lt_reload_flag 12173reload_cmds=$lt_reload_cmds 12174 12175# How to pass a linker flag through the compiler. 12176wl=$lt_lt_prog_compiler_wl_CXX 12177 12178# Object file suffix (normally "o"). 12179objext="$ac_objext" 12180 12181# Old archive suffix (normally "a"). 12182libext="$libext" 12183 12184# Shared library suffix (normally ".so"). 12185shrext='$shrext' 12186 12187# Executable file suffix (normally ""). 12188exeext="$exeext" 12189 12190# Additional compiler flags for building library objects. 12191pic_flag=$lt_lt_prog_compiler_pic_CXX 12192pic_mode=$pic_mode 12193 12194# What is the maximum length of a command? 12195max_cmd_len=$lt_cv_sys_max_cmd_len 12196 12197# Does compiler simultaneously support -c and -o options? 12198compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12199 12200# Must we lock files when doing compilation ? 12201need_locks=$lt_need_locks 12202 12203# Do we need the lib prefix for modules? 12204need_lib_prefix=$need_lib_prefix 12205 12206# Do we need a version for libraries? 12207need_version=$need_version 12208 12209# Whether dlopen is supported. 12210dlopen_support=$enable_dlopen 12211 12212# Whether dlopen of programs is supported. 12213dlopen_self=$enable_dlopen_self 12214 12215# Whether dlopen of statically linked programs is supported. 12216dlopen_self_static=$enable_dlopen_self_static 12217 12218# Compiler flag to prevent dynamic linking. 12219link_static_flag=$lt_lt_prog_compiler_static_CXX 12220 12221# Compiler flag to turn off builtin functions. 12222no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12223 12224# Compiler flag to allow reflexive dlopens. 12225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12226 12227# Compiler flag to generate shared objects directly from archives. 12228whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12229 12230# Compiler flag to generate thread-safe objects. 12231thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12232 12233# Library versioning type. 12234version_type=$version_type 12235 12236# Format of library name prefix. 12237libname_spec=$lt_libname_spec 12238 12239# List of archive names. First name is the real one, the rest are links. 12240# The last name is the one that the linker finds with -lNAME. 12241library_names_spec=$lt_library_names_spec 12242 12243# The coded name of the library, if different from the real name. 12244soname_spec=$lt_soname_spec 12245 12246# Commands used to build and install an old-style archive. 12247RANLIB=$lt_RANLIB 12248old_archive_cmds=$lt_old_archive_cmds_CXX 12249old_postinstall_cmds=$lt_old_postinstall_cmds 12250old_postuninstall_cmds=$lt_old_postuninstall_cmds 12251 12252# Create an old-style archive from a shared archive. 12253old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12254 12255# Create a temporary old-style archive to link instead of a shared archive. 12256old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12257 12258# Commands used to build and install a shared archive. 12259archive_cmds=$lt_archive_cmds_CXX 12260archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12261postinstall_cmds=$lt_postinstall_cmds 12262postuninstall_cmds=$lt_postuninstall_cmds 12263 12264# Commands used to build a loadable module (assumed same as above if empty) 12265module_cmds=$lt_module_cmds_CXX 12266module_expsym_cmds=$lt_module_expsym_cmds_CXX 12267 12268# Commands to strip libraries. 12269old_striplib=$lt_old_striplib 12270striplib=$lt_striplib 12271 12272# Dependencies to place before the objects being linked to create a 12273# shared library. 12274predep_objects=$lt_predep_objects_CXX 12275 12276# Dependencies to place after the objects being linked to create a 12277# shared library. 12278postdep_objects=$lt_postdep_objects_CXX 12279 12280# Dependencies to place before the objects being linked to create a 12281# shared library. 12282predeps=$lt_predeps_CXX 12283 12284# Dependencies to place after the objects being linked to create a 12285# shared library. 12286postdeps=$lt_postdeps_CXX 12287 12288# The library search path used internally by the compiler when linking 12289# a shared library. 12290compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12291 12292# Method to check whether dependent libraries are shared objects. 12293deplibs_check_method=$lt_deplibs_check_method 12294 12295# Command to use when deplibs_check_method == file_magic. 12296file_magic_cmd=$lt_file_magic_cmd 12297 12298# Flag that allows shared libraries with undefined symbols to be built. 12299allow_undefined_flag=$lt_allow_undefined_flag_CXX 12300 12301# Flag that forces no undefined symbols. 12302no_undefined_flag=$lt_no_undefined_flag_CXX 12303 12304# Commands used to finish a libtool library installation in a directory. 12305finish_cmds=$lt_finish_cmds 12306 12307# Same as above, but a single script fragment to be evaled but not shown. 12308finish_eval=$lt_finish_eval 12309 12310# Take the output of nm and produce a listing of raw symbols and C names. 12311global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12312 12313# Transform the output of nm in a proper C declaration 12314global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12315 12316# Transform the output of nm in a C name address pair 12317global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12318 12319# This is the shared library runtime path variable. 12320runpath_var=$runpath_var 12321 12322# This is the shared library path variable. 12323shlibpath_var=$shlibpath_var 12324 12325# Is shlibpath searched before the hard-coded library search path? 12326shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12327 12328# How to hardcode a shared library path into an executable. 12329hardcode_action=$hardcode_action_CXX 12330 12331# Whether we should hardcode library paths into libraries. 12332hardcode_into_libs=$hardcode_into_libs 12333 12334# Flag to hardcode \$libdir into a binary during linking. 12335# This must work even if \$libdir does not exist. 12336hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12337 12338# If ld is used when linking, flag to hardcode \$libdir into 12339# a binary during linking. This must work even if \$libdir does 12340# not exist. 12341hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12342 12343# Whether we need a single -rpath flag with a separated argument. 12344hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12345 12346# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12347# resulting binary. 12348hardcode_direct=$hardcode_direct_CXX 12349 12350# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12351# resulting binary. 12352hardcode_minus_L=$hardcode_minus_L_CXX 12353 12354# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12355# the resulting binary. 12356hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12357 12358# Set to yes if building a shared library automatically hardcodes DIR into the library 12359# and all subsequent libraries and executables linked against it. 12360hardcode_automatic=$hardcode_automatic_CXX 12361 12362# Variables whose values should be saved in libtool wrapper scripts and 12363# restored at relink time. 12364variables_saved_for_relink="$variables_saved_for_relink" 12365 12366# Whether libtool must link a program against all its dependency libraries. 12367link_all_deplibs=$link_all_deplibs_CXX 12368 12369# Compile-time system search path for libraries 12370sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12371 12372# Run-time system search path for libraries 12373sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12374 12375# Fix the shell variable \$srcfile for the compiler. 12376fix_srcfile_path="$fix_srcfile_path_CXX" 12377 12378# Set to yes if exported symbols are required. 12379always_export_symbols=$always_export_symbols_CXX 12380 12381# The commands to list exported symbols. 12382export_symbols_cmds=$lt_export_symbols_cmds_CXX 12383 12384# The commands to extract the exported symbol list from a shared archive. 12385extract_expsyms_cmds=$lt_extract_expsyms_cmds 12386 12387# Symbols that should not be listed in the preloaded symbols. 12388exclude_expsyms=$lt_exclude_expsyms_CXX 12389 12390# Symbols that must always be exported. 12391include_expsyms=$lt_include_expsyms_CXX 12392 12393# ### END LIBTOOL TAG CONFIG: $tagname 12394 12395__EOF__ 12396 12397 12398else 12399 # If there is no Makefile yet, we rely on a make rule to execute 12400 # `config.status --recheck' to rerun these tests and create the 12401 # libtool script then. 12402 test -f Makefile && make "$ltmain" 12403fi 12404 12405 12406ac_ext=c 12407ac_cpp='$CPP $CPPFLAGS' 12408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12410ac_compiler_gnu=$ac_cv_c_compiler_gnu 12411 12412CC=$lt_save_CC 12413LDCXX=$LD 12414LD=$lt_save_LD 12415GCC=$lt_save_GCC 12416with_gnu_ldcxx=$with_gnu_ld 12417with_gnu_ld=$lt_save_with_gnu_ld 12418lt_cv_path_LDCXX=$lt_cv_path_LD 12419lt_cv_path_LD=$lt_save_path_LD 12420lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12421lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12422 12423 else 12424 tagname="" 12425 fi 12426 ;; 12427 12428 F77) 12429 if test -n "$F77" && test "X$F77" != "Xno"; then 12430 12431ac_ext=f 12432ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12433ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12434ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12435 12436 12437archive_cmds_need_lc_F77=no 12438allow_undefined_flag_F77= 12439always_export_symbols_F77=no 12440archive_expsym_cmds_F77= 12441export_dynamic_flag_spec_F77= 12442hardcode_direct_F77=no 12443hardcode_libdir_flag_spec_F77= 12444hardcode_libdir_flag_spec_ld_F77= 12445hardcode_libdir_separator_F77= 12446hardcode_minus_L_F77=no 12447hardcode_automatic_F77=no 12448module_cmds_F77= 12449module_expsym_cmds_F77= 12450link_all_deplibs_F77=unknown 12451old_archive_cmds_F77=$old_archive_cmds 12452no_undefined_flag_F77= 12453whole_archive_flag_spec_F77= 12454enable_shared_with_static_runtimes_F77=no 12455 12456# Source file extension for f77 test sources. 12457ac_ext=f 12458 12459# Object file extension for compiled f77 test sources. 12460objext=o 12461objext_F77=$objext 12462 12463# Code to be used in simple compile tests 12464lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12465 12466# Code to be used in simple link tests 12467lt_simple_link_test_code=" program t\n end\n" 12468 12469# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12470 12471# If no C compiler was specified, use CC. 12472LTCC=${LTCC-"$CC"} 12473 12474# Allow CC to be a program name with arguments. 12475compiler=$CC 12476 12477 12478# Allow CC to be a program name with arguments. 12479lt_save_CC="$CC" 12480CC=${F77-"f77"} 12481compiler=$CC 12482compiler_F77=$CC 12483cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 12484 12485echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12486echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12487echo "$as_me:$LINENO: result: $can_build_shared" >&5 12488echo "${ECHO_T}$can_build_shared" >&6 12489 12490echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12491echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12492test "$can_build_shared" = "no" && enable_shared=no 12493 12494# On AIX, shared libraries and static libraries use the same namespace, and 12495# are all built from PIC. 12496case "$host_os" in 12497aix3*) 12498 test "$enable_shared" = yes && enable_static=no 12499 if test -n "$RANLIB"; then 12500 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12501 postinstall_cmds='$RANLIB $lib' 12502 fi 12503 ;; 12504aix4*) 12505 test "$enable_shared" = yes && enable_static=no 12506 ;; 12507esac 12508echo "$as_me:$LINENO: result: $enable_shared" >&5 12509echo "${ECHO_T}$enable_shared" >&6 12510 12511echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12512echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12513# Make sure either enable_shared or enable_static is yes. 12514test "$enable_shared" = yes || enable_static=yes 12515echo "$as_me:$LINENO: result: $enable_static" >&5 12516echo "${ECHO_T}$enable_static" >&6 12517 12518test "$ld_shlibs_F77" = no && can_build_shared=no 12519 12520GCC_F77="$G77" 12521LD_F77="$LD" 12522 12523lt_prog_compiler_wl_F77= 12524lt_prog_compiler_pic_F77= 12525lt_prog_compiler_static_F77= 12526 12527echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12528echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12529 12530 if test "$GCC" = yes; then 12531 lt_prog_compiler_wl_F77='-Wl,' 12532 lt_prog_compiler_static_F77='-static' 12533 12534 case $host_os in 12535 aix*) 12536 # All AIX code is PIC. 12537 if test "$host_cpu" = ia64; then 12538 # AIX 5 now supports IA64 processor 12539 lt_prog_compiler_static_F77='-Bstatic' 12540 fi 12541 ;; 12542 12543 amigaos*) 12544 # FIXME: we need at least 68020 code to build shared libraries, but 12545 # adding the `-m68020' flag to GCC prevents building anything better, 12546 # like `-m68040'. 12547 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12548 ;; 12549 12550 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12551 # PIC is the default for these OSes. 12552 ;; 12553 12554 mingw* | pw32* | os2*) 12555 # This hack is so that the source file can tell whether it is being 12556 # built for inclusion in a dll (and should export symbols for example). 12557 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12558 ;; 12559 12560 darwin* | rhapsody*) 12561 # PIC is the default on this platform 12562 # Common symbols not allowed in MH_DYLIB files 12563 lt_prog_compiler_pic_F77='-fno-common' 12564 ;; 12565 12566 msdosdjgpp*) 12567 # Just because we use GCC doesn't mean we suddenly get shared libraries 12568 # on systems that don't support them. 12569 lt_prog_compiler_can_build_shared_F77=no 12570 enable_shared=no 12571 ;; 12572 12573 sysv4*MP*) 12574 if test -d /usr/nec; then 12575 lt_prog_compiler_pic_F77=-Kconform_pic 12576 fi 12577 ;; 12578 12579 hpux*) 12580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12581 # not for PA HP-UX. 12582 case "$host_cpu" in 12583 hppa*64*|ia64*) 12584 # +Z the default 12585 ;; 12586 *) 12587 lt_prog_compiler_pic_F77='-fPIC' 12588 ;; 12589 esac 12590 ;; 12591 12592 *) 12593 lt_prog_compiler_pic_F77='-fPIC' 12594 ;; 12595 esac 12596 else 12597 # PORTME Check for flag to pass linker flags through the system compiler. 12598 case $host_os in 12599 aix*) 12600 lt_prog_compiler_wl_F77='-Wl,' 12601 if test "$host_cpu" = ia64; then 12602 # AIX 5 now supports IA64 processor 12603 lt_prog_compiler_static_F77='-Bstatic' 12604 else 12605 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12606 fi 12607 ;; 12608 12609 mingw* | pw32* | os2*) 12610 # This hack is so that the source file can tell whether it is being 12611 # built for inclusion in a dll (and should export symbols for example). 12612 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12613 ;; 12614 12615 hpux9* | hpux10* | hpux11*) 12616 lt_prog_compiler_wl_F77='-Wl,' 12617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12618 # not for PA HP-UX. 12619 case "$host_cpu" in 12620 hppa*64*|ia64*) 12621 # +Z the default 12622 ;; 12623 *) 12624 lt_prog_compiler_pic_F77='+Z' 12625 ;; 12626 esac 12627 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12628 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12629 ;; 12630 12631 irix5* | irix6* | nonstopux*) 12632 lt_prog_compiler_wl_F77='-Wl,' 12633 # PIC (with -KPIC) is the default. 12634 lt_prog_compiler_static_F77='-non_shared' 12635 ;; 12636 12637 newsos6) 12638 lt_prog_compiler_pic_F77='-KPIC' 12639 lt_prog_compiler_static_F77='-Bstatic' 12640 ;; 12641 12642 linux*) 12643 case $CC in 12644 icc|ecc) 12645 lt_prog_compiler_wl_F77='-Wl,' 12646 lt_prog_compiler_pic_F77='-KPIC' 12647 lt_prog_compiler_static_F77='-static' 12648 ;; 12649 ccc) 12650 lt_prog_compiler_wl_F77='-Wl,' 12651 # All Alpha code is PIC. 12652 lt_prog_compiler_static_F77='-non_shared' 12653 ;; 12654 esac 12655 ;; 12656 12657 osf3* | osf4* | osf5*) 12658 lt_prog_compiler_wl_F77='-Wl,' 12659 # All OSF/1 code is PIC. 12660 lt_prog_compiler_static_F77='-non_shared' 12661 ;; 12662 12663 sco3.2v5*) 12664 lt_prog_compiler_pic_F77='-Kpic' 12665 lt_prog_compiler_static_F77='-dn' 12666 ;; 12667 12668 solaris*) 12669 lt_prog_compiler_wl_F77='-Wl,' 12670 lt_prog_compiler_pic_F77='-KPIC' 12671 lt_prog_compiler_static_F77='-Bstatic' 12672 ;; 12673 12674 sunos4*) 12675 lt_prog_compiler_wl_F77='-Qoption ld ' 12676 lt_prog_compiler_pic_F77='-PIC' 12677 lt_prog_compiler_static_F77='-Bstatic' 12678 ;; 12679 12680 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12681 lt_prog_compiler_wl_F77='-Wl,' 12682 lt_prog_compiler_pic_F77='-KPIC' 12683 lt_prog_compiler_static_F77='-Bstatic' 12684 ;; 12685 12686 sysv4*MP*) 12687 if test -d /usr/nec ;then 12688 lt_prog_compiler_pic_F77='-Kconform_pic' 12689 lt_prog_compiler_static_F77='-Bstatic' 12690 fi 12691 ;; 12692 12693 uts4*) 12694 lt_prog_compiler_pic_F77='-pic' 12695 lt_prog_compiler_static_F77='-Bstatic' 12696 ;; 12697 12698 *) 12699 lt_prog_compiler_can_build_shared_F77=no 12700 ;; 12701 esac 12702 fi 12703 12704echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12705echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12706 12707# 12708# Check to make sure the PIC flag actually works. 12709# 12710if test -n "$lt_prog_compiler_pic_F77"; then 12711 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12712echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12713if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12714 echo $ECHO_N "(cached) $ECHO_C" >&6 12715else 12716 lt_prog_compiler_pic_works_F77=no 12717 ac_outfile=conftest.$ac_objext 12718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12719 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12720 # Insert the option either (1) after the last *FLAGS variable, or 12721 # (2) before a word containing "conftest.", or (3) at the end. 12722 # Note that $ac_compile itself does not contain backslashes and begins 12723 # with a dollar sign (not a hyphen), so the echo should work correctly. 12724 # The option is referenced via a variable to avoid confusing sed. 12725 lt_compile=`echo "$ac_compile" | $SED \ 12726 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12728 -e 's:$: $lt_compiler_flag:'` 12729 (eval echo "\"\$as_me:12729: $lt_compile\"" >&5) 12730 (eval "$lt_compile" 2>conftest.err) 12731 ac_status=$? 12732 cat conftest.err >&5 12733 echo "$as_me:12733: \$? = $ac_status" >&5 12734 if (exit $ac_status) && test -s "$ac_outfile"; then 12735 # The compiler can only warn and ignore the option if not recognized 12736 # So say no if there are warnings 12737 if test ! -s conftest.err; then 12738 lt_prog_compiler_pic_works_F77=yes 12739 fi 12740 fi 12741 $rm conftest* 12742 12743fi 12744echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12745echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12746 12747if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12748 case $lt_prog_compiler_pic_F77 in 12749 "" | " "*) ;; 12750 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12751 esac 12752else 12753 lt_prog_compiler_pic_F77= 12754 lt_prog_compiler_can_build_shared_F77=no 12755fi 12756 12757fi 12758case "$host_os" in 12759 # For platforms which do not support PIC, -DPIC is meaningless: 12760 *djgpp*) 12761 lt_prog_compiler_pic_F77= 12762 ;; 12763 *) 12764 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12765 ;; 12766esac 12767 12768echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12769echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12770if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 12771 echo $ECHO_N "(cached) $ECHO_C" >&6 12772else 12773 lt_cv_prog_compiler_c_o_F77=no 12774 $rm -r conftest 2>/dev/null 12775 mkdir conftest 12776 cd conftest 12777 mkdir out 12778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12779 12780 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 12781 # that will create temporary files in the current directory regardless of 12782 # the output directory. Thus, making CWD read-only will cause this test 12783 # to fail, enabling locking or at least warning the user not to do parallel 12784 # builds. 12785 chmod -w . 12786 12787 lt_compiler_flag="-o out/conftest2.$ac_objext" 12788 # Insert the option either (1) after the last *FLAGS variable, or 12789 # (2) before a word containing "conftest.", or (3) at the end. 12790 # Note that $ac_compile itself does not contain backslashes and begins 12791 # with a dollar sign (not a hyphen), so the echo should work correctly. 12792 lt_compile=`echo "$ac_compile" | $SED \ 12793 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12795 -e 's:$: $lt_compiler_flag:'` 12796 (eval echo "\"\$as_me:12796: $lt_compile\"" >&5) 12797 (eval "$lt_compile" 2>out/conftest.err) 12798 ac_status=$? 12799 cat out/conftest.err >&5 12800 echo "$as_me:12800: \$? = $ac_status" >&5 12801 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12802 then 12803 # The compiler can only warn and ignore the option if not recognized 12804 # So say no if there are warnings 12805 if test ! -s out/conftest.err; then 12806 lt_cv_prog_compiler_c_o_F77=yes 12807 fi 12808 fi 12809 chmod u+w . 12810 $rm conftest* out/* 12811 rmdir out 12812 cd .. 12813 rmdir conftest 12814 $rm conftest* 12815 12816fi 12817echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 12818echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 12819 12820 12821hard_links="nottested" 12822if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 12823 # do not overwrite the value of need_locks provided by the user 12824 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12825echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12826 hard_links=yes 12827 $rm conftest* 12828 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12829 touch conftest.a 12830 ln conftest.a conftest.b 2>&5 || hard_links=no 12831 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12832 echo "$as_me:$LINENO: result: $hard_links" >&5 12833echo "${ECHO_T}$hard_links" >&6 12834 if test "$hard_links" = no; then 12835 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12836echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12837 need_locks=warn 12838 fi 12839else 12840 need_locks=no 12841fi 12842 12843echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12844echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12845 12846 runpath_var= 12847 allow_undefined_flag_F77= 12848 enable_shared_with_static_runtimes_F77=no 12849 archive_cmds_F77= 12850 archive_expsym_cmds_F77= 12851 old_archive_From_new_cmds_F77= 12852 old_archive_from_expsyms_cmds_F77= 12853 export_dynamic_flag_spec_F77= 12854 whole_archive_flag_spec_F77= 12855 thread_safe_flag_spec_F77= 12856 hardcode_libdir_flag_spec_F77= 12857 hardcode_libdir_flag_spec_ld_F77= 12858 hardcode_libdir_separator_F77= 12859 hardcode_direct_F77=no 12860 hardcode_minus_L_F77=no 12861 hardcode_shlibpath_var_F77=unsupported 12862 link_all_deplibs_F77=unknown 12863 hardcode_automatic_F77=no 12864 module_cmds_F77= 12865 module_expsym_cmds_F77= 12866 always_export_symbols_F77=no 12867 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12868 # include_expsyms should be a list of space-separated symbols to be *always* 12869 # included in the symbol list 12870 include_expsyms_F77= 12871 # exclude_expsyms can be an extended regexp of symbols to exclude 12872 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12874 # as well as any symbol that contains `d'. 12875 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 12876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12877 # platforms (ab)use it in PIC code, but their linkers get confused if 12878 # the symbol is explicitly referenced. Since portable code cannot 12879 # rely on this symbol name, it's probably fine to never include it in 12880 # preloaded symbol tables. 12881 extract_expsyms_cmds= 12882 12883 case $host_os in 12884 cygwin* | mingw* | pw32*) 12885 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12886 # When not using gcc, we currently assume that we are using 12887 # Microsoft Visual C++. 12888 if test "$GCC" != yes; then 12889 with_gnu_ld=no 12890 fi 12891 ;; 12892 openbsd*) 12893 with_gnu_ld=no 12894 ;; 12895 esac 12896 12897 ld_shlibs_F77=yes 12898 if test "$with_gnu_ld" = yes; then 12899 # If archive_cmds runs LD, not CC, wlarc should be empty 12900 wlarc='${wl}' 12901 12902 # See if GNU ld supports shared libraries. 12903 case $host_os in 12904 aix3* | aix4* | aix5*) 12905 # On AIX/PPC, the GNU linker is very broken 12906 if test "$host_cpu" != ia64; then 12907 ld_shlibs_F77=no 12908 cat <<EOF 1>&2 12909 12910*** Warning: the GNU linker, at least up to release 2.9.1, is reported 12911*** to be unable to reliably create shared libraries on AIX. 12912*** Therefore, libtool is disabling shared libraries support. If you 12913*** really care for shared libraries, you may want to modify your PATH 12914*** so that a non-GNU linker is found, and then restart. 12915 12916EOF 12917 fi 12918 ;; 12919 12920 amigaos*) 12921 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)' 12922 hardcode_libdir_flag_spec_F77='-L$libdir' 12923 hardcode_minus_L_F77=yes 12924 12925 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 12926 # that the semantics of dynamic libraries on AmigaOS, at least up 12927 # to version 4, is to share data among multiple programs linked 12928 # with the same dynamic library. Since this doesn't match the 12929 # behavior of shared libraries on other platforms, we can't use 12930 # them. 12931 ld_shlibs_F77=no 12932 ;; 12933 12934 beos*) 12935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12936 allow_undefined_flag_F77=unsupported 12937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12938 # support --undefined. This deserves some investigation. FIXME 12939 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12940 else 12941 ld_shlibs_F77=no 12942 fi 12943 ;; 12944 12945 cygwin* | mingw* | pw32*) 12946 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 12947 # as there is no search path for DLLs. 12948 hardcode_libdir_flag_spec_F77='-L$libdir' 12949 allow_undefined_flag_F77=unsupported 12950 always_export_symbols_F77=no 12951 enable_shared_with_static_runtimes_F77=yes 12952 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12953 12954 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12955 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12956 # If the export-symbols file already is a .def file (1st line 12957 # is EXPORTS), use it as is; otherwise, prepend... 12958 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12959 cp $export_symbols $output_objdir/$soname.def; 12960 else 12961 echo EXPORTS > $output_objdir/$soname.def; 12962 cat $export_symbols >> $output_objdir/$soname.def; 12963 fi~ 12964 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12965 else 12966 ld_shlibs=no 12967 fi 12968 ;; 12969 12970 netbsd*) 12971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12972 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12973 wlarc= 12974 else 12975 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12976 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12977 fi 12978 ;; 12979 12980 solaris* | sysv5*) 12981 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 12982 ld_shlibs_F77=no 12983 cat <<EOF 1>&2 12984 12985*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12986*** create shared libraries on Solaris systems. Therefore, libtool 12987*** is disabling shared libraries support. We urge you to upgrade GNU 12988*** binutils to release 2.9.1 or newer. Another option is to modify 12989*** your PATH or compiler configuration so that the native linker is 12990*** used, and then restart. 12991 12992EOF 12993 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12994 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12995 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12996 else 12997 ld_shlibs_F77=no 12998 fi 12999 ;; 13000 13001 sunos4*) 13002 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13003 wlarc= 13004 hardcode_direct_F77=yes 13005 hardcode_shlibpath_var_F77=no 13006 ;; 13007 13008 *) 13009 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13010 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13011 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13012 else 13013 ld_shlibs_F77=no 13014 fi 13015 ;; 13016 esac 13017 13018 if test "$ld_shlibs_F77" = yes; then 13019 runpath_var=LD_RUN_PATH 13020 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13021 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13022 # ancient GNU ld didn't support --whole-archive et. al. 13023 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13024 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13025 else 13026 whole_archive_flag_spec_F77= 13027 fi 13028 fi 13029 else 13030 # PORTME fill in a description of your system's linker (not GNU ld) 13031 case $host_os in 13032 aix3*) 13033 allow_undefined_flag_F77=unsupported 13034 always_export_symbols_F77=yes 13035 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' 13036 # Note: this linker hardcodes the directories in LIBPATH if there 13037 # are no directories specified by -L. 13038 hardcode_minus_L_F77=yes 13039 if test "$GCC" = yes && test -z "$link_static_flag"; then 13040 # Neither direct hardcoding nor static linking is supported with a 13041 # broken collect2. 13042 hardcode_direct_F77=unsupported 13043 fi 13044 ;; 13045 13046 aix4* | aix5*) 13047 if test "$host_cpu" = ia64; then 13048 # On IA64, the linker does run time linking by default, so we don't 13049 # have to do anything special. 13050 aix_use_runtimelinking=no 13051 exp_sym_flag='-Bexport' 13052 no_entry_flag="" 13053 else 13054 # If we're using GNU nm, then we don't want the "-C" option. 13055 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13056 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13057 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' 13058 else 13059 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' 13060 fi 13061 aix_use_runtimelinking=no 13062 13063 # Test if we are trying to use run time linking or normal 13064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13065 # need to do runtime linking. 13066 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13067 for ld_flag in $LDFLAGS; do 13068 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13069 aix_use_runtimelinking=yes 13070 break 13071 fi 13072 done 13073 esac 13074 13075 exp_sym_flag='-bexport' 13076 no_entry_flag='-bnoentry' 13077 fi 13078 13079 # When large executables or shared objects are built, AIX ld can 13080 # have problems creating the table of contents. If linking a library 13081 # or program results in "error TOC overflow" add -mminimal-toc to 13082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13084 13085 archive_cmds_F77='' 13086 hardcode_direct_F77=yes 13087 hardcode_libdir_separator_F77=':' 13088 link_all_deplibs_F77=yes 13089 13090 if test "$GCC" = yes; then 13091 case $host_os in aix4.012|aix4.012.*) 13092 # We only want to do this on AIX 4.2 and lower, the check 13093 # below for broken collect2 doesn't work under 4.3+ 13094 collect2name=`${CC} -print-prog-name=collect2` 13095 if test -f "$collect2name" && \ 13096 strings "$collect2name" | grep resolve_lib_name >/dev/null 13097 then 13098 # We have reworked collect2 13099 hardcode_direct_F77=yes 13100 else 13101 # We have old collect2 13102 hardcode_direct_F77=unsupported 13103 # It fails to find uninstalled libraries when the uninstalled 13104 # path is not listed in the libpath. Setting hardcode_minus_L 13105 # to unsupported forces relinking 13106 hardcode_minus_L_F77=yes 13107 hardcode_libdir_flag_spec_F77='-L$libdir' 13108 hardcode_libdir_separator_F77= 13109 fi 13110 esac 13111 shared_flag='-shared' 13112 else 13113 # not using gcc 13114 if test "$host_cpu" = ia64; then 13115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13116 # chokes on -Wl,-G. The following line is correct: 13117 shared_flag='-G' 13118 else 13119 if test "$aix_use_runtimelinking" = yes; then 13120 shared_flag='${wl}-G' 13121 else 13122 shared_flag='${wl}-bM:SRE' 13123 fi 13124 fi 13125 fi 13126 13127 # It seems that -bexpall does not export symbols beginning with 13128 # underscore (_), so it is better to generate a list of symbols to export. 13129 always_export_symbols_F77=yes 13130 if test "$aix_use_runtimelinking" = yes; then 13131 # Warning - without using the other runtime loading flags (-brtl), 13132 # -berok will link without error, but may produce a broken library. 13133 allow_undefined_flag_F77='-berok' 13134 # Determine the default libpath from the value encoded in an empty executable. 13135 cat >conftest.$ac_ext <<_ACEOF 13136 program main 13137 13138 end 13139_ACEOF 13140rm -f conftest.$ac_objext conftest$ac_exeext 13141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13142 (eval $ac_link) 2>&5 13143 ac_status=$? 13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13145 (exit $ac_status); } && 13146 { ac_try='test -s conftest$ac_exeext' 13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13148 (eval $ac_try) 2>&5 13149 ac_status=$? 13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13151 (exit $ac_status); }; }; then 13152 13153aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13154}'` 13155# Check for a 64-bit object if we didn't find anything. 13156if 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; } 13157}'`; fi 13158else 13159 echo "$as_me: failed program was:" >&5 13160sed 's/^/| /' conftest.$ac_ext >&5 13161 13162fi 13163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13164if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13165 13166 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13167 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" 13168 else 13169 if test "$host_cpu" = ia64; then 13170 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13171 allow_undefined_flag_F77="-z nodefs" 13172 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" 13173 else 13174 # Determine the default libpath from the value encoded in an empty executable. 13175 cat >conftest.$ac_ext <<_ACEOF 13176 program main 13177 13178 end 13179_ACEOF 13180rm -f conftest.$ac_objext conftest$ac_exeext 13181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13182 (eval $ac_link) 2>&5 13183 ac_status=$? 13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13185 (exit $ac_status); } && 13186 { ac_try='test -s conftest$ac_exeext' 13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13188 (eval $ac_try) 2>&5 13189 ac_status=$? 13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13191 (exit $ac_status); }; }; then 13192 13193aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13194}'` 13195# Check for a 64-bit object if we didn't find anything. 13196if 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; } 13197}'`; fi 13198else 13199 echo "$as_me: failed program was:" >&5 13200sed 's/^/| /' conftest.$ac_ext >&5 13201 13202fi 13203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13205 13206 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13207 # Warning - without using the other run time loading flags, 13208 # -berok will link without error, but may produce a broken library. 13209 no_undefined_flag_F77=' ${wl}-bernotok' 13210 allow_undefined_flag_F77=' ${wl}-berok' 13211 # -bexpall does not export symbols beginning with underscore (_) 13212 always_export_symbols_F77=yes 13213 # Exported symbols can be pulled into shared objects from archives 13214 whole_archive_flag_spec_F77=' ' 13215 archive_cmds_need_lc_F77=yes 13216 # This is similar to how AIX traditionally builds it's shared libraries. 13217 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' 13218 fi 13219 fi 13220 ;; 13221 13222 amigaos*) 13223 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)' 13224 hardcode_libdir_flag_spec_F77='-L$libdir' 13225 hardcode_minus_L_F77=yes 13226 # see comment about different semantics on the GNU ld section 13227 ld_shlibs_F77=no 13228 ;; 13229 13230 bsdi4*) 13231 export_dynamic_flag_spec_F77=-rdynamic 13232 ;; 13233 13234 cygwin* | mingw* | pw32*) 13235 # When not using gcc, we currently assume that we are using 13236 # Microsoft Visual C++. 13237 # hardcode_libdir_flag_spec is actually meaningless, as there is 13238 # no search path for DLLs. 13239 hardcode_libdir_flag_spec_F77=' ' 13240 allow_undefined_flag_F77=unsupported 13241 # Tell ltmain to make .lib files, not .a files. 13242 libext=lib 13243 # Tell ltmain to make .dll files, not .so files. 13244 shrext=".dll" 13245 # FIXME: Setting linknames here is a bad hack. 13246 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13247 # The linker will automatically build a .lib file if we build a DLL. 13248 old_archive_From_new_cmds_F77='true' 13249 # FIXME: Should let the user specify the lib program. 13250 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13251 fix_srcfile_path='`cygpath -w "$srcfile"`' 13252 enable_shared_with_static_runtimes_F77=yes 13253 ;; 13254 13255 darwin* | rhapsody*) 13256 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 13257 archive_cmds_need_lc_F77=no 13258 case "$host_os" in 13259 rhapsody* | darwin1.[012]) 13260 allow_undefined_flag_F77='-undefined suppress' 13261 ;; 13262 *) # Darwin 1.3 on 13263 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13264 ;; 13265 esac 13266 # FIXME: Relying on posixy $() will cause problems for 13267 # cross-compilation, but unfortunately the echo tests do not 13268 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 13269 # `"' quotes if we put them in here... so don't! 13270 lt_int_apple_cc_single_mod=no 13271 output_verbose_link_cmd='echo' 13272 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 13273 lt_int_apple_cc_single_mod=yes 13274 fi 13275 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13276 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13277 else 13278 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' 13279 fi 13280 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 13281 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13282 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13283 archive_expsym_cmds_F77='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}' 13284 else 13285 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 13286 fi 13287 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13288 hardcode_direct_F77=no 13289 hardcode_automatic_F77=yes 13290 hardcode_shlibpath_var_F77=unsupported 13291 whole_archive_flag_spec_F77='-all_load $convenience' 13292 link_all_deplibs_F77=yes 13293 fi 13294 ;; 13295 13296 dgux*) 13297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13298 hardcode_libdir_flag_spec_F77='-L$libdir' 13299 hardcode_shlibpath_var_F77=no 13300 ;; 13301 13302 freebsd1*) 13303 ld_shlibs_F77=no 13304 ;; 13305 13306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13307 # support. Future versions do this automatically, but an explicit c++rt0.o 13308 # does not break anything, and helps significantly (at the cost of a little 13309 # extra space). 13310 freebsd2.2*) 13311 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13312 hardcode_libdir_flag_spec_F77='-R$libdir' 13313 hardcode_direct_F77=yes 13314 hardcode_shlibpath_var_F77=no 13315 ;; 13316 13317 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13318 freebsd2*) 13319 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13320 hardcode_direct_F77=yes 13321 hardcode_minus_L_F77=yes 13322 hardcode_shlibpath_var_F77=no 13323 ;; 13324 13325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13326 freebsd*) 13327 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13328 hardcode_libdir_flag_spec_F77='-R$libdir' 13329 hardcode_direct_F77=yes 13330 hardcode_shlibpath_var_F77=no 13331 ;; 13332 13333 hpux9*) 13334 if test "$GCC" = yes; then 13335 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' 13336 else 13337 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' 13338 fi 13339 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13340 hardcode_libdir_separator_F77=: 13341 hardcode_direct_F77=yes 13342 13343 # hardcode_minus_L: Not really in the search PATH, 13344 # but as the default location of the library. 13345 hardcode_minus_L_F77=yes 13346 export_dynamic_flag_spec_F77='${wl}-E' 13347 ;; 13348 13349 hpux10* | hpux11*) 13350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13351 case "$host_cpu" in 13352 hppa*64*|ia64*) 13353 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13354 ;; 13355 *) 13356 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13357 ;; 13358 esac 13359 else 13360 case "$host_cpu" in 13361 hppa*64*|ia64*) 13362 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 13363 ;; 13364 *) 13365 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13366 ;; 13367 esac 13368 fi 13369 if test "$with_gnu_ld" = no; then 13370 case "$host_cpu" in 13371 hppa*64*) 13372 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13373 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13374 hardcode_libdir_separator_F77=: 13375 hardcode_direct_F77=no 13376 hardcode_shlibpath_var_F77=no 13377 ;; 13378 ia64*) 13379 hardcode_libdir_flag_spec_F77='-L$libdir' 13380 hardcode_direct_F77=no 13381 hardcode_shlibpath_var_F77=no 13382 13383 # hardcode_minus_L: Not really in the search PATH, 13384 # but as the default location of the library. 13385 hardcode_minus_L_F77=yes 13386 ;; 13387 *) 13388 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13389 hardcode_libdir_separator_F77=: 13390 hardcode_direct_F77=yes 13391 export_dynamic_flag_spec_F77='${wl}-E' 13392 13393 # hardcode_minus_L: Not really in the search PATH, 13394 # but as the default location of the library. 13395 hardcode_minus_L_F77=yes 13396 ;; 13397 esac 13398 fi 13399 ;; 13400 13401 irix5* | irix6* | nonstopux*) 13402 if test "$GCC" = yes; then 13403 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' 13404 else 13405 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' 13406 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13407 fi 13408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13409 hardcode_libdir_separator_F77=: 13410 link_all_deplibs_F77=yes 13411 ;; 13412 13413 netbsd*) 13414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13415 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13416 else 13417 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13418 fi 13419 hardcode_libdir_flag_spec_F77='-R$libdir' 13420 hardcode_direct_F77=yes 13421 hardcode_shlibpath_var_F77=no 13422 ;; 13423 13424 newsos6) 13425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13426 hardcode_direct_F77=yes 13427 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13428 hardcode_libdir_separator_F77=: 13429 hardcode_shlibpath_var_F77=no 13430 ;; 13431 13432 openbsd*) 13433 hardcode_direct_F77=yes 13434 hardcode_shlibpath_var_F77=no 13435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13436 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13437 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13438 export_dynamic_flag_spec_F77='${wl}-E' 13439 else 13440 case $host_os in 13441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13442 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13443 hardcode_libdir_flag_spec_F77='-R$libdir' 13444 ;; 13445 *) 13446 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13447 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13448 ;; 13449 esac 13450 fi 13451 ;; 13452 13453 os2*) 13454 hardcode_libdir_flag_spec_F77='-L$libdir' 13455 hardcode_minus_L_F77=yes 13456 allow_undefined_flag_F77=unsupported 13457 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' 13458 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13459 ;; 13460 13461 osf3*) 13462 if test "$GCC" = yes; then 13463 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13464 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' 13465 else 13466 allow_undefined_flag_F77=' -expect_unresolved \*' 13467 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' 13468 fi 13469 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13470 hardcode_libdir_separator_F77=: 13471 ;; 13472 13473 osf4* | osf5*) # as osf3* with the addition of -msym flag 13474 if test "$GCC" = yes; then 13475 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13476 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' 13477 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13478 else 13479 allow_undefined_flag_F77=' -expect_unresolved \*' 13480 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' 13481 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~ 13482 $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' 13483 13484 # Both c and cxx compiler support -rpath directly 13485 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13486 fi 13487 hardcode_libdir_separator_F77=: 13488 ;; 13489 13490 sco3.2v5*) 13491 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13492 hardcode_shlibpath_var_F77=no 13493 export_dynamic_flag_spec_F77='${wl}-Bexport' 13494 runpath_var=LD_RUN_PATH 13495 hardcode_runpath_var=yes 13496 ;; 13497 13498 solaris*) 13499 no_undefined_flag_F77=' -z text' 13500 if test "$GCC" = yes; then 13501 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13502 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13503 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13504 else 13505 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13506 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13507 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13508 fi 13509 hardcode_libdir_flag_spec_F77='-R$libdir' 13510 hardcode_shlibpath_var_F77=no 13511 case $host_os in 13512 solaris2.[0-5] | solaris2.[0-5].*) ;; 13513 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 13514 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13515 esac 13516 link_all_deplibs_F77=yes 13517 ;; 13518 13519 sunos4*) 13520 if test "x$host_vendor" = xsequent; then 13521 # Use $CC to link under sequent, because it throws in some extra .o 13522 # files that make .init and .fini sections work. 13523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13524 else 13525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13526 fi 13527 hardcode_libdir_flag_spec_F77='-L$libdir' 13528 hardcode_direct_F77=yes 13529 hardcode_minus_L_F77=yes 13530 hardcode_shlibpath_var_F77=no 13531 ;; 13532 13533 sysv4) 13534 case $host_vendor in 13535 sni) 13536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13537 hardcode_direct_F77=yes # is this really true??? 13538 ;; 13539 siemens) 13540 ## LD is ld it makes a PLAMLIB 13541 ## CC just makes a GrossModule. 13542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13543 reload_cmds_F77='$CC -r -o $output$reload_objs' 13544 hardcode_direct_F77=no 13545 ;; 13546 motorola) 13547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13549 ;; 13550 esac 13551 runpath_var='LD_RUN_PATH' 13552 hardcode_shlibpath_var_F77=no 13553 ;; 13554 13555 sysv4.3*) 13556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13557 hardcode_shlibpath_var_F77=no 13558 export_dynamic_flag_spec_F77='-Bexport' 13559 ;; 13560 13561 sysv4*MP*) 13562 if test -d /usr/nec; then 13563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13564 hardcode_shlibpath_var_F77=no 13565 runpath_var=LD_RUN_PATH 13566 hardcode_runpath_var=yes 13567 ld_shlibs_F77=yes 13568 fi 13569 ;; 13570 13571 sysv4.2uw2*) 13572 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13573 hardcode_direct_F77=yes 13574 hardcode_minus_L_F77=no 13575 hardcode_shlibpath_var_F77=no 13576 hardcode_runpath_var=yes 13577 runpath_var=LD_RUN_PATH 13578 ;; 13579 13580 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 13581 no_undefined_flag_F77='${wl}-z ${wl}text' 13582 if test "$GCC" = yes; then 13583 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13584 else 13585 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13586 fi 13587 runpath_var='LD_RUN_PATH' 13588 hardcode_shlibpath_var_F77=no 13589 ;; 13590 13591 sysv5*) 13592 no_undefined_flag_F77=' -z text' 13593 # $CC -shared without GNU ld will not create a library from C++ 13594 # object files and a static libstdc++, better avoid it by now 13595 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13596 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13598 hardcode_libdir_flag_spec_F77= 13599 hardcode_shlibpath_var_F77=no 13600 runpath_var='LD_RUN_PATH' 13601 ;; 13602 13603 uts4*) 13604 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13605 hardcode_libdir_flag_spec_F77='-L$libdir' 13606 hardcode_shlibpath_var_F77=no 13607 ;; 13608 13609 *) 13610 ld_shlibs_F77=no 13611 ;; 13612 esac 13613 fi 13614 13615echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 13616echo "${ECHO_T}$ld_shlibs_F77" >&6 13617test "$ld_shlibs_F77" = no && can_build_shared=no 13618 13619variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13620if test "$GCC" = yes; then 13621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13622fi 13623 13624# 13625# Do we need to explicitly link libc? 13626# 13627case "x$archive_cmds_need_lc_F77" in 13628x|xyes) 13629 # Assume -lc should be added 13630 archive_cmds_need_lc_F77=yes 13631 13632 if test "$enable_shared" = yes && test "$GCC" = yes; then 13633 case $archive_cmds_F77 in 13634 *'~'*) 13635 # FIXME: we may have to deal with multi-command sequences. 13636 ;; 13637 '$CC '*) 13638 # Test whether the compiler implicitly links with -lc since on some 13639 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13640 # to ld, don't add -lc before -lgcc. 13641 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13642echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13643 $rm conftest* 13644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13645 13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13647 (eval $ac_compile) 2>&5 13648 ac_status=$? 13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13650 (exit $ac_status); } 2>conftest.err; then 13651 soname=conftest 13652 lib=conftest 13653 libobjs=conftest.$ac_objext 13654 deplibs= 13655 wl=$lt_prog_compiler_wl_F77 13656 compiler_flags=-v 13657 linker_flags=-v 13658 verstring= 13659 output_objdir=. 13660 libname=conftest 13661 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 13662 allow_undefined_flag_F77= 13663 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13664 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13665 ac_status=$? 13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13667 (exit $ac_status); } 13668 then 13669 archive_cmds_need_lc_F77=no 13670 else 13671 archive_cmds_need_lc_F77=yes 13672 fi 13673 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 13674 else 13675 cat conftest.err 1>&5 13676 fi 13677 $rm conftest* 13678 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 13679echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 13680 ;; 13681 esac 13682 fi 13683 ;; 13684esac 13685 13686echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13687echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13688hardcode_action_F77= 13689if test -n "$hardcode_libdir_flag_spec_F77" || \ 13690 test -n "$runpath_var F77" || \ 13691 test "X$hardcode_automatic_F77"="Xyes" ; then 13692 13693 # We can hardcode non-existant directories. 13694 if test "$hardcode_direct_F77" != no && 13695 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13696 # have to relink, otherwise we might link with an installed library 13697 # when we should be linking with a yet-to-be-installed one 13698 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 13699 test "$hardcode_minus_L_F77" != no; then 13700 # Linking always hardcodes the temporary library directory. 13701 hardcode_action_F77=relink 13702 else 13703 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13704 hardcode_action_F77=immediate 13705 fi 13706else 13707 # We cannot hardcode anything, or else we can only hardcode existing 13708 # directories. 13709 hardcode_action_F77=unsupported 13710fi 13711echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 13712echo "${ECHO_T}$hardcode_action_F77" >&6 13713 13714if test "$hardcode_action_F77" = relink; then 13715 # Fast installation is not supported 13716 enable_fast_install=no 13717elif test "$shlibpath_overrides_runpath" = yes || 13718 test "$enable_shared" = no; then 13719 # Fast installation is not necessary 13720 enable_fast_install=needless 13721fi 13722 13723striplib= 13724old_striplib= 13725echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 13726echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 13727if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 13728 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13729 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13730 echo "$as_me:$LINENO: result: yes" >&5 13731echo "${ECHO_T}yes" >&6 13732else 13733# FIXME - insert some real tests, host_os isn't really good enough 13734 case $host_os in 13735 darwin*) 13736 if test -n "$STRIP" ; then 13737 striplib="$STRIP -x" 13738 echo "$as_me:$LINENO: result: yes" >&5 13739echo "${ECHO_T}yes" >&6 13740 else 13741 echo "$as_me:$LINENO: result: no" >&5 13742echo "${ECHO_T}no" >&6 13743fi 13744 ;; 13745 *) 13746 echo "$as_me:$LINENO: result: no" >&5 13747echo "${ECHO_T}no" >&6 13748 ;; 13749 esac 13750fi 13751 13752echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13753echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13754library_names_spec= 13755libname_spec='lib$name' 13756soname_spec= 13757shrext=".so" 13758postinstall_cmds= 13759postuninstall_cmds= 13760finish_cmds= 13761finish_eval= 13762shlibpath_var= 13763shlibpath_overrides_runpath=unknown 13764version_type=none 13765dynamic_linker="$host_os ld.so" 13766sys_lib_dlsearch_path_spec="/lib /usr/lib" 13767if test "$GCC" = yes; then 13768 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13769 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13770 # if the path contains ";" then we assume it to be the separator 13771 # otherwise default to the standard path separator (i.e. ":") - it is 13772 # assumed that no part of a normal pathname contains ";" but that should 13773 # okay in the real world where ";" in dirpaths is itself problematic. 13774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13775 else 13776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13777 fi 13778else 13779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13780fi 13781need_lib_prefix=unknown 13782hardcode_into_libs=no 13783 13784# when you set need_version to no, make sure it does not cause -set_version 13785# flags to be left without arguments 13786need_version=unknown 13787 13788case $host_os in 13789aix3*) 13790 version_type=linux 13791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13792 shlibpath_var=LIBPATH 13793 13794 # AIX 3 has no versioning support, so we append a major version to the name. 13795 soname_spec='${libname}${release}${shared_ext}$major' 13796 ;; 13797 13798aix4* | aix5*) 13799 version_type=linux 13800 need_lib_prefix=no 13801 need_version=no 13802 hardcode_into_libs=yes 13803 if test "$host_cpu" = ia64; then 13804 # AIX 5 supports IA64 13805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13806 shlibpath_var=LD_LIBRARY_PATH 13807 else 13808 # With GCC up to 2.95.x, collect2 would create an import file 13809 # for dependence libraries. The import file would start with 13810 # the line `#! .'. This would cause the generated library to 13811 # depend on `.', always an invalid library. This was fixed in 13812 # development snapshots of GCC prior to 3.0. 13813 case $host_os in 13814 aix4 | aix4.[01] | aix4.[01].*) 13815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13816 echo ' yes ' 13817 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13818 : 13819 else 13820 can_build_shared=no 13821 fi 13822 ;; 13823 esac 13824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13825 # soname into executable. Probably we can add versioning support to 13826 # collect2, so additional links can be useful in future. 13827 if test "$aix_use_runtimelinking" = yes; then 13828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13829 # instead of lib<name>.a to let people know that these are not 13830 # typical AIX shared libraries. 13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13832 else 13833 # We preserve .a as extension for shared libraries through AIX4.2 13834 # and later when we are not doing run time linking. 13835 library_names_spec='${libname}${release}.a $libname.a' 13836 soname_spec='${libname}${release}${shared_ext}$major' 13837 fi 13838 shlibpath_var=LIBPATH 13839 fi 13840 ;; 13841 13842amigaos*) 13843 library_names_spec='$libname.ixlibrary $libname.a' 13844 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13845 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' 13846 ;; 13847 13848beos*) 13849 library_names_spec='${libname}${shared_ext}' 13850 dynamic_linker="$host_os ld.so" 13851 shlibpath_var=LIBRARY_PATH 13852 ;; 13853 13854bsdi4*) 13855 version_type=linux 13856 need_version=no 13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13858 soname_spec='${libname}${release}${shared_ext}$major' 13859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13860 shlibpath_var=LD_LIBRARY_PATH 13861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13863 # the default ld.so.conf also contains /usr/contrib/lib and 13864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13865 # libtool to hard-code these into programs 13866 ;; 13867 13868cygwin* | mingw* | pw32*) 13869 version_type=windows 13870 shrext=".dll" 13871 need_version=no 13872 need_lib_prefix=no 13873 13874 case $GCC,$host_os in 13875 yes,cygwin* | yes,mingw* | yes,pw32*) 13876 library_names_spec='$libname.dll.a' 13877 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13878 postinstall_cmds='base_file=`basename \${file}`~ 13879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13880 dldir=$destdir/`dirname \$dlpath`~ 13881 test -d \$dldir || mkdir -p \$dldir~ 13882 $install_prog $dir/$dlname \$dldir/$dlname' 13883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13884 dlpath=$dir/\$dldll~ 13885 $rm \$dlpath' 13886 shlibpath_overrides_runpath=yes 13887 13888 case $host_os in 13889 cygwin*) 13890 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13892 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 13893 ;; 13894 mingw*) 13895 # MinGW DLLs use traditional 'lib' prefix 13896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13898 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13899 # It is most probably a Windows format PATH printed by 13900 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13901 # path with ; separators, and with drive letters. We can handle the 13902 # drive letters (cygwin fileutils understands them), so leave them, 13903 # especially as we might pass files found there to a mingw objdump, 13904 # which wouldn't understand a cygwinified path. Ahh. 13905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13906 else 13907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13908 fi 13909 ;; 13910 pw32*) 13911 # pw32 DLLs use 'pw' prefix rather than 'lib' 13912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 13913 ;; 13914 esac 13915 ;; 13916 13917 *) 13918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13919 ;; 13920 esac 13921 dynamic_linker='Win32 ld.exe' 13922 # FIXME: first we should search . and the directory the executable is in 13923 shlibpath_var=PATH 13924 ;; 13925 13926darwin* | rhapsody*) 13927 dynamic_linker="$host_os dyld" 13928 version_type=darwin 13929 need_lib_prefix=no 13930 need_version=no 13931 # FIXME: Relying on posixy $() will cause problems for 13932 # cross-compilation, but unfortunately the echo tests do not 13933 # yet detect zsh echo's removal of \ escapes. 13934 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13935 soname_spec='${libname}${release}${major}$shared_ext' 13936 shlibpath_overrides_runpath=yes 13937 shlibpath_var=DYLD_LIBRARY_PATH 13938 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 13939 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13940 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 13941 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"` 13942 fi 13943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13944 ;; 13945 13946dgux*) 13947 version_type=linux 13948 need_lib_prefix=no 13949 need_version=no 13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13951 soname_spec='${libname}${release}${shared_ext}$major' 13952 shlibpath_var=LD_LIBRARY_PATH 13953 ;; 13954 13955freebsd1*) 13956 dynamic_linker=no 13957 ;; 13958 13959freebsd*) 13960 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 13961 version_type=freebsd-$objformat 13962 case $version_type in 13963 freebsd-elf*) 13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13965 need_version=no 13966 need_lib_prefix=no 13967 ;; 13968 freebsd-*) 13969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13970 need_version=yes 13971 ;; 13972 esac 13973 shlibpath_var=LD_LIBRARY_PATH 13974 case $host_os in 13975 freebsd2*) 13976 shlibpath_overrides_runpath=yes 13977 ;; 13978 freebsd3.01* | freebsdelf3.01*) 13979 shlibpath_overrides_runpath=yes 13980 hardcode_into_libs=yes 13981 ;; 13982 *) # from 3.2 on 13983 shlibpath_overrides_runpath=no 13984 hardcode_into_libs=yes 13985 ;; 13986 esac 13987 ;; 13988 13989gnu*) 13990 version_type=linux 13991 need_lib_prefix=no 13992 need_version=no 13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13994 soname_spec='${libname}${release}${shared_ext}$major' 13995 shlibpath_var=LD_LIBRARY_PATH 13996 hardcode_into_libs=yes 13997 ;; 13998 13999hpux9* | hpux10* | hpux11*) 14000 # Give a soname corresponding to the major version so that dld.sl refuses to 14001 # link against other versions. 14002 version_type=sunos 14003 need_lib_prefix=no 14004 need_version=no 14005 case "$host_cpu" in 14006 ia64*) 14007 shrext='.so' 14008 hardcode_into_libs=yes 14009 dynamic_linker="$host_os dld.so" 14010 shlibpath_var=LD_LIBRARY_PATH 14011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14013 soname_spec='${libname}${release}${shared_ext}$major' 14014 if test "X$HPUX_IA64_MODE" = X32; then 14015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14016 else 14017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14018 fi 14019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14020 ;; 14021 hppa*64*) 14022 shrext='.sl' 14023 hardcode_into_libs=yes 14024 dynamic_linker="$host_os dld.sl" 14025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14028 soname_spec='${libname}${release}${shared_ext}$major' 14029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14031 ;; 14032 *) 14033 shrext='.sl' 14034 dynamic_linker="$host_os dld.sl" 14035 shlibpath_var=SHLIB_PATH 14036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14038 soname_spec='${libname}${release}${shared_ext}$major' 14039 ;; 14040 esac 14041 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14042 postinstall_cmds='chmod 555 $lib' 14043 ;; 14044 14045irix5* | irix6* | nonstopux*) 14046 case $host_os in 14047 nonstopux*) version_type=nonstopux ;; 14048 *) 14049 if test "$lt_cv_prog_gnu_ld" = yes; then 14050 version_type=linux 14051 else 14052 version_type=irix 14053 fi ;; 14054 esac 14055 need_lib_prefix=no 14056 need_version=no 14057 soname_spec='${libname}${release}${shared_ext}$major' 14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14059 case $host_os in 14060 irix5* | nonstopux*) 14061 libsuff= shlibsuff= 14062 ;; 14063 *) 14064 case $LD in # libtool.m4 will add one of these switches to LD 14065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14066 libsuff= shlibsuff= libmagic=32-bit;; 14067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14068 libsuff=32 shlibsuff=N32 libmagic=N32;; 14069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14070 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14071 *) libsuff= shlibsuff= libmagic=never-match;; 14072 esac 14073 ;; 14074 esac 14075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14076 shlibpath_overrides_runpath=no 14077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14079 hardcode_into_libs=yes 14080 ;; 14081 14082# No shared lib support for Linux oldld, aout, or coff. 14083linux*oldld* | linux*aout* | linux*coff*) 14084 dynamic_linker=no 14085 ;; 14086 14087# This must be Linux ELF. 14088linux*) 14089 version_type=linux 14090 need_lib_prefix=no 14091 need_version=no 14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14093 soname_spec='${libname}${release}${shared_ext}$major' 14094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14095 shlibpath_var=LD_LIBRARY_PATH 14096 shlibpath_overrides_runpath=no 14097 # This implies no fast_install, which is unacceptable. 14098 # Some rework will be needed to allow for fast_install 14099 # before this can be enabled. 14100 hardcode_into_libs=yes 14101 14102 # We used to test for /lib/ld.so.1 and disable shared libraries on 14103 # powerpc, because MkLinux only supported shared libraries with the 14104 # GNU dynamic linker. Since this was broken with cross compilers, 14105 # most powerpc-linux boxes support dynamic linking these days and 14106 # people can always --disable-shared, the test was removed, and we 14107 # assume the GNU/Linux dynamic linker is in use. 14108 dynamic_linker='GNU/Linux ld.so' 14109 ;; 14110 14111netbsd*) 14112 version_type=sunos 14113 need_lib_prefix=no 14114 need_version=no 14115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14118 dynamic_linker='NetBSD (a.out) ld.so' 14119 else 14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 14121 soname_spec='${libname}${release}${shared_ext}$major' 14122 dynamic_linker='NetBSD ld.elf_so' 14123 fi 14124 shlibpath_var=LD_LIBRARY_PATH 14125 shlibpath_overrides_runpath=yes 14126 hardcode_into_libs=yes 14127 ;; 14128 14129newsos6) 14130 version_type=linux 14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14132 shlibpath_var=LD_LIBRARY_PATH 14133 shlibpath_overrides_runpath=yes 14134 ;; 14135 14136nto-qnx) 14137 version_type=linux 14138 need_lib_prefix=no 14139 need_version=no 14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14141 soname_spec='${libname}${release}${shared_ext}$major' 14142 shlibpath_var=LD_LIBRARY_PATH 14143 shlibpath_overrides_runpath=yes 14144 ;; 14145 14146openbsd*) 14147 version_type=sunos 14148 need_lib_prefix=no 14149 need_version=no 14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14152 shlibpath_var=LD_LIBRARY_PATH 14153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14154 case $host_os in 14155 openbsd2.[89] | openbsd2.[89].*) 14156 shlibpath_overrides_runpath=no 14157 ;; 14158 *) 14159 shlibpath_overrides_runpath=yes 14160 ;; 14161 esac 14162 else 14163 shlibpath_overrides_runpath=yes 14164 fi 14165 ;; 14166 14167os2*) 14168 libname_spec='$name' 14169 shrext=".dll" 14170 need_lib_prefix=no 14171 library_names_spec='$libname${shared_ext} $libname.a' 14172 dynamic_linker='OS/2 ld.exe' 14173 shlibpath_var=LIBPATH 14174 ;; 14175 14176osf3* | osf4* | osf5*) 14177 version_type=osf 14178 need_lib_prefix=no 14179 need_version=no 14180 soname_spec='${libname}${release}${shared_ext}$major' 14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14182 shlibpath_var=LD_LIBRARY_PATH 14183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14185 ;; 14186 14187sco3.2v5*) 14188 version_type=osf 14189 soname_spec='${libname}${release}${shared_ext}$major' 14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14191 shlibpath_var=LD_LIBRARY_PATH 14192 ;; 14193 14194solaris*) 14195 version_type=linux 14196 need_lib_prefix=no 14197 need_version=no 14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14199 soname_spec='${libname}${release}${shared_ext}$major' 14200 shlibpath_var=LD_LIBRARY_PATH 14201 shlibpath_overrides_runpath=yes 14202 hardcode_into_libs=yes 14203 # ldd complains unless libraries are executable 14204 postinstall_cmds='chmod +x $lib' 14205 ;; 14206 14207sunos4*) 14208 version_type=sunos 14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14211 shlibpath_var=LD_LIBRARY_PATH 14212 shlibpath_overrides_runpath=yes 14213 if test "$with_gnu_ld" = yes; then 14214 need_lib_prefix=no 14215 fi 14216 need_version=yes 14217 ;; 14218 14219sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14220 version_type=linux 14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14222 soname_spec='${libname}${release}${shared_ext}$major' 14223 shlibpath_var=LD_LIBRARY_PATH 14224 case $host_vendor in 14225 sni) 14226 shlibpath_overrides_runpath=no 14227 need_lib_prefix=no 14228 export_dynamic_flag_spec='${wl}-Blargedynsym' 14229 runpath_var=LD_RUN_PATH 14230 ;; 14231 siemens) 14232 need_lib_prefix=no 14233 ;; 14234 motorola) 14235 need_lib_prefix=no 14236 need_version=no 14237 shlibpath_overrides_runpath=no 14238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14239 ;; 14240 esac 14241 ;; 14242 14243sysv4*MP*) 14244 if test -d /usr/nec ;then 14245 version_type=linux 14246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14247 soname_spec='$libname${shared_ext}.$major' 14248 shlibpath_var=LD_LIBRARY_PATH 14249 fi 14250 ;; 14251 14252uts4*) 14253 version_type=linux 14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14255 soname_spec='${libname}${release}${shared_ext}$major' 14256 shlibpath_var=LD_LIBRARY_PATH 14257 ;; 14258 14259*) 14260 dynamic_linker=no 14261 ;; 14262esac 14263echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14264echo "${ECHO_T}$dynamic_linker" >&6 14265test "$dynamic_linker" = no && can_build_shared=no 14266 14267 14268# The else clause should only fire when bootstrapping the 14269# libtool distribution, otherwise you forgot to ship ltmain.sh 14270# with your package, and you will get complaints that there are 14271# no rules to generate ltmain.sh. 14272if test -f "$ltmain"; then 14273 # See if we are running on zsh, and set the options which allow our commands through 14274 # without removal of \ escapes. 14275 if test -n "${ZSH_VERSION+set}" ; then 14276 setopt NO_GLOB_SUBST 14277 fi 14278 # Now quote all the things that may contain metacharacters while being 14279 # careful not to overquote the AC_SUBSTed values. We take copies of the 14280 # variables and quote the copies for generation of the libtool script. 14281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 14282 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14283 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14284 deplibs_check_method reload_flag reload_cmds need_locks \ 14285 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14286 lt_cv_sys_global_symbol_to_c_name_address \ 14287 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14288 old_postinstall_cmds old_postuninstall_cmds \ 14289 compiler_F77 \ 14290 CC_F77 \ 14291 LD_F77 \ 14292 lt_prog_compiler_wl_F77 \ 14293 lt_prog_compiler_pic_F77 \ 14294 lt_prog_compiler_static_F77 \ 14295 lt_prog_compiler_no_builtin_flag_F77 \ 14296 export_dynamic_flag_spec_F77 \ 14297 thread_safe_flag_spec_F77 \ 14298 whole_archive_flag_spec_F77 \ 14299 enable_shared_with_static_runtimes_F77 \ 14300 old_archive_cmds_F77 \ 14301 old_archive_from_new_cmds_F77 \ 14302 predep_objects_F77 \ 14303 postdep_objects_F77 \ 14304 predeps_F77 \ 14305 postdeps_F77 \ 14306 compiler_lib_search_path_F77 \ 14307 archive_cmds_F77 \ 14308 archive_expsym_cmds_F77 \ 14309 postinstall_cmds_F77 \ 14310 postuninstall_cmds_F77 \ 14311 old_archive_from_expsyms_cmds_F77 \ 14312 allow_undefined_flag_F77 \ 14313 no_undefined_flag_F77 \ 14314 export_symbols_cmds_F77 \ 14315 hardcode_libdir_flag_spec_F77 \ 14316 hardcode_libdir_flag_spec_ld_F77 \ 14317 hardcode_libdir_separator_F77 \ 14318 hardcode_automatic_F77 \ 14319 module_cmds_F77 \ 14320 module_expsym_cmds_F77 \ 14321 lt_cv_prog_compiler_c_o_F77 \ 14322 exclude_expsyms_F77 \ 14323 include_expsyms_F77; do 14324 14325 case $var in 14326 old_archive_cmds_F77 | \ 14327 old_archive_from_new_cmds_F77 | \ 14328 archive_cmds_F77 | \ 14329 archive_expsym_cmds_F77 | \ 14330 module_cmds_F77 | \ 14331 module_expsym_cmds_F77 | \ 14332 old_archive_from_expsyms_cmds_F77 | \ 14333 export_symbols_cmds_F77 | \ 14334 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14335 postinstall_cmds | postuninstall_cmds | \ 14336 old_postinstall_cmds | old_postuninstall_cmds | \ 14337 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14338 # Double-quote double-evaled strings. 14339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14340 ;; 14341 *) 14342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14343 ;; 14344 esac 14345 done 14346 14347 case $lt_echo in 14348 *'\$0 --fallback-echo"') 14349 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14350 ;; 14351 esac 14352 14353cfgfile="$ofile" 14354 14355 cat <<__EOF__ >> "$cfgfile" 14356# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14357 14358# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14359 14360# Shell to use when invoking shell scripts. 14361SHELL=$lt_SHELL 14362 14363# Whether or not to build shared libraries. 14364build_libtool_libs=$enable_shared 14365 14366# Whether or not to build static libraries. 14367build_old_libs=$enable_static 14368 14369# Whether or not to add -lc for building shared libraries. 14370build_libtool_need_lc=$archive_cmds_need_lc_F77 14371 14372# Whether or not to disallow shared libs when runtime libs are static 14373allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14374 14375# Whether or not to optimize for fast installation. 14376fast_install=$enable_fast_install 14377 14378# The host system. 14379host_alias=$host_alias 14380host=$host 14381 14382# An echo program that does not interpret backslashes. 14383echo=$lt_echo 14384 14385# The archiver. 14386AR=$lt_AR 14387AR_FLAGS=$lt_AR_FLAGS 14388 14389# A C compiler. 14390LTCC=$lt_LTCC 14391 14392# A language-specific compiler. 14393CC=$lt_compiler_F77 14394 14395# Is the compiler the GNU C compiler? 14396with_gcc=$GCC_F77 14397 14398# An ERE matcher. 14399EGREP=$lt_EGREP 14400 14401# The linker used to build libraries. 14402LD=$lt_LD_F77 14403 14404# Whether we need hard or soft links. 14405LN_S=$lt_LN_S 14406 14407# A BSD-compatible nm program. 14408NM=$lt_NM 14409 14410# A symbol stripping program 14411STRIP=$STRIP 14412 14413# Used to examine libraries when file_magic_cmd begins "file" 14414MAGIC_CMD=$MAGIC_CMD 14415 14416# Used on cygwin: DLL creation program. 14417DLLTOOL="$DLLTOOL" 14418 14419# Used on cygwin: object dumper. 14420OBJDUMP="$OBJDUMP" 14421 14422# Used on cygwin: assembler. 14423AS="$AS" 14424 14425# The name of the directory that contains temporary libtool files. 14426objdir=$objdir 14427 14428# How to create reloadable object files. 14429reload_flag=$lt_reload_flag 14430reload_cmds=$lt_reload_cmds 14431 14432# How to pass a linker flag through the compiler. 14433wl=$lt_lt_prog_compiler_wl_F77 14434 14435# Object file suffix (normally "o"). 14436objext="$ac_objext" 14437 14438# Old archive suffix (normally "a"). 14439libext="$libext" 14440 14441# Shared library suffix (normally ".so"). 14442shrext='$shrext' 14443 14444# Executable file suffix (normally ""). 14445exeext="$exeext" 14446 14447# Additional compiler flags for building library objects. 14448pic_flag=$lt_lt_prog_compiler_pic_F77 14449pic_mode=$pic_mode 14450 14451# What is the maximum length of a command? 14452max_cmd_len=$lt_cv_sys_max_cmd_len 14453 14454# Does compiler simultaneously support -c and -o options? 14455compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14456 14457# Must we lock files when doing compilation ? 14458need_locks=$lt_need_locks 14459 14460# Do we need the lib prefix for modules? 14461need_lib_prefix=$need_lib_prefix 14462 14463# Do we need a version for libraries? 14464need_version=$need_version 14465 14466# Whether dlopen is supported. 14467dlopen_support=$enable_dlopen 14468 14469# Whether dlopen of programs is supported. 14470dlopen_self=$enable_dlopen_self 14471 14472# Whether dlopen of statically linked programs is supported. 14473dlopen_self_static=$enable_dlopen_self_static 14474 14475# Compiler flag to prevent dynamic linking. 14476link_static_flag=$lt_lt_prog_compiler_static_F77 14477 14478# Compiler flag to turn off builtin functions. 14479no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14480 14481# Compiler flag to allow reflexive dlopens. 14482export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14483 14484# Compiler flag to generate shared objects directly from archives. 14485whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14486 14487# Compiler flag to generate thread-safe objects. 14488thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14489 14490# Library versioning type. 14491version_type=$version_type 14492 14493# Format of library name prefix. 14494libname_spec=$lt_libname_spec 14495 14496# List of archive names. First name is the real one, the rest are links. 14497# The last name is the one that the linker finds with -lNAME. 14498library_names_spec=$lt_library_names_spec 14499 14500# The coded name of the library, if different from the real name. 14501soname_spec=$lt_soname_spec 14502 14503# Commands used to build and install an old-style archive. 14504RANLIB=$lt_RANLIB 14505old_archive_cmds=$lt_old_archive_cmds_F77 14506old_postinstall_cmds=$lt_old_postinstall_cmds 14507old_postuninstall_cmds=$lt_old_postuninstall_cmds 14508 14509# Create an old-style archive from a shared archive. 14510old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14511 14512# Create a temporary old-style archive to link instead of a shared archive. 14513old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14514 14515# Commands used to build and install a shared archive. 14516archive_cmds=$lt_archive_cmds_F77 14517archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14518postinstall_cmds=$lt_postinstall_cmds 14519postuninstall_cmds=$lt_postuninstall_cmds 14520 14521# Commands used to build a loadable module (assumed same as above if empty) 14522module_cmds=$lt_module_cmds_F77 14523module_expsym_cmds=$lt_module_expsym_cmds_F77 14524 14525# Commands to strip libraries. 14526old_striplib=$lt_old_striplib 14527striplib=$lt_striplib 14528 14529# Dependencies to place before the objects being linked to create a 14530# shared library. 14531predep_objects=$lt_predep_objects_F77 14532 14533# Dependencies to place after the objects being linked to create a 14534# shared library. 14535postdep_objects=$lt_postdep_objects_F77 14536 14537# Dependencies to place before the objects being linked to create a 14538# shared library. 14539predeps=$lt_predeps_F77 14540 14541# Dependencies to place after the objects being linked to create a 14542# shared library. 14543postdeps=$lt_postdeps_F77 14544 14545# The library search path used internally by the compiler when linking 14546# a shared library. 14547compiler_lib_search_path=$lt_compiler_lib_search_path_F77 14548 14549# Method to check whether dependent libraries are shared objects. 14550deplibs_check_method=$lt_deplibs_check_method 14551 14552# Command to use when deplibs_check_method == file_magic. 14553file_magic_cmd=$lt_file_magic_cmd 14554 14555# Flag that allows shared libraries with undefined symbols to be built. 14556allow_undefined_flag=$lt_allow_undefined_flag_F77 14557 14558# Flag that forces no undefined symbols. 14559no_undefined_flag=$lt_no_undefined_flag_F77 14560 14561# Commands used to finish a libtool library installation in a directory. 14562finish_cmds=$lt_finish_cmds 14563 14564# Same as above, but a single script fragment to be evaled but not shown. 14565finish_eval=$lt_finish_eval 14566 14567# Take the output of nm and produce a listing of raw symbols and C names. 14568global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14569 14570# Transform the output of nm in a proper C declaration 14571global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14572 14573# Transform the output of nm in a C name address pair 14574global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14575 14576# This is the shared library runtime path variable. 14577runpath_var=$runpath_var 14578 14579# This is the shared library path variable. 14580shlibpath_var=$shlibpath_var 14581 14582# Is shlibpath searched before the hard-coded library search path? 14583shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14584 14585# How to hardcode a shared library path into an executable. 14586hardcode_action=$hardcode_action_F77 14587 14588# Whether we should hardcode library paths into libraries. 14589hardcode_into_libs=$hardcode_into_libs 14590 14591# Flag to hardcode \$libdir into a binary during linking. 14592# This must work even if \$libdir does not exist. 14593hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 14594 14595# If ld is used when linking, flag to hardcode \$libdir into 14596# a binary during linking. This must work even if \$libdir does 14597# not exist. 14598hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 14599 14600# Whether we need a single -rpath flag with a separated argument. 14601hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 14602 14603# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14604# resulting binary. 14605hardcode_direct=$hardcode_direct_F77 14606 14607# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14608# resulting binary. 14609hardcode_minus_L=$hardcode_minus_L_F77 14610 14611# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14612# the resulting binary. 14613hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 14614 14615# Set to yes if building a shared library automatically hardcodes DIR into the library 14616# and all subsequent libraries and executables linked against it. 14617hardcode_automatic=$hardcode_automatic_F77 14618 14619# Variables whose values should be saved in libtool wrapper scripts and 14620# restored at relink time. 14621variables_saved_for_relink="$variables_saved_for_relink" 14622 14623# Whether libtool must link a program against all its dependency libraries. 14624link_all_deplibs=$link_all_deplibs_F77 14625 14626# Compile-time system search path for libraries 14627sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14628 14629# Run-time system search path for libraries 14630sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14631 14632# Fix the shell variable \$srcfile for the compiler. 14633fix_srcfile_path="$fix_srcfile_path_F77" 14634 14635# Set to yes if exported symbols are required. 14636always_export_symbols=$always_export_symbols_F77 14637 14638# The commands to list exported symbols. 14639export_symbols_cmds=$lt_export_symbols_cmds_F77 14640 14641# The commands to extract the exported symbol list from a shared archive. 14642extract_expsyms_cmds=$lt_extract_expsyms_cmds 14643 14644# Symbols that should not be listed in the preloaded symbols. 14645exclude_expsyms=$lt_exclude_expsyms_F77 14646 14647# Symbols that must always be exported. 14648include_expsyms=$lt_include_expsyms_F77 14649 14650# ### END LIBTOOL TAG CONFIG: $tagname 14651 14652__EOF__ 14653 14654 14655else 14656 # If there is no Makefile yet, we rely on a make rule to execute 14657 # `config.status --recheck' to rerun these tests and create the 14658 # libtool script then. 14659 test -f Makefile && make "$ltmain" 14660fi 14661 14662 14663ac_ext=c 14664ac_cpp='$CPP $CPPFLAGS' 14665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14667ac_compiler_gnu=$ac_cv_c_compiler_gnu 14668 14669CC="$lt_save_CC" 14670 14671 else 14672 tagname="" 14673 fi 14674 ;; 14675 14676 GCJ) 14677 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14678 14679 14680 14681# Source file extension for Java test sources. 14682ac_ext=java 14683 14684# Object file extension for compiled Java test sources. 14685objext=o 14686objext_GCJ=$objext 14687 14688# Code to be used in simple compile tests 14689lt_simple_compile_test_code="class foo {}\n" 14690 14691# Code to be used in simple link tests 14692lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 14693 14694# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14695 14696# If no C compiler was specified, use CC. 14697LTCC=${LTCC-"$CC"} 14698 14699# Allow CC to be a program name with arguments. 14700compiler=$CC 14701 14702 14703# Allow CC to be a program name with arguments. 14704lt_save_CC="$CC" 14705CC=${GCJ-"gcj"} 14706compiler=$CC 14707compiler_GCJ=$CC 14708 14709# GCJ did not exist at the time GCC didn't implicitly link libc in. 14710archive_cmds_need_lc_GCJ=no 14711 14712 14713lt_prog_compiler_no_builtin_flag_GCJ= 14714 14715if test "$GCC" = yes; then 14716 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 14717 14718 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14719echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 14720if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 14721 echo $ECHO_N "(cached) $ECHO_C" >&6 14722else 14723 lt_cv_prog_compiler_rtti_exceptions=no 14724 ac_outfile=conftest.$ac_objext 14725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14726 lt_compiler_flag="-fno-rtti -fno-exceptions" 14727 # Insert the option either (1) after the last *FLAGS variable, or 14728 # (2) before a word containing "conftest.", or (3) at the end. 14729 # Note that $ac_compile itself does not contain backslashes and begins 14730 # with a dollar sign (not a hyphen), so the echo should work correctly. 14731 # The option is referenced via a variable to avoid confusing sed. 14732 lt_compile=`echo "$ac_compile" | $SED \ 14733 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14735 -e 's:$: $lt_compiler_flag:'` 14736 (eval echo "\"\$as_me:14736: $lt_compile\"" >&5) 14737 (eval "$lt_compile" 2>conftest.err) 14738 ac_status=$? 14739 cat conftest.err >&5 14740 echo "$as_me:14740: \$? = $ac_status" >&5 14741 if (exit $ac_status) && test -s "$ac_outfile"; then 14742 # The compiler can only warn and ignore the option if not recognized 14743 # So say no if there are warnings 14744 if test ! -s conftest.err; then 14745 lt_cv_prog_compiler_rtti_exceptions=yes 14746 fi 14747 fi 14748 $rm conftest* 14749 14750fi 14751echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14752echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 14753 14754if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14755 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 14756else 14757 : 14758fi 14759 14760fi 14761 14762lt_prog_compiler_wl_GCJ= 14763lt_prog_compiler_pic_GCJ= 14764lt_prog_compiler_static_GCJ= 14765 14766echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14767echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14768 14769 if test "$GCC" = yes; then 14770 lt_prog_compiler_wl_GCJ='-Wl,' 14771 lt_prog_compiler_static_GCJ='-static' 14772 14773 case $host_os in 14774 aix*) 14775 # All AIX code is PIC. 14776 if test "$host_cpu" = ia64; then 14777 # AIX 5 now supports IA64 processor 14778 lt_prog_compiler_static_GCJ='-Bstatic' 14779 fi 14780 ;; 14781 14782 amigaos*) 14783 # FIXME: we need at least 68020 code to build shared libraries, but 14784 # adding the `-m68020' flag to GCC prevents building anything better, 14785 # like `-m68040'. 14786 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 14787 ;; 14788 14789 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14790 # PIC is the default for these OSes. 14791 ;; 14792 14793 mingw* | pw32* | os2*) 14794 # This hack is so that the source file can tell whether it is being 14795 # built for inclusion in a dll (and should export symbols for example). 14796 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14797 ;; 14798 14799 darwin* | rhapsody*) 14800 # PIC is the default on this platform 14801 # Common symbols not allowed in MH_DYLIB files 14802 lt_prog_compiler_pic_GCJ='-fno-common' 14803 ;; 14804 14805 msdosdjgpp*) 14806 # Just because we use GCC doesn't mean we suddenly get shared libraries 14807 # on systems that don't support them. 14808 lt_prog_compiler_can_build_shared_GCJ=no 14809 enable_shared=no 14810 ;; 14811 14812 sysv4*MP*) 14813 if test -d /usr/nec; then 14814 lt_prog_compiler_pic_GCJ=-Kconform_pic 14815 fi 14816 ;; 14817 14818 hpux*) 14819 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14820 # not for PA HP-UX. 14821 case "$host_cpu" in 14822 hppa*64*|ia64*) 14823 # +Z the default 14824 ;; 14825 *) 14826 lt_prog_compiler_pic_GCJ='-fPIC' 14827 ;; 14828 esac 14829 ;; 14830 14831 *) 14832 lt_prog_compiler_pic_GCJ='-fPIC' 14833 ;; 14834 esac 14835 else 14836 # PORTME Check for flag to pass linker flags through the system compiler. 14837 case $host_os in 14838 aix*) 14839 lt_prog_compiler_wl_GCJ='-Wl,' 14840 if test "$host_cpu" = ia64; then 14841 # AIX 5 now supports IA64 processor 14842 lt_prog_compiler_static_GCJ='-Bstatic' 14843 else 14844 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 14845 fi 14846 ;; 14847 14848 mingw* | pw32* | os2*) 14849 # This hack is so that the source file can tell whether it is being 14850 # built for inclusion in a dll (and should export symbols for example). 14851 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14852 ;; 14853 14854 hpux9* | hpux10* | hpux11*) 14855 lt_prog_compiler_wl_GCJ='-Wl,' 14856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14857 # not for PA HP-UX. 14858 case "$host_cpu" in 14859 hppa*64*|ia64*) 14860 # +Z the default 14861 ;; 14862 *) 14863 lt_prog_compiler_pic_GCJ='+Z' 14864 ;; 14865 esac 14866 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14867 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 14868 ;; 14869 14870 irix5* | irix6* | nonstopux*) 14871 lt_prog_compiler_wl_GCJ='-Wl,' 14872 # PIC (with -KPIC) is the default. 14873 lt_prog_compiler_static_GCJ='-non_shared' 14874 ;; 14875 14876 newsos6) 14877 lt_prog_compiler_pic_GCJ='-KPIC' 14878 lt_prog_compiler_static_GCJ='-Bstatic' 14879 ;; 14880 14881 linux*) 14882 case $CC in 14883 icc|ecc) 14884 lt_prog_compiler_wl_GCJ='-Wl,' 14885 lt_prog_compiler_pic_GCJ='-KPIC' 14886 lt_prog_compiler_static_GCJ='-static' 14887 ;; 14888 ccc) 14889 lt_prog_compiler_wl_GCJ='-Wl,' 14890 # All Alpha code is PIC. 14891 lt_prog_compiler_static_GCJ='-non_shared' 14892 ;; 14893 esac 14894 ;; 14895 14896 osf3* | osf4* | osf5*) 14897 lt_prog_compiler_wl_GCJ='-Wl,' 14898 # All OSF/1 code is PIC. 14899 lt_prog_compiler_static_GCJ='-non_shared' 14900 ;; 14901 14902 sco3.2v5*) 14903 lt_prog_compiler_pic_GCJ='-Kpic' 14904 lt_prog_compiler_static_GCJ='-dn' 14905 ;; 14906 14907 solaris*) 14908 lt_prog_compiler_wl_GCJ='-Wl,' 14909 lt_prog_compiler_pic_GCJ='-KPIC' 14910 lt_prog_compiler_static_GCJ='-Bstatic' 14911 ;; 14912 14913 sunos4*) 14914 lt_prog_compiler_wl_GCJ='-Qoption ld ' 14915 lt_prog_compiler_pic_GCJ='-PIC' 14916 lt_prog_compiler_static_GCJ='-Bstatic' 14917 ;; 14918 14919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14920 lt_prog_compiler_wl_GCJ='-Wl,' 14921 lt_prog_compiler_pic_GCJ='-KPIC' 14922 lt_prog_compiler_static_GCJ='-Bstatic' 14923 ;; 14924 14925 sysv4*MP*) 14926 if test -d /usr/nec ;then 14927 lt_prog_compiler_pic_GCJ='-Kconform_pic' 14928 lt_prog_compiler_static_GCJ='-Bstatic' 14929 fi 14930 ;; 14931 14932 uts4*) 14933 lt_prog_compiler_pic_GCJ='-pic' 14934 lt_prog_compiler_static_GCJ='-Bstatic' 14935 ;; 14936 14937 *) 14938 lt_prog_compiler_can_build_shared_GCJ=no 14939 ;; 14940 esac 14941 fi 14942 14943echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 14944echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 14945 14946# 14947# Check to make sure the PIC flag actually works. 14948# 14949if test -n "$lt_prog_compiler_pic_GCJ"; then 14950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 14951echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 14952if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 14953 echo $ECHO_N "(cached) $ECHO_C" >&6 14954else 14955 lt_prog_compiler_pic_works_GCJ=no 14956 ac_outfile=conftest.$ac_objext 14957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14958 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 14959 # Insert the option either (1) after the last *FLAGS variable, or 14960 # (2) before a word containing "conftest.", or (3) at the end. 14961 # Note that $ac_compile itself does not contain backslashes and begins 14962 # with a dollar sign (not a hyphen), so the echo should work correctly. 14963 # The option is referenced via a variable to avoid confusing sed. 14964 lt_compile=`echo "$ac_compile" | $SED \ 14965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14967 -e 's:$: $lt_compiler_flag:'` 14968 (eval echo "\"\$as_me:14968: $lt_compile\"" >&5) 14969 (eval "$lt_compile" 2>conftest.err) 14970 ac_status=$? 14971 cat conftest.err >&5 14972 echo "$as_me:14972: \$? = $ac_status" >&5 14973 if (exit $ac_status) && test -s "$ac_outfile"; then 14974 # The compiler can only warn and ignore the option if not recognized 14975 # So say no if there are warnings 14976 if test ! -s conftest.err; then 14977 lt_prog_compiler_pic_works_GCJ=yes 14978 fi 14979 fi 14980 $rm conftest* 14981 14982fi 14983echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 14984echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 14985 14986if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 14987 case $lt_prog_compiler_pic_GCJ in 14988 "" | " "*) ;; 14989 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 14990 esac 14991else 14992 lt_prog_compiler_pic_GCJ= 14993 lt_prog_compiler_can_build_shared_GCJ=no 14994fi 14995 14996fi 14997case "$host_os" in 14998 # For platforms which do not support PIC, -DPIC is meaningless: 14999 *djgpp*) 15000 lt_prog_compiler_pic_GCJ= 15001 ;; 15002 *) 15003 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15004 ;; 15005esac 15006 15007echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15008echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15009if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15010 echo $ECHO_N "(cached) $ECHO_C" >&6 15011else 15012 lt_cv_prog_compiler_c_o_GCJ=no 15013 $rm -r conftest 2>/dev/null 15014 mkdir conftest 15015 cd conftest 15016 mkdir out 15017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15018 15019 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 15020 # that will create temporary files in the current directory regardless of 15021 # the output directory. Thus, making CWD read-only will cause this test 15022 # to fail, enabling locking or at least warning the user not to do parallel 15023 # builds. 15024 chmod -w . 15025 15026 lt_compiler_flag="-o out/conftest2.$ac_objext" 15027 # Insert the option either (1) after the last *FLAGS variable, or 15028 # (2) before a word containing "conftest.", or (3) at the end. 15029 # Note that $ac_compile itself does not contain backslashes and begins 15030 # with a dollar sign (not a hyphen), so the echo should work correctly. 15031 lt_compile=`echo "$ac_compile" | $SED \ 15032 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15034 -e 's:$: $lt_compiler_flag:'` 15035 (eval echo "\"\$as_me:15035: $lt_compile\"" >&5) 15036 (eval "$lt_compile" 2>out/conftest.err) 15037 ac_status=$? 15038 cat out/conftest.err >&5 15039 echo "$as_me:15039: \$? = $ac_status" >&5 15040 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15041 then 15042 # The compiler can only warn and ignore the option if not recognized 15043 # So say no if there are warnings 15044 if test ! -s out/conftest.err; then 15045 lt_cv_prog_compiler_c_o_GCJ=yes 15046 fi 15047 fi 15048 chmod u+w . 15049 $rm conftest* out/* 15050 rmdir out 15051 cd .. 15052 rmdir conftest 15053 $rm conftest* 15054 15055fi 15056echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15057echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15058 15059 15060hard_links="nottested" 15061if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15062 # do not overwrite the value of need_locks provided by the user 15063 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15064echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15065 hard_links=yes 15066 $rm conftest* 15067 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15068 touch conftest.a 15069 ln conftest.a conftest.b 2>&5 || hard_links=no 15070 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15071 echo "$as_me:$LINENO: result: $hard_links" >&5 15072echo "${ECHO_T}$hard_links" >&6 15073 if test "$hard_links" = no; then 15074 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15075echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15076 need_locks=warn 15077 fi 15078else 15079 need_locks=no 15080fi 15081 15082echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15083echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15084 15085 runpath_var= 15086 allow_undefined_flag_GCJ= 15087 enable_shared_with_static_runtimes_GCJ=no 15088 archive_cmds_GCJ= 15089 archive_expsym_cmds_GCJ= 15090 old_archive_From_new_cmds_GCJ= 15091 old_archive_from_expsyms_cmds_GCJ= 15092 export_dynamic_flag_spec_GCJ= 15093 whole_archive_flag_spec_GCJ= 15094 thread_safe_flag_spec_GCJ= 15095 hardcode_libdir_flag_spec_GCJ= 15096 hardcode_libdir_flag_spec_ld_GCJ= 15097 hardcode_libdir_separator_GCJ= 15098 hardcode_direct_GCJ=no 15099 hardcode_minus_L_GCJ=no 15100 hardcode_shlibpath_var_GCJ=unsupported 15101 link_all_deplibs_GCJ=unknown 15102 hardcode_automatic_GCJ=no 15103 module_cmds_GCJ= 15104 module_expsym_cmds_GCJ= 15105 always_export_symbols_GCJ=no 15106 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15107 # include_expsyms should be a list of space-separated symbols to be *always* 15108 # included in the symbol list 15109 include_expsyms_GCJ= 15110 # exclude_expsyms can be an extended regexp of symbols to exclude 15111 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15112 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15113 # as well as any symbol that contains `d'. 15114 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15115 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15116 # platforms (ab)use it in PIC code, but their linkers get confused if 15117 # the symbol is explicitly referenced. Since portable code cannot 15118 # rely on this symbol name, it's probably fine to never include it in 15119 # preloaded symbol tables. 15120 extract_expsyms_cmds= 15121 15122 case $host_os in 15123 cygwin* | mingw* | pw32*) 15124 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15125 # When not using gcc, we currently assume that we are using 15126 # Microsoft Visual C++. 15127 if test "$GCC" != yes; then 15128 with_gnu_ld=no 15129 fi 15130 ;; 15131 openbsd*) 15132 with_gnu_ld=no 15133 ;; 15134 esac 15135 15136 ld_shlibs_GCJ=yes 15137 if test "$with_gnu_ld" = yes; then 15138 # If archive_cmds runs LD, not CC, wlarc should be empty 15139 wlarc='${wl}' 15140 15141 # See if GNU ld supports shared libraries. 15142 case $host_os in 15143 aix3* | aix4* | aix5*) 15144 # On AIX/PPC, the GNU linker is very broken 15145 if test "$host_cpu" != ia64; then 15146 ld_shlibs_GCJ=no 15147 cat <<EOF 1>&2 15148 15149*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15150*** to be unable to reliably create shared libraries on AIX. 15151*** Therefore, libtool is disabling shared libraries support. If you 15152*** really care for shared libraries, you may want to modify your PATH 15153*** so that a non-GNU linker is found, and then restart. 15154 15155EOF 15156 fi 15157 ;; 15158 15159 amigaos*) 15160 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)' 15161 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15162 hardcode_minus_L_GCJ=yes 15163 15164 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15165 # that the semantics of dynamic libraries on AmigaOS, at least up 15166 # to version 4, is to share data among multiple programs linked 15167 # with the same dynamic library. Since this doesn't match the 15168 # behavior of shared libraries on other platforms, we can't use 15169 # them. 15170 ld_shlibs_GCJ=no 15171 ;; 15172 15173 beos*) 15174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15175 allow_undefined_flag_GCJ=unsupported 15176 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15177 # support --undefined. This deserves some investigation. FIXME 15178 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15179 else 15180 ld_shlibs_GCJ=no 15181 fi 15182 ;; 15183 15184 cygwin* | mingw* | pw32*) 15185 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15186 # as there is no search path for DLLs. 15187 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15188 allow_undefined_flag_GCJ=unsupported 15189 always_export_symbols_GCJ=no 15190 enable_shared_with_static_runtimes_GCJ=yes 15191 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15192 15193 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15194 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15195 # If the export-symbols file already is a .def file (1st line 15196 # is EXPORTS), use it as is; otherwise, prepend... 15197 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15198 cp $export_symbols $output_objdir/$soname.def; 15199 else 15200 echo EXPORTS > $output_objdir/$soname.def; 15201 cat $export_symbols >> $output_objdir/$soname.def; 15202 fi~ 15203 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15204 else 15205 ld_shlibs=no 15206 fi 15207 ;; 15208 15209 netbsd*) 15210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15211 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15212 wlarc= 15213 else 15214 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15215 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15216 fi 15217 ;; 15218 15219 solaris* | sysv5*) 15220 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15221 ld_shlibs_GCJ=no 15222 cat <<EOF 1>&2 15223 15224*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15225*** create shared libraries on Solaris systems. Therefore, libtool 15226*** is disabling shared libraries support. We urge you to upgrade GNU 15227*** binutils to release 2.9.1 or newer. Another option is to modify 15228*** your PATH or compiler configuration so that the native linker is 15229*** used, and then restart. 15230 15231EOF 15232 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15233 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15234 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15235 else 15236 ld_shlibs_GCJ=no 15237 fi 15238 ;; 15239 15240 sunos4*) 15241 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15242 wlarc= 15243 hardcode_direct_GCJ=yes 15244 hardcode_shlibpath_var_GCJ=no 15245 ;; 15246 15247 *) 15248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15251 else 15252 ld_shlibs_GCJ=no 15253 fi 15254 ;; 15255 esac 15256 15257 if test "$ld_shlibs_GCJ" = yes; then 15258 runpath_var=LD_RUN_PATH 15259 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15260 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15261 # ancient GNU ld didn't support --whole-archive et. al. 15262 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15263 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15264 else 15265 whole_archive_flag_spec_GCJ= 15266 fi 15267 fi 15268 else 15269 # PORTME fill in a description of your system's linker (not GNU ld) 15270 case $host_os in 15271 aix3*) 15272 allow_undefined_flag_GCJ=unsupported 15273 always_export_symbols_GCJ=yes 15274 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' 15275 # Note: this linker hardcodes the directories in LIBPATH if there 15276 # are no directories specified by -L. 15277 hardcode_minus_L_GCJ=yes 15278 if test "$GCC" = yes && test -z "$link_static_flag"; then 15279 # Neither direct hardcoding nor static linking is supported with a 15280 # broken collect2. 15281 hardcode_direct_GCJ=unsupported 15282 fi 15283 ;; 15284 15285 aix4* | aix5*) 15286 if test "$host_cpu" = ia64; then 15287 # On IA64, the linker does run time linking by default, so we don't 15288 # have to do anything special. 15289 aix_use_runtimelinking=no 15290 exp_sym_flag='-Bexport' 15291 no_entry_flag="" 15292 else 15293 # If we're using GNU nm, then we don't want the "-C" option. 15294 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15296 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' 15297 else 15298 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' 15299 fi 15300 aix_use_runtimelinking=no 15301 15302 # Test if we are trying to use run time linking or normal 15303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15304 # need to do runtime linking. 15305 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15306 for ld_flag in $LDFLAGS; do 15307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15308 aix_use_runtimelinking=yes 15309 break 15310 fi 15311 done 15312 esac 15313 15314 exp_sym_flag='-bexport' 15315 no_entry_flag='-bnoentry' 15316 fi 15317 15318 # When large executables or shared objects are built, AIX ld can 15319 # have problems creating the table of contents. If linking a library 15320 # or program results in "error TOC overflow" add -mminimal-toc to 15321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15323 15324 archive_cmds_GCJ='' 15325 hardcode_direct_GCJ=yes 15326 hardcode_libdir_separator_GCJ=':' 15327 link_all_deplibs_GCJ=yes 15328 15329 if test "$GCC" = yes; then 15330 case $host_os in aix4.012|aix4.012.*) 15331 # We only want to do this on AIX 4.2 and lower, the check 15332 # below for broken collect2 doesn't work under 4.3+ 15333 collect2name=`${CC} -print-prog-name=collect2` 15334 if test -f "$collect2name" && \ 15335 strings "$collect2name" | grep resolve_lib_name >/dev/null 15336 then 15337 # We have reworked collect2 15338 hardcode_direct_GCJ=yes 15339 else 15340 # We have old collect2 15341 hardcode_direct_GCJ=unsupported 15342 # It fails to find uninstalled libraries when the uninstalled 15343 # path is not listed in the libpath. Setting hardcode_minus_L 15344 # to unsupported forces relinking 15345 hardcode_minus_L_GCJ=yes 15346 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15347 hardcode_libdir_separator_GCJ= 15348 fi 15349 esac 15350 shared_flag='-shared' 15351 else 15352 # not using gcc 15353 if test "$host_cpu" = ia64; then 15354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15355 # chokes on -Wl,-G. The following line is correct: 15356 shared_flag='-G' 15357 else 15358 if test "$aix_use_runtimelinking" = yes; then 15359 shared_flag='${wl}-G' 15360 else 15361 shared_flag='${wl}-bM:SRE' 15362 fi 15363 fi 15364 fi 15365 15366 # It seems that -bexpall does not export symbols beginning with 15367 # underscore (_), so it is better to generate a list of symbols to export. 15368 always_export_symbols_GCJ=yes 15369 if test "$aix_use_runtimelinking" = yes; then 15370 # Warning - without using the other runtime loading flags (-brtl), 15371 # -berok will link without error, but may produce a broken library. 15372 allow_undefined_flag_GCJ='-berok' 15373 # Determine the default libpath from the value encoded in an empty executable. 15374 cat >conftest.$ac_ext <<_ACEOF 15375#line $LINENO "configure" 15376/* confdefs.h. */ 15377_ACEOF 15378cat confdefs.h >>conftest.$ac_ext 15379cat >>conftest.$ac_ext <<_ACEOF 15380/* end confdefs.h. */ 15381 15382int 15383main () 15384{ 15385 15386 ; 15387 return 0; 15388} 15389_ACEOF 15390rm -f conftest.$ac_objext conftest$ac_exeext 15391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15392 (eval $ac_link) 2>&5 15393 ac_status=$? 15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15395 (exit $ac_status); } && 15396 { ac_try='test -s conftest$ac_exeext' 15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15398 (eval $ac_try) 2>&5 15399 ac_status=$? 15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15401 (exit $ac_status); }; }; then 15402 15403aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15404}'` 15405# Check for a 64-bit object if we didn't find anything. 15406if 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; } 15407}'`; fi 15408else 15409 echo "$as_me: failed program was:" >&5 15410sed 's/^/| /' conftest.$ac_ext >&5 15411 15412fi 15413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15415 15416 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15417 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" 15418 else 15419 if test "$host_cpu" = ia64; then 15420 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15421 allow_undefined_flag_GCJ="-z nodefs" 15422 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" 15423 else 15424 # Determine the default libpath from the value encoded in an empty executable. 15425 cat >conftest.$ac_ext <<_ACEOF 15426#line $LINENO "configure" 15427/* confdefs.h. */ 15428_ACEOF 15429cat confdefs.h >>conftest.$ac_ext 15430cat >>conftest.$ac_ext <<_ACEOF 15431/* end confdefs.h. */ 15432 15433int 15434main () 15435{ 15436 15437 ; 15438 return 0; 15439} 15440_ACEOF 15441rm -f conftest.$ac_objext conftest$ac_exeext 15442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15443 (eval $ac_link) 2>&5 15444 ac_status=$? 15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15446 (exit $ac_status); } && 15447 { ac_try='test -s conftest$ac_exeext' 15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15449 (eval $ac_try) 2>&5 15450 ac_status=$? 15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15452 (exit $ac_status); }; }; then 15453 15454aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15455}'` 15456# Check for a 64-bit object if we didn't find anything. 15457if 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; } 15458}'`; fi 15459else 15460 echo "$as_me: failed program was:" >&5 15461sed 's/^/| /' conftest.$ac_ext >&5 15462 15463fi 15464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15465if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15466 15467 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15468 # Warning - without using the other run time loading flags, 15469 # -berok will link without error, but may produce a broken library. 15470 no_undefined_flag_GCJ=' ${wl}-bernotok' 15471 allow_undefined_flag_GCJ=' ${wl}-berok' 15472 # -bexpall does not export symbols beginning with underscore (_) 15473 always_export_symbols_GCJ=yes 15474 # Exported symbols can be pulled into shared objects from archives 15475 whole_archive_flag_spec_GCJ=' ' 15476 archive_cmds_need_lc_GCJ=yes 15477 # This is similar to how AIX traditionally builds it's shared libraries. 15478 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' 15479 fi 15480 fi 15481 ;; 15482 15483 amigaos*) 15484 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)' 15485 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15486 hardcode_minus_L_GCJ=yes 15487 # see comment about different semantics on the GNU ld section 15488 ld_shlibs_GCJ=no 15489 ;; 15490 15491 bsdi4*) 15492 export_dynamic_flag_spec_GCJ=-rdynamic 15493 ;; 15494 15495 cygwin* | mingw* | pw32*) 15496 # When not using gcc, we currently assume that we are using 15497 # Microsoft Visual C++. 15498 # hardcode_libdir_flag_spec is actually meaningless, as there is 15499 # no search path for DLLs. 15500 hardcode_libdir_flag_spec_GCJ=' ' 15501 allow_undefined_flag_GCJ=unsupported 15502 # Tell ltmain to make .lib files, not .a files. 15503 libext=lib 15504 # Tell ltmain to make .dll files, not .so files. 15505 shrext=".dll" 15506 # FIXME: Setting linknames here is a bad hack. 15507 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15508 # The linker will automatically build a .lib file if we build a DLL. 15509 old_archive_From_new_cmds_GCJ='true' 15510 # FIXME: Should let the user specify the lib program. 15511 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15512 fix_srcfile_path='`cygpath -w "$srcfile"`' 15513 enable_shared_with_static_runtimes_GCJ=yes 15514 ;; 15515 15516 darwin* | rhapsody*) 15517 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 15518 archive_cmds_need_lc_GCJ=no 15519 case "$host_os" in 15520 rhapsody* | darwin1.[012]) 15521 allow_undefined_flag_GCJ='-undefined suppress' 15522 ;; 15523 *) # Darwin 1.3 on 15524 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 15525 ;; 15526 esac 15527 # FIXME: Relying on posixy $() will cause problems for 15528 # cross-compilation, but unfortunately the echo tests do not 15529 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 15530 # `"' quotes if we put them in here... so don't! 15531 lt_int_apple_cc_single_mod=no 15532 output_verbose_link_cmd='echo' 15533 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 15534 lt_int_apple_cc_single_mod=yes 15535 fi 15536 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15537 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15538 else 15539 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' 15540 fi 15541 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 15542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15543 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15544 archive_expsym_cmds_GCJ='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}' 15545 else 15546 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 15547 fi 15548 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15549 hardcode_direct_GCJ=no 15550 hardcode_automatic_GCJ=yes 15551 hardcode_shlibpath_var_GCJ=unsupported 15552 whole_archive_flag_spec_GCJ='-all_load $convenience' 15553 link_all_deplibs_GCJ=yes 15554 fi 15555 ;; 15556 15557 dgux*) 15558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15559 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15560 hardcode_shlibpath_var_GCJ=no 15561 ;; 15562 15563 freebsd1*) 15564 ld_shlibs_GCJ=no 15565 ;; 15566 15567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15568 # support. Future versions do this automatically, but an explicit c++rt0.o 15569 # does not break anything, and helps significantly (at the cost of a little 15570 # extra space). 15571 freebsd2.2*) 15572 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15573 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15574 hardcode_direct_GCJ=yes 15575 hardcode_shlibpath_var_GCJ=no 15576 ;; 15577 15578 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15579 freebsd2*) 15580 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15581 hardcode_direct_GCJ=yes 15582 hardcode_minus_L_GCJ=yes 15583 hardcode_shlibpath_var_GCJ=no 15584 ;; 15585 15586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15587 freebsd*) 15588 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15589 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15590 hardcode_direct_GCJ=yes 15591 hardcode_shlibpath_var_GCJ=no 15592 ;; 15593 15594 hpux9*) 15595 if test "$GCC" = yes; then 15596 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' 15597 else 15598 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' 15599 fi 15600 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15601 hardcode_libdir_separator_GCJ=: 15602 hardcode_direct_GCJ=yes 15603 15604 # hardcode_minus_L: Not really in the search PATH, 15605 # but as the default location of the library. 15606 hardcode_minus_L_GCJ=yes 15607 export_dynamic_flag_spec_GCJ='${wl}-E' 15608 ;; 15609 15610 hpux10* | hpux11*) 15611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15612 case "$host_cpu" in 15613 hppa*64*|ia64*) 15614 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15615 ;; 15616 *) 15617 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15618 ;; 15619 esac 15620 else 15621 case "$host_cpu" in 15622 hppa*64*|ia64*) 15623 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15624 ;; 15625 *) 15626 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15627 ;; 15628 esac 15629 fi 15630 if test "$with_gnu_ld" = no; then 15631 case "$host_cpu" in 15632 hppa*64*) 15633 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15634 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 15635 hardcode_libdir_separator_GCJ=: 15636 hardcode_direct_GCJ=no 15637 hardcode_shlibpath_var_GCJ=no 15638 ;; 15639 ia64*) 15640 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15641 hardcode_direct_GCJ=no 15642 hardcode_shlibpath_var_GCJ=no 15643 15644 # hardcode_minus_L: Not really in the search PATH, 15645 # but as the default location of the library. 15646 hardcode_minus_L_GCJ=yes 15647 ;; 15648 *) 15649 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15650 hardcode_libdir_separator_GCJ=: 15651 hardcode_direct_GCJ=yes 15652 export_dynamic_flag_spec_GCJ='${wl}-E' 15653 15654 # hardcode_minus_L: Not really in the search PATH, 15655 # but as the default location of the library. 15656 hardcode_minus_L_GCJ=yes 15657 ;; 15658 esac 15659 fi 15660 ;; 15661 15662 irix5* | irix6* | nonstopux*) 15663 if test "$GCC" = yes; then 15664 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' 15665 else 15666 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' 15667 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 15668 fi 15669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15670 hardcode_libdir_separator_GCJ=: 15671 link_all_deplibs_GCJ=yes 15672 ;; 15673 15674 netbsd*) 15675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15676 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15677 else 15678 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15679 fi 15680 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15681 hardcode_direct_GCJ=yes 15682 hardcode_shlibpath_var_GCJ=no 15683 ;; 15684 15685 newsos6) 15686 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15687 hardcode_direct_GCJ=yes 15688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15689 hardcode_libdir_separator_GCJ=: 15690 hardcode_shlibpath_var_GCJ=no 15691 ;; 15692 15693 openbsd*) 15694 hardcode_direct_GCJ=yes 15695 hardcode_shlibpath_var_GCJ=no 15696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15697 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15699 export_dynamic_flag_spec_GCJ='${wl}-E' 15700 else 15701 case $host_os in 15702 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15703 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15704 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15705 ;; 15706 *) 15707 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15708 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15709 ;; 15710 esac 15711 fi 15712 ;; 15713 15714 os2*) 15715 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15716 hardcode_minus_L_GCJ=yes 15717 allow_undefined_flag_GCJ=unsupported 15718 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' 15719 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15720 ;; 15721 15722 osf3*) 15723 if test "$GCC" = yes; then 15724 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15725 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' 15726 else 15727 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15728 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' 15729 fi 15730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15731 hardcode_libdir_separator_GCJ=: 15732 ;; 15733 15734 osf4* | osf5*) # as osf3* with the addition of -msym flag 15735 if test "$GCC" = yes; then 15736 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15737 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' 15738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15739 else 15740 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15741 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' 15742 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~ 15743 $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' 15744 15745 # Both c and cxx compiler support -rpath directly 15746 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 15747 fi 15748 hardcode_libdir_separator_GCJ=: 15749 ;; 15750 15751 sco3.2v5*) 15752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15753 hardcode_shlibpath_var_GCJ=no 15754 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 15755 runpath_var=LD_RUN_PATH 15756 hardcode_runpath_var=yes 15757 ;; 15758 15759 solaris*) 15760 no_undefined_flag_GCJ=' -z text' 15761 if test "$GCC" = yes; then 15762 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15763 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15764 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15765 else 15766 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15767 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15768 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15769 fi 15770 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15771 hardcode_shlibpath_var_GCJ=no 15772 case $host_os in 15773 solaris2.[0-5] | solaris2.[0-5].*) ;; 15774 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 15775 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 15776 esac 15777 link_all_deplibs_GCJ=yes 15778 ;; 15779 15780 sunos4*) 15781 if test "x$host_vendor" = xsequent; then 15782 # Use $CC to link under sequent, because it throws in some extra .o 15783 # files that make .init and .fini sections work. 15784 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15785 else 15786 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15787 fi 15788 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15789 hardcode_direct_GCJ=yes 15790 hardcode_minus_L_GCJ=yes 15791 hardcode_shlibpath_var_GCJ=no 15792 ;; 15793 15794 sysv4) 15795 case $host_vendor in 15796 sni) 15797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15798 hardcode_direct_GCJ=yes # is this really true??? 15799 ;; 15800 siemens) 15801 ## LD is ld it makes a PLAMLIB 15802 ## CC just makes a GrossModule. 15803 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15804 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 15805 hardcode_direct_GCJ=no 15806 ;; 15807 motorola) 15808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15809 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 15810 ;; 15811 esac 15812 runpath_var='LD_RUN_PATH' 15813 hardcode_shlibpath_var_GCJ=no 15814 ;; 15815 15816 sysv4.3*) 15817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15818 hardcode_shlibpath_var_GCJ=no 15819 export_dynamic_flag_spec_GCJ='-Bexport' 15820 ;; 15821 15822 sysv4*MP*) 15823 if test -d /usr/nec; then 15824 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15825 hardcode_shlibpath_var_GCJ=no 15826 runpath_var=LD_RUN_PATH 15827 hardcode_runpath_var=yes 15828 ld_shlibs_GCJ=yes 15829 fi 15830 ;; 15831 15832 sysv4.2uw2*) 15833 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15834 hardcode_direct_GCJ=yes 15835 hardcode_minus_L_GCJ=no 15836 hardcode_shlibpath_var_GCJ=no 15837 hardcode_runpath_var=yes 15838 runpath_var=LD_RUN_PATH 15839 ;; 15840 15841 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15842 no_undefined_flag_GCJ='${wl}-z ${wl}text' 15843 if test "$GCC" = yes; then 15844 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15845 else 15846 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15847 fi 15848 runpath_var='LD_RUN_PATH' 15849 hardcode_shlibpath_var_GCJ=no 15850 ;; 15851 15852 sysv5*) 15853 no_undefined_flag_GCJ=' -z text' 15854 # $CC -shared without GNU ld will not create a library from C++ 15855 # object files and a static libstdc++, better avoid it by now 15856 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15857 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15858 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15859 hardcode_libdir_flag_spec_GCJ= 15860 hardcode_shlibpath_var_GCJ=no 15861 runpath_var='LD_RUN_PATH' 15862 ;; 15863 15864 uts4*) 15865 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15866 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15867 hardcode_shlibpath_var_GCJ=no 15868 ;; 15869 15870 *) 15871 ld_shlibs_GCJ=no 15872 ;; 15873 esac 15874 fi 15875 15876echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 15877echo "${ECHO_T}$ld_shlibs_GCJ" >&6 15878test "$ld_shlibs_GCJ" = no && can_build_shared=no 15879 15880variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15881if test "$GCC" = yes; then 15882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15883fi 15884 15885# 15886# Do we need to explicitly link libc? 15887# 15888case "x$archive_cmds_need_lc_GCJ" in 15889x|xyes) 15890 # Assume -lc should be added 15891 archive_cmds_need_lc_GCJ=yes 15892 15893 if test "$enable_shared" = yes && test "$GCC" = yes; then 15894 case $archive_cmds_GCJ in 15895 *'~'*) 15896 # FIXME: we may have to deal with multi-command sequences. 15897 ;; 15898 '$CC '*) 15899 # Test whether the compiler implicitly links with -lc since on some 15900 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15901 # to ld, don't add -lc before -lgcc. 15902 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15903echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15904 $rm conftest* 15905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15906 15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15908 (eval $ac_compile) 2>&5 15909 ac_status=$? 15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15911 (exit $ac_status); } 2>conftest.err; then 15912 soname=conftest 15913 lib=conftest 15914 libobjs=conftest.$ac_objext 15915 deplibs= 15916 wl=$lt_prog_compiler_wl_GCJ 15917 compiler_flags=-v 15918 linker_flags=-v 15919 verstring= 15920 output_objdir=. 15921 libname=conftest 15922 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 15923 allow_undefined_flag_GCJ= 15924 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15925 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15926 ac_status=$? 15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15928 (exit $ac_status); } 15929 then 15930 archive_cmds_need_lc_GCJ=no 15931 else 15932 archive_cmds_need_lc_GCJ=yes 15933 fi 15934 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 15935 else 15936 cat conftest.err 1>&5 15937 fi 15938 $rm conftest* 15939 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 15940echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 15941 ;; 15942 esac 15943 fi 15944 ;; 15945esac 15946 15947echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15948echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15949hardcode_action_GCJ= 15950if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 15951 test -n "$runpath_var GCJ" || \ 15952 test "X$hardcode_automatic_GCJ"="Xyes" ; then 15953 15954 # We can hardcode non-existant directories. 15955 if test "$hardcode_direct_GCJ" != no && 15956 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15957 # have to relink, otherwise we might link with an installed library 15958 # when we should be linking with a yet-to-be-installed one 15959 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 15960 test "$hardcode_minus_L_GCJ" != no; then 15961 # Linking always hardcodes the temporary library directory. 15962 hardcode_action_GCJ=relink 15963 else 15964 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15965 hardcode_action_GCJ=immediate 15966 fi 15967else 15968 # We cannot hardcode anything, or else we can only hardcode existing 15969 # directories. 15970 hardcode_action_GCJ=unsupported 15971fi 15972echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 15973echo "${ECHO_T}$hardcode_action_GCJ" >&6 15974 15975if test "$hardcode_action_GCJ" = relink; then 15976 # Fast installation is not supported 15977 enable_fast_install=no 15978elif test "$shlibpath_overrides_runpath" = yes || 15979 test "$enable_shared" = no; then 15980 # Fast installation is not necessary 15981 enable_fast_install=needless 15982fi 15983 15984striplib= 15985old_striplib= 15986echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15987echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15988if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15989 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15990 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15991 echo "$as_me:$LINENO: result: yes" >&5 15992echo "${ECHO_T}yes" >&6 15993else 15994# FIXME - insert some real tests, host_os isn't really good enough 15995 case $host_os in 15996 darwin*) 15997 if test -n "$STRIP" ; then 15998 striplib="$STRIP -x" 15999 echo "$as_me:$LINENO: result: yes" >&5 16000echo "${ECHO_T}yes" >&6 16001 else 16002 echo "$as_me:$LINENO: result: no" >&5 16003echo "${ECHO_T}no" >&6 16004fi 16005 ;; 16006 *) 16007 echo "$as_me:$LINENO: result: no" >&5 16008echo "${ECHO_T}no" >&6 16009 ;; 16010 esac 16011fi 16012 16013echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16014echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16015library_names_spec= 16016libname_spec='lib$name' 16017soname_spec= 16018shrext=".so" 16019postinstall_cmds= 16020postuninstall_cmds= 16021finish_cmds= 16022finish_eval= 16023shlibpath_var= 16024shlibpath_overrides_runpath=unknown 16025version_type=none 16026dynamic_linker="$host_os ld.so" 16027sys_lib_dlsearch_path_spec="/lib /usr/lib" 16028if test "$GCC" = yes; then 16029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16031 # if the path contains ";" then we assume it to be the separator 16032 # otherwise default to the standard path separator (i.e. ":") - it is 16033 # assumed that no part of a normal pathname contains ";" but that should 16034 # okay in the real world where ";" in dirpaths is itself problematic. 16035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16036 else 16037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16038 fi 16039else 16040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16041fi 16042need_lib_prefix=unknown 16043hardcode_into_libs=no 16044 16045# when you set need_version to no, make sure it does not cause -set_version 16046# flags to be left without arguments 16047need_version=unknown 16048 16049case $host_os in 16050aix3*) 16051 version_type=linux 16052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16053 shlibpath_var=LIBPATH 16054 16055 # AIX 3 has no versioning support, so we append a major version to the name. 16056 soname_spec='${libname}${release}${shared_ext}$major' 16057 ;; 16058 16059aix4* | aix5*) 16060 version_type=linux 16061 need_lib_prefix=no 16062 need_version=no 16063 hardcode_into_libs=yes 16064 if test "$host_cpu" = ia64; then 16065 # AIX 5 supports IA64 16066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16067 shlibpath_var=LD_LIBRARY_PATH 16068 else 16069 # With GCC up to 2.95.x, collect2 would create an import file 16070 # for dependence libraries. The import file would start with 16071 # the line `#! .'. This would cause the generated library to 16072 # depend on `.', always an invalid library. This was fixed in 16073 # development snapshots of GCC prior to 3.0. 16074 case $host_os in 16075 aix4 | aix4.[01] | aix4.[01].*) 16076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16077 echo ' yes ' 16078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16079 : 16080 else 16081 can_build_shared=no 16082 fi 16083 ;; 16084 esac 16085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16086 # soname into executable. Probably we can add versioning support to 16087 # collect2, so additional links can be useful in future. 16088 if test "$aix_use_runtimelinking" = yes; then 16089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16090 # instead of lib<name>.a to let people know that these are not 16091 # typical AIX shared libraries. 16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16093 else 16094 # We preserve .a as extension for shared libraries through AIX4.2 16095 # and later when we are not doing run time linking. 16096 library_names_spec='${libname}${release}.a $libname.a' 16097 soname_spec='${libname}${release}${shared_ext}$major' 16098 fi 16099 shlibpath_var=LIBPATH 16100 fi 16101 ;; 16102 16103amigaos*) 16104 library_names_spec='$libname.ixlibrary $libname.a' 16105 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16106 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' 16107 ;; 16108 16109beos*) 16110 library_names_spec='${libname}${shared_ext}' 16111 dynamic_linker="$host_os ld.so" 16112 shlibpath_var=LIBRARY_PATH 16113 ;; 16114 16115bsdi4*) 16116 version_type=linux 16117 need_version=no 16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16119 soname_spec='${libname}${release}${shared_ext}$major' 16120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16121 shlibpath_var=LD_LIBRARY_PATH 16122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16124 # the default ld.so.conf also contains /usr/contrib/lib and 16125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16126 # libtool to hard-code these into programs 16127 ;; 16128 16129cygwin* | mingw* | pw32*) 16130 version_type=windows 16131 shrext=".dll" 16132 need_version=no 16133 need_lib_prefix=no 16134 16135 case $GCC,$host_os in 16136 yes,cygwin* | yes,mingw* | yes,pw32*) 16137 library_names_spec='$libname.dll.a' 16138 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16139 postinstall_cmds='base_file=`basename \${file}`~ 16140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16141 dldir=$destdir/`dirname \$dlpath`~ 16142 test -d \$dldir || mkdir -p \$dldir~ 16143 $install_prog $dir/$dlname \$dldir/$dlname' 16144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16145 dlpath=$dir/\$dldll~ 16146 $rm \$dlpath' 16147 shlibpath_overrides_runpath=yes 16148 16149 case $host_os in 16150 cygwin*) 16151 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16153 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 16154 ;; 16155 mingw*) 16156 # MinGW DLLs use traditional 'lib' prefix 16157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16159 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16160 # It is most probably a Windows format PATH printed by 16161 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16162 # path with ; separators, and with drive letters. We can handle the 16163 # drive letters (cygwin fileutils understands them), so leave them, 16164 # especially as we might pass files found there to a mingw objdump, 16165 # which wouldn't understand a cygwinified path. Ahh. 16166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16167 else 16168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16169 fi 16170 ;; 16171 pw32*) 16172 # pw32 DLLs use 'pw' prefix rather than 'lib' 16173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16174 ;; 16175 esac 16176 ;; 16177 16178 *) 16179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16180 ;; 16181 esac 16182 dynamic_linker='Win32 ld.exe' 16183 # FIXME: first we should search . and the directory the executable is in 16184 shlibpath_var=PATH 16185 ;; 16186 16187darwin* | rhapsody*) 16188 dynamic_linker="$host_os dyld" 16189 version_type=darwin 16190 need_lib_prefix=no 16191 need_version=no 16192 # FIXME: Relying on posixy $() will cause problems for 16193 # cross-compilation, but unfortunately the echo tests do not 16194 # yet detect zsh echo's removal of \ escapes. 16195 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16196 soname_spec='${libname}${release}${major}$shared_ext' 16197 shlibpath_overrides_runpath=yes 16198 shlibpath_var=DYLD_LIBRARY_PATH 16199 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 16200 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16201 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 16202 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"` 16203 fi 16204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16205 ;; 16206 16207dgux*) 16208 version_type=linux 16209 need_lib_prefix=no 16210 need_version=no 16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16212 soname_spec='${libname}${release}${shared_ext}$major' 16213 shlibpath_var=LD_LIBRARY_PATH 16214 ;; 16215 16216freebsd1*) 16217 dynamic_linker=no 16218 ;; 16219 16220freebsd*) 16221 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16222 version_type=freebsd-$objformat 16223 case $version_type in 16224 freebsd-elf*) 16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16226 need_version=no 16227 need_lib_prefix=no 16228 ;; 16229 freebsd-*) 16230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16231 need_version=yes 16232 ;; 16233 esac 16234 shlibpath_var=LD_LIBRARY_PATH 16235 case $host_os in 16236 freebsd2*) 16237 shlibpath_overrides_runpath=yes 16238 ;; 16239 freebsd3.01* | freebsdelf3.01*) 16240 shlibpath_overrides_runpath=yes 16241 hardcode_into_libs=yes 16242 ;; 16243 *) # from 3.2 on 16244 shlibpath_overrides_runpath=no 16245 hardcode_into_libs=yes 16246 ;; 16247 esac 16248 ;; 16249 16250gnu*) 16251 version_type=linux 16252 need_lib_prefix=no 16253 need_version=no 16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16255 soname_spec='${libname}${release}${shared_ext}$major' 16256 shlibpath_var=LD_LIBRARY_PATH 16257 hardcode_into_libs=yes 16258 ;; 16259 16260hpux9* | hpux10* | hpux11*) 16261 # Give a soname corresponding to the major version so that dld.sl refuses to 16262 # link against other versions. 16263 version_type=sunos 16264 need_lib_prefix=no 16265 need_version=no 16266 case "$host_cpu" in 16267 ia64*) 16268 shrext='.so' 16269 hardcode_into_libs=yes 16270 dynamic_linker="$host_os dld.so" 16271 shlibpath_var=LD_LIBRARY_PATH 16272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16274 soname_spec='${libname}${release}${shared_ext}$major' 16275 if test "X$HPUX_IA64_MODE" = X32; then 16276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16277 else 16278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16279 fi 16280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16281 ;; 16282 hppa*64*) 16283 shrext='.sl' 16284 hardcode_into_libs=yes 16285 dynamic_linker="$host_os dld.sl" 16286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16289 soname_spec='${libname}${release}${shared_ext}$major' 16290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16292 ;; 16293 *) 16294 shrext='.sl' 16295 dynamic_linker="$host_os dld.sl" 16296 shlibpath_var=SHLIB_PATH 16297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16299 soname_spec='${libname}${release}${shared_ext}$major' 16300 ;; 16301 esac 16302 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16303 postinstall_cmds='chmod 555 $lib' 16304 ;; 16305 16306irix5* | irix6* | nonstopux*) 16307 case $host_os in 16308 nonstopux*) version_type=nonstopux ;; 16309 *) 16310 if test "$lt_cv_prog_gnu_ld" = yes; then 16311 version_type=linux 16312 else 16313 version_type=irix 16314 fi ;; 16315 esac 16316 need_lib_prefix=no 16317 need_version=no 16318 soname_spec='${libname}${release}${shared_ext}$major' 16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16320 case $host_os in 16321 irix5* | nonstopux*) 16322 libsuff= shlibsuff= 16323 ;; 16324 *) 16325 case $LD in # libtool.m4 will add one of these switches to LD 16326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16327 libsuff= shlibsuff= libmagic=32-bit;; 16328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16329 libsuff=32 shlibsuff=N32 libmagic=N32;; 16330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16331 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16332 *) libsuff= shlibsuff= libmagic=never-match;; 16333 esac 16334 ;; 16335 esac 16336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16337 shlibpath_overrides_runpath=no 16338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16340 hardcode_into_libs=yes 16341 ;; 16342 16343# No shared lib support for Linux oldld, aout, or coff. 16344linux*oldld* | linux*aout* | linux*coff*) 16345 dynamic_linker=no 16346 ;; 16347 16348# This must be Linux ELF. 16349linux*) 16350 version_type=linux 16351 need_lib_prefix=no 16352 need_version=no 16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16354 soname_spec='${libname}${release}${shared_ext}$major' 16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16356 shlibpath_var=LD_LIBRARY_PATH 16357 shlibpath_overrides_runpath=no 16358 # This implies no fast_install, which is unacceptable. 16359 # Some rework will be needed to allow for fast_install 16360 # before this can be enabled. 16361 hardcode_into_libs=yes 16362 16363 # We used to test for /lib/ld.so.1 and disable shared libraries on 16364 # powerpc, because MkLinux only supported shared libraries with the 16365 # GNU dynamic linker. Since this was broken with cross compilers, 16366 # most powerpc-linux boxes support dynamic linking these days and 16367 # people can always --disable-shared, the test was removed, and we 16368 # assume the GNU/Linux dynamic linker is in use. 16369 dynamic_linker='GNU/Linux ld.so' 16370 ;; 16371 16372netbsd*) 16373 version_type=sunos 16374 need_lib_prefix=no 16375 need_version=no 16376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16379 dynamic_linker='NetBSD (a.out) ld.so' 16380 else 16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 16382 soname_spec='${libname}${release}${shared_ext}$major' 16383 dynamic_linker='NetBSD ld.elf_so' 16384 fi 16385 shlibpath_var=LD_LIBRARY_PATH 16386 shlibpath_overrides_runpath=yes 16387 hardcode_into_libs=yes 16388 ;; 16389 16390newsos6) 16391 version_type=linux 16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16393 shlibpath_var=LD_LIBRARY_PATH 16394 shlibpath_overrides_runpath=yes 16395 ;; 16396 16397nto-qnx) 16398 version_type=linux 16399 need_lib_prefix=no 16400 need_version=no 16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16402 soname_spec='${libname}${release}${shared_ext}$major' 16403 shlibpath_var=LD_LIBRARY_PATH 16404 shlibpath_overrides_runpath=yes 16405 ;; 16406 16407openbsd*) 16408 version_type=sunos 16409 need_lib_prefix=no 16410 need_version=no 16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16413 shlibpath_var=LD_LIBRARY_PATH 16414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16415 case $host_os in 16416 openbsd2.[89] | openbsd2.[89].*) 16417 shlibpath_overrides_runpath=no 16418 ;; 16419 *) 16420 shlibpath_overrides_runpath=yes 16421 ;; 16422 esac 16423 else 16424 shlibpath_overrides_runpath=yes 16425 fi 16426 ;; 16427 16428os2*) 16429 libname_spec='$name' 16430 shrext=".dll" 16431 need_lib_prefix=no 16432 library_names_spec='$libname${shared_ext} $libname.a' 16433 dynamic_linker='OS/2 ld.exe' 16434 shlibpath_var=LIBPATH 16435 ;; 16436 16437osf3* | osf4* | osf5*) 16438 version_type=osf 16439 need_lib_prefix=no 16440 need_version=no 16441 soname_spec='${libname}${release}${shared_ext}$major' 16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16443 shlibpath_var=LD_LIBRARY_PATH 16444 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16445 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16446 ;; 16447 16448sco3.2v5*) 16449 version_type=osf 16450 soname_spec='${libname}${release}${shared_ext}$major' 16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16452 shlibpath_var=LD_LIBRARY_PATH 16453 ;; 16454 16455solaris*) 16456 version_type=linux 16457 need_lib_prefix=no 16458 need_version=no 16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16460 soname_spec='${libname}${release}${shared_ext}$major' 16461 shlibpath_var=LD_LIBRARY_PATH 16462 shlibpath_overrides_runpath=yes 16463 hardcode_into_libs=yes 16464 # ldd complains unless libraries are executable 16465 postinstall_cmds='chmod +x $lib' 16466 ;; 16467 16468sunos4*) 16469 version_type=sunos 16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16472 shlibpath_var=LD_LIBRARY_PATH 16473 shlibpath_overrides_runpath=yes 16474 if test "$with_gnu_ld" = yes; then 16475 need_lib_prefix=no 16476 fi 16477 need_version=yes 16478 ;; 16479 16480sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16481 version_type=linux 16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16483 soname_spec='${libname}${release}${shared_ext}$major' 16484 shlibpath_var=LD_LIBRARY_PATH 16485 case $host_vendor in 16486 sni) 16487 shlibpath_overrides_runpath=no 16488 need_lib_prefix=no 16489 export_dynamic_flag_spec='${wl}-Blargedynsym' 16490 runpath_var=LD_RUN_PATH 16491 ;; 16492 siemens) 16493 need_lib_prefix=no 16494 ;; 16495 motorola) 16496 need_lib_prefix=no 16497 need_version=no 16498 shlibpath_overrides_runpath=no 16499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16500 ;; 16501 esac 16502 ;; 16503 16504sysv4*MP*) 16505 if test -d /usr/nec ;then 16506 version_type=linux 16507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16508 soname_spec='$libname${shared_ext}.$major' 16509 shlibpath_var=LD_LIBRARY_PATH 16510 fi 16511 ;; 16512 16513uts4*) 16514 version_type=linux 16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16516 soname_spec='${libname}${release}${shared_ext}$major' 16517 shlibpath_var=LD_LIBRARY_PATH 16518 ;; 16519 16520*) 16521 dynamic_linker=no 16522 ;; 16523esac 16524echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16525echo "${ECHO_T}$dynamic_linker" >&6 16526test "$dynamic_linker" = no && can_build_shared=no 16527 16528if test "x$enable_dlopen" != xyes; then 16529 enable_dlopen=unknown 16530 enable_dlopen_self=unknown 16531 enable_dlopen_self_static=unknown 16532else 16533 lt_cv_dlopen=no 16534 lt_cv_dlopen_libs= 16535 16536 case $host_os in 16537 beos*) 16538 lt_cv_dlopen="load_add_on" 16539 lt_cv_dlopen_libs= 16540 lt_cv_dlopen_self=yes 16541 ;; 16542 16543 mingw* | pw32*) 16544 lt_cv_dlopen="LoadLibrary" 16545 lt_cv_dlopen_libs= 16546 ;; 16547 16548 cygwin*) 16549 lt_cv_dlopen="dlopen" 16550 lt_cv_dlopen_libs= 16551 ;; 16552 16553 darwin*) 16554 # if libdl is installed we need to link against it 16555 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16556echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16557if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16558 echo $ECHO_N "(cached) $ECHO_C" >&6 16559else 16560 ac_check_lib_save_LIBS=$LIBS 16561LIBS="-ldl $LIBS" 16562cat >conftest.$ac_ext <<_ACEOF 16563#line $LINENO "configure" 16564/* confdefs.h. */ 16565_ACEOF 16566cat confdefs.h >>conftest.$ac_ext 16567cat >>conftest.$ac_ext <<_ACEOF 16568/* end confdefs.h. */ 16569 16570/* Override any gcc2 internal prototype to avoid an error. */ 16571#ifdef __cplusplus 16572extern "C" 16573#endif 16574/* We use char because int might match the return type of a gcc2 16575 builtin and then its argument prototype would still apply. */ 16576char dlopen (); 16577int 16578main () 16579{ 16580dlopen (); 16581 ; 16582 return 0; 16583} 16584_ACEOF 16585rm -f conftest.$ac_objext conftest$ac_exeext 16586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16587 (eval $ac_link) 2>&5 16588 ac_status=$? 16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16590 (exit $ac_status); } && 16591 { ac_try='test -s conftest$ac_exeext' 16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16593 (eval $ac_try) 2>&5 16594 ac_status=$? 16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16596 (exit $ac_status); }; }; then 16597 ac_cv_lib_dl_dlopen=yes 16598else 16599 echo "$as_me: failed program was:" >&5 16600sed 's/^/| /' conftest.$ac_ext >&5 16601 16602ac_cv_lib_dl_dlopen=no 16603fi 16604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16605LIBS=$ac_check_lib_save_LIBS 16606fi 16607echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16608echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16609if test $ac_cv_lib_dl_dlopen = yes; then 16610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16611else 16612 16613 lt_cv_dlopen="dyld" 16614 lt_cv_dlopen_libs= 16615 lt_cv_dlopen_self=yes 16616 16617fi 16618 16619 ;; 16620 16621 *) 16622 echo "$as_me:$LINENO: checking for shl_load" >&5 16623echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 16624if test "${ac_cv_func_shl_load+set}" = set; then 16625 echo $ECHO_N "(cached) $ECHO_C" >&6 16626else 16627 cat >conftest.$ac_ext <<_ACEOF 16628#line $LINENO "configure" 16629/* confdefs.h. */ 16630_ACEOF 16631cat confdefs.h >>conftest.$ac_ext 16632cat >>conftest.$ac_ext <<_ACEOF 16633/* end confdefs.h. */ 16634/* System header to define __stub macros and hopefully few prototypes, 16635 which can conflict with char shl_load (); below. 16636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16637 <limits.h> exists even on freestanding compilers. */ 16638#ifdef __STDC__ 16639# include <limits.h> 16640#else 16641# include <assert.h> 16642#endif 16643/* Override any gcc2 internal prototype to avoid an error. */ 16644#ifdef __cplusplus 16645extern "C" 16646{ 16647#endif 16648/* We use char because int might match the return type of a gcc2 16649 builtin and then its argument prototype would still apply. */ 16650char shl_load (); 16651/* The GNU C library defines this for functions which it implements 16652 to always fail with ENOSYS. Some functions are actually named 16653 something starting with __ and the normal name is an alias. */ 16654#if defined (__stub_shl_load) || defined (__stub___shl_load) 16655choke me 16656#else 16657char (*f) () = shl_load; 16658#endif 16659#ifdef __cplusplus 16660} 16661#endif 16662 16663int 16664main () 16665{ 16666return f != shl_load; 16667 ; 16668 return 0; 16669} 16670_ACEOF 16671rm -f conftest.$ac_objext conftest$ac_exeext 16672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16673 (eval $ac_link) 2>&5 16674 ac_status=$? 16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16676 (exit $ac_status); } && 16677 { ac_try='test -s conftest$ac_exeext' 16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16679 (eval $ac_try) 2>&5 16680 ac_status=$? 16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16682 (exit $ac_status); }; }; then 16683 ac_cv_func_shl_load=yes 16684else 16685 echo "$as_me: failed program was:" >&5 16686sed 's/^/| /' conftest.$ac_ext >&5 16687 16688ac_cv_func_shl_load=no 16689fi 16690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16691fi 16692echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 16693echo "${ECHO_T}$ac_cv_func_shl_load" >&6 16694if test $ac_cv_func_shl_load = yes; then 16695 lt_cv_dlopen="shl_load" 16696else 16697 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 16698echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 16699if test "${ac_cv_lib_dld_shl_load+set}" = set; then 16700 echo $ECHO_N "(cached) $ECHO_C" >&6 16701else 16702 ac_check_lib_save_LIBS=$LIBS 16703LIBS="-ldld $LIBS" 16704cat >conftest.$ac_ext <<_ACEOF 16705#line $LINENO "configure" 16706/* confdefs.h. */ 16707_ACEOF 16708cat confdefs.h >>conftest.$ac_ext 16709cat >>conftest.$ac_ext <<_ACEOF 16710/* end confdefs.h. */ 16711 16712/* Override any gcc2 internal prototype to avoid an error. */ 16713#ifdef __cplusplus 16714extern "C" 16715#endif 16716/* We use char because int might match the return type of a gcc2 16717 builtin and then its argument prototype would still apply. */ 16718char shl_load (); 16719int 16720main () 16721{ 16722shl_load (); 16723 ; 16724 return 0; 16725} 16726_ACEOF 16727rm -f conftest.$ac_objext conftest$ac_exeext 16728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16729 (eval $ac_link) 2>&5 16730 ac_status=$? 16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16732 (exit $ac_status); } && 16733 { ac_try='test -s conftest$ac_exeext' 16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16735 (eval $ac_try) 2>&5 16736 ac_status=$? 16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16738 (exit $ac_status); }; }; then 16739 ac_cv_lib_dld_shl_load=yes 16740else 16741 echo "$as_me: failed program was:" >&5 16742sed 's/^/| /' conftest.$ac_ext >&5 16743 16744ac_cv_lib_dld_shl_load=no 16745fi 16746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16747LIBS=$ac_check_lib_save_LIBS 16748fi 16749echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 16750echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 16751if test $ac_cv_lib_dld_shl_load = yes; then 16752 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 16753else 16754 echo "$as_me:$LINENO: checking for dlopen" >&5 16755echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 16756if test "${ac_cv_func_dlopen+set}" = set; then 16757 echo $ECHO_N "(cached) $ECHO_C" >&6 16758else 16759 cat >conftest.$ac_ext <<_ACEOF 16760#line $LINENO "configure" 16761/* confdefs.h. */ 16762_ACEOF 16763cat confdefs.h >>conftest.$ac_ext 16764cat >>conftest.$ac_ext <<_ACEOF 16765/* end confdefs.h. */ 16766/* System header to define __stub macros and hopefully few prototypes, 16767 which can conflict with char dlopen (); below. 16768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16769 <limits.h> exists even on freestanding compilers. */ 16770#ifdef __STDC__ 16771# include <limits.h> 16772#else 16773# include <assert.h> 16774#endif 16775/* Override any gcc2 internal prototype to avoid an error. */ 16776#ifdef __cplusplus 16777extern "C" 16778{ 16779#endif 16780/* We use char because int might match the return type of a gcc2 16781 builtin and then its argument prototype would still apply. */ 16782char dlopen (); 16783/* The GNU C library defines this for functions which it implements 16784 to always fail with ENOSYS. Some functions are actually named 16785 something starting with __ and the normal name is an alias. */ 16786#if defined (__stub_dlopen) || defined (__stub___dlopen) 16787choke me 16788#else 16789char (*f) () = dlopen; 16790#endif 16791#ifdef __cplusplus 16792} 16793#endif 16794 16795int 16796main () 16797{ 16798return f != dlopen; 16799 ; 16800 return 0; 16801} 16802_ACEOF 16803rm -f conftest.$ac_objext conftest$ac_exeext 16804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16805 (eval $ac_link) 2>&5 16806 ac_status=$? 16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16808 (exit $ac_status); } && 16809 { ac_try='test -s conftest$ac_exeext' 16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16811 (eval $ac_try) 2>&5 16812 ac_status=$? 16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16814 (exit $ac_status); }; }; then 16815 ac_cv_func_dlopen=yes 16816else 16817 echo "$as_me: failed program was:" >&5 16818sed 's/^/| /' conftest.$ac_ext >&5 16819 16820ac_cv_func_dlopen=no 16821fi 16822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16823fi 16824echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 16825echo "${ECHO_T}$ac_cv_func_dlopen" >&6 16826if test $ac_cv_func_dlopen = yes; then 16827 lt_cv_dlopen="dlopen" 16828else 16829 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16830echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16831if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16832 echo $ECHO_N "(cached) $ECHO_C" >&6 16833else 16834 ac_check_lib_save_LIBS=$LIBS 16835LIBS="-ldl $LIBS" 16836cat >conftest.$ac_ext <<_ACEOF 16837#line $LINENO "configure" 16838/* confdefs.h. */ 16839_ACEOF 16840cat confdefs.h >>conftest.$ac_ext 16841cat >>conftest.$ac_ext <<_ACEOF 16842/* end confdefs.h. */ 16843 16844/* Override any gcc2 internal prototype to avoid an error. */ 16845#ifdef __cplusplus 16846extern "C" 16847#endif 16848/* We use char because int might match the return type of a gcc2 16849 builtin and then its argument prototype would still apply. */ 16850char dlopen (); 16851int 16852main () 16853{ 16854dlopen (); 16855 ; 16856 return 0; 16857} 16858_ACEOF 16859rm -f conftest.$ac_objext conftest$ac_exeext 16860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16861 (eval $ac_link) 2>&5 16862 ac_status=$? 16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16864 (exit $ac_status); } && 16865 { ac_try='test -s conftest$ac_exeext' 16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16867 (eval $ac_try) 2>&5 16868 ac_status=$? 16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16870 (exit $ac_status); }; }; then 16871 ac_cv_lib_dl_dlopen=yes 16872else 16873 echo "$as_me: failed program was:" >&5 16874sed 's/^/| /' conftest.$ac_ext >&5 16875 16876ac_cv_lib_dl_dlopen=no 16877fi 16878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16879LIBS=$ac_check_lib_save_LIBS 16880fi 16881echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16882echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16883if test $ac_cv_lib_dl_dlopen = yes; then 16884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16885else 16886 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 16887echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 16888if test "${ac_cv_lib_svld_dlopen+set}" = set; then 16889 echo $ECHO_N "(cached) $ECHO_C" >&6 16890else 16891 ac_check_lib_save_LIBS=$LIBS 16892LIBS="-lsvld $LIBS" 16893cat >conftest.$ac_ext <<_ACEOF 16894#line $LINENO "configure" 16895/* confdefs.h. */ 16896_ACEOF 16897cat confdefs.h >>conftest.$ac_ext 16898cat >>conftest.$ac_ext <<_ACEOF 16899/* end confdefs.h. */ 16900 16901/* Override any gcc2 internal prototype to avoid an error. */ 16902#ifdef __cplusplus 16903extern "C" 16904#endif 16905/* We use char because int might match the return type of a gcc2 16906 builtin and then its argument prototype would still apply. */ 16907char dlopen (); 16908int 16909main () 16910{ 16911dlopen (); 16912 ; 16913 return 0; 16914} 16915_ACEOF 16916rm -f conftest.$ac_objext conftest$ac_exeext 16917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16918 (eval $ac_link) 2>&5 16919 ac_status=$? 16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16921 (exit $ac_status); } && 16922 { ac_try='test -s conftest$ac_exeext' 16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16924 (eval $ac_try) 2>&5 16925 ac_status=$? 16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16927 (exit $ac_status); }; }; then 16928 ac_cv_lib_svld_dlopen=yes 16929else 16930 echo "$as_me: failed program was:" >&5 16931sed 's/^/| /' conftest.$ac_ext >&5 16932 16933ac_cv_lib_svld_dlopen=no 16934fi 16935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16936LIBS=$ac_check_lib_save_LIBS 16937fi 16938echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 16939echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 16940if test $ac_cv_lib_svld_dlopen = yes; then 16941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 16942else 16943 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 16944echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 16945if test "${ac_cv_lib_dld_dld_link+set}" = set; then 16946 echo $ECHO_N "(cached) $ECHO_C" >&6 16947else 16948 ac_check_lib_save_LIBS=$LIBS 16949LIBS="-ldld $LIBS" 16950cat >conftest.$ac_ext <<_ACEOF 16951#line $LINENO "configure" 16952/* confdefs.h. */ 16953_ACEOF 16954cat confdefs.h >>conftest.$ac_ext 16955cat >>conftest.$ac_ext <<_ACEOF 16956/* end confdefs.h. */ 16957 16958/* Override any gcc2 internal prototype to avoid an error. */ 16959#ifdef __cplusplus 16960extern "C" 16961#endif 16962/* We use char because int might match the return type of a gcc2 16963 builtin and then its argument prototype would still apply. */ 16964char dld_link (); 16965int 16966main () 16967{ 16968dld_link (); 16969 ; 16970 return 0; 16971} 16972_ACEOF 16973rm -f conftest.$ac_objext conftest$ac_exeext 16974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16975 (eval $ac_link) 2>&5 16976 ac_status=$? 16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16978 (exit $ac_status); } && 16979 { ac_try='test -s conftest$ac_exeext' 16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16981 (eval $ac_try) 2>&5 16982 ac_status=$? 16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16984 (exit $ac_status); }; }; then 16985 ac_cv_lib_dld_dld_link=yes 16986else 16987 echo "$as_me: failed program was:" >&5 16988sed 's/^/| /' conftest.$ac_ext >&5 16989 16990ac_cv_lib_dld_dld_link=no 16991fi 16992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16993LIBS=$ac_check_lib_save_LIBS 16994fi 16995echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 16996echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 16997if test $ac_cv_lib_dld_dld_link = yes; then 16998 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 16999fi 17000 17001 17002fi 17003 17004 17005fi 17006 17007 17008fi 17009 17010 17011fi 17012 17013 17014fi 17015 17016 ;; 17017 esac 17018 17019 if test "x$lt_cv_dlopen" != xno; then 17020 enable_dlopen=yes 17021 else 17022 enable_dlopen=no 17023 fi 17024 17025 case $lt_cv_dlopen in 17026 dlopen) 17027 save_CPPFLAGS="$CPPFLAGS" 17028 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17029 17030 save_LDFLAGS="$LDFLAGS" 17031 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17032 17033 save_LIBS="$LIBS" 17034 LIBS="$lt_cv_dlopen_libs $LIBS" 17035 17036 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 17037echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 17038if test "${lt_cv_dlopen_self+set}" = set; then 17039 echo $ECHO_N "(cached) $ECHO_C" >&6 17040else 17041 if test "$cross_compiling" = yes; then : 17042 lt_cv_dlopen_self=cross 17043else 17044 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17045 lt_status=$lt_dlunknown 17046 cat > conftest.$ac_ext <<EOF 17047#line 17047 "configure" 17048#include "confdefs.h" 17049 17050#if HAVE_DLFCN_H 17051#include <dlfcn.h> 17052#endif 17053 17054#include <stdio.h> 17055 17056#ifdef RTLD_GLOBAL 17057# define LT_DLGLOBAL RTLD_GLOBAL 17058#else 17059# ifdef DL_GLOBAL 17060# define LT_DLGLOBAL DL_GLOBAL 17061# else 17062# define LT_DLGLOBAL 0 17063# endif 17064#endif 17065 17066/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17067 find out it does not work in some platform. */ 17068#ifndef LT_DLLAZY_OR_NOW 17069# ifdef RTLD_LAZY 17070# define LT_DLLAZY_OR_NOW RTLD_LAZY 17071# else 17072# ifdef DL_LAZY 17073# define LT_DLLAZY_OR_NOW DL_LAZY 17074# else 17075# ifdef RTLD_NOW 17076# define LT_DLLAZY_OR_NOW RTLD_NOW 17077# else 17078# ifdef DL_NOW 17079# define LT_DLLAZY_OR_NOW DL_NOW 17080# else 17081# define LT_DLLAZY_OR_NOW 0 17082# endif 17083# endif 17084# endif 17085# endif 17086#endif 17087 17088#ifdef __cplusplus 17089extern "C" void exit (int); 17090#endif 17091 17092void fnord() { int i=42;} 17093int main () 17094{ 17095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17096 int status = $lt_dlunknown; 17097 17098 if (self) 17099 { 17100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17101 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17102 /* dlclose (self); */ 17103 } 17104 17105 exit (status); 17106} 17107EOF 17108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17109 (eval $ac_link) 2>&5 17110 ac_status=$? 17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17112 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17113 (./conftest; exit; ) 2>/dev/null 17114 lt_status=$? 17115 case x$lt_status in 17116 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17117 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17118 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17119 esac 17120 else : 17121 # compilation failed 17122 lt_cv_dlopen_self=no 17123 fi 17124fi 17125rm -fr conftest* 17126 17127 17128fi 17129echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17130echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17131 17132 if test "x$lt_cv_dlopen_self" = xyes; then 17133 LDFLAGS="$LDFLAGS $link_static_flag" 17134 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17135echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17136if test "${lt_cv_dlopen_self_static+set}" = set; then 17137 echo $ECHO_N "(cached) $ECHO_C" >&6 17138else 17139 if test "$cross_compiling" = yes; then : 17140 lt_cv_dlopen_self_static=cross 17141else 17142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17143 lt_status=$lt_dlunknown 17144 cat > conftest.$ac_ext <<EOF 17145#line 17145 "configure" 17146#include "confdefs.h" 17147 17148#if HAVE_DLFCN_H 17149#include <dlfcn.h> 17150#endif 17151 17152#include <stdio.h> 17153 17154#ifdef RTLD_GLOBAL 17155# define LT_DLGLOBAL RTLD_GLOBAL 17156#else 17157# ifdef DL_GLOBAL 17158# define LT_DLGLOBAL DL_GLOBAL 17159# else 17160# define LT_DLGLOBAL 0 17161# endif 17162#endif 17163 17164/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17165 find out it does not work in some platform. */ 17166#ifndef LT_DLLAZY_OR_NOW 17167# ifdef RTLD_LAZY 17168# define LT_DLLAZY_OR_NOW RTLD_LAZY 17169# else 17170# ifdef DL_LAZY 17171# define LT_DLLAZY_OR_NOW DL_LAZY 17172# else 17173# ifdef RTLD_NOW 17174# define LT_DLLAZY_OR_NOW RTLD_NOW 17175# else 17176# ifdef DL_NOW 17177# define LT_DLLAZY_OR_NOW DL_NOW 17178# else 17179# define LT_DLLAZY_OR_NOW 0 17180# endif 17181# endif 17182# endif 17183# endif 17184#endif 17185 17186#ifdef __cplusplus 17187extern "C" void exit (int); 17188#endif 17189 17190void fnord() { int i=42;} 17191int main () 17192{ 17193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17194 int status = $lt_dlunknown; 17195 17196 if (self) 17197 { 17198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17199 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17200 /* dlclose (self); */ 17201 } 17202 17203 exit (status); 17204} 17205EOF 17206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17207 (eval $ac_link) 2>&5 17208 ac_status=$? 17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17210 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17211 (./conftest; exit; ) 2>/dev/null 17212 lt_status=$? 17213 case x$lt_status in 17214 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17215 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17216 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 17217 esac 17218 else : 17219 # compilation failed 17220 lt_cv_dlopen_self_static=no 17221 fi 17222fi 17223rm -fr conftest* 17224 17225 17226fi 17227echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17228echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 17229 fi 17230 17231 CPPFLAGS="$save_CPPFLAGS" 17232 LDFLAGS="$save_LDFLAGS" 17233 LIBS="$save_LIBS" 17234 ;; 17235 esac 17236 17237 case $lt_cv_dlopen_self in 17238 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17239 *) enable_dlopen_self=unknown ;; 17240 esac 17241 17242 case $lt_cv_dlopen_self_static in 17243 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17244 *) enable_dlopen_self_static=unknown ;; 17245 esac 17246fi 17247 17248 17249# The else clause should only fire when bootstrapping the 17250# libtool distribution, otherwise you forgot to ship ltmain.sh 17251# with your package, and you will get complaints that there are 17252# no rules to generate ltmain.sh. 17253if test -f "$ltmain"; then 17254 # See if we are running on zsh, and set the options which allow our commands through 17255 # without removal of \ escapes. 17256 if test -n "${ZSH_VERSION+set}" ; then 17257 setopt NO_GLOB_SUBST 17258 fi 17259 # Now quote all the things that may contain metacharacters while being 17260 # careful not to overquote the AC_SUBSTed values. We take copies of the 17261 # variables and quote the copies for generation of the libtool script. 17262 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17263 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17264 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17265 deplibs_check_method reload_flag reload_cmds need_locks \ 17266 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17267 lt_cv_sys_global_symbol_to_c_name_address \ 17268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17269 old_postinstall_cmds old_postuninstall_cmds \ 17270 compiler_GCJ \ 17271 CC_GCJ \ 17272 LD_GCJ \ 17273 lt_prog_compiler_wl_GCJ \ 17274 lt_prog_compiler_pic_GCJ \ 17275 lt_prog_compiler_static_GCJ \ 17276 lt_prog_compiler_no_builtin_flag_GCJ \ 17277 export_dynamic_flag_spec_GCJ \ 17278 thread_safe_flag_spec_GCJ \ 17279 whole_archive_flag_spec_GCJ \ 17280 enable_shared_with_static_runtimes_GCJ \ 17281 old_archive_cmds_GCJ \ 17282 old_archive_from_new_cmds_GCJ \ 17283 predep_objects_GCJ \ 17284 postdep_objects_GCJ \ 17285 predeps_GCJ \ 17286 postdeps_GCJ \ 17287 compiler_lib_search_path_GCJ \ 17288 archive_cmds_GCJ \ 17289 archive_expsym_cmds_GCJ \ 17290 postinstall_cmds_GCJ \ 17291 postuninstall_cmds_GCJ \ 17292 old_archive_from_expsyms_cmds_GCJ \ 17293 allow_undefined_flag_GCJ \ 17294 no_undefined_flag_GCJ \ 17295 export_symbols_cmds_GCJ \ 17296 hardcode_libdir_flag_spec_GCJ \ 17297 hardcode_libdir_flag_spec_ld_GCJ \ 17298 hardcode_libdir_separator_GCJ \ 17299 hardcode_automatic_GCJ \ 17300 module_cmds_GCJ \ 17301 module_expsym_cmds_GCJ \ 17302 lt_cv_prog_compiler_c_o_GCJ \ 17303 exclude_expsyms_GCJ \ 17304 include_expsyms_GCJ; do 17305 17306 case $var in 17307 old_archive_cmds_GCJ | \ 17308 old_archive_from_new_cmds_GCJ | \ 17309 archive_cmds_GCJ | \ 17310 archive_expsym_cmds_GCJ | \ 17311 module_cmds_GCJ | \ 17312 module_expsym_cmds_GCJ | \ 17313 old_archive_from_expsyms_cmds_GCJ | \ 17314 export_symbols_cmds_GCJ | \ 17315 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17316 postinstall_cmds | postuninstall_cmds | \ 17317 old_postinstall_cmds | old_postuninstall_cmds | \ 17318 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17319 # Double-quote double-evaled strings. 17320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17321 ;; 17322 *) 17323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17324 ;; 17325 esac 17326 done 17327 17328 case $lt_echo in 17329 *'\$0 --fallback-echo"') 17330 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17331 ;; 17332 esac 17333 17334cfgfile="$ofile" 17335 17336 cat <<__EOF__ >> "$cfgfile" 17337# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17338 17339# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17340 17341# Shell to use when invoking shell scripts. 17342SHELL=$lt_SHELL 17343 17344# Whether or not to build shared libraries. 17345build_libtool_libs=$enable_shared 17346 17347# Whether or not to build static libraries. 17348build_old_libs=$enable_static 17349 17350# Whether or not to add -lc for building shared libraries. 17351build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17352 17353# Whether or not to disallow shared libs when runtime libs are static 17354allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17355 17356# Whether or not to optimize for fast installation. 17357fast_install=$enable_fast_install 17358 17359# The host system. 17360host_alias=$host_alias 17361host=$host 17362 17363# An echo program that does not interpret backslashes. 17364echo=$lt_echo 17365 17366# The archiver. 17367AR=$lt_AR 17368AR_FLAGS=$lt_AR_FLAGS 17369 17370# A C compiler. 17371LTCC=$lt_LTCC 17372 17373# A language-specific compiler. 17374CC=$lt_compiler_GCJ 17375 17376# Is the compiler the GNU C compiler? 17377with_gcc=$GCC_GCJ 17378 17379# An ERE matcher. 17380EGREP=$lt_EGREP 17381 17382# The linker used to build libraries. 17383LD=$lt_LD_GCJ 17384 17385# Whether we need hard or soft links. 17386LN_S=$lt_LN_S 17387 17388# A BSD-compatible nm program. 17389NM=$lt_NM 17390 17391# A symbol stripping program 17392STRIP=$STRIP 17393 17394# Used to examine libraries when file_magic_cmd begins "file" 17395MAGIC_CMD=$MAGIC_CMD 17396 17397# Used on cygwin: DLL creation program. 17398DLLTOOL="$DLLTOOL" 17399 17400# Used on cygwin: object dumper. 17401OBJDUMP="$OBJDUMP" 17402 17403# Used on cygwin: assembler. 17404AS="$AS" 17405 17406# The name of the directory that contains temporary libtool files. 17407objdir=$objdir 17408 17409# How to create reloadable object files. 17410reload_flag=$lt_reload_flag 17411reload_cmds=$lt_reload_cmds 17412 17413# How to pass a linker flag through the compiler. 17414wl=$lt_lt_prog_compiler_wl_GCJ 17415 17416# Object file suffix (normally "o"). 17417objext="$ac_objext" 17418 17419# Old archive suffix (normally "a"). 17420libext="$libext" 17421 17422# Shared library suffix (normally ".so"). 17423shrext='$shrext' 17424 17425# Executable file suffix (normally ""). 17426exeext="$exeext" 17427 17428# Additional compiler flags for building library objects. 17429pic_flag=$lt_lt_prog_compiler_pic_GCJ 17430pic_mode=$pic_mode 17431 17432# What is the maximum length of a command? 17433max_cmd_len=$lt_cv_sys_max_cmd_len 17434 17435# Does compiler simultaneously support -c and -o options? 17436compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17437 17438# Must we lock files when doing compilation ? 17439need_locks=$lt_need_locks 17440 17441# Do we need the lib prefix for modules? 17442need_lib_prefix=$need_lib_prefix 17443 17444# Do we need a version for libraries? 17445need_version=$need_version 17446 17447# Whether dlopen is supported. 17448dlopen_support=$enable_dlopen 17449 17450# Whether dlopen of programs is supported. 17451dlopen_self=$enable_dlopen_self 17452 17453# Whether dlopen of statically linked programs is supported. 17454dlopen_self_static=$enable_dlopen_self_static 17455 17456# Compiler flag to prevent dynamic linking. 17457link_static_flag=$lt_lt_prog_compiler_static_GCJ 17458 17459# Compiler flag to turn off builtin functions. 17460no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17461 17462# Compiler flag to allow reflexive dlopens. 17463export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17464 17465# Compiler flag to generate shared objects directly from archives. 17466whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17467 17468# Compiler flag to generate thread-safe objects. 17469thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17470 17471# Library versioning type. 17472version_type=$version_type 17473 17474# Format of library name prefix. 17475libname_spec=$lt_libname_spec 17476 17477# List of archive names. First name is the real one, the rest are links. 17478# The last name is the one that the linker finds with -lNAME. 17479library_names_spec=$lt_library_names_spec 17480 17481# The coded name of the library, if different from the real name. 17482soname_spec=$lt_soname_spec 17483 17484# Commands used to build and install an old-style archive. 17485RANLIB=$lt_RANLIB 17486old_archive_cmds=$lt_old_archive_cmds_GCJ 17487old_postinstall_cmds=$lt_old_postinstall_cmds 17488old_postuninstall_cmds=$lt_old_postuninstall_cmds 17489 17490# Create an old-style archive from a shared archive. 17491old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17492 17493# Create a temporary old-style archive to link instead of a shared archive. 17494old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17495 17496# Commands used to build and install a shared archive. 17497archive_cmds=$lt_archive_cmds_GCJ 17498archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17499postinstall_cmds=$lt_postinstall_cmds 17500postuninstall_cmds=$lt_postuninstall_cmds 17501 17502# Commands used to build a loadable module (assumed same as above if empty) 17503module_cmds=$lt_module_cmds_GCJ 17504module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17505 17506# Commands to strip libraries. 17507old_striplib=$lt_old_striplib 17508striplib=$lt_striplib 17509 17510# Dependencies to place before the objects being linked to create a 17511# shared library. 17512predep_objects=$lt_predep_objects_GCJ 17513 17514# Dependencies to place after the objects being linked to create a 17515# shared library. 17516postdep_objects=$lt_postdep_objects_GCJ 17517 17518# Dependencies to place before the objects being linked to create a 17519# shared library. 17520predeps=$lt_predeps_GCJ 17521 17522# Dependencies to place after the objects being linked to create a 17523# shared library. 17524postdeps=$lt_postdeps_GCJ 17525 17526# The library search path used internally by the compiler when linking 17527# a shared library. 17528compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17529 17530# Method to check whether dependent libraries are shared objects. 17531deplibs_check_method=$lt_deplibs_check_method 17532 17533# Command to use when deplibs_check_method == file_magic. 17534file_magic_cmd=$lt_file_magic_cmd 17535 17536# Flag that allows shared libraries with undefined symbols to be built. 17537allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17538 17539# Flag that forces no undefined symbols. 17540no_undefined_flag=$lt_no_undefined_flag_GCJ 17541 17542# Commands used to finish a libtool library installation in a directory. 17543finish_cmds=$lt_finish_cmds 17544 17545# Same as above, but a single script fragment to be evaled but not shown. 17546finish_eval=$lt_finish_eval 17547 17548# Take the output of nm and produce a listing of raw symbols and C names. 17549global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17550 17551# Transform the output of nm in a proper C declaration 17552global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17553 17554# Transform the output of nm in a C name address pair 17555global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17556 17557# This is the shared library runtime path variable. 17558runpath_var=$runpath_var 17559 17560# This is the shared library path variable. 17561shlibpath_var=$shlibpath_var 17562 17563# Is shlibpath searched before the hard-coded library search path? 17564shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17565 17566# How to hardcode a shared library path into an executable. 17567hardcode_action=$hardcode_action_GCJ 17568 17569# Whether we should hardcode library paths into libraries. 17570hardcode_into_libs=$hardcode_into_libs 17571 17572# Flag to hardcode \$libdir into a binary during linking. 17573# This must work even if \$libdir does not exist. 17574hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17575 17576# If ld is used when linking, flag to hardcode \$libdir into 17577# a binary during linking. This must work even if \$libdir does 17578# not exist. 17579hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17580 17581# Whether we need a single -rpath flag with a separated argument. 17582hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17583 17584# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17585# resulting binary. 17586hardcode_direct=$hardcode_direct_GCJ 17587 17588# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17589# resulting binary. 17590hardcode_minus_L=$hardcode_minus_L_GCJ 17591 17592# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17593# the resulting binary. 17594hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17595 17596# Set to yes if building a shared library automatically hardcodes DIR into the library 17597# and all subsequent libraries and executables linked against it. 17598hardcode_automatic=$hardcode_automatic_GCJ 17599 17600# Variables whose values should be saved in libtool wrapper scripts and 17601# restored at relink time. 17602variables_saved_for_relink="$variables_saved_for_relink" 17603 17604# Whether libtool must link a program against all its dependency libraries. 17605link_all_deplibs=$link_all_deplibs_GCJ 17606 17607# Compile-time system search path for libraries 17608sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17609 17610# Run-time system search path for libraries 17611sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17612 17613# Fix the shell variable \$srcfile for the compiler. 17614fix_srcfile_path="$fix_srcfile_path_GCJ" 17615 17616# Set to yes if exported symbols are required. 17617always_export_symbols=$always_export_symbols_GCJ 17618 17619# The commands to list exported symbols. 17620export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17621 17622# The commands to extract the exported symbol list from a shared archive. 17623extract_expsyms_cmds=$lt_extract_expsyms_cmds 17624 17625# Symbols that should not be listed in the preloaded symbols. 17626exclude_expsyms=$lt_exclude_expsyms_GCJ 17627 17628# Symbols that must always be exported. 17629include_expsyms=$lt_include_expsyms_GCJ 17630 17631# ### END LIBTOOL TAG CONFIG: $tagname 17632 17633__EOF__ 17634 17635 17636else 17637 # If there is no Makefile yet, we rely on a make rule to execute 17638 # `config.status --recheck' to rerun these tests and create the 17639 # libtool script then. 17640 test -f Makefile && make "$ltmain" 17641fi 17642 17643 17644ac_ext=c 17645ac_cpp='$CPP $CPPFLAGS' 17646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17648ac_compiler_gnu=$ac_cv_c_compiler_gnu 17649 17650CC="$lt_save_CC" 17651 17652 else 17653 tagname="" 17654 fi 17655 ;; 17656 17657 RC) 17658 17659 17660 17661# Source file extension for RC test sources. 17662ac_ext=rc 17663 17664# Object file extension for compiled RC test sources. 17665objext=o 17666objext_RC=$objext 17667 17668# Code to be used in simple compile tests 17669lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17670 17671# Code to be used in simple link tests 17672lt_simple_link_test_code="$lt_simple_compile_test_code" 17673 17674# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17675 17676# If no C compiler was specified, use CC. 17677LTCC=${LTCC-"$CC"} 17678 17679# Allow CC to be a program name with arguments. 17680compiler=$CC 17681 17682 17683# Allow CC to be a program name with arguments. 17684lt_save_CC="$CC" 17685CC=${RC-"windres"} 17686compiler=$CC 17687compiler_RC=$CC 17688lt_cv_prog_compiler_c_o_RC=yes 17689 17690# The else clause should only fire when bootstrapping the 17691# libtool distribution, otherwise you forgot to ship ltmain.sh 17692# with your package, and you will get complaints that there are 17693# no rules to generate ltmain.sh. 17694if test -f "$ltmain"; then 17695 # See if we are running on zsh, and set the options which allow our commands through 17696 # without removal of \ escapes. 17697 if test -n "${ZSH_VERSION+set}" ; then 17698 setopt NO_GLOB_SUBST 17699 fi 17700 # Now quote all the things that may contain metacharacters while being 17701 # careful not to overquote the AC_SUBSTed values. We take copies of the 17702 # variables and quote the copies for generation of the libtool script. 17703 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17706 deplibs_check_method reload_flag reload_cmds need_locks \ 17707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17708 lt_cv_sys_global_symbol_to_c_name_address \ 17709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17710 old_postinstall_cmds old_postuninstall_cmds \ 17711 compiler_RC \ 17712 CC_RC \ 17713 LD_RC \ 17714 lt_prog_compiler_wl_RC \ 17715 lt_prog_compiler_pic_RC \ 17716 lt_prog_compiler_static_RC \ 17717 lt_prog_compiler_no_builtin_flag_RC \ 17718 export_dynamic_flag_spec_RC \ 17719 thread_safe_flag_spec_RC \ 17720 whole_archive_flag_spec_RC \ 17721 enable_shared_with_static_runtimes_RC \ 17722 old_archive_cmds_RC \ 17723 old_archive_from_new_cmds_RC \ 17724 predep_objects_RC \ 17725 postdep_objects_RC \ 17726 predeps_RC \ 17727 postdeps_RC \ 17728 compiler_lib_search_path_RC \ 17729 archive_cmds_RC \ 17730 archive_expsym_cmds_RC \ 17731 postinstall_cmds_RC \ 17732 postuninstall_cmds_RC \ 17733 old_archive_from_expsyms_cmds_RC \ 17734 allow_undefined_flag_RC \ 17735 no_undefined_flag_RC \ 17736 export_symbols_cmds_RC \ 17737 hardcode_libdir_flag_spec_RC \ 17738 hardcode_libdir_flag_spec_ld_RC \ 17739 hardcode_libdir_separator_RC \ 17740 hardcode_automatic_RC \ 17741 module_cmds_RC \ 17742 module_expsym_cmds_RC \ 17743 lt_cv_prog_compiler_c_o_RC \ 17744 exclude_expsyms_RC \ 17745 include_expsyms_RC; do 17746 17747 case $var in 17748 old_archive_cmds_RC | \ 17749 old_archive_from_new_cmds_RC | \ 17750 archive_cmds_RC | \ 17751 archive_expsym_cmds_RC | \ 17752 module_cmds_RC | \ 17753 module_expsym_cmds_RC | \ 17754 old_archive_from_expsyms_cmds_RC | \ 17755 export_symbols_cmds_RC | \ 17756 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17757 postinstall_cmds | postuninstall_cmds | \ 17758 old_postinstall_cmds | old_postuninstall_cmds | \ 17759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17760 # Double-quote double-evaled strings. 17761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17762 ;; 17763 *) 17764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17765 ;; 17766 esac 17767 done 17768 17769 case $lt_echo in 17770 *'\$0 --fallback-echo"') 17771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17772 ;; 17773 esac 17774 17775cfgfile="$ofile" 17776 17777 cat <<__EOF__ >> "$cfgfile" 17778# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17779 17780# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17781 17782# Shell to use when invoking shell scripts. 17783SHELL=$lt_SHELL 17784 17785# Whether or not to build shared libraries. 17786build_libtool_libs=$enable_shared 17787 17788# Whether or not to build static libraries. 17789build_old_libs=$enable_static 17790 17791# Whether or not to add -lc for building shared libraries. 17792build_libtool_need_lc=$archive_cmds_need_lc_RC 17793 17794# Whether or not to disallow shared libs when runtime libs are static 17795allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17796 17797# Whether or not to optimize for fast installation. 17798fast_install=$enable_fast_install 17799 17800# The host system. 17801host_alias=$host_alias 17802host=$host 17803 17804# An echo program that does not interpret backslashes. 17805echo=$lt_echo 17806 17807# The archiver. 17808AR=$lt_AR 17809AR_FLAGS=$lt_AR_FLAGS 17810 17811# A C compiler. 17812LTCC=$lt_LTCC 17813 17814# A language-specific compiler. 17815CC=$lt_compiler_RC 17816 17817# Is the compiler the GNU C compiler? 17818with_gcc=$GCC_RC 17819 17820# An ERE matcher. 17821EGREP=$lt_EGREP 17822 17823# The linker used to build libraries. 17824LD=$lt_LD_RC 17825 17826# Whether we need hard or soft links. 17827LN_S=$lt_LN_S 17828 17829# A BSD-compatible nm program. 17830NM=$lt_NM 17831 17832# A symbol stripping program 17833STRIP=$STRIP 17834 17835# Used to examine libraries when file_magic_cmd begins "file" 17836MAGIC_CMD=$MAGIC_CMD 17837 17838# Used on cygwin: DLL creation program. 17839DLLTOOL="$DLLTOOL" 17840 17841# Used on cygwin: object dumper. 17842OBJDUMP="$OBJDUMP" 17843 17844# Used on cygwin: assembler. 17845AS="$AS" 17846 17847# The name of the directory that contains temporary libtool files. 17848objdir=$objdir 17849 17850# How to create reloadable object files. 17851reload_flag=$lt_reload_flag 17852reload_cmds=$lt_reload_cmds 17853 17854# How to pass a linker flag through the compiler. 17855wl=$lt_lt_prog_compiler_wl_RC 17856 17857# Object file suffix (normally "o"). 17858objext="$ac_objext" 17859 17860# Old archive suffix (normally "a"). 17861libext="$libext" 17862 17863# Shared library suffix (normally ".so"). 17864shrext='$shrext' 17865 17866# Executable file suffix (normally ""). 17867exeext="$exeext" 17868 17869# Additional compiler flags for building library objects. 17870pic_flag=$lt_lt_prog_compiler_pic_RC 17871pic_mode=$pic_mode 17872 17873# What is the maximum length of a command? 17874max_cmd_len=$lt_cv_sys_max_cmd_len 17875 17876# Does compiler simultaneously support -c and -o options? 17877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 17878 17879# Must we lock files when doing compilation ? 17880need_locks=$lt_need_locks 17881 17882# Do we need the lib prefix for modules? 17883need_lib_prefix=$need_lib_prefix 17884 17885# Do we need a version for libraries? 17886need_version=$need_version 17887 17888# Whether dlopen is supported. 17889dlopen_support=$enable_dlopen 17890 17891# Whether dlopen of programs is supported. 17892dlopen_self=$enable_dlopen_self 17893 17894# Whether dlopen of statically linked programs is supported. 17895dlopen_self_static=$enable_dlopen_self_static 17896 17897# Compiler flag to prevent dynamic linking. 17898link_static_flag=$lt_lt_prog_compiler_static_RC 17899 17900# Compiler flag to turn off builtin functions. 17901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 17902 17903# Compiler flag to allow reflexive dlopens. 17904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 17905 17906# Compiler flag to generate shared objects directly from archives. 17907whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 17908 17909# Compiler flag to generate thread-safe objects. 17910thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 17911 17912# Library versioning type. 17913version_type=$version_type 17914 17915# Format of library name prefix. 17916libname_spec=$lt_libname_spec 17917 17918# List of archive names. First name is the real one, the rest are links. 17919# The last name is the one that the linker finds with -lNAME. 17920library_names_spec=$lt_library_names_spec 17921 17922# The coded name of the library, if different from the real name. 17923soname_spec=$lt_soname_spec 17924 17925# Commands used to build and install an old-style archive. 17926RANLIB=$lt_RANLIB 17927old_archive_cmds=$lt_old_archive_cmds_RC 17928old_postinstall_cmds=$lt_old_postinstall_cmds 17929old_postuninstall_cmds=$lt_old_postuninstall_cmds 17930 17931# Create an old-style archive from a shared archive. 17932old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 17933 17934# Create a temporary old-style archive to link instead of a shared archive. 17935old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 17936 17937# Commands used to build and install a shared archive. 17938archive_cmds=$lt_archive_cmds_RC 17939archive_expsym_cmds=$lt_archive_expsym_cmds_RC 17940postinstall_cmds=$lt_postinstall_cmds 17941postuninstall_cmds=$lt_postuninstall_cmds 17942 17943# Commands used to build a loadable module (assumed same as above if empty) 17944module_cmds=$lt_module_cmds_RC 17945module_expsym_cmds=$lt_module_expsym_cmds_RC 17946 17947# Commands to strip libraries. 17948old_striplib=$lt_old_striplib 17949striplib=$lt_striplib 17950 17951# Dependencies to place before the objects being linked to create a 17952# shared library. 17953predep_objects=$lt_predep_objects_RC 17954 17955# Dependencies to place after the objects being linked to create a 17956# shared library. 17957postdep_objects=$lt_postdep_objects_RC 17958 17959# Dependencies to place before the objects being linked to create a 17960# shared library. 17961predeps=$lt_predeps_RC 17962 17963# Dependencies to place after the objects being linked to create a 17964# shared library. 17965postdeps=$lt_postdeps_RC 17966 17967# The library search path used internally by the compiler when linking 17968# a shared library. 17969compiler_lib_search_path=$lt_compiler_lib_search_path_RC 17970 17971# Method to check whether dependent libraries are shared objects. 17972deplibs_check_method=$lt_deplibs_check_method 17973 17974# Command to use when deplibs_check_method == file_magic. 17975file_magic_cmd=$lt_file_magic_cmd 17976 17977# Flag that allows shared libraries with undefined symbols to be built. 17978allow_undefined_flag=$lt_allow_undefined_flag_RC 17979 17980# Flag that forces no undefined symbols. 17981no_undefined_flag=$lt_no_undefined_flag_RC 17982 17983# Commands used to finish a libtool library installation in a directory. 17984finish_cmds=$lt_finish_cmds 17985 17986# Same as above, but a single script fragment to be evaled but not shown. 17987finish_eval=$lt_finish_eval 17988 17989# Take the output of nm and produce a listing of raw symbols and C names. 17990global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17991 17992# Transform the output of nm in a proper C declaration 17993global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17994 17995# Transform the output of nm in a C name address pair 17996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17997 17998# This is the shared library runtime path variable. 17999runpath_var=$runpath_var 18000 18001# This is the shared library path variable. 18002shlibpath_var=$shlibpath_var 18003 18004# Is shlibpath searched before the hard-coded library search path? 18005shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18006 18007# How to hardcode a shared library path into an executable. 18008hardcode_action=$hardcode_action_RC 18009 18010# Whether we should hardcode library paths into libraries. 18011hardcode_into_libs=$hardcode_into_libs 18012 18013# Flag to hardcode \$libdir into a binary during linking. 18014# This must work even if \$libdir does not exist. 18015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18016 18017# If ld is used when linking, flag to hardcode \$libdir into 18018# a binary during linking. This must work even if \$libdir does 18019# not exist. 18020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18021 18022# Whether we need a single -rpath flag with a separated argument. 18023hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18024 18025# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18026# resulting binary. 18027hardcode_direct=$hardcode_direct_RC 18028 18029# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18030# resulting binary. 18031hardcode_minus_L=$hardcode_minus_L_RC 18032 18033# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18034# the resulting binary. 18035hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18036 18037# Set to yes if building a shared library automatically hardcodes DIR into the library 18038# and all subsequent libraries and executables linked against it. 18039hardcode_automatic=$hardcode_automatic_RC 18040 18041# Variables whose values should be saved in libtool wrapper scripts and 18042# restored at relink time. 18043variables_saved_for_relink="$variables_saved_for_relink" 18044 18045# Whether libtool must link a program against all its dependency libraries. 18046link_all_deplibs=$link_all_deplibs_RC 18047 18048# Compile-time system search path for libraries 18049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18050 18051# Run-time system search path for libraries 18052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18053 18054# Fix the shell variable \$srcfile for the compiler. 18055fix_srcfile_path="$fix_srcfile_path_RC" 18056 18057# Set to yes if exported symbols are required. 18058always_export_symbols=$always_export_symbols_RC 18059 18060# The commands to list exported symbols. 18061export_symbols_cmds=$lt_export_symbols_cmds_RC 18062 18063# The commands to extract the exported symbol list from a shared archive. 18064extract_expsyms_cmds=$lt_extract_expsyms_cmds 18065 18066# Symbols that should not be listed in the preloaded symbols. 18067exclude_expsyms=$lt_exclude_expsyms_RC 18068 18069# Symbols that must always be exported. 18070include_expsyms=$lt_include_expsyms_RC 18071 18072# ### END LIBTOOL TAG CONFIG: $tagname 18073 18074__EOF__ 18075 18076 18077else 18078 # If there is no Makefile yet, we rely on a make rule to execute 18079 # `config.status --recheck' to rerun these tests and create the 18080 # libtool script then. 18081 test -f Makefile && make "$ltmain" 18082fi 18083 18084 18085ac_ext=c 18086ac_cpp='$CPP $CPPFLAGS' 18087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18089ac_compiler_gnu=$ac_cv_c_compiler_gnu 18090 18091CC="$lt_save_CC" 18092 18093 ;; 18094 18095 *) 18096 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18097echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18098 { (exit 1); exit 1; }; } 18099 ;; 18100 esac 18101 18102 # Append the new tag name to the list of available tags. 18103 if test -n "$tagname" ; then 18104 available_tags="$available_tags $tagname" 18105 fi 18106 fi 18107 done 18108 IFS="$lt_save_ifs" 18109 18110 # Now substitute the updated list of available tags. 18111 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18112 mv "${ofile}T" "$ofile" 18113 chmod +x "$ofile" 18114 else 18115 rm -f "${ofile}T" 18116 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18117echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18118 { (exit 1); exit 1; }; } 18119 fi 18120fi 18121 18122 18123 18124# This can be used to rebuild libtool when needed 18125LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18126 18127# Always use our own libtool. 18128LIBTOOL='$(SHELL) $(top_builddir)/mklib' 18129 18130# Prevent multiple expansion 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152# Extract the first word of "dot", so it can be a program name with args. 18153set dummy dot; ac_word=$2 18154echo "$as_me:$LINENO: checking for $ac_word" >&5 18155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18156if test "${ac_cv_path_DOT+set}" = set; then 18157 echo $ECHO_N "(cached) $ECHO_C" >&6 18158else 18159 case $DOT in 18160 [\\/]* | ?:[\\/]*) 18161 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 18162 ;; 18163 *) 18164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18165for as_dir in $PATH 18166do 18167 IFS=$as_save_IFS 18168 test -z "$as_dir" && as_dir=. 18169 for ac_exec_ext in '' $ac_executable_extensions; do 18170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18171 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 18172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18173 break 2 18174 fi 18175done 18176done 18177 18178 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" 18179 ;; 18180esac 18181fi 18182DOT=$ac_cv_path_DOT 18183 18184if test -n "$DOT"; then 18185 echo "$as_me:$LINENO: result: $DOT" >&5 18186echo "${ECHO_T}$DOT" >&6 18187else 18188 echo "$as_me:$LINENO: result: no" >&5 18189echo "${ECHO_T}no" >&6 18190fi 18191 18192# Extract the first word of "etags", so it can be a program name with args. 18193set dummy etags; ac_word=$2 18194echo "$as_me:$LINENO: checking for $ac_word" >&5 18195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18196if test "${ac_cv_path_ETAGS+set}" = set; then 18197 echo $ECHO_N "(cached) $ECHO_C" >&6 18198else 18199 case $ETAGS in 18200 [\\/]* | ?:[\\/]*) 18201 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 18202 ;; 18203 *) 18204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18205for as_dir in $PATH 18206do 18207 IFS=$as_save_IFS 18208 test -z "$as_dir" && as_dir=. 18209 for ac_exec_ext in '' $ac_executable_extensions; do 18210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18211 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 18212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18213 break 2 18214 fi 18215done 18216done 18217 18218 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" 18219 ;; 18220esac 18221fi 18222ETAGS=$ac_cv_path_ETAGS 18223 18224if test -n "$ETAGS"; then 18225 echo "$as_me:$LINENO: result: $ETAGS" >&5 18226echo "${ECHO_T}$ETAGS" >&6 18227else 18228 echo "$as_me:$LINENO: result: no" >&5 18229echo "${ECHO_T}no" >&6 18230fi 18231 18232etags_version=`$ETAGS --version 2>&1` 18233case "$etags_version" in 18234 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; 18235 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; 18236 *) ETAGSFLAGS="" ;; 18237esac 18238ETAGSFLAGS=$ETAGSFLAGS 18239 18240# Extract the first word of "python", so it can be a program name with args. 18241set dummy python; ac_word=$2 18242echo "$as_me:$LINENO: checking for $ac_word" >&5 18243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18244if test "${ac_cv_path_PYTHON+set}" = set; then 18245 echo $ECHO_N "(cached) $ECHO_C" >&6 18246else 18247 case $PYTHON in 18248 [\\/]* | ?:[\\/]*) 18249 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 18250 ;; 18251 *) 18252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18253for as_dir in $PATH 18254do 18255 IFS=$as_save_IFS 18256 test -z "$as_dir" && as_dir=. 18257 for ac_exec_ext in '' $ac_executable_extensions; do 18258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18259 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 18260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18261 break 2 18262 fi 18263done 18264done 18265 18266 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" 18267 ;; 18268esac 18269fi 18270PYTHON=$ac_cv_path_PYTHON 18271 18272if test -n "$PYTHON"; then 18273 echo "$as_me:$LINENO: result: $PYTHON" >&5 18274echo "${ECHO_T}$PYTHON" >&6 18275else 18276 echo "$as_me:$LINENO: result: no" >&5 18277echo "${ECHO_T}no" >&6 18278fi 18279 18280if test "$PYTHON" = "false" 18281then 18282 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 18283echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} 18284fi 18285# Extract the first word of "qmtest", so it can be a program name with args. 18286set dummy qmtest; ac_word=$2 18287echo "$as_me:$LINENO: checking for $ac_word" >&5 18288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18289if test "${ac_cv_path_QMTEST+set}" = set; then 18290 echo $ECHO_N "(cached) $ECHO_C" >&6 18291else 18292 case $QMTEST in 18293 [\\/]* | ?:[\\/]*) 18294 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. 18295 ;; 18296 *) 18297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18298for as_dir in $PATH 18299do 18300 IFS=$as_save_IFS 18301 test -z "$as_dir" && as_dir=. 18302 for ac_exec_ext in '' $ac_executable_extensions; do 18303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18304 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" 18305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18306 break 2 18307 fi 18308done 18309done 18310 18311 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" 18312 ;; 18313esac 18314fi 18315QMTEST=$ac_cv_path_QMTEST 18316 18317if test -n "$QMTEST"; then 18318 echo "$as_me:$LINENO: result: $QMTEST" >&5 18319echo "${ECHO_T}$QMTEST" >&6 18320else 18321 echo "$as_me:$LINENO: result: no" >&5 18322echo "${ECHO_T}no" >&6 18323fi 18324 18325if test "$QMTEST" = "false" 18326then 18327 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 18328echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} 18329fi 18330 18331pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` 18332pymajor=`echo $pyversion | cut -d. -f1` 18333pyminor=`echo $pyversion | cut -d. -f2` 18334 18335if test "$pymajor" -ge "2" 18336then 18337 if test "$pymajor" -eq "2" 18338 then 18339 if test "$pyminor" -lt "2" 18340 then 18341 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 18342echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} 18343 fi 18344 fi 18345else 18346 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 18347echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} 18348fi 18349 18350 18351 18352 18353echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 18354echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 18355if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 18356 echo $ECHO_N "(cached) $ECHO_C" >&6 18357else 18358 ac_check_lib_save_LIBS=$LIBS 18359LIBS="-lelf $LIBS" 18360cat >conftest.$ac_ext <<_ACEOF 18361#line $LINENO "configure" 18362/* confdefs.h. */ 18363_ACEOF 18364cat confdefs.h >>conftest.$ac_ext 18365cat >>conftest.$ac_ext <<_ACEOF 18366/* end confdefs.h. */ 18367 18368/* Override any gcc2 internal prototype to avoid an error. */ 18369#ifdef __cplusplus 18370extern "C" 18371#endif 18372/* We use char because int might match the return type of a gcc2 18373 builtin and then its argument prototype would still apply. */ 18374char elf_begin (); 18375int 18376main () 18377{ 18378elf_begin (); 18379 ; 18380 return 0; 18381} 18382_ACEOF 18383rm -f conftest.$ac_objext conftest$ac_exeext 18384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18385 (eval $ac_link) 2>&5 18386 ac_status=$? 18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18388 (exit $ac_status); } && 18389 { ac_try='test -s conftest$ac_exeext' 18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18391 (eval $ac_try) 2>&5 18392 ac_status=$? 18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18394 (exit $ac_status); }; }; then 18395 ac_cv_lib_elf_elf_begin=yes 18396else 18397 echo "$as_me: failed program was:" >&5 18398sed 's/^/| /' conftest.$ac_ext >&5 18399 18400ac_cv_lib_elf_elf_begin=no 18401fi 18402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18403LIBS=$ac_check_lib_save_LIBS 18404fi 18405echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 18406echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 18407if test $ac_cv_lib_elf_elf_begin = yes; then 18408 cat >>confdefs.h <<_ACEOF 18409#define HAVE_LIBELF 1 18410_ACEOF 18411 18412 LIBS="-lelf $LIBS" 18413 18414fi 18415 18416 18417echo "$as_me:$LINENO: checking for library containing dlopen" >&5 18418echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 18419if test "${ac_cv_search_dlopen+set}" = set; then 18420 echo $ECHO_N "(cached) $ECHO_C" >&6 18421else 18422 ac_func_search_save_LIBS=$LIBS 18423ac_cv_search_dlopen=no 18424cat >conftest.$ac_ext <<_ACEOF 18425#line $LINENO "configure" 18426/* confdefs.h. */ 18427_ACEOF 18428cat confdefs.h >>conftest.$ac_ext 18429cat >>conftest.$ac_ext <<_ACEOF 18430/* end confdefs.h. */ 18431 18432/* Override any gcc2 internal prototype to avoid an error. */ 18433#ifdef __cplusplus 18434extern "C" 18435#endif 18436/* We use char because int might match the return type of a gcc2 18437 builtin and then its argument prototype would still apply. */ 18438char dlopen (); 18439int 18440main () 18441{ 18442dlopen (); 18443 ; 18444 return 0; 18445} 18446_ACEOF 18447rm -f conftest.$ac_objext conftest$ac_exeext 18448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18449 (eval $ac_link) 2>&5 18450 ac_status=$? 18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18452 (exit $ac_status); } && 18453 { ac_try='test -s conftest$ac_exeext' 18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18455 (eval $ac_try) 2>&5 18456 ac_status=$? 18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18458 (exit $ac_status); }; }; then 18459 ac_cv_search_dlopen="none required" 18460else 18461 echo "$as_me: failed program was:" >&5 18462sed 's/^/| /' conftest.$ac_ext >&5 18463 18464fi 18465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18466if test "$ac_cv_search_dlopen" = no; then 18467 for ac_lib in dl; do 18468 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18469 cat >conftest.$ac_ext <<_ACEOF 18470#line $LINENO "configure" 18471/* confdefs.h. */ 18472_ACEOF 18473cat confdefs.h >>conftest.$ac_ext 18474cat >>conftest.$ac_ext <<_ACEOF 18475/* end confdefs.h. */ 18476 18477/* Override any gcc2 internal prototype to avoid an error. */ 18478#ifdef __cplusplus 18479extern "C" 18480#endif 18481/* We use char because int might match the return type of a gcc2 18482 builtin and then its argument prototype would still apply. */ 18483char dlopen (); 18484int 18485main () 18486{ 18487dlopen (); 18488 ; 18489 return 0; 18490} 18491_ACEOF 18492rm -f conftest.$ac_objext conftest$ac_exeext 18493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18494 (eval $ac_link) 2>&5 18495 ac_status=$? 18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18497 (exit $ac_status); } && 18498 { ac_try='test -s conftest$ac_exeext' 18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18500 (eval $ac_try) 2>&5 18501 ac_status=$? 18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18503 (exit $ac_status); }; }; then 18504 ac_cv_search_dlopen="-l$ac_lib" 18505break 18506else 18507 echo "$as_me: failed program was:" >&5 18508sed 's/^/| /' conftest.$ac_ext >&5 18509 18510fi 18511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18512 done 18513fi 18514LIBS=$ac_func_search_save_LIBS 18515fi 18516echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 18517echo "${ECHO_T}$ac_cv_search_dlopen" >&6 18518if test "$ac_cv_search_dlopen" != no; then 18519 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" 18520 18521cat >>confdefs.h <<\_ACEOF 18522#define HAVE_DLOPEN 1 18523_ACEOF 18524 18525else 18526 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 18527echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 18528fi 18529 18530 18531echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 18532echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 18533if test "${ac_cv_search_mallinfo+set}" = set; then 18534 echo $ECHO_N "(cached) $ECHO_C" >&6 18535else 18536 ac_func_search_save_LIBS=$LIBS 18537ac_cv_search_mallinfo=no 18538cat >conftest.$ac_ext <<_ACEOF 18539#line $LINENO "configure" 18540/* confdefs.h. */ 18541_ACEOF 18542cat confdefs.h >>conftest.$ac_ext 18543cat >>conftest.$ac_ext <<_ACEOF 18544/* end confdefs.h. */ 18545 18546/* Override any gcc2 internal prototype to avoid an error. */ 18547#ifdef __cplusplus 18548extern "C" 18549#endif 18550/* We use char because int might match the return type of a gcc2 18551 builtin and then its argument prototype would still apply. */ 18552char mallinfo (); 18553int 18554main () 18555{ 18556mallinfo (); 18557 ; 18558 return 0; 18559} 18560_ACEOF 18561rm -f conftest.$ac_objext conftest$ac_exeext 18562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18563 (eval $ac_link) 2>&5 18564 ac_status=$? 18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18566 (exit $ac_status); } && 18567 { ac_try='test -s conftest$ac_exeext' 18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18569 (eval $ac_try) 2>&5 18570 ac_status=$? 18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18572 (exit $ac_status); }; }; then 18573 ac_cv_search_mallinfo="none required" 18574else 18575 echo "$as_me: failed program was:" >&5 18576sed 's/^/| /' conftest.$ac_ext >&5 18577 18578fi 18579rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18580if test "$ac_cv_search_mallinfo" = no; then 18581 for ac_lib in malloc; do 18582 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18583 cat >conftest.$ac_ext <<_ACEOF 18584#line $LINENO "configure" 18585/* confdefs.h. */ 18586_ACEOF 18587cat confdefs.h >>conftest.$ac_ext 18588cat >>conftest.$ac_ext <<_ACEOF 18589/* end confdefs.h. */ 18590 18591/* Override any gcc2 internal prototype to avoid an error. */ 18592#ifdef __cplusplus 18593extern "C" 18594#endif 18595/* We use char because int might match the return type of a gcc2 18596 builtin and then its argument prototype would still apply. */ 18597char mallinfo (); 18598int 18599main () 18600{ 18601mallinfo (); 18602 ; 18603 return 0; 18604} 18605_ACEOF 18606rm -f conftest.$ac_objext conftest$ac_exeext 18607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18608 (eval $ac_link) 2>&5 18609 ac_status=$? 18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18611 (exit $ac_status); } && 18612 { ac_try='test -s conftest$ac_exeext' 18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18614 (eval $ac_try) 2>&5 18615 ac_status=$? 18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18617 (exit $ac_status); }; }; then 18618 ac_cv_search_mallinfo="-l$ac_lib" 18619break 18620else 18621 echo "$as_me: failed program was:" >&5 18622sed 's/^/| /' conftest.$ac_ext >&5 18623 18624fi 18625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18626 done 18627fi 18628LIBS=$ac_func_search_save_LIBS 18629fi 18630echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 18631echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 18632if test "$ac_cv_search_mallinfo" != no; then 18633 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" 18634 18635cat >>confdefs.h <<\_ACEOF 18636#define HAVE_MALLINFO 1 18637_ACEOF 18638 18639fi 18640 18641 18642echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 18643echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 18644if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 18645 echo $ECHO_N "(cached) $ECHO_C" >&6 18646else 18647 ac_func_search_save_LIBS=$LIBS 18648ac_cv_search_pthread_mutex_lock=no 18649cat >conftest.$ac_ext <<_ACEOF 18650#line $LINENO "configure" 18651/* confdefs.h. */ 18652_ACEOF 18653cat confdefs.h >>conftest.$ac_ext 18654cat >>conftest.$ac_ext <<_ACEOF 18655/* end confdefs.h. */ 18656 18657/* Override any gcc2 internal prototype to avoid an error. */ 18658#ifdef __cplusplus 18659extern "C" 18660#endif 18661/* We use char because int might match the return type of a gcc2 18662 builtin and then its argument prototype would still apply. */ 18663char pthread_mutex_lock (); 18664int 18665main () 18666{ 18667pthread_mutex_lock (); 18668 ; 18669 return 0; 18670} 18671_ACEOF 18672rm -f conftest.$ac_objext conftest$ac_exeext 18673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18674 (eval $ac_link) 2>&5 18675 ac_status=$? 18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18677 (exit $ac_status); } && 18678 { ac_try='test -s conftest$ac_exeext' 18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18680 (eval $ac_try) 2>&5 18681 ac_status=$? 18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18683 (exit $ac_status); }; }; then 18684 ac_cv_search_pthread_mutex_lock="none required" 18685else 18686 echo "$as_me: failed program was:" >&5 18687sed 's/^/| /' conftest.$ac_ext >&5 18688 18689fi 18690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18691if test "$ac_cv_search_pthread_mutex_lock" = no; then 18692 for ac_lib in pthread; do 18693 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18694 cat >conftest.$ac_ext <<_ACEOF 18695#line $LINENO "configure" 18696/* confdefs.h. */ 18697_ACEOF 18698cat confdefs.h >>conftest.$ac_ext 18699cat >>conftest.$ac_ext <<_ACEOF 18700/* end confdefs.h. */ 18701 18702/* Override any gcc2 internal prototype to avoid an error. */ 18703#ifdef __cplusplus 18704extern "C" 18705#endif 18706/* We use char because int might match the return type of a gcc2 18707 builtin and then its argument prototype would still apply. */ 18708char pthread_mutex_lock (); 18709int 18710main () 18711{ 18712pthread_mutex_lock (); 18713 ; 18714 return 0; 18715} 18716_ACEOF 18717rm -f conftest.$ac_objext conftest$ac_exeext 18718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18719 (eval $ac_link) 2>&5 18720 ac_status=$? 18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18722 (exit $ac_status); } && 18723 { ac_try='test -s conftest$ac_exeext' 18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18725 (eval $ac_try) 2>&5 18726 ac_status=$? 18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18728 (exit $ac_status); }; }; then 18729 ac_cv_search_pthread_mutex_lock="-l$ac_lib" 18730break 18731else 18732 echo "$as_me: failed program was:" >&5 18733sed 's/^/| /' conftest.$ac_ext >&5 18734 18735fi 18736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18737 done 18738fi 18739LIBS=$ac_func_search_save_LIBS 18740fi 18741echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 18742echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 18743if test "$ac_cv_search_pthread_mutex_lock" != no; then 18744 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" 18745 HAVE_PTHREAD_MUTEX_LOCK=1 18746else 18747 HAVE_PTHREAD_MUTEX_LOCK=0 18748fi 18749 18750 18751 18752echo "$as_me:$LINENO: checking for ANSI C header files" >&5 18753echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 18754if test "${ac_cv_header_stdc+set}" = set; then 18755 echo $ECHO_N "(cached) $ECHO_C" >&6 18756else 18757 cat >conftest.$ac_ext <<_ACEOF 18758#line $LINENO "configure" 18759/* confdefs.h. */ 18760_ACEOF 18761cat confdefs.h >>conftest.$ac_ext 18762cat >>conftest.$ac_ext <<_ACEOF 18763/* end confdefs.h. */ 18764#include <stdlib.h> 18765#include <stdarg.h> 18766#include <string.h> 18767#include <float.h> 18768 18769int 18770main () 18771{ 18772 18773 ; 18774 return 0; 18775} 18776_ACEOF 18777rm -f conftest.$ac_objext 18778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18779 (eval $ac_compile) 2>&5 18780 ac_status=$? 18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18782 (exit $ac_status); } && 18783 { ac_try='test -s conftest.$ac_objext' 18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18785 (eval $ac_try) 2>&5 18786 ac_status=$? 18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18788 (exit $ac_status); }; }; then 18789 ac_cv_header_stdc=yes 18790else 18791 echo "$as_me: failed program was:" >&5 18792sed 's/^/| /' conftest.$ac_ext >&5 18793 18794ac_cv_header_stdc=no 18795fi 18796rm -f conftest.$ac_objext conftest.$ac_ext 18797 18798if test $ac_cv_header_stdc = yes; then 18799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18800 cat >conftest.$ac_ext <<_ACEOF 18801#line $LINENO "configure" 18802/* confdefs.h. */ 18803_ACEOF 18804cat confdefs.h >>conftest.$ac_ext 18805cat >>conftest.$ac_ext <<_ACEOF 18806/* end confdefs.h. */ 18807#include <string.h> 18808 18809_ACEOF 18810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18811 $EGREP "memchr" >/dev/null 2>&1; then 18812 : 18813else 18814 ac_cv_header_stdc=no 18815fi 18816rm -f conftest* 18817 18818fi 18819 18820if test $ac_cv_header_stdc = yes; then 18821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18822 cat >conftest.$ac_ext <<_ACEOF 18823#line $LINENO "configure" 18824/* confdefs.h. */ 18825_ACEOF 18826cat confdefs.h >>conftest.$ac_ext 18827cat >>conftest.$ac_ext <<_ACEOF 18828/* end confdefs.h. */ 18829#include <stdlib.h> 18830 18831_ACEOF 18832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18833 $EGREP "free" >/dev/null 2>&1; then 18834 : 18835else 18836 ac_cv_header_stdc=no 18837fi 18838rm -f conftest* 18839 18840fi 18841 18842if test $ac_cv_header_stdc = yes; then 18843 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18844 if test "$cross_compiling" = yes; then 18845 : 18846else 18847 cat >conftest.$ac_ext <<_ACEOF 18848#line $LINENO "configure" 18849/* confdefs.h. */ 18850_ACEOF 18851cat confdefs.h >>conftest.$ac_ext 18852cat >>conftest.$ac_ext <<_ACEOF 18853/* end confdefs.h. */ 18854#include <ctype.h> 18855#if ((' ' & 0x0FF) == 0x020) 18856# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18857# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18858#else 18859# define ISLOWER(c) \ 18860 (('a' <= (c) && (c) <= 'i') \ 18861 || ('j' <= (c) && (c) <= 'r') \ 18862 || ('s' <= (c) && (c) <= 'z')) 18863# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18864#endif 18865 18866#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18867int 18868main () 18869{ 18870 int i; 18871 for (i = 0; i < 256; i++) 18872 if (XOR (islower (i), ISLOWER (i)) 18873 || toupper (i) != TOUPPER (i)) 18874 exit(2); 18875 exit (0); 18876} 18877_ACEOF 18878rm -f conftest$ac_exeext 18879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18880 (eval $ac_link) 2>&5 18881 ac_status=$? 18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18885 (eval $ac_try) 2>&5 18886 ac_status=$? 18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18888 (exit $ac_status); }; }; then 18889 : 18890else 18891 echo "$as_me: program exited with status $ac_status" >&5 18892echo "$as_me: failed program was:" >&5 18893sed 's/^/| /' conftest.$ac_ext >&5 18894 18895( exit $ac_status ) 18896ac_cv_header_stdc=no 18897fi 18898rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18899fi 18900fi 18901fi 18902echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 18903echo "${ECHO_T}$ac_cv_header_stdc" >&6 18904if test $ac_cv_header_stdc = yes; then 18905 18906cat >>confdefs.h <<\_ACEOF 18907#define STDC_HEADERS 1 18908_ACEOF 18909 18910fi 18911 18912echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 18913echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 18914if test "${ac_cv_header_sys_wait_h+set}" = set; then 18915 echo $ECHO_N "(cached) $ECHO_C" >&6 18916else 18917 cat >conftest.$ac_ext <<_ACEOF 18918#line $LINENO "configure" 18919/* confdefs.h. */ 18920_ACEOF 18921cat confdefs.h >>conftest.$ac_ext 18922cat >>conftest.$ac_ext <<_ACEOF 18923/* end confdefs.h. */ 18924#include <sys/types.h> 18925#include <sys/wait.h> 18926#ifndef WEXITSTATUS 18927# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 18928#endif 18929#ifndef WIFEXITED 18930# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 18931#endif 18932 18933int 18934main () 18935{ 18936 int s; 18937 wait (&s); 18938 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 18939 ; 18940 return 0; 18941} 18942_ACEOF 18943rm -f conftest.$ac_objext 18944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18945 (eval $ac_compile) 2>&5 18946 ac_status=$? 18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18948 (exit $ac_status); } && 18949 { ac_try='test -s conftest.$ac_objext' 18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18951 (eval $ac_try) 2>&5 18952 ac_status=$? 18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18954 (exit $ac_status); }; }; then 18955 ac_cv_header_sys_wait_h=yes 18956else 18957 echo "$as_me: failed program was:" >&5 18958sed 's/^/| /' conftest.$ac_ext >&5 18959 18960ac_cv_header_sys_wait_h=no 18961fi 18962rm -f conftest.$ac_objext conftest.$ac_ext 18963fi 18964echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 18965echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 18966if test $ac_cv_header_sys_wait_h = yes; then 18967 18968cat >>confdefs.h <<\_ACEOF 18969#define HAVE_SYS_WAIT_H 1 18970_ACEOF 18971 18972fi 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986for 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 18987do 18988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18989if eval "test \"\${$as_ac_Header+set}\" = set"; then 18990 echo "$as_me:$LINENO: checking for $ac_header" >&5 18991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18992if eval "test \"\${$as_ac_Header+set}\" = set"; then 18993 echo $ECHO_N "(cached) $ECHO_C" >&6 18994fi 18995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18997else 18998 # Is the header compilable? 18999echo "$as_me:$LINENO: checking $ac_header usability" >&5 19000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19001cat >conftest.$ac_ext <<_ACEOF 19002#line $LINENO "configure" 19003/* confdefs.h. */ 19004_ACEOF 19005cat confdefs.h >>conftest.$ac_ext 19006cat >>conftest.$ac_ext <<_ACEOF 19007/* end confdefs.h. */ 19008$ac_includes_default 19009#include <$ac_header> 19010_ACEOF 19011rm -f conftest.$ac_objext 19012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19013 (eval $ac_compile) 2>&5 19014 ac_status=$? 19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19016 (exit $ac_status); } && 19017 { ac_try='test -s conftest.$ac_objext' 19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19019 (eval $ac_try) 2>&5 19020 ac_status=$? 19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19022 (exit $ac_status); }; }; then 19023 ac_header_compiler=yes 19024else 19025 echo "$as_me: failed program was:" >&5 19026sed 's/^/| /' conftest.$ac_ext >&5 19027 19028ac_header_compiler=no 19029fi 19030rm -f conftest.$ac_objext conftest.$ac_ext 19031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19032echo "${ECHO_T}$ac_header_compiler" >&6 19033 19034# Is the header present? 19035echo "$as_me:$LINENO: checking $ac_header presence" >&5 19036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19037cat >conftest.$ac_ext <<_ACEOF 19038#line $LINENO "configure" 19039/* confdefs.h. */ 19040_ACEOF 19041cat confdefs.h >>conftest.$ac_ext 19042cat >>conftest.$ac_ext <<_ACEOF 19043/* end confdefs.h. */ 19044#include <$ac_header> 19045_ACEOF 19046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19048 ac_status=$? 19049 grep -v '^ *+' conftest.er1 >conftest.err 19050 rm -f conftest.er1 19051 cat conftest.err >&5 19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19053 (exit $ac_status); } >/dev/null; then 19054 if test -s conftest.err; then 19055 ac_cpp_err=$ac_c_preproc_warn_flag 19056 else 19057 ac_cpp_err= 19058 fi 19059else 19060 ac_cpp_err=yes 19061fi 19062if test -z "$ac_cpp_err"; then 19063 ac_header_preproc=yes 19064else 19065 echo "$as_me: failed program was:" >&5 19066sed 's/^/| /' conftest.$ac_ext >&5 19067 19068 ac_header_preproc=no 19069fi 19070rm -f conftest.err conftest.$ac_ext 19071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19072echo "${ECHO_T}$ac_header_preproc" >&6 19073 19074# So? What about this header? 19075case $ac_header_compiler:$ac_header_preproc in 19076 yes:no ) 19077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19081 ( 19082 cat <<\_ASBOX 19083## ------------------------------------ ## 19084## Report this to bug-autoconf@gnu.org. ## 19085## ------------------------------------ ## 19086_ASBOX 19087 ) | 19088 sed "s/^/$as_me: WARNING: /" >&2 19089 ;; 19090 no:yes ) 19091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19097 ( 19098 cat <<\_ASBOX 19099## ------------------------------------ ## 19100## Report this to bug-autoconf@gnu.org. ## 19101## ------------------------------------ ## 19102_ASBOX 19103 ) | 19104 sed "s/^/$as_me: WARNING: /" >&2 19105 ;; 19106esac 19107echo "$as_me:$LINENO: checking for $ac_header" >&5 19108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19109if eval "test \"\${$as_ac_Header+set}\" = set"; then 19110 echo $ECHO_N "(cached) $ECHO_C" >&6 19111else 19112 eval "$as_ac_Header=$ac_header_preproc" 19113fi 19114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19116 19117fi 19118if test `eval echo '${'$as_ac_Header'}'` = yes; then 19119 cat >>confdefs.h <<_ACEOF 19120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19121_ACEOF 19122 19123fi 19124 19125done 19126 19127 19128if test "${ac_cv_header_sys_types_h+set}" = set; then 19129 echo "$as_me:$LINENO: checking for sys/types.h" >&5 19130echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 19131if test "${ac_cv_header_sys_types_h+set}" = set; then 19132 echo $ECHO_N "(cached) $ECHO_C" >&6 19133fi 19134echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 19135echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 19136else 19137 # Is the header compilable? 19138echo "$as_me:$LINENO: checking sys/types.h usability" >&5 19139echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 19140cat >conftest.$ac_ext <<_ACEOF 19141#line $LINENO "configure" 19142/* confdefs.h. */ 19143_ACEOF 19144cat confdefs.h >>conftest.$ac_ext 19145cat >>conftest.$ac_ext <<_ACEOF 19146/* end confdefs.h. */ 19147$ac_includes_default 19148#include <sys/types.h> 19149_ACEOF 19150rm -f conftest.$ac_objext 19151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19152 (eval $ac_compile) 2>&5 19153 ac_status=$? 19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19155 (exit $ac_status); } && 19156 { ac_try='test -s conftest.$ac_objext' 19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19158 (eval $ac_try) 2>&5 19159 ac_status=$? 19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19161 (exit $ac_status); }; }; then 19162 ac_header_compiler=yes 19163else 19164 echo "$as_me: failed program was:" >&5 19165sed 's/^/| /' conftest.$ac_ext >&5 19166 19167ac_header_compiler=no 19168fi 19169rm -f conftest.$ac_objext conftest.$ac_ext 19170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19171echo "${ECHO_T}$ac_header_compiler" >&6 19172 19173# Is the header present? 19174echo "$as_me:$LINENO: checking sys/types.h presence" >&5 19175echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 19176cat >conftest.$ac_ext <<_ACEOF 19177#line $LINENO "configure" 19178/* confdefs.h. */ 19179_ACEOF 19180cat confdefs.h >>conftest.$ac_ext 19181cat >>conftest.$ac_ext <<_ACEOF 19182/* end confdefs.h. */ 19183#include <sys/types.h> 19184_ACEOF 19185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19187 ac_status=$? 19188 grep -v '^ *+' conftest.er1 >conftest.err 19189 rm -f conftest.er1 19190 cat conftest.err >&5 19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19192 (exit $ac_status); } >/dev/null; then 19193 if test -s conftest.err; then 19194 ac_cpp_err=$ac_c_preproc_warn_flag 19195 else 19196 ac_cpp_err= 19197 fi 19198else 19199 ac_cpp_err=yes 19200fi 19201if test -z "$ac_cpp_err"; then 19202 ac_header_preproc=yes 19203else 19204 echo "$as_me: failed program was:" >&5 19205sed 's/^/| /' conftest.$ac_ext >&5 19206 19207 ac_header_preproc=no 19208fi 19209rm -f conftest.err conftest.$ac_ext 19210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19211echo "${ECHO_T}$ac_header_preproc" >&6 19212 19213# So? What about this header? 19214case $ac_header_compiler:$ac_header_preproc in 19215 yes:no ) 19216 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 19217echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19218 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 19219echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} 19220 ( 19221 cat <<\_ASBOX 19222## ------------------------------------ ## 19223## Report this to bug-autoconf@gnu.org. ## 19224## ------------------------------------ ## 19225_ASBOX 19226 ) | 19227 sed "s/^/$as_me: WARNING: /" >&2 19228 ;; 19229 no:yes ) 19230 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 19231echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} 19232 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 19233echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} 19234 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 19235echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} 19236 ( 19237 cat <<\_ASBOX 19238## ------------------------------------ ## 19239## Report this to bug-autoconf@gnu.org. ## 19240## ------------------------------------ ## 19241_ASBOX 19242 ) | 19243 sed "s/^/$as_me: WARNING: /" >&2 19244 ;; 19245esac 19246echo "$as_me:$LINENO: checking for sys/types.h" >&5 19247echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 19248if test "${ac_cv_header_sys_types_h+set}" = set; then 19249 echo $ECHO_N "(cached) $ECHO_C" >&6 19250else 19251 ac_cv_header_sys_types_h=$ac_header_preproc 19252fi 19253echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 19254echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 19255 19256fi 19257if test $ac_cv_header_sys_types_h = yes; then 19258 INCLUDE_SYS_TYPES_H='#include <sys/types.h>' 19259else 19260 INCLUDE_SYS_TYPES_H='' 19261fi 19262 19263 19264 19265if test "${ac_cv_header_inttypes_h+set}" = set; then 19266 echo "$as_me:$LINENO: checking for inttypes.h" >&5 19267echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 19268if test "${ac_cv_header_inttypes_h+set}" = set; then 19269 echo $ECHO_N "(cached) $ECHO_C" >&6 19270fi 19271echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 19272echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 19273else 19274 # Is the header compilable? 19275echo "$as_me:$LINENO: checking inttypes.h usability" >&5 19276echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6 19277cat >conftest.$ac_ext <<_ACEOF 19278#line $LINENO "configure" 19279/* confdefs.h. */ 19280_ACEOF 19281cat confdefs.h >>conftest.$ac_ext 19282cat >>conftest.$ac_ext <<_ACEOF 19283/* end confdefs.h. */ 19284$ac_includes_default 19285#include <inttypes.h> 19286_ACEOF 19287rm -f conftest.$ac_objext 19288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19289 (eval $ac_compile) 2>&5 19290 ac_status=$? 19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19292 (exit $ac_status); } && 19293 { ac_try='test -s conftest.$ac_objext' 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_header_compiler=yes 19300else 19301 echo "$as_me: failed program was:" >&5 19302sed 's/^/| /' conftest.$ac_ext >&5 19303 19304ac_header_compiler=no 19305fi 19306rm -f conftest.$ac_objext conftest.$ac_ext 19307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19308echo "${ECHO_T}$ac_header_compiler" >&6 19309 19310# Is the header present? 19311echo "$as_me:$LINENO: checking inttypes.h presence" >&5 19312echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6 19313cat >conftest.$ac_ext <<_ACEOF 19314#line $LINENO "configure" 19315/* confdefs.h. */ 19316_ACEOF 19317cat confdefs.h >>conftest.$ac_ext 19318cat >>conftest.$ac_ext <<_ACEOF 19319/* end confdefs.h. */ 19320#include <inttypes.h> 19321_ACEOF 19322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19324 ac_status=$? 19325 grep -v '^ *+' conftest.er1 >conftest.err 19326 rm -f conftest.er1 19327 cat conftest.err >&5 19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19329 (exit $ac_status); } >/dev/null; then 19330 if test -s conftest.err; then 19331 ac_cpp_err=$ac_c_preproc_warn_flag 19332 else 19333 ac_cpp_err= 19334 fi 19335else 19336 ac_cpp_err=yes 19337fi 19338if test -z "$ac_cpp_err"; then 19339 ac_header_preproc=yes 19340else 19341 echo "$as_me: failed program was:" >&5 19342sed 's/^/| /' conftest.$ac_ext >&5 19343 19344 ac_header_preproc=no 19345fi 19346rm -f conftest.err conftest.$ac_ext 19347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19348echo "${ECHO_T}$ac_header_preproc" >&6 19349 19350# So? What about this header? 19351case $ac_header_compiler:$ac_header_preproc in 19352 yes:no ) 19353 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 19354echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19355 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 19356echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} 19357 ( 19358 cat <<\_ASBOX 19359## ------------------------------------ ## 19360## Report this to bug-autoconf@gnu.org. ## 19361## ------------------------------------ ## 19362_ASBOX 19363 ) | 19364 sed "s/^/$as_me: WARNING: /" >&2 19365 ;; 19366 no:yes ) 19367 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 19368echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} 19369 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5 19370echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;} 19371 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 19372echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} 19373 ( 19374 cat <<\_ASBOX 19375## ------------------------------------ ## 19376## Report this to bug-autoconf@gnu.org. ## 19377## ------------------------------------ ## 19378_ASBOX 19379 ) | 19380 sed "s/^/$as_me: WARNING: /" >&2 19381 ;; 19382esac 19383echo "$as_me:$LINENO: checking for inttypes.h" >&5 19384echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 19385if test "${ac_cv_header_inttypes_h+set}" = set; then 19386 echo $ECHO_N "(cached) $ECHO_C" >&6 19387else 19388 ac_cv_header_inttypes_h=$ac_header_preproc 19389fi 19390echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 19391echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 19392 19393fi 19394if test $ac_cv_header_inttypes_h = yes; then 19395 INCLUDE_INTTYPES_H='#include <inttypes.h>' 19396else 19397 INCLUDE_INTTYPES_H='' 19398fi 19399 19400 19401 19402if test "${ac_cv_header_stdint_h+set}" = set; then 19403 echo "$as_me:$LINENO: checking for stdint.h" >&5 19404echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 19405if test "${ac_cv_header_stdint_h+set}" = set; then 19406 echo $ECHO_N "(cached) $ECHO_C" >&6 19407fi 19408echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 19409echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 19410else 19411 # Is the header compilable? 19412echo "$as_me:$LINENO: checking stdint.h usability" >&5 19413echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 19414cat >conftest.$ac_ext <<_ACEOF 19415#line $LINENO "configure" 19416/* confdefs.h. */ 19417_ACEOF 19418cat confdefs.h >>conftest.$ac_ext 19419cat >>conftest.$ac_ext <<_ACEOF 19420/* end confdefs.h. */ 19421$ac_includes_default 19422#include <stdint.h> 19423_ACEOF 19424rm -f conftest.$ac_objext 19425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19426 (eval $ac_compile) 2>&5 19427 ac_status=$? 19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19429 (exit $ac_status); } && 19430 { ac_try='test -s conftest.$ac_objext' 19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19432 (eval $ac_try) 2>&5 19433 ac_status=$? 19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19435 (exit $ac_status); }; }; then 19436 ac_header_compiler=yes 19437else 19438 echo "$as_me: failed program was:" >&5 19439sed 's/^/| /' conftest.$ac_ext >&5 19440 19441ac_header_compiler=no 19442fi 19443rm -f conftest.$ac_objext conftest.$ac_ext 19444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19445echo "${ECHO_T}$ac_header_compiler" >&6 19446 19447# Is the header present? 19448echo "$as_me:$LINENO: checking stdint.h presence" >&5 19449echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 19450cat >conftest.$ac_ext <<_ACEOF 19451#line $LINENO "configure" 19452/* confdefs.h. */ 19453_ACEOF 19454cat confdefs.h >>conftest.$ac_ext 19455cat >>conftest.$ac_ext <<_ACEOF 19456/* end confdefs.h. */ 19457#include <stdint.h> 19458_ACEOF 19459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19461 ac_status=$? 19462 grep -v '^ *+' conftest.er1 >conftest.err 19463 rm -f conftest.er1 19464 cat conftest.err >&5 19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19466 (exit $ac_status); } >/dev/null; then 19467 if test -s conftest.err; then 19468 ac_cpp_err=$ac_c_preproc_warn_flag 19469 else 19470 ac_cpp_err= 19471 fi 19472else 19473 ac_cpp_err=yes 19474fi 19475if test -z "$ac_cpp_err"; then 19476 ac_header_preproc=yes 19477else 19478 echo "$as_me: failed program was:" >&5 19479sed 's/^/| /' conftest.$ac_ext >&5 19480 19481 ac_header_preproc=no 19482fi 19483rm -f conftest.err conftest.$ac_ext 19484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19485echo "${ECHO_T}$ac_header_preproc" >&6 19486 19487# So? What about this header? 19488case $ac_header_compiler:$ac_header_preproc in 19489 yes:no ) 19490 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 19491echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19492 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 19493echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} 19494 ( 19495 cat <<\_ASBOX 19496## ------------------------------------ ## 19497## Report this to bug-autoconf@gnu.org. ## 19498## ------------------------------------ ## 19499_ASBOX 19500 ) | 19501 sed "s/^/$as_me: WARNING: /" >&2 19502 ;; 19503 no:yes ) 19504 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 19505echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} 19506 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 19507echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} 19508 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 19509echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} 19510 ( 19511 cat <<\_ASBOX 19512## ------------------------------------ ## 19513## Report this to bug-autoconf@gnu.org. ## 19514## ------------------------------------ ## 19515_ASBOX 19516 ) | 19517 sed "s/^/$as_me: WARNING: /" >&2 19518 ;; 19519esac 19520echo "$as_me:$LINENO: checking for stdint.h" >&5 19521echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 19522if test "${ac_cv_header_stdint_h+set}" = set; then 19523 echo $ECHO_N "(cached) $ECHO_C" >&6 19524else 19525 ac_cv_header_stdint_h=$ac_header_preproc 19526fi 19527echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 19528echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 19529 19530fi 19531if test $ac_cv_header_stdint_h = yes; then 19532 INCLUDE_STDINT_H='#include <stdint.h>' 19533else 19534 INCLUDE_STDINT_H='' 19535fi 19536 19537 19538 19539 19540 19541echo "$as_me:$LINENO: checking for pid_t" >&5 19542echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 19543if test "${ac_cv_type_pid_t+set}" = set; then 19544 echo $ECHO_N "(cached) $ECHO_C" >&6 19545else 19546 cat >conftest.$ac_ext <<_ACEOF 19547#line $LINENO "configure" 19548/* confdefs.h. */ 19549_ACEOF 19550cat confdefs.h >>conftest.$ac_ext 19551cat >>conftest.$ac_ext <<_ACEOF 19552/* end confdefs.h. */ 19553$ac_includes_default 19554int 19555main () 19556{ 19557if ((pid_t *) 0) 19558 return 0; 19559if (sizeof (pid_t)) 19560 return 0; 19561 ; 19562 return 0; 19563} 19564_ACEOF 19565rm -f conftest.$ac_objext 19566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19567 (eval $ac_compile) 2>&5 19568 ac_status=$? 19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19570 (exit $ac_status); } && 19571 { ac_try='test -s conftest.$ac_objext' 19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19573 (eval $ac_try) 2>&5 19574 ac_status=$? 19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19576 (exit $ac_status); }; }; then 19577 ac_cv_type_pid_t=yes 19578else 19579 echo "$as_me: failed program was:" >&5 19580sed 's/^/| /' conftest.$ac_ext >&5 19581 19582ac_cv_type_pid_t=no 19583fi 19584rm -f conftest.$ac_objext conftest.$ac_ext 19585fi 19586echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 19587echo "${ECHO_T}$ac_cv_type_pid_t" >&6 19588if test $ac_cv_type_pid_t = yes; then 19589 : 19590else 19591 19592cat >>confdefs.h <<_ACEOF 19593#define pid_t int 19594_ACEOF 19595 19596fi 19597 19598echo "$as_me:$LINENO: checking for size_t" >&5 19599echo $ECHO_N "checking for size_t... $ECHO_C" >&6 19600if test "${ac_cv_type_size_t+set}" = set; then 19601 echo $ECHO_N "(cached) $ECHO_C" >&6 19602else 19603 cat >conftest.$ac_ext <<_ACEOF 19604#line $LINENO "configure" 19605/* confdefs.h. */ 19606_ACEOF 19607cat confdefs.h >>conftest.$ac_ext 19608cat >>conftest.$ac_ext <<_ACEOF 19609/* end confdefs.h. */ 19610$ac_includes_default 19611int 19612main () 19613{ 19614if ((size_t *) 0) 19615 return 0; 19616if (sizeof (size_t)) 19617 return 0; 19618 ; 19619 return 0; 19620} 19621_ACEOF 19622rm -f conftest.$ac_objext 19623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19624 (eval $ac_compile) 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_type_size_t=yes 19635else 19636 echo "$as_me: failed program was:" >&5 19637sed 's/^/| /' conftest.$ac_ext >&5 19638 19639ac_cv_type_size_t=no 19640fi 19641rm -f conftest.$ac_objext conftest.$ac_ext 19642fi 19643echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 19644echo "${ECHO_T}$ac_cv_type_size_t" >&6 19645if test $ac_cv_type_size_t = yes; then 19646 : 19647else 19648 19649cat >>confdefs.h <<_ACEOF 19650#define size_t unsigned 19651_ACEOF 19652 19653fi 19654 19655echo "$as_me:$LINENO: checking for int64_t" >&5 19656echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 19657if test "${ac_cv_type_int64_t+set}" = set; then 19658 echo $ECHO_N "(cached) $ECHO_C" >&6 19659else 19660 cat >conftest.$ac_ext <<_ACEOF 19661#line $LINENO "configure" 19662/* confdefs.h. */ 19663_ACEOF 19664cat confdefs.h >>conftest.$ac_ext 19665cat >>conftest.$ac_ext <<_ACEOF 19666/* end confdefs.h. */ 19667$ac_includes_default 19668int 19669main () 19670{ 19671if ((int64_t *) 0) 19672 return 0; 19673if (sizeof (int64_t)) 19674 return 0; 19675 ; 19676 return 0; 19677} 19678_ACEOF 19679rm -f conftest.$ac_objext 19680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19681 (eval $ac_compile) 2>&5 19682 ac_status=$? 19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19684 (exit $ac_status); } && 19685 { ac_try='test -s conftest.$ac_objext' 19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19687 (eval $ac_try) 2>&5 19688 ac_status=$? 19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19690 (exit $ac_status); }; }; then 19691 ac_cv_type_int64_t=yes 19692else 19693 echo "$as_me: failed program was:" >&5 19694sed 's/^/| /' conftest.$ac_ext >&5 19695 19696ac_cv_type_int64_t=no 19697fi 19698rm -f conftest.$ac_objext conftest.$ac_ext 19699fi 19700echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 19701echo "${ECHO_T}$ac_cv_type_int64_t" >&6 19702if test $ac_cv_type_int64_t = yes; then 19703 19704cat >>confdefs.h <<_ACEOF 19705#define HAVE_INT64_T 1 19706_ACEOF 19707 19708 19709else 19710 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 19711echo "$as_me: error: Type int64_t required but not found" >&2;} 19712 { (exit 1); exit 1; }; } 19713fi 19714 19715echo "$as_me:$LINENO: checking for uint64_t" >&5 19716echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 19717if test "${ac_cv_type_uint64_t+set}" = set; then 19718 echo $ECHO_N "(cached) $ECHO_C" >&6 19719else 19720 cat >conftest.$ac_ext <<_ACEOF 19721#line $LINENO "configure" 19722/* confdefs.h. */ 19723_ACEOF 19724cat confdefs.h >>conftest.$ac_ext 19725cat >>conftest.$ac_ext <<_ACEOF 19726/* end confdefs.h. */ 19727$ac_includes_default 19728int 19729main () 19730{ 19731if ((uint64_t *) 0) 19732 return 0; 19733if (sizeof (uint64_t)) 19734 return 0; 19735 ; 19736 return 0; 19737} 19738_ACEOF 19739rm -f conftest.$ac_objext 19740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19741 (eval $ac_compile) 2>&5 19742 ac_status=$? 19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19744 (exit $ac_status); } && 19745 { ac_try='test -s conftest.$ac_objext' 19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19747 (eval $ac_try) 2>&5 19748 ac_status=$? 19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19750 (exit $ac_status); }; }; then 19751 ac_cv_type_uint64_t=yes 19752else 19753 echo "$as_me: failed program was:" >&5 19754sed 's/^/| /' conftest.$ac_ext >&5 19755 19756ac_cv_type_uint64_t=no 19757fi 19758rm -f conftest.$ac_objext conftest.$ac_ext 19759fi 19760echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 19761echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 19762if test $ac_cv_type_uint64_t = yes; then 19763 19764cat >>confdefs.h <<_ACEOF 19765#define HAVE_UINT64_T 1 19766_ACEOF 19767 19768 19769else 19770 echo "$as_me:$LINENO: checking for u_int64_t" >&5 19771echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 19772if test "${ac_cv_type_u_int64_t+set}" = set; then 19773 echo $ECHO_N "(cached) $ECHO_C" >&6 19774else 19775 cat >conftest.$ac_ext <<_ACEOF 19776#line $LINENO "configure" 19777/* confdefs.h. */ 19778_ACEOF 19779cat confdefs.h >>conftest.$ac_ext 19780cat >>conftest.$ac_ext <<_ACEOF 19781/* end confdefs.h. */ 19782$ac_includes_default 19783int 19784main () 19785{ 19786if ((u_int64_t *) 0) 19787 return 0; 19788if (sizeof (u_int64_t)) 19789 return 0; 19790 ; 19791 return 0; 19792} 19793_ACEOF 19794rm -f conftest.$ac_objext 19795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19796 (eval $ac_compile) 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_type_u_int64_t=yes 19807else 19808 echo "$as_me: failed program was:" >&5 19809sed 's/^/| /' conftest.$ac_ext >&5 19810 19811ac_cv_type_u_int64_t=no 19812fi 19813rm -f conftest.$ac_objext conftest.$ac_ext 19814fi 19815echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 19816echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 19817if test $ac_cv_type_u_int64_t = yes; then 19818 19819cat >>confdefs.h <<_ACEOF 19820#define HAVE_U_INT64_T 1 19821_ACEOF 19822 19823 19824else 19825 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 19826echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 19827 { (exit 1); exit 1; }; } 19828fi 19829 19830fi 19831 19832echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 19833echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 19834if test "${ac_cv_header_time+set}" = set; then 19835 echo $ECHO_N "(cached) $ECHO_C" >&6 19836else 19837 cat >conftest.$ac_ext <<_ACEOF 19838#line $LINENO "configure" 19839/* confdefs.h. */ 19840_ACEOF 19841cat confdefs.h >>conftest.$ac_ext 19842cat >>conftest.$ac_ext <<_ACEOF 19843/* end confdefs.h. */ 19844#include <sys/types.h> 19845#include <sys/time.h> 19846#include <time.h> 19847 19848int 19849main () 19850{ 19851if ((struct tm *) 0) 19852return 0; 19853 ; 19854 return 0; 19855} 19856_ACEOF 19857rm -f conftest.$ac_objext 19858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19859 (eval $ac_compile) 2>&5 19860 ac_status=$? 19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19862 (exit $ac_status); } && 19863 { ac_try='test -s conftest.$ac_objext' 19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19865 (eval $ac_try) 2>&5 19866 ac_status=$? 19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19868 (exit $ac_status); }; }; then 19869 ac_cv_header_time=yes 19870else 19871 echo "$as_me: failed program was:" >&5 19872sed 's/^/| /' conftest.$ac_ext >&5 19873 19874ac_cv_header_time=no 19875fi 19876rm -f conftest.$ac_objext conftest.$ac_ext 19877fi 19878echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 19879echo "${ECHO_T}$ac_cv_header_time" >&6 19880if test $ac_cv_header_time = yes; then 19881 19882cat >>confdefs.h <<\_ACEOF 19883#define TIME_WITH_SYS_TIME 1 19884_ACEOF 19885 19886fi 19887 19888echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 19889echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 19890if test "${ac_cv_struct_tm+set}" = set; then 19891 echo $ECHO_N "(cached) $ECHO_C" >&6 19892else 19893 cat >conftest.$ac_ext <<_ACEOF 19894#line $LINENO "configure" 19895/* confdefs.h. */ 19896_ACEOF 19897cat confdefs.h >>conftest.$ac_ext 19898cat >>conftest.$ac_ext <<_ACEOF 19899/* end confdefs.h. */ 19900#include <sys/types.h> 19901#include <time.h> 19902 19903int 19904main () 19905{ 19906struct tm *tp; tp->tm_sec; 19907 ; 19908 return 0; 19909} 19910_ACEOF 19911rm -f conftest.$ac_objext 19912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19913 (eval $ac_compile) 2>&5 19914 ac_status=$? 19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19916 (exit $ac_status); } && 19917 { ac_try='test -s conftest.$ac_objext' 19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19919 (eval $ac_try) 2>&5 19920 ac_status=$? 19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19922 (exit $ac_status); }; }; then 19923 ac_cv_struct_tm=time.h 19924else 19925 echo "$as_me: failed program was:" >&5 19926sed 's/^/| /' conftest.$ac_ext >&5 19927 19928ac_cv_struct_tm=sys/time.h 19929fi 19930rm -f conftest.$ac_objext conftest.$ac_ext 19931fi 19932echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 19933echo "${ECHO_T}$ac_cv_struct_tm" >&6 19934if test $ac_cv_struct_tm = sys/time.h; then 19935 19936cat >>confdefs.h <<\_ACEOF 19937#define TM_IN_SYS_TIME 1 19938_ACEOF 19939 19940fi 19941 19942 19943 19944 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5 19945echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6 19946 19947 19948 ac_ext=c 19949ac_cpp='$CPP $CPPFLAGS' 19950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19952ac_compiler_gnu=$ac_cv_c_compiler_gnu 19953 19954 if test "$cross_compiling" = yes; then 19955 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19956See \`config.log' for more details." >&5 19957echo "$as_me: error: cannot run test program while cross compiling 19958See \`config.log' for more details." >&2;} 19959 { (exit 1); exit 1; }; } 19960else 19961 cat >conftest.$ac_ext <<_ACEOF 19962#line $LINENO "configure" 19963/* confdefs.h. */ 19964_ACEOF 19965cat confdefs.h >>conftest.$ac_ext 19966cat >>conftest.$ac_ext <<_ACEOF 19967/* end confdefs.h. */ 19968#include <stdio.h> 19969 #include <stdlib.h> 19970int 19971main () 19972{ 19973 19974 volatile double A, B; 19975 char Buffer[100]; 19976 A = 1; 19977 A /= 10.0; 19978 sprintf(Buffer, "%a", A); 19979 B = atof(Buffer); 19980 if (A != B) 19981 return (1); 19982 if (A != 0x1.999999999999ap-4) 19983 return (1); 19984 return (0); 19985 ; 19986 return 0; 19987} 19988_ACEOF 19989rm -f conftest$ac_exeext 19990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19991 (eval $ac_link) 2>&5 19992 ac_status=$? 19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19996 (eval $ac_try) 2>&5 19997 ac_status=$? 19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19999 (exit $ac_status); }; }; then 20000 ac_c_printf_a=yes 20001else 20002 echo "$as_me: program exited with status $ac_status" >&5 20003echo "$as_me: failed program was:" >&5 20004sed 's/^/| /' conftest.$ac_ext >&5 20005 20006( exit $ac_status ) 20007ac_c_printf_a=no 20008fi 20009rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20010fi 20011 ac_ext=c 20012ac_cpp='$CPP $CPPFLAGS' 20013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20015ac_compiler_gnu=$ac_cv_c_compiler_gnu 20016 20017 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5 20018echo "${ECHO_T}$ac_c_printf_a" >&6 20019 if test "$ac_c_printf_a" = "yes"; then 20020 20021cat >>confdefs.h <<\_ACEOF 20022#define HAVE_PRINTF_A 1 20023_ACEOF 20024 20025 fi 20026 20027 20028echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 20029echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 20030if test "${ac_cv_c_bigendian+set}" = set; then 20031 echo $ECHO_N "(cached) $ECHO_C" >&6 20032else 20033 # See if sys/param.h defines the BYTE_ORDER macro. 20034cat >conftest.$ac_ext <<_ACEOF 20035#line $LINENO "configure" 20036/* confdefs.h. */ 20037_ACEOF 20038cat confdefs.h >>conftest.$ac_ext 20039cat >>conftest.$ac_ext <<_ACEOF 20040/* end confdefs.h. */ 20041#include <sys/types.h> 20042#include <sys/param.h> 20043 20044int 20045main () 20046{ 20047#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 20048 bogus endian macros 20049#endif 20050 20051 ; 20052 return 0; 20053} 20054_ACEOF 20055rm -f conftest.$ac_objext 20056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20057 (eval $ac_compile) 2>&5 20058 ac_status=$? 20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20060 (exit $ac_status); } && 20061 { ac_try='test -s conftest.$ac_objext' 20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20063 (eval $ac_try) 2>&5 20064 ac_status=$? 20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20066 (exit $ac_status); }; }; then 20067 # It does; now see whether it defined to BIG_ENDIAN or not. 20068cat >conftest.$ac_ext <<_ACEOF 20069#line $LINENO "configure" 20070/* confdefs.h. */ 20071_ACEOF 20072cat confdefs.h >>conftest.$ac_ext 20073cat >>conftest.$ac_ext <<_ACEOF 20074/* end confdefs.h. */ 20075#include <sys/types.h> 20076#include <sys/param.h> 20077 20078int 20079main () 20080{ 20081#if BYTE_ORDER != BIG_ENDIAN 20082 not big endian 20083#endif 20084 20085 ; 20086 return 0; 20087} 20088_ACEOF 20089rm -f conftest.$ac_objext 20090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20091 (eval $ac_compile) 2>&5 20092 ac_status=$? 20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20094 (exit $ac_status); } && 20095 { ac_try='test -s conftest.$ac_objext' 20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20097 (eval $ac_try) 2>&5 20098 ac_status=$? 20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20100 (exit $ac_status); }; }; then 20101 ac_cv_c_bigendian=yes 20102else 20103 echo "$as_me: failed program was:" >&5 20104sed 's/^/| /' conftest.$ac_ext >&5 20105 20106ac_cv_c_bigendian=no 20107fi 20108rm -f conftest.$ac_objext conftest.$ac_ext 20109else 20110 echo "$as_me: failed program was:" >&5 20111sed 's/^/| /' conftest.$ac_ext >&5 20112 20113# It does not; compile a test program. 20114if test "$cross_compiling" = yes; then 20115 # try to guess the endianness by grepping values into an object file 20116 ac_cv_c_bigendian=unknown 20117 cat >conftest.$ac_ext <<_ACEOF 20118#line $LINENO "configure" 20119/* confdefs.h. */ 20120_ACEOF 20121cat confdefs.h >>conftest.$ac_ext 20122cat >>conftest.$ac_ext <<_ACEOF 20123/* end confdefs.h. */ 20124short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 20125short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 20126void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 20127short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 20128short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 20129void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 20130int 20131main () 20132{ 20133 _ascii (); _ebcdic (); 20134 ; 20135 return 0; 20136} 20137_ACEOF 20138rm -f conftest.$ac_objext 20139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20140 (eval $ac_compile) 2>&5 20141 ac_status=$? 20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20143 (exit $ac_status); } && 20144 { ac_try='test -s conftest.$ac_objext' 20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20146 (eval $ac_try) 2>&5 20147 ac_status=$? 20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20149 (exit $ac_status); }; }; then 20150 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 20151 ac_cv_c_bigendian=yes 20152fi 20153if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 20154 if test "$ac_cv_c_bigendian" = unknown; then 20155 ac_cv_c_bigendian=no 20156 else 20157 # finding both strings is unlikely to happen, but who knows? 20158 ac_cv_c_bigendian=unknown 20159 fi 20160fi 20161else 20162 echo "$as_me: failed program was:" >&5 20163sed 's/^/| /' conftest.$ac_ext >&5 20164 20165fi 20166rm -f conftest.$ac_objext conftest.$ac_ext 20167else 20168 cat >conftest.$ac_ext <<_ACEOF 20169#line $LINENO "configure" 20170/* confdefs.h. */ 20171_ACEOF 20172cat confdefs.h >>conftest.$ac_ext 20173cat >>conftest.$ac_ext <<_ACEOF 20174/* end confdefs.h. */ 20175int 20176main () 20177{ 20178 /* Are we little or big endian? From Harbison&Steele. */ 20179 union 20180 { 20181 long l; 20182 char c[sizeof (long)]; 20183 } u; 20184 u.l = 1; 20185 exit (u.c[sizeof (long) - 1] == 1); 20186} 20187_ACEOF 20188rm -f conftest$ac_exeext 20189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20190 (eval $ac_link) 2>&5 20191 ac_status=$? 20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20195 (eval $ac_try) 2>&5 20196 ac_status=$? 20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20198 (exit $ac_status); }; }; then 20199 ac_cv_c_bigendian=no 20200else 20201 echo "$as_me: program exited with status $ac_status" >&5 20202echo "$as_me: failed program was:" >&5 20203sed 's/^/| /' conftest.$ac_ext >&5 20204 20205( exit $ac_status ) 20206ac_cv_c_bigendian=yes 20207fi 20208rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20209fi 20210fi 20211rm -f conftest.$ac_objext conftest.$ac_ext 20212fi 20213echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 20214echo "${ECHO_T}$ac_cv_c_bigendian" >&6 20215case $ac_cv_c_bigendian in 20216 yes) 20217 ENDIAN=big 20218 ;; 20219 no) 20220 ENDIAN=little 20221 ;; 20222 *) 20223 { { echo "$as_me:$LINENO: error: unknown endianness 20224presetting ac_cv_c_bigendian=no (or yes) will help" >&5 20225echo "$as_me: error: unknown endianness 20226presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 20227 { (exit 1); exit 1; }; } ;; 20228esac 20229 20230 20231echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 20232echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 20233if test "${ac_cv_cxx_namespaces+set}" = set; then 20234 echo $ECHO_N "(cached) $ECHO_C" >&6 20235else 20236 20237 20238 ac_ext=cc 20239ac_cpp='$CXXCPP $CPPFLAGS' 20240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20243 20244 cat >conftest.$ac_ext <<_ACEOF 20245#line $LINENO "configure" 20246/* confdefs.h. */ 20247_ACEOF 20248cat confdefs.h >>conftest.$ac_ext 20249cat >>conftest.$ac_ext <<_ACEOF 20250/* end confdefs.h. */ 20251namespace Outer { namespace Inner { int i = 0; }} 20252int 20253main () 20254{ 20255using namespace Outer::Inner; return i; 20256 ; 20257 return 0; 20258} 20259_ACEOF 20260rm -f conftest.$ac_objext 20261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20262 (eval $ac_compile) 2>&5 20263 ac_status=$? 20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20265 (exit $ac_status); } && 20266 { ac_try='test -s conftest.$ac_objext' 20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20268 (eval $ac_try) 2>&5 20269 ac_status=$? 20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20271 (exit $ac_status); }; }; then 20272 ac_cv_cxx_namespaces=yes 20273else 20274 echo "$as_me: failed program was:" >&5 20275sed 's/^/| /' conftest.$ac_ext >&5 20276 20277ac_cv_cxx_namespaces=no 20278fi 20279rm -f conftest.$ac_objext conftest.$ac_ext 20280 ac_ext=c 20281ac_cpp='$CPP $CPPFLAGS' 20282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20284ac_compiler_gnu=$ac_cv_c_compiler_gnu 20285 20286 20287fi 20288echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 20289echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 20290if test "$ac_cv_cxx_namespaces" = yes; then 20291 20292cat >>confdefs.h <<\_ACEOF 20293#define HAVE_NAMESPACES 20294_ACEOF 20295 20296fi 20297 20298echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 20299echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 20300if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then 20301 echo $ECHO_N "(cached) $ECHO_C" >&6 20302else 20303 20304 20305 20306 ac_ext=cc 20307ac_cpp='$CXXCPP $CPPFLAGS' 20308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20311 20312 cat >conftest.$ac_ext <<_ACEOF 20313#line $LINENO "configure" 20314/* confdefs.h. */ 20315_ACEOF 20316cat confdefs.h >>conftest.$ac_ext 20317cat >>conftest.$ac_ext <<_ACEOF 20318/* end confdefs.h. */ 20319#include <ext/hash_map> 20320#ifdef HAVE_NAMESPACES 20321using namespace std; 20322#endif 20323int 20324main () 20325{ 20326hash_map<int, int> t; 20327 ; 20328 return 0; 20329} 20330_ACEOF 20331rm -f conftest.$ac_objext 20332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20333 (eval $ac_compile) 2>&5 20334 ac_status=$? 20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20336 (exit $ac_status); } && 20337 { ac_try='test -s conftest.$ac_objext' 20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20339 (eval $ac_try) 2>&5 20340 ac_status=$? 20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20342 (exit $ac_status); }; }; then 20343 ac_cv_cxx_have_std_ext_hash_map=yes 20344else 20345 echo "$as_me: failed program was:" >&5 20346sed 's/^/| /' conftest.$ac_ext >&5 20347 20348ac_cv_cxx_have_std_ext_hash_map=no 20349fi 20350rm -f conftest.$ac_objext conftest.$ac_ext 20351 ac_ext=c 20352ac_cpp='$CPP $CPPFLAGS' 20353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20355ac_compiler_gnu=$ac_cv_c_compiler_gnu 20356 20357fi 20358echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 20359echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 20360 HAVE_STD_EXT_HASH_MAP=0 20361 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes 20362 then 20363 HAVE_STD_EXT_HASH_MAP=1 20364 fi 20365 20366 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 20367echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 20368if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then 20369 echo $ECHO_N "(cached) $ECHO_C" >&6 20370else 20371 20372 20373 20374 ac_ext=cc 20375ac_cpp='$CXXCPP $CPPFLAGS' 20376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20379 20380 cat >conftest.$ac_ext <<_ACEOF 20381#line $LINENO "configure" 20382/* confdefs.h. */ 20383_ACEOF 20384cat confdefs.h >>conftest.$ac_ext 20385cat >>conftest.$ac_ext <<_ACEOF 20386/* end confdefs.h. */ 20387#include <ext/hash_map> 20388#ifdef HAVE_NAMESPACES 20389using namespace __gnu_cxx; 20390#endif 20391int 20392main () 20393{ 20394hash_map<int,int> t; 20395 ; 20396 return 0; 20397} 20398_ACEOF 20399rm -f conftest.$ac_objext 20400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20401 (eval $ac_compile) 2>&5 20402 ac_status=$? 20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20404 (exit $ac_status); } && 20405 { ac_try='test -s conftest.$ac_objext' 20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20407 (eval $ac_try) 2>&5 20408 ac_status=$? 20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20410 (exit $ac_status); }; }; then 20411 ac_cv_cxx_have_gnu_ext_hash_map=yes 20412else 20413 echo "$as_me: failed program was:" >&5 20414sed 's/^/| /' conftest.$ac_ext >&5 20415 20416ac_cv_cxx_have_gnu_ext_hash_map=no 20417fi 20418rm -f conftest.$ac_objext conftest.$ac_ext 20419 ac_ext=c 20420ac_cpp='$CPP $CPPFLAGS' 20421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20423ac_compiler_gnu=$ac_cv_c_compiler_gnu 20424 20425fi 20426echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 20427echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 20428 HAVE_GNU_EXT_HASH_MAP=0 20429 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes 20430 then 20431 HAVE_GNU_EXT_HASH_MAP=1 20432 fi 20433 20434 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 20435echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 20436if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then 20437 echo $ECHO_N "(cached) $ECHO_C" >&6 20438else 20439 20440 20441 20442 ac_ext=cc 20443ac_cpp='$CXXCPP $CPPFLAGS' 20444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20447 20448 cat >conftest.$ac_ext <<_ACEOF 20449#line $LINENO "configure" 20450/* confdefs.h. */ 20451_ACEOF 20452cat confdefs.h >>conftest.$ac_ext 20453cat >>conftest.$ac_ext <<_ACEOF 20454/* end confdefs.h. */ 20455#include <hash_map> 20456int 20457main () 20458{ 20459hash_map<int,int> t; 20460 ; 20461 return 0; 20462} 20463_ACEOF 20464rm -f conftest.$ac_objext 20465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20466 (eval $ac_compile) 2>&5 20467 ac_status=$? 20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20469 (exit $ac_status); } && 20470 { ac_try='test -s conftest.$ac_objext' 20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20472 (eval $ac_try) 2>&5 20473 ac_status=$? 20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20475 (exit $ac_status); }; }; then 20476 ac_cv_cxx_have_global_hash_map=yes 20477else 20478 echo "$as_me: failed program was:" >&5 20479sed 's/^/| /' conftest.$ac_ext >&5 20480 20481ac_cv_cxx_have_global_hash_map=no 20482fi 20483rm -f conftest.$ac_objext conftest.$ac_ext 20484 ac_ext=c 20485ac_cpp='$CPP $CPPFLAGS' 20486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20488ac_compiler_gnu=$ac_cv_c_compiler_gnu 20489 20490fi 20491echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 20492echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 20493 HAVE_GLOBAL_HASH_MAP=0 20494 if test "$ac_cv_cxx_have_global_hash_map" = yes 20495 then 20496 HAVE_GLOBAL_HASH_MAP=1 20497 fi 20498 20499echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 20500echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 20501if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then 20502 echo $ECHO_N "(cached) $ECHO_C" >&6 20503else 20504 20505 20506 20507 ac_ext=cc 20508ac_cpp='$CXXCPP $CPPFLAGS' 20509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20512 20513 cat >conftest.$ac_ext <<_ACEOF 20514#line $LINENO "configure" 20515/* confdefs.h. */ 20516_ACEOF 20517cat confdefs.h >>conftest.$ac_ext 20518cat >>conftest.$ac_ext <<_ACEOF 20519/* end confdefs.h. */ 20520#include <ext/hash_set> 20521#ifdef HAVE_NAMESPACES 20522using namespace std; 20523#endif 20524int 20525main () 20526{ 20527hash_set<int> t; 20528 ; 20529 return 0; 20530} 20531_ACEOF 20532rm -f conftest.$ac_objext 20533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20534 (eval $ac_compile) 2>&5 20535 ac_status=$? 20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20537 (exit $ac_status); } && 20538 { ac_try='test -s conftest.$ac_objext' 20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20540 (eval $ac_try) 2>&5 20541 ac_status=$? 20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20543 (exit $ac_status); }; }; then 20544 ac_cv_cxx_have_std_ext_hash_set=yes 20545else 20546 echo "$as_me: failed program was:" >&5 20547sed 's/^/| /' conftest.$ac_ext >&5 20548 20549ac_cv_cxx_have_std_ext_hash_set=no 20550fi 20551rm -f conftest.$ac_objext conftest.$ac_ext 20552 ac_ext=c 20553ac_cpp='$CPP $CPPFLAGS' 20554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20556ac_compiler_gnu=$ac_cv_c_compiler_gnu 20557 20558fi 20559echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 20560echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 20561 HAVE_STD_EXT_HASH_SET=0 20562 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes 20563 then 20564 HAVE_STD_EXT_HASH_SET=1 20565 fi 20566 20567 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 20568echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 20569if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then 20570 echo $ECHO_N "(cached) $ECHO_C" >&6 20571else 20572 20573 20574 20575 ac_ext=cc 20576ac_cpp='$CXXCPP $CPPFLAGS' 20577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20580 20581 cat >conftest.$ac_ext <<_ACEOF 20582#line $LINENO "configure" 20583/* confdefs.h. */ 20584_ACEOF 20585cat confdefs.h >>conftest.$ac_ext 20586cat >>conftest.$ac_ext <<_ACEOF 20587/* end confdefs.h. */ 20588#include <ext/hash_set> 20589#ifdef HAVE_NAMESPACES 20590using namespace __gnu_cxx; 20591#endif 20592int 20593main () 20594{ 20595hash_set<int> t; 20596 ; 20597 return 0; 20598} 20599_ACEOF 20600rm -f conftest.$ac_objext 20601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20602 (eval $ac_compile) 2>&5 20603 ac_status=$? 20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20605 (exit $ac_status); } && 20606 { ac_try='test -s conftest.$ac_objext' 20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20608 (eval $ac_try) 2>&5 20609 ac_status=$? 20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20611 (exit $ac_status); }; }; then 20612 ac_cv_cxx_have_gnu_ext_hash_set=yes 20613else 20614 echo "$as_me: failed program was:" >&5 20615sed 's/^/| /' conftest.$ac_ext >&5 20616 20617ac_cv_cxx_have_gnu_ext_hash_set=no 20618fi 20619rm -f conftest.$ac_objext conftest.$ac_ext 20620 ac_ext=c 20621ac_cpp='$CPP $CPPFLAGS' 20622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20624ac_compiler_gnu=$ac_cv_c_compiler_gnu 20625 20626fi 20627echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 20628echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 20629 HAVE_GNU_EXT_HASH_SET=0 20630 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes 20631 then 20632 HAVE_GNU_EXT_HASH_SET=1 20633 fi 20634 20635 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 20636echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 20637if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then 20638 echo $ECHO_N "(cached) $ECHO_C" >&6 20639else 20640 20641 20642 20643 ac_ext=cc 20644ac_cpp='$CXXCPP $CPPFLAGS' 20645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20648 20649 cat >conftest.$ac_ext <<_ACEOF 20650#line $LINENO "configure" 20651/* confdefs.h. */ 20652_ACEOF 20653cat confdefs.h >>conftest.$ac_ext 20654cat >>conftest.$ac_ext <<_ACEOF 20655/* end confdefs.h. */ 20656#include <hash_set> 20657int 20658main () 20659{ 20660hash_set<int> t; return 0; 20661 ; 20662 return 0; 20663} 20664_ACEOF 20665rm -f conftest.$ac_objext 20666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20667 (eval $ac_compile) 2>&5 20668 ac_status=$? 20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20670 (exit $ac_status); } && 20671 { ac_try='test -s conftest.$ac_objext' 20672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20673 (eval $ac_try) 2>&5 20674 ac_status=$? 20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20676 (exit $ac_status); }; }; then 20677 ac_cv_cxx_have_global_hash_set=yes 20678else 20679 echo "$as_me: failed program was:" >&5 20680sed 's/^/| /' conftest.$ac_ext >&5 20681 20682ac_cv_cxx_have_global_hash_set=no 20683fi 20684rm -f conftest.$ac_objext conftest.$ac_ext 20685 ac_ext=c 20686ac_cpp='$CPP $CPPFLAGS' 20687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20689ac_compiler_gnu=$ac_cv_c_compiler_gnu 20690 20691fi 20692echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 20693echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 20694 HAVE_GLOBAL_HASH_SET=0 20695 if test "$ac_cv_cxx_have_global_hash_set" = yes 20696 then 20697 HAVE_GLOBAL_HASH_SET=1 20698 fi 20699 20700echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 20701echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 20702if test "${ac_cv_cxx_have_std_iterator+set}" = set; then 20703 echo $ECHO_N "(cached) $ECHO_C" >&6 20704else 20705 20706 20707 20708 ac_ext=cc 20709ac_cpp='$CXXCPP $CPPFLAGS' 20710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20713 20714 cat >conftest.$ac_ext <<_ACEOF 20715#line $LINENO "configure" 20716/* confdefs.h. */ 20717_ACEOF 20718cat confdefs.h >>conftest.$ac_ext 20719cat >>conftest.$ac_ext <<_ACEOF 20720/* end confdefs.h. */ 20721#include <iterator> 20722#ifdef HAVE_NAMESPACES 20723using namespace std; 20724#endif 20725int 20726main () 20727{ 20728iterator<int,int,int> t; return 0; 20729 ; 20730 return 0; 20731} 20732_ACEOF 20733rm -f conftest.$ac_objext 20734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20735 (eval $ac_compile) 2>&5 20736 ac_status=$? 20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20738 (exit $ac_status); } && 20739 { ac_try='test -s conftest.$ac_objext' 20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20741 (eval $ac_try) 2>&5 20742 ac_status=$? 20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20744 (exit $ac_status); }; }; then 20745 ac_cv_cxx_have_std_iterator=yes 20746else 20747 echo "$as_me: failed program was:" >&5 20748sed 's/^/| /' conftest.$ac_ext >&5 20749 20750ac_cv_cxx_have_std_iterator=no 20751fi 20752rm -f conftest.$ac_objext conftest.$ac_ext 20753 ac_ext=c 20754ac_cpp='$CPP $CPPFLAGS' 20755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20757ac_compiler_gnu=$ac_cv_c_compiler_gnu 20758 20759 20760fi 20761echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 20762echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 20763HAVE_STD_ITERATOR=0 20764if test "$ac_cv_cxx_have_std_iterator" = yes 20765then 20766 HAVE_STD_ITERATOR=1 20767fi 20768 20769echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 20770echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 20771if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then 20772 echo $ECHO_N "(cached) $ECHO_C" >&6 20773else 20774 20775 20776 20777 ac_ext=cc 20778ac_cpp='$CXXCPP $CPPFLAGS' 20779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20782 20783 cat >conftest.$ac_ext <<_ACEOF 20784#line $LINENO "configure" 20785/* confdefs.h. */ 20786_ACEOF 20787cat confdefs.h >>conftest.$ac_ext 20788cat >>conftest.$ac_ext <<_ACEOF 20789/* end confdefs.h. */ 20790#include <iterator> 20791#ifdef HAVE_NAMESPACES 20792using namespace std; 20793#endif 20794int 20795main () 20796{ 20797bidirectional_iterator<int,int> t; return 0; 20798 ; 20799 return 0; 20800} 20801_ACEOF 20802rm -f conftest.$ac_objext 20803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20804 (eval $ac_compile) 2>&5 20805 ac_status=$? 20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20807 (exit $ac_status); } && 20808 { ac_try='test -s conftest.$ac_objext' 20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20810 (eval $ac_try) 2>&5 20811 ac_status=$? 20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20813 (exit $ac_status); }; }; then 20814 ac_cv_cxx_have_bi_iterator=yes 20815else 20816 echo "$as_me: failed program was:" >&5 20817sed 's/^/| /' conftest.$ac_ext >&5 20818 20819ac_cv_cxx_have_bi_iterator=no 20820fi 20821rm -f conftest.$ac_objext conftest.$ac_ext 20822 ac_ext=c 20823ac_cpp='$CPP $CPPFLAGS' 20824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20826ac_compiler_gnu=$ac_cv_c_compiler_gnu 20827 20828 20829fi 20830echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 20831echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 20832HAVE_BI_ITERATOR=0 20833if test "$ac_cv_cxx_have_bi_iterator" = yes 20834then 20835 HAVE_BI_ITERATOR=1 20836fi 20837 20838echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 20839echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 20840if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then 20841 echo $ECHO_N "(cached) $ECHO_C" >&6 20842else 20843 20844 20845 20846 ac_ext=cc 20847ac_cpp='$CXXCPP $CPPFLAGS' 20848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20851 20852 cat >conftest.$ac_ext <<_ACEOF 20853#line $LINENO "configure" 20854/* confdefs.h. */ 20855_ACEOF 20856cat confdefs.h >>conftest.$ac_ext 20857cat >>conftest.$ac_ext <<_ACEOF 20858/* end confdefs.h. */ 20859#include <iterator> 20860#ifdef HAVE_NAMESPACES 20861using namespace std; 20862#endif 20863int 20864main () 20865{ 20866forward_iterator<int,int> t; return 0; 20867 ; 20868 return 0; 20869} 20870_ACEOF 20871rm -f conftest.$ac_objext 20872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20873 (eval $ac_compile) 2>&5 20874 ac_status=$? 20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20876 (exit $ac_status); } && 20877 { ac_try='test -s conftest.$ac_objext' 20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20879 (eval $ac_try) 2>&5 20880 ac_status=$? 20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20882 (exit $ac_status); }; }; then 20883 ac_cv_cxx_have_fwd_iterator=yes 20884else 20885 echo "$as_me: failed program was:" >&5 20886sed 's/^/| /' conftest.$ac_ext >&5 20887 20888ac_cv_cxx_have_fwd_iterator=no 20889fi 20890rm -f conftest.$ac_objext conftest.$ac_ext 20891 ac_ext=c 20892ac_cpp='$CPP $CPPFLAGS' 20893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20895ac_compiler_gnu=$ac_cv_c_compiler_gnu 20896 20897 20898fi 20899echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 20900echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 20901HAVE_FWD_ITERATOR=0 20902if test "$ac_cv_cxx_have_fwd_iterator" = yes 20903then 20904 HAVE_FWD_ITERATOR=1 20905fi 20906 20907 20908 20909echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 20910echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 20911if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 20912 echo $ECHO_N "(cached) $ECHO_C" >&6 20913else 20914 ac_ext=cc 20915ac_cpp='$CXXCPP $CPPFLAGS' 20916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20919 20920 cat >conftest.$ac_ext <<_ACEOF 20921#line $LINENO "configure" 20922/* confdefs.h. */ 20923_ACEOF 20924cat confdefs.h >>conftest.$ac_ext 20925cat >>conftest.$ac_ext <<_ACEOF 20926/* end confdefs.h. */ 20927#include <math.h> 20928 int foo(float f) {return isnan(f);} 20929_ACEOF 20930rm -f conftest.$ac_objext 20931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20932 (eval $ac_compile) 2>&5 20933 ac_status=$? 20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20935 (exit $ac_status); } && 20936 { ac_try='test -s conftest.$ac_objext' 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_cv_func_isnan_in_math_h=yes 20943else 20944 echo "$as_me: failed program was:" >&5 20945sed 's/^/| /' conftest.$ac_ext >&5 20946 20947ac_cv_func_isnan_in_math_h=no 20948fi 20949rm -f conftest.$ac_objext conftest.$ac_ext 20950 ac_ext=c 20951ac_cpp='$CPP $CPPFLAGS' 20952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20954ac_compiler_gnu=$ac_cv_c_compiler_gnu 20955 20956fi 20957echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 20958echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 20959 if test "$ac_cv_func_isnan_in_math_h" = "yes" 20960 then 20961 20962cat >>confdefs.h <<\_ACEOF 20963#define HAVE_ISNAN_IN_MATH_H 1 20964_ACEOF 20965 20966 fi 20967echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 20968echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 20969if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 20970 echo $ECHO_N "(cached) $ECHO_C" >&6 20971else 20972 ac_ext=cc 20973ac_cpp='$CXXCPP $CPPFLAGS' 20974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20977 20978 cat >conftest.$ac_ext <<_ACEOF 20979#line $LINENO "configure" 20980/* confdefs.h. */ 20981_ACEOF 20982cat confdefs.h >>conftest.$ac_ext 20983cat >>conftest.$ac_ext <<_ACEOF 20984/* end confdefs.h. */ 20985#include <cmath> 20986 int foo(float f) {return isnan(f);} 20987_ACEOF 20988rm -f conftest.$ac_objext 20989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20990 (eval $ac_compile) 2>&5 20991 ac_status=$? 20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20993 (exit $ac_status); } && 20994 { ac_try='test -s conftest.$ac_objext' 20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20996 (eval $ac_try) 2>&5 20997 ac_status=$? 20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20999 (exit $ac_status); }; }; then 21000 ac_cv_func_isnan_in_cmath=yes 21001else 21002 echo "$as_me: failed program was:" >&5 21003sed 's/^/| /' conftest.$ac_ext >&5 21004 21005ac_cv_func_isnan_in_cmath=no 21006fi 21007rm -f conftest.$ac_objext conftest.$ac_ext 21008 ac_ext=c 21009ac_cpp='$CPP $CPPFLAGS' 21010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21012ac_compiler_gnu=$ac_cv_c_compiler_gnu 21013 21014fi 21015echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 21016echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 21017 if test "$ac_cv_func_isnan_in_cmath" = "yes" 21018 then 21019 21020cat >>confdefs.h <<\_ACEOF 21021#define HAVE_ISNAN_IN_CMATH 1 21022_ACEOF 21023 21024 fi 21025echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 21026echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 21027if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 21028 echo $ECHO_N "(cached) $ECHO_C" >&6 21029else 21030 ac_ext=cc 21031ac_cpp='$CXXCPP $CPPFLAGS' 21032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21035 21036 cat >conftest.$ac_ext <<_ACEOF 21037#line $LINENO "configure" 21038/* confdefs.h. */ 21039_ACEOF 21040cat confdefs.h >>conftest.$ac_ext 21041cat >>conftest.$ac_ext <<_ACEOF 21042/* end confdefs.h. */ 21043#include <cmath> 21044 using std::isnan; int foo(float f) {return isnan(f);} 21045_ACEOF 21046rm -f conftest.$ac_objext 21047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21048 (eval $ac_compile) 2>&5 21049 ac_status=$? 21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21051 (exit $ac_status); } && 21052 { ac_try='test -s conftest.$ac_objext' 21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21054 (eval $ac_try) 2>&5 21055 ac_status=$? 21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21057 (exit $ac_status); }; }; then 21058 ac_cv_func_std_isnan_in_cmath=yes 21059else 21060 echo "$as_me: failed program was:" >&5 21061sed 's/^/| /' conftest.$ac_ext >&5 21062 21063ac_cv_func_std_isnan_in_cmath=no 21064fi 21065rm -f conftest.$ac_objext conftest.$ac_ext 21066 ac_ext=c 21067ac_cpp='$CPP $CPPFLAGS' 21068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21070ac_compiler_gnu=$ac_cv_c_compiler_gnu 21071 21072fi 21073echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 21074echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 21075 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" 21076 then 21077 21078cat >>confdefs.h <<\_ACEOF 21079#define HAVE_STD_ISNAN_IN_CMATH 1 21080_ACEOF 21081 21082 fi 21083 21084 21085echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 21086echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 21087if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 21088 echo $ECHO_N "(cached) $ECHO_C" >&6 21089else 21090 ac_ext=cc 21091ac_cpp='$CXXCPP $CPPFLAGS' 21092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21095 21096 cat >conftest.$ac_ext <<_ACEOF 21097#line $LINENO "configure" 21098/* confdefs.h. */ 21099_ACEOF 21100cat confdefs.h >>conftest.$ac_ext 21101cat >>conftest.$ac_ext <<_ACEOF 21102/* end confdefs.h. */ 21103#include <math.h> 21104 int foo(float f) {return isinf(f);} 21105_ACEOF 21106rm -f conftest.$ac_objext 21107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21108 (eval $ac_compile) 2>&5 21109 ac_status=$? 21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21111 (exit $ac_status); } && 21112 { ac_try='test -s conftest.$ac_objext' 21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21114 (eval $ac_try) 2>&5 21115 ac_status=$? 21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21117 (exit $ac_status); }; }; then 21118 ac_cv_func_isinf_in_math_h=yes 21119else 21120 echo "$as_me: failed program was:" >&5 21121sed 's/^/| /' conftest.$ac_ext >&5 21122 21123ac_cv_func_isinf_in_math_h=no 21124fi 21125rm -f conftest.$ac_objext conftest.$ac_ext 21126 ac_ext=c 21127ac_cpp='$CPP $CPPFLAGS' 21128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21130ac_compiler_gnu=$ac_cv_c_compiler_gnu 21131 21132fi 21133echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 21134echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 21135 if test "$ac_cv_func_isinf_in_math_h" = "yes" 21136 then 21137 21138cat >>confdefs.h <<\_ACEOF 21139#define HAVE_ISINF_IN_MATH_H 1 21140_ACEOF 21141 21142 fi 21143echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 21144echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 21145if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 21146 echo $ECHO_N "(cached) $ECHO_C" >&6 21147else 21148 ac_ext=cc 21149ac_cpp='$CXXCPP $CPPFLAGS' 21150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21153 21154 cat >conftest.$ac_ext <<_ACEOF 21155#line $LINENO "configure" 21156/* confdefs.h. */ 21157_ACEOF 21158cat confdefs.h >>conftest.$ac_ext 21159cat >>conftest.$ac_ext <<_ACEOF 21160/* end confdefs.h. */ 21161#include <cmath> 21162 int foo(float f) {return isinf(f);} 21163_ACEOF 21164rm -f conftest.$ac_objext 21165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21166 (eval $ac_compile) 2>&5 21167 ac_status=$? 21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21169 (exit $ac_status); } && 21170 { ac_try='test -s conftest.$ac_objext' 21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21172 (eval $ac_try) 2>&5 21173 ac_status=$? 21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21175 (exit $ac_status); }; }; then 21176 ac_cv_func_isinf_in_cmath=yes 21177else 21178 echo "$as_me: failed program was:" >&5 21179sed 's/^/| /' conftest.$ac_ext >&5 21180 21181ac_cv_func_isinf_in_cmath=no 21182fi 21183rm -f conftest.$ac_objext conftest.$ac_ext 21184 ac_ext=c 21185ac_cpp='$CPP $CPPFLAGS' 21186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21188ac_compiler_gnu=$ac_cv_c_compiler_gnu 21189 21190fi 21191echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 21192echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 21193 if test "$ac_cv_func_isinf_in_cmath" = "yes" 21194 then 21195 21196cat >>confdefs.h <<\_ACEOF 21197#define HAVE_ISINF_IN_CMATH 1 21198_ACEOF 21199 21200 fi 21201echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 21202echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 21203if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 21204 echo $ECHO_N "(cached) $ECHO_C" >&6 21205else 21206 ac_ext=cc 21207ac_cpp='$CXXCPP $CPPFLAGS' 21208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21211 21212 cat >conftest.$ac_ext <<_ACEOF 21213#line $LINENO "configure" 21214/* confdefs.h. */ 21215_ACEOF 21216cat confdefs.h >>conftest.$ac_ext 21217cat >>conftest.$ac_ext <<_ACEOF 21218/* end confdefs.h. */ 21219#include <cmath> 21220 using std::isinf; int foo(float f) {return isinf(f);} 21221_ACEOF 21222rm -f conftest.$ac_objext 21223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21224 (eval $ac_compile) 2>&5 21225 ac_status=$? 21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21227 (exit $ac_status); } && 21228 { ac_try='test -s conftest.$ac_objext' 21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21230 (eval $ac_try) 2>&5 21231 ac_status=$? 21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21233 (exit $ac_status); }; }; then 21234 ac_cv_func_std_isinf_in_cmath=yes 21235else 21236 echo "$as_me: failed program was:" >&5 21237sed 's/^/| /' conftest.$ac_ext >&5 21238 21239ac_cv_func_std_isinf_in_cmath=no 21240fi 21241rm -f conftest.$ac_objext conftest.$ac_ext 21242 ac_ext=c 21243ac_cpp='$CPP $CPPFLAGS' 21244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21246ac_compiler_gnu=$ac_cv_c_compiler_gnu 21247 21248fi 21249echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 21250echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 21251 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" 21252 then 21253 21254cat >>confdefs.h <<\_ACEOF 21255#define HAVE_STD_ISINF_IN_CMATH 1 21256_ACEOF 21257 21258 fi 21259echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 21260echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 21261if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 21262 echo $ECHO_N "(cached) $ECHO_C" >&6 21263else 21264 ac_ext=cc 21265ac_cpp='$CXXCPP $CPPFLAGS' 21266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21269 21270 cat >conftest.$ac_ext <<_ACEOF 21271#line $LINENO "configure" 21272/* confdefs.h. */ 21273_ACEOF 21274cat confdefs.h >>conftest.$ac_ext 21275cat >>conftest.$ac_ext <<_ACEOF 21276/* end confdefs.h. */ 21277#include <ieeefp.h> 21278 int foo(float f) {return finite(f);} 21279_ACEOF 21280rm -f conftest.$ac_objext 21281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21282 (eval $ac_compile) 2>&5 21283 ac_status=$? 21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21285 (exit $ac_status); } && 21286 { ac_try='test -s conftest.$ac_objext' 21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21288 (eval $ac_try) 2>&5 21289 ac_status=$? 21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21291 (exit $ac_status); }; }; then 21292 ac_cv_func_finite_in_ieeefp_h=yes 21293else 21294 echo "$as_me: failed program was:" >&5 21295sed 's/^/| /' conftest.$ac_ext >&5 21296 21297ac_cv_func_finite_in_ieeefp_h=no 21298fi 21299rm -f conftest.$ac_objext conftest.$ac_ext 21300 ac_ext=c 21301ac_cpp='$CPP $CPPFLAGS' 21302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21304ac_compiler_gnu=$ac_cv_c_compiler_gnu 21305 21306fi 21307echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 21308echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 21309 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" 21310 then 21311 21312cat >>confdefs.h <<\_ACEOF 21313#define HAVE_FINITE_IN_IEEEFP_H 1 21314_ACEOF 21315 21316 fi 21317 21318 21319# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 21320# for constant arguments. Useless! 21321echo "$as_me:$LINENO: checking for working alloca.h" >&5 21322echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 21323if test "${ac_cv_working_alloca_h+set}" = set; then 21324 echo $ECHO_N "(cached) $ECHO_C" >&6 21325else 21326 cat >conftest.$ac_ext <<_ACEOF 21327#line $LINENO "configure" 21328/* confdefs.h. */ 21329_ACEOF 21330cat confdefs.h >>conftest.$ac_ext 21331cat >>conftest.$ac_ext <<_ACEOF 21332/* end confdefs.h. */ 21333#include <alloca.h> 21334int 21335main () 21336{ 21337char *p = (char *) alloca (2 * sizeof (int)); 21338 ; 21339 return 0; 21340} 21341_ACEOF 21342rm -f conftest.$ac_objext conftest$ac_exeext 21343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21344 (eval $ac_link) 2>&5 21345 ac_status=$? 21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21347 (exit $ac_status); } && 21348 { ac_try='test -s conftest$ac_exeext' 21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21350 (eval $ac_try) 2>&5 21351 ac_status=$? 21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21353 (exit $ac_status); }; }; then 21354 ac_cv_working_alloca_h=yes 21355else 21356 echo "$as_me: failed program was:" >&5 21357sed 's/^/| /' conftest.$ac_ext >&5 21358 21359ac_cv_working_alloca_h=no 21360fi 21361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21362fi 21363echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 21364echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 21365if test $ac_cv_working_alloca_h = yes; then 21366 21367cat >>confdefs.h <<\_ACEOF 21368#define HAVE_ALLOCA_H 1 21369_ACEOF 21370 21371fi 21372 21373echo "$as_me:$LINENO: checking for alloca" >&5 21374echo $ECHO_N "checking for alloca... $ECHO_C" >&6 21375if test "${ac_cv_func_alloca_works+set}" = set; then 21376 echo $ECHO_N "(cached) $ECHO_C" >&6 21377else 21378 cat >conftest.$ac_ext <<_ACEOF 21379#line $LINENO "configure" 21380/* confdefs.h. */ 21381_ACEOF 21382cat confdefs.h >>conftest.$ac_ext 21383cat >>conftest.$ac_ext <<_ACEOF 21384/* end confdefs.h. */ 21385#ifdef __GNUC__ 21386# define alloca __builtin_alloca 21387#else 21388# ifdef _MSC_VER 21389# include <malloc.h> 21390# define alloca _alloca 21391# else 21392# if HAVE_ALLOCA_H 21393# include <alloca.h> 21394# else 21395# ifdef _AIX 21396 #pragma alloca 21397# else 21398# ifndef alloca /* predefined by HP cc +Olibcalls */ 21399char *alloca (); 21400# endif 21401# endif 21402# endif 21403# endif 21404#endif 21405 21406int 21407main () 21408{ 21409char *p = (char *) alloca (1); 21410 ; 21411 return 0; 21412} 21413_ACEOF 21414rm -f conftest.$ac_objext conftest$ac_exeext 21415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21416 (eval $ac_link) 2>&5 21417 ac_status=$? 21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21419 (exit $ac_status); } && 21420 { ac_try='test -s conftest$ac_exeext' 21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21422 (eval $ac_try) 2>&5 21423 ac_status=$? 21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21425 (exit $ac_status); }; }; then 21426 ac_cv_func_alloca_works=yes 21427else 21428 echo "$as_me: failed program was:" >&5 21429sed 's/^/| /' conftest.$ac_ext >&5 21430 21431ac_cv_func_alloca_works=no 21432fi 21433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21434fi 21435echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 21436echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 21437 21438if test $ac_cv_func_alloca_works = yes; then 21439 21440cat >>confdefs.h <<\_ACEOF 21441#define HAVE_ALLOCA 1 21442_ACEOF 21443 21444else 21445 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 21446# that cause trouble. Some versions do not even contain alloca or 21447# contain a buggy version. If you still want to use their alloca, 21448# use ar to extract alloca.o from them instead of compiling alloca.c. 21449 21450ALLOCA=alloca.$ac_objext 21451 21452cat >>confdefs.h <<\_ACEOF 21453#define C_ALLOCA 1 21454_ACEOF 21455 21456 21457echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 21458echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 21459if test "${ac_cv_os_cray+set}" = set; then 21460 echo $ECHO_N "(cached) $ECHO_C" >&6 21461else 21462 cat >conftest.$ac_ext <<_ACEOF 21463#line $LINENO "configure" 21464/* confdefs.h. */ 21465_ACEOF 21466cat confdefs.h >>conftest.$ac_ext 21467cat >>conftest.$ac_ext <<_ACEOF 21468/* end confdefs.h. */ 21469#if defined(CRAY) && ! defined(CRAY2) 21470webecray 21471#else 21472wenotbecray 21473#endif 21474 21475_ACEOF 21476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21477 $EGREP "webecray" >/dev/null 2>&1; then 21478 ac_cv_os_cray=yes 21479else 21480 ac_cv_os_cray=no 21481fi 21482rm -f conftest* 21483 21484fi 21485echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 21486echo "${ECHO_T}$ac_cv_os_cray" >&6 21487if test $ac_cv_os_cray = yes; then 21488 for ac_func in _getb67 GETB67 getb67; do 21489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21490echo "$as_me:$LINENO: checking for $ac_func" >&5 21491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21492if eval "test \"\${$as_ac_var+set}\" = set"; then 21493 echo $ECHO_N "(cached) $ECHO_C" >&6 21494else 21495 cat >conftest.$ac_ext <<_ACEOF 21496#line $LINENO "configure" 21497/* confdefs.h. */ 21498_ACEOF 21499cat confdefs.h >>conftest.$ac_ext 21500cat >>conftest.$ac_ext <<_ACEOF 21501/* end confdefs.h. */ 21502/* System header to define __stub macros and hopefully few prototypes, 21503 which can conflict with char $ac_func (); below. 21504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21505 <limits.h> exists even on freestanding compilers. */ 21506#ifdef __STDC__ 21507# include <limits.h> 21508#else 21509# include <assert.h> 21510#endif 21511/* Override any gcc2 internal prototype to avoid an error. */ 21512#ifdef __cplusplus 21513extern "C" 21514{ 21515#endif 21516/* We use char because int might match the return type of a gcc2 21517 builtin and then its argument prototype would still apply. */ 21518char $ac_func (); 21519/* The GNU C library defines this for functions which it implements 21520 to always fail with ENOSYS. Some functions are actually named 21521 something starting with __ and the normal name is an alias. */ 21522#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21523choke me 21524#else 21525char (*f) () = $ac_func; 21526#endif 21527#ifdef __cplusplus 21528} 21529#endif 21530 21531int 21532main () 21533{ 21534return f != $ac_func; 21535 ; 21536 return 0; 21537} 21538_ACEOF 21539rm -f conftest.$ac_objext conftest$ac_exeext 21540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21541 (eval $ac_link) 2>&5 21542 ac_status=$? 21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21544 (exit $ac_status); } && 21545 { ac_try='test -s conftest$ac_exeext' 21546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21547 (eval $ac_try) 2>&5 21548 ac_status=$? 21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21550 (exit $ac_status); }; }; then 21551 eval "$as_ac_var=yes" 21552else 21553 echo "$as_me: failed program was:" >&5 21554sed 's/^/| /' conftest.$ac_ext >&5 21555 21556eval "$as_ac_var=no" 21557fi 21558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21559fi 21560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21562if test `eval echo '${'$as_ac_var'}'` = yes; then 21563 21564cat >>confdefs.h <<_ACEOF 21565#define CRAY_STACKSEG_END $ac_func 21566_ACEOF 21567 21568 break 21569fi 21570 21571 done 21572fi 21573 21574echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 21575echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 21576if test "${ac_cv_c_stack_direction+set}" = set; then 21577 echo $ECHO_N "(cached) $ECHO_C" >&6 21578else 21579 if test "$cross_compiling" = yes; then 21580 ac_cv_c_stack_direction=0 21581else 21582 cat >conftest.$ac_ext <<_ACEOF 21583#line $LINENO "configure" 21584/* confdefs.h. */ 21585_ACEOF 21586cat confdefs.h >>conftest.$ac_ext 21587cat >>conftest.$ac_ext <<_ACEOF 21588/* end confdefs.h. */ 21589int 21590find_stack_direction () 21591{ 21592 static char *addr = 0; 21593 auto char dummy; 21594 if (addr == 0) 21595 { 21596 addr = &dummy; 21597 return find_stack_direction (); 21598 } 21599 else 21600 return (&dummy > addr) ? 1 : -1; 21601} 21602 21603int 21604main () 21605{ 21606 exit (find_stack_direction () < 0); 21607} 21608_ACEOF 21609rm -f conftest$ac_exeext 21610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21611 (eval $ac_link) 2>&5 21612 ac_status=$? 21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21616 (eval $ac_try) 2>&5 21617 ac_status=$? 21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21619 (exit $ac_status); }; }; then 21620 ac_cv_c_stack_direction=1 21621else 21622 echo "$as_me: program exited with status $ac_status" >&5 21623echo "$as_me: failed program was:" >&5 21624sed 's/^/| /' conftest.$ac_ext >&5 21625 21626( exit $ac_status ) 21627ac_cv_c_stack_direction=-1 21628fi 21629rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21630fi 21631fi 21632echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 21633echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 21634 21635cat >>confdefs.h <<_ACEOF 21636#define STACK_DIRECTION $ac_cv_c_stack_direction 21637_ACEOF 21638 21639 21640fi 21641 21642 21643 21644for ac_header in stdlib.h unistd.h 21645do 21646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21647if eval "test \"\${$as_ac_Header+set}\" = set"; then 21648 echo "$as_me:$LINENO: checking for $ac_header" >&5 21649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21650if eval "test \"\${$as_ac_Header+set}\" = set"; then 21651 echo $ECHO_N "(cached) $ECHO_C" >&6 21652fi 21653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21655else 21656 # Is the header compilable? 21657echo "$as_me:$LINENO: checking $ac_header usability" >&5 21658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21659cat >conftest.$ac_ext <<_ACEOF 21660#line $LINENO "configure" 21661/* confdefs.h. */ 21662_ACEOF 21663cat confdefs.h >>conftest.$ac_ext 21664cat >>conftest.$ac_ext <<_ACEOF 21665/* end confdefs.h. */ 21666$ac_includes_default 21667#include <$ac_header> 21668_ACEOF 21669rm -f conftest.$ac_objext 21670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21671 (eval $ac_compile) 2>&5 21672 ac_status=$? 21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21674 (exit $ac_status); } && 21675 { ac_try='test -s conftest.$ac_objext' 21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21677 (eval $ac_try) 2>&5 21678 ac_status=$? 21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21680 (exit $ac_status); }; }; then 21681 ac_header_compiler=yes 21682else 21683 echo "$as_me: failed program was:" >&5 21684sed 's/^/| /' conftest.$ac_ext >&5 21685 21686ac_header_compiler=no 21687fi 21688rm -f conftest.$ac_objext conftest.$ac_ext 21689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21690echo "${ECHO_T}$ac_header_compiler" >&6 21691 21692# Is the header present? 21693echo "$as_me:$LINENO: checking $ac_header presence" >&5 21694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21695cat >conftest.$ac_ext <<_ACEOF 21696#line $LINENO "configure" 21697/* confdefs.h. */ 21698_ACEOF 21699cat confdefs.h >>conftest.$ac_ext 21700cat >>conftest.$ac_ext <<_ACEOF 21701/* end confdefs.h. */ 21702#include <$ac_header> 21703_ACEOF 21704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21706 ac_status=$? 21707 grep -v '^ *+' conftest.er1 >conftest.err 21708 rm -f conftest.er1 21709 cat conftest.err >&5 21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21711 (exit $ac_status); } >/dev/null; then 21712 if test -s conftest.err; then 21713 ac_cpp_err=$ac_c_preproc_warn_flag 21714 else 21715 ac_cpp_err= 21716 fi 21717else 21718 ac_cpp_err=yes 21719fi 21720if test -z "$ac_cpp_err"; then 21721 ac_header_preproc=yes 21722else 21723 echo "$as_me: failed program was:" >&5 21724sed 's/^/| /' conftest.$ac_ext >&5 21725 21726 ac_header_preproc=no 21727fi 21728rm -f conftest.err conftest.$ac_ext 21729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21730echo "${ECHO_T}$ac_header_preproc" >&6 21731 21732# So? What about this header? 21733case $ac_header_compiler:$ac_header_preproc in 21734 yes:no ) 21735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21739 ( 21740 cat <<\_ASBOX 21741## ------------------------------------ ## 21742## Report this to bug-autoconf@gnu.org. ## 21743## ------------------------------------ ## 21744_ASBOX 21745 ) | 21746 sed "s/^/$as_me: WARNING: /" >&2 21747 ;; 21748 no:yes ) 21749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21752echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21755 ( 21756 cat <<\_ASBOX 21757## ------------------------------------ ## 21758## Report this to bug-autoconf@gnu.org. ## 21759## ------------------------------------ ## 21760_ASBOX 21761 ) | 21762 sed "s/^/$as_me: WARNING: /" >&2 21763 ;; 21764esac 21765echo "$as_me:$LINENO: checking for $ac_header" >&5 21766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21767if eval "test \"\${$as_ac_Header+set}\" = set"; then 21768 echo $ECHO_N "(cached) $ECHO_C" >&6 21769else 21770 eval "$as_ac_Header=$ac_header_preproc" 21771fi 21772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21774 21775fi 21776if test `eval echo '${'$as_ac_Header'}'` = yes; then 21777 cat >>confdefs.h <<_ACEOF 21778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21779_ACEOF 21780 21781fi 21782 21783done 21784 21785 21786for ac_func in getpagesize 21787do 21788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21789echo "$as_me:$LINENO: checking for $ac_func" >&5 21790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21791if eval "test \"\${$as_ac_var+set}\" = set"; then 21792 echo $ECHO_N "(cached) $ECHO_C" >&6 21793else 21794 cat >conftest.$ac_ext <<_ACEOF 21795#line $LINENO "configure" 21796/* confdefs.h. */ 21797_ACEOF 21798cat confdefs.h >>conftest.$ac_ext 21799cat >>conftest.$ac_ext <<_ACEOF 21800/* end confdefs.h. */ 21801/* System header to define __stub macros and hopefully few prototypes, 21802 which can conflict with char $ac_func (); below. 21803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21804 <limits.h> exists even on freestanding compilers. */ 21805#ifdef __STDC__ 21806# include <limits.h> 21807#else 21808# include <assert.h> 21809#endif 21810/* Override any gcc2 internal prototype to avoid an error. */ 21811#ifdef __cplusplus 21812extern "C" 21813{ 21814#endif 21815/* We use char because int might match the return type of a gcc2 21816 builtin and then its argument prototype would still apply. */ 21817char $ac_func (); 21818/* The GNU C library defines this for functions which it implements 21819 to always fail with ENOSYS. Some functions are actually named 21820 something starting with __ and the normal name is an alias. */ 21821#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21822choke me 21823#else 21824char (*f) () = $ac_func; 21825#endif 21826#ifdef __cplusplus 21827} 21828#endif 21829 21830int 21831main () 21832{ 21833return f != $ac_func; 21834 ; 21835 return 0; 21836} 21837_ACEOF 21838rm -f conftest.$ac_objext conftest$ac_exeext 21839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21840 (eval $ac_link) 2>&5 21841 ac_status=$? 21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21843 (exit $ac_status); } && 21844 { ac_try='test -s conftest$ac_exeext' 21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21846 (eval $ac_try) 2>&5 21847 ac_status=$? 21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21849 (exit $ac_status); }; }; then 21850 eval "$as_ac_var=yes" 21851else 21852 echo "$as_me: failed program was:" >&5 21853sed 's/^/| /' conftest.$ac_ext >&5 21854 21855eval "$as_ac_var=no" 21856fi 21857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21858fi 21859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21861if test `eval echo '${'$as_ac_var'}'` = yes; then 21862 cat >>confdefs.h <<_ACEOF 21863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21864_ACEOF 21865 21866fi 21867done 21868 21869echo "$as_me:$LINENO: checking for working mmap" >&5 21870echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 21871if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21872 echo $ECHO_N "(cached) $ECHO_C" >&6 21873else 21874 if test "$cross_compiling" = yes; then 21875 ac_cv_func_mmap_fixed_mapped=no 21876else 21877 cat >conftest.$ac_ext <<_ACEOF 21878#line $LINENO "configure" 21879/* confdefs.h. */ 21880_ACEOF 21881cat confdefs.h >>conftest.$ac_ext 21882cat >>conftest.$ac_ext <<_ACEOF 21883/* end confdefs.h. */ 21884$ac_includes_default 21885/* malloc might have been renamed as rpl_malloc. */ 21886#undef malloc 21887 21888/* Thanks to Mike Haertel and Jim Avera for this test. 21889 Here is a matrix of mmap possibilities: 21890 mmap private not fixed 21891 mmap private fixed at somewhere currently unmapped 21892 mmap private fixed at somewhere already mapped 21893 mmap shared not fixed 21894 mmap shared fixed at somewhere currently unmapped 21895 mmap shared fixed at somewhere already mapped 21896 For private mappings, we should verify that changes cannot be read() 21897 back from the file, nor mmap's back from the file at a different 21898 address. (There have been systems where private was not correctly 21899 implemented like the infamous i386 svr4.0, and systems where the 21900 VM page cache was not coherent with the file system buffer cache 21901 like early versions of FreeBSD and possibly contemporary NetBSD.) 21902 For shared mappings, we should conversely verify that changes get 21903 propagated back to all the places they're supposed to be. 21904 21905 Grep wants private fixed already mapped. 21906 The main things grep needs to know about mmap are: 21907 * does it exist and is it safe to write into the mmap'd area 21908 * how to use it (BSD variants) */ 21909 21910#include <fcntl.h> 21911#include <sys/mman.h> 21912 21913#if !STDC_HEADERS && !HAVE_STDLIB_H 21914char *malloc (); 21915#endif 21916 21917/* This mess was copied from the GNU getpagesize.h. */ 21918#if !HAVE_GETPAGESIZE 21919/* Assume that all systems that can run configure have sys/param.h. */ 21920# if !HAVE_SYS_PARAM_H 21921# define HAVE_SYS_PARAM_H 1 21922# endif 21923 21924# ifdef _SC_PAGESIZE 21925# define getpagesize() sysconf(_SC_PAGESIZE) 21926# else /* no _SC_PAGESIZE */ 21927# if HAVE_SYS_PARAM_H 21928# include <sys/param.h> 21929# ifdef EXEC_PAGESIZE 21930# define getpagesize() EXEC_PAGESIZE 21931# else /* no EXEC_PAGESIZE */ 21932# ifdef NBPG 21933# define getpagesize() NBPG * CLSIZE 21934# ifndef CLSIZE 21935# define CLSIZE 1 21936# endif /* no CLSIZE */ 21937# else /* no NBPG */ 21938# ifdef NBPC 21939# define getpagesize() NBPC 21940# else /* no NBPC */ 21941# ifdef PAGESIZE 21942# define getpagesize() PAGESIZE 21943# endif /* PAGESIZE */ 21944# endif /* no NBPC */ 21945# endif /* no NBPG */ 21946# endif /* no EXEC_PAGESIZE */ 21947# else /* no HAVE_SYS_PARAM_H */ 21948# define getpagesize() 8192 /* punt totally */ 21949# endif /* no HAVE_SYS_PARAM_H */ 21950# endif /* no _SC_PAGESIZE */ 21951 21952#endif /* no HAVE_GETPAGESIZE */ 21953 21954int 21955main () 21956{ 21957 char *data, *data2, *data3; 21958 int i, pagesize; 21959 int fd; 21960 21961 pagesize = getpagesize (); 21962 21963 /* First, make a file with some known garbage in it. */ 21964 data = (char *) malloc (pagesize); 21965 if (!data) 21966 exit (1); 21967 for (i = 0; i < pagesize; ++i) 21968 *(data + i) = rand (); 21969 umask (0); 21970 fd = creat ("conftest.mmap", 0600); 21971 if (fd < 0) 21972 exit (1); 21973 if (write (fd, data, pagesize) != pagesize) 21974 exit (1); 21975 close (fd); 21976 21977 /* Next, try to mmap the file at a fixed address which already has 21978 something else allocated at it. If we can, also make sure that 21979 we see the same garbage. */ 21980 fd = open ("conftest.mmap", O_RDWR); 21981 if (fd < 0) 21982 exit (1); 21983 data2 = (char *) malloc (2 * pagesize); 21984 if (!data2) 21985 exit (1); 21986 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 21987 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21988 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21989 exit (1); 21990 for (i = 0; i < pagesize; ++i) 21991 if (*(data + i) != *(data2 + i)) 21992 exit (1); 21993 21994 /* Finally, make sure that changes to the mapped area do not 21995 percolate back to the file as seen by read(). (This is a bug on 21996 some variants of i386 svr4.0.) */ 21997 for (i = 0; i < pagesize; ++i) 21998 *(data2 + i) = *(data2 + i) + 1; 21999 data3 = (char *) malloc (pagesize); 22000 if (!data3) 22001 exit (1); 22002 if (read (fd, data3, pagesize) != pagesize) 22003 exit (1); 22004 for (i = 0; i < pagesize; ++i) 22005 if (*(data + i) != *(data3 + i)) 22006 exit (1); 22007 close (fd); 22008 exit (0); 22009} 22010_ACEOF 22011rm -f conftest$ac_exeext 22012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22013 (eval $ac_link) 2>&5 22014 ac_status=$? 22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22018 (eval $ac_try) 2>&5 22019 ac_status=$? 22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22021 (exit $ac_status); }; }; then 22022 ac_cv_func_mmap_fixed_mapped=yes 22023else 22024 echo "$as_me: program exited with status $ac_status" >&5 22025echo "$as_me: failed program was:" >&5 22026sed 's/^/| /' conftest.$ac_ext >&5 22027 22028( exit $ac_status ) 22029ac_cv_func_mmap_fixed_mapped=no 22030fi 22031rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22032fi 22033fi 22034echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 22035echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 22036if test $ac_cv_func_mmap_fixed_mapped = yes; then 22037 22038cat >>confdefs.h <<\_ACEOF 22039#define HAVE_MMAP 1 22040_ACEOF 22041 22042fi 22043rm -f conftest.mmap 22044 22045if test "$ac_cv_func_mmap_fixed_mapped" = "no" 22046then 22047 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 22048echo "$as_me: WARNING: mmap() required but not found" >&2;} 22049fi 22050echo "$as_me:$LINENO: checking for mmap of files" >&5 22051echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 22052if test "${ac_cv_func_mmap_file+set}" = set; then 22053 echo $ECHO_N "(cached) $ECHO_C" >&6 22054else 22055 22056 22057 ac_ext=c 22058ac_cpp='$CPP $CPPFLAGS' 22059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22061ac_compiler_gnu=$ac_cv_c_compiler_gnu 22062 22063 if test "$cross_compiling" = yes; then 22064 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22065See \`config.log' for more details." >&5 22066echo "$as_me: error: cannot run test program while cross compiling 22067See \`config.log' for more details." >&2;} 22068 { (exit 1); exit 1; }; } 22069else 22070 cat >conftest.$ac_ext <<_ACEOF 22071#line $LINENO "configure" 22072/* confdefs.h. */ 22073_ACEOF 22074cat confdefs.h >>conftest.$ac_ext 22075cat >>conftest.$ac_ext <<_ACEOF 22076/* end confdefs.h. */ 22077 22078#ifdef HAVE_SYS_TYPES_H 22079#include <sys/types.h> 22080#endif 22081 22082#ifdef HAVE_SYS_MMAN_H 22083#include <sys/mman.h> 22084#endif 22085 22086#ifdef HAVE_FCNTL_H 22087#include <fcntl.h> 22088#endif 22089 22090 int fd; 22091 int main () { 22092 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);} 22093_ACEOF 22094rm -f conftest$ac_exeext 22095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22096 (eval $ac_link) 2>&5 22097 ac_status=$? 22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22101 (eval $ac_try) 2>&5 22102 ac_status=$? 22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22104 (exit $ac_status); }; }; then 22105 ac_cv_func_mmap_file=yes 22106else 22107 echo "$as_me: program exited with status $ac_status" >&5 22108echo "$as_me: failed program was:" >&5 22109sed 's/^/| /' conftest.$ac_ext >&5 22110 22111( exit $ac_status ) 22112ac_cv_func_mmap_file=no 22113fi 22114rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22115fi 22116 ac_ext=c 22117ac_cpp='$CPP $CPPFLAGS' 22118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22120ac_compiler_gnu=$ac_cv_c_compiler_gnu 22121 22122 22123fi 22124echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 22125echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 22126if test "$ac_cv_func_mmap_file" = yes; then 22127 22128cat >>confdefs.h <<\_ACEOF 22129#define HAVE_MMAP_FILE 22130_ACEOF 22131 22132 MMAP_FILE=yes 22133 22134fi 22135 22136if test "$ac_cv_func_mmap_file" = "no" 22137then 22138 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 22139echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 22140fi 22141echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 22142echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 22143if test "${ac_cv_header_mmap_anon+set}" = set; then 22144 echo $ECHO_N "(cached) $ECHO_C" >&6 22145else 22146 22147 22148 ac_ext=c 22149ac_cpp='$CPP $CPPFLAGS' 22150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22152ac_compiler_gnu=$ac_cv_c_compiler_gnu 22153 22154 cat >conftest.$ac_ext <<_ACEOF 22155#line $LINENO "configure" 22156/* confdefs.h. */ 22157_ACEOF 22158cat confdefs.h >>conftest.$ac_ext 22159cat >>conftest.$ac_ext <<_ACEOF 22160/* end confdefs.h. */ 22161#include <sys/mman.h> 22162 #include <unistd.h> 22163 #include <fcntl.h> 22164int 22165main () 22166{ 22167mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 22168 ; 22169 return 0; 22170} 22171_ACEOF 22172rm -f conftest.$ac_objext 22173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22174 (eval $ac_compile) 2>&5 22175 ac_status=$? 22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22177 (exit $ac_status); } && 22178 { ac_try='test -s conftest.$ac_objext' 22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22180 (eval $ac_try) 2>&5 22181 ac_status=$? 22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22183 (exit $ac_status); }; }; then 22184 ac_cv_header_mmap_anon=yes 22185else 22186 echo "$as_me: failed program was:" >&5 22187sed 's/^/| /' conftest.$ac_ext >&5 22188 22189ac_cv_header_mmap_anon=no 22190fi 22191rm -f conftest.$ac_objext conftest.$ac_ext 22192 ac_ext=c 22193ac_cpp='$CPP $CPPFLAGS' 22194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22196ac_compiler_gnu=$ac_cv_c_compiler_gnu 22197 22198 22199fi 22200echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 22201echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 22202if test "$ac_cv_header_mmap_anon" = yes; then 22203 22204cat >>confdefs.h <<\_ACEOF 22205#define HAVE_MMAP_ANONYMOUS 22206_ACEOF 22207 22208fi 22209 22210echo "$as_me:$LINENO: checking return type of signal handlers" >&5 22211echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 22212if test "${ac_cv_type_signal+set}" = set; then 22213 echo $ECHO_N "(cached) $ECHO_C" >&6 22214else 22215 cat >conftest.$ac_ext <<_ACEOF 22216#line $LINENO "configure" 22217/* confdefs.h. */ 22218_ACEOF 22219cat confdefs.h >>conftest.$ac_ext 22220cat >>conftest.$ac_ext <<_ACEOF 22221/* end confdefs.h. */ 22222#include <sys/types.h> 22223#include <signal.h> 22224#ifdef signal 22225# undef signal 22226#endif 22227#ifdef __cplusplus 22228extern "C" void (*signal (int, void (*)(int)))(int); 22229#else 22230void (*signal ()) (); 22231#endif 22232 22233int 22234main () 22235{ 22236int i; 22237 ; 22238 return 0; 22239} 22240_ACEOF 22241rm -f conftest.$ac_objext 22242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22243 (eval $ac_compile) 2>&5 22244 ac_status=$? 22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22246 (exit $ac_status); } && 22247 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 22253 ac_cv_type_signal=void 22254else 22255 echo "$as_me: failed program was:" >&5 22256sed 's/^/| /' conftest.$ac_ext >&5 22257 22258ac_cv_type_signal=int 22259fi 22260rm -f conftest.$ac_objext conftest.$ac_ext 22261fi 22262echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 22263echo "${ECHO_T}$ac_cv_type_signal" >&6 22264 22265cat >>confdefs.h <<_ACEOF 22266#define RETSIGTYPE $ac_cv_type_signal 22267_ACEOF 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage 22280do 22281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22282echo "$as_me:$LINENO: checking for $ac_func" >&5 22283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22284if eval "test \"\${$as_ac_var+set}\" = set"; then 22285 echo $ECHO_N "(cached) $ECHO_C" >&6 22286else 22287 cat >conftest.$ac_ext <<_ACEOF 22288#line $LINENO "configure" 22289/* confdefs.h. */ 22290_ACEOF 22291cat confdefs.h >>conftest.$ac_ext 22292cat >>conftest.$ac_ext <<_ACEOF 22293/* end confdefs.h. */ 22294/* System header to define __stub macros and hopefully few prototypes, 22295 which can conflict with char $ac_func (); below. 22296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22297 <limits.h> exists even on freestanding compilers. */ 22298#ifdef __STDC__ 22299# include <limits.h> 22300#else 22301# include <assert.h> 22302#endif 22303/* Override any gcc2 internal prototype to avoid an error. */ 22304#ifdef __cplusplus 22305extern "C" 22306{ 22307#endif 22308/* We use char because int might match the return type of a gcc2 22309 builtin and then its argument prototype would still apply. */ 22310char $ac_func (); 22311/* The GNU C library defines this for functions which it implements 22312 to always fail with ENOSYS. Some functions are actually named 22313 something starting with __ and the normal name is an alias. */ 22314#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22315choke me 22316#else 22317char (*f) () = $ac_func; 22318#endif 22319#ifdef __cplusplus 22320} 22321#endif 22322 22323int 22324main () 22325{ 22326return f != $ac_func; 22327 ; 22328 return 0; 22329} 22330_ACEOF 22331rm -f conftest.$ac_objext conftest$ac_exeext 22332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22333 (eval $ac_link) 2>&5 22334 ac_status=$? 22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22336 (exit $ac_status); } && 22337 { ac_try='test -s conftest$ac_exeext' 22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22339 (eval $ac_try) 2>&5 22340 ac_status=$? 22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22342 (exit $ac_status); }; }; then 22343 eval "$as_ac_var=yes" 22344else 22345 echo "$as_me: failed program was:" >&5 22346sed 's/^/| /' conftest.$ac_ext >&5 22347 22348eval "$as_ac_var=no" 22349fi 22350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22351fi 22352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22354if test `eval echo '${'$as_ac_var'}'` = yes; then 22355 cat >>confdefs.h <<_ACEOF 22356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22357_ACEOF 22358 22359fi 22360done 22361 22362echo "$as_me:$LINENO: checking for mprotect" >&5 22363echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 22364if test "${ac_cv_func_mprotect+set}" = set; then 22365 echo $ECHO_N "(cached) $ECHO_C" >&6 22366else 22367 cat >conftest.$ac_ext <<_ACEOF 22368#line $LINENO "configure" 22369/* confdefs.h. */ 22370_ACEOF 22371cat confdefs.h >>conftest.$ac_ext 22372cat >>conftest.$ac_ext <<_ACEOF 22373/* end confdefs.h. */ 22374/* System header to define __stub macros and hopefully few prototypes, 22375 which can conflict with char mprotect (); below. 22376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22377 <limits.h> exists even on freestanding compilers. */ 22378#ifdef __STDC__ 22379# include <limits.h> 22380#else 22381# include <assert.h> 22382#endif 22383/* Override any gcc2 internal prototype to avoid an error. */ 22384#ifdef __cplusplus 22385extern "C" 22386{ 22387#endif 22388/* We use char because int might match the return type of a gcc2 22389 builtin and then its argument prototype would still apply. */ 22390char mprotect (); 22391/* The GNU C library defines this for functions which it implements 22392 to always fail with ENOSYS. Some functions are actually named 22393 something starting with __ and the normal name is an alias. */ 22394#if defined (__stub_mprotect) || defined (__stub___mprotect) 22395choke me 22396#else 22397char (*f) () = mprotect; 22398#endif 22399#ifdef __cplusplus 22400} 22401#endif 22402 22403int 22404main () 22405{ 22406return f != mprotect; 22407 ; 22408 return 0; 22409} 22410_ACEOF 22411rm -f conftest.$ac_objext conftest$ac_exeext 22412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22413 (eval $ac_link) 2>&5 22414 ac_status=$? 22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22416 (exit $ac_status); } && 22417 { ac_try='test -s conftest$ac_exeext' 22418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22419 (eval $ac_try) 2>&5 22420 ac_status=$? 22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22422 (exit $ac_status); }; }; then 22423 ac_cv_func_mprotect=yes 22424else 22425 echo "$as_me: failed program was:" >&5 22426sed 's/^/| /' conftest.$ac_ext >&5 22427 22428ac_cv_func_mprotect=no 22429fi 22430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22431fi 22432echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 22433echo "${ECHO_T}$ac_cv_func_mprotect" >&6 22434if test $ac_cv_func_mprotect = yes; then 22435 : 22436else 22437 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 22438echo "$as_me: error: Function mprotect() required but not found" >&2;} 22439 { (exit 1); exit 1; }; } 22440fi 22441 22442 22443 22444 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 22445echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 22446 22447 22448 ac_ext=c 22449ac_cpp='$CPP $CPPFLAGS' 22450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22452ac_compiler_gnu=$ac_cv_c_compiler_gnu 22453 22454 oldcflags="$CFLAGS" 22455 CFLAGS="$CFLAGS -Wl,-R." 22456 cat >conftest.$ac_ext <<_ACEOF 22457int main() { return 0; } 22458_ACEOF 22459rm -f conftest.$ac_objext conftest$ac_exeext 22460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22461 (eval $ac_link) 2>&5 22462 ac_status=$? 22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22464 (exit $ac_status); } && 22465 { ac_try='test -s conftest$ac_exeext' 22466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22467 (eval $ac_try) 2>&5 22468 ac_status=$? 22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22470 (exit $ac_status); }; }; then 22471 ac_cv_link_use_r=yes 22472else 22473 echo "$as_me: failed program was:" >&5 22474sed 's/^/| /' conftest.$ac_ext >&5 22475 22476ac_cv_link_use_r=no 22477fi 22478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22479 CFLAGS="$oldcflags" 22480 ac_ext=c 22481ac_cpp='$CPP $CPPFLAGS' 22482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22484ac_compiler_gnu=$ac_cv_c_compiler_gnu 22485 22486 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5 22487echo "${ECHO_T}$ac_cv_link_use_r" >&6 22488 if test "$ac_cv_link_use_r" = yes 22489 then 22490 22491cat >>confdefs.h <<\_ACEOF 22492#define HAVE_LINK_R 1 22493_ACEOF 22494 22495 fi 22496 22497 22498# Check whether --enable-optimized or --disable-optimized was given. 22499if test "${enable_optimized+set}" = set; then 22500 enableval="$enable_optimized" 22501 22502else 22503 enableval=no 22504fi; 22505if test ${enableval} = "no" 22506then 22507 ENABLE_OPTIMIZED= 22508 22509else 22510 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 22511 22512fi 22513 22514 22515 22516 22517 # Check whether --enable-spec95 or --disable-spec95 was given. 22518if test "${enable_spec95+set}" = set; then 22519 enableval="$enable_spec95" 22520 checkresult=$enableval 22521else 22522 checkresult=auto 22523fi; 22524echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5 22525echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6 22526case "$checkresult" in 22527auto|yes) 22528 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec 22529 if test -d "$defaultdir" 22530 then 22531 SPEC95_ROOT=$defaultdir 22532 22533 USE_SPEC95=USE_SPEC95=1 22534 22535 checkresult="yes, found in $defaultdir" 22536 else 22537 checkresult=no 22538 fi 22539 ;; 22540no) 22541 22542 22543 checkresult=no 22544 ;; 22545*) if test -d "$checkresult" 22546 then 22547 SPEC95_ROOT="$checkresult" 22548 22549 USE_SPEC95=USE_SPEC95=1 22550 22551 checkresult="yes, in $checkresult" 22552 else 22553 22554 22555 checkresult="no, not found in $checkresult" 22556 fi 22557 ;; 22558esac 22559echo "$as_me:$LINENO: result: $checkresult" >&5 22560echo "${ECHO_T}$checkresult" >&6 22561 22562 22563 22564 # Check whether --enable-spec2000 or --disable-spec2000 was given. 22565if test "${enable_spec2000+set}" = set; then 22566 enableval="$enable_spec2000" 22567 checkresult=$enableval 22568else 22569 checkresult=auto 22570fi; 22571echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5 22572echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6 22573case "$checkresult" in 22574auto|yes) 22575 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec 22576 if test -d "$defaultdir" 22577 then 22578 SPEC2000_ROOT=$defaultdir 22579 22580 USE_SPEC2000=USE_SPEC2000=1 22581 22582 checkresult="yes, found in $defaultdir" 22583 else 22584 checkresult=no 22585 fi 22586 ;; 22587no) 22588 22589 22590 checkresult=no 22591 ;; 22592*) if test -d "$checkresult" 22593 then 22594 SPEC2000_ROOT="$checkresult" 22595 22596 USE_SPEC2000=USE_SPEC2000=1 22597 22598 checkresult="yes, in $checkresult" 22599 else 22600 22601 22602 checkresult="no, not found in $checkresult" 22603 fi 22604 ;; 22605esac 22606echo "$as_me:$LINENO: result: $checkresult" >&5 22607echo "${ECHO_T}$checkresult" >&6 22608 22609 22610 22611 # Check whether --enable-povray or --disable-povray was given. 22612if test "${enable_povray+set}" = set; then 22613 enableval="$enable_povray" 22614 checkresult=$enableval 22615else 22616 checkresult=auto 22617fi; 22618echo "$as_me:$LINENO: checking for povray benchmark sources" >&5 22619echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6 22620case "$checkresult" in 22621auto|yes) 22622 defaultdir=/home/vadve/shared/benchmarks/povray31 22623 if test -d "$defaultdir" 22624 then 22625 POVRAY_ROOT=$defaultdir 22626 22627 USE_POVRAY=USE_POVRAY=1 22628 22629 checkresult="yes, found in $defaultdir" 22630 else 22631 checkresult=no 22632 fi 22633 ;; 22634no) 22635 22636 22637 checkresult=no 22638 ;; 22639*) if test -d "$checkresult" 22640 then 22641 POVRAY_ROOT="$checkresult" 22642 22643 USE_POVRAY=USE_POVRAY=1 22644 22645 checkresult="yes, in $checkresult" 22646 else 22647 22648 22649 checkresult="no, not found in $checkresult" 22650 fi 22651 ;; 22652esac 22653echo "$as_me:$LINENO: result: $checkresult" >&5 22654echo "${ECHO_T}$checkresult" >&6 22655 22656 22657 22658# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given. 22659if test "${enable_precompiled_bytecode+set}" = set; then 22660 enableval="$enable_precompiled_bytecode" 22661 22662else 22663 enableval=no 22664fi; 22665if test ${enableval} = "no" 22666then 22667 UPB= 22668 22669else 22670 UPB=USE_PRECOMPILED_BYTECODE=1 22671 22672fi 22673 22674# Check whether --enable-llc_diffs or --disable-llc_diffs was given. 22675if test "${enable_llc_diffs+set}" = set; then 22676 enableval="$enable_llc_diffs" 22677 22678else 22679 enableval=yes 22680fi; 22681if test ${enableval} = "no" 22682then 22683 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1 22684 22685else 22686 DISABLE_LLC_DIFFS= 22687 22688fi 22689 22690# Check whether --enable-jit or --disable-jit was given. 22691if test "${enable_jit+set}" = set; then 22692 enableval="$enable_jit" 22693 22694else 22695 enableval=default 22696fi; 22697if test ${enableval} = "no" 22698then 22699 JIT= 22700 22701else 22702 case $target in 22703 *i*86*) 22704 JIT=TARGET_HAS_JIT=1 22705 22706 ;; 22707 *sparc*) 22708 JIT=TARGET_HAS_JIT=1 22709 22710 ;; 22711 *) 22712 JIT= 22713 22714 ;; 22715 esac 22716fi 22717 22718 22719# Check whether --with-llvmgccdir or --without-llvmgccdir was given. 22720if test "${with_llvmgccdir+set}" = set; then 22721 withval="$with_llvmgccdir" 22722 LLVMGCCDIR=$withval 22723 22724fi; 22725echo "$as_me:$LINENO: checking for llvm-gcc" >&5 22726echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 22727LLVM_GCC_CHECK=no 22728if test -d "$LLVMGCCDIR" 22729then 22730 if test -x "$LLVMGCCDIR/bin/gcc" 22731 then 22732 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" 22733 fi 22734fi 22735llvmgccwarn=no 22736echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 22737echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 22738if test "$LLVM_GCC_CHECK" = "no" 22739then 22740 llvmgccwarn=yes 22741fi 22742echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 22743echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 22744LLVM_GCC_SANE=no 22745if test -x "$LLVM_GCC_CHECK" 22746then 22747 cp /dev/null conftest.c 22748 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 22749 if test $? -eq 0 22750 then 22751 LLVM_GCC_SANE=yes 22752 fi 22753 rm conftest.c 22754 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` 22755 LLVMCC1=$llvmcc1path 22756 22757 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` 22758 LLVMCC1PLUS=$llvmcc1pluspath 22759 22760fi 22761echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 22762echo "${ECHO_T}$LLVM_GCC_SANE" >&6 22763if test "$LLVM_GCC_SANE" = "no" 22764then 22765 llvmgccwarn=yes 22766fi 22767 22768 22769# Check whether --with-bcrepos or --without-bcrepos was given. 22770if test "${with_bcrepos+set}" = set; then 22771 withval="$with_bcrepos" 22772 BCR=$withval 22773 22774else 22775 BCR=/home/vadve/lattner/LLVMPrograms 22776 22777fi; 22778 22779 22780# Check whether --with-papi or --without-papi was given. 22781if test "${with_papi+set}" = set; then 22782 withval="$with_papi" 22783 PAPIDIR=$withval 22784 22785else 22786 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1 22787 22788fi; 22789 22790echo "$as_me:$LINENO: checking for shared library suffix" >&5 22791echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 22792eval "SHLIBEXT=$shrext" 22793echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 22794echo "${ECHO_T}$SHLIBEXT" >&6 22795SHLIBEXT=$SHLIBEXT 22796 22797 22798cat >>confdefs.h <<_ACEOF 22799#define SHLIBEXT "$SHLIBEXT" 22800_ACEOF 22801 22802 22803# Translate the various configuration directories and other basic 22804# information into substitutions that will end up in config.h.in so 22805# that these configured values can be hard-wired into a program. 22806eval LLVM_PREFIX="${prefix}"; 22807eval LLVM_BINDIR="${prefix}/bin"; 22808eval LLVM_LIBDIR="${prefix}/lib"; 22809eval LLVM_DATADIR="${prefix}/data"; 22810eval LLVM_DOCSDIR="${prefix}/docs"; 22811eval LLVM_ETCDIR="${prefix}/etc"; 22812eval LLVM_INCLUDEDIR="${prefix}/include"; 22813eval LLVM_INFODIR="${prefix}/info"; 22814eval LLVM_MANDIR="${prefix}/man"; 22815LLVM_CONFIGTIME=`date` 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827cat >>confdefs.h <<_ACEOF 22828#define LLVM_PREFIX "$LLVM_PREFIX" 22829_ACEOF 22830 22831 22832cat >>confdefs.h <<_ACEOF 22833#define LLVM_BINDIR "$LLVM_BINDIR" 22834_ACEOF 22835 22836 22837cat >>confdefs.h <<_ACEOF 22838#define LLVM_LIBDIR "$LLVM_LIBDIR" 22839_ACEOF 22840 22841 22842cat >>confdefs.h <<_ACEOF 22843#define LLVM_DATADIR "$LLVM_DATADIR" 22844_ACEOF 22845 22846 22847cat >>confdefs.h <<_ACEOF 22848#define LLVM_DATADIR "$LLVM_DOCSDIR" 22849_ACEOF 22850 22851 22852cat >>confdefs.h <<_ACEOF 22853#define LLVM_ETCDIR "$LLVM_ETCDIR" 22854_ACEOF 22855 22856 22857cat >>confdefs.h <<_ACEOF 22858#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 22859_ACEOF 22860 22861 22862cat >>confdefs.h <<_ACEOF 22863#define LLVM_INFODIR "$LLVM_INFODIR" 22864_ACEOF 22865 22866 22867cat >>confdefs.h <<_ACEOF 22868#define LLVM_MANDIR "$LLVM_MANDIR" 22869_ACEOF 22870 22871 22872cat >>confdefs.h <<_ACEOF 22873#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 22874_ACEOF 22875 22876 22877cat >confcache <<\_ACEOF 22878# This file is a shell script that caches the results of configure 22879# tests run on this system so they can be shared between configure 22880# scripts and configure runs, see configure's option --config-cache. 22881# It is not useful on other systems. If it contains results you don't 22882# want to keep, you may remove or edit it. 22883# 22884# config.status only pays attention to the cache file if you give it 22885# the --recheck option to rerun configure. 22886# 22887# `ac_cv_env_foo' variables (set or unset) will be overridden when 22888# loading this file, other *unset* `ac_cv_foo' will be assigned the 22889# following values. 22890 22891_ACEOF 22892 22893# The following way of writing the cache mishandles newlines in values, 22894# but we know of no workaround that is simple, portable, and efficient. 22895# So, don't put newlines in cache variables' values. 22896# Ultrix sh set writes to stderr and can't be redirected directly, 22897# and sets the high bit in the cache file unless we assign to the vars. 22898{ 22899 (set) 2>&1 | 22900 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22901 *ac_space=\ *) 22902 # `set' does not quote correctly, so add quotes (double-quote 22903 # substitution turns \\\\ into \\, and sed turns \\ into \). 22904 sed -n \ 22905 "s/'/'\\\\''/g; 22906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22907 ;; 22908 *) 22909 # `set' quotes correctly as required by POSIX, so do not add quotes. 22910 sed -n \ 22911 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22912 ;; 22913 esac; 22914} | 22915 sed ' 22916 t clear 22917 : clear 22918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22919 t end 22920 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22921 : end' >>confcache 22922if diff $cache_file confcache >/dev/null 2>&1; then :; else 22923 if test -w $cache_file; then 22924 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22925 cat confcache >$cache_file 22926 else 22927 echo "not updating unwritable cache $cache_file" 22928 fi 22929fi 22930rm -f confcache 22931 22932test "x$prefix" = xNONE && prefix=$ac_default_prefix 22933# Let make expand exec_prefix. 22934test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22935 22936# VPATH may cause trouble with some makes, so we remove $(srcdir), 22937# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22938# trailing colons and then remove the whole line if VPATH becomes empty 22939# (actually we leave an empty line to preserve line numbers). 22940if test "x$srcdir" = x.; then 22941 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22942s/:*\$(srcdir):*/:/; 22943s/:*\${srcdir}:*/:/; 22944s/:*@srcdir@:*/:/; 22945s/^\([^=]*=[ ]*\):*/\1/; 22946s/:*$//; 22947s/^[^=]*=[ ]*$//; 22948}' 22949fi 22950 22951DEFS=-DHAVE_CONFIG_H 22952 22953ac_libobjs= 22954ac_ltlibobjs= 22955for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22956 # 1. Remove the extension, and $U if already installed. 22957 ac_i=`echo "$ac_i" | 22958 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22959 # 2. Add them. 22960 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22961 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22962done 22963LIBOBJS=$ac_libobjs 22964 22965LTLIBOBJS=$ac_ltlibobjs 22966 22967 22968 22969: ${CONFIG_STATUS=./config.status} 22970ac_clean_files_save=$ac_clean_files 22971ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22972{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22973echo "$as_me: creating $CONFIG_STATUS" >&6;} 22974cat >$CONFIG_STATUS <<_ACEOF 22975#! $SHELL 22976# Generated by $as_me. 22977# Run this file to recreate the current configuration. 22978# Compiler output produced by configure, useful for debugging 22979# configure, is in config.log if it exists. 22980 22981debug=false 22982ac_cs_recheck=false 22983ac_cs_silent=false 22984SHELL=\${CONFIG_SHELL-$SHELL} 22985_ACEOF 22986 22987cat >>$CONFIG_STATUS <<\_ACEOF 22988## --------------------- ## 22989## M4sh Initialization. ## 22990## --------------------- ## 22991 22992# Be Bourne compatible 22993if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22994 emulate sh 22995 NULLCMD=: 22996 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22997 # is contrary to our usage. Disable this feature. 22998 alias -g '${1+"$@"}'='"$@"' 22999elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23000 set -o posix 23001fi 23002 23003# Support unset when possible. 23004if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 23005 as_unset=unset 23006else 23007 as_unset=false 23008fi 23009 23010 23011# Work around bugs in pre-3.0 UWIN ksh. 23012$as_unset ENV MAIL MAILPATH 23013PS1='$ ' 23014PS2='> ' 23015PS4='+ ' 23016 23017# NLS nuisances. 23018for as_var in \ 23019 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23020 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23021 LC_TELEPHONE LC_TIME 23022do 23023 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 23024 eval $as_var=C; export $as_var 23025 else 23026 $as_unset $as_var 23027 fi 23028done 23029 23030# Required to use basename. 23031if expr a : '\(a\)' >/dev/null 2>&1; then 23032 as_expr=expr 23033else 23034 as_expr=false 23035fi 23036 23037if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23038 as_basename=basename 23039else 23040 as_basename=false 23041fi 23042 23043 23044# Name of the executable. 23045as_me=`$as_basename "$0" || 23046$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23047 X"$0" : 'X\(//\)$' \| \ 23048 X"$0" : 'X\(/\)$' \| \ 23049 . : '\(.\)' 2>/dev/null || 23050echo X/"$0" | 23051 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23052 /^X\/\(\/\/\)$/{ s//\1/; q; } 23053 /^X\/\(\/\).*/{ s//\1/; q; } 23054 s/.*/./; q'` 23055 23056 23057# PATH needs CR, and LINENO needs CR and PATH. 23058# Avoid depending upon Character Ranges. 23059as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23060as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23061as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23062as_cr_digits='0123456789' 23063as_cr_alnum=$as_cr_Letters$as_cr_digits 23064 23065# The user is always right. 23066if test "${PATH_SEPARATOR+set}" != set; then 23067 echo "#! /bin/sh" >conf$$.sh 23068 echo "exit 0" >>conf$$.sh 23069 chmod +x conf$$.sh 23070 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23071 PATH_SEPARATOR=';' 23072 else 23073 PATH_SEPARATOR=: 23074 fi 23075 rm -f conf$$.sh 23076fi 23077 23078 23079 as_lineno_1=$LINENO 23080 as_lineno_2=$LINENO 23081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23082 test "x$as_lineno_1" != "x$as_lineno_2" && 23083 test "x$as_lineno_3" = "x$as_lineno_2" || { 23084 # Find who we are. Look in the path if we contain no path at all 23085 # relative or not. 23086 case $0 in 23087 *[\\/]* ) as_myself=$0 ;; 23088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23089for as_dir in $PATH 23090do 23091 IFS=$as_save_IFS 23092 test -z "$as_dir" && as_dir=. 23093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23094done 23095 23096 ;; 23097 esac 23098 # We did not find ourselves, most probably we were run as `sh COMMAND' 23099 # in which case we are not to be found in the path. 23100 if test "x$as_myself" = x; then 23101 as_myself=$0 23102 fi 23103 if test ! -f "$as_myself"; then 23104 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23105echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23106 { (exit 1); exit 1; }; } 23107 fi 23108 case $CONFIG_SHELL in 23109 '') 23110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23111for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23112do 23113 IFS=$as_save_IFS 23114 test -z "$as_dir" && as_dir=. 23115 for as_base in sh bash ksh sh5; do 23116 case $as_dir in 23117 /*) 23118 if ("$as_dir/$as_base" -c ' 23119 as_lineno_1=$LINENO 23120 as_lineno_2=$LINENO 23121 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23122 test "x$as_lineno_1" != "x$as_lineno_2" && 23123 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23124 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23125 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23126 CONFIG_SHELL=$as_dir/$as_base 23127 export CONFIG_SHELL 23128 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23129 fi;; 23130 esac 23131 done 23132done 23133;; 23134 esac 23135 23136 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23137 # uniformly replaced by the line number. The first 'sed' inserts a 23138 # line-number line before each line; the second 'sed' does the real 23139 # work. The second script uses 'N' to pair each line-number line 23140 # with the numbered line, and appends trailing '-' during 23141 # substitution so that $LINENO is not a special case at line end. 23142 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23143 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23144 sed '=' <$as_myself | 23145 sed ' 23146 N 23147 s,$,-, 23148 : loop 23149 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23150 t loop 23151 s,-$,, 23152 s,^['$as_cr_digits']*\n,, 23153 ' >$as_me.lineno && 23154 chmod +x $as_me.lineno || 23155 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23156echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23157 { (exit 1); exit 1; }; } 23158 23159 # Don't try to exec as it changes $[0], causing all sort of problems 23160 # (the dirname of $[0] is not the place where we might find the 23161 # original and so on. Autoconf is especially sensible to this). 23162 . ./$as_me.lineno 23163 # Exit status is that of the last command. 23164 exit 23165} 23166 23167 23168case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23169 *c*,-n*) ECHO_N= ECHO_C=' 23170' ECHO_T=' ' ;; 23171 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23172 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23173esac 23174 23175if expr a : '\(a\)' >/dev/null 2>&1; then 23176 as_expr=expr 23177else 23178 as_expr=false 23179fi 23180 23181rm -f conf$$ conf$$.exe conf$$.file 23182echo >conf$$.file 23183if ln -s conf$$.file conf$$ 2>/dev/null; then 23184 # We could just check for DJGPP; but this test a) works b) is more generic 23185 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23186 if test -f conf$$.exe; then 23187 # Don't use ln at all; we don't have any links 23188 as_ln_s='cp -p' 23189 else 23190 as_ln_s='ln -s' 23191 fi 23192elif ln conf$$.file conf$$ 2>/dev/null; then 23193 as_ln_s=ln 23194else 23195 as_ln_s='cp -p' 23196fi 23197rm -f conf$$ conf$$.exe conf$$.file 23198 23199if mkdir -p . 2>/dev/null; then 23200 as_mkdir_p=: 23201else 23202 as_mkdir_p=false 23203fi 23204 23205as_executable_p="test -f" 23206 23207# Sed expression to map a string onto a valid CPP name. 23208as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 23209 23210# Sed expression to map a string onto a valid variable name. 23211as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 23212 23213 23214# IFS 23215# We need space, tab and new line, in precisely that order. 23216as_nl=' 23217' 23218IFS=" $as_nl" 23219 23220# CDPATH. 23221$as_unset CDPATH 23222 23223exec 6>&1 23224 23225# Open the log real soon, to keep \$[0] and so on meaningful, and to 23226# report actual input values of CONFIG_FILES etc. instead of their 23227# values after options handling. Logging --version etc. is OK. 23228exec 5>>config.log 23229{ 23230 echo 23231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23232## Running $as_me. ## 23233_ASBOX 23234} >&5 23235cat >&5 <<_CSEOF 23236 23237This file was extended by LLVM $as_me 1.4, which was 23238generated by GNU Autoconf 2.57. Invocation command line was 23239 23240 CONFIG_FILES = $CONFIG_FILES 23241 CONFIG_HEADERS = $CONFIG_HEADERS 23242 CONFIG_LINKS = $CONFIG_LINKS 23243 CONFIG_COMMANDS = $CONFIG_COMMANDS 23244 $ $0 $@ 23245 23246_CSEOF 23247echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23248echo >&5 23249_ACEOF 23250 23251# Files that config.status was made for. 23252if test -n "$ac_config_files"; then 23253 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23254fi 23255 23256if test -n "$ac_config_headers"; then 23257 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23258fi 23259 23260if test -n "$ac_config_links"; then 23261 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23262fi 23263 23264if test -n "$ac_config_commands"; then 23265 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23266fi 23267 23268cat >>$CONFIG_STATUS <<\_ACEOF 23269 23270ac_cs_usage="\ 23271\`$as_me' instantiates files from templates according to the 23272current configuration. 23273 23274Usage: $0 [OPTIONS] [FILE]... 23275 23276 -h, --help print this help, then exit 23277 -V, --version print version number, then exit 23278 -q, --quiet do not print progress messages 23279 -d, --debug don't remove temporary files 23280 --recheck update $as_me by reconfiguring in the same conditions 23281 --file=FILE[:TEMPLATE] 23282 instantiate the configuration file FILE 23283 --header=FILE[:TEMPLATE] 23284 instantiate the configuration header FILE 23285 23286Configuration files: 23287$config_files 23288 23289Configuration headers: 23290$config_headers 23291 23292Configuration links: 23293$config_links 23294 23295Configuration commands: 23296$config_commands 23297 23298Report bugs to <bug-autoconf@gnu.org>." 23299_ACEOF 23300 23301cat >>$CONFIG_STATUS <<_ACEOF 23302ac_cs_version="\\ 23303LLVM config.status 1.4 23304configured by $0, generated by GNU Autoconf 2.57, 23305 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23306 23307Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 23308Free Software Foundation, Inc. 23309This config.status script is free software; the Free Software Foundation 23310gives unlimited permission to copy, distribute and modify it." 23311srcdir=$srcdir 23312INSTALL="$INSTALL" 23313_ACEOF 23314 23315cat >>$CONFIG_STATUS <<\_ACEOF 23316# If no file are specified by the user, then we need to provide default 23317# value. By we need to know if files were specified by the user. 23318ac_need_defaults=: 23319while test $# != 0 23320do 23321 case $1 in 23322 --*=*) 23323 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23324 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23325 ac_shift=: 23326 ;; 23327 -*) 23328 ac_option=$1 23329 ac_optarg=$2 23330 ac_shift=shift 23331 ;; 23332 *) # This is not an option, so the user has probably given explicit 23333 # arguments. 23334 ac_option=$1 23335 ac_need_defaults=false;; 23336 esac 23337 23338 case $ac_option in 23339 # Handling of the options. 23340_ACEOF 23341cat >>$CONFIG_STATUS <<\_ACEOF 23342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23343 ac_cs_recheck=: ;; 23344 --version | --vers* | -V ) 23345 echo "$ac_cs_version"; exit 0 ;; 23346 --he | --h) 23347 # Conflict between --help and --header 23348 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23349Try \`$0 --help' for more information." >&5 23350echo "$as_me: error: ambiguous option: $1 23351Try \`$0 --help' for more information." >&2;} 23352 { (exit 1); exit 1; }; };; 23353 --help | --hel | -h ) 23354 echo "$ac_cs_usage"; exit 0 ;; 23355 --debug | --d* | -d ) 23356 debug=: ;; 23357 --file | --fil | --fi | --f ) 23358 $ac_shift 23359 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23360 ac_need_defaults=false;; 23361 --header | --heade | --head | --hea ) 23362 $ac_shift 23363 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23364 ac_need_defaults=false;; 23365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23366 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23367 ac_cs_silent=: ;; 23368 23369 # This is an error. 23370 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23371Try \`$0 --help' for more information." >&5 23372echo "$as_me: error: unrecognized option: $1 23373Try \`$0 --help' for more information." >&2;} 23374 { (exit 1); exit 1; }; } ;; 23375 23376 *) ac_config_targets="$ac_config_targets $1" ;; 23377 23378 esac 23379 shift 23380done 23381 23382ac_configure_extra_args= 23383 23384if $ac_cs_silent; then 23385 exec 6>/dev/null 23386 ac_configure_extra_args="$ac_configure_extra_args --silent" 23387fi 23388 23389_ACEOF 23390cat >>$CONFIG_STATUS <<_ACEOF 23391if \$ac_cs_recheck; then 23392 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23393 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23394fi 23395 23396_ACEOF 23397 23398cat >>$CONFIG_STATUS <<_ACEOF 23399# 23400# INIT-COMMANDS section. 23401# 23402 23403${srcdir}/autoconf/mkinstalldirs `dirname Makefile` 23404${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` 23405${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` 23406${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` 23407${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` 23408${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` 23409${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 23410${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` 23411${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` 23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile` 23413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs` 23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests` 23415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile` 23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report` 23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report` 23418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile` 23419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile` 23420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile` 23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile` 23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report` 23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile` 23424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report` 23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile` 23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot` 23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile` 23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile` 23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile` 23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec` 23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000` 23432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95` 23433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile` 23434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc` 23435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in` 23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile` 23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in` 23438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile` 23439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in` 23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile` 23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in` 23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile` 23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in` 23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile` 23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in` 23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile` 23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in` 23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile` 23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc` 23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile` 23451${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` 23452${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` 23453${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` 23454 23455_ACEOF 23456 23457 23458 23459cat >>$CONFIG_STATUS <<\_ACEOF 23460for ac_config_target in $ac_config_targets 23461do 23462 case "$ac_config_target" in 23463 # Handling of arguments. 23464 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 23465 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;; 23466 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;; 23467 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;; 23468 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;; 23469 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;; 23470 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;; 23471 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 23472 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 23473 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 23474 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 23475 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 23476 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 23477 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 23478 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; 23479 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; 23480 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;; 23481 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;; 23482 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;; 23483 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;; 23484 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;; 23485 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;; 23486 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;; 23487 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;; 23488 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;; 23489 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;; 23490 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;; 23491 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;; 23492 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;; 23493 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;; 23494 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;; 23495 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;; 23496 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;; 23497 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;; 23498 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;; 23499 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;; 23500 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;; 23501 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;; 23502 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;; 23503 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;; 23504 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;; 23505 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;; 23506 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;; 23507 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;; 23508 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;; 23509 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;; 23510 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;; 23511 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;; 23512 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;; 23513 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;; 23514 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;; 23515 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;; 23516 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;; 23517 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;; 23518 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;; 23519 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 23520 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 23521 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 23522 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 23523 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23524echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23525 { (exit 1); exit 1; }; };; 23526 esac 23527done 23528 23529# If the user did not use the arguments to specify the items to instantiate, 23530# then the envvar interface is used. Set only those that are not. 23531# We use the long form for the default assignment because of an extremely 23532# bizarre bug on SunOS 4.1.3. 23533if $ac_need_defaults; then 23534 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23535 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23536 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 23537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23538fi 23539 23540# Have a temporary directory for convenience. Make it in the build tree 23541# simply because there is no reason to put it here, and in addition, 23542# creating and moving files from /tmp can sometimes cause problems. 23543# Create a temporary directory, and hook for its removal unless debugging. 23544$debug || 23545{ 23546 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23547 trap '{ (exit 1); exit 1; }' 1 2 13 15 23548} 23549 23550# Create a (secure) tmp directory for tmp files. 23551 23552{ 23553 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23554 test -n "$tmp" && test -d "$tmp" 23555} || 23556{ 23557 tmp=./confstat$$-$RANDOM 23558 (umask 077 && mkdir $tmp) 23559} || 23560{ 23561 echo "$me: cannot create a temporary directory in ." >&2 23562 { (exit 1); exit 1; } 23563} 23564 23565_ACEOF 23566 23567cat >>$CONFIG_STATUS <<_ACEOF 23568 23569# 23570# CONFIG_FILES section. 23571# 23572 23573# No need to generate the scripts if there are no CONFIG_FILES. 23574# This happens for instance when ./config.status config.h 23575if test -n "\$CONFIG_FILES"; then 23576 # Protect against being on the right side of a sed subst in config.status. 23577 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23578 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23579s,@SHELL@,$SHELL,;t t 23580s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23581s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23582s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23583s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23584s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23585s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23586s,@exec_prefix@,$exec_prefix,;t t 23587s,@prefix@,$prefix,;t t 23588s,@program_transform_name@,$program_transform_name,;t t 23589s,@bindir@,$bindir,;t t 23590s,@sbindir@,$sbindir,;t t 23591s,@libexecdir@,$libexecdir,;t t 23592s,@datadir@,$datadir,;t t 23593s,@sysconfdir@,$sysconfdir,;t t 23594s,@sharedstatedir@,$sharedstatedir,;t t 23595s,@localstatedir@,$localstatedir,;t t 23596s,@libdir@,$libdir,;t t 23597s,@includedir@,$includedir,;t t 23598s,@oldincludedir@,$oldincludedir,;t t 23599s,@infodir@,$infodir,;t t 23600s,@mandir@,$mandir,;t t 23601s,@build_alias@,$build_alias,;t t 23602s,@host_alias@,$host_alias,;t t 23603s,@target_alias@,$target_alias,;t t 23604s,@DEFS@,$DEFS,;t t 23605s,@ECHO_C@,$ECHO_C,;t t 23606s,@ECHO_N@,$ECHO_N,;t t 23607s,@ECHO_T@,$ECHO_T,;t t 23608s,@LIBS@,$LIBS,;t t 23609s,@subdirs@,$subdirs,;t t 23610s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23611s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23612s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23613s,@build@,$build,;t t 23614s,@build_cpu@,$build_cpu,;t t 23615s,@build_vendor@,$build_vendor,;t t 23616s,@build_os@,$build_os,;t t 23617s,@host@,$host,;t t 23618s,@host_cpu@,$host_cpu,;t t 23619s,@host_vendor@,$host_vendor,;t t 23620s,@host_os@,$host_os,;t t 23621s,@target@,$target,;t t 23622s,@target_cpu@,$target_cpu,;t t 23623s,@target_vendor@,$target_vendor,;t t 23624s,@target_os@,$target_os,;t t 23625s,@OS@,$OS,;t t 23626s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t 23627s,@ARCH@,$ARCH,;t t 23628s,@CXX@,$CXX,;t t 23629s,@CXXFLAGS@,$CXXFLAGS,;t t 23630s,@LDFLAGS@,$LDFLAGS,;t t 23631s,@CPPFLAGS@,$CPPFLAGS,;t t 23632s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23633s,@EXEEXT@,$EXEEXT,;t t 23634s,@OBJEXT@,$OBJEXT,;t t 23635s,@CC@,$CC,;t t 23636s,@CFLAGS@,$CFLAGS,;t t 23637s,@ac_ct_CC@,$ac_ct_CC,;t t 23638s,@CPP@,$CPP,;t t 23639s,@ifGNUmake@,$ifGNUmake,;t t 23640s,@LEX@,$LEX,;t t 23641s,@LEXLIB@,$LEXLIB,;t t 23642s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 23643s,@YACC@,$YACC,;t t 23644s,@BISON@,$BISON,;t t 23645s,@EGREP@,$EGREP,;t t 23646s,@LN_S@,$LN_S,;t t 23647s,@ECHO@,$ECHO,;t t 23648s,@AR@,$AR,;t t 23649s,@ac_ct_AR@,$ac_ct_AR,;t t 23650s,@RANLIB@,$RANLIB,;t t 23651s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23652s,@STRIP@,$STRIP,;t t 23653s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23654s,@CXXCPP@,$CXXCPP,;t t 23655s,@F77@,$F77,;t t 23656s,@FFLAGS@,$FFLAGS,;t t 23657s,@ac_ct_F77@,$ac_ct_F77,;t t 23658s,@LIBTOOL@,$LIBTOOL,;t t 23659s,@DOT@,$DOT,;t t 23660s,@ETAGS@,$ETAGS,;t t 23661s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t 23662s,@PYTHON@,$PYTHON,;t t 23663s,@QMTEST@,$QMTEST,;t t 23664s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t 23665s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t 23666s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t 23667s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t 23668s,@ENDIAN@,$ENDIAN,;t t 23669s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t 23670s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t 23671s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t 23672s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t 23673s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t 23674s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t 23675s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t 23676s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t 23677s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t 23678s,@ALLOCA@,$ALLOCA,;t t 23679s,@MMAP_FILE@,$MMAP_FILE,;t t 23680s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t 23681s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t 23682s,@USE_SPEC95@,$USE_SPEC95,;t t 23683s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t 23684s,@USE_SPEC2000@,$USE_SPEC2000,;t t 23685s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t 23686s,@USE_POVRAY@,$USE_POVRAY,;t t 23687s,@UPB@,$UPB,;t t 23688s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t 23689s,@JIT@,$JIT,;t t 23690s,@LLVMCC1@,$LLVMCC1,;t t 23691s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t 23692s,@BCR@,$BCR,;t t 23693s,@PAPIDIR@,$PAPIDIR,;t t 23694s,@SHLIBEXT@,$SHLIBEXT,;t t 23695s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t 23696s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t 23697s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t 23698s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t 23699s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t 23700s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t 23701s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t 23702s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t 23703s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t 23704s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t 23705s,@LIBOBJS@,$LIBOBJS,;t t 23706s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23707CEOF 23708 23709_ACEOF 23710 23711 cat >>$CONFIG_STATUS <<\_ACEOF 23712 # Split the substitutions into bite-sized pieces for seds with 23713 # small command number limits, like on Digital OSF/1 and HP-UX. 23714 ac_max_sed_lines=48 23715 ac_sed_frag=1 # Number of current file. 23716 ac_beg=1 # First line for current file. 23717 ac_end=$ac_max_sed_lines # Line after last line for current file. 23718 ac_more_lines=: 23719 ac_sed_cmds= 23720 while $ac_more_lines; do 23721 if test $ac_beg -gt 1; then 23722 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23723 else 23724 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23725 fi 23726 if test ! -s $tmp/subs.frag; then 23727 ac_more_lines=false 23728 else 23729 # The purpose of the label and of the branching condition is to 23730 # speed up the sed processing (if there are no `@' at all, there 23731 # is no need to browse any of the substitutions). 23732 # These are the two extra sed commands mentioned above. 23733 (echo ':t 23734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23735 if test -z "$ac_sed_cmds"; then 23736 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23737 else 23738 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23739 fi 23740 ac_sed_frag=`expr $ac_sed_frag + 1` 23741 ac_beg=$ac_end 23742 ac_end=`expr $ac_end + $ac_max_sed_lines` 23743 fi 23744 done 23745 if test -z "$ac_sed_cmds"; then 23746 ac_sed_cmds=cat 23747 fi 23748fi # test -n "$CONFIG_FILES" 23749 23750_ACEOF 23751cat >>$CONFIG_STATUS <<\_ACEOF 23752for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23754 case $ac_file in 23755 - | *:- | *:-:* ) # input from stdin 23756 cat >$tmp/stdin 23757 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23759 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23761 * ) ac_file_in=$ac_file.in ;; 23762 esac 23763 23764 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23765 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23766$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23767 X"$ac_file" : 'X\(//\)[^/]' \| \ 23768 X"$ac_file" : 'X\(//\)$' \| \ 23769 X"$ac_file" : 'X\(/\)' \| \ 23770 . : '\(.\)' 2>/dev/null || 23771echo X"$ac_file" | 23772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23773 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23774 /^X\(\/\/\)$/{ s//\1/; q; } 23775 /^X\(\/\).*/{ s//\1/; q; } 23776 s/.*/./; q'` 23777 { if $as_mkdir_p; then 23778 mkdir -p "$ac_dir" 23779 else 23780 as_dir="$ac_dir" 23781 as_dirs= 23782 while test ! -d "$as_dir"; do 23783 as_dirs="$as_dir $as_dirs" 23784 as_dir=`(dirname "$as_dir") 2>/dev/null || 23785$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23786 X"$as_dir" : 'X\(//\)[^/]' \| \ 23787 X"$as_dir" : 'X\(//\)$' \| \ 23788 X"$as_dir" : 'X\(/\)' \| \ 23789 . : '\(.\)' 2>/dev/null || 23790echo X"$as_dir" | 23791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23792 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23793 /^X\(\/\/\)$/{ s//\1/; q; } 23794 /^X\(\/\).*/{ s//\1/; q; } 23795 s/.*/./; q'` 23796 done 23797 test ! -n "$as_dirs" || mkdir $as_dirs 23798 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23799echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23800 { (exit 1); exit 1; }; }; } 23801 23802 ac_builddir=. 23803 23804if test "$ac_dir" != .; then 23805 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23806 # A "../" for each directory in $ac_dir_suffix. 23807 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23808else 23809 ac_dir_suffix= ac_top_builddir= 23810fi 23811 23812case $srcdir in 23813 .) # No --srcdir option. We are building in place. 23814 ac_srcdir=. 23815 if test -z "$ac_top_builddir"; then 23816 ac_top_srcdir=. 23817 else 23818 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23819 fi ;; 23820 [\\/]* | ?:[\\/]* ) # Absolute path. 23821 ac_srcdir=$srcdir$ac_dir_suffix; 23822 ac_top_srcdir=$srcdir ;; 23823 *) # Relative path. 23824 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23825 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23826esac 23827# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 23828# absolute. 23829ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 23830ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 23831ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 23832ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 23833 23834 23835 case $INSTALL in 23836 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23837 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23838 esac 23839 23840 if test x"$ac_file" != x-; then 23841 { echo "$as_me:$LINENO: creating $ac_file" >&5 23842echo "$as_me: creating $ac_file" >&6;} 23843 rm -f "$ac_file" 23844 fi 23845 # Let's still pretend it is `configure' which instantiates (i.e., don't 23846 # use $as_me), people would be surprised to read: 23847 # /* config.h. Generated by config.status. */ 23848 if test x"$ac_file" = x-; then 23849 configure_input= 23850 else 23851 configure_input="$ac_file. " 23852 fi 23853 configure_input=$configure_input"Generated from `echo $ac_file_in | 23854 sed 's,.*/,,'` by configure." 23855 23856 # First look for the input files in the build tree, otherwise in the 23857 # src tree. 23858 ac_file_inputs=`IFS=: 23859 for f in $ac_file_in; do 23860 case $f in 23861 -) echo $tmp/stdin ;; 23862 [\\/$]*) 23863 # Absolute (can't be DOS-style, as IFS=:) 23864 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23865echo "$as_me: error: cannot find input file: $f" >&2;} 23866 { (exit 1); exit 1; }; } 23867 echo $f;; 23868 *) # Relative 23869 if test -f "$f"; then 23870 # Build tree 23871 echo $f 23872 elif test -f "$srcdir/$f"; then 23873 # Source tree 23874 echo $srcdir/$f 23875 else 23876 # /dev/null tree 23877 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23878echo "$as_me: error: cannot find input file: $f" >&2;} 23879 { (exit 1); exit 1; }; } 23880 fi;; 23881 esac 23882 done` || { (exit 1); exit 1; } 23883_ACEOF 23884cat >>$CONFIG_STATUS <<_ACEOF 23885 sed "$ac_vpsub 23886$extrasub 23887_ACEOF 23888cat >>$CONFIG_STATUS <<\_ACEOF 23889:t 23890/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23891s,@configure_input@,$configure_input,;t t 23892s,@srcdir@,$ac_srcdir,;t t 23893s,@abs_srcdir@,$ac_abs_srcdir,;t t 23894s,@top_srcdir@,$ac_top_srcdir,;t t 23895s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23896s,@builddir@,$ac_builddir,;t t 23897s,@abs_builddir@,$ac_abs_builddir,;t t 23898s,@top_builddir@,$ac_top_builddir,;t t 23899s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23900s,@INSTALL@,$ac_INSTALL,;t t 23901" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23902 rm -f $tmp/stdin 23903 if test x"$ac_file" != x-; then 23904 mv $tmp/out $ac_file 23905 else 23906 cat $tmp/out 23907 rm -f $tmp/out 23908 fi 23909 23910done 23911_ACEOF 23912cat >>$CONFIG_STATUS <<\_ACEOF 23913 23914# 23915# CONFIG_HEADER section. 23916# 23917 23918# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23919# NAME is the cpp macro being defined and VALUE is the value it is being given. 23920# 23921# ac_d sets the value in "#define NAME VALUE" lines. 23922ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23923ac_dB='[ ].*$,\1#\2' 23924ac_dC=' ' 23925ac_dD=',;t' 23926# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23927ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23928ac_uB='$,\1#\2define\3' 23929ac_uC=' ' 23930ac_uD=',;t' 23931 23932for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23933 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23934 case $ac_file in 23935 - | *:- | *:-:* ) # input from stdin 23936 cat >$tmp/stdin 23937 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23938 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23939 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23940 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23941 * ) ac_file_in=$ac_file.in ;; 23942 esac 23943 23944 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23945echo "$as_me: creating $ac_file" >&6;} 23946 23947 # First look for the input files in the build tree, otherwise in the 23948 # src tree. 23949 ac_file_inputs=`IFS=: 23950 for f in $ac_file_in; do 23951 case $f in 23952 -) echo $tmp/stdin ;; 23953 [\\/$]*) 23954 # Absolute (can't be DOS-style, as IFS=:) 23955 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23956echo "$as_me: error: cannot find input file: $f" >&2;} 23957 { (exit 1); exit 1; }; } 23958 echo $f;; 23959 *) # Relative 23960 if test -f "$f"; then 23961 # Build tree 23962 echo $f 23963 elif test -f "$srcdir/$f"; then 23964 # Source tree 23965 echo $srcdir/$f 23966 else 23967 # /dev/null tree 23968 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23969echo "$as_me: error: cannot find input file: $f" >&2;} 23970 { (exit 1); exit 1; }; } 23971 fi;; 23972 esac 23973 done` || { (exit 1); exit 1; } 23974 # Remove the trailing spaces. 23975 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23976 23977_ACEOF 23978 23979# Transform confdefs.h into two sed scripts, `conftest.defines' and 23980# `conftest.undefs', that substitutes the proper values into 23981# config.h.in to produce config.h. The first handles `#define' 23982# templates, and the second `#undef' templates. 23983# And first: Protect against being on the right side of a sed subst in 23984# config.status. Protect against being in an unquoted here document 23985# in config.status. 23986rm -f conftest.defines conftest.undefs 23987# Using a here document instead of a string reduces the quoting nightmare. 23988# Putting comments in sed scripts is not portable. 23989# 23990# `end' is used to avoid that the second main sed command (meant for 23991# 0-ary CPP macros) applies to n-ary macro definitions. 23992# See the Autoconf documentation for `clear'. 23993cat >confdef2sed.sed <<\_ACEOF 23994s/[\\&,]/\\&/g 23995s,[\\$`],\\&,g 23996t clear 23997: clear 23998s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23999t end 24000s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 24001: end 24002_ACEOF 24003# If some macros were called several times there might be several times 24004# the same #defines, which is useless. Nevertheless, we may not want to 24005# sort them, since we want the *last* AC-DEFINE to be honored. 24006uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 24007sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 24008rm -f confdef2sed.sed 24009 24010# This sed command replaces #undef with comments. This is necessary, for 24011# example, in the case of _POSIX_SOURCE, which is predefined and required 24012# on some systems where configure will not decide to define it. 24013cat >>conftest.undefs <<\_ACEOF 24014s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 24015_ACEOF 24016 24017# Break up conftest.defines because some shells have a limit on the size 24018# of here documents, and old seds have small limits too (100 cmds). 24019echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 24020echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 24021echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 24022echo ' :' >>$CONFIG_STATUS 24023rm -f conftest.tail 24024while grep . conftest.defines >/dev/null 24025do 24026 # Write a limited-size here document to $tmp/defines.sed. 24027 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 24028 # Speed up: don't consider the non `#define' lines. 24029 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 24030 # Work around the forget-to-reset-the-flag bug. 24031 echo 't clr' >>$CONFIG_STATUS 24032 echo ': clr' >>$CONFIG_STATUS 24033 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 24034 echo 'CEOF 24035 sed -f $tmp/defines.sed $tmp/in >$tmp/out 24036 rm -f $tmp/in 24037 mv $tmp/out $tmp/in 24038' >>$CONFIG_STATUS 24039 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 24040 rm -f conftest.defines 24041 mv conftest.tail conftest.defines 24042done 24043rm -f conftest.defines 24044echo ' fi # grep' >>$CONFIG_STATUS 24045echo >>$CONFIG_STATUS 24046 24047# Break up conftest.undefs because some shells have a limit on the size 24048# of here documents, and old seds have small limits too (100 cmds). 24049echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 24050rm -f conftest.tail 24051while grep . conftest.undefs >/dev/null 24052do 24053 # Write a limited-size here document to $tmp/undefs.sed. 24054 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 24055 # Speed up: don't consider the non `#undef' 24056 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 24057 # Work around the forget-to-reset-the-flag bug. 24058 echo 't clr' >>$CONFIG_STATUS 24059 echo ': clr' >>$CONFIG_STATUS 24060 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 24061 echo 'CEOF 24062 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 24063 rm -f $tmp/in 24064 mv $tmp/out $tmp/in 24065' >>$CONFIG_STATUS 24066 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 24067 rm -f conftest.undefs 24068 mv conftest.tail conftest.undefs 24069done 24070rm -f conftest.undefs 24071 24072cat >>$CONFIG_STATUS <<\_ACEOF 24073 # Let's still pretend it is `configure' which instantiates (i.e., don't 24074 # use $as_me), people would be surprised to read: 24075 # /* config.h. Generated by config.status. */ 24076 if test x"$ac_file" = x-; then 24077 echo "/* Generated by configure. */" >$tmp/config.h 24078 else 24079 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 24080 fi 24081 cat $tmp/in >>$tmp/config.h 24082 rm -f $tmp/in 24083 if test x"$ac_file" != x-; then 24084 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 24085 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24086echo "$as_me: $ac_file is unchanged" >&6;} 24087 else 24088 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24089$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24090 X"$ac_file" : 'X\(//\)[^/]' \| \ 24091 X"$ac_file" : 'X\(//\)$' \| \ 24092 X"$ac_file" : 'X\(/\)' \| \ 24093 . : '\(.\)' 2>/dev/null || 24094echo X"$ac_file" | 24095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24096 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24097 /^X\(\/\/\)$/{ s//\1/; q; } 24098 /^X\(\/\).*/{ s//\1/; q; } 24099 s/.*/./; q'` 24100 { if $as_mkdir_p; then 24101 mkdir -p "$ac_dir" 24102 else 24103 as_dir="$ac_dir" 24104 as_dirs= 24105 while test ! -d "$as_dir"; do 24106 as_dirs="$as_dir $as_dirs" 24107 as_dir=`(dirname "$as_dir") 2>/dev/null || 24108$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24109 X"$as_dir" : 'X\(//\)[^/]' \| \ 24110 X"$as_dir" : 'X\(//\)$' \| \ 24111 X"$as_dir" : 'X\(/\)' \| \ 24112 . : '\(.\)' 2>/dev/null || 24113echo X"$as_dir" | 24114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24115 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24116 /^X\(\/\/\)$/{ s//\1/; q; } 24117 /^X\(\/\).*/{ s//\1/; q; } 24118 s/.*/./; q'` 24119 done 24120 test ! -n "$as_dirs" || mkdir $as_dirs 24121 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24122echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24123 { (exit 1); exit 1; }; }; } 24124 24125 rm -f $ac_file 24126 mv $tmp/config.h $ac_file 24127 fi 24128 else 24129 cat $tmp/config.h 24130 rm -f $tmp/config.h 24131 fi 24132done 24133_ACEOF 24134cat >>$CONFIG_STATUS <<\_ACEOF 24135 24136# 24137# CONFIG_LINKS section. 24138# 24139 24140for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue 24141 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 24142 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 24143 24144 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 24145echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} 24146 24147 if test ! -r $srcdir/$ac_source; then 24148 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 24149echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 24150 { (exit 1); exit 1; }; } 24151 fi 24152 rm -f $ac_dest 24153 24154 # Make relative symlinks. 24155 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || 24156$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24157 X"$ac_dest" : 'X\(//\)[^/]' \| \ 24158 X"$ac_dest" : 'X\(//\)$' \| \ 24159 X"$ac_dest" : 'X\(/\)' \| \ 24160 . : '\(.\)' 2>/dev/null || 24161echo X"$ac_dest" | 24162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24163 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24164 /^X\(\/\/\)$/{ s//\1/; q; } 24165 /^X\(\/\).*/{ s//\1/; q; } 24166 s/.*/./; q'` 24167 { if $as_mkdir_p; then 24168 mkdir -p "$ac_dest_dir" 24169 else 24170 as_dir="$ac_dest_dir" 24171 as_dirs= 24172 while test ! -d "$as_dir"; do 24173 as_dirs="$as_dir $as_dirs" 24174 as_dir=`(dirname "$as_dir") 2>/dev/null || 24175$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24176 X"$as_dir" : 'X\(//\)[^/]' \| \ 24177 X"$as_dir" : 'X\(//\)$' \| \ 24178 X"$as_dir" : 'X\(/\)' \| \ 24179 . : '\(.\)' 2>/dev/null || 24180echo X"$as_dir" | 24181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24182 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24183 /^X\(\/\/\)$/{ s//\1/; q; } 24184 /^X\(\/\).*/{ s//\1/; q; } 24185 s/.*/./; q'` 24186 done 24187 test ! -n "$as_dirs" || mkdir $as_dirs 24188 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 24189echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} 24190 { (exit 1); exit 1; }; }; } 24191 24192 ac_builddir=. 24193 24194if test "$ac_dest_dir" != .; then 24195 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` 24196 # A "../" for each directory in $ac_dir_suffix. 24197 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24198else 24199 ac_dir_suffix= ac_top_builddir= 24200fi 24201 24202case $srcdir in 24203 .) # No --srcdir option. We are building in place. 24204 ac_srcdir=. 24205 if test -z "$ac_top_builddir"; then 24206 ac_top_srcdir=. 24207 else 24208 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24209 fi ;; 24210 [\\/]* | ?:[\\/]* ) # Absolute path. 24211 ac_srcdir=$srcdir$ac_dir_suffix; 24212 ac_top_srcdir=$srcdir ;; 24213 *) # Relative path. 24214 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24215 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24216esac 24217# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be 24218# absolute. 24219ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd` 24220ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd` 24221ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd` 24222ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd` 24223 24224 24225 case $srcdir in 24226 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 24227 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; 24228 esac 24229 24230 # Try a symlink, then a hard link, then a copy. 24231 ln -s $ac_rel_source $ac_dest 2>/dev/null || 24232 ln $srcdir/$ac_source $ac_dest 2>/dev/null || 24233 cp -p $srcdir/$ac_source $ac_dest || 24234 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 24235echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} 24236 { (exit 1); exit 1; }; } 24237done 24238_ACEOF 24239cat >>$CONFIG_STATUS <<\_ACEOF 24240 24241# 24242# CONFIG_COMMANDS section. 24243# 24244for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 24245 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 24246 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 24247 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 24248$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24249 X"$ac_dest" : 'X\(//\)[^/]' \| \ 24250 X"$ac_dest" : 'X\(//\)$' \| \ 24251 X"$ac_dest" : 'X\(/\)' \| \ 24252 . : '\(.\)' 2>/dev/null || 24253echo X"$ac_dest" | 24254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24255 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24256 /^X\(\/\/\)$/{ s//\1/; q; } 24257 /^X\(\/\).*/{ s//\1/; q; } 24258 s/.*/./; q'` 24259 ac_builddir=. 24260 24261if test "$ac_dir" != .; then 24262 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24263 # A "../" for each directory in $ac_dir_suffix. 24264 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24265else 24266 ac_dir_suffix= ac_top_builddir= 24267fi 24268 24269case $srcdir in 24270 .) # No --srcdir option. We are building in place. 24271 ac_srcdir=. 24272 if test -z "$ac_top_builddir"; then 24273 ac_top_srcdir=. 24274 else 24275 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24276 fi ;; 24277 [\\/]* | ?:[\\/]* ) # Absolute path. 24278 ac_srcdir=$srcdir$ac_dir_suffix; 24279 ac_top_srcdir=$srcdir ;; 24280 *) # Relative path. 24281 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24282 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24283esac 24284# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 24285# absolute. 24286ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 24287ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 24288ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 24289ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 24290 24291 24292 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 24293echo "$as_me: executing $ac_dest commands" >&6;} 24294 case $ac_dest in 24295 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; 24296 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; 24297 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; 24298 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; 24299 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 24300 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; 24301 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 24302 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; 24303 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; 24304 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;; 24305 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;; 24306 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;; 24307 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;; 24308 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;; 24309 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;; 24310 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;; 24311 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;; 24312 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;; 24313 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;; 24314 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;; 24315 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;; 24316 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;; 24317 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;; 24318 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;; 24319 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;; 24320 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;; 24321 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;; 24322 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;; 24323 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;; 24324 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;; 24325 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;; 24326 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;; 24327 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;; 24328 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;; 24329 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;; 24330 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;; 24331 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;; 24332 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;; 24333 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;; 24334 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;; 24335 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;; 24336 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;; 24337 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;; 24338 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;; 24339 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;; 24340 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;; 24341 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;; 24342 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;; 24343 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; 24344 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; 24345 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; 24346 esac 24347done 24348_ACEOF 24349 24350cat >>$CONFIG_STATUS <<\_ACEOF 24351 24352{ (exit 0); exit 0; } 24353_ACEOF 24354chmod +x $CONFIG_STATUS 24355ac_clean_files=$ac_clean_files_save 24356 24357 24358# configure is writing to config.log, and then calls config.status. 24359# config.status does its own redirection, appending to config.log. 24360# Unfortunately, on DOS this fails, as config.log is still kept open 24361# by configure, so config.status won't be able to write to it; its 24362# output is simply discarded. So we exec the FD to /dev/null, 24363# effectively closing config.log, so it can be properly (re)opened and 24364# appended to by config.status. When coming back to configure, we 24365# need to make the FD available again. 24366if test "$no_create" != yes; then 24367 ac_cs_success=: 24368 ac_config_status_args= 24369 test "$silent" = yes && 24370 ac_config_status_args="$ac_config_status_args --quiet" 24371 exec 5>/dev/null 24372 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24373 exec 5>>config.log 24374 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24375 # would make configure fail if this is the last instruction. 24376 $ac_cs_success || { (exit 1); exit 1; } 24377fi 24378 24379# 24380# CONFIG_SUBDIRS section. 24381# 24382if test "$no_recursion" != yes; then 24383 24384 # Remove --cache-file and --srcdir arguments so they do not pile up. 24385 ac_sub_configure_args= 24386 ac_prev= 24387 for ac_arg in $ac_configure_args; do 24388 if test -n "$ac_prev"; then 24389 ac_prev= 24390 continue 24391 fi 24392 case $ac_arg in 24393 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24395 ac_prev=cache_file ;; 24396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24398 | --c=*) 24399 ;; 24400 --config-cache | -C) 24401 ;; 24402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24403 ac_prev=srcdir ;; 24404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24405 ;; 24406 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24407 ac_prev=prefix ;; 24408 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24409 ;; 24410 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 24411 esac 24412 done 24413 24414 # Always prepend --prefix to ensure using the same prefix 24415 # in subdir configurations. 24416 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 24417 24418 ac_popdir=`pwd` 24419 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24420 24421 # Do not complain, so a configure script can configure whichever 24422 # parts of a large source tree are present. 24423 test -d $srcdir/$ac_dir || continue 24424 24425 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 24426echo "$as_me: configuring in $ac_dir" >&6;} 24427 { if $as_mkdir_p; then 24428 mkdir -p "$ac_dir" 24429 else 24430 as_dir="$ac_dir" 24431 as_dirs= 24432 while test ! -d "$as_dir"; do 24433 as_dirs="$as_dir $as_dirs" 24434 as_dir=`(dirname "$as_dir") 2>/dev/null || 24435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24436 X"$as_dir" : 'X\(//\)[^/]' \| \ 24437 X"$as_dir" : 'X\(//\)$' \| \ 24438 X"$as_dir" : 'X\(/\)' \| \ 24439 . : '\(.\)' 2>/dev/null || 24440echo X"$as_dir" | 24441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24442 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24443 /^X\(\/\/\)$/{ s//\1/; q; } 24444 /^X\(\/\).*/{ s//\1/; q; } 24445 s/.*/./; q'` 24446 done 24447 test ! -n "$as_dirs" || mkdir $as_dirs 24448 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24449echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24450 { (exit 1); exit 1; }; }; } 24451 24452 ac_builddir=. 24453 24454if test "$ac_dir" != .; then 24455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24456 # A "../" for each directory in $ac_dir_suffix. 24457 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24458else 24459 ac_dir_suffix= ac_top_builddir= 24460fi 24461 24462case $srcdir in 24463 .) # No --srcdir option. We are building in place. 24464 ac_srcdir=. 24465 if test -z "$ac_top_builddir"; then 24466 ac_top_srcdir=. 24467 else 24468 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24469 fi ;; 24470 [\\/]* | ?:[\\/]* ) # Absolute path. 24471 ac_srcdir=$srcdir$ac_dir_suffix; 24472 ac_top_srcdir=$srcdir ;; 24473 *) # Relative path. 24474 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24475 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24476esac 24477# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 24478# absolute. 24479ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 24480ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 24481ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 24482ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 24483 24484 24485 cd $ac_dir 24486 24487 # Check for guested configure; otherwise get Cygnus style configure. 24488 if test -f $ac_srcdir/configure.gnu; then 24489 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 24490 elif test -f $ac_srcdir/configure; then 24491 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 24492 elif test -f $ac_srcdir/configure.in; then 24493 ac_sub_configure=$ac_configure 24494 else 24495 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 24496echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24497 ac_sub_configure= 24498 fi 24499 24500 # The recursion is here. 24501 if test -n "$ac_sub_configure"; then 24502 # Make the cache file name correct relative to the subdirectory. 24503 case $cache_file in 24504 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24505 *) # Relative path. 24506 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 24507 esac 24508 24509 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24510echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24511 # The eval makes quoting arguments work. 24512 eval $ac_sub_configure $ac_sub_configure_args \ 24513 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 24514 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 24515echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 24516 { (exit 1); exit 1; }; } 24517 fi 24518 24519 cd $ac_popdir 24520 done 24521fi 24522 24523 24524if test $llvmgccwarn = yes 24525then 24526 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 24527echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} 24528 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 24529echo "$as_me: WARNING: ***** appear to be working." >&2;} 24530 { echo "$as_me:$LINENO: WARNING: ***** " >&5 24531echo "$as_me: WARNING: ***** " >&2;} 24532 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 24533echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} 24534 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 24535echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} 24536 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 24537echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} 24538fi 24539 24540