1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 8# 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 more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME='GNU Vtable Verification Runtime Library' 558PACKAGE_TARNAME='libvtv' 559PACKAGE_VERSION='1.0' 560PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='http://www.gnu.org/software/libvtv/' 563 564ac_unique_file="vtv_rts.h" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='am__EXEEXT_FALSE 602am__EXEEXT_TRUE 603LTLIBOBJS 604LIBOBJS 605VTV_CYGMIN_FALSE 606VTV_CYGMIN_TRUE 607XCFLAGS 608libtool_VERSION 609enable_static 610enable_shared 611lt_host_flags 612CXXCPP 613OTOOL64 614OTOOL 615LIPO 616NMEDIT 617DSYMUTIL 618OBJDUMP 619LN_S 620NM 621ac_ct_DUMPBIN 622DUMPBIN 623LD 624FGREP 625SED 626LIBTOOL 627RANLIB 628AR 629AS 630CCASFLAGS 631CCAS 632am__fastdepCXX_FALSE 633am__fastdepCXX_TRUE 634CXXDEPMODE 635ac_ct_CXX 636CXXFLAGS 637CXX 638EGREP 639GREP 640CPP 641am__fastdepCC_FALSE 642am__fastdepCC_TRUE 643CCDEPMODE 644AMDEPBACKSLASH 645AMDEP_FALSE 646AMDEP_TRUE 647am__quote 648am__include 649DEPDIR 650OBJEXT 651EXEEXT 652ac_ct_CC 653CPPFLAGS 654LDFLAGS 655CFLAGS 656CC 657toolexeclibdir 658toolexecdir 659toplevel_srcdir 660toplevel_builddir 661libvtv_srcdir 662libvtv_builddir 663MAINT 664MAINTAINER_MODE_FALSE 665MAINTAINER_MODE_TRUE 666multi_basedir 667am__untar 668am__tar 669AMTAR 670am__leading_dot 671SET_MAKE 672AWK 673mkdir_p 674MKDIR_P 675INSTALL_STRIP_PROGRAM 676STRIP 677install_sh 678MAKEINFO 679AUTOHEADER 680AUTOMAKE 681AUTOCONF 682ACLOCAL 683VERSION 684PACKAGE 685CYGPATH_W 686am__isrc 687INSTALL_DATA 688INSTALL_SCRIPT 689INSTALL_PROGRAM 690ENABLE_VTABLE_VERIFY_FALSE 691ENABLE_VTABLE_VERIFY_TRUE 692LIBSTDCXX_RAW_CXX_LDFLAGS 693LIBSTDCXX_RAW_CXX_CXXFLAGS 694target_noncanonical 695target_os 696target_vendor 697target_cpu 698target 699host_os 700host_vendor 701host_cpu 702host 703build_os 704build_vendor 705build_cpu 706build 707target_alias 708host_alias 709build_alias 710LIBS 711ECHO_T 712ECHO_N 713ECHO_C 714DEFS 715mandir 716localedir 717libdir 718psdir 719pdfdir 720dvidir 721htmldir 722infodir 723docdir 724oldincludedir 725includedir 726localstatedir 727sharedstatedir 728sysconfdir 729datadir 730datarootdir 731libexecdir 732sbindir 733bindir 734program_transform_name 735prefix 736exec_prefix 737PACKAGE_URL 738PACKAGE_BUGREPORT 739PACKAGE_STRING 740PACKAGE_VERSION 741PACKAGE_TARNAME 742PACKAGE_NAME 743PATH_SEPARATOR 744SHELL' 745ac_subst_files='' 746ac_user_opts=' 747enable_option_checking 748enable_version_specific_runtime_libs 749enable_vtable_verify 750enable_multilib 751enable_maintainer_mode 752enable_dependency_tracking 753enable_shared 754enable_static 755with_pic 756enable_fast_install 757with_gnu_ld 758enable_libtool_lock 759' 760 ac_precious_vars='build_alias 761host_alias 762target_alias 763CC 764CFLAGS 765LDFLAGS 766LIBS 767CPPFLAGS 768CPP 769CXXCPP' 770 771 772# Initialize some variables set by options. 773ac_init_help= 774ac_init_version=false 775ac_unrecognized_opts= 776ac_unrecognized_sep= 777# The variables have the same names as the options, with 778# dashes changed to underlines. 779cache_file=/dev/null 780exec_prefix=NONE 781no_create= 782no_recursion= 783prefix=NONE 784program_prefix=NONE 785program_suffix=NONE 786program_transform_name=s,x,x, 787silent= 788site= 789srcdir= 790verbose= 791x_includes=NONE 792x_libraries=NONE 793 794# Installation directory options. 795# These are left unexpanded so users can "make install exec_prefix=/foo" 796# and all the variables that are supposed to be based on exec_prefix 797# by default will actually change. 798# Use braces instead of parens because sh, perl, etc. also accept them. 799# (The list follows the same order as the GNU Coding Standards.) 800bindir='${exec_prefix}/bin' 801sbindir='${exec_prefix}/sbin' 802libexecdir='${exec_prefix}/libexec' 803datarootdir='${prefix}/share' 804datadir='${datarootdir}' 805sysconfdir='${prefix}/etc' 806sharedstatedir='${prefix}/com' 807localstatedir='${prefix}/var' 808includedir='${prefix}/include' 809oldincludedir='/usr/include' 810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811infodir='${datarootdir}/info' 812htmldir='${docdir}' 813dvidir='${docdir}' 814pdfdir='${docdir}' 815psdir='${docdir}' 816libdir='${exec_prefix}/lib' 817localedir='${datarootdir}/locale' 818mandir='${datarootdir}/man' 819 820ac_prev= 821ac_dashdash= 822for ac_option 823do 824 # If the previous option needs an argument, assign it. 825 if test -n "$ac_prev"; then 826 eval $ac_prev=\$ac_option 827 ac_prev= 828 continue 829 fi 830 831 case $ac_option in 832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833 *) ac_optarg=yes ;; 834 esac 835 836 # Accept the important Cygnus configure options, so we can diagnose typos. 837 838 case $ac_dashdash$ac_option in 839 --) 840 ac_dashdash=yes ;; 841 842 -bindir | --bindir | --bindi | --bind | --bin | --bi) 843 ac_prev=bindir ;; 844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 845 bindir=$ac_optarg ;; 846 847 -build | --build | --buil | --bui | --bu) 848 ac_prev=build_alias ;; 849 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 850 build_alias=$ac_optarg ;; 851 852 -cache-file | --cache-file | --cache-fil | --cache-fi \ 853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 854 ac_prev=cache_file ;; 855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 857 cache_file=$ac_optarg ;; 858 859 --config-cache | -C) 860 cache_file=config.cache ;; 861 862 -datadir | --datadir | --datadi | --datad) 863 ac_prev=datadir ;; 864 -datadir=* | --datadir=* | --datadi=* | --datad=*) 865 datadir=$ac_optarg ;; 866 867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 868 | --dataroo | --dataro | --datar) 869 ac_prev=datarootdir ;; 870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 872 datarootdir=$ac_optarg ;; 873 874 -disable-* | --disable-*) 875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 878 as_fn_error "invalid feature name: $ac_useropt" 879 ac_useropt_orig=$ac_useropt 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 881 case $ac_user_opts in 882 *" 883"enable_$ac_useropt" 884"*) ;; 885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 886 ac_unrecognized_sep=', ';; 887 esac 888 eval enable_$ac_useropt=no ;; 889 890 -docdir | --docdir | --docdi | --doc | --do) 891 ac_prev=docdir ;; 892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 893 docdir=$ac_optarg ;; 894 895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 896 ac_prev=dvidir ;; 897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 898 dvidir=$ac_optarg ;; 899 900 -enable-* | --enable-*) 901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 902 # Reject names that are not valid shell variable names. 903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 904 as_fn_error "invalid feature name: $ac_useropt" 905 ac_useropt_orig=$ac_useropt 906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 907 case $ac_user_opts in 908 *" 909"enable_$ac_useropt" 910"*) ;; 911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 912 ac_unrecognized_sep=', ';; 913 esac 914 eval enable_$ac_useropt=\$ac_optarg ;; 915 916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 918 | --exec | --exe | --ex) 919 ac_prev=exec_prefix ;; 920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 922 | --exec=* | --exe=* | --ex=*) 923 exec_prefix=$ac_optarg ;; 924 925 -gas | --gas | --ga | --g) 926 # Obsolete; use --with-gas. 927 with_gas=yes ;; 928 929 -help | --help | --hel | --he | -h) 930 ac_init_help=long ;; 931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 932 ac_init_help=recursive ;; 933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 934 ac_init_help=short ;; 935 936 -host | --host | --hos | --ho) 937 ac_prev=host_alias ;; 938 -host=* | --host=* | --hos=* | --ho=*) 939 host_alias=$ac_optarg ;; 940 941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 942 ac_prev=htmldir ;; 943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 944 | --ht=*) 945 htmldir=$ac_optarg ;; 946 947 -includedir | --includedir | --includedi | --included | --include \ 948 | --includ | --inclu | --incl | --inc) 949 ac_prev=includedir ;; 950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 951 | --includ=* | --inclu=* | --incl=* | --inc=*) 952 includedir=$ac_optarg ;; 953 954 -infodir | --infodir | --infodi | --infod | --info | --inf) 955 ac_prev=infodir ;; 956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 957 infodir=$ac_optarg ;; 958 959 -libdir | --libdir | --libdi | --libd) 960 ac_prev=libdir ;; 961 -libdir=* | --libdir=* | --libdi=* | --libd=*) 962 libdir=$ac_optarg ;; 963 964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 965 | --libexe | --libex | --libe) 966 ac_prev=libexecdir ;; 967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 968 | --libexe=* | --libex=* | --libe=*) 969 libexecdir=$ac_optarg ;; 970 971 -localedir | --localedir | --localedi | --localed | --locale) 972 ac_prev=localedir ;; 973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 974 localedir=$ac_optarg ;; 975 976 -localstatedir | --localstatedir | --localstatedi | --localstated \ 977 | --localstate | --localstat | --localsta | --localst | --locals) 978 ac_prev=localstatedir ;; 979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 981 localstatedir=$ac_optarg ;; 982 983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 984 ac_prev=mandir ;; 985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 986 mandir=$ac_optarg ;; 987 988 -nfp | --nfp | --nf) 989 # Obsolete; use --without-fp. 990 with_fp=no ;; 991 992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 993 | --no-cr | --no-c | -n) 994 no_create=yes ;; 995 996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 998 no_recursion=yes ;; 999 1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1002 | --oldin | --oldi | --old | --ol | --o) 1003 ac_prev=oldincludedir ;; 1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1007 oldincludedir=$ac_optarg ;; 1008 1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1010 ac_prev=prefix ;; 1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1012 prefix=$ac_optarg ;; 1013 1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1015 | --program-pre | --program-pr | --program-p) 1016 ac_prev=program_prefix ;; 1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1019 program_prefix=$ac_optarg ;; 1020 1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1022 | --program-suf | --program-su | --program-s) 1023 ac_prev=program_suffix ;; 1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1026 program_suffix=$ac_optarg ;; 1027 1028 -program-transform-name | --program-transform-name \ 1029 | --program-transform-nam | --program-transform-na \ 1030 | --program-transform-n | --program-transform- \ 1031 | --program-transform | --program-transfor \ 1032 | --program-transfo | --program-transf \ 1033 | --program-trans | --program-tran \ 1034 | --progr-tra | --program-tr | --program-t) 1035 ac_prev=program_transform_name ;; 1036 -program-transform-name=* | --program-transform-name=* \ 1037 | --program-transform-nam=* | --program-transform-na=* \ 1038 | --program-transform-n=* | --program-transform-=* \ 1039 | --program-transform=* | --program-transfor=* \ 1040 | --program-transfo=* | --program-transf=* \ 1041 | --program-trans=* | --program-tran=* \ 1042 | --progr-tra=* | --program-tr=* | --program-t=*) 1043 program_transform_name=$ac_optarg ;; 1044 1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1046 ac_prev=pdfdir ;; 1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1048 pdfdir=$ac_optarg ;; 1049 1050 -psdir | --psdir | --psdi | --psd | --ps) 1051 ac_prev=psdir ;; 1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1053 psdir=$ac_optarg ;; 1054 1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1056 | -silent | --silent | --silen | --sile | --sil) 1057 silent=yes ;; 1058 1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1060 ac_prev=sbindir ;; 1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1062 | --sbi=* | --sb=*) 1063 sbindir=$ac_optarg ;; 1064 1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1067 | --sharedst | --shareds | --shared | --share | --shar \ 1068 | --sha | --sh) 1069 ac_prev=sharedstatedir ;; 1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1073 | --sha=* | --sh=*) 1074 sharedstatedir=$ac_optarg ;; 1075 1076 -site | --site | --sit) 1077 ac_prev=site ;; 1078 -site=* | --site=* | --sit=*) 1079 site=$ac_optarg ;; 1080 1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1082 ac_prev=srcdir ;; 1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1084 srcdir=$ac_optarg ;; 1085 1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1087 | --syscon | --sysco | --sysc | --sys | --sy) 1088 ac_prev=sysconfdir ;; 1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1091 sysconfdir=$ac_optarg ;; 1092 1093 -target | --target | --targe | --targ | --tar | --ta | --t) 1094 ac_prev=target_alias ;; 1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1096 target_alias=$ac_optarg ;; 1097 1098 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1099 verbose=yes ;; 1100 1101 -version | --version | --versio | --versi | --vers | -V) 1102 ac_init_version=: ;; 1103 1104 -with-* | --with-*) 1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1106 # Reject names that are not valid shell variable names. 1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1108 as_fn_error "invalid package name: $ac_useropt" 1109 ac_useropt_orig=$ac_useropt 1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1111 case $ac_user_opts in 1112 *" 1113"with_$ac_useropt" 1114"*) ;; 1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1116 ac_unrecognized_sep=', ';; 1117 esac 1118 eval with_$ac_useropt=\$ac_optarg ;; 1119 1120 -without-* | --without-*) 1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1124 as_fn_error "invalid package name: $ac_useropt" 1125 ac_useropt_orig=$ac_useropt 1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1127 case $ac_user_opts in 1128 *" 1129"with_$ac_useropt" 1130"*) ;; 1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1132 ac_unrecognized_sep=', ';; 1133 esac 1134 eval with_$ac_useropt=no ;; 1135 1136 --x) 1137 # Obsolete; use --with-x. 1138 with_x=yes ;; 1139 1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1141 | --x-incl | --x-inc | --x-in | --x-i) 1142 ac_prev=x_includes ;; 1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1145 x_includes=$ac_optarg ;; 1146 1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1149 ac_prev=x_libraries ;; 1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1152 x_libraries=$ac_optarg ;; 1153 1154 -*) as_fn_error "unrecognized option: \`$ac_option' 1155Try \`$0 --help' for more information." 1156 ;; 1157 1158 *=*) 1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1160 # Reject names that are not valid shell variable names. 1161 case $ac_envvar in #( 1162 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1163 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1164 esac 1165 eval $ac_envvar=\$ac_optarg 1166 export $ac_envvar ;; 1167 1168 *) 1169 # FIXME: should be removed in autoconf 3.0. 1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1174 ;; 1175 1176 esac 1177done 1178 1179if test -n "$ac_prev"; then 1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1181 as_fn_error "missing argument to $ac_option" 1182fi 1183 1184if test -n "$ac_unrecognized_opts"; then 1185 case $enable_option_checking in 1186 no) ;; 1187 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1189 esac 1190fi 1191 1192# Check all directory arguments for consistency. 1193for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1194 datadir sysconfdir sharedstatedir localstatedir includedir \ 1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1196 libdir localedir mandir 1197do 1198 eval ac_val=\$$ac_var 1199 # Remove trailing slashes. 1200 case $ac_val in 1201 */ ) 1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1203 eval $ac_var=\$ac_val;; 1204 esac 1205 # Be sure to have absolute directory names. 1206 case $ac_val in 1207 [\\/$]* | ?:[\\/]* ) continue;; 1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1209 esac 1210 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1211done 1212 1213# There might be people who depend on the old broken behavior: `$host' 1214# used to hold the argument of --host etc. 1215# FIXME: To remove some day. 1216build=$build_alias 1217host=$host_alias 1218target=$target_alias 1219 1220# FIXME: To remove some day. 1221if test "x$host_alias" != x; then 1222 if test "x$build_alias" = x; then 1223 cross_compiling=maybe 1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1225 If a cross compiler is detected then cross compile mode will be used." >&2 1226 elif test "x$build_alias" != "x$host_alias"; then 1227 cross_compiling=yes 1228 fi 1229fi 1230 1231ac_tool_prefix= 1232test -n "$host_alias" && ac_tool_prefix=$host_alias- 1233 1234test "$silent" = yes && exec 6>/dev/null 1235 1236 1237ac_pwd=`pwd` && test -n "$ac_pwd" && 1238ac_ls_di=`ls -di .` && 1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1240 as_fn_error "working directory cannot be determined" 1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1242 as_fn_error "pwd does not report name of working directory" 1243 1244 1245# Find the source files, if location was not specified. 1246if test -z "$srcdir"; then 1247 ac_srcdir_defaulted=yes 1248 # Try the directory containing this script, then the parent directory. 1249 ac_confdir=`$as_dirname -- "$as_myself" || 1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1251 X"$as_myself" : 'X\(//\)[^/]' \| \ 1252 X"$as_myself" : 'X\(//\)$' \| \ 1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1254$as_echo X"$as_myself" | 1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1256 s//\1/ 1257 q 1258 } 1259 /^X\(\/\/\)[^/].*/{ 1260 s//\1/ 1261 q 1262 } 1263 /^X\(\/\/\)$/{ 1264 s//\1/ 1265 q 1266 } 1267 /^X\(\/\).*/{ 1268 s//\1/ 1269 q 1270 } 1271 s/.*/./; q'` 1272 srcdir=$ac_confdir 1273 if test ! -r "$srcdir/$ac_unique_file"; then 1274 srcdir=.. 1275 fi 1276else 1277 ac_srcdir_defaulted=no 1278fi 1279if test ! -r "$srcdir/$ac_unique_file"; then 1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1281 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1282fi 1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1284ac_abs_confdir=`( 1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1286 pwd)` 1287# When building in place, set srcdir=. 1288if test "$ac_abs_confdir" = "$ac_pwd"; then 1289 srcdir=. 1290fi 1291# Remove unnecessary trailing slashes from srcdir. 1292# Double slashes in file names in object file debugging info 1293# mess up M-x gdb in Emacs. 1294case $srcdir in 1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1296esac 1297for ac_var in $ac_precious_vars; do 1298 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1299 eval ac_env_${ac_var}_value=\$${ac_var} 1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1301 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1302done 1303 1304# 1305# Report the --help message. 1306# 1307if test "$ac_init_help" = "long"; then 1308 # Omit some internal or obsolete options to make the list less imposing. 1309 # This message is too long to be a string in the A/UX 3.1 sh. 1310 cat <<_ACEOF 1311\`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems. 1312 1313Usage: $0 [OPTION]... [VAR=VALUE]... 1314 1315To assign environment variables (e.g., CC, CFLAGS...), specify them as 1316VAR=VALUE. See below for descriptions of some of the useful variables. 1317 1318Defaults for the options are specified in brackets. 1319 1320Configuration: 1321 -h, --help display this help and exit 1322 --help=short display options specific to this package 1323 --help=recursive display the short help of all the included packages 1324 -V, --version display version information and exit 1325 -q, --quiet, --silent do not print \`checking...' messages 1326 --cache-file=FILE cache test results in FILE [disabled] 1327 -C, --config-cache alias for \`--cache-file=config.cache' 1328 -n, --no-create do not create output files 1329 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1330 1331Installation directories: 1332 --prefix=PREFIX install architecture-independent files in PREFIX 1333 [$ac_default_prefix] 1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1335 [PREFIX] 1336 1337By default, \`make install' will install all the files in 1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1339an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1340for instance \`--prefix=\$HOME'. 1341 1342For better control, use the options below. 1343 1344Fine tuning of the installation directories: 1345 --bindir=DIR user executables [EPREFIX/bin] 1346 --sbindir=DIR system admin executables [EPREFIX/sbin] 1347 --libexecdir=DIR program executables [EPREFIX/libexec] 1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1351 --libdir=DIR object code libraries [EPREFIX/lib] 1352 --includedir=DIR C header files [PREFIX/include] 1353 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1356 --infodir=DIR info documentation [DATAROOTDIR/info] 1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1358 --mandir=DIR man documentation [DATAROOTDIR/man] 1359 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv] 1360 --htmldir=DIR html documentation [DOCDIR] 1361 --dvidir=DIR dvi documentation [DOCDIR] 1362 --pdfdir=DIR pdf documentation [DOCDIR] 1363 --psdir=DIR ps documentation [DOCDIR] 1364_ACEOF 1365 1366 cat <<\_ACEOF 1367 1368Program names: 1369 --program-prefix=PREFIX prepend PREFIX to installed program names 1370 --program-suffix=SUFFIX append SUFFIX to installed program names 1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1372 1373System types: 1374 --build=BUILD configure for building on BUILD [guessed] 1375 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1376 --target=TARGET configure for building compilers for TARGET [HOST] 1377_ACEOF 1378fi 1379 1380if test -n "$ac_init_help"; then 1381 case $ac_init_help in 1382 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";; 1383 esac 1384 cat <<\_ACEOF 1385 1386Optional Features: 1387 --disable-option-checking ignore unrecognized --enable/--with options 1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1390 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory 1391 --enable-vtable-verify Enable vtable verification feature 1392 --enable-multilib build many library versions (default) 1393 --enable-maintainer-mode enable make rules and dependencies not useful 1394 (and sometimes confusing) to the casual installer 1395 --disable-dependency-tracking speeds up one-time build 1396 --enable-dependency-tracking do not reject slow dependency extractors 1397 --enable-shared[=PKGS] build shared libraries [default=yes] 1398 --enable-static[=PKGS] build static libraries [default=yes] 1399 --enable-fast-install[=PKGS] 1400 optimize for fast installation [default=yes] 1401 --disable-libtool-lock avoid locking (might break parallel builds) 1402 1403Optional Packages: 1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1406 --with-pic try to use only PIC/non-PIC objects [default=use 1407 both] 1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1409 1410Some influential environment variables: 1411 CC C compiler command 1412 CFLAGS C compiler flags 1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1414 nonstandard directory <lib dir> 1415 LIBS libraries to pass to the linker, e.g. -l<library> 1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1417 you have headers in a nonstandard directory <include dir> 1418 CPP C preprocessor 1419 CXX C++ compiler command 1420 CXXFLAGS C++ compiler flags 1421 CXXCPP C++ preprocessor 1422 1423Use these variables to override the choices made by `configure' or to help 1424it to find libraries and programs with nonstandard names/locations. 1425 1426Report bugs to the package provider. 1427GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>. 1428General help using GNU software: <http://www.gnu.org/gethelp/>. 1429_ACEOF 1430ac_status=$? 1431fi 1432 1433if test "$ac_init_help" = "recursive"; then 1434 # If there are subdirs, report their specific --help. 1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1436 test -d "$ac_dir" || 1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1438 continue 1439 ac_builddir=. 1440 1441case "$ac_dir" in 1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443*) 1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1445 # A ".." for each directory in $ac_dir_suffix. 1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1447 case $ac_top_builddir_sub in 1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1450 esac ;; 1451esac 1452ac_abs_top_builddir=$ac_pwd 1453ac_abs_builddir=$ac_pwd$ac_dir_suffix 1454# for backward compatibility: 1455ac_top_builddir=$ac_top_build_prefix 1456 1457case $srcdir in 1458 .) # We are building in place. 1459 ac_srcdir=. 1460 ac_top_srcdir=$ac_top_builddir_sub 1461 ac_abs_top_srcdir=$ac_pwd ;; 1462 [\\/]* | ?:[\\/]* ) # Absolute name. 1463 ac_srcdir=$srcdir$ac_dir_suffix; 1464 ac_top_srcdir=$srcdir 1465 ac_abs_top_srcdir=$srcdir ;; 1466 *) # Relative name. 1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1468 ac_top_srcdir=$ac_top_build_prefix$srcdir 1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1470esac 1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1472 1473 cd "$ac_dir" || { ac_status=$?; continue; } 1474 # Check for guested configure. 1475 if test -f "$ac_srcdir/configure.gnu"; then 1476 echo && 1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1478 elif test -f "$ac_srcdir/configure"; then 1479 echo && 1480 $SHELL "$ac_srcdir/configure" --help=recursive 1481 else 1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1483 fi || ac_status=$? 1484 cd "$ac_pwd" || { ac_status=$?; break; } 1485 done 1486fi 1487 1488test -n "$ac_init_help" && exit $ac_status 1489if $ac_init_version; then 1490 cat <<\_ACEOF 1491GNU Vtable Verification Runtime Library configure 1.0 1492generated by GNU Autoconf 2.64 1493 1494Copyright (C) 2009 Free Software Foundation, Inc. 1495This configure script is free software; the Free Software Foundation 1496gives unlimited permission to copy, distribute and modify it. 1497_ACEOF 1498 exit 1499fi 1500 1501## ------------------------ ## 1502## Autoconf initialization. ## 1503## ------------------------ ## 1504 1505# ac_fn_c_try_compile LINENO 1506# -------------------------- 1507# Try to compile conftest.$ac_ext, and return whether this succeeded. 1508ac_fn_c_try_compile () 1509{ 1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1511 rm -f conftest.$ac_objext 1512 if { { ac_try="$ac_compile" 1513case "(($ac_try" in 1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1515 *) ac_try_echo=$ac_try;; 1516esac 1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1518$as_echo "$ac_try_echo"; } >&5 1519 (eval "$ac_compile") 2>conftest.err 1520 ac_status=$? 1521 if test -s conftest.err; then 1522 grep -v '^ *+' conftest.err >conftest.er1 1523 cat conftest.er1 >&5 1524 mv -f conftest.er1 conftest.err 1525 fi 1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1527 test $ac_status = 0; } && { 1528 test -z "$ac_c_werror_flag" || 1529 test ! -s conftest.err 1530 } && test -s conftest.$ac_objext; then : 1531 ac_retval=0 1532else 1533 $as_echo "$as_me: failed program was:" >&5 1534sed 's/^/| /' conftest.$ac_ext >&5 1535 1536 ac_retval=1 1537fi 1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1539 return $ac_retval 1540 1541} # ac_fn_c_try_compile 1542 1543# ac_fn_c_try_cpp LINENO 1544# ---------------------- 1545# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1546ac_fn_c_try_cpp () 1547{ 1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1549 if { { ac_try="$ac_cpp conftest.$ac_ext" 1550case "(($ac_try" in 1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1552 *) ac_try_echo=$ac_try;; 1553esac 1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1555$as_echo "$ac_try_echo"; } >&5 1556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1557 ac_status=$? 1558 if test -s conftest.err; then 1559 grep -v '^ *+' conftest.err >conftest.er1 1560 cat conftest.er1 >&5 1561 mv -f conftest.er1 conftest.err 1562 fi 1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1564 test $ac_status = 0; } >/dev/null && { 1565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1566 test ! -s conftest.err 1567 }; then : 1568 ac_retval=0 1569else 1570 $as_echo "$as_me: failed program was:" >&5 1571sed 's/^/| /' conftest.$ac_ext >&5 1572 1573 ac_retval=1 1574fi 1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1576 return $ac_retval 1577 1578} # ac_fn_c_try_cpp 1579 1580# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1581# ------------------------------------------------------- 1582# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1583# the include files in INCLUDES and setting the cache variable VAR 1584# accordingly. 1585ac_fn_c_check_header_mongrel () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1590$as_echo_n "checking for $2... " >&6; } 1591if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1592 $as_echo_n "(cached) " >&6 1593fi 1594eval ac_res=\$$3 1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1596$as_echo "$ac_res" >&6; } 1597else 1598 # Is the header compilable? 1599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1600$as_echo_n "checking $2 usability... " >&6; } 1601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1602/* end confdefs.h. */ 1603$4 1604#include <$2> 1605_ACEOF 1606if ac_fn_c_try_compile "$LINENO"; then : 1607 ac_header_compiler=yes 1608else 1609 ac_header_compiler=no 1610fi 1611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1613$as_echo "$ac_header_compiler" >&6; } 1614 1615# Is the header present? 1616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1617$as_echo_n "checking $2 presence... " >&6; } 1618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1619/* end confdefs.h. */ 1620#include <$2> 1621_ACEOF 1622if ac_fn_c_try_cpp "$LINENO"; then : 1623 ac_header_preproc=yes 1624else 1625 ac_header_preproc=no 1626fi 1627rm -f conftest.err conftest.$ac_ext 1628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1629$as_echo "$ac_header_preproc" >&6; } 1630 1631# So? What about this header? 1632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1633 yes:no: ) 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1635$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1637$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1638 ;; 1639 no:yes:* ) 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1641$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1643$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1645$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1647$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1650 ;; 1651esac 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1653$as_echo_n "checking for $2... " >&6; } 1654if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1655 $as_echo_n "(cached) " >&6 1656else 1657 eval "$3=\$ac_header_compiler" 1658fi 1659eval ac_res=\$$3 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1661$as_echo "$ac_res" >&6; } 1662fi 1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1664 1665} # ac_fn_c_check_header_mongrel 1666 1667# ac_fn_c_try_run LINENO 1668# ---------------------- 1669# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1670# that executables *can* be run. 1671ac_fn_c_try_run () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 if { { ac_try="$ac_link" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680$as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_link") 2>&5 1682 ac_status=$? 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1685 { { case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_try") 2>&5 1692 ac_status=$? 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; }; }; then : 1695 ac_retval=0 1696else 1697 $as_echo "$as_me: program exited with status $ac_status" >&5 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=$ac_status 1702fi 1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1705 return $ac_retval 1706 1707} # ac_fn_c_try_run 1708 1709# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1710# ------------------------------------------------------- 1711# Tests whether HEADER exists and can be compiled using the include files in 1712# INCLUDES, setting the cache variable VAR accordingly. 1713ac_fn_c_check_header_compile () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1717$as_echo_n "checking for $2... " >&6; } 1718if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1719 $as_echo_n "(cached) " >&6 1720else 1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1722/* end confdefs.h. */ 1723$4 1724#include <$2> 1725_ACEOF 1726if ac_fn_c_try_compile "$LINENO"; then : 1727 eval "$3=yes" 1728else 1729 eval "$3=no" 1730fi 1731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1732fi 1733eval ac_res=\$$3 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1735$as_echo "$ac_res" >&6; } 1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1737 1738} # ac_fn_c_check_header_compile 1739 1740# ac_fn_c_try_link LINENO 1741# ----------------------- 1742# Try to link conftest.$ac_ext, and return whether this succeeded. 1743ac_fn_c_try_link () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 rm -f conftest.$ac_objext conftest$ac_exeext 1747 if { { ac_try="$ac_link" 1748case "(($ac_try" in 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1750 *) ac_try_echo=$ac_try;; 1751esac 1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1753$as_echo "$ac_try_echo"; } >&5 1754 (eval "$ac_link") 2>conftest.err 1755 ac_status=$? 1756 if test -s conftest.err; then 1757 grep -v '^ *+' conftest.err >conftest.er1 1758 cat conftest.er1 >&5 1759 mv -f conftest.er1 conftest.err 1760 fi 1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; } && { 1763 test -z "$ac_c_werror_flag" || 1764 test ! -s conftest.err 1765 } && test -s conftest$ac_exeext && { 1766 test "$cross_compiling" = yes || 1767 $as_test_x conftest$ac_exeext 1768 }; then : 1769 ac_retval=0 1770else 1771 $as_echo "$as_me: failed program was:" >&5 1772sed 's/^/| /' conftest.$ac_ext >&5 1773 1774 ac_retval=1 1775fi 1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1778 # interfere with the next link command; also delete a directory that is 1779 # left behind by Apple's compiler. We do this before executing the actions. 1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1782 return $ac_retval 1783 1784} # ac_fn_c_try_link 1785 1786# ac_fn_c_check_func LINENO FUNC VAR 1787# ---------------------------------- 1788# Tests whether FUNC exists, setting the cache variable VAR accordingly 1789ac_fn_c_check_func () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1795 $as_echo_n "(cached) " >&6 1796else 1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798/* end confdefs.h. */ 1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1801#define $2 innocuous_$2 1802 1803/* System header to define __stub macros and hopefully few prototypes, 1804 which can conflict with char $2 (); below. 1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1806 <limits.h> exists even on freestanding compilers. */ 1807 1808#ifdef __STDC__ 1809# include <limits.h> 1810#else 1811# include <assert.h> 1812#endif 1813 1814#undef $2 1815 1816/* Override any GCC internal prototype to avoid an error. 1817 Use char because int might match the return type of a GCC 1818 builtin and then its argument prototype would still apply. */ 1819#ifdef __cplusplus 1820extern "C" 1821#endif 1822char $2 (); 1823/* The GNU C library defines this for functions which it implements 1824 to always fail with ENOSYS. Some functions are actually named 1825 something starting with __ and the normal name is an alias. */ 1826#if defined __stub_$2 || defined __stub___$2 1827choke me 1828#endif 1829 1830int 1831main () 1832{ 1833return $2 (); 1834 ; 1835 return 0; 1836} 1837_ACEOF 1838if ac_fn_c_try_link "$LINENO"; then : 1839 eval "$3=yes" 1840else 1841 eval "$3=no" 1842fi 1843rm -f core conftest.err conftest.$ac_objext \ 1844 conftest$ac_exeext conftest.$ac_ext 1845fi 1846eval ac_res=\$$3 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1848$as_echo "$ac_res" >&6; } 1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1850 1851} # ac_fn_c_check_func 1852 1853# ac_fn_cxx_try_compile LINENO 1854# ---------------------------- 1855# Try to compile conftest.$ac_ext, and return whether this succeeded. 1856ac_fn_cxx_try_compile () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 rm -f conftest.$ac_objext 1860 if { { ac_try="$ac_compile" 1861case "(($ac_try" in 1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1863 *) ac_try_echo=$ac_try;; 1864esac 1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1866$as_echo "$ac_try_echo"; } >&5 1867 (eval "$ac_compile") 2>conftest.err 1868 ac_status=$? 1869 if test -s conftest.err; then 1870 grep -v '^ *+' conftest.err >conftest.er1 1871 cat conftest.er1 >&5 1872 mv -f conftest.er1 conftest.err 1873 fi 1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1875 test $ac_status = 0; } && { 1876 test -z "$ac_cxx_werror_flag" || 1877 test ! -s conftest.err 1878 } && test -s conftest.$ac_objext; then : 1879 ac_retval=0 1880else 1881 $as_echo "$as_me: failed program was:" >&5 1882sed 's/^/| /' conftest.$ac_ext >&5 1883 1884 ac_retval=1 1885fi 1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1887 return $ac_retval 1888 1889} # ac_fn_cxx_try_compile 1890 1891# ac_fn_cxx_try_cpp LINENO 1892# ------------------------ 1893# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1894ac_fn_cxx_try_cpp () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 if { { ac_try="$ac_cpp conftest.$ac_ext" 1898case "(($ac_try" in 1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1900 *) ac_try_echo=$ac_try;; 1901esac 1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1903$as_echo "$ac_try_echo"; } >&5 1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1905 ac_status=$? 1906 if test -s conftest.err; then 1907 grep -v '^ *+' conftest.err >conftest.er1 1908 cat conftest.er1 >&5 1909 mv -f conftest.er1 conftest.err 1910 fi 1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1912 test $ac_status = 0; } >/dev/null && { 1913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1914 test ! -s conftest.err 1915 }; then : 1916 ac_retval=0 1917else 1918 $as_echo "$as_me: failed program was:" >&5 1919sed 's/^/| /' conftest.$ac_ext >&5 1920 1921 ac_retval=1 1922fi 1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1924 return $ac_retval 1925 1926} # ac_fn_cxx_try_cpp 1927 1928# ac_fn_cxx_try_link LINENO 1929# ------------------------- 1930# Try to link conftest.$ac_ext, and return whether this succeeded. 1931ac_fn_cxx_try_link () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 rm -f conftest.$ac_objext conftest$ac_exeext 1935 if { { ac_try="$ac_link" 1936case "(($ac_try" in 1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1938 *) ac_try_echo=$ac_try;; 1939esac 1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1941$as_echo "$ac_try_echo"; } >&5 1942 (eval "$ac_link") 2>conftest.err 1943 ac_status=$? 1944 if test -s conftest.err; then 1945 grep -v '^ *+' conftest.err >conftest.er1 1946 cat conftest.er1 >&5 1947 mv -f conftest.er1 conftest.err 1948 fi 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } && { 1951 test -z "$ac_cxx_werror_flag" || 1952 test ! -s conftest.err 1953 } && test -s conftest$ac_exeext && { 1954 test "$cross_compiling" = yes || 1955 $as_test_x conftest$ac_exeext 1956 }; then : 1957 ac_retval=0 1958else 1959 $as_echo "$as_me: failed program was:" >&5 1960sed 's/^/| /' conftest.$ac_ext >&5 1961 1962 ac_retval=1 1963fi 1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1966 # interfere with the next link command; also delete a directory that is 1967 # left behind by Apple's compiler. We do this before executing the actions. 1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1970 return $ac_retval 1971 1972} # ac_fn_cxx_try_link 1973cat >config.log <<_ACEOF 1974This file contains any messages produced by compilers while 1975running configure, to aid debugging if configure makes a mistake. 1976 1977It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was 1978generated by GNU Autoconf 2.64. Invocation command line was 1979 1980 $ $0 $@ 1981 1982_ACEOF 1983exec 5>>config.log 1984{ 1985cat <<_ASUNAME 1986## --------- ## 1987## Platform. ## 1988## --------- ## 1989 1990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1991uname -m = `(uname -m) 2>/dev/null || echo unknown` 1992uname -r = `(uname -r) 2>/dev/null || echo unknown` 1993uname -s = `(uname -s) 2>/dev/null || echo unknown` 1994uname -v = `(uname -v) 2>/dev/null || echo unknown` 1995 1996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1997/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1998 1999/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2000/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2002/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2003/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2004/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2005/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2006 2007_ASUNAME 2008 2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2010for as_dir in $PATH 2011do 2012 IFS=$as_save_IFS 2013 test -z "$as_dir" && as_dir=. 2014 $as_echo "PATH: $as_dir" 2015 done 2016IFS=$as_save_IFS 2017 2018} >&5 2019 2020cat >&5 <<_ACEOF 2021 2022 2023## ----------- ## 2024## Core tests. ## 2025## ----------- ## 2026 2027_ACEOF 2028 2029 2030# Keep a trace of the command line. 2031# Strip out --no-create and --no-recursion so they do not pile up. 2032# Strip out --silent because we don't want to record it for future runs. 2033# Also quote any args containing shell meta-characters. 2034# Make two passes to allow for proper duplicate-argument suppression. 2035ac_configure_args= 2036ac_configure_args0= 2037ac_configure_args1= 2038ac_must_keep_next=false 2039for ac_pass in 1 2 2040do 2041 for ac_arg 2042 do 2043 case $ac_arg in 2044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2046 | -silent | --silent | --silen | --sile | --sil) 2047 continue ;; 2048 *\'*) 2049 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2050 esac 2051 case $ac_pass in 2052 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2053 2) 2054 as_fn_append ac_configure_args1 " '$ac_arg'" 2055 if test $ac_must_keep_next = true; then 2056 ac_must_keep_next=false # Got value, back to normal. 2057 else 2058 case $ac_arg in 2059 *=* | --config-cache | -C | -disable-* | --disable-* \ 2060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2062 | -with-* | --with-* | -without-* | --without-* | --x) 2063 case "$ac_configure_args0 " in 2064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2065 esac 2066 ;; 2067 -* ) ac_must_keep_next=true ;; 2068 esac 2069 fi 2070 as_fn_append ac_configure_args " '$ac_arg'" 2071 ;; 2072 esac 2073 done 2074done 2075{ ac_configure_args0=; unset ac_configure_args0;} 2076{ ac_configure_args1=; unset ac_configure_args1;} 2077 2078# When interrupted or exit'd, cleanup temporary files, and complete 2079# config.log. We remove comments because anyway the quotes in there 2080# would cause problems or look ugly. 2081# WARNING: Use '\'' to represent an apostrophe within the trap. 2082# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2083trap 'exit_status=$? 2084 # Save into config.log some information that might help in debugging. 2085 { 2086 echo 2087 2088 cat <<\_ASBOX 2089## ---------------- ## 2090## Cache variables. ## 2091## ---------------- ## 2092_ASBOX 2093 echo 2094 # The following way of writing the cache mishandles newlines in values, 2095( 2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2097 eval ac_val=\$$ac_var 2098 case $ac_val in #( 2099 *${as_nl}*) 2100 case $ac_var in #( 2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2102$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2103 esac 2104 case $ac_var in #( 2105 _ | IFS | as_nl) ;; #( 2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2107 *) { eval $ac_var=; unset $ac_var;} ;; 2108 esac ;; 2109 esac 2110 done 2111 (set) 2>&1 | 2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2113 *${as_nl}ac_space=\ *) 2114 sed -n \ 2115 "s/'\''/'\''\\\\'\'''\''/g; 2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2117 ;; #( 2118 *) 2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2120 ;; 2121 esac | 2122 sort 2123) 2124 echo 2125 2126 cat <<\_ASBOX 2127## ----------------- ## 2128## Output variables. ## 2129## ----------------- ## 2130_ASBOX 2131 echo 2132 for ac_var in $ac_subst_vars 2133 do 2134 eval ac_val=\$$ac_var 2135 case $ac_val in 2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2137 esac 2138 $as_echo "$ac_var='\''$ac_val'\''" 2139 done | sort 2140 echo 2141 2142 if test -n "$ac_subst_files"; then 2143 cat <<\_ASBOX 2144## ------------------- ## 2145## File substitutions. ## 2146## ------------------- ## 2147_ASBOX 2148 echo 2149 for ac_var in $ac_subst_files 2150 do 2151 eval ac_val=\$$ac_var 2152 case $ac_val in 2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2154 esac 2155 $as_echo "$ac_var='\''$ac_val'\''" 2156 done | sort 2157 echo 2158 fi 2159 2160 if test -s confdefs.h; then 2161 cat <<\_ASBOX 2162## ----------- ## 2163## confdefs.h. ## 2164## ----------- ## 2165_ASBOX 2166 echo 2167 cat confdefs.h 2168 echo 2169 fi 2170 test "$ac_signal" != 0 && 2171 $as_echo "$as_me: caught signal $ac_signal" 2172 $as_echo "$as_me: exit $exit_status" 2173 } >&5 2174 rm -f core *.core core.conftest.* && 2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2176 exit $exit_status 2177' 0 2178for ac_signal in 1 2 13 15; do 2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2180done 2181ac_signal=0 2182 2183# confdefs.h avoids OS command line length limits that DEFS can exceed. 2184rm -f -r conftest* confdefs.h 2185 2186$as_echo "/* confdefs.h */" > confdefs.h 2187 2188# Predefined preprocessor variables. 2189 2190cat >>confdefs.h <<_ACEOF 2191#define PACKAGE_NAME "$PACKAGE_NAME" 2192_ACEOF 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2196_ACEOF 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_VERSION "$PACKAGE_VERSION" 2200_ACEOF 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_STRING "$PACKAGE_STRING" 2204_ACEOF 2205 2206cat >>confdefs.h <<_ACEOF 2207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2208_ACEOF 2209 2210cat >>confdefs.h <<_ACEOF 2211#define PACKAGE_URL "$PACKAGE_URL" 2212_ACEOF 2213 2214 2215# Let the site file select an alternate cache file if it wants to. 2216# Prefer an explicitly selected file to automatically selected ones. 2217ac_site_file1=NONE 2218ac_site_file2=NONE 2219if test -n "$CONFIG_SITE"; then 2220 ac_site_file1=$CONFIG_SITE 2221elif test "x$prefix" != xNONE; then 2222 ac_site_file1=$prefix/share/config.site 2223 ac_site_file2=$prefix/etc/config.site 2224else 2225 ac_site_file1=$ac_default_prefix/share/config.site 2226 ac_site_file2=$ac_default_prefix/etc/config.site 2227fi 2228for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2229do 2230 test "x$ac_site_file" = xNONE && continue 2231 if test -r "$ac_site_file"; then 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2233$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2234 sed 's/^/| /' "$ac_site_file" >&5 2235 . "$ac_site_file" 2236 fi 2237done 2238 2239if test -r "$cache_file"; then 2240 # Some versions of bash will fail to source /dev/null (special 2241 # files actually), so we avoid doing that. 2242 if test -f "$cache_file"; then 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2244$as_echo "$as_me: loading cache $cache_file" >&6;} 2245 case $cache_file in 2246 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2247 *) . "./$cache_file";; 2248 esac 2249 fi 2250else 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2252$as_echo "$as_me: creating cache $cache_file" >&6;} 2253 >$cache_file 2254fi 2255 2256# Check that the precious variables saved in the cache have kept the same 2257# value. 2258ac_cache_corrupted=false 2259for ac_var in $ac_precious_vars; do 2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2261 eval ac_new_set=\$ac_env_${ac_var}_set 2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2263 eval ac_new_val=\$ac_env_${ac_var}_value 2264 case $ac_old_set,$ac_new_set in 2265 set,) 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2267$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2268 ac_cache_corrupted=: ;; 2269 ,set) 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2271$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2272 ac_cache_corrupted=: ;; 2273 ,);; 2274 *) 2275 if test "x$ac_old_val" != "x$ac_new_val"; then 2276 # differences in whitespace do not lead to failure. 2277 ac_old_val_w=`echo x $ac_old_val` 2278 ac_new_val_w=`echo x $ac_new_val` 2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2281$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2282 ac_cache_corrupted=: 2283 else 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2285$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2286 eval $ac_var=\$ac_old_val 2287 fi 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2289$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2291$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2292 fi;; 2293 esac 2294 # Pass precious variables to config.status. 2295 if test "$ac_new_set" = set; then 2296 case $ac_new_val in 2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2298 *) ac_arg=$ac_var=$ac_new_val ;; 2299 esac 2300 case " $ac_configure_args " in 2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2303 esac 2304 fi 2305done 2306if $ac_cache_corrupted; then 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2310$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2311 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2312fi 2313## -------------------- ## 2314## Main body of script. ## 2315## -------------------- ## 2316 2317ac_ext=c 2318ac_cpp='$CPP $CPPFLAGS' 2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2321ac_compiler_gnu=$ac_cv_c_compiler_gnu 2322 2323 2324 2325 2326 2327#AC_INIT(package-unused, version-unused, libvtv) 2328 2329 2330# ------- 2331# Options 2332# ------- 2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2334$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2335# Check whether --enable-version-specific-runtime-libs was given. 2336if test "${enable_version_specific_runtime_libs+set}" = set; then : 2337 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2338 yes) version_specific_libs=yes ;; 2339 no) version_specific_libs=no ;; 2340 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2341 esac 2342else 2343 version_specific_libs=no 2344fi 2345 2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2347$as_echo "$version_specific_libs" >&6; } 2348 2349# Do not delete or change the following two lines. For why, see 2350# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2351ac_aux_dir= 2352for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2353 for ac_t in install-sh install.sh shtool; do 2354 if test -f "$ac_dir/$ac_t"; then 2355 ac_aux_dir=$ac_dir 2356 ac_install_sh="$ac_aux_dir/$ac_t -c" 2357 break 2 2358 fi 2359 done 2360done 2361if test -z "$ac_aux_dir"; then 2362 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2363fi 2364 2365# These three variables are undocumented and unsupported, 2366# and are intended to be withdrawn in a future Autoconf release. 2367# They can cause serious problems if a builder's source tree is in a directory 2368# whose full name contains unusual characters. 2369ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2370ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2371ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2372 2373 2374# Make sure we can run config.sub. 2375$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2376 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2377 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2379$as_echo_n "checking build system type... " >&6; } 2380if test "${ac_cv_build+set}" = set; then : 2381 $as_echo_n "(cached) " >&6 2382else 2383 ac_build_alias=$build_alias 2384test "x$ac_build_alias" = x && 2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2386test "x$ac_build_alias" = x && 2387 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2388ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2389 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2390 2391fi 2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2393$as_echo "$ac_cv_build" >&6; } 2394case $ac_cv_build in 2395*-*-*) ;; 2396*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2397esac 2398build=$ac_cv_build 2399ac_save_IFS=$IFS; IFS='-' 2400set x $ac_cv_build 2401shift 2402build_cpu=$1 2403build_vendor=$2 2404shift; shift 2405# Remember, the first character of IFS is used to create $*, 2406# except with old shells: 2407build_os=$* 2408IFS=$ac_save_IFS 2409case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2410 2411 2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2413$as_echo_n "checking host system type... " >&6; } 2414if test "${ac_cv_host+set}" = set; then : 2415 $as_echo_n "(cached) " >&6 2416else 2417 if test "x$host_alias" = x; then 2418 ac_cv_host=$ac_cv_build 2419else 2420 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2421 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2422fi 2423 2424fi 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2426$as_echo "$ac_cv_host" >&6; } 2427case $ac_cv_host in 2428*-*-*) ;; 2429*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2430esac 2431host=$ac_cv_host 2432ac_save_IFS=$IFS; IFS='-' 2433set x $ac_cv_host 2434shift 2435host_cpu=$1 2436host_vendor=$2 2437shift; shift 2438# Remember, the first character of IFS is used to create $*, 2439# except with old shells: 2440host_os=$* 2441IFS=$ac_save_IFS 2442case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2443 2444 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2446$as_echo_n "checking target system type... " >&6; } 2447if test "${ac_cv_target+set}" = set; then : 2448 $as_echo_n "(cached) " >&6 2449else 2450 if test "x$target_alias" = x; then 2451 ac_cv_target=$ac_cv_host 2452else 2453 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2454 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2455fi 2456 2457fi 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2459$as_echo "$ac_cv_target" >&6; } 2460case $ac_cv_target in 2461*-*-*) ;; 2462*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2463esac 2464target=$ac_cv_target 2465ac_save_IFS=$IFS; IFS='-' 2466set x $ac_cv_target 2467shift 2468target_cpu=$1 2469target_vendor=$2 2470shift; shift 2471# Remember, the first character of IFS is used to create $*, 2472# except with old shells: 2473target_os=$* 2474IFS=$ac_save_IFS 2475case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2476 2477 2478# The aliases save the names the user supplied, while $host etc. 2479# will get canonicalized. 2480test -n "$target_alias" && 2481 test "$program_prefix$program_suffix$program_transform_name" = \ 2482 NONENONEs,x,x, && 2483 program_prefix=${target_alias}- 2484 2485target_alias=${target_alias-$host_alias} 2486 2487 case ${build_alias} in 2488 "") build_noncanonical=${build} ;; 2489 *) build_noncanonical=${build_alias} ;; 2490esac 2491 2492 case ${host_alias} in 2493 "") host_noncanonical=${build_noncanonical} ;; 2494 *) host_noncanonical=${host_alias} ;; 2495esac 2496 2497 case ${target_alias} in 2498 "") target_noncanonical=${host_noncanonical} ;; 2499 *) target_noncanonical=${target_alias} ;; 2500esac 2501 2502 2503 2504 2505 2506 LIBSTDCXX_RAW_CXX_CXXFLAGS="\ 2507 -I\$(top_builddir)/../libstdc++-v3/include \ 2508 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \ 2509 -I\$(top_srcdir)/../libstdc++-v3/libsupc++" 2510 LIBSTDCXX_RAW_CXX_LDFLAGS="\ 2511 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la" 2512 2513 2514 2515 2516# Use same top-level configure hooks in libgcc/libstdc++/libvtv. 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 2518$as_echo_n "checking for --enable-vtable-verify... " >&6; } 2519# Check whether --enable-vtable-verify was given. 2520if test "${enable_vtable_verify+set}" = set; then : 2521 enableval=$enable_vtable_verify; case "$enableval" in 2522 yes) enable_vtable_verify=yes ;; 2523 no) enable_vtable_verify=no ;; 2524 *) enable_vtable_verify=no;; 2525 esac 2526else 2527 enable_vtable_verify=no 2528fi 2529 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 2531$as_echo "$enable_vtable_verify" >&6; } 2532 2533# See if supported. 2534unset VTV_SUPPORTED 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5 2536$as_echo_n "checking for host support for vtable verification... " >&6; } 2537. ${srcdir}/configure.tgt 2538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5 2539$as_echo "$VTV_SUPPORTED" >&6; } 2540 2541# Decide if it's usable. 2542use_vtable_verify=no 2543if test "x$VTV_SUPPORTED" = "xyes"; then 2544 if test "x$enable_vtable_verify" = "xyes"; then 2545 use_vtable_verify=yes 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5 2547$as_echo "$as_me: using vtable verification" >&6;} 2548 fi 2549fi 2550 if test $use_vtable_verify = yes; then 2551 ENABLE_VTABLE_VERIFY_TRUE= 2552 ENABLE_VTABLE_VERIFY_FALSE='#' 2553else 2554 ENABLE_VTABLE_VERIFY_TRUE='#' 2555 ENABLE_VTABLE_VERIFY_FALSE= 2556fi 2557 2558 2559am__api_version='1.11' 2560 2561# Find a good install program. We prefer a C program (faster), 2562# so one script is as good as another. But avoid the broken or 2563# incompatible versions: 2564# SysV /etc/install, /usr/sbin/install 2565# SunOS /usr/etc/install 2566# IRIX /sbin/install 2567# AIX /bin/install 2568# AmigaOS /C/install, which installs bootblocks on floppy discs 2569# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2570# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2571# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2572# OS/2's system install, which has a completely different semantic 2573# ./install, which can be erroneously created by make from ./install.sh. 2574# Reject install programs that cannot install multiple files. 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2576$as_echo_n "checking for a BSD-compatible install... " >&6; } 2577if test -z "$INSTALL"; then 2578if test "${ac_cv_path_install+set}" = set; then : 2579 $as_echo_n "(cached) " >&6 2580else 2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2582for as_dir in $PATH 2583do 2584 IFS=$as_save_IFS 2585 test -z "$as_dir" && as_dir=. 2586 # Account for people who put trailing slashes in PATH elements. 2587case $as_dir/ in #(( 2588 ./ | .// | /[cC]/* | \ 2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2591 /usr/ucb/* ) ;; 2592 *) 2593 # OSF1 and SCO ODT 3.0 have their own names for install. 2594 # Don't use installbsd from OSF since it installs stuff as root 2595 # by default. 2596 for ac_prog in ginstall scoinst install; do 2597 for ac_exec_ext in '' $ac_executable_extensions; do 2598 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2599 if test $ac_prog = install && 2600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2601 # AIX install. It has an incompatible calling convention. 2602 : 2603 elif test $ac_prog = install && 2604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2605 # program-specific install script used by HP pwplus--don't use. 2606 : 2607 else 2608 rm -rf conftest.one conftest.two conftest.dir 2609 echo one > conftest.one 2610 echo two > conftest.two 2611 mkdir conftest.dir 2612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2613 test -s conftest.one && test -s conftest.two && 2614 test -s conftest.dir/conftest.one && 2615 test -s conftest.dir/conftest.two 2616 then 2617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2618 break 3 2619 fi 2620 fi 2621 fi 2622 done 2623 done 2624 ;; 2625esac 2626 2627 done 2628IFS=$as_save_IFS 2629 2630rm -rf conftest.one conftest.two conftest.dir 2631 2632fi 2633 if test "${ac_cv_path_install+set}" = set; then 2634 INSTALL=$ac_cv_path_install 2635 else 2636 # As a last resort, use the slow shell script. Don't cache a 2637 # value for INSTALL within a source directory, because that will 2638 # break other packages using the cache if that directory is 2639 # removed, or if the value is a relative name. 2640 INSTALL=$ac_install_sh 2641 fi 2642fi 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2644$as_echo "$INSTALL" >&6; } 2645 2646# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2647# It thinks the first close brace ends the variable substitution. 2648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2649 2650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2651 2652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2653 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2655$as_echo_n "checking whether build environment is sane... " >&6; } 2656# Just in case 2657sleep 1 2658echo timestamp > conftest.file 2659# Reject unsafe characters in $srcdir or the absolute working directory 2660# name. Accept space and tab only in the latter. 2661am_lf=' 2662' 2663case `pwd` in 2664 *[\\\"\#\$\&\'\`$am_lf]*) 2665 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2666esac 2667case $srcdir in 2668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2669 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2670esac 2671 2672# Do `set' in a subshell so we don't clobber the current shell's 2673# arguments. Must try -L first in case configure is actually a 2674# symlink; some systems play weird games with the mod time of symlinks 2675# (eg FreeBSD returns the mod time of the symlink's containing 2676# directory). 2677if ( 2678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2679 if test "$*" = "X"; then 2680 # -L didn't work. 2681 set X `ls -t "$srcdir/configure" conftest.file` 2682 fi 2683 rm -f conftest.file 2684 if test "$*" != "X $srcdir/configure conftest.file" \ 2685 && test "$*" != "X conftest.file $srcdir/configure"; then 2686 2687 # If neither matched, then we have a broken ls. This can happen 2688 # if, for instance, CONFIG_SHELL is bash and it inherits a 2689 # broken ls alias from the environment. This has actually 2690 # happened. Such a system could not be considered "sane". 2691 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2692alias in your environment" "$LINENO" 5 2693 fi 2694 2695 test "$2" = conftest.file 2696 ) 2697then 2698 # Ok. 2699 : 2700else 2701 as_fn_error "newly created file is older than distributed files! 2702Check your system clock" "$LINENO" 5 2703fi 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2705$as_echo "yes" >&6; } 2706test "$program_prefix" != NONE && 2707 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2708# Use a double $ so make ignores it. 2709test "$program_suffix" != NONE && 2710 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2711# Double any \ or $. 2712# By default was `s,x,x', remove it if useless. 2713ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2714program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2715 2716# expand $ac_aux_dir to an absolute path 2717am_aux_dir=`cd $ac_aux_dir && pwd` 2718 2719if test x"${MISSING+set}" != xset; then 2720 case $am_aux_dir in 2721 *\ * | *\ *) 2722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2723 *) 2724 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2725 esac 2726fi 2727# Use eval to expand $SHELL 2728if eval "$MISSING --run true"; then 2729 am_missing_run="$MISSING --run " 2730else 2731 am_missing_run= 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2733$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2734fi 2735 2736if test x"${install_sh}" != xset; then 2737 case $am_aux_dir in 2738 *\ * | *\ *) 2739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2740 *) 2741 install_sh="\${SHELL} $am_aux_dir/install-sh" 2742 esac 2743fi 2744 2745# Installed binaries are usually stripped using `strip' when the user 2746# run `make install-strip'. However `strip' might not be the right 2747# tool to use in cross-compilation environments, therefore Automake 2748# will honor the `STRIP' environment variable to overrule this program. 2749if test "$cross_compiling" != no; then 2750 if test -n "$ac_tool_prefix"; then 2751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2752set dummy ${ac_tool_prefix}strip; ac_word=$2 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754$as_echo_n "checking for $ac_word... " >&6; } 2755if test "${ac_cv_prog_STRIP+set}" = set; then : 2756 $as_echo_n "(cached) " >&6 2757else 2758 if test -n "$STRIP"; then 2759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2760else 2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762for as_dir in $PATH 2763do 2764 IFS=$as_save_IFS 2765 test -z "$as_dir" && as_dir=. 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2768 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2770 break 2 2771 fi 2772done 2773 done 2774IFS=$as_save_IFS 2775 2776fi 2777fi 2778STRIP=$ac_cv_prog_STRIP 2779if test -n "$STRIP"; then 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2781$as_echo "$STRIP" >&6; } 2782else 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2784$as_echo "no" >&6; } 2785fi 2786 2787 2788fi 2789if test -z "$ac_cv_prog_STRIP"; then 2790 ac_ct_STRIP=$STRIP 2791 # Extract the first word of "strip", so it can be a program name with args. 2792set dummy strip; ac_word=$2 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2794$as_echo_n "checking for $ac_word... " >&6; } 2795if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2796 $as_echo_n "(cached) " >&6 2797else 2798 if test -n "$ac_ct_STRIP"; then 2799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2800else 2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802for as_dir in $PATH 2803do 2804 IFS=$as_save_IFS 2805 test -z "$as_dir" && as_dir=. 2806 for ac_exec_ext in '' $ac_executable_extensions; do 2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2808 ac_cv_prog_ac_ct_STRIP="strip" 2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2810 break 2 2811 fi 2812done 2813 done 2814IFS=$as_save_IFS 2815 2816fi 2817fi 2818ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2819if test -n "$ac_ct_STRIP"; then 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2821$as_echo "$ac_ct_STRIP" >&6; } 2822else 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2824$as_echo "no" >&6; } 2825fi 2826 2827 if test "x$ac_ct_STRIP" = x; then 2828 STRIP=":" 2829 else 2830 case $cross_compiling:$ac_tool_warned in 2831yes:) 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2834ac_tool_warned=yes ;; 2835esac 2836 STRIP=$ac_ct_STRIP 2837 fi 2838else 2839 STRIP="$ac_cv_prog_STRIP" 2840fi 2841 2842fi 2843INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2844 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2846$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2847if test -z "$MKDIR_P"; then 2848 if test "${ac_cv_path_mkdir+set}" = set; then : 2849 $as_echo_n "(cached) " >&6 2850else 2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2852for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2853do 2854 IFS=$as_save_IFS 2855 test -z "$as_dir" && as_dir=. 2856 for ac_prog in mkdir gmkdir; do 2857 for ac_exec_ext in '' $ac_executable_extensions; do 2858 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2860 'mkdir (GNU coreutils) '* | \ 2861 'mkdir (coreutils) '* | \ 2862 'mkdir (fileutils) '4.1*) 2863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2864 break 3;; 2865 esac 2866 done 2867 done 2868 done 2869IFS=$as_save_IFS 2870 2871fi 2872 2873 if test "${ac_cv_path_mkdir+set}" = set; then 2874 MKDIR_P="$ac_cv_path_mkdir -p" 2875 else 2876 # As a last resort, use the slow shell script. Don't cache a 2877 # value for MKDIR_P within a source directory, because that will 2878 # break other packages using the cache if that directory is 2879 # removed, or if the value is a relative name. 2880 test -d ./--version && rmdir ./--version 2881 MKDIR_P="$ac_install_sh -d" 2882 fi 2883fi 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2885$as_echo "$MKDIR_P" >&6; } 2886 2887mkdir_p="$MKDIR_P" 2888case $mkdir_p in 2889 [\\/$]* | ?:[\\/]*) ;; 2890 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2891esac 2892 2893for ac_prog in gawk mawk nawk awk 2894do 2895 # Extract the first word of "$ac_prog", so it can be a program name with args. 2896set dummy $ac_prog; ac_word=$2 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2898$as_echo_n "checking for $ac_word... " >&6; } 2899if test "${ac_cv_prog_AWK+set}" = set; then : 2900 $as_echo_n "(cached) " >&6 2901else 2902 if test -n "$AWK"; then 2903 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2904else 2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906for as_dir in $PATH 2907do 2908 IFS=$as_save_IFS 2909 test -z "$as_dir" && as_dir=. 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2912 ac_cv_prog_AWK="$ac_prog" 2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2914 break 2 2915 fi 2916done 2917 done 2918IFS=$as_save_IFS 2919 2920fi 2921fi 2922AWK=$ac_cv_prog_AWK 2923if test -n "$AWK"; then 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2925$as_echo "$AWK" >&6; } 2926else 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2928$as_echo "no" >&6; } 2929fi 2930 2931 2932 test -n "$AWK" && break 2933done 2934 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2936$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2937set x ${MAKE-make} 2938ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2939if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2940 $as_echo_n "(cached) " >&6 2941else 2942 cat >conftest.make <<\_ACEOF 2943SHELL = /bin/sh 2944all: 2945 @echo '@@@%%%=$(MAKE)=@@@%%%' 2946_ACEOF 2947# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2948case `${MAKE-make} -f conftest.make 2>/dev/null` in 2949 *@@@%%%=?*=@@@%%%*) 2950 eval ac_cv_prog_make_${ac_make}_set=yes;; 2951 *) 2952 eval ac_cv_prog_make_${ac_make}_set=no;; 2953esac 2954rm -f conftest.make 2955fi 2956if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2958$as_echo "yes" >&6; } 2959 SET_MAKE= 2960else 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2962$as_echo "no" >&6; } 2963 SET_MAKE="MAKE=${MAKE-make}" 2964fi 2965 2966rm -rf .tst 2>/dev/null 2967mkdir .tst 2>/dev/null 2968if test -d .tst; then 2969 am__leading_dot=. 2970else 2971 am__leading_dot=_ 2972fi 2973rmdir .tst 2>/dev/null 2974 2975if test "`cd $srcdir && pwd`" != "`pwd`"; then 2976 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2977 # is not polluted with repeated "-I." 2978 am__isrc=' -I$(srcdir)' 2979 # test to see if srcdir already configured 2980 if test -f $srcdir/config.status; then 2981 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2982 fi 2983fi 2984 2985# test whether we have cygpath 2986if test -z "$CYGPATH_W"; then 2987 if (cygpath --version) >/dev/null 2>/dev/null; then 2988 CYGPATH_W='cygpath -w' 2989 else 2990 CYGPATH_W=echo 2991 fi 2992fi 2993 2994 2995# Define the identity of the package. 2996 PACKAGE='libvtv' 2997 VERSION='1.0' 2998 2999 3000cat >>confdefs.h <<_ACEOF 3001#define PACKAGE "$PACKAGE" 3002_ACEOF 3003 3004 3005cat >>confdefs.h <<_ACEOF 3006#define VERSION "$VERSION" 3007_ACEOF 3008 3009# Some tools Automake needs. 3010 3011ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3012 3013 3014AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3015 3016 3017AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3018 3019 3020AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3021 3022 3023MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3024 3025# We need awk for the "check" target. The system "awk" is bad on 3026# some platforms. 3027# Always define AMTAR for backward compatibility. 3028 3029AMTAR=${AMTAR-"${am_missing_run}tar"} 3030 3031am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3032 3033 3034 3035 3036 3037# Default to --enable-multilib 3038# Check whether --enable-multilib was given. 3039if test "${enable_multilib+set}" = set; then : 3040 enableval=$enable_multilib; case "$enableval" in 3041 yes) multilib=yes ;; 3042 no) multilib=no ;; 3043 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 3044 esac 3045else 3046 multilib=yes 3047fi 3048 3049 3050# We may get other options which we leave undocumented: 3051# --with-target-subdir, --with-multisrctop, --with-multisubdir 3052# See config-ml.in if you want the gory details. 3053 3054if test "$srcdir" = "."; then 3055 if test "$with_target_subdir" != "."; then 3056 multi_basedir="$srcdir/$with_multisrctop../.." 3057 else 3058 multi_basedir="$srcdir/$with_multisrctop.." 3059 fi 3060else 3061 multi_basedir="$srcdir/.." 3062fi 3063 3064 3065# Even if the default multilib is not a cross compilation, 3066# it may be that some of the other multilibs are. 3067if test $cross_compiling = no && test $multilib = yes \ 3068 && test "x${with_multisubdir}" != x ; then 3069 cross_compiling=maybe 3070fi 3071 3072ac_config_commands="$ac_config_commands default-1" 3073 3074 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3076$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3077 # Check whether --enable-maintainer-mode was given. 3078if test "${enable_maintainer_mode+set}" = set; then : 3079 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3080else 3081 USE_MAINTAINER_MODE=no 3082fi 3083 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3085$as_echo "$USE_MAINTAINER_MODE" >&6; } 3086 if test $USE_MAINTAINER_MODE = yes; then 3087 MAINTAINER_MODE_TRUE= 3088 MAINTAINER_MODE_FALSE='#' 3089else 3090 MAINTAINER_MODE_TRUE='#' 3091 MAINTAINER_MODE_FALSE= 3092fi 3093 3094 MAINT=$MAINTAINER_MODE_TRUE 3095 3096 3097 3098 3099 3100 # These need to be absolute paths, yet at the same time need to 3101 # canonicalize only relative paths, because then amd will not unmount 3102 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. 3103 libvtv_builddir=`${PWDCMD-pwd}` 3104 case $srcdir in 3105 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;; 3106 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; 3107 esac 3108 toplevel_builddir=${libvtv_builddir}/.. 3109 toplevel_srcdir=${libvtv_srcdir}/.. 3110 3111 3112 3113 3114 3115 3116# Calculate toolexeclibdir 3117# Also toolexecdir, though it's only used in toolexeclibdir 3118case ${version_specific_libs} in 3119 yes) 3120 # Need the gcc compiler version to know where to install libraries 3121 # and header files if --enable-version-specific-runtime-libs option 3122 # is selected. 3123 toolexecdir='$(libdir)/gcc/$(target_alias)' 3124 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 3125 ;; 3126 no) 3127 if test -n "$with_cross_host" && 3128 test x"$with_cross_host" != x"no"; then 3129 # Install a library built with a cross compiler in tooldir, not libdir. 3130 toolexecdir='$(exec_prefix)/$(target_alias)' 3131 toolexeclibdir='$(toolexecdir)/lib' 3132 else 3133 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 3134 toolexeclibdir='$(libdir)' 3135 fi 3136 multi_os_directory=`$CC -print-multi-os-directory` 3137 case $multi_os_directory in 3138 .) ;; # Avoid trailing /. 3139 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 3140 esac 3141 ;; 3142esac 3143 3144 3145 3146DEPDIR="${am__leading_dot}deps" 3147 3148ac_config_commands="$ac_config_commands depfiles" 3149 3150 3151am_make=${MAKE-make} 3152cat > confinc << 'END' 3153am__doit: 3154 @echo this is the am__doit target 3155.PHONY: am__doit 3156END 3157# If we don't find an include directive, just comment out the code. 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3159$as_echo_n "checking for style of include used by $am_make... " >&6; } 3160am__include="#" 3161am__quote= 3162_am_result=none 3163# First try GNU make style include. 3164echo "include confinc" > confmf 3165# Ignore all kinds of additional output from `make'. 3166case `$am_make -s -f confmf 2> /dev/null` in #( 3167*the\ am__doit\ target*) 3168 am__include=include 3169 am__quote= 3170 _am_result=GNU 3171 ;; 3172esac 3173# Now try BSD make style include. 3174if test "$am__include" = "#"; then 3175 echo '.include "confinc"' > confmf 3176 case `$am_make -s -f confmf 2> /dev/null` in #( 3177 *the\ am__doit\ target*) 3178 am__include=.include 3179 am__quote="\"" 3180 _am_result=BSD 3181 ;; 3182 esac 3183fi 3184 3185 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3187$as_echo "$_am_result" >&6; } 3188rm -f confinc confmf 3189 3190# Check whether --enable-dependency-tracking was given. 3191if test "${enable_dependency_tracking+set}" = set; then : 3192 enableval=$enable_dependency_tracking; 3193fi 3194 3195if test "x$enable_dependency_tracking" != xno; then 3196 am_depcomp="$ac_aux_dir/depcomp" 3197 AMDEPBACKSLASH='\' 3198fi 3199 if test "x$enable_dependency_tracking" != xno; then 3200 AMDEP_TRUE= 3201 AMDEP_FALSE='#' 3202else 3203 AMDEP_TRUE='#' 3204 AMDEP_FALSE= 3205fi 3206 3207 3208ac_ext=c 3209ac_cpp='$CPP $CPPFLAGS' 3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3212ac_compiler_gnu=$ac_cv_c_compiler_gnu 3213if test -n "$ac_tool_prefix"; then 3214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3215set dummy ${ac_tool_prefix}gcc; ac_word=$2 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3217$as_echo_n "checking for $ac_word... " >&6; } 3218if test "${ac_cv_prog_CC+set}" = set; then : 3219 $as_echo_n "(cached) " >&6 3220else 3221 if test -n "$CC"; then 3222 ac_cv_prog_CC="$CC" # Let the user override the test. 3223else 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 3227 IFS=$as_save_IFS 3228 test -z "$as_dir" && as_dir=. 3229 for ac_exec_ext in '' $ac_executable_extensions; do 3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3231 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3233 break 2 3234 fi 3235done 3236 done 3237IFS=$as_save_IFS 3238 3239fi 3240fi 3241CC=$ac_cv_prog_CC 3242if test -n "$CC"; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3244$as_echo "$CC" >&6; } 3245else 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247$as_echo "no" >&6; } 3248fi 3249 3250 3251fi 3252if test -z "$ac_cv_prog_CC"; then 3253 ac_ct_CC=$CC 3254 # Extract the first word of "gcc", so it can be a program name with args. 3255set dummy gcc; ac_word=$2 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257$as_echo_n "checking for $ac_word... " >&6; } 3258if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$ac_ct_CC"; then 3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3263else 3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3265for as_dir in $PATH 3266do 3267 IFS=$as_save_IFS 3268 test -z "$as_dir" && as_dir=. 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3271 ac_cv_prog_ac_ct_CC="gcc" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281ac_ct_CC=$ac_cv_prog_ac_ct_CC 3282if test -n "$ac_ct_CC"; then 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3284$as_echo "$ac_ct_CC" >&6; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 if test "x$ac_ct_CC" = x; then 3291 CC="" 3292 else 3293 case $cross_compiling:$ac_tool_warned in 3294yes:) 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3297ac_tool_warned=yes ;; 3298esac 3299 CC=$ac_ct_CC 3300 fi 3301else 3302 CC="$ac_cv_prog_CC" 3303fi 3304 3305if test -z "$CC"; then 3306 if test -n "$ac_tool_prefix"; then 3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3308set dummy ${ac_tool_prefix}cc; ac_word=$2 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3310$as_echo_n "checking for $ac_word... " >&6; } 3311if test "${ac_cv_prog_CC+set}" = set; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 if test -n "$CC"; then 3315 ac_cv_prog_CC="$CC" # Let the user override the test. 3316else 3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3318for as_dir in $PATH 3319do 3320 IFS=$as_save_IFS 3321 test -z "$as_dir" && as_dir=. 3322 for ac_exec_ext in '' $ac_executable_extensions; do 3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3324 ac_cv_prog_CC="${ac_tool_prefix}cc" 3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3326 break 2 3327 fi 3328done 3329 done 3330IFS=$as_save_IFS 3331 3332fi 3333fi 3334CC=$ac_cv_prog_CC 3335if test -n "$CC"; then 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3337$as_echo "$CC" >&6; } 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3340$as_echo "no" >&6; } 3341fi 3342 3343 3344 fi 3345fi 3346if test -z "$CC"; then 3347 # Extract the first word of "cc", so it can be a program name with args. 3348set dummy cc; ac_word=$2 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3350$as_echo_n "checking for $ac_word... " >&6; } 3351if test "${ac_cv_prog_CC+set}" = set; then : 3352 $as_echo_n "(cached) " >&6 3353else 3354 if test -n "$CC"; then 3355 ac_cv_prog_CC="$CC" # Let the user override the test. 3356else 3357 ac_prog_rejected=no 3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3359for as_dir in $PATH 3360do 3361 IFS=$as_save_IFS 3362 test -z "$as_dir" && as_dir=. 3363 for ac_exec_ext in '' $ac_executable_extensions; do 3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3366 ac_prog_rejected=yes 3367 continue 3368 fi 3369 ac_cv_prog_CC="cc" 3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3371 break 2 3372 fi 3373done 3374 done 3375IFS=$as_save_IFS 3376 3377if test $ac_prog_rejected = yes; then 3378 # We found a bogon in the path, so make sure we never use it. 3379 set dummy $ac_cv_prog_CC 3380 shift 3381 if test $# != 0; then 3382 # We chose a different compiler from the bogus one. 3383 # However, it has the same basename, so the bogon will be chosen 3384 # first if we set CC to just the basename; use the full file name. 3385 shift 3386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3387 fi 3388fi 3389fi 3390fi 3391CC=$ac_cv_prog_CC 3392if test -n "$CC"; then 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3394$as_echo "$CC" >&6; } 3395else 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3397$as_echo "no" >&6; } 3398fi 3399 3400 3401fi 3402if test -z "$CC"; then 3403 if test -n "$ac_tool_prefix"; then 3404 for ac_prog in cl.exe 3405 do 3406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3407set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3409$as_echo_n "checking for $ac_word... " >&6; } 3410if test "${ac_cv_prog_CC+set}" = set; then : 3411 $as_echo_n "(cached) " >&6 3412else 3413 if test -n "$CC"; then 3414 ac_cv_prog_CC="$CC" # Let the user override the test. 3415else 3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417for as_dir in $PATH 3418do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 3427done 3428 done 3429IFS=$as_save_IFS 3430 3431fi 3432fi 3433CC=$ac_cv_prog_CC 3434if test -n "$CC"; then 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3436$as_echo "$CC" >&6; } 3437else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439$as_echo "no" >&6; } 3440fi 3441 3442 3443 test -n "$CC" && break 3444 done 3445fi 3446if test -z "$CC"; then 3447 ac_ct_CC=$CC 3448 for ac_prog in cl.exe 3449do 3450 # Extract the first word of "$ac_prog", so it can be a program name with args. 3451set dummy $ac_prog; ac_word=$2 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3453$as_echo_n "checking for $ac_word... " >&6; } 3454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3455 $as_echo_n "(cached) " >&6 3456else 3457 if test -n "$ac_ct_CC"; then 3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3459else 3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3461for as_dir in $PATH 3462do 3463 IFS=$as_save_IFS 3464 test -z "$as_dir" && as_dir=. 3465 for ac_exec_ext in '' $ac_executable_extensions; do 3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3467 ac_cv_prog_ac_ct_CC="$ac_prog" 3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3469 break 2 3470 fi 3471done 3472 done 3473IFS=$as_save_IFS 3474 3475fi 3476fi 3477ac_ct_CC=$ac_cv_prog_ac_ct_CC 3478if test -n "$ac_ct_CC"; then 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3480$as_echo "$ac_ct_CC" >&6; } 3481else 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483$as_echo "no" >&6; } 3484fi 3485 3486 3487 test -n "$ac_ct_CC" && break 3488done 3489 3490 if test "x$ac_ct_CC" = x; then 3491 CC="" 3492 else 3493 case $cross_compiling:$ac_tool_warned in 3494yes:) 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3497ac_tool_warned=yes ;; 3498esac 3499 CC=$ac_ct_CC 3500 fi 3501fi 3502 3503fi 3504 3505 3506test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3508as_fn_error "no acceptable C compiler found in \$PATH 3509See \`config.log' for more details." "$LINENO" 5; } 3510 3511# Provide some information about the compiler. 3512$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3513set X $ac_compile 3514ac_compiler=$2 3515for ac_option in --version -v -V -qversion; do 3516 { { ac_try="$ac_compiler $ac_option >&5" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3522$as_echo "$ac_try_echo"; } >&5 3523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3524 ac_status=$? 3525 if test -s conftest.err; then 3526 sed '10a\ 3527... rest of stderr output deleted ... 3528 10q' conftest.err >conftest.er1 3529 cat conftest.er1 >&5 3530 rm -f conftest.er1 conftest.err 3531 fi 3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3533 test $ac_status = 0; } 3534done 3535 3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537/* end confdefs.h. */ 3538 3539int 3540main () 3541{ 3542 3543 ; 3544 return 0; 3545} 3546_ACEOF 3547ac_clean_files_save=$ac_clean_files 3548ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3549# Try to create an executable without -o first, disregard a.out. 3550# It will help us diagnose broken compilers, and finding out an intuition 3551# of exeext. 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3553$as_echo_n "checking for C compiler default output file name... " >&6; } 3554ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3555 3556# The possible output files: 3557ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3558 3559ac_rmfiles= 3560for ac_file in $ac_files 3561do 3562 case $ac_file in 3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3564 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3565 esac 3566done 3567rm -f $ac_rmfiles 3568 3569if { { ac_try="$ac_link_default" 3570case "(($ac_try" in 3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3572 *) ac_try_echo=$ac_try;; 3573esac 3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3575$as_echo "$ac_try_echo"; } >&5 3576 (eval "$ac_link_default") 2>&5 3577 ac_status=$? 3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3579 test $ac_status = 0; }; then : 3580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3581# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3582# in a Makefile. We should not override ac_cv_exeext if it was cached, 3583# so that the user can short-circuit this test for compilers unknown to 3584# Autoconf. 3585for ac_file in $ac_files '' 3586do 3587 test -f "$ac_file" || continue 3588 case $ac_file in 3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3590 ;; 3591 [ab].out ) 3592 # We found the default executable, but exeext='' is most 3593 # certainly right. 3594 break;; 3595 *.* ) 3596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3597 then :; else 3598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3599 fi 3600 # We set ac_cv_exeext here because the later test for it is not 3601 # safe: cross compilers may not add the suffix if given an `-o' 3602 # argument, so we may need to know it at that point already. 3603 # Even if this section looks crufty: it has the advantage of 3604 # actually working. 3605 break;; 3606 * ) 3607 break;; 3608 esac 3609done 3610test "$ac_cv_exeext" = no && ac_cv_exeext= 3611 3612else 3613 ac_file='' 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3616$as_echo "$ac_file" >&6; } 3617if test -z "$ac_file"; then : 3618 $as_echo "$as_me: failed program was:" >&5 3619sed 's/^/| /' conftest.$ac_ext >&5 3620 3621{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3623{ as_fn_set_status 77 3624as_fn_error "C compiler cannot create executables 3625See \`config.log' for more details." "$LINENO" 5; }; } 3626fi 3627ac_exeext=$ac_cv_exeext 3628 3629# Check that the compiler produces executables we can run. If not, either 3630# the compiler is broken, or we cross compile. 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3632$as_echo_n "checking whether the C compiler works... " >&6; } 3633# If not cross compiling, check that we can run a simple program. 3634if test "$cross_compiling" != yes; then 3635 if { ac_try='./$ac_file' 3636 { { case "(($ac_try" in 3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3638 *) ac_try_echo=$ac_try;; 3639esac 3640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3641$as_echo "$ac_try_echo"; } >&5 3642 (eval "$ac_try") 2>&5 3643 ac_status=$? 3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3645 test $ac_status = 0; }; }; then 3646 cross_compiling=no 3647 else 3648 if test "$cross_compiling" = maybe; then 3649 cross_compiling=yes 3650 else 3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3653as_fn_error "cannot run C compiled programs. 3654If you meant to cross compile, use \`--host'. 3655See \`config.log' for more details." "$LINENO" 5; } 3656 fi 3657 fi 3658fi 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3660$as_echo "yes" >&6; } 3661 3662rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3663ac_clean_files=$ac_clean_files_save 3664# Check that the compiler produces executables we can run. If not, either 3665# the compiler is broken, or we cross compile. 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3667$as_echo_n "checking whether we are cross compiling... " >&6; } 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3669$as_echo "$cross_compiling" >&6; } 3670 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3672$as_echo_n "checking for suffix of executables... " >&6; } 3673if { { ac_try="$ac_link" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_link") 2>&5 3681 ac_status=$? 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3683 test $ac_status = 0; }; then : 3684 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3685# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3686# work properly (i.e., refer to `conftest.exe'), while it won't with 3687# `rm'. 3688for ac_file in conftest.exe conftest conftest.*; do 3689 test -f "$ac_file" || continue 3690 case $ac_file in 3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3693 break;; 3694 * ) break;; 3695 esac 3696done 3697else 3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3700as_fn_error "cannot compute suffix of executables: cannot compile and link 3701See \`config.log' for more details." "$LINENO" 5; } 3702fi 3703rm -f conftest$ac_cv_exeext 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3705$as_echo "$ac_cv_exeext" >&6; } 3706 3707rm -f conftest.$ac_ext 3708EXEEXT=$ac_cv_exeext 3709ac_exeext=$EXEEXT 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3711$as_echo_n "checking for suffix of object files... " >&6; } 3712if test "${ac_cv_objext+set}" = set; then : 3713 $as_echo_n "(cached) " >&6 3714else 3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3716/* end confdefs.h. */ 3717 3718int 3719main () 3720{ 3721 3722 ; 3723 return 0; 3724} 3725_ACEOF 3726rm -f conftest.o conftest.obj 3727if { { ac_try="$ac_compile" 3728case "(($ac_try" in 3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3730 *) ac_try_echo=$ac_try;; 3731esac 3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3733$as_echo "$ac_try_echo"; } >&5 3734 (eval "$ac_compile") 2>&5 3735 ac_status=$? 3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3737 test $ac_status = 0; }; then : 3738 for ac_file in conftest.o conftest.obj conftest.*; do 3739 test -f "$ac_file" || continue; 3740 case $ac_file in 3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3742 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3743 break;; 3744 esac 3745done 3746else 3747 $as_echo "$as_me: failed program was:" >&5 3748sed 's/^/| /' conftest.$ac_ext >&5 3749 3750{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3752as_fn_error "cannot compute suffix of object files: cannot compile 3753See \`config.log' for more details." "$LINENO" 5; } 3754fi 3755rm -f conftest.$ac_cv_objext conftest.$ac_ext 3756fi 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3758$as_echo "$ac_cv_objext" >&6; } 3759OBJEXT=$ac_cv_objext 3760ac_objext=$OBJEXT 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3762$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3763if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3764 $as_echo_n "(cached) " >&6 3765else 3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3767/* end confdefs.h. */ 3768 3769int 3770main () 3771{ 3772#ifndef __GNUC__ 3773 choke me 3774#endif 3775 3776 ; 3777 return 0; 3778} 3779_ACEOF 3780if ac_fn_c_try_compile "$LINENO"; then : 3781 ac_compiler_gnu=yes 3782else 3783 ac_compiler_gnu=no 3784fi 3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3786ac_cv_c_compiler_gnu=$ac_compiler_gnu 3787 3788fi 3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3790$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3791if test $ac_compiler_gnu = yes; then 3792 GCC=yes 3793else 3794 GCC= 3795fi 3796ac_test_CFLAGS=${CFLAGS+set} 3797ac_save_CFLAGS=$CFLAGS 3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3799$as_echo_n "checking whether $CC accepts -g... " >&6; } 3800if test "${ac_cv_prog_cc_g+set}" = set; then : 3801 $as_echo_n "(cached) " >&6 3802else 3803 ac_save_c_werror_flag=$ac_c_werror_flag 3804 ac_c_werror_flag=yes 3805 ac_cv_prog_cc_g=no 3806 CFLAGS="-g" 3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809 3810int 3811main () 3812{ 3813 3814 ; 3815 return 0; 3816} 3817_ACEOF 3818if ac_fn_c_try_compile "$LINENO"; then : 3819 ac_cv_prog_cc_g=yes 3820else 3821 CFLAGS="" 3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824 3825int 3826main () 3827{ 3828 3829 ; 3830 return 0; 3831} 3832_ACEOF 3833if ac_fn_c_try_compile "$LINENO"; then : 3834 3835else 3836 ac_c_werror_flag=$ac_save_c_werror_flag 3837 CFLAGS="-g" 3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3839/* end confdefs.h. */ 3840 3841int 3842main () 3843{ 3844 3845 ; 3846 return 0; 3847} 3848_ACEOF 3849if ac_fn_c_try_compile "$LINENO"; then : 3850 ac_cv_prog_cc_g=yes 3851fi 3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3853fi 3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3855fi 3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3857 ac_c_werror_flag=$ac_save_c_werror_flag 3858fi 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3860$as_echo "$ac_cv_prog_cc_g" >&6; } 3861if test "$ac_test_CFLAGS" = set; then 3862 CFLAGS=$ac_save_CFLAGS 3863elif test $ac_cv_prog_cc_g = yes; then 3864 if test "$GCC" = yes; then 3865 CFLAGS="-g -O2" 3866 else 3867 CFLAGS="-g" 3868 fi 3869else 3870 if test "$GCC" = yes; then 3871 CFLAGS="-O2" 3872 else 3873 CFLAGS= 3874 fi 3875fi 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3877$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3878if test "${ac_cv_prog_cc_c89+set}" = set; then : 3879 $as_echo_n "(cached) " >&6 3880else 3881 ac_cv_prog_cc_c89=no 3882ac_save_CC=$CC 3883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3884/* end confdefs.h. */ 3885#include <stdarg.h> 3886#include <stdio.h> 3887#include <sys/types.h> 3888#include <sys/stat.h> 3889/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3890struct buf { int x; }; 3891FILE * (*rcsopen) (struct buf *, struct stat *, int); 3892static char *e (p, i) 3893 char **p; 3894 int i; 3895{ 3896 return p[i]; 3897} 3898static char *f (char * (*g) (char **, int), char **p, ...) 3899{ 3900 char *s; 3901 va_list v; 3902 va_start (v,p); 3903 s = g (p, va_arg (v,int)); 3904 va_end (v); 3905 return s; 3906} 3907 3908/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3909 function prototypes and stuff, but not '\xHH' hex character constants. 3910 These don't provoke an error unfortunately, instead are silently treated 3911 as 'x'. The following induces an error, until -std is added to get 3912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3913 array size at least. It's necessary to write '\x00'==0 to get something 3914 that's true only with -std. */ 3915int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3916 3917/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3918 inside strings and character constants. */ 3919#define FOO(x) 'x' 3920int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3921 3922int test (int i, double x); 3923struct s1 {int (*f) (int a);}; 3924struct s2 {int (*f) (double a);}; 3925int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3926int argc; 3927char **argv; 3928int 3929main () 3930{ 3931return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3932 ; 3933 return 0; 3934} 3935_ACEOF 3936for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3937 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3938do 3939 CC="$ac_save_CC $ac_arg" 3940 if ac_fn_c_try_compile "$LINENO"; then : 3941 ac_cv_prog_cc_c89=$ac_arg 3942fi 3943rm -f core conftest.err conftest.$ac_objext 3944 test "x$ac_cv_prog_cc_c89" != "xno" && break 3945done 3946rm -f conftest.$ac_ext 3947CC=$ac_save_CC 3948 3949fi 3950# AC_CACHE_VAL 3951case "x$ac_cv_prog_cc_c89" in 3952 x) 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3954$as_echo "none needed" >&6; } ;; 3955 xno) 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3957$as_echo "unsupported" >&6; } ;; 3958 *) 3959 CC="$CC $ac_cv_prog_cc_c89" 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3961$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3962esac 3963if test "x$ac_cv_prog_cc_c89" != xno; then : 3964 3965fi 3966 3967ac_ext=c 3968ac_cpp='$CPP $CPPFLAGS' 3969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3971ac_compiler_gnu=$ac_cv_c_compiler_gnu 3972 3973depcc="$CC" am_compiler_list= 3974 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3976$as_echo_n "checking dependency style of $depcc... " >&6; } 3977if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3978 $as_echo_n "(cached) " >&6 3979else 3980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3981 # We make a subdir and do the tests there. Otherwise we can end up 3982 # making bogus files that we don't know about and never remove. For 3983 # instance it was reported that on HP-UX the gcc test will end up 3984 # making a dummy file named `D' -- because `-MD' means `put the output 3985 # in D'. 3986 mkdir conftest.dir 3987 # Copy depcomp to subdir because otherwise we won't find it if we're 3988 # using a relative directory. 3989 cp "$am_depcomp" conftest.dir 3990 cd conftest.dir 3991 # We will build objects and dependencies in a subdirectory because 3992 # it helps to detect inapplicable dependency modes. For instance 3993 # both Tru64's cc and ICC support -MD to output dependencies as a 3994 # side effect of compilation, but ICC will put the dependencies in 3995 # the current directory while Tru64 will put them in the object 3996 # directory. 3997 mkdir sub 3998 3999 am_cv_CC_dependencies_compiler_type=none 4000 if test "$am_compiler_list" = ""; then 4001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4002 fi 4003 am__universal=false 4004 case " $depcc " in #( 4005 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4006 esac 4007 4008 for depmode in $am_compiler_list; do 4009 # Setup a source with many dependencies, because some compilers 4010 # like to wrap large dependency lists on column 80 (with \), and 4011 # we should not choose a depcomp mode which is confused by this. 4012 # 4013 # We need to recreate these files for each test, as the compiler may 4014 # overwrite some of them when testing with obscure command lines. 4015 # This happens at least with the AIX C compiler. 4016 : > sub/conftest.c 4017 for i in 1 2 3 4 5 6; do 4018 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4019 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4020 # Solaris 8's {/usr,}/bin/sh. 4021 touch sub/conftst$i.h 4022 done 4023 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4024 4025 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4026 # mode. It turns out that the SunPro C++ compiler does not properly 4027 # handle `-M -o', and we need to detect this. Also, some Intel 4028 # versions had trouble with output in subdirs 4029 am__obj=sub/conftest.${OBJEXT-o} 4030 am__minus_obj="-o $am__obj" 4031 case $depmode in 4032 gcc) 4033 # This depmode causes a compiler race in universal mode. 4034 test "$am__universal" = false || continue 4035 ;; 4036 nosideeffect) 4037 # after this tag, mechanisms are not by side-effect, so they'll 4038 # only be used when explicitly requested 4039 if test "x$enable_dependency_tracking" = xyes; then 4040 continue 4041 else 4042 break 4043 fi 4044 ;; 4045 msvisualcpp | msvcmsys) 4046 # This compiler won't grok `-c -o', but also, the minuso test has 4047 # not run yet. These depmodes are late enough in the game, and 4048 # so weak that their functioning should not be impacted. 4049 am__obj=conftest.${OBJEXT-o} 4050 am__minus_obj= 4051 ;; 4052 none) break ;; 4053 esac 4054 if depmode=$depmode \ 4055 source=sub/conftest.c object=$am__obj \ 4056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4057 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4058 >/dev/null 2>conftest.err && 4059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4061 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4063 # icc doesn't choke on unknown options, it will just issue warnings 4064 # or remarks (even with -Werror). So we grep stderr for any message 4065 # that says an option was ignored or not supported. 4066 # When given -MP, icc 7.0 and 7.1 complain thusly: 4067 # icc: Command line warning: ignoring option '-M'; no argument required 4068 # The diagnosis changed in icc 8.0: 4069 # icc: Command line remark: option '-MP' not supported 4070 if (grep 'ignoring option' conftest.err || 4071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4072 am_cv_CC_dependencies_compiler_type=$depmode 4073 break 4074 fi 4075 fi 4076 done 4077 4078 cd .. 4079 rm -rf conftest.dir 4080else 4081 am_cv_CC_dependencies_compiler_type=none 4082fi 4083 4084fi 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4086$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4087CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4088 4089 if 4090 test "x$enable_dependency_tracking" != xno \ 4091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4092 am__fastdepCC_TRUE= 4093 am__fastdepCC_FALSE='#' 4094else 4095 am__fastdepCC_TRUE='#' 4096 am__fastdepCC_FALSE= 4097fi 4098 4099 4100 4101ac_ext=c 4102ac_cpp='$CPP $CPPFLAGS' 4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4105ac_compiler_gnu=$ac_cv_c_compiler_gnu 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4107$as_echo_n "checking how to run the C preprocessor... " >&6; } 4108# On Suns, sometimes $CPP names a directory. 4109if test -n "$CPP" && test -d "$CPP"; then 4110 CPP= 4111fi 4112if test -z "$CPP"; then 4113 if test "${ac_cv_prog_CPP+set}" = set; then : 4114 $as_echo_n "(cached) " >&6 4115else 4116 # Double quotes because CPP needs to be expanded 4117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4118 do 4119 ac_preproc_ok=false 4120for ac_c_preproc_warn_flag in '' yes 4121do 4122 # Use a header file that comes with gcc, so configuring glibc 4123 # with a fresh cross-compiler works. 4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4125 # <limits.h> exists even on freestanding compilers. 4126 # On the NeXT, cc -E runs the code through the compiler's parser, 4127 # not just through cpp. "Syntax error" is here to catch this case. 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130#ifdef __STDC__ 4131# include <limits.h> 4132#else 4133# include <assert.h> 4134#endif 4135 Syntax error 4136_ACEOF 4137if ac_fn_c_try_cpp "$LINENO"; then : 4138 4139else 4140 # Broken: fails on valid input. 4141continue 4142fi 4143rm -f conftest.err conftest.$ac_ext 4144 4145 # OK, works on sane cases. Now check whether nonexistent headers 4146 # can be detected and how. 4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4148/* end confdefs.h. */ 4149#include <ac_nonexistent.h> 4150_ACEOF 4151if ac_fn_c_try_cpp "$LINENO"; then : 4152 # Broken: success on invalid input. 4153continue 4154else 4155 # Passes both tests. 4156ac_preproc_ok=: 4157break 4158fi 4159rm -f conftest.err conftest.$ac_ext 4160 4161done 4162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4163rm -f conftest.err conftest.$ac_ext 4164if $ac_preproc_ok; then : 4165 break 4166fi 4167 4168 done 4169 ac_cv_prog_CPP=$CPP 4170 4171fi 4172 CPP=$ac_cv_prog_CPP 4173else 4174 ac_cv_prog_CPP=$CPP 4175fi 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4177$as_echo "$CPP" >&6; } 4178ac_preproc_ok=false 4179for ac_c_preproc_warn_flag in '' yes 4180do 4181 # Use a header file that comes with gcc, so configuring glibc 4182 # with a fresh cross-compiler works. 4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4184 # <limits.h> exists even on freestanding compilers. 4185 # On the NeXT, cc -E runs the code through the compiler's parser, 4186 # not just through cpp. "Syntax error" is here to catch this case. 4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4188/* end confdefs.h. */ 4189#ifdef __STDC__ 4190# include <limits.h> 4191#else 4192# include <assert.h> 4193#endif 4194 Syntax error 4195_ACEOF 4196if ac_fn_c_try_cpp "$LINENO"; then : 4197 4198else 4199 # Broken: fails on valid input. 4200continue 4201fi 4202rm -f conftest.err conftest.$ac_ext 4203 4204 # OK, works on sane cases. Now check whether nonexistent headers 4205 # can be detected and how. 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207/* end confdefs.h. */ 4208#include <ac_nonexistent.h> 4209_ACEOF 4210if ac_fn_c_try_cpp "$LINENO"; then : 4211 # Broken: success on invalid input. 4212continue 4213else 4214 # Passes both tests. 4215ac_preproc_ok=: 4216break 4217fi 4218rm -f conftest.err conftest.$ac_ext 4219 4220done 4221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4222rm -f conftest.err conftest.$ac_ext 4223if $ac_preproc_ok; then : 4224 4225else 4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4228as_fn_error "C preprocessor \"$CPP\" fails sanity check 4229See \`config.log' for more details." "$LINENO" 5; } 4230fi 4231 4232ac_ext=c 4233ac_cpp='$CPP $CPPFLAGS' 4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4236ac_compiler_gnu=$ac_cv_c_compiler_gnu 4237 4238 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4240$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4241if test "${ac_cv_path_GREP+set}" = set; then : 4242 $as_echo_n "(cached) " >&6 4243else 4244 if test -z "$GREP"; then 4245 ac_path_GREP_found=false 4246 # Loop through the user's path and test for each of PROGNAME-LIST 4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4249do 4250 IFS=$as_save_IFS 4251 test -z "$as_dir" && as_dir=. 4252 for ac_prog in grep ggrep; do 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4255 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4256# Check for GNU ac_path_GREP and select it if it is found. 4257 # Check for GNU $ac_path_GREP 4258case `"$ac_path_GREP" --version 2>&1` in 4259*GNU*) 4260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4261*) 4262 ac_count=0 4263 $as_echo_n 0123456789 >"conftest.in" 4264 while : 4265 do 4266 cat "conftest.in" "conftest.in" >"conftest.tmp" 4267 mv "conftest.tmp" "conftest.in" 4268 cp "conftest.in" "conftest.nl" 4269 $as_echo 'GREP' >> "conftest.nl" 4270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4272 as_fn_arith $ac_count + 1 && ac_count=$as_val 4273 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4274 # Best one so far, save it but keep looking for a better one 4275 ac_cv_path_GREP="$ac_path_GREP" 4276 ac_path_GREP_max=$ac_count 4277 fi 4278 # 10*(2^10) chars as input seems more than enough 4279 test $ac_count -gt 10 && break 4280 done 4281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4282esac 4283 4284 $ac_path_GREP_found && break 3 4285 done 4286 done 4287 done 4288IFS=$as_save_IFS 4289 if test -z "$ac_cv_path_GREP"; then 4290 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4291 fi 4292else 4293 ac_cv_path_GREP=$GREP 4294fi 4295 4296fi 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4298$as_echo "$ac_cv_path_GREP" >&6; } 4299 GREP="$ac_cv_path_GREP" 4300 4301 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4303$as_echo_n "checking for egrep... " >&6; } 4304if test "${ac_cv_path_EGREP+set}" = set; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4308 then ac_cv_path_EGREP="$GREP -E" 4309 else 4310 if test -z "$EGREP"; then 4311 ac_path_EGREP_found=false 4312 # Loop through the user's path and test for each of PROGNAME-LIST 4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4315do 4316 IFS=$as_save_IFS 4317 test -z "$as_dir" && as_dir=. 4318 for ac_prog in egrep; do 4319 for ac_exec_ext in '' $ac_executable_extensions; do 4320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4321 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4322# Check for GNU ac_path_EGREP and select it if it is found. 4323 # Check for GNU $ac_path_EGREP 4324case `"$ac_path_EGREP" --version 2>&1` in 4325*GNU*) 4326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4327*) 4328 ac_count=0 4329 $as_echo_n 0123456789 >"conftest.in" 4330 while : 4331 do 4332 cat "conftest.in" "conftest.in" >"conftest.tmp" 4333 mv "conftest.tmp" "conftest.in" 4334 cp "conftest.in" "conftest.nl" 4335 $as_echo 'EGREP' >> "conftest.nl" 4336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4338 as_fn_arith $ac_count + 1 && ac_count=$as_val 4339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4340 # Best one so far, save it but keep looking for a better one 4341 ac_cv_path_EGREP="$ac_path_EGREP" 4342 ac_path_EGREP_max=$ac_count 4343 fi 4344 # 10*(2^10) chars as input seems more than enough 4345 test $ac_count -gt 10 && break 4346 done 4347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4348esac 4349 4350 $ac_path_EGREP_found && break 3 4351 done 4352 done 4353 done 4354IFS=$as_save_IFS 4355 if test -z "$ac_cv_path_EGREP"; then 4356 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4357 fi 4358else 4359 ac_cv_path_EGREP=$EGREP 4360fi 4361 4362 fi 4363fi 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4365$as_echo "$ac_cv_path_EGREP" >&6; } 4366 EGREP="$ac_cv_path_EGREP" 4367 4368 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4370$as_echo_n "checking for ANSI C header files... " >&6; } 4371if test "${ac_cv_header_stdc+set}" = set; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4375/* end confdefs.h. */ 4376#include <stdlib.h> 4377#include <stdarg.h> 4378#include <string.h> 4379#include <float.h> 4380 4381int 4382main () 4383{ 4384 4385 ; 4386 return 0; 4387} 4388_ACEOF 4389if ac_fn_c_try_compile "$LINENO"; then : 4390 ac_cv_header_stdc=yes 4391else 4392 ac_cv_header_stdc=no 4393fi 4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4395 4396if test $ac_cv_header_stdc = yes; then 4397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4399/* end confdefs.h. */ 4400#include <string.h> 4401 4402_ACEOF 4403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4404 $EGREP "memchr" >/dev/null 2>&1; then : 4405 4406else 4407 ac_cv_header_stdc=no 4408fi 4409rm -f conftest* 4410 4411fi 4412 4413if test $ac_cv_header_stdc = yes; then 4414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4416/* end confdefs.h. */ 4417#include <stdlib.h> 4418 4419_ACEOF 4420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4421 $EGREP "free" >/dev/null 2>&1; then : 4422 4423else 4424 ac_cv_header_stdc=no 4425fi 4426rm -f conftest* 4427 4428fi 4429 4430if test $ac_cv_header_stdc = yes; then 4431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4432 if test "$cross_compiling" = yes; then : 4433 : 4434else 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437#include <ctype.h> 4438#include <stdlib.h> 4439#if ((' ' & 0x0FF) == 0x020) 4440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4442#else 4443# define ISLOWER(c) \ 4444 (('a' <= (c) && (c) <= 'i') \ 4445 || ('j' <= (c) && (c) <= 'r') \ 4446 || ('s' <= (c) && (c) <= 'z')) 4447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4448#endif 4449 4450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4451int 4452main () 4453{ 4454 int i; 4455 for (i = 0; i < 256; i++) 4456 if (XOR (islower (i), ISLOWER (i)) 4457 || toupper (i) != TOUPPER (i)) 4458 return 2; 4459 return 0; 4460} 4461_ACEOF 4462if ac_fn_c_try_run "$LINENO"; then : 4463 4464else 4465 ac_cv_header_stdc=no 4466fi 4467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4468 conftest.$ac_objext conftest.beam conftest.$ac_ext 4469fi 4470 4471fi 4472fi 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4474$as_echo "$ac_cv_header_stdc" >&6; } 4475if test $ac_cv_header_stdc = yes; then 4476 4477$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4478 4479fi 4480 4481# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4482for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4483 inttypes.h stdint.h unistd.h 4484do : 4485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4486ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4487" 4488eval as_val=\$$as_ac_Header 4489 if test "x$as_val" = x""yes; then : 4490 cat >>confdefs.h <<_ACEOF 4491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4492_ACEOF 4493 4494fi 4495 4496done 4497 4498 4499 4500 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4501if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4502 MINIX=yes 4503else 4504 MINIX= 4505fi 4506 4507 4508 if test "$MINIX" = yes; then 4509 4510$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4511 4512 4513$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4514 4515 4516$as_echo "#define _MINIX 1" >>confdefs.h 4517 4518 fi 4519 4520 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4522$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4523if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528 4529# define __EXTENSIONS__ 1 4530 $ac_includes_default 4531int 4532main () 4533{ 4534 4535 ; 4536 return 0; 4537} 4538_ACEOF 4539if ac_fn_c_try_compile "$LINENO"; then : 4540 ac_cv_safe_to_define___extensions__=yes 4541else 4542 ac_cv_safe_to_define___extensions__=no 4543fi 4544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4547$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4548 test $ac_cv_safe_to_define___extensions__ = yes && 4549 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4550 4551 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4552 4553 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4554 4555 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4556 4557 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4558 4559 4560 4561for ac_func in __secure_getenv 4562do : 4563 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv" 4564if test "x$ac_cv_func___secure_getenv" = x""yes; then : 4565 cat >>confdefs.h <<_ACEOF 4566#define HAVE___SECURE_GETENV 1 4567_ACEOF 4568 4569fi 4570done 4571 4572 4573 4574for ac_func in secure_getenv 4575do : 4576 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 4577if test "x$ac_cv_func_secure_getenv" = x""yes; then : 4578 cat >>confdefs.h <<_ACEOF 4579#define HAVE_SECURE_GETENV 1 4580_ACEOF 4581 4582fi 4583done 4584 4585 4586# Check for programs. 4587 4588 4589ac_ext=c 4590ac_cpp='$CPP $CPPFLAGS' 4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4593ac_compiler_gnu=$ac_cv_c_compiler_gnu 4594if test -n "$ac_tool_prefix"; then 4595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4596set dummy ${ac_tool_prefix}gcc; ac_word=$2 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4598$as_echo_n "checking for $ac_word... " >&6; } 4599if test "${ac_cv_prog_CC+set}" = set; then : 4600 $as_echo_n "(cached) " >&6 4601else 4602 if test -n "$CC"; then 4603 ac_cv_prog_CC="$CC" # Let the user override the test. 4604else 4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4606for as_dir in $PATH 4607do 4608 IFS=$as_save_IFS 4609 test -z "$as_dir" && as_dir=. 4610 for ac_exec_ext in '' $ac_executable_extensions; do 4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4612 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4614 break 2 4615 fi 4616done 4617 done 4618IFS=$as_save_IFS 4619 4620fi 4621fi 4622CC=$ac_cv_prog_CC 4623if test -n "$CC"; then 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4625$as_echo "$CC" >&6; } 4626else 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4628$as_echo "no" >&6; } 4629fi 4630 4631 4632fi 4633if test -z "$ac_cv_prog_CC"; then 4634 ac_ct_CC=$CC 4635 # Extract the first word of "gcc", so it can be a program name with args. 4636set dummy gcc; ac_word=$2 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4638$as_echo_n "checking for $ac_word... " >&6; } 4639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4640 $as_echo_n "(cached) " >&6 4641else 4642 if test -n "$ac_ct_CC"; then 4643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4644else 4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4646for as_dir in $PATH 4647do 4648 IFS=$as_save_IFS 4649 test -z "$as_dir" && as_dir=. 4650 for ac_exec_ext in '' $ac_executable_extensions; do 4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4652 ac_cv_prog_ac_ct_CC="gcc" 4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4654 break 2 4655 fi 4656done 4657 done 4658IFS=$as_save_IFS 4659 4660fi 4661fi 4662ac_ct_CC=$ac_cv_prog_ac_ct_CC 4663if test -n "$ac_ct_CC"; then 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4665$as_echo "$ac_ct_CC" >&6; } 4666else 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4668$as_echo "no" >&6; } 4669fi 4670 4671 if test "x$ac_ct_CC" = x; then 4672 CC="" 4673 else 4674 case $cross_compiling:$ac_tool_warned in 4675yes:) 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4678ac_tool_warned=yes ;; 4679esac 4680 CC=$ac_ct_CC 4681 fi 4682else 4683 CC="$ac_cv_prog_CC" 4684fi 4685 4686if test -z "$CC"; then 4687 if test -n "$ac_tool_prefix"; then 4688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4689set dummy ${ac_tool_prefix}cc; ac_word=$2 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4691$as_echo_n "checking for $ac_word... " >&6; } 4692if test "${ac_cv_prog_CC+set}" = set; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 if test -n "$CC"; then 4696 ac_cv_prog_CC="$CC" # Let the user override the test. 4697else 4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4699for as_dir in $PATH 4700do 4701 IFS=$as_save_IFS 4702 test -z "$as_dir" && as_dir=. 4703 for ac_exec_ext in '' $ac_executable_extensions; do 4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4705 ac_cv_prog_CC="${ac_tool_prefix}cc" 4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4707 break 2 4708 fi 4709done 4710 done 4711IFS=$as_save_IFS 4712 4713fi 4714fi 4715CC=$ac_cv_prog_CC 4716if test -n "$CC"; then 4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4718$as_echo "$CC" >&6; } 4719else 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4721$as_echo "no" >&6; } 4722fi 4723 4724 4725 fi 4726fi 4727if test -z "$CC"; then 4728 # Extract the first word of "cc", so it can be a program name with args. 4729set dummy cc; ac_word=$2 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4731$as_echo_n "checking for $ac_word... " >&6; } 4732if test "${ac_cv_prog_CC+set}" = set; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 if test -n "$CC"; then 4736 ac_cv_prog_CC="$CC" # Let the user override the test. 4737else 4738 ac_prog_rejected=no 4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4740for as_dir in $PATH 4741do 4742 IFS=$as_save_IFS 4743 test -z "$as_dir" && as_dir=. 4744 for ac_exec_ext in '' $ac_executable_extensions; do 4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4746 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4747 ac_prog_rejected=yes 4748 continue 4749 fi 4750 ac_cv_prog_CC="cc" 4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4752 break 2 4753 fi 4754done 4755 done 4756IFS=$as_save_IFS 4757 4758if test $ac_prog_rejected = yes; then 4759 # We found a bogon in the path, so make sure we never use it. 4760 set dummy $ac_cv_prog_CC 4761 shift 4762 if test $# != 0; then 4763 # We chose a different compiler from the bogus one. 4764 # However, it has the same basename, so the bogon will be chosen 4765 # first if we set CC to just the basename; use the full file name. 4766 shift 4767 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4768 fi 4769fi 4770fi 4771fi 4772CC=$ac_cv_prog_CC 4773if test -n "$CC"; then 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4775$as_echo "$CC" >&6; } 4776else 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4778$as_echo "no" >&6; } 4779fi 4780 4781 4782fi 4783if test -z "$CC"; then 4784 if test -n "$ac_tool_prefix"; then 4785 for ac_prog in cl.exe 4786 do 4787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4788set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4790$as_echo_n "checking for $ac_word... " >&6; } 4791if test "${ac_cv_prog_CC+set}" = set; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 if test -n "$CC"; then 4795 ac_cv_prog_CC="$CC" # Let the user override the test. 4796else 4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798for as_dir in $PATH 4799do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4804 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4806 break 2 4807 fi 4808done 4809 done 4810IFS=$as_save_IFS 4811 4812fi 4813fi 4814CC=$ac_cv_prog_CC 4815if test -n "$CC"; then 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4817$as_echo "$CC" >&6; } 4818else 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4820$as_echo "no" >&6; } 4821fi 4822 4823 4824 test -n "$CC" && break 4825 done 4826fi 4827if test -z "$CC"; then 4828 ac_ct_CC=$CC 4829 for ac_prog in cl.exe 4830do 4831 # Extract the first word of "$ac_prog", so it can be a program name with args. 4832set dummy $ac_prog; ac_word=$2 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4834$as_echo_n "checking for $ac_word... " >&6; } 4835if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 if test -n "$ac_ct_CC"; then 4839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4840else 4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4842for as_dir in $PATH 4843do 4844 IFS=$as_save_IFS 4845 test -z "$as_dir" && as_dir=. 4846 for ac_exec_ext in '' $ac_executable_extensions; do 4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4848 ac_cv_prog_ac_ct_CC="$ac_prog" 4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4850 break 2 4851 fi 4852done 4853 done 4854IFS=$as_save_IFS 4855 4856fi 4857fi 4858ac_ct_CC=$ac_cv_prog_ac_ct_CC 4859if test -n "$ac_ct_CC"; then 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4861$as_echo "$ac_ct_CC" >&6; } 4862else 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4864$as_echo "no" >&6; } 4865fi 4866 4867 4868 test -n "$ac_ct_CC" && break 4869done 4870 4871 if test "x$ac_ct_CC" = x; then 4872 CC="" 4873 else 4874 case $cross_compiling:$ac_tool_warned in 4875yes:) 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4878ac_tool_warned=yes ;; 4879esac 4880 CC=$ac_ct_CC 4881 fi 4882fi 4883 4884fi 4885 4886 4887test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4889as_fn_error "no acceptable C compiler found in \$PATH 4890See \`config.log' for more details." "$LINENO" 5; } 4891 4892# Provide some information about the compiler. 4893$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4894set X $ac_compile 4895ac_compiler=$2 4896for ac_option in --version -v -V -qversion; do 4897 { { ac_try="$ac_compiler $ac_option >&5" 4898case "(($ac_try" in 4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4900 *) ac_try_echo=$ac_try;; 4901esac 4902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4903$as_echo "$ac_try_echo"; } >&5 4904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4905 ac_status=$? 4906 if test -s conftest.err; then 4907 sed '10a\ 4908... rest of stderr output deleted ... 4909 10q' conftest.err >conftest.er1 4910 cat conftest.er1 >&5 4911 rm -f conftest.er1 conftest.err 4912 fi 4913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4914 test $ac_status = 0; } 4915done 4916 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4918$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4919if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924 4925int 4926main () 4927{ 4928#ifndef __GNUC__ 4929 choke me 4930#endif 4931 4932 ; 4933 return 0; 4934} 4935_ACEOF 4936if ac_fn_c_try_compile "$LINENO"; then : 4937 ac_compiler_gnu=yes 4938else 4939 ac_compiler_gnu=no 4940fi 4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4942ac_cv_c_compiler_gnu=$ac_compiler_gnu 4943 4944fi 4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4946$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4947if test $ac_compiler_gnu = yes; then 4948 GCC=yes 4949else 4950 GCC= 4951fi 4952ac_test_CFLAGS=${CFLAGS+set} 4953ac_save_CFLAGS=$CFLAGS 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4955$as_echo_n "checking whether $CC accepts -g... " >&6; } 4956if test "${ac_cv_prog_cc_g+set}" = set; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 ac_save_c_werror_flag=$ac_c_werror_flag 4960 ac_c_werror_flag=yes 4961 ac_cv_prog_cc_g=no 4962 CFLAGS="-g" 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965 4966int 4967main () 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974if ac_fn_c_try_compile "$LINENO"; then : 4975 ac_cv_prog_cc_g=yes 4976else 4977 CFLAGS="" 4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4979/* end confdefs.h. */ 4980 4981int 4982main () 4983{ 4984 4985 ; 4986 return 0; 4987} 4988_ACEOF 4989if ac_fn_c_try_compile "$LINENO"; then : 4990 4991else 4992 ac_c_werror_flag=$ac_save_c_werror_flag 4993 CFLAGS="-g" 4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996 4997int 4998main () 4999{ 5000 5001 ; 5002 return 0; 5003} 5004_ACEOF 5005if ac_fn_c_try_compile "$LINENO"; then : 5006 ac_cv_prog_cc_g=yes 5007fi 5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5009fi 5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5011fi 5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5013 ac_c_werror_flag=$ac_save_c_werror_flag 5014fi 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5016$as_echo "$ac_cv_prog_cc_g" >&6; } 5017if test "$ac_test_CFLAGS" = set; then 5018 CFLAGS=$ac_save_CFLAGS 5019elif test $ac_cv_prog_cc_g = yes; then 5020 if test "$GCC" = yes; then 5021 CFLAGS="-g -O2" 5022 else 5023 CFLAGS="-g" 5024 fi 5025else 5026 if test "$GCC" = yes; then 5027 CFLAGS="-O2" 5028 else 5029 CFLAGS= 5030 fi 5031fi 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5033$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5034if test "${ac_cv_prog_cc_c89+set}" = set; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 ac_cv_prog_cc_c89=no 5038ac_save_CC=$CC 5039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041#include <stdarg.h> 5042#include <stdio.h> 5043#include <sys/types.h> 5044#include <sys/stat.h> 5045/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5046struct buf { int x; }; 5047FILE * (*rcsopen) (struct buf *, struct stat *, int); 5048static char *e (p, i) 5049 char **p; 5050 int i; 5051{ 5052 return p[i]; 5053} 5054static char *f (char * (*g) (char **, int), char **p, ...) 5055{ 5056 char *s; 5057 va_list v; 5058 va_start (v,p); 5059 s = g (p, va_arg (v,int)); 5060 va_end (v); 5061 return s; 5062} 5063 5064/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5065 function prototypes and stuff, but not '\xHH' hex character constants. 5066 These don't provoke an error unfortunately, instead are silently treated 5067 as 'x'. The following induces an error, until -std is added to get 5068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5069 array size at least. It's necessary to write '\x00'==0 to get something 5070 that's true only with -std. */ 5071int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5072 5073/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5074 inside strings and character constants. */ 5075#define FOO(x) 'x' 5076int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5077 5078int test (int i, double x); 5079struct s1 {int (*f) (int a);}; 5080struct s2 {int (*f) (double a);}; 5081int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5082int argc; 5083char **argv; 5084int 5085main () 5086{ 5087return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5094do 5095 CC="$ac_save_CC $ac_arg" 5096 if ac_fn_c_try_compile "$LINENO"; then : 5097 ac_cv_prog_cc_c89=$ac_arg 5098fi 5099rm -f core conftest.err conftest.$ac_objext 5100 test "x$ac_cv_prog_cc_c89" != "xno" && break 5101done 5102rm -f conftest.$ac_ext 5103CC=$ac_save_CC 5104 5105fi 5106# AC_CACHE_VAL 5107case "x$ac_cv_prog_cc_c89" in 5108 x) 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5110$as_echo "none needed" >&6; } ;; 5111 xno) 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5113$as_echo "unsupported" >&6; } ;; 5114 *) 5115 CC="$CC $ac_cv_prog_cc_c89" 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5117$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5118esac 5119if test "x$ac_cv_prog_cc_c89" != xno; then : 5120 5121fi 5122 5123ac_ext=c 5124ac_cpp='$CPP $CPPFLAGS' 5125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5127ac_compiler_gnu=$ac_cv_c_compiler_gnu 5128 5129depcc="$CC" am_compiler_list= 5130 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5132$as_echo_n "checking dependency style of $depcc... " >&6; } 5133if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5137 # We make a subdir and do the tests there. Otherwise we can end up 5138 # making bogus files that we don't know about and never remove. For 5139 # instance it was reported that on HP-UX the gcc test will end up 5140 # making a dummy file named `D' -- because `-MD' means `put the output 5141 # in D'. 5142 mkdir conftest.dir 5143 # Copy depcomp to subdir because otherwise we won't find it if we're 5144 # using a relative directory. 5145 cp "$am_depcomp" conftest.dir 5146 cd conftest.dir 5147 # We will build objects and dependencies in a subdirectory because 5148 # it helps to detect inapplicable dependency modes. For instance 5149 # both Tru64's cc and ICC support -MD to output dependencies as a 5150 # side effect of compilation, but ICC will put the dependencies in 5151 # the current directory while Tru64 will put them in the object 5152 # directory. 5153 mkdir sub 5154 5155 am_cv_CC_dependencies_compiler_type=none 5156 if test "$am_compiler_list" = ""; then 5157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5158 fi 5159 am__universal=false 5160 case " $depcc " in #( 5161 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5162 esac 5163 5164 for depmode in $am_compiler_list; do 5165 # Setup a source with many dependencies, because some compilers 5166 # like to wrap large dependency lists on column 80 (with \), and 5167 # we should not choose a depcomp mode which is confused by this. 5168 # 5169 # We need to recreate these files for each test, as the compiler may 5170 # overwrite some of them when testing with obscure command lines. 5171 # This happens at least with the AIX C compiler. 5172 : > sub/conftest.c 5173 for i in 1 2 3 4 5 6; do 5174 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5176 # Solaris 8's {/usr,}/bin/sh. 5177 touch sub/conftst$i.h 5178 done 5179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5180 5181 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5182 # mode. It turns out that the SunPro C++ compiler does not properly 5183 # handle `-M -o', and we need to detect this. Also, some Intel 5184 # versions had trouble with output in subdirs 5185 am__obj=sub/conftest.${OBJEXT-o} 5186 am__minus_obj="-o $am__obj" 5187 case $depmode in 5188 gcc) 5189 # This depmode causes a compiler race in universal mode. 5190 test "$am__universal" = false || continue 5191 ;; 5192 nosideeffect) 5193 # after this tag, mechanisms are not by side-effect, so they'll 5194 # only be used when explicitly requested 5195 if test "x$enable_dependency_tracking" = xyes; then 5196 continue 5197 else 5198 break 5199 fi 5200 ;; 5201 msvisualcpp | msvcmsys) 5202 # This compiler won't grok `-c -o', but also, the minuso test has 5203 # not run yet. These depmodes are late enough in the game, and 5204 # so weak that their functioning should not be impacted. 5205 am__obj=conftest.${OBJEXT-o} 5206 am__minus_obj= 5207 ;; 5208 none) break ;; 5209 esac 5210 if depmode=$depmode \ 5211 source=sub/conftest.c object=$am__obj \ 5212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5213 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5214 >/dev/null 2>conftest.err && 5215 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5217 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5219 # icc doesn't choke on unknown options, it will just issue warnings 5220 # or remarks (even with -Werror). So we grep stderr for any message 5221 # that says an option was ignored or not supported. 5222 # When given -MP, icc 7.0 and 7.1 complain thusly: 5223 # icc: Command line warning: ignoring option '-M'; no argument required 5224 # The diagnosis changed in icc 8.0: 5225 # icc: Command line remark: option '-MP' not supported 5226 if (grep 'ignoring option' conftest.err || 5227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5228 am_cv_CC_dependencies_compiler_type=$depmode 5229 break 5230 fi 5231 fi 5232 done 5233 5234 cd .. 5235 rm -rf conftest.dir 5236else 5237 am_cv_CC_dependencies_compiler_type=none 5238fi 5239 5240fi 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5242$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5243CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5244 5245 if 5246 test "x$enable_dependency_tracking" != xno \ 5247 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5248 am__fastdepCC_TRUE= 5249 am__fastdepCC_FALSE='#' 5250else 5251 am__fastdepCC_TRUE='#' 5252 am__fastdepCC_FALSE= 5253fi 5254 5255 5256ac_ext=cpp 5257ac_cpp='$CXXCPP $CPPFLAGS' 5258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5261if test -z "$CXX"; then 5262 if test -n "$CCC"; then 5263 CXX=$CCC 5264 else 5265 if test -n "$ac_tool_prefix"; then 5266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5267 do 5268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5269set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5271$as_echo_n "checking for $ac_word... " >&6; } 5272if test "${ac_cv_prog_CXX+set}" = set; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 if test -n "$CXX"; then 5276 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5277else 5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279for as_dir in $PATH 5280do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5285 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5287 break 2 5288 fi 5289done 5290 done 5291IFS=$as_save_IFS 5292 5293fi 5294fi 5295CXX=$ac_cv_prog_CXX 5296if test -n "$CXX"; then 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5298$as_echo "$CXX" >&6; } 5299else 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5301$as_echo "no" >&6; } 5302fi 5303 5304 5305 test -n "$CXX" && break 5306 done 5307fi 5308if test -z "$CXX"; then 5309 ac_ct_CXX=$CXX 5310 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5311do 5312 # Extract the first word of "$ac_prog", so it can be a program name with args. 5313set dummy $ac_prog; ac_word=$2 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5315$as_echo_n "checking for $ac_word... " >&6; } 5316if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 if test -n "$ac_ct_CXX"; then 5320 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5321else 5322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5323for as_dir in $PATH 5324do 5325 IFS=$as_save_IFS 5326 test -z "$as_dir" && as_dir=. 5327 for ac_exec_ext in '' $ac_executable_extensions; do 5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5329 ac_cv_prog_ac_ct_CXX="$ac_prog" 5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5331 break 2 5332 fi 5333done 5334 done 5335IFS=$as_save_IFS 5336 5337fi 5338fi 5339ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5340if test -n "$ac_ct_CXX"; then 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5342$as_echo "$ac_ct_CXX" >&6; } 5343else 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5345$as_echo "no" >&6; } 5346fi 5347 5348 5349 test -n "$ac_ct_CXX" && break 5350done 5351 5352 if test "x$ac_ct_CXX" = x; then 5353 CXX="g++" 5354 else 5355 case $cross_compiling:$ac_tool_warned in 5356yes:) 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5359ac_tool_warned=yes ;; 5360esac 5361 CXX=$ac_ct_CXX 5362 fi 5363fi 5364 5365 fi 5366fi 5367# Provide some information about the compiler. 5368$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5369set X $ac_compile 5370ac_compiler=$2 5371for ac_option in --version -v -V -qversion; do 5372 { { ac_try="$ac_compiler $ac_option >&5" 5373case "(($ac_try" in 5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5375 *) ac_try_echo=$ac_try;; 5376esac 5377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5378$as_echo "$ac_try_echo"; } >&5 5379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5380 ac_status=$? 5381 if test -s conftest.err; then 5382 sed '10a\ 5383... rest of stderr output deleted ... 5384 10q' conftest.err >conftest.er1 5385 cat conftest.er1 >&5 5386 rm -f conftest.er1 conftest.err 5387 fi 5388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5389 test $ac_status = 0; } 5390done 5391 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5393$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5394if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398/* end confdefs.h. */ 5399 5400int 5401main () 5402{ 5403#ifndef __GNUC__ 5404 choke me 5405#endif 5406 5407 ; 5408 return 0; 5409} 5410_ACEOF 5411if ac_fn_cxx_try_compile "$LINENO"; then : 5412 ac_compiler_gnu=yes 5413else 5414 ac_compiler_gnu=no 5415fi 5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5417ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5418 5419fi 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5421$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5422if test $ac_compiler_gnu = yes; then 5423 GXX=yes 5424else 5425 GXX= 5426fi 5427ac_test_CXXFLAGS=${CXXFLAGS+set} 5428ac_save_CXXFLAGS=$CXXFLAGS 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5430$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5431if test "${ac_cv_prog_cxx_g+set}" = set; then : 5432 $as_echo_n "(cached) " >&6 5433else 5434 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5435 ac_cxx_werror_flag=yes 5436 ac_cv_prog_cxx_g=no 5437 CXXFLAGS="-g" 5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439/* end confdefs.h. */ 5440 5441int 5442main () 5443{ 5444 5445 ; 5446 return 0; 5447} 5448_ACEOF 5449if ac_fn_cxx_try_compile "$LINENO"; then : 5450 ac_cv_prog_cxx_g=yes 5451else 5452 CXXFLAGS="" 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455 5456int 5457main () 5458{ 5459 5460 ; 5461 return 0; 5462} 5463_ACEOF 5464if ac_fn_cxx_try_compile "$LINENO"; then : 5465 5466else 5467 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5468 CXXFLAGS="-g" 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471 5472int 5473main () 5474{ 5475 5476 ; 5477 return 0; 5478} 5479_ACEOF 5480if ac_fn_cxx_try_compile "$LINENO"; then : 5481 ac_cv_prog_cxx_g=yes 5482fi 5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5484fi 5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5486fi 5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5489fi 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5491$as_echo "$ac_cv_prog_cxx_g" >&6; } 5492if test "$ac_test_CXXFLAGS" = set; then 5493 CXXFLAGS=$ac_save_CXXFLAGS 5494elif test $ac_cv_prog_cxx_g = yes; then 5495 if test "$GXX" = yes; then 5496 CXXFLAGS="-g -O2" 5497 else 5498 CXXFLAGS="-g" 5499 fi 5500else 5501 if test "$GXX" = yes; then 5502 CXXFLAGS="-O2" 5503 else 5504 CXXFLAGS= 5505 fi 5506fi 5507ac_ext=c 5508ac_cpp='$CPP $CPPFLAGS' 5509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5511ac_compiler_gnu=$ac_cv_c_compiler_gnu 5512 5513depcc="$CXX" am_compiler_list= 5514 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5516$as_echo_n "checking dependency style of $depcc... " >&6; } 5517if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5521 # We make a subdir and do the tests there. Otherwise we can end up 5522 # making bogus files that we don't know about and never remove. For 5523 # instance it was reported that on HP-UX the gcc test will end up 5524 # making a dummy file named `D' -- because `-MD' means `put the output 5525 # in D'. 5526 mkdir conftest.dir 5527 # Copy depcomp to subdir because otherwise we won't find it if we're 5528 # using a relative directory. 5529 cp "$am_depcomp" conftest.dir 5530 cd conftest.dir 5531 # We will build objects and dependencies in a subdirectory because 5532 # it helps to detect inapplicable dependency modes. For instance 5533 # both Tru64's cc and ICC support -MD to output dependencies as a 5534 # side effect of compilation, but ICC will put the dependencies in 5535 # the current directory while Tru64 will put them in the object 5536 # directory. 5537 mkdir sub 5538 5539 am_cv_CXX_dependencies_compiler_type=none 5540 if test "$am_compiler_list" = ""; then 5541 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5542 fi 5543 am__universal=false 5544 case " $depcc " in #( 5545 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5546 esac 5547 5548 for depmode in $am_compiler_list; do 5549 # Setup a source with many dependencies, because some compilers 5550 # like to wrap large dependency lists on column 80 (with \), and 5551 # we should not choose a depcomp mode which is confused by this. 5552 # 5553 # We need to recreate these files for each test, as the compiler may 5554 # overwrite some of them when testing with obscure command lines. 5555 # This happens at least with the AIX C compiler. 5556 : > sub/conftest.c 5557 for i in 1 2 3 4 5 6; do 5558 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5559 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5560 # Solaris 8's {/usr,}/bin/sh. 5561 touch sub/conftst$i.h 5562 done 5563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5564 5565 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5566 # mode. It turns out that the SunPro C++ compiler does not properly 5567 # handle `-M -o', and we need to detect this. Also, some Intel 5568 # versions had trouble with output in subdirs 5569 am__obj=sub/conftest.${OBJEXT-o} 5570 am__minus_obj="-o $am__obj" 5571 case $depmode in 5572 gcc) 5573 # This depmode causes a compiler race in universal mode. 5574 test "$am__universal" = false || continue 5575 ;; 5576 nosideeffect) 5577 # after this tag, mechanisms are not by side-effect, so they'll 5578 # only be used when explicitly requested 5579 if test "x$enable_dependency_tracking" = xyes; then 5580 continue 5581 else 5582 break 5583 fi 5584 ;; 5585 msvisualcpp | msvcmsys) 5586 # This compiler won't grok `-c -o', but also, the minuso test has 5587 # not run yet. These depmodes are late enough in the game, and 5588 # so weak that their functioning should not be impacted. 5589 am__obj=conftest.${OBJEXT-o} 5590 am__minus_obj= 5591 ;; 5592 none) break ;; 5593 esac 5594 if depmode=$depmode \ 5595 source=sub/conftest.c object=$am__obj \ 5596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5597 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5598 >/dev/null 2>conftest.err && 5599 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5601 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5603 # icc doesn't choke on unknown options, it will just issue warnings 5604 # or remarks (even with -Werror). So we grep stderr for any message 5605 # that says an option was ignored or not supported. 5606 # When given -MP, icc 7.0 and 7.1 complain thusly: 5607 # icc: Command line warning: ignoring option '-M'; no argument required 5608 # The diagnosis changed in icc 8.0: 5609 # icc: Command line remark: option '-MP' not supported 5610 if (grep 'ignoring option' conftest.err || 5611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5612 am_cv_CXX_dependencies_compiler_type=$depmode 5613 break 5614 fi 5615 fi 5616 done 5617 5618 cd .. 5619 rm -rf conftest.dir 5620else 5621 am_cv_CXX_dependencies_compiler_type=none 5622fi 5623 5624fi 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5626$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5627CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5628 5629 if 5630 test "x$enable_dependency_tracking" != xno \ 5631 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5632 am__fastdepCXX_TRUE= 5633 am__fastdepCXX_FALSE='#' 5634else 5635 am__fastdepCXX_TRUE='#' 5636 am__fastdepCXX_FALSE= 5637fi 5638 5639 5640 5641 5642if test "x$CC" != xcc; then 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5644$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5645else 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5647$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5648fi 5649set dummy $CC; ac_cc=`$as_echo "$2" | 5650 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5651if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5652 $as_echo_n "(cached) " >&6 5653else 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656 5657int 5658main () 5659{ 5660 5661 ; 5662 return 0; 5663} 5664_ACEOF 5665# Make sure it works both with $CC and with simple cc. 5666# We do the test twice because some compilers refuse to overwrite an 5667# existing .o file with -o, though they will create one. 5668ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5669rm -f conftest2.* 5670if { { case "(($ac_try" in 5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5672 *) ac_try_echo=$ac_try;; 5673esac 5674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5675$as_echo "$ac_try_echo"; } >&5 5676 (eval "$ac_try") 2>&5 5677 ac_status=$? 5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5679 test $ac_status = 0; } && 5680 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5682 *) ac_try_echo=$ac_try;; 5683esac 5684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5685$as_echo "$ac_try_echo"; } >&5 5686 (eval "$ac_try") 2>&5 5687 ac_status=$? 5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5689 test $ac_status = 0; }; 5690then 5691 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5692 if test "x$CC" != xcc; then 5693 # Test first that cc exists at all. 5694 if { ac_try='cc -c conftest.$ac_ext >&5' 5695 { { case "(($ac_try" in 5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5697 *) ac_try_echo=$ac_try;; 5698esac 5699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5700$as_echo "$ac_try_echo"; } >&5 5701 (eval "$ac_try") 2>&5 5702 ac_status=$? 5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5704 test $ac_status = 0; }; }; then 5705 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5706 rm -f conftest2.* 5707 if { { case "(($ac_try" in 5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5709 *) ac_try_echo=$ac_try;; 5710esac 5711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5712$as_echo "$ac_try_echo"; } >&5 5713 (eval "$ac_try") 2>&5 5714 ac_status=$? 5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5716 test $ac_status = 0; } && 5717 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5719 *) ac_try_echo=$ac_try;; 5720esac 5721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5722$as_echo "$ac_try_echo"; } >&5 5723 (eval "$ac_try") 2>&5 5724 ac_status=$? 5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5726 test $ac_status = 0; }; 5727 then 5728 # cc works too. 5729 : 5730 else 5731 # cc exists but doesn't like -o. 5732 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5733 fi 5734 fi 5735 fi 5736else 5737 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5738fi 5739rm -f core conftest* 5740 5741fi 5742if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5744$as_echo "yes" >&6; } 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747$as_echo "no" >&6; } 5748 5749$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5750 5751fi 5752 5753# FIXME: we rely on the cache variable name because 5754# there is no other way. 5755set dummy $CC 5756am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5757eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5758if test "$am_t" != yes; then 5759 # Losing compiler, so override with the script. 5760 # FIXME: It is wrong to rewrite CC. 5761 # But if we don't then we get into trouble of one sort or another. 5762 # A longer-term fix would be to have automake use am__CC in this case, 5763 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5764 CC="$am_aux_dir/compile $CC" 5765fi 5766 5767 5768 5769 5770 5771 5772# Newer automakes demand CCAS and CCASFLAGS. 5773: ${CCAS='$(CC)'} 5774: ${CCASFLAGS='$(CFLAGS)'} 5775 5776 5777 5778if test -n "$ac_tool_prefix"; then 5779 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5780set dummy ${ac_tool_prefix}as; ac_word=$2 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5782$as_echo_n "checking for $ac_word... " >&6; } 5783if test "${ac_cv_prog_AS+set}" = set; then : 5784 $as_echo_n "(cached) " >&6 5785else 5786 if test -n "$AS"; then 5787 ac_cv_prog_AS="$AS" # Let the user override the test. 5788else 5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5790for as_dir in $PATH 5791do 5792 IFS=$as_save_IFS 5793 test -z "$as_dir" && as_dir=. 5794 for ac_exec_ext in '' $ac_executable_extensions; do 5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5796 ac_cv_prog_AS="${ac_tool_prefix}as" 5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5798 break 2 5799 fi 5800done 5801 done 5802IFS=$as_save_IFS 5803 5804fi 5805fi 5806AS=$ac_cv_prog_AS 5807if test -n "$AS"; then 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5809$as_echo "$AS" >&6; } 5810else 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5812$as_echo "no" >&6; } 5813fi 5814 5815 5816fi 5817if test -z "$ac_cv_prog_AS"; then 5818 ac_ct_AS=$AS 5819 # Extract the first word of "as", so it can be a program name with args. 5820set dummy as; ac_word=$2 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5822$as_echo_n "checking for $ac_word... " >&6; } 5823if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 if test -n "$ac_ct_AS"; then 5827 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5836 ac_cv_prog_ac_ct_AS="as" 5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840done 5841 done 5842IFS=$as_save_IFS 5843 5844fi 5845fi 5846ac_ct_AS=$ac_cv_prog_ac_ct_AS 5847if test -n "$ac_ct_AS"; then 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5849$as_echo "$ac_ct_AS" >&6; } 5850else 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852$as_echo "no" >&6; } 5853fi 5854 5855 if test "x$ac_ct_AS" = x; then 5856 AS="" 5857 else 5858 case $cross_compiling:$ac_tool_warned in 5859yes:) 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5862ac_tool_warned=yes ;; 5863esac 5864 AS=$ac_ct_AS 5865 fi 5866else 5867 AS="$ac_cv_prog_AS" 5868fi 5869 5870if test -n "$ac_tool_prefix"; then 5871 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5872set dummy ${ac_tool_prefix}ar; ac_word=$2 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5874$as_echo_n "checking for $ac_word... " >&6; } 5875if test "${ac_cv_prog_AR+set}" = set; then : 5876 $as_echo_n "(cached) " >&6 5877else 5878 if test -n "$AR"; then 5879 ac_cv_prog_AR="$AR" # Let the user override the test. 5880else 5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5882for as_dir in $PATH 5883do 5884 IFS=$as_save_IFS 5885 test -z "$as_dir" && as_dir=. 5886 for ac_exec_ext in '' $ac_executable_extensions; do 5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5888 ac_cv_prog_AR="${ac_tool_prefix}ar" 5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5890 break 2 5891 fi 5892done 5893 done 5894IFS=$as_save_IFS 5895 5896fi 5897fi 5898AR=$ac_cv_prog_AR 5899if test -n "$AR"; then 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5901$as_echo "$AR" >&6; } 5902else 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5904$as_echo "no" >&6; } 5905fi 5906 5907 5908fi 5909if test -z "$ac_cv_prog_AR"; then 5910 ac_ct_AR=$AR 5911 # Extract the first word of "ar", so it can be a program name with args. 5912set dummy ar; ac_word=$2 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5914$as_echo_n "checking for $ac_word... " >&6; } 5915if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5916 $as_echo_n "(cached) " >&6 5917else 5918 if test -n "$ac_ct_AR"; then 5919 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5920else 5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5922for as_dir in $PATH 5923do 5924 IFS=$as_save_IFS 5925 test -z "$as_dir" && as_dir=. 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5928 ac_cv_prog_ac_ct_AR="ar" 5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5930 break 2 5931 fi 5932done 5933 done 5934IFS=$as_save_IFS 5935 5936fi 5937fi 5938ac_ct_AR=$ac_cv_prog_ac_ct_AR 5939if test -n "$ac_ct_AR"; then 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5941$as_echo "$ac_ct_AR" >&6; } 5942else 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5944$as_echo "no" >&6; } 5945fi 5946 5947 if test "x$ac_ct_AR" = x; then 5948 AR="" 5949 else 5950 case $cross_compiling:$ac_tool_warned in 5951yes:) 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5954ac_tool_warned=yes ;; 5955esac 5956 AR=$ac_ct_AR 5957 fi 5958else 5959 AR="$ac_cv_prog_AR" 5960fi 5961 5962if test -n "$ac_tool_prefix"; then 5963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5964set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5966$as_echo_n "checking for $ac_word... " >&6; } 5967if test "${ac_cv_prog_RANLIB+set}" = set; then : 5968 $as_echo_n "(cached) " >&6 5969else 5970 if test -n "$RANLIB"; then 5971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5972else 5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5974for as_dir in $PATH 5975do 5976 IFS=$as_save_IFS 5977 test -z "$as_dir" && as_dir=. 5978 for ac_exec_ext in '' $ac_executable_extensions; do 5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5982 break 2 5983 fi 5984done 5985 done 5986IFS=$as_save_IFS 5987 5988fi 5989fi 5990RANLIB=$ac_cv_prog_RANLIB 5991if test -n "$RANLIB"; then 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5993$as_echo "$RANLIB" >&6; } 5994else 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5996$as_echo "no" >&6; } 5997fi 5998 5999 6000fi 6001if test -z "$ac_cv_prog_RANLIB"; then 6002 ac_ct_RANLIB=$RANLIB 6003 # Extract the first word of "ranlib", so it can be a program name with args. 6004set dummy ranlib; ac_word=$2 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6006$as_echo_n "checking for $ac_word... " >&6; } 6007if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6008 $as_echo_n "(cached) " >&6 6009else 6010 if test -n "$ac_ct_RANLIB"; then 6011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6012else 6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6014for as_dir in $PATH 6015do 6016 IFS=$as_save_IFS 6017 test -z "$as_dir" && as_dir=. 6018 for ac_exec_ext in '' $ac_executable_extensions; do 6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6020 ac_cv_prog_ac_ct_RANLIB="ranlib" 6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6022 break 2 6023 fi 6024done 6025 done 6026IFS=$as_save_IFS 6027 6028fi 6029fi 6030ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6031if test -n "$ac_ct_RANLIB"; then 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6033$as_echo "$ac_ct_RANLIB" >&6; } 6034else 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6036$as_echo "no" >&6; } 6037fi 6038 6039 if test "x$ac_ct_RANLIB" = x; then 6040 RANLIB=":" 6041 else 6042 case $cross_compiling:$ac_tool_warned in 6043yes:) 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6046ac_tool_warned=yes ;; 6047esac 6048 RANLIB=$ac_ct_RANLIB 6049 fi 6050else 6051 RANLIB="$ac_cv_prog_RANLIB" 6052fi 6053 6054 6055# Configure libtool 6056enable_dlopen=yes 6057 6058 6059 6060case `pwd` in 6061 *\ * | *\ *) 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6063$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6064esac 6065 6066 6067 6068macro_version='2.2.7a' 6069macro_revision='1.3134' 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083ltmain="$ac_aux_dir/ltmain.sh" 6084 6085# Backslashify metacharacters that are still active within 6086# double-quoted strings. 6087sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6088 6089# Same as above, but do not quote variable references. 6090double_quote_subst='s/\(["`\\]\)/\\\1/g' 6091 6092# Sed substitution to delay expansion of an escaped shell variable in a 6093# double_quote_subst'ed string. 6094delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6095 6096# Sed substitution to delay expansion of an escaped single quote. 6097delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6098 6099# Sed substitution to avoid accidental globbing in evaled expressions 6100no_glob_subst='s/\*/\\\*/g' 6101 6102ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6103ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6104ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6105 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6107$as_echo_n "checking how to print strings... " >&6; } 6108# Test print first, because it will be a builtin if present. 6109if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 6110 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6111 ECHO='print -r --' 6112elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6113 ECHO='printf %s\n' 6114else 6115 # Use this function as a fallback that always works. 6116 func_fallback_echo () 6117 { 6118 eval 'cat <<_LTECHO_EOF 6119$1 6120_LTECHO_EOF' 6121 } 6122 ECHO='func_fallback_echo' 6123fi 6124 6125# func_echo_all arg... 6126# Invoke $ECHO with all args, space-separated. 6127func_echo_all () 6128{ 6129 $ECHO "" 6130} 6131 6132case "$ECHO" in 6133 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6134$as_echo "printf" >&6; } ;; 6135 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6136$as_echo "print -r" >&6; } ;; 6137 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6138$as_echo "cat" >&6; } ;; 6139esac 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6155$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6156if test "${ac_cv_path_SED+set}" = set; then : 6157 $as_echo_n "(cached) " >&6 6158else 6159 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6160 for ac_i in 1 2 3 4 5 6 7; do 6161 ac_script="$ac_script$as_nl$ac_script" 6162 done 6163 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6164 { ac_script=; unset ac_script;} 6165 if test -z "$SED"; then 6166 ac_path_SED_found=false 6167 # Loop through the user's path and test for each of PROGNAME-LIST 6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169for as_dir in $PATH 6170do 6171 IFS=$as_save_IFS 6172 test -z "$as_dir" && as_dir=. 6173 for ac_prog in sed gsed; do 6174 for ac_exec_ext in '' $ac_executable_extensions; do 6175 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6176 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6177# Check for GNU ac_path_SED and select it if it is found. 6178 # Check for GNU $ac_path_SED 6179case `"$ac_path_SED" --version 2>&1` in 6180*GNU*) 6181 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6182*) 6183 ac_count=0 6184 $as_echo_n 0123456789 >"conftest.in" 6185 while : 6186 do 6187 cat "conftest.in" "conftest.in" >"conftest.tmp" 6188 mv "conftest.tmp" "conftest.in" 6189 cp "conftest.in" "conftest.nl" 6190 $as_echo '' >> "conftest.nl" 6191 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6193 as_fn_arith $ac_count + 1 && ac_count=$as_val 6194 if test $ac_count -gt ${ac_path_SED_max-0}; then 6195 # Best one so far, save it but keep looking for a better one 6196 ac_cv_path_SED="$ac_path_SED" 6197 ac_path_SED_max=$ac_count 6198 fi 6199 # 10*(2^10) chars as input seems more than enough 6200 test $ac_count -gt 10 && break 6201 done 6202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6203esac 6204 6205 $ac_path_SED_found && break 3 6206 done 6207 done 6208 done 6209IFS=$as_save_IFS 6210 if test -z "$ac_cv_path_SED"; then 6211 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 6212 fi 6213else 6214 ac_cv_path_SED=$SED 6215fi 6216 6217fi 6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6219$as_echo "$ac_cv_path_SED" >&6; } 6220 SED="$ac_cv_path_SED" 6221 rm -f conftest.sed 6222 6223test -z "$SED" && SED=sed 6224Xsed="$SED -e 1s/^X//" 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6237$as_echo_n "checking for fgrep... " >&6; } 6238if test "${ac_cv_path_FGREP+set}" = set; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6242 then ac_cv_path_FGREP="$GREP -F" 6243 else 6244 if test -z "$FGREP"; then 6245 ac_path_FGREP_found=false 6246 # Loop through the user's path and test for each of PROGNAME-LIST 6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_prog in fgrep; do 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6255 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6256# Check for GNU ac_path_FGREP and select it if it is found. 6257 # Check for GNU $ac_path_FGREP 6258case `"$ac_path_FGREP" --version 2>&1` in 6259*GNU*) 6260 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6261*) 6262 ac_count=0 6263 $as_echo_n 0123456789 >"conftest.in" 6264 while : 6265 do 6266 cat "conftest.in" "conftest.in" >"conftest.tmp" 6267 mv "conftest.tmp" "conftest.in" 6268 cp "conftest.in" "conftest.nl" 6269 $as_echo 'FGREP' >> "conftest.nl" 6270 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6272 as_fn_arith $ac_count + 1 && ac_count=$as_val 6273 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6274 # Best one so far, save it but keep looking for a better one 6275 ac_cv_path_FGREP="$ac_path_FGREP" 6276 ac_path_FGREP_max=$ac_count 6277 fi 6278 # 10*(2^10) chars as input seems more than enough 6279 test $ac_count -gt 10 && break 6280 done 6281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6282esac 6283 6284 $ac_path_FGREP_found && break 3 6285 done 6286 done 6287 done 6288IFS=$as_save_IFS 6289 if test -z "$ac_cv_path_FGREP"; then 6290 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6291 fi 6292else 6293 ac_cv_path_FGREP=$FGREP 6294fi 6295 6296 fi 6297fi 6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6299$as_echo "$ac_cv_path_FGREP" >&6; } 6300 FGREP="$ac_cv_path_FGREP" 6301 6302 6303test -z "$GREP" && GREP=grep 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323# Check whether --with-gnu-ld was given. 6324if test "${with_gnu_ld+set}" = set; then : 6325 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6326else 6327 with_gnu_ld=no 6328fi 6329 6330ac_prog=ld 6331if test "$GCC" = yes; then 6332 # Check if gcc -print-prog-name=ld gives a path. 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6334$as_echo_n "checking for ld used by $CC... " >&6; } 6335 case $host in 6336 *-*-mingw*) 6337 # gcc leaves a trailing carriage return which upsets mingw 6338 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6339 *) 6340 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6341 esac 6342 case $ac_prog in 6343 # Accept absolute paths. 6344 [\\/]* | ?:[\\/]*) 6345 re_direlt='/[^/][^/]*/\.\./' 6346 # Canonicalize the pathname of ld 6347 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6348 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6349 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6350 done 6351 test -z "$LD" && LD="$ac_prog" 6352 ;; 6353 "") 6354 # If it fails, then pretend we aren't using GCC. 6355 ac_prog=ld 6356 ;; 6357 *) 6358 # If it is relative, then search for the first ld in PATH. 6359 with_gnu_ld=unknown 6360 ;; 6361 esac 6362elif test "$with_gnu_ld" = yes; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6364$as_echo_n "checking for GNU ld... " >&6; } 6365else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6367$as_echo_n "checking for non-GNU ld... " >&6; } 6368fi 6369if test "${lt_cv_path_LD+set}" = set; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 if test -z "$LD"; then 6373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6374 for ac_dir in $PATH; do 6375 IFS="$lt_save_ifs" 6376 test -z "$ac_dir" && ac_dir=. 6377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6378 lt_cv_path_LD="$ac_dir/$ac_prog" 6379 # Check to see if the program is GNU ld. I'd rather use --version, 6380 # but apparently some variants of GNU ld only accept -v. 6381 # Break only if it was the GNU/non-GNU ld that we prefer. 6382 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6383 *GNU* | *'with BFD'*) 6384 test "$with_gnu_ld" != no && break 6385 ;; 6386 *) 6387 test "$with_gnu_ld" != yes && break 6388 ;; 6389 esac 6390 fi 6391 done 6392 IFS="$lt_save_ifs" 6393else 6394 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6395fi 6396fi 6397 6398LD="$lt_cv_path_LD" 6399if test -n "$LD"; then 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6401$as_echo "$LD" >&6; } 6402else 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6404$as_echo "no" >&6; } 6405fi 6406test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6408$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6409if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6413case `$LD -v 2>&1 </dev/null` in 6414*GNU* | *'with BFD'*) 6415 lt_cv_prog_gnu_ld=yes 6416 ;; 6417*) 6418 lt_cv_prog_gnu_ld=no 6419 ;; 6420esac 6421fi 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6423$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6424with_gnu_ld=$lt_cv_prog_gnu_ld 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6435$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6436if test "${lt_cv_path_NM+set}" = set; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 if test -n "$NM"; then 6440 # Let the user override the test. 6441 lt_cv_path_NM="$NM" 6442else 6443 lt_nm_to_check="${ac_tool_prefix}nm" 6444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6445 lt_nm_to_check="$lt_nm_to_check nm" 6446 fi 6447 for lt_tmp_nm in $lt_nm_to_check; do 6448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6450 IFS="$lt_save_ifs" 6451 test -z "$ac_dir" && ac_dir=. 6452 tmp_nm="$ac_dir/$lt_tmp_nm" 6453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6454 # Check to see if the nm accepts a BSD-compat flag. 6455 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6456 # nm: unknown option "B" ignored 6457 # Tru64's nm complains that /dev/null is an invalid object file 6458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6459 */dev/null* | *'Invalid file or object type'*) 6460 lt_cv_path_NM="$tmp_nm -B" 6461 break 6462 ;; 6463 *) 6464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6465 */dev/null*) 6466 lt_cv_path_NM="$tmp_nm -p" 6467 break 6468 ;; 6469 *) 6470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6471 continue # so that we can try to find one that supports BSD flags 6472 ;; 6473 esac 6474 ;; 6475 esac 6476 fi 6477 done 6478 IFS="$lt_save_ifs" 6479 done 6480 : ${lt_cv_path_NM=no} 6481fi 6482fi 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6484$as_echo "$lt_cv_path_NM" >&6; } 6485if test "$lt_cv_path_NM" != "no"; then 6486 NM="$lt_cv_path_NM" 6487else 6488 # Didn't find any BSD compatible name lister, look for dumpbin. 6489 if test -n "$DUMPBIN"; then : 6490 # Let the user override the test. 6491 else 6492 if test -n "$ac_tool_prefix"; then 6493 for ac_prog in dumpbin "link -dump" 6494 do 6495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6496set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6498$as_echo_n "checking for $ac_word... " >&6; } 6499if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 if test -n "$DUMPBIN"; then 6503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6504else 6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6506for as_dir in $PATH 6507do 6508 IFS=$as_save_IFS 6509 test -z "$as_dir" && as_dir=. 6510 for ac_exec_ext in '' $ac_executable_extensions; do 6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6514 break 2 6515 fi 6516done 6517 done 6518IFS=$as_save_IFS 6519 6520fi 6521fi 6522DUMPBIN=$ac_cv_prog_DUMPBIN 6523if test -n "$DUMPBIN"; then 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6525$as_echo "$DUMPBIN" >&6; } 6526else 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6528$as_echo "no" >&6; } 6529fi 6530 6531 6532 test -n "$DUMPBIN" && break 6533 done 6534fi 6535if test -z "$DUMPBIN"; then 6536 ac_ct_DUMPBIN=$DUMPBIN 6537 for ac_prog in dumpbin "link -dump" 6538do 6539 # Extract the first word of "$ac_prog", so it can be a program name with args. 6540set dummy $ac_prog; ac_word=$2 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542$as_echo_n "checking for $ac_word... " >&6; } 6543if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 if test -n "$ac_ct_DUMPBIN"; then 6547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6548else 6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6550for as_dir in $PATH 6551do 6552 IFS=$as_save_IFS 6553 test -z "$as_dir" && as_dir=. 6554 for ac_exec_ext in '' $ac_executable_extensions; do 6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6558 break 2 6559 fi 6560done 6561 done 6562IFS=$as_save_IFS 6563 6564fi 6565fi 6566ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6567if test -n "$ac_ct_DUMPBIN"; then 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6569$as_echo "$ac_ct_DUMPBIN" >&6; } 6570else 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572$as_echo "no" >&6; } 6573fi 6574 6575 6576 test -n "$ac_ct_DUMPBIN" && break 6577done 6578 6579 if test "x$ac_ct_DUMPBIN" = x; then 6580 DUMPBIN=":" 6581 else 6582 case $cross_compiling:$ac_tool_warned in 6583yes:) 6584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6586ac_tool_warned=yes ;; 6587esac 6588 DUMPBIN=$ac_ct_DUMPBIN 6589 fi 6590fi 6591 6592 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6593 *COFF*) 6594 DUMPBIN="$DUMPBIN -symbols" 6595 ;; 6596 *) 6597 DUMPBIN=: 6598 ;; 6599 esac 6600 fi 6601 6602 if test "$DUMPBIN" != ":"; then 6603 NM="$DUMPBIN" 6604 fi 6605fi 6606test -z "$NM" && NM=nm 6607 6608 6609 6610 6611 6612 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6614$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6615if test "${lt_cv_nm_interface+set}" = set; then : 6616 $as_echo_n "(cached) " >&6 6617else 6618 lt_cv_nm_interface="BSD nm" 6619 echo "int some_variable = 0;" > conftest.$ac_ext 6620 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6621 (eval "$ac_compile" 2>conftest.err) 6622 cat conftest.err >&5 6623 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6624 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6625 cat conftest.err >&5 6626 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6627 cat conftest.out >&5 6628 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6629 lt_cv_nm_interface="MS dumpbin" 6630 fi 6631 rm -f conftest* 6632fi 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6634$as_echo "$lt_cv_nm_interface" >&6; } 6635 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6637$as_echo_n "checking whether ln -s works... " >&6; } 6638LN_S=$as_ln_s 6639if test "$LN_S" = "ln -s"; then 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6641$as_echo "yes" >&6; } 6642else 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6644$as_echo "no, using $LN_S" >&6; } 6645fi 6646 6647# find the maximum length of command line arguments 6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6649$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6650if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6651 $as_echo_n "(cached) " >&6 6652else 6653 i=0 6654 teststring="ABCD" 6655 6656 case $build_os in 6657 msdosdjgpp*) 6658 # On DJGPP, this test can blow up pretty badly due to problems in libc 6659 # (any single argument exceeding 2000 bytes causes a buffer overrun 6660 # during glob expansion). Even if it were fixed, the result of this 6661 # check would be larger than it should be. 6662 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6663 ;; 6664 6665 gnu*) 6666 # Under GNU Hurd, this test is not required because there is 6667 # no limit to the length of command line arguments. 6668 # Libtool will interpret -1 as no limit whatsoever 6669 lt_cv_sys_max_cmd_len=-1; 6670 ;; 6671 6672 cygwin* | mingw* | cegcc*) 6673 # On Win9x/ME, this test blows up -- it succeeds, but takes 6674 # about 5 minutes as the teststring grows exponentially. 6675 # Worse, since 9x/ME are not pre-emptively multitasking, 6676 # you end up with a "frozen" computer, even though with patience 6677 # the test eventually succeeds (with a max line length of 256k). 6678 # Instead, let's just punt: use the minimum linelength reported by 6679 # all of the supported platforms: 8192 (on NT/2K/XP). 6680 lt_cv_sys_max_cmd_len=8192; 6681 ;; 6682 6683 mint*) 6684 # On MiNT this can take a long time and run out of memory. 6685 lt_cv_sys_max_cmd_len=8192; 6686 ;; 6687 6688 amigaos*) 6689 # On AmigaOS with pdksh, this test takes hours, literally. 6690 # So we just punt and use a minimum line length of 8192. 6691 lt_cv_sys_max_cmd_len=8192; 6692 ;; 6693 6694 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6695 # This has been around since 386BSD, at least. Likely further. 6696 if test -x /sbin/sysctl; then 6697 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6698 elif test -x /usr/sbin/sysctl; then 6699 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6700 else 6701 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6702 fi 6703 # And add a safety zone 6704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6706 ;; 6707 6708 interix*) 6709 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6710 lt_cv_sys_max_cmd_len=196608 6711 ;; 6712 6713 osf*) 6714 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6715 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6716 # nice to cause kernel panics so lets avoid the loop below. 6717 # First set a reasonable default. 6718 lt_cv_sys_max_cmd_len=16384 6719 # 6720 if test -x /sbin/sysconfig; then 6721 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6722 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6723 esac 6724 fi 6725 ;; 6726 sco3.2v5*) 6727 lt_cv_sys_max_cmd_len=102400 6728 ;; 6729 sysv5* | sco5v6* | sysv4.2uw2*) 6730 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6731 if test -n "$kargmax"; then 6732 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6733 else 6734 lt_cv_sys_max_cmd_len=32768 6735 fi 6736 ;; 6737 *) 6738 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6739 if test -n "$lt_cv_sys_max_cmd_len"; then 6740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6742 else 6743 # Make teststring a little bigger before we do anything with it. 6744 # a 1K string should be a reasonable start. 6745 for i in 1 2 3 4 5 6 7 8 ; do 6746 teststring=$teststring$teststring 6747 done 6748 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6749 # If test is not a shell built-in, we'll probably end up computing a 6750 # maximum length that is only half of the actual maximum length, but 6751 # we can't tell. 6752 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6753 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6754 test $i != 17 # 1/2 MB should be enough 6755 do 6756 i=`expr $i + 1` 6757 teststring=$teststring$teststring 6758 done 6759 # Only check the string length outside the loop. 6760 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6761 teststring= 6762 # Add a significant safety factor because C++ compilers can tack on 6763 # massive amounts of additional arguments before passing them to the 6764 # linker. It appears as though 1/2 is a usable value. 6765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6766 fi 6767 ;; 6768 esac 6769 6770fi 6771 6772if test -n $lt_cv_sys_max_cmd_len ; then 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6774$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6775else 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6777$as_echo "none" >&6; } 6778fi 6779max_cmd_len=$lt_cv_sys_max_cmd_len 6780 6781 6782 6783 6784 6785 6786: ${CP="cp -f"} 6787: ${MV="mv -f"} 6788: ${RM="rm -f"} 6789 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6791$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6792# Try some XSI features 6793xsi_shell=no 6794( _lt_dummy="a/b/c" 6795 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6796 = c,a/b,, \ 6797 && eval 'test $(( 1 + 1 )) -eq 2 \ 6798 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6799 && xsi_shell=yes 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6801$as_echo "$xsi_shell" >&6; } 6802 6803 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6805$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6806lt_shell_append=no 6807( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6808 >/dev/null 2>&1 \ 6809 && lt_shell_append=yes 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6811$as_echo "$lt_shell_append" >&6; } 6812 6813 6814if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6815 lt_unset=unset 6816else 6817 lt_unset=false 6818fi 6819 6820 6821 6822 6823 6824# test EBCDIC or ASCII 6825case `echo X|tr X '\101'` in 6826 A) # ASCII based system 6827 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6828 lt_SP2NL='tr \040 \012' 6829 lt_NL2SP='tr \015\012 \040\040' 6830 ;; 6831 *) # EBCDIC based system 6832 lt_SP2NL='tr \100 \n' 6833 lt_NL2SP='tr \r\n \100\100' 6834 ;; 6835esac 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6846$as_echo_n "checking for $LD option to reload object files... " >&6; } 6847if test "${lt_cv_ld_reload_flag+set}" = set; then : 6848 $as_echo_n "(cached) " >&6 6849else 6850 lt_cv_ld_reload_flag='-r' 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6853$as_echo "$lt_cv_ld_reload_flag" >&6; } 6854reload_flag=$lt_cv_ld_reload_flag 6855case $reload_flag in 6856"" | " "*) ;; 6857*) reload_flag=" $reload_flag" ;; 6858esac 6859reload_cmds='$LD$reload_flag -o $output$reload_objs' 6860case $host_os in 6861 darwin*) 6862 if test "$GCC" = yes; then 6863 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6864 else 6865 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6866 fi 6867 ;; 6868esac 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878if test -n "$ac_tool_prefix"; then 6879 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6880set dummy ${ac_tool_prefix}objdump; ac_word=$2 6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6882$as_echo_n "checking for $ac_word... " >&6; } 6883if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6884 $as_echo_n "(cached) " >&6 6885else 6886 if test -n "$OBJDUMP"; then 6887 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6888else 6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6890for as_dir in $PATH 6891do 6892 IFS=$as_save_IFS 6893 test -z "$as_dir" && as_dir=. 6894 for ac_exec_ext in '' $ac_executable_extensions; do 6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6896 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6898 break 2 6899 fi 6900done 6901 done 6902IFS=$as_save_IFS 6903 6904fi 6905fi 6906OBJDUMP=$ac_cv_prog_OBJDUMP 6907if test -n "$OBJDUMP"; then 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6909$as_echo "$OBJDUMP" >&6; } 6910else 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6912$as_echo "no" >&6; } 6913fi 6914 6915 6916fi 6917if test -z "$ac_cv_prog_OBJDUMP"; then 6918 ac_ct_OBJDUMP=$OBJDUMP 6919 # Extract the first word of "objdump", so it can be a program name with args. 6920set dummy objdump; ac_word=$2 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6922$as_echo_n "checking for $ac_word... " >&6; } 6923if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6924 $as_echo_n "(cached) " >&6 6925else 6926 if test -n "$ac_ct_OBJDUMP"; then 6927 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6928else 6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6930for as_dir in $PATH 6931do 6932 IFS=$as_save_IFS 6933 test -z "$as_dir" && as_dir=. 6934 for ac_exec_ext in '' $ac_executable_extensions; do 6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6936 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6938 break 2 6939 fi 6940done 6941 done 6942IFS=$as_save_IFS 6943 6944fi 6945fi 6946ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6947if test -n "$ac_ct_OBJDUMP"; then 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6949$as_echo "$ac_ct_OBJDUMP" >&6; } 6950else 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6952$as_echo "no" >&6; } 6953fi 6954 6955 if test "x$ac_ct_OBJDUMP" = x; then 6956 OBJDUMP="false" 6957 else 6958 case $cross_compiling:$ac_tool_warned in 6959yes:) 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6962ac_tool_warned=yes ;; 6963esac 6964 OBJDUMP=$ac_ct_OBJDUMP 6965 fi 6966else 6967 OBJDUMP="$ac_cv_prog_OBJDUMP" 6968fi 6969 6970test -z "$OBJDUMP" && OBJDUMP=objdump 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6981$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6982if test "${lt_cv_deplibs_check_method+set}" = set; then : 6983 $as_echo_n "(cached) " >&6 6984else 6985 lt_cv_file_magic_cmd='$MAGIC_CMD' 6986lt_cv_file_magic_test_file= 6987lt_cv_deplibs_check_method='unknown' 6988# Need to set the preceding variable on all platforms that support 6989# interlibrary dependencies. 6990# 'none' -- dependencies not supported. 6991# `unknown' -- same as none, but documents that we really don't know. 6992# 'pass_all' -- all dependencies passed with no checks. 6993# 'test_compile' -- check by making test program. 6994# 'file_magic [[regex]]' -- check by looking for files in library path 6995# which responds to the $file_magic_cmd with a given extended regex. 6996# If you have `file' or equivalent on your system and you're not sure 6997# whether `pass_all' will *always* work, you probably want this one. 6998 6999case $host_os in 7000aix[4-9]*) 7001 lt_cv_deplibs_check_method=pass_all 7002 ;; 7003 7004beos*) 7005 lt_cv_deplibs_check_method=pass_all 7006 ;; 7007 7008bsdi[45]*) 7009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7010 lt_cv_file_magic_cmd='/usr/bin/file -L' 7011 lt_cv_file_magic_test_file=/shlib/libc.so 7012 ;; 7013 7014cygwin*) 7015 # func_win32_libid is a shell function defined in ltmain.sh 7016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7017 lt_cv_file_magic_cmd='func_win32_libid' 7018 ;; 7019 7020mingw* | pw32*) 7021 # Base MSYS/MinGW do not provide the 'file' command needed by 7022 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7023 # unless we find 'file', for example because we are cross-compiling. 7024 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7025 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7027 lt_cv_file_magic_cmd='func_win32_libid' 7028 else 7029 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7030 lt_cv_file_magic_cmd='$OBJDUMP -f' 7031 fi 7032 ;; 7033 7034cegcc*) 7035 # use the weaker test based on 'objdump'. See mingw*. 7036 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7037 lt_cv_file_magic_cmd='$OBJDUMP -f' 7038 ;; 7039 7040darwin* | rhapsody*) 7041 lt_cv_deplibs_check_method=pass_all 7042 ;; 7043 7044freebsd* | dragonfly*) 7045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7046 case $host_cpu in 7047 i*86 ) 7048 # Not sure whether the presence of OpenBSD here was a mistake. 7049 # Let's accept both of them until this is cleared up. 7050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7051 lt_cv_file_magic_cmd=/usr/bin/file 7052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7053 ;; 7054 esac 7055 else 7056 lt_cv_deplibs_check_method=pass_all 7057 fi 7058 ;; 7059 7060gnu*) 7061 lt_cv_deplibs_check_method=pass_all 7062 ;; 7063 7064haiku*) 7065 lt_cv_deplibs_check_method=pass_all 7066 ;; 7067 7068hpux10.20* | hpux11*) 7069 lt_cv_file_magic_cmd=/usr/bin/file 7070 case $host_cpu in 7071 ia64*) 7072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7073 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7074 ;; 7075 hppa*64*) 7076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 7077 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7078 ;; 7079 *) 7080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7081 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7082 ;; 7083 esac 7084 ;; 7085 7086interix[3-9]*) 7087 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7089 ;; 7090 7091irix5* | irix6* | nonstopux*) 7092 case $LD in 7093 *-32|*"-32 ") libmagic=32-bit;; 7094 *-n32|*"-n32 ") libmagic=N32;; 7095 *-64|*"-64 ") libmagic=64-bit;; 7096 *) libmagic=never-match;; 7097 esac 7098 lt_cv_deplibs_check_method=pass_all 7099 ;; 7100 7101# This must be Linux ELF. 7102linux* | k*bsd*-gnu | kopensolaris*-gnu) 7103 lt_cv_deplibs_check_method=pass_all 7104 ;; 7105 7106netbsd*) 7107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7109 else 7110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7111 fi 7112 ;; 7113 7114newos6*) 7115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7116 lt_cv_file_magic_cmd=/usr/bin/file 7117 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7118 ;; 7119 7120*nto* | *qnx*) 7121 lt_cv_deplibs_check_method=pass_all 7122 ;; 7123 7124openbsd*) 7125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7127 else 7128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7129 fi 7130 ;; 7131 7132osf3* | osf4* | osf5*) 7133 lt_cv_deplibs_check_method=pass_all 7134 ;; 7135 7136rdos*) 7137 lt_cv_deplibs_check_method=pass_all 7138 ;; 7139 7140solaris*) 7141 lt_cv_deplibs_check_method=pass_all 7142 ;; 7143 7144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7145 lt_cv_deplibs_check_method=pass_all 7146 ;; 7147 7148sysv4 | sysv4.3*) 7149 case $host_vendor in 7150 motorola) 7151 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]' 7152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7153 ;; 7154 ncr) 7155 lt_cv_deplibs_check_method=pass_all 7156 ;; 7157 sequent) 7158 lt_cv_file_magic_cmd='/bin/file' 7159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7160 ;; 7161 sni) 7162 lt_cv_file_magic_cmd='/bin/file' 7163 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7164 lt_cv_file_magic_test_file=/lib/libc.so 7165 ;; 7166 siemens) 7167 lt_cv_deplibs_check_method=pass_all 7168 ;; 7169 pc) 7170 lt_cv_deplibs_check_method=pass_all 7171 ;; 7172 esac 7173 ;; 7174 7175tpf*) 7176 lt_cv_deplibs_check_method=pass_all 7177 ;; 7178esac 7179 7180fi 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7182$as_echo "$lt_cv_deplibs_check_method" >&6; } 7183file_magic_cmd=$lt_cv_file_magic_cmd 7184deplibs_check_method=$lt_cv_deplibs_check_method 7185test -z "$deplibs_check_method" && deplibs_check_method=unknown 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198if test -n "$ac_tool_prefix"; then 7199 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7200set dummy ${ac_tool_prefix}ar; ac_word=$2 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7202$as_echo_n "checking for $ac_word... " >&6; } 7203if test "${ac_cv_prog_AR+set}" = set; then : 7204 $as_echo_n "(cached) " >&6 7205else 7206 if test -n "$AR"; then 7207 ac_cv_prog_AR="$AR" # Let the user override the test. 7208else 7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7210for as_dir in $PATH 7211do 7212 IFS=$as_save_IFS 7213 test -z "$as_dir" && as_dir=. 7214 for ac_exec_ext in '' $ac_executable_extensions; do 7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7216 ac_cv_prog_AR="${ac_tool_prefix}ar" 7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7218 break 2 7219 fi 7220done 7221 done 7222IFS=$as_save_IFS 7223 7224fi 7225fi 7226AR=$ac_cv_prog_AR 7227if test -n "$AR"; then 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7229$as_echo "$AR" >&6; } 7230else 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7232$as_echo "no" >&6; } 7233fi 7234 7235 7236fi 7237if test -z "$ac_cv_prog_AR"; then 7238 ac_ct_AR=$AR 7239 # Extract the first word of "ar", so it can be a program name with args. 7240set dummy ar; ac_word=$2 7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7242$as_echo_n "checking for $ac_word... " >&6; } 7243if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7244 $as_echo_n "(cached) " >&6 7245else 7246 if test -n "$ac_ct_AR"; then 7247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7248else 7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7250for as_dir in $PATH 7251do 7252 IFS=$as_save_IFS 7253 test -z "$as_dir" && as_dir=. 7254 for ac_exec_ext in '' $ac_executable_extensions; do 7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7256 ac_cv_prog_ac_ct_AR="ar" 7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7258 break 2 7259 fi 7260done 7261 done 7262IFS=$as_save_IFS 7263 7264fi 7265fi 7266ac_ct_AR=$ac_cv_prog_ac_ct_AR 7267if test -n "$ac_ct_AR"; then 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7269$as_echo "$ac_ct_AR" >&6; } 7270else 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7272$as_echo "no" >&6; } 7273fi 7274 7275 if test "x$ac_ct_AR" = x; then 7276 AR="false" 7277 else 7278 case $cross_compiling:$ac_tool_warned in 7279yes:) 7280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7282ac_tool_warned=yes ;; 7283esac 7284 AR=$ac_ct_AR 7285 fi 7286else 7287 AR="$ac_cv_prog_AR" 7288fi 7289 7290test -z "$AR" && AR=ar 7291test -z "$AR_FLAGS" && AR_FLAGS=cru 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303if test -n "$ac_tool_prefix"; then 7304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7305set dummy ${ac_tool_prefix}strip; ac_word=$2 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7307$as_echo_n "checking for $ac_word... " >&6; } 7308if test "${ac_cv_prog_STRIP+set}" = set; then : 7309 $as_echo_n "(cached) " >&6 7310else 7311 if test -n "$STRIP"; then 7312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7313else 7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7315for as_dir in $PATH 7316do 7317 IFS=$as_save_IFS 7318 test -z "$as_dir" && as_dir=. 7319 for ac_exec_ext in '' $ac_executable_extensions; do 7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7321 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7323 break 2 7324 fi 7325done 7326 done 7327IFS=$as_save_IFS 7328 7329fi 7330fi 7331STRIP=$ac_cv_prog_STRIP 7332if test -n "$STRIP"; then 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7334$as_echo "$STRIP" >&6; } 7335else 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7337$as_echo "no" >&6; } 7338fi 7339 7340 7341fi 7342if test -z "$ac_cv_prog_STRIP"; then 7343 ac_ct_STRIP=$STRIP 7344 # Extract the first word of "strip", so it can be a program name with args. 7345set dummy strip; ac_word=$2 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7347$as_echo_n "checking for $ac_word... " >&6; } 7348if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 7349 $as_echo_n "(cached) " >&6 7350else 7351 if test -n "$ac_ct_STRIP"; then 7352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7353else 7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7355for as_dir in $PATH 7356do 7357 IFS=$as_save_IFS 7358 test -z "$as_dir" && as_dir=. 7359 for ac_exec_ext in '' $ac_executable_extensions; do 7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7361 ac_cv_prog_ac_ct_STRIP="strip" 7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7363 break 2 7364 fi 7365done 7366 done 7367IFS=$as_save_IFS 7368 7369fi 7370fi 7371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7372if test -n "$ac_ct_STRIP"; then 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7374$as_echo "$ac_ct_STRIP" >&6; } 7375else 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7377$as_echo "no" >&6; } 7378fi 7379 7380 if test "x$ac_ct_STRIP" = x; then 7381 STRIP=":" 7382 else 7383 case $cross_compiling:$ac_tool_warned in 7384yes:) 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7387ac_tool_warned=yes ;; 7388esac 7389 STRIP=$ac_ct_STRIP 7390 fi 7391else 7392 STRIP="$ac_cv_prog_STRIP" 7393fi 7394 7395test -z "$STRIP" && STRIP=: 7396 7397 7398 7399 7400 7401 7402if test -n "$ac_tool_prefix"; then 7403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7404set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7406$as_echo_n "checking for $ac_word... " >&6; } 7407if test "${ac_cv_prog_RANLIB+set}" = set; then : 7408 $as_echo_n "(cached) " >&6 7409else 7410 if test -n "$RANLIB"; then 7411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7412else 7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7414for as_dir in $PATH 7415do 7416 IFS=$as_save_IFS 7417 test -z "$as_dir" && as_dir=. 7418 for ac_exec_ext in '' $ac_executable_extensions; do 7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7422 break 2 7423 fi 7424done 7425 done 7426IFS=$as_save_IFS 7427 7428fi 7429fi 7430RANLIB=$ac_cv_prog_RANLIB 7431if test -n "$RANLIB"; then 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7433$as_echo "$RANLIB" >&6; } 7434else 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7436$as_echo "no" >&6; } 7437fi 7438 7439 7440fi 7441if test -z "$ac_cv_prog_RANLIB"; then 7442 ac_ct_RANLIB=$RANLIB 7443 # Extract the first word of "ranlib", so it can be a program name with args. 7444set dummy ranlib; ac_word=$2 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7446$as_echo_n "checking for $ac_word... " >&6; } 7447if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 if test -n "$ac_ct_RANLIB"; then 7451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7452else 7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7454for as_dir in $PATH 7455do 7456 IFS=$as_save_IFS 7457 test -z "$as_dir" && as_dir=. 7458 for ac_exec_ext in '' $ac_executable_extensions; do 7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7460 ac_cv_prog_ac_ct_RANLIB="ranlib" 7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7462 break 2 7463 fi 7464done 7465 done 7466IFS=$as_save_IFS 7467 7468fi 7469fi 7470ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7471if test -n "$ac_ct_RANLIB"; then 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7473$as_echo "$ac_ct_RANLIB" >&6; } 7474else 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7476$as_echo "no" >&6; } 7477fi 7478 7479 if test "x$ac_ct_RANLIB" = x; then 7480 RANLIB=":" 7481 else 7482 case $cross_compiling:$ac_tool_warned in 7483yes:) 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7486ac_tool_warned=yes ;; 7487esac 7488 RANLIB=$ac_ct_RANLIB 7489 fi 7490else 7491 RANLIB="$ac_cv_prog_RANLIB" 7492fi 7493 7494test -z "$RANLIB" && RANLIB=: 7495 7496 7497 7498 7499 7500 7501# Determine commands to create old-style static archives. 7502old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7503old_postinstall_cmds='chmod 644 $oldlib' 7504old_postuninstall_cmds= 7505 7506if test -n "$RANLIB"; then 7507 case $host_os in 7508 openbsd*) 7509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7510 ;; 7511 *) 7512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7513 ;; 7514 esac 7515 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7516fi 7517 7518case $host_os in 7519 darwin*) 7520 lock_old_archive_extraction=yes ;; 7521 *) 7522 lock_old_archive_extraction=no ;; 7523esac 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563# If no C compiler was specified, use CC. 7564LTCC=${LTCC-"$CC"} 7565 7566# If no C compiler flags were specified, use CFLAGS. 7567LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7568 7569# Allow CC to be a program name with arguments. 7570compiler=$CC 7571 7572 7573# Check for command to grab the raw symbol name followed by C symbol from nm. 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7575$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7576if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 7580# These are sane defaults that work on at least a few old systems. 7581# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7582 7583# Character class describing NM global symbol codes. 7584symcode='[BCDEGRST]' 7585 7586# Regexp to match symbols that can be accessed directly from C. 7587sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7588 7589# Define system-specific variables. 7590case $host_os in 7591aix*) 7592 symcode='[BCDT]' 7593 ;; 7594cygwin* | mingw* | pw32* | cegcc*) 7595 symcode='[ABCDGISTW]' 7596 ;; 7597hpux*) 7598 if test "$host_cpu" = ia64; then 7599 symcode='[ABCDEGRST]' 7600 fi 7601 ;; 7602irix* | nonstopux*) 7603 symcode='[BCDEGRST]' 7604 ;; 7605osf*) 7606 symcode='[BCDEGQRST]' 7607 ;; 7608solaris*) 7609 symcode='[BDRT]' 7610 ;; 7611sco3.2v5*) 7612 symcode='[DT]' 7613 ;; 7614sysv4.2uw2*) 7615 symcode='[DT]' 7616 ;; 7617sysv5* | sco5v6* | unixware* | OpenUNIX*) 7618 symcode='[ABDT]' 7619 ;; 7620sysv4) 7621 symcode='[DFNSTU]' 7622 ;; 7623esac 7624 7625# If we're using GNU nm, then use its standard symbol codes. 7626case `$NM -V 2>&1` in 7627*GNU* | *'with BFD'*) 7628 symcode='[ABCDGIRSTW]' ;; 7629esac 7630 7631# Transform an extracted symbol line into a proper C declaration. 7632# Some systems (esp. on ia64) link data and code symbols differently, 7633# so use this general approach. 7634lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7635 7636# Transform an extracted symbol line into symbol name and symbol address 7637lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7638lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7639 7640# Handle CRLF in mingw tool chain 7641opt_cr= 7642case $build_os in 7643mingw*) 7644 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7645 ;; 7646esac 7647 7648# Try without a prefix underscore, then with it. 7649for ac_symprfx in "" "_"; do 7650 7651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7652 symxfrm="\\1 $ac_symprfx\\2 \\2" 7653 7654 # Write the raw and C identifiers. 7655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7656 # Fake it for dumpbin and say T for any non-static function 7657 # and D for any global variable. 7658 # Also find C++ and __fastcall symbols from MSVC++, 7659 # which start with @ or ?. 7660 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7661" {last_section=section; section=\$ 3};"\ 7662" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7663" \$ 0!~/External *\|/{next};"\ 7664" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7665" {if(hide[section]) next};"\ 7666" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7667" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7668" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7669" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7670" ' prfx=^$ac_symprfx" 7671 else 7672 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7673 fi 7674 7675 # Check to see that the pipe works correctly. 7676 pipe_works=no 7677 7678 rm -f conftest* 7679 cat > conftest.$ac_ext <<_LT_EOF 7680#ifdef __cplusplus 7681extern "C" { 7682#endif 7683char nm_test_var; 7684void nm_test_func(void); 7685void nm_test_func(void){} 7686#ifdef __cplusplus 7687} 7688#endif 7689int main(){nm_test_var='a';nm_test_func();return(0);} 7690_LT_EOF 7691 7692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7693 (eval $ac_compile) 2>&5 7694 ac_status=$? 7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7696 test $ac_status = 0; }; then 7697 # Now try to grab the symbols. 7698 nlist=conftest.nm 7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7700 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7701 ac_status=$? 7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7703 test $ac_status = 0; } && test -s "$nlist"; then 7704 # Try sorting and uniquifying the output. 7705 if sort "$nlist" | uniq > "$nlist"T; then 7706 mv -f "$nlist"T "$nlist" 7707 else 7708 rm -f "$nlist"T 7709 fi 7710 7711 # Make sure that we snagged all the symbols we need. 7712 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7713 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7714 cat <<_LT_EOF > conftest.$ac_ext 7715#ifdef __cplusplus 7716extern "C" { 7717#endif 7718 7719_LT_EOF 7720 # Now generate the symbol file. 7721 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7722 7723 cat <<_LT_EOF >> conftest.$ac_ext 7724 7725/* The mapping between symbol names and symbols. */ 7726const struct { 7727 const char *name; 7728 void *address; 7729} 7730lt__PROGRAM__LTX_preloaded_symbols[] = 7731{ 7732 { "@PROGRAM@", (void *) 0 }, 7733_LT_EOF 7734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7735 cat <<\_LT_EOF >> conftest.$ac_ext 7736 {0, (void *) 0} 7737}; 7738 7739/* This works around a problem in FreeBSD linker */ 7740#ifdef FREEBSD_WORKAROUND 7741static const void *lt_preloaded_setup() { 7742 return lt__PROGRAM__LTX_preloaded_symbols; 7743} 7744#endif 7745 7746#ifdef __cplusplus 7747} 7748#endif 7749_LT_EOF 7750 # Now try linking the two files. 7751 mv conftest.$ac_objext conftstm.$ac_objext 7752 lt_save_LIBS="$LIBS" 7753 lt_save_CFLAGS="$CFLAGS" 7754 LIBS="conftstm.$ac_objext" 7755 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7757 (eval $ac_link) 2>&5 7758 ac_status=$? 7759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7760 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7761 pipe_works=yes 7762 fi 7763 LIBS="$lt_save_LIBS" 7764 CFLAGS="$lt_save_CFLAGS" 7765 else 7766 echo "cannot find nm_test_func in $nlist" >&5 7767 fi 7768 else 7769 echo "cannot find nm_test_var in $nlist" >&5 7770 fi 7771 else 7772 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7773 fi 7774 else 7775 echo "$progname: failed program was:" >&5 7776 cat conftest.$ac_ext >&5 7777 fi 7778 rm -rf conftest* conftst* 7779 7780 # Do not use the global_symbol_pipe unless it works. 7781 if test "$pipe_works" = yes; then 7782 break 7783 else 7784 lt_cv_sys_global_symbol_pipe= 7785 fi 7786done 7787 7788fi 7789 7790if test -z "$lt_cv_sys_global_symbol_pipe"; then 7791 lt_cv_sys_global_symbol_to_cdecl= 7792fi 7793if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7795$as_echo "failed" >&6; } 7796else 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7798$as_echo "ok" >&6; } 7799fi 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822# Check whether --enable-libtool-lock was given. 7823if test "${enable_libtool_lock+set}" = set; then : 7824 enableval=$enable_libtool_lock; 7825fi 7826 7827test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7828 7829# Some flags need to be propagated to the compiler or linker for good 7830# libtool support. 7831case $host in 7832ia64-*-hpux*) 7833 # Find out which ABI we are using. 7834 echo 'int i;' > conftest.$ac_ext 7835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7836 (eval $ac_compile) 2>&5 7837 ac_status=$? 7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7839 test $ac_status = 0; }; then 7840 case `/usr/bin/file conftest.$ac_objext` in 7841 *ELF-32*) 7842 HPUX_IA64_MODE="32" 7843 ;; 7844 *ELF-64*) 7845 HPUX_IA64_MODE="64" 7846 ;; 7847 esac 7848 fi 7849 rm -rf conftest* 7850 ;; 7851*-*-irix6*) 7852 # Find out which ABI we are using. 7853 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7855 (eval $ac_compile) 2>&5 7856 ac_status=$? 7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7858 test $ac_status = 0; }; then 7859 if test "$lt_cv_prog_gnu_ld" = yes; then 7860 case `/usr/bin/file conftest.$ac_objext` in 7861 *32-bit*) 7862 LD="${LD-ld} -melf32bsmip" 7863 ;; 7864 *N32*) 7865 LD="${LD-ld} -melf32bmipn32" 7866 ;; 7867 *64-bit*) 7868 LD="${LD-ld} -melf64bmip" 7869 ;; 7870 esac 7871 else 7872 case `/usr/bin/file conftest.$ac_objext` in 7873 *32-bit*) 7874 LD="${LD-ld} -32" 7875 ;; 7876 *N32*) 7877 LD="${LD-ld} -n32" 7878 ;; 7879 *64-bit*) 7880 LD="${LD-ld} -64" 7881 ;; 7882 esac 7883 fi 7884 fi 7885 rm -rf conftest* 7886 ;; 7887 7888x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7889s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7890 # Find out which ABI we are using. 7891 echo 'int i;' > conftest.$ac_ext 7892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7893 (eval $ac_compile) 2>&5 7894 ac_status=$? 7895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7896 test $ac_status = 0; }; then 7897 case `/usr/bin/file conftest.o` in 7898 *32-bit*) 7899 case $host in 7900 x86_64-*kfreebsd*-gnu) 7901 LD="${LD-ld} -m elf_i386_fbsd" 7902 ;; 7903 x86_64-*linux*) 7904 case `/usr/bin/file conftest.o` in 7905 *x86-64*) 7906 LD="${LD-ld} -m elf32_x86_64" 7907 ;; 7908 *) 7909 LD="${LD-ld} -m elf_i386" 7910 ;; 7911 esac 7912 ;; 7913 powerpc64le-*linux*) 7914 LD="${LD-ld} -m elf32lppclinux" 7915 ;; 7916 powerpc64-*linux*) 7917 LD="${LD-ld} -m elf32ppclinux" 7918 ;; 7919 s390x-*linux*) 7920 LD="${LD-ld} -m elf_s390" 7921 ;; 7922 sparc64-*linux*) 7923 LD="${LD-ld} -m elf32_sparc" 7924 ;; 7925 esac 7926 ;; 7927 *64-bit*) 7928 case $host in 7929 x86_64-*kfreebsd*-gnu) 7930 LD="${LD-ld} -m elf_x86_64_fbsd" 7931 ;; 7932 x86_64-*linux*) 7933 LD="${LD-ld} -m elf_x86_64" 7934 ;; 7935 powerpcle-*linux*) 7936 LD="${LD-ld} -m elf64lppc" 7937 ;; 7938 powerpc-*linux*) 7939 LD="${LD-ld} -m elf64ppc" 7940 ;; 7941 s390*-*linux*|s390*-*tpf*) 7942 LD="${LD-ld} -m elf64_s390" 7943 ;; 7944 sparc*-*linux*) 7945 LD="${LD-ld} -m elf64_sparc" 7946 ;; 7947 esac 7948 ;; 7949 esac 7950 fi 7951 rm -rf conftest* 7952 ;; 7953 7954*-*-sco3.2v5*) 7955 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7956 SAVE_CFLAGS="$CFLAGS" 7957 CFLAGS="$CFLAGS -belf" 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7959$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7960if test "${lt_cv_cc_needs_belf+set}" = set; then : 7961 $as_echo_n "(cached) " >&6 7962else 7963 ac_ext=c 7964ac_cpp='$CPP $CPPFLAGS' 7965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7967ac_compiler_gnu=$ac_cv_c_compiler_gnu 7968 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970/* end confdefs.h. */ 7971 7972int 7973main () 7974{ 7975 7976 ; 7977 return 0; 7978} 7979_ACEOF 7980if ac_fn_c_try_link "$LINENO"; then : 7981 lt_cv_cc_needs_belf=yes 7982else 7983 lt_cv_cc_needs_belf=no 7984fi 7985rm -f core conftest.err conftest.$ac_objext \ 7986 conftest$ac_exeext conftest.$ac_ext 7987 ac_ext=c 7988ac_cpp='$CPP $CPPFLAGS' 7989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7991ac_compiler_gnu=$ac_cv_c_compiler_gnu 7992 7993fi 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7995$as_echo "$lt_cv_cc_needs_belf" >&6; } 7996 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7997 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7998 CFLAGS="$SAVE_CFLAGS" 7999 fi 8000 ;; 8001sparc*-*solaris*) 8002 # Find out which ABI we are using. 8003 echo 'int i;' > conftest.$ac_ext 8004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8005 (eval $ac_compile) 2>&5 8006 ac_status=$? 8007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8008 test $ac_status = 0; }; then 8009 case `/usr/bin/file conftest.o` in 8010 *64-bit*) 8011 case $lt_cv_prog_gnu_ld in 8012 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8013 *) 8014 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8015 LD="${LD-ld} -64" 8016 fi 8017 ;; 8018 esac 8019 ;; 8020 esac 8021 fi 8022 rm -rf conftest* 8023 ;; 8024esac 8025 8026need_locks="$enable_libtool_lock" 8027 8028 8029 case $host_os in 8030 rhapsody* | darwin*) 8031 if test -n "$ac_tool_prefix"; then 8032 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8033set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8035$as_echo_n "checking for $ac_word... " >&6; } 8036if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 8037 $as_echo_n "(cached) " >&6 8038else 8039 if test -n "$DSYMUTIL"; then 8040 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8041else 8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8043for as_dir in $PATH 8044do 8045 IFS=$as_save_IFS 8046 test -z "$as_dir" && as_dir=. 8047 for ac_exec_ext in '' $ac_executable_extensions; do 8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8049 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8051 break 2 8052 fi 8053done 8054 done 8055IFS=$as_save_IFS 8056 8057fi 8058fi 8059DSYMUTIL=$ac_cv_prog_DSYMUTIL 8060if test -n "$DSYMUTIL"; then 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8062$as_echo "$DSYMUTIL" >&6; } 8063else 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8065$as_echo "no" >&6; } 8066fi 8067 8068 8069fi 8070if test -z "$ac_cv_prog_DSYMUTIL"; then 8071 ac_ct_DSYMUTIL=$DSYMUTIL 8072 # Extract the first word of "dsymutil", so it can be a program name with args. 8073set dummy dsymutil; ac_word=$2 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8075$as_echo_n "checking for $ac_word... " >&6; } 8076if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 8077 $as_echo_n "(cached) " >&6 8078else 8079 if test -n "$ac_ct_DSYMUTIL"; then 8080 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8081else 8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8083for as_dir in $PATH 8084do 8085 IFS=$as_save_IFS 8086 test -z "$as_dir" && as_dir=. 8087 for ac_exec_ext in '' $ac_executable_extensions; do 8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8089 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8091 break 2 8092 fi 8093done 8094 done 8095IFS=$as_save_IFS 8096 8097fi 8098fi 8099ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8100if test -n "$ac_ct_DSYMUTIL"; then 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8102$as_echo "$ac_ct_DSYMUTIL" >&6; } 8103else 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8105$as_echo "no" >&6; } 8106fi 8107 8108 if test "x$ac_ct_DSYMUTIL" = x; then 8109 DSYMUTIL=":" 8110 else 8111 case $cross_compiling:$ac_tool_warned in 8112yes:) 8113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8115ac_tool_warned=yes ;; 8116esac 8117 DSYMUTIL=$ac_ct_DSYMUTIL 8118 fi 8119else 8120 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8121fi 8122 8123 if test -n "$ac_tool_prefix"; then 8124 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8125set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8127$as_echo_n "checking for $ac_word... " >&6; } 8128if test "${ac_cv_prog_NMEDIT+set}" = set; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 if test -n "$NMEDIT"; then 8132 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8133else 8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8135for as_dir in $PATH 8136do 8137 IFS=$as_save_IFS 8138 test -z "$as_dir" && as_dir=. 8139 for ac_exec_ext in '' $ac_executable_extensions; do 8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8141 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8143 break 2 8144 fi 8145done 8146 done 8147IFS=$as_save_IFS 8148 8149fi 8150fi 8151NMEDIT=$ac_cv_prog_NMEDIT 8152if test -n "$NMEDIT"; then 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8154$as_echo "$NMEDIT" >&6; } 8155else 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8157$as_echo "no" >&6; } 8158fi 8159 8160 8161fi 8162if test -z "$ac_cv_prog_NMEDIT"; then 8163 ac_ct_NMEDIT=$NMEDIT 8164 # Extract the first word of "nmedit", so it can be a program name with args. 8165set dummy nmedit; ac_word=$2 8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8167$as_echo_n "checking for $ac_word... " >&6; } 8168if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 if test -n "$ac_ct_NMEDIT"; then 8172 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8173else 8174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8175for as_dir in $PATH 8176do 8177 IFS=$as_save_IFS 8178 test -z "$as_dir" && as_dir=. 8179 for ac_exec_ext in '' $ac_executable_extensions; do 8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8181 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8183 break 2 8184 fi 8185done 8186 done 8187IFS=$as_save_IFS 8188 8189fi 8190fi 8191ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8192if test -n "$ac_ct_NMEDIT"; then 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8194$as_echo "$ac_ct_NMEDIT" >&6; } 8195else 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8197$as_echo "no" >&6; } 8198fi 8199 8200 if test "x$ac_ct_NMEDIT" = x; then 8201 NMEDIT=":" 8202 else 8203 case $cross_compiling:$ac_tool_warned in 8204yes:) 8205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8207ac_tool_warned=yes ;; 8208esac 8209 NMEDIT=$ac_ct_NMEDIT 8210 fi 8211else 8212 NMEDIT="$ac_cv_prog_NMEDIT" 8213fi 8214 8215 if test -n "$ac_tool_prefix"; then 8216 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8217set dummy ${ac_tool_prefix}lipo; ac_word=$2 8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8219$as_echo_n "checking for $ac_word... " >&6; } 8220if test "${ac_cv_prog_LIPO+set}" = set; then : 8221 $as_echo_n "(cached) " >&6 8222else 8223 if test -n "$LIPO"; then 8224 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8225else 8226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8227for as_dir in $PATH 8228do 8229 IFS=$as_save_IFS 8230 test -z "$as_dir" && as_dir=. 8231 for ac_exec_ext in '' $ac_executable_extensions; do 8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8233 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8235 break 2 8236 fi 8237done 8238 done 8239IFS=$as_save_IFS 8240 8241fi 8242fi 8243LIPO=$ac_cv_prog_LIPO 8244if test -n "$LIPO"; then 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8246$as_echo "$LIPO" >&6; } 8247else 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8249$as_echo "no" >&6; } 8250fi 8251 8252 8253fi 8254if test -z "$ac_cv_prog_LIPO"; then 8255 ac_ct_LIPO=$LIPO 8256 # Extract the first word of "lipo", so it can be a program name with args. 8257set dummy lipo; ac_word=$2 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8259$as_echo_n "checking for $ac_word... " >&6; } 8260if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 8261 $as_echo_n "(cached) " >&6 8262else 8263 if test -n "$ac_ct_LIPO"; then 8264 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8265else 8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8267for as_dir in $PATH 8268do 8269 IFS=$as_save_IFS 8270 test -z "$as_dir" && as_dir=. 8271 for ac_exec_ext in '' $ac_executable_extensions; do 8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8273 ac_cv_prog_ac_ct_LIPO="lipo" 8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8275 break 2 8276 fi 8277done 8278 done 8279IFS=$as_save_IFS 8280 8281fi 8282fi 8283ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8284if test -n "$ac_ct_LIPO"; then 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8286$as_echo "$ac_ct_LIPO" >&6; } 8287else 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8289$as_echo "no" >&6; } 8290fi 8291 8292 if test "x$ac_ct_LIPO" = x; then 8293 LIPO=":" 8294 else 8295 case $cross_compiling:$ac_tool_warned in 8296yes:) 8297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8299ac_tool_warned=yes ;; 8300esac 8301 LIPO=$ac_ct_LIPO 8302 fi 8303else 8304 LIPO="$ac_cv_prog_LIPO" 8305fi 8306 8307 if test -n "$ac_tool_prefix"; then 8308 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8309set dummy ${ac_tool_prefix}otool; ac_word=$2 8310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8311$as_echo_n "checking for $ac_word... " >&6; } 8312if test "${ac_cv_prog_OTOOL+set}" = set; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 if test -n "$OTOOL"; then 8316 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8317else 8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8319for as_dir in $PATH 8320do 8321 IFS=$as_save_IFS 8322 test -z "$as_dir" && as_dir=. 8323 for ac_exec_ext in '' $ac_executable_extensions; do 8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8325 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8327 break 2 8328 fi 8329done 8330 done 8331IFS=$as_save_IFS 8332 8333fi 8334fi 8335OTOOL=$ac_cv_prog_OTOOL 8336if test -n "$OTOOL"; then 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8338$as_echo "$OTOOL" >&6; } 8339else 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8341$as_echo "no" >&6; } 8342fi 8343 8344 8345fi 8346if test -z "$ac_cv_prog_OTOOL"; then 8347 ac_ct_OTOOL=$OTOOL 8348 # Extract the first word of "otool", so it can be a program name with args. 8349set dummy otool; ac_word=$2 8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8351$as_echo_n "checking for $ac_word... " >&6; } 8352if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 if test -n "$ac_ct_OTOOL"; then 8356 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8357else 8358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8359for as_dir in $PATH 8360do 8361 IFS=$as_save_IFS 8362 test -z "$as_dir" && as_dir=. 8363 for ac_exec_ext in '' $ac_executable_extensions; do 8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8365 ac_cv_prog_ac_ct_OTOOL="otool" 8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8367 break 2 8368 fi 8369done 8370 done 8371IFS=$as_save_IFS 8372 8373fi 8374fi 8375ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8376if test -n "$ac_ct_OTOOL"; then 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8378$as_echo "$ac_ct_OTOOL" >&6; } 8379else 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8381$as_echo "no" >&6; } 8382fi 8383 8384 if test "x$ac_ct_OTOOL" = x; then 8385 OTOOL=":" 8386 else 8387 case $cross_compiling:$ac_tool_warned in 8388yes:) 8389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8391ac_tool_warned=yes ;; 8392esac 8393 OTOOL=$ac_ct_OTOOL 8394 fi 8395else 8396 OTOOL="$ac_cv_prog_OTOOL" 8397fi 8398 8399 if test -n "$ac_tool_prefix"; then 8400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8401set dummy ${ac_tool_prefix}otool64; ac_word=$2 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8403$as_echo_n "checking for $ac_word... " >&6; } 8404if test "${ac_cv_prog_OTOOL64+set}" = set; then : 8405 $as_echo_n "(cached) " >&6 8406else 8407 if test -n "$OTOOL64"; then 8408 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8409else 8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8411for as_dir in $PATH 8412do 8413 IFS=$as_save_IFS 8414 test -z "$as_dir" && as_dir=. 8415 for ac_exec_ext in '' $ac_executable_extensions; do 8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8419 break 2 8420 fi 8421done 8422 done 8423IFS=$as_save_IFS 8424 8425fi 8426fi 8427OTOOL64=$ac_cv_prog_OTOOL64 8428if test -n "$OTOOL64"; then 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8430$as_echo "$OTOOL64" >&6; } 8431else 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8433$as_echo "no" >&6; } 8434fi 8435 8436 8437fi 8438if test -z "$ac_cv_prog_OTOOL64"; then 8439 ac_ct_OTOOL64=$OTOOL64 8440 # Extract the first word of "otool64", so it can be a program name with args. 8441set dummy otool64; ac_word=$2 8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8443$as_echo_n "checking for $ac_word... " >&6; } 8444if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 if test -n "$ac_ct_OTOOL64"; then 8448 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8449else 8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8451for as_dir in $PATH 8452do 8453 IFS=$as_save_IFS 8454 test -z "$as_dir" && as_dir=. 8455 for ac_exec_ext in '' $ac_executable_extensions; do 8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8457 ac_cv_prog_ac_ct_OTOOL64="otool64" 8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8459 break 2 8460 fi 8461done 8462 done 8463IFS=$as_save_IFS 8464 8465fi 8466fi 8467ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8468if test -n "$ac_ct_OTOOL64"; then 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8470$as_echo "$ac_ct_OTOOL64" >&6; } 8471else 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8473$as_echo "no" >&6; } 8474fi 8475 8476 if test "x$ac_ct_OTOOL64" = x; then 8477 OTOOL64=":" 8478 else 8479 case $cross_compiling:$ac_tool_warned in 8480yes:) 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8483ac_tool_warned=yes ;; 8484esac 8485 OTOOL64=$ac_ct_OTOOL64 8486 fi 8487else 8488 OTOOL64="$ac_cv_prog_OTOOL64" 8489fi 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8518$as_echo_n "checking for -single_module linker flag... " >&6; } 8519if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8520 $as_echo_n "(cached) " >&6 8521else 8522 lt_cv_apple_cc_single_mod=no 8523 if test -z "${LT_MULTI_MODULE}"; then 8524 # By default we will add the -single_module flag. You can override 8525 # by either setting the environment variable LT_MULTI_MODULE 8526 # non-empty at configure time, or by adding -multi_module to the 8527 # link flags. 8528 rm -rf libconftest.dylib* 8529 echo "int foo(void){return 1;}" > conftest.c 8530 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8531-dynamiclib -Wl,-single_module conftest.c" >&5 8532 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8533 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8534 _lt_result=$? 8535 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8536 lt_cv_apple_cc_single_mod=yes 8537 else 8538 cat conftest.err >&5 8539 fi 8540 rm -rf libconftest.dylib* 8541 rm -f conftest.* 8542 fi 8543fi 8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8545$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8547$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8548if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 lt_cv_ld_exported_symbols_list=no 8552 save_LDFLAGS=$LDFLAGS 8553 echo "_main" > conftest.sym 8554 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557 8558int 8559main () 8560{ 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566if ac_fn_c_try_link "$LINENO"; then : 8567 lt_cv_ld_exported_symbols_list=yes 8568else 8569 lt_cv_ld_exported_symbols_list=no 8570fi 8571rm -f core conftest.err conftest.$ac_objext \ 8572 conftest$ac_exeext conftest.$ac_ext 8573 LDFLAGS="$save_LDFLAGS" 8574 8575fi 8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8577$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8579$as_echo_n "checking for -force_load linker flag... " >&6; } 8580if test "${lt_cv_ld_force_load+set}" = set; then : 8581 $as_echo_n "(cached) " >&6 8582else 8583 lt_cv_ld_force_load=no 8584 cat > conftest.c << _LT_EOF 8585int forced_loaded() { return 2;} 8586_LT_EOF 8587 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8588 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8589 echo "$AR cru libconftest.a conftest.o" >&5 8590 $AR cru libconftest.a conftest.o 2>&5 8591 cat > conftest.c << _LT_EOF 8592int main() { return 0;} 8593_LT_EOF 8594 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8595 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8596 _lt_result=$? 8597 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8598 lt_cv_ld_force_load=yes 8599 else 8600 cat conftest.err >&5 8601 fi 8602 rm -f conftest.err libconftest.a conftest conftest.c 8603 rm -rf conftest.dSYM 8604 8605fi 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8607$as_echo "$lt_cv_ld_force_load" >&6; } 8608 case $host_os in 8609 rhapsody* | darwin1.[012]) 8610 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8611 darwin1.*) 8612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8613 darwin*) # darwin 5.x on 8614 # if running on 10.5 or later, the deployment target defaults 8615 # to the OS version, if on x86, and 10.4, the deployment 8616 # target defaults to 10.4. Don't you love it? 8617 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8618 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8620 10.[012][,.]*) 8621 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8622 10.*) 8623 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8624 esac 8625 ;; 8626 esac 8627 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8628 _lt_dar_single_mod='$single_module' 8629 fi 8630 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8631 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8632 else 8633 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8634 fi 8635 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8636 _lt_dsymutil='~$DSYMUTIL $lib || :' 8637 else 8638 _lt_dsymutil= 8639 fi 8640 ;; 8641 esac 8642 8643for ac_header in dlfcn.h 8644do : 8645 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8646" 8647if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8648 cat >>confdefs.h <<_ACEOF 8649#define HAVE_DLFCN_H 1 8650_ACEOF 8651 8652fi 8653 8654done 8655 8656 8657 8658 8659 8660 8661# Set options 8662 8663 8664 8665 8666 enable_win32_dll=no 8667 8668 8669 # Check whether --enable-shared was given. 8670if test "${enable_shared+set}" = set; then : 8671 enableval=$enable_shared; p=${PACKAGE-default} 8672 case $enableval in 8673 yes) enable_shared=yes ;; 8674 no) enable_shared=no ;; 8675 *) 8676 enable_shared=no 8677 # Look at the argument we got. We use all the common list separators. 8678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8679 for pkg in $enableval; do 8680 IFS="$lt_save_ifs" 8681 if test "X$pkg" = "X$p"; then 8682 enable_shared=yes 8683 fi 8684 done 8685 IFS="$lt_save_ifs" 8686 ;; 8687 esac 8688else 8689 enable_shared=yes 8690fi 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 # Check whether --enable-static was given. 8701if test "${enable_static+set}" = set; then : 8702 enableval=$enable_static; p=${PACKAGE-default} 8703 case $enableval in 8704 yes) enable_static=yes ;; 8705 no) enable_static=no ;; 8706 *) 8707 enable_static=no 8708 # Look at the argument we got. We use all the common list separators. 8709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8710 for pkg in $enableval; do 8711 IFS="$lt_save_ifs" 8712 if test "X$pkg" = "X$p"; then 8713 enable_static=yes 8714 fi 8715 done 8716 IFS="$lt_save_ifs" 8717 ;; 8718 esac 8719else 8720 enable_static=yes 8721fi 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732# Check whether --with-pic was given. 8733if test "${with_pic+set}" = set; then : 8734 withval=$with_pic; pic_mode="$withval" 8735else 8736 pic_mode=default 8737fi 8738 8739 8740test -z "$pic_mode" && pic_mode=default 8741 8742 8743 8744 8745 8746 8747 8748 # Check whether --enable-fast-install was given. 8749if test "${enable_fast_install+set}" = set; then : 8750 enableval=$enable_fast_install; p=${PACKAGE-default} 8751 case $enableval in 8752 yes) enable_fast_install=yes ;; 8753 no) enable_fast_install=no ;; 8754 *) 8755 enable_fast_install=no 8756 # Look at the argument we got. We use all the common list separators. 8757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8758 for pkg in $enableval; do 8759 IFS="$lt_save_ifs" 8760 if test "X$pkg" = "X$p"; then 8761 enable_fast_install=yes 8762 fi 8763 done 8764 IFS="$lt_save_ifs" 8765 ;; 8766 esac 8767else 8768 enable_fast_install=yes 8769fi 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781# This can be used to rebuild libtool when needed 8782LIBTOOL_DEPS="$ltmain" 8783 8784# Always use our own libtool. 8785LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812test -z "$LN_S" && LN_S="ln -s" 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827if test -n "${ZSH_VERSION+set}" ; then 8828 setopt NO_GLOB_SUBST 8829fi 8830 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8832$as_echo_n "checking for objdir... " >&6; } 8833if test "${lt_cv_objdir+set}" = set; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 rm -f .libs 2>/dev/null 8837mkdir .libs 2>/dev/null 8838if test -d .libs; then 8839 lt_cv_objdir=.libs 8840else 8841 # MS-DOS does not allow filenames that begin with a dot. 8842 lt_cv_objdir=_libs 8843fi 8844rmdir .libs 2>/dev/null 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8847$as_echo "$lt_cv_objdir" >&6; } 8848objdir=$lt_cv_objdir 8849 8850 8851 8852 8853 8854cat >>confdefs.h <<_ACEOF 8855#define LT_OBJDIR "$lt_cv_objdir/" 8856_ACEOF 8857 8858 8859 8860 8861case $host_os in 8862aix3*) 8863 # AIX sometimes has problems with the GCC collect2 program. For some 8864 # reason, if we set the COLLECT_NAMES environment variable, the problems 8865 # vanish in a puff of smoke. 8866 if test "X${COLLECT_NAMES+set}" != Xset; then 8867 COLLECT_NAMES= 8868 export COLLECT_NAMES 8869 fi 8870 ;; 8871esac 8872 8873# Global variables: 8874ofile=libtool 8875can_build_shared=yes 8876 8877# All known linkers require a `.a' archive for static linking (except MSVC, 8878# which needs '.lib'). 8879libext=a 8880 8881with_gnu_ld="$lt_cv_prog_gnu_ld" 8882 8883old_CC="$CC" 8884old_CFLAGS="$CFLAGS" 8885 8886# Set sane defaults for various variables 8887test -z "$CC" && CC=cc 8888test -z "$LTCC" && LTCC=$CC 8889test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8890test -z "$LD" && LD=ld 8891test -z "$ac_objext" && ac_objext=o 8892 8893for cc_temp in $compiler""; do 8894 case $cc_temp in 8895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8897 \-*) ;; 8898 *) break;; 8899 esac 8900done 8901cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8902 8903 8904# Only perform the check for file, if the check method requires it 8905test -z "$MAGIC_CMD" && MAGIC_CMD=file 8906case $deplibs_check_method in 8907file_magic*) 8908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8910$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8911if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 case $MAGIC_CMD in 8915[\\/*] | ?:[\\/]*) 8916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8917 ;; 8918*) 8919 lt_save_MAGIC_CMD="$MAGIC_CMD" 8920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8922 for ac_dir in $ac_dummy; do 8923 IFS="$lt_save_ifs" 8924 test -z "$ac_dir" && ac_dir=. 8925 if test -f $ac_dir/${ac_tool_prefix}file; then 8926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8927 if test -n "$file_magic_test_file"; then 8928 case $deplibs_check_method in 8929 "file_magic "*) 8930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8933 $EGREP "$file_magic_regex" > /dev/null; then 8934 : 8935 else 8936 cat <<_LT_EOF 1>&2 8937 8938*** Warning: the command libtool uses to detect shared libraries, 8939*** $file_magic_cmd, produces output that libtool cannot recognize. 8940*** The result is that libtool may fail to recognize shared libraries 8941*** as such. This will affect the creation of libtool libraries that 8942*** depend on shared libraries, but programs linked with such libtool 8943*** libraries will work regardless of this problem. Nevertheless, you 8944*** may want to report the problem to your system manager and/or to 8945*** bug-libtool@gnu.org 8946 8947_LT_EOF 8948 fi ;; 8949 esac 8950 fi 8951 break 8952 fi 8953 done 8954 IFS="$lt_save_ifs" 8955 MAGIC_CMD="$lt_save_MAGIC_CMD" 8956 ;; 8957esac 8958fi 8959 8960MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8961if test -n "$MAGIC_CMD"; then 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8963$as_echo "$MAGIC_CMD" >&6; } 8964else 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8966$as_echo "no" >&6; } 8967fi 8968 8969 8970 8971 8972 8973if test -z "$lt_cv_path_MAGIC_CMD"; then 8974 if test -n "$ac_tool_prefix"; then 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8976$as_echo_n "checking for file... " >&6; } 8977if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8978 $as_echo_n "(cached) " >&6 8979else 8980 case $MAGIC_CMD in 8981[\\/*] | ?:[\\/]*) 8982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8983 ;; 8984*) 8985 lt_save_MAGIC_CMD="$MAGIC_CMD" 8986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8988 for ac_dir in $ac_dummy; do 8989 IFS="$lt_save_ifs" 8990 test -z "$ac_dir" && ac_dir=. 8991 if test -f $ac_dir/file; then 8992 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8993 if test -n "$file_magic_test_file"; then 8994 case $deplibs_check_method in 8995 "file_magic "*) 8996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8999 $EGREP "$file_magic_regex" > /dev/null; then 9000 : 9001 else 9002 cat <<_LT_EOF 1>&2 9003 9004*** Warning: the command libtool uses to detect shared libraries, 9005*** $file_magic_cmd, produces output that libtool cannot recognize. 9006*** The result is that libtool may fail to recognize shared libraries 9007*** as such. This will affect the creation of libtool libraries that 9008*** depend on shared libraries, but programs linked with such libtool 9009*** libraries will work regardless of this problem. Nevertheless, you 9010*** may want to report the problem to your system manager and/or to 9011*** bug-libtool@gnu.org 9012 9013_LT_EOF 9014 fi ;; 9015 esac 9016 fi 9017 break 9018 fi 9019 done 9020 IFS="$lt_save_ifs" 9021 MAGIC_CMD="$lt_save_MAGIC_CMD" 9022 ;; 9023esac 9024fi 9025 9026MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9027if test -n "$MAGIC_CMD"; then 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9029$as_echo "$MAGIC_CMD" >&6; } 9030else 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9032$as_echo "no" >&6; } 9033fi 9034 9035 9036 else 9037 MAGIC_CMD=: 9038 fi 9039fi 9040 9041 fi 9042 ;; 9043esac 9044 9045# Use C for the default configuration in the libtool script 9046 9047lt_save_CC="$CC" 9048ac_ext=c 9049ac_cpp='$CPP $CPPFLAGS' 9050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9052ac_compiler_gnu=$ac_cv_c_compiler_gnu 9053 9054 9055# Source file extension for C test sources. 9056ac_ext=c 9057 9058# Object file extension for compiled C test sources. 9059objext=o 9060objext=$objext 9061 9062# Code to be used in simple compile tests 9063lt_simple_compile_test_code="int some_variable = 0;" 9064 9065# Code to be used in simple link tests 9066lt_simple_link_test_code='int main(){return(0);}' 9067 9068 9069 9070 9071 9072 9073 9074# If no C compiler was specified, use CC. 9075LTCC=${LTCC-"$CC"} 9076 9077# If no C compiler flags were specified, use CFLAGS. 9078LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9079 9080# Allow CC to be a program name with arguments. 9081compiler=$CC 9082 9083# Save the default compiler, since it gets overwritten when the other 9084# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9085compiler_DEFAULT=$CC 9086 9087# save warnings/boilerplate of simple test code 9088ac_outfile=conftest.$ac_objext 9089echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9090eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9091_lt_compiler_boilerplate=`cat conftest.err` 9092$RM conftest* 9093 9094ac_outfile=conftest.$ac_objext 9095echo "$lt_simple_link_test_code" >conftest.$ac_ext 9096eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9097_lt_linker_boilerplate=`cat conftest.err` 9098$RM -r conftest* 9099 9100 9101## CAVEAT EMPTOR: 9102## There is no encapsulation within the following macros, do not change 9103## the running order or otherwise move them around unless you know exactly 9104## what you are doing... 9105if test -n "$compiler"; then 9106 9107lt_prog_compiler_no_builtin_flag= 9108 9109if test "$GCC" = yes; then 9110 case $cc_basename in 9111 nvcc*) 9112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9113 *) 9114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9115 esac 9116 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9118$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9119if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 9120 $as_echo_n "(cached) " >&6 9121else 9122 lt_cv_prog_compiler_rtti_exceptions=no 9123 ac_outfile=conftest.$ac_objext 9124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9125 lt_compiler_flag="-fno-rtti -fno-exceptions" 9126 # Insert the option either (1) after the last *FLAGS variable, or 9127 # (2) before a word containing "conftest.", or (3) at the end. 9128 # Note that $ac_compile itself does not contain backslashes and begins 9129 # with a dollar sign (not a hyphen), so the echo should work correctly. 9130 # The option is referenced via a variable to avoid confusing sed. 9131 lt_compile=`echo "$ac_compile" | $SED \ 9132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9134 -e 's:$: $lt_compiler_flag:'` 9135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9136 (eval "$lt_compile" 2>conftest.err) 9137 ac_status=$? 9138 cat conftest.err >&5 9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9140 if (exit $ac_status) && test -s "$ac_outfile"; then 9141 # The compiler can only warn and ignore the option if not recognized 9142 # So say no if there are warnings other than the usual output. 9143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9146 lt_cv_prog_compiler_rtti_exceptions=yes 9147 fi 9148 fi 9149 $RM conftest* 9150 9151fi 9152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9153$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9154 9155if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9157else 9158 : 9159fi 9160 9161fi 9162 9163 9164 9165 9166 9167 9168 lt_prog_compiler_wl= 9169lt_prog_compiler_pic= 9170lt_prog_compiler_static= 9171 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9173$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9174 9175 if test "$GCC" = yes; then 9176 lt_prog_compiler_wl='-Wl,' 9177 lt_prog_compiler_static='-static' 9178 9179 case $host_os in 9180 aix*) 9181 # All AIX code is PIC. 9182 if test "$host_cpu" = ia64; then 9183 # AIX 5 now supports IA64 processor 9184 lt_prog_compiler_static='-Bstatic' 9185 fi 9186 lt_prog_compiler_pic='-fPIC' 9187 ;; 9188 9189 amigaos*) 9190 case $host_cpu in 9191 powerpc) 9192 # see comment about AmigaOS4 .so support 9193 lt_prog_compiler_pic='-fPIC' 9194 ;; 9195 m68k) 9196 # FIXME: we need at least 68020 code to build shared libraries, but 9197 # adding the `-m68020' flag to GCC prevents building anything better, 9198 # like `-m68040'. 9199 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9200 ;; 9201 esac 9202 ;; 9203 9204 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9205 # PIC is the default for these OSes. 9206 ;; 9207 9208 mingw* | cygwin* | pw32* | os2* | cegcc*) 9209 # This hack is so that the source file can tell whether it is being 9210 # built for inclusion in a dll (and should export symbols for example). 9211 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9212 # (--disable-auto-import) libraries 9213 lt_prog_compiler_pic='-DDLL_EXPORT' 9214 ;; 9215 9216 darwin* | rhapsody*) 9217 # PIC is the default on this platform 9218 # Common symbols not allowed in MH_DYLIB files 9219 lt_prog_compiler_pic='-fno-common' 9220 ;; 9221 9222 haiku*) 9223 # PIC is the default for Haiku. 9224 # The "-static" flag exists, but is broken. 9225 lt_prog_compiler_static= 9226 ;; 9227 9228 hpux*) 9229 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9230 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9231 # sets the default TLS model and affects inlining. 9232 case $host_cpu in 9233 hppa*64*) 9234 # +Z the default 9235 ;; 9236 *) 9237 lt_prog_compiler_pic='-fPIC' 9238 ;; 9239 esac 9240 ;; 9241 9242 interix[3-9]*) 9243 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9244 # Instead, we relocate shared libraries at runtime. 9245 ;; 9246 9247 msdosdjgpp*) 9248 # Just because we use GCC doesn't mean we suddenly get shared libraries 9249 # on systems that don't support them. 9250 lt_prog_compiler_can_build_shared=no 9251 enable_shared=no 9252 ;; 9253 9254 *nto* | *qnx*) 9255 # QNX uses GNU C++, but need to define -shared option too, otherwise 9256 # it will coredump. 9257 lt_prog_compiler_pic='-fPIC -shared' 9258 ;; 9259 9260 sysv4*MP*) 9261 if test -d /usr/nec; then 9262 lt_prog_compiler_pic=-Kconform_pic 9263 fi 9264 ;; 9265 9266 *) 9267 lt_prog_compiler_pic='-fPIC' 9268 ;; 9269 esac 9270 9271 case $cc_basename in 9272 nvcc*) # Cuda Compiler Driver 2.2 9273 lt_prog_compiler_wl='-Xlinker ' 9274 lt_prog_compiler_pic='-Xcompiler -fPIC' 9275 ;; 9276 esac 9277 else 9278 # PORTME Check for flag to pass linker flags through the system compiler. 9279 case $host_os in 9280 aix*) 9281 lt_prog_compiler_wl='-Wl,' 9282 if test "$host_cpu" = ia64; then 9283 # AIX 5 now supports IA64 processor 9284 lt_prog_compiler_static='-Bstatic' 9285 else 9286 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9287 fi 9288 ;; 9289 9290 mingw* | cygwin* | pw32* | os2* | cegcc*) 9291 # This hack is so that the source file can tell whether it is being 9292 # built for inclusion in a dll (and should export symbols for example). 9293 lt_prog_compiler_pic='-DDLL_EXPORT' 9294 ;; 9295 9296 hpux9* | hpux10* | hpux11*) 9297 lt_prog_compiler_wl='-Wl,' 9298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9299 # not for PA HP-UX. 9300 case $host_cpu in 9301 hppa*64*|ia64*) 9302 # +Z the default 9303 ;; 9304 *) 9305 lt_prog_compiler_pic='+Z' 9306 ;; 9307 esac 9308 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9309 lt_prog_compiler_static='${wl}-a ${wl}archive' 9310 ;; 9311 9312 irix5* | irix6* | nonstopux*) 9313 lt_prog_compiler_wl='-Wl,' 9314 # PIC (with -KPIC) is the default. 9315 lt_prog_compiler_static='-non_shared' 9316 ;; 9317 9318 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9319 case $cc_basename in 9320 # old Intel for x86_64 which still supported -KPIC. 9321 ecc*) 9322 lt_prog_compiler_wl='-Wl,' 9323 lt_prog_compiler_pic='-KPIC' 9324 lt_prog_compiler_static='-static' 9325 ;; 9326 # icc used to be incompatible with GCC. 9327 # ICC 10 doesn't accept -KPIC any more. 9328 icc* | ifort*) 9329 lt_prog_compiler_wl='-Wl,' 9330 lt_prog_compiler_pic='-fPIC' 9331 lt_prog_compiler_static='-static' 9332 ;; 9333 # Lahey Fortran 8.1. 9334 lf95*) 9335 lt_prog_compiler_wl='-Wl,' 9336 lt_prog_compiler_pic='--shared' 9337 lt_prog_compiler_static='--static' 9338 ;; 9339 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9340 # Portland Group compilers (*not* the Pentium gcc compiler, 9341 # which looks to be a dead project) 9342 lt_prog_compiler_wl='-Wl,' 9343 lt_prog_compiler_pic='-fpic' 9344 lt_prog_compiler_static='-Bstatic' 9345 ;; 9346 ccc*) 9347 lt_prog_compiler_wl='-Wl,' 9348 # All Alpha code is PIC. 9349 lt_prog_compiler_static='-non_shared' 9350 ;; 9351 xl* | bgxl* | bgf* | mpixl*) 9352 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9353 lt_prog_compiler_wl='-Wl,' 9354 lt_prog_compiler_pic='-qpic' 9355 lt_prog_compiler_static='-qstaticlink' 9356 ;; 9357 *) 9358 case `$CC -V 2>&1 | sed 5q` in 9359 *Sun\ F* | *Sun*Fortran*) 9360 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9361 lt_prog_compiler_pic='-KPIC' 9362 lt_prog_compiler_static='-Bstatic' 9363 lt_prog_compiler_wl='' 9364 ;; 9365 *Sun\ C*) 9366 # Sun C 5.9 9367 lt_prog_compiler_pic='-KPIC' 9368 lt_prog_compiler_static='-Bstatic' 9369 lt_prog_compiler_wl='-Wl,' 9370 ;; 9371 esac 9372 ;; 9373 esac 9374 ;; 9375 9376 newsos6) 9377 lt_prog_compiler_pic='-KPIC' 9378 lt_prog_compiler_static='-Bstatic' 9379 ;; 9380 9381 *nto* | *qnx*) 9382 # QNX uses GNU C++, but need to define -shared option too, otherwise 9383 # it will coredump. 9384 lt_prog_compiler_pic='-fPIC -shared' 9385 ;; 9386 9387 osf3* | osf4* | osf5*) 9388 lt_prog_compiler_wl='-Wl,' 9389 # All OSF/1 code is PIC. 9390 lt_prog_compiler_static='-non_shared' 9391 ;; 9392 9393 rdos*) 9394 lt_prog_compiler_static='-non_shared' 9395 ;; 9396 9397 solaris*) 9398 lt_prog_compiler_pic='-KPIC' 9399 lt_prog_compiler_static='-Bstatic' 9400 case $cc_basename in 9401 f77* | f90* | f95*) 9402 lt_prog_compiler_wl='-Qoption ld ';; 9403 *) 9404 lt_prog_compiler_wl='-Wl,';; 9405 esac 9406 ;; 9407 9408 sunos4*) 9409 lt_prog_compiler_wl='-Qoption ld ' 9410 lt_prog_compiler_pic='-PIC' 9411 lt_prog_compiler_static='-Bstatic' 9412 ;; 9413 9414 sysv4 | sysv4.2uw2* | sysv4.3*) 9415 lt_prog_compiler_wl='-Wl,' 9416 lt_prog_compiler_pic='-KPIC' 9417 lt_prog_compiler_static='-Bstatic' 9418 ;; 9419 9420 sysv4*MP*) 9421 if test -d /usr/nec ;then 9422 lt_prog_compiler_pic='-Kconform_pic' 9423 lt_prog_compiler_static='-Bstatic' 9424 fi 9425 ;; 9426 9427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9428 lt_prog_compiler_wl='-Wl,' 9429 lt_prog_compiler_pic='-KPIC' 9430 lt_prog_compiler_static='-Bstatic' 9431 ;; 9432 9433 unicos*) 9434 lt_prog_compiler_wl='-Wl,' 9435 lt_prog_compiler_can_build_shared=no 9436 ;; 9437 9438 uts4*) 9439 lt_prog_compiler_pic='-pic' 9440 lt_prog_compiler_static='-Bstatic' 9441 ;; 9442 9443 *) 9444 lt_prog_compiler_can_build_shared=no 9445 ;; 9446 esac 9447 fi 9448 9449case $host_os in 9450 # For platforms which do not support PIC, -DPIC is meaningless: 9451 *djgpp*) 9452 lt_prog_compiler_pic= 9453 ;; 9454 *) 9455 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9456 ;; 9457esac 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9459$as_echo "$lt_prog_compiler_pic" >&6; } 9460 9461 9462 9463 9464 9465 9466# 9467# Check to make sure the PIC flag actually works. 9468# 9469if test -n "$lt_prog_compiler_pic"; then 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9471$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9472if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 lt_cv_prog_compiler_pic_works=no 9476 ac_outfile=conftest.$ac_objext 9477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9479 # Insert the option either (1) after the last *FLAGS variable, or 9480 # (2) before a word containing "conftest.", or (3) at the end. 9481 # Note that $ac_compile itself does not contain backslashes and begins 9482 # with a dollar sign (not a hyphen), so the echo should work correctly. 9483 # The option is referenced via a variable to avoid confusing sed. 9484 lt_compile=`echo "$ac_compile" | $SED \ 9485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9487 -e 's:$: $lt_compiler_flag:'` 9488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9489 (eval "$lt_compile" 2>conftest.err) 9490 ac_status=$? 9491 cat conftest.err >&5 9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9493 if (exit $ac_status) && test -s "$ac_outfile"; then 9494 # The compiler can only warn and ignore the option if not recognized 9495 # So say no if there are warnings other than the usual output. 9496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9499 lt_cv_prog_compiler_pic_works=yes 9500 fi 9501 fi 9502 $RM conftest* 9503 9504fi 9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9506$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9507 9508if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9509 case $lt_prog_compiler_pic in 9510 "" | " "*) ;; 9511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9512 esac 9513else 9514 lt_prog_compiler_pic= 9515 lt_prog_compiler_can_build_shared=no 9516fi 9517 9518fi 9519 9520 9521 9522 9523 9524 9525# 9526# Check to make sure the static flag actually works. 9527# 9528wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9530$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9531if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 lt_cv_prog_compiler_static_works=no 9535 save_LDFLAGS="$LDFLAGS" 9536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9537 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9539 # The linker can only warn and ignore the option if not recognized 9540 # So say no if there are warnings 9541 if test -s conftest.err; then 9542 # Append any errors to the config.log. 9543 cat conftest.err 1>&5 9544 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9546 if diff conftest.exp conftest.er2 >/dev/null; then 9547 lt_cv_prog_compiler_static_works=yes 9548 fi 9549 else 9550 lt_cv_prog_compiler_static_works=yes 9551 fi 9552 fi 9553 $RM -r conftest* 9554 LDFLAGS="$save_LDFLAGS" 9555 9556fi 9557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9558$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9559 9560if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9561 : 9562else 9563 lt_prog_compiler_static= 9564fi 9565 9566 9567 9568 9569 9570 9571 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9573$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9574if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9575 $as_echo_n "(cached) " >&6 9576else 9577 lt_cv_prog_compiler_c_o=no 9578 $RM -r conftest 2>/dev/null 9579 mkdir conftest 9580 cd conftest 9581 mkdir out 9582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9583 9584 lt_compiler_flag="-o out/conftest2.$ac_objext" 9585 # Insert the option either (1) after the last *FLAGS variable, or 9586 # (2) before a word containing "conftest.", or (3) at the end. 9587 # Note that $ac_compile itself does not contain backslashes and begins 9588 # with a dollar sign (not a hyphen), so the echo should work correctly. 9589 lt_compile=`echo "$ac_compile" | $SED \ 9590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9592 -e 's:$: $lt_compiler_flag:'` 9593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9594 (eval "$lt_compile" 2>out/conftest.err) 9595 ac_status=$? 9596 cat out/conftest.err >&5 9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9598 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9599 then 9600 # The compiler can only warn and ignore the option if not recognized 9601 # So say no if there are warnings 9602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9605 lt_cv_prog_compiler_c_o=yes 9606 fi 9607 fi 9608 chmod u+w . 2>&5 9609 $RM conftest* 9610 # SGI C++ compiler will create directory out/ii_files/ for 9611 # template instantiation 9612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9613 $RM out/* && rmdir out 9614 cd .. 9615 $RM -r conftest 9616 $RM conftest* 9617 9618fi 9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9620$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9621 9622 9623 9624 9625 9626 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9628$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9629if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9630 $as_echo_n "(cached) " >&6 9631else 9632 lt_cv_prog_compiler_c_o=no 9633 $RM -r conftest 2>/dev/null 9634 mkdir conftest 9635 cd conftest 9636 mkdir out 9637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9638 9639 lt_compiler_flag="-o out/conftest2.$ac_objext" 9640 # Insert the option either (1) after the last *FLAGS variable, or 9641 # (2) before a word containing "conftest.", or (3) at the end. 9642 # Note that $ac_compile itself does not contain backslashes and begins 9643 # with a dollar sign (not a hyphen), so the echo should work correctly. 9644 lt_compile=`echo "$ac_compile" | $SED \ 9645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9647 -e 's:$: $lt_compiler_flag:'` 9648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9649 (eval "$lt_compile" 2>out/conftest.err) 9650 ac_status=$? 9651 cat out/conftest.err >&5 9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9653 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9654 then 9655 # The compiler can only warn and ignore the option if not recognized 9656 # So say no if there are warnings 9657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9658 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9659 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9660 lt_cv_prog_compiler_c_o=yes 9661 fi 9662 fi 9663 chmod u+w . 2>&5 9664 $RM conftest* 9665 # SGI C++ compiler will create directory out/ii_files/ for 9666 # template instantiation 9667 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9668 $RM out/* && rmdir out 9669 cd .. 9670 $RM -r conftest 9671 $RM conftest* 9672 9673fi 9674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9675$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9676 9677 9678 9679 9680hard_links="nottested" 9681if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9682 # do not overwrite the value of need_locks provided by the user 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9684$as_echo_n "checking if we can lock with hard links... " >&6; } 9685 hard_links=yes 9686 $RM conftest* 9687 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9688 touch conftest.a 9689 ln conftest.a conftest.b 2>&5 || hard_links=no 9690 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9692$as_echo "$hard_links" >&6; } 9693 if test "$hard_links" = no; then 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9695$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9696 need_locks=warn 9697 fi 9698else 9699 need_locks=no 9700fi 9701 9702 9703 9704 9705 9706 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9708$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9709 9710 runpath_var= 9711 allow_undefined_flag= 9712 always_export_symbols=no 9713 archive_cmds= 9714 archive_expsym_cmds= 9715 compiler_needs_object=no 9716 enable_shared_with_static_runtimes=no 9717 export_dynamic_flag_spec= 9718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9719 hardcode_automatic=no 9720 hardcode_direct=no 9721 hardcode_direct_absolute=no 9722 hardcode_libdir_flag_spec= 9723 hardcode_libdir_flag_spec_ld= 9724 hardcode_libdir_separator= 9725 hardcode_minus_L=no 9726 hardcode_shlibpath_var=unsupported 9727 inherit_rpath=no 9728 link_all_deplibs=unknown 9729 module_cmds= 9730 module_expsym_cmds= 9731 old_archive_from_new_cmds= 9732 old_archive_from_expsyms_cmds= 9733 thread_safe_flag_spec= 9734 whole_archive_flag_spec= 9735 # include_expsyms should be a list of space-separated symbols to be *always* 9736 # included in the symbol list 9737 include_expsyms= 9738 # exclude_expsyms can be an extended regexp of symbols to exclude 9739 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9741 # as well as any symbol that contains `d'. 9742 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9744 # platforms (ab)use it in PIC code, but their linkers get confused if 9745 # the symbol is explicitly referenced. Since portable code cannot 9746 # rely on this symbol name, it's probably fine to never include it in 9747 # preloaded symbol tables. 9748 # Exclude shared library initialization/finalization symbols. 9749 extract_expsyms_cmds= 9750 9751 case $host_os in 9752 cygwin* | mingw* | pw32* | cegcc*) 9753 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9754 # When not using gcc, we currently assume that we are using 9755 # Microsoft Visual C++. 9756 if test "$GCC" != yes; then 9757 with_gnu_ld=no 9758 fi 9759 ;; 9760 interix*) 9761 # we just hope/assume this is gcc and not c89 (= MSVC++) 9762 with_gnu_ld=yes 9763 ;; 9764 openbsd*) 9765 with_gnu_ld=no 9766 ;; 9767 esac 9768 9769 ld_shlibs=yes 9770 9771 # On some targets, GNU ld is compatible enough with the native linker 9772 # that we're better off using the native interface for both. 9773 lt_use_gnu_ld_interface=no 9774 if test "$with_gnu_ld" = yes; then 9775 case $host_os in 9776 aix*) 9777 # The AIX port of GNU ld has always aspired to compatibility 9778 # with the native linker. However, as the warning in the GNU ld 9779 # block says, versions before 2.19.5* couldn't really create working 9780 # shared libraries, regardless of the interface used. 9781 case `$LD -v 2>&1` in 9782 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9783 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9784 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9785 *) 9786 lt_use_gnu_ld_interface=yes 9787 ;; 9788 esac 9789 ;; 9790 *) 9791 lt_use_gnu_ld_interface=yes 9792 ;; 9793 esac 9794 fi 9795 9796 if test "$lt_use_gnu_ld_interface" = yes; then 9797 # If archive_cmds runs LD, not CC, wlarc should be empty 9798 wlarc='${wl}' 9799 9800 # Set some defaults for GNU ld with shared library support. These 9801 # are reset later if shared libraries are not supported. Putting them 9802 # here allows them to be overridden if necessary. 9803 runpath_var=LD_RUN_PATH 9804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9805 export_dynamic_flag_spec='${wl}--export-dynamic' 9806 # ancient GNU ld didn't support --whole-archive et. al. 9807 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9808 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9809 else 9810 whole_archive_flag_spec= 9811 fi 9812 supports_anon_versioning=no 9813 case `$LD -v 2>&1` in 9814 *GNU\ gold*) supports_anon_versioning=yes ;; 9815 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9818 *\ 2.11.*) ;; # other 2.11 versions 9819 *) supports_anon_versioning=yes ;; 9820 esac 9821 9822 # See if GNU ld supports shared libraries. 9823 case $host_os in 9824 aix[3-9]*) 9825 # On AIX/PPC, the GNU linker is very broken 9826 if test "$host_cpu" != ia64; then 9827 ld_shlibs=no 9828 cat <<_LT_EOF 1>&2 9829 9830*** Warning: the GNU linker, at least up to release 2.19, is reported 9831*** to be unable to reliably create shared libraries on AIX. 9832*** Therefore, libtool is disabling shared libraries support. If you 9833*** really care for shared libraries, you may want to install binutils 9834*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9835*** You will then need to restart the configuration process. 9836 9837_LT_EOF 9838 fi 9839 ;; 9840 9841 amigaos*) 9842 case $host_cpu in 9843 powerpc) 9844 # see comment about AmigaOS4 .so support 9845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9846 archive_expsym_cmds='' 9847 ;; 9848 m68k) 9849 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)' 9850 hardcode_libdir_flag_spec='-L$libdir' 9851 hardcode_minus_L=yes 9852 ;; 9853 esac 9854 ;; 9855 9856 beos*) 9857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9858 allow_undefined_flag=unsupported 9859 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9860 # support --undefined. This deserves some investigation. FIXME 9861 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9862 else 9863 ld_shlibs=no 9864 fi 9865 ;; 9866 9867 cygwin* | mingw* | pw32* | cegcc*) 9868 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9869 # as there is no search path for DLLs. 9870 hardcode_libdir_flag_spec='-L$libdir' 9871 export_dynamic_flag_spec='${wl}--export-all-symbols' 9872 allow_undefined_flag=unsupported 9873 always_export_symbols=no 9874 enable_shared_with_static_runtimes=yes 9875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9876 9877 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9879 # If the export-symbols file already is a .def file (1st line 9880 # is EXPORTS), use it as is; otherwise, prepend... 9881 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9882 cp $export_symbols $output_objdir/$soname.def; 9883 else 9884 echo EXPORTS > $output_objdir/$soname.def; 9885 cat $export_symbols >> $output_objdir/$soname.def; 9886 fi~ 9887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9888 else 9889 ld_shlibs=no 9890 fi 9891 ;; 9892 9893 haiku*) 9894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9895 link_all_deplibs=yes 9896 ;; 9897 9898 interix[3-9]*) 9899 hardcode_direct=no 9900 hardcode_shlibpath_var=no 9901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9902 export_dynamic_flag_spec='${wl}-E' 9903 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9904 # Instead, shared libraries are loaded at an image base (0x10000000 by 9905 # default) and relocated if they conflict, which is a slow very memory 9906 # consuming and fragmenting process. To avoid this, we pick a random, 9907 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9908 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9909 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9910 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9911 ;; 9912 9913 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9914 tmp_diet=no 9915 if test "$host_os" = linux-dietlibc; then 9916 case $cc_basename in 9917 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9918 esac 9919 fi 9920 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9921 && test "$tmp_diet" = no 9922 then 9923 tmp_addflag=' $pic_flag' 9924 tmp_sharedflag='-shared' 9925 case $cc_basename,$host_cpu in 9926 pgcc*) # Portland Group C compiler 9927 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9928 tmp_addflag=' $pic_flag' 9929 ;; 9930 pgf77* | pgf90* | pgf95* | pgfortran*) 9931 # Portland Group f77 and f90 compilers 9932 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9933 tmp_addflag=' $pic_flag -Mnomain' ;; 9934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9935 tmp_addflag=' -i_dynamic' ;; 9936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9937 tmp_addflag=' -i_dynamic -nofor_main' ;; 9938 ifc* | ifort*) # Intel Fortran compiler 9939 tmp_addflag=' -nofor_main' ;; 9940 lf95*) # Lahey Fortran 8.1 9941 whole_archive_flag_spec= 9942 tmp_sharedflag='--shared' ;; 9943 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9944 tmp_sharedflag='-qmkshrobj' 9945 tmp_addflag= ;; 9946 nvcc*) # Cuda Compiler Driver 2.2 9947 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9948 compiler_needs_object=yes 9949 ;; 9950 esac 9951 case `$CC -V 2>&1 | sed 5q` in 9952 *Sun\ C*) # Sun C 5.9 9953 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9954 compiler_needs_object=yes 9955 tmp_sharedflag='-G' ;; 9956 *Sun\ F*) # Sun Fortran 8.3 9957 tmp_sharedflag='-G' ;; 9958 esac 9959 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9960 9961 if test "x$supports_anon_versioning" = xyes; then 9962 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9964 echo "local: *; };" >> $output_objdir/$libname.ver~ 9965 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9966 fi 9967 9968 case $cc_basename in 9969 xlf* | bgf* | bgxlf* | mpixlf*) 9970 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9971 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9972 hardcode_libdir_flag_spec= 9973 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9974 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9975 if test "x$supports_anon_versioning" = xyes; then 9976 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9978 echo "local: *; };" >> $output_objdir/$libname.ver~ 9979 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9980 fi 9981 ;; 9982 esac 9983 else 9984 ld_shlibs=no 9985 fi 9986 ;; 9987 9988 netbsd*) 9989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9990 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9991 wlarc= 9992 else 9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9995 fi 9996 ;; 9997 9998 solaris*) 9999 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10000 ld_shlibs=no 10001 cat <<_LT_EOF 1>&2 10002 10003*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10004*** create shared libraries on Solaris systems. Therefore, libtool 10005*** is disabling shared libraries support. We urge you to upgrade GNU 10006*** binutils to release 2.9.1 or newer. Another option is to modify 10007*** your PATH or compiler configuration so that the native linker is 10008*** used, and then restart. 10009 10010_LT_EOF 10011 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10014 else 10015 ld_shlibs=no 10016 fi 10017 ;; 10018 10019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10020 case `$LD -v 2>&1` in 10021 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10022 ld_shlibs=no 10023 cat <<_LT_EOF 1>&2 10024 10025*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10026*** reliably create shared libraries on SCO systems. Therefore, libtool 10027*** is disabling shared libraries support. We urge you to upgrade GNU 10028*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10029*** your PATH or compiler configuration so that the native linker is 10030*** used, and then restart. 10031 10032_LT_EOF 10033 ;; 10034 *) 10035 # For security reasons, it is highly recommended that you always 10036 # use absolute paths for naming shared libraries, and exclude the 10037 # DT_RUNPATH tag from executables and libraries. But doing so 10038 # requires that you compile everything twice, which is a pain. 10039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10043 else 10044 ld_shlibs=no 10045 fi 10046 ;; 10047 esac 10048 ;; 10049 10050 sunos4*) 10051 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10052 wlarc= 10053 hardcode_direct=yes 10054 hardcode_shlibpath_var=no 10055 ;; 10056 10057 *) 10058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10061 else 10062 ld_shlibs=no 10063 fi 10064 ;; 10065 esac 10066 10067 if test "$ld_shlibs" = no; then 10068 runpath_var= 10069 hardcode_libdir_flag_spec= 10070 export_dynamic_flag_spec= 10071 whole_archive_flag_spec= 10072 fi 10073 else 10074 # PORTME fill in a description of your system's linker (not GNU ld) 10075 case $host_os in 10076 aix3*) 10077 allow_undefined_flag=unsupported 10078 always_export_symbols=yes 10079 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' 10080 # Note: this linker hardcodes the directories in LIBPATH if there 10081 # are no directories specified by -L. 10082 hardcode_minus_L=yes 10083 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10084 # Neither direct hardcoding nor static linking is supported with a 10085 # broken collect2. 10086 hardcode_direct=unsupported 10087 fi 10088 ;; 10089 10090 aix[4-9]*) 10091 if test "$host_cpu" = ia64; then 10092 # On IA64, the linker does run time linking by default, so we don't 10093 # have to do anything special. 10094 aix_use_runtimelinking=no 10095 exp_sym_flag='-Bexport' 10096 no_entry_flag="" 10097 else 10098 # If we're using GNU nm, then we don't want the "-C" option. 10099 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10100 # Also, AIX nm treats weak defined symbols like other global 10101 # defined symbols, whereas GNU nm marks them as "W". 10102 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10103 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10104 else 10105 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' 10106 fi 10107 aix_use_runtimelinking=no 10108 10109 # Test if we are trying to use run time linking or normal 10110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10111 # need to do runtime linking. 10112 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10113 for ld_flag in $LDFLAGS; do 10114 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10115 aix_use_runtimelinking=yes 10116 break 10117 fi 10118 done 10119 ;; 10120 esac 10121 10122 exp_sym_flag='-bexport' 10123 no_entry_flag='-bnoentry' 10124 fi 10125 10126 # When large executables or shared objects are built, AIX ld can 10127 # have problems creating the table of contents. If linking a library 10128 # or program results in "error TOC overflow" add -mminimal-toc to 10129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10131 10132 archive_cmds='' 10133 hardcode_direct=yes 10134 hardcode_direct_absolute=yes 10135 hardcode_libdir_separator=':' 10136 link_all_deplibs=yes 10137 file_list_spec='${wl}-f,' 10138 10139 if test "$GCC" = yes; then 10140 case $host_os in aix4.[012]|aix4.[012].*) 10141 # We only want to do this on AIX 4.2 and lower, the check 10142 # below for broken collect2 doesn't work under 4.3+ 10143 collect2name=`${CC} -print-prog-name=collect2` 10144 if test -f "$collect2name" && 10145 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10146 then 10147 # We have reworked collect2 10148 : 10149 else 10150 # We have old collect2 10151 hardcode_direct=unsupported 10152 # It fails to find uninstalled libraries when the uninstalled 10153 # path is not listed in the libpath. Setting hardcode_minus_L 10154 # to unsupported forces relinking 10155 hardcode_minus_L=yes 10156 hardcode_libdir_flag_spec='-L$libdir' 10157 hardcode_libdir_separator= 10158 fi 10159 ;; 10160 esac 10161 shared_flag='-shared' 10162 if test "$aix_use_runtimelinking" = yes; then 10163 shared_flag="$shared_flag "'${wl}-G' 10164 fi 10165 else 10166 # not using gcc 10167 if test "$host_cpu" = ia64; then 10168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10169 # chokes on -Wl,-G. The following line is correct: 10170 shared_flag='-G' 10171 else 10172 if test "$aix_use_runtimelinking" = yes; then 10173 shared_flag='${wl}-G' 10174 else 10175 shared_flag='${wl}-bM:SRE' 10176 fi 10177 fi 10178 fi 10179 10180 export_dynamic_flag_spec='${wl}-bexpall' 10181 # It seems that -bexpall does not export symbols beginning with 10182 # underscore (_), so it is better to generate a list of symbols to export. 10183 always_export_symbols=yes 10184 if test "$aix_use_runtimelinking" = yes; then 10185 # Warning - without using the other runtime loading flags (-brtl), 10186 # -berok will link without error, but may produce a broken library. 10187 allow_undefined_flag='-berok' 10188 # Determine the default libpath from the value encoded in an 10189 # empty executable. 10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10191/* end confdefs.h. */ 10192 10193int 10194main () 10195{ 10196 10197 ; 10198 return 0; 10199} 10200_ACEOF 10201if ac_fn_c_try_link "$LINENO"; then : 10202 10203lt_aix_libpath_sed=' 10204 /Import File Strings/,/^$/ { 10205 /^0/ { 10206 s/^0 *\(.*\)$/\1/ 10207 p 10208 } 10209 }' 10210aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10211# Check for a 64-bit object if we didn't find anything. 10212if test -z "$aix_libpath"; then 10213 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10214fi 10215fi 10216rm -f core conftest.err conftest.$ac_objext \ 10217 conftest$ac_exeext conftest.$ac_ext 10218if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10219 10220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10221 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10222 else 10223 if test "$host_cpu" = ia64; then 10224 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10225 allow_undefined_flag="-z nodefs" 10226 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10227 else 10228 # Determine the default libpath from the value encoded in an 10229 # empty executable. 10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10231/* end confdefs.h. */ 10232 10233int 10234main () 10235{ 10236 10237 ; 10238 return 0; 10239} 10240_ACEOF 10241if ac_fn_c_try_link "$LINENO"; then : 10242 10243lt_aix_libpath_sed=' 10244 /Import File Strings/,/^$/ { 10245 /^0/ { 10246 s/^0 *\(.*\)$/\1/ 10247 p 10248 } 10249 }' 10250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10251# Check for a 64-bit object if we didn't find anything. 10252if test -z "$aix_libpath"; then 10253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10254fi 10255fi 10256rm -f core conftest.err conftest.$ac_objext \ 10257 conftest$ac_exeext conftest.$ac_ext 10258if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10259 10260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10261 # Warning - without using the other run time loading flags, 10262 # -berok will link without error, but may produce a broken library. 10263 no_undefined_flag=' ${wl}-bernotok' 10264 allow_undefined_flag=' ${wl}-berok' 10265 if test "$with_gnu_ld" = yes; then 10266 # We only use this code for GNU lds that support --whole-archive. 10267 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10268 else 10269 # Exported symbols can be pulled into shared objects from archives 10270 whole_archive_flag_spec='$convenience' 10271 fi 10272 archive_cmds_need_lc=yes 10273 # This is similar to how AIX traditionally builds its shared libraries. 10274 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10275 fi 10276 fi 10277 ;; 10278 10279 amigaos*) 10280 case $host_cpu in 10281 powerpc) 10282 # see comment about AmigaOS4 .so support 10283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10284 archive_expsym_cmds='' 10285 ;; 10286 m68k) 10287 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)' 10288 hardcode_libdir_flag_spec='-L$libdir' 10289 hardcode_minus_L=yes 10290 ;; 10291 esac 10292 ;; 10293 10294 bsdi[45]*) 10295 export_dynamic_flag_spec=-rdynamic 10296 ;; 10297 10298 cygwin* | mingw* | pw32* | cegcc*) 10299 # When not using gcc, we currently assume that we are using 10300 # Microsoft Visual C++. 10301 # hardcode_libdir_flag_spec is actually meaningless, as there is 10302 # no search path for DLLs. 10303 hardcode_libdir_flag_spec=' ' 10304 allow_undefined_flag=unsupported 10305 # Tell ltmain to make .lib files, not .a files. 10306 libext=lib 10307 # Tell ltmain to make .dll files, not .so files. 10308 shrext_cmds=".dll" 10309 # FIXME: Setting linknames here is a bad hack. 10310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10311 # The linker will automatically build a .lib file if we build a DLL. 10312 old_archive_from_new_cmds='true' 10313 # FIXME: Should let the user specify the lib program. 10314 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10315 fix_srcfile_path='`cygpath -w "$srcfile"`' 10316 enable_shared_with_static_runtimes=yes 10317 ;; 10318 10319 darwin* | rhapsody*) 10320 10321 10322 archive_cmds_need_lc=no 10323 hardcode_direct=no 10324 hardcode_automatic=yes 10325 hardcode_shlibpath_var=unsupported 10326 if test "$lt_cv_ld_force_load" = "yes"; then 10327 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10328 else 10329 whole_archive_flag_spec='' 10330 fi 10331 link_all_deplibs=yes 10332 allow_undefined_flag="$_lt_dar_allow_undefined" 10333 case $cc_basename in 10334 ifort*) _lt_dar_can_shared=yes ;; 10335 *) _lt_dar_can_shared=$GCC ;; 10336 esac 10337 if test "$_lt_dar_can_shared" = "yes"; then 10338 output_verbose_link_cmd=func_echo_all 10339 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10340 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10341 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10342 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 10343 10344 else 10345 ld_shlibs=no 10346 fi 10347 10348 ;; 10349 10350 dgux*) 10351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10352 hardcode_libdir_flag_spec='-L$libdir' 10353 hardcode_shlibpath_var=no 10354 ;; 10355 10356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10357 # support. Future versions do this automatically, but an explicit c++rt0.o 10358 # does not break anything, and helps significantly (at the cost of a little 10359 # extra space). 10360 freebsd2.2*) 10361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10362 hardcode_libdir_flag_spec='-R$libdir' 10363 hardcode_direct=yes 10364 hardcode_shlibpath_var=no 10365 ;; 10366 10367 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10368 freebsd2.*) 10369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10370 hardcode_direct=yes 10371 hardcode_minus_L=yes 10372 hardcode_shlibpath_var=no 10373 ;; 10374 10375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10376 freebsd* | dragonfly*) 10377 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10378 hardcode_libdir_flag_spec='-R$libdir' 10379 hardcode_direct=yes 10380 hardcode_shlibpath_var=no 10381 ;; 10382 10383 hpux9*) 10384 if test "$GCC" = yes; then 10385 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' 10386 else 10387 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' 10388 fi 10389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10390 hardcode_libdir_separator=: 10391 hardcode_direct=yes 10392 10393 # hardcode_minus_L: Not really in the search PATH, 10394 # but as the default location of the library. 10395 hardcode_minus_L=yes 10396 export_dynamic_flag_spec='${wl}-E' 10397 ;; 10398 10399 hpux10*) 10400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10402 else 10403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10404 fi 10405 if test "$with_gnu_ld" = no; then 10406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10407 hardcode_libdir_flag_spec_ld='+b $libdir' 10408 hardcode_libdir_separator=: 10409 hardcode_direct=yes 10410 hardcode_direct_absolute=yes 10411 export_dynamic_flag_spec='${wl}-E' 10412 # hardcode_minus_L: Not really in the search PATH, 10413 # but as the default location of the library. 10414 hardcode_minus_L=yes 10415 fi 10416 ;; 10417 10418 hpux11*) 10419 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10420 case $host_cpu in 10421 hppa*64*) 10422 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10423 ;; 10424 ia64*) 10425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10426 ;; 10427 *) 10428 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10429 ;; 10430 esac 10431 else 10432 case $host_cpu in 10433 hppa*64*) 10434 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10435 ;; 10436 ia64*) 10437 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10438 ;; 10439 *) 10440 10441 # Older versions of the 11.00 compiler do not understand -b yet 10442 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10444$as_echo_n "checking if $CC understands -b... " >&6; } 10445if test "${lt_cv_prog_compiler__b+set}" = set; then : 10446 $as_echo_n "(cached) " >&6 10447else 10448 lt_cv_prog_compiler__b=no 10449 save_LDFLAGS="$LDFLAGS" 10450 LDFLAGS="$LDFLAGS -b" 10451 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10453 # The linker can only warn and ignore the option if not recognized 10454 # So say no if there are warnings 10455 if test -s conftest.err; then 10456 # Append any errors to the config.log. 10457 cat conftest.err 1>&5 10458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10460 if diff conftest.exp conftest.er2 >/dev/null; then 10461 lt_cv_prog_compiler__b=yes 10462 fi 10463 else 10464 lt_cv_prog_compiler__b=yes 10465 fi 10466 fi 10467 $RM -r conftest* 10468 LDFLAGS="$save_LDFLAGS" 10469 10470fi 10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10472$as_echo "$lt_cv_prog_compiler__b" >&6; } 10473 10474if test x"$lt_cv_prog_compiler__b" = xyes; then 10475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10476else 10477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10478fi 10479 10480 ;; 10481 esac 10482 fi 10483 if test "$with_gnu_ld" = no; then 10484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10485 hardcode_libdir_separator=: 10486 10487 case $host_cpu in 10488 hppa*64*|ia64*) 10489 hardcode_direct=no 10490 hardcode_shlibpath_var=no 10491 ;; 10492 *) 10493 hardcode_direct=yes 10494 hardcode_direct_absolute=yes 10495 export_dynamic_flag_spec='${wl}-E' 10496 10497 # hardcode_minus_L: Not really in the search PATH, 10498 # but as the default location of the library. 10499 hardcode_minus_L=yes 10500 ;; 10501 esac 10502 fi 10503 ;; 10504 10505 irix5* | irix6* | nonstopux*) 10506 if test "$GCC" = yes; then 10507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10508 # Try to use the -exported_symbol ld option, if it does not 10509 # work, assume that -exports_file does not work either and 10510 # implicitly export all symbols. 10511 save_LDFLAGS="$LDFLAGS" 10512 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10514/* end confdefs.h. */ 10515int foo(void) {} 10516_ACEOF 10517if ac_fn_c_try_link "$LINENO"; then : 10518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10519 10520fi 10521rm -f core conftest.err conftest.$ac_objext \ 10522 conftest$ac_exeext conftest.$ac_ext 10523 LDFLAGS="$save_LDFLAGS" 10524 else 10525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10526 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10527 fi 10528 archive_cmds_need_lc='no' 10529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10530 hardcode_libdir_separator=: 10531 inherit_rpath=yes 10532 link_all_deplibs=yes 10533 ;; 10534 10535 netbsd*) 10536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10538 else 10539 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10540 fi 10541 hardcode_libdir_flag_spec='-R$libdir' 10542 hardcode_direct=yes 10543 hardcode_shlibpath_var=no 10544 ;; 10545 10546 newsos6) 10547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10548 hardcode_direct=yes 10549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10550 hardcode_libdir_separator=: 10551 hardcode_shlibpath_var=no 10552 ;; 10553 10554 *nto* | *qnx*) 10555 ;; 10556 10557 openbsd*) 10558 if test -f /usr/libexec/ld.so; then 10559 hardcode_direct=yes 10560 hardcode_shlibpath_var=no 10561 hardcode_direct_absolute=yes 10562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10564 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10566 export_dynamic_flag_spec='${wl}-E' 10567 else 10568 case $host_os in 10569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10571 hardcode_libdir_flag_spec='-R$libdir' 10572 ;; 10573 *) 10574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10576 ;; 10577 esac 10578 fi 10579 else 10580 ld_shlibs=no 10581 fi 10582 ;; 10583 10584 os2*) 10585 hardcode_libdir_flag_spec='-L$libdir' 10586 hardcode_minus_L=yes 10587 allow_undefined_flag=unsupported 10588 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' 10589 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10590 ;; 10591 10592 osf3*) 10593 if test "$GCC" = yes; then 10594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10595 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10596 else 10597 allow_undefined_flag=' -expect_unresolved \*' 10598 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10599 fi 10600 archive_cmds_need_lc='no' 10601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10602 hardcode_libdir_separator=: 10603 ;; 10604 10605 osf4* | osf5*) # as osf3* with the addition of -msym flag 10606 if test "$GCC" = yes; then 10607 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10608 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10610 else 10611 allow_undefined_flag=' -expect_unresolved \*' 10612 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10613 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10614 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10615 10616 # Both c and cxx compiler support -rpath directly 10617 hardcode_libdir_flag_spec='-rpath $libdir' 10618 fi 10619 archive_cmds_need_lc='no' 10620 hardcode_libdir_separator=: 10621 ;; 10622 10623 solaris*) 10624 no_undefined_flag=' -z defs' 10625 if test "$GCC" = yes; then 10626 wlarc='${wl}' 10627 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10629 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10630 else 10631 case `$CC -V 2>&1` in 10632 *"Compilers 5.0"*) 10633 wlarc='' 10634 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10636 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10637 ;; 10638 *) 10639 wlarc='${wl}' 10640 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10642 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10643 ;; 10644 esac 10645 fi 10646 hardcode_libdir_flag_spec='-R$libdir' 10647 hardcode_shlibpath_var=no 10648 case $host_os in 10649 solaris2.[0-5] | solaris2.[0-5].*) ;; 10650 *) 10651 # The compiler driver will combine and reorder linker options, 10652 # but understands `-z linker_flag'. GCC discards it without `$wl', 10653 # but is careful enough not to reorder. 10654 # Supported since Solaris 2.6 (maybe 2.5.1?) 10655 if test "$GCC" = yes; then 10656 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10657 else 10658 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10659 fi 10660 ;; 10661 esac 10662 link_all_deplibs=yes 10663 ;; 10664 10665 sunos4*) 10666 if test "x$host_vendor" = xsequent; then 10667 # Use $CC to link under sequent, because it throws in some extra .o 10668 # files that make .init and .fini sections work. 10669 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10670 else 10671 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10672 fi 10673 hardcode_libdir_flag_spec='-L$libdir' 10674 hardcode_direct=yes 10675 hardcode_minus_L=yes 10676 hardcode_shlibpath_var=no 10677 ;; 10678 10679 sysv4) 10680 case $host_vendor in 10681 sni) 10682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10683 hardcode_direct=yes # is this really true??? 10684 ;; 10685 siemens) 10686 ## LD is ld it makes a PLAMLIB 10687 ## CC just makes a GrossModule. 10688 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10689 reload_cmds='$CC -r -o $output$reload_objs' 10690 hardcode_direct=no 10691 ;; 10692 motorola) 10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10694 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10695 ;; 10696 esac 10697 runpath_var='LD_RUN_PATH' 10698 hardcode_shlibpath_var=no 10699 ;; 10700 10701 sysv4.3*) 10702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10703 hardcode_shlibpath_var=no 10704 export_dynamic_flag_spec='-Bexport' 10705 ;; 10706 10707 sysv4*MP*) 10708 if test -d /usr/nec; then 10709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10710 hardcode_shlibpath_var=no 10711 runpath_var=LD_RUN_PATH 10712 hardcode_runpath_var=yes 10713 ld_shlibs=yes 10714 fi 10715 ;; 10716 10717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10718 no_undefined_flag='${wl}-z,text' 10719 archive_cmds_need_lc=no 10720 hardcode_shlibpath_var=no 10721 runpath_var='LD_RUN_PATH' 10722 10723 if test "$GCC" = yes; then 10724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10726 else 10727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10729 fi 10730 ;; 10731 10732 sysv5* | sco3.2v5* | sco5v6*) 10733 # Note: We can NOT use -z defs as we might desire, because we do not 10734 # link with -lc, and that would cause any symbols used from libc to 10735 # always be unresolved, which means just about no library would 10736 # ever link correctly. If we're not using GNU ld we use -z text 10737 # though, which does catch some bad symbols but isn't as heavy-handed 10738 # as -z defs. 10739 no_undefined_flag='${wl}-z,text' 10740 allow_undefined_flag='${wl}-z,nodefs' 10741 archive_cmds_need_lc=no 10742 hardcode_shlibpath_var=no 10743 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10744 hardcode_libdir_separator=':' 10745 link_all_deplibs=yes 10746 export_dynamic_flag_spec='${wl}-Bexport' 10747 runpath_var='LD_RUN_PATH' 10748 10749 if test "$GCC" = yes; then 10750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10752 else 10753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10755 fi 10756 ;; 10757 10758 uts4*) 10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10760 hardcode_libdir_flag_spec='-L$libdir' 10761 hardcode_shlibpath_var=no 10762 ;; 10763 10764 *) 10765 ld_shlibs=no 10766 ;; 10767 esac 10768 10769 if test x$host_vendor = xsni; then 10770 case $host in 10771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10772 export_dynamic_flag_spec='${wl}-Blargedynsym' 10773 ;; 10774 esac 10775 fi 10776 fi 10777 10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10779$as_echo "$ld_shlibs" >&6; } 10780test "$ld_shlibs" = no && can_build_shared=no 10781 10782with_gnu_ld=$with_gnu_ld 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798# 10799# Do we need to explicitly link libc? 10800# 10801case "x$archive_cmds_need_lc" in 10802x|xyes) 10803 # Assume -lc should be added 10804 archive_cmds_need_lc=yes 10805 10806 if test "$enable_shared" = yes && test "$GCC" = yes; then 10807 case $archive_cmds in 10808 *'~'*) 10809 # FIXME: we may have to deal with multi-command sequences. 10810 ;; 10811 '$CC '*) 10812 # Test whether the compiler implicitly links with -lc since on some 10813 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10814 # to ld, don't add -lc before -lgcc. 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10816$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10817if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10818 $as_echo_n "(cached) " >&6 10819else 10820 $RM conftest* 10821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10822 10823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10824 (eval $ac_compile) 2>&5 10825 ac_status=$? 10826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10827 test $ac_status = 0; } 2>conftest.err; then 10828 soname=conftest 10829 lib=conftest 10830 libobjs=conftest.$ac_objext 10831 deplibs= 10832 wl=$lt_prog_compiler_wl 10833 pic_flag=$lt_prog_compiler_pic 10834 compiler_flags=-v 10835 linker_flags=-v 10836 verstring= 10837 output_objdir=. 10838 libname=conftest 10839 lt_save_allow_undefined_flag=$allow_undefined_flag 10840 allow_undefined_flag= 10841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10842 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10843 ac_status=$? 10844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10845 test $ac_status = 0; } 10846 then 10847 lt_cv_archive_cmds_need_lc=no 10848 else 10849 lt_cv_archive_cmds_need_lc=yes 10850 fi 10851 allow_undefined_flag=$lt_save_allow_undefined_flag 10852 else 10853 cat conftest.err 1>&5 10854 fi 10855 $RM conftest* 10856 10857fi 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10859$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10860 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10861 ;; 10862 esac 10863 fi 10864 ;; 10865esac 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11024$as_echo_n "checking dynamic linker characteristics... " >&6; } 11025 11026if test "$GCC" = yes; then 11027 case $host_os in 11028 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11029 *) lt_awk_arg="/^libraries:/" ;; 11030 esac 11031 case $host_os in 11032 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11033 *) lt_sed_strip_eq="s,=/,/,g" ;; 11034 esac 11035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11036 case $lt_search_path_spec in 11037 *\;*) 11038 # if the path contains ";" then we assume it to be the separator 11039 # otherwise default to the standard path separator (i.e. ":") - it is 11040 # assumed that no part of a normal pathname contains ";" but that should 11041 # okay in the real world where ";" in dirpaths is itself problematic. 11042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11043 ;; 11044 *) 11045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11046 ;; 11047 esac 11048 # Ok, now we have the path, separated by spaces, we can step through it 11049 # and add multilib dir if necessary. 11050 lt_tmp_lt_search_path_spec= 11051 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11052 for lt_sys_path in $lt_search_path_spec; do 11053 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11055 else 11056 test -d "$lt_sys_path" && \ 11057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11058 fi 11059 done 11060 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11061BEGIN {RS=" "; FS="/|\n";} { 11062 lt_foo=""; 11063 lt_count=0; 11064 for (lt_i = NF; lt_i > 0; lt_i--) { 11065 if ($lt_i != "" && $lt_i != ".") { 11066 if ($lt_i == "..") { 11067 lt_count++; 11068 } else { 11069 if (lt_count == 0) { 11070 lt_foo="/" $lt_i lt_foo; 11071 } else { 11072 lt_count--; 11073 } 11074 } 11075 } 11076 } 11077 if (lt_foo != "") { lt_freq[lt_foo]++; } 11078 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11079}'` 11080 # AWK program above erroneously prepends '/' to C:/dos/paths 11081 # for these hosts. 11082 case $host_os in 11083 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11084 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11085 esac 11086 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11087else 11088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11089fi 11090library_names_spec= 11091libname_spec='lib$name' 11092soname_spec= 11093shrext_cmds=".so" 11094postinstall_cmds= 11095postuninstall_cmds= 11096finish_cmds= 11097finish_eval= 11098shlibpath_var= 11099shlibpath_overrides_runpath=unknown 11100version_type=none 11101dynamic_linker="$host_os ld.so" 11102sys_lib_dlsearch_path_spec="/lib /usr/lib" 11103need_lib_prefix=unknown 11104hardcode_into_libs=no 11105 11106# when you set need_version to no, make sure it does not cause -set_version 11107# flags to be left without arguments 11108need_version=unknown 11109 11110case $host_os in 11111aix3*) 11112 version_type=linux 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11114 shlibpath_var=LIBPATH 11115 11116 # AIX 3 has no versioning support, so we append a major version to the name. 11117 soname_spec='${libname}${release}${shared_ext}$major' 11118 ;; 11119 11120aix[4-9]*) 11121 version_type=linux 11122 need_lib_prefix=no 11123 need_version=no 11124 hardcode_into_libs=yes 11125 if test "$host_cpu" = ia64; then 11126 # AIX 5 supports IA64 11127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11128 shlibpath_var=LD_LIBRARY_PATH 11129 else 11130 # With GCC up to 2.95.x, collect2 would create an import file 11131 # for dependence libraries. The import file would start with 11132 # the line `#! .'. This would cause the generated library to 11133 # depend on `.', always an invalid library. This was fixed in 11134 # development snapshots of GCC prior to 3.0. 11135 case $host_os in 11136 aix4 | aix4.[01] | aix4.[01].*) 11137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11138 echo ' yes ' 11139 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11140 : 11141 else 11142 can_build_shared=no 11143 fi 11144 ;; 11145 esac 11146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11147 # soname into executable. Probably we can add versioning support to 11148 # collect2, so additional links can be useful in future. 11149 if test "$aix_use_runtimelinking" = yes; then 11150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11151 # instead of lib<name>.a to let people know that these are not 11152 # typical AIX shared libraries. 11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11154 else 11155 # We preserve .a as extension for shared libraries through AIX4.2 11156 # and later when we are not doing run time linking. 11157 library_names_spec='${libname}${release}.a $libname.a' 11158 soname_spec='${libname}${release}${shared_ext}$major' 11159 fi 11160 shlibpath_var=LIBPATH 11161 fi 11162 ;; 11163 11164amigaos*) 11165 case $host_cpu in 11166 powerpc) 11167 # Since July 2007 AmigaOS4 officially supports .so libraries. 11168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11170 ;; 11171 m68k) 11172 library_names_spec='$libname.ixlibrary $libname.a' 11173 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11174 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 11175 ;; 11176 esac 11177 ;; 11178 11179beos*) 11180 library_names_spec='${libname}${shared_ext}' 11181 dynamic_linker="$host_os ld.so" 11182 shlibpath_var=LIBRARY_PATH 11183 ;; 11184 11185bsdi[45]*) 11186 version_type=linux 11187 need_version=no 11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11189 soname_spec='${libname}${release}${shared_ext}$major' 11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11191 shlibpath_var=LD_LIBRARY_PATH 11192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11194 # the default ld.so.conf also contains /usr/contrib/lib and 11195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11196 # libtool to hard-code these into programs 11197 ;; 11198 11199cygwin* | mingw* | pw32* | cegcc*) 11200 version_type=windows 11201 shrext_cmds=".dll" 11202 need_version=no 11203 need_lib_prefix=no 11204 11205 case $GCC,$host_os in 11206 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11207 library_names_spec='$libname.dll.a' 11208 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11209 postinstall_cmds='base_file=`basename \${file}`~ 11210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11211 dldir=$destdir/`dirname \$dlpath`~ 11212 test -d \$dldir || mkdir -p \$dldir~ 11213 $install_prog $dir/$dlname \$dldir/$dlname~ 11214 chmod a+x \$dldir/$dlname~ 11215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11217 fi' 11218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11219 dlpath=$dir/\$dldll~ 11220 $RM \$dlpath' 11221 shlibpath_overrides_runpath=yes 11222 11223 case $host_os in 11224 cygwin*) 11225 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11227 11228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11229 ;; 11230 mingw* | cegcc*) 11231 # MinGW DLLs use traditional 'lib' prefix 11232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11233 ;; 11234 pw32*) 11235 # pw32 DLLs use 'pw' prefix rather than 'lib' 11236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11237 ;; 11238 esac 11239 ;; 11240 11241 *) 11242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11243 ;; 11244 esac 11245 dynamic_linker='Win32 ld.exe' 11246 # FIXME: first we should search . and the directory the executable is in 11247 shlibpath_var=PATH 11248 ;; 11249 11250darwin* | rhapsody*) 11251 dynamic_linker="$host_os dyld" 11252 version_type=darwin 11253 need_lib_prefix=no 11254 need_version=no 11255 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11256 soname_spec='${libname}${release}${major}$shared_ext' 11257 shlibpath_overrides_runpath=yes 11258 shlibpath_var=DYLD_LIBRARY_PATH 11259 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11260 11261 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11263 ;; 11264 11265dgux*) 11266 version_type=linux 11267 need_lib_prefix=no 11268 need_version=no 11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11270 soname_spec='${libname}${release}${shared_ext}$major' 11271 shlibpath_var=LD_LIBRARY_PATH 11272 ;; 11273 11274freebsd* | dragonfly*) 11275 # DragonFly does not have aout. When/if they implement a new 11276 # versioning mechanism, adjust this. 11277 if test -x /usr/bin/objformat; then 11278 objformat=`/usr/bin/objformat` 11279 else 11280 case $host_os in 11281 freebsd[23].*) objformat=aout ;; 11282 *) objformat=elf ;; 11283 esac 11284 fi 11285 version_type=freebsd-$objformat 11286 case $version_type in 11287 freebsd-elf*) 11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11289 need_version=no 11290 need_lib_prefix=no 11291 ;; 11292 freebsd-*) 11293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11294 need_version=yes 11295 ;; 11296 esac 11297 shlibpath_var=LD_LIBRARY_PATH 11298 case $host_os in 11299 freebsd2.*) 11300 shlibpath_overrides_runpath=yes 11301 ;; 11302 freebsd3.[01]* | freebsdelf3.[01]*) 11303 shlibpath_overrides_runpath=yes 11304 hardcode_into_libs=yes 11305 ;; 11306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11308 shlibpath_overrides_runpath=no 11309 hardcode_into_libs=yes 11310 ;; 11311 *) # from 4.6 on, and DragonFly 11312 shlibpath_overrides_runpath=yes 11313 hardcode_into_libs=yes 11314 ;; 11315 esac 11316 ;; 11317 11318gnu*) 11319 version_type=linux 11320 need_lib_prefix=no 11321 need_version=no 11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11323 soname_spec='${libname}${release}${shared_ext}$major' 11324 shlibpath_var=LD_LIBRARY_PATH 11325 hardcode_into_libs=yes 11326 ;; 11327 11328haiku*) 11329 version_type=linux 11330 need_lib_prefix=no 11331 need_version=no 11332 dynamic_linker="$host_os runtime_loader" 11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11334 soname_spec='${libname}${release}${shared_ext}$major' 11335 shlibpath_var=LIBRARY_PATH 11336 shlibpath_overrides_runpath=yes 11337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 11338 hardcode_into_libs=yes 11339 ;; 11340 11341hpux9* | hpux10* | hpux11*) 11342 # Give a soname corresponding to the major version so that dld.sl refuses to 11343 # link against other versions. 11344 version_type=sunos 11345 need_lib_prefix=no 11346 need_version=no 11347 case $host_cpu in 11348 ia64*) 11349 shrext_cmds='.so' 11350 hardcode_into_libs=yes 11351 dynamic_linker="$host_os dld.so" 11352 shlibpath_var=LD_LIBRARY_PATH 11353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11355 soname_spec='${libname}${release}${shared_ext}$major' 11356 if test "X$HPUX_IA64_MODE" = X32; then 11357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11358 else 11359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11360 fi 11361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11362 ;; 11363 hppa*64*) 11364 shrext_cmds='.sl' 11365 hardcode_into_libs=yes 11366 dynamic_linker="$host_os dld.sl" 11367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11370 soname_spec='${libname}${release}${shared_ext}$major' 11371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11373 ;; 11374 *) 11375 shrext_cmds='.sl' 11376 dynamic_linker="$host_os dld.sl" 11377 shlibpath_var=SHLIB_PATH 11378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11380 soname_spec='${libname}${release}${shared_ext}$major' 11381 ;; 11382 esac 11383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11384 postinstall_cmds='chmod 555 $lib' 11385 # or fails outright, so override atomically: 11386 install_override_mode=555 11387 ;; 11388 11389interix[3-9]*) 11390 version_type=linux 11391 need_lib_prefix=no 11392 need_version=no 11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11394 soname_spec='${libname}${release}${shared_ext}$major' 11395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 shlibpath_overrides_runpath=no 11398 hardcode_into_libs=yes 11399 ;; 11400 11401irix5* | irix6* | nonstopux*) 11402 case $host_os in 11403 nonstopux*) version_type=nonstopux ;; 11404 *) 11405 if test "$lt_cv_prog_gnu_ld" = yes; then 11406 version_type=linux 11407 else 11408 version_type=irix 11409 fi ;; 11410 esac 11411 need_lib_prefix=no 11412 need_version=no 11413 soname_spec='${libname}${release}${shared_ext}$major' 11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11415 case $host_os in 11416 irix5* | nonstopux*) 11417 libsuff= shlibsuff= 11418 ;; 11419 *) 11420 case $LD in # libtool.m4 will add one of these switches to LD 11421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11422 libsuff= shlibsuff= libmagic=32-bit;; 11423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11424 libsuff=32 shlibsuff=N32 libmagic=N32;; 11425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11426 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11427 *) libsuff= shlibsuff= libmagic=never-match;; 11428 esac 11429 ;; 11430 esac 11431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11432 shlibpath_overrides_runpath=no 11433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11435 hardcode_into_libs=yes 11436 ;; 11437 11438# No shared lib support for Linux oldld, aout, or coff. 11439linux*oldld* | linux*aout* | linux*coff*) 11440 dynamic_linker=no 11441 ;; 11442 11443# This must be Linux ELF. 11444linux* | k*bsd*-gnu | kopensolaris*-gnu) 11445 version_type=linux 11446 need_lib_prefix=no 11447 need_version=no 11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11449 soname_spec='${libname}${release}${shared_ext}$major' 11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11451 shlibpath_var=LD_LIBRARY_PATH 11452 shlibpath_overrides_runpath=no 11453 11454 # Some binutils ld are patched to set DT_RUNPATH 11455 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 11456 $as_echo_n "(cached) " >&6 11457else 11458 lt_cv_shlibpath_overrides_runpath=no 11459 save_LDFLAGS=$LDFLAGS 11460 save_libdir=$libdir 11461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11464/* end confdefs.h. */ 11465 11466int 11467main () 11468{ 11469 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474if ac_fn_c_try_link "$LINENO"; then : 11475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11476 lt_cv_shlibpath_overrides_runpath=yes 11477fi 11478fi 11479rm -f core conftest.err conftest.$ac_objext \ 11480 conftest$ac_exeext conftest.$ac_ext 11481 LDFLAGS=$save_LDFLAGS 11482 libdir=$save_libdir 11483 11484fi 11485 11486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11487 11488 # This implies no fast_install, which is unacceptable. 11489 # Some rework will be needed to allow for fast_install 11490 # before this can be enabled. 11491 hardcode_into_libs=yes 11492 11493 # Append ld.so.conf contents to the search path 11494 if test -f /etc/ld.so.conf; then 11495 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11497 fi 11498 11499 # We used to test for /lib/ld.so.1 and disable shared libraries on 11500 # powerpc, because MkLinux only supported shared libraries with the 11501 # GNU dynamic linker. Since this was broken with cross compilers, 11502 # most powerpc-linux boxes support dynamic linking these days and 11503 # people can always --disable-shared, the test was removed, and we 11504 # assume the GNU/Linux dynamic linker is in use. 11505 dynamic_linker='GNU/Linux ld.so' 11506 ;; 11507 11508netbsd*) 11509 version_type=sunos 11510 need_lib_prefix=no 11511 need_version=no 11512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11515 dynamic_linker='NetBSD (a.out) ld.so' 11516 else 11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11518 soname_spec='${libname}${release}${shared_ext}$major' 11519 dynamic_linker='NetBSD ld.elf_so' 11520 fi 11521 shlibpath_var=LD_LIBRARY_PATH 11522 shlibpath_overrides_runpath=yes 11523 hardcode_into_libs=yes 11524 ;; 11525 11526newsos6) 11527 version_type=linux 11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11529 shlibpath_var=LD_LIBRARY_PATH 11530 shlibpath_overrides_runpath=yes 11531 ;; 11532 11533*nto* | *qnx*) 11534 version_type=qnx 11535 need_lib_prefix=no 11536 need_version=no 11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11538 soname_spec='${libname}${release}${shared_ext}$major' 11539 shlibpath_var=LD_LIBRARY_PATH 11540 shlibpath_overrides_runpath=no 11541 hardcode_into_libs=yes 11542 dynamic_linker='ldqnx.so' 11543 ;; 11544 11545openbsd*) 11546 version_type=sunos 11547 sys_lib_dlsearch_path_spec="/usr/lib" 11548 need_lib_prefix=no 11549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11550 case $host_os in 11551 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11552 *) need_version=no ;; 11553 esac 11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11556 shlibpath_var=LD_LIBRARY_PATH 11557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11558 case $host_os in 11559 openbsd2.[89] | openbsd2.[89].*) 11560 shlibpath_overrides_runpath=no 11561 ;; 11562 *) 11563 shlibpath_overrides_runpath=yes 11564 ;; 11565 esac 11566 else 11567 shlibpath_overrides_runpath=yes 11568 fi 11569 ;; 11570 11571os2*) 11572 libname_spec='$name' 11573 shrext_cmds=".dll" 11574 need_lib_prefix=no 11575 library_names_spec='$libname${shared_ext} $libname.a' 11576 dynamic_linker='OS/2 ld.exe' 11577 shlibpath_var=LIBPATH 11578 ;; 11579 11580osf3* | osf4* | osf5*) 11581 version_type=osf 11582 need_lib_prefix=no 11583 need_version=no 11584 soname_spec='${libname}${release}${shared_ext}$major' 11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11586 shlibpath_var=LD_LIBRARY_PATH 11587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11589 ;; 11590 11591rdos*) 11592 dynamic_linker=no 11593 ;; 11594 11595solaris*) 11596 version_type=linux 11597 need_lib_prefix=no 11598 need_version=no 11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11600 soname_spec='${libname}${release}${shared_ext}$major' 11601 shlibpath_var=LD_LIBRARY_PATH 11602 shlibpath_overrides_runpath=yes 11603 hardcode_into_libs=yes 11604 # ldd complains unless libraries are executable 11605 postinstall_cmds='chmod +x $lib' 11606 ;; 11607 11608sunos4*) 11609 version_type=sunos 11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11612 shlibpath_var=LD_LIBRARY_PATH 11613 shlibpath_overrides_runpath=yes 11614 if test "$with_gnu_ld" = yes; then 11615 need_lib_prefix=no 11616 fi 11617 need_version=yes 11618 ;; 11619 11620sysv4 | sysv4.3*) 11621 version_type=linux 11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11623 soname_spec='${libname}${release}${shared_ext}$major' 11624 shlibpath_var=LD_LIBRARY_PATH 11625 case $host_vendor in 11626 sni) 11627 shlibpath_overrides_runpath=no 11628 need_lib_prefix=no 11629 runpath_var=LD_RUN_PATH 11630 ;; 11631 siemens) 11632 need_lib_prefix=no 11633 ;; 11634 motorola) 11635 need_lib_prefix=no 11636 need_version=no 11637 shlibpath_overrides_runpath=no 11638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11639 ;; 11640 esac 11641 ;; 11642 11643sysv4*MP*) 11644 if test -d /usr/nec ;then 11645 version_type=linux 11646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11647 soname_spec='$libname${shared_ext}.$major' 11648 shlibpath_var=LD_LIBRARY_PATH 11649 fi 11650 ;; 11651 11652sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11653 version_type=freebsd-elf 11654 need_lib_prefix=no 11655 need_version=no 11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11657 soname_spec='${libname}${release}${shared_ext}$major' 11658 shlibpath_var=LD_LIBRARY_PATH 11659 shlibpath_overrides_runpath=yes 11660 hardcode_into_libs=yes 11661 if test "$with_gnu_ld" = yes; then 11662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11663 else 11664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11665 case $host_os in 11666 sco3.2v5*) 11667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11668 ;; 11669 esac 11670 fi 11671 sys_lib_dlsearch_path_spec='/usr/lib' 11672 ;; 11673 11674tpf*) 11675 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11676 version_type=linux 11677 need_lib_prefix=no 11678 need_version=no 11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11680 shlibpath_var=LD_LIBRARY_PATH 11681 shlibpath_overrides_runpath=no 11682 hardcode_into_libs=yes 11683 ;; 11684 11685uts4*) 11686 version_type=linux 11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11688 soname_spec='${libname}${release}${shared_ext}$major' 11689 shlibpath_var=LD_LIBRARY_PATH 11690 ;; 11691 11692*) 11693 dynamic_linker=no 11694 ;; 11695esac 11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11697$as_echo "$dynamic_linker" >&6; } 11698test "$dynamic_linker" = no && can_build_shared=no 11699 11700variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11701if test "$GCC" = yes; then 11702 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11703fi 11704 11705if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11706 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11707fi 11708if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11709 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11710fi 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11804$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11805hardcode_action= 11806if test -n "$hardcode_libdir_flag_spec" || 11807 test -n "$runpath_var" || 11808 test "X$hardcode_automatic" = "Xyes" ; then 11809 11810 # We can hardcode non-existent directories. 11811 if test "$hardcode_direct" != no && 11812 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11813 # have to relink, otherwise we might link with an installed library 11814 # when we should be linking with a yet-to-be-installed one 11815 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11816 test "$hardcode_minus_L" != no; then 11817 # Linking always hardcodes the temporary library directory. 11818 hardcode_action=relink 11819 else 11820 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11821 hardcode_action=immediate 11822 fi 11823else 11824 # We cannot hardcode anything, or else we can only hardcode existing 11825 # directories. 11826 hardcode_action=unsupported 11827fi 11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11829$as_echo "$hardcode_action" >&6; } 11830 11831if test "$hardcode_action" = relink || 11832 test "$inherit_rpath" = yes; then 11833 # Fast installation is not supported 11834 enable_fast_install=no 11835elif test "$shlibpath_overrides_runpath" = yes || 11836 test "$enable_shared" = no; then 11837 # Fast installation is not necessary 11838 enable_fast_install=needless 11839fi 11840 11841 11842 11843 11844 11845 11846 if test "x$enable_dlopen" != xyes; then 11847 enable_dlopen=unknown 11848 enable_dlopen_self=unknown 11849 enable_dlopen_self_static=unknown 11850else 11851 lt_cv_dlopen=no 11852 lt_cv_dlopen_libs= 11853 11854 case $host_os in 11855 beos*) 11856 lt_cv_dlopen="load_add_on" 11857 lt_cv_dlopen_libs= 11858 lt_cv_dlopen_self=yes 11859 ;; 11860 11861 mingw* | pw32* | cegcc*) 11862 lt_cv_dlopen="LoadLibrary" 11863 lt_cv_dlopen_libs= 11864 ;; 11865 11866 cygwin*) 11867 lt_cv_dlopen="dlopen" 11868 lt_cv_dlopen_libs= 11869 ;; 11870 11871 darwin*) 11872 # if libdl is installed we need to link against it 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11874$as_echo_n "checking for dlopen in -ldl... " >&6; } 11875if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11876 $as_echo_n "(cached) " >&6 11877else 11878 ac_check_lib_save_LIBS=$LIBS 11879LIBS="-ldl $LIBS" 11880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11881/* end confdefs.h. */ 11882 11883/* Override any GCC internal prototype to avoid an error. 11884 Use char because int might match the return type of a GCC 11885 builtin and then its argument prototype would still apply. */ 11886#ifdef __cplusplus 11887extern "C" 11888#endif 11889char dlopen (); 11890int 11891main () 11892{ 11893return dlopen (); 11894 ; 11895 return 0; 11896} 11897_ACEOF 11898if ac_fn_c_try_link "$LINENO"; then : 11899 ac_cv_lib_dl_dlopen=yes 11900else 11901 ac_cv_lib_dl_dlopen=no 11902fi 11903rm -f core conftest.err conftest.$ac_objext \ 11904 conftest$ac_exeext conftest.$ac_ext 11905LIBS=$ac_check_lib_save_LIBS 11906fi 11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11908$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11909if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11911else 11912 11913 lt_cv_dlopen="dyld" 11914 lt_cv_dlopen_libs= 11915 lt_cv_dlopen_self=yes 11916 11917fi 11918 11919 ;; 11920 11921 *) 11922 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11923if test "x$ac_cv_func_shl_load" = x""yes; then : 11924 lt_cv_dlopen="shl_load" 11925else 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11927$as_echo_n "checking for shl_load in -ldld... " >&6; } 11928if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11929 $as_echo_n "(cached) " >&6 11930else 11931 ac_check_lib_save_LIBS=$LIBS 11932LIBS="-ldld $LIBS" 11933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11934/* end confdefs.h. */ 11935 11936/* Override any GCC internal prototype to avoid an error. 11937 Use char because int might match the return type of a GCC 11938 builtin and then its argument prototype would still apply. */ 11939#ifdef __cplusplus 11940extern "C" 11941#endif 11942char shl_load (); 11943int 11944main () 11945{ 11946return shl_load (); 11947 ; 11948 return 0; 11949} 11950_ACEOF 11951if ac_fn_c_try_link "$LINENO"; then : 11952 ac_cv_lib_dld_shl_load=yes 11953else 11954 ac_cv_lib_dld_shl_load=no 11955fi 11956rm -f core conftest.err conftest.$ac_objext \ 11957 conftest$ac_exeext conftest.$ac_ext 11958LIBS=$ac_check_lib_save_LIBS 11959fi 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11961$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11962if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11963 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11964else 11965 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11966if test "x$ac_cv_func_dlopen" = x""yes; then : 11967 lt_cv_dlopen="dlopen" 11968else 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11970$as_echo_n "checking for dlopen in -ldl... " >&6; } 11971if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11972 $as_echo_n "(cached) " >&6 11973else 11974 ac_check_lib_save_LIBS=$LIBS 11975LIBS="-ldl $LIBS" 11976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978 11979/* Override any GCC internal prototype to avoid an error. 11980 Use char because int might match the return type of a GCC 11981 builtin and then its argument prototype would still apply. */ 11982#ifdef __cplusplus 11983extern "C" 11984#endif 11985char dlopen (); 11986int 11987main () 11988{ 11989return dlopen (); 11990 ; 11991 return 0; 11992} 11993_ACEOF 11994if ac_fn_c_try_link "$LINENO"; then : 11995 ac_cv_lib_dl_dlopen=yes 11996else 11997 ac_cv_lib_dl_dlopen=no 11998fi 11999rm -f core conftest.err conftest.$ac_objext \ 12000 conftest$ac_exeext conftest.$ac_ext 12001LIBS=$ac_check_lib_save_LIBS 12002fi 12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12004$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12005if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12007else 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12009$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12010if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 12011 $as_echo_n "(cached) " >&6 12012else 12013 ac_check_lib_save_LIBS=$LIBS 12014LIBS="-lsvld $LIBS" 12015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12016/* end confdefs.h. */ 12017 12018/* Override any GCC internal prototype to avoid an error. 12019 Use char because int might match the return type of a GCC 12020 builtin and then its argument prototype would still apply. */ 12021#ifdef __cplusplus 12022extern "C" 12023#endif 12024char dlopen (); 12025int 12026main () 12027{ 12028return dlopen (); 12029 ; 12030 return 0; 12031} 12032_ACEOF 12033if ac_fn_c_try_link "$LINENO"; then : 12034 ac_cv_lib_svld_dlopen=yes 12035else 12036 ac_cv_lib_svld_dlopen=no 12037fi 12038rm -f core conftest.err conftest.$ac_objext \ 12039 conftest$ac_exeext conftest.$ac_ext 12040LIBS=$ac_check_lib_save_LIBS 12041fi 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12043$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12044if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 12045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12046else 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12048$as_echo_n "checking for dld_link in -ldld... " >&6; } 12049if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 12050 $as_echo_n "(cached) " >&6 12051else 12052 ac_check_lib_save_LIBS=$LIBS 12053LIBS="-ldld $LIBS" 12054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12055/* end confdefs.h. */ 12056 12057/* Override any GCC internal prototype to avoid an error. 12058 Use char because int might match the return type of a GCC 12059 builtin and then its argument prototype would still apply. */ 12060#ifdef __cplusplus 12061extern "C" 12062#endif 12063char dld_link (); 12064int 12065main () 12066{ 12067return dld_link (); 12068 ; 12069 return 0; 12070} 12071_ACEOF 12072if ac_fn_c_try_link "$LINENO"; then : 12073 ac_cv_lib_dld_dld_link=yes 12074else 12075 ac_cv_lib_dld_dld_link=no 12076fi 12077rm -f core conftest.err conftest.$ac_objext \ 12078 conftest$ac_exeext conftest.$ac_ext 12079LIBS=$ac_check_lib_save_LIBS 12080fi 12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12082$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12083if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 12084 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12085fi 12086 12087 12088fi 12089 12090 12091fi 12092 12093 12094fi 12095 12096 12097fi 12098 12099 12100fi 12101 12102 ;; 12103 esac 12104 12105 if test "x$lt_cv_dlopen" != xno; then 12106 enable_dlopen=yes 12107 else 12108 enable_dlopen=no 12109 fi 12110 12111 case $lt_cv_dlopen in 12112 dlopen) 12113 save_CPPFLAGS="$CPPFLAGS" 12114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12115 12116 save_LDFLAGS="$LDFLAGS" 12117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12118 12119 save_LIBS="$LIBS" 12120 LIBS="$lt_cv_dlopen_libs $LIBS" 12121 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12123$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12124if test "${lt_cv_dlopen_self+set}" = set; then : 12125 $as_echo_n "(cached) " >&6 12126else 12127 if test "$cross_compiling" = yes; then : 12128 lt_cv_dlopen_self=cross 12129else 12130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12131 lt_status=$lt_dlunknown 12132 cat > conftest.$ac_ext <<_LT_EOF 12133#line 12133 "configure" 12134#include "confdefs.h" 12135 12136#if HAVE_DLFCN_H 12137#include <dlfcn.h> 12138#endif 12139 12140#include <stdio.h> 12141 12142#ifdef RTLD_GLOBAL 12143# define LT_DLGLOBAL RTLD_GLOBAL 12144#else 12145# ifdef DL_GLOBAL 12146# define LT_DLGLOBAL DL_GLOBAL 12147# else 12148# define LT_DLGLOBAL 0 12149# endif 12150#endif 12151 12152/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12153 find out it does not work in some platform. */ 12154#ifndef LT_DLLAZY_OR_NOW 12155# ifdef RTLD_LAZY 12156# define LT_DLLAZY_OR_NOW RTLD_LAZY 12157# else 12158# ifdef DL_LAZY 12159# define LT_DLLAZY_OR_NOW DL_LAZY 12160# else 12161# ifdef RTLD_NOW 12162# define LT_DLLAZY_OR_NOW RTLD_NOW 12163# else 12164# ifdef DL_NOW 12165# define LT_DLLAZY_OR_NOW DL_NOW 12166# else 12167# define LT_DLLAZY_OR_NOW 0 12168# endif 12169# endif 12170# endif 12171# endif 12172#endif 12173 12174/* When -fvisbility=hidden is used, assume the code has been annotated 12175 correspondingly for the symbols needed. */ 12176#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12177void fnord () __attribute__((visibility("default"))); 12178#endif 12179 12180void fnord () { int i=42; } 12181int main () 12182{ 12183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12184 int status = $lt_dlunknown; 12185 12186 if (self) 12187 { 12188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12189 else 12190 { 12191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12192 else puts (dlerror ()); 12193 } 12194 /* dlclose (self); */ 12195 } 12196 else 12197 puts (dlerror ()); 12198 12199 return status; 12200} 12201_LT_EOF 12202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12203 (eval $ac_link) 2>&5 12204 ac_status=$? 12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12206 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12207 (./conftest; exit; ) >&5 2>/dev/null 12208 lt_status=$? 12209 case x$lt_status in 12210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12213 esac 12214 else : 12215 # compilation failed 12216 lt_cv_dlopen_self=no 12217 fi 12218fi 12219rm -fr conftest* 12220 12221 12222fi 12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12224$as_echo "$lt_cv_dlopen_self" >&6; } 12225 12226 if test "x$lt_cv_dlopen_self" = xyes; then 12227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12229$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12230if test "${lt_cv_dlopen_self_static+set}" = set; then : 12231 $as_echo_n "(cached) " >&6 12232else 12233 if test "$cross_compiling" = yes; then : 12234 lt_cv_dlopen_self_static=cross 12235else 12236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12237 lt_status=$lt_dlunknown 12238 cat > conftest.$ac_ext <<_LT_EOF 12239#line 12239 "configure" 12240#include "confdefs.h" 12241 12242#if HAVE_DLFCN_H 12243#include <dlfcn.h> 12244#endif 12245 12246#include <stdio.h> 12247 12248#ifdef RTLD_GLOBAL 12249# define LT_DLGLOBAL RTLD_GLOBAL 12250#else 12251# ifdef DL_GLOBAL 12252# define LT_DLGLOBAL DL_GLOBAL 12253# else 12254# define LT_DLGLOBAL 0 12255# endif 12256#endif 12257 12258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12259 find out it does not work in some platform. */ 12260#ifndef LT_DLLAZY_OR_NOW 12261# ifdef RTLD_LAZY 12262# define LT_DLLAZY_OR_NOW RTLD_LAZY 12263# else 12264# ifdef DL_LAZY 12265# define LT_DLLAZY_OR_NOW DL_LAZY 12266# else 12267# ifdef RTLD_NOW 12268# define LT_DLLAZY_OR_NOW RTLD_NOW 12269# else 12270# ifdef DL_NOW 12271# define LT_DLLAZY_OR_NOW DL_NOW 12272# else 12273# define LT_DLLAZY_OR_NOW 0 12274# endif 12275# endif 12276# endif 12277# endif 12278#endif 12279 12280/* When -fvisbility=hidden is used, assume the code has been annotated 12281 correspondingly for the symbols needed. */ 12282#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12283void fnord () __attribute__((visibility("default"))); 12284#endif 12285 12286void fnord () { int i=42; } 12287int main () 12288{ 12289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12290 int status = $lt_dlunknown; 12291 12292 if (self) 12293 { 12294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12295 else 12296 { 12297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12298 else puts (dlerror ()); 12299 } 12300 /* dlclose (self); */ 12301 } 12302 else 12303 puts (dlerror ()); 12304 12305 return status; 12306} 12307_LT_EOF 12308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12309 (eval $ac_link) 2>&5 12310 ac_status=$? 12311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12312 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12313 (./conftest; exit; ) >&5 2>/dev/null 12314 lt_status=$? 12315 case x$lt_status in 12316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12319 esac 12320 else : 12321 # compilation failed 12322 lt_cv_dlopen_self_static=no 12323 fi 12324fi 12325rm -fr conftest* 12326 12327 12328fi 12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12330$as_echo "$lt_cv_dlopen_self_static" >&6; } 12331 fi 12332 12333 CPPFLAGS="$save_CPPFLAGS" 12334 LDFLAGS="$save_LDFLAGS" 12335 LIBS="$save_LIBS" 12336 ;; 12337 esac 12338 12339 case $lt_cv_dlopen_self in 12340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12341 *) enable_dlopen_self=unknown ;; 12342 esac 12343 12344 case $lt_cv_dlopen_self_static in 12345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12346 *) enable_dlopen_self_static=unknown ;; 12347 esac 12348fi 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366striplib= 12367old_striplib= 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12369$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12370if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12372 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12374$as_echo "yes" >&6; } 12375else 12376# FIXME - insert some real tests, host_os isn't really good enough 12377 case $host_os in 12378 darwin*) 12379 if test -n "$STRIP" ; then 12380 striplib="$STRIP -x" 12381 old_striplib="$STRIP -S" 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12383$as_echo "yes" >&6; } 12384 else 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12386$as_echo "no" >&6; } 12387 fi 12388 ;; 12389 *) 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12391$as_echo "no" >&6; } 12392 ;; 12393 esac 12394fi 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 # Report which library types will actually be built 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12409$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12411$as_echo "$can_build_shared" >&6; } 12412 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12414$as_echo_n "checking whether to build shared libraries... " >&6; } 12415 test "$can_build_shared" = "no" && enable_shared=no 12416 12417 # On AIX, shared libraries and static libraries use the same namespace, and 12418 # are all built from PIC. 12419 case $host_os in 12420 aix3*) 12421 test "$enable_shared" = yes && enable_static=no 12422 if test -n "$RANLIB"; then 12423 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12424 postinstall_cmds='$RANLIB $lib' 12425 fi 12426 ;; 12427 12428 aix[4-9]*) 12429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12430 test "$enable_shared" = yes && enable_static=no 12431 fi 12432 ;; 12433 esac 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12435$as_echo "$enable_shared" >&6; } 12436 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12438$as_echo_n "checking whether to build static libraries... " >&6; } 12439 # Make sure either enable_shared or enable_static is yes. 12440 test "$enable_shared" = yes || enable_static=yes 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12442$as_echo "$enable_static" >&6; } 12443 12444 12445 12446 12447fi 12448ac_ext=c 12449ac_cpp='$CPP $CPPFLAGS' 12450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12452ac_compiler_gnu=$ac_cv_c_compiler_gnu 12453 12454CC="$lt_save_CC" 12455 12456 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12457 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12458 (test "X$CXX" != "Xg++"))) ; then 12459 ac_ext=cpp 12460ac_cpp='$CXXCPP $CPPFLAGS' 12461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12465$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12466if test -z "$CXXCPP"; then 12467 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 # Double quotes because CXXCPP needs to be expanded 12471 for CXXCPP in "$CXX -E" "/lib/cpp" 12472 do 12473 ac_preproc_ok=false 12474for ac_cxx_preproc_warn_flag in '' yes 12475do 12476 # Use a header file that comes with gcc, so configuring glibc 12477 # with a fresh cross-compiler works. 12478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12479 # <limits.h> exists even on freestanding compilers. 12480 # On the NeXT, cc -E runs the code through the compiler's parser, 12481 # not just through cpp. "Syntax error" is here to catch this case. 12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12483/* end confdefs.h. */ 12484#ifdef __STDC__ 12485# include <limits.h> 12486#else 12487# include <assert.h> 12488#endif 12489 Syntax error 12490_ACEOF 12491if ac_fn_cxx_try_cpp "$LINENO"; then : 12492 12493else 12494 # Broken: fails on valid input. 12495continue 12496fi 12497rm -f conftest.err conftest.$ac_ext 12498 12499 # OK, works on sane cases. Now check whether nonexistent headers 12500 # can be detected and how. 12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12502/* end confdefs.h. */ 12503#include <ac_nonexistent.h> 12504_ACEOF 12505if ac_fn_cxx_try_cpp "$LINENO"; then : 12506 # Broken: success on invalid input. 12507continue 12508else 12509 # Passes both tests. 12510ac_preproc_ok=: 12511break 12512fi 12513rm -f conftest.err conftest.$ac_ext 12514 12515done 12516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12517rm -f conftest.err conftest.$ac_ext 12518if $ac_preproc_ok; then : 12519 break 12520fi 12521 12522 done 12523 ac_cv_prog_CXXCPP=$CXXCPP 12524 12525fi 12526 CXXCPP=$ac_cv_prog_CXXCPP 12527else 12528 ac_cv_prog_CXXCPP=$CXXCPP 12529fi 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12531$as_echo "$CXXCPP" >&6; } 12532ac_preproc_ok=false 12533for ac_cxx_preproc_warn_flag in '' yes 12534do 12535 # Use a header file that comes with gcc, so configuring glibc 12536 # with a fresh cross-compiler works. 12537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12538 # <limits.h> exists even on freestanding compilers. 12539 # On the NeXT, cc -E runs the code through the compiler's parser, 12540 # not just through cpp. "Syntax error" is here to catch this case. 12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12542/* end confdefs.h. */ 12543#ifdef __STDC__ 12544# include <limits.h> 12545#else 12546# include <assert.h> 12547#endif 12548 Syntax error 12549_ACEOF 12550if ac_fn_cxx_try_cpp "$LINENO"; then : 12551 12552else 12553 # Broken: fails on valid input. 12554continue 12555fi 12556rm -f conftest.err conftest.$ac_ext 12557 12558 # OK, works on sane cases. Now check whether nonexistent headers 12559 # can be detected and how. 12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12561/* end confdefs.h. */ 12562#include <ac_nonexistent.h> 12563_ACEOF 12564if ac_fn_cxx_try_cpp "$LINENO"; then : 12565 # Broken: success on invalid input. 12566continue 12567else 12568 # Passes both tests. 12569ac_preproc_ok=: 12570break 12571fi 12572rm -f conftest.err conftest.$ac_ext 12573 12574done 12575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12576rm -f conftest.err conftest.$ac_ext 12577if $ac_preproc_ok; then : 12578 12579else 12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12582as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 12583See \`config.log' for more details." "$LINENO" 5; } 12584fi 12585 12586ac_ext=c 12587ac_cpp='$CPP $CPPFLAGS' 12588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12590ac_compiler_gnu=$ac_cv_c_compiler_gnu 12591 12592else 12593 _lt_caught_CXX_error=yes 12594fi 12595 12596ac_ext=cpp 12597ac_cpp='$CXXCPP $CPPFLAGS' 12598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12601 12602archive_cmds_need_lc_CXX=no 12603allow_undefined_flag_CXX= 12604always_export_symbols_CXX=no 12605archive_expsym_cmds_CXX= 12606compiler_needs_object_CXX=no 12607export_dynamic_flag_spec_CXX= 12608hardcode_direct_CXX=no 12609hardcode_direct_absolute_CXX=no 12610hardcode_libdir_flag_spec_CXX= 12611hardcode_libdir_flag_spec_ld_CXX= 12612hardcode_libdir_separator_CXX= 12613hardcode_minus_L_CXX=no 12614hardcode_shlibpath_var_CXX=unsupported 12615hardcode_automatic_CXX=no 12616inherit_rpath_CXX=no 12617module_cmds_CXX= 12618module_expsym_cmds_CXX= 12619link_all_deplibs_CXX=unknown 12620old_archive_cmds_CXX=$old_archive_cmds 12621reload_flag_CXX=$reload_flag 12622reload_cmds_CXX=$reload_cmds 12623no_undefined_flag_CXX= 12624whole_archive_flag_spec_CXX= 12625enable_shared_with_static_runtimes_CXX=no 12626 12627# Source file extension for C++ test sources. 12628ac_ext=cpp 12629 12630# Object file extension for compiled C++ test sources. 12631objext=o 12632objext_CXX=$objext 12633 12634# No sense in running all these tests if we already determined that 12635# the CXX compiler isn't working. Some variables (like enable_shared) 12636# are currently assumed to apply to all compilers on this platform, 12637# and will be corrupted by setting them based on a non-working compiler. 12638if test "$_lt_caught_CXX_error" != yes; then 12639 # Code to be used in simple compile tests 12640 lt_simple_compile_test_code="int some_variable = 0;" 12641 12642 # Code to be used in simple link tests 12643 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12644 12645 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12646 12647 12648 12649 12650 12651 12652# If no C compiler was specified, use CC. 12653LTCC=${LTCC-"$CC"} 12654 12655# If no C compiler flags were specified, use CFLAGS. 12656LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12657 12658# Allow CC to be a program name with arguments. 12659compiler=$CC 12660 12661 12662 # save warnings/boilerplate of simple test code 12663 ac_outfile=conftest.$ac_objext 12664echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12665eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12666_lt_compiler_boilerplate=`cat conftest.err` 12667$RM conftest* 12668 12669 ac_outfile=conftest.$ac_objext 12670echo "$lt_simple_link_test_code" >conftest.$ac_ext 12671eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12672_lt_linker_boilerplate=`cat conftest.err` 12673$RM -r conftest* 12674 12675 12676 # Allow CC to be a program name with arguments. 12677 lt_save_CC=$CC 12678 lt_save_LD=$LD 12679 lt_save_GCC=$GCC 12680 GCC=$GXX 12681 lt_save_with_gnu_ld=$with_gnu_ld 12682 lt_save_path_LD=$lt_cv_path_LD 12683 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12684 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12685 else 12686 $as_unset lt_cv_prog_gnu_ld 12687 fi 12688 if test -n "${lt_cv_path_LDCXX+set}"; then 12689 lt_cv_path_LD=$lt_cv_path_LDCXX 12690 else 12691 $as_unset lt_cv_path_LD 12692 fi 12693 test -z "${LDCXX+set}" || LD=$LDCXX 12694 CC=${CXX-"c++"} 12695 compiler=$CC 12696 compiler_CXX=$CC 12697 for cc_temp in $compiler""; do 12698 case $cc_temp in 12699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12701 \-*) ;; 12702 *) break;; 12703 esac 12704done 12705cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12706 12707 12708 if test -n "$compiler"; then 12709 # We don't want -fno-exception when compiling C++ code, so set the 12710 # no_builtin_flag separately 12711 if test "$GXX" = yes; then 12712 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12713 else 12714 lt_prog_compiler_no_builtin_flag_CXX= 12715 fi 12716 12717 if test "$GXX" = yes; then 12718 # Set up default GNU C++ configuration 12719 12720 12721 12722# Check whether --with-gnu-ld was given. 12723if test "${with_gnu_ld+set}" = set; then : 12724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12725else 12726 with_gnu_ld=no 12727fi 12728 12729ac_prog=ld 12730if test "$GCC" = yes; then 12731 # Check if gcc -print-prog-name=ld gives a path. 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12733$as_echo_n "checking for ld used by $CC... " >&6; } 12734 case $host in 12735 *-*-mingw*) 12736 # gcc leaves a trailing carriage return which upsets mingw 12737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12738 *) 12739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12740 esac 12741 case $ac_prog in 12742 # Accept absolute paths. 12743 [\\/]* | ?:[\\/]*) 12744 re_direlt='/[^/][^/]*/\.\./' 12745 # Canonicalize the pathname of ld 12746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12749 done 12750 test -z "$LD" && LD="$ac_prog" 12751 ;; 12752 "") 12753 # If it fails, then pretend we aren't using GCC. 12754 ac_prog=ld 12755 ;; 12756 *) 12757 # If it is relative, then search for the first ld in PATH. 12758 with_gnu_ld=unknown 12759 ;; 12760 esac 12761elif test "$with_gnu_ld" = yes; then 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12763$as_echo_n "checking for GNU ld... " >&6; } 12764else 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12766$as_echo_n "checking for non-GNU ld... " >&6; } 12767fi 12768if test "${lt_cv_path_LD+set}" = set; then : 12769 $as_echo_n "(cached) " >&6 12770else 12771 if test -z "$LD"; then 12772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12773 for ac_dir in $PATH; do 12774 IFS="$lt_save_ifs" 12775 test -z "$ac_dir" && ac_dir=. 12776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12777 lt_cv_path_LD="$ac_dir/$ac_prog" 12778 # Check to see if the program is GNU ld. I'd rather use --version, 12779 # but apparently some variants of GNU ld only accept -v. 12780 # Break only if it was the GNU/non-GNU ld that we prefer. 12781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12782 *GNU* | *'with BFD'*) 12783 test "$with_gnu_ld" != no && break 12784 ;; 12785 *) 12786 test "$with_gnu_ld" != yes && break 12787 ;; 12788 esac 12789 fi 12790 done 12791 IFS="$lt_save_ifs" 12792else 12793 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12794fi 12795fi 12796 12797LD="$lt_cv_path_LD" 12798if test -n "$LD"; then 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12800$as_echo "$LD" >&6; } 12801else 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12803$as_echo "no" >&6; } 12804fi 12805test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12807$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12808if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12809 $as_echo_n "(cached) " >&6 12810else 12811 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12812case `$LD -v 2>&1 </dev/null` in 12813*GNU* | *'with BFD'*) 12814 lt_cv_prog_gnu_ld=yes 12815 ;; 12816*) 12817 lt_cv_prog_gnu_ld=no 12818 ;; 12819esac 12820fi 12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12822$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12823with_gnu_ld=$lt_cv_prog_gnu_ld 12824 12825 12826 12827 12828 12829 12830 12831 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12832 # archiving commands below assume that GNU ld is being used. 12833 if test "$with_gnu_ld" = yes; then 12834 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12835 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12836 12837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12839 12840 # If archive_cmds runs LD, not CC, wlarc should be empty 12841 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12842 # investigate it a little bit more. (MM) 12843 wlarc='${wl}' 12844 12845 # ancient GNU ld didn't support --whole-archive et. al. 12846 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12847 $GREP 'no-whole-archive' > /dev/null; then 12848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12849 else 12850 whole_archive_flag_spec_CXX= 12851 fi 12852 else 12853 with_gnu_ld=no 12854 wlarc= 12855 12856 # A generic and very simple default shared library creation 12857 # command for GNU C++ for the case where it uses the native 12858 # linker, instead of GNU ld. If possible, this setting should 12859 # overridden to take advantage of the native linker features on 12860 # the platform it is being used on. 12861 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12862 fi 12863 12864 # Commands to make compiler produce verbose output that lists 12865 # what "hidden" libraries, object files and flags are used when 12866 # linking a shared library. 12867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12868 12869 else 12870 GXX=no 12871 with_gnu_ld=no 12872 wlarc= 12873 fi 12874 12875 # PORTME: fill in a description of your system's C++ link characteristics 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12877$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12878 ld_shlibs_CXX=yes 12879 case $host_os in 12880 aix3*) 12881 # FIXME: insert proper C++ library support 12882 ld_shlibs_CXX=no 12883 ;; 12884 aix[4-9]*) 12885 if test "$host_cpu" = ia64; then 12886 # On IA64, the linker does run time linking by default, so we don't 12887 # have to do anything special. 12888 aix_use_runtimelinking=no 12889 exp_sym_flag='-Bexport' 12890 no_entry_flag="" 12891 else 12892 aix_use_runtimelinking=no 12893 12894 # Test if we are trying to use run time linking or normal 12895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12896 # need to do runtime linking. 12897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12898 for ld_flag in $LDFLAGS; do 12899 case $ld_flag in 12900 *-brtl*) 12901 aix_use_runtimelinking=yes 12902 break 12903 ;; 12904 esac 12905 done 12906 ;; 12907 esac 12908 12909 exp_sym_flag='-bexport' 12910 no_entry_flag='-bnoentry' 12911 fi 12912 12913 # When large executables or shared objects are built, AIX ld can 12914 # have problems creating the table of contents. If linking a library 12915 # or program results in "error TOC overflow" add -mminimal-toc to 12916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12918 12919 archive_cmds_CXX='' 12920 hardcode_direct_CXX=yes 12921 hardcode_direct_absolute_CXX=yes 12922 hardcode_libdir_separator_CXX=':' 12923 link_all_deplibs_CXX=yes 12924 file_list_spec_CXX='${wl}-f,' 12925 12926 if test "$GXX" = yes; then 12927 case $host_os in aix4.[012]|aix4.[012].*) 12928 # We only want to do this on AIX 4.2 and lower, the check 12929 # below for broken collect2 doesn't work under 4.3+ 12930 collect2name=`${CC} -print-prog-name=collect2` 12931 if test -f "$collect2name" && 12932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12933 then 12934 # We have reworked collect2 12935 : 12936 else 12937 # We have old collect2 12938 hardcode_direct_CXX=unsupported 12939 # It fails to find uninstalled libraries when the uninstalled 12940 # path is not listed in the libpath. Setting hardcode_minus_L 12941 # to unsupported forces relinking 12942 hardcode_minus_L_CXX=yes 12943 hardcode_libdir_flag_spec_CXX='-L$libdir' 12944 hardcode_libdir_separator_CXX= 12945 fi 12946 esac 12947 shared_flag='-shared' 12948 if test "$aix_use_runtimelinking" = yes; then 12949 shared_flag="$shared_flag "'${wl}-G' 12950 fi 12951 else 12952 # not using gcc 12953 if test "$host_cpu" = ia64; then 12954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12955 # chokes on -Wl,-G. The following line is correct: 12956 shared_flag='-G' 12957 else 12958 if test "$aix_use_runtimelinking" = yes; then 12959 shared_flag='${wl}-G' 12960 else 12961 shared_flag='${wl}-bM:SRE' 12962 fi 12963 fi 12964 fi 12965 12966 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12967 # It seems that -bexpall does not export symbols beginning with 12968 # underscore (_), so it is better to generate a list of symbols to 12969 # export. 12970 always_export_symbols_CXX=yes 12971 if test "$aix_use_runtimelinking" = yes; then 12972 # Warning - without using the other runtime loading flags (-brtl), 12973 # -berok will link without error, but may produce a broken library. 12974 allow_undefined_flag_CXX='-berok' 12975 # Determine the default libpath from the value encoded in an empty 12976 # executable. 12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979 12980int 12981main () 12982{ 12983 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988if ac_fn_cxx_try_link "$LINENO"; then : 12989 12990lt_aix_libpath_sed=' 12991 /Import File Strings/,/^$/ { 12992 /^0/ { 12993 s/^0 *\(.*\)$/\1/ 12994 p 12995 } 12996 }' 12997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12998# Check for a 64-bit object if we didn't find anything. 12999if test -z "$aix_libpath"; then 13000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13001fi 13002fi 13003rm -f core conftest.err conftest.$ac_objext \ 13004 conftest$ac_exeext conftest.$ac_ext 13005if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13006 13007 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13008 13009 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13010 else 13011 if test "$host_cpu" = ia64; then 13012 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13013 allow_undefined_flag_CXX="-z nodefs" 13014 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13015 else 13016 # Determine the default libpath from the value encoded in an 13017 # empty executable. 13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13019/* end confdefs.h. */ 13020 13021int 13022main () 13023{ 13024 13025 ; 13026 return 0; 13027} 13028_ACEOF 13029if ac_fn_cxx_try_link "$LINENO"; then : 13030 13031lt_aix_libpath_sed=' 13032 /Import File Strings/,/^$/ { 13033 /^0/ { 13034 s/^0 *\(.*\)$/\1/ 13035 p 13036 } 13037 }' 13038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13039# Check for a 64-bit object if we didn't find anything. 13040if test -z "$aix_libpath"; then 13041 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13042fi 13043fi 13044rm -f core conftest.err conftest.$ac_objext \ 13045 conftest$ac_exeext conftest.$ac_ext 13046if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13047 13048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13049 # Warning - without using the other run time loading flags, 13050 # -berok will link without error, but may produce a broken library. 13051 no_undefined_flag_CXX=' ${wl}-bernotok' 13052 allow_undefined_flag_CXX=' ${wl}-berok' 13053 if test "$with_gnu_ld" = yes; then 13054 # We only use this code for GNU lds that support --whole-archive. 13055 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13056 else 13057 # Exported symbols can be pulled into shared objects from archives 13058 whole_archive_flag_spec_CXX='$convenience' 13059 fi 13060 archive_cmds_need_lc_CXX=yes 13061 # This is similar to how AIX traditionally builds its shared 13062 # libraries. 13063 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13064 fi 13065 fi 13066 ;; 13067 13068 beos*) 13069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13070 allow_undefined_flag_CXX=unsupported 13071 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13072 # support --undefined. This deserves some investigation. FIXME 13073 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13074 else 13075 ld_shlibs_CXX=no 13076 fi 13077 ;; 13078 13079 chorus*) 13080 case $cc_basename in 13081 *) 13082 # FIXME: insert proper C++ library support 13083 ld_shlibs_CXX=no 13084 ;; 13085 esac 13086 ;; 13087 13088 cygwin* | mingw* | pw32* | cegcc*) 13089 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13090 # as there is no search path for DLLs. 13091 hardcode_libdir_flag_spec_CXX='-L$libdir' 13092 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13093 allow_undefined_flag_CXX=unsupported 13094 always_export_symbols_CXX=no 13095 enable_shared_with_static_runtimes_CXX=yes 13096 13097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13098 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13099 # If the export-symbols file already is a .def file (1st line 13100 # is EXPORTS), use it as is; otherwise, prepend... 13101 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13102 cp $export_symbols $output_objdir/$soname.def; 13103 else 13104 echo EXPORTS > $output_objdir/$soname.def; 13105 cat $export_symbols >> $output_objdir/$soname.def; 13106 fi~ 13107 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13108 else 13109 ld_shlibs_CXX=no 13110 fi 13111 ;; 13112 darwin* | rhapsody*) 13113 13114 13115 archive_cmds_need_lc_CXX=no 13116 hardcode_direct_CXX=no 13117 hardcode_automatic_CXX=yes 13118 hardcode_shlibpath_var_CXX=unsupported 13119 if test "$lt_cv_ld_force_load" = "yes"; then 13120 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13121 else 13122 whole_archive_flag_spec_CXX='' 13123 fi 13124 link_all_deplibs_CXX=yes 13125 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13126 case $cc_basename in 13127 ifort*) _lt_dar_can_shared=yes ;; 13128 *) _lt_dar_can_shared=$GCC ;; 13129 esac 13130 if test "$_lt_dar_can_shared" = "yes"; then 13131 output_verbose_link_cmd=func_echo_all 13132 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13133 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13134 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 13135 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 13136 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13137 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13138 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13139 fi 13140 13141 else 13142 ld_shlibs_CXX=no 13143 fi 13144 13145 ;; 13146 13147 dgux*) 13148 case $cc_basename in 13149 ec++*) 13150 # FIXME: insert proper C++ library support 13151 ld_shlibs_CXX=no 13152 ;; 13153 ghcx*) 13154 # Green Hills C++ Compiler 13155 # FIXME: insert proper C++ library support 13156 ld_shlibs_CXX=no 13157 ;; 13158 *) 13159 # FIXME: insert proper C++ library support 13160 ld_shlibs_CXX=no 13161 ;; 13162 esac 13163 ;; 13164 13165 freebsd2.*) 13166 # C++ shared libraries reported to be fairly broken before 13167 # switch to ELF 13168 ld_shlibs_CXX=no 13169 ;; 13170 13171 freebsd-elf*) 13172 archive_cmds_need_lc_CXX=no 13173 ;; 13174 13175 freebsd* | dragonfly*) 13176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13177 # conventions 13178 ld_shlibs_CXX=yes 13179 ;; 13180 13181 gnu*) 13182 ;; 13183 13184 haiku*) 13185 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13186 link_all_deplibs_CXX=yes 13187 ;; 13188 13189 hpux9*) 13190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13191 hardcode_libdir_separator_CXX=: 13192 export_dynamic_flag_spec_CXX='${wl}-E' 13193 hardcode_direct_CXX=yes 13194 hardcode_minus_L_CXX=yes # Not in the search PATH, 13195 # but as the default 13196 # location of the library. 13197 13198 case $cc_basename in 13199 CC*) 13200 # FIXME: insert proper C++ library support 13201 ld_shlibs_CXX=no 13202 ;; 13203 aCC*) 13204 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' 13205 # Commands to make compiler produce verbose output that lists 13206 # what "hidden" libraries, object files and flags are used when 13207 # linking a shared library. 13208 # 13209 # There doesn't appear to be a way to prevent this compiler from 13210 # explicitly linking system object files so we need to strip them 13211 # from the output so that they don't get included in the library 13212 # dependencies. 13213 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; func_echo_all "$list"' 13214 ;; 13215 *) 13216 if test "$GXX" = yes; then 13217 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' 13218 else 13219 # FIXME: insert proper C++ library support 13220 ld_shlibs_CXX=no 13221 fi 13222 ;; 13223 esac 13224 ;; 13225 13226 hpux10*|hpux11*) 13227 if test $with_gnu_ld = no; then 13228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13229 hardcode_libdir_separator_CXX=: 13230 13231 case $host_cpu in 13232 hppa*64*|ia64*) 13233 ;; 13234 *) 13235 export_dynamic_flag_spec_CXX='${wl}-E' 13236 ;; 13237 esac 13238 fi 13239 case $host_cpu in 13240 hppa*64*|ia64*) 13241 hardcode_direct_CXX=no 13242 hardcode_shlibpath_var_CXX=no 13243 ;; 13244 *) 13245 hardcode_direct_CXX=yes 13246 hardcode_direct_absolute_CXX=yes 13247 hardcode_minus_L_CXX=yes # Not in the search PATH, 13248 # but as the default 13249 # location of the library. 13250 ;; 13251 esac 13252 13253 case $cc_basename in 13254 CC*) 13255 # FIXME: insert proper C++ library support 13256 ld_shlibs_CXX=no 13257 ;; 13258 aCC*) 13259 case $host_cpu in 13260 hppa*64*) 13261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13262 ;; 13263 ia64*) 13264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13265 ;; 13266 *) 13267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13268 ;; 13269 esac 13270 # Commands to make compiler produce verbose output that lists 13271 # what "hidden" libraries, object files and flags are used when 13272 # linking a shared library. 13273 # 13274 # There doesn't appear to be a way to prevent this compiler from 13275 # explicitly linking system object files so we need to strip them 13276 # from the output so that they don't get included in the library 13277 # dependencies. 13278 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; func_echo_all "$list"' 13279 ;; 13280 *) 13281 if test "$GXX" = yes; then 13282 if test $with_gnu_ld = no; then 13283 case $host_cpu in 13284 hppa*64*) 13285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13286 ;; 13287 ia64*) 13288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13289 ;; 13290 *) 13291 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' 13292 ;; 13293 esac 13294 fi 13295 else 13296 # FIXME: insert proper C++ library support 13297 ld_shlibs_CXX=no 13298 fi 13299 ;; 13300 esac 13301 ;; 13302 13303 interix[3-9]*) 13304 hardcode_direct_CXX=no 13305 hardcode_shlibpath_var_CXX=no 13306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13307 export_dynamic_flag_spec_CXX='${wl}-E' 13308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13309 # Instead, shared libraries are loaded at an image base (0x10000000 by 13310 # default) and relocated if they conflict, which is a slow very memory 13311 # consuming and fragmenting process. To avoid this, we pick a random, 13312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13313 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13314 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13315 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13316 ;; 13317 irix5* | irix6*) 13318 case $cc_basename in 13319 CC*) 13320 # SGI C++ 13321 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13322 13323 # Archives containing C++ object files must be created using 13324 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13325 # necessary to make sure instantiated templates are included 13326 # in the archive. 13327 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13328 ;; 13329 *) 13330 if test "$GXX" = yes; then 13331 if test "$with_gnu_ld" = no; then 13332 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13333 else 13334 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13335 fi 13336 fi 13337 link_all_deplibs_CXX=yes 13338 ;; 13339 esac 13340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13341 hardcode_libdir_separator_CXX=: 13342 inherit_rpath_CXX=yes 13343 ;; 13344 13345 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13346 case $cc_basename in 13347 KCC*) 13348 # Kuck and Associates, Inc. (KAI) C++ Compiler 13349 13350 # KCC will only create a shared library if the output file 13351 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13352 # to its proper name (with version) after linking. 13353 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' 13354 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' 13355 # Commands to make compiler produce verbose output that lists 13356 # what "hidden" libraries, object files and flags are used when 13357 # linking a shared library. 13358 # 13359 # There doesn't appear to be a way to prevent this compiler from 13360 # explicitly linking system object files so we need to strip them 13361 # from the output so that they don't get included in the library 13362 # dependencies. 13363 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; func_echo_all "$list"' 13364 13365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13367 13368 # Archives containing C++ object files must be created using 13369 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13371 ;; 13372 icpc* | ecpc* ) 13373 # Intel C++ 13374 with_gnu_ld=yes 13375 # version 8.0 and above of icpc choke on multiply defined symbols 13376 # if we add $predep_objects and $postdep_objects, however 7.1 and 13377 # earlier do not add the objects themselves. 13378 case `$CC -V 2>&1` in 13379 *"Version 7."*) 13380 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13381 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' 13382 ;; 13383 *) # Version 8.0 or newer 13384 tmp_idyn= 13385 case $host_cpu in 13386 ia64*) tmp_idyn=' -i_dynamic';; 13387 esac 13388 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13389 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13390 ;; 13391 esac 13392 archive_cmds_need_lc_CXX=no 13393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13396 ;; 13397 pgCC* | pgcpp*) 13398 # Portland Group C++ compiler 13399 case `$CC -V` in 13400 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13401 prelink_cmds_CXX='tpldir=Template.dir~ 13402 rm -rf $tpldir~ 13403 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13404 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 13405 old_archive_cmds_CXX='tpldir=Template.dir~ 13406 rm -rf $tpldir~ 13407 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13408 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 13409 $RANLIB $oldlib' 13410 archive_cmds_CXX='tpldir=Template.dir~ 13411 rm -rf $tpldir~ 13412 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13413 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13414 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13415 rm -rf $tpldir~ 13416 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13417 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13418 ;; 13419 *) # Version 6 and above use weak symbols 13420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13421 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13422 ;; 13423 esac 13424 13425 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13427 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13428 ;; 13429 cxx*) 13430 # Compaq C++ 13431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13432 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' 13433 13434 runpath_var=LD_RUN_PATH 13435 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13436 hardcode_libdir_separator_CXX=: 13437 13438 # Commands to make compiler produce verbose output that lists 13439 # what "hidden" libraries, object files and flags are used when 13440 # linking a shared library. 13441 # 13442 # There doesn't appear to be a way to prevent this compiler from 13443 # explicitly linking system object files so we need to strip them 13444 # from the output so that they don't get included in the library 13445 # dependencies. 13446 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 13447 ;; 13448 xl* | mpixl* | bgxl*) 13449 # IBM XL 8.0 on PPC, with GNU ld 13450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13451 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13452 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13453 if test "x$supports_anon_versioning" = xyes; then 13454 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13456 echo "local: *; };" >> $output_objdir/$libname.ver~ 13457 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13458 fi 13459 ;; 13460 *) 13461 case `$CC -V 2>&1 | sed 5q` in 13462 *Sun\ C*) 13463 # Sun C++ 5.9 13464 no_undefined_flag_CXX=' -zdefs' 13465 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13466 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13467 hardcode_libdir_flag_spec_CXX='-R$libdir' 13468 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13469 compiler_needs_object_CXX=yes 13470 13471 # Not sure whether something based on 13472 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13473 # would be better. 13474 output_verbose_link_cmd='func_echo_all' 13475 13476 # Archives containing C++ object files must be created using 13477 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13478 # necessary to make sure instantiated templates are included 13479 # in the archive. 13480 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13481 ;; 13482 esac 13483 ;; 13484 esac 13485 ;; 13486 13487 lynxos*) 13488 # FIXME: insert proper C++ library support 13489 ld_shlibs_CXX=no 13490 ;; 13491 13492 m88k*) 13493 # FIXME: insert proper C++ library support 13494 ld_shlibs_CXX=no 13495 ;; 13496 13497 mvs*) 13498 case $cc_basename in 13499 cxx*) 13500 # FIXME: insert proper C++ library support 13501 ld_shlibs_CXX=no 13502 ;; 13503 *) 13504 # FIXME: insert proper C++ library support 13505 ld_shlibs_CXX=no 13506 ;; 13507 esac 13508 ;; 13509 13510 netbsd*) 13511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13512 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13513 wlarc= 13514 hardcode_libdir_flag_spec_CXX='-R$libdir' 13515 hardcode_direct_CXX=yes 13516 hardcode_shlibpath_var_CXX=no 13517 fi 13518 # Workaround some broken pre-1.5 toolchains 13519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13520 ;; 13521 13522 *nto* | *qnx*) 13523 ld_shlibs_CXX=yes 13524 ;; 13525 13526 openbsd2*) 13527 # C++ shared libraries are fairly broken 13528 ld_shlibs_CXX=no 13529 ;; 13530 13531 openbsd*) 13532 if test -f /usr/libexec/ld.so; then 13533 hardcode_direct_CXX=yes 13534 hardcode_shlibpath_var_CXX=no 13535 hardcode_direct_absolute_CXX=yes 13536 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13539 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13540 export_dynamic_flag_spec_CXX='${wl}-E' 13541 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13542 fi 13543 output_verbose_link_cmd=func_echo_all 13544 else 13545 ld_shlibs_CXX=no 13546 fi 13547 ;; 13548 13549 osf3* | osf4* | osf5*) 13550 case $cc_basename in 13551 KCC*) 13552 # Kuck and Associates, Inc. (KAI) C++ Compiler 13553 13554 # KCC will only create a shared library if the output file 13555 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13556 # to its proper name (with version) after linking. 13557 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' 13558 13559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13560 hardcode_libdir_separator_CXX=: 13561 13562 # Archives containing C++ object files must be created using 13563 # the KAI C++ compiler. 13564 case $host in 13565 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13566 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13567 esac 13568 ;; 13569 RCC*) 13570 # Rational C++ 2.4.1 13571 # FIXME: insert proper C++ library support 13572 ld_shlibs_CXX=no 13573 ;; 13574 cxx*) 13575 case $host in 13576 osf3*) 13577 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13578 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13580 ;; 13581 *) 13582 allow_undefined_flag_CXX=' -expect_unresolved \*' 13583 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13584 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13585 echo "-hidden">> $lib.exp~ 13586 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 13587 $RM $lib.exp' 13588 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13589 ;; 13590 esac 13591 13592 hardcode_libdir_separator_CXX=: 13593 13594 # Commands to make compiler produce verbose output that lists 13595 # what "hidden" libraries, object files and flags are used when 13596 # linking a shared library. 13597 # 13598 # There doesn't appear to be a way to prevent this compiler from 13599 # explicitly linking system object files so we need to strip them 13600 # from the output so that they don't get included in the library 13601 # dependencies. 13602 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 13603 ;; 13604 *) 13605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13606 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13607 case $host in 13608 osf3*) 13609 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13610 ;; 13611 *) 13612 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13613 ;; 13614 esac 13615 13616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13617 hardcode_libdir_separator_CXX=: 13618 13619 # Commands to make compiler produce verbose output that lists 13620 # what "hidden" libraries, object files and flags are used when 13621 # linking a shared library. 13622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13623 13624 else 13625 # FIXME: insert proper C++ library support 13626 ld_shlibs_CXX=no 13627 fi 13628 ;; 13629 esac 13630 ;; 13631 13632 psos*) 13633 # FIXME: insert proper C++ library support 13634 ld_shlibs_CXX=no 13635 ;; 13636 13637 sunos4*) 13638 case $cc_basename in 13639 CC*) 13640 # Sun C++ 4.x 13641 # FIXME: insert proper C++ library support 13642 ld_shlibs_CXX=no 13643 ;; 13644 lcc*) 13645 # Lucid 13646 # FIXME: insert proper C++ library support 13647 ld_shlibs_CXX=no 13648 ;; 13649 *) 13650 # FIXME: insert proper C++ library support 13651 ld_shlibs_CXX=no 13652 ;; 13653 esac 13654 ;; 13655 13656 solaris*) 13657 case $cc_basename in 13658 CC*) 13659 # Sun C++ 4.2, 5.x and Centerline C++ 13660 archive_cmds_need_lc_CXX=yes 13661 no_undefined_flag_CXX=' -zdefs' 13662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13663 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13664 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13665 13666 hardcode_libdir_flag_spec_CXX='-R$libdir' 13667 hardcode_shlibpath_var_CXX=no 13668 case $host_os in 13669 solaris2.[0-5] | solaris2.[0-5].*) ;; 13670 *) 13671 # The compiler driver will combine and reorder linker options, 13672 # but understands `-z linker_flag'. 13673 # Supported since Solaris 2.6 (maybe 2.5.1?) 13674 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13675 ;; 13676 esac 13677 link_all_deplibs_CXX=yes 13678 13679 output_verbose_link_cmd='func_echo_all' 13680 13681 # Archives containing C++ object files must be created using 13682 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13683 # necessary to make sure instantiated templates are included 13684 # in the archive. 13685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13686 ;; 13687 gcx*) 13688 # Green Hills C++ Compiler 13689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13690 13691 # The C++ compiler must be used to create the archive. 13692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13693 ;; 13694 *) 13695 # GNU C++ compiler with Solaris linker 13696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13698 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13699 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13700 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13702 13703 # Commands to make compiler produce verbose output that lists 13704 # what "hidden" libraries, object files and flags are used when 13705 # linking a shared library. 13706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13707 else 13708 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13709 # platform. 13710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13713 13714 # Commands to make compiler produce verbose output that lists 13715 # what "hidden" libraries, object files and flags are used when 13716 # linking a shared library. 13717 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13718 fi 13719 13720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13721 case $host_os in 13722 solaris2.[0-5] | solaris2.[0-5].*) ;; 13723 *) 13724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13725 ;; 13726 esac 13727 fi 13728 ;; 13729 esac 13730 ;; 13731 13732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13733 no_undefined_flag_CXX='${wl}-z,text' 13734 archive_cmds_need_lc_CXX=no 13735 hardcode_shlibpath_var_CXX=no 13736 runpath_var='LD_RUN_PATH' 13737 13738 case $cc_basename in 13739 CC*) 13740 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13741 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13742 ;; 13743 *) 13744 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13745 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13746 ;; 13747 esac 13748 ;; 13749 13750 sysv5* | sco3.2v5* | sco5v6*) 13751 # Note: We can NOT use -z defs as we might desire, because we do not 13752 # link with -lc, and that would cause any symbols used from libc to 13753 # always be unresolved, which means just about no library would 13754 # ever link correctly. If we're not using GNU ld we use -z text 13755 # though, which does catch some bad symbols but isn't as heavy-handed 13756 # as -z defs. 13757 no_undefined_flag_CXX='${wl}-z,text' 13758 allow_undefined_flag_CXX='${wl}-z,nodefs' 13759 archive_cmds_need_lc_CXX=no 13760 hardcode_shlibpath_var_CXX=no 13761 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13762 hardcode_libdir_separator_CXX=':' 13763 link_all_deplibs_CXX=yes 13764 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13765 runpath_var='LD_RUN_PATH' 13766 13767 case $cc_basename in 13768 CC*) 13769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13771 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13772 '"$old_archive_cmds_CXX" 13773 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13774 '"$reload_cmds_CXX" 13775 ;; 13776 *) 13777 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13778 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13779 ;; 13780 esac 13781 ;; 13782 13783 tandem*) 13784 case $cc_basename in 13785 NCC*) 13786 # NonStop-UX NCC 3.20 13787 # FIXME: insert proper C++ library support 13788 ld_shlibs_CXX=no 13789 ;; 13790 *) 13791 # FIXME: insert proper C++ library support 13792 ld_shlibs_CXX=no 13793 ;; 13794 esac 13795 ;; 13796 13797 vxworks*) 13798 # FIXME: insert proper C++ library support 13799 ld_shlibs_CXX=no 13800 ;; 13801 13802 *) 13803 # FIXME: insert proper C++ library support 13804 ld_shlibs_CXX=no 13805 ;; 13806 esac 13807 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13809$as_echo "$ld_shlibs_CXX" >&6; } 13810 test "$ld_shlibs_CXX" = no && can_build_shared=no 13811 13812 GCC_CXX="$GXX" 13813 LD_CXX="$LD" 13814 13815 ## CAVEAT EMPTOR: 13816 ## There is no encapsulation within the following macros, do not change 13817 ## the running order or otherwise move them around unless you know exactly 13818 ## what you are doing... 13819 # Dependencies to place before and after the object being linked: 13820predep_objects_CXX= 13821postdep_objects_CXX= 13822predeps_CXX= 13823postdeps_CXX= 13824compiler_lib_search_path_CXX= 13825 13826cat > conftest.$ac_ext <<_LT_EOF 13827class Foo 13828{ 13829public: 13830 Foo (void) { a = 0; } 13831private: 13832 int a; 13833}; 13834_LT_EOF 13835 13836if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13837 (eval $ac_compile) 2>&5 13838 ac_status=$? 13839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13840 test $ac_status = 0; }; then 13841 # Parse the compiler output and extract the necessary 13842 # objects, libraries and library flags. 13843 13844 # Sentinel used to keep track of whether or not we are before 13845 # the conftest object file. 13846 pre_test_object_deps_done=no 13847 13848 for p in `eval "$output_verbose_link_cmd"`; do 13849 case $p in 13850 13851 -L* | -R* | -l*) 13852 # Some compilers place space between "-{L,R}" and the path. 13853 # Remove the space. 13854 if test $p = "-L" || 13855 test $p = "-R"; then 13856 prev=$p 13857 continue 13858 else 13859 prev= 13860 fi 13861 13862 if test "$pre_test_object_deps_done" = no; then 13863 case $p in 13864 -L* | -R*) 13865 # Internal compiler library paths should come after those 13866 # provided the user. The postdeps already come after the 13867 # user supplied libs so there is no need to process them. 13868 if test -z "$compiler_lib_search_path_CXX"; then 13869 compiler_lib_search_path_CXX="${prev}${p}" 13870 else 13871 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13872 fi 13873 ;; 13874 # The "-l" case would never come before the object being 13875 # linked, so don't bother handling this case. 13876 esac 13877 else 13878 if test -z "$postdeps_CXX"; then 13879 postdeps_CXX="${prev}${p}" 13880 else 13881 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13882 fi 13883 fi 13884 ;; 13885 13886 *.$objext) 13887 # This assumes that the test object file only shows up 13888 # once in the compiler output. 13889 if test "$p" = "conftest.$objext"; then 13890 pre_test_object_deps_done=yes 13891 continue 13892 fi 13893 13894 if test "$pre_test_object_deps_done" = no; then 13895 if test -z "$predep_objects_CXX"; then 13896 predep_objects_CXX="$p" 13897 else 13898 predep_objects_CXX="$predep_objects_CXX $p" 13899 fi 13900 else 13901 if test -z "$postdep_objects_CXX"; then 13902 postdep_objects_CXX="$p" 13903 else 13904 postdep_objects_CXX="$postdep_objects_CXX $p" 13905 fi 13906 fi 13907 ;; 13908 13909 *) ;; # Ignore the rest. 13910 13911 esac 13912 done 13913 13914 # Clean up. 13915 rm -f a.out a.exe 13916else 13917 echo "libtool.m4: error: problem compiling CXX test program" 13918fi 13919 13920$RM -f confest.$objext 13921 13922# PORTME: override above test on systems where it is broken 13923case $host_os in 13924interix[3-9]*) 13925 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13926 # hack all around it, let's just trust "g++" to DTRT. 13927 predep_objects_CXX= 13928 postdep_objects_CXX= 13929 postdeps_CXX= 13930 ;; 13931 13932linux*) 13933 case `$CC -V 2>&1 | sed 5q` in 13934 *Sun\ C*) 13935 # Sun C++ 5.9 13936 13937 # The more standards-conforming stlport4 library is 13938 # incompatible with the Cstd library. Avoid specifying 13939 # it if it's in CXXFLAGS. Ignore libCrun as 13940 # -library=stlport4 depends on it. 13941 case " $CXX $CXXFLAGS " in 13942 *" -library=stlport4 "*) 13943 solaris_use_stlport4=yes 13944 ;; 13945 esac 13946 13947 if test "$solaris_use_stlport4" != yes; then 13948 postdeps_CXX='-library=Cstd -library=Crun' 13949 fi 13950 ;; 13951 esac 13952 ;; 13953 13954solaris*) 13955 case $cc_basename in 13956 CC*) 13957 # The more standards-conforming stlport4 library is 13958 # incompatible with the Cstd library. Avoid specifying 13959 # it if it's in CXXFLAGS. Ignore libCrun as 13960 # -library=stlport4 depends on it. 13961 case " $CXX $CXXFLAGS " in 13962 *" -library=stlport4 "*) 13963 solaris_use_stlport4=yes 13964 ;; 13965 esac 13966 13967 # Adding this requires a known-good setup of shared libraries for 13968 # Sun compiler versions before 5.6, else PIC objects from an old 13969 # archive will be linked into the output, leading to subtle bugs. 13970 if test "$solaris_use_stlport4" != yes; then 13971 postdeps_CXX='-library=Cstd -library=Crun' 13972 fi 13973 ;; 13974 esac 13975 ;; 13976esac 13977 13978 13979case " $postdeps_CXX " in 13980*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13981esac 13982 compiler_lib_search_dirs_CXX= 13983if test -n "${compiler_lib_search_path_CXX}"; then 13984 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13985fi 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 lt_prog_compiler_wl_CXX= 14018lt_prog_compiler_pic_CXX= 14019lt_prog_compiler_static_CXX= 14020 14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14022$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14023 14024 # C++ specific cases for pic, static, wl, etc. 14025 if test "$GXX" = yes; then 14026 lt_prog_compiler_wl_CXX='-Wl,' 14027 lt_prog_compiler_static_CXX='-static' 14028 14029 case $host_os in 14030 aix*) 14031 # All AIX code is PIC. 14032 if test "$host_cpu" = ia64; then 14033 # AIX 5 now supports IA64 processor 14034 lt_prog_compiler_static_CXX='-Bstatic' 14035 fi 14036 lt_prog_compiler_pic_CXX='-fPIC' 14037 ;; 14038 14039 amigaos*) 14040 case $host_cpu in 14041 powerpc) 14042 # see comment about AmigaOS4 .so support 14043 lt_prog_compiler_pic_CXX='-fPIC' 14044 ;; 14045 m68k) 14046 # FIXME: we need at least 68020 code to build shared libraries, but 14047 # adding the `-m68020' flag to GCC prevents building anything better, 14048 # like `-m68040'. 14049 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14050 ;; 14051 esac 14052 ;; 14053 14054 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14055 # PIC is the default for these OSes. 14056 ;; 14057 mingw* | cygwin* | os2* | pw32* | cegcc*) 14058 # This hack is so that the source file can tell whether it is being 14059 # built for inclusion in a dll (and should export symbols for example). 14060 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14061 # (--disable-auto-import) libraries 14062 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14063 ;; 14064 darwin* | rhapsody*) 14065 # PIC is the default on this platform 14066 # Common symbols not allowed in MH_DYLIB files 14067 lt_prog_compiler_pic_CXX='-fno-common' 14068 ;; 14069 *djgpp*) 14070 # DJGPP does not support shared libraries at all 14071 lt_prog_compiler_pic_CXX= 14072 ;; 14073 haiku*) 14074 # PIC is the default for Haiku. 14075 # The "-static" flag exists, but is broken. 14076 lt_prog_compiler_static_CXX= 14077 ;; 14078 interix[3-9]*) 14079 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14080 # Instead, we relocate shared libraries at runtime. 14081 ;; 14082 sysv4*MP*) 14083 if test -d /usr/nec; then 14084 lt_prog_compiler_pic_CXX=-Kconform_pic 14085 fi 14086 ;; 14087 hpux*) 14088 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14089 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14090 # sets the default TLS model and affects inlining. 14091 case $host_cpu in 14092 hppa*64*) 14093 ;; 14094 *) 14095 lt_prog_compiler_pic_CXX='-fPIC' 14096 ;; 14097 esac 14098 ;; 14099 *qnx* | *nto*) 14100 # QNX uses GNU C++, but need to define -shared option too, otherwise 14101 # it will coredump. 14102 lt_prog_compiler_pic_CXX='-fPIC -shared' 14103 ;; 14104 *) 14105 lt_prog_compiler_pic_CXX='-fPIC' 14106 ;; 14107 esac 14108 else 14109 case $host_os in 14110 aix[4-9]*) 14111 # All AIX code is PIC. 14112 if test "$host_cpu" = ia64; then 14113 # AIX 5 now supports IA64 processor 14114 lt_prog_compiler_static_CXX='-Bstatic' 14115 else 14116 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14117 fi 14118 ;; 14119 chorus*) 14120 case $cc_basename in 14121 cxch68*) 14122 # Green Hills C++ Compiler 14123 # _LT_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" 14124 ;; 14125 esac 14126 ;; 14127 dgux*) 14128 case $cc_basename in 14129 ec++*) 14130 lt_prog_compiler_pic_CXX='-KPIC' 14131 ;; 14132 ghcx*) 14133 # Green Hills C++ Compiler 14134 lt_prog_compiler_pic_CXX='-pic' 14135 ;; 14136 *) 14137 ;; 14138 esac 14139 ;; 14140 freebsd* | dragonfly*) 14141 # FreeBSD uses GNU C++ 14142 ;; 14143 hpux9* | hpux10* | hpux11*) 14144 case $cc_basename in 14145 CC*) 14146 lt_prog_compiler_wl_CXX='-Wl,' 14147 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14148 if test "$host_cpu" != ia64; then 14149 lt_prog_compiler_pic_CXX='+Z' 14150 fi 14151 ;; 14152 aCC*) 14153 lt_prog_compiler_wl_CXX='-Wl,' 14154 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14155 case $host_cpu in 14156 hppa*64*|ia64*) 14157 # +Z the default 14158 ;; 14159 *) 14160 lt_prog_compiler_pic_CXX='+Z' 14161 ;; 14162 esac 14163 ;; 14164 *) 14165 ;; 14166 esac 14167 ;; 14168 interix*) 14169 # This is c89, which is MS Visual C++ (no shared libs) 14170 # Anyone wants to do a port? 14171 ;; 14172 irix5* | irix6* | nonstopux*) 14173 case $cc_basename in 14174 CC*) 14175 lt_prog_compiler_wl_CXX='-Wl,' 14176 lt_prog_compiler_static_CXX='-non_shared' 14177 # CC pic flag -KPIC is the default. 14178 ;; 14179 *) 14180 ;; 14181 esac 14182 ;; 14183 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14184 case $cc_basename in 14185 KCC*) 14186 # KAI C++ Compiler 14187 lt_prog_compiler_wl_CXX='--backend -Wl,' 14188 lt_prog_compiler_pic_CXX='-fPIC' 14189 ;; 14190 ecpc* ) 14191 # old Intel C++ for x86_64 which still supported -KPIC. 14192 lt_prog_compiler_wl_CXX='-Wl,' 14193 lt_prog_compiler_pic_CXX='-KPIC' 14194 lt_prog_compiler_static_CXX='-static' 14195 ;; 14196 icpc* ) 14197 # Intel C++, used to be incompatible with GCC. 14198 # ICC 10 doesn't accept -KPIC any more. 14199 lt_prog_compiler_wl_CXX='-Wl,' 14200 lt_prog_compiler_pic_CXX='-fPIC' 14201 lt_prog_compiler_static_CXX='-static' 14202 ;; 14203 pgCC* | pgcpp*) 14204 # Portland Group C++ compiler 14205 lt_prog_compiler_wl_CXX='-Wl,' 14206 lt_prog_compiler_pic_CXX='-fpic' 14207 lt_prog_compiler_static_CXX='-Bstatic' 14208 ;; 14209 cxx*) 14210 # Compaq C++ 14211 # Make sure the PIC flag is empty. It appears that all Alpha 14212 # Linux and Compaq Tru64 Unix objects are PIC. 14213 lt_prog_compiler_pic_CXX= 14214 lt_prog_compiler_static_CXX='-non_shared' 14215 ;; 14216 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14217 # IBM XL 8.0, 9.0 on PPC and BlueGene 14218 lt_prog_compiler_wl_CXX='-Wl,' 14219 lt_prog_compiler_pic_CXX='-qpic' 14220 lt_prog_compiler_static_CXX='-qstaticlink' 14221 ;; 14222 *) 14223 case `$CC -V 2>&1 | sed 5q` in 14224 *Sun\ C*) 14225 # Sun C++ 5.9 14226 lt_prog_compiler_pic_CXX='-KPIC' 14227 lt_prog_compiler_static_CXX='-Bstatic' 14228 lt_prog_compiler_wl_CXX='-Qoption ld ' 14229 ;; 14230 esac 14231 ;; 14232 esac 14233 ;; 14234 lynxos*) 14235 ;; 14236 m88k*) 14237 ;; 14238 mvs*) 14239 case $cc_basename in 14240 cxx*) 14241 lt_prog_compiler_pic_CXX='-W c,exportall' 14242 ;; 14243 *) 14244 ;; 14245 esac 14246 ;; 14247 netbsd*) 14248 ;; 14249 *qnx* | *nto*) 14250 # QNX uses GNU C++, but need to define -shared option too, otherwise 14251 # it will coredump. 14252 lt_prog_compiler_pic_CXX='-fPIC -shared' 14253 ;; 14254 osf3* | osf4* | osf5*) 14255 case $cc_basename in 14256 KCC*) 14257 lt_prog_compiler_wl_CXX='--backend -Wl,' 14258 ;; 14259 RCC*) 14260 # Rational C++ 2.4.1 14261 lt_prog_compiler_pic_CXX='-pic' 14262 ;; 14263 cxx*) 14264 # Digital/Compaq C++ 14265 lt_prog_compiler_wl_CXX='-Wl,' 14266 # Make sure the PIC flag is empty. It appears that all Alpha 14267 # Linux and Compaq Tru64 Unix objects are PIC. 14268 lt_prog_compiler_pic_CXX= 14269 lt_prog_compiler_static_CXX='-non_shared' 14270 ;; 14271 *) 14272 ;; 14273 esac 14274 ;; 14275 psos*) 14276 ;; 14277 solaris*) 14278 case $cc_basename in 14279 CC*) 14280 # Sun C++ 4.2, 5.x and Centerline C++ 14281 lt_prog_compiler_pic_CXX='-KPIC' 14282 lt_prog_compiler_static_CXX='-Bstatic' 14283 lt_prog_compiler_wl_CXX='-Qoption ld ' 14284 ;; 14285 gcx*) 14286 # Green Hills C++ Compiler 14287 lt_prog_compiler_pic_CXX='-PIC' 14288 ;; 14289 *) 14290 ;; 14291 esac 14292 ;; 14293 sunos4*) 14294 case $cc_basename in 14295 CC*) 14296 # Sun C++ 4.x 14297 lt_prog_compiler_pic_CXX='-pic' 14298 lt_prog_compiler_static_CXX='-Bstatic' 14299 ;; 14300 lcc*) 14301 # Lucid 14302 lt_prog_compiler_pic_CXX='-pic' 14303 ;; 14304 *) 14305 ;; 14306 esac 14307 ;; 14308 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14309 case $cc_basename in 14310 CC*) 14311 lt_prog_compiler_wl_CXX='-Wl,' 14312 lt_prog_compiler_pic_CXX='-KPIC' 14313 lt_prog_compiler_static_CXX='-Bstatic' 14314 ;; 14315 esac 14316 ;; 14317 tandem*) 14318 case $cc_basename in 14319 NCC*) 14320 # NonStop-UX NCC 3.20 14321 lt_prog_compiler_pic_CXX='-KPIC' 14322 ;; 14323 *) 14324 ;; 14325 esac 14326 ;; 14327 vxworks*) 14328 ;; 14329 *) 14330 lt_prog_compiler_can_build_shared_CXX=no 14331 ;; 14332 esac 14333 fi 14334 14335case $host_os in 14336 # For platforms which do not support PIC, -DPIC is meaningless: 14337 *djgpp*) 14338 lt_prog_compiler_pic_CXX= 14339 ;; 14340 *) 14341 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14342 ;; 14343esac 14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 14345$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14346 14347 14348 14349# 14350# Check to make sure the PIC flag actually works. 14351# 14352if test -n "$lt_prog_compiler_pic_CXX"; then 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14354$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14355if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 14356 $as_echo_n "(cached) " >&6 14357else 14358 lt_cv_prog_compiler_pic_works_CXX=no 14359 ac_outfile=conftest.$ac_objext 14360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14361 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14362 # Insert the option either (1) after the last *FLAGS variable, or 14363 # (2) before a word containing "conftest.", or (3) at the end. 14364 # Note that $ac_compile itself does not contain backslashes and begins 14365 # with a dollar sign (not a hyphen), so the echo should work correctly. 14366 # The option is referenced via a variable to avoid confusing sed. 14367 lt_compile=`echo "$ac_compile" | $SED \ 14368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14370 -e 's:$: $lt_compiler_flag:'` 14371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14372 (eval "$lt_compile" 2>conftest.err) 14373 ac_status=$? 14374 cat conftest.err >&5 14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14376 if (exit $ac_status) && test -s "$ac_outfile"; then 14377 # The compiler can only warn and ignore the option if not recognized 14378 # So say no if there are warnings other than the usual output. 14379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14382 lt_cv_prog_compiler_pic_works_CXX=yes 14383 fi 14384 fi 14385 $RM conftest* 14386 14387fi 14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14389$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14390 14391if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14392 case $lt_prog_compiler_pic_CXX in 14393 "" | " "*) ;; 14394 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14395 esac 14396else 14397 lt_prog_compiler_pic_CXX= 14398 lt_prog_compiler_can_build_shared_CXX=no 14399fi 14400 14401fi 14402 14403 14404 14405# 14406# Check to make sure the static flag actually works. 14407# 14408wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14410$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14411if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 14412 $as_echo_n "(cached) " >&6 14413else 14414 lt_cv_prog_compiler_static_works_CXX=no 14415 save_LDFLAGS="$LDFLAGS" 14416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14417 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14419 # The linker can only warn and ignore the option if not recognized 14420 # So say no if there are warnings 14421 if test -s conftest.err; then 14422 # Append any errors to the config.log. 14423 cat conftest.err 1>&5 14424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14426 if diff conftest.exp conftest.er2 >/dev/null; then 14427 lt_cv_prog_compiler_static_works_CXX=yes 14428 fi 14429 else 14430 lt_cv_prog_compiler_static_works_CXX=yes 14431 fi 14432 fi 14433 $RM -r conftest* 14434 LDFLAGS="$save_LDFLAGS" 14435 14436fi 14437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14438$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14439 14440if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14441 : 14442else 14443 lt_prog_compiler_static_CXX= 14444fi 14445 14446 14447 14448 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14450$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14451if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14452 $as_echo_n "(cached) " >&6 14453else 14454 lt_cv_prog_compiler_c_o_CXX=no 14455 $RM -r conftest 2>/dev/null 14456 mkdir conftest 14457 cd conftest 14458 mkdir out 14459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14460 14461 lt_compiler_flag="-o out/conftest2.$ac_objext" 14462 # Insert the option either (1) after the last *FLAGS variable, or 14463 # (2) before a word containing "conftest.", or (3) at the end. 14464 # Note that $ac_compile itself does not contain backslashes and begins 14465 # with a dollar sign (not a hyphen), so the echo should work correctly. 14466 lt_compile=`echo "$ac_compile" | $SED \ 14467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14469 -e 's:$: $lt_compiler_flag:'` 14470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14471 (eval "$lt_compile" 2>out/conftest.err) 14472 ac_status=$? 14473 cat out/conftest.err >&5 14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14475 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14476 then 14477 # The compiler can only warn and ignore the option if not recognized 14478 # So say no if there are warnings 14479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14482 lt_cv_prog_compiler_c_o_CXX=yes 14483 fi 14484 fi 14485 chmod u+w . 2>&5 14486 $RM conftest* 14487 # SGI C++ compiler will create directory out/ii_files/ for 14488 # template instantiation 14489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14490 $RM out/* && rmdir out 14491 cd .. 14492 $RM -r conftest 14493 $RM conftest* 14494 14495fi 14496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14497$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14498 14499 14500 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14502$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14503if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14504 $as_echo_n "(cached) " >&6 14505else 14506 lt_cv_prog_compiler_c_o_CXX=no 14507 $RM -r conftest 2>/dev/null 14508 mkdir conftest 14509 cd conftest 14510 mkdir out 14511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14512 14513 lt_compiler_flag="-o out/conftest2.$ac_objext" 14514 # Insert the option either (1) after the last *FLAGS variable, or 14515 # (2) before a word containing "conftest.", or (3) at the end. 14516 # Note that $ac_compile itself does not contain backslashes and begins 14517 # with a dollar sign (not a hyphen), so the echo should work correctly. 14518 lt_compile=`echo "$ac_compile" | $SED \ 14519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14521 -e 's:$: $lt_compiler_flag:'` 14522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14523 (eval "$lt_compile" 2>out/conftest.err) 14524 ac_status=$? 14525 cat out/conftest.err >&5 14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14527 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14528 then 14529 # The compiler can only warn and ignore the option if not recognized 14530 # So say no if there are warnings 14531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14534 lt_cv_prog_compiler_c_o_CXX=yes 14535 fi 14536 fi 14537 chmod u+w . 2>&5 14538 $RM conftest* 14539 # SGI C++ compiler will create directory out/ii_files/ for 14540 # template instantiation 14541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14542 $RM out/* && rmdir out 14543 cd .. 14544 $RM -r conftest 14545 $RM conftest* 14546 14547fi 14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14549$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14550 14551 14552 14553 14554hard_links="nottested" 14555if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14556 # do not overwrite the value of need_locks provided by the user 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14558$as_echo_n "checking if we can lock with hard links... " >&6; } 14559 hard_links=yes 14560 $RM conftest* 14561 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14562 touch conftest.a 14563 ln conftest.a conftest.b 2>&5 || hard_links=no 14564 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14566$as_echo "$hard_links" >&6; } 14567 if test "$hard_links" = no; then 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14569$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14570 need_locks=warn 14571 fi 14572else 14573 need_locks=no 14574fi 14575 14576 14577 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14579$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14580 14581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14582 case $host_os in 14583 aix[4-9]*) 14584 # If we're using GNU nm, then we don't want the "-C" option. 14585 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14586 # Also, AIX nm treats weak defined symbols like other global defined 14587 # symbols, whereas GNU nm marks them as "W". 14588 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14589 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14590 else 14591 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' 14592 fi 14593 ;; 14594 pw32*) 14595 export_symbols_cmds_CXX="$ltdll_cmds" 14596 ;; 14597 cygwin* | mingw* | cegcc*) 14598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14599 ;; 14600 *) 14601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14602 ;; 14603 esac 14604 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14605 14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14607$as_echo "$ld_shlibs_CXX" >&6; } 14608test "$ld_shlibs_CXX" = no && can_build_shared=no 14609 14610with_gnu_ld_CXX=$with_gnu_ld 14611 14612 14613 14614 14615 14616 14617# 14618# Do we need to explicitly link libc? 14619# 14620case "x$archive_cmds_need_lc_CXX" in 14621x|xyes) 14622 # Assume -lc should be added 14623 archive_cmds_need_lc_CXX=yes 14624 14625 if test "$enable_shared" = yes && test "$GCC" = yes; then 14626 case $archive_cmds_CXX in 14627 *'~'*) 14628 # FIXME: we may have to deal with multi-command sequences. 14629 ;; 14630 '$CC '*) 14631 # Test whether the compiler implicitly links with -lc since on some 14632 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14633 # to ld, don't add -lc before -lgcc. 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14635$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14636if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 14637 $as_echo_n "(cached) " >&6 14638else 14639 $RM conftest* 14640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14641 14642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14643 (eval $ac_compile) 2>&5 14644 ac_status=$? 14645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14646 test $ac_status = 0; } 2>conftest.err; then 14647 soname=conftest 14648 lib=conftest 14649 libobjs=conftest.$ac_objext 14650 deplibs= 14651 wl=$lt_prog_compiler_wl_CXX 14652 pic_flag=$lt_prog_compiler_pic_CXX 14653 compiler_flags=-v 14654 linker_flags=-v 14655 verstring= 14656 output_objdir=. 14657 libname=conftest 14658 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14659 allow_undefined_flag_CXX= 14660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14661 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14662 ac_status=$? 14663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14664 test $ac_status = 0; } 14665 then 14666 lt_cv_archive_cmds_need_lc_CXX=no 14667 else 14668 lt_cv_archive_cmds_need_lc_CXX=yes 14669 fi 14670 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14671 else 14672 cat conftest.err 1>&5 14673 fi 14674 $RM conftest* 14675 14676fi 14677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14678$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14679 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14680 ;; 14681 esac 14682 fi 14683 ;; 14684esac 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14750$as_echo_n "checking dynamic linker characteristics... " >&6; } 14751 14752library_names_spec= 14753libname_spec='lib$name' 14754soname_spec= 14755shrext_cmds=".so" 14756postinstall_cmds= 14757postuninstall_cmds= 14758finish_cmds= 14759finish_eval= 14760shlibpath_var= 14761shlibpath_overrides_runpath=unknown 14762version_type=none 14763dynamic_linker="$host_os ld.so" 14764sys_lib_dlsearch_path_spec="/lib /usr/lib" 14765need_lib_prefix=unknown 14766hardcode_into_libs=no 14767 14768# when you set need_version to no, make sure it does not cause -set_version 14769# flags to be left without arguments 14770need_version=unknown 14771 14772case $host_os in 14773aix3*) 14774 version_type=linux 14775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14776 shlibpath_var=LIBPATH 14777 14778 # AIX 3 has no versioning support, so we append a major version to the name. 14779 soname_spec='${libname}${release}${shared_ext}$major' 14780 ;; 14781 14782aix[4-9]*) 14783 version_type=linux 14784 need_lib_prefix=no 14785 need_version=no 14786 hardcode_into_libs=yes 14787 if test "$host_cpu" = ia64; then 14788 # AIX 5 supports IA64 14789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14790 shlibpath_var=LD_LIBRARY_PATH 14791 else 14792 # With GCC up to 2.95.x, collect2 would create an import file 14793 # for dependence libraries. The import file would start with 14794 # the line `#! .'. This would cause the generated library to 14795 # depend on `.', always an invalid library. This was fixed in 14796 # development snapshots of GCC prior to 3.0. 14797 case $host_os in 14798 aix4 | aix4.[01] | aix4.[01].*) 14799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14800 echo ' yes ' 14801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14802 : 14803 else 14804 can_build_shared=no 14805 fi 14806 ;; 14807 esac 14808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14809 # soname into executable. Probably we can add versioning support to 14810 # collect2, so additional links can be useful in future. 14811 if test "$aix_use_runtimelinking" = yes; then 14812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14813 # instead of lib<name>.a to let people know that these are not 14814 # typical AIX shared libraries. 14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14816 else 14817 # We preserve .a as extension for shared libraries through AIX4.2 14818 # and later when we are not doing run time linking. 14819 library_names_spec='${libname}${release}.a $libname.a' 14820 soname_spec='${libname}${release}${shared_ext}$major' 14821 fi 14822 shlibpath_var=LIBPATH 14823 fi 14824 ;; 14825 14826amigaos*) 14827 case $host_cpu in 14828 powerpc) 14829 # Since July 2007 AmigaOS4 officially supports .so libraries. 14830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14832 ;; 14833 m68k) 14834 library_names_spec='$libname.ixlibrary $libname.a' 14835 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14836 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 14837 ;; 14838 esac 14839 ;; 14840 14841beos*) 14842 library_names_spec='${libname}${shared_ext}' 14843 dynamic_linker="$host_os ld.so" 14844 shlibpath_var=LIBRARY_PATH 14845 ;; 14846 14847bsdi[45]*) 14848 version_type=linux 14849 need_version=no 14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14851 soname_spec='${libname}${release}${shared_ext}$major' 14852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14853 shlibpath_var=LD_LIBRARY_PATH 14854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14856 # the default ld.so.conf also contains /usr/contrib/lib and 14857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14858 # libtool to hard-code these into programs 14859 ;; 14860 14861cygwin* | mingw* | pw32* | cegcc*) 14862 version_type=windows 14863 shrext_cmds=".dll" 14864 need_version=no 14865 need_lib_prefix=no 14866 14867 case $GCC,$host_os in 14868 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14869 library_names_spec='$libname.dll.a' 14870 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14871 postinstall_cmds='base_file=`basename \${file}`~ 14872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14873 dldir=$destdir/`dirname \$dlpath`~ 14874 test -d \$dldir || mkdir -p \$dldir~ 14875 $install_prog $dir/$dlname \$dldir/$dlname~ 14876 chmod a+x \$dldir/$dlname~ 14877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14879 fi' 14880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14881 dlpath=$dir/\$dldll~ 14882 $RM \$dlpath' 14883 shlibpath_overrides_runpath=yes 14884 14885 case $host_os in 14886 cygwin*) 14887 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14889 14890 ;; 14891 mingw* | cegcc*) 14892 # MinGW DLLs use traditional 'lib' prefix 14893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14894 ;; 14895 pw32*) 14896 # pw32 DLLs use 'pw' prefix rather than 'lib' 14897 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14898 ;; 14899 esac 14900 ;; 14901 14902 *) 14903 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14904 ;; 14905 esac 14906 dynamic_linker='Win32 ld.exe' 14907 # FIXME: first we should search . and the directory the executable is in 14908 shlibpath_var=PATH 14909 ;; 14910 14911darwin* | rhapsody*) 14912 dynamic_linker="$host_os dyld" 14913 version_type=darwin 14914 need_lib_prefix=no 14915 need_version=no 14916 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14917 soname_spec='${libname}${release}${major}$shared_ext' 14918 shlibpath_overrides_runpath=yes 14919 shlibpath_var=DYLD_LIBRARY_PATH 14920 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14921 14922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14923 ;; 14924 14925dgux*) 14926 version_type=linux 14927 need_lib_prefix=no 14928 need_version=no 14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14930 soname_spec='${libname}${release}${shared_ext}$major' 14931 shlibpath_var=LD_LIBRARY_PATH 14932 ;; 14933 14934freebsd* | dragonfly*) 14935 # DragonFly does not have aout. When/if they implement a new 14936 # versioning mechanism, adjust this. 14937 if test -x /usr/bin/objformat; then 14938 objformat=`/usr/bin/objformat` 14939 else 14940 case $host_os in 14941 freebsd[23].*) objformat=aout ;; 14942 *) objformat=elf ;; 14943 esac 14944 fi 14945 version_type=freebsd-$objformat 14946 case $version_type in 14947 freebsd-elf*) 14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14949 need_version=no 14950 need_lib_prefix=no 14951 ;; 14952 freebsd-*) 14953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14954 need_version=yes 14955 ;; 14956 esac 14957 shlibpath_var=LD_LIBRARY_PATH 14958 case $host_os in 14959 freebsd2.*) 14960 shlibpath_overrides_runpath=yes 14961 ;; 14962 freebsd3.[01]* | freebsdelf3.[01]*) 14963 shlibpath_overrides_runpath=yes 14964 hardcode_into_libs=yes 14965 ;; 14966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14968 shlibpath_overrides_runpath=no 14969 hardcode_into_libs=yes 14970 ;; 14971 *) # from 4.6 on, and DragonFly 14972 shlibpath_overrides_runpath=yes 14973 hardcode_into_libs=yes 14974 ;; 14975 esac 14976 ;; 14977 14978gnu*) 14979 version_type=linux 14980 need_lib_prefix=no 14981 need_version=no 14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14983 soname_spec='${libname}${release}${shared_ext}$major' 14984 shlibpath_var=LD_LIBRARY_PATH 14985 hardcode_into_libs=yes 14986 ;; 14987 14988haiku*) 14989 version_type=linux 14990 need_lib_prefix=no 14991 need_version=no 14992 dynamic_linker="$host_os runtime_loader" 14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14994 soname_spec='${libname}${release}${shared_ext}$major' 14995 shlibpath_var=LIBRARY_PATH 14996 shlibpath_overrides_runpath=yes 14997 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 14998 hardcode_into_libs=yes 14999 ;; 15000 15001hpux9* | hpux10* | hpux11*) 15002 # Give a soname corresponding to the major version so that dld.sl refuses to 15003 # link against other versions. 15004 version_type=sunos 15005 need_lib_prefix=no 15006 need_version=no 15007 case $host_cpu in 15008 ia64*) 15009 shrext_cmds='.so' 15010 hardcode_into_libs=yes 15011 dynamic_linker="$host_os dld.so" 15012 shlibpath_var=LD_LIBRARY_PATH 15013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15015 soname_spec='${libname}${release}${shared_ext}$major' 15016 if test "X$HPUX_IA64_MODE" = X32; then 15017 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15018 else 15019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15020 fi 15021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15022 ;; 15023 hppa*64*) 15024 shrext_cmds='.sl' 15025 hardcode_into_libs=yes 15026 dynamic_linker="$host_os dld.sl" 15027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15030 soname_spec='${libname}${release}${shared_ext}$major' 15031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15033 ;; 15034 *) 15035 shrext_cmds='.sl' 15036 dynamic_linker="$host_os dld.sl" 15037 shlibpath_var=SHLIB_PATH 15038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15040 soname_spec='${libname}${release}${shared_ext}$major' 15041 ;; 15042 esac 15043 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15044 postinstall_cmds='chmod 555 $lib' 15045 # or fails outright, so override atomically: 15046 install_override_mode=555 15047 ;; 15048 15049interix[3-9]*) 15050 version_type=linux 15051 need_lib_prefix=no 15052 need_version=no 15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15054 soname_spec='${libname}${release}${shared_ext}$major' 15055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15056 shlibpath_var=LD_LIBRARY_PATH 15057 shlibpath_overrides_runpath=no 15058 hardcode_into_libs=yes 15059 ;; 15060 15061irix5* | irix6* | nonstopux*) 15062 case $host_os in 15063 nonstopux*) version_type=nonstopux ;; 15064 *) 15065 if test "$lt_cv_prog_gnu_ld" = yes; then 15066 version_type=linux 15067 else 15068 version_type=irix 15069 fi ;; 15070 esac 15071 need_lib_prefix=no 15072 need_version=no 15073 soname_spec='${libname}${release}${shared_ext}$major' 15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15075 case $host_os in 15076 irix5* | nonstopux*) 15077 libsuff= shlibsuff= 15078 ;; 15079 *) 15080 case $LD in # libtool.m4 will add one of these switches to LD 15081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15082 libsuff= shlibsuff= libmagic=32-bit;; 15083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15084 libsuff=32 shlibsuff=N32 libmagic=N32;; 15085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15086 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15087 *) libsuff= shlibsuff= libmagic=never-match;; 15088 esac 15089 ;; 15090 esac 15091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15092 shlibpath_overrides_runpath=no 15093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15095 hardcode_into_libs=yes 15096 ;; 15097 15098# No shared lib support for Linux oldld, aout, or coff. 15099linux*oldld* | linux*aout* | linux*coff*) 15100 dynamic_linker=no 15101 ;; 15102 15103# This must be Linux ELF. 15104linux* | k*bsd*-gnu | kopensolaris*-gnu) 15105 version_type=linux 15106 need_lib_prefix=no 15107 need_version=no 15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15109 soname_spec='${libname}${release}${shared_ext}$major' 15110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15111 shlibpath_var=LD_LIBRARY_PATH 15112 shlibpath_overrides_runpath=no 15113 15114 # Some binutils ld are patched to set DT_RUNPATH 15115 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 15116 $as_echo_n "(cached) " >&6 15117else 15118 lt_cv_shlibpath_overrides_runpath=no 15119 save_LDFLAGS=$LDFLAGS 15120 save_libdir=$libdir 15121 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15122 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15124/* end confdefs.h. */ 15125 15126int 15127main () 15128{ 15129 15130 ; 15131 return 0; 15132} 15133_ACEOF 15134if ac_fn_cxx_try_link "$LINENO"; then : 15135 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15136 lt_cv_shlibpath_overrides_runpath=yes 15137fi 15138fi 15139rm -f core conftest.err conftest.$ac_objext \ 15140 conftest$ac_exeext conftest.$ac_ext 15141 LDFLAGS=$save_LDFLAGS 15142 libdir=$save_libdir 15143 15144fi 15145 15146 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15147 15148 # This implies no fast_install, which is unacceptable. 15149 # Some rework will be needed to allow for fast_install 15150 # before this can be enabled. 15151 hardcode_into_libs=yes 15152 15153 # Append ld.so.conf contents to the search path 15154 if test -f /etc/ld.so.conf; then 15155 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 15156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15157 fi 15158 15159 # We used to test for /lib/ld.so.1 and disable shared libraries on 15160 # powerpc, because MkLinux only supported shared libraries with the 15161 # GNU dynamic linker. Since this was broken with cross compilers, 15162 # most powerpc-linux boxes support dynamic linking these days and 15163 # people can always --disable-shared, the test was removed, and we 15164 # assume the GNU/Linux dynamic linker is in use. 15165 dynamic_linker='GNU/Linux ld.so' 15166 ;; 15167 15168netbsd*) 15169 version_type=sunos 15170 need_lib_prefix=no 15171 need_version=no 15172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15175 dynamic_linker='NetBSD (a.out) ld.so' 15176 else 15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15178 soname_spec='${libname}${release}${shared_ext}$major' 15179 dynamic_linker='NetBSD ld.elf_so' 15180 fi 15181 shlibpath_var=LD_LIBRARY_PATH 15182 shlibpath_overrides_runpath=yes 15183 hardcode_into_libs=yes 15184 ;; 15185 15186newsos6) 15187 version_type=linux 15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15189 shlibpath_var=LD_LIBRARY_PATH 15190 shlibpath_overrides_runpath=yes 15191 ;; 15192 15193*nto* | *qnx*) 15194 version_type=qnx 15195 need_lib_prefix=no 15196 need_version=no 15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15198 soname_spec='${libname}${release}${shared_ext}$major' 15199 shlibpath_var=LD_LIBRARY_PATH 15200 shlibpath_overrides_runpath=no 15201 hardcode_into_libs=yes 15202 dynamic_linker='ldqnx.so' 15203 ;; 15204 15205openbsd*) 15206 version_type=sunos 15207 sys_lib_dlsearch_path_spec="/usr/lib" 15208 need_lib_prefix=no 15209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15210 case $host_os in 15211 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15212 *) need_version=no ;; 15213 esac 15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15216 shlibpath_var=LD_LIBRARY_PATH 15217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15218 case $host_os in 15219 openbsd2.[89] | openbsd2.[89].*) 15220 shlibpath_overrides_runpath=no 15221 ;; 15222 *) 15223 shlibpath_overrides_runpath=yes 15224 ;; 15225 esac 15226 else 15227 shlibpath_overrides_runpath=yes 15228 fi 15229 ;; 15230 15231os2*) 15232 libname_spec='$name' 15233 shrext_cmds=".dll" 15234 need_lib_prefix=no 15235 library_names_spec='$libname${shared_ext} $libname.a' 15236 dynamic_linker='OS/2 ld.exe' 15237 shlibpath_var=LIBPATH 15238 ;; 15239 15240osf3* | osf4* | osf5*) 15241 version_type=osf 15242 need_lib_prefix=no 15243 need_version=no 15244 soname_spec='${libname}${release}${shared_ext}$major' 15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15246 shlibpath_var=LD_LIBRARY_PATH 15247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15249 ;; 15250 15251rdos*) 15252 dynamic_linker=no 15253 ;; 15254 15255solaris*) 15256 version_type=linux 15257 need_lib_prefix=no 15258 need_version=no 15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15260 soname_spec='${libname}${release}${shared_ext}$major' 15261 shlibpath_var=LD_LIBRARY_PATH 15262 shlibpath_overrides_runpath=yes 15263 hardcode_into_libs=yes 15264 # ldd complains unless libraries are executable 15265 postinstall_cmds='chmod +x $lib' 15266 ;; 15267 15268sunos4*) 15269 version_type=sunos 15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15272 shlibpath_var=LD_LIBRARY_PATH 15273 shlibpath_overrides_runpath=yes 15274 if test "$with_gnu_ld" = yes; then 15275 need_lib_prefix=no 15276 fi 15277 need_version=yes 15278 ;; 15279 15280sysv4 | sysv4.3*) 15281 version_type=linux 15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15283 soname_spec='${libname}${release}${shared_ext}$major' 15284 shlibpath_var=LD_LIBRARY_PATH 15285 case $host_vendor in 15286 sni) 15287 shlibpath_overrides_runpath=no 15288 need_lib_prefix=no 15289 runpath_var=LD_RUN_PATH 15290 ;; 15291 siemens) 15292 need_lib_prefix=no 15293 ;; 15294 motorola) 15295 need_lib_prefix=no 15296 need_version=no 15297 shlibpath_overrides_runpath=no 15298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15299 ;; 15300 esac 15301 ;; 15302 15303sysv4*MP*) 15304 if test -d /usr/nec ;then 15305 version_type=linux 15306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15307 soname_spec='$libname${shared_ext}.$major' 15308 shlibpath_var=LD_LIBRARY_PATH 15309 fi 15310 ;; 15311 15312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15313 version_type=freebsd-elf 15314 need_lib_prefix=no 15315 need_version=no 15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15317 soname_spec='${libname}${release}${shared_ext}$major' 15318 shlibpath_var=LD_LIBRARY_PATH 15319 shlibpath_overrides_runpath=yes 15320 hardcode_into_libs=yes 15321 if test "$with_gnu_ld" = yes; then 15322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15323 else 15324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15325 case $host_os in 15326 sco3.2v5*) 15327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15328 ;; 15329 esac 15330 fi 15331 sys_lib_dlsearch_path_spec='/usr/lib' 15332 ;; 15333 15334tpf*) 15335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15336 version_type=linux 15337 need_lib_prefix=no 15338 need_version=no 15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15340 shlibpath_var=LD_LIBRARY_PATH 15341 shlibpath_overrides_runpath=no 15342 hardcode_into_libs=yes 15343 ;; 15344 15345uts4*) 15346 version_type=linux 15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15348 soname_spec='${libname}${release}${shared_ext}$major' 15349 shlibpath_var=LD_LIBRARY_PATH 15350 ;; 15351 15352*) 15353 dynamic_linker=no 15354 ;; 15355esac 15356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15357$as_echo "$dynamic_linker" >&6; } 15358test "$dynamic_linker" = no && can_build_shared=no 15359 15360variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15361if test "$GCC" = yes; then 15362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15363fi 15364 15365if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15366 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15367fi 15368if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15369 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15370fi 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15410$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15411hardcode_action_CXX= 15412if test -n "$hardcode_libdir_flag_spec_CXX" || 15413 test -n "$runpath_var_CXX" || 15414 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15415 15416 # We can hardcode non-existent directories. 15417 if test "$hardcode_direct_CXX" != no && 15418 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15419 # have to relink, otherwise we might link with an installed library 15420 # when we should be linking with a yet-to-be-installed one 15421 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15422 test "$hardcode_minus_L_CXX" != no; then 15423 # Linking always hardcodes the temporary library directory. 15424 hardcode_action_CXX=relink 15425 else 15426 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15427 hardcode_action_CXX=immediate 15428 fi 15429else 15430 # We cannot hardcode anything, or else we can only hardcode existing 15431 # directories. 15432 hardcode_action_CXX=unsupported 15433fi 15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15435$as_echo "$hardcode_action_CXX" >&6; } 15436 15437if test "$hardcode_action_CXX" = relink || 15438 test "$inherit_rpath_CXX" = yes; then 15439 # Fast installation is not supported 15440 enable_fast_install=no 15441elif test "$shlibpath_overrides_runpath" = yes || 15442 test "$enable_shared" = no; then 15443 # Fast installation is not necessary 15444 enable_fast_install=needless 15445fi 15446 15447 15448 15449 15450 15451 15452 15453 fi # test -n "$compiler" 15454 15455 CC=$lt_save_CC 15456 LDCXX=$LD 15457 LD=$lt_save_LD 15458 GCC=$lt_save_GCC 15459 with_gnu_ld=$lt_save_with_gnu_ld 15460 lt_cv_path_LDCXX=$lt_cv_path_LD 15461 lt_cv_path_LD=$lt_save_path_LD 15462 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15463 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15464fi # test "$_lt_caught_CXX_error" != yes 15465 15466ac_ext=c 15467ac_cpp='$CPP $CPPFLAGS' 15468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15470ac_compiler_gnu=$ac_cv_c_compiler_gnu 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 ac_config_commands="$ac_config_commands libtool" 15485 15486 15487 15488 15489# Only expand once: 15490 15491 15492 15493 15494 15495case $host in 15496 *-cygwin* | *-mingw*) 15497 # 'host' will be top-level target in the case of a target lib, 15498 # we must compare to with_cross_host to decide if this is a native 15499 # or cross-compiler and select where to install dlls appropriately. 15500 if test -n "$with_cross_host" && 15501 test x"$with_cross_host" != x"no"; then 15502 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 15503 else 15504 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 15505 fi 15506 ;; 15507 *) 15508 lt_host_flags= 15509 ;; 15510esac 15511 15512 15513 15514 15515 15516 15517# For libtool versioning info, format is CURRENT:REVISION:AGE 15518libtool_VERSION=1:0:0 15519 15520 15521XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions" 15522 15523 15524if test "${multilib}" = "yes"; then 15525 multilib_arg="--enable-multilib" 15526else 15527 multilib_arg= 15528fi 15529 15530ac_config_files="$ac_config_files Makefile" 15531 15532 15533if test "x$VTV_SUPPORTED" = "xyes"; then 15534 ac_config_files="$ac_config_files testsuite/Makefile" 15535 15536fi 15537 15538case "$target_os" in 15539 cygwin*|mingw32*) 15540 vtv_cygmin="yes" 15541 ;; 15542 *) 15543 vtv_cygmin="no" 15544 ;; 15545esac 15546 15547 if test $vtv_cygmin = yes; then 15548 VTV_CYGMIN_TRUE= 15549 VTV_CYGMIN_FALSE='#' 15550else 15551 VTV_CYGMIN_TRUE='#' 15552 VTV_CYGMIN_FALSE= 15553fi 15554 15555 15556cat >confcache <<\_ACEOF 15557# This file is a shell script that caches the results of configure 15558# tests run on this system so they can be shared between configure 15559# scripts and configure runs, see configure's option --config-cache. 15560# It is not useful on other systems. If it contains results you don't 15561# want to keep, you may remove or edit it. 15562# 15563# config.status only pays attention to the cache file if you give it 15564# the --recheck option to rerun configure. 15565# 15566# `ac_cv_env_foo' variables (set or unset) will be overridden when 15567# loading this file, other *unset* `ac_cv_foo' will be assigned the 15568# following values. 15569 15570_ACEOF 15571 15572# The following way of writing the cache mishandles newlines in values, 15573# but we know of no workaround that is simple, portable, and efficient. 15574# So, we kill variables containing newlines. 15575# Ultrix sh set writes to stderr and can't be redirected directly, 15576# and sets the high bit in the cache file unless we assign to the vars. 15577( 15578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15579 eval ac_val=\$$ac_var 15580 case $ac_val in #( 15581 *${as_nl}*) 15582 case $ac_var in #( 15583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15585 esac 15586 case $ac_var in #( 15587 _ | IFS | as_nl) ;; #( 15588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15589 *) { eval $ac_var=; unset $ac_var;} ;; 15590 esac ;; 15591 esac 15592 done 15593 15594 (set) 2>&1 | 15595 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15596 *${as_nl}ac_space=\ *) 15597 # `set' does not quote correctly, so add quotes: double-quote 15598 # substitution turns \\\\ into \\, and sed turns \\ into \. 15599 sed -n \ 15600 "s/'/'\\\\''/g; 15601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15602 ;; #( 15603 *) 15604 # `set' quotes correctly as required by POSIX, so do not add quotes. 15605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15606 ;; 15607 esac | 15608 sort 15609) | 15610 sed ' 15611 /^ac_cv_env_/b end 15612 t clear 15613 :clear 15614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15615 t end 15616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15617 :end' >>confcache 15618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15619 if test -w "$cache_file"; then 15620 test "x$cache_file" != "x/dev/null" && 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15622$as_echo "$as_me: updating cache $cache_file" >&6;} 15623 cat confcache >$cache_file 15624 else 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15627 fi 15628fi 15629rm -f confcache 15630 15631test "x$prefix" = xNONE && prefix=$ac_default_prefix 15632# Let make expand exec_prefix. 15633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15634 15635# Transform confdefs.h into DEFS. 15636# Protect against shell expansion while executing Makefile rules. 15637# Protect against Makefile macro expansion. 15638# 15639# If the first sed substitution is executed (which looks for macros that 15640# take arguments), then branch to the quote section. Otherwise, 15641# look for a macro that doesn't take arguments. 15642ac_script=' 15643:mline 15644/\\$/{ 15645 N 15646 s,\\\n,, 15647 b mline 15648} 15649t clear 15650:clear 15651s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15652t quote 15653s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15654t quote 15655b any 15656:quote 15657s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15658s/\[/\\&/g 15659s/\]/\\&/g 15660s/\$/$$/g 15661H 15662:any 15663${ 15664 g 15665 s/^\n// 15666 s/\n/ /g 15667 p 15668} 15669' 15670DEFS=`sed -n "$ac_script" confdefs.h` 15671 15672 15673ac_libobjs= 15674ac_ltlibobjs= 15675for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15676 # 1. Remove the extension, and $U if already installed. 15677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15678 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15680 # will be set to the directory where LIBOBJS objects are built. 15681 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15682 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15683done 15684LIBOBJS=$ac_libobjs 15685 15686LTLIBOBJS=$ac_ltlibobjs 15687 15688 15689if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then 15690 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined. 15691Usually this means the macro was only invoked conditionally." "$LINENO" 5 15692fi 15693 if test -n "$EXEEXT"; then 15694 am__EXEEXT_TRUE= 15695 am__EXEEXT_FALSE='#' 15696else 15697 am__EXEEXT_TRUE='#' 15698 am__EXEEXT_FALSE= 15699fi 15700 15701if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15702 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 15703Usually this means the macro was only invoked conditionally." "$LINENO" 5 15704fi 15705if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15706 as_fn_error "conditional \"AMDEP\" was never defined. 15707Usually this means the macro was only invoked conditionally." "$LINENO" 5 15708fi 15709if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15710 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15711Usually this means the macro was only invoked conditionally." "$LINENO" 5 15712fi 15713if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15714 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15715Usually this means the macro was only invoked conditionally." "$LINENO" 5 15716fi 15717if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15718 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 15719Usually this means the macro was only invoked conditionally." "$LINENO" 5 15720fi 15721if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then 15722 as_fn_error "conditional \"VTV_CYGMIN\" was never defined. 15723Usually this means the macro was only invoked conditionally." "$LINENO" 5 15724fi 15725 15726: ${CONFIG_STATUS=./config.status} 15727ac_write_fail=0 15728ac_clean_files_save=$ac_clean_files 15729ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15730{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15731$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15732as_write_fail=0 15733cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15734#! $SHELL 15735# Generated by $as_me. 15736# Run this file to recreate the current configuration. 15737# Compiler output produced by configure, useful for debugging 15738# configure, is in config.log if it exists. 15739 15740debug=false 15741ac_cs_recheck=false 15742ac_cs_silent=false 15743 15744SHELL=\${CONFIG_SHELL-$SHELL} 15745export SHELL 15746_ASEOF 15747cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15748## -------------------- ## 15749## M4sh Initialization. ## 15750## -------------------- ## 15751 15752# Be more Bourne compatible 15753DUALCASE=1; export DUALCASE # for MKS sh 15754if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15755 emulate sh 15756 NULLCMD=: 15757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15758 # is contrary to our usage. Disable this feature. 15759 alias -g '${1+"$@"}'='"$@"' 15760 setopt NO_GLOB_SUBST 15761else 15762 case `(set -o) 2>/dev/null` in #( 15763 *posix*) : 15764 set -o posix ;; #( 15765 *) : 15766 ;; 15767esac 15768fi 15769 15770 15771as_nl=' 15772' 15773export as_nl 15774# Printing a long string crashes Solaris 7 /usr/bin/printf. 15775as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15776as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15777as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15778# Prefer a ksh shell builtin over an external printf program on Solaris, 15779# but without wasting forks for bash or zsh. 15780if test -z "$BASH_VERSION$ZSH_VERSION" \ 15781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15782 as_echo='print -r --' 15783 as_echo_n='print -rn --' 15784elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15785 as_echo='printf %s\n' 15786 as_echo_n='printf %s' 15787else 15788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15790 as_echo_n='/usr/ucb/echo -n' 15791 else 15792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15793 as_echo_n_body='eval 15794 arg=$1; 15795 case $arg in #( 15796 *"$as_nl"*) 15797 expr "X$arg" : "X\\(.*\\)$as_nl"; 15798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15799 esac; 15800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15801 ' 15802 export as_echo_n_body 15803 as_echo_n='sh -c $as_echo_n_body as_echo' 15804 fi 15805 export as_echo_body 15806 as_echo='sh -c $as_echo_body as_echo' 15807fi 15808 15809# The user is always right. 15810if test "${PATH_SEPARATOR+set}" != set; then 15811 PATH_SEPARATOR=: 15812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15814 PATH_SEPARATOR=';' 15815 } 15816fi 15817 15818 15819# IFS 15820# We need space, tab and new line, in precisely that order. Quoting is 15821# there to prevent editors from complaining about space-tab. 15822# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15823# splitting by setting IFS to empty value.) 15824IFS=" "" $as_nl" 15825 15826# Find who we are. Look in the path if we contain no directory separator. 15827case $0 in #(( 15828 *[\\/]* ) as_myself=$0 ;; 15829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15830for as_dir in $PATH 15831do 15832 IFS=$as_save_IFS 15833 test -z "$as_dir" && as_dir=. 15834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15835 done 15836IFS=$as_save_IFS 15837 15838 ;; 15839esac 15840# We did not find ourselves, most probably we were run as `sh COMMAND' 15841# in which case we are not to be found in the path. 15842if test "x$as_myself" = x; then 15843 as_myself=$0 15844fi 15845if test ! -f "$as_myself"; then 15846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15847 exit 1 15848fi 15849 15850# Unset variables that we do not need and which cause bugs (e.g. in 15851# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15852# suppresses any "Segmentation fault" message there. '((' could 15853# trigger a bug in pdksh 5.2.14. 15854for as_var in BASH_ENV ENV MAIL MAILPATH 15855do eval test x\${$as_var+set} = xset \ 15856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15857done 15858PS1='$ ' 15859PS2='> ' 15860PS4='+ ' 15861 15862# NLS nuisances. 15863LC_ALL=C 15864export LC_ALL 15865LANGUAGE=C 15866export LANGUAGE 15867 15868# CDPATH. 15869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15870 15871 15872# as_fn_error ERROR [LINENO LOG_FD] 15873# --------------------------------- 15874# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15875# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15876# script with status $?, using 1 if that was 0. 15877as_fn_error () 15878{ 15879 as_status=$?; test $as_status -eq 0 && as_status=1 15880 if test "$3"; then 15881 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 15883 fi 15884 $as_echo "$as_me: error: $1" >&2 15885 as_fn_exit $as_status 15886} # as_fn_error 15887 15888 15889# as_fn_set_status STATUS 15890# ----------------------- 15891# Set $? to STATUS, without forking. 15892as_fn_set_status () 15893{ 15894 return $1 15895} # as_fn_set_status 15896 15897# as_fn_exit STATUS 15898# ----------------- 15899# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15900as_fn_exit () 15901{ 15902 set +e 15903 as_fn_set_status $1 15904 exit $1 15905} # as_fn_exit 15906 15907# as_fn_unset VAR 15908# --------------- 15909# Portably unset VAR. 15910as_fn_unset () 15911{ 15912 { eval $1=; unset $1;} 15913} 15914as_unset=as_fn_unset 15915# as_fn_append VAR VALUE 15916# ---------------------- 15917# Append the text in VALUE to the end of the definition contained in VAR. Take 15918# advantage of any shell optimizations that allow amortized linear growth over 15919# repeated appends, instead of the typical quadratic growth present in naive 15920# implementations. 15921if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15922 eval 'as_fn_append () 15923 { 15924 eval $1+=\$2 15925 }' 15926else 15927 as_fn_append () 15928 { 15929 eval $1=\$$1\$2 15930 } 15931fi # as_fn_append 15932 15933# as_fn_arith ARG... 15934# ------------------ 15935# Perform arithmetic evaluation on the ARGs, and store the result in the 15936# global $as_val. Take advantage of shells that can avoid forks. The arguments 15937# must be portable across $(()) and expr. 15938if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15939 eval 'as_fn_arith () 15940 { 15941 as_val=$(( $* )) 15942 }' 15943else 15944 as_fn_arith () 15945 { 15946 as_val=`expr "$@" || test $? -eq 1` 15947 } 15948fi # as_fn_arith 15949 15950 15951if expr a : '\(a\)' >/dev/null 2>&1 && 15952 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15953 as_expr=expr 15954else 15955 as_expr=false 15956fi 15957 15958if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15959 as_basename=basename 15960else 15961 as_basename=false 15962fi 15963 15964if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15965 as_dirname=dirname 15966else 15967 as_dirname=false 15968fi 15969 15970as_me=`$as_basename -- "$0" || 15971$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15972 X"$0" : 'X\(//\)$' \| \ 15973 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15974$as_echo X/"$0" | 15975 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15976 s//\1/ 15977 q 15978 } 15979 /^X\/\(\/\/\)$/{ 15980 s//\1/ 15981 q 15982 } 15983 /^X\/\(\/\).*/{ 15984 s//\1/ 15985 q 15986 } 15987 s/.*/./; q'` 15988 15989# Avoid depending upon Character Ranges. 15990as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15991as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15992as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15993as_cr_digits='0123456789' 15994as_cr_alnum=$as_cr_Letters$as_cr_digits 15995 15996ECHO_C= ECHO_N= ECHO_T= 15997case `echo -n x` in #((((( 15998-n*) 15999 case `echo 'xy\c'` in 16000 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16001 xy) ECHO_C='\c';; 16002 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16003 ECHO_T=' ';; 16004 esac;; 16005*) 16006 ECHO_N='-n';; 16007esac 16008 16009rm -f conf$$ conf$$.exe conf$$.file 16010if test -d conf$$.dir; then 16011 rm -f conf$$.dir/conf$$.file 16012else 16013 rm -f conf$$.dir 16014 mkdir conf$$.dir 2>/dev/null 16015fi 16016if (echo >conf$$.file) 2>/dev/null; then 16017 if ln -s conf$$.file conf$$ 2>/dev/null; then 16018 as_ln_s='ln -s' 16019 # ... but there are two gotchas: 16020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16022 # In both cases, we have to default to `cp -p'. 16023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16024 as_ln_s='cp -p' 16025 elif ln conf$$.file conf$$ 2>/dev/null; then 16026 as_ln_s=ln 16027 else 16028 as_ln_s='cp -p' 16029 fi 16030else 16031 as_ln_s='cp -p' 16032fi 16033rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16034rmdir conf$$.dir 2>/dev/null 16035 16036 16037# as_fn_mkdir_p 16038# ------------- 16039# Create "$as_dir" as a directory, including parents if necessary. 16040as_fn_mkdir_p () 16041{ 16042 16043 case $as_dir in #( 16044 -*) as_dir=./$as_dir;; 16045 esac 16046 test -d "$as_dir" || eval $as_mkdir_p || { 16047 as_dirs= 16048 while :; do 16049 case $as_dir in #( 16050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16051 *) as_qdir=$as_dir;; 16052 esac 16053 as_dirs="'$as_qdir' $as_dirs" 16054 as_dir=`$as_dirname -- "$as_dir" || 16055$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16056 X"$as_dir" : 'X\(//\)[^/]' \| \ 16057 X"$as_dir" : 'X\(//\)$' \| \ 16058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16059$as_echo X"$as_dir" | 16060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16061 s//\1/ 16062 q 16063 } 16064 /^X\(\/\/\)[^/].*/{ 16065 s//\1/ 16066 q 16067 } 16068 /^X\(\/\/\)$/{ 16069 s//\1/ 16070 q 16071 } 16072 /^X\(\/\).*/{ 16073 s//\1/ 16074 q 16075 } 16076 s/.*/./; q'` 16077 test -d "$as_dir" && break 16078 done 16079 test -z "$as_dirs" || eval "mkdir $as_dirs" 16080 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 16081 16082 16083} # as_fn_mkdir_p 16084if mkdir -p . 2>/dev/null; then 16085 as_mkdir_p='mkdir -p "$as_dir"' 16086else 16087 test -d ./-p && rmdir ./-p 16088 as_mkdir_p=false 16089fi 16090 16091if test -x / >/dev/null 2>&1; then 16092 as_test_x='test -x' 16093else 16094 if ls -dL / >/dev/null 2>&1; then 16095 as_ls_L_option=L 16096 else 16097 as_ls_L_option= 16098 fi 16099 as_test_x=' 16100 eval sh -c '\'' 16101 if test -d "$1"; then 16102 test -d "$1/."; 16103 else 16104 case $1 in #( 16105 -*)set "./$1";; 16106 esac; 16107 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16108 ???[sx]*):;;*)false;;esac;fi 16109 '\'' sh 16110 ' 16111fi 16112as_executable_p=$as_test_x 16113 16114# Sed expression to map a string onto a valid CPP name. 16115as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16116 16117# Sed expression to map a string onto a valid variable name. 16118as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16119 16120 16121exec 6>&1 16122## ----------------------------------- ## 16123## Main body of $CONFIG_STATUS script. ## 16124## ----------------------------------- ## 16125_ASEOF 16126test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16127 16128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16129# Save the log message, to keep $0 and so on meaningful, and to 16130# report actual input values of CONFIG_FILES etc. instead of their 16131# values after options handling. 16132ac_log=" 16133This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was 16134generated by GNU Autoconf 2.64. Invocation command line was 16135 16136 CONFIG_FILES = $CONFIG_FILES 16137 CONFIG_HEADERS = $CONFIG_HEADERS 16138 CONFIG_LINKS = $CONFIG_LINKS 16139 CONFIG_COMMANDS = $CONFIG_COMMANDS 16140 $ $0 $@ 16141 16142on `(hostname || uname -n) 2>/dev/null | sed 1q` 16143" 16144 16145_ACEOF 16146 16147case $ac_config_files in *" 16148"*) set x $ac_config_files; shift; ac_config_files=$*;; 16149esac 16150 16151 16152 16153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16154# Files that config.status was made for. 16155config_files="$ac_config_files" 16156config_commands="$ac_config_commands" 16157 16158_ACEOF 16159 16160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16161ac_cs_usage="\ 16162\`$as_me' instantiates files and other configuration actions 16163from templates according to the current configuration. Unless the files 16164and actions are specified as TAGs, all are instantiated by default. 16165 16166Usage: $0 [OPTION]... [TAG]... 16167 16168 -h, --help print this help, then exit 16169 -V, --version print version number and configuration settings, then exit 16170 -q, --quiet, --silent 16171 do not print progress messages 16172 -d, --debug don't remove temporary files 16173 --recheck update $as_me by reconfiguring in the same conditions 16174 --file=FILE[:TEMPLATE] 16175 instantiate the configuration file FILE 16176 16177Configuration files: 16178$config_files 16179 16180Configuration commands: 16181$config_commands 16182 16183Report bugs to the package provider. 16184GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>. 16185General help using GNU software: <http://www.gnu.org/gethelp/>." 16186 16187_ACEOF 16188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16189ac_cs_version="\\ 16190GNU Vtable Verification Runtime Library config.status 1.0 16191configured by $0, generated by GNU Autoconf 2.64, 16192 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 16193 16194Copyright (C) 2009 Free Software Foundation, Inc. 16195This config.status script is free software; the Free Software Foundation 16196gives unlimited permission to copy, distribute and modify it." 16197 16198ac_pwd='$ac_pwd' 16199srcdir='$srcdir' 16200INSTALL='$INSTALL' 16201MKDIR_P='$MKDIR_P' 16202AWK='$AWK' 16203test -n "\$AWK" || AWK=awk 16204_ACEOF 16205 16206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16207# The default lists apply if the user does not specify any file. 16208ac_need_defaults=: 16209while test $# != 0 16210do 16211 case $1 in 16212 --*=*) 16213 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16215 ac_shift=: 16216 ;; 16217 *) 16218 ac_option=$1 16219 ac_optarg=$2 16220 ac_shift=shift 16221 ;; 16222 esac 16223 16224 case $ac_option in 16225 # Handling of the options. 16226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16227 ac_cs_recheck=: ;; 16228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16229 $as_echo "$ac_cs_version"; exit ;; 16230 --debug | --debu | --deb | --de | --d | -d ) 16231 debug=: ;; 16232 --file | --fil | --fi | --f ) 16233 $ac_shift 16234 case $ac_optarg in 16235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16236 esac 16237 as_fn_append CONFIG_FILES " '$ac_optarg'" 16238 ac_need_defaults=false;; 16239 --he | --h | --help | --hel | -h ) 16240 $as_echo "$ac_cs_usage"; exit ;; 16241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16242 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16243 ac_cs_silent=: ;; 16244 16245 # This is an error. 16246 -*) as_fn_error "unrecognized option: \`$1' 16247Try \`$0 --help' for more information." ;; 16248 16249 *) as_fn_append ac_config_targets " $1" 16250 ac_need_defaults=false ;; 16251 16252 esac 16253 shift 16254done 16255 16256ac_configure_extra_args= 16257 16258if $ac_cs_silent; then 16259 exec 6>/dev/null 16260 ac_configure_extra_args="$ac_configure_extra_args --silent" 16261fi 16262 16263_ACEOF 16264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16265if \$ac_cs_recheck; then 16266 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16267 shift 16268 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16269 CONFIG_SHELL='$SHELL' 16270 export CONFIG_SHELL 16271 exec "\$@" 16272fi 16273 16274_ACEOF 16275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16276exec 5>>config.log 16277{ 16278 echo 16279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16280## Running $as_me. ## 16281_ASBOX 16282 $as_echo "$ac_log" 16283} >&5 16284 16285_ACEOF 16286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16287# 16288# INIT-COMMANDS 16289# 16290 16291srcdir="$srcdir" 16292host="$host" 16293target="$target" 16294with_multisubdir="$with_multisubdir" 16295with_multisrctop="$with_multisrctop" 16296with_target_subdir="$with_target_subdir" 16297ac_configure_args="${multilib_arg} ${ac_configure_args}" 16298multi_basedir="$multi_basedir" 16299CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 16300CC="$CC" 16301CXX="$CXX" 16302GFORTRAN="$GFORTRAN" 16303GCJ="$GCJ" 16304AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16305 16306 16307# The HP-UX ksh and POSIX shell print the target directory to stdout 16308# if CDPATH is set. 16309(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16310 16311sed_quote_subst='$sed_quote_subst' 16312double_quote_subst='$double_quote_subst' 16313delay_variable_subst='$delay_variable_subst' 16314macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16315macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16316enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16317enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16318pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16319enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16320SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16321ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16322host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16323host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16324host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16325build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16326build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16327build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16328SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16329Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16330GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16331EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16332FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16333LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16334NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16335LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16336max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16337ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16338exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16339lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16340lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16341lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16342reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16343reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16344OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16345deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16346file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16347AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16348AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16349STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16350RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16351old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16352old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16353old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16354lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16355CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16356CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16357compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16358GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16359lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16360lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16361lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16362lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 16363objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16364MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16365lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16366lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16367lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16368lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16369lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16370need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16371DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16372NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16373LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16374OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16375OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16376libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16377shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16378extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16379archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16380enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16381export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16382whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16383compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16384old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16385old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16386archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16387archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16388module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16389module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16390with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16391allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16392no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16393hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16394hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16395hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16396hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16397hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16398hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16399hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16400hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16401inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16402link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16403fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16404always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16405export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16406exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16407include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16408prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16409file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16410variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16411need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16412need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16413version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16414runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16415shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16416shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16417libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16418library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16419soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16420install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16421postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16422postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16423finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16424finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16425hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16426sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16427sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16428hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16429enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16430enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16431enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16432old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16433striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16434compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16435predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16436postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16437predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16438postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16439compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16440LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16441reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16442reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16443old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16444compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16445GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16446lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16447lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16448lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16449lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16450lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16451archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16452enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16453export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16454whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16455compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16456old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16457old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16458archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16459archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16460module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16461module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16462with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16463allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16464no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16465hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16466hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 16467hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16468hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16469hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16470hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16471hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16472hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16473inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16474link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16475fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 16476always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16477export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16478exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16479include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16480prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16481file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16482hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16483compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16484predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16485postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16486predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16487postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16488compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16489 16490LTCC='$LTCC' 16491LTCFLAGS='$LTCFLAGS' 16492compiler='$compiler_DEFAULT' 16493 16494# A function that is used when there is no print builtin or printf. 16495func_fallback_echo () 16496{ 16497 eval 'cat <<_LTECHO_EOF 16498\$1 16499_LTECHO_EOF' 16500} 16501 16502# Quote evaled strings. 16503for var in SHELL \ 16504ECHO \ 16505SED \ 16506GREP \ 16507EGREP \ 16508FGREP \ 16509LD \ 16510NM \ 16511LN_S \ 16512lt_SP2NL \ 16513lt_NL2SP \ 16514reload_flag \ 16515OBJDUMP \ 16516deplibs_check_method \ 16517file_magic_cmd \ 16518AR \ 16519AR_FLAGS \ 16520STRIP \ 16521RANLIB \ 16522CC \ 16523CFLAGS \ 16524compiler \ 16525lt_cv_sys_global_symbol_pipe \ 16526lt_cv_sys_global_symbol_to_cdecl \ 16527lt_cv_sys_global_symbol_to_c_name_address \ 16528lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16529lt_prog_compiler_no_builtin_flag \ 16530lt_prog_compiler_wl \ 16531lt_prog_compiler_pic \ 16532lt_prog_compiler_static \ 16533lt_cv_prog_compiler_c_o \ 16534need_locks \ 16535DSYMUTIL \ 16536NMEDIT \ 16537LIPO \ 16538OTOOL \ 16539OTOOL64 \ 16540shrext_cmds \ 16541export_dynamic_flag_spec \ 16542whole_archive_flag_spec \ 16543compiler_needs_object \ 16544with_gnu_ld \ 16545allow_undefined_flag \ 16546no_undefined_flag \ 16547hardcode_libdir_flag_spec \ 16548hardcode_libdir_flag_spec_ld \ 16549hardcode_libdir_separator \ 16550fix_srcfile_path \ 16551exclude_expsyms \ 16552include_expsyms \ 16553file_list_spec \ 16554variables_saved_for_relink \ 16555libname_spec \ 16556library_names_spec \ 16557soname_spec \ 16558install_override_mode \ 16559finish_eval \ 16560old_striplib \ 16561striplib \ 16562compiler_lib_search_dirs \ 16563predep_objects \ 16564postdep_objects \ 16565predeps \ 16566postdeps \ 16567compiler_lib_search_path \ 16568LD_CXX \ 16569reload_flag_CXX \ 16570compiler_CXX \ 16571lt_prog_compiler_no_builtin_flag_CXX \ 16572lt_prog_compiler_wl_CXX \ 16573lt_prog_compiler_pic_CXX \ 16574lt_prog_compiler_static_CXX \ 16575lt_cv_prog_compiler_c_o_CXX \ 16576export_dynamic_flag_spec_CXX \ 16577whole_archive_flag_spec_CXX \ 16578compiler_needs_object_CXX \ 16579with_gnu_ld_CXX \ 16580allow_undefined_flag_CXX \ 16581no_undefined_flag_CXX \ 16582hardcode_libdir_flag_spec_CXX \ 16583hardcode_libdir_flag_spec_ld_CXX \ 16584hardcode_libdir_separator_CXX \ 16585fix_srcfile_path_CXX \ 16586exclude_expsyms_CXX \ 16587include_expsyms_CXX \ 16588file_list_spec_CXX \ 16589compiler_lib_search_dirs_CXX \ 16590predep_objects_CXX \ 16591postdep_objects_CXX \ 16592predeps_CXX \ 16593postdeps_CXX \ 16594compiler_lib_search_path_CXX; do 16595 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16596 *[\\\\\\\`\\"\\\$]*) 16597 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16598 ;; 16599 *) 16600 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16601 ;; 16602 esac 16603done 16604 16605# Double-quote double-evaled strings. 16606for var in reload_cmds \ 16607old_postinstall_cmds \ 16608old_postuninstall_cmds \ 16609old_archive_cmds \ 16610extract_expsyms_cmds \ 16611old_archive_from_new_cmds \ 16612old_archive_from_expsyms_cmds \ 16613archive_cmds \ 16614archive_expsym_cmds \ 16615module_cmds \ 16616module_expsym_cmds \ 16617export_symbols_cmds \ 16618prelink_cmds \ 16619postinstall_cmds \ 16620postuninstall_cmds \ 16621finish_cmds \ 16622sys_lib_search_path_spec \ 16623sys_lib_dlsearch_path_spec \ 16624reload_cmds_CXX \ 16625old_archive_cmds_CXX \ 16626old_archive_from_new_cmds_CXX \ 16627old_archive_from_expsyms_cmds_CXX \ 16628archive_cmds_CXX \ 16629archive_expsym_cmds_CXX \ 16630module_cmds_CXX \ 16631module_expsym_cmds_CXX \ 16632export_symbols_cmds_CXX \ 16633prelink_cmds_CXX; do 16634 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16635 *[\\\\\\\`\\"\\\$]*) 16636 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16637 ;; 16638 *) 16639 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16640 ;; 16641 esac 16642done 16643 16644ac_aux_dir='$ac_aux_dir' 16645xsi_shell='$xsi_shell' 16646lt_shell_append='$lt_shell_append' 16647 16648# See if we are running on zsh, and set the options which allow our 16649# commands through without removal of \ escapes INIT. 16650if test -n "\${ZSH_VERSION+set}" ; then 16651 setopt NO_GLOB_SUBST 16652fi 16653 16654 16655 PACKAGE='$PACKAGE' 16656 VERSION='$VERSION' 16657 TIMESTAMP='$TIMESTAMP' 16658 RM='$RM' 16659 ofile='$ofile' 16660 16661 16662 16663 16664 16665 16666_ACEOF 16667 16668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16669 16670# Handling of arguments. 16671for ac_config_target in $ac_config_targets 16672do 16673 case $ac_config_target in 16674 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 16675 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16676 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16677 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16678 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 16679 16680 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16681 esac 16682done 16683 16684 16685# If the user did not use the arguments to specify the items to instantiate, 16686# then the envvar interface is used. Set only those that are not. 16687# We use the long form for the default assignment because of an extremely 16688# bizarre bug on SunOS 4.1.3. 16689if $ac_need_defaults; then 16690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16692fi 16693 16694# Have a temporary directory for convenience. Make it in the build tree 16695# simply because there is no reason against having it here, and in addition, 16696# creating and moving files from /tmp can sometimes cause problems. 16697# Hook for its removal unless debugging. 16698# Note that there is a small window in which the directory will not be cleaned: 16699# after its creation but before its name has been assigned to `$tmp'. 16700$debug || 16701{ 16702 tmp= 16703 trap 'exit_status=$? 16704 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16705' 0 16706 trap 'as_fn_exit 1' 1 2 13 15 16707} 16708# Create a (secure) tmp directory for tmp files. 16709 16710{ 16711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16712 test -n "$tmp" && test -d "$tmp" 16713} || 16714{ 16715 tmp=./conf$$-$RANDOM 16716 (umask 077 && mkdir "$tmp") 16717} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16718 16719# Set up the scripts for CONFIG_FILES section. 16720# No need to generate them if there are no CONFIG_FILES. 16721# This happens for instance with `./config.status config.h'. 16722if test -n "$CONFIG_FILES"; then 16723 16724 16725ac_cr=`echo X | tr X '\015'` 16726# On cygwin, bash can eat \r inside `` if the user requested igncr. 16727# But we know of no other shell where ac_cr would be empty at this 16728# point, so we can use a bashism as a fallback. 16729if test "x$ac_cr" = x; then 16730 eval ac_cr=\$\'\\r\' 16731fi 16732ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16733if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16734 ac_cs_awk_cr='\r' 16735else 16736 ac_cs_awk_cr=$ac_cr 16737fi 16738 16739echo 'BEGIN {' >"$tmp/subs1.awk" && 16740_ACEOF 16741 16742 16743{ 16744 echo "cat >conf$$subs.awk <<_ACEOF" && 16745 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16746 echo "_ACEOF" 16747} >conf$$subs.sh || 16748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16749ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16750ac_delim='%!_!# ' 16751for ac_last_try in false false false false false :; do 16752 . ./conf$$subs.sh || 16753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16754 16755 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16756 if test $ac_delim_n = $ac_delim_num; then 16757 break 16758 elif $ac_last_try; then 16759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16760 else 16761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16762 fi 16763done 16764rm -f conf$$subs.sh 16765 16766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16767cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16768_ACEOF 16769sed -n ' 16770h 16771s/^/S["/; s/!.*/"]=/ 16772p 16773g 16774s/^[^!]*!// 16775:repl 16776t repl 16777s/'"$ac_delim"'$// 16778t delim 16779:nl 16780h 16781s/\(.\{148\}\).*/\1/ 16782t more1 16783s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16784p 16785n 16786b repl 16787:more1 16788s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16789p 16790g 16791s/.\{148\}// 16792t nl 16793:delim 16794h 16795s/\(.\{148\}\).*/\1/ 16796t more2 16797s/["\\]/\\&/g; s/^/"/; s/$/"/ 16798p 16799b 16800:more2 16801s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16802p 16803g 16804s/.\{148\}// 16805t delim 16806' <conf$$subs.awk | sed ' 16807/^[^""]/{ 16808 N 16809 s/\n// 16810} 16811' >>$CONFIG_STATUS || ac_write_fail=1 16812rm -f conf$$subs.awk 16813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16814_ACAWK 16815cat >>"\$tmp/subs1.awk" <<_ACAWK && 16816 for (key in S) S_is_set[key] = 1 16817 FS = "" 16818 16819} 16820{ 16821 line = $ 0 16822 nfields = split(line, field, "@") 16823 substed = 0 16824 len = length(field[1]) 16825 for (i = 2; i < nfields; i++) { 16826 key = field[i] 16827 keylen = length(key) 16828 if (S_is_set[key]) { 16829 value = S[key] 16830 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16831 len += length(value) + length(field[++i]) 16832 substed = 1 16833 } else 16834 len += 1 + keylen 16835 } 16836 16837 print line 16838} 16839 16840_ACAWK 16841_ACEOF 16842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16843if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16844 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16845else 16846 cat 16847fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16848 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16849_ACEOF 16850 16851# VPATH may cause trouble with some makes, so we remove $(srcdir), 16852# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16853# trailing colons and then remove the whole line if VPATH becomes empty 16854# (actually we leave an empty line to preserve line numbers). 16855if test "x$srcdir" = x.; then 16856 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16857s/:*\$(srcdir):*/:/ 16858s/:*\${srcdir}:*/:/ 16859s/:*@srcdir@:*/:/ 16860s/^\([^=]*=[ ]*\):*/\1/ 16861s/:*$// 16862s/^[^=]*=[ ]*$// 16863}' 16864fi 16865 16866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16867fi # test -n "$CONFIG_FILES" 16868 16869 16870eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 16871shift 16872for ac_tag 16873do 16874 case $ac_tag in 16875 :[FHLC]) ac_mode=$ac_tag; continue;; 16876 esac 16877 case $ac_mode$ac_tag in 16878 :[FHL]*:*);; 16879 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 16880 :[FH]-) ac_tag=-:-;; 16881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16882 esac 16883 ac_save_IFS=$IFS 16884 IFS=: 16885 set x $ac_tag 16886 IFS=$ac_save_IFS 16887 shift 16888 ac_file=$1 16889 shift 16890 16891 case $ac_mode in 16892 :L) ac_source=$1;; 16893 :[FH]) 16894 ac_file_inputs= 16895 for ac_f 16896 do 16897 case $ac_f in 16898 -) ac_f="$tmp/stdin";; 16899 *) # Look for the file first in the build tree, then in the source tree 16900 # (if the path is not absolute). The absolute path cannot be DOS-style, 16901 # because $ac_f cannot contain `:'. 16902 test -f "$ac_f" || 16903 case $ac_f in 16904 [\\/$]*) false;; 16905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16906 esac || 16907 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16908 esac 16909 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16910 as_fn_append ac_file_inputs " '$ac_f'" 16911 done 16912 16913 # Let's still pretend it is `configure' which instantiates (i.e., don't 16914 # use $as_me), people would be surprised to read: 16915 # /* config.h. Generated by config.status. */ 16916 configure_input='Generated from '` 16917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16918 `' by configure.' 16919 if test x"$ac_file" != x-; then 16920 configure_input="$ac_file. $configure_input" 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16922$as_echo "$as_me: creating $ac_file" >&6;} 16923 fi 16924 # Neutralize special characters interpreted by sed in replacement strings. 16925 case $configure_input in #( 16926 *\&* | *\|* | *\\* ) 16927 ac_sed_conf_input=`$as_echo "$configure_input" | 16928 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16929 *) ac_sed_conf_input=$configure_input;; 16930 esac 16931 16932 case $ac_tag in 16933 *:-:* | *:-) cat >"$tmp/stdin" \ 16934 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 16935 esac 16936 ;; 16937 esac 16938 16939 ac_dir=`$as_dirname -- "$ac_file" || 16940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16941 X"$ac_file" : 'X\(//\)[^/]' \| \ 16942 X"$ac_file" : 'X\(//\)$' \| \ 16943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16944$as_echo X"$ac_file" | 16945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16946 s//\1/ 16947 q 16948 } 16949 /^X\(\/\/\)[^/].*/{ 16950 s//\1/ 16951 q 16952 } 16953 /^X\(\/\/\)$/{ 16954 s//\1/ 16955 q 16956 } 16957 /^X\(\/\).*/{ 16958 s//\1/ 16959 q 16960 } 16961 s/.*/./; q'` 16962 as_dir="$ac_dir"; as_fn_mkdir_p 16963 ac_builddir=. 16964 16965case "$ac_dir" in 16966.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16967*) 16968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16969 # A ".." for each directory in $ac_dir_suffix. 16970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16971 case $ac_top_builddir_sub in 16972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16974 esac ;; 16975esac 16976ac_abs_top_builddir=$ac_pwd 16977ac_abs_builddir=$ac_pwd$ac_dir_suffix 16978# for backward compatibility: 16979ac_top_builddir=$ac_top_build_prefix 16980 16981case $srcdir in 16982 .) # We are building in place. 16983 ac_srcdir=. 16984 ac_top_srcdir=$ac_top_builddir_sub 16985 ac_abs_top_srcdir=$ac_pwd ;; 16986 [\\/]* | ?:[\\/]* ) # Absolute name. 16987 ac_srcdir=$srcdir$ac_dir_suffix; 16988 ac_top_srcdir=$srcdir 16989 ac_abs_top_srcdir=$srcdir ;; 16990 *) # Relative name. 16991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16992 ac_top_srcdir=$ac_top_build_prefix$srcdir 16993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16994esac 16995ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16996 16997 16998 case $ac_mode in 16999 :F) 17000 # 17001 # CONFIG_FILE 17002 # 17003 17004 case $INSTALL in 17005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17007 esac 17008 ac_MKDIR_P=$MKDIR_P 17009 case $MKDIR_P in 17010 [\\/$]* | ?:[\\/]* ) ;; 17011 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17012 esac 17013_ACEOF 17014 17015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17016# If the template does not know about datarootdir, expand it. 17017# FIXME: This hack should be removed a few years after 2.60. 17018ac_datarootdir_hack=; ac_datarootdir_seen= 17019ac_sed_dataroot=' 17020/datarootdir/ { 17021 p 17022 q 17023} 17024/@datadir@/p 17025/@docdir@/p 17026/@infodir@/p 17027/@localedir@/p 17028/@mandir@/p' 17029case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17030*datarootdir*) ac_datarootdir_seen=yes;; 17031*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17033$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17034_ACEOF 17035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17036 ac_datarootdir_hack=' 17037 s&@datadir@&$datadir&g 17038 s&@docdir@&$docdir&g 17039 s&@infodir@&$infodir&g 17040 s&@localedir@&$localedir&g 17041 s&@mandir@&$mandir&g 17042 s&\\\${datarootdir}&$datarootdir&g' ;; 17043esac 17044_ACEOF 17045 17046# Neutralize VPATH when `$srcdir' = `.'. 17047# Shell code in configure.ac might set extrasub. 17048# FIXME: do we really want to maintain this feature? 17049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17050ac_sed_extra="$ac_vpsub 17051$extrasub 17052_ACEOF 17053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17054:t 17055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17056s|@configure_input@|$ac_sed_conf_input|;t t 17057s&@top_builddir@&$ac_top_builddir_sub&;t t 17058s&@top_build_prefix@&$ac_top_build_prefix&;t t 17059s&@srcdir@&$ac_srcdir&;t t 17060s&@abs_srcdir@&$ac_abs_srcdir&;t t 17061s&@top_srcdir@&$ac_top_srcdir&;t t 17062s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17063s&@builddir@&$ac_builddir&;t t 17064s&@abs_builddir@&$ac_abs_builddir&;t t 17065s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17066s&@INSTALL@&$ac_INSTALL&;t t 17067s&@MKDIR_P@&$ac_MKDIR_P&;t t 17068$ac_datarootdir_hack 17069" 17070eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17071 || as_fn_error "could not create $ac_file" "$LINENO" 5 17072 17073test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17074 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17077which seems to be undefined. Please make sure it is defined." >&5 17078$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17079which seems to be undefined. Please make sure it is defined." >&2;} 17080 17081 rm -f "$tmp/stdin" 17082 case $ac_file in 17083 -) cat "$tmp/out" && rm -f "$tmp/out";; 17084 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17085 esac \ 17086 || as_fn_error "could not create $ac_file" "$LINENO" 5 17087 ;; 17088 17089 17090 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17091$as_echo "$as_me: executing $ac_file commands" >&6;} 17092 ;; 17093 esac 17094 17095 17096 case $ac_file$ac_mode in 17097 "default-1":C) 17098# Only add multilib support code if we just rebuilt the top-level 17099# Makefile. 17100case " $CONFIG_FILES " in 17101 *" Makefile "*) 17102 ac_file=Makefile . ${multi_basedir}/config-ml.in 17103 ;; 17104esac ;; 17105 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17106 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17107 # are listed without --file. Let's play safe and only enable the eval 17108 # if we detect the quoting. 17109 case $CONFIG_FILES in 17110 *\'*) eval set x "$CONFIG_FILES" ;; 17111 *) set x $CONFIG_FILES ;; 17112 esac 17113 shift 17114 for mf 17115 do 17116 # Strip MF so we end up with the name of the file. 17117 mf=`echo "$mf" | sed -e 's/:.*$//'` 17118 # Check whether this is an Automake generated Makefile or not. 17119 # We used to match only the files named `Makefile.in', but 17120 # some people rename them; so instead we look at the file content. 17121 # Grep'ing the first line is not enough: some people post-process 17122 # each Makefile.in and add a new line on top of each file to say so. 17123 # Grep'ing the whole file is not good either: AIX grep has a line 17124 # limit of 2048, but all sed's we know have understand at least 4000. 17125 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17126 dirpart=`$as_dirname -- "$mf" || 17127$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17128 X"$mf" : 'X\(//\)[^/]' \| \ 17129 X"$mf" : 'X\(//\)$' \| \ 17130 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17131$as_echo X"$mf" | 17132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17133 s//\1/ 17134 q 17135 } 17136 /^X\(\/\/\)[^/].*/{ 17137 s//\1/ 17138 q 17139 } 17140 /^X\(\/\/\)$/{ 17141 s//\1/ 17142 q 17143 } 17144 /^X\(\/\).*/{ 17145 s//\1/ 17146 q 17147 } 17148 s/.*/./; q'` 17149 else 17150 continue 17151 fi 17152 # Extract the definition of DEPDIR, am__include, and am__quote 17153 # from the Makefile without running `make'. 17154 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17155 test -z "$DEPDIR" && continue 17156 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17157 test -z "am__include" && continue 17158 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17159 # When using ansi2knr, U may be empty or an underscore; expand it 17160 U=`sed -n 's/^U = //p' < "$mf"` 17161 # Find all dependency output files, they are included files with 17162 # $(DEPDIR) in their names. We invoke sed twice because it is the 17163 # simplest approach to changing $(DEPDIR) to its actual value in the 17164 # expansion. 17165 for file in `sed -n " 17166 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17167 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17168 # Make sure the directory exists. 17169 test -f "$dirpart/$file" && continue 17170 fdir=`$as_dirname -- "$file" || 17171$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17172 X"$file" : 'X\(//\)[^/]' \| \ 17173 X"$file" : 'X\(//\)$' \| \ 17174 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17175$as_echo X"$file" | 17176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17177 s//\1/ 17178 q 17179 } 17180 /^X\(\/\/\)[^/].*/{ 17181 s//\1/ 17182 q 17183 } 17184 /^X\(\/\/\)$/{ 17185 s//\1/ 17186 q 17187 } 17188 /^X\(\/\).*/{ 17189 s//\1/ 17190 q 17191 } 17192 s/.*/./; q'` 17193 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17194 # echo "creating $dirpart/$file" 17195 echo '# dummy' > "$dirpart/$file" 17196 done 17197 done 17198} 17199 ;; 17200 "libtool":C) 17201 17202 # See if we are running on zsh, and set the options which allow our 17203 # commands through without removal of \ escapes. 17204 if test -n "${ZSH_VERSION+set}" ; then 17205 setopt NO_GLOB_SUBST 17206 fi 17207 17208 cfgfile="${ofile}T" 17209 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17210 $RM "$cfgfile" 17211 17212 cat <<_LT_EOF >> "$cfgfile" 17213#! $SHELL 17214 17215# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17216# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17217# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17218# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17219# 17220# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17221# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 17222# Written by Gordon Matzigkeit, 1996 17223# 17224# This file is part of GNU Libtool. 17225# 17226# GNU Libtool is free software; you can redistribute it and/or 17227# modify it under the terms of the GNU General Public License as 17228# published by the Free Software Foundation; either version 2 of 17229# the License, or (at your option) any later version. 17230# 17231# As a special exception to the GNU General Public License, 17232# if you distribute this file as part of a program or library that 17233# is built using GNU Libtool, you may include this file under the 17234# same distribution terms that you use for the rest of that program. 17235# 17236# GNU Libtool is distributed in the hope that it will be useful, 17237# but WITHOUT ANY WARRANTY; without even the implied warranty of 17238# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17239# GNU General Public License for more details. 17240# 17241# You should have received a copy of the GNU General Public License 17242# along with GNU Libtool; see the file COPYING. If not, a copy 17243# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17244# obtained by writing to the Free Software Foundation, Inc., 17245# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17246 17247 17248# The names of the tagged configurations supported by this script. 17249available_tags="CXX " 17250 17251# ### BEGIN LIBTOOL CONFIG 17252 17253# Which release of libtool.m4 was used? 17254macro_version=$macro_version 17255macro_revision=$macro_revision 17256 17257# Whether or not to build shared libraries. 17258build_libtool_libs=$enable_shared 17259 17260# Whether or not to build static libraries. 17261build_old_libs=$enable_static 17262 17263# What type of objects to build. 17264pic_mode=$pic_mode 17265 17266# Whether or not to optimize for fast installation. 17267fast_install=$enable_fast_install 17268 17269# Shell to use when invoking shell scripts. 17270SHELL=$lt_SHELL 17271 17272# An echo program that protects backslashes. 17273ECHO=$lt_ECHO 17274 17275# The host system. 17276host_alias=$host_alias 17277host=$host 17278host_os=$host_os 17279 17280# The build system. 17281build_alias=$build_alias 17282build=$build 17283build_os=$build_os 17284 17285# A sed program that does not truncate output. 17286SED=$lt_SED 17287 17288# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17289Xsed="\$SED -e 1s/^X//" 17290 17291# A grep program that handles long lines. 17292GREP=$lt_GREP 17293 17294# An ERE matcher. 17295EGREP=$lt_EGREP 17296 17297# A literal string matcher. 17298FGREP=$lt_FGREP 17299 17300# A BSD- or MS-compatible name lister. 17301NM=$lt_NM 17302 17303# Whether we need soft or hard links. 17304LN_S=$lt_LN_S 17305 17306# What is the maximum length of a command? 17307max_cmd_len=$max_cmd_len 17308 17309# Object file suffix (normally "o"). 17310objext=$ac_objext 17311 17312# Executable file suffix (normally ""). 17313exeext=$exeext 17314 17315# whether the shell understands "unset". 17316lt_unset=$lt_unset 17317 17318# turn spaces into newlines. 17319SP2NL=$lt_lt_SP2NL 17320 17321# turn newlines into spaces. 17322NL2SP=$lt_lt_NL2SP 17323 17324# An object symbol dumper. 17325OBJDUMP=$lt_OBJDUMP 17326 17327# Method to check whether dependent libraries are shared objects. 17328deplibs_check_method=$lt_deplibs_check_method 17329 17330# Command to use when deplibs_check_method == "file_magic". 17331file_magic_cmd=$lt_file_magic_cmd 17332 17333# The archiver. 17334AR=$lt_AR 17335AR_FLAGS=$lt_AR_FLAGS 17336 17337# A symbol stripping program. 17338STRIP=$lt_STRIP 17339 17340# Commands used to install an old-style archive. 17341RANLIB=$lt_RANLIB 17342old_postinstall_cmds=$lt_old_postinstall_cmds 17343old_postuninstall_cmds=$lt_old_postuninstall_cmds 17344 17345# Whether to use a lock for old archive extraction. 17346lock_old_archive_extraction=$lock_old_archive_extraction 17347 17348# A C compiler. 17349LTCC=$lt_CC 17350 17351# LTCC compiler flags. 17352LTCFLAGS=$lt_CFLAGS 17353 17354# Take the output of nm and produce a listing of raw symbols and C names. 17355global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17356 17357# Transform the output of nm in a proper C declaration. 17358global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17359 17360# Transform the output of nm in a C name address pair. 17361global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17362 17363# Transform the output of nm in a C name address pair when lib prefix is needed. 17364global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17365 17366# The name of the directory that contains temporary libtool files. 17367objdir=$objdir 17368 17369# Used to examine libraries when file_magic_cmd begins with "file". 17370MAGIC_CMD=$MAGIC_CMD 17371 17372# Must we lock files when doing compilation? 17373need_locks=$lt_need_locks 17374 17375# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17376DSYMUTIL=$lt_DSYMUTIL 17377 17378# Tool to change global to local symbols on Mac OS X. 17379NMEDIT=$lt_NMEDIT 17380 17381# Tool to manipulate fat objects and archives on Mac OS X. 17382LIPO=$lt_LIPO 17383 17384# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17385OTOOL=$lt_OTOOL 17386 17387# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17388OTOOL64=$lt_OTOOL64 17389 17390# Old archive suffix (normally "a"). 17391libext=$libext 17392 17393# Shared library suffix (normally ".so"). 17394shrext_cmds=$lt_shrext_cmds 17395 17396# The commands to extract the exported symbol list from a shared archive. 17397extract_expsyms_cmds=$lt_extract_expsyms_cmds 17398 17399# Variables whose values should be saved in libtool wrapper scripts and 17400# restored at link time. 17401variables_saved_for_relink=$lt_variables_saved_for_relink 17402 17403# Do we need the "lib" prefix for modules? 17404need_lib_prefix=$need_lib_prefix 17405 17406# Do we need a version for libraries? 17407need_version=$need_version 17408 17409# Library versioning type. 17410version_type=$version_type 17411 17412# Shared library runtime path variable. 17413runpath_var=$runpath_var 17414 17415# Shared library path variable. 17416shlibpath_var=$shlibpath_var 17417 17418# Is shlibpath searched before the hard-coded library search path? 17419shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17420 17421# Format of library name prefix. 17422libname_spec=$lt_libname_spec 17423 17424# List of archive names. First name is the real one, the rest are links. 17425# The last name is the one that the linker finds with -lNAME 17426library_names_spec=$lt_library_names_spec 17427 17428# The coded name of the library, if different from the real name. 17429soname_spec=$lt_soname_spec 17430 17431# Permission mode override for installation of shared libraries. 17432install_override_mode=$lt_install_override_mode 17433 17434# Command to use after installation of a shared archive. 17435postinstall_cmds=$lt_postinstall_cmds 17436 17437# Command to use after uninstallation of a shared archive. 17438postuninstall_cmds=$lt_postuninstall_cmds 17439 17440# Commands used to finish a libtool library installation in a directory. 17441finish_cmds=$lt_finish_cmds 17442 17443# As "finish_cmds", except a single script fragment to be evaled but 17444# not shown. 17445finish_eval=$lt_finish_eval 17446 17447# Whether we should hardcode library paths into libraries. 17448hardcode_into_libs=$hardcode_into_libs 17449 17450# Compile-time system search path for libraries. 17451sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17452 17453# Run-time system search path for libraries. 17454sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17455 17456# Whether dlopen is supported. 17457dlopen_support=$enable_dlopen 17458 17459# Whether dlopen of programs is supported. 17460dlopen_self=$enable_dlopen_self 17461 17462# Whether dlopen of statically linked programs is supported. 17463dlopen_self_static=$enable_dlopen_self_static 17464 17465# Commands to strip libraries. 17466old_striplib=$lt_old_striplib 17467striplib=$lt_striplib 17468 17469 17470# The linker used to build libraries. 17471LD=$lt_LD 17472 17473# How to create reloadable object files. 17474reload_flag=$lt_reload_flag 17475reload_cmds=$lt_reload_cmds 17476 17477# Commands used to build an old-style archive. 17478old_archive_cmds=$lt_old_archive_cmds 17479 17480# A language specific compiler. 17481CC=$lt_compiler 17482 17483# Is the compiler the GNU compiler? 17484with_gcc=$GCC 17485 17486# Compiler flag to turn off builtin functions. 17487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17488 17489# How to pass a linker flag through the compiler. 17490wl=$lt_lt_prog_compiler_wl 17491 17492# Additional compiler flags for building library objects. 17493pic_flag=$lt_lt_prog_compiler_pic 17494 17495# Compiler flag to prevent dynamic linking. 17496link_static_flag=$lt_lt_prog_compiler_static 17497 17498# Does compiler simultaneously support -c and -o options? 17499compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17500 17501# Whether or not to add -lc for building shared libraries. 17502build_libtool_need_lc=$archive_cmds_need_lc 17503 17504# Whether or not to disallow shared libs when runtime libs are static. 17505allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17506 17507# Compiler flag to allow reflexive dlopens. 17508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17509 17510# Compiler flag to generate shared objects directly from archives. 17511whole_archive_flag_spec=$lt_whole_archive_flag_spec 17512 17513# Whether the compiler copes with passing no objects directly. 17514compiler_needs_object=$lt_compiler_needs_object 17515 17516# Create an old-style archive from a shared archive. 17517old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17518 17519# Create a temporary old-style archive to link instead of a shared archive. 17520old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17521 17522# Commands used to build a shared archive. 17523archive_cmds=$lt_archive_cmds 17524archive_expsym_cmds=$lt_archive_expsym_cmds 17525 17526# Commands used to build a loadable module if different from building 17527# a shared archive. 17528module_cmds=$lt_module_cmds 17529module_expsym_cmds=$lt_module_expsym_cmds 17530 17531# Whether we are building with GNU ld or not. 17532with_gnu_ld=$lt_with_gnu_ld 17533 17534# Flag that allows shared libraries with undefined symbols to be built. 17535allow_undefined_flag=$lt_allow_undefined_flag 17536 17537# Flag that enforces no undefined symbols. 17538no_undefined_flag=$lt_no_undefined_flag 17539 17540# Flag to hardcode \$libdir into a binary during linking. 17541# This must work even if \$libdir does not exist 17542hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17543 17544# If ld is used when linking, flag to hardcode \$libdir into a binary 17545# during linking. This must work even if \$libdir does not exist. 17546hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17547 17548# Whether we need a single "-rpath" flag with a separated argument. 17549hardcode_libdir_separator=$lt_hardcode_libdir_separator 17550 17551# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17552# DIR into the resulting binary. 17553hardcode_direct=$hardcode_direct 17554 17555# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17556# DIR into the resulting binary and the resulting library dependency is 17557# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17558# library is relocated. 17559hardcode_direct_absolute=$hardcode_direct_absolute 17560 17561# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17562# into the resulting binary. 17563hardcode_minus_L=$hardcode_minus_L 17564 17565# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17566# into the resulting binary. 17567hardcode_shlibpath_var=$hardcode_shlibpath_var 17568 17569# Set to "yes" if building a shared library automatically hardcodes DIR 17570# into the library and all subsequent libraries and executables linked 17571# against it. 17572hardcode_automatic=$hardcode_automatic 17573 17574# Set to yes if linker adds runtime paths of dependent libraries 17575# to runtime path list. 17576inherit_rpath=$inherit_rpath 17577 17578# Whether libtool must link a program against all its dependency libraries. 17579link_all_deplibs=$link_all_deplibs 17580 17581# Fix the shell variable \$srcfile for the compiler. 17582fix_srcfile_path=$lt_fix_srcfile_path 17583 17584# Set to "yes" if exported symbols are required. 17585always_export_symbols=$always_export_symbols 17586 17587# The commands to list exported symbols. 17588export_symbols_cmds=$lt_export_symbols_cmds 17589 17590# Symbols that should not be listed in the preloaded symbols. 17591exclude_expsyms=$lt_exclude_expsyms 17592 17593# Symbols that must always be exported. 17594include_expsyms=$lt_include_expsyms 17595 17596# Commands necessary for linking programs (against libraries) with templates. 17597prelink_cmds=$lt_prelink_cmds 17598 17599# Specify filename containing input files. 17600file_list_spec=$lt_file_list_spec 17601 17602# How to hardcode a shared library path into an executable. 17603hardcode_action=$hardcode_action 17604 17605# The directories searched by this compiler when creating a shared library. 17606compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17607 17608# Dependencies to place before and after the objects being linked to 17609# create a shared library. 17610predep_objects=$lt_predep_objects 17611postdep_objects=$lt_postdep_objects 17612predeps=$lt_predeps 17613postdeps=$lt_postdeps 17614 17615# The library search path used internally by the compiler when linking 17616# a shared library. 17617compiler_lib_search_path=$lt_compiler_lib_search_path 17618 17619# ### END LIBTOOL CONFIG 17620 17621_LT_EOF 17622 17623 case $host_os in 17624 aix3*) 17625 cat <<\_LT_EOF >> "$cfgfile" 17626# AIX sometimes has problems with the GCC collect2 program. For some 17627# reason, if we set the COLLECT_NAMES environment variable, the problems 17628# vanish in a puff of smoke. 17629if test "X${COLLECT_NAMES+set}" != Xset; then 17630 COLLECT_NAMES= 17631 export COLLECT_NAMES 17632fi 17633_LT_EOF 17634 ;; 17635 esac 17636 17637 17638ltmain="$ac_aux_dir/ltmain.sh" 17639 17640 17641 # We use sed instead of cat because bash on DJGPP gets confused if 17642 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17643 # text mode, it properly converts lines to CR/LF. This bash problem 17644 # is reportedly fixed, but why not run on old versions too? 17645 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17646 || (rm -f "$cfgfile"; exit 1) 17647 17648 case $xsi_shell in 17649 yes) 17650 cat << \_LT_EOF >> "$cfgfile" 17651 17652# func_dirname file append nondir_replacement 17653# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17654# otherwise set result to NONDIR_REPLACEMENT. 17655func_dirname () 17656{ 17657 case ${1} in 17658 */*) func_dirname_result="${1%/*}${2}" ;; 17659 * ) func_dirname_result="${3}" ;; 17660 esac 17661} 17662 17663# func_basename file 17664func_basename () 17665{ 17666 func_basename_result="${1##*/}" 17667} 17668 17669# func_dirname_and_basename file append nondir_replacement 17670# perform func_basename and func_dirname in a single function 17671# call: 17672# dirname: Compute the dirname of FILE. If nonempty, 17673# add APPEND to the result, otherwise set result 17674# to NONDIR_REPLACEMENT. 17675# value returned in "$func_dirname_result" 17676# basename: Compute filename of FILE. 17677# value retuned in "$func_basename_result" 17678# Implementation must be kept synchronized with func_dirname 17679# and func_basename. For efficiency, we do not delegate to 17680# those functions but instead duplicate the functionality here. 17681func_dirname_and_basename () 17682{ 17683 case ${1} in 17684 */*) func_dirname_result="${1%/*}${2}" ;; 17685 * ) func_dirname_result="${3}" ;; 17686 esac 17687 func_basename_result="${1##*/}" 17688} 17689 17690# func_stripname prefix suffix name 17691# strip PREFIX and SUFFIX off of NAME. 17692# PREFIX and SUFFIX must not contain globbing or regex special 17693# characters, hashes, percent signs, but SUFFIX may contain a leading 17694# dot (in which case that matches only a dot). 17695func_stripname () 17696{ 17697 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17698 # positional parameters, so assign one to ordinary parameter first. 17699 func_stripname_result=${3} 17700 func_stripname_result=${func_stripname_result#"${1}"} 17701 func_stripname_result=${func_stripname_result%"${2}"} 17702} 17703 17704# func_opt_split 17705func_opt_split () 17706{ 17707 func_opt_split_opt=${1%%=*} 17708 func_opt_split_arg=${1#*=} 17709} 17710 17711# func_lo2o object 17712func_lo2o () 17713{ 17714 case ${1} in 17715 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17716 *) func_lo2o_result=${1} ;; 17717 esac 17718} 17719 17720# func_xform libobj-or-source 17721func_xform () 17722{ 17723 func_xform_result=${1%.*}.lo 17724} 17725 17726# func_arith arithmetic-term... 17727func_arith () 17728{ 17729 func_arith_result=$(( $* )) 17730} 17731 17732# func_len string 17733# STRING may not start with a hyphen. 17734func_len () 17735{ 17736 func_len_result=${#1} 17737} 17738 17739_LT_EOF 17740 ;; 17741 *) # Bourne compatible functions. 17742 cat << \_LT_EOF >> "$cfgfile" 17743 17744# func_dirname file append nondir_replacement 17745# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17746# otherwise set result to NONDIR_REPLACEMENT. 17747func_dirname () 17748{ 17749 # Extract subdirectory from the argument. 17750 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17751 if test "X$func_dirname_result" = "X${1}"; then 17752 func_dirname_result="${3}" 17753 else 17754 func_dirname_result="$func_dirname_result${2}" 17755 fi 17756} 17757 17758# func_basename file 17759func_basename () 17760{ 17761 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17762} 17763 17764 17765# func_stripname prefix suffix name 17766# strip PREFIX and SUFFIX off of NAME. 17767# PREFIX and SUFFIX must not contain globbing or regex special 17768# characters, hashes, percent signs, but SUFFIX may contain a leading 17769# dot (in which case that matches only a dot). 17770# func_strip_suffix prefix name 17771func_stripname () 17772{ 17773 case ${2} in 17774 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17775 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17776 esac 17777} 17778 17779# sed scripts: 17780my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17781my_sed_long_arg='1s/^-[^=]*=//' 17782 17783# func_opt_split 17784func_opt_split () 17785{ 17786 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17787 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17788} 17789 17790# func_lo2o object 17791func_lo2o () 17792{ 17793 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17794} 17795 17796# func_xform libobj-or-source 17797func_xform () 17798{ 17799 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17800} 17801 17802# func_arith arithmetic-term... 17803func_arith () 17804{ 17805 func_arith_result=`expr "$@"` 17806} 17807 17808# func_len string 17809# STRING may not start with a hyphen. 17810func_len () 17811{ 17812 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17813} 17814 17815_LT_EOF 17816esac 17817 17818case $lt_shell_append in 17819 yes) 17820 cat << \_LT_EOF >> "$cfgfile" 17821 17822# func_append var value 17823# Append VALUE to the end of shell variable VAR. 17824func_append () 17825{ 17826 eval "$1+=\$2" 17827} 17828_LT_EOF 17829 ;; 17830 *) 17831 cat << \_LT_EOF >> "$cfgfile" 17832 17833# func_append var value 17834# Append VALUE to the end of shell variable VAR. 17835func_append () 17836{ 17837 eval "$1=\$$1\$2" 17838} 17839 17840_LT_EOF 17841 ;; 17842 esac 17843 17844 17845 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17846 || (rm -f "$cfgfile"; exit 1) 17847 17848 mv -f "$cfgfile" "$ofile" || 17849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17850 chmod +x "$ofile" 17851 17852 17853 cat <<_LT_EOF >> "$ofile" 17854 17855# ### BEGIN LIBTOOL TAG CONFIG: CXX 17856 17857# The linker used to build libraries. 17858LD=$lt_LD_CXX 17859 17860# How to create reloadable object files. 17861reload_flag=$lt_reload_flag_CXX 17862reload_cmds=$lt_reload_cmds_CXX 17863 17864# Commands used to build an old-style archive. 17865old_archive_cmds=$lt_old_archive_cmds_CXX 17866 17867# A language specific compiler. 17868CC=$lt_compiler_CXX 17869 17870# Is the compiler the GNU compiler? 17871with_gcc=$GCC_CXX 17872 17873# Compiler flag to turn off builtin functions. 17874no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17875 17876# How to pass a linker flag through the compiler. 17877wl=$lt_lt_prog_compiler_wl_CXX 17878 17879# Additional compiler flags for building library objects. 17880pic_flag=$lt_lt_prog_compiler_pic_CXX 17881 17882# Compiler flag to prevent dynamic linking. 17883link_static_flag=$lt_lt_prog_compiler_static_CXX 17884 17885# Does compiler simultaneously support -c and -o options? 17886compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17887 17888# Whether or not to add -lc for building shared libraries. 17889build_libtool_need_lc=$archive_cmds_need_lc_CXX 17890 17891# Whether or not to disallow shared libs when runtime libs are static. 17892allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17893 17894# Compiler flag to allow reflexive dlopens. 17895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17896 17897# Compiler flag to generate shared objects directly from archives. 17898whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17899 17900# Whether the compiler copes with passing no objects directly. 17901compiler_needs_object=$lt_compiler_needs_object_CXX 17902 17903# Create an old-style archive from a shared archive. 17904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17905 17906# Create a temporary old-style archive to link instead of a shared archive. 17907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17908 17909# Commands used to build a shared archive. 17910archive_cmds=$lt_archive_cmds_CXX 17911archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17912 17913# Commands used to build a loadable module if different from building 17914# a shared archive. 17915module_cmds=$lt_module_cmds_CXX 17916module_expsym_cmds=$lt_module_expsym_cmds_CXX 17917 17918# Whether we are building with GNU ld or not. 17919with_gnu_ld=$lt_with_gnu_ld_CXX 17920 17921# Flag that allows shared libraries with undefined symbols to be built. 17922allow_undefined_flag=$lt_allow_undefined_flag_CXX 17923 17924# Flag that enforces no undefined symbols. 17925no_undefined_flag=$lt_no_undefined_flag_CXX 17926 17927# Flag to hardcode \$libdir into a binary during linking. 17928# This must work even if \$libdir does not exist 17929hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17930 17931# If ld is used when linking, flag to hardcode \$libdir into a binary 17932# during linking. This must work even if \$libdir does not exist. 17933hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17934 17935# Whether we need a single "-rpath" flag with a separated argument. 17936hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17937 17938# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17939# DIR into the resulting binary. 17940hardcode_direct=$hardcode_direct_CXX 17941 17942# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17943# DIR into the resulting binary and the resulting library dependency is 17944# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17945# library is relocated. 17946hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17947 17948# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17949# into the resulting binary. 17950hardcode_minus_L=$hardcode_minus_L_CXX 17951 17952# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17953# into the resulting binary. 17954hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17955 17956# Set to "yes" if building a shared library automatically hardcodes DIR 17957# into the library and all subsequent libraries and executables linked 17958# against it. 17959hardcode_automatic=$hardcode_automatic_CXX 17960 17961# Set to yes if linker adds runtime paths of dependent libraries 17962# to runtime path list. 17963inherit_rpath=$inherit_rpath_CXX 17964 17965# Whether libtool must link a program against all its dependency libraries. 17966link_all_deplibs=$link_all_deplibs_CXX 17967 17968# Fix the shell variable \$srcfile for the compiler. 17969fix_srcfile_path=$lt_fix_srcfile_path_CXX 17970 17971# Set to "yes" if exported symbols are required. 17972always_export_symbols=$always_export_symbols_CXX 17973 17974# The commands to list exported symbols. 17975export_symbols_cmds=$lt_export_symbols_cmds_CXX 17976 17977# Symbols that should not be listed in the preloaded symbols. 17978exclude_expsyms=$lt_exclude_expsyms_CXX 17979 17980# Symbols that must always be exported. 17981include_expsyms=$lt_include_expsyms_CXX 17982 17983# Commands necessary for linking programs (against libraries) with templates. 17984prelink_cmds=$lt_prelink_cmds_CXX 17985 17986# Specify filename containing input files. 17987file_list_spec=$lt_file_list_spec_CXX 17988 17989# How to hardcode a shared library path into an executable. 17990hardcode_action=$hardcode_action_CXX 17991 17992# The directories searched by this compiler when creating a shared library. 17993compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17994 17995# Dependencies to place before and after the objects being linked to 17996# create a shared library. 17997predep_objects=$lt_predep_objects_CXX 17998postdep_objects=$lt_postdep_objects_CXX 17999predeps=$lt_predeps_CXX 18000postdeps=$lt_postdeps_CXX 18001 18002# The library search path used internally by the compiler when linking 18003# a shared library. 18004compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18005 18006# ### END LIBTOOL TAG CONFIG: CXX 18007_LT_EOF 18008 18009 ;; 18010 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF 18011s!`test -f '$<' || echo '$(srcdir)/'`!! 18012_EOF 18013 sed -f vpsed$$ $ac_file > tmp$$ 18014 mv tmp$$ $ac_file 18015 rm vpsed$$ 18016 echo 'MULTISUBDIR =' >> $ac_file 18017 ml_norecursion=yes 18018 . ${multi_basedir}/config-ml.in 18019 { ml_norecursion=; unset ml_norecursion;} 18020 ;; 18021 18022 esac 18023done # for ac_tag 18024 18025 18026as_fn_exit 0 18027_ACEOF 18028ac_clean_files=$ac_clean_files_save 18029 18030test $ac_write_fail = 0 || 18031 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 18032 18033 18034# configure is writing to config.log, and then calls config.status. 18035# config.status does its own redirection, appending to config.log. 18036# Unfortunately, on DOS this fails, as config.log is still kept open 18037# by configure, so config.status won't be able to write to it; its 18038# output is simply discarded. So we exec the FD to /dev/null, 18039# effectively closing config.log, so it can be properly (re)opened and 18040# appended to by config.status. When coming back to configure, we 18041# need to make the FD available again. 18042if test "$no_create" != yes; then 18043 ac_cs_success=: 18044 ac_config_status_args= 18045 test "$silent" = yes && 18046 ac_config_status_args="$ac_config_status_args --quiet" 18047 exec 5>/dev/null 18048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18049 exec 5>>config.log 18050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18051 # would make configure fail if this is the last instruction. 18052 $ac_cs_success || as_fn_exit $? 18053fi 18054if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18056$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18057fi 18058 18059