configure revision 12e9b4f1e59317fe63bae52c042ce7555e78dac4
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57 for [LLVM] [1.1]. 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.1]' 426PACKAGE_STRING='[LLVM] [1.1]' 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 RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY 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.1] 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.1]:";; 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-purify Compile with purify (default is NO) 1034 --enable-optimized Compile with optimizations enabled (default is NO) 1035 --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO) 1036 --enable-precompiled_bytecode 1037 Use pre-compiled bytecode (default is NO) 1038 --enable-llc_diffs Enable LLC Diffs when testing (default is YES) 1039 --enable-jit Enable Just In Time Compiling (default is YES) 1040 1041Optional Packages: 1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1045 --with-pic try to use only PIC/non-PIC objects [default=use 1046 both] 1047 --with-tags[=TAGS] 1048 include additional configurations [automatic] 1049 --with-llvmgccdir Location of LLVM GCC front-end 1050 --with-bcrepos Location of Bytecode Repository 1051 --with-papi Location of PAPI 1052 --with-purify Location of purify program 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 1134[LLVM] configure [1.1] 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.1], 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/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/Config/config.h" 1537 1538 ac_config_commands="$ac_config_commands Makefile" 1539 1540 1541 ac_config_commands="$ac_config_commands Makefile.common" 1542 1543 1544 ac_config_commands="$ac_config_commands lib/Makefile" 1545 1546 1547 ac_config_commands="$ac_config_commands runtime/Makefile" 1548 1549 1550 ac_config_commands="$ac_config_commands test/Makefile" 1551 1552 1553 ac_config_commands="$ac_config_commands test/Makefile.tests" 1554 1555 1556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py" 1557 1558 1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" 1560 1561 1562 ac_config_commands="$ac_config_commands test/Programs/Makefile" 1563 1564 1565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs" 1566 1567 1568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile" 1569 1570 1571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report" 1572 1573 1574 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report" 1575 1576 1577 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report" 1578 1579 1580 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile" 1581 1582 1583 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile" 1584 1585 1586 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile" 1587 1588 1589 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile" 1590 1591 1592 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report" 1593 1594 1595 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile" 1596 1597 1598 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report" 1599 1600 1601 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile" 1602 1603 1604 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot" 1605 1606 1607 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile" 1608 1609 1610 ac_config_commands="$ac_config_commands test/Programs/External/Makefile" 1611 1612 1613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile" 1614 1615 1616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec" 1617 1618 1619 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile" 1620 1621 1622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc" 1623 1624 1625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" 1626 1627 1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" 1629 1630 1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" 1632 1633 1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" 1635 1636 1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" 1638 1639 1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" 1641 1642 1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" 1644 1645 1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" 1647 1648 1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" 1650 1651 1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" 1653 1654 1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" 1656 1657 1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" 1659 1660 1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" 1662 1663 1664 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile" 1665 1666 1667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc" 1668 1669 1670 ac_config_commands="$ac_config_commands tools/Makefile" 1671 1672 1673 ac_config_commands="$ac_config_commands utils/Makefile" 1674 1675 1676 ac_config_commands="$ac_config_commands projects/Makefile" 1677 1678 1679 1680 1681# Find a good install program. We prefer a C program (faster), 1682# so one script is as good as another. But avoid the broken or 1683# incompatible versions: 1684# SysV /etc/install, /usr/sbin/install 1685# SunOS /usr/etc/install 1686# IRIX /sbin/install 1687# AIX /bin/install 1688# AmigaOS /C/install, which installs bootblocks on floppy discs 1689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1690# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1692# ./install, which can be erroneously created by make from ./install.sh. 1693echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1694echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1695if test -z "$INSTALL"; then 1696if test "${ac_cv_path_install+set}" = set; then 1697 echo $ECHO_N "(cached) $ECHO_C" >&6 1698else 1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1700for as_dir in $PATH 1701do 1702 IFS=$as_save_IFS 1703 test -z "$as_dir" && as_dir=. 1704 # Account for people who put trailing slashes in PATH elements. 1705case $as_dir/ in 1706 ./ | .// | /cC/* | \ 1707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1708 /usr/ucb/* ) ;; 1709 *) 1710 # OSF1 and SCO ODT 3.0 have their own names for install. 1711 # Don't use installbsd from OSF since it installs stuff as root 1712 # by default. 1713 for ac_prog in ginstall scoinst install; do 1714 for ac_exec_ext in '' $ac_executable_extensions; do 1715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1716 if test $ac_prog = install && 1717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1718 # AIX install. It has an incompatible calling convention. 1719 : 1720 elif test $ac_prog = install && 1721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1722 # program-specific install script used by HP pwplus--don't use. 1723 : 1724 else 1725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1726 break 3 1727 fi 1728 fi 1729 done 1730 done 1731 ;; 1732esac 1733done 1734 1735 1736fi 1737 if test "${ac_cv_path_install+set}" = set; then 1738 INSTALL=$ac_cv_path_install 1739 else 1740 # As a last resort, use the slow shell script. We don't cache a 1741 # path for INSTALL within a source directory, because that will 1742 # break other packages using the cache if that directory is 1743 # removed, or if the path is relative. 1744 INSTALL=$ac_install_sh 1745 fi 1746fi 1747echo "$as_me:$LINENO: result: $INSTALL" >&5 1748echo "${ECHO_T}$INSTALL" >&6 1749 1750# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1751# It thinks the first close brace ends the variable substitution. 1752test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1753 1754test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1755 1756test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1757 1758 1759# Make sure we can run config.sub. 1760$ac_config_sub sun4 >/dev/null 2>&1 || 1761 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1762echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1763 { (exit 1); exit 1; }; } 1764 1765echo "$as_me:$LINENO: checking build system type" >&5 1766echo $ECHO_N "checking build system type... $ECHO_C" >&6 1767if test "${ac_cv_build+set}" = set; then 1768 echo $ECHO_N "(cached) $ECHO_C" >&6 1769else 1770 ac_cv_build_alias=$build_alias 1771test -z "$ac_cv_build_alias" && 1772 ac_cv_build_alias=`$ac_config_guess` 1773test -z "$ac_cv_build_alias" && 1774 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1775echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1776 { (exit 1); exit 1; }; } 1777ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1779echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1780 { (exit 1); exit 1; }; } 1781 1782fi 1783echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1784echo "${ECHO_T}$ac_cv_build" >&6 1785build=$ac_cv_build 1786build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1787build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1788build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1789 1790 1791echo "$as_me:$LINENO: checking host system type" >&5 1792echo $ECHO_N "checking host system type... $ECHO_C" >&6 1793if test "${ac_cv_host+set}" = set; then 1794 echo $ECHO_N "(cached) $ECHO_C" >&6 1795else 1796 ac_cv_host_alias=$host_alias 1797test -z "$ac_cv_host_alias" && 1798 ac_cv_host_alias=$ac_cv_build_alias 1799ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1800 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1801echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1802 { (exit 1); exit 1; }; } 1803 1804fi 1805echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1806echo "${ECHO_T}$ac_cv_host" >&6 1807host=$ac_cv_host 1808host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1809host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1810host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1811 1812 1813echo "$as_me:$LINENO: checking target system type" >&5 1814echo $ECHO_N "checking target system type... $ECHO_C" >&6 1815if test "${ac_cv_target+set}" = set; then 1816 echo $ECHO_N "(cached) $ECHO_C" >&6 1817else 1818 ac_cv_target_alias=$target_alias 1819test "x$ac_cv_target_alias" = "x" && 1820 ac_cv_target_alias=$ac_cv_host_alias 1821ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1822 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1823echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1824 { (exit 1); exit 1; }; } 1825 1826fi 1827echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1828echo "${ECHO_T}$ac_cv_target" >&6 1829target=$ac_cv_target 1830target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1831target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1832target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1833 1834 1835# The aliases save the names the user supplied, while $host etc. 1836# will get canonicalized. 1837test -n "$target_alias" && 1838 test "$program_prefix$program_suffix$program_transform_name" = \ 1839 NONENONEs,x,x, && 1840 program_prefix=${target_alias}- 1841 1842case $build in 1843 *-*-linux*) 1844 OS=Linux 1845 1846 if test -d /home/vadve/lattner/local/x86/llvm-gcc 1847 then 1848 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ 1849 1850 fi 1851 ;; 1852 1853 *-*-solaris*) 1854 OS=SunOS 1855 1856 if test -d /home/vadve/lattner/local/sparc/llvm-gcc 1857 then 1858 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ 1859 1860 fi 1861 ;; 1862 1863 *-*-darwin*) 1864 OS=Darwin 1865 1866 ;; 1867 1868 *) OS=Unknown 1869 1870 ;; 1871esac 1872 1873case $target in 1874 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 1875 1876 ;; 1877esac 1878 1879case $target in 1880 i*86-*) ARCH=x86 1881 1882 ;; 1883 sparc*-*) ARCH=Sparc 1884 1885 ;; 1886 powerpc*-*) ARCH=PowerPC 1887 1888 ;; 1889 *) ARCH=Unknown 1890 1891 ;; 1892esac 1893 1894 1895ac_ext=cc 1896ac_cpp='$CXXCPP $CPPFLAGS' 1897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1900if test -n "$ac_tool_prefix"; then 1901 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1902 do 1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1904set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1905echo "$as_me:$LINENO: checking for $ac_word" >&5 1906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1907if test "${ac_cv_prog_CXX+set}" = set; then 1908 echo $ECHO_N "(cached) $ECHO_C" >&6 1909else 1910 if test -n "$CXX"; then 1911 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1912else 1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1914for as_dir in $PATH 1915do 1916 IFS=$as_save_IFS 1917 test -z "$as_dir" && as_dir=. 1918 for ac_exec_ext in '' $ac_executable_extensions; do 1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1922 break 2 1923 fi 1924done 1925done 1926 1927fi 1928fi 1929CXX=$ac_cv_prog_CXX 1930if test -n "$CXX"; then 1931 echo "$as_me:$LINENO: result: $CXX" >&5 1932echo "${ECHO_T}$CXX" >&6 1933else 1934 echo "$as_me:$LINENO: result: no" >&5 1935echo "${ECHO_T}no" >&6 1936fi 1937 1938 test -n "$CXX" && break 1939 done 1940fi 1941if test -z "$CXX"; then 1942 ac_ct_CXX=$CXX 1943 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1944do 1945 # Extract the first word of "$ac_prog", so it can be a program name with args. 1946set dummy $ac_prog; ac_word=$2 1947echo "$as_me:$LINENO: checking for $ac_word" >&5 1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1949if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1950 echo $ECHO_N "(cached) $ECHO_C" >&6 1951else 1952 if test -n "$ac_ct_CXX"; then 1953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1954else 1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1956for as_dir in $PATH 1957do 1958 IFS=$as_save_IFS 1959 test -z "$as_dir" && as_dir=. 1960 for ac_exec_ext in '' $ac_executable_extensions; do 1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1962 ac_cv_prog_ac_ct_CXX="$ac_prog" 1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1964 break 2 1965 fi 1966done 1967done 1968 1969fi 1970fi 1971ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1972if test -n "$ac_ct_CXX"; then 1973 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1974echo "${ECHO_T}$ac_ct_CXX" >&6 1975else 1976 echo "$as_me:$LINENO: result: no" >&5 1977echo "${ECHO_T}no" >&6 1978fi 1979 1980 test -n "$ac_ct_CXX" && break 1981done 1982test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1983 1984 CXX=$ac_ct_CXX 1985fi 1986 1987 1988# Provide some information about the compiler. 1989echo "$as_me:$LINENO:" \ 1990 "checking for C++ compiler version" >&5 1991ac_compiler=`set X $ac_compile; echo $2` 1992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1993 (eval $ac_compiler --version </dev/null >&5) 2>&5 1994 ac_status=$? 1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1996 (exit $ac_status); } 1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1998 (eval $ac_compiler -v </dev/null >&5) 2>&5 1999 ac_status=$? 2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2001 (exit $ac_status); } 2002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2003 (eval $ac_compiler -V </dev/null >&5) 2>&5 2004 ac_status=$? 2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2006 (exit $ac_status); } 2007 2008cat >conftest.$ac_ext <<_ACEOF 2009#line $LINENO "configure" 2010/* confdefs.h. */ 2011_ACEOF 2012cat confdefs.h >>conftest.$ac_ext 2013cat >>conftest.$ac_ext <<_ACEOF 2014/* end confdefs.h. */ 2015 2016int 2017main () 2018{ 2019 2020 ; 2021 return 0; 2022} 2023_ACEOF 2024ac_clean_files_save=$ac_clean_files 2025ac_clean_files="$ac_clean_files a.out a.exe b.out" 2026# Try to create an executable without -o first, disregard a.out. 2027# It will help us diagnose broken compilers, and finding out an intuition 2028# of exeext. 2029echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 2030echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 2031ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2032if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2033 (eval $ac_link_default) 2>&5 2034 ac_status=$? 2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2036 (exit $ac_status); }; then 2037 # Find the output, starting from the most likely. This scheme is 2038# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2039# resort. 2040 2041# Be careful to initialize this variable, since it used to be cached. 2042# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2043ac_cv_exeext= 2044# b.out is created by i960 compilers. 2045for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2046do 2047 test -f "$ac_file" || continue 2048 case $ac_file in 2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2050 ;; 2051 conftest.$ac_ext ) 2052 # This is the source file. 2053 ;; 2054 [ab].out ) 2055 # We found the default executable, but exeext='' is most 2056 # certainly right. 2057 break;; 2058 *.* ) 2059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2060 # FIXME: I believe we export ac_cv_exeext for Libtool, 2061 # but it would be cool to find out if it's true. Does anybody 2062 # maintain Libtool? --akim. 2063 export ac_cv_exeext 2064 break;; 2065 * ) 2066 break;; 2067 esac 2068done 2069else 2070 echo "$as_me: failed program was:" >&5 2071sed 's/^/| /' conftest.$ac_ext >&5 2072 2073{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2074See \`config.log' for more details." >&5 2075echo "$as_me: error: C++ compiler cannot create executables 2076See \`config.log' for more details." >&2;} 2077 { (exit 77); exit 77; }; } 2078fi 2079 2080ac_exeext=$ac_cv_exeext 2081echo "$as_me:$LINENO: result: $ac_file" >&5 2082echo "${ECHO_T}$ac_file" >&6 2083 2084# Check the compiler produces executables we can run. If not, either 2085# the compiler is broken, or we cross compile. 2086echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2087echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 2088# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2089# If not cross compiling, check that we can run a simple program. 2090if test "$cross_compiling" != yes; then 2091 if { ac_try='./$ac_file' 2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2093 (eval $ac_try) 2>&5 2094 ac_status=$? 2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2096 (exit $ac_status); }; }; then 2097 cross_compiling=no 2098 else 2099 if test "$cross_compiling" = maybe; then 2100 cross_compiling=yes 2101 else 2102 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2103If you meant to cross compile, use \`--host'. 2104See \`config.log' for more details." >&5 2105echo "$as_me: error: cannot run C++ compiled programs. 2106If you meant to cross compile, use \`--host'. 2107See \`config.log' for more details." >&2;} 2108 { (exit 1); exit 1; }; } 2109 fi 2110 fi 2111fi 2112echo "$as_me:$LINENO: result: yes" >&5 2113echo "${ECHO_T}yes" >&6 2114 2115rm -f a.out a.exe conftest$ac_cv_exeext b.out 2116ac_clean_files=$ac_clean_files_save 2117# Check the compiler produces executables we can run. If not, either 2118# the compiler is broken, or we cross compile. 2119echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2120echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2121echo "$as_me:$LINENO: result: $cross_compiling" >&5 2122echo "${ECHO_T}$cross_compiling" >&6 2123 2124echo "$as_me:$LINENO: checking for suffix of executables" >&5 2125echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2127 (eval $ac_link) 2>&5 2128 ac_status=$? 2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2130 (exit $ac_status); }; then 2131 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2132# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2133# work properly (i.e., refer to `conftest.exe'), while it won't with 2134# `rm'. 2135for ac_file in conftest.exe conftest conftest.*; do 2136 test -f "$ac_file" || continue 2137 case $ac_file in 2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2140 export ac_cv_exeext 2141 break;; 2142 * ) break;; 2143 esac 2144done 2145else 2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2147See \`config.log' for more details." >&5 2148echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2149See \`config.log' for more details." >&2;} 2150 { (exit 1); exit 1; }; } 2151fi 2152 2153rm -f conftest$ac_cv_exeext 2154echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2155echo "${ECHO_T}$ac_cv_exeext" >&6 2156 2157rm -f conftest.$ac_ext 2158EXEEXT=$ac_cv_exeext 2159ac_exeext=$EXEEXT 2160echo "$as_me:$LINENO: checking for suffix of object files" >&5 2161echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2162if test "${ac_cv_objext+set}" = set; then 2163 echo $ECHO_N "(cached) $ECHO_C" >&6 2164else 2165 cat >conftest.$ac_ext <<_ACEOF 2166#line $LINENO "configure" 2167/* confdefs.h. */ 2168_ACEOF 2169cat confdefs.h >>conftest.$ac_ext 2170cat >>conftest.$ac_ext <<_ACEOF 2171/* end confdefs.h. */ 2172 2173int 2174main () 2175{ 2176 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181rm -f conftest.o conftest.obj 2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2183 (eval $ac_compile) 2>&5 2184 ac_status=$? 2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2186 (exit $ac_status); }; then 2187 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2188 case $ac_file in 2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2191 break;; 2192 esac 2193done 2194else 2195 echo "$as_me: failed program was:" >&5 2196sed 's/^/| /' conftest.$ac_ext >&5 2197 2198{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2199See \`config.log' for more details." >&5 2200echo "$as_me: error: cannot compute suffix of object files: cannot compile 2201See \`config.log' for more details." >&2;} 2202 { (exit 1); exit 1; }; } 2203fi 2204 2205rm -f conftest.$ac_cv_objext conftest.$ac_ext 2206fi 2207echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2208echo "${ECHO_T}$ac_cv_objext" >&6 2209OBJEXT=$ac_cv_objext 2210ac_objext=$OBJEXT 2211echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2212echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2213if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2214 echo $ECHO_N "(cached) $ECHO_C" >&6 2215else 2216 cat >conftest.$ac_ext <<_ACEOF 2217#line $LINENO "configure" 2218/* confdefs.h. */ 2219_ACEOF 2220cat confdefs.h >>conftest.$ac_ext 2221cat >>conftest.$ac_ext <<_ACEOF 2222/* end confdefs.h. */ 2223 2224int 2225main () 2226{ 2227#ifndef __GNUC__ 2228 choke me 2229#endif 2230 2231 ; 2232 return 0; 2233} 2234_ACEOF 2235rm -f conftest.$ac_objext 2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2237 (eval $ac_compile) 2>&5 2238 ac_status=$? 2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2240 (exit $ac_status); } && 2241 { ac_try='test -s conftest.$ac_objext' 2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2243 (eval $ac_try) 2>&5 2244 ac_status=$? 2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2246 (exit $ac_status); }; }; then 2247 ac_compiler_gnu=yes 2248else 2249 echo "$as_me: failed program was:" >&5 2250sed 's/^/| /' conftest.$ac_ext >&5 2251 2252ac_compiler_gnu=no 2253fi 2254rm -f conftest.$ac_objext conftest.$ac_ext 2255ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2256 2257fi 2258echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2259echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2260GXX=`test $ac_compiler_gnu = yes && echo yes` 2261ac_test_CXXFLAGS=${CXXFLAGS+set} 2262ac_save_CXXFLAGS=$CXXFLAGS 2263CXXFLAGS="-g" 2264echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2265echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2266if test "${ac_cv_prog_cxx_g+set}" = set; then 2267 echo $ECHO_N "(cached) $ECHO_C" >&6 2268else 2269 cat >conftest.$ac_ext <<_ACEOF 2270#line $LINENO "configure" 2271/* confdefs.h. */ 2272_ACEOF 2273cat confdefs.h >>conftest.$ac_ext 2274cat >>conftest.$ac_ext <<_ACEOF 2275/* end confdefs.h. */ 2276 2277int 2278main () 2279{ 2280 2281 ; 2282 return 0; 2283} 2284_ACEOF 2285rm -f conftest.$ac_objext 2286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2287 (eval $ac_compile) 2>&5 2288 ac_status=$? 2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2290 (exit $ac_status); } && 2291 { ac_try='test -s conftest.$ac_objext' 2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2293 (eval $ac_try) 2>&5 2294 ac_status=$? 2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2296 (exit $ac_status); }; }; then 2297 ac_cv_prog_cxx_g=yes 2298else 2299 echo "$as_me: failed program was:" >&5 2300sed 's/^/| /' conftest.$ac_ext >&5 2301 2302ac_cv_prog_cxx_g=no 2303fi 2304rm -f conftest.$ac_objext conftest.$ac_ext 2305fi 2306echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2307echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2308if test "$ac_test_CXXFLAGS" = set; then 2309 CXXFLAGS=$ac_save_CXXFLAGS 2310elif test $ac_cv_prog_cxx_g = yes; then 2311 if test "$GXX" = yes; then 2312 CXXFLAGS="-g -O2" 2313 else 2314 CXXFLAGS="-g" 2315 fi 2316else 2317 if test "$GXX" = yes; then 2318 CXXFLAGS="-O2" 2319 else 2320 CXXFLAGS= 2321 fi 2322fi 2323for ac_declaration in \ 2324 ''\ 2325 '#include <stdlib.h>' \ 2326 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2327 'extern "C" void std::exit (int); using std::exit;' \ 2328 'extern "C" void exit (int) throw ();' \ 2329 'extern "C" void exit (int);' \ 2330 'void exit (int);' 2331do 2332 cat >conftest.$ac_ext <<_ACEOF 2333#line $LINENO "configure" 2334/* confdefs.h. */ 2335_ACEOF 2336cat confdefs.h >>conftest.$ac_ext 2337cat >>conftest.$ac_ext <<_ACEOF 2338/* end confdefs.h. */ 2339#include <stdlib.h> 2340$ac_declaration 2341int 2342main () 2343{ 2344exit (42); 2345 ; 2346 return 0; 2347} 2348_ACEOF 2349rm -f conftest.$ac_objext 2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2351 (eval $ac_compile) 2>&5 2352 ac_status=$? 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2354 (exit $ac_status); } && 2355 { ac_try='test -s conftest.$ac_objext' 2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 (eval $ac_try) 2>&5 2358 ac_status=$? 2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 (exit $ac_status); }; }; then 2361 : 2362else 2363 echo "$as_me: failed program was:" >&5 2364sed 's/^/| /' conftest.$ac_ext >&5 2365 2366continue 2367fi 2368rm -f conftest.$ac_objext conftest.$ac_ext 2369 cat >conftest.$ac_ext <<_ACEOF 2370#line $LINENO "configure" 2371/* confdefs.h. */ 2372_ACEOF 2373cat confdefs.h >>conftest.$ac_ext 2374cat >>conftest.$ac_ext <<_ACEOF 2375/* end confdefs.h. */ 2376$ac_declaration 2377int 2378main () 2379{ 2380exit (42); 2381 ; 2382 return 0; 2383} 2384_ACEOF 2385rm -f conftest.$ac_objext 2386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2387 (eval $ac_compile) 2>&5 2388 ac_status=$? 2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2390 (exit $ac_status); } && 2391 { ac_try='test -s conftest.$ac_objext' 2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2393 (eval $ac_try) 2>&5 2394 ac_status=$? 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); }; }; then 2397 break 2398else 2399 echo "$as_me: failed program was:" >&5 2400sed 's/^/| /' conftest.$ac_ext >&5 2401 2402fi 2403rm -f conftest.$ac_objext conftest.$ac_ext 2404done 2405rm -f conftest* 2406if test -n "$ac_declaration"; then 2407 echo '#ifdef __cplusplus' >>confdefs.h 2408 echo $ac_declaration >>confdefs.h 2409 echo '#endif' >>confdefs.h 2410fi 2411 2412ac_ext=c 2413ac_cpp='$CPP $CPPFLAGS' 2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2416ac_compiler_gnu=$ac_cv_c_compiler_gnu 2417 2418ac_ext=c 2419ac_cpp='$CPP $CPPFLAGS' 2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2422ac_compiler_gnu=$ac_cv_c_compiler_gnu 2423if test -n "$ac_tool_prefix"; then 2424 for ac_prog in gcc 2425 do 2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2427set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2428echo "$as_me:$LINENO: checking for $ac_word" >&5 2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2430if test "${ac_cv_prog_CC+set}" = set; then 2431 echo $ECHO_N "(cached) $ECHO_C" >&6 2432else 2433 if test -n "$CC"; then 2434 ac_cv_prog_CC="$CC" # Let the user override the test. 2435else 2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2437for as_dir in $PATH 2438do 2439 IFS=$as_save_IFS 2440 test -z "$as_dir" && as_dir=. 2441 for ac_exec_ext in '' $ac_executable_extensions; do 2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2445 break 2 2446 fi 2447done 2448done 2449 2450fi 2451fi 2452CC=$ac_cv_prog_CC 2453if test -n "$CC"; then 2454 echo "$as_me:$LINENO: result: $CC" >&5 2455echo "${ECHO_T}$CC" >&6 2456else 2457 echo "$as_me:$LINENO: result: no" >&5 2458echo "${ECHO_T}no" >&6 2459fi 2460 2461 test -n "$CC" && break 2462 done 2463fi 2464if test -z "$CC"; then 2465 ac_ct_CC=$CC 2466 for ac_prog in gcc 2467do 2468 # Extract the first word of "$ac_prog", so it can be a program name with args. 2469set dummy $ac_prog; ac_word=$2 2470echo "$as_me:$LINENO: checking for $ac_word" >&5 2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2472if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2473 echo $ECHO_N "(cached) $ECHO_C" >&6 2474else 2475 if test -n "$ac_ct_CC"; then 2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2485 ac_cv_prog_ac_ct_CC="$ac_prog" 2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490done 2491 2492fi 2493fi 2494ac_ct_CC=$ac_cv_prog_ac_ct_CC 2495if test -n "$ac_ct_CC"; then 2496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2497echo "${ECHO_T}$ac_ct_CC" >&6 2498else 2499 echo "$as_me:$LINENO: result: no" >&5 2500echo "${ECHO_T}no" >&6 2501fi 2502 2503 test -n "$ac_ct_CC" && break 2504done 2505 2506 CC=$ac_ct_CC 2507fi 2508 2509 2510test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2511See \`config.log' for more details." >&5 2512echo "$as_me: error: no acceptable C compiler found in \$PATH 2513See \`config.log' for more details." >&2;} 2514 { (exit 1); exit 1; }; } 2515 2516# Provide some information about the compiler. 2517echo "$as_me:$LINENO:" \ 2518 "checking for C compiler version" >&5 2519ac_compiler=`set X $ac_compile; echo $2` 2520{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2521 (eval $ac_compiler --version </dev/null >&5) 2>&5 2522 ac_status=$? 2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2524 (exit $ac_status); } 2525{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2526 (eval $ac_compiler -v </dev/null >&5) 2>&5 2527 ac_status=$? 2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2529 (exit $ac_status); } 2530{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2531 (eval $ac_compiler -V </dev/null >&5) 2>&5 2532 ac_status=$? 2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2534 (exit $ac_status); } 2535 2536echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2537echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2538if test "${ac_cv_c_compiler_gnu+set}" = set; then 2539 echo $ECHO_N "(cached) $ECHO_C" >&6 2540else 2541 cat >conftest.$ac_ext <<_ACEOF 2542#line $LINENO "configure" 2543/* confdefs.h. */ 2544_ACEOF 2545cat confdefs.h >>conftest.$ac_ext 2546cat >>conftest.$ac_ext <<_ACEOF 2547/* end confdefs.h. */ 2548 2549int 2550main () 2551{ 2552#ifndef __GNUC__ 2553 choke me 2554#endif 2555 2556 ; 2557 return 0; 2558} 2559_ACEOF 2560rm -f conftest.$ac_objext 2561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2562 (eval $ac_compile) 2>&5 2563 ac_status=$? 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); } && 2566 { ac_try='test -s conftest.$ac_objext' 2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2568 (eval $ac_try) 2>&5 2569 ac_status=$? 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); }; }; then 2572 ac_compiler_gnu=yes 2573else 2574 echo "$as_me: failed program was:" >&5 2575sed 's/^/| /' conftest.$ac_ext >&5 2576 2577ac_compiler_gnu=no 2578fi 2579rm -f conftest.$ac_objext conftest.$ac_ext 2580ac_cv_c_compiler_gnu=$ac_compiler_gnu 2581 2582fi 2583echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2584echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2585GCC=`test $ac_compiler_gnu = yes && echo yes` 2586ac_test_CFLAGS=${CFLAGS+set} 2587ac_save_CFLAGS=$CFLAGS 2588CFLAGS="-g" 2589echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2591if test "${ac_cv_prog_cc_g+set}" = set; then 2592 echo $ECHO_N "(cached) $ECHO_C" >&6 2593else 2594 cat >conftest.$ac_ext <<_ACEOF 2595#line $LINENO "configure" 2596/* confdefs.h. */ 2597_ACEOF 2598cat confdefs.h >>conftest.$ac_ext 2599cat >>conftest.$ac_ext <<_ACEOF 2600/* end confdefs.h. */ 2601 2602int 2603main () 2604{ 2605 2606 ; 2607 return 0; 2608} 2609_ACEOF 2610rm -f conftest.$ac_objext 2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2612 (eval $ac_compile) 2>&5 2613 ac_status=$? 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2615 (exit $ac_status); } && 2616 { ac_try='test -s conftest.$ac_objext' 2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2618 (eval $ac_try) 2>&5 2619 ac_status=$? 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2621 (exit $ac_status); }; }; then 2622 ac_cv_prog_cc_g=yes 2623else 2624 echo "$as_me: failed program was:" >&5 2625sed 's/^/| /' conftest.$ac_ext >&5 2626 2627ac_cv_prog_cc_g=no 2628fi 2629rm -f conftest.$ac_objext conftest.$ac_ext 2630fi 2631echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2632echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2633if test "$ac_test_CFLAGS" = set; then 2634 CFLAGS=$ac_save_CFLAGS 2635elif test $ac_cv_prog_cc_g = yes; then 2636 if test "$GCC" = yes; then 2637 CFLAGS="-g -O2" 2638 else 2639 CFLAGS="-g" 2640 fi 2641else 2642 if test "$GCC" = yes; then 2643 CFLAGS="-O2" 2644 else 2645 CFLAGS= 2646 fi 2647fi 2648echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2649echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2650if test "${ac_cv_prog_cc_stdc+set}" = set; then 2651 echo $ECHO_N "(cached) $ECHO_C" >&6 2652else 2653 ac_cv_prog_cc_stdc=no 2654ac_save_CC=$CC 2655cat >conftest.$ac_ext <<_ACEOF 2656#line $LINENO "configure" 2657/* confdefs.h. */ 2658_ACEOF 2659cat confdefs.h >>conftest.$ac_ext 2660cat >>conftest.$ac_ext <<_ACEOF 2661/* end confdefs.h. */ 2662#include <stdarg.h> 2663#include <stdio.h> 2664#include <sys/types.h> 2665#include <sys/stat.h> 2666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2667struct buf { int x; }; 2668FILE * (*rcsopen) (struct buf *, struct stat *, int); 2669static char *e (p, i) 2670 char **p; 2671 int i; 2672{ 2673 return p[i]; 2674} 2675static char *f (char * (*g) (char **, int), char **p, ...) 2676{ 2677 char *s; 2678 va_list v; 2679 va_start (v,p); 2680 s = g (p, va_arg (v,int)); 2681 va_end (v); 2682 return s; 2683} 2684int test (int i, double x); 2685struct s1 {int (*f) (int a);}; 2686struct s2 {int (*f) (double a);}; 2687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2688int argc; 2689char **argv; 2690int 2691main () 2692{ 2693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2694 ; 2695 return 0; 2696} 2697_ACEOF 2698# Don't try gcc -ansi; that turns off useful extensions and 2699# breaks some systems' header files. 2700# AIX -qlanglvl=ansi 2701# Ultrix and OSF/1 -std1 2702# HP-UX 10.20 and later -Ae 2703# HP-UX older versions -Aa -D_HPUX_SOURCE 2704# SVR4 -Xc -D__EXTENSIONS__ 2705for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2706do 2707 CC="$ac_save_CC $ac_arg" 2708 rm -f conftest.$ac_objext 2709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2710 (eval $ac_compile) 2>&5 2711 ac_status=$? 2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); } && 2714 { ac_try='test -s conftest.$ac_objext' 2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2716 (eval $ac_try) 2>&5 2717 ac_status=$? 2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2719 (exit $ac_status); }; }; then 2720 ac_cv_prog_cc_stdc=$ac_arg 2721break 2722else 2723 echo "$as_me: failed program was:" >&5 2724sed 's/^/| /' conftest.$ac_ext >&5 2725 2726fi 2727rm -f conftest.$ac_objext 2728done 2729rm -f conftest.$ac_ext conftest.$ac_objext 2730CC=$ac_save_CC 2731 2732fi 2733 2734case "x$ac_cv_prog_cc_stdc" in 2735 x|xno) 2736 echo "$as_me:$LINENO: result: none needed" >&5 2737echo "${ECHO_T}none needed" >&6 ;; 2738 *) 2739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2740echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2741 CC="$CC $ac_cv_prog_cc_stdc" ;; 2742esac 2743 2744# Some people use a C++ compiler to compile C. Since we use `exit', 2745# in C++ we need to declare it. In case someone uses the same compiler 2746# for both compiling C and C++ we need to have the C++ compiler decide 2747# the declaration of exit, since it's the most demanding environment. 2748cat >conftest.$ac_ext <<_ACEOF 2749#ifndef __cplusplus 2750 choke me 2751#endif 2752_ACEOF 2753rm -f conftest.$ac_objext 2754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2755 (eval $ac_compile) 2>&5 2756 ac_status=$? 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); } && 2759 { ac_try='test -s conftest.$ac_objext' 2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2761 (eval $ac_try) 2>&5 2762 ac_status=$? 2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2764 (exit $ac_status); }; }; then 2765 for ac_declaration in \ 2766 ''\ 2767 '#include <stdlib.h>' \ 2768 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2769 'extern "C" void std::exit (int); using std::exit;' \ 2770 'extern "C" void exit (int) throw ();' \ 2771 'extern "C" void exit (int);' \ 2772 'void exit (int);' 2773do 2774 cat >conftest.$ac_ext <<_ACEOF 2775#line $LINENO "configure" 2776/* confdefs.h. */ 2777_ACEOF 2778cat confdefs.h >>conftest.$ac_ext 2779cat >>conftest.$ac_ext <<_ACEOF 2780/* end confdefs.h. */ 2781#include <stdlib.h> 2782$ac_declaration 2783int 2784main () 2785{ 2786exit (42); 2787 ; 2788 return 0; 2789} 2790_ACEOF 2791rm -f conftest.$ac_objext 2792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2793 (eval $ac_compile) 2>&5 2794 ac_status=$? 2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2796 (exit $ac_status); } && 2797 { ac_try='test -s conftest.$ac_objext' 2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2799 (eval $ac_try) 2>&5 2800 ac_status=$? 2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2802 (exit $ac_status); }; }; then 2803 : 2804else 2805 echo "$as_me: failed program was:" >&5 2806sed 's/^/| /' conftest.$ac_ext >&5 2807 2808continue 2809fi 2810rm -f conftest.$ac_objext conftest.$ac_ext 2811 cat >conftest.$ac_ext <<_ACEOF 2812#line $LINENO "configure" 2813/* confdefs.h. */ 2814_ACEOF 2815cat confdefs.h >>conftest.$ac_ext 2816cat >>conftest.$ac_ext <<_ACEOF 2817/* end confdefs.h. */ 2818$ac_declaration 2819int 2820main () 2821{ 2822exit (42); 2823 ; 2824 return 0; 2825} 2826_ACEOF 2827rm -f conftest.$ac_objext 2828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2829 (eval $ac_compile) 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); } && 2833 { ac_try='test -s conftest.$ac_objext' 2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2835 (eval $ac_try) 2>&5 2836 ac_status=$? 2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2838 (exit $ac_status); }; }; then 2839 break 2840else 2841 echo "$as_me: failed program was:" >&5 2842sed 's/^/| /' conftest.$ac_ext >&5 2843 2844fi 2845rm -f conftest.$ac_objext conftest.$ac_ext 2846done 2847rm -f conftest* 2848if test -n "$ac_declaration"; then 2849 echo '#ifdef __cplusplus' >>confdefs.h 2850 echo $ac_declaration >>confdefs.h 2851 echo '#endif' >>confdefs.h 2852fi 2853 2854else 2855 echo "$as_me: failed program was:" >&5 2856sed 's/^/| /' conftest.$ac_ext >&5 2857 2858fi 2859rm -f conftest.$ac_objext conftest.$ac_ext 2860ac_ext=c 2861ac_cpp='$CPP $CPPFLAGS' 2862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2864ac_compiler_gnu=$ac_cv_c_compiler_gnu 2865 2866ac_ext=c 2867ac_cpp='$CPP $CPPFLAGS' 2868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2870ac_compiler_gnu=$ac_cv_c_compiler_gnu 2871echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2872echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2873# On Suns, sometimes $CPP names a directory. 2874if test -n "$CPP" && test -d "$CPP"; then 2875 CPP= 2876fi 2877if test -z "$CPP"; then 2878 if test "${ac_cv_prog_CPP+set}" = set; then 2879 echo $ECHO_N "(cached) $ECHO_C" >&6 2880else 2881 # Double quotes because CPP needs to be expanded 2882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2883 do 2884 ac_preproc_ok=false 2885for ac_c_preproc_warn_flag in '' yes 2886do 2887 # Use a header file that comes with gcc, so configuring glibc 2888 # with a fresh cross-compiler works. 2889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2890 # <limits.h> exists even on freestanding compilers. 2891 # On the NeXT, cc -E runs the code through the compiler's parser, 2892 # not just through cpp. "Syntax error" is here to catch this case. 2893 cat >conftest.$ac_ext <<_ACEOF 2894#line $LINENO "configure" 2895/* confdefs.h. */ 2896_ACEOF 2897cat confdefs.h >>conftest.$ac_ext 2898cat >>conftest.$ac_ext <<_ACEOF 2899/* end confdefs.h. */ 2900#ifdef __STDC__ 2901# include <limits.h> 2902#else 2903# include <assert.h> 2904#endif 2905 Syntax error 2906_ACEOF 2907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2909 ac_status=$? 2910 grep -v '^ *+' conftest.er1 >conftest.err 2911 rm -f conftest.er1 2912 cat conftest.err >&5 2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2914 (exit $ac_status); } >/dev/null; then 2915 if test -s conftest.err; then 2916 ac_cpp_err=$ac_c_preproc_warn_flag 2917 else 2918 ac_cpp_err= 2919 fi 2920else 2921 ac_cpp_err=yes 2922fi 2923if test -z "$ac_cpp_err"; then 2924 : 2925else 2926 echo "$as_me: failed program was:" >&5 2927sed 's/^/| /' conftest.$ac_ext >&5 2928 2929 # Broken: fails on valid input. 2930continue 2931fi 2932rm -f conftest.err conftest.$ac_ext 2933 2934 # OK, works on sane cases. Now check whether non-existent headers 2935 # can be detected and how. 2936 cat >conftest.$ac_ext <<_ACEOF 2937#line $LINENO "configure" 2938/* confdefs.h. */ 2939_ACEOF 2940cat confdefs.h >>conftest.$ac_ext 2941cat >>conftest.$ac_ext <<_ACEOF 2942/* end confdefs.h. */ 2943#include <ac_nonexistent.h> 2944_ACEOF 2945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2947 ac_status=$? 2948 grep -v '^ *+' conftest.er1 >conftest.err 2949 rm -f conftest.er1 2950 cat conftest.err >&5 2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); } >/dev/null; then 2953 if test -s conftest.err; then 2954 ac_cpp_err=$ac_c_preproc_warn_flag 2955 else 2956 ac_cpp_err= 2957 fi 2958else 2959 ac_cpp_err=yes 2960fi 2961if test -z "$ac_cpp_err"; then 2962 # Broken: success on invalid input. 2963continue 2964else 2965 echo "$as_me: failed program was:" >&5 2966sed 's/^/| /' conftest.$ac_ext >&5 2967 2968 # Passes both tests. 2969ac_preproc_ok=: 2970break 2971fi 2972rm -f conftest.err conftest.$ac_ext 2973 2974done 2975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2976rm -f conftest.err conftest.$ac_ext 2977if $ac_preproc_ok; then 2978 break 2979fi 2980 2981 done 2982 ac_cv_prog_CPP=$CPP 2983 2984fi 2985 CPP=$ac_cv_prog_CPP 2986else 2987 ac_cv_prog_CPP=$CPP 2988fi 2989echo "$as_me:$LINENO: result: $CPP" >&5 2990echo "${ECHO_T}$CPP" >&6 2991ac_preproc_ok=false 2992for ac_c_preproc_warn_flag in '' yes 2993do 2994 # Use a header file that comes with gcc, so configuring glibc 2995 # with a fresh cross-compiler works. 2996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2997 # <limits.h> exists even on freestanding compilers. 2998 # On the NeXT, cc -E runs the code through the compiler's parser, 2999 # not just through cpp. "Syntax error" is here to catch this case. 3000 cat >conftest.$ac_ext <<_ACEOF 3001#line $LINENO "configure" 3002/* confdefs.h. */ 3003_ACEOF 3004cat confdefs.h >>conftest.$ac_ext 3005cat >>conftest.$ac_ext <<_ACEOF 3006/* end confdefs.h. */ 3007#ifdef __STDC__ 3008# include <limits.h> 3009#else 3010# include <assert.h> 3011#endif 3012 Syntax error 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 : 3032else 3033 echo "$as_me: failed program was:" >&5 3034sed 's/^/| /' conftest.$ac_ext >&5 3035 3036 # Broken: fails on valid input. 3037continue 3038fi 3039rm -f conftest.err conftest.$ac_ext 3040 3041 # OK, works on sane cases. Now check whether non-existent headers 3042 # can be detected and how. 3043 cat >conftest.$ac_ext <<_ACEOF 3044#line $LINENO "configure" 3045/* confdefs.h. */ 3046_ACEOF 3047cat confdefs.h >>conftest.$ac_ext 3048cat >>conftest.$ac_ext <<_ACEOF 3049/* end confdefs.h. */ 3050#include <ac_nonexistent.h> 3051_ACEOF 3052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3054 ac_status=$? 3055 grep -v '^ *+' conftest.er1 >conftest.err 3056 rm -f conftest.er1 3057 cat conftest.err >&5 3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); } >/dev/null; then 3060 if test -s conftest.err; then 3061 ac_cpp_err=$ac_c_preproc_warn_flag 3062 else 3063 ac_cpp_err= 3064 fi 3065else 3066 ac_cpp_err=yes 3067fi 3068if test -z "$ac_cpp_err"; then 3069 # Broken: success on invalid input. 3070continue 3071else 3072 echo "$as_me: failed program was:" >&5 3073sed 's/^/| /' conftest.$ac_ext >&5 3074 3075 # Passes both tests. 3076ac_preproc_ok=: 3077break 3078fi 3079rm -f conftest.err conftest.$ac_ext 3080 3081done 3082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3083rm -f conftest.err conftest.$ac_ext 3084if $ac_preproc_ok; then 3085 : 3086else 3087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3088See \`config.log' for more details." >&5 3089echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3090See \`config.log' for more details." >&2;} 3091 { (exit 1); exit 1; }; } 3092fi 3093 3094ac_ext=c 3095ac_cpp='$CPP $CPPFLAGS' 3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3098ac_compiler_gnu=$ac_cv_c_compiler_gnu 3099 3100 3101if test "$GCC" != "yes" 3102then 3103 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 3104echo "$as_me: error: gcc required but not found" >&2;} 3105 { (exit 1); exit 1; }; } 3106fi 3107 3108if test "$GXX" != "yes" 3109then 3110 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 3111echo "$as_me: error: g++ required but not found" >&2;} 3112 { (exit 1); exit 1; }; } 3113fi 3114 3115gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` 3116if test "$gccmajor" -lt "3" 3117then 3118 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5 3119echo "$as_me: error: gcc 3.x required" >&2;} 3120 { (exit 1); exit 1; }; } 3121fi 3122 3123 echo "$as_me:$LINENO: checking for GNU make" >&5 3124echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 3125if test "${_cv_gnu_make_command+set}" = set; then 3126 echo $ECHO_N "(cached) $ECHO_C" >&6 3127else 3128 _cv_gnu_make_command='' ; 3129 for a in "$MAKE" make gmake gnumake ; do 3130 if test -z "$a" ; then continue ; fi ; 3131 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 3132 _cv_gnu_make_command=$a ; 3133 break; 3134 fi 3135 done ; 3136 3137fi 3138echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 3139echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; 3140 if test "x$_cv_gnu_make_command" != "x" ; then 3141 ifGNUmake='' ; 3142 else 3143 ifGNUmake='#' ; 3144 echo "$as_me:$LINENO: result: \"Not found\"" >&5 3145echo "${ECHO_T}\"Not found\"" >&6; 3146 fi 3147 3148 3149if test -z "$_cv_gnu_make_command" 3150then 3151 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 3152echo "$as_me: error: GNU Make required but not found" >&2;} 3153 { (exit 1); exit 1; }; } 3154fi 3155 3156 3157echo "$as_me:$LINENO: checking " >&5 3158echo $ECHO_N "checking ... $ECHO_C" >&6 3159if test "${ac_cv_has_flex+set}" = set; then 3160 echo $ECHO_N "(cached) $ECHO_C" >&6 3161else 3162 for ac_prog in flex lex 3163do 3164 # Extract the first word of "$ac_prog", so it can be a program name with args. 3165set dummy $ac_prog; ac_word=$2 3166echo "$as_me:$LINENO: checking for $ac_word" >&5 3167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3168if test "${ac_cv_prog_LEX+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 if test -n "$LEX"; then 3172 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3173else 3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3175for as_dir in $PATH 3176do 3177 IFS=$as_save_IFS 3178 test -z "$as_dir" && as_dir=. 3179 for ac_exec_ext in '' $ac_executable_extensions; do 3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3181 ac_cv_prog_LEX="$ac_prog" 3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3183 break 2 3184 fi 3185done 3186done 3187 3188fi 3189fi 3190LEX=$ac_cv_prog_LEX 3191if test -n "$LEX"; then 3192 echo "$as_me:$LINENO: result: $LEX" >&5 3193echo "${ECHO_T}$LEX" >&6 3194else 3195 echo "$as_me:$LINENO: result: no" >&5 3196echo "${ECHO_T}no" >&6 3197fi 3198 3199 test -n "$LEX" && break 3200done 3201test -n "$LEX" || LEX=":" 3202 3203if test -z "$LEXLIB" 3204then 3205 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 3206echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 3207if test "${ac_cv_lib_fl_yywrap+set}" = set; then 3208 echo $ECHO_N "(cached) $ECHO_C" >&6 3209else 3210 ac_check_lib_save_LIBS=$LIBS 3211LIBS="-lfl $LIBS" 3212cat >conftest.$ac_ext <<_ACEOF 3213#line $LINENO "configure" 3214/* confdefs.h. */ 3215_ACEOF 3216cat confdefs.h >>conftest.$ac_ext 3217cat >>conftest.$ac_ext <<_ACEOF 3218/* end confdefs.h. */ 3219 3220/* Override any gcc2 internal prototype to avoid an error. */ 3221#ifdef __cplusplus 3222extern "C" 3223#endif 3224/* We use char because int might match the return type of a gcc2 3225 builtin and then its argument prototype would still apply. */ 3226char yywrap (); 3227int 3228main () 3229{ 3230yywrap (); 3231 ; 3232 return 0; 3233} 3234_ACEOF 3235rm -f conftest.$ac_objext conftest$ac_exeext 3236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3237 (eval $ac_link) 2>&5 3238 ac_status=$? 3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3240 (exit $ac_status); } && 3241 { ac_try='test -s conftest$ac_exeext' 3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3243 (eval $ac_try) 2>&5 3244 ac_status=$? 3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3246 (exit $ac_status); }; }; then 3247 ac_cv_lib_fl_yywrap=yes 3248else 3249 echo "$as_me: failed program was:" >&5 3250sed 's/^/| /' conftest.$ac_ext >&5 3251 3252ac_cv_lib_fl_yywrap=no 3253fi 3254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3255LIBS=$ac_check_lib_save_LIBS 3256fi 3257echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 3258echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 3259if test $ac_cv_lib_fl_yywrap = yes; then 3260 LEXLIB="-lfl" 3261else 3262 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 3263echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 3264if test "${ac_cv_lib_l_yywrap+set}" = set; then 3265 echo $ECHO_N "(cached) $ECHO_C" >&6 3266else 3267 ac_check_lib_save_LIBS=$LIBS 3268LIBS="-ll $LIBS" 3269cat >conftest.$ac_ext <<_ACEOF 3270#line $LINENO "configure" 3271/* confdefs.h. */ 3272_ACEOF 3273cat confdefs.h >>conftest.$ac_ext 3274cat >>conftest.$ac_ext <<_ACEOF 3275/* end confdefs.h. */ 3276 3277/* Override any gcc2 internal prototype to avoid an error. */ 3278#ifdef __cplusplus 3279extern "C" 3280#endif 3281/* We use char because int might match the return type of a gcc2 3282 builtin and then its argument prototype would still apply. */ 3283char yywrap (); 3284int 3285main () 3286{ 3287yywrap (); 3288 ; 3289 return 0; 3290} 3291_ACEOF 3292rm -f conftest.$ac_objext conftest$ac_exeext 3293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3294 (eval $ac_link) 2>&5 3295 ac_status=$? 3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 (exit $ac_status); } && 3298 { ac_try='test -s conftest$ac_exeext' 3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3300 (eval $ac_try) 2>&5 3301 ac_status=$? 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); }; }; then 3304 ac_cv_lib_l_yywrap=yes 3305else 3306 echo "$as_me: failed program was:" >&5 3307sed 's/^/| /' conftest.$ac_ext >&5 3308 3309ac_cv_lib_l_yywrap=no 3310fi 3311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3312LIBS=$ac_check_lib_save_LIBS 3313fi 3314echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 3315echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 3316if test $ac_cv_lib_l_yywrap = yes; then 3317 LEXLIB="-ll" 3318fi 3319 3320fi 3321 3322fi 3323 3324if test "x$LEX" != "x:"; then 3325 echo "$as_me:$LINENO: checking lex output file root" >&5 3326echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 3327if test "${ac_cv_prog_lex_root+set}" = set; then 3328 echo $ECHO_N "(cached) $ECHO_C" >&6 3329else 3330 # The minimal lex program is just a single line: %%. But some broken lexes 3331# (Solaris, I think it was) want two %% lines, so accommodate them. 3332cat >conftest.l <<_ACEOF 3333%% 3334%% 3335_ACEOF 3336{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 3337 (eval $LEX conftest.l) 2>&5 3338 ac_status=$? 3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 (exit $ac_status); } 3341if test -f lex.yy.c; then 3342 ac_cv_prog_lex_root=lex.yy 3343elif test -f lexyy.c; then 3344 ac_cv_prog_lex_root=lexyy 3345else 3346 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 3347echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 3348 { (exit 1); exit 1; }; } 3349fi 3350fi 3351echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 3352echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 3353rm -f conftest.l 3354LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3355 3356echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 3357echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 3358if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 3359 echo $ECHO_N "(cached) $ECHO_C" >&6 3360else 3361 # POSIX says lex can declare yytext either as a pointer or an array; the 3362# default is implementation-dependent. Figure out which it is, since 3363# not all implementations provide the %pointer and %array declarations. 3364ac_cv_prog_lex_yytext_pointer=no 3365echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 3366ac_save_LIBS=$LIBS 3367LIBS="$LIBS $LEXLIB" 3368cat >conftest.$ac_ext <<_ACEOF 3369`cat $LEX_OUTPUT_ROOT.c` 3370_ACEOF 3371rm -f conftest.$ac_objext conftest$ac_exeext 3372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3373 (eval $ac_link) 2>&5 3374 ac_status=$? 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); } && 3377 { ac_try='test -s conftest$ac_exeext' 3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3379 (eval $ac_try) 2>&5 3380 ac_status=$? 3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); }; }; then 3383 ac_cv_prog_lex_yytext_pointer=yes 3384else 3385 echo "$as_me: failed program was:" >&5 3386sed 's/^/| /' conftest.$ac_ext >&5 3387 3388fi 3389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3390LIBS=$ac_save_LIBS 3391rm -f "${LEX_OUTPUT_ROOT}.c" 3392 3393fi 3394echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 3395echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 3396if test $ac_cv_prog_lex_yytext_pointer = yes; then 3397 3398cat >>confdefs.h <<\_ACEOF 3399#define YYTEXT_POINTER 1 3400_ACEOF 3401 3402fi 3403 3404fi 3405 3406fi 3407echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 3408echo "${ECHO_T}$ac_cv_has_flex" >&6 3409if test "$LEX" != "flex"; then 3410 { { echo "$as_me:$LINENO: error: flex not found but required" >&5 3411echo "$as_me: error: flex not found but required" >&2;} 3412 { (exit 1); exit 1; }; } 3413fi 3414 3415echo "$as_me:$LINENO: checking " >&5 3416echo $ECHO_N "checking ... $ECHO_C" >&6 3417if test "${ac_cv_has_bison+set}" = set; then 3418 echo $ECHO_N "(cached) $ECHO_C" >&6 3419else 3420 for ac_prog in 'bison -y' byacc 3421do 3422 # Extract the first word of "$ac_prog", so it can be a program name with args. 3423set dummy $ac_prog; ac_word=$2 3424echo "$as_me:$LINENO: checking for $ac_word" >&5 3425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3426if test "${ac_cv_prog_YACC+set}" = set; then 3427 echo $ECHO_N "(cached) $ECHO_C" >&6 3428else 3429 if test -n "$YACC"; then 3430 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3431else 3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3433for as_dir in $PATH 3434do 3435 IFS=$as_save_IFS 3436 test -z "$as_dir" && as_dir=. 3437 for ac_exec_ext in '' $ac_executable_extensions; do 3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3439 ac_cv_prog_YACC="$ac_prog" 3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3441 break 2 3442 fi 3443done 3444done 3445 3446fi 3447fi 3448YACC=$ac_cv_prog_YACC 3449if test -n "$YACC"; then 3450 echo "$as_me:$LINENO: result: $YACC" >&5 3451echo "${ECHO_T}$YACC" >&6 3452else 3453 echo "$as_me:$LINENO: result: no" >&5 3454echo "${ECHO_T}no" >&6 3455fi 3456 3457 test -n "$YACC" && break 3458done 3459test -n "$YACC" || YACC="yacc" 3460 3461 3462fi 3463echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 3464echo "${ECHO_T}$ac_cv_has_bison" >&6 3465if test "$YACC" != "bison -y"; then 3466 { { echo "$as_me:$LINENO: error: bison not found but required" >&5 3467echo "$as_me: error: bison not found but required" >&2;} 3468 { (exit 1); exit 1; }; } 3469else 3470 BISON=bison 3471 3472fi 3473 3474 3475# Check whether --enable-shared or --disable-shared was given. 3476if test "${enable_shared+set}" = set; then 3477 enableval="$enable_shared" 3478 p=${PACKAGE-default} 3479 case $enableval in 3480 yes) enable_shared=yes ;; 3481 no) enable_shared=no ;; 3482 *) 3483 enable_shared=no 3484 # Look at the argument we got. We use all the common list separators. 3485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3486 for pkg in $enableval; do 3487 IFS="$lt_save_ifs" 3488 if test "X$pkg" = "X$p"; then 3489 enable_shared=yes 3490 fi 3491 done 3492 IFS="$lt_save_ifs" 3493 ;; 3494 esac 3495else 3496 enable_shared=yes 3497fi; 3498 3499# Check whether --enable-static or --disable-static was given. 3500if test "${enable_static+set}" = set; then 3501 enableval="$enable_static" 3502 p=${PACKAGE-default} 3503 case $enableval in 3504 yes) enable_static=yes ;; 3505 no) enable_static=no ;; 3506 *) 3507 enable_static=no 3508 # Look at the argument we got. We use all the common list separators. 3509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3510 for pkg in $enableval; do 3511 IFS="$lt_save_ifs" 3512 if test "X$pkg" = "X$p"; then 3513 enable_static=yes 3514 fi 3515 done 3516 IFS="$lt_save_ifs" 3517 ;; 3518 esac 3519else 3520 enable_static=yes 3521fi; 3522 3523# Check whether --enable-fast-install or --disable-fast-install was given. 3524if test "${enable_fast_install+set}" = set; then 3525 enableval="$enable_fast_install" 3526 p=${PACKAGE-default} 3527 case $enableval in 3528 yes) enable_fast_install=yes ;; 3529 no) enable_fast_install=no ;; 3530 *) 3531 enable_fast_install=no 3532 # Look at the argument we got. We use all the common list separators. 3533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3534 for pkg in $enableval; do 3535 IFS="$lt_save_ifs" 3536 if test "X$pkg" = "X$p"; then 3537 enable_fast_install=yes 3538 fi 3539 done 3540 IFS="$lt_save_ifs" 3541 ;; 3542 esac 3543else 3544 enable_fast_install=yes 3545fi; 3546 3547echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3548echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3549if test "${lt_cv_path_SED+set}" = set; then 3550 echo $ECHO_N "(cached) $ECHO_C" >&6 3551else 3552 # Loop through the user's path and test for sed and gsed. 3553# Then use that list of sed's as ones to test for truncation. 3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555for as_dir in $PATH 3556do 3557 IFS=$as_save_IFS 3558 test -z "$as_dir" && as_dir=. 3559 for lt_ac_prog in sed gsed; do 3560 for ac_exec_ext in '' $ac_executable_extensions; do 3561 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3562 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3563 fi 3564 done 3565 done 3566done 3567lt_ac_max=0 3568lt_ac_count=0 3569# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3570# along with /bin/sed that truncates output. 3571for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3572 test ! -f $lt_ac_sed && break 3573 cat /dev/null > conftest.in 3574 lt_ac_count=0 3575 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3576 # Check for GNU sed and select it if it is found. 3577 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3578 lt_cv_path_SED=$lt_ac_sed 3579 break 3580 fi 3581 while true; do 3582 cat conftest.in conftest.in >conftest.tmp 3583 mv conftest.tmp conftest.in 3584 cp conftest.in conftest.nl 3585 echo >>conftest.nl 3586 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3587 cmp -s conftest.out conftest.nl || break 3588 # 10000 chars as input seems more than enough 3589 test $lt_ac_count -gt 10 && break 3590 lt_ac_count=`expr $lt_ac_count + 1` 3591 if test $lt_ac_count -gt $lt_ac_max; then 3592 lt_ac_max=$lt_ac_count 3593 lt_cv_path_SED=$lt_ac_sed 3594 fi 3595 done 3596done 3597SED=$lt_cv_path_SED 3598 3599fi 3600 3601echo "$as_me:$LINENO: result: $SED" >&5 3602echo "${ECHO_T}$SED" >&6 3603 3604echo "$as_me:$LINENO: checking for egrep" >&5 3605echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3606if test "${ac_cv_prog_egrep+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3610 then ac_cv_prog_egrep='grep -E' 3611 else ac_cv_prog_egrep='egrep' 3612 fi 3613fi 3614echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3615echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3616 EGREP=$ac_cv_prog_egrep 3617 3618 3619 3620# Check whether --with-gnu-ld or --without-gnu-ld was given. 3621if test "${with_gnu_ld+set}" = set; then 3622 withval="$with_gnu_ld" 3623 test "$withval" = no || with_gnu_ld=yes 3624else 3625 with_gnu_ld=no 3626fi; 3627ac_prog=ld 3628if test "$GCC" = yes; then 3629 # Check if gcc -print-prog-name=ld gives a path. 3630 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3631echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3632 case $host in 3633 *-*-mingw*) 3634 # gcc leaves a trailing carriage return which upsets mingw 3635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3636 *) 3637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3638 esac 3639 case $ac_prog in 3640 # Accept absolute paths. 3641 [\\/]* | ?:[\\/]*) 3642 re_direlt='/[^/][^/]*/\.\./' 3643 # Canonicalize the path of ld 3644 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3645 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3646 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3647 done 3648 test -z "$LD" && LD="$ac_prog" 3649 ;; 3650 "") 3651 # If it fails, then pretend we aren't using GCC. 3652 ac_prog=ld 3653 ;; 3654 *) 3655 # If it is relative, then search for the first ld in PATH. 3656 with_gnu_ld=unknown 3657 ;; 3658 esac 3659elif test "$with_gnu_ld" = yes; then 3660 echo "$as_me:$LINENO: checking for GNU ld" >&5 3661echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3662else 3663 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3664echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3665fi 3666if test "${lt_cv_path_LD+set}" = set; then 3667 echo $ECHO_N "(cached) $ECHO_C" >&6 3668else 3669 if test -z "$LD"; then 3670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3671 for ac_dir in $PATH; do 3672 IFS="$lt_save_ifs" 3673 test -z "$ac_dir" && ac_dir=. 3674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3675 lt_cv_path_LD="$ac_dir/$ac_prog" 3676 # Check to see if the program is GNU ld. I'd rather use --version, 3677 # but apparently some GNU ld's only accept -v. 3678 # Break only if it was the GNU/non-GNU ld that we prefer. 3679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3680 *GNU* | *'with BFD'*) 3681 test "$with_gnu_ld" != no && break 3682 ;; 3683 *) 3684 test "$with_gnu_ld" != yes && break 3685 ;; 3686 esac 3687 fi 3688 done 3689 IFS="$lt_save_ifs" 3690else 3691 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3692fi 3693fi 3694 3695LD="$lt_cv_path_LD" 3696if test -n "$LD"; then 3697 echo "$as_me:$LINENO: result: $LD" >&5 3698echo "${ECHO_T}$LD" >&6 3699else 3700 echo "$as_me:$LINENO: result: no" >&5 3701echo "${ECHO_T}no" >&6 3702fi 3703test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3704echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3705 { (exit 1); exit 1; }; } 3706echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3707echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3708if test "${lt_cv_prog_gnu_ld+set}" = set; then 3709 echo $ECHO_N "(cached) $ECHO_C" >&6 3710else 3711 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3712case `"$LD" -v 2>&1 </dev/null` in 3713*GNU* | *'with BFD'*) 3714 lt_cv_prog_gnu_ld=yes 3715 ;; 3716*) 3717 lt_cv_prog_gnu_ld=no 3718 ;; 3719esac 3720fi 3721echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3722echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3723with_gnu_ld=$lt_cv_prog_gnu_ld 3724 3725 3726echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3727echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3728if test "${lt_cv_ld_reload_flag+set}" = set; then 3729 echo $ECHO_N "(cached) $ECHO_C" >&6 3730else 3731 lt_cv_ld_reload_flag='-r' 3732fi 3733echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3734echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3735reload_flag=$lt_cv_ld_reload_flag 3736case $reload_flag in 3737"" | " "*) ;; 3738*) reload_flag=" $reload_flag" ;; 3739esac 3740reload_cmds='$LD$reload_flag -o $output$reload_objs' 3741 3742echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3743echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3744if test "${lt_cv_path_NM+set}" = set; then 3745 echo $ECHO_N "(cached) $ECHO_C" >&6 3746else 3747 if test -n "$NM"; then 3748 # Let the user override the test. 3749 lt_cv_path_NM="$NM" 3750else 3751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3752 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3753 IFS="$lt_save_ifs" 3754 test -z "$ac_dir" && ac_dir=. 3755 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3757 # Check to see if the nm accepts a BSD-compat flag. 3758 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3759 # nm: unknown option "B" ignored 3760 # Tru64's nm complains that /dev/null is an invalid object file 3761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3762 */dev/null* | *'Invalid file or object type'*) 3763 lt_cv_path_NM="$tmp_nm -B" 3764 break 3765 ;; 3766 *) 3767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3768 */dev/null*) 3769 lt_cv_path_NM="$tmp_nm -p" 3770 break 3771 ;; 3772 *) 3773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3774 continue # so that we can try to find one that supports BSD flags 3775 ;; 3776 esac 3777 esac 3778 fi 3779 done 3780 IFS="$lt_save_ifs" 3781 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3782fi 3783fi 3784echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3785echo "${ECHO_T}$lt_cv_path_NM" >&6 3786NM="$lt_cv_path_NM" 3787 3788echo "$as_me:$LINENO: checking whether ln -s works" >&5 3789echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3790LN_S=$as_ln_s 3791if test "$LN_S" = "ln -s"; then 3792 echo "$as_me:$LINENO: result: yes" >&5 3793echo "${ECHO_T}yes" >&6 3794else 3795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3796echo "${ECHO_T}no, using $LN_S" >&6 3797fi 3798 3799echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3800echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3801if test "${lt_cv_deplibs_check_method+set}" = set; then 3802 echo $ECHO_N "(cached) $ECHO_C" >&6 3803else 3804 lt_cv_file_magic_cmd='$MAGIC_CMD' 3805lt_cv_file_magic_test_file= 3806lt_cv_deplibs_check_method='unknown' 3807# Need to set the preceding variable on all platforms that support 3808# interlibrary dependencies. 3809# 'none' -- dependencies not supported. 3810# `unknown' -- same as none, but documents that we really don't know. 3811# 'pass_all' -- all dependencies passed with no checks. 3812# 'test_compile' -- check by making test program. 3813# 'file_magic [[regex]]' -- check by looking for files in library path 3814# which responds to the $file_magic_cmd with a given extended regex. 3815# If you have `file' or equivalent on your system and you're not sure 3816# whether `pass_all' will *always* work, you probably want this one. 3817 3818case $host_os in 3819aix4* | aix5*) 3820 lt_cv_deplibs_check_method=pass_all 3821 ;; 3822 3823beos*) 3824 lt_cv_deplibs_check_method=pass_all 3825 ;; 3826 3827bsdi4*) 3828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3829 lt_cv_file_magic_cmd='/usr/bin/file -L' 3830 lt_cv_file_magic_test_file=/shlib/libc.so 3831 ;; 3832 3833cygwin* | mingw* | pw32*) 3834 # win32_libid is a shell function defined in ltmain.sh 3835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3836 lt_cv_file_magic_cmd='win32_libid' 3837 ;; 3838 3839darwin* | rhapsody*) 3840 # this will be overwritten by pass_all, but leave it in just in case 3841 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3842 lt_cv_file_magic_cmd='/usr/bin/file -L' 3843 case "$host_os" in 3844 rhapsody* | darwin1.[012]) 3845 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 3846 ;; 3847 *) # Darwin 1.3 on 3848 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3849 ;; 3850 esac 3851 lt_cv_deplibs_check_method=pass_all 3852 ;; 3853 3854freebsd*) 3855 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3856 case $host_cpu in 3857 i*86 ) 3858 # Not sure whether the presence of OpenBSD here was a mistake. 3859 # Let's accept both of them until this is cleared up. 3860 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3861 lt_cv_file_magic_cmd=/usr/bin/file 3862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3863 ;; 3864 esac 3865 else 3866 lt_cv_deplibs_check_method=pass_all 3867 fi 3868 ;; 3869 3870gnu*) 3871 lt_cv_deplibs_check_method=pass_all 3872 ;; 3873 3874hpux10.20* | hpux11*) 3875 lt_cv_file_magic_cmd=/usr/bin/file 3876 case "$host_cpu" in 3877 ia64*) 3878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3880 ;; 3881 hppa*64*) 3882 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]' 3883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3884 ;; 3885 *) 3886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3887 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3888 ;; 3889 esac 3890 ;; 3891 3892irix5* | irix6* | nonstopux*) 3893 case $host_os in 3894 irix5* | nonstopux*) 3895 # this will be overridden with pass_all, but let us keep it just in case 3896 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3897 ;; 3898 *) 3899 case $LD in 3900 *-32|*"-32 ") libmagic=32-bit;; 3901 *-n32|*"-n32 ") libmagic=N32;; 3902 *-64|*"-64 ") libmagic=64-bit;; 3903 *) libmagic=never-match;; 3904 esac 3905 # this will be overridden with pass_all, but let us keep it just in case 3906 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3907 ;; 3908 esac 3909 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3910 lt_cv_deplibs_check_method=pass_all 3911 ;; 3912 3913# This must be Linux ELF. 3914linux*) 3915 case $host_cpu in 3916 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) 3917 lt_cv_deplibs_check_method=pass_all ;; 3918 *) 3919 # glibc up to 2.1.1 does not perform some relocations on ARM 3920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3921 esac 3922 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3923 ;; 3924 3925netbsd*) 3926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3928 else 3929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3930 fi 3931 ;; 3932 3933newos6*) 3934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3935 lt_cv_file_magic_cmd=/usr/bin/file 3936 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3937 ;; 3938 3939nto-qnx) 3940 lt_cv_deplibs_check_method=unknown 3941 ;; 3942 3943openbsd*) 3944 lt_cv_file_magic_cmd=/usr/bin/file 3945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3948 else 3949 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3950 fi 3951 ;; 3952 3953osf3* | osf4* | osf5*) 3954 # this will be overridden with pass_all, but let us keep it just in case 3955 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3956 lt_cv_file_magic_test_file=/shlib/libc.so 3957 lt_cv_deplibs_check_method=pass_all 3958 ;; 3959 3960sco3.2v5*) 3961 lt_cv_deplibs_check_method=pass_all 3962 ;; 3963 3964solaris*) 3965 lt_cv_deplibs_check_method=pass_all 3966 lt_cv_file_magic_test_file=/lib/libc.so 3967 ;; 3968 3969sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3970 case $host_vendor in 3971 motorola) 3972 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]' 3973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3974 ;; 3975 ncr) 3976 lt_cv_deplibs_check_method=pass_all 3977 ;; 3978 sequent) 3979 lt_cv_file_magic_cmd='/bin/file' 3980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3981 ;; 3982 sni) 3983 lt_cv_file_magic_cmd='/bin/file' 3984 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3985 lt_cv_file_magic_test_file=/lib/libc.so 3986 ;; 3987 siemens) 3988 lt_cv_deplibs_check_method=pass_all 3989 ;; 3990 esac 3991 ;; 3992 3993sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3994 lt_cv_deplibs_check_method=pass_all 3995 ;; 3996esac 3997 3998fi 3999echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4000echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4001file_magic_cmd=$lt_cv_file_magic_cmd 4002deplibs_check_method=$lt_cv_deplibs_check_method 4003test -z "$deplibs_check_method" && deplibs_check_method=unknown 4004 4005 4006 4007 4008# If no C compiler was specified, use CC. 4009LTCC=${LTCC-"$CC"} 4010 4011# Allow CC to be a program name with arguments. 4012compiler=$CC 4013 4014# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4015if test "${enable_libtool_lock+set}" = set; then 4016 enableval="$enable_libtool_lock" 4017 4018fi; 4019test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4020 4021# Some flags need to be propagated to the compiler or linker for good 4022# libtool support. 4023case $host in 4024ia64-*-hpux*) 4025 # Find out which ABI we are using. 4026 echo 'int i;' > conftest.$ac_ext 4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4028 (eval $ac_compile) 2>&5 4029 ac_status=$? 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 (exit $ac_status); }; then 4032 case `/usr/bin/file conftest.$ac_objext` in 4033 *ELF-32*) 4034 HPUX_IA64_MODE="32" 4035 ;; 4036 *ELF-64*) 4037 HPUX_IA64_MODE="64" 4038 ;; 4039 esac 4040 fi 4041 rm -rf conftest* 4042 ;; 4043*-*-irix6*) 4044 # Find out which ABI we are using. 4045 echo '#line 4045 "configure"' > conftest.$ac_ext 4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4047 (eval $ac_compile) 2>&5 4048 ac_status=$? 4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4050 (exit $ac_status); }; then 4051 if test "$lt_cv_prog_gnu_ld" = yes; then 4052 case `/usr/bin/file conftest.$ac_objext` in 4053 *32-bit*) 4054 LD="${LD-ld} -melf32bsmip" 4055 ;; 4056 *N32*) 4057 LD="${LD-ld} -melf32bmipn32" 4058 ;; 4059 *64-bit*) 4060 LD="${LD-ld} -melf64bmip" 4061 ;; 4062 esac 4063 else 4064 case `/usr/bin/file conftest.$ac_objext` in 4065 *32-bit*) 4066 LD="${LD-ld} -32" 4067 ;; 4068 *N32*) 4069 LD="${LD-ld} -n32" 4070 ;; 4071 *64-bit*) 4072 LD="${LD-ld} -64" 4073 ;; 4074 esac 4075 fi 4076 fi 4077 rm -rf conftest* 4078 ;; 4079 4080x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4081 # Find out which ABI we are using. 4082 echo 'int i;' > conftest.$ac_ext 4083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4084 (eval $ac_compile) 2>&5 4085 ac_status=$? 4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4087 (exit $ac_status); }; then 4088 case "`/usr/bin/file conftest.o`" in 4089 *32-bit*) 4090 case $host in 4091 x86_64-*linux*) 4092 LD="${LD-ld} -m elf_i386" 4093 ;; 4094 ppc64-*linux*) 4095 LD="${LD-ld} -m elf32ppclinux" 4096 ;; 4097 s390x-*linux*) 4098 LD="${LD-ld} -m elf_s390" 4099 ;; 4100 sparc64-*linux*) 4101 LD="${LD-ld} -m elf32_sparc" 4102 ;; 4103 esac 4104 ;; 4105 *64-bit*) 4106 case $host in 4107 x86_64-*linux*) 4108 LD="${LD-ld} -m elf_x86_64" 4109 ;; 4110 ppc*-*linux*|powerpc*-*linux*) 4111 LD="${LD-ld} -m elf64ppc" 4112 ;; 4113 s390*-*linux*) 4114 LD="${LD-ld} -m elf64_s390" 4115 ;; 4116 sparc*-*linux*) 4117 LD="${LD-ld} -m elf64_sparc" 4118 ;; 4119 esac 4120 ;; 4121 esac 4122 fi 4123 rm -rf conftest* 4124 ;; 4125 4126*-*-sco3.2v5*) 4127 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4128 SAVE_CFLAGS="$CFLAGS" 4129 CFLAGS="$CFLAGS -belf" 4130 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4131echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4132if test "${lt_cv_cc_needs_belf+set}" = set; then 4133 echo $ECHO_N "(cached) $ECHO_C" >&6 4134else 4135 ac_ext=c 4136ac_cpp='$CPP $CPPFLAGS' 4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4139ac_compiler_gnu=$ac_cv_c_compiler_gnu 4140 4141 cat >conftest.$ac_ext <<_ACEOF 4142#line $LINENO "configure" 4143/* confdefs.h. */ 4144_ACEOF 4145cat confdefs.h >>conftest.$ac_ext 4146cat >>conftest.$ac_ext <<_ACEOF 4147/* end confdefs.h. */ 4148 4149int 4150main () 4151{ 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157rm -f conftest.$ac_objext conftest$ac_exeext 4158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4159 (eval $ac_link) 2>&5 4160 ac_status=$? 4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4162 (exit $ac_status); } && 4163 { ac_try='test -s conftest$ac_exeext' 4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4165 (eval $ac_try) 2>&5 4166 ac_status=$? 4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4168 (exit $ac_status); }; }; then 4169 lt_cv_cc_needs_belf=yes 4170else 4171 echo "$as_me: failed program was:" >&5 4172sed 's/^/| /' conftest.$ac_ext >&5 4173 4174lt_cv_cc_needs_belf=no 4175fi 4176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4177 ac_ext=c 4178ac_cpp='$CPP $CPPFLAGS' 4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4181ac_compiler_gnu=$ac_cv_c_compiler_gnu 4182 4183fi 4184echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4185echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4186 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4187 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4188 CFLAGS="$SAVE_CFLAGS" 4189 fi 4190 ;; 4191 4192esac 4193 4194need_locks="$enable_libtool_lock" 4195 4196 4197 4198echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4199echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4200if test "${ac_cv_header_stdc+set}" = set; then 4201 echo $ECHO_N "(cached) $ECHO_C" >&6 4202else 4203 cat >conftest.$ac_ext <<_ACEOF 4204#line $LINENO "configure" 4205/* confdefs.h. */ 4206_ACEOF 4207cat confdefs.h >>conftest.$ac_ext 4208cat >>conftest.$ac_ext <<_ACEOF 4209/* end confdefs.h. */ 4210#include <stdlib.h> 4211#include <stdarg.h> 4212#include <string.h> 4213#include <float.h> 4214 4215int 4216main () 4217{ 4218 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223rm -f conftest.$ac_objext 4224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4225 (eval $ac_compile) 2>&5 4226 ac_status=$? 4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4228 (exit $ac_status); } && 4229 { ac_try='test -s conftest.$ac_objext' 4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4231 (eval $ac_try) 2>&5 4232 ac_status=$? 4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4234 (exit $ac_status); }; }; then 4235 ac_cv_header_stdc=yes 4236else 4237 echo "$as_me: failed program was:" >&5 4238sed 's/^/| /' conftest.$ac_ext >&5 4239 4240ac_cv_header_stdc=no 4241fi 4242rm -f conftest.$ac_objext conftest.$ac_ext 4243 4244if test $ac_cv_header_stdc = yes; then 4245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4246 cat >conftest.$ac_ext <<_ACEOF 4247#line $LINENO "configure" 4248/* confdefs.h. */ 4249_ACEOF 4250cat confdefs.h >>conftest.$ac_ext 4251cat >>conftest.$ac_ext <<_ACEOF 4252/* end confdefs.h. */ 4253#include <string.h> 4254 4255_ACEOF 4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4257 $EGREP "memchr" >/dev/null 2>&1; then 4258 : 4259else 4260 ac_cv_header_stdc=no 4261fi 4262rm -f conftest* 4263 4264fi 4265 4266if test $ac_cv_header_stdc = yes; then 4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4268 cat >conftest.$ac_ext <<_ACEOF 4269#line $LINENO "configure" 4270/* confdefs.h. */ 4271_ACEOF 4272cat confdefs.h >>conftest.$ac_ext 4273cat >>conftest.$ac_ext <<_ACEOF 4274/* end confdefs.h. */ 4275#include <stdlib.h> 4276 4277_ACEOF 4278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4279 $EGREP "free" >/dev/null 2>&1; then 4280 : 4281else 4282 ac_cv_header_stdc=no 4283fi 4284rm -f conftest* 4285 4286fi 4287 4288if test $ac_cv_header_stdc = yes; then 4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4290 if test "$cross_compiling" = yes; then 4291 : 4292else 4293 cat >conftest.$ac_ext <<_ACEOF 4294#line $LINENO "configure" 4295/* confdefs.h. */ 4296_ACEOF 4297cat confdefs.h >>conftest.$ac_ext 4298cat >>conftest.$ac_ext <<_ACEOF 4299/* end confdefs.h. */ 4300#include <ctype.h> 4301#if ((' ' & 0x0FF) == 0x020) 4302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4304#else 4305# define ISLOWER(c) \ 4306 (('a' <= (c) && (c) <= 'i') \ 4307 || ('j' <= (c) && (c) <= 'r') \ 4308 || ('s' <= (c) && (c) <= 'z')) 4309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4310#endif 4311 4312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4313int 4314main () 4315{ 4316 int i; 4317 for (i = 0; i < 256; i++) 4318 if (XOR (islower (i), ISLOWER (i)) 4319 || toupper (i) != TOUPPER (i)) 4320 exit(2); 4321 exit (0); 4322} 4323_ACEOF 4324rm -f conftest$ac_exeext 4325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4326 (eval $ac_link) 2>&5 4327 ac_status=$? 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4331 (eval $ac_try) 2>&5 4332 ac_status=$? 4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4334 (exit $ac_status); }; }; then 4335 : 4336else 4337 echo "$as_me: program exited with status $ac_status" >&5 4338echo "$as_me: failed program was:" >&5 4339sed 's/^/| /' conftest.$ac_ext >&5 4340 4341( exit $ac_status ) 4342ac_cv_header_stdc=no 4343fi 4344rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4345fi 4346fi 4347fi 4348echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4349echo "${ECHO_T}$ac_cv_header_stdc" >&6 4350if test $ac_cv_header_stdc = yes; then 4351 4352cat >>confdefs.h <<\_ACEOF 4353#define STDC_HEADERS 1 4354_ACEOF 4355 4356fi 4357 4358# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4369 inttypes.h stdint.h unistd.h 4370do 4371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4372echo "$as_me:$LINENO: checking for $ac_header" >&5 4373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4374if eval "test \"\${$as_ac_Header+set}\" = set"; then 4375 echo $ECHO_N "(cached) $ECHO_C" >&6 4376else 4377 cat >conftest.$ac_ext <<_ACEOF 4378#line $LINENO "configure" 4379/* confdefs.h. */ 4380_ACEOF 4381cat confdefs.h >>conftest.$ac_ext 4382cat >>conftest.$ac_ext <<_ACEOF 4383/* end confdefs.h. */ 4384$ac_includes_default 4385 4386#include <$ac_header> 4387_ACEOF 4388rm -f conftest.$ac_objext 4389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4390 (eval $ac_compile) 2>&5 4391 ac_status=$? 4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4393 (exit $ac_status); } && 4394 { ac_try='test -s conftest.$ac_objext' 4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4396 (eval $ac_try) 2>&5 4397 ac_status=$? 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); }; }; then 4400 eval "$as_ac_Header=yes" 4401else 4402 echo "$as_me: failed program was:" >&5 4403sed 's/^/| /' conftest.$ac_ext >&5 4404 4405eval "$as_ac_Header=no" 4406fi 4407rm -f conftest.$ac_objext conftest.$ac_ext 4408fi 4409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4411if test `eval echo '${'$as_ac_Header'}'` = yes; then 4412 cat >>confdefs.h <<_ACEOF 4413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4414_ACEOF 4415 4416fi 4417 4418done 4419 4420 4421 4422for ac_header in dlfcn.h 4423do 4424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4425if eval "test \"\${$as_ac_Header+set}\" = set"; then 4426 echo "$as_me:$LINENO: checking for $ac_header" >&5 4427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4428if eval "test \"\${$as_ac_Header+set}\" = set"; then 4429 echo $ECHO_N "(cached) $ECHO_C" >&6 4430fi 4431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4433else 4434 # Is the header compilable? 4435echo "$as_me:$LINENO: checking $ac_header usability" >&5 4436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4437cat >conftest.$ac_ext <<_ACEOF 4438#line $LINENO "configure" 4439/* confdefs.h. */ 4440_ACEOF 4441cat confdefs.h >>conftest.$ac_ext 4442cat >>conftest.$ac_ext <<_ACEOF 4443/* end confdefs.h. */ 4444$ac_includes_default 4445#include <$ac_header> 4446_ACEOF 4447rm -f conftest.$ac_objext 4448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4449 (eval $ac_compile) 2>&5 4450 ac_status=$? 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); } && 4453 { ac_try='test -s conftest.$ac_objext' 4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4455 (eval $ac_try) 2>&5 4456 ac_status=$? 4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4458 (exit $ac_status); }; }; then 4459 ac_header_compiler=yes 4460else 4461 echo "$as_me: failed program was:" >&5 4462sed 's/^/| /' conftest.$ac_ext >&5 4463 4464ac_header_compiler=no 4465fi 4466rm -f conftest.$ac_objext conftest.$ac_ext 4467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4468echo "${ECHO_T}$ac_header_compiler" >&6 4469 4470# Is the header present? 4471echo "$as_me:$LINENO: checking $ac_header presence" >&5 4472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4473cat >conftest.$ac_ext <<_ACEOF 4474#line $LINENO "configure" 4475/* confdefs.h. */ 4476_ACEOF 4477cat confdefs.h >>conftest.$ac_ext 4478cat >>conftest.$ac_ext <<_ACEOF 4479/* end confdefs.h. */ 4480#include <$ac_header> 4481_ACEOF 4482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4484 ac_status=$? 4485 grep -v '^ *+' conftest.er1 >conftest.err 4486 rm -f conftest.er1 4487 cat conftest.err >&5 4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4489 (exit $ac_status); } >/dev/null; then 4490 if test -s conftest.err; then 4491 ac_cpp_err=$ac_c_preproc_warn_flag 4492 else 4493 ac_cpp_err= 4494 fi 4495else 4496 ac_cpp_err=yes 4497fi 4498if test -z "$ac_cpp_err"; then 4499 ac_header_preproc=yes 4500else 4501 echo "$as_me: failed program was:" >&5 4502sed 's/^/| /' conftest.$ac_ext >&5 4503 4504 ac_header_preproc=no 4505fi 4506rm -f conftest.err conftest.$ac_ext 4507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4508echo "${ECHO_T}$ac_header_preproc" >&6 4509 4510# So? What about this header? 4511case $ac_header_compiler:$ac_header_preproc in 4512 yes:no ) 4513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4517 ( 4518 cat <<\_ASBOX 4519## ------------------------------------ ## 4520## Report this to bug-autoconf@gnu.org. ## 4521## ------------------------------------ ## 4522_ASBOX 4523 ) | 4524 sed "s/^/$as_me: WARNING: /" >&2 4525 ;; 4526 no:yes ) 4527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4533 ( 4534 cat <<\_ASBOX 4535## ------------------------------------ ## 4536## Report this to bug-autoconf@gnu.org. ## 4537## ------------------------------------ ## 4538_ASBOX 4539 ) | 4540 sed "s/^/$as_me: WARNING: /" >&2 4541 ;; 4542esac 4543echo "$as_me:$LINENO: checking for $ac_header" >&5 4544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4545if eval "test \"\${$as_ac_Header+set}\" = set"; then 4546 echo $ECHO_N "(cached) $ECHO_C" >&6 4547else 4548 eval "$as_ac_Header=$ac_header_preproc" 4549fi 4550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4552 4553fi 4554if test `eval echo '${'$as_ac_Header'}'` = yes; then 4555 cat >>confdefs.h <<_ACEOF 4556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4557_ACEOF 4558 4559fi 4560 4561done 4562 4563ac_ext=cc 4564ac_cpp='$CXXCPP $CPPFLAGS' 4565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4568echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4569echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4570if test -z "$CXXCPP"; then 4571 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4572 echo $ECHO_N "(cached) $ECHO_C" >&6 4573else 4574 # Double quotes because CXXCPP needs to be expanded 4575 for CXXCPP in "$CXX -E" "/lib/cpp" 4576 do 4577 ac_preproc_ok=false 4578for ac_cxx_preproc_warn_flag in '' yes 4579do 4580 # Use a header file that comes with gcc, so configuring glibc 4581 # with a fresh cross-compiler works. 4582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4583 # <limits.h> exists even on freestanding compilers. 4584 # On the NeXT, cc -E runs the code through the compiler's parser, 4585 # not just through cpp. "Syntax error" is here to catch this case. 4586 cat >conftest.$ac_ext <<_ACEOF 4587#line $LINENO "configure" 4588/* confdefs.h. */ 4589_ACEOF 4590cat confdefs.h >>conftest.$ac_ext 4591cat >>conftest.$ac_ext <<_ACEOF 4592/* end confdefs.h. */ 4593#ifdef __STDC__ 4594# include <limits.h> 4595#else 4596# include <assert.h> 4597#endif 4598 Syntax error 4599_ACEOF 4600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4602 ac_status=$? 4603 grep -v '^ *+' conftest.er1 >conftest.err 4604 rm -f conftest.er1 4605 cat conftest.err >&5 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4607 (exit $ac_status); } >/dev/null; then 4608 if test -s conftest.err; then 4609 ac_cpp_err=$ac_cxx_preproc_warn_flag 4610 else 4611 ac_cpp_err= 4612 fi 4613else 4614 ac_cpp_err=yes 4615fi 4616if test -z "$ac_cpp_err"; then 4617 : 4618else 4619 echo "$as_me: failed program was:" >&5 4620sed 's/^/| /' conftest.$ac_ext >&5 4621 4622 # Broken: fails on valid input. 4623continue 4624fi 4625rm -f conftest.err conftest.$ac_ext 4626 4627 # OK, works on sane cases. Now check whether non-existent headers 4628 # can be detected and how. 4629 cat >conftest.$ac_ext <<_ACEOF 4630#line $LINENO "configure" 4631/* confdefs.h. */ 4632_ACEOF 4633cat confdefs.h >>conftest.$ac_ext 4634cat >>conftest.$ac_ext <<_ACEOF 4635/* end confdefs.h. */ 4636#include <ac_nonexistent.h> 4637_ACEOF 4638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4640 ac_status=$? 4641 grep -v '^ *+' conftest.er1 >conftest.err 4642 rm -f conftest.er1 4643 cat conftest.err >&5 4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4645 (exit $ac_status); } >/dev/null; then 4646 if test -s conftest.err; then 4647 ac_cpp_err=$ac_cxx_preproc_warn_flag 4648 else 4649 ac_cpp_err= 4650 fi 4651else 4652 ac_cpp_err=yes 4653fi 4654if test -z "$ac_cpp_err"; then 4655 # Broken: success on invalid input. 4656continue 4657else 4658 echo "$as_me: failed program was:" >&5 4659sed 's/^/| /' conftest.$ac_ext >&5 4660 4661 # Passes both tests. 4662ac_preproc_ok=: 4663break 4664fi 4665rm -f conftest.err conftest.$ac_ext 4666 4667done 4668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4669rm -f conftest.err conftest.$ac_ext 4670if $ac_preproc_ok; then 4671 break 4672fi 4673 4674 done 4675 ac_cv_prog_CXXCPP=$CXXCPP 4676 4677fi 4678 CXXCPP=$ac_cv_prog_CXXCPP 4679else 4680 ac_cv_prog_CXXCPP=$CXXCPP 4681fi 4682echo "$as_me:$LINENO: result: $CXXCPP" >&5 4683echo "${ECHO_T}$CXXCPP" >&6 4684ac_preproc_ok=false 4685for ac_cxx_preproc_warn_flag in '' yes 4686do 4687 # Use a header file that comes with gcc, so configuring glibc 4688 # with a fresh cross-compiler works. 4689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4690 # <limits.h> exists even on freestanding compilers. 4691 # On the NeXT, cc -E runs the code through the compiler's parser, 4692 # not just through cpp. "Syntax error" is here to catch this case. 4693 cat >conftest.$ac_ext <<_ACEOF 4694#line $LINENO "configure" 4695/* confdefs.h. */ 4696_ACEOF 4697cat confdefs.h >>conftest.$ac_ext 4698cat >>conftest.$ac_ext <<_ACEOF 4699/* end confdefs.h. */ 4700#ifdef __STDC__ 4701# include <limits.h> 4702#else 4703# include <assert.h> 4704#endif 4705 Syntax error 4706_ACEOF 4707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4709 ac_status=$? 4710 grep -v '^ *+' conftest.er1 >conftest.err 4711 rm -f conftest.er1 4712 cat conftest.err >&5 4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4714 (exit $ac_status); } >/dev/null; then 4715 if test -s conftest.err; then 4716 ac_cpp_err=$ac_cxx_preproc_warn_flag 4717 else 4718 ac_cpp_err= 4719 fi 4720else 4721 ac_cpp_err=yes 4722fi 4723if test -z "$ac_cpp_err"; then 4724 : 4725else 4726 echo "$as_me: failed program was:" >&5 4727sed 's/^/| /' conftest.$ac_ext >&5 4728 4729 # Broken: fails on valid input. 4730continue 4731fi 4732rm -f conftest.err conftest.$ac_ext 4733 4734 # OK, works on sane cases. Now check whether non-existent headers 4735 # can be detected and how. 4736 cat >conftest.$ac_ext <<_ACEOF 4737#line $LINENO "configure" 4738/* confdefs.h. */ 4739_ACEOF 4740cat confdefs.h >>conftest.$ac_ext 4741cat >>conftest.$ac_ext <<_ACEOF 4742/* end confdefs.h. */ 4743#include <ac_nonexistent.h> 4744_ACEOF 4745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4747 ac_status=$? 4748 grep -v '^ *+' conftest.er1 >conftest.err 4749 rm -f conftest.er1 4750 cat conftest.err >&5 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); } >/dev/null; then 4753 if test -s conftest.err; then 4754 ac_cpp_err=$ac_cxx_preproc_warn_flag 4755 else 4756 ac_cpp_err= 4757 fi 4758else 4759 ac_cpp_err=yes 4760fi 4761if test -z "$ac_cpp_err"; then 4762 # Broken: success on invalid input. 4763continue 4764else 4765 echo "$as_me: failed program was:" >&5 4766sed 's/^/| /' conftest.$ac_ext >&5 4767 4768 # Passes both tests. 4769ac_preproc_ok=: 4770break 4771fi 4772rm -f conftest.err conftest.$ac_ext 4773 4774done 4775# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4776rm -f conftest.err conftest.$ac_ext 4777if $ac_preproc_ok; then 4778 : 4779else 4780 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4781See \`config.log' for more details." >&5 4782echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4783See \`config.log' for more details." >&2;} 4784 { (exit 1); exit 1; }; } 4785fi 4786 4787ac_ext=cc 4788ac_cpp='$CXXCPP $CPPFLAGS' 4789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4792 4793 4794ac_ext=f 4795ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4796ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4797ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4798if test -n "$ac_tool_prefix"; then 4799 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 4800 do 4801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4802set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4803echo "$as_me:$LINENO: checking for $ac_word" >&5 4804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4805if test "${ac_cv_prog_F77+set}" = set; then 4806 echo $ECHO_N "(cached) $ECHO_C" >&6 4807else 4808 if test -n "$F77"; then 4809 ac_cv_prog_F77="$F77" # Let the user override the test. 4810else 4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4812for as_dir in $PATH 4813do 4814 IFS=$as_save_IFS 4815 test -z "$as_dir" && as_dir=. 4816 for ac_exec_ext in '' $ac_executable_extensions; do 4817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4818 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4820 break 2 4821 fi 4822done 4823done 4824 4825fi 4826fi 4827F77=$ac_cv_prog_F77 4828if test -n "$F77"; then 4829 echo "$as_me:$LINENO: result: $F77" >&5 4830echo "${ECHO_T}$F77" >&6 4831else 4832 echo "$as_me:$LINENO: result: no" >&5 4833echo "${ECHO_T}no" >&6 4834fi 4835 4836 test -n "$F77" && break 4837 done 4838fi 4839if test -z "$F77"; then 4840 ac_ct_F77=$F77 4841 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 4842do 4843 # Extract the first word of "$ac_prog", so it can be a program name with args. 4844set dummy $ac_prog; ac_word=$2 4845echo "$as_me:$LINENO: checking for $ac_word" >&5 4846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4847if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4848 echo $ECHO_N "(cached) $ECHO_C" >&6 4849else 4850 if test -n "$ac_ct_F77"; then 4851 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4852else 4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4854for as_dir in $PATH 4855do 4856 IFS=$as_save_IFS 4857 test -z "$as_dir" && as_dir=. 4858 for ac_exec_ext in '' $ac_executable_extensions; do 4859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4860 ac_cv_prog_ac_ct_F77="$ac_prog" 4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4862 break 2 4863 fi 4864done 4865done 4866 4867fi 4868fi 4869ac_ct_F77=$ac_cv_prog_ac_ct_F77 4870if test -n "$ac_ct_F77"; then 4871 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4872echo "${ECHO_T}$ac_ct_F77" >&6 4873else 4874 echo "$as_me:$LINENO: result: no" >&5 4875echo "${ECHO_T}no" >&6 4876fi 4877 4878 test -n "$ac_ct_F77" && break 4879done 4880 4881 F77=$ac_ct_F77 4882fi 4883 4884 4885# Provide some information about the compiler. 4886echo "$as_me:4886:" \ 4887 "checking for Fortran 77 compiler version" >&5 4888ac_compiler=`set X $ac_compile; echo $2` 4889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4890 (eval $ac_compiler --version </dev/null >&5) 2>&5 4891 ac_status=$? 4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); } 4894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4895 (eval $ac_compiler -v </dev/null >&5) 2>&5 4896 ac_status=$? 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); } 4899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4900 (eval $ac_compiler -V </dev/null >&5) 2>&5 4901 ac_status=$? 4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4903 (exit $ac_status); } 4904 4905# If we don't use `.F' as extension, the preprocessor is not run on the 4906# input file. 4907ac_save_ext=$ac_ext 4908ac_ext=F 4909echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4910echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4911if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4912 echo $ECHO_N "(cached) $ECHO_C" >&6 4913else 4914 cat >conftest.$ac_ext <<_ACEOF 4915 program main 4916#ifndef __GNUC__ 4917 choke me 4918#endif 4919 4920 end 4921_ACEOF 4922rm -f conftest.$ac_objext 4923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4924 (eval $ac_compile) 2>&5 4925 ac_status=$? 4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4927 (exit $ac_status); } && 4928 { ac_try='test -s conftest.$ac_objext' 4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4930 (eval $ac_try) 2>&5 4931 ac_status=$? 4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4933 (exit $ac_status); }; }; then 4934 ac_compiler_gnu=yes 4935else 4936 echo "$as_me: failed program was:" >&5 4937sed 's/^/| /' conftest.$ac_ext >&5 4938 4939ac_compiler_gnu=no 4940fi 4941rm -f conftest.$ac_objext conftest.$ac_ext 4942ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4943 4944fi 4945echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4946echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4947ac_ext=$ac_save_ext 4948G77=`test $ac_compiler_gnu = yes && echo yes` 4949ac_test_FFLAGS=${FFLAGS+set} 4950ac_save_FFLAGS=$FFLAGS 4951FFLAGS= 4952echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4953echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4954if test "${ac_cv_prog_f77_g+set}" = set; then 4955 echo $ECHO_N "(cached) $ECHO_C" >&6 4956else 4957 FFLAGS=-g 4958cat >conftest.$ac_ext <<_ACEOF 4959 program main 4960 4961 end 4962_ACEOF 4963rm -f conftest.$ac_objext 4964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4965 (eval $ac_compile) 2>&5 4966 ac_status=$? 4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); } && 4969 { ac_try='test -s conftest.$ac_objext' 4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4971 (eval $ac_try) 2>&5 4972 ac_status=$? 4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4974 (exit $ac_status); }; }; then 4975 ac_cv_prog_f77_g=yes 4976else 4977 echo "$as_me: failed program was:" >&5 4978sed 's/^/| /' conftest.$ac_ext >&5 4979 4980ac_cv_prog_f77_g=no 4981fi 4982rm -f conftest.$ac_objext conftest.$ac_ext 4983 4984fi 4985echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4986echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4987if test "$ac_test_FFLAGS" = set; then 4988 FFLAGS=$ac_save_FFLAGS 4989elif test $ac_cv_prog_f77_g = yes; then 4990 if test "$G77" = yes; then 4991 FFLAGS="-g -O2" 4992 else 4993 FFLAGS="-g" 4994 fi 4995else 4996 if test "$G77" = yes; then 4997 FFLAGS="-O2" 4998 else 4999 FFLAGS= 5000 fi 5001fi 5002ac_ext=c 5003ac_cpp='$CPP $CPPFLAGS' 5004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5006ac_compiler_gnu=$ac_cv_c_compiler_gnu 5007 5008 5009 5010# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5011 5012# find the maximum length of command line arguments 5013echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5014echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5015if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5016 echo $ECHO_N "(cached) $ECHO_C" >&6 5017else 5018 i=0 5019 testring="ABCD" 5020 5021 case $build_os in 5022 msdosdjgpp*) 5023 # On DJGPP, this test can blow up pretty badly due to problems in libc 5024 # (any single argument exceeding 2000 bytes causes a buffer overrun 5025 # during glob expansion). Even if it were fixed, the result of this 5026 # check would be larger than it should be. 5027 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5028 ;; 5029 5030 gnu*) 5031 # Under GNU Hurd, this test is not required because there is 5032 # no limit to the length of command line arguments. 5033 # Libtool will interpret -1 as no limit whatsoever 5034 lt_cv_sys_max_cmd_len=-1; 5035 ;; 5036 5037 cygwin* | mingw*) 5038 # On Win9x/ME, this test blows up -- it succeeds, but takes 5039 # about 5 minutes as the teststring grows exponentially. 5040 # Worse, since 9x/ME are not pre-emptively multitasking, 5041 # you end up with a "frozen" computer, even though with patience 5042 # the test eventually succeeds (with a max line length of 256k). 5043 # Instead, let's just punt: use the minimum linelength reported by 5044 # all of the supported platforms: 8192 (on NT/2K/XP). 5045 lt_cv_sys_max_cmd_len=8192; 5046 ;; 5047 5048 *) 5049 # If test is not a shell built-in, we'll probably end up computing a 5050 # maximum length that is only half of the actual maximum length, but 5051 # we can't tell. 5052 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 5053 = "XX$testring") >/dev/null 2>&1 && 5054 new_result=`expr "X$testring" : ".*" 2>&1` && 5055 lt_cv_sys_max_cmd_len=$new_result && 5056 test $i != 17 # 1/2 MB should be enough 5057 do 5058 i=`expr $i + 1` 5059 testring=$testring$testring 5060 done 5061 testring= 5062 # Add a significant safety factor because C++ compilers can tack on massive 5063 # amounts of additional arguments before passing them to the linker. 5064 # It appears as though 1/2 is a usable value. 5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5066 ;; 5067 esac 5068 5069fi 5070 5071if test -n $lt_cv_sys_max_cmd_len ; then 5072 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5073echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5074else 5075 echo "$as_me:$LINENO: result: none" >&5 5076echo "${ECHO_T}none" >&6 5077fi 5078 5079 5080 5081 5082# Check for command to grab the raw symbol name followed by C symbol from nm. 5083echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5084echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5085if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5086 echo $ECHO_N "(cached) $ECHO_C" >&6 5087else 5088 5089# These are sane defaults that work on at least a few old systems. 5090# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5091 5092# Character class describing NM global symbol codes. 5093symcode='[BCDEGRST]' 5094 5095# Regexp to match symbols that can be accessed directly from C. 5096sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5097 5098# Transform the above into a raw symbol and a C symbol. 5099symxfrm='\1 \2\3 \3' 5100 5101# Transform an extracted symbol line into a proper C declaration 5102lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5103 5104# Transform an extracted symbol line into symbol name and symbol address 5105lt_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'" 5106 5107# Define system-specific variables. 5108case $host_os in 5109aix*) 5110 symcode='[BCDT]' 5111 ;; 5112cygwin* | mingw* | pw32*) 5113 symcode='[ABCDGISTW]' 5114 ;; 5115hpux*) # Its linker distinguishes data from code symbols 5116 if test "$host_cpu" = ia64; then 5117 symcode='[ABCDEGRST]' 5118 fi 5119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5120 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'" 5121 ;; 5122irix* | nonstopux*) 5123 symcode='[BCDEGRST]' 5124 ;; 5125osf*) 5126 symcode='[BCDEGQRST]' 5127 ;; 5128solaris* | sysv5*) 5129 symcode='[BDT]' 5130 ;; 5131sysv4) 5132 symcode='[DFNSTU]' 5133 ;; 5134esac 5135 5136# Handle CRLF in mingw tool chain 5137opt_cr= 5138case $build_os in 5139mingw*) 5140 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5141 ;; 5142esac 5143 5144# If we're using GNU nm, then use its standard symbol codes. 5145case `$NM -V 2>&1` in 5146*GNU* | *'with BFD'*) 5147 symcode='[ABCDGISTW]' ;; 5148esac 5149 5150# Try without a prefix undercore, then with it. 5151for ac_symprfx in "" "_"; do 5152 5153 # Write the raw and C identifiers. 5154 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5155 5156 # Check to see that the pipe works correctly. 5157 pipe_works=no 5158 5159 rm -f conftest* 5160 cat > conftest.$ac_ext <<EOF 5161#ifdef __cplusplus 5162extern "C" { 5163#endif 5164char nm_test_var; 5165void nm_test_func(){} 5166#ifdef __cplusplus 5167} 5168#endif 5169int main(){nm_test_var='a';nm_test_func();return(0);} 5170EOF 5171 5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5173 (eval $ac_compile) 2>&5 5174 ac_status=$? 5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5176 (exit $ac_status); }; then 5177 # Now try to grab the symbols. 5178 nlist=conftest.nm 5179 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5180 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5181 ac_status=$? 5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5183 (exit $ac_status); } && test -s "$nlist"; then 5184 # Try sorting and uniquifying the output. 5185 if sort "$nlist" | uniq > "$nlist"T; then 5186 mv -f "$nlist"T "$nlist" 5187 else 5188 rm -f "$nlist"T 5189 fi 5190 5191 # Make sure that we snagged all the symbols we need. 5192 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5193 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5194 cat <<EOF > conftest.$ac_ext 5195#ifdef __cplusplus 5196extern "C" { 5197#endif 5198 5199EOF 5200 # Now generate the symbol file. 5201 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5202 5203 cat <<EOF >> conftest.$ac_ext 5204#if defined (__STDC__) && __STDC__ 5205# define lt_ptr_t void * 5206#else 5207# define lt_ptr_t char * 5208# define const 5209#endif 5210 5211/* The mapping between symbol names and symbols. */ 5212const struct { 5213 const char *name; 5214 lt_ptr_t address; 5215} 5216lt_preloaded_symbols[] = 5217{ 5218EOF 5219 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5220 cat <<\EOF >> conftest.$ac_ext 5221 {0, (lt_ptr_t) 0} 5222}; 5223 5224#ifdef __cplusplus 5225} 5226#endif 5227EOF 5228 # Now try linking the two files. 5229 mv conftest.$ac_objext conftstm.$ac_objext 5230 lt_save_LIBS="$LIBS" 5231 lt_save_CFLAGS="$CFLAGS" 5232 LIBS="conftstm.$ac_objext" 5233 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5235 (eval $ac_link) 2>&5 5236 ac_status=$? 5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5238 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5239 pipe_works=yes 5240 fi 5241 LIBS="$lt_save_LIBS" 5242 CFLAGS="$lt_save_CFLAGS" 5243 else 5244 echo "cannot find nm_test_func in $nlist" >&5 5245 fi 5246 else 5247 echo "cannot find nm_test_var in $nlist" >&5 5248 fi 5249 else 5250 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5251 fi 5252 else 5253 echo "$progname: failed program was:" >&5 5254 cat conftest.$ac_ext >&5 5255 fi 5256 rm -f conftest* conftst* 5257 5258 # Do not use the global_symbol_pipe unless it works. 5259 if test "$pipe_works" = yes; then 5260 break 5261 else 5262 lt_cv_sys_global_symbol_pipe= 5263 fi 5264done 5265 5266fi 5267 5268if test -z "$lt_cv_sys_global_symbol_pipe"; then 5269 lt_cv_sys_global_symbol_to_cdecl= 5270fi 5271if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5272 echo "$as_me:$LINENO: result: failed" >&5 5273echo "${ECHO_T}failed" >&6 5274else 5275 echo "$as_me:$LINENO: result: ok" >&5 5276echo "${ECHO_T}ok" >&6 5277fi 5278 5279echo "$as_me:$LINENO: checking for objdir" >&5 5280echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5281if test "${lt_cv_objdir+set}" = set; then 5282 echo $ECHO_N "(cached) $ECHO_C" >&6 5283else 5284 rm -f .libs 2>/dev/null 5285mkdir .libs 2>/dev/null 5286if test -d .libs; then 5287 lt_cv_objdir=.libs 5288else 5289 # MS-DOS does not allow filenames that begin with a dot. 5290 lt_cv_objdir=_libs 5291fi 5292rmdir .libs 2>/dev/null 5293fi 5294echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5295echo "${ECHO_T}$lt_cv_objdir" >&6 5296objdir=$lt_cv_objdir 5297 5298 5299 5300 5301 5302case $host_os in 5303aix3*) 5304 # AIX sometimes has problems with the GCC collect2 program. For some 5305 # reason, if we set the COLLECT_NAMES environment variable, the problems 5306 # vanish in a puff of smoke. 5307 if test "X${COLLECT_NAMES+set}" != Xset; then 5308 COLLECT_NAMES= 5309 export COLLECT_NAMES 5310 fi 5311 ;; 5312esac 5313 5314# Sed substitution that helps us do robust quoting. It backslashifies 5315# metacharacters that are still active within double-quoted strings. 5316Xsed='sed -e s/^X//' 5317sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5318 5319# Same as above, but do not quote variable references. 5320double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5321 5322# Sed substitution to delay expansion of an escaped shell variable in a 5323# double_quote_subst'ed string. 5324delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5325 5326# Sed substitution to avoid accidental globbing in evaled expressions 5327no_glob_subst='s/\*/\\\*/g' 5328 5329# Constants: 5330rm="rm -f" 5331 5332# Global variables: 5333default_ofile=mklib 5334can_build_shared=yes 5335 5336# All known linkers require a `.a' archive for static linking (except M$VC, 5337# which needs '.lib'). 5338libext=a 5339ltmain="$ac_aux_dir/ltmain.sh" 5340ofile="$default_ofile" 5341with_gnu_ld="$lt_cv_prog_gnu_ld" 5342 5343if test -n "$ac_tool_prefix"; then 5344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5345set dummy ${ac_tool_prefix}ar; ac_word=$2 5346echo "$as_me:$LINENO: checking for $ac_word" >&5 5347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5348if test "${ac_cv_prog_AR+set}" = set; then 5349 echo $ECHO_N "(cached) $ECHO_C" >&6 5350else 5351 if test -n "$AR"; then 5352 ac_cv_prog_AR="$AR" # Let the user override the test. 5353else 5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5355for as_dir in $PATH 5356do 5357 IFS=$as_save_IFS 5358 test -z "$as_dir" && as_dir=. 5359 for ac_exec_ext in '' $ac_executable_extensions; do 5360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5361 ac_cv_prog_AR="${ac_tool_prefix}ar" 5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5363 break 2 5364 fi 5365done 5366done 5367 5368fi 5369fi 5370AR=$ac_cv_prog_AR 5371if test -n "$AR"; then 5372 echo "$as_me:$LINENO: result: $AR" >&5 5373echo "${ECHO_T}$AR" >&6 5374else 5375 echo "$as_me:$LINENO: result: no" >&5 5376echo "${ECHO_T}no" >&6 5377fi 5378 5379fi 5380if test -z "$ac_cv_prog_AR"; then 5381 ac_ct_AR=$AR 5382 # Extract the first word of "ar", so it can be a program name with args. 5383set dummy ar; ac_word=$2 5384echo "$as_me:$LINENO: checking for $ac_word" >&5 5385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5386if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5387 echo $ECHO_N "(cached) $ECHO_C" >&6 5388else 5389 if test -n "$ac_ct_AR"; then 5390 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5391else 5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5393for as_dir in $PATH 5394do 5395 IFS=$as_save_IFS 5396 test -z "$as_dir" && as_dir=. 5397 for ac_exec_ext in '' $ac_executable_extensions; do 5398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5399 ac_cv_prog_ac_ct_AR="ar" 5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5401 break 2 5402 fi 5403done 5404done 5405 5406 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5407fi 5408fi 5409ac_ct_AR=$ac_cv_prog_ac_ct_AR 5410if test -n "$ac_ct_AR"; then 5411 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5412echo "${ECHO_T}$ac_ct_AR" >&6 5413else 5414 echo "$as_me:$LINENO: result: no" >&5 5415echo "${ECHO_T}no" >&6 5416fi 5417 5418 AR=$ac_ct_AR 5419else 5420 AR="$ac_cv_prog_AR" 5421fi 5422 5423if test -n "$ac_tool_prefix"; then 5424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5425set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5426echo "$as_me:$LINENO: checking for $ac_word" >&5 5427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5428if test "${ac_cv_prog_RANLIB+set}" = set; then 5429 echo $ECHO_N "(cached) $ECHO_C" >&6 5430else 5431 if test -n "$RANLIB"; then 5432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5433else 5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5435for as_dir in $PATH 5436do 5437 IFS=$as_save_IFS 5438 test -z "$as_dir" && as_dir=. 5439 for ac_exec_ext in '' $ac_executable_extensions; do 5440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5441 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5443 break 2 5444 fi 5445done 5446done 5447 5448fi 5449fi 5450RANLIB=$ac_cv_prog_RANLIB 5451if test -n "$RANLIB"; then 5452 echo "$as_me:$LINENO: result: $RANLIB" >&5 5453echo "${ECHO_T}$RANLIB" >&6 5454else 5455 echo "$as_me:$LINENO: result: no" >&5 5456echo "${ECHO_T}no" >&6 5457fi 5458 5459fi 5460if test -z "$ac_cv_prog_RANLIB"; then 5461 ac_ct_RANLIB=$RANLIB 5462 # Extract the first word of "ranlib", so it can be a program name with args. 5463set dummy ranlib; ac_word=$2 5464echo "$as_me:$LINENO: checking for $ac_word" >&5 5465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5466if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5467 echo $ECHO_N "(cached) $ECHO_C" >&6 5468else 5469 if test -n "$ac_ct_RANLIB"; then 5470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5471else 5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5473for as_dir in $PATH 5474do 5475 IFS=$as_save_IFS 5476 test -z "$as_dir" && as_dir=. 5477 for ac_exec_ext in '' $ac_executable_extensions; do 5478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5479 ac_cv_prog_ac_ct_RANLIB="ranlib" 5480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5481 break 2 5482 fi 5483done 5484done 5485 5486 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5487fi 5488fi 5489ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5490if test -n "$ac_ct_RANLIB"; then 5491 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5492echo "${ECHO_T}$ac_ct_RANLIB" >&6 5493else 5494 echo "$as_me:$LINENO: result: no" >&5 5495echo "${ECHO_T}no" >&6 5496fi 5497 5498 RANLIB=$ac_ct_RANLIB 5499else 5500 RANLIB="$ac_cv_prog_RANLIB" 5501fi 5502 5503if test -n "$ac_tool_prefix"; then 5504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5505set dummy ${ac_tool_prefix}strip; ac_word=$2 5506echo "$as_me:$LINENO: checking for $ac_word" >&5 5507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5508if test "${ac_cv_prog_STRIP+set}" = set; then 5509 echo $ECHO_N "(cached) $ECHO_C" >&6 5510else 5511 if test -n "$STRIP"; then 5512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5513else 5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5515for as_dir in $PATH 5516do 5517 IFS=$as_save_IFS 5518 test -z "$as_dir" && as_dir=. 5519 for ac_exec_ext in '' $ac_executable_extensions; do 5520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5521 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5523 break 2 5524 fi 5525done 5526done 5527 5528fi 5529fi 5530STRIP=$ac_cv_prog_STRIP 5531if test -n "$STRIP"; then 5532 echo "$as_me:$LINENO: result: $STRIP" >&5 5533echo "${ECHO_T}$STRIP" >&6 5534else 5535 echo "$as_me:$LINENO: result: no" >&5 5536echo "${ECHO_T}no" >&6 5537fi 5538 5539fi 5540if test -z "$ac_cv_prog_STRIP"; then 5541 ac_ct_STRIP=$STRIP 5542 # Extract the first word of "strip", so it can be a program name with args. 5543set dummy strip; ac_word=$2 5544echo "$as_me:$LINENO: checking for $ac_word" >&5 5545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5546if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5547 echo $ECHO_N "(cached) $ECHO_C" >&6 5548else 5549 if test -n "$ac_ct_STRIP"; then 5550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5551else 5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5553for as_dir in $PATH 5554do 5555 IFS=$as_save_IFS 5556 test -z "$as_dir" && as_dir=. 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5559 ac_cv_prog_ac_ct_STRIP="strip" 5560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5561 break 2 5562 fi 5563done 5564done 5565 5566 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5567fi 5568fi 5569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5570if test -n "$ac_ct_STRIP"; then 5571 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5572echo "${ECHO_T}$ac_ct_STRIP" >&6 5573else 5574 echo "$as_me:$LINENO: result: no" >&5 5575echo "${ECHO_T}no" >&6 5576fi 5577 5578 STRIP=$ac_ct_STRIP 5579else 5580 STRIP="$ac_cv_prog_STRIP" 5581fi 5582 5583 5584old_CC="$CC" 5585old_CFLAGS="$CFLAGS" 5586 5587# Set sane defaults for various variables 5588test -z "$AR" && AR=ar 5589test -z "$AR_FLAGS" && AR_FLAGS=cru 5590test -z "$AS" && AS=as 5591test -z "$CC" && CC=cc 5592test -z "$LTCC" && LTCC=$CC 5593test -z "$DLLTOOL" && DLLTOOL=dlltool 5594test -z "$LD" && LD=ld 5595test -z "$LN_S" && LN_S="ln -s" 5596test -z "$MAGIC_CMD" && MAGIC_CMD=file 5597test -z "$NM" && NM=nm 5598test -z "$SED" && SED=sed 5599test -z "$OBJDUMP" && OBJDUMP=objdump 5600test -z "$RANLIB" && RANLIB=: 5601test -z "$STRIP" && STRIP=: 5602test -z "$ac_objext" && ac_objext=o 5603 5604# Determine commands to create old-style static archives. 5605old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5606old_postinstall_cmds='chmod 644 $oldlib' 5607old_postuninstall_cmds= 5608 5609if test -n "$RANLIB"; then 5610 case $host_os in 5611 openbsd*) 5612 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5613 ;; 5614 *) 5615 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5616 ;; 5617 esac 5618 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5619fi 5620 5621# Only perform the check for file, if the check method requires it 5622case $deplibs_check_method in 5623file_magic*) 5624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5625 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5626echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5627if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5628 echo $ECHO_N "(cached) $ECHO_C" >&6 5629else 5630 case $MAGIC_CMD in 5631[\\/*] | ?:[\\/]*) 5632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5633 ;; 5634*) 5635 lt_save_MAGIC_CMD="$MAGIC_CMD" 5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5638 for ac_dir in $ac_dummy; do 5639 IFS="$lt_save_ifs" 5640 test -z "$ac_dir" && ac_dir=. 5641 if test -f $ac_dir/${ac_tool_prefix}file; then 5642 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5643 if test -n "$file_magic_test_file"; then 5644 case $deplibs_check_method in 5645 "file_magic "*) 5646 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5649 $EGREP "$file_magic_regex" > /dev/null; then 5650 : 5651 else 5652 cat <<EOF 1>&2 5653 5654*** Warning: the command libtool uses to detect shared libraries, 5655*** $file_magic_cmd, produces output that libtool cannot recognize. 5656*** The result is that libtool may fail to recognize shared libraries 5657*** as such. This will affect the creation of libtool libraries that 5658*** depend on shared libraries, but programs linked with such libtool 5659*** libraries will work regardless of this problem. Nevertheless, you 5660*** may want to report the problem to your system manager and/or to 5661*** bug-libtool@gnu.org 5662 5663EOF 5664 fi ;; 5665 esac 5666 fi 5667 break 5668 fi 5669 done 5670 IFS="$lt_save_ifs" 5671 MAGIC_CMD="$lt_save_MAGIC_CMD" 5672 ;; 5673esac 5674fi 5675 5676MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5677if test -n "$MAGIC_CMD"; then 5678 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5679echo "${ECHO_T}$MAGIC_CMD" >&6 5680else 5681 echo "$as_me:$LINENO: result: no" >&5 5682echo "${ECHO_T}no" >&6 5683fi 5684 5685if test -z "$lt_cv_path_MAGIC_CMD"; then 5686 if test -n "$ac_tool_prefix"; then 5687 echo "$as_me:$LINENO: checking for file" >&5 5688echo $ECHO_N "checking for file... $ECHO_C" >&6 5689if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5690 echo $ECHO_N "(cached) $ECHO_C" >&6 5691else 5692 case $MAGIC_CMD in 5693[\\/*] | ?:[\\/]*) 5694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5695 ;; 5696*) 5697 lt_save_MAGIC_CMD="$MAGIC_CMD" 5698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5700 for ac_dir in $ac_dummy; do 5701 IFS="$lt_save_ifs" 5702 test -z "$ac_dir" && ac_dir=. 5703 if test -f $ac_dir/file; then 5704 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5705 if test -n "$file_magic_test_file"; then 5706 case $deplibs_check_method in 5707 "file_magic "*) 5708 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5711 $EGREP "$file_magic_regex" > /dev/null; then 5712 : 5713 else 5714 cat <<EOF 1>&2 5715 5716*** Warning: the command libtool uses to detect shared libraries, 5717*** $file_magic_cmd, produces output that libtool cannot recognize. 5718*** The result is that libtool may fail to recognize shared libraries 5719*** as such. This will affect the creation of libtool libraries that 5720*** depend on shared libraries, but programs linked with such libtool 5721*** libraries will work regardless of this problem. Nevertheless, you 5722*** may want to report the problem to your system manager and/or to 5723*** bug-libtool@gnu.org 5724 5725EOF 5726 fi ;; 5727 esac 5728 fi 5729 break 5730 fi 5731 done 5732 IFS="$lt_save_ifs" 5733 MAGIC_CMD="$lt_save_MAGIC_CMD" 5734 ;; 5735esac 5736fi 5737 5738MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5739if test -n "$MAGIC_CMD"; then 5740 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5741echo "${ECHO_T}$MAGIC_CMD" >&6 5742else 5743 echo "$as_me:$LINENO: result: no" >&5 5744echo "${ECHO_T}no" >&6 5745fi 5746 5747 else 5748 MAGIC_CMD=: 5749 fi 5750fi 5751 5752 fi 5753 ;; 5754esac 5755 5756enable_dlopen=no 5757enable_win32_dll=no 5758 5759# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5760if test "${enable_libtool_lock+set}" = set; then 5761 enableval="$enable_libtool_lock" 5762 5763fi; 5764test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5765 5766 5767# Check whether --with-pic or --without-pic was given. 5768if test "${with_pic+set}" = set; then 5769 withval="$with_pic" 5770 pic_mode="$withval" 5771else 5772 pic_mode=default 5773fi; 5774test -z "$pic_mode" && pic_mode=default 5775 5776# Use C for the default configuration in the libtool script 5777tagname= 5778lt_save_CC="$CC" 5779ac_ext=c 5780ac_cpp='$CPP $CPPFLAGS' 5781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5783ac_compiler_gnu=$ac_cv_c_compiler_gnu 5784 5785 5786# Source file extension for C test sources. 5787ac_ext=c 5788 5789# Object file extension for compiled C test sources. 5790objext=o 5791objext=$objext 5792 5793# Code to be used in simple compile tests 5794lt_simple_compile_test_code="int some_variable = 0;\n" 5795 5796# Code to be used in simple link tests 5797lt_simple_link_test_code='int main(){return(0);}\n' 5798 5799 5800# If no C compiler was specified, use CC. 5801LTCC=${LTCC-"$CC"} 5802 5803# Allow CC to be a program name with arguments. 5804compiler=$CC 5805 5806 5807# 5808# Check for any special shared library compilation flags. 5809# 5810lt_prog_cc_shlib= 5811if test "$GCC" = no; then 5812 case $host_os in 5813 sco3.2v5*) 5814 lt_prog_cc_shlib='-belf' 5815 ;; 5816 esac 5817fi 5818if test -n "$lt_prog_cc_shlib"; then 5819 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5820echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5821 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5822 else 5823 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5824echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5825 lt_cv_prog_cc_can_build_shared=no 5826 fi 5827fi 5828 5829 5830# 5831# Check to make sure the static flag actually works. 5832# 5833echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 5834echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 5835if test "${lt_prog_compiler_static_works+set}" = set; then 5836 echo $ECHO_N "(cached) $ECHO_C" >&6 5837else 5838 lt_prog_compiler_static_works=no 5839 save_LDFLAGS="$LDFLAGS" 5840 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 5841 printf "$lt_simple_link_test_code" > conftest.$ac_ext 5842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 5843 # The compiler can only warn and ignore the option if not recognized 5844 # So say no if there are warnings 5845 if test -s conftest.err; then 5846 # Append any errors to the config.log. 5847 cat conftest.err 1>&5 5848 else 5849 lt_prog_compiler_static_works=yes 5850 fi 5851 fi 5852 $rm conftest* 5853 LDFLAGS="$save_LDFLAGS" 5854 5855fi 5856echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 5857echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 5858 5859if test x"$lt_prog_compiler_static_works" = xyes; then 5860 : 5861else 5862 lt_prog_compiler_static= 5863fi 5864 5865 5866 5867 5868lt_prog_compiler_no_builtin_flag= 5869 5870if test "$GCC" = yes; then 5871 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5872 5873 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5874echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5875if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5876 echo $ECHO_N "(cached) $ECHO_C" >&6 5877else 5878 lt_cv_prog_compiler_rtti_exceptions=no 5879 ac_outfile=conftest.$ac_objext 5880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5881 lt_compiler_flag="-fno-rtti -fno-exceptions" 5882 # Insert the option either (1) after the last *FLAGS variable, or 5883 # (2) before a word containing "conftest.", or (3) at the end. 5884 # Note that $ac_compile itself does not contain backslashes and begins 5885 # with a dollar sign (not a hyphen), so the echo should work correctly. 5886 # The option is referenced via a variable to avoid confusing sed. 5887 lt_compile=`echo "$ac_compile" | $SED \ 5888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5890 -e 's:$: $lt_compiler_flag:'` 5891 (eval echo "\"\$as_me:5891: $lt_compile\"" >&5) 5892 (eval "$lt_compile" 2>conftest.err) 5893 ac_status=$? 5894 cat conftest.err >&5 5895 echo "$as_me:5895: \$? = $ac_status" >&5 5896 if (exit $ac_status) && test -s "$ac_outfile"; then 5897 # The compiler can only warn and ignore the option if not recognized 5898 # So say no if there are warnings 5899 if test ! -s conftest.err; then 5900 lt_cv_prog_compiler_rtti_exceptions=yes 5901 fi 5902 fi 5903 $rm conftest* 5904 5905fi 5906echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5907echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5908 5909if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5911else 5912 : 5913fi 5914 5915fi 5916 5917lt_prog_compiler_wl= 5918lt_prog_compiler_pic= 5919lt_prog_compiler_static= 5920 5921echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5922echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5923 5924 if test "$GCC" = yes; then 5925 lt_prog_compiler_wl='-Wl,' 5926 lt_prog_compiler_static='-static' 5927 5928 case $host_os in 5929 aix*) 5930 # All AIX code is PIC. 5931 if test "$host_cpu" = ia64; then 5932 # AIX 5 now supports IA64 processor 5933 lt_prog_compiler_static='-Bstatic' 5934 fi 5935 ;; 5936 5937 amigaos*) 5938 # FIXME: we need at least 68020 code to build shared libraries, but 5939 # adding the `-m68020' flag to GCC prevents building anything better, 5940 # like `-m68040'. 5941 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5942 ;; 5943 5944 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5945 # PIC is the default for these OSes. 5946 ;; 5947 5948 mingw* | pw32* | os2*) 5949 # This hack is so that the source file can tell whether it is being 5950 # built for inclusion in a dll (and should export symbols for example). 5951 lt_prog_compiler_pic='-DDLL_EXPORT' 5952 ;; 5953 5954 darwin* | rhapsody*) 5955 # PIC is the default on this platform 5956 # Common symbols not allowed in MH_DYLIB files 5957 lt_prog_compiler_pic='-fno-common' 5958 ;; 5959 5960 msdosdjgpp*) 5961 # Just because we use GCC doesn't mean we suddenly get shared libraries 5962 # on systems that don't support them. 5963 lt_prog_compiler_can_build_shared=no 5964 enable_shared=no 5965 ;; 5966 5967 sysv4*MP*) 5968 if test -d /usr/nec; then 5969 lt_prog_compiler_pic=-Kconform_pic 5970 fi 5971 ;; 5972 5973 hpux*) 5974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5975 # not for PA HP-UX. 5976 case "$host_cpu" in 5977 hppa*64*|ia64*) 5978 # +Z the default 5979 ;; 5980 *) 5981 lt_prog_compiler_pic='-fPIC' 5982 ;; 5983 esac 5984 ;; 5985 5986 *) 5987 lt_prog_compiler_pic='-fPIC' 5988 ;; 5989 esac 5990 else 5991 # PORTME Check for flag to pass linker flags through the system compiler. 5992 case $host_os in 5993 aix*) 5994 lt_prog_compiler_wl='-Wl,' 5995 if test "$host_cpu" = ia64; then 5996 # AIX 5 now supports IA64 processor 5997 lt_prog_compiler_static='-Bstatic' 5998 else 5999 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6000 fi 6001 ;; 6002 6003 mingw* | pw32* | os2*) 6004 # This hack is so that the source file can tell whether it is being 6005 # built for inclusion in a dll (and should export symbols for example). 6006 lt_prog_compiler_pic='-DDLL_EXPORT' 6007 ;; 6008 6009 hpux9* | hpux10* | hpux11*) 6010 lt_prog_compiler_wl='-Wl,' 6011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6012 # not for PA HP-UX. 6013 case "$host_cpu" in 6014 hppa*64*|ia64*) 6015 # +Z the default 6016 ;; 6017 *) 6018 lt_prog_compiler_pic='+Z' 6019 ;; 6020 esac 6021 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6022 lt_prog_compiler_static='${wl}-a ${wl}archive' 6023 ;; 6024 6025 irix5* | irix6* | nonstopux*) 6026 lt_prog_compiler_wl='-Wl,' 6027 # PIC (with -KPIC) is the default. 6028 lt_prog_compiler_static='-non_shared' 6029 ;; 6030 6031 newsos6) 6032 lt_prog_compiler_pic='-KPIC' 6033 lt_prog_compiler_static='-Bstatic' 6034 ;; 6035 6036 linux*) 6037 case $CC in 6038 icc|ecc) 6039 lt_prog_compiler_wl='-Wl,' 6040 lt_prog_compiler_pic='-KPIC' 6041 lt_prog_compiler_static='-static' 6042 ;; 6043 ccc) 6044 lt_prog_compiler_wl='-Wl,' 6045 # All Alpha code is PIC. 6046 lt_prog_compiler_static='-non_shared' 6047 ;; 6048 esac 6049 ;; 6050 6051 osf3* | osf4* | osf5*) 6052 lt_prog_compiler_wl='-Wl,' 6053 # All OSF/1 code is PIC. 6054 lt_prog_compiler_static='-non_shared' 6055 ;; 6056 6057 sco3.2v5*) 6058 lt_prog_compiler_pic='-Kpic' 6059 lt_prog_compiler_static='-dn' 6060 ;; 6061 6062 solaris*) 6063 lt_prog_compiler_wl='-Wl,' 6064 lt_prog_compiler_pic='-KPIC' 6065 lt_prog_compiler_static='-Bstatic' 6066 ;; 6067 6068 sunos4*) 6069 lt_prog_compiler_wl='-Qoption ld ' 6070 lt_prog_compiler_pic='-PIC' 6071 lt_prog_compiler_static='-Bstatic' 6072 ;; 6073 6074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6075 lt_prog_compiler_wl='-Wl,' 6076 lt_prog_compiler_pic='-KPIC' 6077 lt_prog_compiler_static='-Bstatic' 6078 ;; 6079 6080 sysv4*MP*) 6081 if test -d /usr/nec ;then 6082 lt_prog_compiler_pic='-Kconform_pic' 6083 lt_prog_compiler_static='-Bstatic' 6084 fi 6085 ;; 6086 6087 uts4*) 6088 lt_prog_compiler_pic='-pic' 6089 lt_prog_compiler_static='-Bstatic' 6090 ;; 6091 6092 *) 6093 lt_prog_compiler_can_build_shared=no 6094 ;; 6095 esac 6096 fi 6097 6098echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6099echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6100 6101# 6102# Check to make sure the PIC flag actually works. 6103# 6104if test -n "$lt_prog_compiler_pic"; then 6105 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6106echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6107if test "${lt_prog_compiler_pic_works+set}" = set; then 6108 echo $ECHO_N "(cached) $ECHO_C" >&6 6109else 6110 lt_prog_compiler_pic_works=no 6111 ac_outfile=conftest.$ac_objext 6112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6113 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6114 # Insert the option either (1) after the last *FLAGS variable, or 6115 # (2) before a word containing "conftest.", or (3) at the end. 6116 # Note that $ac_compile itself does not contain backslashes and begins 6117 # with a dollar sign (not a hyphen), so the echo should work correctly. 6118 # The option is referenced via a variable to avoid confusing sed. 6119 lt_compile=`echo "$ac_compile" | $SED \ 6120 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6122 -e 's:$: $lt_compiler_flag:'` 6123 (eval echo "\"\$as_me:6123: $lt_compile\"" >&5) 6124 (eval "$lt_compile" 2>conftest.err) 6125 ac_status=$? 6126 cat conftest.err >&5 6127 echo "$as_me:6127: \$? = $ac_status" >&5 6128 if (exit $ac_status) && test -s "$ac_outfile"; then 6129 # The compiler can only warn and ignore the option if not recognized 6130 # So say no if there are warnings 6131 if test ! -s conftest.err; then 6132 lt_prog_compiler_pic_works=yes 6133 fi 6134 fi 6135 $rm conftest* 6136 6137fi 6138echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6139echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6140 6141if test x"$lt_prog_compiler_pic_works" = xyes; then 6142 case $lt_prog_compiler_pic in 6143 "" | " "*) ;; 6144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6145 esac 6146else 6147 lt_prog_compiler_pic= 6148 lt_prog_compiler_can_build_shared=no 6149fi 6150 6151fi 6152case "$host_os" in 6153 # For platforms which do not support PIC, -DPIC is meaningless: 6154 *djgpp*) 6155 lt_prog_compiler_pic= 6156 ;; 6157 *) 6158 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6159 ;; 6160esac 6161 6162echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6163echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6164if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6165 echo $ECHO_N "(cached) $ECHO_C" >&6 6166else 6167 lt_cv_prog_compiler_c_o=no 6168 $rm -r conftest 2>/dev/null 6169 mkdir conftest 6170 cd conftest 6171 mkdir out 6172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6173 6174 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 6175 # that will create temporary files in the current directory regardless of 6176 # the output directory. Thus, making CWD read-only will cause this test 6177 # to fail, enabling locking or at least warning the user not to do parallel 6178 # builds. 6179 chmod -w . 6180 6181 lt_compiler_flag="-o out/conftest2.$ac_objext" 6182 # Insert the option either (1) after the last *FLAGS variable, or 6183 # (2) before a word containing "conftest.", or (3) at the end. 6184 # Note that $ac_compile itself does not contain backslashes and begins 6185 # with a dollar sign (not a hyphen), so the echo should work correctly. 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>out/conftest.err) 6192 ac_status=$? 6193 cat out/conftest.err >&5 6194 echo "$as_me:6194: \$? = $ac_status" >&5 6195 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6196 then 6197 # The compiler can only warn and ignore the option if not recognized 6198 # So say no if there are warnings 6199 if test ! -s out/conftest.err; then 6200 lt_cv_prog_compiler_c_o=yes 6201 fi 6202 fi 6203 chmod u+w . 6204 $rm conftest* out/* 6205 rmdir out 6206 cd .. 6207 rmdir conftest 6208 $rm conftest* 6209 6210fi 6211echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6212echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6213 6214 6215hard_links="nottested" 6216if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6217 # do not overwrite the value of need_locks provided by the user 6218 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6219echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6220 hard_links=yes 6221 $rm conftest* 6222 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6223 touch conftest.a 6224 ln conftest.a conftest.b 2>&5 || hard_links=no 6225 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6226 echo "$as_me:$LINENO: result: $hard_links" >&5 6227echo "${ECHO_T}$hard_links" >&6 6228 if test "$hard_links" = no; then 6229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6230echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6231 need_locks=warn 6232 fi 6233else 6234 need_locks=no 6235fi 6236 6237echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6238echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6239 6240 runpath_var= 6241 allow_undefined_flag= 6242 enable_shared_with_static_runtimes=no 6243 archive_cmds= 6244 archive_expsym_cmds= 6245 old_archive_From_new_cmds= 6246 old_archive_from_expsyms_cmds= 6247 export_dynamic_flag_spec= 6248 whole_archive_flag_spec= 6249 thread_safe_flag_spec= 6250 hardcode_libdir_flag_spec= 6251 hardcode_libdir_flag_spec_ld= 6252 hardcode_libdir_separator= 6253 hardcode_direct=no 6254 hardcode_minus_L=no 6255 hardcode_shlibpath_var=unsupported 6256 link_all_deplibs=unknown 6257 hardcode_automatic=no 6258 module_cmds= 6259 module_expsym_cmds= 6260 always_export_symbols=no 6261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6262 # include_expsyms should be a list of space-separated symbols to be *always* 6263 # included in the symbol list 6264 include_expsyms= 6265 # exclude_expsyms can be an extended regexp of symbols to exclude 6266 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6268 # as well as any symbol that contains `d'. 6269 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6271 # platforms (ab)use it in PIC code, but their linkers get confused if 6272 # the symbol is explicitly referenced. Since portable code cannot 6273 # rely on this symbol name, it's probably fine to never include it in 6274 # preloaded symbol tables. 6275 extract_expsyms_cmds= 6276 6277 case $host_os in 6278 cygwin* | mingw* | pw32*) 6279 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6280 # When not using gcc, we currently assume that we are using 6281 # Microsoft Visual C++. 6282 if test "$GCC" != yes; then 6283 with_gnu_ld=no 6284 fi 6285 ;; 6286 openbsd*) 6287 with_gnu_ld=no 6288 ;; 6289 esac 6290 6291 ld_shlibs=yes 6292 if test "$with_gnu_ld" = yes; then 6293 # If archive_cmds runs LD, not CC, wlarc should be empty 6294 wlarc='${wl}' 6295 6296 # See if GNU ld supports shared libraries. 6297 case $host_os in 6298 aix3* | aix4* | aix5*) 6299 # On AIX/PPC, the GNU linker is very broken 6300 if test "$host_cpu" != ia64; then 6301 ld_shlibs=no 6302 cat <<EOF 1>&2 6303 6304*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6305*** to be unable to reliably create shared libraries on AIX. 6306*** Therefore, libtool is disabling shared libraries support. If you 6307*** really care for shared libraries, you may want to modify your PATH 6308*** so that a non-GNU linker is found, and then restart. 6309 6310EOF 6311 fi 6312 ;; 6313 6314 amigaos*) 6315 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)' 6316 hardcode_libdir_flag_spec='-L$libdir' 6317 hardcode_minus_L=yes 6318 6319 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6320 # that the semantics of dynamic libraries on AmigaOS, at least up 6321 # to version 4, is to share data among multiple programs linked 6322 # with the same dynamic library. Since this doesn't match the 6323 # behavior of shared libraries on other platforms, we can't use 6324 # them. 6325 ld_shlibs=no 6326 ;; 6327 6328 beos*) 6329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6330 allow_undefined_flag=unsupported 6331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6332 # support --undefined. This deserves some investigation. FIXME 6333 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6334 else 6335 ld_shlibs=no 6336 fi 6337 ;; 6338 6339 cygwin* | mingw* | pw32*) 6340 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6341 # as there is no search path for DLLs. 6342 hardcode_libdir_flag_spec='-L$libdir' 6343 allow_undefined_flag=unsupported 6344 always_export_symbols=no 6345 enable_shared_with_static_runtimes=yes 6346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6347 6348 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6350 # If the export-symbols file already is a .def file (1st line 6351 # is EXPORTS), use it as is; otherwise, prepend... 6352 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6353 cp $export_symbols $output_objdir/$soname.def; 6354 else 6355 echo EXPORTS > $output_objdir/$soname.def; 6356 cat $export_symbols >> $output_objdir/$soname.def; 6357 fi~ 6358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6359 else 6360 ld_shlibs=no 6361 fi 6362 ;; 6363 6364 netbsd*) 6365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6366 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6367 wlarc= 6368 else 6369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6371 fi 6372 ;; 6373 6374 solaris* | sysv5*) 6375 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6376 ld_shlibs=no 6377 cat <<EOF 1>&2 6378 6379*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6380*** create shared libraries on Solaris systems. Therefore, libtool 6381*** is disabling shared libraries support. We urge you to upgrade GNU 6382*** binutils to release 2.9.1 or newer. Another option is to modify 6383*** your PATH or compiler configuration so that the native linker is 6384*** used, and then restart. 6385 6386EOF 6387 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6390 else 6391 ld_shlibs=no 6392 fi 6393 ;; 6394 6395 sunos4*) 6396 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6397 wlarc= 6398 hardcode_direct=yes 6399 hardcode_shlibpath_var=no 6400 ;; 6401 6402 *) 6403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6406 else 6407 ld_shlibs=no 6408 fi 6409 ;; 6410 esac 6411 6412 if test "$ld_shlibs" = yes; then 6413 runpath_var=LD_RUN_PATH 6414 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6415 export_dynamic_flag_spec='${wl}--export-dynamic' 6416 # ancient GNU ld didn't support --whole-archive et. al. 6417 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6418 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6419 else 6420 whole_archive_flag_spec= 6421 fi 6422 fi 6423 else 6424 # PORTME fill in a description of your system's linker (not GNU ld) 6425 case $host_os in 6426 aix3*) 6427 allow_undefined_flag=unsupported 6428 always_export_symbols=yes 6429 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' 6430 # Note: this linker hardcodes the directories in LIBPATH if there 6431 # are no directories specified by -L. 6432 hardcode_minus_L=yes 6433 if test "$GCC" = yes && test -z "$link_static_flag"; then 6434 # Neither direct hardcoding nor static linking is supported with a 6435 # broken collect2. 6436 hardcode_direct=unsupported 6437 fi 6438 ;; 6439 6440 aix4* | aix5*) 6441 if test "$host_cpu" = ia64; then 6442 # On IA64, the linker does run time linking by default, so we don't 6443 # have to do anything special. 6444 aix_use_runtimelinking=no 6445 exp_sym_flag='-Bexport' 6446 no_entry_flag="" 6447 else 6448 # If we're using GNU nm, then we don't want the "-C" option. 6449 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6450 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6451 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' 6452 else 6453 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' 6454 fi 6455 aix_use_runtimelinking=no 6456 6457 # Test if we are trying to use run time linking or normal 6458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6459 # need to do runtime linking. 6460 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6461 for ld_flag in $LDFLAGS; do 6462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6463 aix_use_runtimelinking=yes 6464 break 6465 fi 6466 done 6467 esac 6468 6469 exp_sym_flag='-bexport' 6470 no_entry_flag='-bnoentry' 6471 fi 6472 6473 # When large executables or shared objects are built, AIX ld can 6474 # have problems creating the table of contents. If linking a library 6475 # or program results in "error TOC overflow" add -mminimal-toc to 6476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6478 6479 archive_cmds='' 6480 hardcode_direct=yes 6481 hardcode_libdir_separator=':' 6482 link_all_deplibs=yes 6483 6484 if test "$GCC" = yes; then 6485 case $host_os in aix4.012|aix4.012.*) 6486 # We only want to do this on AIX 4.2 and lower, the check 6487 # below for broken collect2 doesn't work under 4.3+ 6488 collect2name=`${CC} -print-prog-name=collect2` 6489 if test -f "$collect2name" && \ 6490 strings "$collect2name" | grep resolve_lib_name >/dev/null 6491 then 6492 # We have reworked collect2 6493 hardcode_direct=yes 6494 else 6495 # We have old collect2 6496 hardcode_direct=unsupported 6497 # It fails to find uninstalled libraries when the uninstalled 6498 # path is not listed in the libpath. Setting hardcode_minus_L 6499 # to unsupported forces relinking 6500 hardcode_minus_L=yes 6501 hardcode_libdir_flag_spec='-L$libdir' 6502 hardcode_libdir_separator= 6503 fi 6504 esac 6505 shared_flag='-shared' 6506 else 6507 # not using gcc 6508 if test "$host_cpu" = ia64; then 6509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6510 # chokes on -Wl,-G. The following line is correct: 6511 shared_flag='-G' 6512 else 6513 if test "$aix_use_runtimelinking" = yes; then 6514 shared_flag='${wl}-G' 6515 else 6516 shared_flag='${wl}-bM:SRE' 6517 fi 6518 fi 6519 fi 6520 6521 # It seems that -bexpall does not export symbols beginning with 6522 # underscore (_), so it is better to generate a list of symbols to export. 6523 always_export_symbols=yes 6524 if test "$aix_use_runtimelinking" = yes; then 6525 # Warning - without using the other runtime loading flags (-brtl), 6526 # -berok will link without error, but may produce a broken library. 6527 allow_undefined_flag='-berok' 6528 # Determine the default libpath from the value encoded in an empty executable. 6529 cat >conftest.$ac_ext <<_ACEOF 6530#line $LINENO "configure" 6531/* confdefs.h. */ 6532_ACEOF 6533cat confdefs.h >>conftest.$ac_ext 6534cat >>conftest.$ac_ext <<_ACEOF 6535/* end confdefs.h. */ 6536 6537int 6538main () 6539{ 6540 6541 ; 6542 return 0; 6543} 6544_ACEOF 6545rm -f conftest.$ac_objext conftest$ac_exeext 6546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6547 (eval $ac_link) 2>&5 6548 ac_status=$? 6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6550 (exit $ac_status); } && 6551 { ac_try='test -s conftest$ac_exeext' 6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6553 (eval $ac_try) 2>&5 6554 ac_status=$? 6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6556 (exit $ac_status); }; }; then 6557 6558aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6559}'` 6560# Check for a 64-bit object if we didn't find anything. 6561if 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; } 6562}'`; fi 6563else 6564 echo "$as_me: failed program was:" >&5 6565sed 's/^/| /' conftest.$ac_ext >&5 6566 6567fi 6568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6570 6571 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6572 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" 6573 else 6574 if test "$host_cpu" = ia64; then 6575 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6576 allow_undefined_flag="-z nodefs" 6577 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" 6578 else 6579 # Determine the default libpath from the value encoded in an empty executable. 6580 cat >conftest.$ac_ext <<_ACEOF 6581#line $LINENO "configure" 6582/* confdefs.h. */ 6583_ACEOF 6584cat confdefs.h >>conftest.$ac_ext 6585cat >>conftest.$ac_ext <<_ACEOF 6586/* end confdefs.h. */ 6587 6588int 6589main () 6590{ 6591 6592 ; 6593 return 0; 6594} 6595_ACEOF 6596rm -f conftest.$ac_objext conftest$ac_exeext 6597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6598 (eval $ac_link) 2>&5 6599 ac_status=$? 6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6601 (exit $ac_status); } && 6602 { ac_try='test -s conftest$ac_exeext' 6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6604 (eval $ac_try) 2>&5 6605 ac_status=$? 6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6607 (exit $ac_status); }; }; then 6608 6609aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6610}'` 6611# Check for a 64-bit object if we didn't find anything. 6612if 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; } 6613}'`; fi 6614else 6615 echo "$as_me: failed program was:" >&5 6616sed 's/^/| /' conftest.$ac_ext >&5 6617 6618fi 6619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6620if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6621 6622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6623 # Warning - without using the other run time loading flags, 6624 # -berok will link without error, but may produce a broken library. 6625 no_undefined_flag=' ${wl}-bernotok' 6626 allow_undefined_flag=' ${wl}-berok' 6627 # -bexpall does not export symbols beginning with underscore (_) 6628 always_export_symbols=yes 6629 # Exported symbols can be pulled into shared objects from archives 6630 whole_archive_flag_spec=' ' 6631 archive_cmds_need_lc=yes 6632 # This is similar to how AIX traditionally builds it's shared libraries. 6633 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' 6634 fi 6635 fi 6636 ;; 6637 6638 amigaos*) 6639 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)' 6640 hardcode_libdir_flag_spec='-L$libdir' 6641 hardcode_minus_L=yes 6642 # see comment about different semantics on the GNU ld section 6643 ld_shlibs=no 6644 ;; 6645 6646 bsdi4*) 6647 export_dynamic_flag_spec=-rdynamic 6648 ;; 6649 6650 cygwin* | mingw* | pw32*) 6651 # When not using gcc, we currently assume that we are using 6652 # Microsoft Visual C++. 6653 # hardcode_libdir_flag_spec is actually meaningless, as there is 6654 # no search path for DLLs. 6655 hardcode_libdir_flag_spec=' ' 6656 allow_undefined_flag=unsupported 6657 # Tell ltmain to make .lib files, not .a files. 6658 libext=lib 6659 # Tell ltmain to make .dll files, not .so files. 6660 shrext=".dll" 6661 # FIXME: Setting linknames here is a bad hack. 6662 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6663 # The linker will automatically build a .lib file if we build a DLL. 6664 old_archive_From_new_cmds='true' 6665 # FIXME: Should let the user specify the lib program. 6666 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6667 fix_srcfile_path='`cygpath -w "$srcfile"`' 6668 enable_shared_with_static_runtimes=yes 6669 ;; 6670 6671 darwin* | rhapsody*) 6672 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 6673 archive_cmds_need_lc=no 6674 case "$host_os" in 6675 rhapsody* | darwin1.[012]) 6676 allow_undefined_flag='-undefined suppress' 6677 ;; 6678 *) # Darwin 1.3 on 6679 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 6680 ;; 6681 esac 6682 # FIXME: Relying on posixy $() will cause problems for 6683 # cross-compilation, but unfortunately the echo tests do not 6684 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 6685 # `"' quotes if we put them in here... so don't! 6686 lt_int_apple_cc_single_mod=no 6687 output_verbose_link_cmd='echo' 6688 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 6689 lt_int_apple_cc_single_mod=yes 6690 fi 6691 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6692 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6693 else 6694 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' 6695 fi 6696 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 6697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6698 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6699 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}' 6700 else 6701 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}' 6702 fi 6703 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}' 6704 hardcode_direct=no 6705 hardcode_automatic=yes 6706 hardcode_shlibpath_var=unsupported 6707 whole_archive_flag_spec='-all_load $convenience' 6708 link_all_deplibs=yes 6709 fi 6710 ;; 6711 6712 dgux*) 6713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6714 hardcode_libdir_flag_spec='-L$libdir' 6715 hardcode_shlibpath_var=no 6716 ;; 6717 6718 freebsd1*) 6719 ld_shlibs=no 6720 ;; 6721 6722 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6723 # support. Future versions do this automatically, but an explicit c++rt0.o 6724 # does not break anything, and helps significantly (at the cost of a little 6725 # extra space). 6726 freebsd2.2*) 6727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6728 hardcode_libdir_flag_spec='-R$libdir' 6729 hardcode_direct=yes 6730 hardcode_shlibpath_var=no 6731 ;; 6732 6733 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6734 freebsd2*) 6735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6736 hardcode_direct=yes 6737 hardcode_minus_L=yes 6738 hardcode_shlibpath_var=no 6739 ;; 6740 6741 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6742 freebsd*) 6743 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6744 hardcode_libdir_flag_spec='-R$libdir' 6745 hardcode_direct=yes 6746 hardcode_shlibpath_var=no 6747 ;; 6748 6749 hpux9*) 6750 if test "$GCC" = yes; then 6751 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' 6752 else 6753 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' 6754 fi 6755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6756 hardcode_libdir_separator=: 6757 hardcode_direct=yes 6758 6759 # hardcode_minus_L: Not really in the search PATH, 6760 # but as the default location of the library. 6761 hardcode_minus_L=yes 6762 export_dynamic_flag_spec='${wl}-E' 6763 ;; 6764 6765 hpux10* | hpux11*) 6766 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6767 case "$host_cpu" in 6768 hppa*64*|ia64*) 6769 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6770 ;; 6771 *) 6772 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6773 ;; 6774 esac 6775 else 6776 case "$host_cpu" in 6777 hppa*64*|ia64*) 6778 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6779 ;; 6780 *) 6781 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6782 ;; 6783 esac 6784 fi 6785 if test "$with_gnu_ld" = no; then 6786 case "$host_cpu" in 6787 hppa*64*) 6788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6789 hardcode_libdir_flag_spec_ld='+b $libdir' 6790 hardcode_libdir_separator=: 6791 hardcode_direct=no 6792 hardcode_shlibpath_var=no 6793 ;; 6794 ia64*) 6795 hardcode_libdir_flag_spec='-L$libdir' 6796 hardcode_direct=no 6797 hardcode_shlibpath_var=no 6798 6799 # hardcode_minus_L: Not really in the search PATH, 6800 # but as the default location of the library. 6801 hardcode_minus_L=yes 6802 ;; 6803 *) 6804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6805 hardcode_libdir_separator=: 6806 hardcode_direct=yes 6807 export_dynamic_flag_spec='${wl}-E' 6808 6809 # hardcode_minus_L: Not really in the search PATH, 6810 # but as the default location of the library. 6811 hardcode_minus_L=yes 6812 ;; 6813 esac 6814 fi 6815 ;; 6816 6817 irix5* | irix6* | nonstopux*) 6818 if test "$GCC" = yes; then 6819 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' 6820 else 6821 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' 6822 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6823 fi 6824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6825 hardcode_libdir_separator=: 6826 link_all_deplibs=yes 6827 ;; 6828 6829 netbsd*) 6830 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6832 else 6833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6834 fi 6835 hardcode_libdir_flag_spec='-R$libdir' 6836 hardcode_direct=yes 6837 hardcode_shlibpath_var=no 6838 ;; 6839 6840 newsos6) 6841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6842 hardcode_direct=yes 6843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6844 hardcode_libdir_separator=: 6845 hardcode_shlibpath_var=no 6846 ;; 6847 6848 openbsd*) 6849 hardcode_direct=yes 6850 hardcode_shlibpath_var=no 6851 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6854 export_dynamic_flag_spec='${wl}-E' 6855 else 6856 case $host_os in 6857 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6859 hardcode_libdir_flag_spec='-R$libdir' 6860 ;; 6861 *) 6862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6863 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6864 ;; 6865 esac 6866 fi 6867 ;; 6868 6869 os2*) 6870 hardcode_libdir_flag_spec='-L$libdir' 6871 hardcode_minus_L=yes 6872 allow_undefined_flag=unsupported 6873 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' 6874 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6875 ;; 6876 6877 osf3*) 6878 if test "$GCC" = yes; then 6879 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6880 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' 6881 else 6882 allow_undefined_flag=' -expect_unresolved \*' 6883 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' 6884 fi 6885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6886 hardcode_libdir_separator=: 6887 ;; 6888 6889 osf4* | osf5*) # as osf3* with the addition of -msym flag 6890 if test "$GCC" = yes; then 6891 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6892 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' 6893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6894 else 6895 allow_undefined_flag=' -expect_unresolved \*' 6896 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' 6897 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6898 $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' 6899 6900 # Both c and cxx compiler support -rpath directly 6901 hardcode_libdir_flag_spec='-rpath $libdir' 6902 fi 6903 hardcode_libdir_separator=: 6904 ;; 6905 6906 sco3.2v5*) 6907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6908 hardcode_shlibpath_var=no 6909 export_dynamic_flag_spec='${wl}-Bexport' 6910 runpath_var=LD_RUN_PATH 6911 hardcode_runpath_var=yes 6912 ;; 6913 6914 solaris*) 6915 no_undefined_flag=' -z text' 6916 if test "$GCC" = yes; then 6917 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6918 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6919 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6920 else 6921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6924 fi 6925 hardcode_libdir_flag_spec='-R$libdir' 6926 hardcode_shlibpath_var=no 6927 case $host_os in 6928 solaris2.[0-5] | solaris2.[0-5].*) ;; 6929 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6930 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6931 esac 6932 link_all_deplibs=yes 6933 ;; 6934 6935 sunos4*) 6936 if test "x$host_vendor" = xsequent; then 6937 # Use $CC to link under sequent, because it throws in some extra .o 6938 # files that make .init and .fini sections work. 6939 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6940 else 6941 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6942 fi 6943 hardcode_libdir_flag_spec='-L$libdir' 6944 hardcode_direct=yes 6945 hardcode_minus_L=yes 6946 hardcode_shlibpath_var=no 6947 ;; 6948 6949 sysv4) 6950 case $host_vendor in 6951 sni) 6952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6953 hardcode_direct=yes # is this really true??? 6954 ;; 6955 siemens) 6956 ## LD is ld it makes a PLAMLIB 6957 ## CC just makes a GrossModule. 6958 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6959 reload_cmds='$CC -r -o $output$reload_objs' 6960 hardcode_direct=no 6961 ;; 6962 motorola) 6963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6964 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6965 ;; 6966 esac 6967 runpath_var='LD_RUN_PATH' 6968 hardcode_shlibpath_var=no 6969 ;; 6970 6971 sysv4.3*) 6972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6973 hardcode_shlibpath_var=no 6974 export_dynamic_flag_spec='-Bexport' 6975 ;; 6976 6977 sysv4*MP*) 6978 if test -d /usr/nec; then 6979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6980 hardcode_shlibpath_var=no 6981 runpath_var=LD_RUN_PATH 6982 hardcode_runpath_var=yes 6983 ld_shlibs=yes 6984 fi 6985 ;; 6986 6987 sysv4.2uw2*) 6988 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6989 hardcode_direct=yes 6990 hardcode_minus_L=no 6991 hardcode_shlibpath_var=no 6992 hardcode_runpath_var=yes 6993 runpath_var=LD_RUN_PATH 6994 ;; 6995 6996 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 6997 no_undefined_flag='${wl}-z ${wl}text' 6998 if test "$GCC" = yes; then 6999 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7000 else 7001 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7002 fi 7003 runpath_var='LD_RUN_PATH' 7004 hardcode_shlibpath_var=no 7005 ;; 7006 7007 sysv5*) 7008 no_undefined_flag=' -z text' 7009 # $CC -shared without GNU ld will not create a library from C++ 7010 # object files and a static libstdc++, better avoid it by now 7011 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7012 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7013 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7014 hardcode_libdir_flag_spec= 7015 hardcode_shlibpath_var=no 7016 runpath_var='LD_RUN_PATH' 7017 ;; 7018 7019 uts4*) 7020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7021 hardcode_libdir_flag_spec='-L$libdir' 7022 hardcode_shlibpath_var=no 7023 ;; 7024 7025 *) 7026 ld_shlibs=no 7027 ;; 7028 esac 7029 fi 7030 7031echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7032echo "${ECHO_T}$ld_shlibs" >&6 7033test "$ld_shlibs" = no && can_build_shared=no 7034 7035variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7036if test "$GCC" = yes; then 7037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7038fi 7039 7040# 7041# Do we need to explicitly link libc? 7042# 7043case "x$archive_cmds_need_lc" in 7044x|xyes) 7045 # Assume -lc should be added 7046 archive_cmds_need_lc=yes 7047 7048 if test "$enable_shared" = yes && test "$GCC" = yes; then 7049 case $archive_cmds in 7050 *'~'*) 7051 # FIXME: we may have to deal with multi-command sequences. 7052 ;; 7053 '$CC '*) 7054 # Test whether the compiler implicitly links with -lc since on some 7055 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7056 # to ld, don't add -lc before -lgcc. 7057 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7058echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7059 $rm conftest* 7060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7061 7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7063 (eval $ac_compile) 2>&5 7064 ac_status=$? 7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7066 (exit $ac_status); } 2>conftest.err; then 7067 soname=conftest 7068 lib=conftest 7069 libobjs=conftest.$ac_objext 7070 deplibs= 7071 wl=$lt_prog_compiler_wl 7072 compiler_flags=-v 7073 linker_flags=-v 7074 verstring= 7075 output_objdir=. 7076 libname=conftest 7077 lt_save_allow_undefined_flag=$allow_undefined_flag 7078 allow_undefined_flag= 7079 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7080 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7081 ac_status=$? 7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7083 (exit $ac_status); } 7084 then 7085 archive_cmds_need_lc=no 7086 else 7087 archive_cmds_need_lc=yes 7088 fi 7089 allow_undefined_flag=$lt_save_allow_undefined_flag 7090 else 7091 cat conftest.err 1>&5 7092 fi 7093 $rm conftest* 7094 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7095echo "${ECHO_T}$archive_cmds_need_lc" >&6 7096 ;; 7097 esac 7098 fi 7099 ;; 7100esac 7101 7102echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7103echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7104hardcode_action= 7105if test -n "$hardcode_libdir_flag_spec" || \ 7106 test -n "$runpath_var " || \ 7107 test "X$hardcode_automatic"="Xyes" ; then 7108 7109 # We can hardcode non-existant directories. 7110 if test "$hardcode_direct" != no && 7111 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7112 # have to relink, otherwise we might link with an installed library 7113 # when we should be linking with a yet-to-be-installed one 7114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7115 test "$hardcode_minus_L" != no; then 7116 # Linking always hardcodes the temporary library directory. 7117 hardcode_action=relink 7118 else 7119 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7120 hardcode_action=immediate 7121 fi 7122else 7123 # We cannot hardcode anything, or else we can only hardcode existing 7124 # directories. 7125 hardcode_action=unsupported 7126fi 7127echo "$as_me:$LINENO: result: $hardcode_action" >&5 7128echo "${ECHO_T}$hardcode_action" >&6 7129 7130if test "$hardcode_action" = relink; then 7131 # Fast installation is not supported 7132 enable_fast_install=no 7133elif test "$shlibpath_overrides_runpath" = yes || 7134 test "$enable_shared" = no; then 7135 # Fast installation is not necessary 7136 enable_fast_install=needless 7137fi 7138 7139striplib= 7140old_striplib= 7141echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7142echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7143if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7145 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7146 echo "$as_me:$LINENO: result: yes" >&5 7147echo "${ECHO_T}yes" >&6 7148else 7149# FIXME - insert some real tests, host_os isn't really good enough 7150 case $host_os in 7151 darwin*) 7152 if test -n "$STRIP" ; then 7153 striplib="$STRIP -x" 7154 echo "$as_me:$LINENO: result: yes" >&5 7155echo "${ECHO_T}yes" >&6 7156 else 7157 echo "$as_me:$LINENO: result: no" >&5 7158echo "${ECHO_T}no" >&6 7159fi 7160 ;; 7161 *) 7162 echo "$as_me:$LINENO: result: no" >&5 7163echo "${ECHO_T}no" >&6 7164 ;; 7165 esac 7166fi 7167 7168echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7169echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7170library_names_spec= 7171libname_spec='lib$name' 7172soname_spec= 7173shrext=".so" 7174postinstall_cmds= 7175postuninstall_cmds= 7176finish_cmds= 7177finish_eval= 7178shlibpath_var= 7179shlibpath_overrides_runpath=unknown 7180version_type=none 7181dynamic_linker="$host_os ld.so" 7182sys_lib_dlsearch_path_spec="/lib /usr/lib" 7183if test "$GCC" = yes; then 7184 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7185 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7186 # if the path contains ";" then we assume it to be the separator 7187 # otherwise default to the standard path separator (i.e. ":") - it is 7188 # assumed that no part of a normal pathname contains ";" but that should 7189 # okay in the real world where ";" in dirpaths is itself problematic. 7190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7191 else 7192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7193 fi 7194else 7195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7196fi 7197need_lib_prefix=unknown 7198hardcode_into_libs=no 7199 7200# when you set need_version to no, make sure it does not cause -set_version 7201# flags to be left without arguments 7202need_version=unknown 7203 7204case $host_os in 7205aix3*) 7206 version_type=linux 7207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7208 shlibpath_var=LIBPATH 7209 7210 # AIX 3 has no versioning support, so we append a major version to the name. 7211 soname_spec='${libname}${release}${shared_ext}$major' 7212 ;; 7213 7214aix4* | aix5*) 7215 version_type=linux 7216 need_lib_prefix=no 7217 need_version=no 7218 hardcode_into_libs=yes 7219 if test "$host_cpu" = ia64; then 7220 # AIX 5 supports IA64 7221 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7222 shlibpath_var=LD_LIBRARY_PATH 7223 else 7224 # With GCC up to 2.95.x, collect2 would create an import file 7225 # for dependence libraries. The import file would start with 7226 # the line `#! .'. This would cause the generated library to 7227 # depend on `.', always an invalid library. This was fixed in 7228 # development snapshots of GCC prior to 3.0. 7229 case $host_os in 7230 aix4 | aix4.[01] | aix4.[01].*) 7231 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7232 echo ' yes ' 7233 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7234 : 7235 else 7236 can_build_shared=no 7237 fi 7238 ;; 7239 esac 7240 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7241 # soname into executable. Probably we can add versioning support to 7242 # collect2, so additional links can be useful in future. 7243 if test "$aix_use_runtimelinking" = yes; then 7244 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7245 # instead of lib<name>.a to let people know that these are not 7246 # typical AIX shared libraries. 7247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7248 else 7249 # We preserve .a as extension for shared libraries through AIX4.2 7250 # and later when we are not doing run time linking. 7251 library_names_spec='${libname}${release}.a $libname.a' 7252 soname_spec='${libname}${release}${shared_ext}$major' 7253 fi 7254 shlibpath_var=LIBPATH 7255 fi 7256 ;; 7257 7258amigaos*) 7259 library_names_spec='$libname.ixlibrary $libname.a' 7260 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7261 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' 7262 ;; 7263 7264beos*) 7265 library_names_spec='${libname}${shared_ext}' 7266 dynamic_linker="$host_os ld.so" 7267 shlibpath_var=LIBRARY_PATH 7268 ;; 7269 7270bsdi4*) 7271 version_type=linux 7272 need_version=no 7273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7274 soname_spec='${libname}${release}${shared_ext}$major' 7275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7276 shlibpath_var=LD_LIBRARY_PATH 7277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7279 # the default ld.so.conf also contains /usr/contrib/lib and 7280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7281 # libtool to hard-code these into programs 7282 ;; 7283 7284cygwin* | mingw* | pw32*) 7285 version_type=windows 7286 shrext=".dll" 7287 need_version=no 7288 need_lib_prefix=no 7289 7290 case $GCC,$host_os in 7291 yes,cygwin* | yes,mingw* | yes,pw32*) 7292 library_names_spec='$libname.dll.a' 7293 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7294 postinstall_cmds='base_file=`basename \${file}`~ 7295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7296 dldir=$destdir/`dirname \$dlpath`~ 7297 test -d \$dldir || mkdir -p \$dldir~ 7298 $install_prog $dir/$dlname \$dldir/$dlname' 7299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7300 dlpath=$dir/\$dldll~ 7301 $rm \$dlpath' 7302 shlibpath_overrides_runpath=yes 7303 7304 case $host_os in 7305 cygwin*) 7306 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7307 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7308 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 7309 ;; 7310 mingw*) 7311 # MinGW DLLs use traditional 'lib' prefix 7312 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7313 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7314 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7315 # It is most probably a Windows format PATH printed by 7316 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7317 # path with ; separators, and with drive letters. We can handle the 7318 # drive letters (cygwin fileutils understands them), so leave them, 7319 # especially as we might pass files found there to a mingw objdump, 7320 # which wouldn't understand a cygwinified path. Ahh. 7321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7322 else 7323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7324 fi 7325 ;; 7326 pw32*) 7327 # pw32 DLLs use 'pw' prefix rather than 'lib' 7328 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7329 ;; 7330 esac 7331 ;; 7332 7333 *) 7334 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7335 ;; 7336 esac 7337 dynamic_linker='Win32 ld.exe' 7338 # FIXME: first we should search . and the directory the executable is in 7339 shlibpath_var=PATH 7340 ;; 7341 7342darwin* | rhapsody*) 7343 dynamic_linker="$host_os dyld" 7344 version_type=darwin 7345 need_lib_prefix=no 7346 need_version=no 7347 # FIXME: Relying on posixy $() will cause problems for 7348 # cross-compilation, but unfortunately the echo tests do not 7349 # yet detect zsh echo's removal of \ escapes. 7350 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7351 soname_spec='${libname}${release}${major}$shared_ext' 7352 shlibpath_overrides_runpath=yes 7353 shlibpath_var=DYLD_LIBRARY_PATH 7354 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 7355 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7356 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 7357 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"` 7358 fi 7359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7360 ;; 7361 7362dgux*) 7363 version_type=linux 7364 need_lib_prefix=no 7365 need_version=no 7366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7367 soname_spec='${libname}${release}${shared_ext}$major' 7368 shlibpath_var=LD_LIBRARY_PATH 7369 ;; 7370 7371freebsd1*) 7372 dynamic_linker=no 7373 ;; 7374 7375freebsd*) 7376 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7377 version_type=freebsd-$objformat 7378 case $version_type in 7379 freebsd-elf*) 7380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7381 need_version=no 7382 need_lib_prefix=no 7383 ;; 7384 freebsd-*) 7385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7386 need_version=yes 7387 ;; 7388 esac 7389 shlibpath_var=LD_LIBRARY_PATH 7390 case $host_os in 7391 freebsd2*) 7392 shlibpath_overrides_runpath=yes 7393 ;; 7394 freebsd3.01* | freebsdelf3.01*) 7395 shlibpath_overrides_runpath=yes 7396 hardcode_into_libs=yes 7397 ;; 7398 *) # from 3.2 on 7399 shlibpath_overrides_runpath=no 7400 hardcode_into_libs=yes 7401 ;; 7402 esac 7403 ;; 7404 7405gnu*) 7406 version_type=linux 7407 need_lib_prefix=no 7408 need_version=no 7409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7410 soname_spec='${libname}${release}${shared_ext}$major' 7411 shlibpath_var=LD_LIBRARY_PATH 7412 hardcode_into_libs=yes 7413 ;; 7414 7415hpux9* | hpux10* | hpux11*) 7416 # Give a soname corresponding to the major version so that dld.sl refuses to 7417 # link against other versions. 7418 version_type=sunos 7419 need_lib_prefix=no 7420 need_version=no 7421 case "$host_cpu" in 7422 ia64*) 7423 shrext='.so' 7424 hardcode_into_libs=yes 7425 dynamic_linker="$host_os dld.so" 7426 shlibpath_var=LD_LIBRARY_PATH 7427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7429 soname_spec='${libname}${release}${shared_ext}$major' 7430 if test "X$HPUX_IA64_MODE" = X32; then 7431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7432 else 7433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7434 fi 7435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7436 ;; 7437 hppa*64*) 7438 shrext='.sl' 7439 hardcode_into_libs=yes 7440 dynamic_linker="$host_os dld.sl" 7441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7444 soname_spec='${libname}${release}${shared_ext}$major' 7445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7447 ;; 7448 *) 7449 shrext='.sl' 7450 dynamic_linker="$host_os dld.sl" 7451 shlibpath_var=SHLIB_PATH 7452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7454 soname_spec='${libname}${release}${shared_ext}$major' 7455 ;; 7456 esac 7457 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7458 postinstall_cmds='chmod 555 $lib' 7459 ;; 7460 7461irix5* | irix6* | nonstopux*) 7462 case $host_os in 7463 nonstopux*) version_type=nonstopux ;; 7464 *) 7465 if test "$lt_cv_prog_gnu_ld" = yes; then 7466 version_type=linux 7467 else 7468 version_type=irix 7469 fi ;; 7470 esac 7471 need_lib_prefix=no 7472 need_version=no 7473 soname_spec='${libname}${release}${shared_ext}$major' 7474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7475 case $host_os in 7476 irix5* | nonstopux*) 7477 libsuff= shlibsuff= 7478 ;; 7479 *) 7480 case $LD in # libtool.m4 will add one of these switches to LD 7481 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7482 libsuff= shlibsuff= libmagic=32-bit;; 7483 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7484 libsuff=32 shlibsuff=N32 libmagic=N32;; 7485 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7486 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7487 *) libsuff= shlibsuff= libmagic=never-match;; 7488 esac 7489 ;; 7490 esac 7491 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7492 shlibpath_overrides_runpath=no 7493 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7494 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7495 hardcode_into_libs=yes 7496 ;; 7497 7498# No shared lib support for Linux oldld, aout, or coff. 7499linux*oldld* | linux*aout* | linux*coff*) 7500 dynamic_linker=no 7501 ;; 7502 7503# This must be Linux ELF. 7504linux*) 7505 version_type=linux 7506 need_lib_prefix=no 7507 need_version=no 7508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7509 soname_spec='${libname}${release}${shared_ext}$major' 7510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7511 shlibpath_var=LD_LIBRARY_PATH 7512 shlibpath_overrides_runpath=no 7513 # This implies no fast_install, which is unacceptable. 7514 # Some rework will be needed to allow for fast_install 7515 # before this can be enabled. 7516 hardcode_into_libs=yes 7517 7518 # We used to test for /lib/ld.so.1 and disable shared libraries on 7519 # powerpc, because MkLinux only supported shared libraries with the 7520 # GNU dynamic linker. Since this was broken with cross compilers, 7521 # most powerpc-linux boxes support dynamic linking these days and 7522 # people can always --disable-shared, the test was removed, and we 7523 # assume the GNU/Linux dynamic linker is in use. 7524 dynamic_linker='GNU/Linux ld.so' 7525 ;; 7526 7527netbsd*) 7528 version_type=sunos 7529 need_lib_prefix=no 7530 need_version=no 7531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7534 dynamic_linker='NetBSD (a.out) ld.so' 7535 else 7536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 7537 soname_spec='${libname}${release}${shared_ext}$major' 7538 dynamic_linker='NetBSD ld.elf_so' 7539 fi 7540 shlibpath_var=LD_LIBRARY_PATH 7541 shlibpath_overrides_runpath=yes 7542 hardcode_into_libs=yes 7543 ;; 7544 7545newsos6) 7546 version_type=linux 7547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7548 shlibpath_var=LD_LIBRARY_PATH 7549 shlibpath_overrides_runpath=yes 7550 ;; 7551 7552nto-qnx) 7553 version_type=linux 7554 need_lib_prefix=no 7555 need_version=no 7556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7557 soname_spec='${libname}${release}${shared_ext}$major' 7558 shlibpath_var=LD_LIBRARY_PATH 7559 shlibpath_overrides_runpath=yes 7560 ;; 7561 7562openbsd*) 7563 version_type=sunos 7564 need_lib_prefix=no 7565 need_version=no 7566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7568 shlibpath_var=LD_LIBRARY_PATH 7569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7570 case $host_os in 7571 openbsd2.[89] | openbsd2.[89].*) 7572 shlibpath_overrides_runpath=no 7573 ;; 7574 *) 7575 shlibpath_overrides_runpath=yes 7576 ;; 7577 esac 7578 else 7579 shlibpath_overrides_runpath=yes 7580 fi 7581 ;; 7582 7583os2*) 7584 libname_spec='$name' 7585 shrext=".dll" 7586 need_lib_prefix=no 7587 library_names_spec='$libname${shared_ext} $libname.a' 7588 dynamic_linker='OS/2 ld.exe' 7589 shlibpath_var=LIBPATH 7590 ;; 7591 7592osf3* | osf4* | osf5*) 7593 version_type=osf 7594 need_lib_prefix=no 7595 need_version=no 7596 soname_spec='${libname}${release}${shared_ext}$major' 7597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7598 shlibpath_var=LD_LIBRARY_PATH 7599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7601 ;; 7602 7603sco3.2v5*) 7604 version_type=osf 7605 soname_spec='${libname}${release}${shared_ext}$major' 7606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7607 shlibpath_var=LD_LIBRARY_PATH 7608 ;; 7609 7610solaris*) 7611 version_type=linux 7612 need_lib_prefix=no 7613 need_version=no 7614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7615 soname_spec='${libname}${release}${shared_ext}$major' 7616 shlibpath_var=LD_LIBRARY_PATH 7617 shlibpath_overrides_runpath=yes 7618 hardcode_into_libs=yes 7619 # ldd complains unless libraries are executable 7620 postinstall_cmds='chmod +x $lib' 7621 ;; 7622 7623sunos4*) 7624 version_type=sunos 7625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7626 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7627 shlibpath_var=LD_LIBRARY_PATH 7628 shlibpath_overrides_runpath=yes 7629 if test "$with_gnu_ld" = yes; then 7630 need_lib_prefix=no 7631 fi 7632 need_version=yes 7633 ;; 7634 7635sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7636 version_type=linux 7637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7638 soname_spec='${libname}${release}${shared_ext}$major' 7639 shlibpath_var=LD_LIBRARY_PATH 7640 case $host_vendor in 7641 sni) 7642 shlibpath_overrides_runpath=no 7643 need_lib_prefix=no 7644 export_dynamic_flag_spec='${wl}-Blargedynsym' 7645 runpath_var=LD_RUN_PATH 7646 ;; 7647 siemens) 7648 need_lib_prefix=no 7649 ;; 7650 motorola) 7651 need_lib_prefix=no 7652 need_version=no 7653 shlibpath_overrides_runpath=no 7654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7655 ;; 7656 esac 7657 ;; 7658 7659sysv4*MP*) 7660 if test -d /usr/nec ;then 7661 version_type=linux 7662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7663 soname_spec='$libname${shared_ext}.$major' 7664 shlibpath_var=LD_LIBRARY_PATH 7665 fi 7666 ;; 7667 7668uts4*) 7669 version_type=linux 7670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7671 soname_spec='${libname}${release}${shared_ext}$major' 7672 shlibpath_var=LD_LIBRARY_PATH 7673 ;; 7674 7675*) 7676 dynamic_linker=no 7677 ;; 7678esac 7679echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7680echo "${ECHO_T}$dynamic_linker" >&6 7681test "$dynamic_linker" = no && can_build_shared=no 7682 7683if test "x$enable_dlopen" != xyes; then 7684 enable_dlopen=unknown 7685 enable_dlopen_self=unknown 7686 enable_dlopen_self_static=unknown 7687else 7688 lt_cv_dlopen=no 7689 lt_cv_dlopen_libs= 7690 7691 case $host_os in 7692 beos*) 7693 lt_cv_dlopen="load_add_on" 7694 lt_cv_dlopen_libs= 7695 lt_cv_dlopen_self=yes 7696 ;; 7697 7698 mingw* | pw32*) 7699 lt_cv_dlopen="LoadLibrary" 7700 lt_cv_dlopen_libs= 7701 ;; 7702 7703 cygwin*) 7704 lt_cv_dlopen="dlopen" 7705 lt_cv_dlopen_libs= 7706 ;; 7707 7708 darwin*) 7709 # if libdl is installed we need to link against it 7710 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7711echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7712if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7713 echo $ECHO_N "(cached) $ECHO_C" >&6 7714else 7715 ac_check_lib_save_LIBS=$LIBS 7716LIBS="-ldl $LIBS" 7717cat >conftest.$ac_ext <<_ACEOF 7718#line $LINENO "configure" 7719/* confdefs.h. */ 7720_ACEOF 7721cat confdefs.h >>conftest.$ac_ext 7722cat >>conftest.$ac_ext <<_ACEOF 7723/* end confdefs.h. */ 7724 7725/* Override any gcc2 internal prototype to avoid an error. */ 7726#ifdef __cplusplus 7727extern "C" 7728#endif 7729/* We use char because int might match the return type of a gcc2 7730 builtin and then its argument prototype would still apply. */ 7731char dlopen (); 7732int 7733main () 7734{ 7735dlopen (); 7736 ; 7737 return 0; 7738} 7739_ACEOF 7740rm -f conftest.$ac_objext conftest$ac_exeext 7741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7742 (eval $ac_link) 2>&5 7743 ac_status=$? 7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7745 (exit $ac_status); } && 7746 { ac_try='test -s conftest$ac_exeext' 7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7748 (eval $ac_try) 2>&5 7749 ac_status=$? 7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7751 (exit $ac_status); }; }; then 7752 ac_cv_lib_dl_dlopen=yes 7753else 7754 echo "$as_me: failed program was:" >&5 7755sed 's/^/| /' conftest.$ac_ext >&5 7756 7757ac_cv_lib_dl_dlopen=no 7758fi 7759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7760LIBS=$ac_check_lib_save_LIBS 7761fi 7762echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7763echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7764if test $ac_cv_lib_dl_dlopen = yes; then 7765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7766else 7767 7768 lt_cv_dlopen="dyld" 7769 lt_cv_dlopen_libs= 7770 lt_cv_dlopen_self=yes 7771 7772fi 7773 7774 ;; 7775 7776 *) 7777 echo "$as_me:$LINENO: checking for shl_load" >&5 7778echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7779if test "${ac_cv_func_shl_load+set}" = set; then 7780 echo $ECHO_N "(cached) $ECHO_C" >&6 7781else 7782 cat >conftest.$ac_ext <<_ACEOF 7783#line $LINENO "configure" 7784/* confdefs.h. */ 7785_ACEOF 7786cat confdefs.h >>conftest.$ac_ext 7787cat >>conftest.$ac_ext <<_ACEOF 7788/* end confdefs.h. */ 7789/* System header to define __stub macros and hopefully few prototypes, 7790 which can conflict with char shl_load (); below. 7791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7792 <limits.h> exists even on freestanding compilers. */ 7793#ifdef __STDC__ 7794# include <limits.h> 7795#else 7796# include <assert.h> 7797#endif 7798/* Override any gcc2 internal prototype to avoid an error. */ 7799#ifdef __cplusplus 7800extern "C" 7801{ 7802#endif 7803/* We use char because int might match the return type of a gcc2 7804 builtin and then its argument prototype would still apply. */ 7805char shl_load (); 7806/* The GNU C library defines this for functions which it implements 7807 to always fail with ENOSYS. Some functions are actually named 7808 something starting with __ and the normal name is an alias. */ 7809#if defined (__stub_shl_load) || defined (__stub___shl_load) 7810choke me 7811#else 7812char (*f) () = shl_load; 7813#endif 7814#ifdef __cplusplus 7815} 7816#endif 7817 7818int 7819main () 7820{ 7821return f != shl_load; 7822 ; 7823 return 0; 7824} 7825_ACEOF 7826rm -f conftest.$ac_objext conftest$ac_exeext 7827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7828 (eval $ac_link) 2>&5 7829 ac_status=$? 7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7831 (exit $ac_status); } && 7832 { ac_try='test -s conftest$ac_exeext' 7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7834 (eval $ac_try) 2>&5 7835 ac_status=$? 7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 (exit $ac_status); }; }; then 7838 ac_cv_func_shl_load=yes 7839else 7840 echo "$as_me: failed program was:" >&5 7841sed 's/^/| /' conftest.$ac_ext >&5 7842 7843ac_cv_func_shl_load=no 7844fi 7845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7846fi 7847echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7848echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7849if test $ac_cv_func_shl_load = yes; then 7850 lt_cv_dlopen="shl_load" 7851else 7852 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7853echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7854if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7855 echo $ECHO_N "(cached) $ECHO_C" >&6 7856else 7857 ac_check_lib_save_LIBS=$LIBS 7858LIBS="-ldld $LIBS" 7859cat >conftest.$ac_ext <<_ACEOF 7860#line $LINENO "configure" 7861/* confdefs.h. */ 7862_ACEOF 7863cat confdefs.h >>conftest.$ac_ext 7864cat >>conftest.$ac_ext <<_ACEOF 7865/* end confdefs.h. */ 7866 7867/* Override any gcc2 internal prototype to avoid an error. */ 7868#ifdef __cplusplus 7869extern "C" 7870#endif 7871/* We use char because int might match the return type of a gcc2 7872 builtin and then its argument prototype would still apply. */ 7873char shl_load (); 7874int 7875main () 7876{ 7877shl_load (); 7878 ; 7879 return 0; 7880} 7881_ACEOF 7882rm -f conftest.$ac_objext conftest$ac_exeext 7883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7884 (eval $ac_link) 2>&5 7885 ac_status=$? 7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7887 (exit $ac_status); } && 7888 { ac_try='test -s conftest$ac_exeext' 7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7890 (eval $ac_try) 2>&5 7891 ac_status=$? 7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7893 (exit $ac_status); }; }; then 7894 ac_cv_lib_dld_shl_load=yes 7895else 7896 echo "$as_me: failed program was:" >&5 7897sed 's/^/| /' conftest.$ac_ext >&5 7898 7899ac_cv_lib_dld_shl_load=no 7900fi 7901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7902LIBS=$ac_check_lib_save_LIBS 7903fi 7904echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7905echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7906if test $ac_cv_lib_dld_shl_load = yes; then 7907 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7908else 7909 echo "$as_me:$LINENO: checking for dlopen" >&5 7910echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7911if test "${ac_cv_func_dlopen+set}" = set; then 7912 echo $ECHO_N "(cached) $ECHO_C" >&6 7913else 7914 cat >conftest.$ac_ext <<_ACEOF 7915#line $LINENO "configure" 7916/* confdefs.h. */ 7917_ACEOF 7918cat confdefs.h >>conftest.$ac_ext 7919cat >>conftest.$ac_ext <<_ACEOF 7920/* end confdefs.h. */ 7921/* System header to define __stub macros and hopefully few prototypes, 7922 which can conflict with char dlopen (); below. 7923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7924 <limits.h> exists even on freestanding compilers. */ 7925#ifdef __STDC__ 7926# include <limits.h> 7927#else 7928# include <assert.h> 7929#endif 7930/* Override any gcc2 internal prototype to avoid an error. */ 7931#ifdef __cplusplus 7932extern "C" 7933{ 7934#endif 7935/* We use char because int might match the return type of a gcc2 7936 builtin and then its argument prototype would still apply. */ 7937char dlopen (); 7938/* The GNU C library defines this for functions which it implements 7939 to always fail with ENOSYS. Some functions are actually named 7940 something starting with __ and the normal name is an alias. */ 7941#if defined (__stub_dlopen) || defined (__stub___dlopen) 7942choke me 7943#else 7944char (*f) () = dlopen; 7945#endif 7946#ifdef __cplusplus 7947} 7948#endif 7949 7950int 7951main () 7952{ 7953return f != dlopen; 7954 ; 7955 return 0; 7956} 7957_ACEOF 7958rm -f conftest.$ac_objext conftest$ac_exeext 7959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7960 (eval $ac_link) 2>&5 7961 ac_status=$? 7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7963 (exit $ac_status); } && 7964 { ac_try='test -s conftest$ac_exeext' 7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7966 (eval $ac_try) 2>&5 7967 ac_status=$? 7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7969 (exit $ac_status); }; }; then 7970 ac_cv_func_dlopen=yes 7971else 7972 echo "$as_me: failed program was:" >&5 7973sed 's/^/| /' conftest.$ac_ext >&5 7974 7975ac_cv_func_dlopen=no 7976fi 7977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7978fi 7979echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 7980echo "${ECHO_T}$ac_cv_func_dlopen" >&6 7981if test $ac_cv_func_dlopen = yes; then 7982 lt_cv_dlopen="dlopen" 7983else 7984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7985echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7986if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7987 echo $ECHO_N "(cached) $ECHO_C" >&6 7988else 7989 ac_check_lib_save_LIBS=$LIBS 7990LIBS="-ldl $LIBS" 7991cat >conftest.$ac_ext <<_ACEOF 7992#line $LINENO "configure" 7993/* confdefs.h. */ 7994_ACEOF 7995cat confdefs.h >>conftest.$ac_ext 7996cat >>conftest.$ac_ext <<_ACEOF 7997/* end confdefs.h. */ 7998 7999/* Override any gcc2 internal prototype to avoid an error. */ 8000#ifdef __cplusplus 8001extern "C" 8002#endif 8003/* We use char because int might match the return type of a gcc2 8004 builtin and then its argument prototype would still apply. */ 8005char dlopen (); 8006int 8007main () 8008{ 8009dlopen (); 8010 ; 8011 return 0; 8012} 8013_ACEOF 8014rm -f conftest.$ac_objext conftest$ac_exeext 8015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8016 (eval $ac_link) 2>&5 8017 ac_status=$? 8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8019 (exit $ac_status); } && 8020 { ac_try='test -s conftest$ac_exeext' 8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8022 (eval $ac_try) 2>&5 8023 ac_status=$? 8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8025 (exit $ac_status); }; }; then 8026 ac_cv_lib_dl_dlopen=yes 8027else 8028 echo "$as_me: failed program was:" >&5 8029sed 's/^/| /' conftest.$ac_ext >&5 8030 8031ac_cv_lib_dl_dlopen=no 8032fi 8033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8034LIBS=$ac_check_lib_save_LIBS 8035fi 8036echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8037echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8038if test $ac_cv_lib_dl_dlopen = yes; then 8039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8040else 8041 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8042echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8043if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8044 echo $ECHO_N "(cached) $ECHO_C" >&6 8045else 8046 ac_check_lib_save_LIBS=$LIBS 8047LIBS="-lsvld $LIBS" 8048cat >conftest.$ac_ext <<_ACEOF 8049#line $LINENO "configure" 8050/* confdefs.h. */ 8051_ACEOF 8052cat confdefs.h >>conftest.$ac_ext 8053cat >>conftest.$ac_ext <<_ACEOF 8054/* end confdefs.h. */ 8055 8056/* Override any gcc2 internal prototype to avoid an error. */ 8057#ifdef __cplusplus 8058extern "C" 8059#endif 8060/* We use char because int might match the return type of a gcc2 8061 builtin and then its argument prototype would still apply. */ 8062char dlopen (); 8063int 8064main () 8065{ 8066dlopen (); 8067 ; 8068 return 0; 8069} 8070_ACEOF 8071rm -f conftest.$ac_objext conftest$ac_exeext 8072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8073 (eval $ac_link) 2>&5 8074 ac_status=$? 8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8076 (exit $ac_status); } && 8077 { ac_try='test -s conftest$ac_exeext' 8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8079 (eval $ac_try) 2>&5 8080 ac_status=$? 8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8082 (exit $ac_status); }; }; then 8083 ac_cv_lib_svld_dlopen=yes 8084else 8085 echo "$as_me: failed program was:" >&5 8086sed 's/^/| /' conftest.$ac_ext >&5 8087 8088ac_cv_lib_svld_dlopen=no 8089fi 8090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8091LIBS=$ac_check_lib_save_LIBS 8092fi 8093echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8094echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8095if test $ac_cv_lib_svld_dlopen = yes; then 8096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8097else 8098 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8099echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8100if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8101 echo $ECHO_N "(cached) $ECHO_C" >&6 8102else 8103 ac_check_lib_save_LIBS=$LIBS 8104LIBS="-ldld $LIBS" 8105cat >conftest.$ac_ext <<_ACEOF 8106#line $LINENO "configure" 8107/* confdefs.h. */ 8108_ACEOF 8109cat confdefs.h >>conftest.$ac_ext 8110cat >>conftest.$ac_ext <<_ACEOF 8111/* end confdefs.h. */ 8112 8113/* Override any gcc2 internal prototype to avoid an error. */ 8114#ifdef __cplusplus 8115extern "C" 8116#endif 8117/* We use char because int might match the return type of a gcc2 8118 builtin and then its argument prototype would still apply. */ 8119char dld_link (); 8120int 8121main () 8122{ 8123dld_link (); 8124 ; 8125 return 0; 8126} 8127_ACEOF 8128rm -f conftest.$ac_objext conftest$ac_exeext 8129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8130 (eval $ac_link) 2>&5 8131 ac_status=$? 8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8133 (exit $ac_status); } && 8134 { ac_try='test -s conftest$ac_exeext' 8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8136 (eval $ac_try) 2>&5 8137 ac_status=$? 8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8139 (exit $ac_status); }; }; then 8140 ac_cv_lib_dld_dld_link=yes 8141else 8142 echo "$as_me: failed program was:" >&5 8143sed 's/^/| /' conftest.$ac_ext >&5 8144 8145ac_cv_lib_dld_dld_link=no 8146fi 8147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8148LIBS=$ac_check_lib_save_LIBS 8149fi 8150echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8151echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8152if test $ac_cv_lib_dld_dld_link = yes; then 8153 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8154fi 8155 8156 8157fi 8158 8159 8160fi 8161 8162 8163fi 8164 8165 8166fi 8167 8168 8169fi 8170 8171 ;; 8172 esac 8173 8174 if test "x$lt_cv_dlopen" != xno; then 8175 enable_dlopen=yes 8176 else 8177 enable_dlopen=no 8178 fi 8179 8180 case $lt_cv_dlopen in 8181 dlopen) 8182 save_CPPFLAGS="$CPPFLAGS" 8183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8184 8185 save_LDFLAGS="$LDFLAGS" 8186 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8187 8188 save_LIBS="$LIBS" 8189 LIBS="$lt_cv_dlopen_libs $LIBS" 8190 8191 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8192echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8193if test "${lt_cv_dlopen_self+set}" = set; then 8194 echo $ECHO_N "(cached) $ECHO_C" >&6 8195else 8196 if test "$cross_compiling" = yes; then : 8197 lt_cv_dlopen_self=cross 8198else 8199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8200 lt_status=$lt_dlunknown 8201 cat > conftest.$ac_ext <<EOF 8202#line 8202 "configure" 8203#include "confdefs.h" 8204 8205#if HAVE_DLFCN_H 8206#include <dlfcn.h> 8207#endif 8208 8209#include <stdio.h> 8210 8211#ifdef RTLD_GLOBAL 8212# define LT_DLGLOBAL RTLD_GLOBAL 8213#else 8214# ifdef DL_GLOBAL 8215# define LT_DLGLOBAL DL_GLOBAL 8216# else 8217# define LT_DLGLOBAL 0 8218# endif 8219#endif 8220 8221/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8222 find out it does not work in some platform. */ 8223#ifndef LT_DLLAZY_OR_NOW 8224# ifdef RTLD_LAZY 8225# define LT_DLLAZY_OR_NOW RTLD_LAZY 8226# else 8227# ifdef DL_LAZY 8228# define LT_DLLAZY_OR_NOW DL_LAZY 8229# else 8230# ifdef RTLD_NOW 8231# define LT_DLLAZY_OR_NOW RTLD_NOW 8232# else 8233# ifdef DL_NOW 8234# define LT_DLLAZY_OR_NOW DL_NOW 8235# else 8236# define LT_DLLAZY_OR_NOW 0 8237# endif 8238# endif 8239# endif 8240# endif 8241#endif 8242 8243#ifdef __cplusplus 8244extern "C" void exit (int); 8245#endif 8246 8247void fnord() { int i=42;} 8248int main () 8249{ 8250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8251 int status = $lt_dlunknown; 8252 8253 if (self) 8254 { 8255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8257 /* dlclose (self); */ 8258 } 8259 8260 exit (status); 8261} 8262EOF 8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8264 (eval $ac_link) 2>&5 8265 ac_status=$? 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8268 (./conftest; exit; ) 2>/dev/null 8269 lt_status=$? 8270 case x$lt_status in 8271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8273 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8274 esac 8275 else : 8276 # compilation failed 8277 lt_cv_dlopen_self=no 8278 fi 8279fi 8280rm -fr conftest* 8281 8282 8283fi 8284echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8285echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8286 8287 if test "x$lt_cv_dlopen_self" = xyes; then 8288 LDFLAGS="$LDFLAGS $link_static_flag" 8289 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8290echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8291if test "${lt_cv_dlopen_self_static+set}" = set; then 8292 echo $ECHO_N "(cached) $ECHO_C" >&6 8293else 8294 if test "$cross_compiling" = yes; then : 8295 lt_cv_dlopen_self_static=cross 8296else 8297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8298 lt_status=$lt_dlunknown 8299 cat > conftest.$ac_ext <<EOF 8300#line 8300 "configure" 8301#include "confdefs.h" 8302 8303#if HAVE_DLFCN_H 8304#include <dlfcn.h> 8305#endif 8306 8307#include <stdio.h> 8308 8309#ifdef RTLD_GLOBAL 8310# define LT_DLGLOBAL RTLD_GLOBAL 8311#else 8312# ifdef DL_GLOBAL 8313# define LT_DLGLOBAL DL_GLOBAL 8314# else 8315# define LT_DLGLOBAL 0 8316# endif 8317#endif 8318 8319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8320 find out it does not work in some platform. */ 8321#ifndef LT_DLLAZY_OR_NOW 8322# ifdef RTLD_LAZY 8323# define LT_DLLAZY_OR_NOW RTLD_LAZY 8324# else 8325# ifdef DL_LAZY 8326# define LT_DLLAZY_OR_NOW DL_LAZY 8327# else 8328# ifdef RTLD_NOW 8329# define LT_DLLAZY_OR_NOW RTLD_NOW 8330# else 8331# ifdef DL_NOW 8332# define LT_DLLAZY_OR_NOW DL_NOW 8333# else 8334# define LT_DLLAZY_OR_NOW 0 8335# endif 8336# endif 8337# endif 8338# endif 8339#endif 8340 8341#ifdef __cplusplus 8342extern "C" void exit (int); 8343#endif 8344 8345void fnord() { int i=42;} 8346int main () 8347{ 8348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8349 int status = $lt_dlunknown; 8350 8351 if (self) 8352 { 8353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8355 /* dlclose (self); */ 8356 } 8357 8358 exit (status); 8359} 8360EOF 8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8362 (eval $ac_link) 2>&5 8363 ac_status=$? 8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8366 (./conftest; exit; ) 2>/dev/null 8367 lt_status=$? 8368 case x$lt_status in 8369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8371 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8372 esac 8373 else : 8374 # compilation failed 8375 lt_cv_dlopen_self_static=no 8376 fi 8377fi 8378rm -fr conftest* 8379 8380 8381fi 8382echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8383echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8384 fi 8385 8386 CPPFLAGS="$save_CPPFLAGS" 8387 LDFLAGS="$save_LDFLAGS" 8388 LIBS="$save_LIBS" 8389 ;; 8390 esac 8391 8392 case $lt_cv_dlopen_self in 8393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8394 *) enable_dlopen_self=unknown ;; 8395 esac 8396 8397 case $lt_cv_dlopen_self_static in 8398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8399 *) enable_dlopen_self_static=unknown ;; 8400 esac 8401fi 8402 8403 8404# Report which librarie types wil actually be built 8405echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8406echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8407echo "$as_me:$LINENO: result: $can_build_shared" >&5 8408echo "${ECHO_T}$can_build_shared" >&6 8409 8410echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8411echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8412test "$can_build_shared" = "no" && enable_shared=no 8413 8414# On AIX, shared libraries and static libraries use the same namespace, and 8415# are all built from PIC. 8416case "$host_os" in 8417aix3*) 8418 test "$enable_shared" = yes && enable_static=no 8419 if test -n "$RANLIB"; then 8420 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8421 postinstall_cmds='$RANLIB $lib' 8422 fi 8423 ;; 8424 8425aix4*) 8426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8427 test "$enable_shared" = yes && enable_static=no 8428 fi 8429 ;; 8430 darwin* | rhapsody*) 8431 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 8432 archive_cmds_need_lc=no 8433 case "$host_os" in 8434 rhapsody* | darwin1.[012]) 8435 allow_undefined_flag='-undefined suppress' 8436 ;; 8437 *) # Darwin 1.3 on 8438 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 8439 ;; 8440 esac 8441 # FIXME: Relying on posixy $() will cause problems for 8442 # cross-compilation, but unfortunately the echo tests do not 8443 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 8444 # `"' quotes if we put them in here... so don't! 8445 output_verbose_link_cmd='echo' 8446 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 8447 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 8448 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8449 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}' 8450 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}' 8451 hardcode_direct=no 8452 hardcode_automatic=yes 8453 hardcode_shlibpath_var=unsupported 8454 whole_archive_flag_spec='-all_load $convenience' 8455 link_all_deplibs=yes 8456 fi 8457 ;; 8458esac 8459echo "$as_me:$LINENO: result: $enable_shared" >&5 8460echo "${ECHO_T}$enable_shared" >&6 8461 8462echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8463echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8464# Make sure either enable_shared or enable_static is yes. 8465test "$enable_shared" = yes || enable_static=yes 8466echo "$as_me:$LINENO: result: $enable_static" >&5 8467echo "${ECHO_T}$enable_static" >&6 8468 8469# The else clause should only fire when bootstrapping the 8470# libtool distribution, otherwise you forgot to ship ltmain.sh 8471# with your package, and you will get complaints that there are 8472# no rules to generate ltmain.sh. 8473if test -f "$ltmain"; then 8474 # See if we are running on zsh, and set the options which allow our commands through 8475 # without removal of \ escapes. 8476 if test -n "${ZSH_VERSION+set}" ; then 8477 setopt NO_GLOB_SUBST 8478 fi 8479 # Now quote all the things that may contain metacharacters while being 8480 # careful not to overquote the AC_SUBSTed values. We take copies of the 8481 # variables and quote the copies for generation of the libtool script. 8482 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 8483 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8484 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8485 deplibs_check_method reload_flag reload_cmds need_locks \ 8486 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8487 lt_cv_sys_global_symbol_to_c_name_address \ 8488 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8489 old_postinstall_cmds old_postuninstall_cmds \ 8490 compiler \ 8491 CC \ 8492 LD \ 8493 lt_prog_compiler_wl \ 8494 lt_prog_compiler_pic \ 8495 lt_prog_compiler_static \ 8496 lt_prog_compiler_no_builtin_flag \ 8497 export_dynamic_flag_spec \ 8498 thread_safe_flag_spec \ 8499 whole_archive_flag_spec \ 8500 enable_shared_with_static_runtimes \ 8501 old_archive_cmds \ 8502 old_archive_from_new_cmds \ 8503 predep_objects \ 8504 postdep_objects \ 8505 predeps \ 8506 postdeps \ 8507 compiler_lib_search_path \ 8508 archive_cmds \ 8509 archive_expsym_cmds \ 8510 postinstall_cmds \ 8511 postuninstall_cmds \ 8512 old_archive_from_expsyms_cmds \ 8513 allow_undefined_flag \ 8514 no_undefined_flag \ 8515 export_symbols_cmds \ 8516 hardcode_libdir_flag_spec \ 8517 hardcode_libdir_flag_spec_ld \ 8518 hardcode_libdir_separator \ 8519 hardcode_automatic \ 8520 module_cmds \ 8521 module_expsym_cmds \ 8522 lt_cv_prog_compiler_c_o \ 8523 exclude_expsyms \ 8524 include_expsyms; do 8525 8526 case $var in 8527 old_archive_cmds | \ 8528 old_archive_from_new_cmds | \ 8529 archive_cmds | \ 8530 archive_expsym_cmds | \ 8531 module_cmds | \ 8532 module_expsym_cmds | \ 8533 old_archive_from_expsyms_cmds | \ 8534 export_symbols_cmds | \ 8535 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8536 postinstall_cmds | postuninstall_cmds | \ 8537 old_postinstall_cmds | old_postuninstall_cmds | \ 8538 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8539 # Double-quote double-evaled strings. 8540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8541 ;; 8542 *) 8543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8544 ;; 8545 esac 8546 done 8547 8548 case $lt_echo in 8549 *'\$0 --fallback-echo"') 8550 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8551 ;; 8552 esac 8553 8554cfgfile="${ofile}T" 8555 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8556 $rm -f "$cfgfile" 8557 { echo "$as_me:$LINENO: creating $ofile" >&5 8558echo "$as_me: creating $ofile" >&6;} 8559 8560 cat <<__EOF__ >> "$cfgfile" 8561#! $SHELL 8562 8563# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8564# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8565# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8566# 8567# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8568# Free Software Foundation, Inc. 8569# 8570# This file is part of GNU Libtool: 8571# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8572# 8573# This program is free software; you can redistribute it and/or modify 8574# it under the terms of the GNU General Public License as published by 8575# the Free Software Foundation; either version 2 of the License, or 8576# (at your option) any later version. 8577# 8578# This program is distributed in the hope that it will be useful, but 8579# WITHOUT ANY WARRANTY; without even the implied warranty of 8580# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8581# General Public License for more details. 8582# 8583# You should have received a copy of the GNU General Public License 8584# along with this program; if not, write to the Free Software 8585# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8586# 8587# As a special exception to the GNU General Public License, if you 8588# distribute this file as part of a program that contains a 8589# configuration script generated by Autoconf, you may include it under 8590# the same distribution terms that you use for the rest of that program. 8591 8592# A sed program that does not truncate output. 8593SED=$lt_SED 8594 8595# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8596Xsed="$SED -e s/^X//" 8597 8598# The HP-UX ksh and POSIX shell print the target directory to stdout 8599# if CDPATH is set. 8600if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 8601 8602# The names of the tagged configurations supported by this script. 8603available_tags= 8604 8605# ### BEGIN LIBTOOL CONFIG 8606 8607# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8608 8609# Shell to use when invoking shell scripts. 8610SHELL=$lt_SHELL 8611 8612# Whether or not to build shared libraries. 8613build_libtool_libs=$enable_shared 8614 8615# Whether or not to build static libraries. 8616build_old_libs=$enable_static 8617 8618# Whether or not to add -lc for building shared libraries. 8619build_libtool_need_lc=$archive_cmds_need_lc 8620 8621# Whether or not to disallow shared libs when runtime libs are static 8622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8623 8624# Whether or not to optimize for fast installation. 8625fast_install=$enable_fast_install 8626 8627# The host system. 8628host_alias=$host_alias 8629host=$host 8630 8631# An echo program that does not interpret backslashes. 8632echo=$lt_echo 8633 8634# The archiver. 8635AR=$lt_AR 8636AR_FLAGS=$lt_AR_FLAGS 8637 8638# A C compiler. 8639LTCC=$lt_LTCC 8640 8641# A language-specific compiler. 8642CC=$lt_compiler 8643 8644# Is the compiler the GNU C compiler? 8645with_gcc=$GCC 8646 8647# An ERE matcher. 8648EGREP=$lt_EGREP 8649 8650# The linker used to build libraries. 8651LD=$lt_LD 8652 8653# Whether we need hard or soft links. 8654LN_S=$lt_LN_S 8655 8656# A BSD-compatible nm program. 8657NM=$lt_NM 8658 8659# A symbol stripping program 8660STRIP=$STRIP 8661 8662# Used to examine libraries when file_magic_cmd begins "file" 8663MAGIC_CMD=$MAGIC_CMD 8664 8665# Used on cygwin: DLL creation program. 8666DLLTOOL="$DLLTOOL" 8667 8668# Used on cygwin: object dumper. 8669OBJDUMP="$OBJDUMP" 8670 8671# Used on cygwin: assembler. 8672AS="$AS" 8673 8674# The name of the directory that contains temporary libtool files. 8675objdir=$objdir 8676 8677# How to create reloadable object files. 8678reload_flag=$lt_reload_flag 8679reload_cmds=$lt_reload_cmds 8680 8681# How to pass a linker flag through the compiler. 8682wl=$lt_lt_prog_compiler_wl 8683 8684# Object file suffix (normally "o"). 8685objext="$ac_objext" 8686 8687# Old archive suffix (normally "a"). 8688libext="$libext" 8689 8690# Shared library suffix (normally ".so"). 8691shrext='$shrext' 8692 8693# Executable file suffix (normally ""). 8694exeext="$exeext" 8695 8696# Additional compiler flags for building library objects. 8697pic_flag=$lt_lt_prog_compiler_pic 8698pic_mode=$pic_mode 8699 8700# What is the maximum length of a command? 8701max_cmd_len=$lt_cv_sys_max_cmd_len 8702 8703# Does compiler simultaneously support -c and -o options? 8704compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8705 8706# Must we lock files when doing compilation ? 8707need_locks=$lt_need_locks 8708 8709# Do we need the lib prefix for modules? 8710need_lib_prefix=$need_lib_prefix 8711 8712# Do we need a version for libraries? 8713need_version=$need_version 8714 8715# Whether dlopen is supported. 8716dlopen_support=$enable_dlopen 8717 8718# Whether dlopen of programs is supported. 8719dlopen_self=$enable_dlopen_self 8720 8721# Whether dlopen of statically linked programs is supported. 8722dlopen_self_static=$enable_dlopen_self_static 8723 8724# Compiler flag to prevent dynamic linking. 8725link_static_flag=$lt_lt_prog_compiler_static 8726 8727# Compiler flag to turn off builtin functions. 8728no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8729 8730# Compiler flag to allow reflexive dlopens. 8731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8732 8733# Compiler flag to generate shared objects directly from archives. 8734whole_archive_flag_spec=$lt_whole_archive_flag_spec 8735 8736# Compiler flag to generate thread-safe objects. 8737thread_safe_flag_spec=$lt_thread_safe_flag_spec 8738 8739# Library versioning type. 8740version_type=$version_type 8741 8742# Format of library name prefix. 8743libname_spec=$lt_libname_spec 8744 8745# List of archive names. First name is the real one, the rest are links. 8746# The last name is the one that the linker finds with -lNAME. 8747library_names_spec=$lt_library_names_spec 8748 8749# The coded name of the library, if different from the real name. 8750soname_spec=$lt_soname_spec 8751 8752# Commands used to build and install an old-style archive. 8753RANLIB=$lt_RANLIB 8754old_archive_cmds=$lt_old_archive_cmds 8755old_postinstall_cmds=$lt_old_postinstall_cmds 8756old_postuninstall_cmds=$lt_old_postuninstall_cmds 8757 8758# Create an old-style archive from a shared archive. 8759old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8760 8761# Create a temporary old-style archive to link instead of a shared archive. 8762old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8763 8764# Commands used to build and install a shared archive. 8765archive_cmds=$lt_archive_cmds 8766archive_expsym_cmds=$lt_archive_expsym_cmds 8767postinstall_cmds=$lt_postinstall_cmds 8768postuninstall_cmds=$lt_postuninstall_cmds 8769 8770# Commands used to build a loadable module (assumed same as above if empty) 8771module_cmds=$lt_module_cmds 8772module_expsym_cmds=$lt_module_expsym_cmds 8773 8774# Commands to strip libraries. 8775old_striplib=$lt_old_striplib 8776striplib=$lt_striplib 8777 8778# Dependencies to place before the objects being linked to create a 8779# shared library. 8780predep_objects=$lt_predep_objects 8781 8782# Dependencies to place after the objects being linked to create a 8783# shared library. 8784postdep_objects=$lt_postdep_objects 8785 8786# Dependencies to place before the objects being linked to create a 8787# shared library. 8788predeps=$lt_predeps 8789 8790# Dependencies to place after the objects being linked to create a 8791# shared library. 8792postdeps=$lt_postdeps 8793 8794# The library search path used internally by the compiler when linking 8795# a shared library. 8796compiler_lib_search_path=$lt_compiler_lib_search_path 8797 8798# Method to check whether dependent libraries are shared objects. 8799deplibs_check_method=$lt_deplibs_check_method 8800 8801# Command to use when deplibs_check_method == file_magic. 8802file_magic_cmd=$lt_file_magic_cmd 8803 8804# Flag that allows shared libraries with undefined symbols to be built. 8805allow_undefined_flag=$lt_allow_undefined_flag 8806 8807# Flag that forces no undefined symbols. 8808no_undefined_flag=$lt_no_undefined_flag 8809 8810# Commands used to finish a libtool library installation in a directory. 8811finish_cmds=$lt_finish_cmds 8812 8813# Same as above, but a single script fragment to be evaled but not shown. 8814finish_eval=$lt_finish_eval 8815 8816# Take the output of nm and produce a listing of raw symbols and C names. 8817global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 8818 8819# Transform the output of nm in a proper C declaration 8820global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 8821 8822# Transform the output of nm in a C name address pair 8823global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 8824 8825# This is the shared library runtime path variable. 8826runpath_var=$runpath_var 8827 8828# This is the shared library path variable. 8829shlibpath_var=$shlibpath_var 8830 8831# Is shlibpath searched before the hard-coded library search path? 8832shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8833 8834# How to hardcode a shared library path into an executable. 8835hardcode_action=$hardcode_action 8836 8837# Whether we should hardcode library paths into libraries. 8838hardcode_into_libs=$hardcode_into_libs 8839 8840# Flag to hardcode \$libdir into a binary during linking. 8841# This must work even if \$libdir does not exist. 8842hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8843 8844# If ld is used when linking, flag to hardcode \$libdir into 8845# a binary during linking. This must work even if \$libdir does 8846# not exist. 8847hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 8848 8849# Whether we need a single -rpath flag with a separated argument. 8850hardcode_libdir_separator=$lt_hardcode_libdir_separator 8851 8852# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 8853# resulting binary. 8854hardcode_direct=$hardcode_direct 8855 8856# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8857# resulting binary. 8858hardcode_minus_L=$hardcode_minus_L 8859 8860# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8861# the resulting binary. 8862hardcode_shlibpath_var=$hardcode_shlibpath_var 8863 8864# Set to yes if building a shared library automatically hardcodes DIR into the library 8865# and all subsequent libraries and executables linked against it. 8866hardcode_automatic=$hardcode_automatic 8867 8868# Variables whose values should be saved in libtool wrapper scripts and 8869# restored at relink time. 8870variables_saved_for_relink="$variables_saved_for_relink" 8871 8872# Whether libtool must link a program against all its dependency libraries. 8873link_all_deplibs=$link_all_deplibs 8874 8875# Compile-time system search path for libraries 8876sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8877 8878# Run-time system search path for libraries 8879sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8880 8881# Fix the shell variable \$srcfile for the compiler. 8882fix_srcfile_path="$fix_srcfile_path" 8883 8884# Set to yes if exported symbols are required. 8885always_export_symbols=$always_export_symbols 8886 8887# The commands to list exported symbols. 8888export_symbols_cmds=$lt_export_symbols_cmds 8889 8890# The commands to extract the exported symbol list from a shared archive. 8891extract_expsyms_cmds=$lt_extract_expsyms_cmds 8892 8893# Symbols that should not be listed in the preloaded symbols. 8894exclude_expsyms=$lt_exclude_expsyms 8895 8896# Symbols that must always be exported. 8897include_expsyms=$lt_include_expsyms 8898 8899# ### END LIBTOOL CONFIG 8900 8901__EOF__ 8902 8903 8904 case $host_os in 8905 aix3*) 8906 cat <<\EOF >> "$cfgfile" 8907 8908# AIX sometimes has problems with the GCC collect2 program. For some 8909# reason, if we set the COLLECT_NAMES environment variable, the problems 8910# vanish in a puff of smoke. 8911if test "X${COLLECT_NAMES+set}" != Xset; then 8912 COLLECT_NAMES= 8913 export COLLECT_NAMES 8914fi 8915EOF 8916 ;; 8917 esac 8918 8919 # We use sed instead of cat because bash on DJGPP gets confused if 8920 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8921 # text mode, it properly converts lines to CR/LF. This bash problem 8922 # is reportedly fixed, but why not run on old versions too? 8923 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 8924 8925 mv -f "$cfgfile" "$ofile" || \ 8926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 8927 chmod +x "$ofile" 8928 8929else 8930 # If there is no Makefile yet, we rely on a make rule to execute 8931 # `config.status --recheck' to rerun these tests and create the 8932 # libtool script then. 8933 test -f Makefile && make "$ltmain" 8934fi 8935 8936 8937ac_ext=c 8938ac_cpp='$CPP $CPPFLAGS' 8939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8941ac_compiler_gnu=$ac_cv_c_compiler_gnu 8942 8943CC="$lt_save_CC" 8944 8945 8946# Check whether --with-tags or --without-tags was given. 8947if test "${with_tags+set}" = set; then 8948 withval="$with_tags" 8949 tagnames="$withval" 8950fi; 8951 8952if test -f "$ltmain" && test -n "$tagnames"; then 8953 if test ! -f "${ofile}"; then 8954 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 8955echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 8956 fi 8957 8958 if test -z "$LTCC"; then 8959 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 8960 if test -z "$LTCC"; then 8961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 8962echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 8963 else 8964 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 8965echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 8966 fi 8967 fi 8968 8969 # Extract list of available tagged configurations in $ofile. 8970 # Note that this assumes the entire list is on one line. 8971 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 8972 8973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8974 for tagname in $tagnames; do 8975 IFS="$lt_save_ifs" 8976 # Check whether tagname contains only valid characters 8977 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 8978 "") ;; 8979 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 8980echo "$as_me: error: invalid tag name: $tagname" >&2;} 8981 { (exit 1); exit 1; }; } 8982 ;; 8983 esac 8984 8985 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 8986 then 8987 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 8988echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 8989 { (exit 1); exit 1; }; } 8990 fi 8991 8992 # Update the list of available tags. 8993 if test -n "$tagname"; then 8994 echo appending configuration tag \"$tagname\" to $ofile 8995 8996 case $tagname in 8997 CXX) 8998 if test -n "$CXX" && test "X$CXX" != "Xno"; then 8999 ac_ext=cc 9000ac_cpp='$CXXCPP $CPPFLAGS' 9001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9004 9005 9006 9007 9008archive_cmds_need_lc_CXX=no 9009allow_undefined_flag_CXX= 9010always_export_symbols_CXX=no 9011archive_expsym_cmds_CXX= 9012export_dynamic_flag_spec_CXX= 9013hardcode_direct_CXX=no 9014hardcode_libdir_flag_spec_CXX= 9015hardcode_libdir_flag_spec_ld_CXX= 9016hardcode_libdir_separator_CXX= 9017hardcode_minus_L_CXX=no 9018hardcode_automatic_CXX=no 9019module_cmds_CXX= 9020module_expsym_cmds_CXX= 9021link_all_deplibs_CXX=unknown 9022old_archive_cmds_CXX=$old_archive_cmds 9023no_undefined_flag_CXX= 9024whole_archive_flag_spec_CXX= 9025enable_shared_with_static_runtimes_CXX=no 9026 9027# Dependencies to place before and after the object being linked: 9028predep_objects_CXX= 9029postdep_objects_CXX= 9030predeps_CXX= 9031postdeps_CXX= 9032compiler_lib_search_path_CXX= 9033 9034# Source file extension for C++ test sources. 9035ac_ext=cc 9036 9037# Object file extension for compiled C++ test sources. 9038objext=o 9039objext_CXX=$objext 9040 9041# Code to be used in simple compile tests 9042lt_simple_compile_test_code="int some_variable = 0;\n" 9043 9044# Code to be used in simple link tests 9045lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9046 9047# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9048 9049# If no C compiler was specified, use CC. 9050LTCC=${LTCC-"$CC"} 9051 9052# Allow CC to be a program name with arguments. 9053compiler=$CC 9054 9055 9056# Allow CC to be a program name with arguments. 9057lt_save_CC=$CC 9058lt_save_LD=$LD 9059lt_save_GCC=$GCC 9060GCC=$GXX 9061lt_save_with_gnu_ld=$with_gnu_ld 9062lt_save_path_LD=$lt_cv_path_LD 9063if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9065else 9066 unset lt_cv_prog_gnu_ld 9067fi 9068if test -n "${lt_cv_path_LDCXX+set}"; then 9069 lt_cv_path_LD=$lt_cv_path_LDCXX 9070else 9071 unset lt_cv_path_LD 9072fi 9073test -z "${LDCXX+set}" || LD=$LDCXX 9074CC=${CXX-"c++"} 9075compiler=$CC 9076compiler_CXX=$CC 9077cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9078 9079# We don't want -fno-exception wen compiling C++ code, so set the 9080# no_builtin_flag separately 9081if test "$GXX" = yes; then 9082 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9083else 9084 lt_prog_compiler_no_builtin_flag_CXX= 9085fi 9086 9087if test "$GXX" = yes; then 9088 # Set up default GNU C++ configuration 9089 9090 9091# Check whether --with-gnu-ld or --without-gnu-ld was given. 9092if test "${with_gnu_ld+set}" = set; then 9093 withval="$with_gnu_ld" 9094 test "$withval" = no || with_gnu_ld=yes 9095else 9096 with_gnu_ld=no 9097fi; 9098ac_prog=ld 9099if test "$GCC" = yes; then 9100 # Check if gcc -print-prog-name=ld gives a path. 9101 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9102echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9103 case $host in 9104 *-*-mingw*) 9105 # gcc leaves a trailing carriage return which upsets mingw 9106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9107 *) 9108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9109 esac 9110 case $ac_prog in 9111 # Accept absolute paths. 9112 [\\/]* | ?:[\\/]*) 9113 re_direlt='/[^/][^/]*/\.\./' 9114 # Canonicalize the path of ld 9115 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9117 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9118 done 9119 test -z "$LD" && LD="$ac_prog" 9120 ;; 9121 "") 9122 # If it fails, then pretend we aren't using GCC. 9123 ac_prog=ld 9124 ;; 9125 *) 9126 # If it is relative, then search for the first ld in PATH. 9127 with_gnu_ld=unknown 9128 ;; 9129 esac 9130elif test "$with_gnu_ld" = yes; then 9131 echo "$as_me:$LINENO: checking for GNU ld" >&5 9132echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9133else 9134 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9135echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9136fi 9137if test "${lt_cv_path_LD+set}" = set; then 9138 echo $ECHO_N "(cached) $ECHO_C" >&6 9139else 9140 if test -z "$LD"; then 9141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9142 for ac_dir in $PATH; do 9143 IFS="$lt_save_ifs" 9144 test -z "$ac_dir" && ac_dir=. 9145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9146 lt_cv_path_LD="$ac_dir/$ac_prog" 9147 # Check to see if the program is GNU ld. I'd rather use --version, 9148 # but apparently some GNU ld's only accept -v. 9149 # Break only if it was the GNU/non-GNU ld that we prefer. 9150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9151 *GNU* | *'with BFD'*) 9152 test "$with_gnu_ld" != no && break 9153 ;; 9154 *) 9155 test "$with_gnu_ld" != yes && break 9156 ;; 9157 esac 9158 fi 9159 done 9160 IFS="$lt_save_ifs" 9161else 9162 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9163fi 9164fi 9165 9166LD="$lt_cv_path_LD" 9167if test -n "$LD"; then 9168 echo "$as_me:$LINENO: result: $LD" >&5 9169echo "${ECHO_T}$LD" >&6 9170else 9171 echo "$as_me:$LINENO: result: no" >&5 9172echo "${ECHO_T}no" >&6 9173fi 9174test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9175echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9176 { (exit 1); exit 1; }; } 9177echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9178echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9179if test "${lt_cv_prog_gnu_ld+set}" = set; then 9180 echo $ECHO_N "(cached) $ECHO_C" >&6 9181else 9182 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9183case `"$LD" -v 2>&1 </dev/null` in 9184*GNU* | *'with BFD'*) 9185 lt_cv_prog_gnu_ld=yes 9186 ;; 9187*) 9188 lt_cv_prog_gnu_ld=no 9189 ;; 9190esac 9191fi 9192echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9193echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9194with_gnu_ld=$lt_cv_prog_gnu_ld 9195 9196 9197 9198 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9199 # archiving commands below assume that GNU ld is being used. 9200 if test "$with_gnu_ld" = yes; then 9201 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9202 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' 9203 9204 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9206 9207 # If archive_cmds runs LD, not CC, wlarc should be empty 9208 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9209 # investigate it a little bit more. (MM) 9210 wlarc='${wl}' 9211 9212 # ancient GNU ld didn't support --whole-archive et. al. 9213 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9214 grep 'no-whole-archive' > /dev/null; then 9215 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9216 else 9217 whole_archive_flag_spec_CXX= 9218 fi 9219 else 9220 with_gnu_ld=no 9221 wlarc= 9222 9223 # A generic and very simple default shared library creation 9224 # command for GNU C++ for the case where it uses the native 9225 # linker, instead of GNU ld. If possible, this setting should 9226 # overridden to take advantage of the native linker features on 9227 # the platform it is being used on. 9228 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9229 fi 9230 9231 # Commands to make compiler produce verbose output that lists 9232 # what "hidden" libraries, object files and flags are used when 9233 # linking a shared library. 9234 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9235 9236else 9237 GXX=no 9238 with_gnu_ld=no 9239 wlarc= 9240fi 9241 9242# PORTME: fill in a description of your system's C++ link characteristics 9243echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9244echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9245ld_shlibs_CXX=yes 9246case $host_os in 9247 aix3*) 9248 # FIXME: insert proper C++ library support 9249 ld_shlibs_CXX=no 9250 ;; 9251 aix4* | aix5*) 9252 if test "$host_cpu" = ia64; then 9253 # On IA64, the linker does run time linking by default, so we don't 9254 # have to do anything special. 9255 aix_use_runtimelinking=no 9256 exp_sym_flag='-Bexport' 9257 no_entry_flag="" 9258 else 9259 aix_use_runtimelinking=no 9260 9261 # Test if we are trying to use run time linking or normal 9262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9263 # need to do runtime linking. 9264 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9265 for ld_flag in $LDFLAGS; do 9266 case $ld_flag in 9267 *-brtl*) 9268 aix_use_runtimelinking=yes 9269 break 9270 ;; 9271 esac 9272 done 9273 esac 9274 9275 exp_sym_flag='-bexport' 9276 no_entry_flag='-bnoentry' 9277 fi 9278 9279 # When large executables or shared objects are built, AIX ld can 9280 # have problems creating the table of contents. If linking a library 9281 # or program results in "error TOC overflow" add -mminimal-toc to 9282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9284 9285 archive_cmds_CXX='' 9286 hardcode_direct_CXX=yes 9287 hardcode_libdir_separator_CXX=':' 9288 link_all_deplibs_CXX=yes 9289 9290 if test "$GXX" = yes; then 9291 case $host_os in aix4.012|aix4.012.*) 9292 # We only want to do this on AIX 4.2 and lower, the check 9293 # below for broken collect2 doesn't work under 4.3+ 9294 collect2name=`${CC} -print-prog-name=collect2` 9295 if test -f "$collect2name" && \ 9296 strings "$collect2name" | grep resolve_lib_name >/dev/null 9297 then 9298 # We have reworked collect2 9299 hardcode_direct_CXX=yes 9300 else 9301 # We have old collect2 9302 hardcode_direct_CXX=unsupported 9303 # It fails to find uninstalled libraries when the uninstalled 9304 # path is not listed in the libpath. Setting hardcode_minus_L 9305 # to unsupported forces relinking 9306 hardcode_minus_L_CXX=yes 9307 hardcode_libdir_flag_spec_CXX='-L$libdir' 9308 hardcode_libdir_separator_CXX= 9309 fi 9310 esac 9311 shared_flag='-shared' 9312 else 9313 # not using gcc 9314 if test "$host_cpu" = ia64; then 9315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9316 # chokes on -Wl,-G. The following line is correct: 9317 shared_flag='-G' 9318 else 9319 if test "$aix_use_runtimelinking" = yes; then 9320 shared_flag='${wl}-G' 9321 else 9322 shared_flag='${wl}-bM:SRE' 9323 fi 9324 fi 9325 fi 9326 9327 # It seems that -bexpall does not export symbols beginning with 9328 # underscore (_), so it is better to generate a list of symbols to export. 9329 always_export_symbols_CXX=yes 9330 if test "$aix_use_runtimelinking" = yes; then 9331 # Warning - without using the other runtime loading flags (-brtl), 9332 # -berok will link without error, but may produce a broken library. 9333 allow_undefined_flag_CXX='-berok' 9334 # Determine the default libpath from the value encoded in an empty executable. 9335 cat >conftest.$ac_ext <<_ACEOF 9336#line $LINENO "configure" 9337/* confdefs.h. */ 9338_ACEOF 9339cat confdefs.h >>conftest.$ac_ext 9340cat >>conftest.$ac_ext <<_ACEOF 9341/* end confdefs.h. */ 9342 9343int 9344main () 9345{ 9346 9347 ; 9348 return 0; 9349} 9350_ACEOF 9351rm -f conftest.$ac_objext conftest$ac_exeext 9352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9353 (eval $ac_link) 2>&5 9354 ac_status=$? 9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9356 (exit $ac_status); } && 9357 { ac_try='test -s conftest$ac_exeext' 9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9359 (eval $ac_try) 2>&5 9360 ac_status=$? 9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9362 (exit $ac_status); }; }; then 9363 9364aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9365}'` 9366# Check for a 64-bit object if we didn't find anything. 9367if 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; } 9368}'`; fi 9369else 9370 echo "$as_me: failed program was:" >&5 9371sed 's/^/| /' conftest.$ac_ext >&5 9372 9373fi 9374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9376 9377 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9378 9379 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" 9380 else 9381 if test "$host_cpu" = ia64; then 9382 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9383 allow_undefined_flag_CXX="-z nodefs" 9384 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" 9385 else 9386 # Determine the default libpath from the value encoded in an empty executable. 9387 cat >conftest.$ac_ext <<_ACEOF 9388#line $LINENO "configure" 9389/* confdefs.h. */ 9390_ACEOF 9391cat confdefs.h >>conftest.$ac_ext 9392cat >>conftest.$ac_ext <<_ACEOF 9393/* end confdefs.h. */ 9394 9395int 9396main () 9397{ 9398 9399 ; 9400 return 0; 9401} 9402_ACEOF 9403rm -f conftest.$ac_objext conftest$ac_exeext 9404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9405 (eval $ac_link) 2>&5 9406 ac_status=$? 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 (exit $ac_status); } && 9409 { ac_try='test -s conftest$ac_exeext' 9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9411 (eval $ac_try) 2>&5 9412 ac_status=$? 9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9414 (exit $ac_status); }; }; then 9415 9416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9417}'` 9418# Check for a 64-bit object if we didn't find anything. 9419if 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; } 9420}'`; fi 9421else 9422 echo "$as_me: failed program was:" >&5 9423sed 's/^/| /' conftest.$ac_ext >&5 9424 9425fi 9426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9427if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9428 9429 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9430 # Warning - without using the other run time loading flags, 9431 # -berok will link without error, but may produce a broken library. 9432 no_undefined_flag_CXX=' ${wl}-bernotok' 9433 allow_undefined_flag_CXX=' ${wl}-berok' 9434 # -bexpall does not export symbols beginning with underscore (_) 9435 always_export_symbols_CXX=yes 9436 # Exported symbols can be pulled into shared objects from archives 9437 whole_archive_flag_spec_CXX=' ' 9438 archive_cmds_need_lc_CXX=yes 9439 # This is similar to how AIX traditionally builds it's shared libraries. 9440 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' 9441 fi 9442 fi 9443 ;; 9444 chorus*) 9445 case $cc_basename in 9446 *) 9447 # FIXME: insert proper C++ library support 9448 ld_shlibs_CXX=no 9449 ;; 9450 esac 9451 ;; 9452 9453 cygwin* | mingw* | pw32*) 9454 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9455 # as there is no search path for DLLs. 9456 hardcode_libdir_flag_spec_CXX='-L$libdir' 9457 allow_undefined_flag_CXX=unsupported 9458 always_export_symbols_CXX=no 9459 enable_shared_with_static_runtimes_CXX=yes 9460 9461 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9462 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' 9463 # If the export-symbols file already is a .def file (1st line 9464 # is EXPORTS), use it as is; otherwise, prepend... 9465 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9466 cp $export_symbols $output_objdir/$soname.def; 9467 else 9468 echo EXPORTS > $output_objdir/$soname.def; 9469 cat $export_symbols >> $output_objdir/$soname.def; 9470 fi~ 9471 $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' 9472 else 9473 ld_shlibs_CXX=no 9474 fi 9475 ;; 9476 9477 darwin* | rhapsody*) 9478 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 9479 archive_cmds_need_lc_CXX=no 9480 case "$host_os" in 9481 rhapsody* | darwin1.[012]) 9482 allow_undefined_flag_CXX='-undefined suppress' 9483 ;; 9484 *) # Darwin 1.3 on 9485 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 9486 ;; 9487 esac 9488 lt_int_apple_cc_single_mod=no 9489 output_verbose_link_cmd='echo' 9490 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 9491 lt_int_apple_cc_single_mod=yes 9492 fi 9493 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9494 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9495 else 9496 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' 9497 fi 9498 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 9499 9500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9501 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9502 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}' 9503 else 9504 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}' 9505 fi 9506 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}' 9507 hardcode_direct_CXX=no 9508 hardcode_automatic_CXX=yes 9509 hardcode_shlibpath_var_CXX=unsupported 9510 whole_archive_flag_spec_CXX='-all_load $convenience' 9511 link_all_deplibs_CXX=yes 9512 fi 9513 ;; 9514 9515 dgux*) 9516 case $cc_basename in 9517 ec++) 9518 # FIXME: insert proper C++ library support 9519 ld_shlibs_CXX=no 9520 ;; 9521 ghcx) 9522 # Green Hills C++ Compiler 9523 # FIXME: insert proper C++ library support 9524 ld_shlibs_CXX=no 9525 ;; 9526 *) 9527 # FIXME: insert proper C++ library support 9528 ld_shlibs_CXX=no 9529 ;; 9530 esac 9531 ;; 9532 freebsd12*) 9533 # C++ shared libraries reported to be fairly broken before switch to ELF 9534 ld_shlibs_CXX=no 9535 ;; 9536 freebsd-elf*) 9537 archive_cmds_need_lc_CXX=no 9538 ;; 9539 freebsd*) 9540 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9541 # conventions 9542 ld_shlibs_CXX=yes 9543 ;; 9544 gnu*) 9545 ;; 9546 hpux9*) 9547 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9548 hardcode_libdir_separator_CXX=: 9549 export_dynamic_flag_spec_CXX='${wl}-E' 9550 hardcode_direct_CXX=yes 9551 hardcode_minus_L_CXX=yes # Not in the search PATH, 9552 # but as the default 9553 # location of the library. 9554 9555 case $cc_basename in 9556 CC) 9557 # FIXME: insert proper C++ library support 9558 ld_shlibs_CXX=no 9559 ;; 9560 aCC) 9561 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' 9562 # Commands to make compiler produce verbose output that lists 9563 # what "hidden" libraries, object files and flags are used when 9564 # linking a shared library. 9565 # 9566 # There doesn't appear to be a way to prevent this compiler from 9567 # explicitly linking system object files so we need to strip them 9568 # from the output so that they don't get included in the library 9569 # dependencies. 9570 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' 9571 ;; 9572 *) 9573 if test "$GXX" = yes; then 9574 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' 9575 else 9576 # FIXME: insert proper C++ library support 9577 ld_shlibs_CXX=no 9578 fi 9579 ;; 9580 esac 9581 ;; 9582 hpux10*|hpux11*) 9583 if test $with_gnu_ld = no; then 9584 case "$host_cpu" in 9585 hppa*64*) 9586 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9587 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 9588 hardcode_libdir_separator_CXX=: 9589 ;; 9590 ia64*) 9591 hardcode_libdir_flag_spec_CXX='-L$libdir' 9592 ;; 9593 *) 9594 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9595 hardcode_libdir_separator_CXX=: 9596 export_dynamic_flag_spec_CXX='${wl}-E' 9597 ;; 9598 esac 9599 fi 9600 case "$host_cpu" in 9601 hppa*64*) 9602 hardcode_direct_CXX=no 9603 hardcode_shlibpath_var_CXX=no 9604 ;; 9605 ia64*) 9606 hardcode_direct_CXX=no 9607 hardcode_shlibpath_var_CXX=no 9608 hardcode_minus_L_CXX=yes # Not in the search PATH, 9609 # but as the default 9610 # location of the library. 9611 ;; 9612 *) 9613 hardcode_direct_CXX=yes 9614 hardcode_minus_L_CXX=yes # Not in the search PATH, 9615 # but as the default 9616 # location of the library. 9617 ;; 9618 esac 9619 9620 case $cc_basename in 9621 CC) 9622 # FIXME: insert proper C++ library support 9623 ld_shlibs_CXX=no 9624 ;; 9625 aCC) 9626 case "$host_cpu" in 9627 hppa*64*|ia64*) 9628 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9629 ;; 9630 *) 9631 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9632 ;; 9633 esac 9634 # Commands to make compiler produce verbose output that lists 9635 # what "hidden" libraries, object files and flags are used when 9636 # linking a shared library. 9637 # 9638 # There doesn't appear to be a way to prevent this compiler from 9639 # explicitly linking system object files so we need to strip them 9640 # from the output so that they don't get included in the library 9641 # dependencies. 9642 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' 9643 ;; 9644 *) 9645 if test "$GXX" = yes; then 9646 if test $with_gnu_ld = no; then 9647 case "$host_cpu" in 9648 ia64*|hppa*64*) 9649 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9650 ;; 9651 *) 9652 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' 9653 ;; 9654 esac 9655 fi 9656 else 9657 # FIXME: insert proper C++ library support 9658 ld_shlibs_CXX=no 9659 fi 9660 ;; 9661 esac 9662 ;; 9663 irix5* | irix6*) 9664 case $cc_basename in 9665 CC) 9666 # SGI C++ 9667 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' 9668 9669 # Archives containing C++ object files must be created using 9670 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 9671 # necessary to make sure instantiated templates are included 9672 # in the archive. 9673 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 9674 ;; 9675 *) 9676 if test "$GXX" = yes; then 9677 if test "$with_gnu_ld" = no; then 9678 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' 9679 else 9680 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' 9681 fi 9682 fi 9683 link_all_deplibs_CXX=yes 9684 ;; 9685 esac 9686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9687 hardcode_libdir_separator_CXX=: 9688 ;; 9689 linux*) 9690 case $cc_basename in 9691 KCC) 9692 # Kuck and Associates, Inc. (KAI) C++ Compiler 9693 9694 # KCC will only create a shared library if the output file 9695 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9696 # to its proper name (with version) after linking. 9697 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' 9698 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' 9699 # Commands to make compiler produce verbose output that lists 9700 # what "hidden" libraries, object files and flags are used when 9701 # linking a shared library. 9702 # 9703 # There doesn't appear to be a way to prevent this compiler from 9704 # explicitly linking system object files so we need to strip them 9705 # from the output so that they don't get included in the library 9706 # dependencies. 9707 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' 9708 9709 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 9710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9711 9712 # Archives containing C++ object files must be created using 9713 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9714 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9715 ;; 9716 icpc) 9717 # Intel C++ 9718 with_gnu_ld=yes 9719 archive_cmds_need_lc_CXX=no 9720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9721 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' 9722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9724 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9725 ;; 9726 cxx) 9727 # Compaq C++ 9728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9729 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' 9730 9731 runpath_var=LD_RUN_PATH 9732 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9733 hardcode_libdir_separator_CXX=: 9734 9735 # Commands to make compiler produce verbose output that lists 9736 # what "hidden" libraries, object files and flags are used when 9737 # linking a shared library. 9738 # 9739 # There doesn't appear to be a way to prevent this compiler from 9740 # explicitly linking system object files so we need to strip them 9741 # from the output so that they don't get included in the library 9742 # dependencies. 9743 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' 9744 ;; 9745 esac 9746 ;; 9747 lynxos*) 9748 # FIXME: insert proper C++ library support 9749 ld_shlibs_CXX=no 9750 ;; 9751 m88k*) 9752 # FIXME: insert proper C++ library support 9753 ld_shlibs_CXX=no 9754 ;; 9755 mvs*) 9756 case $cc_basename in 9757 cxx) 9758 # FIXME: insert proper C++ library support 9759 ld_shlibs_CXX=no 9760 ;; 9761 *) 9762 # FIXME: insert proper C++ library support 9763 ld_shlibs_CXX=no 9764 ;; 9765 esac 9766 ;; 9767 netbsd*) 9768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9769 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 9770 wlarc= 9771 hardcode_libdir_flag_spec_CXX='-R$libdir' 9772 hardcode_direct_CXX=yes 9773 hardcode_shlibpath_var_CXX=no 9774 fi 9775 # Workaround some broken pre-1.5 toolchains 9776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 9777 ;; 9778 osf3*) 9779 case $cc_basename in 9780 KCC) 9781 # Kuck and Associates, Inc. (KAI) C++ Compiler 9782 9783 # KCC will only create a shared library if the output file 9784 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9785 # to its proper name (with version) after linking. 9786 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' 9787 9788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9789 hardcode_libdir_separator_CXX=: 9790 9791 # Archives containing C++ object files must be created using 9792 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9793 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9794 9795 ;; 9796 RCC) 9797 # Rational C++ 2.4.1 9798 # FIXME: insert proper C++ library support 9799 ld_shlibs_CXX=no 9800 ;; 9801 cxx) 9802 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9803 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' 9804 9805 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9806 hardcode_libdir_separator_CXX=: 9807 9808 # Commands to make compiler produce verbose output that lists 9809 # what "hidden" libraries, object files and flags are used when 9810 # linking a shared library. 9811 # 9812 # There doesn't appear to be a way to prevent this compiler from 9813 # explicitly linking system object files so we need to strip them 9814 # from the output so that they don't get included in the library 9815 # dependencies. 9816 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' 9817 ;; 9818 *) 9819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9821 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' 9822 9823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9824 hardcode_libdir_separator_CXX=: 9825 9826 # Commands to make compiler produce verbose output that lists 9827 # what "hidden" libraries, object files and flags are used when 9828 # linking a shared library. 9829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9830 9831 else 9832 # FIXME: insert proper C++ library support 9833 ld_shlibs_CXX=no 9834 fi 9835 ;; 9836 esac 9837 ;; 9838 osf4* | osf5*) 9839 case $cc_basename in 9840 KCC) 9841 # Kuck and Associates, Inc. (KAI) C++ Compiler 9842 9843 # KCC will only create a shared library if the output file 9844 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9845 # to its proper name (with version) after linking. 9846 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' 9847 9848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9849 hardcode_libdir_separator_CXX=: 9850 9851 # Archives containing C++ object files must be created using 9852 # the KAI C++ compiler. 9853 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 9854 ;; 9855 RCC) 9856 # Rational C++ 2.4.1 9857 # FIXME: insert proper C++ library support 9858 ld_shlibs_CXX=no 9859 ;; 9860 cxx) 9861 allow_undefined_flag_CXX=' -expect_unresolved \*' 9862 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' 9863 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 9864 echo "-hidden">> $lib.exp~ 9865 $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~ 9866 $rm $lib.exp' 9867 9868 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9869 hardcode_libdir_separator_CXX=: 9870 9871 # Commands to make compiler produce verbose output that lists 9872 # what "hidden" libraries, object files and flags are used when 9873 # linking a shared library. 9874 # 9875 # There doesn't appear to be a way to prevent this compiler from 9876 # explicitly linking system object files so we need to strip them 9877 # from the output so that they don't get included in the library 9878 # dependencies. 9879 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' 9880 ;; 9881 *) 9882 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9883 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9884 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' 9885 9886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9887 hardcode_libdir_separator_CXX=: 9888 9889 # Commands to make compiler produce verbose output that lists 9890 # what "hidden" libraries, object files and flags are used when 9891 # linking a shared library. 9892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9893 9894 else 9895 # FIXME: insert proper C++ library support 9896 ld_shlibs_CXX=no 9897 fi 9898 ;; 9899 esac 9900 ;; 9901 psos*) 9902 # FIXME: insert proper C++ library support 9903 ld_shlibs_CXX=no 9904 ;; 9905 sco*) 9906 archive_cmds_need_lc_CXX=no 9907 case $cc_basename in 9908 CC) 9909 # FIXME: insert proper C++ library support 9910 ld_shlibs_CXX=no 9911 ;; 9912 *) 9913 # FIXME: insert proper C++ library support 9914 ld_shlibs_CXX=no 9915 ;; 9916 esac 9917 ;; 9918 sunos4*) 9919 case $cc_basename in 9920 CC) 9921 # Sun C++ 4.x 9922 # FIXME: insert proper C++ library support 9923 ld_shlibs_CXX=no 9924 ;; 9925 lcc) 9926 # Lucid 9927 # FIXME: insert proper C++ library support 9928 ld_shlibs_CXX=no 9929 ;; 9930 *) 9931 # FIXME: insert proper C++ library support 9932 ld_shlibs_CXX=no 9933 ;; 9934 esac 9935 ;; 9936 solaris*) 9937 case $cc_basename in 9938 CC) 9939 # Sun C++ 4.2, 5.x and Centerline C++ 9940 no_undefined_flag_CXX=' -zdefs' 9941 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9942 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9943 $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' 9944 9945 hardcode_libdir_flag_spec_CXX='-R$libdir' 9946 hardcode_shlibpath_var_CXX=no 9947 case $host_os in 9948 solaris2.0-5 | solaris2.0-5.*) ;; 9949 *) 9950 # The C++ compiler is used as linker so we must use $wl 9951 # flag to pass the commands to the underlying system 9952 # linker. 9953 # Supported since Solaris 2.6 (maybe 2.5.1?) 9954 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9955 ;; 9956 esac 9957 link_all_deplibs_CXX=yes 9958 9959 # Commands to make compiler produce verbose output that lists 9960 # what "hidden" libraries, object files and flags are used when 9961 # linking a shared library. 9962 # 9963 # There doesn't appear to be a way to prevent this compiler from 9964 # explicitly linking system object files so we need to strip them 9965 # from the output so that they don't get included in the library 9966 # dependencies. 9967 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' 9968 9969 # Archives containing C++ object files must be created using 9970 # "CC -xar", where "CC" is the Sun C++ compiler. This is 9971 # necessary to make sure instantiated templates are included 9972 # in the archive. 9973 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 9974 ;; 9975 gcx) 9976 # Green Hills C++ Compiler 9977 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9978 9979 # The C++ compiler must be used to create the archive. 9980 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 9981 ;; 9982 *) 9983 # GNU C++ compiler with Solaris linker 9984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9985 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 9986 if $CC --version | grep -v '^2\.7' > /dev/null; then 9987 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9988 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9989 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 9990 9991 # Commands to make compiler produce verbose output that lists 9992 # what "hidden" libraries, object files and flags are used when 9993 # linking a shared library. 9994 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 9995 else 9996 # g++ 2.7 appears to require `-G' NOT `-shared' on this 9997 # platform. 9998 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9999 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10000 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10001 10002 # Commands to make compiler produce verbose output that lists 10003 # what "hidden" libraries, object files and flags are used when 10004 # linking a shared library. 10005 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10006 fi 10007 10008 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10009 fi 10010 ;; 10011 esac 10012 ;; 10013 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10014 archive_cmds_need_lc_CXX=no 10015 ;; 10016 tandem*) 10017 case $cc_basename in 10018 NCC) 10019 # NonStop-UX NCC 3.20 10020 # FIXME: insert proper C++ library support 10021 ld_shlibs_CXX=no 10022 ;; 10023 *) 10024 # FIXME: insert proper C++ library support 10025 ld_shlibs_CXX=no 10026 ;; 10027 esac 10028 ;; 10029 vxworks*) 10030 # FIXME: insert proper C++ library support 10031 ld_shlibs_CXX=no 10032 ;; 10033 *) 10034 # FIXME: insert proper C++ library support 10035 ld_shlibs_CXX=no 10036 ;; 10037esac 10038echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10039echo "${ECHO_T}$ld_shlibs_CXX" >&6 10040test "$ld_shlibs_CXX" = no && can_build_shared=no 10041 10042GCC_CXX="$GXX" 10043LD_CXX="$LD" 10044 10045 10046cat > conftest.$ac_ext <<EOF 10047class Foo 10048{ 10049public: 10050 Foo (void) { a = 0; } 10051private: 10052 int a; 10053}; 10054EOF 10055 10056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10057 (eval $ac_compile) 2>&5 10058 ac_status=$? 10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10060 (exit $ac_status); }; then 10061 # Parse the compiler output and extract the necessary 10062 # objects, libraries and library flags. 10063 10064 # Sentinel used to keep track of whether or not we are before 10065 # the conftest object file. 10066 pre_test_object_deps_done=no 10067 10068 # The `*' in the case matches for architectures that use `case' in 10069 # $output_verbose_cmd can trigger glob expansion during the loop 10070 # eval without this substitution. 10071 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10072 10073 for p in `eval $output_verbose_link_cmd`; do 10074 case $p in 10075 10076 -L* | -R* | -l*) 10077 # Some compilers place space between "-{L,R}" and the path. 10078 # Remove the space. 10079 if test $p = "-L" \ 10080 || test $p = "-R"; then 10081 prev=$p 10082 continue 10083 else 10084 prev= 10085 fi 10086 10087 if test "$pre_test_object_deps_done" = no; then 10088 case $p in 10089 -L* | -R*) 10090 # Internal compiler library paths should come after those 10091 # provided the user. The postdeps already come after the 10092 # user supplied libs so there is no need to process them. 10093 if test -z "$compiler_lib_search_path_CXX"; then 10094 compiler_lib_search_path_CXX="${prev}${p}" 10095 else 10096 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10097 fi 10098 ;; 10099 # The "-l" case would never come before the object being 10100 # linked, so don't bother handling this case. 10101 esac 10102 else 10103 if test -z "$postdeps_CXX"; then 10104 postdeps_CXX="${prev}${p}" 10105 else 10106 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10107 fi 10108 fi 10109 ;; 10110 10111 *.$objext) 10112 # This assumes that the test object file only shows up 10113 # once in the compiler output. 10114 if test "$p" = "conftest.$objext"; then 10115 pre_test_object_deps_done=yes 10116 continue 10117 fi 10118 10119 if test "$pre_test_object_deps_done" = no; then 10120 if test -z "$predep_objects_CXX"; then 10121 predep_objects_CXX="$p" 10122 else 10123 predep_objects_CXX="$predep_objects_CXX $p" 10124 fi 10125 else 10126 if test -z "$postdep_objects_CXX"; then 10127 postdep_objects_CXX="$p" 10128 else 10129 postdep_objects_CXX="$postdep_objects_CXX $p" 10130 fi 10131 fi 10132 ;; 10133 10134 *) ;; # Ignore the rest. 10135 10136 esac 10137 done 10138 10139 # Clean up. 10140 rm -f a.out a.exe 10141else 10142 echo "libtool.m4: error: problem compiling CXX test program" 10143fi 10144 10145$rm -f confest.$objext 10146 10147case " $postdeps_CXX " in 10148*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10149esac 10150 10151lt_prog_compiler_wl_CXX= 10152lt_prog_compiler_pic_CXX= 10153lt_prog_compiler_static_CXX= 10154 10155echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10156echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10157 10158 # C++ specific cases for pic, static, wl, etc. 10159 if test "$GXX" = yes; then 10160 lt_prog_compiler_wl_CXX='-Wl,' 10161 lt_prog_compiler_static_CXX='-static' 10162 10163 case $host_os in 10164 aix*) 10165 # All AIX code is PIC. 10166 if test "$host_cpu" = ia64; then 10167 # AIX 5 now supports IA64 processor 10168 lt_prog_compiler_static_CXX='-Bstatic' 10169 fi 10170 ;; 10171 amigaos*) 10172 # FIXME: we need at least 68020 code to build shared libraries, but 10173 # adding the `-m68020' flag to GCC prevents building anything better, 10174 # like `-m68040'. 10175 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10176 ;; 10177 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10178 # PIC is the default for these OSes. 10179 ;; 10180 mingw* | os2* | pw32*) 10181 # This hack is so that the source file can tell whether it is being 10182 # built for inclusion in a dll (and should export symbols for example). 10183 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10184 ;; 10185 darwin* | rhapsody*) 10186 # PIC is the default on this platform 10187 # Common symbols not allowed in MH_DYLIB files 10188 lt_prog_compiler_pic_CXX='-fno-common' 10189 ;; 10190 *djgpp*) 10191 # DJGPP does not support shared libraries at all 10192 lt_prog_compiler_pic_CXX= 10193 ;; 10194 sysv4*MP*) 10195 if test -d /usr/nec; then 10196 lt_prog_compiler_pic_CXX=-Kconform_pic 10197 fi 10198 ;; 10199 hpux*) 10200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10201 # not for PA HP-UX. 10202 case "$host_cpu" in 10203 hppa*64*|ia64*) 10204 ;; 10205 *) 10206 lt_prog_compiler_pic_CXX='-fPIC' 10207 ;; 10208 esac 10209 ;; 10210 *) 10211 lt_prog_compiler_pic_CXX='-fPIC' 10212 ;; 10213 esac 10214 else 10215 case $host_os in 10216 aix4* | aix5*) 10217 # All AIX code is PIC. 10218 if test "$host_cpu" = ia64; then 10219 # AIX 5 now supports IA64 processor 10220 lt_prog_compiler_static_CXX='-Bstatic' 10221 else 10222 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10223 fi 10224 ;; 10225 chorus*) 10226 case $cc_basename in 10227 cxch68) 10228 # Green Hills C++ Compiler 10229 # _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" 10230 ;; 10231 esac 10232 ;; 10233 dgux*) 10234 case $cc_basename in 10235 ec++) 10236 lt_prog_compiler_pic_CXX='-KPIC' 10237 ;; 10238 ghcx) 10239 # Green Hills C++ Compiler 10240 lt_prog_compiler_pic_CXX='-pic' 10241 ;; 10242 *) 10243 ;; 10244 esac 10245 ;; 10246 freebsd*) 10247 # FreeBSD uses GNU C++ 10248 ;; 10249 hpux9* | hpux10* | hpux11*) 10250 case $cc_basename in 10251 CC) 10252 lt_prog_compiler_wl_CXX='-Wl,' 10253 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10254 if test "$host_cpu" != ia64; then 10255 lt_prog_compiler_pic_CXX='+Z' 10256 fi 10257 ;; 10258 aCC) 10259 lt_prog_compiler_wl_CXX='-Wl,' 10260 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10261 case "$host_cpu" in 10262 hppa*64*|ia64*) 10263 # +Z the default 10264 ;; 10265 *) 10266 lt_prog_compiler_pic_CXX='+Z' 10267 ;; 10268 esac 10269 ;; 10270 *) 10271 ;; 10272 esac 10273 ;; 10274 irix5* | irix6* | nonstopux*) 10275 case $cc_basename in 10276 CC) 10277 lt_prog_compiler_wl_CXX='-Wl,' 10278 lt_prog_compiler_static_CXX='-non_shared' 10279 # CC pic flag -KPIC is the default. 10280 ;; 10281 *) 10282 ;; 10283 esac 10284 ;; 10285 linux*) 10286 case $cc_basename in 10287 KCC) 10288 # KAI C++ Compiler 10289 lt_prog_compiler_wl_CXX='--backend -Wl,' 10290 lt_prog_compiler_pic_CXX='-fPIC' 10291 ;; 10292 icpc) 10293 # Intel C++ 10294 lt_prog_compiler_wl_CXX='-Wl,' 10295 lt_prog_compiler_pic_CXX='-KPIC' 10296 lt_prog_compiler_static_CXX='-static' 10297 ;; 10298 cxx) 10299 # Compaq C++ 10300 # Make sure the PIC flag is empty. It appears that all Alpha 10301 # Linux and Compaq Tru64 Unix objects are PIC. 10302 lt_prog_compiler_pic_CXX= 10303 lt_prog_compiler_static_CXX='-non_shared' 10304 ;; 10305 *) 10306 ;; 10307 esac 10308 ;; 10309 lynxos*) 10310 ;; 10311 m88k*) 10312 ;; 10313 mvs*) 10314 case $cc_basename in 10315 cxx) 10316 lt_prog_compiler_pic_CXX='-W c,exportall' 10317 ;; 10318 *) 10319 ;; 10320 esac 10321 ;; 10322 netbsd*) 10323 ;; 10324 osf3* | osf4* | osf5*) 10325 case $cc_basename in 10326 KCC) 10327 lt_prog_compiler_wl_CXX='--backend -Wl,' 10328 ;; 10329 RCC) 10330 # Rational C++ 2.4.1 10331 lt_prog_compiler_pic_CXX='-pic' 10332 ;; 10333 cxx) 10334 # Digital/Compaq C++ 10335 lt_prog_compiler_wl_CXX='-Wl,' 10336 # Make sure the PIC flag is empty. It appears that all Alpha 10337 # Linux and Compaq Tru64 Unix objects are PIC. 10338 lt_prog_compiler_pic_CXX= 10339 lt_prog_compiler_static_CXX='-non_shared' 10340 ;; 10341 *) 10342 ;; 10343 esac 10344 ;; 10345 psos*) 10346 ;; 10347 sco*) 10348 case $cc_basename in 10349 CC) 10350 lt_prog_compiler_pic_CXX='-fPIC' 10351 ;; 10352 *) 10353 ;; 10354 esac 10355 ;; 10356 solaris*) 10357 case $cc_basename in 10358 CC) 10359 # Sun C++ 4.2, 5.x and Centerline C++ 10360 lt_prog_compiler_pic_CXX='-KPIC' 10361 lt_prog_compiler_static_CXX='-Bstatic' 10362 lt_prog_compiler_wl_CXX='-Qoption ld ' 10363 ;; 10364 gcx) 10365 # Green Hills C++ Compiler 10366 lt_prog_compiler_pic_CXX='-PIC' 10367 ;; 10368 *) 10369 ;; 10370 esac 10371 ;; 10372 sunos4*) 10373 case $cc_basename in 10374 CC) 10375 # Sun C++ 4.x 10376 lt_prog_compiler_pic_CXX='-pic' 10377 lt_prog_compiler_static_CXX='-Bstatic' 10378 ;; 10379 lcc) 10380 # Lucid 10381 lt_prog_compiler_pic_CXX='-pic' 10382 ;; 10383 *) 10384 ;; 10385 esac 10386 ;; 10387 tandem*) 10388 case $cc_basename in 10389 NCC) 10390 # NonStop-UX NCC 3.20 10391 lt_prog_compiler_pic_CXX='-KPIC' 10392 ;; 10393 *) 10394 ;; 10395 esac 10396 ;; 10397 unixware*) 10398 ;; 10399 vxworks*) 10400 ;; 10401 *) 10402 lt_prog_compiler_can_build_shared_CXX=no 10403 ;; 10404 esac 10405 fi 10406 10407echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10408echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10409 10410# 10411# Check to make sure the PIC flag actually works. 10412# 10413if test -n "$lt_prog_compiler_pic_CXX"; then 10414 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10416if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10417 echo $ECHO_N "(cached) $ECHO_C" >&6 10418else 10419 lt_prog_compiler_pic_works_CXX=no 10420 ac_outfile=conftest.$ac_objext 10421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10422 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10423 # Insert the option either (1) after the last *FLAGS variable, or 10424 # (2) before a word containing "conftest.", or (3) at the end. 10425 # Note that $ac_compile itself does not contain backslashes and begins 10426 # with a dollar sign (not a hyphen), so the echo should work correctly. 10427 # The option is referenced via a variable to avoid confusing sed. 10428 lt_compile=`echo "$ac_compile" | $SED \ 10429 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10431 -e 's:$: $lt_compiler_flag:'` 10432 (eval echo "\"\$as_me:10432: $lt_compile\"" >&5) 10433 (eval "$lt_compile" 2>conftest.err) 10434 ac_status=$? 10435 cat conftest.err >&5 10436 echo "$as_me:10436: \$? = $ac_status" >&5 10437 if (exit $ac_status) && test -s "$ac_outfile"; then 10438 # The compiler can only warn and ignore the option if not recognized 10439 # So say no if there are warnings 10440 if test ! -s conftest.err; then 10441 lt_prog_compiler_pic_works_CXX=yes 10442 fi 10443 fi 10444 $rm conftest* 10445 10446fi 10447echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10448echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10449 10450if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10451 case $lt_prog_compiler_pic_CXX in 10452 "" | " "*) ;; 10453 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10454 esac 10455else 10456 lt_prog_compiler_pic_CXX= 10457 lt_prog_compiler_can_build_shared_CXX=no 10458fi 10459 10460fi 10461case "$host_os" in 10462 # For platforms which do not support PIC, -DPIC is meaningless: 10463 *djgpp*) 10464 lt_prog_compiler_pic_CXX= 10465 ;; 10466 *) 10467 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10468 ;; 10469esac 10470 10471echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10472echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10473if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10474 echo $ECHO_N "(cached) $ECHO_C" >&6 10475else 10476 lt_cv_prog_compiler_c_o_CXX=no 10477 $rm -r conftest 2>/dev/null 10478 mkdir conftest 10479 cd conftest 10480 mkdir out 10481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10482 10483 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 10484 # that will create temporary files in the current directory regardless of 10485 # the output directory. Thus, making CWD read-only will cause this test 10486 # to fail, enabling locking or at least warning the user not to do parallel 10487 # builds. 10488 chmod -w . 10489 10490 lt_compiler_flag="-o out/conftest2.$ac_objext" 10491 # Insert the option either (1) after the last *FLAGS variable, or 10492 # (2) before a word containing "conftest.", or (3) at the end. 10493 # Note that $ac_compile itself does not contain backslashes and begins 10494 # with a dollar sign (not a hyphen), so the echo should work correctly. 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>out/conftest.err) 10501 ac_status=$? 10502 cat out/conftest.err >&5 10503 echo "$as_me:10503: \$? = $ac_status" >&5 10504 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10505 then 10506 # The compiler can only warn and ignore the option if not recognized 10507 # So say no if there are warnings 10508 if test ! -s out/conftest.err; then 10509 lt_cv_prog_compiler_c_o_CXX=yes 10510 fi 10511 fi 10512 chmod u+w . 10513 $rm conftest* out/* 10514 rmdir out 10515 cd .. 10516 rmdir conftest 10517 $rm conftest* 10518 10519fi 10520echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 10521echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 10522 10523 10524hard_links="nottested" 10525if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 10526 # do not overwrite the value of need_locks provided by the user 10527 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10528echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10529 hard_links=yes 10530 $rm conftest* 10531 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10532 touch conftest.a 10533 ln conftest.a conftest.b 2>&5 || hard_links=no 10534 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10535 echo "$as_me:$LINENO: result: $hard_links" >&5 10536echo "${ECHO_T}$hard_links" >&6 10537 if test "$hard_links" = no; then 10538 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10539echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10540 need_locks=warn 10541 fi 10542else 10543 need_locks=no 10544fi 10545 10546echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10547echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10548 10549 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10550 case $host_os in 10551 aix4* | aix5*) 10552 # If we're using GNU nm, then we don't want the "-C" option. 10553 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10554 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10555 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' 10556 else 10557 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' 10558 fi 10559 ;; 10560 pw32*) 10561 export_symbols_cmds_CXX="$ltdll_cmds" 10562 ;; 10563 cygwin* | mingw*) 10564 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10565 ;; 10566 *) 10567 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10568 ;; 10569 esac 10570 10571echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10572echo "${ECHO_T}$ld_shlibs_CXX" >&6 10573test "$ld_shlibs_CXX" = no && can_build_shared=no 10574 10575variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10576if test "$GCC" = yes; then 10577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10578fi 10579 10580# 10581# Do we need to explicitly link libc? 10582# 10583case "x$archive_cmds_need_lc_CXX" in 10584x|xyes) 10585 # Assume -lc should be added 10586 archive_cmds_need_lc_CXX=yes 10587 10588 if test "$enable_shared" = yes && test "$GCC" = yes; then 10589 case $archive_cmds_CXX in 10590 *'~'*) 10591 # FIXME: we may have to deal with multi-command sequences. 10592 ;; 10593 '$CC '*) 10594 # Test whether the compiler implicitly links with -lc since on some 10595 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10596 # to ld, don't add -lc before -lgcc. 10597 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10598echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 10599 $rm conftest* 10600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10601 10602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10603 (eval $ac_compile) 2>&5 10604 ac_status=$? 10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10606 (exit $ac_status); } 2>conftest.err; then 10607 soname=conftest 10608 lib=conftest 10609 libobjs=conftest.$ac_objext 10610 deplibs= 10611 wl=$lt_prog_compiler_wl_CXX 10612 compiler_flags=-v 10613 linker_flags=-v 10614 verstring= 10615 output_objdir=. 10616 libname=conftest 10617 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 10618 allow_undefined_flag_CXX= 10619 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10620 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10621 ac_status=$? 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); } 10624 then 10625 archive_cmds_need_lc_CXX=no 10626 else 10627 archive_cmds_need_lc_CXX=yes 10628 fi 10629 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 10630 else 10631 cat conftest.err 1>&5 10632 fi 10633 $rm conftest* 10634 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 10635echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 10636 ;; 10637 esac 10638 fi 10639 ;; 10640esac 10641 10642echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10643echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10644hardcode_action_CXX= 10645if test -n "$hardcode_libdir_flag_spec_CXX" || \ 10646 test -n "$runpath_var CXX" || \ 10647 test "X$hardcode_automatic_CXX"="Xyes" ; then 10648 10649 # We can hardcode non-existant directories. 10650 if test "$hardcode_direct_CXX" != no && 10651 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10652 # have to relink, otherwise we might link with an installed library 10653 # when we should be linking with a yet-to-be-installed one 10654 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 10655 test "$hardcode_minus_L_CXX" != no; then 10656 # Linking always hardcodes the temporary library directory. 10657 hardcode_action_CXX=relink 10658 else 10659 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10660 hardcode_action_CXX=immediate 10661 fi 10662else 10663 # We cannot hardcode anything, or else we can only hardcode existing 10664 # directories. 10665 hardcode_action_CXX=unsupported 10666fi 10667echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 10668echo "${ECHO_T}$hardcode_action_CXX" >&6 10669 10670if test "$hardcode_action_CXX" = relink; then 10671 # Fast installation is not supported 10672 enable_fast_install=no 10673elif test "$shlibpath_overrides_runpath" = yes || 10674 test "$enable_shared" = no; then 10675 # Fast installation is not necessary 10676 enable_fast_install=needless 10677fi 10678 10679striplib= 10680old_striplib= 10681echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10682echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10683if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10684 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10685 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10686 echo "$as_me:$LINENO: result: yes" >&5 10687echo "${ECHO_T}yes" >&6 10688else 10689# FIXME - insert some real tests, host_os isn't really good enough 10690 case $host_os in 10691 darwin*) 10692 if test -n "$STRIP" ; then 10693 striplib="$STRIP -x" 10694 echo "$as_me:$LINENO: result: yes" >&5 10695echo "${ECHO_T}yes" >&6 10696 else 10697 echo "$as_me:$LINENO: result: no" >&5 10698echo "${ECHO_T}no" >&6 10699fi 10700 ;; 10701 *) 10702 echo "$as_me:$LINENO: result: no" >&5 10703echo "${ECHO_T}no" >&6 10704 ;; 10705 esac 10706fi 10707 10708echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10709echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 10710library_names_spec= 10711libname_spec='lib$name' 10712soname_spec= 10713shrext=".so" 10714postinstall_cmds= 10715postuninstall_cmds= 10716finish_cmds= 10717finish_eval= 10718shlibpath_var= 10719shlibpath_overrides_runpath=unknown 10720version_type=none 10721dynamic_linker="$host_os ld.so" 10722sys_lib_dlsearch_path_spec="/lib /usr/lib" 10723if test "$GCC" = yes; then 10724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10726 # if the path contains ";" then we assume it to be the separator 10727 # otherwise default to the standard path separator (i.e. ":") - it is 10728 # assumed that no part of a normal pathname contains ";" but that should 10729 # okay in the real world where ";" in dirpaths is itself problematic. 10730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10731 else 10732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10733 fi 10734else 10735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10736fi 10737need_lib_prefix=unknown 10738hardcode_into_libs=no 10739 10740# when you set need_version to no, make sure it does not cause -set_version 10741# flags to be left without arguments 10742need_version=unknown 10743 10744case $host_os in 10745aix3*) 10746 version_type=linux 10747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10748 shlibpath_var=LIBPATH 10749 10750 # AIX 3 has no versioning support, so we append a major version to the name. 10751 soname_spec='${libname}${release}${shared_ext}$major' 10752 ;; 10753 10754aix4* | aix5*) 10755 version_type=linux 10756 need_lib_prefix=no 10757 need_version=no 10758 hardcode_into_libs=yes 10759 if test "$host_cpu" = ia64; then 10760 # AIX 5 supports IA64 10761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10762 shlibpath_var=LD_LIBRARY_PATH 10763 else 10764 # With GCC up to 2.95.x, collect2 would create an import file 10765 # for dependence libraries. The import file would start with 10766 # the line `#! .'. This would cause the generated library to 10767 # depend on `.', always an invalid library. This was fixed in 10768 # development snapshots of GCC prior to 3.0. 10769 case $host_os in 10770 aix4 | aix4.[01] | aix4.[01].*) 10771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10772 echo ' yes ' 10773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10774 : 10775 else 10776 can_build_shared=no 10777 fi 10778 ;; 10779 esac 10780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10781 # soname into executable. Probably we can add versioning support to 10782 # collect2, so additional links can be useful in future. 10783 if test "$aix_use_runtimelinking" = yes; then 10784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10785 # instead of lib<name>.a to let people know that these are not 10786 # typical AIX shared libraries. 10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10788 else 10789 # We preserve .a as extension for shared libraries through AIX4.2 10790 # and later when we are not doing run time linking. 10791 library_names_spec='${libname}${release}.a $libname.a' 10792 soname_spec='${libname}${release}${shared_ext}$major' 10793 fi 10794 shlibpath_var=LIBPATH 10795 fi 10796 ;; 10797 10798amigaos*) 10799 library_names_spec='$libname.ixlibrary $libname.a' 10800 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10801 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' 10802 ;; 10803 10804beos*) 10805 library_names_spec='${libname}${shared_ext}' 10806 dynamic_linker="$host_os ld.so" 10807 shlibpath_var=LIBRARY_PATH 10808 ;; 10809 10810bsdi4*) 10811 version_type=linux 10812 need_version=no 10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10814 soname_spec='${libname}${release}${shared_ext}$major' 10815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10816 shlibpath_var=LD_LIBRARY_PATH 10817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10819 # the default ld.so.conf also contains /usr/contrib/lib and 10820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10821 # libtool to hard-code these into programs 10822 ;; 10823 10824cygwin* | mingw* | pw32*) 10825 version_type=windows 10826 shrext=".dll" 10827 need_version=no 10828 need_lib_prefix=no 10829 10830 case $GCC,$host_os in 10831 yes,cygwin* | yes,mingw* | yes,pw32*) 10832 library_names_spec='$libname.dll.a' 10833 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10834 postinstall_cmds='base_file=`basename \${file}`~ 10835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10836 dldir=$destdir/`dirname \$dlpath`~ 10837 test -d \$dldir || mkdir -p \$dldir~ 10838 $install_prog $dir/$dlname \$dldir/$dlname' 10839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10840 dlpath=$dir/\$dldll~ 10841 $rm \$dlpath' 10842 shlibpath_overrides_runpath=yes 10843 10844 case $host_os in 10845 cygwin*) 10846 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10848 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 10849 ;; 10850 mingw*) 10851 # MinGW DLLs use traditional 'lib' prefix 10852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10855 # It is most probably a Windows format PATH printed by 10856 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10857 # path with ; separators, and with drive letters. We can handle the 10858 # drive letters (cygwin fileutils understands them), so leave them, 10859 # especially as we might pass files found there to a mingw objdump, 10860 # which wouldn't understand a cygwinified path. Ahh. 10861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10862 else 10863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10864 fi 10865 ;; 10866 pw32*) 10867 # pw32 DLLs use 'pw' prefix rather than 'lib' 10868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 10869 ;; 10870 esac 10871 ;; 10872 10873 *) 10874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10875 ;; 10876 esac 10877 dynamic_linker='Win32 ld.exe' 10878 # FIXME: first we should search . and the directory the executable is in 10879 shlibpath_var=PATH 10880 ;; 10881 10882darwin* | rhapsody*) 10883 dynamic_linker="$host_os dyld" 10884 version_type=darwin 10885 need_lib_prefix=no 10886 need_version=no 10887 # FIXME: Relying on posixy $() will cause problems for 10888 # cross-compilation, but unfortunately the echo tests do not 10889 # yet detect zsh echo's removal of \ escapes. 10890 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10891 soname_spec='${libname}${release}${major}$shared_ext' 10892 shlibpath_overrides_runpath=yes 10893 shlibpath_var=DYLD_LIBRARY_PATH 10894 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 10895 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10896 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 10897 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"` 10898 fi 10899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10900 ;; 10901 10902dgux*) 10903 version_type=linux 10904 need_lib_prefix=no 10905 need_version=no 10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10907 soname_spec='${libname}${release}${shared_ext}$major' 10908 shlibpath_var=LD_LIBRARY_PATH 10909 ;; 10910 10911freebsd1*) 10912 dynamic_linker=no 10913 ;; 10914 10915freebsd*) 10916 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 10917 version_type=freebsd-$objformat 10918 case $version_type in 10919 freebsd-elf*) 10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10921 need_version=no 10922 need_lib_prefix=no 10923 ;; 10924 freebsd-*) 10925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10926 need_version=yes 10927 ;; 10928 esac 10929 shlibpath_var=LD_LIBRARY_PATH 10930 case $host_os in 10931 freebsd2*) 10932 shlibpath_overrides_runpath=yes 10933 ;; 10934 freebsd3.01* | freebsdelf3.01*) 10935 shlibpath_overrides_runpath=yes 10936 hardcode_into_libs=yes 10937 ;; 10938 *) # from 3.2 on 10939 shlibpath_overrides_runpath=no 10940 hardcode_into_libs=yes 10941 ;; 10942 esac 10943 ;; 10944 10945gnu*) 10946 version_type=linux 10947 need_lib_prefix=no 10948 need_version=no 10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10950 soname_spec='${libname}${release}${shared_ext}$major' 10951 shlibpath_var=LD_LIBRARY_PATH 10952 hardcode_into_libs=yes 10953 ;; 10954 10955hpux9* | hpux10* | hpux11*) 10956 # Give a soname corresponding to the major version so that dld.sl refuses to 10957 # link against other versions. 10958 version_type=sunos 10959 need_lib_prefix=no 10960 need_version=no 10961 case "$host_cpu" in 10962 ia64*) 10963 shrext='.so' 10964 hardcode_into_libs=yes 10965 dynamic_linker="$host_os dld.so" 10966 shlibpath_var=LD_LIBRARY_PATH 10967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10969 soname_spec='${libname}${release}${shared_ext}$major' 10970 if test "X$HPUX_IA64_MODE" = X32; then 10971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10972 else 10973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10974 fi 10975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10976 ;; 10977 hppa*64*) 10978 shrext='.sl' 10979 hardcode_into_libs=yes 10980 dynamic_linker="$host_os dld.sl" 10981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10984 soname_spec='${libname}${release}${shared_ext}$major' 10985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10987 ;; 10988 *) 10989 shrext='.sl' 10990 dynamic_linker="$host_os dld.sl" 10991 shlibpath_var=SHLIB_PATH 10992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10994 soname_spec='${libname}${release}${shared_ext}$major' 10995 ;; 10996 esac 10997 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10998 postinstall_cmds='chmod 555 $lib' 10999 ;; 11000 11001irix5* | irix6* | nonstopux*) 11002 case $host_os in 11003 nonstopux*) version_type=nonstopux ;; 11004 *) 11005 if test "$lt_cv_prog_gnu_ld" = yes; then 11006 version_type=linux 11007 else 11008 version_type=irix 11009 fi ;; 11010 esac 11011 need_lib_prefix=no 11012 need_version=no 11013 soname_spec='${libname}${release}${shared_ext}$major' 11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11015 case $host_os in 11016 irix5* | nonstopux*) 11017 libsuff= shlibsuff= 11018 ;; 11019 *) 11020 case $LD in # libtool.m4 will add one of these switches to LD 11021 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11022 libsuff= shlibsuff= libmagic=32-bit;; 11023 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11024 libsuff=32 shlibsuff=N32 libmagic=N32;; 11025 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11026 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11027 *) libsuff= shlibsuff= libmagic=never-match;; 11028 esac 11029 ;; 11030 esac 11031 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11032 shlibpath_overrides_runpath=no 11033 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11034 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11035 hardcode_into_libs=yes 11036 ;; 11037 11038# No shared lib support for Linux oldld, aout, or coff. 11039linux*oldld* | linux*aout* | linux*coff*) 11040 dynamic_linker=no 11041 ;; 11042 11043# This must be Linux ELF. 11044linux*) 11045 version_type=linux 11046 need_lib_prefix=no 11047 need_version=no 11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11049 soname_spec='${libname}${release}${shared_ext}$major' 11050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11051 shlibpath_var=LD_LIBRARY_PATH 11052 shlibpath_overrides_runpath=no 11053 # This implies no fast_install, which is unacceptable. 11054 # Some rework will be needed to allow for fast_install 11055 # before this can be enabled. 11056 hardcode_into_libs=yes 11057 11058 # We used to test for /lib/ld.so.1 and disable shared libraries on 11059 # powerpc, because MkLinux only supported shared libraries with the 11060 # GNU dynamic linker. Since this was broken with cross compilers, 11061 # most powerpc-linux boxes support dynamic linking these days and 11062 # people can always --disable-shared, the test was removed, and we 11063 # assume the GNU/Linux dynamic linker is in use. 11064 dynamic_linker='GNU/Linux ld.so' 11065 ;; 11066 11067netbsd*) 11068 version_type=sunos 11069 need_lib_prefix=no 11070 need_version=no 11071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11074 dynamic_linker='NetBSD (a.out) ld.so' 11075 else 11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 11077 soname_spec='${libname}${release}${shared_ext}$major' 11078 dynamic_linker='NetBSD ld.elf_so' 11079 fi 11080 shlibpath_var=LD_LIBRARY_PATH 11081 shlibpath_overrides_runpath=yes 11082 hardcode_into_libs=yes 11083 ;; 11084 11085newsos6) 11086 version_type=linux 11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11088 shlibpath_var=LD_LIBRARY_PATH 11089 shlibpath_overrides_runpath=yes 11090 ;; 11091 11092nto-qnx) 11093 version_type=linux 11094 need_lib_prefix=no 11095 need_version=no 11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11097 soname_spec='${libname}${release}${shared_ext}$major' 11098 shlibpath_var=LD_LIBRARY_PATH 11099 shlibpath_overrides_runpath=yes 11100 ;; 11101 11102openbsd*) 11103 version_type=sunos 11104 need_lib_prefix=no 11105 need_version=no 11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11108 shlibpath_var=LD_LIBRARY_PATH 11109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11110 case $host_os in 11111 openbsd2.[89] | openbsd2.[89].*) 11112 shlibpath_overrides_runpath=no 11113 ;; 11114 *) 11115 shlibpath_overrides_runpath=yes 11116 ;; 11117 esac 11118 else 11119 shlibpath_overrides_runpath=yes 11120 fi 11121 ;; 11122 11123os2*) 11124 libname_spec='$name' 11125 shrext=".dll" 11126 need_lib_prefix=no 11127 library_names_spec='$libname${shared_ext} $libname.a' 11128 dynamic_linker='OS/2 ld.exe' 11129 shlibpath_var=LIBPATH 11130 ;; 11131 11132osf3* | osf4* | osf5*) 11133 version_type=osf 11134 need_lib_prefix=no 11135 need_version=no 11136 soname_spec='${libname}${release}${shared_ext}$major' 11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11138 shlibpath_var=LD_LIBRARY_PATH 11139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11141 ;; 11142 11143sco3.2v5*) 11144 version_type=osf 11145 soname_spec='${libname}${release}${shared_ext}$major' 11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11147 shlibpath_var=LD_LIBRARY_PATH 11148 ;; 11149 11150solaris*) 11151 version_type=linux 11152 need_lib_prefix=no 11153 need_version=no 11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11155 soname_spec='${libname}${release}${shared_ext}$major' 11156 shlibpath_var=LD_LIBRARY_PATH 11157 shlibpath_overrides_runpath=yes 11158 hardcode_into_libs=yes 11159 # ldd complains unless libraries are executable 11160 postinstall_cmds='chmod +x $lib' 11161 ;; 11162 11163sunos4*) 11164 version_type=sunos 11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11167 shlibpath_var=LD_LIBRARY_PATH 11168 shlibpath_overrides_runpath=yes 11169 if test "$with_gnu_ld" = yes; then 11170 need_lib_prefix=no 11171 fi 11172 need_version=yes 11173 ;; 11174 11175sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11176 version_type=linux 11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11178 soname_spec='${libname}${release}${shared_ext}$major' 11179 shlibpath_var=LD_LIBRARY_PATH 11180 case $host_vendor in 11181 sni) 11182 shlibpath_overrides_runpath=no 11183 need_lib_prefix=no 11184 export_dynamic_flag_spec='${wl}-Blargedynsym' 11185 runpath_var=LD_RUN_PATH 11186 ;; 11187 siemens) 11188 need_lib_prefix=no 11189 ;; 11190 motorola) 11191 need_lib_prefix=no 11192 need_version=no 11193 shlibpath_overrides_runpath=no 11194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11195 ;; 11196 esac 11197 ;; 11198 11199sysv4*MP*) 11200 if test -d /usr/nec ;then 11201 version_type=linux 11202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11203 soname_spec='$libname${shared_ext}.$major' 11204 shlibpath_var=LD_LIBRARY_PATH 11205 fi 11206 ;; 11207 11208uts4*) 11209 version_type=linux 11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11211 soname_spec='${libname}${release}${shared_ext}$major' 11212 shlibpath_var=LD_LIBRARY_PATH 11213 ;; 11214 11215*) 11216 dynamic_linker=no 11217 ;; 11218esac 11219echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11220echo "${ECHO_T}$dynamic_linker" >&6 11221test "$dynamic_linker" = no && can_build_shared=no 11222 11223if test "x$enable_dlopen" != xyes; then 11224 enable_dlopen=unknown 11225 enable_dlopen_self=unknown 11226 enable_dlopen_self_static=unknown 11227else 11228 lt_cv_dlopen=no 11229 lt_cv_dlopen_libs= 11230 11231 case $host_os in 11232 beos*) 11233 lt_cv_dlopen="load_add_on" 11234 lt_cv_dlopen_libs= 11235 lt_cv_dlopen_self=yes 11236 ;; 11237 11238 mingw* | pw32*) 11239 lt_cv_dlopen="LoadLibrary" 11240 lt_cv_dlopen_libs= 11241 ;; 11242 11243 cygwin*) 11244 lt_cv_dlopen="dlopen" 11245 lt_cv_dlopen_libs= 11246 ;; 11247 11248 darwin*) 11249 # if libdl is installed we need to link against it 11250 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11251echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11252if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11253 echo $ECHO_N "(cached) $ECHO_C" >&6 11254else 11255 ac_check_lib_save_LIBS=$LIBS 11256LIBS="-ldl $LIBS" 11257cat >conftest.$ac_ext <<_ACEOF 11258#line $LINENO "configure" 11259/* confdefs.h. */ 11260_ACEOF 11261cat confdefs.h >>conftest.$ac_ext 11262cat >>conftest.$ac_ext <<_ACEOF 11263/* end confdefs.h. */ 11264 11265/* Override any gcc2 internal prototype to avoid an error. */ 11266#ifdef __cplusplus 11267extern "C" 11268#endif 11269/* We use char because int might match the return type of a gcc2 11270 builtin and then its argument prototype would still apply. */ 11271char dlopen (); 11272int 11273main () 11274{ 11275dlopen (); 11276 ; 11277 return 0; 11278} 11279_ACEOF 11280rm -f conftest.$ac_objext conftest$ac_exeext 11281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11282 (eval $ac_link) 2>&5 11283 ac_status=$? 11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11285 (exit $ac_status); } && 11286 { ac_try='test -s conftest$ac_exeext' 11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11288 (eval $ac_try) 2>&5 11289 ac_status=$? 11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11291 (exit $ac_status); }; }; then 11292 ac_cv_lib_dl_dlopen=yes 11293else 11294 echo "$as_me: failed program was:" >&5 11295sed 's/^/| /' conftest.$ac_ext >&5 11296 11297ac_cv_lib_dl_dlopen=no 11298fi 11299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11300LIBS=$ac_check_lib_save_LIBS 11301fi 11302echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11303echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11304if test $ac_cv_lib_dl_dlopen = yes; then 11305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11306else 11307 11308 lt_cv_dlopen="dyld" 11309 lt_cv_dlopen_libs= 11310 lt_cv_dlopen_self=yes 11311 11312fi 11313 11314 ;; 11315 11316 *) 11317 echo "$as_me:$LINENO: checking for shl_load" >&5 11318echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11319if test "${ac_cv_func_shl_load+set}" = set; then 11320 echo $ECHO_N "(cached) $ECHO_C" >&6 11321else 11322 cat >conftest.$ac_ext <<_ACEOF 11323#line $LINENO "configure" 11324/* confdefs.h. */ 11325_ACEOF 11326cat confdefs.h >>conftest.$ac_ext 11327cat >>conftest.$ac_ext <<_ACEOF 11328/* end confdefs.h. */ 11329/* System header to define __stub macros and hopefully few prototypes, 11330 which can conflict with char shl_load (); below. 11331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11332 <limits.h> exists even on freestanding compilers. */ 11333#ifdef __STDC__ 11334# include <limits.h> 11335#else 11336# include <assert.h> 11337#endif 11338/* Override any gcc2 internal prototype to avoid an error. */ 11339#ifdef __cplusplus 11340extern "C" 11341{ 11342#endif 11343/* We use char because int might match the return type of a gcc2 11344 builtin and then its argument prototype would still apply. */ 11345char shl_load (); 11346/* The GNU C library defines this for functions which it implements 11347 to always fail with ENOSYS. Some functions are actually named 11348 something starting with __ and the normal name is an alias. */ 11349#if defined (__stub_shl_load) || defined (__stub___shl_load) 11350choke me 11351#else 11352char (*f) () = shl_load; 11353#endif 11354#ifdef __cplusplus 11355} 11356#endif 11357 11358int 11359main () 11360{ 11361return f != shl_load; 11362 ; 11363 return 0; 11364} 11365_ACEOF 11366rm -f conftest.$ac_objext conftest$ac_exeext 11367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11368 (eval $ac_link) 2>&5 11369 ac_status=$? 11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11371 (exit $ac_status); } && 11372 { ac_try='test -s conftest$ac_exeext' 11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11374 (eval $ac_try) 2>&5 11375 ac_status=$? 11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11377 (exit $ac_status); }; }; then 11378 ac_cv_func_shl_load=yes 11379else 11380 echo "$as_me: failed program was:" >&5 11381sed 's/^/| /' conftest.$ac_ext >&5 11382 11383ac_cv_func_shl_load=no 11384fi 11385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11386fi 11387echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11388echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11389if test $ac_cv_func_shl_load = yes; then 11390 lt_cv_dlopen="shl_load" 11391else 11392 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11393echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11394if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11395 echo $ECHO_N "(cached) $ECHO_C" >&6 11396else 11397 ac_check_lib_save_LIBS=$LIBS 11398LIBS="-ldld $LIBS" 11399cat >conftest.$ac_ext <<_ACEOF 11400#line $LINENO "configure" 11401/* confdefs.h. */ 11402_ACEOF 11403cat confdefs.h >>conftest.$ac_ext 11404cat >>conftest.$ac_ext <<_ACEOF 11405/* end confdefs.h. */ 11406 11407/* Override any gcc2 internal prototype to avoid an error. */ 11408#ifdef __cplusplus 11409extern "C" 11410#endif 11411/* We use char because int might match the return type of a gcc2 11412 builtin and then its argument prototype would still apply. */ 11413char shl_load (); 11414int 11415main () 11416{ 11417shl_load (); 11418 ; 11419 return 0; 11420} 11421_ACEOF 11422rm -f conftest.$ac_objext conftest$ac_exeext 11423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11424 (eval $ac_link) 2>&5 11425 ac_status=$? 11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11427 (exit $ac_status); } && 11428 { ac_try='test -s conftest$ac_exeext' 11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11430 (eval $ac_try) 2>&5 11431 ac_status=$? 11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11433 (exit $ac_status); }; }; then 11434 ac_cv_lib_dld_shl_load=yes 11435else 11436 echo "$as_me: failed program was:" >&5 11437sed 's/^/| /' conftest.$ac_ext >&5 11438 11439ac_cv_lib_dld_shl_load=no 11440fi 11441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11442LIBS=$ac_check_lib_save_LIBS 11443fi 11444echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11445echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11446if test $ac_cv_lib_dld_shl_load = yes; then 11447 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11448else 11449 echo "$as_me:$LINENO: checking for dlopen" >&5 11450echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11451if test "${ac_cv_func_dlopen+set}" = set; then 11452 echo $ECHO_N "(cached) $ECHO_C" >&6 11453else 11454 cat >conftest.$ac_ext <<_ACEOF 11455#line $LINENO "configure" 11456/* confdefs.h. */ 11457_ACEOF 11458cat confdefs.h >>conftest.$ac_ext 11459cat >>conftest.$ac_ext <<_ACEOF 11460/* end confdefs.h. */ 11461/* System header to define __stub macros and hopefully few prototypes, 11462 which can conflict with char dlopen (); below. 11463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11464 <limits.h> exists even on freestanding compilers. */ 11465#ifdef __STDC__ 11466# include <limits.h> 11467#else 11468# include <assert.h> 11469#endif 11470/* Override any gcc2 internal prototype to avoid an error. */ 11471#ifdef __cplusplus 11472extern "C" 11473{ 11474#endif 11475/* We use char because int might match the return type of a gcc2 11476 builtin and then its argument prototype would still apply. */ 11477char dlopen (); 11478/* The GNU C library defines this for functions which it implements 11479 to always fail with ENOSYS. Some functions are actually named 11480 something starting with __ and the normal name is an alias. */ 11481#if defined (__stub_dlopen) || defined (__stub___dlopen) 11482choke me 11483#else 11484char (*f) () = dlopen; 11485#endif 11486#ifdef __cplusplus 11487} 11488#endif 11489 11490int 11491main () 11492{ 11493return f != dlopen; 11494 ; 11495 return 0; 11496} 11497_ACEOF 11498rm -f conftest.$ac_objext conftest$ac_exeext 11499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11500 (eval $ac_link) 2>&5 11501 ac_status=$? 11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11503 (exit $ac_status); } && 11504 { ac_try='test -s conftest$ac_exeext' 11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11506 (eval $ac_try) 2>&5 11507 ac_status=$? 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11509 (exit $ac_status); }; }; then 11510 ac_cv_func_dlopen=yes 11511else 11512 echo "$as_me: failed program was:" >&5 11513sed 's/^/| /' conftest.$ac_ext >&5 11514 11515ac_cv_func_dlopen=no 11516fi 11517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11518fi 11519echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11520echo "${ECHO_T}$ac_cv_func_dlopen" >&6 11521if test $ac_cv_func_dlopen = yes; then 11522 lt_cv_dlopen="dlopen" 11523else 11524 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11525echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11526if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11527 echo $ECHO_N "(cached) $ECHO_C" >&6 11528else 11529 ac_check_lib_save_LIBS=$LIBS 11530LIBS="-ldl $LIBS" 11531cat >conftest.$ac_ext <<_ACEOF 11532#line $LINENO "configure" 11533/* confdefs.h. */ 11534_ACEOF 11535cat confdefs.h >>conftest.$ac_ext 11536cat >>conftest.$ac_ext <<_ACEOF 11537/* end confdefs.h. */ 11538 11539/* Override any gcc2 internal prototype to avoid an error. */ 11540#ifdef __cplusplus 11541extern "C" 11542#endif 11543/* We use char because int might match the return type of a gcc2 11544 builtin and then its argument prototype would still apply. */ 11545char dlopen (); 11546int 11547main () 11548{ 11549dlopen (); 11550 ; 11551 return 0; 11552} 11553_ACEOF 11554rm -f conftest.$ac_objext conftest$ac_exeext 11555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11556 (eval $ac_link) 2>&5 11557 ac_status=$? 11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11559 (exit $ac_status); } && 11560 { ac_try='test -s conftest$ac_exeext' 11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11562 (eval $ac_try) 2>&5 11563 ac_status=$? 11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11565 (exit $ac_status); }; }; then 11566 ac_cv_lib_dl_dlopen=yes 11567else 11568 echo "$as_me: failed program was:" >&5 11569sed 's/^/| /' conftest.$ac_ext >&5 11570 11571ac_cv_lib_dl_dlopen=no 11572fi 11573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11574LIBS=$ac_check_lib_save_LIBS 11575fi 11576echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11577echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11578if test $ac_cv_lib_dl_dlopen = yes; then 11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11580else 11581 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11582echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 11583if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11584 echo $ECHO_N "(cached) $ECHO_C" >&6 11585else 11586 ac_check_lib_save_LIBS=$LIBS 11587LIBS="-lsvld $LIBS" 11588cat >conftest.$ac_ext <<_ACEOF 11589#line $LINENO "configure" 11590/* confdefs.h. */ 11591_ACEOF 11592cat confdefs.h >>conftest.$ac_ext 11593cat >>conftest.$ac_ext <<_ACEOF 11594/* end confdefs.h. */ 11595 11596/* Override any gcc2 internal prototype to avoid an error. */ 11597#ifdef __cplusplus 11598extern "C" 11599#endif 11600/* We use char because int might match the return type of a gcc2 11601 builtin and then its argument prototype would still apply. */ 11602char dlopen (); 11603int 11604main () 11605{ 11606dlopen (); 11607 ; 11608 return 0; 11609} 11610_ACEOF 11611rm -f conftest.$ac_objext conftest$ac_exeext 11612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11613 (eval $ac_link) 2>&5 11614 ac_status=$? 11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11616 (exit $ac_status); } && 11617 { ac_try='test -s conftest$ac_exeext' 11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11619 (eval $ac_try) 2>&5 11620 ac_status=$? 11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11622 (exit $ac_status); }; }; then 11623 ac_cv_lib_svld_dlopen=yes 11624else 11625 echo "$as_me: failed program was:" >&5 11626sed 's/^/| /' conftest.$ac_ext >&5 11627 11628ac_cv_lib_svld_dlopen=no 11629fi 11630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11631LIBS=$ac_check_lib_save_LIBS 11632fi 11633echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11634echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 11635if test $ac_cv_lib_svld_dlopen = yes; then 11636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11637else 11638 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11639echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 11640if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11641 echo $ECHO_N "(cached) $ECHO_C" >&6 11642else 11643 ac_check_lib_save_LIBS=$LIBS 11644LIBS="-ldld $LIBS" 11645cat >conftest.$ac_ext <<_ACEOF 11646#line $LINENO "configure" 11647/* confdefs.h. */ 11648_ACEOF 11649cat confdefs.h >>conftest.$ac_ext 11650cat >>conftest.$ac_ext <<_ACEOF 11651/* end confdefs.h. */ 11652 11653/* Override any gcc2 internal prototype to avoid an error. */ 11654#ifdef __cplusplus 11655extern "C" 11656#endif 11657/* We use char because int might match the return type of a gcc2 11658 builtin and then its argument prototype would still apply. */ 11659char dld_link (); 11660int 11661main () 11662{ 11663dld_link (); 11664 ; 11665 return 0; 11666} 11667_ACEOF 11668rm -f conftest.$ac_objext conftest$ac_exeext 11669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11670 (eval $ac_link) 2>&5 11671 ac_status=$? 11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11673 (exit $ac_status); } && 11674 { ac_try='test -s conftest$ac_exeext' 11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11676 (eval $ac_try) 2>&5 11677 ac_status=$? 11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11679 (exit $ac_status); }; }; then 11680 ac_cv_lib_dld_dld_link=yes 11681else 11682 echo "$as_me: failed program was:" >&5 11683sed 's/^/| /' conftest.$ac_ext >&5 11684 11685ac_cv_lib_dld_dld_link=no 11686fi 11687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11688LIBS=$ac_check_lib_save_LIBS 11689fi 11690echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11691echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11692if test $ac_cv_lib_dld_dld_link = yes; then 11693 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11694fi 11695 11696 11697fi 11698 11699 11700fi 11701 11702 11703fi 11704 11705 11706fi 11707 11708 11709fi 11710 11711 ;; 11712 esac 11713 11714 if test "x$lt_cv_dlopen" != xno; then 11715 enable_dlopen=yes 11716 else 11717 enable_dlopen=no 11718 fi 11719 11720 case $lt_cv_dlopen in 11721 dlopen) 11722 save_CPPFLAGS="$CPPFLAGS" 11723 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11724 11725 save_LDFLAGS="$LDFLAGS" 11726 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11727 11728 save_LIBS="$LIBS" 11729 LIBS="$lt_cv_dlopen_libs $LIBS" 11730 11731 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11732echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11733if test "${lt_cv_dlopen_self+set}" = set; then 11734 echo $ECHO_N "(cached) $ECHO_C" >&6 11735else 11736 if test "$cross_compiling" = yes; then : 11737 lt_cv_dlopen_self=cross 11738else 11739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11740 lt_status=$lt_dlunknown 11741 cat > conftest.$ac_ext <<EOF 11742#line 11742 "configure" 11743#include "confdefs.h" 11744 11745#if HAVE_DLFCN_H 11746#include <dlfcn.h> 11747#endif 11748 11749#include <stdio.h> 11750 11751#ifdef RTLD_GLOBAL 11752# define LT_DLGLOBAL RTLD_GLOBAL 11753#else 11754# ifdef DL_GLOBAL 11755# define LT_DLGLOBAL DL_GLOBAL 11756# else 11757# define LT_DLGLOBAL 0 11758# endif 11759#endif 11760 11761/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11762 find out it does not work in some platform. */ 11763#ifndef LT_DLLAZY_OR_NOW 11764# ifdef RTLD_LAZY 11765# define LT_DLLAZY_OR_NOW RTLD_LAZY 11766# else 11767# ifdef DL_LAZY 11768# define LT_DLLAZY_OR_NOW DL_LAZY 11769# else 11770# ifdef RTLD_NOW 11771# define LT_DLLAZY_OR_NOW RTLD_NOW 11772# else 11773# ifdef DL_NOW 11774# define LT_DLLAZY_OR_NOW DL_NOW 11775# else 11776# define LT_DLLAZY_OR_NOW 0 11777# endif 11778# endif 11779# endif 11780# endif 11781#endif 11782 11783#ifdef __cplusplus 11784extern "C" void exit (int); 11785#endif 11786 11787void fnord() { int i=42;} 11788int main () 11789{ 11790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11791 int status = $lt_dlunknown; 11792 11793 if (self) 11794 { 11795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11796 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11797 /* dlclose (self); */ 11798 } 11799 11800 exit (status); 11801} 11802EOF 11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11804 (eval $ac_link) 2>&5 11805 ac_status=$? 11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11807 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11808 (./conftest; exit; ) 2>/dev/null 11809 lt_status=$? 11810 case x$lt_status in 11811 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11812 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11813 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 11814 esac 11815 else : 11816 # compilation failed 11817 lt_cv_dlopen_self=no 11818 fi 11819fi 11820rm -fr conftest* 11821 11822 11823fi 11824echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11825echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11826 11827 if test "x$lt_cv_dlopen_self" = xyes; then 11828 LDFLAGS="$LDFLAGS $link_static_flag" 11829 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11830echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11831if test "${lt_cv_dlopen_self_static+set}" = set; then 11832 echo $ECHO_N "(cached) $ECHO_C" >&6 11833else 11834 if test "$cross_compiling" = yes; then : 11835 lt_cv_dlopen_self_static=cross 11836else 11837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11838 lt_status=$lt_dlunknown 11839 cat > conftest.$ac_ext <<EOF 11840#line 11840 "configure" 11841#include "confdefs.h" 11842 11843#if HAVE_DLFCN_H 11844#include <dlfcn.h> 11845#endif 11846 11847#include <stdio.h> 11848 11849#ifdef RTLD_GLOBAL 11850# define LT_DLGLOBAL RTLD_GLOBAL 11851#else 11852# ifdef DL_GLOBAL 11853# define LT_DLGLOBAL DL_GLOBAL 11854# else 11855# define LT_DLGLOBAL 0 11856# endif 11857#endif 11858 11859/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11860 find out it does not work in some platform. */ 11861#ifndef LT_DLLAZY_OR_NOW 11862# ifdef RTLD_LAZY 11863# define LT_DLLAZY_OR_NOW RTLD_LAZY 11864# else 11865# ifdef DL_LAZY 11866# define LT_DLLAZY_OR_NOW DL_LAZY 11867# else 11868# ifdef RTLD_NOW 11869# define LT_DLLAZY_OR_NOW RTLD_NOW 11870# else 11871# ifdef DL_NOW 11872# define LT_DLLAZY_OR_NOW DL_NOW 11873# else 11874# define LT_DLLAZY_OR_NOW 0 11875# endif 11876# endif 11877# endif 11878# endif 11879#endif 11880 11881#ifdef __cplusplus 11882extern "C" void exit (int); 11883#endif 11884 11885void fnord() { int i=42;} 11886int main () 11887{ 11888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11889 int status = $lt_dlunknown; 11890 11891 if (self) 11892 { 11893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11894 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11895 /* dlclose (self); */ 11896 } 11897 11898 exit (status); 11899} 11900EOF 11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11902 (eval $ac_link) 2>&5 11903 ac_status=$? 11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11905 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11906 (./conftest; exit; ) 2>/dev/null 11907 lt_status=$? 11908 case x$lt_status in 11909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11911 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 11912 esac 11913 else : 11914 # compilation failed 11915 lt_cv_dlopen_self_static=no 11916 fi 11917fi 11918rm -fr conftest* 11919 11920 11921fi 11922echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11923echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11924 fi 11925 11926 CPPFLAGS="$save_CPPFLAGS" 11927 LDFLAGS="$save_LDFLAGS" 11928 LIBS="$save_LIBS" 11929 ;; 11930 esac 11931 11932 case $lt_cv_dlopen_self in 11933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11934 *) enable_dlopen_self=unknown ;; 11935 esac 11936 11937 case $lt_cv_dlopen_self_static in 11938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11939 *) enable_dlopen_self_static=unknown ;; 11940 esac 11941fi 11942 11943 11944# The else clause should only fire when bootstrapping the 11945# libtool distribution, otherwise you forgot to ship ltmain.sh 11946# with your package, and you will get complaints that there are 11947# no rules to generate ltmain.sh. 11948if test -f "$ltmain"; then 11949 # See if we are running on zsh, and set the options which allow our commands through 11950 # without removal of \ escapes. 11951 if test -n "${ZSH_VERSION+set}" ; then 11952 setopt NO_GLOB_SUBST 11953 fi 11954 # Now quote all the things that may contain metacharacters while being 11955 # careful not to overquote the AC_SUBSTed values. We take copies of the 11956 # variables and quote the copies for generation of the libtool script. 11957 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 11958 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11959 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11960 deplibs_check_method reload_flag reload_cmds need_locks \ 11961 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11962 lt_cv_sys_global_symbol_to_c_name_address \ 11963 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11964 old_postinstall_cmds old_postuninstall_cmds \ 11965 compiler_CXX \ 11966 CC_CXX \ 11967 LD_CXX \ 11968 lt_prog_compiler_wl_CXX \ 11969 lt_prog_compiler_pic_CXX \ 11970 lt_prog_compiler_static_CXX \ 11971 lt_prog_compiler_no_builtin_flag_CXX \ 11972 export_dynamic_flag_spec_CXX \ 11973 thread_safe_flag_spec_CXX \ 11974 whole_archive_flag_spec_CXX \ 11975 enable_shared_with_static_runtimes_CXX \ 11976 old_archive_cmds_CXX \ 11977 old_archive_from_new_cmds_CXX \ 11978 predep_objects_CXX \ 11979 postdep_objects_CXX \ 11980 predeps_CXX \ 11981 postdeps_CXX \ 11982 compiler_lib_search_path_CXX \ 11983 archive_cmds_CXX \ 11984 archive_expsym_cmds_CXX \ 11985 postinstall_cmds_CXX \ 11986 postuninstall_cmds_CXX \ 11987 old_archive_from_expsyms_cmds_CXX \ 11988 allow_undefined_flag_CXX \ 11989 no_undefined_flag_CXX \ 11990 export_symbols_cmds_CXX \ 11991 hardcode_libdir_flag_spec_CXX \ 11992 hardcode_libdir_flag_spec_ld_CXX \ 11993 hardcode_libdir_separator_CXX \ 11994 hardcode_automatic_CXX \ 11995 module_cmds_CXX \ 11996 module_expsym_cmds_CXX \ 11997 lt_cv_prog_compiler_c_o_CXX \ 11998 exclude_expsyms_CXX \ 11999 include_expsyms_CXX; do 12000 12001 case $var in 12002 old_archive_cmds_CXX | \ 12003 old_archive_from_new_cmds_CXX | \ 12004 archive_cmds_CXX | \ 12005 archive_expsym_cmds_CXX | \ 12006 module_cmds_CXX | \ 12007 module_expsym_cmds_CXX | \ 12008 old_archive_from_expsyms_cmds_CXX | \ 12009 export_symbols_cmds_CXX | \ 12010 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12011 postinstall_cmds | postuninstall_cmds | \ 12012 old_postinstall_cmds | old_postuninstall_cmds | \ 12013 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12014 # Double-quote double-evaled strings. 12015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12016 ;; 12017 *) 12018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12019 ;; 12020 esac 12021 done 12022 12023 case $lt_echo in 12024 *'\$0 --fallback-echo"') 12025 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12026 ;; 12027 esac 12028 12029cfgfile="$ofile" 12030 12031 cat <<__EOF__ >> "$cfgfile" 12032# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12033 12034# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12035 12036# Shell to use when invoking shell scripts. 12037SHELL=$lt_SHELL 12038 12039# Whether or not to build shared libraries. 12040build_libtool_libs=$enable_shared 12041 12042# Whether or not to build static libraries. 12043build_old_libs=$enable_static 12044 12045# Whether or not to add -lc for building shared libraries. 12046build_libtool_need_lc=$archive_cmds_need_lc_CXX 12047 12048# Whether or not to disallow shared libs when runtime libs are static 12049allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12050 12051# Whether or not to optimize for fast installation. 12052fast_install=$enable_fast_install 12053 12054# The host system. 12055host_alias=$host_alias 12056host=$host 12057 12058# An echo program that does not interpret backslashes. 12059echo=$lt_echo 12060 12061# The archiver. 12062AR=$lt_AR 12063AR_FLAGS=$lt_AR_FLAGS 12064 12065# A C compiler. 12066LTCC=$lt_LTCC 12067 12068# A language-specific compiler. 12069CC=$lt_compiler_CXX 12070 12071# Is the compiler the GNU C compiler? 12072with_gcc=$GCC_CXX 12073 12074# An ERE matcher. 12075EGREP=$lt_EGREP 12076 12077# The linker used to build libraries. 12078LD=$lt_LD_CXX 12079 12080# Whether we need hard or soft links. 12081LN_S=$lt_LN_S 12082 12083# A BSD-compatible nm program. 12084NM=$lt_NM 12085 12086# A symbol stripping program 12087STRIP=$STRIP 12088 12089# Used to examine libraries when file_magic_cmd begins "file" 12090MAGIC_CMD=$MAGIC_CMD 12091 12092# Used on cygwin: DLL creation program. 12093DLLTOOL="$DLLTOOL" 12094 12095# Used on cygwin: object dumper. 12096OBJDUMP="$OBJDUMP" 12097 12098# Used on cygwin: assembler. 12099AS="$AS" 12100 12101# The name of the directory that contains temporary libtool files. 12102objdir=$objdir 12103 12104# How to create reloadable object files. 12105reload_flag=$lt_reload_flag 12106reload_cmds=$lt_reload_cmds 12107 12108# How to pass a linker flag through the compiler. 12109wl=$lt_lt_prog_compiler_wl_CXX 12110 12111# Object file suffix (normally "o"). 12112objext="$ac_objext" 12113 12114# Old archive suffix (normally "a"). 12115libext="$libext" 12116 12117# Shared library suffix (normally ".so"). 12118shrext='$shrext' 12119 12120# Executable file suffix (normally ""). 12121exeext="$exeext" 12122 12123# Additional compiler flags for building library objects. 12124pic_flag=$lt_lt_prog_compiler_pic_CXX 12125pic_mode=$pic_mode 12126 12127# What is the maximum length of a command? 12128max_cmd_len=$lt_cv_sys_max_cmd_len 12129 12130# Does compiler simultaneously support -c and -o options? 12131compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12132 12133# Must we lock files when doing compilation ? 12134need_locks=$lt_need_locks 12135 12136# Do we need the lib prefix for modules? 12137need_lib_prefix=$need_lib_prefix 12138 12139# Do we need a version for libraries? 12140need_version=$need_version 12141 12142# Whether dlopen is supported. 12143dlopen_support=$enable_dlopen 12144 12145# Whether dlopen of programs is supported. 12146dlopen_self=$enable_dlopen_self 12147 12148# Whether dlopen of statically linked programs is supported. 12149dlopen_self_static=$enable_dlopen_self_static 12150 12151# Compiler flag to prevent dynamic linking. 12152link_static_flag=$lt_lt_prog_compiler_static_CXX 12153 12154# Compiler flag to turn off builtin functions. 12155no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12156 12157# Compiler flag to allow reflexive dlopens. 12158export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12159 12160# Compiler flag to generate shared objects directly from archives. 12161whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12162 12163# Compiler flag to generate thread-safe objects. 12164thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12165 12166# Library versioning type. 12167version_type=$version_type 12168 12169# Format of library name prefix. 12170libname_spec=$lt_libname_spec 12171 12172# List of archive names. First name is the real one, the rest are links. 12173# The last name is the one that the linker finds with -lNAME. 12174library_names_spec=$lt_library_names_spec 12175 12176# The coded name of the library, if different from the real name. 12177soname_spec=$lt_soname_spec 12178 12179# Commands used to build and install an old-style archive. 12180RANLIB=$lt_RANLIB 12181old_archive_cmds=$lt_old_archive_cmds_CXX 12182old_postinstall_cmds=$lt_old_postinstall_cmds 12183old_postuninstall_cmds=$lt_old_postuninstall_cmds 12184 12185# Create an old-style archive from a shared archive. 12186old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12187 12188# Create a temporary old-style archive to link instead of a shared archive. 12189old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12190 12191# Commands used to build and install a shared archive. 12192archive_cmds=$lt_archive_cmds_CXX 12193archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12194postinstall_cmds=$lt_postinstall_cmds 12195postuninstall_cmds=$lt_postuninstall_cmds 12196 12197# Commands used to build a loadable module (assumed same as above if empty) 12198module_cmds=$lt_module_cmds_CXX 12199module_expsym_cmds=$lt_module_expsym_cmds_CXX 12200 12201# Commands to strip libraries. 12202old_striplib=$lt_old_striplib 12203striplib=$lt_striplib 12204 12205# Dependencies to place before the objects being linked to create a 12206# shared library. 12207predep_objects=$lt_predep_objects_CXX 12208 12209# Dependencies to place after the objects being linked to create a 12210# shared library. 12211postdep_objects=$lt_postdep_objects_CXX 12212 12213# Dependencies to place before the objects being linked to create a 12214# shared library. 12215predeps=$lt_predeps_CXX 12216 12217# Dependencies to place after the objects being linked to create a 12218# shared library. 12219postdeps=$lt_postdeps_CXX 12220 12221# The library search path used internally by the compiler when linking 12222# a shared library. 12223compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12224 12225# Method to check whether dependent libraries are shared objects. 12226deplibs_check_method=$lt_deplibs_check_method 12227 12228# Command to use when deplibs_check_method == file_magic. 12229file_magic_cmd=$lt_file_magic_cmd 12230 12231# Flag that allows shared libraries with undefined symbols to be built. 12232allow_undefined_flag=$lt_allow_undefined_flag_CXX 12233 12234# Flag that forces no undefined symbols. 12235no_undefined_flag=$lt_no_undefined_flag_CXX 12236 12237# Commands used to finish a libtool library installation in a directory. 12238finish_cmds=$lt_finish_cmds 12239 12240# Same as above, but a single script fragment to be evaled but not shown. 12241finish_eval=$lt_finish_eval 12242 12243# Take the output of nm and produce a listing of raw symbols and C names. 12244global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12245 12246# Transform the output of nm in a proper C declaration 12247global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12248 12249# Transform the output of nm in a C name address pair 12250global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12251 12252# This is the shared library runtime path variable. 12253runpath_var=$runpath_var 12254 12255# This is the shared library path variable. 12256shlibpath_var=$shlibpath_var 12257 12258# Is shlibpath searched before the hard-coded library search path? 12259shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12260 12261# How to hardcode a shared library path into an executable. 12262hardcode_action=$hardcode_action_CXX 12263 12264# Whether we should hardcode library paths into libraries. 12265hardcode_into_libs=$hardcode_into_libs 12266 12267# Flag to hardcode \$libdir into a binary during linking. 12268# This must work even if \$libdir does not exist. 12269hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12270 12271# If ld is used when linking, flag to hardcode \$libdir into 12272# a binary during linking. This must work even if \$libdir does 12273# not exist. 12274hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12275 12276# Whether we need a single -rpath flag with a separated argument. 12277hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12278 12279# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12280# resulting binary. 12281hardcode_direct=$hardcode_direct_CXX 12282 12283# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12284# resulting binary. 12285hardcode_minus_L=$hardcode_minus_L_CXX 12286 12287# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12288# the resulting binary. 12289hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12290 12291# Set to yes if building a shared library automatically hardcodes DIR into the library 12292# and all subsequent libraries and executables linked against it. 12293hardcode_automatic=$hardcode_automatic_CXX 12294 12295# Variables whose values should be saved in libtool wrapper scripts and 12296# restored at relink time. 12297variables_saved_for_relink="$variables_saved_for_relink" 12298 12299# Whether libtool must link a program against all its dependency libraries. 12300link_all_deplibs=$link_all_deplibs_CXX 12301 12302# Compile-time system search path for libraries 12303sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12304 12305# Run-time system search path for libraries 12306sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12307 12308# Fix the shell variable \$srcfile for the compiler. 12309fix_srcfile_path="$fix_srcfile_path_CXX" 12310 12311# Set to yes if exported symbols are required. 12312always_export_symbols=$always_export_symbols_CXX 12313 12314# The commands to list exported symbols. 12315export_symbols_cmds=$lt_export_symbols_cmds_CXX 12316 12317# The commands to extract the exported symbol list from a shared archive. 12318extract_expsyms_cmds=$lt_extract_expsyms_cmds 12319 12320# Symbols that should not be listed in the preloaded symbols. 12321exclude_expsyms=$lt_exclude_expsyms_CXX 12322 12323# Symbols that must always be exported. 12324include_expsyms=$lt_include_expsyms_CXX 12325 12326# ### END LIBTOOL TAG CONFIG: $tagname 12327 12328__EOF__ 12329 12330 12331else 12332 # If there is no Makefile yet, we rely on a make rule to execute 12333 # `config.status --recheck' to rerun these tests and create the 12334 # libtool script then. 12335 test -f Makefile && make "$ltmain" 12336fi 12337 12338 12339ac_ext=c 12340ac_cpp='$CPP $CPPFLAGS' 12341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12343ac_compiler_gnu=$ac_cv_c_compiler_gnu 12344 12345CC=$lt_save_CC 12346LDCXX=$LD 12347LD=$lt_save_LD 12348GCC=$lt_save_GCC 12349with_gnu_ldcxx=$with_gnu_ld 12350with_gnu_ld=$lt_save_with_gnu_ld 12351lt_cv_path_LDCXX=$lt_cv_path_LD 12352lt_cv_path_LD=$lt_save_path_LD 12353lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12354lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12355 12356 else 12357 tagname="" 12358 fi 12359 ;; 12360 12361 F77) 12362 if test -n "$F77" && test "X$F77" != "Xno"; then 12363 12364ac_ext=f 12365ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12366ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12367ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12368 12369 12370archive_cmds_need_lc_F77=no 12371allow_undefined_flag_F77= 12372always_export_symbols_F77=no 12373archive_expsym_cmds_F77= 12374export_dynamic_flag_spec_F77= 12375hardcode_direct_F77=no 12376hardcode_libdir_flag_spec_F77= 12377hardcode_libdir_flag_spec_ld_F77= 12378hardcode_libdir_separator_F77= 12379hardcode_minus_L_F77=no 12380hardcode_automatic_F77=no 12381module_cmds_F77= 12382module_expsym_cmds_F77= 12383link_all_deplibs_F77=unknown 12384old_archive_cmds_F77=$old_archive_cmds 12385no_undefined_flag_F77= 12386whole_archive_flag_spec_F77= 12387enable_shared_with_static_runtimes_F77=no 12388 12389# Source file extension for f77 test sources. 12390ac_ext=f 12391 12392# Object file extension for compiled f77 test sources. 12393objext=o 12394objext_F77=$objext 12395 12396# Code to be used in simple compile tests 12397lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12398 12399# Code to be used in simple link tests 12400lt_simple_link_test_code=" program t\n end\n" 12401 12402# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12403 12404# If no C compiler was specified, use CC. 12405LTCC=${LTCC-"$CC"} 12406 12407# Allow CC to be a program name with arguments. 12408compiler=$CC 12409 12410 12411# Allow CC to be a program name with arguments. 12412lt_save_CC="$CC" 12413CC=${F77-"f77"} 12414compiler=$CC 12415compiler_F77=$CC 12416cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 12417 12418echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12419echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12420echo "$as_me:$LINENO: result: $can_build_shared" >&5 12421echo "${ECHO_T}$can_build_shared" >&6 12422 12423echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12424echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12425test "$can_build_shared" = "no" && enable_shared=no 12426 12427# On AIX, shared libraries and static libraries use the same namespace, and 12428# are all built from PIC. 12429case "$host_os" in 12430aix3*) 12431 test "$enable_shared" = yes && enable_static=no 12432 if test -n "$RANLIB"; then 12433 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12434 postinstall_cmds='$RANLIB $lib' 12435 fi 12436 ;; 12437aix4*) 12438 test "$enable_shared" = yes && enable_static=no 12439 ;; 12440esac 12441echo "$as_me:$LINENO: result: $enable_shared" >&5 12442echo "${ECHO_T}$enable_shared" >&6 12443 12444echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12445echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12446# Make sure either enable_shared or enable_static is yes. 12447test "$enable_shared" = yes || enable_static=yes 12448echo "$as_me:$LINENO: result: $enable_static" >&5 12449echo "${ECHO_T}$enable_static" >&6 12450 12451test "$ld_shlibs_F77" = no && can_build_shared=no 12452 12453GCC_F77="$G77" 12454LD_F77="$LD" 12455 12456lt_prog_compiler_wl_F77= 12457lt_prog_compiler_pic_F77= 12458lt_prog_compiler_static_F77= 12459 12460echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12461echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12462 12463 if test "$GCC" = yes; then 12464 lt_prog_compiler_wl_F77='-Wl,' 12465 lt_prog_compiler_static_F77='-static' 12466 12467 case $host_os in 12468 aix*) 12469 # All AIX code is PIC. 12470 if test "$host_cpu" = ia64; then 12471 # AIX 5 now supports IA64 processor 12472 lt_prog_compiler_static_F77='-Bstatic' 12473 fi 12474 ;; 12475 12476 amigaos*) 12477 # FIXME: we need at least 68020 code to build shared libraries, but 12478 # adding the `-m68020' flag to GCC prevents building anything better, 12479 # like `-m68040'. 12480 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12481 ;; 12482 12483 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12484 # PIC is the default for these OSes. 12485 ;; 12486 12487 mingw* | pw32* | os2*) 12488 # This hack is so that the source file can tell whether it is being 12489 # built for inclusion in a dll (and should export symbols for example). 12490 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12491 ;; 12492 12493 darwin* | rhapsody*) 12494 # PIC is the default on this platform 12495 # Common symbols not allowed in MH_DYLIB files 12496 lt_prog_compiler_pic_F77='-fno-common' 12497 ;; 12498 12499 msdosdjgpp*) 12500 # Just because we use GCC doesn't mean we suddenly get shared libraries 12501 # on systems that don't support them. 12502 lt_prog_compiler_can_build_shared_F77=no 12503 enable_shared=no 12504 ;; 12505 12506 sysv4*MP*) 12507 if test -d /usr/nec; then 12508 lt_prog_compiler_pic_F77=-Kconform_pic 12509 fi 12510 ;; 12511 12512 hpux*) 12513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12514 # not for PA HP-UX. 12515 case "$host_cpu" in 12516 hppa*64*|ia64*) 12517 # +Z the default 12518 ;; 12519 *) 12520 lt_prog_compiler_pic_F77='-fPIC' 12521 ;; 12522 esac 12523 ;; 12524 12525 *) 12526 lt_prog_compiler_pic_F77='-fPIC' 12527 ;; 12528 esac 12529 else 12530 # PORTME Check for flag to pass linker flags through the system compiler. 12531 case $host_os in 12532 aix*) 12533 lt_prog_compiler_wl_F77='-Wl,' 12534 if test "$host_cpu" = ia64; then 12535 # AIX 5 now supports IA64 processor 12536 lt_prog_compiler_static_F77='-Bstatic' 12537 else 12538 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12539 fi 12540 ;; 12541 12542 mingw* | pw32* | os2*) 12543 # This hack is so that the source file can tell whether it is being 12544 # built for inclusion in a dll (and should export symbols for example). 12545 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12546 ;; 12547 12548 hpux9* | hpux10* | hpux11*) 12549 lt_prog_compiler_wl_F77='-Wl,' 12550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12551 # not for PA HP-UX. 12552 case "$host_cpu" in 12553 hppa*64*|ia64*) 12554 # +Z the default 12555 ;; 12556 *) 12557 lt_prog_compiler_pic_F77='+Z' 12558 ;; 12559 esac 12560 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12561 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12562 ;; 12563 12564 irix5* | irix6* | nonstopux*) 12565 lt_prog_compiler_wl_F77='-Wl,' 12566 # PIC (with -KPIC) is the default. 12567 lt_prog_compiler_static_F77='-non_shared' 12568 ;; 12569 12570 newsos6) 12571 lt_prog_compiler_pic_F77='-KPIC' 12572 lt_prog_compiler_static_F77='-Bstatic' 12573 ;; 12574 12575 linux*) 12576 case $CC in 12577 icc|ecc) 12578 lt_prog_compiler_wl_F77='-Wl,' 12579 lt_prog_compiler_pic_F77='-KPIC' 12580 lt_prog_compiler_static_F77='-static' 12581 ;; 12582 ccc) 12583 lt_prog_compiler_wl_F77='-Wl,' 12584 # All Alpha code is PIC. 12585 lt_prog_compiler_static_F77='-non_shared' 12586 ;; 12587 esac 12588 ;; 12589 12590 osf3* | osf4* | osf5*) 12591 lt_prog_compiler_wl_F77='-Wl,' 12592 # All OSF/1 code is PIC. 12593 lt_prog_compiler_static_F77='-non_shared' 12594 ;; 12595 12596 sco3.2v5*) 12597 lt_prog_compiler_pic_F77='-Kpic' 12598 lt_prog_compiler_static_F77='-dn' 12599 ;; 12600 12601 solaris*) 12602 lt_prog_compiler_wl_F77='-Wl,' 12603 lt_prog_compiler_pic_F77='-KPIC' 12604 lt_prog_compiler_static_F77='-Bstatic' 12605 ;; 12606 12607 sunos4*) 12608 lt_prog_compiler_wl_F77='-Qoption ld ' 12609 lt_prog_compiler_pic_F77='-PIC' 12610 lt_prog_compiler_static_F77='-Bstatic' 12611 ;; 12612 12613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12614 lt_prog_compiler_wl_F77='-Wl,' 12615 lt_prog_compiler_pic_F77='-KPIC' 12616 lt_prog_compiler_static_F77='-Bstatic' 12617 ;; 12618 12619 sysv4*MP*) 12620 if test -d /usr/nec ;then 12621 lt_prog_compiler_pic_F77='-Kconform_pic' 12622 lt_prog_compiler_static_F77='-Bstatic' 12623 fi 12624 ;; 12625 12626 uts4*) 12627 lt_prog_compiler_pic_F77='-pic' 12628 lt_prog_compiler_static_F77='-Bstatic' 12629 ;; 12630 12631 *) 12632 lt_prog_compiler_can_build_shared_F77=no 12633 ;; 12634 esac 12635 fi 12636 12637echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12638echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12639 12640# 12641# Check to make sure the PIC flag actually works. 12642# 12643if test -n "$lt_prog_compiler_pic_F77"; then 12644 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12645echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12646if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12647 echo $ECHO_N "(cached) $ECHO_C" >&6 12648else 12649 lt_prog_compiler_pic_works_F77=no 12650 ac_outfile=conftest.$ac_objext 12651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12652 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12653 # Insert the option either (1) after the last *FLAGS variable, or 12654 # (2) before a word containing "conftest.", or (3) at the end. 12655 # Note that $ac_compile itself does not contain backslashes and begins 12656 # with a dollar sign (not a hyphen), so the echo should work correctly. 12657 # The option is referenced via a variable to avoid confusing sed. 12658 lt_compile=`echo "$ac_compile" | $SED \ 12659 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12661 -e 's:$: $lt_compiler_flag:'` 12662 (eval echo "\"\$as_me:12662: $lt_compile\"" >&5) 12663 (eval "$lt_compile" 2>conftest.err) 12664 ac_status=$? 12665 cat conftest.err >&5 12666 echo "$as_me:12666: \$? = $ac_status" >&5 12667 if (exit $ac_status) && test -s "$ac_outfile"; then 12668 # The compiler can only warn and ignore the option if not recognized 12669 # So say no if there are warnings 12670 if test ! -s conftest.err; then 12671 lt_prog_compiler_pic_works_F77=yes 12672 fi 12673 fi 12674 $rm conftest* 12675 12676fi 12677echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12678echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12679 12680if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12681 case $lt_prog_compiler_pic_F77 in 12682 "" | " "*) ;; 12683 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12684 esac 12685else 12686 lt_prog_compiler_pic_F77= 12687 lt_prog_compiler_can_build_shared_F77=no 12688fi 12689 12690fi 12691case "$host_os" in 12692 # For platforms which do not support PIC, -DPIC is meaningless: 12693 *djgpp*) 12694 lt_prog_compiler_pic_F77= 12695 ;; 12696 *) 12697 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12698 ;; 12699esac 12700 12701echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12702echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12703if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 12704 echo $ECHO_N "(cached) $ECHO_C" >&6 12705else 12706 lt_cv_prog_compiler_c_o_F77=no 12707 $rm -r conftest 2>/dev/null 12708 mkdir conftest 12709 cd conftest 12710 mkdir out 12711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12712 12713 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 12714 # that will create temporary files in the current directory regardless of 12715 # the output directory. Thus, making CWD read-only will cause this test 12716 # to fail, enabling locking or at least warning the user not to do parallel 12717 # builds. 12718 chmod -w . 12719 12720 lt_compiler_flag="-o out/conftest2.$ac_objext" 12721 # Insert the option either (1) after the last *FLAGS variable, or 12722 # (2) before a word containing "conftest.", or (3) at the end. 12723 # Note that $ac_compile itself does not contain backslashes and begins 12724 # with a dollar sign (not a hyphen), so the echo should work correctly. 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>out/conftest.err) 12731 ac_status=$? 12732 cat out/conftest.err >&5 12733 echo "$as_me:12733: \$? = $ac_status" >&5 12734 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12735 then 12736 # The compiler can only warn and ignore the option if not recognized 12737 # So say no if there are warnings 12738 if test ! -s out/conftest.err; then 12739 lt_cv_prog_compiler_c_o_F77=yes 12740 fi 12741 fi 12742 chmod u+w . 12743 $rm conftest* out/* 12744 rmdir out 12745 cd .. 12746 rmdir conftest 12747 $rm conftest* 12748 12749fi 12750echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 12751echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 12752 12753 12754hard_links="nottested" 12755if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 12756 # do not overwrite the value of need_locks provided by the user 12757 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12758echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12759 hard_links=yes 12760 $rm conftest* 12761 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12762 touch conftest.a 12763 ln conftest.a conftest.b 2>&5 || hard_links=no 12764 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12765 echo "$as_me:$LINENO: result: $hard_links" >&5 12766echo "${ECHO_T}$hard_links" >&6 12767 if test "$hard_links" = no; then 12768 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12769echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12770 need_locks=warn 12771 fi 12772else 12773 need_locks=no 12774fi 12775 12776echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12777echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12778 12779 runpath_var= 12780 allow_undefined_flag_F77= 12781 enable_shared_with_static_runtimes_F77=no 12782 archive_cmds_F77= 12783 archive_expsym_cmds_F77= 12784 old_archive_From_new_cmds_F77= 12785 old_archive_from_expsyms_cmds_F77= 12786 export_dynamic_flag_spec_F77= 12787 whole_archive_flag_spec_F77= 12788 thread_safe_flag_spec_F77= 12789 hardcode_libdir_flag_spec_F77= 12790 hardcode_libdir_flag_spec_ld_F77= 12791 hardcode_libdir_separator_F77= 12792 hardcode_direct_F77=no 12793 hardcode_minus_L_F77=no 12794 hardcode_shlibpath_var_F77=unsupported 12795 link_all_deplibs_F77=unknown 12796 hardcode_automatic_F77=no 12797 module_cmds_F77= 12798 module_expsym_cmds_F77= 12799 always_export_symbols_F77=no 12800 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12801 # include_expsyms should be a list of space-separated symbols to be *always* 12802 # included in the symbol list 12803 include_expsyms_F77= 12804 # exclude_expsyms can be an extended regexp of symbols to exclude 12805 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12806 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12807 # as well as any symbol that contains `d'. 12808 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 12809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12810 # platforms (ab)use it in PIC code, but their linkers get confused if 12811 # the symbol is explicitly referenced. Since portable code cannot 12812 # rely on this symbol name, it's probably fine to never include it in 12813 # preloaded symbol tables. 12814 extract_expsyms_cmds= 12815 12816 case $host_os in 12817 cygwin* | mingw* | pw32*) 12818 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12819 # When not using gcc, we currently assume that we are using 12820 # Microsoft Visual C++. 12821 if test "$GCC" != yes; then 12822 with_gnu_ld=no 12823 fi 12824 ;; 12825 openbsd*) 12826 with_gnu_ld=no 12827 ;; 12828 esac 12829 12830 ld_shlibs_F77=yes 12831 if test "$with_gnu_ld" = yes; then 12832 # If archive_cmds runs LD, not CC, wlarc should be empty 12833 wlarc='${wl}' 12834 12835 # See if GNU ld supports shared libraries. 12836 case $host_os in 12837 aix3* | aix4* | aix5*) 12838 # On AIX/PPC, the GNU linker is very broken 12839 if test "$host_cpu" != ia64; then 12840 ld_shlibs_F77=no 12841 cat <<EOF 1>&2 12842 12843*** Warning: the GNU linker, at least up to release 2.9.1, is reported 12844*** to be unable to reliably create shared libraries on AIX. 12845*** Therefore, libtool is disabling shared libraries support. If you 12846*** really care for shared libraries, you may want to modify your PATH 12847*** so that a non-GNU linker is found, and then restart. 12848 12849EOF 12850 fi 12851 ;; 12852 12853 amigaos*) 12854 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)' 12855 hardcode_libdir_flag_spec_F77='-L$libdir' 12856 hardcode_minus_L_F77=yes 12857 12858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 12859 # that the semantics of dynamic libraries on AmigaOS, at least up 12860 # to version 4, is to share data among multiple programs linked 12861 # with the same dynamic library. Since this doesn't match the 12862 # behavior of shared libraries on other platforms, we can't use 12863 # them. 12864 ld_shlibs_F77=no 12865 ;; 12866 12867 beos*) 12868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12869 allow_undefined_flag_F77=unsupported 12870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12871 # support --undefined. This deserves some investigation. FIXME 12872 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12873 else 12874 ld_shlibs_F77=no 12875 fi 12876 ;; 12877 12878 cygwin* | mingw* | pw32*) 12879 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 12880 # as there is no search path for DLLs. 12881 hardcode_libdir_flag_spec_F77='-L$libdir' 12882 allow_undefined_flag_F77=unsupported 12883 always_export_symbols_F77=no 12884 enable_shared_with_static_runtimes_F77=yes 12885 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12886 12887 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12888 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12889 # If the export-symbols file already is a .def file (1st line 12890 # is EXPORTS), use it as is; otherwise, prepend... 12891 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12892 cp $export_symbols $output_objdir/$soname.def; 12893 else 12894 echo EXPORTS > $output_objdir/$soname.def; 12895 cat $export_symbols >> $output_objdir/$soname.def; 12896 fi~ 12897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12898 else 12899 ld_shlibs=no 12900 fi 12901 ;; 12902 12903 netbsd*) 12904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12905 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12906 wlarc= 12907 else 12908 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12909 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12910 fi 12911 ;; 12912 12913 solaris* | sysv5*) 12914 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 12915 ld_shlibs_F77=no 12916 cat <<EOF 1>&2 12917 12918*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12919*** create shared libraries on Solaris systems. Therefore, libtool 12920*** is disabling shared libraries support. We urge you to upgrade GNU 12921*** binutils to release 2.9.1 or newer. Another option is to modify 12922*** your PATH or compiler configuration so that the native linker is 12923*** used, and then restart. 12924 12925EOF 12926 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12927 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12928 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12929 else 12930 ld_shlibs_F77=no 12931 fi 12932 ;; 12933 12934 sunos4*) 12935 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12936 wlarc= 12937 hardcode_direct_F77=yes 12938 hardcode_shlibpath_var_F77=no 12939 ;; 12940 12941 *) 12942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12945 else 12946 ld_shlibs_F77=no 12947 fi 12948 ;; 12949 esac 12950 12951 if test "$ld_shlibs_F77" = yes; then 12952 runpath_var=LD_RUN_PATH 12953 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 12954 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 12955 # ancient GNU ld didn't support --whole-archive et. al. 12956 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 12957 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12958 else 12959 whole_archive_flag_spec_F77= 12960 fi 12961 fi 12962 else 12963 # PORTME fill in a description of your system's linker (not GNU ld) 12964 case $host_os in 12965 aix3*) 12966 allow_undefined_flag_F77=unsupported 12967 always_export_symbols_F77=yes 12968 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' 12969 # Note: this linker hardcodes the directories in LIBPATH if there 12970 # are no directories specified by -L. 12971 hardcode_minus_L_F77=yes 12972 if test "$GCC" = yes && test -z "$link_static_flag"; then 12973 # Neither direct hardcoding nor static linking is supported with a 12974 # broken collect2. 12975 hardcode_direct_F77=unsupported 12976 fi 12977 ;; 12978 12979 aix4* | aix5*) 12980 if test "$host_cpu" = ia64; then 12981 # On IA64, the linker does run time linking by default, so we don't 12982 # have to do anything special. 12983 aix_use_runtimelinking=no 12984 exp_sym_flag='-Bexport' 12985 no_entry_flag="" 12986 else 12987 # If we're using GNU nm, then we don't want the "-C" option. 12988 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12989 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12990 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' 12991 else 12992 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' 12993 fi 12994 aix_use_runtimelinking=no 12995 12996 # Test if we are trying to use run time linking or normal 12997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12998 # need to do runtime linking. 12999 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13000 for ld_flag in $LDFLAGS; do 13001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13002 aix_use_runtimelinking=yes 13003 break 13004 fi 13005 done 13006 esac 13007 13008 exp_sym_flag='-bexport' 13009 no_entry_flag='-bnoentry' 13010 fi 13011 13012 # When large executables or shared objects are built, AIX ld can 13013 # have problems creating the table of contents. If linking a library 13014 # or program results in "error TOC overflow" add -mminimal-toc to 13015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13017 13018 archive_cmds_F77='' 13019 hardcode_direct_F77=yes 13020 hardcode_libdir_separator_F77=':' 13021 link_all_deplibs_F77=yes 13022 13023 if test "$GCC" = yes; then 13024 case $host_os in aix4.012|aix4.012.*) 13025 # We only want to do this on AIX 4.2 and lower, the check 13026 # below for broken collect2 doesn't work under 4.3+ 13027 collect2name=`${CC} -print-prog-name=collect2` 13028 if test -f "$collect2name" && \ 13029 strings "$collect2name" | grep resolve_lib_name >/dev/null 13030 then 13031 # We have reworked collect2 13032 hardcode_direct_F77=yes 13033 else 13034 # We have old collect2 13035 hardcode_direct_F77=unsupported 13036 # It fails to find uninstalled libraries when the uninstalled 13037 # path is not listed in the libpath. Setting hardcode_minus_L 13038 # to unsupported forces relinking 13039 hardcode_minus_L_F77=yes 13040 hardcode_libdir_flag_spec_F77='-L$libdir' 13041 hardcode_libdir_separator_F77= 13042 fi 13043 esac 13044 shared_flag='-shared' 13045 else 13046 # not using gcc 13047 if test "$host_cpu" = ia64; then 13048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13049 # chokes on -Wl,-G. The following line is correct: 13050 shared_flag='-G' 13051 else 13052 if test "$aix_use_runtimelinking" = yes; then 13053 shared_flag='${wl}-G' 13054 else 13055 shared_flag='${wl}-bM:SRE' 13056 fi 13057 fi 13058 fi 13059 13060 # It seems that -bexpall does not export symbols beginning with 13061 # underscore (_), so it is better to generate a list of symbols to export. 13062 always_export_symbols_F77=yes 13063 if test "$aix_use_runtimelinking" = yes; then 13064 # Warning - without using the other runtime loading flags (-brtl), 13065 # -berok will link without error, but may produce a broken library. 13066 allow_undefined_flag_F77='-berok' 13067 # Determine the default libpath from the value encoded in an empty executable. 13068 cat >conftest.$ac_ext <<_ACEOF 13069 program main 13070 13071 end 13072_ACEOF 13073rm -f conftest.$ac_objext conftest$ac_exeext 13074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13075 (eval $ac_link) 2>&5 13076 ac_status=$? 13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13078 (exit $ac_status); } && 13079 { ac_try='test -s conftest$ac_exeext' 13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13081 (eval $ac_try) 2>&5 13082 ac_status=$? 13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13084 (exit $ac_status); }; }; then 13085 13086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13087}'` 13088# Check for a 64-bit object if we didn't find anything. 13089if 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; } 13090}'`; fi 13091else 13092 echo "$as_me: failed program was:" >&5 13093sed 's/^/| /' conftest.$ac_ext >&5 13094 13095fi 13096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13098 13099 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13100 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" 13101 else 13102 if test "$host_cpu" = ia64; then 13103 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13104 allow_undefined_flag_F77="-z nodefs" 13105 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" 13106 else 13107 # Determine the default libpath from the value encoded in an empty executable. 13108 cat >conftest.$ac_ext <<_ACEOF 13109 program main 13110 13111 end 13112_ACEOF 13113rm -f conftest.$ac_objext conftest$ac_exeext 13114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13115 (eval $ac_link) 2>&5 13116 ac_status=$? 13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13118 (exit $ac_status); } && 13119 { ac_try='test -s conftest$ac_exeext' 13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13121 (eval $ac_try) 2>&5 13122 ac_status=$? 13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13124 (exit $ac_status); }; }; then 13125 13126aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13127}'` 13128# Check for a 64-bit object if we didn't find anything. 13129if 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; } 13130}'`; fi 13131else 13132 echo "$as_me: failed program was:" >&5 13133sed 's/^/| /' conftest.$ac_ext >&5 13134 13135fi 13136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13138 13139 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13140 # Warning - without using the other run time loading flags, 13141 # -berok will link without error, but may produce a broken library. 13142 no_undefined_flag_F77=' ${wl}-bernotok' 13143 allow_undefined_flag_F77=' ${wl}-berok' 13144 # -bexpall does not export symbols beginning with underscore (_) 13145 always_export_symbols_F77=yes 13146 # Exported symbols can be pulled into shared objects from archives 13147 whole_archive_flag_spec_F77=' ' 13148 archive_cmds_need_lc_F77=yes 13149 # This is similar to how AIX traditionally builds it's shared libraries. 13150 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' 13151 fi 13152 fi 13153 ;; 13154 13155 amigaos*) 13156 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)' 13157 hardcode_libdir_flag_spec_F77='-L$libdir' 13158 hardcode_minus_L_F77=yes 13159 # see comment about different semantics on the GNU ld section 13160 ld_shlibs_F77=no 13161 ;; 13162 13163 bsdi4*) 13164 export_dynamic_flag_spec_F77=-rdynamic 13165 ;; 13166 13167 cygwin* | mingw* | pw32*) 13168 # When not using gcc, we currently assume that we are using 13169 # Microsoft Visual C++. 13170 # hardcode_libdir_flag_spec is actually meaningless, as there is 13171 # no search path for DLLs. 13172 hardcode_libdir_flag_spec_F77=' ' 13173 allow_undefined_flag_F77=unsupported 13174 # Tell ltmain to make .lib files, not .a files. 13175 libext=lib 13176 # Tell ltmain to make .dll files, not .so files. 13177 shrext=".dll" 13178 # FIXME: Setting linknames here is a bad hack. 13179 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13180 # The linker will automatically build a .lib file if we build a DLL. 13181 old_archive_From_new_cmds_F77='true' 13182 # FIXME: Should let the user specify the lib program. 13183 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13184 fix_srcfile_path='`cygpath -w "$srcfile"`' 13185 enable_shared_with_static_runtimes_F77=yes 13186 ;; 13187 13188 darwin* | rhapsody*) 13189 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 13190 archive_cmds_need_lc_F77=no 13191 case "$host_os" in 13192 rhapsody* | darwin1.[012]) 13193 allow_undefined_flag_F77='-undefined suppress' 13194 ;; 13195 *) # Darwin 1.3 on 13196 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13197 ;; 13198 esac 13199 # FIXME: Relying on posixy $() will cause problems for 13200 # cross-compilation, but unfortunately the echo tests do not 13201 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 13202 # `"' quotes if we put them in here... so don't! 13203 lt_int_apple_cc_single_mod=no 13204 output_verbose_link_cmd='echo' 13205 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 13206 lt_int_apple_cc_single_mod=yes 13207 fi 13208 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13209 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13210 else 13211 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' 13212 fi 13213 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 13214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13215 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13216 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}' 13217 else 13218 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}' 13219 fi 13220 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}' 13221 hardcode_direct_F77=no 13222 hardcode_automatic_F77=yes 13223 hardcode_shlibpath_var_F77=unsupported 13224 whole_archive_flag_spec_F77='-all_load $convenience' 13225 link_all_deplibs_F77=yes 13226 fi 13227 ;; 13228 13229 dgux*) 13230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13231 hardcode_libdir_flag_spec_F77='-L$libdir' 13232 hardcode_shlibpath_var_F77=no 13233 ;; 13234 13235 freebsd1*) 13236 ld_shlibs_F77=no 13237 ;; 13238 13239 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13240 # support. Future versions do this automatically, but an explicit c++rt0.o 13241 # does not break anything, and helps significantly (at the cost of a little 13242 # extra space). 13243 freebsd2.2*) 13244 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13245 hardcode_libdir_flag_spec_F77='-R$libdir' 13246 hardcode_direct_F77=yes 13247 hardcode_shlibpath_var_F77=no 13248 ;; 13249 13250 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13251 freebsd2*) 13252 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13253 hardcode_direct_F77=yes 13254 hardcode_minus_L_F77=yes 13255 hardcode_shlibpath_var_F77=no 13256 ;; 13257 13258 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13259 freebsd*) 13260 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13261 hardcode_libdir_flag_spec_F77='-R$libdir' 13262 hardcode_direct_F77=yes 13263 hardcode_shlibpath_var_F77=no 13264 ;; 13265 13266 hpux9*) 13267 if test "$GCC" = yes; then 13268 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' 13269 else 13270 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' 13271 fi 13272 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13273 hardcode_libdir_separator_F77=: 13274 hardcode_direct_F77=yes 13275 13276 # hardcode_minus_L: Not really in the search PATH, 13277 # but as the default location of the library. 13278 hardcode_minus_L_F77=yes 13279 export_dynamic_flag_spec_F77='${wl}-E' 13280 ;; 13281 13282 hpux10* | hpux11*) 13283 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13284 case "$host_cpu" in 13285 hppa*64*|ia64*) 13286 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13287 ;; 13288 *) 13289 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13290 ;; 13291 esac 13292 else 13293 case "$host_cpu" in 13294 hppa*64*|ia64*) 13295 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 13296 ;; 13297 *) 13298 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13299 ;; 13300 esac 13301 fi 13302 if test "$with_gnu_ld" = no; then 13303 case "$host_cpu" in 13304 hppa*64*) 13305 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13306 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13307 hardcode_libdir_separator_F77=: 13308 hardcode_direct_F77=no 13309 hardcode_shlibpath_var_F77=no 13310 ;; 13311 ia64*) 13312 hardcode_libdir_flag_spec_F77='-L$libdir' 13313 hardcode_direct_F77=no 13314 hardcode_shlibpath_var_F77=no 13315 13316 # hardcode_minus_L: Not really in the search PATH, 13317 # but as the default location of the library. 13318 hardcode_minus_L_F77=yes 13319 ;; 13320 *) 13321 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13322 hardcode_libdir_separator_F77=: 13323 hardcode_direct_F77=yes 13324 export_dynamic_flag_spec_F77='${wl}-E' 13325 13326 # hardcode_minus_L: Not really in the search PATH, 13327 # but as the default location of the library. 13328 hardcode_minus_L_F77=yes 13329 ;; 13330 esac 13331 fi 13332 ;; 13333 13334 irix5* | irix6* | nonstopux*) 13335 if test "$GCC" = yes; then 13336 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' 13337 else 13338 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' 13339 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13340 fi 13341 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13342 hardcode_libdir_separator_F77=: 13343 link_all_deplibs_F77=yes 13344 ;; 13345 13346 netbsd*) 13347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13348 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13349 else 13350 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13351 fi 13352 hardcode_libdir_flag_spec_F77='-R$libdir' 13353 hardcode_direct_F77=yes 13354 hardcode_shlibpath_var_F77=no 13355 ;; 13356 13357 newsos6) 13358 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13359 hardcode_direct_F77=yes 13360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13361 hardcode_libdir_separator_F77=: 13362 hardcode_shlibpath_var_F77=no 13363 ;; 13364 13365 openbsd*) 13366 hardcode_direct_F77=yes 13367 hardcode_shlibpath_var_F77=no 13368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13369 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13370 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13371 export_dynamic_flag_spec_F77='${wl}-E' 13372 else 13373 case $host_os in 13374 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13376 hardcode_libdir_flag_spec_F77='-R$libdir' 13377 ;; 13378 *) 13379 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13380 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13381 ;; 13382 esac 13383 fi 13384 ;; 13385 13386 os2*) 13387 hardcode_libdir_flag_spec_F77='-L$libdir' 13388 hardcode_minus_L_F77=yes 13389 allow_undefined_flag_F77=unsupported 13390 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' 13391 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13392 ;; 13393 13394 osf3*) 13395 if test "$GCC" = yes; then 13396 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13397 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' 13398 else 13399 allow_undefined_flag_F77=' -expect_unresolved \*' 13400 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' 13401 fi 13402 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13403 hardcode_libdir_separator_F77=: 13404 ;; 13405 13406 osf4* | osf5*) # as osf3* with the addition of -msym flag 13407 if test "$GCC" = yes; then 13408 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13409 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' 13410 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13411 else 13412 allow_undefined_flag_F77=' -expect_unresolved \*' 13413 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' 13414 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~ 13415 $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' 13416 13417 # Both c and cxx compiler support -rpath directly 13418 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13419 fi 13420 hardcode_libdir_separator_F77=: 13421 ;; 13422 13423 sco3.2v5*) 13424 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13425 hardcode_shlibpath_var_F77=no 13426 export_dynamic_flag_spec_F77='${wl}-Bexport' 13427 runpath_var=LD_RUN_PATH 13428 hardcode_runpath_var=yes 13429 ;; 13430 13431 solaris*) 13432 no_undefined_flag_F77=' -z text' 13433 if test "$GCC" = yes; then 13434 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13435 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13436 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13437 else 13438 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13439 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13441 fi 13442 hardcode_libdir_flag_spec_F77='-R$libdir' 13443 hardcode_shlibpath_var_F77=no 13444 case $host_os in 13445 solaris2.[0-5] | solaris2.[0-5].*) ;; 13446 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 13447 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13448 esac 13449 link_all_deplibs_F77=yes 13450 ;; 13451 13452 sunos4*) 13453 if test "x$host_vendor" = xsequent; then 13454 # Use $CC to link under sequent, because it throws in some extra .o 13455 # files that make .init and .fini sections work. 13456 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13457 else 13458 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13459 fi 13460 hardcode_libdir_flag_spec_F77='-L$libdir' 13461 hardcode_direct_F77=yes 13462 hardcode_minus_L_F77=yes 13463 hardcode_shlibpath_var_F77=no 13464 ;; 13465 13466 sysv4) 13467 case $host_vendor in 13468 sni) 13469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13470 hardcode_direct_F77=yes # is this really true??? 13471 ;; 13472 siemens) 13473 ## LD is ld it makes a PLAMLIB 13474 ## CC just makes a GrossModule. 13475 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13476 reload_cmds_F77='$CC -r -o $output$reload_objs' 13477 hardcode_direct_F77=no 13478 ;; 13479 motorola) 13480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13481 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13482 ;; 13483 esac 13484 runpath_var='LD_RUN_PATH' 13485 hardcode_shlibpath_var_F77=no 13486 ;; 13487 13488 sysv4.3*) 13489 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13490 hardcode_shlibpath_var_F77=no 13491 export_dynamic_flag_spec_F77='-Bexport' 13492 ;; 13493 13494 sysv4*MP*) 13495 if test -d /usr/nec; then 13496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13497 hardcode_shlibpath_var_F77=no 13498 runpath_var=LD_RUN_PATH 13499 hardcode_runpath_var=yes 13500 ld_shlibs_F77=yes 13501 fi 13502 ;; 13503 13504 sysv4.2uw2*) 13505 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13506 hardcode_direct_F77=yes 13507 hardcode_minus_L_F77=no 13508 hardcode_shlibpath_var_F77=no 13509 hardcode_runpath_var=yes 13510 runpath_var=LD_RUN_PATH 13511 ;; 13512 13513 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 13514 no_undefined_flag_F77='${wl}-z ${wl}text' 13515 if test "$GCC" = yes; then 13516 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13517 else 13518 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13519 fi 13520 runpath_var='LD_RUN_PATH' 13521 hardcode_shlibpath_var_F77=no 13522 ;; 13523 13524 sysv5*) 13525 no_undefined_flag_F77=' -z text' 13526 # $CC -shared without GNU ld will not create a library from C++ 13527 # object files and a static libstdc++, better avoid it by now 13528 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13529 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13531 hardcode_libdir_flag_spec_F77= 13532 hardcode_shlibpath_var_F77=no 13533 runpath_var='LD_RUN_PATH' 13534 ;; 13535 13536 uts4*) 13537 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13538 hardcode_libdir_flag_spec_F77='-L$libdir' 13539 hardcode_shlibpath_var_F77=no 13540 ;; 13541 13542 *) 13543 ld_shlibs_F77=no 13544 ;; 13545 esac 13546 fi 13547 13548echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 13549echo "${ECHO_T}$ld_shlibs_F77" >&6 13550test "$ld_shlibs_F77" = no && can_build_shared=no 13551 13552variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13553if test "$GCC" = yes; then 13554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13555fi 13556 13557# 13558# Do we need to explicitly link libc? 13559# 13560case "x$archive_cmds_need_lc_F77" in 13561x|xyes) 13562 # Assume -lc should be added 13563 archive_cmds_need_lc_F77=yes 13564 13565 if test "$enable_shared" = yes && test "$GCC" = yes; then 13566 case $archive_cmds_F77 in 13567 *'~'*) 13568 # FIXME: we may have to deal with multi-command sequences. 13569 ;; 13570 '$CC '*) 13571 # Test whether the compiler implicitly links with -lc since on some 13572 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13573 # to ld, don't add -lc before -lgcc. 13574 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13575echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13576 $rm conftest* 13577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13578 13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13580 (eval $ac_compile) 2>&5 13581 ac_status=$? 13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13583 (exit $ac_status); } 2>conftest.err; then 13584 soname=conftest 13585 lib=conftest 13586 libobjs=conftest.$ac_objext 13587 deplibs= 13588 wl=$lt_prog_compiler_wl_F77 13589 compiler_flags=-v 13590 linker_flags=-v 13591 verstring= 13592 output_objdir=. 13593 libname=conftest 13594 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 13595 allow_undefined_flag_F77= 13596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13597 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13598 ac_status=$? 13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13600 (exit $ac_status); } 13601 then 13602 archive_cmds_need_lc_F77=no 13603 else 13604 archive_cmds_need_lc_F77=yes 13605 fi 13606 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 13607 else 13608 cat conftest.err 1>&5 13609 fi 13610 $rm conftest* 13611 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 13612echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 13613 ;; 13614 esac 13615 fi 13616 ;; 13617esac 13618 13619echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13620echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13621hardcode_action_F77= 13622if test -n "$hardcode_libdir_flag_spec_F77" || \ 13623 test -n "$runpath_var F77" || \ 13624 test "X$hardcode_automatic_F77"="Xyes" ; then 13625 13626 # We can hardcode non-existant directories. 13627 if test "$hardcode_direct_F77" != no && 13628 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13629 # have to relink, otherwise we might link with an installed library 13630 # when we should be linking with a yet-to-be-installed one 13631 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 13632 test "$hardcode_minus_L_F77" != no; then 13633 # Linking always hardcodes the temporary library directory. 13634 hardcode_action_F77=relink 13635 else 13636 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13637 hardcode_action_F77=immediate 13638 fi 13639else 13640 # We cannot hardcode anything, or else we can only hardcode existing 13641 # directories. 13642 hardcode_action_F77=unsupported 13643fi 13644echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 13645echo "${ECHO_T}$hardcode_action_F77" >&6 13646 13647if test "$hardcode_action_F77" = relink; then 13648 # Fast installation is not supported 13649 enable_fast_install=no 13650elif test "$shlibpath_overrides_runpath" = yes || 13651 test "$enable_shared" = no; then 13652 # Fast installation is not necessary 13653 enable_fast_install=needless 13654fi 13655 13656striplib= 13657old_striplib= 13658echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 13659echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 13660if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 13661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13662 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13663 echo "$as_me:$LINENO: result: yes" >&5 13664echo "${ECHO_T}yes" >&6 13665else 13666# FIXME - insert some real tests, host_os isn't really good enough 13667 case $host_os in 13668 darwin*) 13669 if test -n "$STRIP" ; then 13670 striplib="$STRIP -x" 13671 echo "$as_me:$LINENO: result: yes" >&5 13672echo "${ECHO_T}yes" >&6 13673 else 13674 echo "$as_me:$LINENO: result: no" >&5 13675echo "${ECHO_T}no" >&6 13676fi 13677 ;; 13678 *) 13679 echo "$as_me:$LINENO: result: no" >&5 13680echo "${ECHO_T}no" >&6 13681 ;; 13682 esac 13683fi 13684 13685echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13686echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13687library_names_spec= 13688libname_spec='lib$name' 13689soname_spec= 13690shrext=".so" 13691postinstall_cmds= 13692postuninstall_cmds= 13693finish_cmds= 13694finish_eval= 13695shlibpath_var= 13696shlibpath_overrides_runpath=unknown 13697version_type=none 13698dynamic_linker="$host_os ld.so" 13699sys_lib_dlsearch_path_spec="/lib /usr/lib" 13700if test "$GCC" = yes; then 13701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13702 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13703 # if the path contains ";" then we assume it to be the separator 13704 # otherwise default to the standard path separator (i.e. ":") - it is 13705 # assumed that no part of a normal pathname contains ";" but that should 13706 # okay in the real world where ";" in dirpaths is itself problematic. 13707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13708 else 13709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13710 fi 13711else 13712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13713fi 13714need_lib_prefix=unknown 13715hardcode_into_libs=no 13716 13717# when you set need_version to no, make sure it does not cause -set_version 13718# flags to be left without arguments 13719need_version=unknown 13720 13721case $host_os in 13722aix3*) 13723 version_type=linux 13724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13725 shlibpath_var=LIBPATH 13726 13727 # AIX 3 has no versioning support, so we append a major version to the name. 13728 soname_spec='${libname}${release}${shared_ext}$major' 13729 ;; 13730 13731aix4* | aix5*) 13732 version_type=linux 13733 need_lib_prefix=no 13734 need_version=no 13735 hardcode_into_libs=yes 13736 if test "$host_cpu" = ia64; then 13737 # AIX 5 supports IA64 13738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13739 shlibpath_var=LD_LIBRARY_PATH 13740 else 13741 # With GCC up to 2.95.x, collect2 would create an import file 13742 # for dependence libraries. The import file would start with 13743 # the line `#! .'. This would cause the generated library to 13744 # depend on `.', always an invalid library. This was fixed in 13745 # development snapshots of GCC prior to 3.0. 13746 case $host_os in 13747 aix4 | aix4.[01] | aix4.[01].*) 13748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13749 echo ' yes ' 13750 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13751 : 13752 else 13753 can_build_shared=no 13754 fi 13755 ;; 13756 esac 13757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13758 # soname into executable. Probably we can add versioning support to 13759 # collect2, so additional links can be useful in future. 13760 if test "$aix_use_runtimelinking" = yes; then 13761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13762 # instead of lib<name>.a to let people know that these are not 13763 # typical AIX shared libraries. 13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13765 else 13766 # We preserve .a as extension for shared libraries through AIX4.2 13767 # and later when we are not doing run time linking. 13768 library_names_spec='${libname}${release}.a $libname.a' 13769 soname_spec='${libname}${release}${shared_ext}$major' 13770 fi 13771 shlibpath_var=LIBPATH 13772 fi 13773 ;; 13774 13775amigaos*) 13776 library_names_spec='$libname.ixlibrary $libname.a' 13777 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13778 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' 13779 ;; 13780 13781beos*) 13782 library_names_spec='${libname}${shared_ext}' 13783 dynamic_linker="$host_os ld.so" 13784 shlibpath_var=LIBRARY_PATH 13785 ;; 13786 13787bsdi4*) 13788 version_type=linux 13789 need_version=no 13790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13791 soname_spec='${libname}${release}${shared_ext}$major' 13792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13793 shlibpath_var=LD_LIBRARY_PATH 13794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13796 # the default ld.so.conf also contains /usr/contrib/lib and 13797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13798 # libtool to hard-code these into programs 13799 ;; 13800 13801cygwin* | mingw* | pw32*) 13802 version_type=windows 13803 shrext=".dll" 13804 need_version=no 13805 need_lib_prefix=no 13806 13807 case $GCC,$host_os in 13808 yes,cygwin* | yes,mingw* | yes,pw32*) 13809 library_names_spec='$libname.dll.a' 13810 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13811 postinstall_cmds='base_file=`basename \${file}`~ 13812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13813 dldir=$destdir/`dirname \$dlpath`~ 13814 test -d \$dldir || mkdir -p \$dldir~ 13815 $install_prog $dir/$dlname \$dldir/$dlname' 13816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13817 dlpath=$dir/\$dldll~ 13818 $rm \$dlpath' 13819 shlibpath_overrides_runpath=yes 13820 13821 case $host_os in 13822 cygwin*) 13823 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13825 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 13826 ;; 13827 mingw*) 13828 # MinGW DLLs use traditional 'lib' prefix 13829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13831 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13832 # It is most probably a Windows format PATH printed by 13833 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13834 # path with ; separators, and with drive letters. We can handle the 13835 # drive letters (cygwin fileutils understands them), so leave them, 13836 # especially as we might pass files found there to a mingw objdump, 13837 # which wouldn't understand a cygwinified path. Ahh. 13838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13839 else 13840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13841 fi 13842 ;; 13843 pw32*) 13844 # pw32 DLLs use 'pw' prefix rather than 'lib' 13845 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 13846 ;; 13847 esac 13848 ;; 13849 13850 *) 13851 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13852 ;; 13853 esac 13854 dynamic_linker='Win32 ld.exe' 13855 # FIXME: first we should search . and the directory the executable is in 13856 shlibpath_var=PATH 13857 ;; 13858 13859darwin* | rhapsody*) 13860 dynamic_linker="$host_os dyld" 13861 version_type=darwin 13862 need_lib_prefix=no 13863 need_version=no 13864 # FIXME: Relying on posixy $() will cause problems for 13865 # cross-compilation, but unfortunately the echo tests do not 13866 # yet detect zsh echo's removal of \ escapes. 13867 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13868 soname_spec='${libname}${release}${major}$shared_ext' 13869 shlibpath_overrides_runpath=yes 13870 shlibpath_var=DYLD_LIBRARY_PATH 13871 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 13872 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13873 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 13874 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"` 13875 fi 13876 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13877 ;; 13878 13879dgux*) 13880 version_type=linux 13881 need_lib_prefix=no 13882 need_version=no 13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13884 soname_spec='${libname}${release}${shared_ext}$major' 13885 shlibpath_var=LD_LIBRARY_PATH 13886 ;; 13887 13888freebsd1*) 13889 dynamic_linker=no 13890 ;; 13891 13892freebsd*) 13893 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 13894 version_type=freebsd-$objformat 13895 case $version_type in 13896 freebsd-elf*) 13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13898 need_version=no 13899 need_lib_prefix=no 13900 ;; 13901 freebsd-*) 13902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13903 need_version=yes 13904 ;; 13905 esac 13906 shlibpath_var=LD_LIBRARY_PATH 13907 case $host_os in 13908 freebsd2*) 13909 shlibpath_overrides_runpath=yes 13910 ;; 13911 freebsd3.01* | freebsdelf3.01*) 13912 shlibpath_overrides_runpath=yes 13913 hardcode_into_libs=yes 13914 ;; 13915 *) # from 3.2 on 13916 shlibpath_overrides_runpath=no 13917 hardcode_into_libs=yes 13918 ;; 13919 esac 13920 ;; 13921 13922gnu*) 13923 version_type=linux 13924 need_lib_prefix=no 13925 need_version=no 13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13927 soname_spec='${libname}${release}${shared_ext}$major' 13928 shlibpath_var=LD_LIBRARY_PATH 13929 hardcode_into_libs=yes 13930 ;; 13931 13932hpux9* | hpux10* | hpux11*) 13933 # Give a soname corresponding to the major version so that dld.sl refuses to 13934 # link against other versions. 13935 version_type=sunos 13936 need_lib_prefix=no 13937 need_version=no 13938 case "$host_cpu" in 13939 ia64*) 13940 shrext='.so' 13941 hardcode_into_libs=yes 13942 dynamic_linker="$host_os dld.so" 13943 shlibpath_var=LD_LIBRARY_PATH 13944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13946 soname_spec='${libname}${release}${shared_ext}$major' 13947 if test "X$HPUX_IA64_MODE" = X32; then 13948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13949 else 13950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13951 fi 13952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13953 ;; 13954 hppa*64*) 13955 shrext='.sl' 13956 hardcode_into_libs=yes 13957 dynamic_linker="$host_os dld.sl" 13958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13961 soname_spec='${libname}${release}${shared_ext}$major' 13962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13964 ;; 13965 *) 13966 shrext='.sl' 13967 dynamic_linker="$host_os dld.sl" 13968 shlibpath_var=SHLIB_PATH 13969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13971 soname_spec='${libname}${release}${shared_ext}$major' 13972 ;; 13973 esac 13974 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13975 postinstall_cmds='chmod 555 $lib' 13976 ;; 13977 13978irix5* | irix6* | nonstopux*) 13979 case $host_os in 13980 nonstopux*) version_type=nonstopux ;; 13981 *) 13982 if test "$lt_cv_prog_gnu_ld" = yes; then 13983 version_type=linux 13984 else 13985 version_type=irix 13986 fi ;; 13987 esac 13988 need_lib_prefix=no 13989 need_version=no 13990 soname_spec='${libname}${release}${shared_ext}$major' 13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13992 case $host_os in 13993 irix5* | nonstopux*) 13994 libsuff= shlibsuff= 13995 ;; 13996 *) 13997 case $LD in # libtool.m4 will add one of these switches to LD 13998 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13999 libsuff= shlibsuff= libmagic=32-bit;; 14000 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14001 libsuff=32 shlibsuff=N32 libmagic=N32;; 14002 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14003 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14004 *) libsuff= shlibsuff= libmagic=never-match;; 14005 esac 14006 ;; 14007 esac 14008 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14009 shlibpath_overrides_runpath=no 14010 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14011 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14012 hardcode_into_libs=yes 14013 ;; 14014 14015# No shared lib support for Linux oldld, aout, or coff. 14016linux*oldld* | linux*aout* | linux*coff*) 14017 dynamic_linker=no 14018 ;; 14019 14020# This must be Linux ELF. 14021linux*) 14022 version_type=linux 14023 need_lib_prefix=no 14024 need_version=no 14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14026 soname_spec='${libname}${release}${shared_ext}$major' 14027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14028 shlibpath_var=LD_LIBRARY_PATH 14029 shlibpath_overrides_runpath=no 14030 # This implies no fast_install, which is unacceptable. 14031 # Some rework will be needed to allow for fast_install 14032 # before this can be enabled. 14033 hardcode_into_libs=yes 14034 14035 # We used to test for /lib/ld.so.1 and disable shared libraries on 14036 # powerpc, because MkLinux only supported shared libraries with the 14037 # GNU dynamic linker. Since this was broken with cross compilers, 14038 # most powerpc-linux boxes support dynamic linking these days and 14039 # people can always --disable-shared, the test was removed, and we 14040 # assume the GNU/Linux dynamic linker is in use. 14041 dynamic_linker='GNU/Linux ld.so' 14042 ;; 14043 14044netbsd*) 14045 version_type=sunos 14046 need_lib_prefix=no 14047 need_version=no 14048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14051 dynamic_linker='NetBSD (a.out) ld.so' 14052 else 14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 14054 soname_spec='${libname}${release}${shared_ext}$major' 14055 dynamic_linker='NetBSD ld.elf_so' 14056 fi 14057 shlibpath_var=LD_LIBRARY_PATH 14058 shlibpath_overrides_runpath=yes 14059 hardcode_into_libs=yes 14060 ;; 14061 14062newsos6) 14063 version_type=linux 14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14065 shlibpath_var=LD_LIBRARY_PATH 14066 shlibpath_overrides_runpath=yes 14067 ;; 14068 14069nto-qnx) 14070 version_type=linux 14071 need_lib_prefix=no 14072 need_version=no 14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14074 soname_spec='${libname}${release}${shared_ext}$major' 14075 shlibpath_var=LD_LIBRARY_PATH 14076 shlibpath_overrides_runpath=yes 14077 ;; 14078 14079openbsd*) 14080 version_type=sunos 14081 need_lib_prefix=no 14082 need_version=no 14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14085 shlibpath_var=LD_LIBRARY_PATH 14086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14087 case $host_os in 14088 openbsd2.[89] | openbsd2.[89].*) 14089 shlibpath_overrides_runpath=no 14090 ;; 14091 *) 14092 shlibpath_overrides_runpath=yes 14093 ;; 14094 esac 14095 else 14096 shlibpath_overrides_runpath=yes 14097 fi 14098 ;; 14099 14100os2*) 14101 libname_spec='$name' 14102 shrext=".dll" 14103 need_lib_prefix=no 14104 library_names_spec='$libname${shared_ext} $libname.a' 14105 dynamic_linker='OS/2 ld.exe' 14106 shlibpath_var=LIBPATH 14107 ;; 14108 14109osf3* | osf4* | osf5*) 14110 version_type=osf 14111 need_lib_prefix=no 14112 need_version=no 14113 soname_spec='${libname}${release}${shared_ext}$major' 14114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14115 shlibpath_var=LD_LIBRARY_PATH 14116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14118 ;; 14119 14120sco3.2v5*) 14121 version_type=osf 14122 soname_spec='${libname}${release}${shared_ext}$major' 14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14124 shlibpath_var=LD_LIBRARY_PATH 14125 ;; 14126 14127solaris*) 14128 version_type=linux 14129 need_lib_prefix=no 14130 need_version=no 14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14132 soname_spec='${libname}${release}${shared_ext}$major' 14133 shlibpath_var=LD_LIBRARY_PATH 14134 shlibpath_overrides_runpath=yes 14135 hardcode_into_libs=yes 14136 # ldd complains unless libraries are executable 14137 postinstall_cmds='chmod +x $lib' 14138 ;; 14139 14140sunos4*) 14141 version_type=sunos 14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14144 shlibpath_var=LD_LIBRARY_PATH 14145 shlibpath_overrides_runpath=yes 14146 if test "$with_gnu_ld" = yes; then 14147 need_lib_prefix=no 14148 fi 14149 need_version=yes 14150 ;; 14151 14152sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14153 version_type=linux 14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14155 soname_spec='${libname}${release}${shared_ext}$major' 14156 shlibpath_var=LD_LIBRARY_PATH 14157 case $host_vendor in 14158 sni) 14159 shlibpath_overrides_runpath=no 14160 need_lib_prefix=no 14161 export_dynamic_flag_spec='${wl}-Blargedynsym' 14162 runpath_var=LD_RUN_PATH 14163 ;; 14164 siemens) 14165 need_lib_prefix=no 14166 ;; 14167 motorola) 14168 need_lib_prefix=no 14169 need_version=no 14170 shlibpath_overrides_runpath=no 14171 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14172 ;; 14173 esac 14174 ;; 14175 14176sysv4*MP*) 14177 if test -d /usr/nec ;then 14178 version_type=linux 14179 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14180 soname_spec='$libname${shared_ext}.$major' 14181 shlibpath_var=LD_LIBRARY_PATH 14182 fi 14183 ;; 14184 14185uts4*) 14186 version_type=linux 14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14188 soname_spec='${libname}${release}${shared_ext}$major' 14189 shlibpath_var=LD_LIBRARY_PATH 14190 ;; 14191 14192*) 14193 dynamic_linker=no 14194 ;; 14195esac 14196echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14197echo "${ECHO_T}$dynamic_linker" >&6 14198test "$dynamic_linker" = no && can_build_shared=no 14199 14200 14201# The else clause should only fire when bootstrapping the 14202# libtool distribution, otherwise you forgot to ship ltmain.sh 14203# with your package, and you will get complaints that there are 14204# no rules to generate ltmain.sh. 14205if test -f "$ltmain"; then 14206 # See if we are running on zsh, and set the options which allow our commands through 14207 # without removal of \ escapes. 14208 if test -n "${ZSH_VERSION+set}" ; then 14209 setopt NO_GLOB_SUBST 14210 fi 14211 # Now quote all the things that may contain metacharacters while being 14212 # careful not to overquote the AC_SUBSTed values. We take copies of the 14213 # variables and quote the copies for generation of the libtool script. 14214 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 14215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14217 deplibs_check_method reload_flag reload_cmds need_locks \ 14218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14219 lt_cv_sys_global_symbol_to_c_name_address \ 14220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14221 old_postinstall_cmds old_postuninstall_cmds \ 14222 compiler_F77 \ 14223 CC_F77 \ 14224 LD_F77 \ 14225 lt_prog_compiler_wl_F77 \ 14226 lt_prog_compiler_pic_F77 \ 14227 lt_prog_compiler_static_F77 \ 14228 lt_prog_compiler_no_builtin_flag_F77 \ 14229 export_dynamic_flag_spec_F77 \ 14230 thread_safe_flag_spec_F77 \ 14231 whole_archive_flag_spec_F77 \ 14232 enable_shared_with_static_runtimes_F77 \ 14233 old_archive_cmds_F77 \ 14234 old_archive_from_new_cmds_F77 \ 14235 predep_objects_F77 \ 14236 postdep_objects_F77 \ 14237 predeps_F77 \ 14238 postdeps_F77 \ 14239 compiler_lib_search_path_F77 \ 14240 archive_cmds_F77 \ 14241 archive_expsym_cmds_F77 \ 14242 postinstall_cmds_F77 \ 14243 postuninstall_cmds_F77 \ 14244 old_archive_from_expsyms_cmds_F77 \ 14245 allow_undefined_flag_F77 \ 14246 no_undefined_flag_F77 \ 14247 export_symbols_cmds_F77 \ 14248 hardcode_libdir_flag_spec_F77 \ 14249 hardcode_libdir_flag_spec_ld_F77 \ 14250 hardcode_libdir_separator_F77 \ 14251 hardcode_automatic_F77 \ 14252 module_cmds_F77 \ 14253 module_expsym_cmds_F77 \ 14254 lt_cv_prog_compiler_c_o_F77 \ 14255 exclude_expsyms_F77 \ 14256 include_expsyms_F77; do 14257 14258 case $var in 14259 old_archive_cmds_F77 | \ 14260 old_archive_from_new_cmds_F77 | \ 14261 archive_cmds_F77 | \ 14262 archive_expsym_cmds_F77 | \ 14263 module_cmds_F77 | \ 14264 module_expsym_cmds_F77 | \ 14265 old_archive_from_expsyms_cmds_F77 | \ 14266 export_symbols_cmds_F77 | \ 14267 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14268 postinstall_cmds | postuninstall_cmds | \ 14269 old_postinstall_cmds | old_postuninstall_cmds | \ 14270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14271 # Double-quote double-evaled strings. 14272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14273 ;; 14274 *) 14275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14276 ;; 14277 esac 14278 done 14279 14280 case $lt_echo in 14281 *'\$0 --fallback-echo"') 14282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14283 ;; 14284 esac 14285 14286cfgfile="$ofile" 14287 14288 cat <<__EOF__ >> "$cfgfile" 14289# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14290 14291# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14292 14293# Shell to use when invoking shell scripts. 14294SHELL=$lt_SHELL 14295 14296# Whether or not to build shared libraries. 14297build_libtool_libs=$enable_shared 14298 14299# Whether or not to build static libraries. 14300build_old_libs=$enable_static 14301 14302# Whether or not to add -lc for building shared libraries. 14303build_libtool_need_lc=$archive_cmds_need_lc_F77 14304 14305# Whether or not to disallow shared libs when runtime libs are static 14306allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14307 14308# Whether or not to optimize for fast installation. 14309fast_install=$enable_fast_install 14310 14311# The host system. 14312host_alias=$host_alias 14313host=$host 14314 14315# An echo program that does not interpret backslashes. 14316echo=$lt_echo 14317 14318# The archiver. 14319AR=$lt_AR 14320AR_FLAGS=$lt_AR_FLAGS 14321 14322# A C compiler. 14323LTCC=$lt_LTCC 14324 14325# A language-specific compiler. 14326CC=$lt_compiler_F77 14327 14328# Is the compiler the GNU C compiler? 14329with_gcc=$GCC_F77 14330 14331# An ERE matcher. 14332EGREP=$lt_EGREP 14333 14334# The linker used to build libraries. 14335LD=$lt_LD_F77 14336 14337# Whether we need hard or soft links. 14338LN_S=$lt_LN_S 14339 14340# A BSD-compatible nm program. 14341NM=$lt_NM 14342 14343# A symbol stripping program 14344STRIP=$STRIP 14345 14346# Used to examine libraries when file_magic_cmd begins "file" 14347MAGIC_CMD=$MAGIC_CMD 14348 14349# Used on cygwin: DLL creation program. 14350DLLTOOL="$DLLTOOL" 14351 14352# Used on cygwin: object dumper. 14353OBJDUMP="$OBJDUMP" 14354 14355# Used on cygwin: assembler. 14356AS="$AS" 14357 14358# The name of the directory that contains temporary libtool files. 14359objdir=$objdir 14360 14361# How to create reloadable object files. 14362reload_flag=$lt_reload_flag 14363reload_cmds=$lt_reload_cmds 14364 14365# How to pass a linker flag through the compiler. 14366wl=$lt_lt_prog_compiler_wl_F77 14367 14368# Object file suffix (normally "o"). 14369objext="$ac_objext" 14370 14371# Old archive suffix (normally "a"). 14372libext="$libext" 14373 14374# Shared library suffix (normally ".so"). 14375shrext='$shrext' 14376 14377# Executable file suffix (normally ""). 14378exeext="$exeext" 14379 14380# Additional compiler flags for building library objects. 14381pic_flag=$lt_lt_prog_compiler_pic_F77 14382pic_mode=$pic_mode 14383 14384# What is the maximum length of a command? 14385max_cmd_len=$lt_cv_sys_max_cmd_len 14386 14387# Does compiler simultaneously support -c and -o options? 14388compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14389 14390# Must we lock files when doing compilation ? 14391need_locks=$lt_need_locks 14392 14393# Do we need the lib prefix for modules? 14394need_lib_prefix=$need_lib_prefix 14395 14396# Do we need a version for libraries? 14397need_version=$need_version 14398 14399# Whether dlopen is supported. 14400dlopen_support=$enable_dlopen 14401 14402# Whether dlopen of programs is supported. 14403dlopen_self=$enable_dlopen_self 14404 14405# Whether dlopen of statically linked programs is supported. 14406dlopen_self_static=$enable_dlopen_self_static 14407 14408# Compiler flag to prevent dynamic linking. 14409link_static_flag=$lt_lt_prog_compiler_static_F77 14410 14411# Compiler flag to turn off builtin functions. 14412no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14413 14414# Compiler flag to allow reflexive dlopens. 14415export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14416 14417# Compiler flag to generate shared objects directly from archives. 14418whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14419 14420# Compiler flag to generate thread-safe objects. 14421thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14422 14423# Library versioning type. 14424version_type=$version_type 14425 14426# Format of library name prefix. 14427libname_spec=$lt_libname_spec 14428 14429# List of archive names. First name is the real one, the rest are links. 14430# The last name is the one that the linker finds with -lNAME. 14431library_names_spec=$lt_library_names_spec 14432 14433# The coded name of the library, if different from the real name. 14434soname_spec=$lt_soname_spec 14435 14436# Commands used to build and install an old-style archive. 14437RANLIB=$lt_RANLIB 14438old_archive_cmds=$lt_old_archive_cmds_F77 14439old_postinstall_cmds=$lt_old_postinstall_cmds 14440old_postuninstall_cmds=$lt_old_postuninstall_cmds 14441 14442# Create an old-style archive from a shared archive. 14443old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14444 14445# Create a temporary old-style archive to link instead of a shared archive. 14446old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14447 14448# Commands used to build and install a shared archive. 14449archive_cmds=$lt_archive_cmds_F77 14450archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14451postinstall_cmds=$lt_postinstall_cmds 14452postuninstall_cmds=$lt_postuninstall_cmds 14453 14454# Commands used to build a loadable module (assumed same as above if empty) 14455module_cmds=$lt_module_cmds_F77 14456module_expsym_cmds=$lt_module_expsym_cmds_F77 14457 14458# Commands to strip libraries. 14459old_striplib=$lt_old_striplib 14460striplib=$lt_striplib 14461 14462# Dependencies to place before the objects being linked to create a 14463# shared library. 14464predep_objects=$lt_predep_objects_F77 14465 14466# Dependencies to place after the objects being linked to create a 14467# shared library. 14468postdep_objects=$lt_postdep_objects_F77 14469 14470# Dependencies to place before the objects being linked to create a 14471# shared library. 14472predeps=$lt_predeps_F77 14473 14474# Dependencies to place after the objects being linked to create a 14475# shared library. 14476postdeps=$lt_postdeps_F77 14477 14478# The library search path used internally by the compiler when linking 14479# a shared library. 14480compiler_lib_search_path=$lt_compiler_lib_search_path_F77 14481 14482# Method to check whether dependent libraries are shared objects. 14483deplibs_check_method=$lt_deplibs_check_method 14484 14485# Command to use when deplibs_check_method == file_magic. 14486file_magic_cmd=$lt_file_magic_cmd 14487 14488# Flag that allows shared libraries with undefined symbols to be built. 14489allow_undefined_flag=$lt_allow_undefined_flag_F77 14490 14491# Flag that forces no undefined symbols. 14492no_undefined_flag=$lt_no_undefined_flag_F77 14493 14494# Commands used to finish a libtool library installation in a directory. 14495finish_cmds=$lt_finish_cmds 14496 14497# Same as above, but a single script fragment to be evaled but not shown. 14498finish_eval=$lt_finish_eval 14499 14500# Take the output of nm and produce a listing of raw symbols and C names. 14501global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14502 14503# Transform the output of nm in a proper C declaration 14504global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14505 14506# Transform the output of nm in a C name address pair 14507global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14508 14509# This is the shared library runtime path variable. 14510runpath_var=$runpath_var 14511 14512# This is the shared library path variable. 14513shlibpath_var=$shlibpath_var 14514 14515# Is shlibpath searched before the hard-coded library search path? 14516shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14517 14518# How to hardcode a shared library path into an executable. 14519hardcode_action=$hardcode_action_F77 14520 14521# Whether we should hardcode library paths into libraries. 14522hardcode_into_libs=$hardcode_into_libs 14523 14524# Flag to hardcode \$libdir into a binary during linking. 14525# This must work even if \$libdir does not exist. 14526hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 14527 14528# If ld is used when linking, flag to hardcode \$libdir into 14529# a binary during linking. This must work even if \$libdir does 14530# not exist. 14531hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 14532 14533# Whether we need a single -rpath flag with a separated argument. 14534hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 14535 14536# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14537# resulting binary. 14538hardcode_direct=$hardcode_direct_F77 14539 14540# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14541# resulting binary. 14542hardcode_minus_L=$hardcode_minus_L_F77 14543 14544# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14545# the resulting binary. 14546hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 14547 14548# Set to yes if building a shared library automatically hardcodes DIR into the library 14549# and all subsequent libraries and executables linked against it. 14550hardcode_automatic=$hardcode_automatic_F77 14551 14552# Variables whose values should be saved in libtool wrapper scripts and 14553# restored at relink time. 14554variables_saved_for_relink="$variables_saved_for_relink" 14555 14556# Whether libtool must link a program against all its dependency libraries. 14557link_all_deplibs=$link_all_deplibs_F77 14558 14559# Compile-time system search path for libraries 14560sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14561 14562# Run-time system search path for libraries 14563sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14564 14565# Fix the shell variable \$srcfile for the compiler. 14566fix_srcfile_path="$fix_srcfile_path_F77" 14567 14568# Set to yes if exported symbols are required. 14569always_export_symbols=$always_export_symbols_F77 14570 14571# The commands to list exported symbols. 14572export_symbols_cmds=$lt_export_symbols_cmds_F77 14573 14574# The commands to extract the exported symbol list from a shared archive. 14575extract_expsyms_cmds=$lt_extract_expsyms_cmds 14576 14577# Symbols that should not be listed in the preloaded symbols. 14578exclude_expsyms=$lt_exclude_expsyms_F77 14579 14580# Symbols that must always be exported. 14581include_expsyms=$lt_include_expsyms_F77 14582 14583# ### END LIBTOOL TAG CONFIG: $tagname 14584 14585__EOF__ 14586 14587 14588else 14589 # If there is no Makefile yet, we rely on a make rule to execute 14590 # `config.status --recheck' to rerun these tests and create the 14591 # libtool script then. 14592 test -f Makefile && make "$ltmain" 14593fi 14594 14595 14596ac_ext=c 14597ac_cpp='$CPP $CPPFLAGS' 14598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14600ac_compiler_gnu=$ac_cv_c_compiler_gnu 14601 14602CC="$lt_save_CC" 14603 14604 else 14605 tagname="" 14606 fi 14607 ;; 14608 14609 GCJ) 14610 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14611 14612 14613 14614# Source file extension for Java test sources. 14615ac_ext=java 14616 14617# Object file extension for compiled Java test sources. 14618objext=o 14619objext_GCJ=$objext 14620 14621# Code to be used in simple compile tests 14622lt_simple_compile_test_code="class foo {}\n" 14623 14624# Code to be used in simple link tests 14625lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 14626 14627# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14628 14629# If no C compiler was specified, use CC. 14630LTCC=${LTCC-"$CC"} 14631 14632# Allow CC to be a program name with arguments. 14633compiler=$CC 14634 14635 14636# Allow CC to be a program name with arguments. 14637lt_save_CC="$CC" 14638CC=${GCJ-"gcj"} 14639compiler=$CC 14640compiler_GCJ=$CC 14641 14642# GCJ did not exist at the time GCC didn't implicitly link libc in. 14643archive_cmds_need_lc_GCJ=no 14644 14645 14646lt_prog_compiler_no_builtin_flag_GCJ= 14647 14648if test "$GCC" = yes; then 14649 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 14650 14651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14652echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 14653if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 14654 echo $ECHO_N "(cached) $ECHO_C" >&6 14655else 14656 lt_cv_prog_compiler_rtti_exceptions=no 14657 ac_outfile=conftest.$ac_objext 14658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14659 lt_compiler_flag="-fno-rtti -fno-exceptions" 14660 # Insert the option either (1) after the last *FLAGS variable, or 14661 # (2) before a word containing "conftest.", or (3) at the end. 14662 # Note that $ac_compile itself does not contain backslashes and begins 14663 # with a dollar sign (not a hyphen), so the echo should work correctly. 14664 # The option is referenced via a variable to avoid confusing sed. 14665 lt_compile=`echo "$ac_compile" | $SED \ 14666 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14668 -e 's:$: $lt_compiler_flag:'` 14669 (eval echo "\"\$as_me:14669: $lt_compile\"" >&5) 14670 (eval "$lt_compile" 2>conftest.err) 14671 ac_status=$? 14672 cat conftest.err >&5 14673 echo "$as_me:14673: \$? = $ac_status" >&5 14674 if (exit $ac_status) && test -s "$ac_outfile"; then 14675 # The compiler can only warn and ignore the option if not recognized 14676 # So say no if there are warnings 14677 if test ! -s conftest.err; then 14678 lt_cv_prog_compiler_rtti_exceptions=yes 14679 fi 14680 fi 14681 $rm conftest* 14682 14683fi 14684echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14685echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 14686 14687if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14688 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 14689else 14690 : 14691fi 14692 14693fi 14694 14695lt_prog_compiler_wl_GCJ= 14696lt_prog_compiler_pic_GCJ= 14697lt_prog_compiler_static_GCJ= 14698 14699echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14700echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14701 14702 if test "$GCC" = yes; then 14703 lt_prog_compiler_wl_GCJ='-Wl,' 14704 lt_prog_compiler_static_GCJ='-static' 14705 14706 case $host_os in 14707 aix*) 14708 # All AIX code is PIC. 14709 if test "$host_cpu" = ia64; then 14710 # AIX 5 now supports IA64 processor 14711 lt_prog_compiler_static_GCJ='-Bstatic' 14712 fi 14713 ;; 14714 14715 amigaos*) 14716 # FIXME: we need at least 68020 code to build shared libraries, but 14717 # adding the `-m68020' flag to GCC prevents building anything better, 14718 # like `-m68040'. 14719 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 14720 ;; 14721 14722 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14723 # PIC is the default for these OSes. 14724 ;; 14725 14726 mingw* | pw32* | os2*) 14727 # This hack is so that the source file can tell whether it is being 14728 # built for inclusion in a dll (and should export symbols for example). 14729 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14730 ;; 14731 14732 darwin* | rhapsody*) 14733 # PIC is the default on this platform 14734 # Common symbols not allowed in MH_DYLIB files 14735 lt_prog_compiler_pic_GCJ='-fno-common' 14736 ;; 14737 14738 msdosdjgpp*) 14739 # Just because we use GCC doesn't mean we suddenly get shared libraries 14740 # on systems that don't support them. 14741 lt_prog_compiler_can_build_shared_GCJ=no 14742 enable_shared=no 14743 ;; 14744 14745 sysv4*MP*) 14746 if test -d /usr/nec; then 14747 lt_prog_compiler_pic_GCJ=-Kconform_pic 14748 fi 14749 ;; 14750 14751 hpux*) 14752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14753 # not for PA HP-UX. 14754 case "$host_cpu" in 14755 hppa*64*|ia64*) 14756 # +Z the default 14757 ;; 14758 *) 14759 lt_prog_compiler_pic_GCJ='-fPIC' 14760 ;; 14761 esac 14762 ;; 14763 14764 *) 14765 lt_prog_compiler_pic_GCJ='-fPIC' 14766 ;; 14767 esac 14768 else 14769 # PORTME Check for flag to pass linker flags through the system compiler. 14770 case $host_os in 14771 aix*) 14772 lt_prog_compiler_wl_GCJ='-Wl,' 14773 if test "$host_cpu" = ia64; then 14774 # AIX 5 now supports IA64 processor 14775 lt_prog_compiler_static_GCJ='-Bstatic' 14776 else 14777 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 14778 fi 14779 ;; 14780 14781 mingw* | pw32* | os2*) 14782 # This hack is so that the source file can tell whether it is being 14783 # built for inclusion in a dll (and should export symbols for example). 14784 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14785 ;; 14786 14787 hpux9* | hpux10* | hpux11*) 14788 lt_prog_compiler_wl_GCJ='-Wl,' 14789 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14790 # not for PA HP-UX. 14791 case "$host_cpu" in 14792 hppa*64*|ia64*) 14793 # +Z the default 14794 ;; 14795 *) 14796 lt_prog_compiler_pic_GCJ='+Z' 14797 ;; 14798 esac 14799 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14800 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 14801 ;; 14802 14803 irix5* | irix6* | nonstopux*) 14804 lt_prog_compiler_wl_GCJ='-Wl,' 14805 # PIC (with -KPIC) is the default. 14806 lt_prog_compiler_static_GCJ='-non_shared' 14807 ;; 14808 14809 newsos6) 14810 lt_prog_compiler_pic_GCJ='-KPIC' 14811 lt_prog_compiler_static_GCJ='-Bstatic' 14812 ;; 14813 14814 linux*) 14815 case $CC in 14816 icc|ecc) 14817 lt_prog_compiler_wl_GCJ='-Wl,' 14818 lt_prog_compiler_pic_GCJ='-KPIC' 14819 lt_prog_compiler_static_GCJ='-static' 14820 ;; 14821 ccc) 14822 lt_prog_compiler_wl_GCJ='-Wl,' 14823 # All Alpha code is PIC. 14824 lt_prog_compiler_static_GCJ='-non_shared' 14825 ;; 14826 esac 14827 ;; 14828 14829 osf3* | osf4* | osf5*) 14830 lt_prog_compiler_wl_GCJ='-Wl,' 14831 # All OSF/1 code is PIC. 14832 lt_prog_compiler_static_GCJ='-non_shared' 14833 ;; 14834 14835 sco3.2v5*) 14836 lt_prog_compiler_pic_GCJ='-Kpic' 14837 lt_prog_compiler_static_GCJ='-dn' 14838 ;; 14839 14840 solaris*) 14841 lt_prog_compiler_wl_GCJ='-Wl,' 14842 lt_prog_compiler_pic_GCJ='-KPIC' 14843 lt_prog_compiler_static_GCJ='-Bstatic' 14844 ;; 14845 14846 sunos4*) 14847 lt_prog_compiler_wl_GCJ='-Qoption ld ' 14848 lt_prog_compiler_pic_GCJ='-PIC' 14849 lt_prog_compiler_static_GCJ='-Bstatic' 14850 ;; 14851 14852 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14853 lt_prog_compiler_wl_GCJ='-Wl,' 14854 lt_prog_compiler_pic_GCJ='-KPIC' 14855 lt_prog_compiler_static_GCJ='-Bstatic' 14856 ;; 14857 14858 sysv4*MP*) 14859 if test -d /usr/nec ;then 14860 lt_prog_compiler_pic_GCJ='-Kconform_pic' 14861 lt_prog_compiler_static_GCJ='-Bstatic' 14862 fi 14863 ;; 14864 14865 uts4*) 14866 lt_prog_compiler_pic_GCJ='-pic' 14867 lt_prog_compiler_static_GCJ='-Bstatic' 14868 ;; 14869 14870 *) 14871 lt_prog_compiler_can_build_shared_GCJ=no 14872 ;; 14873 esac 14874 fi 14875 14876echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 14877echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 14878 14879# 14880# Check to make sure the PIC flag actually works. 14881# 14882if test -n "$lt_prog_compiler_pic_GCJ"; then 14883 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 14884echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 14885if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 14886 echo $ECHO_N "(cached) $ECHO_C" >&6 14887else 14888 lt_prog_compiler_pic_works_GCJ=no 14889 ac_outfile=conftest.$ac_objext 14890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14891 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 14892 # Insert the option either (1) after the last *FLAGS variable, or 14893 # (2) before a word containing "conftest.", or (3) at the end. 14894 # Note that $ac_compile itself does not contain backslashes and begins 14895 # with a dollar sign (not a hyphen), so the echo should work correctly. 14896 # The option is referenced via a variable to avoid confusing sed. 14897 lt_compile=`echo "$ac_compile" | $SED \ 14898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14900 -e 's:$: $lt_compiler_flag:'` 14901 (eval echo "\"\$as_me:14901: $lt_compile\"" >&5) 14902 (eval "$lt_compile" 2>conftest.err) 14903 ac_status=$? 14904 cat conftest.err >&5 14905 echo "$as_me:14905: \$? = $ac_status" >&5 14906 if (exit $ac_status) && test -s "$ac_outfile"; then 14907 # The compiler can only warn and ignore the option if not recognized 14908 # So say no if there are warnings 14909 if test ! -s conftest.err; then 14910 lt_prog_compiler_pic_works_GCJ=yes 14911 fi 14912 fi 14913 $rm conftest* 14914 14915fi 14916echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 14917echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 14918 14919if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 14920 case $lt_prog_compiler_pic_GCJ in 14921 "" | " "*) ;; 14922 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 14923 esac 14924else 14925 lt_prog_compiler_pic_GCJ= 14926 lt_prog_compiler_can_build_shared_GCJ=no 14927fi 14928 14929fi 14930case "$host_os" in 14931 # For platforms which do not support PIC, -DPIC is meaningless: 14932 *djgpp*) 14933 lt_prog_compiler_pic_GCJ= 14934 ;; 14935 *) 14936 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 14937 ;; 14938esac 14939 14940echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14941echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14942if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 14943 echo $ECHO_N "(cached) $ECHO_C" >&6 14944else 14945 lt_cv_prog_compiler_c_o_GCJ=no 14946 $rm -r conftest 2>/dev/null 14947 mkdir conftest 14948 cd conftest 14949 mkdir out 14950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14951 14952 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 14953 # that will create temporary files in the current directory regardless of 14954 # the output directory. Thus, making CWD read-only will cause this test 14955 # to fail, enabling locking or at least warning the user not to do parallel 14956 # builds. 14957 chmod -w . 14958 14959 lt_compiler_flag="-o out/conftest2.$ac_objext" 14960 # Insert the option either (1) after the last *FLAGS variable, or 14961 # (2) before a word containing "conftest.", or (3) at the end. 14962 # Note that $ac_compile itself does not contain backslashes and begins 14963 # with a dollar sign (not a hyphen), so the echo should work correctly. 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>out/conftest.err) 14970 ac_status=$? 14971 cat out/conftest.err >&5 14972 echo "$as_me:14972: \$? = $ac_status" >&5 14973 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14974 then 14975 # The compiler can only warn and ignore the option if not recognized 14976 # So say no if there are warnings 14977 if test ! -s out/conftest.err; then 14978 lt_cv_prog_compiler_c_o_GCJ=yes 14979 fi 14980 fi 14981 chmod u+w . 14982 $rm conftest* out/* 14983 rmdir out 14984 cd .. 14985 rmdir conftest 14986 $rm conftest* 14987 14988fi 14989echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 14990echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 14991 14992 14993hard_links="nottested" 14994if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 14995 # do not overwrite the value of need_locks provided by the user 14996 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14997echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14998 hard_links=yes 14999 $rm conftest* 15000 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15001 touch conftest.a 15002 ln conftest.a conftest.b 2>&5 || hard_links=no 15003 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15004 echo "$as_me:$LINENO: result: $hard_links" >&5 15005echo "${ECHO_T}$hard_links" >&6 15006 if test "$hard_links" = no; then 15007 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15008echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15009 need_locks=warn 15010 fi 15011else 15012 need_locks=no 15013fi 15014 15015echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15016echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15017 15018 runpath_var= 15019 allow_undefined_flag_GCJ= 15020 enable_shared_with_static_runtimes_GCJ=no 15021 archive_cmds_GCJ= 15022 archive_expsym_cmds_GCJ= 15023 old_archive_From_new_cmds_GCJ= 15024 old_archive_from_expsyms_cmds_GCJ= 15025 export_dynamic_flag_spec_GCJ= 15026 whole_archive_flag_spec_GCJ= 15027 thread_safe_flag_spec_GCJ= 15028 hardcode_libdir_flag_spec_GCJ= 15029 hardcode_libdir_flag_spec_ld_GCJ= 15030 hardcode_libdir_separator_GCJ= 15031 hardcode_direct_GCJ=no 15032 hardcode_minus_L_GCJ=no 15033 hardcode_shlibpath_var_GCJ=unsupported 15034 link_all_deplibs_GCJ=unknown 15035 hardcode_automatic_GCJ=no 15036 module_cmds_GCJ= 15037 module_expsym_cmds_GCJ= 15038 always_export_symbols_GCJ=no 15039 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15040 # include_expsyms should be a list of space-separated symbols to be *always* 15041 # included in the symbol list 15042 include_expsyms_GCJ= 15043 # exclude_expsyms can be an extended regexp of symbols to exclude 15044 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15046 # as well as any symbol that contains `d'. 15047 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15049 # platforms (ab)use it in PIC code, but their linkers get confused if 15050 # the symbol is explicitly referenced. Since portable code cannot 15051 # rely on this symbol name, it's probably fine to never include it in 15052 # preloaded symbol tables. 15053 extract_expsyms_cmds= 15054 15055 case $host_os in 15056 cygwin* | mingw* | pw32*) 15057 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15058 # When not using gcc, we currently assume that we are using 15059 # Microsoft Visual C++. 15060 if test "$GCC" != yes; then 15061 with_gnu_ld=no 15062 fi 15063 ;; 15064 openbsd*) 15065 with_gnu_ld=no 15066 ;; 15067 esac 15068 15069 ld_shlibs_GCJ=yes 15070 if test "$with_gnu_ld" = yes; then 15071 # If archive_cmds runs LD, not CC, wlarc should be empty 15072 wlarc='${wl}' 15073 15074 # See if GNU ld supports shared libraries. 15075 case $host_os in 15076 aix3* | aix4* | aix5*) 15077 # On AIX/PPC, the GNU linker is very broken 15078 if test "$host_cpu" != ia64; then 15079 ld_shlibs_GCJ=no 15080 cat <<EOF 1>&2 15081 15082*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15083*** to be unable to reliably create shared libraries on AIX. 15084*** Therefore, libtool is disabling shared libraries support. If you 15085*** really care for shared libraries, you may want to modify your PATH 15086*** so that a non-GNU linker is found, and then restart. 15087 15088EOF 15089 fi 15090 ;; 15091 15092 amigaos*) 15093 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)' 15094 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15095 hardcode_minus_L_GCJ=yes 15096 15097 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15098 # that the semantics of dynamic libraries on AmigaOS, at least up 15099 # to version 4, is to share data among multiple programs linked 15100 # with the same dynamic library. Since this doesn't match the 15101 # behavior of shared libraries on other platforms, we can't use 15102 # them. 15103 ld_shlibs_GCJ=no 15104 ;; 15105 15106 beos*) 15107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15108 allow_undefined_flag_GCJ=unsupported 15109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15110 # support --undefined. This deserves some investigation. FIXME 15111 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15112 else 15113 ld_shlibs_GCJ=no 15114 fi 15115 ;; 15116 15117 cygwin* | mingw* | pw32*) 15118 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15119 # as there is no search path for DLLs. 15120 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15121 allow_undefined_flag_GCJ=unsupported 15122 always_export_symbols_GCJ=no 15123 enable_shared_with_static_runtimes_GCJ=yes 15124 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15125 15126 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15128 # If the export-symbols file already is a .def file (1st line 15129 # is EXPORTS), use it as is; otherwise, prepend... 15130 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15131 cp $export_symbols $output_objdir/$soname.def; 15132 else 15133 echo EXPORTS > $output_objdir/$soname.def; 15134 cat $export_symbols >> $output_objdir/$soname.def; 15135 fi~ 15136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15137 else 15138 ld_shlibs=no 15139 fi 15140 ;; 15141 15142 netbsd*) 15143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15144 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15145 wlarc= 15146 else 15147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15149 fi 15150 ;; 15151 15152 solaris* | sysv5*) 15153 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15154 ld_shlibs_GCJ=no 15155 cat <<EOF 1>&2 15156 15157*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15158*** create shared libraries on Solaris systems. Therefore, libtool 15159*** is disabling shared libraries support. We urge you to upgrade GNU 15160*** binutils to release 2.9.1 or newer. Another option is to modify 15161*** your PATH or compiler configuration so that the native linker is 15162*** used, and then restart. 15163 15164EOF 15165 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15166 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15167 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15168 else 15169 ld_shlibs_GCJ=no 15170 fi 15171 ;; 15172 15173 sunos4*) 15174 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15175 wlarc= 15176 hardcode_direct_GCJ=yes 15177 hardcode_shlibpath_var_GCJ=no 15178 ;; 15179 15180 *) 15181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15182 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15183 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15184 else 15185 ld_shlibs_GCJ=no 15186 fi 15187 ;; 15188 esac 15189 15190 if test "$ld_shlibs_GCJ" = yes; then 15191 runpath_var=LD_RUN_PATH 15192 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15193 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15194 # ancient GNU ld didn't support --whole-archive et. al. 15195 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15196 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15197 else 15198 whole_archive_flag_spec_GCJ= 15199 fi 15200 fi 15201 else 15202 # PORTME fill in a description of your system's linker (not GNU ld) 15203 case $host_os in 15204 aix3*) 15205 allow_undefined_flag_GCJ=unsupported 15206 always_export_symbols_GCJ=yes 15207 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' 15208 # Note: this linker hardcodes the directories in LIBPATH if there 15209 # are no directories specified by -L. 15210 hardcode_minus_L_GCJ=yes 15211 if test "$GCC" = yes && test -z "$link_static_flag"; then 15212 # Neither direct hardcoding nor static linking is supported with a 15213 # broken collect2. 15214 hardcode_direct_GCJ=unsupported 15215 fi 15216 ;; 15217 15218 aix4* | aix5*) 15219 if test "$host_cpu" = ia64; then 15220 # On IA64, the linker does run time linking by default, so we don't 15221 # have to do anything special. 15222 aix_use_runtimelinking=no 15223 exp_sym_flag='-Bexport' 15224 no_entry_flag="" 15225 else 15226 # If we're using GNU nm, then we don't want the "-C" option. 15227 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15228 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15229 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' 15230 else 15231 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' 15232 fi 15233 aix_use_runtimelinking=no 15234 15235 # Test if we are trying to use run time linking or normal 15236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15237 # need to do runtime linking. 15238 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15239 for ld_flag in $LDFLAGS; do 15240 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15241 aix_use_runtimelinking=yes 15242 break 15243 fi 15244 done 15245 esac 15246 15247 exp_sym_flag='-bexport' 15248 no_entry_flag='-bnoentry' 15249 fi 15250 15251 # When large executables or shared objects are built, AIX ld can 15252 # have problems creating the table of contents. If linking a library 15253 # or program results in "error TOC overflow" add -mminimal-toc to 15254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15256 15257 archive_cmds_GCJ='' 15258 hardcode_direct_GCJ=yes 15259 hardcode_libdir_separator_GCJ=':' 15260 link_all_deplibs_GCJ=yes 15261 15262 if test "$GCC" = yes; then 15263 case $host_os in aix4.012|aix4.012.*) 15264 # We only want to do this on AIX 4.2 and lower, the check 15265 # below for broken collect2 doesn't work under 4.3+ 15266 collect2name=`${CC} -print-prog-name=collect2` 15267 if test -f "$collect2name" && \ 15268 strings "$collect2name" | grep resolve_lib_name >/dev/null 15269 then 15270 # We have reworked collect2 15271 hardcode_direct_GCJ=yes 15272 else 15273 # We have old collect2 15274 hardcode_direct_GCJ=unsupported 15275 # It fails to find uninstalled libraries when the uninstalled 15276 # path is not listed in the libpath. Setting hardcode_minus_L 15277 # to unsupported forces relinking 15278 hardcode_minus_L_GCJ=yes 15279 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15280 hardcode_libdir_separator_GCJ= 15281 fi 15282 esac 15283 shared_flag='-shared' 15284 else 15285 # not using gcc 15286 if test "$host_cpu" = ia64; then 15287 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15288 # chokes on -Wl,-G. The following line is correct: 15289 shared_flag='-G' 15290 else 15291 if test "$aix_use_runtimelinking" = yes; then 15292 shared_flag='${wl}-G' 15293 else 15294 shared_flag='${wl}-bM:SRE' 15295 fi 15296 fi 15297 fi 15298 15299 # It seems that -bexpall does not export symbols beginning with 15300 # underscore (_), so it is better to generate a list of symbols to export. 15301 always_export_symbols_GCJ=yes 15302 if test "$aix_use_runtimelinking" = yes; then 15303 # Warning - without using the other runtime loading flags (-brtl), 15304 # -berok will link without error, but may produce a broken library. 15305 allow_undefined_flag_GCJ='-berok' 15306 # Determine the default libpath from the value encoded in an empty executable. 15307 cat >conftest.$ac_ext <<_ACEOF 15308#line $LINENO "configure" 15309/* confdefs.h. */ 15310_ACEOF 15311cat confdefs.h >>conftest.$ac_ext 15312cat >>conftest.$ac_ext <<_ACEOF 15313/* end confdefs.h. */ 15314 15315int 15316main () 15317{ 15318 15319 ; 15320 return 0; 15321} 15322_ACEOF 15323rm -f conftest.$ac_objext conftest$ac_exeext 15324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15325 (eval $ac_link) 2>&5 15326 ac_status=$? 15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15328 (exit $ac_status); } && 15329 { ac_try='test -s conftest$ac_exeext' 15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15331 (eval $ac_try) 2>&5 15332 ac_status=$? 15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15334 (exit $ac_status); }; }; then 15335 15336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15337}'` 15338# Check for a 64-bit object if we didn't find anything. 15339if 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; } 15340}'`; fi 15341else 15342 echo "$as_me: failed program was:" >&5 15343sed 's/^/| /' conftest.$ac_ext >&5 15344 15345fi 15346rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15348 15349 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15350 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" 15351 else 15352 if test "$host_cpu" = ia64; then 15353 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15354 allow_undefined_flag_GCJ="-z nodefs" 15355 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" 15356 else 15357 # Determine the default libpath from the value encoded in an empty executable. 15358 cat >conftest.$ac_ext <<_ACEOF 15359#line $LINENO "configure" 15360/* confdefs.h. */ 15361_ACEOF 15362cat confdefs.h >>conftest.$ac_ext 15363cat >>conftest.$ac_ext <<_ACEOF 15364/* end confdefs.h. */ 15365 15366int 15367main () 15368{ 15369 15370 ; 15371 return 0; 15372} 15373_ACEOF 15374rm -f conftest.$ac_objext conftest$ac_exeext 15375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15376 (eval $ac_link) 2>&5 15377 ac_status=$? 15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15379 (exit $ac_status); } && 15380 { ac_try='test -s conftest$ac_exeext' 15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15382 (eval $ac_try) 2>&5 15383 ac_status=$? 15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15385 (exit $ac_status); }; }; then 15386 15387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15388}'` 15389# Check for a 64-bit object if we didn't find anything. 15390if 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; } 15391}'`; fi 15392else 15393 echo "$as_me: failed program was:" >&5 15394sed 's/^/| /' conftest.$ac_ext >&5 15395 15396fi 15397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15398if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15399 15400 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15401 # Warning - without using the other run time loading flags, 15402 # -berok will link without error, but may produce a broken library. 15403 no_undefined_flag_GCJ=' ${wl}-bernotok' 15404 allow_undefined_flag_GCJ=' ${wl}-berok' 15405 # -bexpall does not export symbols beginning with underscore (_) 15406 always_export_symbols_GCJ=yes 15407 # Exported symbols can be pulled into shared objects from archives 15408 whole_archive_flag_spec_GCJ=' ' 15409 archive_cmds_need_lc_GCJ=yes 15410 # This is similar to how AIX traditionally builds it's shared libraries. 15411 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' 15412 fi 15413 fi 15414 ;; 15415 15416 amigaos*) 15417 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)' 15418 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15419 hardcode_minus_L_GCJ=yes 15420 # see comment about different semantics on the GNU ld section 15421 ld_shlibs_GCJ=no 15422 ;; 15423 15424 bsdi4*) 15425 export_dynamic_flag_spec_GCJ=-rdynamic 15426 ;; 15427 15428 cygwin* | mingw* | pw32*) 15429 # When not using gcc, we currently assume that we are using 15430 # Microsoft Visual C++. 15431 # hardcode_libdir_flag_spec is actually meaningless, as there is 15432 # no search path for DLLs. 15433 hardcode_libdir_flag_spec_GCJ=' ' 15434 allow_undefined_flag_GCJ=unsupported 15435 # Tell ltmain to make .lib files, not .a files. 15436 libext=lib 15437 # Tell ltmain to make .dll files, not .so files. 15438 shrext=".dll" 15439 # FIXME: Setting linknames here is a bad hack. 15440 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15441 # The linker will automatically build a .lib file if we build a DLL. 15442 old_archive_From_new_cmds_GCJ='true' 15443 # FIXME: Should let the user specify the lib program. 15444 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15445 fix_srcfile_path='`cygpath -w "$srcfile"`' 15446 enable_shared_with_static_runtimes_GCJ=yes 15447 ;; 15448 15449 darwin* | rhapsody*) 15450 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 15451 archive_cmds_need_lc_GCJ=no 15452 case "$host_os" in 15453 rhapsody* | darwin1.[012]) 15454 allow_undefined_flag_GCJ='-undefined suppress' 15455 ;; 15456 *) # Darwin 1.3 on 15457 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 15458 ;; 15459 esac 15460 # FIXME: Relying on posixy $() will cause problems for 15461 # cross-compilation, but unfortunately the echo tests do not 15462 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 15463 # `"' quotes if we put them in here... so don't! 15464 lt_int_apple_cc_single_mod=no 15465 output_verbose_link_cmd='echo' 15466 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 15467 lt_int_apple_cc_single_mod=yes 15468 fi 15469 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15470 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15471 else 15472 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' 15473 fi 15474 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 15475 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15476 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15477 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}' 15478 else 15479 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}' 15480 fi 15481 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}' 15482 hardcode_direct_GCJ=no 15483 hardcode_automatic_GCJ=yes 15484 hardcode_shlibpath_var_GCJ=unsupported 15485 whole_archive_flag_spec_GCJ='-all_load $convenience' 15486 link_all_deplibs_GCJ=yes 15487 fi 15488 ;; 15489 15490 dgux*) 15491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15492 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15493 hardcode_shlibpath_var_GCJ=no 15494 ;; 15495 15496 freebsd1*) 15497 ld_shlibs_GCJ=no 15498 ;; 15499 15500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15501 # support. Future versions do this automatically, but an explicit c++rt0.o 15502 # does not break anything, and helps significantly (at the cost of a little 15503 # extra space). 15504 freebsd2.2*) 15505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15506 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15507 hardcode_direct_GCJ=yes 15508 hardcode_shlibpath_var_GCJ=no 15509 ;; 15510 15511 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15512 freebsd2*) 15513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15514 hardcode_direct_GCJ=yes 15515 hardcode_minus_L_GCJ=yes 15516 hardcode_shlibpath_var_GCJ=no 15517 ;; 15518 15519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15520 freebsd*) 15521 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15522 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15523 hardcode_direct_GCJ=yes 15524 hardcode_shlibpath_var_GCJ=no 15525 ;; 15526 15527 hpux9*) 15528 if test "$GCC" = yes; then 15529 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' 15530 else 15531 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' 15532 fi 15533 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15534 hardcode_libdir_separator_GCJ=: 15535 hardcode_direct_GCJ=yes 15536 15537 # hardcode_minus_L: Not really in the search PATH, 15538 # but as the default location of the library. 15539 hardcode_minus_L_GCJ=yes 15540 export_dynamic_flag_spec_GCJ='${wl}-E' 15541 ;; 15542 15543 hpux10* | hpux11*) 15544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15545 case "$host_cpu" in 15546 hppa*64*|ia64*) 15547 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15548 ;; 15549 *) 15550 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15551 ;; 15552 esac 15553 else 15554 case "$host_cpu" in 15555 hppa*64*|ia64*) 15556 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15557 ;; 15558 *) 15559 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15560 ;; 15561 esac 15562 fi 15563 if test "$with_gnu_ld" = no; then 15564 case "$host_cpu" in 15565 hppa*64*) 15566 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15567 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 15568 hardcode_libdir_separator_GCJ=: 15569 hardcode_direct_GCJ=no 15570 hardcode_shlibpath_var_GCJ=no 15571 ;; 15572 ia64*) 15573 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15574 hardcode_direct_GCJ=no 15575 hardcode_shlibpath_var_GCJ=no 15576 15577 # hardcode_minus_L: Not really in the search PATH, 15578 # but as the default location of the library. 15579 hardcode_minus_L_GCJ=yes 15580 ;; 15581 *) 15582 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15583 hardcode_libdir_separator_GCJ=: 15584 hardcode_direct_GCJ=yes 15585 export_dynamic_flag_spec_GCJ='${wl}-E' 15586 15587 # hardcode_minus_L: Not really in the search PATH, 15588 # but as the default location of the library. 15589 hardcode_minus_L_GCJ=yes 15590 ;; 15591 esac 15592 fi 15593 ;; 15594 15595 irix5* | irix6* | nonstopux*) 15596 if test "$GCC" = yes; then 15597 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' 15598 else 15599 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' 15600 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 15601 fi 15602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15603 hardcode_libdir_separator_GCJ=: 15604 link_all_deplibs_GCJ=yes 15605 ;; 15606 15607 netbsd*) 15608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15609 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15610 else 15611 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15612 fi 15613 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15614 hardcode_direct_GCJ=yes 15615 hardcode_shlibpath_var_GCJ=no 15616 ;; 15617 15618 newsos6) 15619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15620 hardcode_direct_GCJ=yes 15621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15622 hardcode_libdir_separator_GCJ=: 15623 hardcode_shlibpath_var_GCJ=no 15624 ;; 15625 15626 openbsd*) 15627 hardcode_direct_GCJ=yes 15628 hardcode_shlibpath_var_GCJ=no 15629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15630 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15632 export_dynamic_flag_spec_GCJ='${wl}-E' 15633 else 15634 case $host_os in 15635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15636 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15637 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15638 ;; 15639 *) 15640 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15642 ;; 15643 esac 15644 fi 15645 ;; 15646 15647 os2*) 15648 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15649 hardcode_minus_L_GCJ=yes 15650 allow_undefined_flag_GCJ=unsupported 15651 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' 15652 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15653 ;; 15654 15655 osf3*) 15656 if test "$GCC" = yes; then 15657 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15658 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' 15659 else 15660 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15661 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' 15662 fi 15663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15664 hardcode_libdir_separator_GCJ=: 15665 ;; 15666 15667 osf4* | osf5*) # as osf3* with the addition of -msym flag 15668 if test "$GCC" = yes; then 15669 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15670 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' 15671 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15672 else 15673 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15674 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' 15675 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~ 15676 $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' 15677 15678 # Both c and cxx compiler support -rpath directly 15679 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 15680 fi 15681 hardcode_libdir_separator_GCJ=: 15682 ;; 15683 15684 sco3.2v5*) 15685 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15686 hardcode_shlibpath_var_GCJ=no 15687 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 15688 runpath_var=LD_RUN_PATH 15689 hardcode_runpath_var=yes 15690 ;; 15691 15692 solaris*) 15693 no_undefined_flag_GCJ=' -z text' 15694 if test "$GCC" = yes; then 15695 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15696 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15697 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15698 else 15699 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15700 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15702 fi 15703 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15704 hardcode_shlibpath_var_GCJ=no 15705 case $host_os in 15706 solaris2.[0-5] | solaris2.[0-5].*) ;; 15707 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 15708 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 15709 esac 15710 link_all_deplibs_GCJ=yes 15711 ;; 15712 15713 sunos4*) 15714 if test "x$host_vendor" = xsequent; then 15715 # Use $CC to link under sequent, because it throws in some extra .o 15716 # files that make .init and .fini sections work. 15717 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15718 else 15719 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15720 fi 15721 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15722 hardcode_direct_GCJ=yes 15723 hardcode_minus_L_GCJ=yes 15724 hardcode_shlibpath_var_GCJ=no 15725 ;; 15726 15727 sysv4) 15728 case $host_vendor in 15729 sni) 15730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15731 hardcode_direct_GCJ=yes # is this really true??? 15732 ;; 15733 siemens) 15734 ## LD is ld it makes a PLAMLIB 15735 ## CC just makes a GrossModule. 15736 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15737 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 15738 hardcode_direct_GCJ=no 15739 ;; 15740 motorola) 15741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15742 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 15743 ;; 15744 esac 15745 runpath_var='LD_RUN_PATH' 15746 hardcode_shlibpath_var_GCJ=no 15747 ;; 15748 15749 sysv4.3*) 15750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15751 hardcode_shlibpath_var_GCJ=no 15752 export_dynamic_flag_spec_GCJ='-Bexport' 15753 ;; 15754 15755 sysv4*MP*) 15756 if test -d /usr/nec; then 15757 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15758 hardcode_shlibpath_var_GCJ=no 15759 runpath_var=LD_RUN_PATH 15760 hardcode_runpath_var=yes 15761 ld_shlibs_GCJ=yes 15762 fi 15763 ;; 15764 15765 sysv4.2uw2*) 15766 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15767 hardcode_direct_GCJ=yes 15768 hardcode_minus_L_GCJ=no 15769 hardcode_shlibpath_var_GCJ=no 15770 hardcode_runpath_var=yes 15771 runpath_var=LD_RUN_PATH 15772 ;; 15773 15774 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15775 no_undefined_flag_GCJ='${wl}-z ${wl}text' 15776 if test "$GCC" = yes; then 15777 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15778 else 15779 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15780 fi 15781 runpath_var='LD_RUN_PATH' 15782 hardcode_shlibpath_var_GCJ=no 15783 ;; 15784 15785 sysv5*) 15786 no_undefined_flag_GCJ=' -z text' 15787 # $CC -shared without GNU ld will not create a library from C++ 15788 # object files and a static libstdc++, better avoid it by now 15789 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15790 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15791 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15792 hardcode_libdir_flag_spec_GCJ= 15793 hardcode_shlibpath_var_GCJ=no 15794 runpath_var='LD_RUN_PATH' 15795 ;; 15796 15797 uts4*) 15798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15799 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15800 hardcode_shlibpath_var_GCJ=no 15801 ;; 15802 15803 *) 15804 ld_shlibs_GCJ=no 15805 ;; 15806 esac 15807 fi 15808 15809echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 15810echo "${ECHO_T}$ld_shlibs_GCJ" >&6 15811test "$ld_shlibs_GCJ" = no && can_build_shared=no 15812 15813variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15814if test "$GCC" = yes; then 15815 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15816fi 15817 15818# 15819# Do we need to explicitly link libc? 15820# 15821case "x$archive_cmds_need_lc_GCJ" in 15822x|xyes) 15823 # Assume -lc should be added 15824 archive_cmds_need_lc_GCJ=yes 15825 15826 if test "$enable_shared" = yes && test "$GCC" = yes; then 15827 case $archive_cmds_GCJ in 15828 *'~'*) 15829 # FIXME: we may have to deal with multi-command sequences. 15830 ;; 15831 '$CC '*) 15832 # Test whether the compiler implicitly links with -lc since on some 15833 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15834 # to ld, don't add -lc before -lgcc. 15835 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15836echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15837 $rm conftest* 15838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15839 15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15841 (eval $ac_compile) 2>&5 15842 ac_status=$? 15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15844 (exit $ac_status); } 2>conftest.err; then 15845 soname=conftest 15846 lib=conftest 15847 libobjs=conftest.$ac_objext 15848 deplibs= 15849 wl=$lt_prog_compiler_wl_GCJ 15850 compiler_flags=-v 15851 linker_flags=-v 15852 verstring= 15853 output_objdir=. 15854 libname=conftest 15855 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 15856 allow_undefined_flag_GCJ= 15857 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15858 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15859 ac_status=$? 15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15861 (exit $ac_status); } 15862 then 15863 archive_cmds_need_lc_GCJ=no 15864 else 15865 archive_cmds_need_lc_GCJ=yes 15866 fi 15867 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 15868 else 15869 cat conftest.err 1>&5 15870 fi 15871 $rm conftest* 15872 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 15873echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 15874 ;; 15875 esac 15876 fi 15877 ;; 15878esac 15879 15880echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15881echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15882hardcode_action_GCJ= 15883if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 15884 test -n "$runpath_var GCJ" || \ 15885 test "X$hardcode_automatic_GCJ"="Xyes" ; then 15886 15887 # We can hardcode non-existant directories. 15888 if test "$hardcode_direct_GCJ" != no && 15889 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15890 # have to relink, otherwise we might link with an installed library 15891 # when we should be linking with a yet-to-be-installed one 15892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 15893 test "$hardcode_minus_L_GCJ" != no; then 15894 # Linking always hardcodes the temporary library directory. 15895 hardcode_action_GCJ=relink 15896 else 15897 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15898 hardcode_action_GCJ=immediate 15899 fi 15900else 15901 # We cannot hardcode anything, or else we can only hardcode existing 15902 # directories. 15903 hardcode_action_GCJ=unsupported 15904fi 15905echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 15906echo "${ECHO_T}$hardcode_action_GCJ" >&6 15907 15908if test "$hardcode_action_GCJ" = relink; then 15909 # Fast installation is not supported 15910 enable_fast_install=no 15911elif test "$shlibpath_overrides_runpath" = yes || 15912 test "$enable_shared" = no; then 15913 # Fast installation is not necessary 15914 enable_fast_install=needless 15915fi 15916 15917striplib= 15918old_striplib= 15919echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15920echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15921if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15923 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15924 echo "$as_me:$LINENO: result: yes" >&5 15925echo "${ECHO_T}yes" >&6 15926else 15927# FIXME - insert some real tests, host_os isn't really good enough 15928 case $host_os in 15929 darwin*) 15930 if test -n "$STRIP" ; then 15931 striplib="$STRIP -x" 15932 echo "$as_me:$LINENO: result: yes" >&5 15933echo "${ECHO_T}yes" >&6 15934 else 15935 echo "$as_me:$LINENO: result: no" >&5 15936echo "${ECHO_T}no" >&6 15937fi 15938 ;; 15939 *) 15940 echo "$as_me:$LINENO: result: no" >&5 15941echo "${ECHO_T}no" >&6 15942 ;; 15943 esac 15944fi 15945 15946echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15947echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15948library_names_spec= 15949libname_spec='lib$name' 15950soname_spec= 15951shrext=".so" 15952postinstall_cmds= 15953postuninstall_cmds= 15954finish_cmds= 15955finish_eval= 15956shlibpath_var= 15957shlibpath_overrides_runpath=unknown 15958version_type=none 15959dynamic_linker="$host_os ld.so" 15960sys_lib_dlsearch_path_spec="/lib /usr/lib" 15961if test "$GCC" = yes; then 15962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15963 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15964 # if the path contains ";" then we assume it to be the separator 15965 # otherwise default to the standard path separator (i.e. ":") - it is 15966 # assumed that no part of a normal pathname contains ";" but that should 15967 # okay in the real world where ";" in dirpaths is itself problematic. 15968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15969 else 15970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15971 fi 15972else 15973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15974fi 15975need_lib_prefix=unknown 15976hardcode_into_libs=no 15977 15978# when you set need_version to no, make sure it does not cause -set_version 15979# flags to be left without arguments 15980need_version=unknown 15981 15982case $host_os in 15983aix3*) 15984 version_type=linux 15985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15986 shlibpath_var=LIBPATH 15987 15988 # AIX 3 has no versioning support, so we append a major version to the name. 15989 soname_spec='${libname}${release}${shared_ext}$major' 15990 ;; 15991 15992aix4* | aix5*) 15993 version_type=linux 15994 need_lib_prefix=no 15995 need_version=no 15996 hardcode_into_libs=yes 15997 if test "$host_cpu" = ia64; then 15998 # AIX 5 supports IA64 15999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16000 shlibpath_var=LD_LIBRARY_PATH 16001 else 16002 # With GCC up to 2.95.x, collect2 would create an import file 16003 # for dependence libraries. The import file would start with 16004 # the line `#! .'. This would cause the generated library to 16005 # depend on `.', always an invalid library. This was fixed in 16006 # development snapshots of GCC prior to 3.0. 16007 case $host_os in 16008 aix4 | aix4.[01] | aix4.[01].*) 16009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16010 echo ' yes ' 16011 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16012 : 16013 else 16014 can_build_shared=no 16015 fi 16016 ;; 16017 esac 16018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16019 # soname into executable. Probably we can add versioning support to 16020 # collect2, so additional links can be useful in future. 16021 if test "$aix_use_runtimelinking" = yes; then 16022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16023 # instead of lib<name>.a to let people know that these are not 16024 # typical AIX shared libraries. 16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16026 else 16027 # We preserve .a as extension for shared libraries through AIX4.2 16028 # and later when we are not doing run time linking. 16029 library_names_spec='${libname}${release}.a $libname.a' 16030 soname_spec='${libname}${release}${shared_ext}$major' 16031 fi 16032 shlibpath_var=LIBPATH 16033 fi 16034 ;; 16035 16036amigaos*) 16037 library_names_spec='$libname.ixlibrary $libname.a' 16038 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16039 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' 16040 ;; 16041 16042beos*) 16043 library_names_spec='${libname}${shared_ext}' 16044 dynamic_linker="$host_os ld.so" 16045 shlibpath_var=LIBRARY_PATH 16046 ;; 16047 16048bsdi4*) 16049 version_type=linux 16050 need_version=no 16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16052 soname_spec='${libname}${release}${shared_ext}$major' 16053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16054 shlibpath_var=LD_LIBRARY_PATH 16055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16057 # the default ld.so.conf also contains /usr/contrib/lib and 16058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16059 # libtool to hard-code these into programs 16060 ;; 16061 16062cygwin* | mingw* | pw32*) 16063 version_type=windows 16064 shrext=".dll" 16065 need_version=no 16066 need_lib_prefix=no 16067 16068 case $GCC,$host_os in 16069 yes,cygwin* | yes,mingw* | yes,pw32*) 16070 library_names_spec='$libname.dll.a' 16071 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16072 postinstall_cmds='base_file=`basename \${file}`~ 16073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16074 dldir=$destdir/`dirname \$dlpath`~ 16075 test -d \$dldir || mkdir -p \$dldir~ 16076 $install_prog $dir/$dlname \$dldir/$dlname' 16077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16078 dlpath=$dir/\$dldll~ 16079 $rm \$dlpath' 16080 shlibpath_overrides_runpath=yes 16081 16082 case $host_os in 16083 cygwin*) 16084 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16086 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 16087 ;; 16088 mingw*) 16089 # MinGW DLLs use traditional 'lib' prefix 16090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16092 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16093 # It is most probably a Windows format PATH printed by 16094 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16095 # path with ; separators, and with drive letters. We can handle the 16096 # drive letters (cygwin fileutils understands them), so leave them, 16097 # especially as we might pass files found there to a mingw objdump, 16098 # which wouldn't understand a cygwinified path. Ahh. 16099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16100 else 16101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16102 fi 16103 ;; 16104 pw32*) 16105 # pw32 DLLs use 'pw' prefix rather than 'lib' 16106 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16107 ;; 16108 esac 16109 ;; 16110 16111 *) 16112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16113 ;; 16114 esac 16115 dynamic_linker='Win32 ld.exe' 16116 # FIXME: first we should search . and the directory the executable is in 16117 shlibpath_var=PATH 16118 ;; 16119 16120darwin* | rhapsody*) 16121 dynamic_linker="$host_os dyld" 16122 version_type=darwin 16123 need_lib_prefix=no 16124 need_version=no 16125 # FIXME: Relying on posixy $() will cause problems for 16126 # cross-compilation, but unfortunately the echo tests do not 16127 # yet detect zsh echo's removal of \ escapes. 16128 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16129 soname_spec='${libname}${release}${major}$shared_ext' 16130 shlibpath_overrides_runpath=yes 16131 shlibpath_var=DYLD_LIBRARY_PATH 16132 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 16133 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16134 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 16135 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"` 16136 fi 16137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16138 ;; 16139 16140dgux*) 16141 version_type=linux 16142 need_lib_prefix=no 16143 need_version=no 16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16145 soname_spec='${libname}${release}${shared_ext}$major' 16146 shlibpath_var=LD_LIBRARY_PATH 16147 ;; 16148 16149freebsd1*) 16150 dynamic_linker=no 16151 ;; 16152 16153freebsd*) 16154 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16155 version_type=freebsd-$objformat 16156 case $version_type in 16157 freebsd-elf*) 16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16159 need_version=no 16160 need_lib_prefix=no 16161 ;; 16162 freebsd-*) 16163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16164 need_version=yes 16165 ;; 16166 esac 16167 shlibpath_var=LD_LIBRARY_PATH 16168 case $host_os in 16169 freebsd2*) 16170 shlibpath_overrides_runpath=yes 16171 ;; 16172 freebsd3.01* | freebsdelf3.01*) 16173 shlibpath_overrides_runpath=yes 16174 hardcode_into_libs=yes 16175 ;; 16176 *) # from 3.2 on 16177 shlibpath_overrides_runpath=no 16178 hardcode_into_libs=yes 16179 ;; 16180 esac 16181 ;; 16182 16183gnu*) 16184 version_type=linux 16185 need_lib_prefix=no 16186 need_version=no 16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16188 soname_spec='${libname}${release}${shared_ext}$major' 16189 shlibpath_var=LD_LIBRARY_PATH 16190 hardcode_into_libs=yes 16191 ;; 16192 16193hpux9* | hpux10* | hpux11*) 16194 # Give a soname corresponding to the major version so that dld.sl refuses to 16195 # link against other versions. 16196 version_type=sunos 16197 need_lib_prefix=no 16198 need_version=no 16199 case "$host_cpu" in 16200 ia64*) 16201 shrext='.so' 16202 hardcode_into_libs=yes 16203 dynamic_linker="$host_os dld.so" 16204 shlibpath_var=LD_LIBRARY_PATH 16205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16207 soname_spec='${libname}${release}${shared_ext}$major' 16208 if test "X$HPUX_IA64_MODE" = X32; then 16209 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16210 else 16211 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16212 fi 16213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16214 ;; 16215 hppa*64*) 16216 shrext='.sl' 16217 hardcode_into_libs=yes 16218 dynamic_linker="$host_os dld.sl" 16219 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16222 soname_spec='${libname}${release}${shared_ext}$major' 16223 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16225 ;; 16226 *) 16227 shrext='.sl' 16228 dynamic_linker="$host_os dld.sl" 16229 shlibpath_var=SHLIB_PATH 16230 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16232 soname_spec='${libname}${release}${shared_ext}$major' 16233 ;; 16234 esac 16235 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16236 postinstall_cmds='chmod 555 $lib' 16237 ;; 16238 16239irix5* | irix6* | nonstopux*) 16240 case $host_os in 16241 nonstopux*) version_type=nonstopux ;; 16242 *) 16243 if test "$lt_cv_prog_gnu_ld" = yes; then 16244 version_type=linux 16245 else 16246 version_type=irix 16247 fi ;; 16248 esac 16249 need_lib_prefix=no 16250 need_version=no 16251 soname_spec='${libname}${release}${shared_ext}$major' 16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16253 case $host_os in 16254 irix5* | nonstopux*) 16255 libsuff= shlibsuff= 16256 ;; 16257 *) 16258 case $LD in # libtool.m4 will add one of these switches to LD 16259 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16260 libsuff= shlibsuff= libmagic=32-bit;; 16261 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16262 libsuff=32 shlibsuff=N32 libmagic=N32;; 16263 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16264 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16265 *) libsuff= shlibsuff= libmagic=never-match;; 16266 esac 16267 ;; 16268 esac 16269 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16270 shlibpath_overrides_runpath=no 16271 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16272 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16273 hardcode_into_libs=yes 16274 ;; 16275 16276# No shared lib support for Linux oldld, aout, or coff. 16277linux*oldld* | linux*aout* | linux*coff*) 16278 dynamic_linker=no 16279 ;; 16280 16281# This must be Linux ELF. 16282linux*) 16283 version_type=linux 16284 need_lib_prefix=no 16285 need_version=no 16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16287 soname_spec='${libname}${release}${shared_ext}$major' 16288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16289 shlibpath_var=LD_LIBRARY_PATH 16290 shlibpath_overrides_runpath=no 16291 # This implies no fast_install, which is unacceptable. 16292 # Some rework will be needed to allow for fast_install 16293 # before this can be enabled. 16294 hardcode_into_libs=yes 16295 16296 # We used to test for /lib/ld.so.1 and disable shared libraries on 16297 # powerpc, because MkLinux only supported shared libraries with the 16298 # GNU dynamic linker. Since this was broken with cross compilers, 16299 # most powerpc-linux boxes support dynamic linking these days and 16300 # people can always --disable-shared, the test was removed, and we 16301 # assume the GNU/Linux dynamic linker is in use. 16302 dynamic_linker='GNU/Linux ld.so' 16303 ;; 16304 16305netbsd*) 16306 version_type=sunos 16307 need_lib_prefix=no 16308 need_version=no 16309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16312 dynamic_linker='NetBSD (a.out) ld.so' 16313 else 16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 16315 soname_spec='${libname}${release}${shared_ext}$major' 16316 dynamic_linker='NetBSD ld.elf_so' 16317 fi 16318 shlibpath_var=LD_LIBRARY_PATH 16319 shlibpath_overrides_runpath=yes 16320 hardcode_into_libs=yes 16321 ;; 16322 16323newsos6) 16324 version_type=linux 16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16326 shlibpath_var=LD_LIBRARY_PATH 16327 shlibpath_overrides_runpath=yes 16328 ;; 16329 16330nto-qnx) 16331 version_type=linux 16332 need_lib_prefix=no 16333 need_version=no 16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16335 soname_spec='${libname}${release}${shared_ext}$major' 16336 shlibpath_var=LD_LIBRARY_PATH 16337 shlibpath_overrides_runpath=yes 16338 ;; 16339 16340openbsd*) 16341 version_type=sunos 16342 need_lib_prefix=no 16343 need_version=no 16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16346 shlibpath_var=LD_LIBRARY_PATH 16347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16348 case $host_os in 16349 openbsd2.[89] | openbsd2.[89].*) 16350 shlibpath_overrides_runpath=no 16351 ;; 16352 *) 16353 shlibpath_overrides_runpath=yes 16354 ;; 16355 esac 16356 else 16357 shlibpath_overrides_runpath=yes 16358 fi 16359 ;; 16360 16361os2*) 16362 libname_spec='$name' 16363 shrext=".dll" 16364 need_lib_prefix=no 16365 library_names_spec='$libname${shared_ext} $libname.a' 16366 dynamic_linker='OS/2 ld.exe' 16367 shlibpath_var=LIBPATH 16368 ;; 16369 16370osf3* | osf4* | osf5*) 16371 version_type=osf 16372 need_lib_prefix=no 16373 need_version=no 16374 soname_spec='${libname}${release}${shared_ext}$major' 16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16376 shlibpath_var=LD_LIBRARY_PATH 16377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16379 ;; 16380 16381sco3.2v5*) 16382 version_type=osf 16383 soname_spec='${libname}${release}${shared_ext}$major' 16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16385 shlibpath_var=LD_LIBRARY_PATH 16386 ;; 16387 16388solaris*) 16389 version_type=linux 16390 need_lib_prefix=no 16391 need_version=no 16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16393 soname_spec='${libname}${release}${shared_ext}$major' 16394 shlibpath_var=LD_LIBRARY_PATH 16395 shlibpath_overrides_runpath=yes 16396 hardcode_into_libs=yes 16397 # ldd complains unless libraries are executable 16398 postinstall_cmds='chmod +x $lib' 16399 ;; 16400 16401sunos4*) 16402 version_type=sunos 16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16405 shlibpath_var=LD_LIBRARY_PATH 16406 shlibpath_overrides_runpath=yes 16407 if test "$with_gnu_ld" = yes; then 16408 need_lib_prefix=no 16409 fi 16410 need_version=yes 16411 ;; 16412 16413sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16414 version_type=linux 16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16416 soname_spec='${libname}${release}${shared_ext}$major' 16417 shlibpath_var=LD_LIBRARY_PATH 16418 case $host_vendor in 16419 sni) 16420 shlibpath_overrides_runpath=no 16421 need_lib_prefix=no 16422 export_dynamic_flag_spec='${wl}-Blargedynsym' 16423 runpath_var=LD_RUN_PATH 16424 ;; 16425 siemens) 16426 need_lib_prefix=no 16427 ;; 16428 motorola) 16429 need_lib_prefix=no 16430 need_version=no 16431 shlibpath_overrides_runpath=no 16432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16433 ;; 16434 esac 16435 ;; 16436 16437sysv4*MP*) 16438 if test -d /usr/nec ;then 16439 version_type=linux 16440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16441 soname_spec='$libname${shared_ext}.$major' 16442 shlibpath_var=LD_LIBRARY_PATH 16443 fi 16444 ;; 16445 16446uts4*) 16447 version_type=linux 16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16449 soname_spec='${libname}${release}${shared_ext}$major' 16450 shlibpath_var=LD_LIBRARY_PATH 16451 ;; 16452 16453*) 16454 dynamic_linker=no 16455 ;; 16456esac 16457echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16458echo "${ECHO_T}$dynamic_linker" >&6 16459test "$dynamic_linker" = no && can_build_shared=no 16460 16461if test "x$enable_dlopen" != xyes; then 16462 enable_dlopen=unknown 16463 enable_dlopen_self=unknown 16464 enable_dlopen_self_static=unknown 16465else 16466 lt_cv_dlopen=no 16467 lt_cv_dlopen_libs= 16468 16469 case $host_os in 16470 beos*) 16471 lt_cv_dlopen="load_add_on" 16472 lt_cv_dlopen_libs= 16473 lt_cv_dlopen_self=yes 16474 ;; 16475 16476 mingw* | pw32*) 16477 lt_cv_dlopen="LoadLibrary" 16478 lt_cv_dlopen_libs= 16479 ;; 16480 16481 cygwin*) 16482 lt_cv_dlopen="dlopen" 16483 lt_cv_dlopen_libs= 16484 ;; 16485 16486 darwin*) 16487 # if libdl is installed we need to link against it 16488 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16489echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16490if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16491 echo $ECHO_N "(cached) $ECHO_C" >&6 16492else 16493 ac_check_lib_save_LIBS=$LIBS 16494LIBS="-ldl $LIBS" 16495cat >conftest.$ac_ext <<_ACEOF 16496#line $LINENO "configure" 16497/* confdefs.h. */ 16498_ACEOF 16499cat confdefs.h >>conftest.$ac_ext 16500cat >>conftest.$ac_ext <<_ACEOF 16501/* end confdefs.h. */ 16502 16503/* Override any gcc2 internal prototype to avoid an error. */ 16504#ifdef __cplusplus 16505extern "C" 16506#endif 16507/* We use char because int might match the return type of a gcc2 16508 builtin and then its argument prototype would still apply. */ 16509char dlopen (); 16510int 16511main () 16512{ 16513dlopen (); 16514 ; 16515 return 0; 16516} 16517_ACEOF 16518rm -f conftest.$ac_objext conftest$ac_exeext 16519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16520 (eval $ac_link) 2>&5 16521 ac_status=$? 16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16523 (exit $ac_status); } && 16524 { ac_try='test -s conftest$ac_exeext' 16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16526 (eval $ac_try) 2>&5 16527 ac_status=$? 16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16529 (exit $ac_status); }; }; then 16530 ac_cv_lib_dl_dlopen=yes 16531else 16532 echo "$as_me: failed program was:" >&5 16533sed 's/^/| /' conftest.$ac_ext >&5 16534 16535ac_cv_lib_dl_dlopen=no 16536fi 16537rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16538LIBS=$ac_check_lib_save_LIBS 16539fi 16540echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16541echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16542if test $ac_cv_lib_dl_dlopen = yes; then 16543 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16544else 16545 16546 lt_cv_dlopen="dyld" 16547 lt_cv_dlopen_libs= 16548 lt_cv_dlopen_self=yes 16549 16550fi 16551 16552 ;; 16553 16554 *) 16555 echo "$as_me:$LINENO: checking for shl_load" >&5 16556echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 16557if test "${ac_cv_func_shl_load+set}" = set; then 16558 echo $ECHO_N "(cached) $ECHO_C" >&6 16559else 16560 cat >conftest.$ac_ext <<_ACEOF 16561#line $LINENO "configure" 16562/* confdefs.h. */ 16563_ACEOF 16564cat confdefs.h >>conftest.$ac_ext 16565cat >>conftest.$ac_ext <<_ACEOF 16566/* end confdefs.h. */ 16567/* System header to define __stub macros and hopefully few prototypes, 16568 which can conflict with char shl_load (); below. 16569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16570 <limits.h> exists even on freestanding compilers. */ 16571#ifdef __STDC__ 16572# include <limits.h> 16573#else 16574# include <assert.h> 16575#endif 16576/* Override any gcc2 internal prototype to avoid an error. */ 16577#ifdef __cplusplus 16578extern "C" 16579{ 16580#endif 16581/* We use char because int might match the return type of a gcc2 16582 builtin and then its argument prototype would still apply. */ 16583char shl_load (); 16584/* The GNU C library defines this for functions which it implements 16585 to always fail with ENOSYS. Some functions are actually named 16586 something starting with __ and the normal name is an alias. */ 16587#if defined (__stub_shl_load) || defined (__stub___shl_load) 16588choke me 16589#else 16590char (*f) () = shl_load; 16591#endif 16592#ifdef __cplusplus 16593} 16594#endif 16595 16596int 16597main () 16598{ 16599return f != shl_load; 16600 ; 16601 return 0; 16602} 16603_ACEOF 16604rm -f conftest.$ac_objext conftest$ac_exeext 16605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16606 (eval $ac_link) 2>&5 16607 ac_status=$? 16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16609 (exit $ac_status); } && 16610 { ac_try='test -s conftest$ac_exeext' 16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16612 (eval $ac_try) 2>&5 16613 ac_status=$? 16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16615 (exit $ac_status); }; }; then 16616 ac_cv_func_shl_load=yes 16617else 16618 echo "$as_me: failed program was:" >&5 16619sed 's/^/| /' conftest.$ac_ext >&5 16620 16621ac_cv_func_shl_load=no 16622fi 16623rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16624fi 16625echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 16626echo "${ECHO_T}$ac_cv_func_shl_load" >&6 16627if test $ac_cv_func_shl_load = yes; then 16628 lt_cv_dlopen="shl_load" 16629else 16630 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 16631echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 16632if test "${ac_cv_lib_dld_shl_load+set}" = set; then 16633 echo $ECHO_N "(cached) $ECHO_C" >&6 16634else 16635 ac_check_lib_save_LIBS=$LIBS 16636LIBS="-ldld $LIBS" 16637cat >conftest.$ac_ext <<_ACEOF 16638#line $LINENO "configure" 16639/* confdefs.h. */ 16640_ACEOF 16641cat confdefs.h >>conftest.$ac_ext 16642cat >>conftest.$ac_ext <<_ACEOF 16643/* end confdefs.h. */ 16644 16645/* Override any gcc2 internal prototype to avoid an error. */ 16646#ifdef __cplusplus 16647extern "C" 16648#endif 16649/* We use char because int might match the return type of a gcc2 16650 builtin and then its argument prototype would still apply. */ 16651char shl_load (); 16652int 16653main () 16654{ 16655shl_load (); 16656 ; 16657 return 0; 16658} 16659_ACEOF 16660rm -f conftest.$ac_objext conftest$ac_exeext 16661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16662 (eval $ac_link) 2>&5 16663 ac_status=$? 16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16665 (exit $ac_status); } && 16666 { ac_try='test -s conftest$ac_exeext' 16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16668 (eval $ac_try) 2>&5 16669 ac_status=$? 16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16671 (exit $ac_status); }; }; then 16672 ac_cv_lib_dld_shl_load=yes 16673else 16674 echo "$as_me: failed program was:" >&5 16675sed 's/^/| /' conftest.$ac_ext >&5 16676 16677ac_cv_lib_dld_shl_load=no 16678fi 16679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16680LIBS=$ac_check_lib_save_LIBS 16681fi 16682echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 16683echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 16684if test $ac_cv_lib_dld_shl_load = yes; then 16685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 16686else 16687 echo "$as_me:$LINENO: checking for dlopen" >&5 16688echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 16689if test "${ac_cv_func_dlopen+set}" = set; then 16690 echo $ECHO_N "(cached) $ECHO_C" >&6 16691else 16692 cat >conftest.$ac_ext <<_ACEOF 16693#line $LINENO "configure" 16694/* confdefs.h. */ 16695_ACEOF 16696cat confdefs.h >>conftest.$ac_ext 16697cat >>conftest.$ac_ext <<_ACEOF 16698/* end confdefs.h. */ 16699/* System header to define __stub macros and hopefully few prototypes, 16700 which can conflict with char dlopen (); below. 16701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16702 <limits.h> exists even on freestanding compilers. */ 16703#ifdef __STDC__ 16704# include <limits.h> 16705#else 16706# include <assert.h> 16707#endif 16708/* Override any gcc2 internal prototype to avoid an error. */ 16709#ifdef __cplusplus 16710extern "C" 16711{ 16712#endif 16713/* We use char because int might match the return type of a gcc2 16714 builtin and then its argument prototype would still apply. */ 16715char dlopen (); 16716/* The GNU C library defines this for functions which it implements 16717 to always fail with ENOSYS. Some functions are actually named 16718 something starting with __ and the normal name is an alias. */ 16719#if defined (__stub_dlopen) || defined (__stub___dlopen) 16720choke me 16721#else 16722char (*f) () = dlopen; 16723#endif 16724#ifdef __cplusplus 16725} 16726#endif 16727 16728int 16729main () 16730{ 16731return f != dlopen; 16732 ; 16733 return 0; 16734} 16735_ACEOF 16736rm -f conftest.$ac_objext conftest$ac_exeext 16737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16738 (eval $ac_link) 2>&5 16739 ac_status=$? 16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16741 (exit $ac_status); } && 16742 { ac_try='test -s conftest$ac_exeext' 16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16744 (eval $ac_try) 2>&5 16745 ac_status=$? 16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16747 (exit $ac_status); }; }; then 16748 ac_cv_func_dlopen=yes 16749else 16750 echo "$as_me: failed program was:" >&5 16751sed 's/^/| /' conftest.$ac_ext >&5 16752 16753ac_cv_func_dlopen=no 16754fi 16755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16756fi 16757echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 16758echo "${ECHO_T}$ac_cv_func_dlopen" >&6 16759if test $ac_cv_func_dlopen = yes; then 16760 lt_cv_dlopen="dlopen" 16761else 16762 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16763echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16764if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16765 echo $ECHO_N "(cached) $ECHO_C" >&6 16766else 16767 ac_check_lib_save_LIBS=$LIBS 16768LIBS="-ldl $LIBS" 16769cat >conftest.$ac_ext <<_ACEOF 16770#line $LINENO "configure" 16771/* confdefs.h. */ 16772_ACEOF 16773cat confdefs.h >>conftest.$ac_ext 16774cat >>conftest.$ac_ext <<_ACEOF 16775/* end confdefs.h. */ 16776 16777/* Override any gcc2 internal prototype to avoid an error. */ 16778#ifdef __cplusplus 16779extern "C" 16780#endif 16781/* We use char because int might match the return type of a gcc2 16782 builtin and then its argument prototype would still apply. */ 16783char dlopen (); 16784int 16785main () 16786{ 16787dlopen (); 16788 ; 16789 return 0; 16790} 16791_ACEOF 16792rm -f conftest.$ac_objext conftest$ac_exeext 16793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16794 (eval $ac_link) 2>&5 16795 ac_status=$? 16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16797 (exit $ac_status); } && 16798 { ac_try='test -s conftest$ac_exeext' 16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16800 (eval $ac_try) 2>&5 16801 ac_status=$? 16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16803 (exit $ac_status); }; }; then 16804 ac_cv_lib_dl_dlopen=yes 16805else 16806 echo "$as_me: failed program was:" >&5 16807sed 's/^/| /' conftest.$ac_ext >&5 16808 16809ac_cv_lib_dl_dlopen=no 16810fi 16811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16812LIBS=$ac_check_lib_save_LIBS 16813fi 16814echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16815echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16816if test $ac_cv_lib_dl_dlopen = yes; then 16817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16818else 16819 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 16820echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 16821if test "${ac_cv_lib_svld_dlopen+set}" = set; then 16822 echo $ECHO_N "(cached) $ECHO_C" >&6 16823else 16824 ac_check_lib_save_LIBS=$LIBS 16825LIBS="-lsvld $LIBS" 16826cat >conftest.$ac_ext <<_ACEOF 16827#line $LINENO "configure" 16828/* confdefs.h. */ 16829_ACEOF 16830cat confdefs.h >>conftest.$ac_ext 16831cat >>conftest.$ac_ext <<_ACEOF 16832/* end confdefs.h. */ 16833 16834/* Override any gcc2 internal prototype to avoid an error. */ 16835#ifdef __cplusplus 16836extern "C" 16837#endif 16838/* We use char because int might match the return type of a gcc2 16839 builtin and then its argument prototype would still apply. */ 16840char dlopen (); 16841int 16842main () 16843{ 16844dlopen (); 16845 ; 16846 return 0; 16847} 16848_ACEOF 16849rm -f conftest.$ac_objext conftest$ac_exeext 16850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16851 (eval $ac_link) 2>&5 16852 ac_status=$? 16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16854 (exit $ac_status); } && 16855 { ac_try='test -s conftest$ac_exeext' 16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16857 (eval $ac_try) 2>&5 16858 ac_status=$? 16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16860 (exit $ac_status); }; }; then 16861 ac_cv_lib_svld_dlopen=yes 16862else 16863 echo "$as_me: failed program was:" >&5 16864sed 's/^/| /' conftest.$ac_ext >&5 16865 16866ac_cv_lib_svld_dlopen=no 16867fi 16868rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16869LIBS=$ac_check_lib_save_LIBS 16870fi 16871echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 16872echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 16873if test $ac_cv_lib_svld_dlopen = yes; then 16874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 16875else 16876 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 16877echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 16878if test "${ac_cv_lib_dld_dld_link+set}" = set; then 16879 echo $ECHO_N "(cached) $ECHO_C" >&6 16880else 16881 ac_check_lib_save_LIBS=$LIBS 16882LIBS="-ldld $LIBS" 16883cat >conftest.$ac_ext <<_ACEOF 16884#line $LINENO "configure" 16885/* confdefs.h. */ 16886_ACEOF 16887cat confdefs.h >>conftest.$ac_ext 16888cat >>conftest.$ac_ext <<_ACEOF 16889/* end confdefs.h. */ 16890 16891/* Override any gcc2 internal prototype to avoid an error. */ 16892#ifdef __cplusplus 16893extern "C" 16894#endif 16895/* We use char because int might match the return type of a gcc2 16896 builtin and then its argument prototype would still apply. */ 16897char dld_link (); 16898int 16899main () 16900{ 16901dld_link (); 16902 ; 16903 return 0; 16904} 16905_ACEOF 16906rm -f conftest.$ac_objext conftest$ac_exeext 16907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16908 (eval $ac_link) 2>&5 16909 ac_status=$? 16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16911 (exit $ac_status); } && 16912 { ac_try='test -s conftest$ac_exeext' 16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16914 (eval $ac_try) 2>&5 16915 ac_status=$? 16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16917 (exit $ac_status); }; }; then 16918 ac_cv_lib_dld_dld_link=yes 16919else 16920 echo "$as_me: failed program was:" >&5 16921sed 's/^/| /' conftest.$ac_ext >&5 16922 16923ac_cv_lib_dld_dld_link=no 16924fi 16925rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16926LIBS=$ac_check_lib_save_LIBS 16927fi 16928echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 16929echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 16930if test $ac_cv_lib_dld_dld_link = yes; then 16931 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 16932fi 16933 16934 16935fi 16936 16937 16938fi 16939 16940 16941fi 16942 16943 16944fi 16945 16946 16947fi 16948 16949 ;; 16950 esac 16951 16952 if test "x$lt_cv_dlopen" != xno; then 16953 enable_dlopen=yes 16954 else 16955 enable_dlopen=no 16956 fi 16957 16958 case $lt_cv_dlopen in 16959 dlopen) 16960 save_CPPFLAGS="$CPPFLAGS" 16961 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16962 16963 save_LDFLAGS="$LDFLAGS" 16964 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16965 16966 save_LIBS="$LIBS" 16967 LIBS="$lt_cv_dlopen_libs $LIBS" 16968 16969 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 16970echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 16971if test "${lt_cv_dlopen_self+set}" = set; then 16972 echo $ECHO_N "(cached) $ECHO_C" >&6 16973else 16974 if test "$cross_compiling" = yes; then : 16975 lt_cv_dlopen_self=cross 16976else 16977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16978 lt_status=$lt_dlunknown 16979 cat > conftest.$ac_ext <<EOF 16980#line 16980 "configure" 16981#include "confdefs.h" 16982 16983#if HAVE_DLFCN_H 16984#include <dlfcn.h> 16985#endif 16986 16987#include <stdio.h> 16988 16989#ifdef RTLD_GLOBAL 16990# define LT_DLGLOBAL RTLD_GLOBAL 16991#else 16992# ifdef DL_GLOBAL 16993# define LT_DLGLOBAL DL_GLOBAL 16994# else 16995# define LT_DLGLOBAL 0 16996# endif 16997#endif 16998 16999/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17000 find out it does not work in some platform. */ 17001#ifndef LT_DLLAZY_OR_NOW 17002# ifdef RTLD_LAZY 17003# define LT_DLLAZY_OR_NOW RTLD_LAZY 17004# else 17005# ifdef DL_LAZY 17006# define LT_DLLAZY_OR_NOW DL_LAZY 17007# else 17008# ifdef RTLD_NOW 17009# define LT_DLLAZY_OR_NOW RTLD_NOW 17010# else 17011# ifdef DL_NOW 17012# define LT_DLLAZY_OR_NOW DL_NOW 17013# else 17014# define LT_DLLAZY_OR_NOW 0 17015# endif 17016# endif 17017# endif 17018# endif 17019#endif 17020 17021#ifdef __cplusplus 17022extern "C" void exit (int); 17023#endif 17024 17025void fnord() { int i=42;} 17026int main () 17027{ 17028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17029 int status = $lt_dlunknown; 17030 17031 if (self) 17032 { 17033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17034 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17035 /* dlclose (self); */ 17036 } 17037 17038 exit (status); 17039} 17040EOF 17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17042 (eval $ac_link) 2>&5 17043 ac_status=$? 17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17045 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17046 (./conftest; exit; ) 2>/dev/null 17047 lt_status=$? 17048 case x$lt_status in 17049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17051 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17052 esac 17053 else : 17054 # compilation failed 17055 lt_cv_dlopen_self=no 17056 fi 17057fi 17058rm -fr conftest* 17059 17060 17061fi 17062echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17063echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17064 17065 if test "x$lt_cv_dlopen_self" = xyes; then 17066 LDFLAGS="$LDFLAGS $link_static_flag" 17067 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17068echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17069if test "${lt_cv_dlopen_self_static+set}" = set; then 17070 echo $ECHO_N "(cached) $ECHO_C" >&6 17071else 17072 if test "$cross_compiling" = yes; then : 17073 lt_cv_dlopen_self_static=cross 17074else 17075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17076 lt_status=$lt_dlunknown 17077 cat > conftest.$ac_ext <<EOF 17078#line 17078 "configure" 17079#include "confdefs.h" 17080 17081#if HAVE_DLFCN_H 17082#include <dlfcn.h> 17083#endif 17084 17085#include <stdio.h> 17086 17087#ifdef RTLD_GLOBAL 17088# define LT_DLGLOBAL RTLD_GLOBAL 17089#else 17090# ifdef DL_GLOBAL 17091# define LT_DLGLOBAL DL_GLOBAL 17092# else 17093# define LT_DLGLOBAL 0 17094# endif 17095#endif 17096 17097/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17098 find out it does not work in some platform. */ 17099#ifndef LT_DLLAZY_OR_NOW 17100# ifdef RTLD_LAZY 17101# define LT_DLLAZY_OR_NOW RTLD_LAZY 17102# else 17103# ifdef DL_LAZY 17104# define LT_DLLAZY_OR_NOW DL_LAZY 17105# else 17106# ifdef RTLD_NOW 17107# define LT_DLLAZY_OR_NOW RTLD_NOW 17108# else 17109# ifdef DL_NOW 17110# define LT_DLLAZY_OR_NOW DL_NOW 17111# else 17112# define LT_DLLAZY_OR_NOW 0 17113# endif 17114# endif 17115# endif 17116# endif 17117#endif 17118 17119#ifdef __cplusplus 17120extern "C" void exit (int); 17121#endif 17122 17123void fnord() { int i=42;} 17124int main () 17125{ 17126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17127 int status = $lt_dlunknown; 17128 17129 if (self) 17130 { 17131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17132 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17133 /* dlclose (self); */ 17134 } 17135 17136 exit (status); 17137} 17138EOF 17139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17140 (eval $ac_link) 2>&5 17141 ac_status=$? 17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17143 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17144 (./conftest; exit; ) 2>/dev/null 17145 lt_status=$? 17146 case x$lt_status in 17147 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17148 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17149 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 17150 esac 17151 else : 17152 # compilation failed 17153 lt_cv_dlopen_self_static=no 17154 fi 17155fi 17156rm -fr conftest* 17157 17158 17159fi 17160echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17161echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 17162 fi 17163 17164 CPPFLAGS="$save_CPPFLAGS" 17165 LDFLAGS="$save_LDFLAGS" 17166 LIBS="$save_LIBS" 17167 ;; 17168 esac 17169 17170 case $lt_cv_dlopen_self in 17171 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17172 *) enable_dlopen_self=unknown ;; 17173 esac 17174 17175 case $lt_cv_dlopen_self_static in 17176 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17177 *) enable_dlopen_self_static=unknown ;; 17178 esac 17179fi 17180 17181 17182# The else clause should only fire when bootstrapping the 17183# libtool distribution, otherwise you forgot to ship ltmain.sh 17184# with your package, and you will get complaints that there are 17185# no rules to generate ltmain.sh. 17186if test -f "$ltmain"; then 17187 # See if we are running on zsh, and set the options which allow our commands through 17188 # without removal of \ escapes. 17189 if test -n "${ZSH_VERSION+set}" ; then 17190 setopt NO_GLOB_SUBST 17191 fi 17192 # Now quote all the things that may contain metacharacters while being 17193 # careful not to overquote the AC_SUBSTed values. We take copies of the 17194 # variables and quote the copies for generation of the libtool script. 17195 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17198 deplibs_check_method reload_flag reload_cmds need_locks \ 17199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17200 lt_cv_sys_global_symbol_to_c_name_address \ 17201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17202 old_postinstall_cmds old_postuninstall_cmds \ 17203 compiler_GCJ \ 17204 CC_GCJ \ 17205 LD_GCJ \ 17206 lt_prog_compiler_wl_GCJ \ 17207 lt_prog_compiler_pic_GCJ \ 17208 lt_prog_compiler_static_GCJ \ 17209 lt_prog_compiler_no_builtin_flag_GCJ \ 17210 export_dynamic_flag_spec_GCJ \ 17211 thread_safe_flag_spec_GCJ \ 17212 whole_archive_flag_spec_GCJ \ 17213 enable_shared_with_static_runtimes_GCJ \ 17214 old_archive_cmds_GCJ \ 17215 old_archive_from_new_cmds_GCJ \ 17216 predep_objects_GCJ \ 17217 postdep_objects_GCJ \ 17218 predeps_GCJ \ 17219 postdeps_GCJ \ 17220 compiler_lib_search_path_GCJ \ 17221 archive_cmds_GCJ \ 17222 archive_expsym_cmds_GCJ \ 17223 postinstall_cmds_GCJ \ 17224 postuninstall_cmds_GCJ \ 17225 old_archive_from_expsyms_cmds_GCJ \ 17226 allow_undefined_flag_GCJ \ 17227 no_undefined_flag_GCJ \ 17228 export_symbols_cmds_GCJ \ 17229 hardcode_libdir_flag_spec_GCJ \ 17230 hardcode_libdir_flag_spec_ld_GCJ \ 17231 hardcode_libdir_separator_GCJ \ 17232 hardcode_automatic_GCJ \ 17233 module_cmds_GCJ \ 17234 module_expsym_cmds_GCJ \ 17235 lt_cv_prog_compiler_c_o_GCJ \ 17236 exclude_expsyms_GCJ \ 17237 include_expsyms_GCJ; do 17238 17239 case $var in 17240 old_archive_cmds_GCJ | \ 17241 old_archive_from_new_cmds_GCJ | \ 17242 archive_cmds_GCJ | \ 17243 archive_expsym_cmds_GCJ | \ 17244 module_cmds_GCJ | \ 17245 module_expsym_cmds_GCJ | \ 17246 old_archive_from_expsyms_cmds_GCJ | \ 17247 export_symbols_cmds_GCJ | \ 17248 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17249 postinstall_cmds | postuninstall_cmds | \ 17250 old_postinstall_cmds | old_postuninstall_cmds | \ 17251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17252 # Double-quote double-evaled strings. 17253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17254 ;; 17255 *) 17256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17257 ;; 17258 esac 17259 done 17260 17261 case $lt_echo in 17262 *'\$0 --fallback-echo"') 17263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17264 ;; 17265 esac 17266 17267cfgfile="$ofile" 17268 17269 cat <<__EOF__ >> "$cfgfile" 17270# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17271 17272# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17273 17274# Shell to use when invoking shell scripts. 17275SHELL=$lt_SHELL 17276 17277# Whether or not to build shared libraries. 17278build_libtool_libs=$enable_shared 17279 17280# Whether or not to build static libraries. 17281build_old_libs=$enable_static 17282 17283# Whether or not to add -lc for building shared libraries. 17284build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17285 17286# Whether or not to disallow shared libs when runtime libs are static 17287allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17288 17289# Whether or not to optimize for fast installation. 17290fast_install=$enable_fast_install 17291 17292# The host system. 17293host_alias=$host_alias 17294host=$host 17295 17296# An echo program that does not interpret backslashes. 17297echo=$lt_echo 17298 17299# The archiver. 17300AR=$lt_AR 17301AR_FLAGS=$lt_AR_FLAGS 17302 17303# A C compiler. 17304LTCC=$lt_LTCC 17305 17306# A language-specific compiler. 17307CC=$lt_compiler_GCJ 17308 17309# Is the compiler the GNU C compiler? 17310with_gcc=$GCC_GCJ 17311 17312# An ERE matcher. 17313EGREP=$lt_EGREP 17314 17315# The linker used to build libraries. 17316LD=$lt_LD_GCJ 17317 17318# Whether we need hard or soft links. 17319LN_S=$lt_LN_S 17320 17321# A BSD-compatible nm program. 17322NM=$lt_NM 17323 17324# A symbol stripping program 17325STRIP=$STRIP 17326 17327# Used to examine libraries when file_magic_cmd begins "file" 17328MAGIC_CMD=$MAGIC_CMD 17329 17330# Used on cygwin: DLL creation program. 17331DLLTOOL="$DLLTOOL" 17332 17333# Used on cygwin: object dumper. 17334OBJDUMP="$OBJDUMP" 17335 17336# Used on cygwin: assembler. 17337AS="$AS" 17338 17339# The name of the directory that contains temporary libtool files. 17340objdir=$objdir 17341 17342# How to create reloadable object files. 17343reload_flag=$lt_reload_flag 17344reload_cmds=$lt_reload_cmds 17345 17346# How to pass a linker flag through the compiler. 17347wl=$lt_lt_prog_compiler_wl_GCJ 17348 17349# Object file suffix (normally "o"). 17350objext="$ac_objext" 17351 17352# Old archive suffix (normally "a"). 17353libext="$libext" 17354 17355# Shared library suffix (normally ".so"). 17356shrext='$shrext' 17357 17358# Executable file suffix (normally ""). 17359exeext="$exeext" 17360 17361# Additional compiler flags for building library objects. 17362pic_flag=$lt_lt_prog_compiler_pic_GCJ 17363pic_mode=$pic_mode 17364 17365# What is the maximum length of a command? 17366max_cmd_len=$lt_cv_sys_max_cmd_len 17367 17368# Does compiler simultaneously support -c and -o options? 17369compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17370 17371# Must we lock files when doing compilation ? 17372need_locks=$lt_need_locks 17373 17374# Do we need the lib prefix for modules? 17375need_lib_prefix=$need_lib_prefix 17376 17377# Do we need a version for libraries? 17378need_version=$need_version 17379 17380# Whether dlopen is supported. 17381dlopen_support=$enable_dlopen 17382 17383# Whether dlopen of programs is supported. 17384dlopen_self=$enable_dlopen_self 17385 17386# Whether dlopen of statically linked programs is supported. 17387dlopen_self_static=$enable_dlopen_self_static 17388 17389# Compiler flag to prevent dynamic linking. 17390link_static_flag=$lt_lt_prog_compiler_static_GCJ 17391 17392# Compiler flag to turn off builtin functions. 17393no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17394 17395# Compiler flag to allow reflexive dlopens. 17396export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17397 17398# Compiler flag to generate shared objects directly from archives. 17399whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17400 17401# Compiler flag to generate thread-safe objects. 17402thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17403 17404# Library versioning type. 17405version_type=$version_type 17406 17407# Format of library name prefix. 17408libname_spec=$lt_libname_spec 17409 17410# List of archive names. First name is the real one, the rest are links. 17411# The last name is the one that the linker finds with -lNAME. 17412library_names_spec=$lt_library_names_spec 17413 17414# The coded name of the library, if different from the real name. 17415soname_spec=$lt_soname_spec 17416 17417# Commands used to build and install an old-style archive. 17418RANLIB=$lt_RANLIB 17419old_archive_cmds=$lt_old_archive_cmds_GCJ 17420old_postinstall_cmds=$lt_old_postinstall_cmds 17421old_postuninstall_cmds=$lt_old_postuninstall_cmds 17422 17423# Create an old-style archive from a shared archive. 17424old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17425 17426# Create a temporary old-style archive to link instead of a shared archive. 17427old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17428 17429# Commands used to build and install a shared archive. 17430archive_cmds=$lt_archive_cmds_GCJ 17431archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17432postinstall_cmds=$lt_postinstall_cmds 17433postuninstall_cmds=$lt_postuninstall_cmds 17434 17435# Commands used to build a loadable module (assumed same as above if empty) 17436module_cmds=$lt_module_cmds_GCJ 17437module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17438 17439# Commands to strip libraries. 17440old_striplib=$lt_old_striplib 17441striplib=$lt_striplib 17442 17443# Dependencies to place before the objects being linked to create a 17444# shared library. 17445predep_objects=$lt_predep_objects_GCJ 17446 17447# Dependencies to place after the objects being linked to create a 17448# shared library. 17449postdep_objects=$lt_postdep_objects_GCJ 17450 17451# Dependencies to place before the objects being linked to create a 17452# shared library. 17453predeps=$lt_predeps_GCJ 17454 17455# Dependencies to place after the objects being linked to create a 17456# shared library. 17457postdeps=$lt_postdeps_GCJ 17458 17459# The library search path used internally by the compiler when linking 17460# a shared library. 17461compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17462 17463# Method to check whether dependent libraries are shared objects. 17464deplibs_check_method=$lt_deplibs_check_method 17465 17466# Command to use when deplibs_check_method == file_magic. 17467file_magic_cmd=$lt_file_magic_cmd 17468 17469# Flag that allows shared libraries with undefined symbols to be built. 17470allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17471 17472# Flag that forces no undefined symbols. 17473no_undefined_flag=$lt_no_undefined_flag_GCJ 17474 17475# Commands used to finish a libtool library installation in a directory. 17476finish_cmds=$lt_finish_cmds 17477 17478# Same as above, but a single script fragment to be evaled but not shown. 17479finish_eval=$lt_finish_eval 17480 17481# Take the output of nm and produce a listing of raw symbols and C names. 17482global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17483 17484# Transform the output of nm in a proper C declaration 17485global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17486 17487# Transform the output of nm in a C name address pair 17488global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17489 17490# This is the shared library runtime path variable. 17491runpath_var=$runpath_var 17492 17493# This is the shared library path variable. 17494shlibpath_var=$shlibpath_var 17495 17496# Is shlibpath searched before the hard-coded library search path? 17497shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17498 17499# How to hardcode a shared library path into an executable. 17500hardcode_action=$hardcode_action_GCJ 17501 17502# Whether we should hardcode library paths into libraries. 17503hardcode_into_libs=$hardcode_into_libs 17504 17505# Flag to hardcode \$libdir into a binary during linking. 17506# This must work even if \$libdir does not exist. 17507hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17508 17509# If ld is used when linking, flag to hardcode \$libdir into 17510# a binary during linking. This must work even if \$libdir does 17511# not exist. 17512hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17513 17514# Whether we need a single -rpath flag with a separated argument. 17515hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17516 17517# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17518# resulting binary. 17519hardcode_direct=$hardcode_direct_GCJ 17520 17521# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17522# resulting binary. 17523hardcode_minus_L=$hardcode_minus_L_GCJ 17524 17525# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17526# the resulting binary. 17527hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17528 17529# Set to yes if building a shared library automatically hardcodes DIR into the library 17530# and all subsequent libraries and executables linked against it. 17531hardcode_automatic=$hardcode_automatic_GCJ 17532 17533# Variables whose values should be saved in libtool wrapper scripts and 17534# restored at relink time. 17535variables_saved_for_relink="$variables_saved_for_relink" 17536 17537# Whether libtool must link a program against all its dependency libraries. 17538link_all_deplibs=$link_all_deplibs_GCJ 17539 17540# Compile-time system search path for libraries 17541sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17542 17543# Run-time system search path for libraries 17544sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17545 17546# Fix the shell variable \$srcfile for the compiler. 17547fix_srcfile_path="$fix_srcfile_path_GCJ" 17548 17549# Set to yes if exported symbols are required. 17550always_export_symbols=$always_export_symbols_GCJ 17551 17552# The commands to list exported symbols. 17553export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17554 17555# The commands to extract the exported symbol list from a shared archive. 17556extract_expsyms_cmds=$lt_extract_expsyms_cmds 17557 17558# Symbols that should not be listed in the preloaded symbols. 17559exclude_expsyms=$lt_exclude_expsyms_GCJ 17560 17561# Symbols that must always be exported. 17562include_expsyms=$lt_include_expsyms_GCJ 17563 17564# ### END LIBTOOL TAG CONFIG: $tagname 17565 17566__EOF__ 17567 17568 17569else 17570 # If there is no Makefile yet, we rely on a make rule to execute 17571 # `config.status --recheck' to rerun these tests and create the 17572 # libtool script then. 17573 test -f Makefile && make "$ltmain" 17574fi 17575 17576 17577ac_ext=c 17578ac_cpp='$CPP $CPPFLAGS' 17579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17581ac_compiler_gnu=$ac_cv_c_compiler_gnu 17582 17583CC="$lt_save_CC" 17584 17585 else 17586 tagname="" 17587 fi 17588 ;; 17589 17590 RC) 17591 17592 17593 17594# Source file extension for RC test sources. 17595ac_ext=rc 17596 17597# Object file extension for compiled RC test sources. 17598objext=o 17599objext_RC=$objext 17600 17601# Code to be used in simple compile tests 17602lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17603 17604# Code to be used in simple link tests 17605lt_simple_link_test_code="$lt_simple_compile_test_code" 17606 17607# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17608 17609# If no C compiler was specified, use CC. 17610LTCC=${LTCC-"$CC"} 17611 17612# Allow CC to be a program name with arguments. 17613compiler=$CC 17614 17615 17616# Allow CC to be a program name with arguments. 17617lt_save_CC="$CC" 17618CC=${RC-"windres"} 17619compiler=$CC 17620compiler_RC=$CC 17621lt_cv_prog_compiler_c_o_RC=yes 17622 17623# The else clause should only fire when bootstrapping the 17624# libtool distribution, otherwise you forgot to ship ltmain.sh 17625# with your package, and you will get complaints that there are 17626# no rules to generate ltmain.sh. 17627if test -f "$ltmain"; then 17628 # See if we are running on zsh, and set the options which allow our commands through 17629 # without removal of \ escapes. 17630 if test -n "${ZSH_VERSION+set}" ; then 17631 setopt NO_GLOB_SUBST 17632 fi 17633 # Now quote all the things that may contain metacharacters while being 17634 # careful not to overquote the AC_SUBSTed values. We take copies of the 17635 # variables and quote the copies for generation of the libtool script. 17636 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17639 deplibs_check_method reload_flag reload_cmds need_locks \ 17640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17641 lt_cv_sys_global_symbol_to_c_name_address \ 17642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17643 old_postinstall_cmds old_postuninstall_cmds \ 17644 compiler_RC \ 17645 CC_RC \ 17646 LD_RC \ 17647 lt_prog_compiler_wl_RC \ 17648 lt_prog_compiler_pic_RC \ 17649 lt_prog_compiler_static_RC \ 17650 lt_prog_compiler_no_builtin_flag_RC \ 17651 export_dynamic_flag_spec_RC \ 17652 thread_safe_flag_spec_RC \ 17653 whole_archive_flag_spec_RC \ 17654 enable_shared_with_static_runtimes_RC \ 17655 old_archive_cmds_RC \ 17656 old_archive_from_new_cmds_RC \ 17657 predep_objects_RC \ 17658 postdep_objects_RC \ 17659 predeps_RC \ 17660 postdeps_RC \ 17661 compiler_lib_search_path_RC \ 17662 archive_cmds_RC \ 17663 archive_expsym_cmds_RC \ 17664 postinstall_cmds_RC \ 17665 postuninstall_cmds_RC \ 17666 old_archive_from_expsyms_cmds_RC \ 17667 allow_undefined_flag_RC \ 17668 no_undefined_flag_RC \ 17669 export_symbols_cmds_RC \ 17670 hardcode_libdir_flag_spec_RC \ 17671 hardcode_libdir_flag_spec_ld_RC \ 17672 hardcode_libdir_separator_RC \ 17673 hardcode_automatic_RC \ 17674 module_cmds_RC \ 17675 module_expsym_cmds_RC \ 17676 lt_cv_prog_compiler_c_o_RC \ 17677 exclude_expsyms_RC \ 17678 include_expsyms_RC; do 17679 17680 case $var in 17681 old_archive_cmds_RC | \ 17682 old_archive_from_new_cmds_RC | \ 17683 archive_cmds_RC | \ 17684 archive_expsym_cmds_RC | \ 17685 module_cmds_RC | \ 17686 module_expsym_cmds_RC | \ 17687 old_archive_from_expsyms_cmds_RC | \ 17688 export_symbols_cmds_RC | \ 17689 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17690 postinstall_cmds | postuninstall_cmds | \ 17691 old_postinstall_cmds | old_postuninstall_cmds | \ 17692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17693 # Double-quote double-evaled strings. 17694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17695 ;; 17696 *) 17697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17698 ;; 17699 esac 17700 done 17701 17702 case $lt_echo in 17703 *'\$0 --fallback-echo"') 17704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17705 ;; 17706 esac 17707 17708cfgfile="$ofile" 17709 17710 cat <<__EOF__ >> "$cfgfile" 17711# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17712 17713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17714 17715# Shell to use when invoking shell scripts. 17716SHELL=$lt_SHELL 17717 17718# Whether or not to build shared libraries. 17719build_libtool_libs=$enable_shared 17720 17721# Whether or not to build static libraries. 17722build_old_libs=$enable_static 17723 17724# Whether or not to add -lc for building shared libraries. 17725build_libtool_need_lc=$archive_cmds_need_lc_RC 17726 17727# Whether or not to disallow shared libs when runtime libs are static 17728allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17729 17730# Whether or not to optimize for fast installation. 17731fast_install=$enable_fast_install 17732 17733# The host system. 17734host_alias=$host_alias 17735host=$host 17736 17737# An echo program that does not interpret backslashes. 17738echo=$lt_echo 17739 17740# The archiver. 17741AR=$lt_AR 17742AR_FLAGS=$lt_AR_FLAGS 17743 17744# A C compiler. 17745LTCC=$lt_LTCC 17746 17747# A language-specific compiler. 17748CC=$lt_compiler_RC 17749 17750# Is the compiler the GNU C compiler? 17751with_gcc=$GCC_RC 17752 17753# An ERE matcher. 17754EGREP=$lt_EGREP 17755 17756# The linker used to build libraries. 17757LD=$lt_LD_RC 17758 17759# Whether we need hard or soft links. 17760LN_S=$lt_LN_S 17761 17762# A BSD-compatible nm program. 17763NM=$lt_NM 17764 17765# A symbol stripping program 17766STRIP=$STRIP 17767 17768# Used to examine libraries when file_magic_cmd begins "file" 17769MAGIC_CMD=$MAGIC_CMD 17770 17771# Used on cygwin: DLL creation program. 17772DLLTOOL="$DLLTOOL" 17773 17774# Used on cygwin: object dumper. 17775OBJDUMP="$OBJDUMP" 17776 17777# Used on cygwin: assembler. 17778AS="$AS" 17779 17780# The name of the directory that contains temporary libtool files. 17781objdir=$objdir 17782 17783# How to create reloadable object files. 17784reload_flag=$lt_reload_flag 17785reload_cmds=$lt_reload_cmds 17786 17787# How to pass a linker flag through the compiler. 17788wl=$lt_lt_prog_compiler_wl_RC 17789 17790# Object file suffix (normally "o"). 17791objext="$ac_objext" 17792 17793# Old archive suffix (normally "a"). 17794libext="$libext" 17795 17796# Shared library suffix (normally ".so"). 17797shrext='$shrext' 17798 17799# Executable file suffix (normally ""). 17800exeext="$exeext" 17801 17802# Additional compiler flags for building library objects. 17803pic_flag=$lt_lt_prog_compiler_pic_RC 17804pic_mode=$pic_mode 17805 17806# What is the maximum length of a command? 17807max_cmd_len=$lt_cv_sys_max_cmd_len 17808 17809# Does compiler simultaneously support -c and -o options? 17810compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 17811 17812# Must we lock files when doing compilation ? 17813need_locks=$lt_need_locks 17814 17815# Do we need the lib prefix for modules? 17816need_lib_prefix=$need_lib_prefix 17817 17818# Do we need a version for libraries? 17819need_version=$need_version 17820 17821# Whether dlopen is supported. 17822dlopen_support=$enable_dlopen 17823 17824# Whether dlopen of programs is supported. 17825dlopen_self=$enable_dlopen_self 17826 17827# Whether dlopen of statically linked programs is supported. 17828dlopen_self_static=$enable_dlopen_self_static 17829 17830# Compiler flag to prevent dynamic linking. 17831link_static_flag=$lt_lt_prog_compiler_static_RC 17832 17833# Compiler flag to turn off builtin functions. 17834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 17835 17836# Compiler flag to allow reflexive dlopens. 17837export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 17838 17839# Compiler flag to generate shared objects directly from archives. 17840whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 17841 17842# Compiler flag to generate thread-safe objects. 17843thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 17844 17845# Library versioning type. 17846version_type=$version_type 17847 17848# Format of library name prefix. 17849libname_spec=$lt_libname_spec 17850 17851# List of archive names. First name is the real one, the rest are links. 17852# The last name is the one that the linker finds with -lNAME. 17853library_names_spec=$lt_library_names_spec 17854 17855# The coded name of the library, if different from the real name. 17856soname_spec=$lt_soname_spec 17857 17858# Commands used to build and install an old-style archive. 17859RANLIB=$lt_RANLIB 17860old_archive_cmds=$lt_old_archive_cmds_RC 17861old_postinstall_cmds=$lt_old_postinstall_cmds 17862old_postuninstall_cmds=$lt_old_postuninstall_cmds 17863 17864# Create an old-style archive from a shared archive. 17865old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 17866 17867# Create a temporary old-style archive to link instead of a shared archive. 17868old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 17869 17870# Commands used to build and install a shared archive. 17871archive_cmds=$lt_archive_cmds_RC 17872archive_expsym_cmds=$lt_archive_expsym_cmds_RC 17873postinstall_cmds=$lt_postinstall_cmds 17874postuninstall_cmds=$lt_postuninstall_cmds 17875 17876# Commands used to build a loadable module (assumed same as above if empty) 17877module_cmds=$lt_module_cmds_RC 17878module_expsym_cmds=$lt_module_expsym_cmds_RC 17879 17880# Commands to strip libraries. 17881old_striplib=$lt_old_striplib 17882striplib=$lt_striplib 17883 17884# Dependencies to place before the objects being linked to create a 17885# shared library. 17886predep_objects=$lt_predep_objects_RC 17887 17888# Dependencies to place after the objects being linked to create a 17889# shared library. 17890postdep_objects=$lt_postdep_objects_RC 17891 17892# Dependencies to place before the objects being linked to create a 17893# shared library. 17894predeps=$lt_predeps_RC 17895 17896# Dependencies to place after the objects being linked to create a 17897# shared library. 17898postdeps=$lt_postdeps_RC 17899 17900# The library search path used internally by the compiler when linking 17901# a shared library. 17902compiler_lib_search_path=$lt_compiler_lib_search_path_RC 17903 17904# Method to check whether dependent libraries are shared objects. 17905deplibs_check_method=$lt_deplibs_check_method 17906 17907# Command to use when deplibs_check_method == file_magic. 17908file_magic_cmd=$lt_file_magic_cmd 17909 17910# Flag that allows shared libraries with undefined symbols to be built. 17911allow_undefined_flag=$lt_allow_undefined_flag_RC 17912 17913# Flag that forces no undefined symbols. 17914no_undefined_flag=$lt_no_undefined_flag_RC 17915 17916# Commands used to finish a libtool library installation in a directory. 17917finish_cmds=$lt_finish_cmds 17918 17919# Same as above, but a single script fragment to be evaled but not shown. 17920finish_eval=$lt_finish_eval 17921 17922# Take the output of nm and produce a listing of raw symbols and C names. 17923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17924 17925# Transform the output of nm in a proper C declaration 17926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17927 17928# Transform the output of nm in a C name address pair 17929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17930 17931# This is the shared library runtime path variable. 17932runpath_var=$runpath_var 17933 17934# This is the shared library path variable. 17935shlibpath_var=$shlibpath_var 17936 17937# Is shlibpath searched before the hard-coded library search path? 17938shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17939 17940# How to hardcode a shared library path into an executable. 17941hardcode_action=$hardcode_action_RC 17942 17943# Whether we should hardcode library paths into libraries. 17944hardcode_into_libs=$hardcode_into_libs 17945 17946# Flag to hardcode \$libdir into a binary during linking. 17947# This must work even if \$libdir does not exist. 17948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 17949 17950# If ld is used when linking, flag to hardcode \$libdir into 17951# a binary during linking. This must work even if \$libdir does 17952# not exist. 17953hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 17954 17955# Whether we need a single -rpath flag with a separated argument. 17956hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 17957 17958# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17959# resulting binary. 17960hardcode_direct=$hardcode_direct_RC 17961 17962# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17963# resulting binary. 17964hardcode_minus_L=$hardcode_minus_L_RC 17965 17966# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17967# the resulting binary. 17968hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 17969 17970# Set to yes if building a shared library automatically hardcodes DIR into the library 17971# and all subsequent libraries and executables linked against it. 17972hardcode_automatic=$hardcode_automatic_RC 17973 17974# Variables whose values should be saved in libtool wrapper scripts and 17975# restored at relink time. 17976variables_saved_for_relink="$variables_saved_for_relink" 17977 17978# Whether libtool must link a program against all its dependency libraries. 17979link_all_deplibs=$link_all_deplibs_RC 17980 17981# Compile-time system search path for libraries 17982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17983 17984# Run-time system search path for libraries 17985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17986 17987# Fix the shell variable \$srcfile for the compiler. 17988fix_srcfile_path="$fix_srcfile_path_RC" 17989 17990# Set to yes if exported symbols are required. 17991always_export_symbols=$always_export_symbols_RC 17992 17993# The commands to list exported symbols. 17994export_symbols_cmds=$lt_export_symbols_cmds_RC 17995 17996# The commands to extract the exported symbol list from a shared archive. 17997extract_expsyms_cmds=$lt_extract_expsyms_cmds 17998 17999# Symbols that should not be listed in the preloaded symbols. 18000exclude_expsyms=$lt_exclude_expsyms_RC 18001 18002# Symbols that must always be exported. 18003include_expsyms=$lt_include_expsyms_RC 18004 18005# ### END LIBTOOL TAG CONFIG: $tagname 18006 18007__EOF__ 18008 18009 18010else 18011 # If there is no Makefile yet, we rely on a make rule to execute 18012 # `config.status --recheck' to rerun these tests and create the 18013 # libtool script then. 18014 test -f Makefile && make "$ltmain" 18015fi 18016 18017 18018ac_ext=c 18019ac_cpp='$CPP $CPPFLAGS' 18020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18022ac_compiler_gnu=$ac_cv_c_compiler_gnu 18023 18024CC="$lt_save_CC" 18025 18026 ;; 18027 18028 *) 18029 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18030echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18031 { (exit 1); exit 1; }; } 18032 ;; 18033 esac 18034 18035 # Append the new tag name to the list of available tags. 18036 if test -n "$tagname" ; then 18037 available_tags="$available_tags $tagname" 18038 fi 18039 fi 18040 done 18041 IFS="$lt_save_ifs" 18042 18043 # Now substitute the updated list of available tags. 18044 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18045 mv "${ofile}T" "$ofile" 18046 chmod +x "$ofile" 18047 else 18048 rm -f "${ofile}T" 18049 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18050echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18051 { (exit 1); exit 1; }; } 18052 fi 18053fi 18054 18055 18056 18057# This can be used to rebuild libtool when needed 18058LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18059 18060# Always use our own libtool. 18061LIBTOOL='$(SHELL) $(top_builddir)/mklib' 18062 18063# Prevent multiple expansion 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085# Extract the first word of "pwd", so it can be a program name with args. 18086set dummy pwd; ac_word=$2 18087echo "$as_me:$LINENO: checking for $ac_word" >&5 18088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18089if test "${ac_cv_path_RPWD+set}" = set; then 18090 echo $ECHO_N "(cached) $ECHO_C" >&6 18091else 18092 case $RPWD in 18093 [\\/]* | ?:[\\/]*) 18094 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path. 18095 ;; 18096 *) 18097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18098for as_dir in $PATH 18099do 18100 IFS=$as_save_IFS 18101 test -z "$as_dir" && as_dir=. 18102 for ac_exec_ext in '' $ac_executable_extensions; do 18103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18104 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext" 18105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18106 break 2 18107 fi 18108done 18109done 18110 18111 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false" 18112 ;; 18113esac 18114fi 18115RPWD=$ac_cv_path_RPWD 18116 18117if test -n "$RPWD"; then 18118 echo "$as_me:$LINENO: result: $RPWD" >&5 18119echo "${ECHO_T}$RPWD" >&6 18120else 18121 echo "$as_me:$LINENO: result: no" >&5 18122echo "${ECHO_T}no" >&6 18123fi 18124 18125if test ${RPWD} = "false" 18126then 18127 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5 18128echo "$as_me: error: pwd required but not found" >&2;} 18129 { (exit 1); exit 1; }; } 18130fi 18131 18132# Extract the first word of "ar", so it can be a program name with args. 18133set dummy ar; ac_word=$2 18134echo "$as_me:$LINENO: checking for $ac_word" >&5 18135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18136if test "${ac_cv_path_AR+set}" = set; then 18137 echo $ECHO_N "(cached) $ECHO_C" >&6 18138else 18139 case $AR in 18140 [\\/]* | ?:[\\/]*) 18141 ac_cv_path_AR="$AR" # Let the user override the test with a path. 18142 ;; 18143 *) 18144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18145for as_dir in $PATH 18146do 18147 IFS=$as_save_IFS 18148 test -z "$as_dir" && as_dir=. 18149 for ac_exec_ext in '' $ac_executable_extensions; do 18150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18151 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 18152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18153 break 2 18154 fi 18155done 18156done 18157 18158 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false" 18159 ;; 18160esac 18161fi 18162AR=$ac_cv_path_AR 18163 18164if test -n "$AR"; then 18165 echo "$as_me:$LINENO: result: $AR" >&5 18166echo "${ECHO_T}$AR" >&6 18167else 18168 echo "$as_me:$LINENO: result: no" >&5 18169echo "${ECHO_T}no" >&6 18170fi 18171 18172if test ${AR} = "false" 18173then 18174 { { echo "$as_me:$LINENO: error: ar required but not found" >&5 18175echo "$as_me: error: ar required but not found" >&2;} 18176 { (exit 1); exit 1; }; } 18177fi 18178 18179# Extract the first word of "sed", so it can be a program name with args. 18180set dummy sed; ac_word=$2 18181echo "$as_me:$LINENO: checking for $ac_word" >&5 18182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18183if test "${ac_cv_path_SED+set}" = set; then 18184 echo $ECHO_N "(cached) $ECHO_C" >&6 18185else 18186 case $SED in 18187 [\\/]* | ?:[\\/]*) 18188 ac_cv_path_SED="$SED" # Let the user override the test with a path. 18189 ;; 18190 *) 18191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18192for as_dir in $PATH 18193do 18194 IFS=$as_save_IFS 18195 test -z "$as_dir" && as_dir=. 18196 for ac_exec_ext in '' $ac_executable_extensions; do 18197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18198 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 18199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18200 break 2 18201 fi 18202done 18203done 18204 18205 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false" 18206 ;; 18207esac 18208fi 18209SED=$ac_cv_path_SED 18210 18211if test -n "$SED"; then 18212 echo "$as_me:$LINENO: result: $SED" >&5 18213echo "${ECHO_T}$SED" >&6 18214else 18215 echo "$as_me:$LINENO: result: no" >&5 18216echo "${ECHO_T}no" >&6 18217fi 18218 18219if test ${SED} = "false" 18220then 18221 { { echo "$as_me:$LINENO: error: sed required but not found" >&5 18222echo "$as_me: error: sed required but not found" >&2;} 18223 { (exit 1); exit 1; }; } 18224fi 18225 18226# Extract the first word of "rm", so it can be a program name with args. 18227set dummy rm; ac_word=$2 18228echo "$as_me:$LINENO: checking for $ac_word" >&5 18229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18230if test "${ac_cv_path_RM+set}" = set; then 18231 echo $ECHO_N "(cached) $ECHO_C" >&6 18232else 18233 case $RM in 18234 [\\/]* | ?:[\\/]*) 18235 ac_cv_path_RM="$RM" # Let the user override the test with a path. 18236 ;; 18237 *) 18238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18239for as_dir in $PATH 18240do 18241 IFS=$as_save_IFS 18242 test -z "$as_dir" && as_dir=. 18243 for ac_exec_ext in '' $ac_executable_extensions; do 18244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18245 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 18246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18247 break 2 18248 fi 18249done 18250done 18251 18252 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false" 18253 ;; 18254esac 18255fi 18256RM=$ac_cv_path_RM 18257 18258if test -n "$RM"; then 18259 echo "$as_me:$LINENO: result: $RM" >&5 18260echo "${ECHO_T}$RM" >&6 18261else 18262 echo "$as_me:$LINENO: result: no" >&5 18263echo "${ECHO_T}no" >&6 18264fi 18265 18266if test ${RM} = "false" 18267then 18268 { { echo "$as_me:$LINENO: error: rm required but not found" >&5 18269echo "$as_me: error: rm required but not found" >&2;} 18270 { (exit 1); exit 1; }; } 18271fi 18272 18273# Extract the first word of "echo", so it can be a program name with args. 18274set dummy echo; ac_word=$2 18275echo "$as_me:$LINENO: checking for $ac_word" >&5 18276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18277if test "${ac_cv_path_ECHO+set}" = set; then 18278 echo $ECHO_N "(cached) $ECHO_C" >&6 18279else 18280 case $ECHO in 18281 [\\/]* | ?:[\\/]*) 18282 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 18283 ;; 18284 *) 18285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18286for as_dir in $PATH 18287do 18288 IFS=$as_save_IFS 18289 test -z "$as_dir" && as_dir=. 18290 for ac_exec_ext in '' $ac_executable_extensions; do 18291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18292 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 18293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18294 break 2 18295 fi 18296done 18297done 18298 18299 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false" 18300 ;; 18301esac 18302fi 18303ECHO=$ac_cv_path_ECHO 18304 18305if test -n "$ECHO"; then 18306 echo "$as_me:$LINENO: result: $ECHO" >&5 18307echo "${ECHO_T}$ECHO" >&6 18308else 18309 echo "$as_me:$LINENO: result: no" >&5 18310echo "${ECHO_T}no" >&6 18311fi 18312 18313if test ${ECHO} = "false" 18314then 18315 { { echo "$as_me:$LINENO: error: echo required but not found" >&5 18316echo "$as_me: error: echo required but not found" >&2;} 18317 { (exit 1); exit 1; }; } 18318fi 18319 18320# Extract the first word of "mkdir", so it can be a program name with args. 18321set dummy mkdir; ac_word=$2 18322echo "$as_me:$LINENO: checking for $ac_word" >&5 18323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18324if test "${ac_cv_path_MKDIR+set}" = set; then 18325 echo $ECHO_N "(cached) $ECHO_C" >&6 18326else 18327 case $MKDIR in 18328 [\\/]* | ?:[\\/]*) 18329 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 18330 ;; 18331 *) 18332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18333for as_dir in $PATH 18334do 18335 IFS=$as_save_IFS 18336 test -z "$as_dir" && as_dir=. 18337 for ac_exec_ext in '' $ac_executable_extensions; do 18338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18339 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 18340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18341 break 2 18342 fi 18343done 18344done 18345 18346 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false" 18347 ;; 18348esac 18349fi 18350MKDIR=$ac_cv_path_MKDIR 18351 18352if test -n "$MKDIR"; then 18353 echo "$as_me:$LINENO: result: $MKDIR" >&5 18354echo "${ECHO_T}$MKDIR" >&6 18355else 18356 echo "$as_me:$LINENO: result: no" >&5 18357echo "${ECHO_T}no" >&6 18358fi 18359 18360if test ${MKDIR} = "false" 18361then 18362 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5 18363echo "$as_me: error: mkdir required but not found" >&2;} 18364 { (exit 1); exit 1; }; } 18365fi 18366 18367# Extract the first word of "date", so it can be a program name with args. 18368set dummy date; ac_word=$2 18369echo "$as_me:$LINENO: checking for $ac_word" >&5 18370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18371if test "${ac_cv_path_DATE+set}" = set; then 18372 echo $ECHO_N "(cached) $ECHO_C" >&6 18373else 18374 case $DATE in 18375 [\\/]* | ?:[\\/]*) 18376 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 18377 ;; 18378 *) 18379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18380for as_dir in $PATH 18381do 18382 IFS=$as_save_IFS 18383 test -z "$as_dir" && as_dir=. 18384 for ac_exec_ext in '' $ac_executable_extensions; do 18385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18386 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 18387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18388 break 2 18389 fi 18390done 18391done 18392 18393 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false" 18394 ;; 18395esac 18396fi 18397DATE=$ac_cv_path_DATE 18398 18399if test -n "$DATE"; then 18400 echo "$as_me:$LINENO: result: $DATE" >&5 18401echo "${ECHO_T}$DATE" >&6 18402else 18403 echo "$as_me:$LINENO: result: no" >&5 18404echo "${ECHO_T}no" >&6 18405fi 18406 18407if test ${DATE} = "false" 18408then 18409 { { echo "$as_me:$LINENO: error: date required but not found" >&5 18410echo "$as_me: error: date required but not found" >&2;} 18411 { (exit 1); exit 1; }; } 18412fi 18413 18414# Extract the first word of "mv", so it can be a program name with args. 18415set dummy mv; ac_word=$2 18416echo "$as_me:$LINENO: checking for $ac_word" >&5 18417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18418if test "${ac_cv_path_MV+set}" = set; then 18419 echo $ECHO_N "(cached) $ECHO_C" >&6 18420else 18421 case $MV in 18422 [\\/]* | ?:[\\/]*) 18423 ac_cv_path_MV="$MV" # Let the user override the test with a path. 18424 ;; 18425 *) 18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18427for as_dir in $PATH 18428do 18429 IFS=$as_save_IFS 18430 test -z "$as_dir" && as_dir=. 18431 for ac_exec_ext in '' $ac_executable_extensions; do 18432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18433 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 18434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18435 break 2 18436 fi 18437done 18438done 18439 18440 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false" 18441 ;; 18442esac 18443fi 18444MV=$ac_cv_path_MV 18445 18446if test -n "$MV"; then 18447 echo "$as_me:$LINENO: result: $MV" >&5 18448echo "${ECHO_T}$MV" >&6 18449else 18450 echo "$as_me:$LINENO: result: no" >&5 18451echo "${ECHO_T}no" >&6 18452fi 18453 18454if test ${MV} = "false" 18455then 18456 { { echo "$as_me:$LINENO: error: mv required but not found" >&5 18457echo "$as_me: error: mv required but not found" >&2;} 18458 { (exit 1); exit 1; }; } 18459fi 18460 18461# Extract the first word of "dot", so it can be a program name with args. 18462set dummy dot; ac_word=$2 18463echo "$as_me:$LINENO: checking for $ac_word" >&5 18464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18465if test "${ac_cv_path_DOT+set}" = set; then 18466 echo $ECHO_N "(cached) $ECHO_C" >&6 18467else 18468 case $DOT in 18469 [\\/]* | ?:[\\/]*) 18470 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 18471 ;; 18472 *) 18473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18474for as_dir in $PATH 18475do 18476 IFS=$as_save_IFS 18477 test -z "$as_dir" && as_dir=. 18478 for ac_exec_ext in '' $ac_executable_extensions; do 18479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18480 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 18481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18482 break 2 18483 fi 18484done 18485done 18486 18487 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false" 18488 ;; 18489esac 18490fi 18491DOT=$ac_cv_path_DOT 18492 18493if test -n "$DOT"; then 18494 echo "$as_me:$LINENO: result: $DOT" >&5 18495echo "${ECHO_T}$DOT" >&6 18496else 18497 echo "$as_me:$LINENO: result: no" >&5 18498echo "${ECHO_T}no" >&6 18499fi 18500 18501 18502# Extract the first word of "etags", so it can be a program name with args. 18503set dummy etags; ac_word=$2 18504echo "$as_me:$LINENO: checking for $ac_word" >&5 18505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18506if test "${ac_cv_path_ETAGS+set}" = set; then 18507 echo $ECHO_N "(cached) $ECHO_C" >&6 18508else 18509 case $ETAGS in 18510 [\\/]* | ?:[\\/]*) 18511 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 18512 ;; 18513 *) 18514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18515for as_dir in $PATH 18516do 18517 IFS=$as_save_IFS 18518 test -z "$as_dir" && as_dir=. 18519 for ac_exec_ext in '' $ac_executable_extensions; do 18520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18521 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 18522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18523 break 2 18524 fi 18525done 18526done 18527 18528 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false" 18529 ;; 18530esac 18531fi 18532ETAGS=$ac_cv_path_ETAGS 18533 18534if test -n "$ETAGS"; then 18535 echo "$as_me:$LINENO: result: $ETAGS" >&5 18536echo "${ECHO_T}$ETAGS" >&6 18537else 18538 echo "$as_me:$LINENO: result: no" >&5 18539echo "${ECHO_T}no" >&6 18540fi 18541 18542 18543# Extract the first word of "python", so it can be a program name with args. 18544set dummy python; ac_word=$2 18545echo "$as_me:$LINENO: checking for $ac_word" >&5 18546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18547if test "${ac_cv_path_PYTHON+set}" = set; then 18548 echo $ECHO_N "(cached) $ECHO_C" >&6 18549else 18550 case $PYTHON in 18551 [\\/]* | ?:[\\/]*) 18552 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 18553 ;; 18554 *) 18555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18556for as_dir in $PATH 18557do 18558 IFS=$as_save_IFS 18559 test -z "$as_dir" && as_dir=. 18560 for ac_exec_ext in '' $ac_executable_extensions; do 18561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18562 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 18563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18564 break 2 18565 fi 18566done 18567done 18568 18569 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false" 18570 ;; 18571esac 18572fi 18573PYTHON=$ac_cv_path_PYTHON 18574 18575if test -n "$PYTHON"; then 18576 echo "$as_me:$LINENO: result: $PYTHON" >&5 18577echo "${ECHO_T}$PYTHON" >&6 18578else 18579 echo "$as_me:$LINENO: result: no" >&5 18580echo "${ECHO_T}no" >&6 18581fi 18582 18583if test ${PYTHON} = "false" 18584then 18585 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5 18586echo "$as_me: WARNING: python required but not found" >&2;} 18587fi 18588 18589# Extract the first word of "qmtest", so it can be a program name with args. 18590set dummy qmtest; ac_word=$2 18591echo "$as_me:$LINENO: checking for $ac_word" >&5 18592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18593if test "${ac_cv_path_QMTEST+set}" = set; then 18594 echo $ECHO_N "(cached) $ECHO_C" >&6 18595else 18596 case $QMTEST in 18597 [\\/]* | ?:[\\/]*) 18598 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. 18599 ;; 18600 *) 18601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18602for as_dir in $PATH 18603do 18604 IFS=$as_save_IFS 18605 test -z "$as_dir" && as_dir=. 18606 for ac_exec_ext in '' $ac_executable_extensions; do 18607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18608 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" 18609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18610 break 2 18611 fi 18612done 18613done 18614 18615 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false" 18616 ;; 18617esac 18618fi 18619QMTEST=$ac_cv_path_QMTEST 18620 18621if test -n "$QMTEST"; then 18622 echo "$as_me:$LINENO: result: $QMTEST" >&5 18623echo "${ECHO_T}$QMTEST" >&6 18624else 18625 echo "$as_me:$LINENO: result: no" >&5 18626echo "${ECHO_T}no" >&6 18627fi 18628 18629if test ${QMTEST} = "false" 18630then 18631 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5 18632echo "$as_me: WARNING: qmtest required but not found" >&2;} 18633fi 18634 18635pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` 18636pymajor=`echo $pyversion | cut -d. -f1` 18637pyminor=`echo $pyversion | cut -d. -f2` 18638 18639if test "$pymajor" -ge "2" 18640then 18641 if test "$pymajor" -eq "2" 18642 then 18643 if test "$pyminor" -lt "2" 18644 then 18645 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5 18646echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;} 18647 fi 18648 fi 18649else 18650 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5 18651echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;} 18652fi 18653 18654 18655 18656 18657 18658echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 18659echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 18660if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 18661 echo $ECHO_N "(cached) $ECHO_C" >&6 18662else 18663 ac_check_lib_save_LIBS=$LIBS 18664LIBS="-lelf $LIBS" 18665cat >conftest.$ac_ext <<_ACEOF 18666#line $LINENO "configure" 18667/* confdefs.h. */ 18668_ACEOF 18669cat confdefs.h >>conftest.$ac_ext 18670cat >>conftest.$ac_ext <<_ACEOF 18671/* end confdefs.h. */ 18672 18673/* Override any gcc2 internal prototype to avoid an error. */ 18674#ifdef __cplusplus 18675extern "C" 18676#endif 18677/* We use char because int might match the return type of a gcc2 18678 builtin and then its argument prototype would still apply. */ 18679char elf_begin (); 18680int 18681main () 18682{ 18683elf_begin (); 18684 ; 18685 return 0; 18686} 18687_ACEOF 18688rm -f conftest.$ac_objext conftest$ac_exeext 18689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18690 (eval $ac_link) 2>&5 18691 ac_status=$? 18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18693 (exit $ac_status); } && 18694 { ac_try='test -s conftest$ac_exeext' 18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18696 (eval $ac_try) 2>&5 18697 ac_status=$? 18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18699 (exit $ac_status); }; }; then 18700 ac_cv_lib_elf_elf_begin=yes 18701else 18702 echo "$as_me: failed program was:" >&5 18703sed 's/^/| /' conftest.$ac_ext >&5 18704 18705ac_cv_lib_elf_elf_begin=no 18706fi 18707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18708LIBS=$ac_check_lib_save_LIBS 18709fi 18710echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 18711echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 18712if test $ac_cv_lib_elf_elf_begin = yes; then 18713 cat >>confdefs.h <<_ACEOF 18714#define HAVE_LIBELF 1 18715_ACEOF 18716 18717 LIBS="-lelf $LIBS" 18718 18719fi 18720 18721 18722echo "$as_me:$LINENO: checking for library containing dlopen" >&5 18723echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 18724if test "${ac_cv_search_dlopen+set}" = set; then 18725 echo $ECHO_N "(cached) $ECHO_C" >&6 18726else 18727 ac_func_search_save_LIBS=$LIBS 18728ac_cv_search_dlopen=no 18729cat >conftest.$ac_ext <<_ACEOF 18730#line $LINENO "configure" 18731/* confdefs.h. */ 18732_ACEOF 18733cat confdefs.h >>conftest.$ac_ext 18734cat >>conftest.$ac_ext <<_ACEOF 18735/* end confdefs.h. */ 18736 18737/* Override any gcc2 internal prototype to avoid an error. */ 18738#ifdef __cplusplus 18739extern "C" 18740#endif 18741/* We use char because int might match the return type of a gcc2 18742 builtin and then its argument prototype would still apply. */ 18743char dlopen (); 18744int 18745main () 18746{ 18747dlopen (); 18748 ; 18749 return 0; 18750} 18751_ACEOF 18752rm -f conftest.$ac_objext conftest$ac_exeext 18753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18754 (eval $ac_link) 2>&5 18755 ac_status=$? 18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18757 (exit $ac_status); } && 18758 { ac_try='test -s conftest$ac_exeext' 18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18760 (eval $ac_try) 2>&5 18761 ac_status=$? 18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18763 (exit $ac_status); }; }; then 18764 ac_cv_search_dlopen="none required" 18765else 18766 echo "$as_me: failed program was:" >&5 18767sed 's/^/| /' conftest.$ac_ext >&5 18768 18769fi 18770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18771if test "$ac_cv_search_dlopen" = no; then 18772 for ac_lib in dl; do 18773 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18774 cat >conftest.$ac_ext <<_ACEOF 18775#line $LINENO "configure" 18776/* confdefs.h. */ 18777_ACEOF 18778cat confdefs.h >>conftest.$ac_ext 18779cat >>conftest.$ac_ext <<_ACEOF 18780/* end confdefs.h. */ 18781 18782/* Override any gcc2 internal prototype to avoid an error. */ 18783#ifdef __cplusplus 18784extern "C" 18785#endif 18786/* We use char because int might match the return type of a gcc2 18787 builtin and then its argument prototype would still apply. */ 18788char dlopen (); 18789int 18790main () 18791{ 18792dlopen (); 18793 ; 18794 return 0; 18795} 18796_ACEOF 18797rm -f conftest.$ac_objext conftest$ac_exeext 18798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18799 (eval $ac_link) 2>&5 18800 ac_status=$? 18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18802 (exit $ac_status); } && 18803 { ac_try='test -s conftest$ac_exeext' 18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18805 (eval $ac_try) 2>&5 18806 ac_status=$? 18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18808 (exit $ac_status); }; }; then 18809 ac_cv_search_dlopen="-l$ac_lib" 18810break 18811else 18812 echo "$as_me: failed program was:" >&5 18813sed 's/^/| /' conftest.$ac_ext >&5 18814 18815fi 18816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18817 done 18818fi 18819LIBS=$ac_func_search_save_LIBS 18820fi 18821echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 18822echo "${ECHO_T}$ac_cv_search_dlopen" >&6 18823if test "$ac_cv_search_dlopen" != no; then 18824 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" 18825 18826cat >>confdefs.h <<\_ACEOF 18827#define HAVE_DLOPEN 1 18828_ACEOF 18829 18830else 18831 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 18832echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 18833fi 18834 18835 18836echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 18837echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 18838if test "${ac_cv_search_mallinfo+set}" = set; then 18839 echo $ECHO_N "(cached) $ECHO_C" >&6 18840else 18841 ac_func_search_save_LIBS=$LIBS 18842ac_cv_search_mallinfo=no 18843cat >conftest.$ac_ext <<_ACEOF 18844#line $LINENO "configure" 18845/* confdefs.h. */ 18846_ACEOF 18847cat confdefs.h >>conftest.$ac_ext 18848cat >>conftest.$ac_ext <<_ACEOF 18849/* end confdefs.h. */ 18850 18851/* Override any gcc2 internal prototype to avoid an error. */ 18852#ifdef __cplusplus 18853extern "C" 18854#endif 18855/* We use char because int might match the return type of a gcc2 18856 builtin and then its argument prototype would still apply. */ 18857char mallinfo (); 18858int 18859main () 18860{ 18861mallinfo (); 18862 ; 18863 return 0; 18864} 18865_ACEOF 18866rm -f conftest.$ac_objext conftest$ac_exeext 18867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18868 (eval $ac_link) 2>&5 18869 ac_status=$? 18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18871 (exit $ac_status); } && 18872 { ac_try='test -s conftest$ac_exeext' 18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18874 (eval $ac_try) 2>&5 18875 ac_status=$? 18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18877 (exit $ac_status); }; }; then 18878 ac_cv_search_mallinfo="none required" 18879else 18880 echo "$as_me: failed program was:" >&5 18881sed 's/^/| /' conftest.$ac_ext >&5 18882 18883fi 18884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18885if test "$ac_cv_search_mallinfo" = no; then 18886 for ac_lib in malloc; do 18887 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18888 cat >conftest.$ac_ext <<_ACEOF 18889#line $LINENO "configure" 18890/* confdefs.h. */ 18891_ACEOF 18892cat confdefs.h >>conftest.$ac_ext 18893cat >>conftest.$ac_ext <<_ACEOF 18894/* end confdefs.h. */ 18895 18896/* Override any gcc2 internal prototype to avoid an error. */ 18897#ifdef __cplusplus 18898extern "C" 18899#endif 18900/* We use char because int might match the return type of a gcc2 18901 builtin and then its argument prototype would still apply. */ 18902char mallinfo (); 18903int 18904main () 18905{ 18906mallinfo (); 18907 ; 18908 return 0; 18909} 18910_ACEOF 18911rm -f conftest.$ac_objext conftest$ac_exeext 18912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18913 (eval $ac_link) 2>&5 18914 ac_status=$? 18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18916 (exit $ac_status); } && 18917 { ac_try='test -s conftest$ac_exeext' 18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18919 (eval $ac_try) 2>&5 18920 ac_status=$? 18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18922 (exit $ac_status); }; }; then 18923 ac_cv_search_mallinfo="-l$ac_lib" 18924break 18925else 18926 echo "$as_me: failed program was:" >&5 18927sed 's/^/| /' conftest.$ac_ext >&5 18928 18929fi 18930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18931 done 18932fi 18933LIBS=$ac_func_search_save_LIBS 18934fi 18935echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 18936echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 18937if test "$ac_cv_search_mallinfo" != no; then 18938 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" 18939 18940cat >>confdefs.h <<\_ACEOF 18941#define HAVE_MALLINFO 1 18942_ACEOF 18943 18944fi 18945 18946 18947echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 18948echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 18949if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 18950 echo $ECHO_N "(cached) $ECHO_C" >&6 18951else 18952 ac_func_search_save_LIBS=$LIBS 18953ac_cv_search_pthread_mutex_lock=no 18954cat >conftest.$ac_ext <<_ACEOF 18955#line $LINENO "configure" 18956/* confdefs.h. */ 18957_ACEOF 18958cat confdefs.h >>conftest.$ac_ext 18959cat >>conftest.$ac_ext <<_ACEOF 18960/* end confdefs.h. */ 18961 18962/* Override any gcc2 internal prototype to avoid an error. */ 18963#ifdef __cplusplus 18964extern "C" 18965#endif 18966/* We use char because int might match the return type of a gcc2 18967 builtin and then its argument prototype would still apply. */ 18968char pthread_mutex_lock (); 18969int 18970main () 18971{ 18972pthread_mutex_lock (); 18973 ; 18974 return 0; 18975} 18976_ACEOF 18977rm -f conftest.$ac_objext conftest$ac_exeext 18978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18979 (eval $ac_link) 2>&5 18980 ac_status=$? 18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18982 (exit $ac_status); } && 18983 { ac_try='test -s conftest$ac_exeext' 18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18985 (eval $ac_try) 2>&5 18986 ac_status=$? 18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18988 (exit $ac_status); }; }; then 18989 ac_cv_search_pthread_mutex_lock="none required" 18990else 18991 echo "$as_me: failed program was:" >&5 18992sed 's/^/| /' conftest.$ac_ext >&5 18993 18994fi 18995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18996if test "$ac_cv_search_pthread_mutex_lock" = no; then 18997 for ac_lib in pthread; do 18998 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18999 cat >conftest.$ac_ext <<_ACEOF 19000#line $LINENO "configure" 19001/* confdefs.h. */ 19002_ACEOF 19003cat confdefs.h >>conftest.$ac_ext 19004cat >>conftest.$ac_ext <<_ACEOF 19005/* end confdefs.h. */ 19006 19007/* Override any gcc2 internal prototype to avoid an error. */ 19008#ifdef __cplusplus 19009extern "C" 19010#endif 19011/* We use char because int might match the return type of a gcc2 19012 builtin and then its argument prototype would still apply. */ 19013char pthread_mutex_lock (); 19014int 19015main () 19016{ 19017pthread_mutex_lock (); 19018 ; 19019 return 0; 19020} 19021_ACEOF 19022rm -f conftest.$ac_objext conftest$ac_exeext 19023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19024 (eval $ac_link) 2>&5 19025 ac_status=$? 19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19027 (exit $ac_status); } && 19028 { ac_try='test -s conftest$ac_exeext' 19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19030 (eval $ac_try) 2>&5 19031 ac_status=$? 19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19033 (exit $ac_status); }; }; then 19034 ac_cv_search_pthread_mutex_lock="-l$ac_lib" 19035break 19036else 19037 echo "$as_me: failed program was:" >&5 19038sed 's/^/| /' conftest.$ac_ext >&5 19039 19040fi 19041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19042 done 19043fi 19044LIBS=$ac_func_search_save_LIBS 19045fi 19046echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 19047echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 19048if test "$ac_cv_search_pthread_mutex_lock" != no; then 19049 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" 19050 19051cat >>confdefs.h <<\_ACEOF 19052#define HAVE_PTHREAD_MUTEX_LOCK 1 19053_ACEOF 19054 19055fi 19056 19057 19058 19059echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19060echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19061if test "${ac_cv_header_stdc+set}" = set; then 19062 echo $ECHO_N "(cached) $ECHO_C" >&6 19063else 19064 cat >conftest.$ac_ext <<_ACEOF 19065#line $LINENO "configure" 19066/* confdefs.h. */ 19067_ACEOF 19068cat confdefs.h >>conftest.$ac_ext 19069cat >>conftest.$ac_ext <<_ACEOF 19070/* end confdefs.h. */ 19071#include <stdlib.h> 19072#include <stdarg.h> 19073#include <string.h> 19074#include <float.h> 19075 19076int 19077main () 19078{ 19079 19080 ; 19081 return 0; 19082} 19083_ACEOF 19084rm -f conftest.$ac_objext 19085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19086 (eval $ac_compile) 2>&5 19087 ac_status=$? 19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19089 (exit $ac_status); } && 19090 { ac_try='test -s conftest.$ac_objext' 19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19092 (eval $ac_try) 2>&5 19093 ac_status=$? 19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19095 (exit $ac_status); }; }; then 19096 ac_cv_header_stdc=yes 19097else 19098 echo "$as_me: failed program was:" >&5 19099sed 's/^/| /' conftest.$ac_ext >&5 19100 19101ac_cv_header_stdc=no 19102fi 19103rm -f conftest.$ac_objext conftest.$ac_ext 19104 19105if test $ac_cv_header_stdc = yes; then 19106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19107 cat >conftest.$ac_ext <<_ACEOF 19108#line $LINENO "configure" 19109/* confdefs.h. */ 19110_ACEOF 19111cat confdefs.h >>conftest.$ac_ext 19112cat >>conftest.$ac_ext <<_ACEOF 19113/* end confdefs.h. */ 19114#include <string.h> 19115 19116_ACEOF 19117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19118 $EGREP "memchr" >/dev/null 2>&1; then 19119 : 19120else 19121 ac_cv_header_stdc=no 19122fi 19123rm -f conftest* 19124 19125fi 19126 19127if test $ac_cv_header_stdc = yes; then 19128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19129 cat >conftest.$ac_ext <<_ACEOF 19130#line $LINENO "configure" 19131/* confdefs.h. */ 19132_ACEOF 19133cat confdefs.h >>conftest.$ac_ext 19134cat >>conftest.$ac_ext <<_ACEOF 19135/* end confdefs.h. */ 19136#include <stdlib.h> 19137 19138_ACEOF 19139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19140 $EGREP "free" >/dev/null 2>&1; then 19141 : 19142else 19143 ac_cv_header_stdc=no 19144fi 19145rm -f conftest* 19146 19147fi 19148 19149if test $ac_cv_header_stdc = yes; then 19150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19151 if test "$cross_compiling" = yes; then 19152 : 19153else 19154 cat >conftest.$ac_ext <<_ACEOF 19155#line $LINENO "configure" 19156/* confdefs.h. */ 19157_ACEOF 19158cat confdefs.h >>conftest.$ac_ext 19159cat >>conftest.$ac_ext <<_ACEOF 19160/* end confdefs.h. */ 19161#include <ctype.h> 19162#if ((' ' & 0x0FF) == 0x020) 19163# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19164# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19165#else 19166# define ISLOWER(c) \ 19167 (('a' <= (c) && (c) <= 'i') \ 19168 || ('j' <= (c) && (c) <= 'r') \ 19169 || ('s' <= (c) && (c) <= 'z')) 19170# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19171#endif 19172 19173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19174int 19175main () 19176{ 19177 int i; 19178 for (i = 0; i < 256; i++) 19179 if (XOR (islower (i), ISLOWER (i)) 19180 || toupper (i) != TOUPPER (i)) 19181 exit(2); 19182 exit (0); 19183} 19184_ACEOF 19185rm -f conftest$ac_exeext 19186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19187 (eval $ac_link) 2>&5 19188 ac_status=$? 19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19192 (eval $ac_try) 2>&5 19193 ac_status=$? 19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19195 (exit $ac_status); }; }; then 19196 : 19197else 19198 echo "$as_me: program exited with status $ac_status" >&5 19199echo "$as_me: failed program was:" >&5 19200sed 's/^/| /' conftest.$ac_ext >&5 19201 19202( exit $ac_status ) 19203ac_cv_header_stdc=no 19204fi 19205rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19206fi 19207fi 19208fi 19209echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19210echo "${ECHO_T}$ac_cv_header_stdc" >&6 19211if test $ac_cv_header_stdc = yes; then 19212 19213cat >>confdefs.h <<\_ACEOF 19214#define STDC_HEADERS 1 19215_ACEOF 19216 19217fi 19218 19219echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 19220echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 19221if test "${ac_cv_header_sys_wait_h+set}" = set; then 19222 echo $ECHO_N "(cached) $ECHO_C" >&6 19223else 19224 cat >conftest.$ac_ext <<_ACEOF 19225#line $LINENO "configure" 19226/* confdefs.h. */ 19227_ACEOF 19228cat confdefs.h >>conftest.$ac_ext 19229cat >>conftest.$ac_ext <<_ACEOF 19230/* end confdefs.h. */ 19231#include <sys/types.h> 19232#include <sys/wait.h> 19233#ifndef WEXITSTATUS 19234# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 19235#endif 19236#ifndef WIFEXITED 19237# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 19238#endif 19239 19240int 19241main () 19242{ 19243 int s; 19244 wait (&s); 19245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 19246 ; 19247 return 0; 19248} 19249_ACEOF 19250rm -f conftest.$ac_objext 19251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19252 (eval $ac_compile) 2>&5 19253 ac_status=$? 19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19255 (exit $ac_status); } && 19256 { ac_try='test -s conftest.$ac_objext' 19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19258 (eval $ac_try) 2>&5 19259 ac_status=$? 19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19261 (exit $ac_status); }; }; then 19262 ac_cv_header_sys_wait_h=yes 19263else 19264 echo "$as_me: failed program was:" >&5 19265sed 's/^/| /' conftest.$ac_ext >&5 19266 19267ac_cv_header_sys_wait_h=no 19268fi 19269rm -f conftest.$ac_objext conftest.$ac_ext 19270fi 19271echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 19272echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 19273if test $ac_cv_header_sys_wait_h = yes; then 19274 19275cat >>confdefs.h <<\_ACEOF 19276#define HAVE_SYS_WAIT_H 1 19277_ACEOF 19278 19279fi 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h 19291do 19292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19293if eval "test \"\${$as_ac_Header+set}\" = set"; then 19294 echo "$as_me:$LINENO: checking for $ac_header" >&5 19295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19296if eval "test \"\${$as_ac_Header+set}\" = set"; then 19297 echo $ECHO_N "(cached) $ECHO_C" >&6 19298fi 19299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19301else 19302 # Is the header compilable? 19303echo "$as_me:$LINENO: checking $ac_header usability" >&5 19304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19305cat >conftest.$ac_ext <<_ACEOF 19306#line $LINENO "configure" 19307/* confdefs.h. */ 19308_ACEOF 19309cat confdefs.h >>conftest.$ac_ext 19310cat >>conftest.$ac_ext <<_ACEOF 19311/* end confdefs.h. */ 19312$ac_includes_default 19313#include <$ac_header> 19314_ACEOF 19315rm -f conftest.$ac_objext 19316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19317 (eval $ac_compile) 2>&5 19318 ac_status=$? 19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19320 (exit $ac_status); } && 19321 { ac_try='test -s conftest.$ac_objext' 19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19323 (eval $ac_try) 2>&5 19324 ac_status=$? 19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19326 (exit $ac_status); }; }; then 19327 ac_header_compiler=yes 19328else 19329 echo "$as_me: failed program was:" >&5 19330sed 's/^/| /' conftest.$ac_ext >&5 19331 19332ac_header_compiler=no 19333fi 19334rm -f conftest.$ac_objext conftest.$ac_ext 19335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19336echo "${ECHO_T}$ac_header_compiler" >&6 19337 19338# Is the header present? 19339echo "$as_me:$LINENO: checking $ac_header presence" >&5 19340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19341cat >conftest.$ac_ext <<_ACEOF 19342#line $LINENO "configure" 19343/* confdefs.h. */ 19344_ACEOF 19345cat confdefs.h >>conftest.$ac_ext 19346cat >>conftest.$ac_ext <<_ACEOF 19347/* end confdefs.h. */ 19348#include <$ac_header> 19349_ACEOF 19350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19352 ac_status=$? 19353 grep -v '^ *+' conftest.er1 >conftest.err 19354 rm -f conftest.er1 19355 cat conftest.err >&5 19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19357 (exit $ac_status); } >/dev/null; then 19358 if test -s conftest.err; then 19359 ac_cpp_err=$ac_c_preproc_warn_flag 19360 else 19361 ac_cpp_err= 19362 fi 19363else 19364 ac_cpp_err=yes 19365fi 19366if test -z "$ac_cpp_err"; then 19367 ac_header_preproc=yes 19368else 19369 echo "$as_me: failed program was:" >&5 19370sed 's/^/| /' conftest.$ac_ext >&5 19371 19372 ac_header_preproc=no 19373fi 19374rm -f conftest.err conftest.$ac_ext 19375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19376echo "${ECHO_T}$ac_header_preproc" >&6 19377 19378# So? What about this header? 19379case $ac_header_compiler:$ac_header_preproc in 19380 yes:no ) 19381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19385 ( 19386 cat <<\_ASBOX 19387## ------------------------------------ ## 19388## Report this to bug-autoconf@gnu.org. ## 19389## ------------------------------------ ## 19390_ASBOX 19391 ) | 19392 sed "s/^/$as_me: WARNING: /" >&2 19393 ;; 19394 no:yes ) 19395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19398echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19401 ( 19402 cat <<\_ASBOX 19403## ------------------------------------ ## 19404## Report this to bug-autoconf@gnu.org. ## 19405## ------------------------------------ ## 19406_ASBOX 19407 ) | 19408 sed "s/^/$as_me: WARNING: /" >&2 19409 ;; 19410esac 19411echo "$as_me:$LINENO: checking for $ac_header" >&5 19412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19413if eval "test \"\${$as_ac_Header+set}\" = set"; then 19414 echo $ECHO_N "(cached) $ECHO_C" >&6 19415else 19416 eval "$as_ac_Header=$ac_header_preproc" 19417fi 19418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19420 19421fi 19422if test `eval echo '${'$as_ac_Header'}'` = yes; then 19423 cat >>confdefs.h <<_ACEOF 19424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19425_ACEOF 19426 19427fi 19428 19429done 19430 19431 19432 19433 19434 19435for ac_header in malloc.h sys/mman.h sys/resource.h 19436do 19437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19438if eval "test \"\${$as_ac_Header+set}\" = set"; then 19439 echo "$as_me:$LINENO: checking for $ac_header" >&5 19440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19441if eval "test \"\${$as_ac_Header+set}\" = set"; then 19442 echo $ECHO_N "(cached) $ECHO_C" >&6 19443fi 19444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19446else 19447 # Is the header compilable? 19448echo "$as_me:$LINENO: checking $ac_header usability" >&5 19449echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default 19458#include <$ac_header> 19459_ACEOF 19460rm -f conftest.$ac_objext 19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19462 (eval $ac_compile) 2>&5 19463 ac_status=$? 19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19465 (exit $ac_status); } && 19466 { ac_try='test -s conftest.$ac_objext' 19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19468 (eval $ac_try) 2>&5 19469 ac_status=$? 19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19471 (exit $ac_status); }; }; then 19472 ac_header_compiler=yes 19473else 19474 echo "$as_me: failed program was:" >&5 19475sed 's/^/| /' conftest.$ac_ext >&5 19476 19477ac_header_compiler=no 19478fi 19479rm -f conftest.$ac_objext conftest.$ac_ext 19480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19481echo "${ECHO_T}$ac_header_compiler" >&6 19482 19483# Is the header present? 19484echo "$as_me:$LINENO: checking $ac_header presence" >&5 19485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19486cat >conftest.$ac_ext <<_ACEOF 19487#line $LINENO "configure" 19488/* confdefs.h. */ 19489_ACEOF 19490cat confdefs.h >>conftest.$ac_ext 19491cat >>conftest.$ac_ext <<_ACEOF 19492/* end confdefs.h. */ 19493#include <$ac_header> 19494_ACEOF 19495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19497 ac_status=$? 19498 grep -v '^ *+' conftest.er1 >conftest.err 19499 rm -f conftest.er1 19500 cat conftest.err >&5 19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19502 (exit $ac_status); } >/dev/null; then 19503 if test -s conftest.err; then 19504 ac_cpp_err=$ac_c_preproc_warn_flag 19505 else 19506 ac_cpp_err= 19507 fi 19508else 19509 ac_cpp_err=yes 19510fi 19511if test -z "$ac_cpp_err"; then 19512 ac_header_preproc=yes 19513else 19514 echo "$as_me: failed program was:" >&5 19515sed 's/^/| /' conftest.$ac_ext >&5 19516 19517 ac_header_preproc=no 19518fi 19519rm -f conftest.err conftest.$ac_ext 19520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19521echo "${ECHO_T}$ac_header_preproc" >&6 19522 19523# So? What about this header? 19524case $ac_header_compiler:$ac_header_preproc in 19525 yes:no ) 19526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19530 ( 19531 cat <<\_ASBOX 19532## ------------------------------------ ## 19533## Report this to bug-autoconf@gnu.org. ## 19534## ------------------------------------ ## 19535_ASBOX 19536 ) | 19537 sed "s/^/$as_me: WARNING: /" >&2 19538 ;; 19539 no:yes ) 19540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19546 ( 19547 cat <<\_ASBOX 19548## ------------------------------------ ## 19549## Report this to bug-autoconf@gnu.org. ## 19550## ------------------------------------ ## 19551_ASBOX 19552 ) | 19553 sed "s/^/$as_me: WARNING: /" >&2 19554 ;; 19555esac 19556echo "$as_me:$LINENO: checking for $ac_header" >&5 19557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19558if eval "test \"\${$as_ac_Header+set}\" = set"; then 19559 echo $ECHO_N "(cached) $ECHO_C" >&6 19560else 19561 eval "$as_ac_Header=$ac_header_preproc" 19562fi 19563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19565 19566fi 19567if test `eval echo '${'$as_ac_Header'}'` = yes; then 19568 cat >>confdefs.h <<_ACEOF 19569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19570_ACEOF 19571 19572fi 19573 19574done 19575 19576 19577 19578 19579for ac_header in dlfcn.h link.h 19580do 19581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19582if eval "test \"\${$as_ac_Header+set}\" = set"; then 19583 echo "$as_me:$LINENO: checking for $ac_header" >&5 19584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19585if eval "test \"\${$as_ac_Header+set}\" = set"; then 19586 echo $ECHO_N "(cached) $ECHO_C" >&6 19587fi 19588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19590else 19591 # Is the header compilable? 19592echo "$as_me:$LINENO: checking $ac_header usability" >&5 19593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19594cat >conftest.$ac_ext <<_ACEOF 19595#line $LINENO "configure" 19596/* confdefs.h. */ 19597_ACEOF 19598cat confdefs.h >>conftest.$ac_ext 19599cat >>conftest.$ac_ext <<_ACEOF 19600/* end confdefs.h. */ 19601$ac_includes_default 19602#include <$ac_header> 19603_ACEOF 19604rm -f conftest.$ac_objext 19605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19606 (eval $ac_compile) 2>&5 19607 ac_status=$? 19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19609 (exit $ac_status); } && 19610 { ac_try='test -s conftest.$ac_objext' 19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19612 (eval $ac_try) 2>&5 19613 ac_status=$? 19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19615 (exit $ac_status); }; }; then 19616 ac_header_compiler=yes 19617else 19618 echo "$as_me: failed program was:" >&5 19619sed 's/^/| /' conftest.$ac_ext >&5 19620 19621ac_header_compiler=no 19622fi 19623rm -f conftest.$ac_objext conftest.$ac_ext 19624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19625echo "${ECHO_T}$ac_header_compiler" >&6 19626 19627# Is the header present? 19628echo "$as_me:$LINENO: checking $ac_header presence" >&5 19629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19630cat >conftest.$ac_ext <<_ACEOF 19631#line $LINENO "configure" 19632/* confdefs.h. */ 19633_ACEOF 19634cat confdefs.h >>conftest.$ac_ext 19635cat >>conftest.$ac_ext <<_ACEOF 19636/* end confdefs.h. */ 19637#include <$ac_header> 19638_ACEOF 19639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19641 ac_status=$? 19642 grep -v '^ *+' conftest.er1 >conftest.err 19643 rm -f conftest.er1 19644 cat conftest.err >&5 19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19646 (exit $ac_status); } >/dev/null; then 19647 if test -s conftest.err; then 19648 ac_cpp_err=$ac_c_preproc_warn_flag 19649 else 19650 ac_cpp_err= 19651 fi 19652else 19653 ac_cpp_err=yes 19654fi 19655if test -z "$ac_cpp_err"; then 19656 ac_header_preproc=yes 19657else 19658 echo "$as_me: failed program was:" >&5 19659sed 's/^/| /' conftest.$ac_ext >&5 19660 19661 ac_header_preproc=no 19662fi 19663rm -f conftest.err conftest.$ac_ext 19664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19665echo "${ECHO_T}$ac_header_preproc" >&6 19666 19667# So? What about this header? 19668case $ac_header_compiler:$ac_header_preproc in 19669 yes:no ) 19670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19674 ( 19675 cat <<\_ASBOX 19676## ------------------------------------ ## 19677## Report this to bug-autoconf@gnu.org. ## 19678## ------------------------------------ ## 19679_ASBOX 19680 ) | 19681 sed "s/^/$as_me: WARNING: /" >&2 19682 ;; 19683 no:yes ) 19684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19690 ( 19691 cat <<\_ASBOX 19692## ------------------------------------ ## 19693## Report this to bug-autoconf@gnu.org. ## 19694## ------------------------------------ ## 19695_ASBOX 19696 ) | 19697 sed "s/^/$as_me: WARNING: /" >&2 19698 ;; 19699esac 19700echo "$as_me:$LINENO: checking for $ac_header" >&5 19701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19702if eval "test \"\${$as_ac_Header+set}\" = set"; then 19703 echo $ECHO_N "(cached) $ECHO_C" >&6 19704else 19705 eval "$as_ac_Header=$ac_header_preproc" 19706fi 19707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19709 19710fi 19711if test `eval echo '${'$as_ac_Header'}'` = yes; then 19712 cat >>confdefs.h <<_ACEOF 19713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19714_ACEOF 19715 19716fi 19717 19718done 19719 19720 19721 19722echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 19723echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 19724if test "${ac_cv_c_const+set}" = set; then 19725 echo $ECHO_N "(cached) $ECHO_C" >&6 19726else 19727 cat >conftest.$ac_ext <<_ACEOF 19728#line $LINENO "configure" 19729/* confdefs.h. */ 19730_ACEOF 19731cat confdefs.h >>conftest.$ac_ext 19732cat >>conftest.$ac_ext <<_ACEOF 19733/* end confdefs.h. */ 19734 19735int 19736main () 19737{ 19738/* FIXME: Include the comments suggested by Paul. */ 19739#ifndef __cplusplus 19740 /* Ultrix mips cc rejects this. */ 19741 typedef int charset[2]; 19742 const charset x; 19743 /* SunOS 4.1.1 cc rejects this. */ 19744 char const *const *ccp; 19745 char **p; 19746 /* NEC SVR4.0.2 mips cc rejects this. */ 19747 struct point {int x, y;}; 19748 static struct point const zero = {0,0}; 19749 /* AIX XL C 1.02.0.0 rejects this. 19750 It does not let you subtract one const X* pointer from another in 19751 an arm of an if-expression whose if-part is not a constant 19752 expression */ 19753 const char *g = "string"; 19754 ccp = &g + (g ? g-g : 0); 19755 /* HPUX 7.0 cc rejects these. */ 19756 ++ccp; 19757 p = (char**) ccp; 19758 ccp = (char const *const *) p; 19759 { /* SCO 3.2v4 cc rejects this. */ 19760 char *t; 19761 char const *s = 0 ? (char *) 0 : (char const *) 0; 19762 19763 *t++ = 0; 19764 } 19765 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19766 int x[] = {25, 17}; 19767 const int *foo = &x[0]; 19768 ++foo; 19769 } 19770 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19771 typedef const int *iptr; 19772 iptr p = 0; 19773 ++p; 19774 } 19775 { /* AIX XL C 1.02.0.0 rejects this saying 19776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19777 struct s { int j; const int *ap[3]; }; 19778 struct s *b; b->j = 5; 19779 } 19780 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19781 const int foo = 10; 19782 } 19783#endif 19784 19785 ; 19786 return 0; 19787} 19788_ACEOF 19789rm -f conftest.$ac_objext 19790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19791 (eval $ac_compile) 2>&5 19792 ac_status=$? 19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19794 (exit $ac_status); } && 19795 { ac_try='test -s conftest.$ac_objext' 19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19797 (eval $ac_try) 2>&5 19798 ac_status=$? 19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19800 (exit $ac_status); }; }; then 19801 ac_cv_c_const=yes 19802else 19803 echo "$as_me: failed program was:" >&5 19804sed 's/^/| /' conftest.$ac_ext >&5 19805 19806ac_cv_c_const=no 19807fi 19808rm -f conftest.$ac_objext conftest.$ac_ext 19809fi 19810echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 19811echo "${ECHO_T}$ac_cv_c_const" >&6 19812if test $ac_cv_c_const = no; then 19813 19814cat >>confdefs.h <<\_ACEOF 19815#define const 19816_ACEOF 19817 19818fi 19819 19820echo "$as_me:$LINENO: checking for inline" >&5 19821echo $ECHO_N "checking for inline... $ECHO_C" >&6 19822if test "${ac_cv_c_inline+set}" = set; then 19823 echo $ECHO_N "(cached) $ECHO_C" >&6 19824else 19825 ac_cv_c_inline=no 19826for ac_kw in inline __inline__ __inline; do 19827 cat >conftest.$ac_ext <<_ACEOF 19828#line $LINENO "configure" 19829/* confdefs.h. */ 19830_ACEOF 19831cat confdefs.h >>conftest.$ac_ext 19832cat >>conftest.$ac_ext <<_ACEOF 19833/* end confdefs.h. */ 19834#ifndef __cplusplus 19835typedef int foo_t; 19836static $ac_kw foo_t static_foo () {return 0; } 19837$ac_kw foo_t foo () {return 0; } 19838#endif 19839 19840_ACEOF 19841rm -f conftest.$ac_objext 19842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19843 (eval $ac_compile) 2>&5 19844 ac_status=$? 19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19846 (exit $ac_status); } && 19847 { ac_try='test -s conftest.$ac_objext' 19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19849 (eval $ac_try) 2>&5 19850 ac_status=$? 19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19852 (exit $ac_status); }; }; then 19853 ac_cv_c_inline=$ac_kw; break 19854else 19855 echo "$as_me: failed program was:" >&5 19856sed 's/^/| /' conftest.$ac_ext >&5 19857 19858fi 19859rm -f conftest.$ac_objext conftest.$ac_ext 19860done 19861 19862fi 19863echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 19864echo "${ECHO_T}$ac_cv_c_inline" >&6 19865case $ac_cv_c_inline in 19866 inline | yes) ;; 19867 no) 19868cat >>confdefs.h <<\_ACEOF 19869#define inline 19870_ACEOF 19871 ;; 19872 *) cat >>confdefs.h <<_ACEOF 19873#define inline $ac_cv_c_inline 19874_ACEOF 19875 ;; 19876esac 19877 19878 19879echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 19880echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 19881if test "${ac_cv_c_bigendian+set}" = set; then 19882 echo $ECHO_N "(cached) $ECHO_C" >&6 19883else 19884 # See if sys/param.h defines the BYTE_ORDER macro. 19885cat >conftest.$ac_ext <<_ACEOF 19886#line $LINENO "configure" 19887/* confdefs.h. */ 19888_ACEOF 19889cat confdefs.h >>conftest.$ac_ext 19890cat >>conftest.$ac_ext <<_ACEOF 19891/* end confdefs.h. */ 19892#include <sys/types.h> 19893#include <sys/param.h> 19894 19895int 19896main () 19897{ 19898#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 19899 bogus endian macros 19900#endif 19901 19902 ; 19903 return 0; 19904} 19905_ACEOF 19906rm -f conftest.$ac_objext 19907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19908 (eval $ac_compile) 2>&5 19909 ac_status=$? 19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19911 (exit $ac_status); } && 19912 { ac_try='test -s conftest.$ac_objext' 19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19914 (eval $ac_try) 2>&5 19915 ac_status=$? 19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19917 (exit $ac_status); }; }; then 19918 # It does; now see whether it defined to BIG_ENDIAN or not. 19919cat >conftest.$ac_ext <<_ACEOF 19920#line $LINENO "configure" 19921/* confdefs.h. */ 19922_ACEOF 19923cat confdefs.h >>conftest.$ac_ext 19924cat >>conftest.$ac_ext <<_ACEOF 19925/* end confdefs.h. */ 19926#include <sys/types.h> 19927#include <sys/param.h> 19928 19929int 19930main () 19931{ 19932#if BYTE_ORDER != BIG_ENDIAN 19933 not big endian 19934#endif 19935 19936 ; 19937 return 0; 19938} 19939_ACEOF 19940rm -f conftest.$ac_objext 19941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19942 (eval $ac_compile) 2>&5 19943 ac_status=$? 19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19945 (exit $ac_status); } && 19946 { ac_try='test -s conftest.$ac_objext' 19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19948 (eval $ac_try) 2>&5 19949 ac_status=$? 19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19951 (exit $ac_status); }; }; then 19952 ac_cv_c_bigendian=yes 19953else 19954 echo "$as_me: failed program was:" >&5 19955sed 's/^/| /' conftest.$ac_ext >&5 19956 19957ac_cv_c_bigendian=no 19958fi 19959rm -f conftest.$ac_objext conftest.$ac_ext 19960else 19961 echo "$as_me: failed program was:" >&5 19962sed 's/^/| /' conftest.$ac_ext >&5 19963 19964# It does not; compile a test program. 19965if test "$cross_compiling" = yes; then 19966 # try to guess the endianness by grepping values into an object file 19967 ac_cv_c_bigendian=unknown 19968 cat >conftest.$ac_ext <<_ACEOF 19969#line $LINENO "configure" 19970/* confdefs.h. */ 19971_ACEOF 19972cat confdefs.h >>conftest.$ac_ext 19973cat >>conftest.$ac_ext <<_ACEOF 19974/* end confdefs.h. */ 19975short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 19976short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 19977void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 19978short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 19979short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 19980void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 19981int 19982main () 19983{ 19984 _ascii (); _ebcdic (); 19985 ; 19986 return 0; 19987} 19988_ACEOF 19989rm -f conftest.$ac_objext 19990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19991 (eval $ac_compile) 2>&5 19992 ac_status=$? 19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19994 (exit $ac_status); } && 19995 { ac_try='test -s conftest.$ac_objext' 19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19997 (eval $ac_try) 2>&5 19998 ac_status=$? 19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20000 (exit $ac_status); }; }; then 20001 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 20002 ac_cv_c_bigendian=yes 20003fi 20004if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 20005 if test "$ac_cv_c_bigendian" = unknown; then 20006 ac_cv_c_bigendian=no 20007 else 20008 # finding both strings is unlikely to happen, but who knows? 20009 ac_cv_c_bigendian=unknown 20010 fi 20011fi 20012else 20013 echo "$as_me: failed program was:" >&5 20014sed 's/^/| /' conftest.$ac_ext >&5 20015 20016fi 20017rm -f conftest.$ac_objext conftest.$ac_ext 20018else 20019 cat >conftest.$ac_ext <<_ACEOF 20020#line $LINENO "configure" 20021/* confdefs.h. */ 20022_ACEOF 20023cat confdefs.h >>conftest.$ac_ext 20024cat >>conftest.$ac_ext <<_ACEOF 20025/* end confdefs.h. */ 20026int 20027main () 20028{ 20029 /* Are we little or big endian? From Harbison&Steele. */ 20030 union 20031 { 20032 long l; 20033 char c[sizeof (long)]; 20034 } u; 20035 u.l = 1; 20036 exit (u.c[sizeof (long) - 1] == 1); 20037} 20038_ACEOF 20039rm -f conftest$ac_exeext 20040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20041 (eval $ac_link) 2>&5 20042 ac_status=$? 20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20046 (eval $ac_try) 2>&5 20047 ac_status=$? 20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20049 (exit $ac_status); }; }; then 20050 ac_cv_c_bigendian=no 20051else 20052 echo "$as_me: program exited with status $ac_status" >&5 20053echo "$as_me: failed program was:" >&5 20054sed 's/^/| /' conftest.$ac_ext >&5 20055 20056( exit $ac_status ) 20057ac_cv_c_bigendian=yes 20058fi 20059rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20060fi 20061fi 20062rm -f conftest.$ac_objext conftest.$ac_ext 20063fi 20064echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 20065echo "${ECHO_T}$ac_cv_c_bigendian" >&6 20066case $ac_cv_c_bigendian in 20067 yes) 20068 20069cat >>confdefs.h <<\_ACEOF 20070#define ENDIAN_BIG 20071_ACEOF 20072 ;; 20073 no) 20074 20075cat >>confdefs.h <<\_ACEOF 20076#define ENDIAN_LITTLE 20077_ACEOF 20078 ;; 20079 *) 20080 { { echo "$as_me:$LINENO: error: unknown endianness 20081presetting ac_cv_c_bigendian=no (or yes) will help" >&5 20082echo "$as_me: error: unknown endianness 20083presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 20084 { (exit 1); exit 1; }; } ;; 20085esac 20086 20087 20088echo "$as_me:$LINENO: checking for pid_t" >&5 20089echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 20090if test "${ac_cv_type_pid_t+set}" = set; then 20091 echo $ECHO_N "(cached) $ECHO_C" >&6 20092else 20093 cat >conftest.$ac_ext <<_ACEOF 20094#line $LINENO "configure" 20095/* confdefs.h. */ 20096_ACEOF 20097cat confdefs.h >>conftest.$ac_ext 20098cat >>conftest.$ac_ext <<_ACEOF 20099/* end confdefs.h. */ 20100$ac_includes_default 20101int 20102main () 20103{ 20104if ((pid_t *) 0) 20105 return 0; 20106if (sizeof (pid_t)) 20107 return 0; 20108 ; 20109 return 0; 20110} 20111_ACEOF 20112rm -f conftest.$ac_objext 20113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20114 (eval $ac_compile) 2>&5 20115 ac_status=$? 20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20117 (exit $ac_status); } && 20118 { ac_try='test -s conftest.$ac_objext' 20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20120 (eval $ac_try) 2>&5 20121 ac_status=$? 20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20123 (exit $ac_status); }; }; then 20124 ac_cv_type_pid_t=yes 20125else 20126 echo "$as_me: failed program was:" >&5 20127sed 's/^/| /' conftest.$ac_ext >&5 20128 20129ac_cv_type_pid_t=no 20130fi 20131rm -f conftest.$ac_objext conftest.$ac_ext 20132fi 20133echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 20134echo "${ECHO_T}$ac_cv_type_pid_t" >&6 20135if test $ac_cv_type_pid_t = yes; then 20136 : 20137else 20138 20139cat >>confdefs.h <<_ACEOF 20140#define pid_t int 20141_ACEOF 20142 20143fi 20144 20145echo "$as_me:$LINENO: checking for size_t" >&5 20146echo $ECHO_N "checking for size_t... $ECHO_C" >&6 20147if test "${ac_cv_type_size_t+set}" = set; then 20148 echo $ECHO_N "(cached) $ECHO_C" >&6 20149else 20150 cat >conftest.$ac_ext <<_ACEOF 20151#line $LINENO "configure" 20152/* confdefs.h. */ 20153_ACEOF 20154cat confdefs.h >>conftest.$ac_ext 20155cat >>conftest.$ac_ext <<_ACEOF 20156/* end confdefs.h. */ 20157$ac_includes_default 20158int 20159main () 20160{ 20161if ((size_t *) 0) 20162 return 0; 20163if (sizeof (size_t)) 20164 return 0; 20165 ; 20166 return 0; 20167} 20168_ACEOF 20169rm -f conftest.$ac_objext 20170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20171 (eval $ac_compile) 2>&5 20172 ac_status=$? 20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20174 (exit $ac_status); } && 20175 { ac_try='test -s conftest.$ac_objext' 20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20177 (eval $ac_try) 2>&5 20178 ac_status=$? 20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20180 (exit $ac_status); }; }; then 20181 ac_cv_type_size_t=yes 20182else 20183 echo "$as_me: failed program was:" >&5 20184sed 's/^/| /' conftest.$ac_ext >&5 20185 20186ac_cv_type_size_t=no 20187fi 20188rm -f conftest.$ac_objext conftest.$ac_ext 20189fi 20190echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20191echo "${ECHO_T}$ac_cv_type_size_t" >&6 20192if test $ac_cv_type_size_t = yes; then 20193 : 20194else 20195 20196cat >>confdefs.h <<_ACEOF 20197#define size_t unsigned 20198_ACEOF 20199 20200fi 20201 20202echo "$as_me:$LINENO: checking for int64_t" >&5 20203echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 20204if test "${ac_cv_type_int64_t+set}" = set; then 20205 echo $ECHO_N "(cached) $ECHO_C" >&6 20206else 20207 cat >conftest.$ac_ext <<_ACEOF 20208#line $LINENO "configure" 20209/* confdefs.h. */ 20210_ACEOF 20211cat confdefs.h >>conftest.$ac_ext 20212cat >>conftest.$ac_ext <<_ACEOF 20213/* end confdefs.h. */ 20214$ac_includes_default 20215int 20216main () 20217{ 20218if ((int64_t *) 0) 20219 return 0; 20220if (sizeof (int64_t)) 20221 return 0; 20222 ; 20223 return 0; 20224} 20225_ACEOF 20226rm -f conftest.$ac_objext 20227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20228 (eval $ac_compile) 2>&5 20229 ac_status=$? 20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20231 (exit $ac_status); } && 20232 { ac_try='test -s conftest.$ac_objext' 20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20234 (eval $ac_try) 2>&5 20235 ac_status=$? 20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20237 (exit $ac_status); }; }; then 20238 ac_cv_type_int64_t=yes 20239else 20240 echo "$as_me: failed program was:" >&5 20241sed 's/^/| /' conftest.$ac_ext >&5 20242 20243ac_cv_type_int64_t=no 20244fi 20245rm -f conftest.$ac_objext conftest.$ac_ext 20246fi 20247echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 20248echo "${ECHO_T}$ac_cv_type_int64_t" >&6 20249if test $ac_cv_type_int64_t = yes; then 20250 20251cat >>confdefs.h <<_ACEOF 20252#define HAVE_INT64_T 1 20253_ACEOF 20254 20255 20256else 20257 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 20258echo "$as_me: error: Type int64_t required but not found" >&2;} 20259 { (exit 1); exit 1; }; } 20260fi 20261 20262echo "$as_me:$LINENO: checking for uint64_t" >&5 20263echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 20264if test "${ac_cv_type_uint64_t+set}" = set; then 20265 echo $ECHO_N "(cached) $ECHO_C" >&6 20266else 20267 cat >conftest.$ac_ext <<_ACEOF 20268#line $LINENO "configure" 20269/* confdefs.h. */ 20270_ACEOF 20271cat confdefs.h >>conftest.$ac_ext 20272cat >>conftest.$ac_ext <<_ACEOF 20273/* end confdefs.h. */ 20274$ac_includes_default 20275int 20276main () 20277{ 20278if ((uint64_t *) 0) 20279 return 0; 20280if (sizeof (uint64_t)) 20281 return 0; 20282 ; 20283 return 0; 20284} 20285_ACEOF 20286rm -f conftest.$ac_objext 20287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20288 (eval $ac_compile) 2>&5 20289 ac_status=$? 20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20291 (exit $ac_status); } && 20292 { ac_try='test -s conftest.$ac_objext' 20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20294 (eval $ac_try) 2>&5 20295 ac_status=$? 20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20297 (exit $ac_status); }; }; then 20298 ac_cv_type_uint64_t=yes 20299else 20300 echo "$as_me: failed program was:" >&5 20301sed 's/^/| /' conftest.$ac_ext >&5 20302 20303ac_cv_type_uint64_t=no 20304fi 20305rm -f conftest.$ac_objext conftest.$ac_ext 20306fi 20307echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 20308echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 20309if test $ac_cv_type_uint64_t = yes; then 20310 20311cat >>confdefs.h <<_ACEOF 20312#define HAVE_UINT64_T 1 20313_ACEOF 20314 20315 20316else 20317 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5 20318echo "$as_me: error: Type uint64_t required but not found" >&2;} 20319 { (exit 1); exit 1; }; } 20320fi 20321 20322echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20323echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 20324if test "${ac_cv_header_time+set}" = set; then 20325 echo $ECHO_N "(cached) $ECHO_C" >&6 20326else 20327 cat >conftest.$ac_ext <<_ACEOF 20328#line $LINENO "configure" 20329/* confdefs.h. */ 20330_ACEOF 20331cat confdefs.h >>conftest.$ac_ext 20332cat >>conftest.$ac_ext <<_ACEOF 20333/* end confdefs.h. */ 20334#include <sys/types.h> 20335#include <sys/time.h> 20336#include <time.h> 20337 20338int 20339main () 20340{ 20341if ((struct tm *) 0) 20342return 0; 20343 ; 20344 return 0; 20345} 20346_ACEOF 20347rm -f conftest.$ac_objext 20348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20349 (eval $ac_compile) 2>&5 20350 ac_status=$? 20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20352 (exit $ac_status); } && 20353 { ac_try='test -s conftest.$ac_objext' 20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20355 (eval $ac_try) 2>&5 20356 ac_status=$? 20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20358 (exit $ac_status); }; }; then 20359 ac_cv_header_time=yes 20360else 20361 echo "$as_me: failed program was:" >&5 20362sed 's/^/| /' conftest.$ac_ext >&5 20363 20364ac_cv_header_time=no 20365fi 20366rm -f conftest.$ac_objext conftest.$ac_ext 20367fi 20368echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20369echo "${ECHO_T}$ac_cv_header_time" >&6 20370if test $ac_cv_header_time = yes; then 20371 20372cat >>confdefs.h <<\_ACEOF 20373#define TIME_WITH_SYS_TIME 1 20374_ACEOF 20375 20376fi 20377 20378echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 20379echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 20380if test "${ac_cv_struct_tm+set}" = set; then 20381 echo $ECHO_N "(cached) $ECHO_C" >&6 20382else 20383 cat >conftest.$ac_ext <<_ACEOF 20384#line $LINENO "configure" 20385/* confdefs.h. */ 20386_ACEOF 20387cat confdefs.h >>conftest.$ac_ext 20388cat >>conftest.$ac_ext <<_ACEOF 20389/* end confdefs.h. */ 20390#include <sys/types.h> 20391#include <time.h> 20392 20393int 20394main () 20395{ 20396struct tm *tp; tp->tm_sec; 20397 ; 20398 return 0; 20399} 20400_ACEOF 20401rm -f conftest.$ac_objext 20402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20403 (eval $ac_compile) 2>&5 20404 ac_status=$? 20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20406 (exit $ac_status); } && 20407 { ac_try='test -s conftest.$ac_objext' 20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20409 (eval $ac_try) 2>&5 20410 ac_status=$? 20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 (exit $ac_status); }; }; then 20413 ac_cv_struct_tm=time.h 20414else 20415 echo "$as_me: failed program was:" >&5 20416sed 's/^/| /' conftest.$ac_ext >&5 20417 20418ac_cv_struct_tm=sys/time.h 20419fi 20420rm -f conftest.$ac_objext conftest.$ac_ext 20421fi 20422echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 20423echo "${ECHO_T}$ac_cv_struct_tm" >&6 20424if test $ac_cv_struct_tm = sys/time.h; then 20425 20426cat >>confdefs.h <<\_ACEOF 20427#define TM_IN_SYS_TIME 1 20428_ACEOF 20429 20430fi 20431 20432 20433 20434 20435 20436 ac_ext=c 20437ac_cpp='$CPP $CPPFLAGS' 20438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20440ac_compiler_gnu=$ac_cv_c_compiler_gnu 20441 20442 if test "$cross_compiling" = yes; then 20443 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20444See \`config.log' for more details." >&5 20445echo "$as_me: error: cannot run test program while cross compiling 20446See \`config.log' for more details." >&2;} 20447 { (exit 1); exit 1; }; } 20448else 20449 cat >conftest.$ac_ext <<_ACEOF 20450#line $LINENO "configure" 20451/* confdefs.h. */ 20452_ACEOF 20453cat confdefs.h >>conftest.$ac_ext 20454cat >>conftest.$ac_ext <<_ACEOF 20455/* end confdefs.h. */ 20456#include <stdio.h> 20457 #include <stdlib.h> 20458int 20459main () 20460{ 20461 20462 volatile double A, B; 20463 char Buffer[100]; 20464 A = 1; 20465 A /= 10.0; 20466 sprintf(Buffer, "%a", A); 20467 B = atof(Buffer); 20468 if (A != B) 20469 return (1); 20470 if (A != 0x1.999999999999ap-4) 20471 return (1); 20472 return (0); 20473 ; 20474 return 0; 20475} 20476_ACEOF 20477rm -f conftest$ac_exeext 20478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20479 (eval $ac_link) 2>&5 20480 ac_status=$? 20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20484 (eval $ac_try) 2>&5 20485 ac_status=$? 20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20487 (exit $ac_status); }; }; then 20488 ac_c_printf_a=yes 20489else 20490 echo "$as_me: program exited with status $ac_status" >&5 20491echo "$as_me: failed program was:" >&5 20492sed 's/^/| /' conftest.$ac_ext >&5 20493 20494( exit $ac_status ) 20495ac_c_printf_a=no 20496fi 20497rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20498fi 20499 ac_ext=c 20500ac_cpp='$CPP $CPPFLAGS' 20501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20503ac_compiler_gnu=$ac_cv_c_compiler_gnu 20504 20505 if test "$ac_c_printf_a" = "yes"; then 20506 20507cat >>confdefs.h <<\_ACEOF 20508#define HAVE_PRINTF_A 1 20509_ACEOF 20510 20511 fi 20512 20513 20514echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 20515echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 20516if test "${ac_cv_cxx_namespaces+set}" = set; then 20517 echo $ECHO_N "(cached) $ECHO_C" >&6 20518else 20519 20520 20521 ac_ext=cc 20522ac_cpp='$CXXCPP $CPPFLAGS' 20523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20526 20527 cat >conftest.$ac_ext <<_ACEOF 20528#line $LINENO "configure" 20529/* confdefs.h. */ 20530_ACEOF 20531cat confdefs.h >>conftest.$ac_ext 20532cat >>conftest.$ac_ext <<_ACEOF 20533/* end confdefs.h. */ 20534namespace Outer { namespace Inner { int i = 0; }} 20535int 20536main () 20537{ 20538using namespace Outer::Inner; return i; 20539 ; 20540 return 0; 20541} 20542_ACEOF 20543rm -f conftest.$ac_objext 20544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20545 (eval $ac_compile) 2>&5 20546 ac_status=$? 20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20548 (exit $ac_status); } && 20549 { ac_try='test -s conftest.$ac_objext' 20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20551 (eval $ac_try) 2>&5 20552 ac_status=$? 20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20554 (exit $ac_status); }; }; then 20555 ac_cv_cxx_namespaces=yes 20556else 20557 echo "$as_me: failed program was:" >&5 20558sed 's/^/| /' conftest.$ac_ext >&5 20559 20560ac_cv_cxx_namespaces=no 20561fi 20562rm -f conftest.$ac_objext conftest.$ac_ext 20563 ac_ext=c 20564ac_cpp='$CPP $CPPFLAGS' 20565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20567ac_compiler_gnu=$ac_cv_c_compiler_gnu 20568 20569 20570fi 20571echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 20572echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 20573if test "$ac_cv_cxx_namespaces" = yes; then 20574 20575cat >>confdefs.h <<\_ACEOF 20576#define HAVE_NAMESPACES 20577_ACEOF 20578 20579fi 20580 20581echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 20582echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 20583if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then 20584 echo $ECHO_N "(cached) $ECHO_C" >&6 20585else 20586 20587 20588 20589 ac_ext=cc 20590ac_cpp='$CXXCPP $CPPFLAGS' 20591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20594 20595 cat >conftest.$ac_ext <<_ACEOF 20596#line $LINENO "configure" 20597/* confdefs.h. */ 20598_ACEOF 20599cat confdefs.h >>conftest.$ac_ext 20600cat >>conftest.$ac_ext <<_ACEOF 20601/* end confdefs.h. */ 20602#include <ext/hash_map> 20603#ifdef HAVE_NAMESPACES 20604using namespace std; 20605#endif 20606int 20607main () 20608{ 20609hash_map<int, int> t; 20610 ; 20611 return 0; 20612} 20613_ACEOF 20614rm -f conftest.$ac_objext 20615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20616 (eval $ac_compile) 2>&5 20617 ac_status=$? 20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20619 (exit $ac_status); } && 20620 { ac_try='test -s conftest.$ac_objext' 20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20622 (eval $ac_try) 2>&5 20623 ac_status=$? 20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20625 (exit $ac_status); }; }; then 20626 ac_cv_cxx_have_std_ext_hash_map=yes 20627else 20628 echo "$as_me: failed program was:" >&5 20629sed 's/^/| /' conftest.$ac_ext >&5 20630 20631ac_cv_cxx_have_std_ext_hash_map=no 20632fi 20633rm -f conftest.$ac_objext conftest.$ac_ext 20634 ac_ext=c 20635ac_cpp='$CPP $CPPFLAGS' 20636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20638ac_compiler_gnu=$ac_cv_c_compiler_gnu 20639 20640fi 20641echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 20642echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 20643 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then 20644 20645cat >>confdefs.h <<\_ACEOF 20646#define HAVE_STD_EXT_HASH_MAP 20647_ACEOF 20648 20649 fi 20650 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 20651echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 20652if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then 20653 echo $ECHO_N "(cached) $ECHO_C" >&6 20654else 20655 20656 20657 20658 ac_ext=cc 20659ac_cpp='$CXXCPP $CPPFLAGS' 20660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20663 20664 cat >conftest.$ac_ext <<_ACEOF 20665#line $LINENO "configure" 20666/* confdefs.h. */ 20667_ACEOF 20668cat confdefs.h >>conftest.$ac_ext 20669cat >>conftest.$ac_ext <<_ACEOF 20670/* end confdefs.h. */ 20671#include <ext/hash_map> 20672#ifdef HAVE_NAMESPACES 20673using namespace __gnu_cxx; 20674#endif 20675int 20676main () 20677{ 20678hash_map<int,int> t; 20679 ; 20680 return 0; 20681} 20682_ACEOF 20683rm -f conftest.$ac_objext 20684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20685 (eval $ac_compile) 2>&5 20686 ac_status=$? 20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20688 (exit $ac_status); } && 20689 { ac_try='test -s conftest.$ac_objext' 20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20691 (eval $ac_try) 2>&5 20692 ac_status=$? 20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20694 (exit $ac_status); }; }; then 20695 ac_cv_cxx_have_gnu_ext_hash_map=yes 20696else 20697 echo "$as_me: failed program was:" >&5 20698sed 's/^/| /' conftest.$ac_ext >&5 20699 20700ac_cv_cxx_have_gnu_ext_hash_map=no 20701fi 20702rm -f conftest.$ac_objext conftest.$ac_ext 20703 ac_ext=c 20704ac_cpp='$CPP $CPPFLAGS' 20705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20707ac_compiler_gnu=$ac_cv_c_compiler_gnu 20708 20709fi 20710echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 20711echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 20712 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then 20713 20714cat >>confdefs.h <<\_ACEOF 20715#define HAVE_GNU_EXT_HASH_MAP 20716_ACEOF 20717 20718 fi 20719 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 20720echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 20721if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then 20722 echo $ECHO_N "(cached) $ECHO_C" >&6 20723else 20724 20725 20726 20727 ac_ext=cc 20728ac_cpp='$CXXCPP $CPPFLAGS' 20729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20732 20733 cat >conftest.$ac_ext <<_ACEOF 20734#line $LINENO "configure" 20735/* confdefs.h. */ 20736_ACEOF 20737cat confdefs.h >>conftest.$ac_ext 20738cat >>conftest.$ac_ext <<_ACEOF 20739/* end confdefs.h. */ 20740#include <hash_map> 20741int 20742main () 20743{ 20744hash_map<int,int> t; 20745 ; 20746 return 0; 20747} 20748_ACEOF 20749rm -f conftest.$ac_objext 20750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20751 (eval $ac_compile) 2>&5 20752 ac_status=$? 20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20754 (exit $ac_status); } && 20755 { ac_try='test -s conftest.$ac_objext' 20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20757 (eval $ac_try) 2>&5 20758 ac_status=$? 20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20760 (exit $ac_status); }; }; then 20761 ac_cv_cxx_have_global_hash_map=yes 20762else 20763 echo "$as_me: failed program was:" >&5 20764sed 's/^/| /' conftest.$ac_ext >&5 20765 20766ac_cv_cxx_have_global_hash_map=no 20767fi 20768rm -f conftest.$ac_objext conftest.$ac_ext 20769 ac_ext=c 20770ac_cpp='$CPP $CPPFLAGS' 20771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20773ac_compiler_gnu=$ac_cv_c_compiler_gnu 20774 20775fi 20776echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 20777echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 20778 if test "$ac_cv_cxx_have_global_hash_map" = yes; then 20779 20780cat >>confdefs.h <<\_ACEOF 20781#define HAVE_GLOBAL_HASH_MAP 20782_ACEOF 20783 20784 fi 20785echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 20786echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 20787if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then 20788 echo $ECHO_N "(cached) $ECHO_C" >&6 20789else 20790 20791 20792 20793 ac_ext=cc 20794ac_cpp='$CXXCPP $CPPFLAGS' 20795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20798 20799 cat >conftest.$ac_ext <<_ACEOF 20800#line $LINENO "configure" 20801/* confdefs.h. */ 20802_ACEOF 20803cat confdefs.h >>conftest.$ac_ext 20804cat >>conftest.$ac_ext <<_ACEOF 20805/* end confdefs.h. */ 20806#include <ext/hash_set> 20807#ifdef HAVE_NAMESPACES 20808using namespace std; 20809#endif 20810int 20811main () 20812{ 20813hash_set<int> t; 20814 ; 20815 return 0; 20816} 20817_ACEOF 20818rm -f conftest.$ac_objext 20819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20820 (eval $ac_compile) 2>&5 20821 ac_status=$? 20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20823 (exit $ac_status); } && 20824 { ac_try='test -s conftest.$ac_objext' 20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20826 (eval $ac_try) 2>&5 20827 ac_status=$? 20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20829 (exit $ac_status); }; }; then 20830 ac_cv_cxx_have_std_ext_hash_set=yes 20831else 20832 echo "$as_me: failed program was:" >&5 20833sed 's/^/| /' conftest.$ac_ext >&5 20834 20835ac_cv_cxx_have_std_ext_hash_set=no 20836fi 20837rm -f conftest.$ac_objext conftest.$ac_ext 20838 ac_ext=c 20839ac_cpp='$CPP $CPPFLAGS' 20840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20842ac_compiler_gnu=$ac_cv_c_compiler_gnu 20843 20844fi 20845echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 20846echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 20847 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then 20848 20849cat >>confdefs.h <<\_ACEOF 20850#define HAVE_STD_EXT_HASH_SET 20851_ACEOF 20852 20853 fi 20854 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 20855echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 20856if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then 20857 echo $ECHO_N "(cached) $ECHO_C" >&6 20858else 20859 20860 20861 20862 ac_ext=cc 20863ac_cpp='$CXXCPP $CPPFLAGS' 20864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20867 20868 cat >conftest.$ac_ext <<_ACEOF 20869#line $LINENO "configure" 20870/* confdefs.h. */ 20871_ACEOF 20872cat confdefs.h >>conftest.$ac_ext 20873cat >>conftest.$ac_ext <<_ACEOF 20874/* end confdefs.h. */ 20875#include <ext/hash_set> 20876#ifdef HAVE_NAMESPACES 20877using namespace __gnu_cxx; 20878#endif 20879int 20880main () 20881{ 20882hash_set<int> t; 20883 ; 20884 return 0; 20885} 20886_ACEOF 20887rm -f conftest.$ac_objext 20888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20889 (eval $ac_compile) 2>&5 20890 ac_status=$? 20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20892 (exit $ac_status); } && 20893 { ac_try='test -s conftest.$ac_objext' 20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20895 (eval $ac_try) 2>&5 20896 ac_status=$? 20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20898 (exit $ac_status); }; }; then 20899 ac_cv_cxx_have_gnu_ext_hash_set=yes 20900else 20901 echo "$as_me: failed program was:" >&5 20902sed 's/^/| /' conftest.$ac_ext >&5 20903 20904ac_cv_cxx_have_gnu_ext_hash_set=no 20905fi 20906rm -f conftest.$ac_objext conftest.$ac_ext 20907 ac_ext=c 20908ac_cpp='$CPP $CPPFLAGS' 20909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20911ac_compiler_gnu=$ac_cv_c_compiler_gnu 20912 20913fi 20914echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 20915echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 20916 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then 20917 20918cat >>confdefs.h <<\_ACEOF 20919#define HAVE_GNU_EXT_HASH_SET 20920_ACEOF 20921 20922 fi 20923 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 20924echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 20925if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then 20926 echo $ECHO_N "(cached) $ECHO_C" >&6 20927else 20928 20929 20930 20931 ac_ext=cc 20932ac_cpp='$CXXCPP $CPPFLAGS' 20933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20936 20937 cat >conftest.$ac_ext <<_ACEOF 20938#line $LINENO "configure" 20939/* confdefs.h. */ 20940_ACEOF 20941cat confdefs.h >>conftest.$ac_ext 20942cat >>conftest.$ac_ext <<_ACEOF 20943/* end confdefs.h. */ 20944#include <hash_set> 20945int 20946main () 20947{ 20948hash_set<int> t; return 0; 20949 ; 20950 return 0; 20951} 20952_ACEOF 20953rm -f conftest.$ac_objext 20954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20955 (eval $ac_compile) 2>&5 20956 ac_status=$? 20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20958 (exit $ac_status); } && 20959 { ac_try='test -s conftest.$ac_objext' 20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20961 (eval $ac_try) 2>&5 20962 ac_status=$? 20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20964 (exit $ac_status); }; }; then 20965 ac_cv_cxx_have_global_hash_set=yes 20966else 20967 echo "$as_me: failed program was:" >&5 20968sed 's/^/| /' conftest.$ac_ext >&5 20969 20970ac_cv_cxx_have_global_hash_set=no 20971fi 20972rm -f conftest.$ac_objext conftest.$ac_ext 20973 ac_ext=c 20974ac_cpp='$CPP $CPPFLAGS' 20975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20977ac_compiler_gnu=$ac_cv_c_compiler_gnu 20978 20979fi 20980echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 20981echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 20982 if test "$ac_cv_cxx_have_global_hash_set" = yes; then 20983 20984cat >>confdefs.h <<\_ACEOF 20985#define HAVE_GLOBAL_HASH_SET 20986_ACEOF 20987 20988 fi 20989echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5 20990echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6 20991if test "${ac_cv_cxx_have_ext_slist+set}" = set; then 20992 echo $ECHO_N "(cached) $ECHO_C" >&6 20993else 20994 20995 20996 20997 ac_ext=cc 20998ac_cpp='$CXXCPP $CPPFLAGS' 20999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21002 21003 cat >conftest.$ac_ext <<_ACEOF 21004#line $LINENO "configure" 21005/* confdefs.h. */ 21006_ACEOF 21007cat confdefs.h >>conftest.$ac_ext 21008cat >>conftest.$ac_ext <<_ACEOF 21009/* end confdefs.h. */ 21010#include <ext/slist> 21011#ifdef HAVE_NAMESPACES 21012using namespace std; 21013#endif 21014int 21015main () 21016{ 21017slist<int> s; return 0; 21018 ; 21019 return 0; 21020} 21021_ACEOF 21022rm -f conftest.$ac_objext 21023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21024 (eval $ac_compile) 2>&5 21025 ac_status=$? 21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21027 (exit $ac_status); } && 21028 { ac_try='test -s conftest.$ac_objext' 21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21030 (eval $ac_try) 2>&5 21031 ac_status=$? 21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21033 (exit $ac_status); }; }; then 21034 ac_cv_cxx_have_ext_slist=std 21035else 21036 echo "$as_me: failed program was:" >&5 21037sed 's/^/| /' conftest.$ac_ext >&5 21038 21039ac_cv_cxx_have_ext_slist=no 21040fi 21041rm -f conftest.$ac_objext conftest.$ac_ext 21042 cat >conftest.$ac_ext <<_ACEOF 21043#line $LINENO "configure" 21044/* confdefs.h. */ 21045_ACEOF 21046cat confdefs.h >>conftest.$ac_ext 21047cat >>conftest.$ac_ext <<_ACEOF 21048/* end confdefs.h. */ 21049#include <ext/slist> 21050#ifdef HAVE_NAMESPACES 21051using namespace __gnu_cxx; 21052#endif 21053int 21054main () 21055{ 21056slist<int> s; return 0; 21057 ; 21058 return 0; 21059} 21060_ACEOF 21061rm -f conftest.$ac_objext 21062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21063 (eval $ac_compile) 2>&5 21064 ac_status=$? 21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21066 (exit $ac_status); } && 21067 { ac_try='test -s conftest.$ac_objext' 21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21069 (eval $ac_try) 2>&5 21070 ac_status=$? 21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21072 (exit $ac_status); }; }; then 21073 ac_cv_cxx_have_ext_slist=gnu 21074else 21075 echo "$as_me: failed program was:" >&5 21076sed 's/^/| /' conftest.$ac_ext >&5 21077 21078ac_cv_cxx_have_ext_slist=no 21079fi 21080rm -f conftest.$ac_objext conftest.$ac_ext 21081 21082 ac_ext=c 21083ac_cpp='$CPP $CPPFLAGS' 21084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21086ac_compiler_gnu=$ac_cv_c_compiler_gnu 21087 21088 21089fi 21090echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5 21091echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6 21092if test "$ac_cv_cxx_have_ext_slist" = std; then 21093 21094cat >>confdefs.h <<\_ACEOF 21095#define HAVE_EXT_SLIST std 21096_ACEOF 21097 21098fi 21099if test "$ac_cv_cxx_have_ext_slist" = gnu; then 21100 21101cat >>confdefs.h <<\_ACEOF 21102#define HAVE_EXT_SLIST gnu 21103_ACEOF 21104 21105fi 21106 21107echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 21108echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 21109if test "${ac_cv_cxx_have_std_iterator+set}" = set; then 21110 echo $ECHO_N "(cached) $ECHO_C" >&6 21111else 21112 21113 21114 21115 ac_ext=cc 21116ac_cpp='$CXXCPP $CPPFLAGS' 21117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21120 21121 cat >conftest.$ac_ext <<_ACEOF 21122#line $LINENO "configure" 21123/* confdefs.h. */ 21124_ACEOF 21125cat confdefs.h >>conftest.$ac_ext 21126cat >>conftest.$ac_ext <<_ACEOF 21127/* end confdefs.h. */ 21128#include <iterator> 21129#ifdef HAVE_NAMESPACES 21130using namespace std; 21131#endif 21132int 21133main () 21134{ 21135iterator<int,int,int> t; return 0; 21136 ; 21137 return 0; 21138} 21139_ACEOF 21140rm -f conftest.$ac_objext 21141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21142 (eval $ac_compile) 2>&5 21143 ac_status=$? 21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21145 (exit $ac_status); } && 21146 { ac_try='test -s conftest.$ac_objext' 21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21148 (eval $ac_try) 2>&5 21149 ac_status=$? 21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21151 (exit $ac_status); }; }; then 21152 ac_cv_cxx_have_std_iterator=yes 21153else 21154 echo "$as_me: failed program was:" >&5 21155sed 's/^/| /' conftest.$ac_ext >&5 21156 21157ac_cv_cxx_have_std_iterator=no 21158fi 21159rm -f conftest.$ac_objext conftest.$ac_ext 21160 ac_ext=c 21161ac_cpp='$CPP $CPPFLAGS' 21162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21164ac_compiler_gnu=$ac_cv_c_compiler_gnu 21165 21166 21167fi 21168echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 21169echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 21170if test "$ac_cv_cxx_have_std_iterator" = yes; then 21171 21172cat >>confdefs.h <<\_ACEOF 21173#define HAVE_STD_ITERATOR 21174_ACEOF 21175 21176fi 21177 21178echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 21179echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 21180if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then 21181 echo $ECHO_N "(cached) $ECHO_C" >&6 21182else 21183 21184 21185 21186 ac_ext=cc 21187ac_cpp='$CXXCPP $CPPFLAGS' 21188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21191 21192 cat >conftest.$ac_ext <<_ACEOF 21193#line $LINENO "configure" 21194/* confdefs.h. */ 21195_ACEOF 21196cat confdefs.h >>conftest.$ac_ext 21197cat >>conftest.$ac_ext <<_ACEOF 21198/* end confdefs.h. */ 21199#include <iterator> 21200#ifdef HAVE_NAMESPACES 21201using namespace std; 21202#endif 21203int 21204main () 21205{ 21206bidirectional_iterator<int,int> t; return 0; 21207 ; 21208 return 0; 21209} 21210_ACEOF 21211rm -f conftest.$ac_objext 21212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21213 (eval $ac_compile) 2>&5 21214 ac_status=$? 21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21216 (exit $ac_status); } && 21217 { ac_try='test -s conftest.$ac_objext' 21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21219 (eval $ac_try) 2>&5 21220 ac_status=$? 21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21222 (exit $ac_status); }; }; then 21223 ac_cv_cxx_have_bi_iterator=yes 21224else 21225 echo "$as_me: failed program was:" >&5 21226sed 's/^/| /' conftest.$ac_ext >&5 21227 21228ac_cv_cxx_have_bi_iterator=no 21229fi 21230rm -f conftest.$ac_objext conftest.$ac_ext 21231 ac_ext=c 21232ac_cpp='$CPP $CPPFLAGS' 21233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21235ac_compiler_gnu=$ac_cv_c_compiler_gnu 21236 21237 21238fi 21239echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 21240echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 21241if test "$ac_cv_cxx_have_bi_iterator" = yes; then 21242 21243cat >>confdefs.h <<\_ACEOF 21244#define HAVE_BI_ITERATOR 21245_ACEOF 21246 21247fi 21248 21249echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 21250echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 21251if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then 21252 echo $ECHO_N "(cached) $ECHO_C" >&6 21253else 21254 21255 21256 21257 ac_ext=cc 21258ac_cpp='$CXXCPP $CPPFLAGS' 21259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21262 21263 cat >conftest.$ac_ext <<_ACEOF 21264#line $LINENO "configure" 21265/* confdefs.h. */ 21266_ACEOF 21267cat confdefs.h >>conftest.$ac_ext 21268cat >>conftest.$ac_ext <<_ACEOF 21269/* end confdefs.h. */ 21270#include <iterator> 21271#ifdef HAVE_NAMESPACES 21272using namespace std; 21273#endif 21274int 21275main () 21276{ 21277forward_iterator<int,int> t; return 0; 21278 ; 21279 return 0; 21280} 21281_ACEOF 21282rm -f conftest.$ac_objext 21283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21284 (eval $ac_compile) 2>&5 21285 ac_status=$? 21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21287 (exit $ac_status); } && 21288 { ac_try='test -s conftest.$ac_objext' 21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21290 (eval $ac_try) 2>&5 21291 ac_status=$? 21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21293 (exit $ac_status); }; }; then 21294 ac_cv_cxx_have_fwd_iterator=yes 21295else 21296 echo "$as_me: failed program was:" >&5 21297sed 's/^/| /' conftest.$ac_ext >&5 21298 21299ac_cv_cxx_have_fwd_iterator=no 21300fi 21301rm -f conftest.$ac_objext conftest.$ac_ext 21302 ac_ext=c 21303ac_cpp='$CPP $CPPFLAGS' 21304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21306ac_compiler_gnu=$ac_cv_c_compiler_gnu 21307 21308 21309fi 21310echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 21311echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 21312if test "$ac_cv_cxx_have_fwd_iterator" = yes; then 21313 21314cat >>confdefs.h <<\_ACEOF 21315#define HAVE_FWD_ITERATOR 21316_ACEOF 21317 21318fi 21319 21320 21321# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 21322# for constant arguments. Useless! 21323echo "$as_me:$LINENO: checking for working alloca.h" >&5 21324echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 21325if test "${ac_cv_working_alloca_h+set}" = set; then 21326 echo $ECHO_N "(cached) $ECHO_C" >&6 21327else 21328 cat >conftest.$ac_ext <<_ACEOF 21329#line $LINENO "configure" 21330/* confdefs.h. */ 21331_ACEOF 21332cat confdefs.h >>conftest.$ac_ext 21333cat >>conftest.$ac_ext <<_ACEOF 21334/* end confdefs.h. */ 21335#include <alloca.h> 21336int 21337main () 21338{ 21339char *p = (char *) alloca (2 * sizeof (int)); 21340 ; 21341 return 0; 21342} 21343_ACEOF 21344rm -f conftest.$ac_objext conftest$ac_exeext 21345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21346 (eval $ac_link) 2>&5 21347 ac_status=$? 21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21349 (exit $ac_status); } && 21350 { ac_try='test -s conftest$ac_exeext' 21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21352 (eval $ac_try) 2>&5 21353 ac_status=$? 21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21355 (exit $ac_status); }; }; then 21356 ac_cv_working_alloca_h=yes 21357else 21358 echo "$as_me: failed program was:" >&5 21359sed 's/^/| /' conftest.$ac_ext >&5 21360 21361ac_cv_working_alloca_h=no 21362fi 21363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21364fi 21365echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 21366echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 21367if test $ac_cv_working_alloca_h = yes; then 21368 21369cat >>confdefs.h <<\_ACEOF 21370#define HAVE_ALLOCA_H 1 21371_ACEOF 21372 21373fi 21374 21375echo "$as_me:$LINENO: checking for alloca" >&5 21376echo $ECHO_N "checking for alloca... $ECHO_C" >&6 21377if test "${ac_cv_func_alloca_works+set}" = set; then 21378 echo $ECHO_N "(cached) $ECHO_C" >&6 21379else 21380 cat >conftest.$ac_ext <<_ACEOF 21381#line $LINENO "configure" 21382/* confdefs.h. */ 21383_ACEOF 21384cat confdefs.h >>conftest.$ac_ext 21385cat >>conftest.$ac_ext <<_ACEOF 21386/* end confdefs.h. */ 21387#ifdef __GNUC__ 21388# define alloca __builtin_alloca 21389#else 21390# ifdef _MSC_VER 21391# include <malloc.h> 21392# define alloca _alloca 21393# else 21394# if HAVE_ALLOCA_H 21395# include <alloca.h> 21396# else 21397# ifdef _AIX 21398 #pragma alloca 21399# else 21400# ifndef alloca /* predefined by HP cc +Olibcalls */ 21401char *alloca (); 21402# endif 21403# endif 21404# endif 21405# endif 21406#endif 21407 21408int 21409main () 21410{ 21411char *p = (char *) alloca (1); 21412 ; 21413 return 0; 21414} 21415_ACEOF 21416rm -f conftest.$ac_objext conftest$ac_exeext 21417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21418 (eval $ac_link) 2>&5 21419 ac_status=$? 21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21421 (exit $ac_status); } && 21422 { ac_try='test -s conftest$ac_exeext' 21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21424 (eval $ac_try) 2>&5 21425 ac_status=$? 21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21427 (exit $ac_status); }; }; then 21428 ac_cv_func_alloca_works=yes 21429else 21430 echo "$as_me: failed program was:" >&5 21431sed 's/^/| /' conftest.$ac_ext >&5 21432 21433ac_cv_func_alloca_works=no 21434fi 21435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21436fi 21437echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 21438echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 21439 21440if test $ac_cv_func_alloca_works = yes; then 21441 21442cat >>confdefs.h <<\_ACEOF 21443#define HAVE_ALLOCA 1 21444_ACEOF 21445 21446else 21447 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 21448# that cause trouble. Some versions do not even contain alloca or 21449# contain a buggy version. If you still want to use their alloca, 21450# use ar to extract alloca.o from them instead of compiling alloca.c. 21451 21452ALLOCA=alloca.$ac_objext 21453 21454cat >>confdefs.h <<\_ACEOF 21455#define C_ALLOCA 1 21456_ACEOF 21457 21458 21459echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 21460echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 21461if test "${ac_cv_os_cray+set}" = set; then 21462 echo $ECHO_N "(cached) $ECHO_C" >&6 21463else 21464 cat >conftest.$ac_ext <<_ACEOF 21465#line $LINENO "configure" 21466/* confdefs.h. */ 21467_ACEOF 21468cat confdefs.h >>conftest.$ac_ext 21469cat >>conftest.$ac_ext <<_ACEOF 21470/* end confdefs.h. */ 21471#if defined(CRAY) && ! defined(CRAY2) 21472webecray 21473#else 21474wenotbecray 21475#endif 21476 21477_ACEOF 21478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21479 $EGREP "webecray" >/dev/null 2>&1; then 21480 ac_cv_os_cray=yes 21481else 21482 ac_cv_os_cray=no 21483fi 21484rm -f conftest* 21485 21486fi 21487echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 21488echo "${ECHO_T}$ac_cv_os_cray" >&6 21489if test $ac_cv_os_cray = yes; then 21490 for ac_func in _getb67 GETB67 getb67; do 21491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21492echo "$as_me:$LINENO: checking for $ac_func" >&5 21493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21494if eval "test \"\${$as_ac_var+set}\" = set"; then 21495 echo $ECHO_N "(cached) $ECHO_C" >&6 21496else 21497 cat >conftest.$ac_ext <<_ACEOF 21498#line $LINENO "configure" 21499/* confdefs.h. */ 21500_ACEOF 21501cat confdefs.h >>conftest.$ac_ext 21502cat >>conftest.$ac_ext <<_ACEOF 21503/* end confdefs.h. */ 21504/* System header to define __stub macros and hopefully few prototypes, 21505 which can conflict with char $ac_func (); below. 21506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21507 <limits.h> exists even on freestanding compilers. */ 21508#ifdef __STDC__ 21509# include <limits.h> 21510#else 21511# include <assert.h> 21512#endif 21513/* Override any gcc2 internal prototype to avoid an error. */ 21514#ifdef __cplusplus 21515extern "C" 21516{ 21517#endif 21518/* We use char because int might match the return type of a gcc2 21519 builtin and then its argument prototype would still apply. */ 21520char $ac_func (); 21521/* The GNU C library defines this for functions which it implements 21522 to always fail with ENOSYS. Some functions are actually named 21523 something starting with __ and the normal name is an alias. */ 21524#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21525choke me 21526#else 21527char (*f) () = $ac_func; 21528#endif 21529#ifdef __cplusplus 21530} 21531#endif 21532 21533int 21534main () 21535{ 21536return f != $ac_func; 21537 ; 21538 return 0; 21539} 21540_ACEOF 21541rm -f conftest.$ac_objext conftest$ac_exeext 21542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21543 (eval $ac_link) 2>&5 21544 ac_status=$? 21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21546 (exit $ac_status); } && 21547 { ac_try='test -s conftest$ac_exeext' 21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21549 (eval $ac_try) 2>&5 21550 ac_status=$? 21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21552 (exit $ac_status); }; }; then 21553 eval "$as_ac_var=yes" 21554else 21555 echo "$as_me: failed program was:" >&5 21556sed 's/^/| /' conftest.$ac_ext >&5 21557 21558eval "$as_ac_var=no" 21559fi 21560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21561fi 21562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21563echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21564if test `eval echo '${'$as_ac_var'}'` = yes; then 21565 21566cat >>confdefs.h <<_ACEOF 21567#define CRAY_STACKSEG_END $ac_func 21568_ACEOF 21569 21570 break 21571fi 21572 21573 done 21574fi 21575 21576echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 21577echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 21578if test "${ac_cv_c_stack_direction+set}" = set; then 21579 echo $ECHO_N "(cached) $ECHO_C" >&6 21580else 21581 if test "$cross_compiling" = yes; then 21582 ac_cv_c_stack_direction=0 21583else 21584 cat >conftest.$ac_ext <<_ACEOF 21585#line $LINENO "configure" 21586/* confdefs.h. */ 21587_ACEOF 21588cat confdefs.h >>conftest.$ac_ext 21589cat >>conftest.$ac_ext <<_ACEOF 21590/* end confdefs.h. */ 21591int 21592find_stack_direction () 21593{ 21594 static char *addr = 0; 21595 auto char dummy; 21596 if (addr == 0) 21597 { 21598 addr = &dummy; 21599 return find_stack_direction (); 21600 } 21601 else 21602 return (&dummy > addr) ? 1 : -1; 21603} 21604 21605int 21606main () 21607{ 21608 exit (find_stack_direction () < 0); 21609} 21610_ACEOF 21611rm -f conftest$ac_exeext 21612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21613 (eval $ac_link) 2>&5 21614 ac_status=$? 21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21618 (eval $ac_try) 2>&5 21619 ac_status=$? 21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21621 (exit $ac_status); }; }; then 21622 ac_cv_c_stack_direction=1 21623else 21624 echo "$as_me: program exited with status $ac_status" >&5 21625echo "$as_me: failed program was:" >&5 21626sed 's/^/| /' conftest.$ac_ext >&5 21627 21628( exit $ac_status ) 21629ac_cv_c_stack_direction=-1 21630fi 21631rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21632fi 21633fi 21634echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 21635echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 21636 21637cat >>confdefs.h <<_ACEOF 21638#define STACK_DIRECTION $ac_cv_c_stack_direction 21639_ACEOF 21640 21641 21642fi 21643 21644if test $ac_cv_c_compiler_gnu = yes; then 21645 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 21646echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 21647if test "${ac_cv_prog_gcc_traditional+set}" = set; then 21648 echo $ECHO_N "(cached) $ECHO_C" >&6 21649else 21650 ac_pattern="Autoconf.*'x'" 21651 cat >conftest.$ac_ext <<_ACEOF 21652#line $LINENO "configure" 21653/* confdefs.h. */ 21654_ACEOF 21655cat confdefs.h >>conftest.$ac_ext 21656cat >>conftest.$ac_ext <<_ACEOF 21657/* end confdefs.h. */ 21658#include <sgtty.h> 21659Autoconf TIOCGETP 21660_ACEOF 21661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21662 $EGREP "$ac_pattern" >/dev/null 2>&1; then 21663 ac_cv_prog_gcc_traditional=yes 21664else 21665 ac_cv_prog_gcc_traditional=no 21666fi 21667rm -f conftest* 21668 21669 21670 if test $ac_cv_prog_gcc_traditional = no; then 21671 cat >conftest.$ac_ext <<_ACEOF 21672#line $LINENO "configure" 21673/* confdefs.h. */ 21674_ACEOF 21675cat confdefs.h >>conftest.$ac_ext 21676cat >>conftest.$ac_ext <<_ACEOF 21677/* end confdefs.h. */ 21678#include <termio.h> 21679Autoconf TCGETA 21680_ACEOF 21681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21682 $EGREP "$ac_pattern" >/dev/null 2>&1; then 21683 ac_cv_prog_gcc_traditional=yes 21684fi 21685rm -f conftest* 21686 21687 fi 21688fi 21689echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 21690echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 21691 if test $ac_cv_prog_gcc_traditional = yes; then 21692 CC="$CC -traditional" 21693 fi 21694fi 21695 21696echo "$as_me:$LINENO: checking for working memcmp" >&5 21697echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 21698if test "${ac_cv_func_memcmp_working+set}" = set; then 21699 echo $ECHO_N "(cached) $ECHO_C" >&6 21700else 21701 if test "$cross_compiling" = yes; then 21702 ac_cv_func_memcmp_working=no 21703else 21704 cat >conftest.$ac_ext <<_ACEOF 21705#line $LINENO "configure" 21706/* confdefs.h. */ 21707_ACEOF 21708cat confdefs.h >>conftest.$ac_ext 21709cat >>conftest.$ac_ext <<_ACEOF 21710/* end confdefs.h. */ 21711 21712int 21713main () 21714{ 21715 21716 /* Some versions of memcmp are not 8-bit clean. */ 21717 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 21718 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 21719 exit (1); 21720 21721 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 21722 or more and with at least one buffer not starting on a 4-byte boundary. 21723 William Lewis provided this test program. */ 21724 { 21725 char foo[21]; 21726 char bar[21]; 21727 int i; 21728 for (i = 0; i < 4; i++) 21729 { 21730 char *a = foo + i; 21731 char *b = bar + i; 21732 strcpy (a, "--------01111111"); 21733 strcpy (b, "--------10000000"); 21734 if (memcmp (a, b, 16) >= 0) 21735 exit (1); 21736 } 21737 exit (0); 21738 } 21739 21740 ; 21741 return 0; 21742} 21743_ACEOF 21744rm -f conftest$ac_exeext 21745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21746 (eval $ac_link) 2>&5 21747 ac_status=$? 21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21751 (eval $ac_try) 2>&5 21752 ac_status=$? 21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21754 (exit $ac_status); }; }; then 21755 ac_cv_func_memcmp_working=yes 21756else 21757 echo "$as_me: program exited with status $ac_status" >&5 21758echo "$as_me: failed program was:" >&5 21759sed 's/^/| /' conftest.$ac_ext >&5 21760 21761( exit $ac_status ) 21762ac_cv_func_memcmp_working=no 21763fi 21764rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21765fi 21766fi 21767echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 21768echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 21769test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" 21770 21771 21772 21773for ac_header in stdlib.h unistd.h 21774do 21775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21776if eval "test \"\${$as_ac_Header+set}\" = set"; then 21777 echo "$as_me:$LINENO: checking for $ac_header" >&5 21778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21779if eval "test \"\${$as_ac_Header+set}\" = set"; then 21780 echo $ECHO_N "(cached) $ECHO_C" >&6 21781fi 21782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21784else 21785 # Is the header compilable? 21786echo "$as_me:$LINENO: checking $ac_header usability" >&5 21787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21788cat >conftest.$ac_ext <<_ACEOF 21789#line $LINENO "configure" 21790/* confdefs.h. */ 21791_ACEOF 21792cat confdefs.h >>conftest.$ac_ext 21793cat >>conftest.$ac_ext <<_ACEOF 21794/* end confdefs.h. */ 21795$ac_includes_default 21796#include <$ac_header> 21797_ACEOF 21798rm -f conftest.$ac_objext 21799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21800 (eval $ac_compile) 2>&5 21801 ac_status=$? 21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21803 (exit $ac_status); } && 21804 { ac_try='test -s conftest.$ac_objext' 21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21806 (eval $ac_try) 2>&5 21807 ac_status=$? 21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21809 (exit $ac_status); }; }; then 21810 ac_header_compiler=yes 21811else 21812 echo "$as_me: failed program was:" >&5 21813sed 's/^/| /' conftest.$ac_ext >&5 21814 21815ac_header_compiler=no 21816fi 21817rm -f conftest.$ac_objext conftest.$ac_ext 21818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21819echo "${ECHO_T}$ac_header_compiler" >&6 21820 21821# Is the header present? 21822echo "$as_me:$LINENO: checking $ac_header presence" >&5 21823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21824cat >conftest.$ac_ext <<_ACEOF 21825#line $LINENO "configure" 21826/* confdefs.h. */ 21827_ACEOF 21828cat confdefs.h >>conftest.$ac_ext 21829cat >>conftest.$ac_ext <<_ACEOF 21830/* end confdefs.h. */ 21831#include <$ac_header> 21832_ACEOF 21833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21835 ac_status=$? 21836 grep -v '^ *+' conftest.er1 >conftest.err 21837 rm -f conftest.er1 21838 cat conftest.err >&5 21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21840 (exit $ac_status); } >/dev/null; then 21841 if test -s conftest.err; then 21842 ac_cpp_err=$ac_c_preproc_warn_flag 21843 else 21844 ac_cpp_err= 21845 fi 21846else 21847 ac_cpp_err=yes 21848fi 21849if test -z "$ac_cpp_err"; then 21850 ac_header_preproc=yes 21851else 21852 echo "$as_me: failed program was:" >&5 21853sed 's/^/| /' conftest.$ac_ext >&5 21854 21855 ac_header_preproc=no 21856fi 21857rm -f conftest.err conftest.$ac_ext 21858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21859echo "${ECHO_T}$ac_header_preproc" >&6 21860 21861# So? What about this header? 21862case $ac_header_compiler:$ac_header_preproc in 21863 yes:no ) 21864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21868 ( 21869 cat <<\_ASBOX 21870## ------------------------------------ ## 21871## Report this to bug-autoconf@gnu.org. ## 21872## ------------------------------------ ## 21873_ASBOX 21874 ) | 21875 sed "s/^/$as_me: WARNING: /" >&2 21876 ;; 21877 no:yes ) 21878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21884 ( 21885 cat <<\_ASBOX 21886## ------------------------------------ ## 21887## Report this to bug-autoconf@gnu.org. ## 21888## ------------------------------------ ## 21889_ASBOX 21890 ) | 21891 sed "s/^/$as_me: WARNING: /" >&2 21892 ;; 21893esac 21894echo "$as_me:$LINENO: checking for $ac_header" >&5 21895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21896if eval "test \"\${$as_ac_Header+set}\" = set"; then 21897 echo $ECHO_N "(cached) $ECHO_C" >&6 21898else 21899 eval "$as_ac_Header=$ac_header_preproc" 21900fi 21901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21903 21904fi 21905if test `eval echo '${'$as_ac_Header'}'` = yes; then 21906 cat >>confdefs.h <<_ACEOF 21907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21908_ACEOF 21909 21910fi 21911 21912done 21913 21914 21915for ac_func in getpagesize 21916do 21917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21918echo "$as_me:$LINENO: checking for $ac_func" >&5 21919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21920if eval "test \"\${$as_ac_var+set}\" = set"; then 21921 echo $ECHO_N "(cached) $ECHO_C" >&6 21922else 21923 cat >conftest.$ac_ext <<_ACEOF 21924#line $LINENO "configure" 21925/* confdefs.h. */ 21926_ACEOF 21927cat confdefs.h >>conftest.$ac_ext 21928cat >>conftest.$ac_ext <<_ACEOF 21929/* end confdefs.h. */ 21930/* System header to define __stub macros and hopefully few prototypes, 21931 which can conflict with char $ac_func (); below. 21932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21933 <limits.h> exists even on freestanding compilers. */ 21934#ifdef __STDC__ 21935# include <limits.h> 21936#else 21937# include <assert.h> 21938#endif 21939/* Override any gcc2 internal prototype to avoid an error. */ 21940#ifdef __cplusplus 21941extern "C" 21942{ 21943#endif 21944/* We use char because int might match the return type of a gcc2 21945 builtin and then its argument prototype would still apply. */ 21946char $ac_func (); 21947/* The GNU C library defines this for functions which it implements 21948 to always fail with ENOSYS. Some functions are actually named 21949 something starting with __ and the normal name is an alias. */ 21950#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21951choke me 21952#else 21953char (*f) () = $ac_func; 21954#endif 21955#ifdef __cplusplus 21956} 21957#endif 21958 21959int 21960main () 21961{ 21962return f != $ac_func; 21963 ; 21964 return 0; 21965} 21966_ACEOF 21967rm -f conftest.$ac_objext conftest$ac_exeext 21968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21969 (eval $ac_link) 2>&5 21970 ac_status=$? 21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21972 (exit $ac_status); } && 21973 { ac_try='test -s conftest$ac_exeext' 21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21975 (eval $ac_try) 2>&5 21976 ac_status=$? 21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21978 (exit $ac_status); }; }; then 21979 eval "$as_ac_var=yes" 21980else 21981 echo "$as_me: failed program was:" >&5 21982sed 's/^/| /' conftest.$ac_ext >&5 21983 21984eval "$as_ac_var=no" 21985fi 21986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21987fi 21988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21990if test `eval echo '${'$as_ac_var'}'` = yes; then 21991 cat >>confdefs.h <<_ACEOF 21992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21993_ACEOF 21994 21995fi 21996done 21997 21998echo "$as_me:$LINENO: checking for working mmap" >&5 21999echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 22000if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 22001 echo $ECHO_N "(cached) $ECHO_C" >&6 22002else 22003 if test "$cross_compiling" = yes; then 22004 ac_cv_func_mmap_fixed_mapped=no 22005else 22006 cat >conftest.$ac_ext <<_ACEOF 22007#line $LINENO "configure" 22008/* confdefs.h. */ 22009_ACEOF 22010cat confdefs.h >>conftest.$ac_ext 22011cat >>conftest.$ac_ext <<_ACEOF 22012/* end confdefs.h. */ 22013$ac_includes_default 22014/* malloc might have been renamed as rpl_malloc. */ 22015#undef malloc 22016 22017/* Thanks to Mike Haertel and Jim Avera for this test. 22018 Here is a matrix of mmap possibilities: 22019 mmap private not fixed 22020 mmap private fixed at somewhere currently unmapped 22021 mmap private fixed at somewhere already mapped 22022 mmap shared not fixed 22023 mmap shared fixed at somewhere currently unmapped 22024 mmap shared fixed at somewhere already mapped 22025 For private mappings, we should verify that changes cannot be read() 22026 back from the file, nor mmap's back from the file at a different 22027 address. (There have been systems where private was not correctly 22028 implemented like the infamous i386 svr4.0, and systems where the 22029 VM page cache was not coherent with the file system buffer cache 22030 like early versions of FreeBSD and possibly contemporary NetBSD.) 22031 For shared mappings, we should conversely verify that changes get 22032 propagated back to all the places they're supposed to be. 22033 22034 Grep wants private fixed already mapped. 22035 The main things grep needs to know about mmap are: 22036 * does it exist and is it safe to write into the mmap'd area 22037 * how to use it (BSD variants) */ 22038 22039#include <fcntl.h> 22040#include <sys/mman.h> 22041 22042#if !STDC_HEADERS && !HAVE_STDLIB_H 22043char *malloc (); 22044#endif 22045 22046/* This mess was copied from the GNU getpagesize.h. */ 22047#if !HAVE_GETPAGESIZE 22048/* Assume that all systems that can run configure have sys/param.h. */ 22049# if !HAVE_SYS_PARAM_H 22050# define HAVE_SYS_PARAM_H 1 22051# endif 22052 22053# ifdef _SC_PAGESIZE 22054# define getpagesize() sysconf(_SC_PAGESIZE) 22055# else /* no _SC_PAGESIZE */ 22056# if HAVE_SYS_PARAM_H 22057# include <sys/param.h> 22058# ifdef EXEC_PAGESIZE 22059# define getpagesize() EXEC_PAGESIZE 22060# else /* no EXEC_PAGESIZE */ 22061# ifdef NBPG 22062# define getpagesize() NBPG * CLSIZE 22063# ifndef CLSIZE 22064# define CLSIZE 1 22065# endif /* no CLSIZE */ 22066# else /* no NBPG */ 22067# ifdef NBPC 22068# define getpagesize() NBPC 22069# else /* no NBPC */ 22070# ifdef PAGESIZE 22071# define getpagesize() PAGESIZE 22072# endif /* PAGESIZE */ 22073# endif /* no NBPC */ 22074# endif /* no NBPG */ 22075# endif /* no EXEC_PAGESIZE */ 22076# else /* no HAVE_SYS_PARAM_H */ 22077# define getpagesize() 8192 /* punt totally */ 22078# endif /* no HAVE_SYS_PARAM_H */ 22079# endif /* no _SC_PAGESIZE */ 22080 22081#endif /* no HAVE_GETPAGESIZE */ 22082 22083int 22084main () 22085{ 22086 char *data, *data2, *data3; 22087 int i, pagesize; 22088 int fd; 22089 22090 pagesize = getpagesize (); 22091 22092 /* First, make a file with some known garbage in it. */ 22093 data = (char *) malloc (pagesize); 22094 if (!data) 22095 exit (1); 22096 for (i = 0; i < pagesize; ++i) 22097 *(data + i) = rand (); 22098 umask (0); 22099 fd = creat ("conftest.mmap", 0600); 22100 if (fd < 0) 22101 exit (1); 22102 if (write (fd, data, pagesize) != pagesize) 22103 exit (1); 22104 close (fd); 22105 22106 /* Next, try to mmap the file at a fixed address which already has 22107 something else allocated at it. If we can, also make sure that 22108 we see the same garbage. */ 22109 fd = open ("conftest.mmap", O_RDWR); 22110 if (fd < 0) 22111 exit (1); 22112 data2 = (char *) malloc (2 * pagesize); 22113 if (!data2) 22114 exit (1); 22115 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 22116 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 22117 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 22118 exit (1); 22119 for (i = 0; i < pagesize; ++i) 22120 if (*(data + i) != *(data2 + i)) 22121 exit (1); 22122 22123 /* Finally, make sure that changes to the mapped area do not 22124 percolate back to the file as seen by read(). (This is a bug on 22125 some variants of i386 svr4.0.) */ 22126 for (i = 0; i < pagesize; ++i) 22127 *(data2 + i) = *(data2 + i) + 1; 22128 data3 = (char *) malloc (pagesize); 22129 if (!data3) 22130 exit (1); 22131 if (read (fd, data3, pagesize) != pagesize) 22132 exit (1); 22133 for (i = 0; i < pagesize; ++i) 22134 if (*(data + i) != *(data3 + i)) 22135 exit (1); 22136 close (fd); 22137 exit (0); 22138} 22139_ACEOF 22140rm -f conftest$ac_exeext 22141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22142 (eval $ac_link) 2>&5 22143 ac_status=$? 22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22147 (eval $ac_try) 2>&5 22148 ac_status=$? 22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22150 (exit $ac_status); }; }; then 22151 ac_cv_func_mmap_fixed_mapped=yes 22152else 22153 echo "$as_me: program exited with status $ac_status" >&5 22154echo "$as_me: failed program was:" >&5 22155sed 's/^/| /' conftest.$ac_ext >&5 22156 22157( exit $ac_status ) 22158ac_cv_func_mmap_fixed_mapped=no 22159fi 22160rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22161fi 22162fi 22163echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 22164echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 22165if test $ac_cv_func_mmap_fixed_mapped = yes; then 22166 22167cat >>confdefs.h <<\_ACEOF 22168#define HAVE_MMAP 1 22169_ACEOF 22170 22171fi 22172rm -f conftest.mmap 22173 22174echo "$as_me:$LINENO: checking for mmap of files" >&5 22175echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 22176if test "${ac_cv_func_mmap_file+set}" = set; then 22177 echo $ECHO_N "(cached) $ECHO_C" >&6 22178else 22179 22180 22181 ac_ext=c 22182ac_cpp='$CPP $CPPFLAGS' 22183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22185ac_compiler_gnu=$ac_cv_c_compiler_gnu 22186 22187 if test "$cross_compiling" = yes; then 22188 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22189See \`config.log' for more details." >&5 22190echo "$as_me: error: cannot run test program while cross compiling 22191See \`config.log' for more details." >&2;} 22192 { (exit 1); exit 1; }; } 22193else 22194 cat >conftest.$ac_ext <<_ACEOF 22195#line $LINENO "configure" 22196/* confdefs.h. */ 22197_ACEOF 22198cat confdefs.h >>conftest.$ac_ext 22199cat >>conftest.$ac_ext <<_ACEOF 22200/* end confdefs.h. */ 22201 22202#ifdef HAVE_SYS_TYPES_H 22203#include <sys/types.h> 22204#endif 22205 22206#ifdef HAVE_SYS_MMAN_H 22207#include <sys/mman.h> 22208#endif 22209 22210#ifdef HAVE_FCNTL_H 22211#include <fcntl.h> 22212#endif 22213 22214 int fd; 22215 int main () { 22216 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);} 22217_ACEOF 22218rm -f conftest$ac_exeext 22219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22220 (eval $ac_link) 2>&5 22221 ac_status=$? 22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22225 (eval $ac_try) 2>&5 22226 ac_status=$? 22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22228 (exit $ac_status); }; }; then 22229 ac_cv_func_mmap_file=yes 22230else 22231 echo "$as_me: program exited with status $ac_status" >&5 22232echo "$as_me: failed program was:" >&5 22233sed 's/^/| /' conftest.$ac_ext >&5 22234 22235( exit $ac_status ) 22236ac_cv_func_mmap_file=no 22237fi 22238rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22239fi 22240 ac_ext=c 22241ac_cpp='$CPP $CPPFLAGS' 22242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22244ac_compiler_gnu=$ac_cv_c_compiler_gnu 22245 22246 22247fi 22248echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 22249echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 22250if test "$ac_cv_func_mmap_file" = yes; then 22251 22252cat >>confdefs.h <<\_ACEOF 22253#define HAVE_MMAP_FILE 22254_ACEOF 22255 22256 MMAP_FILE=yes 22257 22258fi 22259 22260if test ${ac_cv_func_mmap_file} = "no" 22261then 22262 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5 22263echo "$as_me: error: mmap() of files required but not found" >&2;} 22264 { (exit 1); exit 1; }; } 22265fi 22266echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 22267echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 22268if test "${ac_cv_header_mmap_anon+set}" = set; then 22269 echo $ECHO_N "(cached) $ECHO_C" >&6 22270else 22271 22272 22273 ac_ext=c 22274ac_cpp='$CPP $CPPFLAGS' 22275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22277ac_compiler_gnu=$ac_cv_c_compiler_gnu 22278 22279 cat >conftest.$ac_ext <<_ACEOF 22280#line $LINENO "configure" 22281/* confdefs.h. */ 22282_ACEOF 22283cat confdefs.h >>conftest.$ac_ext 22284cat >>conftest.$ac_ext <<_ACEOF 22285/* end confdefs.h. */ 22286#include <sys/mman.h> 22287 #include <unistd.h> 22288 #include <fcntl.h> 22289int 22290main () 22291{ 22292mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 22293 ; 22294 return 0; 22295} 22296_ACEOF 22297rm -f conftest.$ac_objext 22298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22299 (eval $ac_compile) 2>&5 22300 ac_status=$? 22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22302 (exit $ac_status); } && 22303 { ac_try='test -s conftest.$ac_objext' 22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22305 (eval $ac_try) 2>&5 22306 ac_status=$? 22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22308 (exit $ac_status); }; }; then 22309 ac_cv_header_mmap_anon=yes 22310else 22311 echo "$as_me: failed program was:" >&5 22312sed 's/^/| /' conftest.$ac_ext >&5 22313 22314ac_cv_header_mmap_anon=no 22315fi 22316rm -f conftest.$ac_objext conftest.$ac_ext 22317 ac_ext=c 22318ac_cpp='$CPP $CPPFLAGS' 22319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22321ac_compiler_gnu=$ac_cv_c_compiler_gnu 22322 22323 22324fi 22325echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 22326echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 22327if test "$ac_cv_header_mmap_anon" = yes; then 22328 22329cat >>confdefs.h <<\_ACEOF 22330#define HAVE_MMAP_ANONYMOUS 22331_ACEOF 22332 22333fi 22334 22335echo "$as_me:$LINENO: checking return type of signal handlers" >&5 22336echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 22337if test "${ac_cv_type_signal+set}" = set; then 22338 echo $ECHO_N "(cached) $ECHO_C" >&6 22339else 22340 cat >conftest.$ac_ext <<_ACEOF 22341#line $LINENO "configure" 22342/* confdefs.h. */ 22343_ACEOF 22344cat confdefs.h >>conftest.$ac_ext 22345cat >>conftest.$ac_ext <<_ACEOF 22346/* end confdefs.h. */ 22347#include <sys/types.h> 22348#include <signal.h> 22349#ifdef signal 22350# undef signal 22351#endif 22352#ifdef __cplusplus 22353extern "C" void (*signal (int, void (*)(int)))(int); 22354#else 22355void (*signal ()) (); 22356#endif 22357 22358int 22359main () 22360{ 22361int i; 22362 ; 22363 return 0; 22364} 22365_ACEOF 22366rm -f conftest.$ac_objext 22367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22368 (eval $ac_compile) 2>&5 22369 ac_status=$? 22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22371 (exit $ac_status); } && 22372 { ac_try='test -s conftest.$ac_objext' 22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22374 (eval $ac_try) 2>&5 22375 ac_status=$? 22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22377 (exit $ac_status); }; }; then 22378 ac_cv_type_signal=void 22379else 22380 echo "$as_me: failed program was:" >&5 22381sed 's/^/| /' conftest.$ac_ext >&5 22382 22383ac_cv_type_signal=int 22384fi 22385rm -f conftest.$ac_objext conftest.$ac_ext 22386fi 22387echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 22388echo "${ECHO_T}$ac_cv_type_signal" >&6 22389 22390cat >>confdefs.h <<_ACEOF 22391#define RETSIGTYPE $ac_cv_type_signal 22392_ACEOF 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll 22407do 22408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22409echo "$as_me:$LINENO: checking for $ac_func" >&5 22410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22411if eval "test \"\${$as_ac_var+set}\" = set"; then 22412 echo $ECHO_N "(cached) $ECHO_C" >&6 22413else 22414 cat >conftest.$ac_ext <<_ACEOF 22415#line $LINENO "configure" 22416/* confdefs.h. */ 22417_ACEOF 22418cat confdefs.h >>conftest.$ac_ext 22419cat >>conftest.$ac_ext <<_ACEOF 22420/* end confdefs.h. */ 22421/* System header to define __stub macros and hopefully few prototypes, 22422 which can conflict with char $ac_func (); below. 22423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22424 <limits.h> exists even on freestanding compilers. */ 22425#ifdef __STDC__ 22426# include <limits.h> 22427#else 22428# include <assert.h> 22429#endif 22430/* Override any gcc2 internal prototype to avoid an error. */ 22431#ifdef __cplusplus 22432extern "C" 22433{ 22434#endif 22435/* We use char because int might match the return type of a gcc2 22436 builtin and then its argument prototype would still apply. */ 22437char $ac_func (); 22438/* The GNU C library defines this for functions which it implements 22439 to always fail with ENOSYS. Some functions are actually named 22440 something starting with __ and the normal name is an alias. */ 22441#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22442choke me 22443#else 22444char (*f) () = $ac_func; 22445#endif 22446#ifdef __cplusplus 22447} 22448#endif 22449 22450int 22451main () 22452{ 22453return f != $ac_func; 22454 ; 22455 return 0; 22456} 22457_ACEOF 22458rm -f conftest.$ac_objext conftest$ac_exeext 22459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22460 (eval $ac_link) 2>&5 22461 ac_status=$? 22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22463 (exit $ac_status); } && 22464 { ac_try='test -s conftest$ac_exeext' 22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22466 (eval $ac_try) 2>&5 22467 ac_status=$? 22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22469 (exit $ac_status); }; }; then 22470 eval "$as_ac_var=yes" 22471else 22472 echo "$as_me: failed program was:" >&5 22473sed 's/^/| /' conftest.$ac_ext >&5 22474 22475eval "$as_ac_var=no" 22476fi 22477rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22478fi 22479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22480echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22481if test `eval echo '${'$as_ac_var'}'` = yes; then 22482 cat >>confdefs.h <<_ACEOF 22483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22484_ACEOF 22485 22486fi 22487done 22488 22489 22490 22491echo "$as_me:$LINENO: checking for mmap" >&5 22492echo $ECHO_N "checking for mmap... $ECHO_C" >&6 22493if test "${ac_cv_func_mmap+set}" = set; then 22494 echo $ECHO_N "(cached) $ECHO_C" >&6 22495else 22496 cat >conftest.$ac_ext <<_ACEOF 22497#line $LINENO "configure" 22498/* confdefs.h. */ 22499_ACEOF 22500cat confdefs.h >>conftest.$ac_ext 22501cat >>conftest.$ac_ext <<_ACEOF 22502/* end confdefs.h. */ 22503/* System header to define __stub macros and hopefully few prototypes, 22504 which can conflict with char mmap (); below. 22505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22506 <limits.h> exists even on freestanding compilers. */ 22507#ifdef __STDC__ 22508# include <limits.h> 22509#else 22510# include <assert.h> 22511#endif 22512/* Override any gcc2 internal prototype to avoid an error. */ 22513#ifdef __cplusplus 22514extern "C" 22515{ 22516#endif 22517/* We use char because int might match the return type of a gcc2 22518 builtin and then its argument prototype would still apply. */ 22519char mmap (); 22520/* The GNU C library defines this for functions which it implements 22521 to always fail with ENOSYS. Some functions are actually named 22522 something starting with __ and the normal name is an alias. */ 22523#if defined (__stub_mmap) || defined (__stub___mmap) 22524choke me 22525#else 22526char (*f) () = mmap; 22527#endif 22528#ifdef __cplusplus 22529} 22530#endif 22531 22532int 22533main () 22534{ 22535return f != mmap; 22536 ; 22537 return 0; 22538} 22539_ACEOF 22540rm -f conftest.$ac_objext conftest$ac_exeext 22541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22542 (eval $ac_link) 2>&5 22543 ac_status=$? 22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22545 (exit $ac_status); } && 22546 { ac_try='test -s conftest$ac_exeext' 22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22548 (eval $ac_try) 2>&5 22549 ac_status=$? 22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22551 (exit $ac_status); }; }; then 22552 ac_cv_func_mmap=yes 22553else 22554 echo "$as_me: failed program was:" >&5 22555sed 's/^/| /' conftest.$ac_ext >&5 22556 22557ac_cv_func_mmap=no 22558fi 22559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22560fi 22561echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5 22562echo "${ECHO_T}$ac_cv_func_mmap" >&6 22563if test $ac_cv_func_mmap = yes; then 22564 : 22565else 22566 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5 22567echo "$as_me: error: Function mmap() required but not found" >&2;} 22568 { (exit 1); exit 1; }; } 22569fi 22570 22571echo "$as_me:$LINENO: checking for mprotect" >&5 22572echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 22573if test "${ac_cv_func_mprotect+set}" = set; then 22574 echo $ECHO_N "(cached) $ECHO_C" >&6 22575else 22576 cat >conftest.$ac_ext <<_ACEOF 22577#line $LINENO "configure" 22578/* confdefs.h. */ 22579_ACEOF 22580cat confdefs.h >>conftest.$ac_ext 22581cat >>conftest.$ac_ext <<_ACEOF 22582/* end confdefs.h. */ 22583/* System header to define __stub macros and hopefully few prototypes, 22584 which can conflict with char mprotect (); below. 22585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22586 <limits.h> exists even on freestanding compilers. */ 22587#ifdef __STDC__ 22588# include <limits.h> 22589#else 22590# include <assert.h> 22591#endif 22592/* Override any gcc2 internal prototype to avoid an error. */ 22593#ifdef __cplusplus 22594extern "C" 22595{ 22596#endif 22597/* We use char because int might match the return type of a gcc2 22598 builtin and then its argument prototype would still apply. */ 22599char mprotect (); 22600/* The GNU C library defines this for functions which it implements 22601 to always fail with ENOSYS. Some functions are actually named 22602 something starting with __ and the normal name is an alias. */ 22603#if defined (__stub_mprotect) || defined (__stub___mprotect) 22604choke me 22605#else 22606char (*f) () = mprotect; 22607#endif 22608#ifdef __cplusplus 22609} 22610#endif 22611 22612int 22613main () 22614{ 22615return f != mprotect; 22616 ; 22617 return 0; 22618} 22619_ACEOF 22620rm -f conftest.$ac_objext conftest$ac_exeext 22621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22622 (eval $ac_link) 2>&5 22623 ac_status=$? 22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22625 (exit $ac_status); } && 22626 { ac_try='test -s conftest$ac_exeext' 22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22628 (eval $ac_try) 2>&5 22629 ac_status=$? 22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22631 (exit $ac_status); }; }; then 22632 ac_cv_func_mprotect=yes 22633else 22634 echo "$as_me: failed program was:" >&5 22635sed 's/^/| /' conftest.$ac_ext >&5 22636 22637ac_cv_func_mprotect=no 22638fi 22639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22640fi 22641echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 22642echo "${ECHO_T}$ac_cv_func_mprotect" >&6 22643if test $ac_cv_func_mprotect = yes; then 22644 : 22645else 22646 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 22647echo "$as_me: error: Function mprotect() required but not found" >&2;} 22648 { (exit 1); exit 1; }; } 22649fi 22650 22651 22652 22653 22654 22655 ac_ext=c 22656ac_cpp='$CPP $CPPFLAGS' 22657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22659ac_compiler_gnu=$ac_cv_c_compiler_gnu 22660 22661 oldcflags="$CFLAGS" 22662 CFLAGS="$CFLAGS -Wl,-R." 22663 cat >conftest.$ac_ext <<_ACEOF 22664int main() { return 0; } 22665_ACEOF 22666rm -f conftest.$ac_objext conftest$ac_exeext 22667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22668 (eval $ac_link) 2>&5 22669 ac_status=$? 22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22671 (exit $ac_status); } && 22672 { ac_try='test -s conftest$ac_exeext' 22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22674 (eval $ac_try) 2>&5 22675 ac_status=$? 22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22677 (exit $ac_status); }; }; then 22678 ac_cv_link_use_r=yes 22679else 22680 echo "$as_me: failed program was:" >&5 22681sed 's/^/| /' conftest.$ac_ext >&5 22682 22683ac_cv_link_use_r=no 22684fi 22685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22686 CFLAGS="$oldcflags" 22687 ac_ext=c 22688ac_cpp='$CPP $CPPFLAGS' 22689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22691ac_compiler_gnu=$ac_cv_c_compiler_gnu 22692 22693 if test "$ac_cv_link_use_r" = yes 22694 then 22695 22696cat >>confdefs.h <<\_ACEOF 22697#define HAVE_LINK_R 1 22698_ACEOF 22699 22700 fi 22701 22702 22703 22704# Check whether --enable-purify or --disable-purify was given. 22705if test "${enable_purify+set}" = set; then 22706 enableval="$enable_purify" 22707 22708else 22709 enableval="no" 22710fi; 22711if test ${enableval} = "no" 22712then 22713 ENABLE_PURIFY= 22714 22715else 22716 ENABLE_PURIFY=ENABLE_PURIFY=1 22717 22718fi 22719 22720# Check whether --enable-optimized or --disable-optimized was given. 22721if test "${enable_optimized+set}" = set; then 22722 enableval="$enable_optimized" 22723 22724else 22725 enableval=no 22726fi; 22727if test ${enableval} = "no" 22728then 22729 ENABLE_OPTIMIZED= 22730 22731else 22732 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 22733 22734fi 22735 22736# Check whether --enable-spec2000 or --disable-spec2000 was given. 22737if test "${enable_spec2000+set}" = set; then 22738 enableval="$enable_spec2000" 22739 22740else 22741 enableval=no 22742fi; 22743if test ${enableval} = "no" 22744then 22745 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec 22746 then 22747 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec 22748 22749 USE_SPEC=USE_SPEC=1 22750 22751 else 22752 USE_SPEC= 22753 22754 22755 fi 22756else 22757 if test ${enableval} = "" 22758 then 22759 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec 22760 22761 else 22762 SPEC_ROOT=${enableval} 22763 22764 fi 22765 USE_SPEC=USE_SPEC=1 22766 22767fi 22768 22769# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given. 22770if test "${enable_precompiled_bytecode+set}" = set; then 22771 enableval="$enable_precompiled_bytecode" 22772 22773else 22774 enableval=no 22775fi; 22776if test ${enableval} = "no" 22777then 22778 UPB= 22779 22780else 22781 UPB=USE_PRECOMPILED_BYTECODE=1 22782 22783fi 22784 22785 22786# Check whether --enable-llc_diffs or --disable-llc_diffs was given. 22787if test "${enable_llc_diffs+set}" = set; then 22788 enableval="$enable_llc_diffs" 22789 22790else 22791 enableval=yes 22792fi; 22793if test ${enableval} = "no" 22794then 22795 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1 22796 22797else 22798 DISABLE_LLC_DIFFS= 22799 22800fi 22801 22802# Check whether --enable-jit or --disable-jit was given. 22803if test "${enable_jit+set}" = set; then 22804 enableval="$enable_jit" 22805 22806else 22807 enableval=default 22808fi; 22809 22810if test ${enableval} = "no" 22811then 22812 JIT= 22813 22814else 22815 case $target in 22816 *i*86*) 22817 JIT=TARGET_HAS_JIT=1 22818 22819 ;; 22820 *sparc*) 22821 JIT=TARGET_HAS_JIT=1 22822 22823 ;; 22824 *) 22825 JIT= 22826 22827 ;; 22828 esac 22829fi 22830 22831 22832 22833# Check whether --with-llvmgccdir or --without-llvmgccdir was given. 22834if test "${with_llvmgccdir+set}" = set; then 22835 withval="$with_llvmgccdir" 22836 LLVMGCCDIR=$withval 22837 22838fi; 22839 22840echo "$as_me:$LINENO: checking for llvm-gcc" >&5 22841echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 22842LLVM_GCC_CHECK=no 22843if test -d "$LLVMGCCDIR" 22844then 22845 if test -x "$LLVMGCCDIR/bin/gcc" 22846 then 22847 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" 22848 fi 22849fi 22850llvmgccwarn=no 22851echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 22852echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 22853if test "$LLVM_GCC_CHECK" = "no" 22854then 22855 llvmgccwarn=yes 22856fi 22857 22858echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 22859echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 22860LLVM_GCC_SANE=no 22861if test -x "$LLVM_GCC_CHECK" 22862then 22863 cp /dev/null conftest.c 22864 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 22865 if test $? -eq 0 22866 then 22867 LLVM_GCC_SANE=yes 22868 fi 22869 rm conftest.c 22870fi 22871echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 22872echo "${ECHO_T}$LLVM_GCC_SANE" >&6 22873if test "$LLVM_GCC_SANE" = "no" 22874then 22875 llvmgccwarn=yes 22876fi 22877 22878 22879# Check whether --with-bcrepos or --without-bcrepos was given. 22880if test "${with_bcrepos+set}" = set; then 22881 withval="$with_bcrepos" 22882 BCR=$withval 22883 22884else 22885 BCR=/home/vadve/lattner/LLVMPrograms 22886 22887fi; 22888 22889 22890# Check whether --with-papi or --without-papi was given. 22891if test "${with_papi+set}" = set; then 22892 withval="$with_papi" 22893 PAPIDIR=$withval 22894 22895else 22896 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1 22897 22898fi; 22899 22900 22901# Check whether --with-purify or --without-purify was given. 22902if test "${with_purify+set}" = set; then 22903 withval="$with_purify" 22904 PURIFY=$withval 22905 22906fi; 22907 22908 22909 ac_config_files="$ac_config_files Makefile.config" 22910cat >confcache <<\_ACEOF 22911# This file is a shell script that caches the results of configure 22912# tests run on this system so they can be shared between configure 22913# scripts and configure runs, see configure's option --config-cache. 22914# It is not useful on other systems. If it contains results you don't 22915# want to keep, you may remove or edit it. 22916# 22917# config.status only pays attention to the cache file if you give it 22918# the --recheck option to rerun configure. 22919# 22920# `ac_cv_env_foo' variables (set or unset) will be overridden when 22921# loading this file, other *unset* `ac_cv_foo' will be assigned the 22922# following values. 22923 22924_ACEOF 22925 22926# The following way of writing the cache mishandles newlines in values, 22927# but we know of no workaround that is simple, portable, and efficient. 22928# So, don't put newlines in cache variables' values. 22929# Ultrix sh set writes to stderr and can't be redirected directly, 22930# and sets the high bit in the cache file unless we assign to the vars. 22931{ 22932 (set) 2>&1 | 22933 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22934 *ac_space=\ *) 22935 # `set' does not quote correctly, so add quotes (double-quote 22936 # substitution turns \\\\ into \\, and sed turns \\ into \). 22937 sed -n \ 22938 "s/'/'\\\\''/g; 22939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22940 ;; 22941 *) 22942 # `set' quotes correctly as required by POSIX, so do not add quotes. 22943 sed -n \ 22944 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22945 ;; 22946 esac; 22947} | 22948 sed ' 22949 t clear 22950 : clear 22951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22952 t end 22953 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22954 : end' >>confcache 22955if diff $cache_file confcache >/dev/null 2>&1; then :; else 22956 if test -w $cache_file; then 22957 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22958 cat confcache >$cache_file 22959 else 22960 echo "not updating unwritable cache $cache_file" 22961 fi 22962fi 22963rm -f confcache 22964 22965test "x$prefix" = xNONE && prefix=$ac_default_prefix 22966# Let make expand exec_prefix. 22967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22968 22969# VPATH may cause trouble with some makes, so we remove $(srcdir), 22970# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22971# trailing colons and then remove the whole line if VPATH becomes empty 22972# (actually we leave an empty line to preserve line numbers). 22973if test "x$srcdir" = x.; then 22974 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22975s/:*\$(srcdir):*/:/; 22976s/:*\${srcdir}:*/:/; 22977s/:*@srcdir@:*/:/; 22978s/^\([^=]*=[ ]*\):*/\1/; 22979s/:*$//; 22980s/^[^=]*=[ ]*$//; 22981}' 22982fi 22983 22984DEFS=-DHAVE_CONFIG_H 22985 22986ac_libobjs= 22987ac_ltlibobjs= 22988for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22989 # 1. Remove the extension, and $U if already installed. 22990 ac_i=`echo "$ac_i" | 22991 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22992 # 2. Add them. 22993 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22994 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22995done 22996LIBOBJS=$ac_libobjs 22997 22998LTLIBOBJS=$ac_ltlibobjs 22999 23000 23001 23002: ${CONFIG_STATUS=./config.status} 23003ac_clean_files_save=$ac_clean_files 23004ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23005{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23006echo "$as_me: creating $CONFIG_STATUS" >&6;} 23007cat >$CONFIG_STATUS <<_ACEOF 23008#! $SHELL 23009# Generated by $as_me. 23010# Run this file to recreate the current configuration. 23011# Compiler output produced by configure, useful for debugging 23012# configure, is in config.log if it exists. 23013 23014debug=false 23015ac_cs_recheck=false 23016ac_cs_silent=false 23017SHELL=\${CONFIG_SHELL-$SHELL} 23018_ACEOF 23019 23020cat >>$CONFIG_STATUS <<\_ACEOF 23021## --------------------- ## 23022## M4sh Initialization. ## 23023## --------------------- ## 23024 23025# Be Bourne compatible 23026if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23027 emulate sh 23028 NULLCMD=: 23029 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23030 # is contrary to our usage. Disable this feature. 23031 alias -g '${1+"$@"}'='"$@"' 23032elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23033 set -o posix 23034fi 23035 23036# Support unset when possible. 23037if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 23038 as_unset=unset 23039else 23040 as_unset=false 23041fi 23042 23043 23044# Work around bugs in pre-3.0 UWIN ksh. 23045$as_unset ENV MAIL MAILPATH 23046PS1='$ ' 23047PS2='> ' 23048PS4='+ ' 23049 23050# NLS nuisances. 23051for as_var in \ 23052 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23053 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23054 LC_TELEPHONE LC_TIME 23055do 23056 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 23057 eval $as_var=C; export $as_var 23058 else 23059 $as_unset $as_var 23060 fi 23061done 23062 23063# Required to use basename. 23064if expr a : '\(a\)' >/dev/null 2>&1; then 23065 as_expr=expr 23066else 23067 as_expr=false 23068fi 23069 23070if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23071 as_basename=basename 23072else 23073 as_basename=false 23074fi 23075 23076 23077# Name of the executable. 23078as_me=`$as_basename "$0" || 23079$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23080 X"$0" : 'X\(//\)$' \| \ 23081 X"$0" : 'X\(/\)$' \| \ 23082 . : '\(.\)' 2>/dev/null || 23083echo X/"$0" | 23084 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23085 /^X\/\(\/\/\)$/{ s//\1/; q; } 23086 /^X\/\(\/\).*/{ s//\1/; q; } 23087 s/.*/./; q'` 23088 23089 23090# PATH needs CR, and LINENO needs CR and PATH. 23091# Avoid depending upon Character Ranges. 23092as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23093as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23094as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23095as_cr_digits='0123456789' 23096as_cr_alnum=$as_cr_Letters$as_cr_digits 23097 23098# The user is always right. 23099if test "${PATH_SEPARATOR+set}" != set; then 23100 echo "#! /bin/sh" >conf$$.sh 23101 echo "exit 0" >>conf$$.sh 23102 chmod +x conf$$.sh 23103 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23104 PATH_SEPARATOR=';' 23105 else 23106 PATH_SEPARATOR=: 23107 fi 23108 rm -f conf$$.sh 23109fi 23110 23111 23112 as_lineno_1=$LINENO 23113 as_lineno_2=$LINENO 23114 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23115 test "x$as_lineno_1" != "x$as_lineno_2" && 23116 test "x$as_lineno_3" = "x$as_lineno_2" || { 23117 # Find who we are. Look in the path if we contain no path at all 23118 # relative or not. 23119 case $0 in 23120 *[\\/]* ) as_myself=$0 ;; 23121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23122for as_dir in $PATH 23123do 23124 IFS=$as_save_IFS 23125 test -z "$as_dir" && as_dir=. 23126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23127done 23128 23129 ;; 23130 esac 23131 # We did not find ourselves, most probably we were run as `sh COMMAND' 23132 # in which case we are not to be found in the path. 23133 if test "x$as_myself" = x; then 23134 as_myself=$0 23135 fi 23136 if test ! -f "$as_myself"; then 23137 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23138echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23139 { (exit 1); exit 1; }; } 23140 fi 23141 case $CONFIG_SHELL in 23142 '') 23143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23144for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23145do 23146 IFS=$as_save_IFS 23147 test -z "$as_dir" && as_dir=. 23148 for as_base in sh bash ksh sh5; do 23149 case $as_dir in 23150 /*) 23151 if ("$as_dir/$as_base" -c ' 23152 as_lineno_1=$LINENO 23153 as_lineno_2=$LINENO 23154 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23155 test "x$as_lineno_1" != "x$as_lineno_2" && 23156 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23157 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23158 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23159 CONFIG_SHELL=$as_dir/$as_base 23160 export CONFIG_SHELL 23161 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23162 fi;; 23163 esac 23164 done 23165done 23166;; 23167 esac 23168 23169 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23170 # uniformly replaced by the line number. The first 'sed' inserts a 23171 # line-number line before each line; the second 'sed' does the real 23172 # work. The second script uses 'N' to pair each line-number line 23173 # with the numbered line, and appends trailing '-' during 23174 # substitution so that $LINENO is not a special case at line end. 23175 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23176 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23177 sed '=' <$as_myself | 23178 sed ' 23179 N 23180 s,$,-, 23181 : loop 23182 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23183 t loop 23184 s,-$,, 23185 s,^['$as_cr_digits']*\n,, 23186 ' >$as_me.lineno && 23187 chmod +x $as_me.lineno || 23188 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23189echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23190 { (exit 1); exit 1; }; } 23191 23192 # Don't try to exec as it changes $[0], causing all sort of problems 23193 # (the dirname of $[0] is not the place where we might find the 23194 # original and so on. Autoconf is especially sensible to this). 23195 . ./$as_me.lineno 23196 # Exit status is that of the last command. 23197 exit 23198} 23199 23200 23201case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23202 *c*,-n*) ECHO_N= ECHO_C=' 23203' ECHO_T=' ' ;; 23204 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23205 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23206esac 23207 23208if expr a : '\(a\)' >/dev/null 2>&1; then 23209 as_expr=expr 23210else 23211 as_expr=false 23212fi 23213 23214rm -f conf$$ conf$$.exe conf$$.file 23215echo >conf$$.file 23216if ln -s conf$$.file conf$$ 2>/dev/null; then 23217 # We could just check for DJGPP; but this test a) works b) is more generic 23218 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23219 if test -f conf$$.exe; then 23220 # Don't use ln at all; we don't have any links 23221 as_ln_s='cp -p' 23222 else 23223 as_ln_s='ln -s' 23224 fi 23225elif ln conf$$.file conf$$ 2>/dev/null; then 23226 as_ln_s=ln 23227else 23228 as_ln_s='cp -p' 23229fi 23230rm -f conf$$ conf$$.exe conf$$.file 23231 23232if mkdir -p . 2>/dev/null; then 23233 as_mkdir_p=: 23234else 23235 as_mkdir_p=false 23236fi 23237 23238as_executable_p="test -f" 23239 23240# Sed expression to map a string onto a valid CPP name. 23241as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 23242 23243# Sed expression to map a string onto a valid variable name. 23244as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 23245 23246 23247# IFS 23248# We need space, tab and new line, in precisely that order. 23249as_nl=' 23250' 23251IFS=" $as_nl" 23252 23253# CDPATH. 23254$as_unset CDPATH 23255 23256exec 6>&1 23257 23258# Open the log real soon, to keep \$[0] and so on meaningful, and to 23259# report actual input values of CONFIG_FILES etc. instead of their 23260# values after options handling. Logging --version etc. is OK. 23261exec 5>>config.log 23262{ 23263 echo 23264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23265## Running $as_me. ## 23266_ASBOX 23267} >&5 23268cat >&5 <<_CSEOF 23269 23270This file was extended by [LLVM] $as_me [1.1], which was 23271generated by GNU Autoconf 2.57. Invocation command line was 23272 23273 CONFIG_FILES = $CONFIG_FILES 23274 CONFIG_HEADERS = $CONFIG_HEADERS 23275 CONFIG_LINKS = $CONFIG_LINKS 23276 CONFIG_COMMANDS = $CONFIG_COMMANDS 23277 $ $0 $@ 23278 23279_CSEOF 23280echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23281echo >&5 23282_ACEOF 23283 23284# Files that config.status was made for. 23285if test -n "$ac_config_files"; then 23286 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23287fi 23288 23289if test -n "$ac_config_headers"; then 23290 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23291fi 23292 23293if test -n "$ac_config_links"; then 23294 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23295fi 23296 23297if test -n "$ac_config_commands"; then 23298 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23299fi 23300 23301cat >>$CONFIG_STATUS <<\_ACEOF 23302 23303ac_cs_usage="\ 23304\`$as_me' instantiates files from templates according to the 23305current configuration. 23306 23307Usage: $0 [OPTIONS] [FILE]... 23308 23309 -h, --help print this help, then exit 23310 -V, --version print version number, then exit 23311 -q, --quiet do not print progress messages 23312 -d, --debug don't remove temporary files 23313 --recheck update $as_me by reconfiguring in the same conditions 23314 --file=FILE[:TEMPLATE] 23315 instantiate the configuration file FILE 23316 --header=FILE[:TEMPLATE] 23317 instantiate the configuration header FILE 23318 23319Configuration files: 23320$config_files 23321 23322Configuration headers: 23323$config_headers 23324 23325Configuration commands: 23326$config_commands 23327 23328Report bugs to <bug-autoconf@gnu.org>." 23329_ACEOF 23330 23331cat >>$CONFIG_STATUS <<_ACEOF 23332ac_cs_version="\\ 23333[LLVM] config.status [1.1] 23334configured by $0, generated by GNU Autoconf 2.57, 23335 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23336 23337Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 23338Free Software Foundation, Inc. 23339This config.status script is free software; the Free Software Foundation 23340gives unlimited permission to copy, distribute and modify it." 23341srcdir=$srcdir 23342INSTALL="$INSTALL" 23343_ACEOF 23344 23345cat >>$CONFIG_STATUS <<\_ACEOF 23346# If no file are specified by the user, then we need to provide default 23347# value. By we need to know if files were specified by the user. 23348ac_need_defaults=: 23349while test $# != 0 23350do 23351 case $1 in 23352 --*=*) 23353 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23354 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23355 ac_shift=: 23356 ;; 23357 -*) 23358 ac_option=$1 23359 ac_optarg=$2 23360 ac_shift=shift 23361 ;; 23362 *) # This is not an option, so the user has probably given explicit 23363 # arguments. 23364 ac_option=$1 23365 ac_need_defaults=false;; 23366 esac 23367 23368 case $ac_option in 23369 # Handling of the options. 23370_ACEOF 23371cat >>$CONFIG_STATUS <<\_ACEOF 23372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23373 ac_cs_recheck=: ;; 23374 --version | --vers* | -V ) 23375 echo "$ac_cs_version"; exit 0 ;; 23376 --he | --h) 23377 # Conflict between --help and --header 23378 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23379Try \`$0 --help' for more information." >&5 23380echo "$as_me: error: ambiguous option: $1 23381Try \`$0 --help' for more information." >&2;} 23382 { (exit 1); exit 1; }; };; 23383 --help | --hel | -h ) 23384 echo "$ac_cs_usage"; exit 0 ;; 23385 --debug | --d* | -d ) 23386 debug=: ;; 23387 --file | --fil | --fi | --f ) 23388 $ac_shift 23389 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23390 ac_need_defaults=false;; 23391 --header | --heade | --head | --hea ) 23392 $ac_shift 23393 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23394 ac_need_defaults=false;; 23395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23396 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23397 ac_cs_silent=: ;; 23398 23399 # This is an error. 23400 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23401Try \`$0 --help' for more information." >&5 23402echo "$as_me: error: unrecognized option: $1 23403Try \`$0 --help' for more information." >&2;} 23404 { (exit 1); exit 1; }; } ;; 23405 23406 *) ac_config_targets="$ac_config_targets $1" ;; 23407 23408 esac 23409 shift 23410done 23411 23412ac_configure_extra_args= 23413 23414if $ac_cs_silent; then 23415 exec 6>/dev/null 23416 ac_configure_extra_args="$ac_configure_extra_args --silent" 23417fi 23418 23419_ACEOF 23420cat >>$CONFIG_STATUS <<_ACEOF 23421if \$ac_cs_recheck; then 23422 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23423 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23424fi 23425 23426_ACEOF 23427 23428cat >>$CONFIG_STATUS <<_ACEOF 23429# 23430# INIT-COMMANDS section. 23431# 23432 23433${srcdir}/autoconf/mkinstalldirs `dirname Makefile` 23434${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` 23435${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` 23436${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` 23437${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` 23438${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 23439${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` 23440${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` 23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile` 23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs` 23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile` 23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report` 23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report` 23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report` 23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile` 23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile` 23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile` 23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile` 23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report` 23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile` 23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report` 23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile` 23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot` 23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile` 23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile` 23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile` 23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec` 23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile` 23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc` 23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in` 23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile` 23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in` 23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile` 23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in` 23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile` 23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in` 23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile` 23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in` 23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile` 23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in` 23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile` 23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in` 23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile` 23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc` 23477${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` 23478${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` 23479${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` 23480 23481_ACEOF 23482 23483 23484 23485cat >>$CONFIG_STATUS <<\_ACEOF 23486for ac_config_target in $ac_config_targets 23487do 23488 case "$ac_config_target" in 23489 # Handling of arguments. 23490 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 23491 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 23492 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 23493 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 23494 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 23495 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 23496 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 23497 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; 23498 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; 23499 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;; 23500 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;; 23501 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;; 23502 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;; 23503 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;; 23504 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;; 23505 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;; 23506 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;; 23507 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;; 23508 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;; 23509 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;; 23510 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;; 23511 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;; 23512 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;; 23513 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;; 23514 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;; 23515 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;; 23516 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;; 23517 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;; 23518 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;; 23519 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;; 23520 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;; 23521 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;; 23522 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;; 23523 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;; 23524 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;; 23525 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;; 23526 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;; 23527 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;; 23528 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;; 23529 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;; 23530 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;; 23531 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;; 23532 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;; 23533 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;; 23534 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;; 23535 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 23536 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 23537 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 23538 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;; 23539 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23540echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23541 { (exit 1); exit 1; }; };; 23542 esac 23543done 23544 23545# If the user did not use the arguments to specify the items to instantiate, 23546# then the envvar interface is used. Set only those that are not. 23547# We use the long form for the default assignment because of an extremely 23548# bizarre bug on SunOS 4.1.3. 23549if $ac_need_defaults; then 23550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23552 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23553fi 23554 23555# Have a temporary directory for convenience. Make it in the build tree 23556# simply because there is no reason to put it here, and in addition, 23557# creating and moving files from /tmp can sometimes cause problems. 23558# Create a temporary directory, and hook for its removal unless debugging. 23559$debug || 23560{ 23561 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23562 trap '{ (exit 1); exit 1; }' 1 2 13 15 23563} 23564 23565# Create a (secure) tmp directory for tmp files. 23566 23567{ 23568 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23569 test -n "$tmp" && test -d "$tmp" 23570} || 23571{ 23572 tmp=./confstat$$-$RANDOM 23573 (umask 077 && mkdir $tmp) 23574} || 23575{ 23576 echo "$me: cannot create a temporary directory in ." >&2 23577 { (exit 1); exit 1; } 23578} 23579 23580_ACEOF 23581 23582cat >>$CONFIG_STATUS <<_ACEOF 23583 23584# 23585# CONFIG_FILES section. 23586# 23587 23588# No need to generate the scripts if there are no CONFIG_FILES. 23589# This happens for instance when ./config.status config.h 23590if test -n "\$CONFIG_FILES"; then 23591 # Protect against being on the right side of a sed subst in config.status. 23592 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23593 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23594s,@SHELL@,$SHELL,;t t 23595s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23596s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23597s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23598s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23599s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23600s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23601s,@exec_prefix@,$exec_prefix,;t t 23602s,@prefix@,$prefix,;t t 23603s,@program_transform_name@,$program_transform_name,;t t 23604s,@bindir@,$bindir,;t t 23605s,@sbindir@,$sbindir,;t t 23606s,@libexecdir@,$libexecdir,;t t 23607s,@datadir@,$datadir,;t t 23608s,@sysconfdir@,$sysconfdir,;t t 23609s,@sharedstatedir@,$sharedstatedir,;t t 23610s,@localstatedir@,$localstatedir,;t t 23611s,@libdir@,$libdir,;t t 23612s,@includedir@,$includedir,;t t 23613s,@oldincludedir@,$oldincludedir,;t t 23614s,@infodir@,$infodir,;t t 23615s,@mandir@,$mandir,;t t 23616s,@build_alias@,$build_alias,;t t 23617s,@host_alias@,$host_alias,;t t 23618s,@target_alias@,$target_alias,;t t 23619s,@DEFS@,$DEFS,;t t 23620s,@ECHO_C@,$ECHO_C,;t t 23621s,@ECHO_N@,$ECHO_N,;t t 23622s,@ECHO_T@,$ECHO_T,;t t 23623s,@LIBS@,$LIBS,;t t 23624s,@subdirs@,$subdirs,;t t 23625s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23626s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23627s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23628s,@build@,$build,;t t 23629s,@build_cpu@,$build_cpu,;t t 23630s,@build_vendor@,$build_vendor,;t t 23631s,@build_os@,$build_os,;t t 23632s,@host@,$host,;t t 23633s,@host_cpu@,$host_cpu,;t t 23634s,@host_vendor@,$host_vendor,;t t 23635s,@host_os@,$host_os,;t t 23636s,@target@,$target,;t t 23637s,@target_cpu@,$target_cpu,;t t 23638s,@target_vendor@,$target_vendor,;t t 23639s,@target_os@,$target_os,;t t 23640s,@OS@,$OS,;t t 23641s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t 23642s,@ARCH@,$ARCH,;t t 23643s,@CXX@,$CXX,;t t 23644s,@CXXFLAGS@,$CXXFLAGS,;t t 23645s,@LDFLAGS@,$LDFLAGS,;t t 23646s,@CPPFLAGS@,$CPPFLAGS,;t t 23647s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23648s,@EXEEXT@,$EXEEXT,;t t 23649s,@OBJEXT@,$OBJEXT,;t t 23650s,@CC@,$CC,;t t 23651s,@CFLAGS@,$CFLAGS,;t t 23652s,@ac_ct_CC@,$ac_ct_CC,;t t 23653s,@CPP@,$CPP,;t t 23654s,@ifGNUmake@,$ifGNUmake,;t t 23655s,@LEX@,$LEX,;t t 23656s,@LEXLIB@,$LEXLIB,;t t 23657s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 23658s,@YACC@,$YACC,;t t 23659s,@BISON@,$BISON,;t t 23660s,@EGREP@,$EGREP,;t t 23661s,@LN_S@,$LN_S,;t t 23662s,@ECHO@,$ECHO,;t t 23663s,@AR@,$AR,;t t 23664s,@ac_ct_AR@,$ac_ct_AR,;t t 23665s,@RANLIB@,$RANLIB,;t t 23666s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23667s,@STRIP@,$STRIP,;t t 23668s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23669s,@CXXCPP@,$CXXCPP,;t t 23670s,@F77@,$F77,;t t 23671s,@FFLAGS@,$FFLAGS,;t t 23672s,@ac_ct_F77@,$ac_ct_F77,;t t 23673s,@LIBTOOL@,$LIBTOOL,;t t 23674s,@RPWD@,$RPWD,;t t 23675s,@SED@,$SED,;t t 23676s,@RM@,$RM,;t t 23677s,@MKDIR@,$MKDIR,;t t 23678s,@DATE@,$DATE,;t t 23679s,@MV@,$MV,;t t 23680s,@DOT@,$DOT,;t t 23681s,@ETAGS@,$ETAGS,;t t 23682s,@PYTHON@,$PYTHON,;t t 23683s,@QMTEST@,$QMTEST,;t t 23684s,@ALLOCA@,$ALLOCA,;t t 23685s,@LIBOBJS@,$LIBOBJS,;t t 23686s,@MMAP_FILE@,$MMAP_FILE,;t t 23687s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t 23688s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t 23689s,@SPEC_ROOT@,$SPEC_ROOT,;t t 23690s,@USE_SPEC@,$USE_SPEC,;t t 23691s,@UPB@,$UPB,;t t 23692s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t 23693s,@JIT@,$JIT,;t t 23694s,@BCR@,$BCR,;t t 23695s,@PAPIDIR@,$PAPIDIR,;t t 23696s,@PURIFY@,$PURIFY,;t t 23697s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23698CEOF 23699 23700_ACEOF 23701 23702 cat >>$CONFIG_STATUS <<\_ACEOF 23703 # Split the substitutions into bite-sized pieces for seds with 23704 # small command number limits, like on Digital OSF/1 and HP-UX. 23705 ac_max_sed_lines=48 23706 ac_sed_frag=1 # Number of current file. 23707 ac_beg=1 # First line for current file. 23708 ac_end=$ac_max_sed_lines # Line after last line for current file. 23709 ac_more_lines=: 23710 ac_sed_cmds= 23711 while $ac_more_lines; do 23712 if test $ac_beg -gt 1; then 23713 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23714 else 23715 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23716 fi 23717 if test ! -s $tmp/subs.frag; then 23718 ac_more_lines=false 23719 else 23720 # The purpose of the label and of the branching condition is to 23721 # speed up the sed processing (if there are no `@' at all, there 23722 # is no need to browse any of the substitutions). 23723 # These are the two extra sed commands mentioned above. 23724 (echo ':t 23725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23726 if test -z "$ac_sed_cmds"; then 23727 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23728 else 23729 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23730 fi 23731 ac_sed_frag=`expr $ac_sed_frag + 1` 23732 ac_beg=$ac_end 23733 ac_end=`expr $ac_end + $ac_max_sed_lines` 23734 fi 23735 done 23736 if test -z "$ac_sed_cmds"; then 23737 ac_sed_cmds=cat 23738 fi 23739fi # test -n "$CONFIG_FILES" 23740 23741_ACEOF 23742cat >>$CONFIG_STATUS <<\_ACEOF 23743for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23745 case $ac_file in 23746 - | *:- | *:-:* ) # input from stdin 23747 cat >$tmp/stdin 23748 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23750 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23751 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23752 * ) ac_file_in=$ac_file.in ;; 23753 esac 23754 23755 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23756 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23757$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23758 X"$ac_file" : 'X\(//\)[^/]' \| \ 23759 X"$ac_file" : 'X\(//\)$' \| \ 23760 X"$ac_file" : 'X\(/\)' \| \ 23761 . : '\(.\)' 2>/dev/null || 23762echo X"$ac_file" | 23763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23764 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23765 /^X\(\/\/\)$/{ s//\1/; q; } 23766 /^X\(\/\).*/{ s//\1/; q; } 23767 s/.*/./; q'` 23768 { if $as_mkdir_p; then 23769 mkdir -p "$ac_dir" 23770 else 23771 as_dir="$ac_dir" 23772 as_dirs= 23773 while test ! -d "$as_dir"; do 23774 as_dirs="$as_dir $as_dirs" 23775 as_dir=`(dirname "$as_dir") 2>/dev/null || 23776$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23777 X"$as_dir" : 'X\(//\)[^/]' \| \ 23778 X"$as_dir" : 'X\(//\)$' \| \ 23779 X"$as_dir" : 'X\(/\)' \| \ 23780 . : '\(.\)' 2>/dev/null || 23781echo X"$as_dir" | 23782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23783 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23784 /^X\(\/\/\)$/{ s//\1/; q; } 23785 /^X\(\/\).*/{ s//\1/; q; } 23786 s/.*/./; q'` 23787 done 23788 test ! -n "$as_dirs" || mkdir $as_dirs 23789 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23790echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23791 { (exit 1); exit 1; }; }; } 23792 23793 ac_builddir=. 23794 23795if test "$ac_dir" != .; then 23796 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23797 # A "../" for each directory in $ac_dir_suffix. 23798 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23799else 23800 ac_dir_suffix= ac_top_builddir= 23801fi 23802 23803case $srcdir in 23804 .) # No --srcdir option. We are building in place. 23805 ac_srcdir=. 23806 if test -z "$ac_top_builddir"; then 23807 ac_top_srcdir=. 23808 else 23809 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23810 fi ;; 23811 [\\/]* | ?:[\\/]* ) # Absolute path. 23812 ac_srcdir=$srcdir$ac_dir_suffix; 23813 ac_top_srcdir=$srcdir ;; 23814 *) # Relative path. 23815 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23816 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23817esac 23818# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 23819# absolute. 23820ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 23821ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 23822ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 23823ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 23824 23825 23826 case $INSTALL in 23827 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23828 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23829 esac 23830 23831 if test x"$ac_file" != x-; then 23832 { echo "$as_me:$LINENO: creating $ac_file" >&5 23833echo "$as_me: creating $ac_file" >&6;} 23834 rm -f "$ac_file" 23835 fi 23836 # Let's still pretend it is `configure' which instantiates (i.e., don't 23837 # use $as_me), people would be surprised to read: 23838 # /* config.h. Generated by config.status. */ 23839 if test x"$ac_file" = x-; then 23840 configure_input= 23841 else 23842 configure_input="$ac_file. " 23843 fi 23844 configure_input=$configure_input"Generated from `echo $ac_file_in | 23845 sed 's,.*/,,'` by configure." 23846 23847 # First look for the input files in the build tree, otherwise in the 23848 # src tree. 23849 ac_file_inputs=`IFS=: 23850 for f in $ac_file_in; do 23851 case $f in 23852 -) echo $tmp/stdin ;; 23853 [\\/$]*) 23854 # Absolute (can't be DOS-style, as IFS=:) 23855 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23856echo "$as_me: error: cannot find input file: $f" >&2;} 23857 { (exit 1); exit 1; }; } 23858 echo $f;; 23859 *) # Relative 23860 if test -f "$f"; then 23861 # Build tree 23862 echo $f 23863 elif test -f "$srcdir/$f"; then 23864 # Source tree 23865 echo $srcdir/$f 23866 else 23867 # /dev/null tree 23868 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23869echo "$as_me: error: cannot find input file: $f" >&2;} 23870 { (exit 1); exit 1; }; } 23871 fi;; 23872 esac 23873 done` || { (exit 1); exit 1; } 23874_ACEOF 23875cat >>$CONFIG_STATUS <<_ACEOF 23876 sed "$ac_vpsub 23877$extrasub 23878_ACEOF 23879cat >>$CONFIG_STATUS <<\_ACEOF 23880:t 23881/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23882s,@configure_input@,$configure_input,;t t 23883s,@srcdir@,$ac_srcdir,;t t 23884s,@abs_srcdir@,$ac_abs_srcdir,;t t 23885s,@top_srcdir@,$ac_top_srcdir,;t t 23886s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23887s,@builddir@,$ac_builddir,;t t 23888s,@abs_builddir@,$ac_abs_builddir,;t t 23889s,@top_builddir@,$ac_top_builddir,;t t 23890s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23891s,@INSTALL@,$ac_INSTALL,;t t 23892" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23893 rm -f $tmp/stdin 23894 if test x"$ac_file" != x-; then 23895 mv $tmp/out $ac_file 23896 else 23897 cat $tmp/out 23898 rm -f $tmp/out 23899 fi 23900 23901done 23902_ACEOF 23903cat >>$CONFIG_STATUS <<\_ACEOF 23904 23905# 23906# CONFIG_HEADER section. 23907# 23908 23909# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23910# NAME is the cpp macro being defined and VALUE is the value it is being given. 23911# 23912# ac_d sets the value in "#define NAME VALUE" lines. 23913ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23914ac_dB='[ ].*$,\1#\2' 23915ac_dC=' ' 23916ac_dD=',;t' 23917# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23918ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23919ac_uB='$,\1#\2define\3' 23920ac_uC=' ' 23921ac_uD=',;t' 23922 23923for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23925 case $ac_file in 23926 - | *:- | *:-:* ) # input from stdin 23927 cat >$tmp/stdin 23928 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23930 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23931 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23932 * ) ac_file_in=$ac_file.in ;; 23933 esac 23934 23935 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23936echo "$as_me: creating $ac_file" >&6;} 23937 23938 # First look for the input files in the build tree, otherwise in the 23939 # src tree. 23940 ac_file_inputs=`IFS=: 23941 for f in $ac_file_in; do 23942 case $f in 23943 -) echo $tmp/stdin ;; 23944 [\\/$]*) 23945 # Absolute (can't be DOS-style, as IFS=:) 23946 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23947echo "$as_me: error: cannot find input file: $f" >&2;} 23948 { (exit 1); exit 1; }; } 23949 echo $f;; 23950 *) # Relative 23951 if test -f "$f"; then 23952 # Build tree 23953 echo $f 23954 elif test -f "$srcdir/$f"; then 23955 # Source tree 23956 echo $srcdir/$f 23957 else 23958 # /dev/null tree 23959 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23960echo "$as_me: error: cannot find input file: $f" >&2;} 23961 { (exit 1); exit 1; }; } 23962 fi;; 23963 esac 23964 done` || { (exit 1); exit 1; } 23965 # Remove the trailing spaces. 23966 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23967 23968_ACEOF 23969 23970# Transform confdefs.h into two sed scripts, `conftest.defines' and 23971# `conftest.undefs', that substitutes the proper values into 23972# config.h.in to produce config.h. The first handles `#define' 23973# templates, and the second `#undef' templates. 23974# And first: Protect against being on the right side of a sed subst in 23975# config.status. Protect against being in an unquoted here document 23976# in config.status. 23977rm -f conftest.defines conftest.undefs 23978# Using a here document instead of a string reduces the quoting nightmare. 23979# Putting comments in sed scripts is not portable. 23980# 23981# `end' is used to avoid that the second main sed command (meant for 23982# 0-ary CPP macros) applies to n-ary macro definitions. 23983# See the Autoconf documentation for `clear'. 23984cat >confdef2sed.sed <<\_ACEOF 23985s/[\\&,]/\\&/g 23986s,[\\$`],\\&,g 23987t clear 23988: clear 23989s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23990t end 23991s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23992: end 23993_ACEOF 23994# If some macros were called several times there might be several times 23995# the same #defines, which is useless. Nevertheless, we may not want to 23996# sort them, since we want the *last* AC-DEFINE to be honored. 23997uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23998sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23999rm -f confdef2sed.sed 24000 24001# This sed command replaces #undef with comments. This is necessary, for 24002# example, in the case of _POSIX_SOURCE, which is predefined and required 24003# on some systems where configure will not decide to define it. 24004cat >>conftest.undefs <<\_ACEOF 24005s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 24006_ACEOF 24007 24008# Break up conftest.defines because some shells have a limit on the size 24009# of here documents, and old seds have small limits too (100 cmds). 24010echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 24011echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 24012echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 24013echo ' :' >>$CONFIG_STATUS 24014rm -f conftest.tail 24015while grep . conftest.defines >/dev/null 24016do 24017 # Write a limited-size here document to $tmp/defines.sed. 24018 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 24019 # Speed up: don't consider the non `#define' lines. 24020 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 24021 # Work around the forget-to-reset-the-flag bug. 24022 echo 't clr' >>$CONFIG_STATUS 24023 echo ': clr' >>$CONFIG_STATUS 24024 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 24025 echo 'CEOF 24026 sed -f $tmp/defines.sed $tmp/in >$tmp/out 24027 rm -f $tmp/in 24028 mv $tmp/out $tmp/in 24029' >>$CONFIG_STATUS 24030 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 24031 rm -f conftest.defines 24032 mv conftest.tail conftest.defines 24033done 24034rm -f conftest.defines 24035echo ' fi # grep' >>$CONFIG_STATUS 24036echo >>$CONFIG_STATUS 24037 24038# Break up conftest.undefs because some shells have a limit on the size 24039# of here documents, and old seds have small limits too (100 cmds). 24040echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 24041rm -f conftest.tail 24042while grep . conftest.undefs >/dev/null 24043do 24044 # Write a limited-size here document to $tmp/undefs.sed. 24045 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 24046 # Speed up: don't consider the non `#undef' 24047 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 24048 # Work around the forget-to-reset-the-flag bug. 24049 echo 't clr' >>$CONFIG_STATUS 24050 echo ': clr' >>$CONFIG_STATUS 24051 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 24052 echo 'CEOF 24053 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 24054 rm -f $tmp/in 24055 mv $tmp/out $tmp/in 24056' >>$CONFIG_STATUS 24057 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 24058 rm -f conftest.undefs 24059 mv conftest.tail conftest.undefs 24060done 24061rm -f conftest.undefs 24062 24063cat >>$CONFIG_STATUS <<\_ACEOF 24064 # Let's still pretend it is `configure' which instantiates (i.e., don't 24065 # use $as_me), people would be surprised to read: 24066 # /* config.h. Generated by config.status. */ 24067 if test x"$ac_file" = x-; then 24068 echo "/* Generated by configure. */" >$tmp/config.h 24069 else 24070 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 24071 fi 24072 cat $tmp/in >>$tmp/config.h 24073 rm -f $tmp/in 24074 if test x"$ac_file" != x-; then 24075 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 24076 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24077echo "$as_me: $ac_file is unchanged" >&6;} 24078 else 24079 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24080$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24081 X"$ac_file" : 'X\(//\)[^/]' \| \ 24082 X"$ac_file" : 'X\(//\)$' \| \ 24083 X"$ac_file" : 'X\(/\)' \| \ 24084 . : '\(.\)' 2>/dev/null || 24085echo X"$ac_file" | 24086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24087 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24088 /^X\(\/\/\)$/{ s//\1/; q; } 24089 /^X\(\/\).*/{ s//\1/; q; } 24090 s/.*/./; q'` 24091 { if $as_mkdir_p; then 24092 mkdir -p "$ac_dir" 24093 else 24094 as_dir="$ac_dir" 24095 as_dirs= 24096 while test ! -d "$as_dir"; do 24097 as_dirs="$as_dir $as_dirs" 24098 as_dir=`(dirname "$as_dir") 2>/dev/null || 24099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24100 X"$as_dir" : 'X\(//\)[^/]' \| \ 24101 X"$as_dir" : 'X\(//\)$' \| \ 24102 X"$as_dir" : 'X\(/\)' \| \ 24103 . : '\(.\)' 2>/dev/null || 24104echo X"$as_dir" | 24105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24106 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24107 /^X\(\/\/\)$/{ s//\1/; q; } 24108 /^X\(\/\).*/{ s//\1/; q; } 24109 s/.*/./; q'` 24110 done 24111 test ! -n "$as_dirs" || mkdir $as_dirs 24112 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24113echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24114 { (exit 1); exit 1; }; }; } 24115 24116 rm -f $ac_file 24117 mv $tmp/config.h $ac_file 24118 fi 24119 else 24120 cat $tmp/config.h 24121 rm -f $tmp/config.h 24122 fi 24123done 24124_ACEOF 24125cat >>$CONFIG_STATUS <<\_ACEOF 24126 24127# 24128# CONFIG_COMMANDS section. 24129# 24130for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 24131 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 24132 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 24133 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 24134$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24135 X"$ac_dest" : 'X\(//\)[^/]' \| \ 24136 X"$ac_dest" : 'X\(//\)$' \| \ 24137 X"$ac_dest" : 'X\(/\)' \| \ 24138 . : '\(.\)' 2>/dev/null || 24139echo X"$ac_dest" | 24140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24141 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24142 /^X\(\/\/\)$/{ s//\1/; q; } 24143 /^X\(\/\).*/{ s//\1/; q; } 24144 s/.*/./; q'` 24145 ac_builddir=. 24146 24147if test "$ac_dir" != .; then 24148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24149 # A "../" for each directory in $ac_dir_suffix. 24150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24151else 24152 ac_dir_suffix= ac_top_builddir= 24153fi 24154 24155case $srcdir in 24156 .) # No --srcdir option. We are building in place. 24157 ac_srcdir=. 24158 if test -z "$ac_top_builddir"; then 24159 ac_top_srcdir=. 24160 else 24161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24162 fi ;; 24163 [\\/]* | ?:[\\/]* ) # Absolute path. 24164 ac_srcdir=$srcdir$ac_dir_suffix; 24165 ac_top_srcdir=$srcdir ;; 24166 *) # Relative path. 24167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24168 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24169esac 24170# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 24171# absolute. 24172ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 24173ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 24174ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 24175ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 24176 24177 24178 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 24179echo "$as_me: executing $ac_dest commands" >&6;} 24180 case $ac_dest in 24181 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; 24182 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; 24183 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; 24184 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 24185 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; 24186 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 24187 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; 24188 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; 24189 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;; 24190 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;; 24191 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;; 24192 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;; 24193 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;; 24194 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;; 24195 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;; 24196 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;; 24197 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;; 24198 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;; 24199 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;; 24200 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;; 24201 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;; 24202 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;; 24203 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;; 24204 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;; 24205 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;; 24206 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;; 24207 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 ;; 24208 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;; 24209 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;; 24210 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 ;; 24211 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 ;; 24212 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 ;; 24213 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 ;; 24214 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 ;; 24215 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 ;; 24216 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 ;; 24217 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 ;; 24218 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 ;; 24219 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 ;; 24220 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 ;; 24221 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 ;; 24222 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 ;; 24223 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;; 24224 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;; 24225 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; 24226 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; 24227 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; 24228 esac 24229done 24230_ACEOF 24231 24232cat >>$CONFIG_STATUS <<\_ACEOF 24233 24234{ (exit 0); exit 0; } 24235_ACEOF 24236chmod +x $CONFIG_STATUS 24237ac_clean_files=$ac_clean_files_save 24238 24239 24240# configure is writing to config.log, and then calls config.status. 24241# config.status does its own redirection, appending to config.log. 24242# Unfortunately, on DOS this fails, as config.log is still kept open 24243# by configure, so config.status won't be able to write to it; its 24244# output is simply discarded. So we exec the FD to /dev/null, 24245# effectively closing config.log, so it can be properly (re)opened and 24246# appended to by config.status. When coming back to configure, we 24247# need to make the FD available again. 24248if test "$no_create" != yes; then 24249 ac_cs_success=: 24250 ac_config_status_args= 24251 test "$silent" = yes && 24252 ac_config_status_args="$ac_config_status_args --quiet" 24253 exec 5>/dev/null 24254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24255 exec 5>>config.log 24256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24257 # would make configure fail if this is the last instruction. 24258 $ac_cs_success || { (exit 1); exit 1; } 24259fi 24260 24261# 24262# CONFIG_SUBDIRS section. 24263# 24264if test "$no_recursion" != yes; then 24265 24266 # Remove --cache-file and --srcdir arguments so they do not pile up. 24267 ac_sub_configure_args= 24268 ac_prev= 24269 for ac_arg in $ac_configure_args; do 24270 if test -n "$ac_prev"; then 24271 ac_prev= 24272 continue 24273 fi 24274 case $ac_arg in 24275 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24276 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24277 ac_prev=cache_file ;; 24278 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24279 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24280 | --c=*) 24281 ;; 24282 --config-cache | -C) 24283 ;; 24284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24285 ac_prev=srcdir ;; 24286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24287 ;; 24288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24289 ac_prev=prefix ;; 24290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24291 ;; 24292 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 24293 esac 24294 done 24295 24296 # Always prepend --prefix to ensure using the same prefix 24297 # in subdir configurations. 24298 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 24299 24300 ac_popdir=`pwd` 24301 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24302 24303 # Do not complain, so a configure script can configure whichever 24304 # parts of a large source tree are present. 24305 test -d $srcdir/$ac_dir || continue 24306 24307 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 24308echo "$as_me: configuring in $ac_dir" >&6;} 24309 { if $as_mkdir_p; then 24310 mkdir -p "$ac_dir" 24311 else 24312 as_dir="$ac_dir" 24313 as_dirs= 24314 while test ! -d "$as_dir"; do 24315 as_dirs="$as_dir $as_dirs" 24316 as_dir=`(dirname "$as_dir") 2>/dev/null || 24317$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24318 X"$as_dir" : 'X\(//\)[^/]' \| \ 24319 X"$as_dir" : 'X\(//\)$' \| \ 24320 X"$as_dir" : 'X\(/\)' \| \ 24321 . : '\(.\)' 2>/dev/null || 24322echo X"$as_dir" | 24323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24324 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24325 /^X\(\/\/\)$/{ s//\1/; q; } 24326 /^X\(\/\).*/{ s//\1/; q; } 24327 s/.*/./; q'` 24328 done 24329 test ! -n "$as_dirs" || mkdir $as_dirs 24330 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24331echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24332 { (exit 1); exit 1; }; }; } 24333 24334 ac_builddir=. 24335 24336if test "$ac_dir" != .; then 24337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24338 # A "../" for each directory in $ac_dir_suffix. 24339 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24340else 24341 ac_dir_suffix= ac_top_builddir= 24342fi 24343 24344case $srcdir in 24345 .) # No --srcdir option. We are building in place. 24346 ac_srcdir=. 24347 if test -z "$ac_top_builddir"; then 24348 ac_top_srcdir=. 24349 else 24350 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24351 fi ;; 24352 [\\/]* | ?:[\\/]* ) # Absolute path. 24353 ac_srcdir=$srcdir$ac_dir_suffix; 24354 ac_top_srcdir=$srcdir ;; 24355 *) # Relative path. 24356 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24357 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24358esac 24359# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 24360# absolute. 24361ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 24362ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 24363ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 24364ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 24365 24366 24367 cd $ac_dir 24368 24369 # Check for guested configure; otherwise get Cygnus style configure. 24370 if test -f $ac_srcdir/configure.gnu; then 24371 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 24372 elif test -f $ac_srcdir/configure; then 24373 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 24374 elif test -f $ac_srcdir/configure.in; then 24375 ac_sub_configure=$ac_configure 24376 else 24377 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 24378echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24379 ac_sub_configure= 24380 fi 24381 24382 # The recursion is here. 24383 if test -n "$ac_sub_configure"; then 24384 # Make the cache file name correct relative to the subdirectory. 24385 case $cache_file in 24386 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24387 *) # Relative path. 24388 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 24389 esac 24390 24391 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24392echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24393 # The eval makes quoting arguments work. 24394 eval $ac_sub_configure $ac_sub_configure_args \ 24395 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 24396 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 24397echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 24398 { (exit 1); exit 1; }; } 24399 fi 24400 24401 cd $ac_popdir 24402 done 24403fi 24404 24405 24406if test $llvmgccwarn = yes 24407then 24408 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 24409echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} 24410 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 24411echo "$as_me: WARNING: ***** appear to be working." >&2;} 24412 { echo "$as_me:$LINENO: WARNING: ***** " >&5 24413echo "$as_me: WARNING: ***** " >&2;} 24414 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 24415echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} 24416 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 24417echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} 24418 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 24419echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} 24420fi 24421