1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for phsa HSAIL runtime library 1.0. 4# 5# Report bugs to <pekka.jaaskelainen@parmance.com>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9# Foundation, Inc. 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174 175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 179 PATH=/empty FPATH=/empty; export PATH FPATH 180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 182test \$(( 1 + 1 )) = 2 || exit 1" 183 if (eval "$as_required") 2>/dev/null; then : 184 as_have_required=yes 185else 186 as_have_required=no 187fi 188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 189 190else 191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 192as_found=false 193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 194do 195 IFS=$as_save_IFS 196 test -z "$as_dir" && as_dir=. 197 as_found=: 198 case $as_dir in #( 199 /*) 200 for as_base in sh bash ksh sh5; do 201 # Try only shells that exist, to save several forks. 202 as_shell=$as_dir/$as_base 203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 CONFIG_SHELL=$as_shell as_have_required=yes 206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 break 2 208fi 209fi 210 done;; 211 esac 212 as_found=false 213done 214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 216 CONFIG_SHELL=$SHELL as_have_required=yes 217fi; } 218IFS=$as_save_IFS 219 220 221 if test "x$CONFIG_SHELL" != x; then : 222 # We cannot yet assume a decent shell, so we have to provide a 223 # neutralization value for shells without unset; and this also 224 # works around shells that cannot unset nonexistent variables. 225 BASH_ENV=/dev/null 226 ENV=/dev/null 227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 228 export CONFIG_SHELL 229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 230fi 231 232 if test x$as_have_required = xno; then : 233 $as_echo "$0: This script requires a shell more modern than all" 234 $as_echo "$0: the shells that I found on your system." 235 if test x${ZSH_VERSION+set} = xset ; then 236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 238 else 239 $as_echo "$0: Please tell bug-autoconf@gnu.org and 240$0: pekka.jaaskelainen@parmance.com about your system, 241$0: including any error possibly output before this 242$0: message. Then install a modern shell, or manually run 243$0: the script under such a shell if you do have one." 244 fi 245 exit 1 246fi 247fi 248fi 249SHELL=${CONFIG_SHELL-/bin/sh} 250export SHELL 251# Unset more variables known to interfere with behavior of common tools. 252CLICOLOR_FORCE= GREP_OPTIONS= 253unset CLICOLOR_FORCE GREP_OPTIONS 254 255## --------------------- ## 256## M4sh Shell Functions. ## 257## --------------------- ## 258# as_fn_unset VAR 259# --------------- 260# Portably unset VAR. 261as_fn_unset () 262{ 263 { eval $1=; unset $1;} 264} 265as_unset=as_fn_unset 266 267# as_fn_set_status STATUS 268# ----------------------- 269# Set $? to STATUS, without forking. 270as_fn_set_status () 271{ 272 return $1 273} # as_fn_set_status 274 275# as_fn_exit STATUS 276# ----------------- 277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 278as_fn_exit () 279{ 280 set +e 281 as_fn_set_status $1 282 exit $1 283} # as_fn_exit 284 285# as_fn_mkdir_p 286# ------------- 287# Create "$as_dir" as a directory, including parents if necessary. 288as_fn_mkdir_p () 289{ 290 291 case $as_dir in #( 292 -*) as_dir=./$as_dir;; 293 esac 294 test -d "$as_dir" || eval $as_mkdir_p || { 295 as_dirs= 296 while :; do 297 case $as_dir in #( 298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 299 *) as_qdir=$as_dir;; 300 esac 301 as_dirs="'$as_qdir' $as_dirs" 302 as_dir=`$as_dirname -- "$as_dir" || 303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 304 X"$as_dir" : 'X\(//\)[^/]' \| \ 305 X"$as_dir" : 'X\(//\)$' \| \ 306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 307$as_echo X"$as_dir" | 308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\/\)[^/].*/{ 313 s//\1/ 314 q 315 } 316 /^X\(\/\/\)$/{ 317 s//\1/ 318 q 319 } 320 /^X\(\/\).*/{ 321 s//\1/ 322 q 323 } 324 s/.*/./; q'` 325 test -d "$as_dir" && break 326 done 327 test -z "$as_dirs" || eval "mkdir $as_dirs" 328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 329 330 331} # as_fn_mkdir_p 332# as_fn_append VAR VALUE 333# ---------------------- 334# Append the text in VALUE to the end of the definition contained in VAR. Take 335# advantage of any shell optimizations that allow amortized linear growth over 336# repeated appends, instead of the typical quadratic growth present in naive 337# implementations. 338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 339 eval 'as_fn_append () 340 { 341 eval $1+=\$2 342 }' 343else 344 as_fn_append () 345 { 346 eval $1=\$$1\$2 347 } 348fi # as_fn_append 349 350# as_fn_arith ARG... 351# ------------------ 352# Perform arithmetic evaluation on the ARGs, and store the result in the 353# global $as_val. Take advantage of shells that can avoid forks. The arguments 354# must be portable across $(()) and expr. 355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 356 eval 'as_fn_arith () 357 { 358 as_val=$(( $* )) 359 }' 360else 361 as_fn_arith () 362 { 363 as_val=`expr "$@" || test $? -eq 1` 364 } 365fi # as_fn_arith 366 367 368# as_fn_error ERROR [LINENO LOG_FD] 369# --------------------------------- 370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 372# script with status $?, using 1 if that was 0. 373as_fn_error () 374{ 375 as_status=$?; test $as_status -eq 0 && as_status=1 376 if test "$3"; then 377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 379 fi 380 $as_echo "$as_me: error: $1" >&2 381 as_fn_exit $as_status 382} # as_fn_error 383 384if expr a : '\(a\)' >/dev/null 2>&1 && 385 test "X`expr 00001 : '.*\(...\)'`" = X001; then 386 as_expr=expr 387else 388 as_expr=false 389fi 390 391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 392 as_basename=basename 393else 394 as_basename=false 395fi 396 397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 398 as_dirname=dirname 399else 400 as_dirname=false 401fi 402 403as_me=`$as_basename -- "$0" || 404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 405 X"$0" : 'X\(//\)$' \| \ 406 X"$0" : 'X\(/\)' \| . 2>/dev/null || 407$as_echo X/"$0" | 408 sed '/^.*\/\([^/][^/]*\)\/*$/{ 409 s//\1/ 410 q 411 } 412 /^X\/\(\/\/\)$/{ 413 s//\1/ 414 q 415 } 416 /^X\/\(\/\).*/{ 417 s//\1/ 418 q 419 } 420 s/.*/./; q'` 421 422# Avoid depending upon Character Ranges. 423as_cr_letters='abcdefghijklmnopqrstuvwxyz' 424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 425as_cr_Letters=$as_cr_letters$as_cr_LETTERS 426as_cr_digits='0123456789' 427as_cr_alnum=$as_cr_Letters$as_cr_digits 428 429 430 as_lineno_1=$LINENO as_lineno_1a=$LINENO 431 as_lineno_2=$LINENO as_lineno_2a=$LINENO 432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 435 sed -n ' 436 p 437 /[$]LINENO/= 438 ' <$as_myself | 439 sed ' 440 s/[$]LINENO.*/&-/ 441 t lineno 442 b 443 :lineno 444 N 445 :loop 446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 447 t loop 448 s/-\n.*// 449 ' >$as_me.lineno && 450 chmod +x "$as_me.lineno" || 451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461ECHO_C= ECHO_N= ECHO_T= 462case `echo -n x` in #((((( 463-n*) 464 case `echo 'xy\c'` in 465 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 466 xy) ECHO_C='\c';; 467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 468 ECHO_T=' ';; 469 esac;; 470*) 471 ECHO_N='-n';; 472esac 473 474rm -f conf$$ conf$$.exe conf$$.file 475if test -d conf$$.dir; then 476 rm -f conf$$.dir/conf$$.file 477else 478 rm -f conf$$.dir 479 mkdir conf$$.dir 2>/dev/null 480fi 481if (echo >conf$$.file) 2>/dev/null; then 482 if ln -s conf$$.file conf$$ 2>/dev/null; then 483 as_ln_s='ln -s' 484 # ... but there are two gotchas: 485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 487 # In both cases, we have to default to `cp -p'. 488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 489 as_ln_s='cp -p' 490 elif ln conf$$.file conf$$ 2>/dev/null; then 491 as_ln_s=ln 492 else 493 as_ln_s='cp -p' 494 fi 495else 496 as_ln_s='cp -p' 497fi 498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 499rmdir conf$$.dir 2>/dev/null 500 501if mkdir -p . 2>/dev/null; then 502 as_mkdir_p='mkdir -p "$as_dir"' 503else 504 test -d ./-p && rmdir ./-p 505 as_mkdir_p=false 506fi 507 508if test -x / >/dev/null 2>&1; then 509 as_test_x='test -x' 510else 511 if ls -dL / >/dev/null 2>&1; then 512 as_ls_L_option=L 513 else 514 as_ls_L_option= 515 fi 516 as_test_x=' 517 eval sh -c '\'' 518 if test -d "$1"; then 519 test -d "$1/."; 520 else 521 case $1 in #( 522 -*)set "./$1";; 523 esac; 524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 525 ???[sx]*):;;*)false;;esac;fi 526 '\'' sh 527 ' 528fi 529as_executable_p=$as_test_x 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537SHELL=${CONFIG_SHELL-/bin/sh} 538 539 540exec 7<&0 </dev/null 6>&1 541 542# Name of the host. 543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 544# so uname gets run too. 545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 546 547# 548# Initializations. 549# 550ac_default_prefix=/usr/local 551ac_clean_files= 552ac_config_libobj_dir=. 553LIBOBJS= 554cross_compiling=no 555subdirs= 556MFLAGS= 557MAKEFLAGS= 558 559# Identity of this package. 560PACKAGE_NAME='phsa HSAIL runtime library' 561PACKAGE_TARNAME='phsa-hsail-runtime-library' 562PACKAGE_VERSION='1.0' 563PACKAGE_STRING='phsa HSAIL runtime library 1.0' 564PACKAGE_BUGREPORT='pekka.jaaskelainen@parmance.com' 565PACKAGE_URL='' 566 567# Factoring default headers for most tests. 568ac_includes_default="\ 569#include <stdio.h> 570#ifdef HAVE_SYS_TYPES_H 571# include <sys/types.h> 572#endif 573#ifdef HAVE_SYS_STAT_H 574# include <sys/stat.h> 575#endif 576#ifdef STDC_HEADERS 577# include <stdlib.h> 578# include <stddef.h> 579#else 580# ifdef HAVE_STDLIB_H 581# include <stdlib.h> 582# endif 583#endif 584#ifdef HAVE_STRING_H 585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 586# include <memory.h> 587# endif 588# include <string.h> 589#endif 590#ifdef HAVE_STRINGS_H 591# include <strings.h> 592#endif 593#ifdef HAVE_INTTYPES_H 594# include <inttypes.h> 595#endif 596#ifdef HAVE_STDINT_H 597# include <stdint.h> 598#endif 599#ifdef HAVE_UNISTD_H 600# include <unistd.h> 601#endif" 602 603ac_subst_vars='am__EXEEXT_FALSE 604am__EXEEXT_TRUE 605LTLIBOBJS 606LIBOBJS 607get_gcc_base_ver 608toolexeclibdir 609toolexecdir 610CXXCPP 611CPP 612OTOOL64 613OTOOL 614LIPO 615NMEDIT 616DSYMUTIL 617RANLIB 618AR 619OBJDUMP 620LN_S 621NM 622ac_ct_DUMPBIN 623DUMPBIN 624LD 625FGREP 626EGREP 627GREP 628SED 629LIBTOOL 630MAC_LINKER_SCRIPT_FALSE 631MAC_LINKER_SCRIPT_TRUE 632LINUX_LINKER_SCRIPT_FALSE 633LINUX_LINKER_SCRIPT_TRUE 634config_dir 635am__fastdepCXX_FALSE 636am__fastdepCXX_TRUE 637CXXDEPMODE 638ac_ct_CXX 639CXXFLAGS 640CXX 641am__fastdepCC_FALSE 642am__fastdepCC_TRUE 643CCDEPMODE 644am__nodep 645AMDEPBACKSLASH 646AMDEP_FALSE 647AMDEP_TRUE 648am__quote 649am__include 650DEPDIR 651OBJEXT 652EXEEXT 653ac_ct_CC 654CPPFLAGS 655LDFLAGS 656CFLAGS 657CC 658MAINT 659MAINTAINER_MODE_FALSE 660MAINTAINER_MODE_TRUE 661am__untar 662am__tar 663AMTAR 664am__leading_dot 665SET_MAKE 666AWK 667mkdir_p 668MKDIR_P 669INSTALL_STRIP_PROGRAM 670STRIP 671install_sh 672MAKEINFO 673AUTOHEADER 674AUTOMAKE 675AUTOCONF 676ACLOCAL 677VERSION 678PACKAGE 679CYGPATH_W 680am__isrc 681INSTALL_DATA 682INSTALL_SCRIPT 683INSTALL_PROGRAM 684target_os 685target_vendor 686target_cpu 687target 688host_os 689host_vendor 690host_cpu 691host 692build_os 693build_vendor 694build_cpu 695build 696target_alias 697host_alias 698build_alias 699LIBS 700ECHO_T 701ECHO_N 702ECHO_C 703DEFS 704mandir 705localedir 706libdir 707psdir 708pdfdir 709dvidir 710htmldir 711infodir 712docdir 713oldincludedir 714includedir 715localstatedir 716sharedstatedir 717sysconfdir 718datadir 719datarootdir 720libexecdir 721sbindir 722bindir 723program_transform_name 724prefix 725exec_prefix 726PACKAGE_URL 727PACKAGE_BUGREPORT 728PACKAGE_STRING 729PACKAGE_VERSION 730PACKAGE_TARNAME 731PACKAGE_NAME 732PATH_SEPARATOR 733SHELL' 734ac_subst_files='' 735ac_user_opts=' 736enable_option_checking 737enable_maintainer_mode 738enable_dependency_tracking 739enable_version_specific_runtime_libs 740enable_shared 741enable_static 742with_pic 743enable_fast_install 744with_gnu_ld 745enable_libtool_lock 746with_gcc_major_version_only 747' 748 ac_precious_vars='build_alias 749host_alias 750target_alias 751CC 752CFLAGS 753LDFLAGS 754LIBS 755CPPFLAGS 756CXX 757CXXFLAGS 758CCC 759CPP 760CXXCPP' 761 762 763# Initialize some variables set by options. 764ac_init_help= 765ac_init_version=false 766ac_unrecognized_opts= 767ac_unrecognized_sep= 768# The variables have the same names as the options, with 769# dashes changed to underlines. 770cache_file=/dev/null 771exec_prefix=NONE 772no_create= 773no_recursion= 774prefix=NONE 775program_prefix=NONE 776program_suffix=NONE 777program_transform_name=s,x,x, 778silent= 779site= 780srcdir= 781verbose= 782x_includes=NONE 783x_libraries=NONE 784 785# Installation directory options. 786# These are left unexpanded so users can "make install exec_prefix=/foo" 787# and all the variables that are supposed to be based on exec_prefix 788# by default will actually change. 789# Use braces instead of parens because sh, perl, etc. also accept them. 790# (The list follows the same order as the GNU Coding Standards.) 791bindir='${exec_prefix}/bin' 792sbindir='${exec_prefix}/sbin' 793libexecdir='${exec_prefix}/libexec' 794datarootdir='${prefix}/share' 795datadir='${datarootdir}' 796sysconfdir='${prefix}/etc' 797sharedstatedir='${prefix}/com' 798localstatedir='${prefix}/var' 799includedir='${prefix}/include' 800oldincludedir='/usr/include' 801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 802infodir='${datarootdir}/info' 803htmldir='${docdir}' 804dvidir='${docdir}' 805pdfdir='${docdir}' 806psdir='${docdir}' 807libdir='${exec_prefix}/lib' 808localedir='${datarootdir}/locale' 809mandir='${datarootdir}/man' 810 811ac_prev= 812ac_dashdash= 813for ac_option 814do 815 # If the previous option needs an argument, assign it. 816 if test -n "$ac_prev"; then 817 eval $ac_prev=\$ac_option 818 ac_prev= 819 continue 820 fi 821 822 case $ac_option in 823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 824 *) ac_optarg=yes ;; 825 esac 826 827 # Accept the important Cygnus configure options, so we can diagnose typos. 828 829 case $ac_dashdash$ac_option in 830 --) 831 ac_dashdash=yes ;; 832 833 -bindir | --bindir | --bindi | --bind | --bin | --bi) 834 ac_prev=bindir ;; 835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 836 bindir=$ac_optarg ;; 837 838 -build | --build | --buil | --bui | --bu) 839 ac_prev=build_alias ;; 840 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 841 build_alias=$ac_optarg ;; 842 843 -cache-file | --cache-file | --cache-fil | --cache-fi \ 844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 845 ac_prev=cache_file ;; 846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 848 cache_file=$ac_optarg ;; 849 850 --config-cache | -C) 851 cache_file=config.cache ;; 852 853 -datadir | --datadir | --datadi | --datad) 854 ac_prev=datadir ;; 855 -datadir=* | --datadir=* | --datadi=* | --datad=*) 856 datadir=$ac_optarg ;; 857 858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 859 | --dataroo | --dataro | --datar) 860 ac_prev=datarootdir ;; 861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 863 datarootdir=$ac_optarg ;; 864 865 -disable-* | --disable-*) 866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 867 # Reject names that are not valid shell variable names. 868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 869 as_fn_error "invalid feature name: $ac_useropt" 870 ac_useropt_orig=$ac_useropt 871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 872 case $ac_user_opts in 873 *" 874"enable_$ac_useropt" 875"*) ;; 876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 877 ac_unrecognized_sep=', ';; 878 esac 879 eval enable_$ac_useropt=no ;; 880 881 -docdir | --docdir | --docdi | --doc | --do) 882 ac_prev=docdir ;; 883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 884 docdir=$ac_optarg ;; 885 886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 887 ac_prev=dvidir ;; 888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 889 dvidir=$ac_optarg ;; 890 891 -enable-* | --enable-*) 892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 893 # Reject names that are not valid shell variable names. 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 895 as_fn_error "invalid feature name: $ac_useropt" 896 ac_useropt_orig=$ac_useropt 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 898 case $ac_user_opts in 899 *" 900"enable_$ac_useropt" 901"*) ;; 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=\$ac_optarg ;; 906 907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 909 | --exec | --exe | --ex) 910 ac_prev=exec_prefix ;; 911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 913 | --exec=* | --exe=* | --ex=*) 914 exec_prefix=$ac_optarg ;; 915 916 -gas | --gas | --ga | --g) 917 # Obsolete; use --with-gas. 918 with_gas=yes ;; 919 920 -help | --help | --hel | --he | -h) 921 ac_init_help=long ;; 922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 923 ac_init_help=recursive ;; 924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 925 ac_init_help=short ;; 926 927 -host | --host | --hos | --ho) 928 ac_prev=host_alias ;; 929 -host=* | --host=* | --hos=* | --ho=*) 930 host_alias=$ac_optarg ;; 931 932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 933 ac_prev=htmldir ;; 934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 935 | --ht=*) 936 htmldir=$ac_optarg ;; 937 938 -includedir | --includedir | --includedi | --included | --include \ 939 | --includ | --inclu | --incl | --inc) 940 ac_prev=includedir ;; 941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 942 | --includ=* | --inclu=* | --incl=* | --inc=*) 943 includedir=$ac_optarg ;; 944 945 -infodir | --infodir | --infodi | --infod | --info | --inf) 946 ac_prev=infodir ;; 947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 948 infodir=$ac_optarg ;; 949 950 -libdir | --libdir | --libdi | --libd) 951 ac_prev=libdir ;; 952 -libdir=* | --libdir=* | --libdi=* | --libd=*) 953 libdir=$ac_optarg ;; 954 955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 956 | --libexe | --libex | --libe) 957 ac_prev=libexecdir ;; 958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 959 | --libexe=* | --libex=* | --libe=*) 960 libexecdir=$ac_optarg ;; 961 962 -localedir | --localedir | --localedi | --localed | --locale) 963 ac_prev=localedir ;; 964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 965 localedir=$ac_optarg ;; 966 967 -localstatedir | --localstatedir | --localstatedi | --localstated \ 968 | --localstate | --localstat | --localsta | --localst | --locals) 969 ac_prev=localstatedir ;; 970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 972 localstatedir=$ac_optarg ;; 973 974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 975 ac_prev=mandir ;; 976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 977 mandir=$ac_optarg ;; 978 979 -nfp | --nfp | --nf) 980 # Obsolete; use --without-fp. 981 with_fp=no ;; 982 983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 984 | --no-cr | --no-c | -n) 985 no_create=yes ;; 986 987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 989 no_recursion=yes ;; 990 991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 993 | --oldin | --oldi | --old | --ol | --o) 994 ac_prev=oldincludedir ;; 995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 998 oldincludedir=$ac_optarg ;; 999 1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1001 ac_prev=prefix ;; 1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1003 prefix=$ac_optarg ;; 1004 1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1006 | --program-pre | --program-pr | --program-p) 1007 ac_prev=program_prefix ;; 1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1010 program_prefix=$ac_optarg ;; 1011 1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1013 | --program-suf | --program-su | --program-s) 1014 ac_prev=program_suffix ;; 1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1017 program_suffix=$ac_optarg ;; 1018 1019 -program-transform-name | --program-transform-name \ 1020 | --program-transform-nam | --program-transform-na \ 1021 | --program-transform-n | --program-transform- \ 1022 | --program-transform | --program-transfor \ 1023 | --program-transfo | --program-transf \ 1024 | --program-trans | --program-tran \ 1025 | --progr-tra | --program-tr | --program-t) 1026 ac_prev=program_transform_name ;; 1027 -program-transform-name=* | --program-transform-name=* \ 1028 | --program-transform-nam=* | --program-transform-na=* \ 1029 | --program-transform-n=* | --program-transform-=* \ 1030 | --program-transform=* | --program-transfor=* \ 1031 | --program-transfo=* | --program-transf=* \ 1032 | --program-trans=* | --program-tran=* \ 1033 | --progr-tra=* | --program-tr=* | --program-t=*) 1034 program_transform_name=$ac_optarg ;; 1035 1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1037 ac_prev=pdfdir ;; 1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1039 pdfdir=$ac_optarg ;; 1040 1041 -psdir | --psdir | --psdi | --psd | --ps) 1042 ac_prev=psdir ;; 1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1044 psdir=$ac_optarg ;; 1045 1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1047 | -silent | --silent | --silen | --sile | --sil) 1048 silent=yes ;; 1049 1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1051 ac_prev=sbindir ;; 1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1053 | --sbi=* | --sb=*) 1054 sbindir=$ac_optarg ;; 1055 1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1058 | --sharedst | --shareds | --shared | --share | --shar \ 1059 | --sha | --sh) 1060 ac_prev=sharedstatedir ;; 1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1064 | --sha=* | --sh=*) 1065 sharedstatedir=$ac_optarg ;; 1066 1067 -site | --site | --sit) 1068 ac_prev=site ;; 1069 -site=* | --site=* | --sit=*) 1070 site=$ac_optarg ;; 1071 1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1073 ac_prev=srcdir ;; 1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1075 srcdir=$ac_optarg ;; 1076 1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1078 | --syscon | --sysco | --sysc | --sys | --sy) 1079 ac_prev=sysconfdir ;; 1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1082 sysconfdir=$ac_optarg ;; 1083 1084 -target | --target | --targe | --targ | --tar | --ta | --t) 1085 ac_prev=target_alias ;; 1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1087 target_alias=$ac_optarg ;; 1088 1089 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1090 verbose=yes ;; 1091 1092 -version | --version | --versio | --versi | --vers | -V) 1093 ac_init_version=: ;; 1094 1095 -with-* | --with-*) 1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1097 # Reject names that are not valid shell variable names. 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099 as_fn_error "invalid package name: $ac_useropt" 1100 ac_useropt_orig=$ac_useropt 1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102 case $ac_user_opts in 1103 *" 1104"with_$ac_useropt" 1105"*) ;; 1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1107 ac_unrecognized_sep=', ';; 1108 esac 1109 eval with_$ac_useropt=\$ac_optarg ;; 1110 1111 -without-* | --without-*) 1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1113 # Reject names that are not valid shell variable names. 1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1115 as_fn_error "invalid package name: $ac_useropt" 1116 ac_useropt_orig=$ac_useropt 1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1118 case $ac_user_opts in 1119 *" 1120"with_$ac_useropt" 1121"*) ;; 1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1123 ac_unrecognized_sep=', ';; 1124 esac 1125 eval with_$ac_useropt=no ;; 1126 1127 --x) 1128 # Obsolete; use --with-x. 1129 with_x=yes ;; 1130 1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1132 | --x-incl | --x-inc | --x-in | --x-i) 1133 ac_prev=x_includes ;; 1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1136 x_includes=$ac_optarg ;; 1137 1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1140 ac_prev=x_libraries ;; 1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1143 x_libraries=$ac_optarg ;; 1144 1145 -*) as_fn_error "unrecognized option: \`$ac_option' 1146Try \`$0 --help' for more information." 1147 ;; 1148 1149 *=*) 1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1151 # Reject names that are not valid shell variable names. 1152 case $ac_envvar in #( 1153 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1155 esac 1156 eval $ac_envvar=\$ac_optarg 1157 export $ac_envvar ;; 1158 1159 *) 1160 # FIXME: should be removed in autoconf 3.0. 1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1165 ;; 1166 1167 esac 1168done 1169 1170if test -n "$ac_prev"; then 1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1172 as_fn_error "missing argument to $ac_option" 1173fi 1174 1175if test -n "$ac_unrecognized_opts"; then 1176 case $enable_option_checking in 1177 no) ;; 1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1180 esac 1181fi 1182 1183# Check all directory arguments for consistency. 1184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1185 datadir sysconfdir sharedstatedir localstatedir includedir \ 1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1187 libdir localedir mandir 1188do 1189 eval ac_val=\$$ac_var 1190 # Remove trailing slashes. 1191 case $ac_val in 1192 */ ) 1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1194 eval $ac_var=\$ac_val;; 1195 esac 1196 # Be sure to have absolute directory names. 1197 case $ac_val in 1198 [\\/$]* | ?:[\\/]* ) continue;; 1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1200 esac 1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1202done 1203 1204# There might be people who depend on the old broken behavior: `$host' 1205# used to hold the argument of --host etc. 1206# FIXME: To remove some day. 1207build=$build_alias 1208host=$host_alias 1209target=$target_alias 1210 1211# FIXME: To remove some day. 1212if test "x$host_alias" != x; then 1213 if test "x$build_alias" = x; then 1214 cross_compiling=maybe 1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1216 If a cross compiler is detected then cross compile mode will be used." >&2 1217 elif test "x$build_alias" != "x$host_alias"; then 1218 cross_compiling=yes 1219 fi 1220fi 1221 1222ac_tool_prefix= 1223test -n "$host_alias" && ac_tool_prefix=$host_alias- 1224 1225test "$silent" = yes && exec 6>/dev/null 1226 1227 1228ac_pwd=`pwd` && test -n "$ac_pwd" && 1229ac_ls_di=`ls -di .` && 1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1231 as_fn_error "working directory cannot be determined" 1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1233 as_fn_error "pwd does not report name of working directory" 1234 1235 1236# Find the source files, if location was not specified. 1237if test -z "$srcdir"; then 1238 ac_srcdir_defaulted=yes 1239 # Try the directory containing this script, then the parent directory. 1240 ac_confdir=`$as_dirname -- "$as_myself" || 1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1242 X"$as_myself" : 'X\(//\)[^/]' \| \ 1243 X"$as_myself" : 'X\(//\)$' \| \ 1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1245$as_echo X"$as_myself" | 1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\/\)[^/].*/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\).*/{ 1259 s//\1/ 1260 q 1261 } 1262 s/.*/./; q'` 1263 srcdir=$ac_confdir 1264 if test ! -r "$srcdir/$ac_unique_file"; then 1265 srcdir=.. 1266 fi 1267else 1268 ac_srcdir_defaulted=no 1269fi 1270if test ! -r "$srcdir/$ac_unique_file"; then 1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1273fi 1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1275ac_abs_confdir=`( 1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1277 pwd)` 1278# When building in place, set srcdir=. 1279if test "$ac_abs_confdir" = "$ac_pwd"; then 1280 srcdir=. 1281fi 1282# Remove unnecessary trailing slashes from srcdir. 1283# Double slashes in file names in object file debugging info 1284# mess up M-x gdb in Emacs. 1285case $srcdir in 1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1287esac 1288for ac_var in $ac_precious_vars; do 1289 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1290 eval ac_env_${ac_var}_value=\$${ac_var} 1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1293done 1294 1295# 1296# Report the --help message. 1297# 1298if test "$ac_init_help" = "long"; then 1299 # Omit some internal or obsolete options to make the list less imposing. 1300 # This message is too long to be a string in the A/UX 3.1 sh. 1301 cat <<_ACEOF 1302\`configure' configures phsa HSAIL runtime library 1.0 to adapt to many kinds of systems. 1303 1304Usage: $0 [OPTION]... [VAR=VALUE]... 1305 1306To assign environment variables (e.g., CC, CFLAGS...), specify them as 1307VAR=VALUE. See below for descriptions of some of the useful variables. 1308 1309Defaults for the options are specified in brackets. 1310 1311Configuration: 1312 -h, --help display this help and exit 1313 --help=short display options specific to this package 1314 --help=recursive display the short help of all the included packages 1315 -V, --version display version information and exit 1316 -q, --quiet, --silent do not print \`checking...' messages 1317 --cache-file=FILE cache test results in FILE [disabled] 1318 -C, --config-cache alias for \`--cache-file=config.cache' 1319 -n, --no-create do not create output files 1320 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1321 1322Installation directories: 1323 --prefix=PREFIX install architecture-independent files in PREFIX 1324 [$ac_default_prefix] 1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1326 [PREFIX] 1327 1328By default, \`make install' will install all the files in 1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1330an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1331for instance \`--prefix=\$HOME'. 1332 1333For better control, use the options below. 1334 1335Fine tuning of the installation directories: 1336 --bindir=DIR user executables [EPREFIX/bin] 1337 --sbindir=DIR system admin executables [EPREFIX/sbin] 1338 --libexecdir=DIR program executables [EPREFIX/libexec] 1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1342 --libdir=DIR object code libraries [EPREFIX/lib] 1343 --includedir=DIR C header files [PREFIX/include] 1344 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1347 --infodir=DIR info documentation [DATAROOTDIR/info] 1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1349 --mandir=DIR man documentation [DATAROOTDIR/man] 1350 --docdir=DIR documentation root 1351 [DATAROOTDIR/doc/phsa-hsail-runtime-library] 1352 --htmldir=DIR html documentation [DOCDIR] 1353 --dvidir=DIR dvi documentation [DOCDIR] 1354 --pdfdir=DIR pdf documentation [DOCDIR] 1355 --psdir=DIR ps documentation [DOCDIR] 1356_ACEOF 1357 1358 cat <<\_ACEOF 1359 1360Program names: 1361 --program-prefix=PREFIX prepend PREFIX to installed program names 1362 --program-suffix=SUFFIX append SUFFIX to installed program names 1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1364 1365System types: 1366 --build=BUILD configure for building on BUILD [guessed] 1367 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1368 --target=TARGET configure for building compilers for TARGET [HOST] 1369_ACEOF 1370fi 1371 1372if test -n "$ac_init_help"; then 1373 case $ac_init_help in 1374 short | recursive ) echo "Configuration of phsa HSAIL runtime library 1.0:";; 1375 esac 1376 cat <<\_ACEOF 1377 1378Optional Features: 1379 --disable-option-checking ignore unrecognized --enable/--with options 1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1382 --enable-maintainer-mode enable make rules and dependencies not useful 1383 (and sometimes confusing) to the casual installer 1384 --disable-dependency-tracking speeds up one-time build 1385 --enable-dependency-tracking do not reject slow dependency extractors 1386 --enable-version-specific-runtime-libs 1387 Specify that runtime libraries should be installed 1388 in a compi ler-specific directory 1389 --enable-shared[=PKGS] build shared libraries [default=yes] 1390 --enable-static[=PKGS] build static libraries [default=yes] 1391 --enable-fast-install[=PKGS] 1392 optimize for fast installation [default=yes] 1393 --disable-libtool-lock avoid locking (might break parallel builds) 1394 1395Optional Packages: 1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1398 --with-pic try to use only PIC/non-PIC objects [default=use 1399 both] 1400 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1401 --with-gcc-major-version-only 1402 use only GCC major number in filesystem paths 1403 1404Some influential environment variables: 1405 CC C compiler command 1406 CFLAGS C compiler flags 1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1408 nonstandard directory <lib dir> 1409 LIBS libraries to pass to the linker, e.g. -l<library> 1410 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1411 you have headers in a nonstandard directory <include dir> 1412 CXX C++ compiler command 1413 CXXFLAGS C++ compiler flags 1414 CPP C preprocessor 1415 CXXCPP C++ preprocessor 1416 1417Use these variables to override the choices made by `configure' or to help 1418it to find libraries and programs with nonstandard names/locations. 1419 1420Report bugs to <pekka.jaaskelainen@parmance.com>. 1421_ACEOF 1422ac_status=$? 1423fi 1424 1425if test "$ac_init_help" = "recursive"; then 1426 # If there are subdirs, report their specific --help. 1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1428 test -d "$ac_dir" || 1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1430 continue 1431 ac_builddir=. 1432 1433case "$ac_dir" in 1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1435*) 1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1437 # A ".." for each directory in $ac_dir_suffix. 1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1439 case $ac_top_builddir_sub in 1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1442 esac ;; 1443esac 1444ac_abs_top_builddir=$ac_pwd 1445ac_abs_builddir=$ac_pwd$ac_dir_suffix 1446# for backward compatibility: 1447ac_top_builddir=$ac_top_build_prefix 1448 1449case $srcdir in 1450 .) # We are building in place. 1451 ac_srcdir=. 1452 ac_top_srcdir=$ac_top_builddir_sub 1453 ac_abs_top_srcdir=$ac_pwd ;; 1454 [\\/]* | ?:[\\/]* ) # Absolute name. 1455 ac_srcdir=$srcdir$ac_dir_suffix; 1456 ac_top_srcdir=$srcdir 1457 ac_abs_top_srcdir=$srcdir ;; 1458 *) # Relative name. 1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1460 ac_top_srcdir=$ac_top_build_prefix$srcdir 1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1462esac 1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1464 1465 cd "$ac_dir" || { ac_status=$?; continue; } 1466 # Check for guested configure. 1467 if test -f "$ac_srcdir/configure.gnu"; then 1468 echo && 1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1470 elif test -f "$ac_srcdir/configure"; then 1471 echo && 1472 $SHELL "$ac_srcdir/configure" --help=recursive 1473 else 1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1475 fi || ac_status=$? 1476 cd "$ac_pwd" || { ac_status=$?; break; } 1477 done 1478fi 1479 1480test -n "$ac_init_help" && exit $ac_status 1481if $ac_init_version; then 1482 cat <<\_ACEOF 1483phsa HSAIL runtime library configure 1.0 1484generated by GNU Autoconf 2.64 1485 1486Copyright (C) 2009 Free Software Foundation, Inc. 1487This configure script is free software; the Free Software Foundation 1488gives unlimited permission to copy, distribute and modify it. 1489_ACEOF 1490 exit 1491fi 1492 1493## ------------------------ ## 1494## Autoconf initialization. ## 1495## ------------------------ ## 1496 1497# ac_fn_c_try_compile LINENO 1498# -------------------------- 1499# Try to compile conftest.$ac_ext, and return whether this succeeded. 1500ac_fn_c_try_compile () 1501{ 1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1503 rm -f conftest.$ac_objext 1504 if { { ac_try="$ac_compile" 1505case "(($ac_try" in 1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1507 *) ac_try_echo=$ac_try;; 1508esac 1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1510$as_echo "$ac_try_echo"; } >&5 1511 (eval "$ac_compile") 2>conftest.err 1512 ac_status=$? 1513 if test -s conftest.err; then 1514 grep -v '^ *+' conftest.err >conftest.er1 1515 cat conftest.er1 >&5 1516 mv -f conftest.er1 conftest.err 1517 fi 1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1519 test $ac_status = 0; } && { 1520 test -z "$ac_c_werror_flag" || 1521 test ! -s conftest.err 1522 } && test -s conftest.$ac_objext; then : 1523 ac_retval=0 1524else 1525 $as_echo "$as_me: failed program was:" >&5 1526sed 's/^/| /' conftest.$ac_ext >&5 1527 1528 ac_retval=1 1529fi 1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1531 return $ac_retval 1532 1533} # ac_fn_c_try_compile 1534 1535# ac_fn_cxx_try_compile LINENO 1536# ---------------------------- 1537# Try to compile conftest.$ac_ext, and return whether this succeeded. 1538ac_fn_cxx_try_compile () 1539{ 1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1541 rm -f conftest.$ac_objext 1542 if { { ac_try="$ac_compile" 1543case "(($ac_try" in 1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1545 *) ac_try_echo=$ac_try;; 1546esac 1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1548$as_echo "$ac_try_echo"; } >&5 1549 (eval "$ac_compile") 2>conftest.err 1550 ac_status=$? 1551 if test -s conftest.err; then 1552 grep -v '^ *+' conftest.err >conftest.er1 1553 cat conftest.er1 >&5 1554 mv -f conftest.er1 conftest.err 1555 fi 1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1557 test $ac_status = 0; } && { 1558 test -z "$ac_cxx_werror_flag" || 1559 test ! -s conftest.err 1560 } && test -s conftest.$ac_objext; then : 1561 ac_retval=0 1562else 1563 $as_echo "$as_me: failed program was:" >&5 1564sed 's/^/| /' conftest.$ac_ext >&5 1565 1566 ac_retval=1 1567fi 1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1569 return $ac_retval 1570 1571} # ac_fn_cxx_try_compile 1572 1573# ac_fn_c_try_link LINENO 1574# ----------------------- 1575# Try to link conftest.$ac_ext, and return whether this succeeded. 1576ac_fn_c_try_link () 1577{ 1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1579 rm -f conftest.$ac_objext conftest$ac_exeext 1580 if { { ac_try="$ac_link" 1581case "(($ac_try" in 1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1583 *) ac_try_echo=$ac_try;; 1584esac 1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1586$as_echo "$ac_try_echo"; } >&5 1587 (eval "$ac_link") 2>conftest.err 1588 ac_status=$? 1589 if test -s conftest.err; then 1590 grep -v '^ *+' conftest.err >conftest.er1 1591 cat conftest.er1 >&5 1592 mv -f conftest.er1 conftest.err 1593 fi 1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1595 test $ac_status = 0; } && { 1596 test -z "$ac_c_werror_flag" || 1597 test ! -s conftest.err 1598 } && test -s conftest$ac_exeext && { 1599 test "$cross_compiling" = yes || 1600 $as_test_x conftest$ac_exeext 1601 }; then : 1602 ac_retval=0 1603else 1604 $as_echo "$as_me: failed program was:" >&5 1605sed 's/^/| /' conftest.$ac_ext >&5 1606 1607 ac_retval=1 1608fi 1609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1611 # interfere with the next link command; also delete a directory that is 1612 # left behind by Apple's compiler. We do this before executing the actions. 1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1615 return $ac_retval 1616 1617} # ac_fn_c_try_link 1618 1619# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1620# ------------------------------------------------------- 1621# Tests whether HEADER exists and can be compiled using the include files in 1622# INCLUDES, setting the cache variable VAR accordingly. 1623ac_fn_c_check_header_compile () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1627$as_echo_n "checking for $2... " >&6; } 1628if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1629 $as_echo_n "(cached) " >&6 1630else 1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632/* end confdefs.h. */ 1633$4 1634#include <$2> 1635_ACEOF 1636if ac_fn_c_try_compile "$LINENO"; then : 1637 eval "$3=yes" 1638else 1639 eval "$3=no" 1640fi 1641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1642fi 1643eval ac_res=\$$3 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1645$as_echo "$ac_res" >&6; } 1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1647 1648} # ac_fn_c_check_header_compile 1649 1650# ac_fn_c_try_cpp LINENO 1651# ---------------------- 1652# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1653ac_fn_c_try_cpp () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 if { { ac_try="$ac_cpp conftest.$ac_ext" 1657case "(($ac_try" in 1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1659 *) ac_try_echo=$ac_try;; 1660esac 1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1662$as_echo "$ac_try_echo"; } >&5 1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1664 ac_status=$? 1665 if test -s conftest.err; then 1666 grep -v '^ *+' conftest.err >conftest.er1 1667 cat conftest.er1 >&5 1668 mv -f conftest.er1 conftest.err 1669 fi 1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1671 test $ac_status = 0; } >/dev/null && { 1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1673 test ! -s conftest.err 1674 }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 1681fi 1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1683 return $ac_retval 1684 1685} # ac_fn_c_try_cpp 1686 1687# ac_fn_c_try_run LINENO 1688# ---------------------- 1689# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1690# that executables *can* be run. 1691ac_fn_c_try_run () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 if { { ac_try="$ac_link" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_link") 2>&5 1702 ac_status=$? 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1705 { { case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_try") 2>&5 1712 ac_status=$? 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; }; }; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: program exited with status $ac_status" >&5 1718 $as_echo "$as_me: failed program was:" >&5 1719sed 's/^/| /' conftest.$ac_ext >&5 1720 1721 ac_retval=$ac_status 1722fi 1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1725 return $ac_retval 1726 1727} # ac_fn_c_try_run 1728 1729# ac_fn_c_check_func LINENO FUNC VAR 1730# ---------------------------------- 1731# Tests whether FUNC exists, setting the cache variable VAR accordingly 1732ac_fn_c_check_func () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1736$as_echo_n "checking for $2... " >&6; } 1737if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1738 $as_echo_n "(cached) " >&6 1739else 1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1744#define $2 innocuous_$2 1745 1746/* System header to define __stub macros and hopefully few prototypes, 1747 which can conflict with char $2 (); below. 1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1749 <limits.h> exists even on freestanding compilers. */ 1750 1751#ifdef __STDC__ 1752# include <limits.h> 1753#else 1754# include <assert.h> 1755#endif 1756 1757#undef $2 1758 1759/* Override any GCC internal prototype to avoid an error. 1760 Use char because int might match the return type of a GCC 1761 builtin and then its argument prototype would still apply. */ 1762#ifdef __cplusplus 1763extern "C" 1764#endif 1765char $2 (); 1766/* The GNU C library defines this for functions which it implements 1767 to always fail with ENOSYS. Some functions are actually named 1768 something starting with __ and the normal name is an alias. */ 1769#if defined __stub_$2 || defined __stub___$2 1770choke me 1771#endif 1772 1773int 1774main () 1775{ 1776return $2 (); 1777 ; 1778 return 0; 1779} 1780_ACEOF 1781if ac_fn_c_try_link "$LINENO"; then : 1782 eval "$3=yes" 1783else 1784 eval "$3=no" 1785fi 1786rm -f core conftest.err conftest.$ac_objext \ 1787 conftest$ac_exeext conftest.$ac_ext 1788fi 1789eval ac_res=\$$3 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791$as_echo "$ac_res" >&6; } 1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1793 1794} # ac_fn_c_check_func 1795 1796# ac_fn_cxx_try_cpp LINENO 1797# ------------------------ 1798# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1799ac_fn_cxx_try_cpp () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 if { { ac_try="$ac_cpp conftest.$ac_ext" 1803case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808$as_echo "$ac_try_echo"; } >&5 1809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1810 ac_status=$? 1811 if test -s conftest.err; then 1812 grep -v '^ *+' conftest.err >conftest.er1 1813 cat conftest.er1 >&5 1814 mv -f conftest.er1 conftest.err 1815 fi 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } >/dev/null && { 1818 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1819 test ! -s conftest.err 1820 }; then : 1821 ac_retval=0 1822else 1823 $as_echo "$as_me: failed program was:" >&5 1824sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 ac_retval=1 1827fi 1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1829 return $ac_retval 1830 1831} # ac_fn_cxx_try_cpp 1832 1833# ac_fn_cxx_try_link LINENO 1834# ------------------------- 1835# Try to link conftest.$ac_ext, and return whether this succeeded. 1836ac_fn_cxx_try_link () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 rm -f conftest.$ac_objext conftest$ac_exeext 1840 if { { ac_try="$ac_link" 1841case "(($ac_try" in 1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1843 *) ac_try_echo=$ac_try;; 1844esac 1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1846$as_echo "$ac_try_echo"; } >&5 1847 (eval "$ac_link") 2>conftest.err 1848 ac_status=$? 1849 if test -s conftest.err; then 1850 grep -v '^ *+' conftest.err >conftest.er1 1851 cat conftest.er1 >&5 1852 mv -f conftest.er1 conftest.err 1853 fi 1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1855 test $ac_status = 0; } && { 1856 test -z "$ac_cxx_werror_flag" || 1857 test ! -s conftest.err 1858 } && test -s conftest$ac_exeext && { 1859 test "$cross_compiling" = yes || 1860 $as_test_x conftest$ac_exeext 1861 }; then : 1862 ac_retval=0 1863else 1864 $as_echo "$as_me: failed program was:" >&5 1865sed 's/^/| /' conftest.$ac_ext >&5 1866 1867 ac_retval=1 1868fi 1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1871 # interfere with the next link command; also delete a directory that is 1872 # left behind by Apple's compiler. We do this before executing the actions. 1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1875 return $ac_retval 1876 1877} # ac_fn_cxx_try_link 1878 1879# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1880# -------------------------------------------- 1881# Tries to find the compile-time value of EXPR in a program that includes 1882# INCLUDES, setting VAR accordingly. Returns whether the value could be 1883# computed 1884ac_fn_c_compute_int () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 if test "$cross_compiling" = yes; then 1888 # Depending upon the size, compute the lo and hi bounds. 1889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1890/* end confdefs.h. */ 1891$4 1892int 1893main () 1894{ 1895static int test_array [1 - 2 * !(($2) >= 0)]; 1896test_array [0] = 0 1897 1898 ; 1899 return 0; 1900} 1901_ACEOF 1902if ac_fn_c_try_compile "$LINENO"; then : 1903 ac_lo=0 ac_mid=0 1904 while :; do 1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907$4 1908int 1909main () 1910{ 1911static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1912test_array [0] = 0 1913 1914 ; 1915 return 0; 1916} 1917_ACEOF 1918if ac_fn_c_try_compile "$LINENO"; then : 1919 ac_hi=$ac_mid; break 1920else 1921 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1922 if test $ac_lo -le $ac_mid; then 1923 ac_lo= ac_hi= 1924 break 1925 fi 1926 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1927fi 1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1929 done 1930else 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$4 1934int 1935main () 1936{ 1937static int test_array [1 - 2 * !(($2) < 0)]; 1938test_array [0] = 0 1939 1940 ; 1941 return 0; 1942} 1943_ACEOF 1944if ac_fn_c_try_compile "$LINENO"; then : 1945 ac_hi=-1 ac_mid=-1 1946 while :; do 1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1948/* end confdefs.h. */ 1949$4 1950int 1951main () 1952{ 1953static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1954test_array [0] = 0 1955 1956 ; 1957 return 0; 1958} 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO"; then : 1961 ac_lo=$ac_mid; break 1962else 1963 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1964 if test $ac_mid -le $ac_hi; then 1965 ac_lo= ac_hi= 1966 break 1967 fi 1968 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1969fi 1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1971 done 1972else 1973 ac_lo= ac_hi= 1974fi 1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976fi 1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978# Binary search between lo and hi bounds. 1979while test "x$ac_lo" != "x$ac_hi"; do 1980 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983$4 1984int 1985main () 1986{ 1987static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1988test_array [0] = 0 1989 1990 ; 1991 return 0; 1992} 1993_ACEOF 1994if ac_fn_c_try_compile "$LINENO"; then : 1995 ac_hi=$ac_mid 1996else 1997 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1998fi 1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2000done 2001case $ac_lo in #(( 2002?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2003'') ac_retval=1 ;; 2004esac 2005 else 2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2007/* end confdefs.h. */ 2008$4 2009static long int longval () { return $2; } 2010static unsigned long int ulongval () { return $2; } 2011#include <stdio.h> 2012#include <stdlib.h> 2013int 2014main () 2015{ 2016 2017 FILE *f = fopen ("conftest.val", "w"); 2018 if (! f) 2019 return 1; 2020 if (($2) < 0) 2021 { 2022 long int i = longval (); 2023 if (i != ($2)) 2024 return 1; 2025 fprintf (f, "%ld", i); 2026 } 2027 else 2028 { 2029 unsigned long int i = ulongval (); 2030 if (i != ($2)) 2031 return 1; 2032 fprintf (f, "%lu", i); 2033 } 2034 /* Do not output a trailing newline, as this causes \r\n confusion 2035 on some platforms. */ 2036 return ferror (f) || fclose (f) != 0; 2037 2038 ; 2039 return 0; 2040} 2041_ACEOF 2042if ac_fn_c_try_run "$LINENO"; then : 2043 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2044else 2045 ac_retval=1 2046fi 2047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2048 conftest.$ac_objext conftest.beam conftest.$ac_ext 2049rm -f conftest.val 2050 2051 fi 2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2053 return $ac_retval 2054 2055} # ac_fn_c_compute_int 2056cat >config.log <<_ACEOF 2057This file contains any messages produced by compilers while 2058running configure, to aid debugging if configure makes a mistake. 2059 2060It was created by phsa HSAIL runtime library $as_me 1.0, which was 2061generated by GNU Autoconf 2.64. Invocation command line was 2062 2063 $ $0 $@ 2064 2065_ACEOF 2066exec 5>>config.log 2067{ 2068cat <<_ASUNAME 2069## --------- ## 2070## Platform. ## 2071## --------- ## 2072 2073hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2074uname -m = `(uname -m) 2>/dev/null || echo unknown` 2075uname -r = `(uname -r) 2>/dev/null || echo unknown` 2076uname -s = `(uname -s) 2>/dev/null || echo unknown` 2077uname -v = `(uname -v) 2>/dev/null || echo unknown` 2078 2079/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2080/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2081 2082/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2083/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2085/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2086/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2087/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2088/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2089 2090_ASUNAME 2091 2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2093for as_dir in $PATH 2094do 2095 IFS=$as_save_IFS 2096 test -z "$as_dir" && as_dir=. 2097 $as_echo "PATH: $as_dir" 2098 done 2099IFS=$as_save_IFS 2100 2101} >&5 2102 2103cat >&5 <<_ACEOF 2104 2105 2106## ----------- ## 2107## Core tests. ## 2108## ----------- ## 2109 2110_ACEOF 2111 2112 2113# Keep a trace of the command line. 2114# Strip out --no-create and --no-recursion so they do not pile up. 2115# Strip out --silent because we don't want to record it for future runs. 2116# Also quote any args containing shell meta-characters. 2117# Make two passes to allow for proper duplicate-argument suppression. 2118ac_configure_args= 2119ac_configure_args0= 2120ac_configure_args1= 2121ac_must_keep_next=false 2122for ac_pass in 1 2 2123do 2124 for ac_arg 2125 do 2126 case $ac_arg in 2127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2129 | -silent | --silent | --silen | --sile | --sil) 2130 continue ;; 2131 *\'*) 2132 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2133 esac 2134 case $ac_pass in 2135 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2136 2) 2137 as_fn_append ac_configure_args1 " '$ac_arg'" 2138 if test $ac_must_keep_next = true; then 2139 ac_must_keep_next=false # Got value, back to normal. 2140 else 2141 case $ac_arg in 2142 *=* | --config-cache | -C | -disable-* | --disable-* \ 2143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2145 | -with-* | --with-* | -without-* | --without-* | --x) 2146 case "$ac_configure_args0 " in 2147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2148 esac 2149 ;; 2150 -* ) ac_must_keep_next=true ;; 2151 esac 2152 fi 2153 as_fn_append ac_configure_args " '$ac_arg'" 2154 ;; 2155 esac 2156 done 2157done 2158{ ac_configure_args0=; unset ac_configure_args0;} 2159{ ac_configure_args1=; unset ac_configure_args1;} 2160 2161# When interrupted or exit'd, cleanup temporary files, and complete 2162# config.log. We remove comments because anyway the quotes in there 2163# would cause problems or look ugly. 2164# WARNING: Use '\'' to represent an apostrophe within the trap. 2165# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2166trap 'exit_status=$? 2167 # Save into config.log some information that might help in debugging. 2168 { 2169 echo 2170 2171 cat <<\_ASBOX 2172## ---------------- ## 2173## Cache variables. ## 2174## ---------------- ## 2175_ASBOX 2176 echo 2177 # The following way of writing the cache mishandles newlines in values, 2178( 2179 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2180 eval ac_val=\$$ac_var 2181 case $ac_val in #( 2182 *${as_nl}*) 2183 case $ac_var in #( 2184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2186 esac 2187 case $ac_var in #( 2188 _ | IFS | as_nl) ;; #( 2189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2190 *) { eval $ac_var=; unset $ac_var;} ;; 2191 esac ;; 2192 esac 2193 done 2194 (set) 2>&1 | 2195 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2196 *${as_nl}ac_space=\ *) 2197 sed -n \ 2198 "s/'\''/'\''\\\\'\'''\''/g; 2199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2200 ;; #( 2201 *) 2202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2203 ;; 2204 esac | 2205 sort 2206) 2207 echo 2208 2209 cat <<\_ASBOX 2210## ----------------- ## 2211## Output variables. ## 2212## ----------------- ## 2213_ASBOX 2214 echo 2215 for ac_var in $ac_subst_vars 2216 do 2217 eval ac_val=\$$ac_var 2218 case $ac_val in 2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2220 esac 2221 $as_echo "$ac_var='\''$ac_val'\''" 2222 done | sort 2223 echo 2224 2225 if test -n "$ac_subst_files"; then 2226 cat <<\_ASBOX 2227## ------------------- ## 2228## File substitutions. ## 2229## ------------------- ## 2230_ASBOX 2231 echo 2232 for ac_var in $ac_subst_files 2233 do 2234 eval ac_val=\$$ac_var 2235 case $ac_val in 2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2237 esac 2238 $as_echo "$ac_var='\''$ac_val'\''" 2239 done | sort 2240 echo 2241 fi 2242 2243 if test -s confdefs.h; then 2244 cat <<\_ASBOX 2245## ----------- ## 2246## confdefs.h. ## 2247## ----------- ## 2248_ASBOX 2249 echo 2250 cat confdefs.h 2251 echo 2252 fi 2253 test "$ac_signal" != 0 && 2254 $as_echo "$as_me: caught signal $ac_signal" 2255 $as_echo "$as_me: exit $exit_status" 2256 } >&5 2257 rm -f core *.core core.conftest.* && 2258 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2259 exit $exit_status 2260' 0 2261for ac_signal in 1 2 13 15; do 2262 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2263done 2264ac_signal=0 2265 2266# confdefs.h avoids OS command line length limits that DEFS can exceed. 2267rm -f -r conftest* confdefs.h 2268 2269$as_echo "/* confdefs.h */" > confdefs.h 2270 2271# Predefined preprocessor variables. 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE_NAME "$PACKAGE_NAME" 2275_ACEOF 2276 2277cat >>confdefs.h <<_ACEOF 2278#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2279_ACEOF 2280 2281cat >>confdefs.h <<_ACEOF 2282#define PACKAGE_VERSION "$PACKAGE_VERSION" 2283_ACEOF 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE_STRING "$PACKAGE_STRING" 2287_ACEOF 2288 2289cat >>confdefs.h <<_ACEOF 2290#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2291_ACEOF 2292 2293cat >>confdefs.h <<_ACEOF 2294#define PACKAGE_URL "$PACKAGE_URL" 2295_ACEOF 2296 2297 2298# Let the site file select an alternate cache file if it wants to. 2299# Prefer an explicitly selected file to automatically selected ones. 2300ac_site_file1=NONE 2301ac_site_file2=NONE 2302if test -n "$CONFIG_SITE"; then 2303 ac_site_file1=$CONFIG_SITE 2304elif test "x$prefix" != xNONE; then 2305 ac_site_file1=$prefix/share/config.site 2306 ac_site_file2=$prefix/etc/config.site 2307else 2308 ac_site_file1=$ac_default_prefix/share/config.site 2309 ac_site_file2=$ac_default_prefix/etc/config.site 2310fi 2311for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2312do 2313 test "x$ac_site_file" = xNONE && continue 2314 if test -r "$ac_site_file"; then 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2316$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2317 sed 's/^/| /' "$ac_site_file" >&5 2318 . "$ac_site_file" 2319 fi 2320done 2321 2322if test -r "$cache_file"; then 2323 # Some versions of bash will fail to source /dev/null (special 2324 # files actually), so we avoid doing that. 2325 if test -f "$cache_file"; then 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2327$as_echo "$as_me: loading cache $cache_file" >&6;} 2328 case $cache_file in 2329 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2330 *) . "./$cache_file";; 2331 esac 2332 fi 2333else 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2335$as_echo "$as_me: creating cache $cache_file" >&6;} 2336 >$cache_file 2337fi 2338 2339# Check that the precious variables saved in the cache have kept the same 2340# value. 2341ac_cache_corrupted=false 2342for ac_var in $ac_precious_vars; do 2343 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2344 eval ac_new_set=\$ac_env_${ac_var}_set 2345 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2346 eval ac_new_val=\$ac_env_${ac_var}_value 2347 case $ac_old_set,$ac_new_set in 2348 set,) 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2350$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2351 ac_cache_corrupted=: ;; 2352 ,set) 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2354$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2355 ac_cache_corrupted=: ;; 2356 ,);; 2357 *) 2358 if test "x$ac_old_val" != "x$ac_new_val"; then 2359 # differences in whitespace do not lead to failure. 2360 ac_old_val_w=`echo x $ac_old_val` 2361 ac_new_val_w=`echo x $ac_new_val` 2362 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2364$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2365 ac_cache_corrupted=: 2366 else 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2368$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2369 eval $ac_var=\$ac_old_val 2370 fi 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2372$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2374$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2375 fi;; 2376 esac 2377 # Pass precious variables to config.status. 2378 if test "$ac_new_set" = set; then 2379 case $ac_new_val in 2380 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2381 *) ac_arg=$ac_var=$ac_new_val ;; 2382 esac 2383 case " $ac_configure_args " in 2384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2385 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2386 esac 2387 fi 2388done 2389if $ac_cache_corrupted; then 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2393$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2394 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2395fi 2396## -------------------- ## 2397## Main body of script. ## 2398## -------------------- ## 2399 2400ac_ext=c 2401ac_cpp='$CPP $CPPFLAGS' 2402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2404ac_compiler_gnu=$ac_cv_c_compiler_gnu 2405 2406 2407 2408 2409 2410 2411 2412# Needed to define ${target}. Needs to be very early to avoid annoying 2413# warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM 2414ac_aux_dir= 2415for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2416 for ac_t in install-sh install.sh shtool; do 2417 if test -f "$ac_dir/$ac_t"; then 2418 ac_aux_dir=$ac_dir 2419 ac_install_sh="$ac_aux_dir/$ac_t -c" 2420 break 2 2421 fi 2422 done 2423done 2424if test -z "$ac_aux_dir"; then 2425 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2426fi 2427 2428# These three variables are undocumented and unsupported, 2429# and are intended to be withdrawn in a future Autoconf release. 2430# They can cause serious problems if a builder's source tree is in a directory 2431# whose full name contains unusual characters. 2432ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2433ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2434ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2435 2436 2437# Make sure we can run config.sub. 2438$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2439 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2440 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2442$as_echo_n "checking build system type... " >&6; } 2443if test "${ac_cv_build+set}" = set; then : 2444 $as_echo_n "(cached) " >&6 2445else 2446 ac_build_alias=$build_alias 2447test "x$ac_build_alias" = x && 2448 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2449test "x$ac_build_alias" = x && 2450 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2451ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2452 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2453 2454fi 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2456$as_echo "$ac_cv_build" >&6; } 2457case $ac_cv_build in 2458*-*-*) ;; 2459*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2460esac 2461build=$ac_cv_build 2462ac_save_IFS=$IFS; IFS='-' 2463set x $ac_cv_build 2464shift 2465build_cpu=$1 2466build_vendor=$2 2467shift; shift 2468# Remember, the first character of IFS is used to create $*, 2469# except with old shells: 2470build_os=$* 2471IFS=$ac_save_IFS 2472case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2473 2474 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2476$as_echo_n "checking host system type... " >&6; } 2477if test "${ac_cv_host+set}" = set; then : 2478 $as_echo_n "(cached) " >&6 2479else 2480 if test "x$host_alias" = x; then 2481 ac_cv_host=$ac_cv_build 2482else 2483 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2484 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2485fi 2486 2487fi 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2489$as_echo "$ac_cv_host" >&6; } 2490case $ac_cv_host in 2491*-*-*) ;; 2492*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2493esac 2494host=$ac_cv_host 2495ac_save_IFS=$IFS; IFS='-' 2496set x $ac_cv_host 2497shift 2498host_cpu=$1 2499host_vendor=$2 2500shift; shift 2501# Remember, the first character of IFS is used to create $*, 2502# except with old shells: 2503host_os=$* 2504IFS=$ac_save_IFS 2505case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2506 2507 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2509$as_echo_n "checking target system type... " >&6; } 2510if test "${ac_cv_target+set}" = set; then : 2511 $as_echo_n "(cached) " >&6 2512else 2513 if test "x$target_alias" = x; then 2514 ac_cv_target=$ac_cv_host 2515else 2516 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2517 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2518fi 2519 2520fi 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2522$as_echo "$ac_cv_target" >&6; } 2523case $ac_cv_target in 2524*-*-*) ;; 2525*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2526esac 2527target=$ac_cv_target 2528ac_save_IFS=$IFS; IFS='-' 2529set x $ac_cv_target 2530shift 2531target_cpu=$1 2532target_vendor=$2 2533shift; shift 2534# Remember, the first character of IFS is used to create $*, 2535# except with old shells: 2536target_os=$* 2537IFS=$ac_save_IFS 2538case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2539 2540 2541# The aliases save the names the user supplied, while $host etc. 2542# will get canonicalized. 2543test -n "$target_alias" && 2544 test "$program_prefix$program_suffix$program_transform_name" = \ 2545 NONENONEs,x,x, && 2546 program_prefix=${target_alias}- 2547 2548target_alias=${target_alias-$host_alias} 2549 2550am__api_version='1.11' 2551 2552# Find a good install program. We prefer a C program (faster), 2553# so one script is as good as another. But avoid the broken or 2554# incompatible versions: 2555# SysV /etc/install, /usr/sbin/install 2556# SunOS /usr/etc/install 2557# IRIX /sbin/install 2558# AIX /bin/install 2559# AmigaOS /C/install, which installs bootblocks on floppy discs 2560# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2561# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2562# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2563# OS/2's system install, which has a completely different semantic 2564# ./install, which can be erroneously created by make from ./install.sh. 2565# Reject install programs that cannot install multiple files. 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2567$as_echo_n "checking for a BSD-compatible install... " >&6; } 2568if test -z "$INSTALL"; then 2569if test "${ac_cv_path_install+set}" = set; then : 2570 $as_echo_n "(cached) " >&6 2571else 2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2573for as_dir in $PATH 2574do 2575 IFS=$as_save_IFS 2576 test -z "$as_dir" && as_dir=. 2577 # Account for people who put trailing slashes in PATH elements. 2578case $as_dir/ in #(( 2579 ./ | .// | /[cC]/* | \ 2580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2581 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2582 /usr/ucb/* ) ;; 2583 *) 2584 # OSF1 and SCO ODT 3.0 have their own names for install. 2585 # Don't use installbsd from OSF since it installs stuff as root 2586 # by default. 2587 for ac_prog in ginstall scoinst install; do 2588 for ac_exec_ext in '' $ac_executable_extensions; do 2589 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2590 if test $ac_prog = install && 2591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2592 # AIX install. It has an incompatible calling convention. 2593 : 2594 elif test $ac_prog = install && 2595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2596 # program-specific install script used by HP pwplus--don't use. 2597 : 2598 else 2599 rm -rf conftest.one conftest.two conftest.dir 2600 echo one > conftest.one 2601 echo two > conftest.two 2602 mkdir conftest.dir 2603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2604 test -s conftest.one && test -s conftest.two && 2605 test -s conftest.dir/conftest.one && 2606 test -s conftest.dir/conftest.two 2607 then 2608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2609 break 3 2610 fi 2611 fi 2612 fi 2613 done 2614 done 2615 ;; 2616esac 2617 2618 done 2619IFS=$as_save_IFS 2620 2621rm -rf conftest.one conftest.two conftest.dir 2622 2623fi 2624 if test "${ac_cv_path_install+set}" = set; then 2625 INSTALL=$ac_cv_path_install 2626 else 2627 # As a last resort, use the slow shell script. Don't cache a 2628 # value for INSTALL within a source directory, because that will 2629 # break other packages using the cache if that directory is 2630 # removed, or if the value is a relative name. 2631 INSTALL=$ac_install_sh 2632 fi 2633fi 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2635$as_echo "$INSTALL" >&6; } 2636 2637# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2638# It thinks the first close brace ends the variable substitution. 2639test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2640 2641test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2642 2643test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2644 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2646$as_echo_n "checking whether build environment is sane... " >&6; } 2647# Just in case 2648sleep 1 2649echo timestamp > conftest.file 2650# Reject unsafe characters in $srcdir or the absolute working directory 2651# name. Accept space and tab only in the latter. 2652am_lf=' 2653' 2654case `pwd` in 2655 *[\\\"\#\$\&\'\`$am_lf]*) 2656 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2657esac 2658case $srcdir in 2659 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2660 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2661esac 2662 2663# Do `set' in a subshell so we don't clobber the current shell's 2664# arguments. Must try -L first in case configure is actually a 2665# symlink; some systems play weird games with the mod time of symlinks 2666# (eg FreeBSD returns the mod time of the symlink's containing 2667# directory). 2668if ( 2669 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2670 if test "$*" = "X"; then 2671 # -L didn't work. 2672 set X `ls -t "$srcdir/configure" conftest.file` 2673 fi 2674 rm -f conftest.file 2675 if test "$*" != "X $srcdir/configure conftest.file" \ 2676 && test "$*" != "X conftest.file $srcdir/configure"; then 2677 2678 # If neither matched, then we have a broken ls. This can happen 2679 # if, for instance, CONFIG_SHELL is bash and it inherits a 2680 # broken ls alias from the environment. This has actually 2681 # happened. Such a system could not be considered "sane". 2682 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2683alias in your environment" "$LINENO" 5 2684 fi 2685 2686 test "$2" = conftest.file 2687 ) 2688then 2689 # Ok. 2690 : 2691else 2692 as_fn_error "newly created file is older than distributed files! 2693Check your system clock" "$LINENO" 5 2694fi 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2696$as_echo "yes" >&6; } 2697test "$program_prefix" != NONE && 2698 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2699# Use a double $ so make ignores it. 2700test "$program_suffix" != NONE && 2701 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2702# Double any \ or $. 2703# By default was `s,x,x', remove it if useless. 2704ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2705program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2706 2707# expand $ac_aux_dir to an absolute path 2708am_aux_dir=`cd $ac_aux_dir && pwd` 2709 2710if test x"${MISSING+set}" != xset; then 2711 case $am_aux_dir in 2712 *\ * | *\ *) 2713 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2714 *) 2715 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2716 esac 2717fi 2718# Use eval to expand $SHELL 2719if eval "$MISSING --run true"; then 2720 am_missing_run="$MISSING --run " 2721else 2722 am_missing_run= 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2724$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2725fi 2726 2727if test x"${install_sh}" != xset; then 2728 case $am_aux_dir in 2729 *\ * | *\ *) 2730 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2731 *) 2732 install_sh="\${SHELL} $am_aux_dir/install-sh" 2733 esac 2734fi 2735 2736# Installed binaries are usually stripped using `strip' when the user 2737# run `make install-strip'. However `strip' might not be the right 2738# tool to use in cross-compilation environments, therefore Automake 2739# will honor the `STRIP' environment variable to overrule this program. 2740if test "$cross_compiling" != no; then 2741 if test -n "$ac_tool_prefix"; then 2742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2743set dummy ${ac_tool_prefix}strip; ac_word=$2 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2745$as_echo_n "checking for $ac_word... " >&6; } 2746if test "${ac_cv_prog_STRIP+set}" = set; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 if test -n "$STRIP"; then 2750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2751else 2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753for as_dir in $PATH 2754do 2755 IFS=$as_save_IFS 2756 test -z "$as_dir" && as_dir=. 2757 for ac_exec_ext in '' $ac_executable_extensions; do 2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2759 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2761 break 2 2762 fi 2763done 2764 done 2765IFS=$as_save_IFS 2766 2767fi 2768fi 2769STRIP=$ac_cv_prog_STRIP 2770if test -n "$STRIP"; then 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2772$as_echo "$STRIP" >&6; } 2773else 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2775$as_echo "no" >&6; } 2776fi 2777 2778 2779fi 2780if test -z "$ac_cv_prog_STRIP"; then 2781 ac_ct_STRIP=$STRIP 2782 # Extract the first word of "strip", so it can be a program name with args. 2783set dummy strip; ac_word=$2 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2785$as_echo_n "checking for $ac_word... " >&6; } 2786if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2787 $as_echo_n "(cached) " >&6 2788else 2789 if test -n "$ac_ct_STRIP"; then 2790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2791else 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2799 ac_cv_prog_ac_ct_STRIP="strip" 2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2801 break 2 2802 fi 2803done 2804 done 2805IFS=$as_save_IFS 2806 2807fi 2808fi 2809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2810if test -n "$ac_ct_STRIP"; then 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2812$as_echo "$ac_ct_STRIP" >&6; } 2813else 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815$as_echo "no" >&6; } 2816fi 2817 2818 if test "x$ac_ct_STRIP" = x; then 2819 STRIP=":" 2820 else 2821 case $cross_compiling:$ac_tool_warned in 2822yes:) 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2825ac_tool_warned=yes ;; 2826esac 2827 STRIP=$ac_ct_STRIP 2828 fi 2829else 2830 STRIP="$ac_cv_prog_STRIP" 2831fi 2832 2833fi 2834INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2835 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2837$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2838if test -z "$MKDIR_P"; then 2839 if test "${ac_cv_path_mkdir+set}" = set; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2844do 2845 IFS=$as_save_IFS 2846 test -z "$as_dir" && as_dir=. 2847 for ac_prog in mkdir gmkdir; do 2848 for ac_exec_ext in '' $ac_executable_extensions; do 2849 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2850 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2851 'mkdir (GNU coreutils) '* | \ 2852 'mkdir (coreutils) '* | \ 2853 'mkdir (fileutils) '4.1*) 2854 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2855 break 3;; 2856 esac 2857 done 2858 done 2859 done 2860IFS=$as_save_IFS 2861 2862fi 2863 2864 if test "${ac_cv_path_mkdir+set}" = set; then 2865 MKDIR_P="$ac_cv_path_mkdir -p" 2866 else 2867 # As a last resort, use the slow shell script. Don't cache a 2868 # value for MKDIR_P within a source directory, because that will 2869 # break other packages using the cache if that directory is 2870 # removed, or if the value is a relative name. 2871 test -d ./--version && rmdir ./--version 2872 MKDIR_P="$ac_install_sh -d" 2873 fi 2874fi 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2876$as_echo "$MKDIR_P" >&6; } 2877 2878mkdir_p="$MKDIR_P" 2879case $mkdir_p in 2880 [\\/$]* | ?:[\\/]*) ;; 2881 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2882esac 2883 2884for ac_prog in gawk mawk nawk awk 2885do 2886 # Extract the first word of "$ac_prog", so it can be a program name with args. 2887set dummy $ac_prog; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if test "${ac_cv_prog_AWK+set}" = set; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$AWK"; then 2894 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2903 ac_cv_prog_AWK="$ac_prog" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913AWK=$ac_cv_prog_AWK 2914if test -n "$AWK"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2916$as_echo "$AWK" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 2923 test -n "$AWK" && break 2924done 2925 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2927$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2928set x ${MAKE-make} 2929ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2930if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 cat >conftest.make <<\_ACEOF 2934SHELL = /bin/sh 2935all: 2936 @echo '@@@%%%=$(MAKE)=@@@%%%' 2937_ACEOF 2938# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2939case `${MAKE-make} -f conftest.make 2>/dev/null` in 2940 *@@@%%%=?*=@@@%%%*) 2941 eval ac_cv_prog_make_${ac_make}_set=yes;; 2942 *) 2943 eval ac_cv_prog_make_${ac_make}_set=no;; 2944esac 2945rm -f conftest.make 2946fi 2947if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2949$as_echo "yes" >&6; } 2950 SET_MAKE= 2951else 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2953$as_echo "no" >&6; } 2954 SET_MAKE="MAKE=${MAKE-make}" 2955fi 2956 2957rm -rf .tst 2>/dev/null 2958mkdir .tst 2>/dev/null 2959if test -d .tst; then 2960 am__leading_dot=. 2961else 2962 am__leading_dot=_ 2963fi 2964rmdir .tst 2>/dev/null 2965 2966if test "`cd $srcdir && pwd`" != "`pwd`"; then 2967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2968 # is not polluted with repeated "-I." 2969 am__isrc=' -I$(srcdir)' 2970 # test to see if srcdir already configured 2971 if test -f $srcdir/config.status; then 2972 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2973 fi 2974fi 2975 2976# test whether we have cygpath 2977if test -z "$CYGPATH_W"; then 2978 if (cygpath --version) >/dev/null 2>/dev/null; then 2979 CYGPATH_W='cygpath -w' 2980 else 2981 CYGPATH_W=echo 2982 fi 2983fi 2984 2985 2986# Define the identity of the package. 2987 PACKAGE='phsa-hsail-runtime-library' 2988 VERSION='1.0' 2989 2990 2991cat >>confdefs.h <<_ACEOF 2992#define PACKAGE "$PACKAGE" 2993_ACEOF 2994 2995 2996cat >>confdefs.h <<_ACEOF 2997#define VERSION "$VERSION" 2998_ACEOF 2999 3000# Some tools Automake needs. 3001 3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3003 3004 3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3006 3007 3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3009 3010 3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3012 3013 3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3015 3016# We need awk for the "check" target. The system "awk" is bad on 3017# some platforms. 3018# Always define AMTAR for backward compatibility. Yes, it's still used 3019# in the wild :-( We should find a proper way to deprecate it ... 3020AMTAR='$${TAR-tar}' 3021 3022am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3023 3024 3025 3026 3027 3028 3029 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3031$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3032 # Check whether --enable-maintainer-mode was given. 3033if test "${enable_maintainer_mode+set}" = set; then : 3034 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3035else 3036 USE_MAINTAINER_MODE=no 3037fi 3038 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3040$as_echo "$USE_MAINTAINER_MODE" >&6; } 3041 if test $USE_MAINTAINER_MODE = yes; then 3042 MAINTAINER_MODE_TRUE= 3043 MAINTAINER_MODE_FALSE='#' 3044else 3045 MAINTAINER_MODE_TRUE='#' 3046 MAINTAINER_MODE_FALSE= 3047fi 3048 3049 MAINT=$MAINTAINER_MODE_TRUE 3050 3051 3052 3053ac_ext=c 3054ac_cpp='$CPP $CPPFLAGS' 3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3057ac_compiler_gnu=$ac_cv_c_compiler_gnu 3058if test -n "$ac_tool_prefix"; then 3059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3060set dummy ${ac_tool_prefix}gcc; ac_word=$2 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062$as_echo_n "checking for $ac_word... " >&6; } 3063if test "${ac_cv_prog_CC+set}" = set; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 if test -n "$CC"; then 3067 ac_cv_prog_CC="$CC" # Let the user override the test. 3068else 3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070for as_dir in $PATH 3071do 3072 IFS=$as_save_IFS 3073 test -z "$as_dir" && as_dir=. 3074 for ac_exec_ext in '' $ac_executable_extensions; do 3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3076 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084fi 3085fi 3086CC=$ac_cv_prog_CC 3087if test -n "$CC"; then 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3089$as_echo "$CC" >&6; } 3090else 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092$as_echo "no" >&6; } 3093fi 3094 3095 3096fi 3097if test -z "$ac_cv_prog_CC"; then 3098 ac_ct_CC=$CC 3099 # Extract the first word of "gcc", so it can be a program name with args. 3100set dummy gcc; ac_word=$2 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3102$as_echo_n "checking for $ac_word... " >&6; } 3103if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 if test -n "$ac_ct_CC"; then 3107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3108else 3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3110for as_dir in $PATH 3111do 3112 IFS=$as_save_IFS 3113 test -z "$as_dir" && as_dir=. 3114 for ac_exec_ext in '' $ac_executable_extensions; do 3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3116 ac_cv_prog_ac_ct_CC="gcc" 3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3118 break 2 3119 fi 3120done 3121 done 3122IFS=$as_save_IFS 3123 3124fi 3125fi 3126ac_ct_CC=$ac_cv_prog_ac_ct_CC 3127if test -n "$ac_ct_CC"; then 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3129$as_echo "$ac_ct_CC" >&6; } 3130else 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3132$as_echo "no" >&6; } 3133fi 3134 3135 if test "x$ac_ct_CC" = x; then 3136 CC="" 3137 else 3138 case $cross_compiling:$ac_tool_warned in 3139yes:) 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3142ac_tool_warned=yes ;; 3143esac 3144 CC=$ac_ct_CC 3145 fi 3146else 3147 CC="$ac_cv_prog_CC" 3148fi 3149 3150if test -z "$CC"; then 3151 if test -n "$ac_tool_prefix"; then 3152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3153set dummy ${ac_tool_prefix}cc; ac_word=$2 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3155$as_echo_n "checking for $ac_word... " >&6; } 3156if test "${ac_cv_prog_CC+set}" = set; then : 3157 $as_echo_n "(cached) " >&6 3158else 3159 if test -n "$CC"; then 3160 ac_cv_prog_CC="$CC" # Let the user override the test. 3161else 3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3163for as_dir in $PATH 3164do 3165 IFS=$as_save_IFS 3166 test -z "$as_dir" && as_dir=. 3167 for ac_exec_ext in '' $ac_executable_extensions; do 3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3169 ac_cv_prog_CC="${ac_tool_prefix}cc" 3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3171 break 2 3172 fi 3173done 3174 done 3175IFS=$as_save_IFS 3176 3177fi 3178fi 3179CC=$ac_cv_prog_CC 3180if test -n "$CC"; then 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3182$as_echo "$CC" >&6; } 3183else 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3185$as_echo "no" >&6; } 3186fi 3187 3188 3189 fi 3190fi 3191if test -z "$CC"; then 3192 # Extract the first word of "cc", so it can be a program name with args. 3193set dummy cc; ac_word=$2 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3195$as_echo_n "checking for $ac_word... " >&6; } 3196if test "${ac_cv_prog_CC+set}" = set; then : 3197 $as_echo_n "(cached) " >&6 3198else 3199 if test -n "$CC"; then 3200 ac_cv_prog_CC="$CC" # Let the user override the test. 3201else 3202 ac_prog_rejected=no 3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3204for as_dir in $PATH 3205do 3206 IFS=$as_save_IFS 3207 test -z "$as_dir" && as_dir=. 3208 for ac_exec_ext in '' $ac_executable_extensions; do 3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3210 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3211 ac_prog_rejected=yes 3212 continue 3213 fi 3214 ac_cv_prog_CC="cc" 3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3216 break 2 3217 fi 3218done 3219 done 3220IFS=$as_save_IFS 3221 3222if test $ac_prog_rejected = yes; then 3223 # We found a bogon in the path, so make sure we never use it. 3224 set dummy $ac_cv_prog_CC 3225 shift 3226 if test $# != 0; then 3227 # We chose a different compiler from the bogus one. 3228 # However, it has the same basename, so the bogon will be chosen 3229 # first if we set CC to just the basename; use the full file name. 3230 shift 3231 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3232 fi 3233fi 3234fi 3235fi 3236CC=$ac_cv_prog_CC 3237if test -n "$CC"; then 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3239$as_echo "$CC" >&6; } 3240else 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242$as_echo "no" >&6; } 3243fi 3244 3245 3246fi 3247if test -z "$CC"; then 3248 if test -n "$ac_tool_prefix"; then 3249 for ac_prog in cl.exe 3250 do 3251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3252set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3254$as_echo_n "checking for $ac_word... " >&6; } 3255if test "${ac_cv_prog_CC+set}" = set; then : 3256 $as_echo_n "(cached) " >&6 3257else 3258 if test -n "$CC"; then 3259 ac_cv_prog_CC="$CC" # Let the user override the test. 3260else 3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3262for as_dir in $PATH 3263do 3264 IFS=$as_save_IFS 3265 test -z "$as_dir" && as_dir=. 3266 for ac_exec_ext in '' $ac_executable_extensions; do 3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3270 break 2 3271 fi 3272done 3273 done 3274IFS=$as_save_IFS 3275 3276fi 3277fi 3278CC=$ac_cv_prog_CC 3279if test -n "$CC"; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3281$as_echo "$CC" >&6; } 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285fi 3286 3287 3288 test -n "$CC" && break 3289 done 3290fi 3291if test -z "$CC"; then 3292 ac_ct_CC=$CC 3293 for ac_prog in cl.exe 3294do 3295 # Extract the first word of "$ac_prog", so it can be a program name with args. 3296set dummy $ac_prog; ac_word=$2 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3298$as_echo_n "checking for $ac_word... " >&6; } 3299if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3300 $as_echo_n "(cached) " >&6 3301else 3302 if test -n "$ac_ct_CC"; then 3303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3304else 3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3306for as_dir in $PATH 3307do 3308 IFS=$as_save_IFS 3309 test -z "$as_dir" && as_dir=. 3310 for ac_exec_ext in '' $ac_executable_extensions; do 3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3312 ac_cv_prog_ac_ct_CC="$ac_prog" 3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3314 break 2 3315 fi 3316done 3317 done 3318IFS=$as_save_IFS 3319 3320fi 3321fi 3322ac_ct_CC=$ac_cv_prog_ac_ct_CC 3323if test -n "$ac_ct_CC"; then 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3325$as_echo "$ac_ct_CC" >&6; } 3326else 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3328$as_echo "no" >&6; } 3329fi 3330 3331 3332 test -n "$ac_ct_CC" && break 3333done 3334 3335 if test "x$ac_ct_CC" = x; then 3336 CC="" 3337 else 3338 case $cross_compiling:$ac_tool_warned in 3339yes:) 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3342ac_tool_warned=yes ;; 3343esac 3344 CC=$ac_ct_CC 3345 fi 3346fi 3347 3348fi 3349 3350 3351test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3353as_fn_error "no acceptable C compiler found in \$PATH 3354See \`config.log' for more details." "$LINENO" 5; } 3355 3356# Provide some information about the compiler. 3357$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3358set X $ac_compile 3359ac_compiler=$2 3360for ac_option in --version -v -V -qversion; do 3361 { { ac_try="$ac_compiler $ac_option >&5" 3362case "(($ac_try" in 3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3364 *) ac_try_echo=$ac_try;; 3365esac 3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3367$as_echo "$ac_try_echo"; } >&5 3368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3369 ac_status=$? 3370 if test -s conftest.err; then 3371 sed '10a\ 3372... rest of stderr output deleted ... 3373 10q' conftest.err >conftest.er1 3374 cat conftest.er1 >&5 3375 rm -f conftest.er1 conftest.err 3376 fi 3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3378 test $ac_status = 0; } 3379done 3380 3381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3382/* end confdefs.h. */ 3383 3384int 3385main () 3386{ 3387 3388 ; 3389 return 0; 3390} 3391_ACEOF 3392ac_clean_files_save=$ac_clean_files 3393ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3394# Try to create an executable without -o first, disregard a.out. 3395# It will help us diagnose broken compilers, and finding out an intuition 3396# of exeext. 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3398$as_echo_n "checking for C compiler default output file name... " >&6; } 3399ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3400 3401# The possible output files: 3402ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3403 3404ac_rmfiles= 3405for ac_file in $ac_files 3406do 3407 case $ac_file in 3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3409 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3410 esac 3411done 3412rm -f $ac_rmfiles 3413 3414if { { ac_try="$ac_link_default" 3415case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418esac 3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3420$as_echo "$ac_try_echo"; } >&5 3421 (eval "$ac_link_default") 2>&5 3422 ac_status=$? 3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3424 test $ac_status = 0; }; then : 3425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3426# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3427# in a Makefile. We should not override ac_cv_exeext if it was cached, 3428# so that the user can short-circuit this test for compilers unknown to 3429# Autoconf. 3430for ac_file in $ac_files '' 3431do 3432 test -f "$ac_file" || continue 3433 case $ac_file in 3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3435 ;; 3436 [ab].out ) 3437 # We found the default executable, but exeext='' is most 3438 # certainly right. 3439 break;; 3440 *.* ) 3441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3442 then :; else 3443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3444 fi 3445 # We set ac_cv_exeext here because the later test for it is not 3446 # safe: cross compilers may not add the suffix if given an `-o' 3447 # argument, so we may need to know it at that point already. 3448 # Even if this section looks crufty: it has the advantage of 3449 # actually working. 3450 break;; 3451 * ) 3452 break;; 3453 esac 3454done 3455test "$ac_cv_exeext" = no && ac_cv_exeext= 3456 3457else 3458 ac_file='' 3459fi 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3461$as_echo "$ac_file" >&6; } 3462if test -z "$ac_file"; then : 3463 $as_echo "$as_me: failed program was:" >&5 3464sed 's/^/| /' conftest.$ac_ext >&5 3465 3466{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3468{ as_fn_set_status 77 3469as_fn_error "C compiler cannot create executables 3470See \`config.log' for more details." "$LINENO" 5; }; } 3471fi 3472ac_exeext=$ac_cv_exeext 3473 3474# Check that the compiler produces executables we can run. If not, either 3475# the compiler is broken, or we cross compile. 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3477$as_echo_n "checking whether the C compiler works... " >&6; } 3478# If not cross compiling, check that we can run a simple program. 3479if test "$cross_compiling" != yes; then 3480 if { ac_try='./$ac_file' 3481 { { case "(($ac_try" in 3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3483 *) ac_try_echo=$ac_try;; 3484esac 3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3486$as_echo "$ac_try_echo"; } >&5 3487 (eval "$ac_try") 2>&5 3488 ac_status=$? 3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3490 test $ac_status = 0; }; }; then 3491 cross_compiling=no 3492 else 3493 if test "$cross_compiling" = maybe; then 3494 cross_compiling=yes 3495 else 3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3498as_fn_error "cannot run C compiled programs. 3499If you meant to cross compile, use \`--host'. 3500See \`config.log' for more details." "$LINENO" 5; } 3501 fi 3502 fi 3503fi 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3505$as_echo "yes" >&6; } 3506 3507rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3508ac_clean_files=$ac_clean_files_save 3509# Check that the compiler produces executables we can run. If not, either 3510# the compiler is broken, or we cross compile. 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3512$as_echo_n "checking whether we are cross compiling... " >&6; } 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3514$as_echo "$cross_compiling" >&6; } 3515 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3517$as_echo_n "checking for suffix of executables... " >&6; } 3518if { { ac_try="$ac_link" 3519case "(($ac_try" in 3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3521 *) ac_try_echo=$ac_try;; 3522esac 3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3524$as_echo "$ac_try_echo"; } >&5 3525 (eval "$ac_link") 2>&5 3526 ac_status=$? 3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3528 test $ac_status = 0; }; then : 3529 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3530# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3531# work properly (i.e., refer to `conftest.exe'), while it won't with 3532# `rm'. 3533for ac_file in conftest.exe conftest conftest.*; do 3534 test -f "$ac_file" || continue 3535 case $ac_file in 3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3538 break;; 3539 * ) break;; 3540 esac 3541done 3542else 3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3545as_fn_error "cannot compute suffix of executables: cannot compile and link 3546See \`config.log' for more details." "$LINENO" 5; } 3547fi 3548rm -f conftest$ac_cv_exeext 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3550$as_echo "$ac_cv_exeext" >&6; } 3551 3552rm -f conftest.$ac_ext 3553EXEEXT=$ac_cv_exeext 3554ac_exeext=$EXEEXT 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3556$as_echo_n "checking for suffix of object files... " >&6; } 3557if test "${ac_cv_objext+set}" = set; then : 3558 $as_echo_n "(cached) " >&6 3559else 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562 3563int 3564main () 3565{ 3566 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571rm -f conftest.o conftest.obj 3572if { { ac_try="$ac_compile" 3573case "(($ac_try" in 3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3575 *) ac_try_echo=$ac_try;; 3576esac 3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3578$as_echo "$ac_try_echo"; } >&5 3579 (eval "$ac_compile") 2>&5 3580 ac_status=$? 3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3582 test $ac_status = 0; }; then : 3583 for ac_file in conftest.o conftest.obj conftest.*; do 3584 test -f "$ac_file" || continue; 3585 case $ac_file in 3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3587 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3588 break;; 3589 esac 3590done 3591else 3592 $as_echo "$as_me: failed program was:" >&5 3593sed 's/^/| /' conftest.$ac_ext >&5 3594 3595{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3597as_fn_error "cannot compute suffix of object files: cannot compile 3598See \`config.log' for more details." "$LINENO" 5; } 3599fi 3600rm -f conftest.$ac_cv_objext conftest.$ac_ext 3601fi 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3603$as_echo "$ac_cv_objext" >&6; } 3604OBJEXT=$ac_cv_objext 3605ac_objext=$OBJEXT 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3607$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3608if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3609 $as_echo_n "(cached) " >&6 3610else 3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3612/* end confdefs.h. */ 3613 3614int 3615main () 3616{ 3617#ifndef __GNUC__ 3618 choke me 3619#endif 3620 3621 ; 3622 return 0; 3623} 3624_ACEOF 3625if ac_fn_c_try_compile "$LINENO"; then : 3626 ac_compiler_gnu=yes 3627else 3628 ac_compiler_gnu=no 3629fi 3630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3631ac_cv_c_compiler_gnu=$ac_compiler_gnu 3632 3633fi 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3635$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3636if test $ac_compiler_gnu = yes; then 3637 GCC=yes 3638else 3639 GCC= 3640fi 3641ac_test_CFLAGS=${CFLAGS+set} 3642ac_save_CFLAGS=$CFLAGS 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3644$as_echo_n "checking whether $CC accepts -g... " >&6; } 3645if test "${ac_cv_prog_cc_g+set}" = set; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 ac_save_c_werror_flag=$ac_c_werror_flag 3649 ac_c_werror_flag=yes 3650 ac_cv_prog_cc_g=no 3651 CFLAGS="-g" 3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3653/* end confdefs.h. */ 3654 3655int 3656main () 3657{ 3658 3659 ; 3660 return 0; 3661} 3662_ACEOF 3663if ac_fn_c_try_compile "$LINENO"; then : 3664 ac_cv_prog_cc_g=yes 3665else 3666 CFLAGS="" 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669 3670int 3671main () 3672{ 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678if ac_fn_c_try_compile "$LINENO"; then : 3679 3680else 3681 ac_c_werror_flag=$ac_save_c_werror_flag 3682 CFLAGS="-g" 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685 3686int 3687main () 3688{ 3689 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694if ac_fn_c_try_compile "$LINENO"; then : 3695 ac_cv_prog_cc_g=yes 3696fi 3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3698fi 3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3700fi 3701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3702 ac_c_werror_flag=$ac_save_c_werror_flag 3703fi 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3705$as_echo "$ac_cv_prog_cc_g" >&6; } 3706if test "$ac_test_CFLAGS" = set; then 3707 CFLAGS=$ac_save_CFLAGS 3708elif test $ac_cv_prog_cc_g = yes; then 3709 if test "$GCC" = yes; then 3710 CFLAGS="-g -O2" 3711 else 3712 CFLAGS="-g" 3713 fi 3714else 3715 if test "$GCC" = yes; then 3716 CFLAGS="-O2" 3717 else 3718 CFLAGS= 3719 fi 3720fi 3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3722$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3723if test "${ac_cv_prog_cc_c89+set}" = set; then : 3724 $as_echo_n "(cached) " >&6 3725else 3726 ac_cv_prog_cc_c89=no 3727ac_save_CC=$CC 3728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3729/* end confdefs.h. */ 3730#include <stdarg.h> 3731#include <stdio.h> 3732#include <sys/types.h> 3733#include <sys/stat.h> 3734/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3735struct buf { int x; }; 3736FILE * (*rcsopen) (struct buf *, struct stat *, int); 3737static char *e (p, i) 3738 char **p; 3739 int i; 3740{ 3741 return p[i]; 3742} 3743static char *f (char * (*g) (char **, int), char **p, ...) 3744{ 3745 char *s; 3746 va_list v; 3747 va_start (v,p); 3748 s = g (p, va_arg (v,int)); 3749 va_end (v); 3750 return s; 3751} 3752 3753/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3754 function prototypes and stuff, but not '\xHH' hex character constants. 3755 These don't provoke an error unfortunately, instead are silently treated 3756 as 'x'. The following induces an error, until -std is added to get 3757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3758 array size at least. It's necessary to write '\x00'==0 to get something 3759 that's true only with -std. */ 3760int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3761 3762/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3763 inside strings and character constants. */ 3764#define FOO(x) 'x' 3765int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3766 3767int test (int i, double x); 3768struct s1 {int (*f) (int a);}; 3769struct s2 {int (*f) (double a);}; 3770int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3771int argc; 3772char **argv; 3773int 3774main () 3775{ 3776return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3783do 3784 CC="$ac_save_CC $ac_arg" 3785 if ac_fn_c_try_compile "$LINENO"; then : 3786 ac_cv_prog_cc_c89=$ac_arg 3787fi 3788rm -f core conftest.err conftest.$ac_objext 3789 test "x$ac_cv_prog_cc_c89" != "xno" && break 3790done 3791rm -f conftest.$ac_ext 3792CC=$ac_save_CC 3793 3794fi 3795# AC_CACHE_VAL 3796case "x$ac_cv_prog_cc_c89" in 3797 x) 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3799$as_echo "none needed" >&6; } ;; 3800 xno) 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3802$as_echo "unsupported" >&6; } ;; 3803 *) 3804 CC="$CC $ac_cv_prog_cc_c89" 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3806$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3807esac 3808if test "x$ac_cv_prog_cc_c89" != xno; then : 3809 3810fi 3811 3812ac_ext=c 3813ac_cpp='$CPP $CPPFLAGS' 3814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3816ac_compiler_gnu=$ac_cv_c_compiler_gnu 3817DEPDIR="${am__leading_dot}deps" 3818 3819ac_config_commands="$ac_config_commands depfiles" 3820 3821 3822am_make=${MAKE-make} 3823cat > confinc << 'END' 3824am__doit: 3825 @echo this is the am__doit target 3826.PHONY: am__doit 3827END 3828# If we don't find an include directive, just comment out the code. 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3830$as_echo_n "checking for style of include used by $am_make... " >&6; } 3831am__include="#" 3832am__quote= 3833_am_result=none 3834# First try GNU make style include. 3835echo "include confinc" > confmf 3836# Ignore all kinds of additional output from `make'. 3837case `$am_make -s -f confmf 2> /dev/null` in #( 3838*the\ am__doit\ target*) 3839 am__include=include 3840 am__quote= 3841 _am_result=GNU 3842 ;; 3843esac 3844# Now try BSD make style include. 3845if test "$am__include" = "#"; then 3846 echo '.include "confinc"' > confmf 3847 case `$am_make -s -f confmf 2> /dev/null` in #( 3848 *the\ am__doit\ target*) 3849 am__include=.include 3850 am__quote="\"" 3851 _am_result=BSD 3852 ;; 3853 esac 3854fi 3855 3856 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3858$as_echo "$_am_result" >&6; } 3859rm -f confinc confmf 3860 3861# Check whether --enable-dependency-tracking was given. 3862if test "${enable_dependency_tracking+set}" = set; then : 3863 enableval=$enable_dependency_tracking; 3864fi 3865 3866if test "x$enable_dependency_tracking" != xno; then 3867 am_depcomp="$ac_aux_dir/depcomp" 3868 AMDEPBACKSLASH='\' 3869 am__nodep='_no' 3870fi 3871 if test "x$enable_dependency_tracking" != xno; then 3872 AMDEP_TRUE= 3873 AMDEP_FALSE='#' 3874else 3875 AMDEP_TRUE='#' 3876 AMDEP_FALSE= 3877fi 3878 3879 3880 3881depcc="$CC" am_compiler_list= 3882 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3884$as_echo_n "checking dependency style of $depcc... " >&6; } 3885if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3886 $as_echo_n "(cached) " >&6 3887else 3888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3889 # We make a subdir and do the tests there. Otherwise we can end up 3890 # making bogus files that we don't know about and never remove. For 3891 # instance it was reported that on HP-UX the gcc test will end up 3892 # making a dummy file named `D' -- because `-MD' means `put the output 3893 # in D'. 3894 rm -rf conftest.dir 3895 mkdir conftest.dir 3896 # Copy depcomp to subdir because otherwise we won't find it if we're 3897 # using a relative directory. 3898 cp "$am_depcomp" conftest.dir 3899 cd conftest.dir 3900 # We will build objects and dependencies in a subdirectory because 3901 # it helps to detect inapplicable dependency modes. For instance 3902 # both Tru64's cc and ICC support -MD to output dependencies as a 3903 # side effect of compilation, but ICC will put the dependencies in 3904 # the current directory while Tru64 will put them in the object 3905 # directory. 3906 mkdir sub 3907 3908 am_cv_CC_dependencies_compiler_type=none 3909 if test "$am_compiler_list" = ""; then 3910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3911 fi 3912 am__universal=false 3913 case " $depcc " in #( 3914 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3915 esac 3916 3917 for depmode in $am_compiler_list; do 3918 # Setup a source with many dependencies, because some compilers 3919 # like to wrap large dependency lists on column 80 (with \), and 3920 # we should not choose a depcomp mode which is confused by this. 3921 # 3922 # We need to recreate these files for each test, as the compiler may 3923 # overwrite some of them when testing with obscure command lines. 3924 # This happens at least with the AIX C compiler. 3925 : > sub/conftest.c 3926 for i in 1 2 3 4 5 6; do 3927 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3928 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3929 # Solaris 8's {/usr,}/bin/sh. 3930 touch sub/conftst$i.h 3931 done 3932 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3933 3934 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3935 # mode. It turns out that the SunPro C++ compiler does not properly 3936 # handle `-M -o', and we need to detect this. Also, some Intel 3937 # versions had trouble with output in subdirs 3938 am__obj=sub/conftest.${OBJEXT-o} 3939 am__minus_obj="-o $am__obj" 3940 case $depmode in 3941 gcc) 3942 # This depmode causes a compiler race in universal mode. 3943 test "$am__universal" = false || continue 3944 ;; 3945 nosideeffect) 3946 # after this tag, mechanisms are not by side-effect, so they'll 3947 # only be used when explicitly requested 3948 if test "x$enable_dependency_tracking" = xyes; then 3949 continue 3950 else 3951 break 3952 fi 3953 ;; 3954 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3955 # This compiler won't grok `-c -o', but also, the minuso test has 3956 # not run yet. These depmodes are late enough in the game, and 3957 # so weak that their functioning should not be impacted. 3958 am__obj=conftest.${OBJEXT-o} 3959 am__minus_obj= 3960 ;; 3961 none) break ;; 3962 esac 3963 if depmode=$depmode \ 3964 source=sub/conftest.c object=$am__obj \ 3965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3966 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3967 >/dev/null 2>conftest.err && 3968 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3969 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3970 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3971 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3972 # icc doesn't choke on unknown options, it will just issue warnings 3973 # or remarks (even with -Werror). So we grep stderr for any message 3974 # that says an option was ignored or not supported. 3975 # When given -MP, icc 7.0 and 7.1 complain thusly: 3976 # icc: Command line warning: ignoring option '-M'; no argument required 3977 # The diagnosis changed in icc 8.0: 3978 # icc: Command line remark: option '-MP' not supported 3979 if (grep 'ignoring option' conftest.err || 3980 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3981 am_cv_CC_dependencies_compiler_type=$depmode 3982 break 3983 fi 3984 fi 3985 done 3986 3987 cd .. 3988 rm -rf conftest.dir 3989else 3990 am_cv_CC_dependencies_compiler_type=none 3991fi 3992 3993fi 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3995$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3996CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3997 3998 if 3999 test "x$enable_dependency_tracking" != xno \ 4000 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4001 am__fastdepCC_TRUE= 4002 am__fastdepCC_FALSE='#' 4003else 4004 am__fastdepCC_TRUE='#' 4005 am__fastdepCC_FALSE= 4006fi 4007 4008 4009ac_ext=cpp 4010ac_cpp='$CXXCPP $CPPFLAGS' 4011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4014if test -z "$CXX"; then 4015 if test -n "$CCC"; then 4016 CXX=$CCC 4017 else 4018 if test -n "$ac_tool_prefix"; then 4019 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4020 do 4021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4022set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4024$as_echo_n "checking for $ac_word... " >&6; } 4025if test "${ac_cv_prog_CXX+set}" = set; then : 4026 $as_echo_n "(cached) " >&6 4027else 4028 if test -n "$CXX"; then 4029 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4030else 4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032for as_dir in $PATH 4033do 4034 IFS=$as_save_IFS 4035 test -z "$as_dir" && as_dir=. 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4040 break 2 4041 fi 4042done 4043 done 4044IFS=$as_save_IFS 4045 4046fi 4047fi 4048CXX=$ac_cv_prog_CXX 4049if test -n "$CXX"; then 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4051$as_echo "$CXX" >&6; } 4052else 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4054$as_echo "no" >&6; } 4055fi 4056 4057 4058 test -n "$CXX" && break 4059 done 4060fi 4061if test -z "$CXX"; then 4062 ac_ct_CXX=$CXX 4063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4064do 4065 # Extract the first word of "$ac_prog", so it can be a program name with args. 4066set dummy $ac_prog; ac_word=$2 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4068$as_echo_n "checking for $ac_word... " >&6; } 4069if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 4070 $as_echo_n "(cached) " >&6 4071else 4072 if test -n "$ac_ct_CXX"; then 4073 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4074else 4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076for as_dir in $PATH 4077do 4078 IFS=$as_save_IFS 4079 test -z "$as_dir" && as_dir=. 4080 for ac_exec_ext in '' $ac_executable_extensions; do 4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4082 ac_cv_prog_ac_ct_CXX="$ac_prog" 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4084 break 2 4085 fi 4086done 4087 done 4088IFS=$as_save_IFS 4089 4090fi 4091fi 4092ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4093if test -n "$ac_ct_CXX"; then 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4095$as_echo "$ac_ct_CXX" >&6; } 4096else 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4098$as_echo "no" >&6; } 4099fi 4100 4101 4102 test -n "$ac_ct_CXX" && break 4103done 4104 4105 if test "x$ac_ct_CXX" = x; then 4106 CXX="g++" 4107 else 4108 case $cross_compiling:$ac_tool_warned in 4109yes:) 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4112ac_tool_warned=yes ;; 4113esac 4114 CXX=$ac_ct_CXX 4115 fi 4116fi 4117 4118 fi 4119fi 4120# Provide some information about the compiler. 4121$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4122set X $ac_compile 4123ac_compiler=$2 4124for ac_option in --version -v -V -qversion; do 4125 { { ac_try="$ac_compiler $ac_option >&5" 4126case "(($ac_try" in 4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4128 *) ac_try_echo=$ac_try;; 4129esac 4130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4131$as_echo "$ac_try_echo"; } >&5 4132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4133 ac_status=$? 4134 if test -s conftest.err; then 4135 sed '10a\ 4136... rest of stderr output deleted ... 4137 10q' conftest.err >conftest.er1 4138 cat conftest.er1 >&5 4139 rm -f conftest.er1 conftest.err 4140 fi 4141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4142 test $ac_status = 0; } 4143done 4144 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4146$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4147if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 4148 $as_echo_n "(cached) " >&6 4149else 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152 4153int 4154main () 4155{ 4156#ifndef __GNUC__ 4157 choke me 4158#endif 4159 4160 ; 4161 return 0; 4162} 4163_ACEOF 4164if ac_fn_cxx_try_compile "$LINENO"; then : 4165 ac_compiler_gnu=yes 4166else 4167 ac_compiler_gnu=no 4168fi 4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4170ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4171 4172fi 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4174$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4175if test $ac_compiler_gnu = yes; then 4176 GXX=yes 4177else 4178 GXX= 4179fi 4180ac_test_CXXFLAGS=${CXXFLAGS+set} 4181ac_save_CXXFLAGS=$CXXFLAGS 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4183$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4184if test "${ac_cv_prog_cxx_g+set}" = set; then : 4185 $as_echo_n "(cached) " >&6 4186else 4187 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4188 ac_cxx_werror_flag=yes 4189 ac_cv_prog_cxx_g=no 4190 CXXFLAGS="-g" 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193 4194int 4195main () 4196{ 4197 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202if ac_fn_cxx_try_compile "$LINENO"; then : 4203 ac_cv_prog_cxx_g=yes 4204else 4205 CXXFLAGS="" 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207/* end confdefs.h. */ 4208 4209int 4210main () 4211{ 4212 4213 ; 4214 return 0; 4215} 4216_ACEOF 4217if ac_fn_cxx_try_compile "$LINENO"; then : 4218 4219else 4220 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4221 CXXFLAGS="-g" 4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4223/* end confdefs.h. */ 4224 4225int 4226main () 4227{ 4228 4229 ; 4230 return 0; 4231} 4232_ACEOF 4233if ac_fn_cxx_try_compile "$LINENO"; then : 4234 ac_cv_prog_cxx_g=yes 4235fi 4236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4237fi 4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4239fi 4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4241 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4242fi 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4244$as_echo "$ac_cv_prog_cxx_g" >&6; } 4245if test "$ac_test_CXXFLAGS" = set; then 4246 CXXFLAGS=$ac_save_CXXFLAGS 4247elif test $ac_cv_prog_cxx_g = yes; then 4248 if test "$GXX" = yes; then 4249 CXXFLAGS="-g -O2" 4250 else 4251 CXXFLAGS="-g" 4252 fi 4253else 4254 if test "$GXX" = yes; then 4255 CXXFLAGS="-O2" 4256 else 4257 CXXFLAGS= 4258 fi 4259fi 4260ac_ext=c 4261ac_cpp='$CPP $CPPFLAGS' 4262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4264ac_compiler_gnu=$ac_cv_c_compiler_gnu 4265 4266depcc="$CXX" am_compiler_list= 4267 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4269$as_echo_n "checking dependency style of $depcc... " >&6; } 4270if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4274 # We make a subdir and do the tests there. Otherwise we can end up 4275 # making bogus files that we don't know about and never remove. For 4276 # instance it was reported that on HP-UX the gcc test will end up 4277 # making a dummy file named `D' -- because `-MD' means `put the output 4278 # in D'. 4279 rm -rf conftest.dir 4280 mkdir conftest.dir 4281 # Copy depcomp to subdir because otherwise we won't find it if we're 4282 # using a relative directory. 4283 cp "$am_depcomp" conftest.dir 4284 cd conftest.dir 4285 # We will build objects and dependencies in a subdirectory because 4286 # it helps to detect inapplicable dependency modes. For instance 4287 # both Tru64's cc and ICC support -MD to output dependencies as a 4288 # side effect of compilation, but ICC will put the dependencies in 4289 # the current directory while Tru64 will put them in the object 4290 # directory. 4291 mkdir sub 4292 4293 am_cv_CXX_dependencies_compiler_type=none 4294 if test "$am_compiler_list" = ""; then 4295 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4296 fi 4297 am__universal=false 4298 case " $depcc " in #( 4299 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4300 esac 4301 4302 for depmode in $am_compiler_list; do 4303 # Setup a source with many dependencies, because some compilers 4304 # like to wrap large dependency lists on column 80 (with \), and 4305 # we should not choose a depcomp mode which is confused by this. 4306 # 4307 # We need to recreate these files for each test, as the compiler may 4308 # overwrite some of them when testing with obscure command lines. 4309 # This happens at least with the AIX C compiler. 4310 : > sub/conftest.c 4311 for i in 1 2 3 4 5 6; do 4312 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4313 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4314 # Solaris 8's {/usr,}/bin/sh. 4315 touch sub/conftst$i.h 4316 done 4317 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4318 4319 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4320 # mode. It turns out that the SunPro C++ compiler does not properly 4321 # handle `-M -o', and we need to detect this. Also, some Intel 4322 # versions had trouble with output in subdirs 4323 am__obj=sub/conftest.${OBJEXT-o} 4324 am__minus_obj="-o $am__obj" 4325 case $depmode in 4326 gcc) 4327 # This depmode causes a compiler race in universal mode. 4328 test "$am__universal" = false || continue 4329 ;; 4330 nosideeffect) 4331 # after this tag, mechanisms are not by side-effect, so they'll 4332 # only be used when explicitly requested 4333 if test "x$enable_dependency_tracking" = xyes; then 4334 continue 4335 else 4336 break 4337 fi 4338 ;; 4339 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4340 # This compiler won't grok `-c -o', but also, the minuso test has 4341 # not run yet. These depmodes are late enough in the game, and 4342 # so weak that their functioning should not be impacted. 4343 am__obj=conftest.${OBJEXT-o} 4344 am__minus_obj= 4345 ;; 4346 none) break ;; 4347 esac 4348 if depmode=$depmode \ 4349 source=sub/conftest.c object=$am__obj \ 4350 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4351 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4352 >/dev/null 2>conftest.err && 4353 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4354 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4355 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4356 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4357 # icc doesn't choke on unknown options, it will just issue warnings 4358 # or remarks (even with -Werror). So we grep stderr for any message 4359 # that says an option was ignored or not supported. 4360 # When given -MP, icc 7.0 and 7.1 complain thusly: 4361 # icc: Command line warning: ignoring option '-M'; no argument required 4362 # The diagnosis changed in icc 8.0: 4363 # icc: Command line remark: option '-MP' not supported 4364 if (grep 'ignoring option' conftest.err || 4365 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4366 am_cv_CXX_dependencies_compiler_type=$depmode 4367 break 4368 fi 4369 fi 4370 done 4371 4372 cd .. 4373 rm -rf conftest.dir 4374else 4375 am_cv_CXX_dependencies_compiler_type=none 4376fi 4377 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4380$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4381CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4382 4383 if 4384 test "x$enable_dependency_tracking" != xno \ 4385 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4386 am__fastdepCXX_TRUE= 4387 am__fastdepCXX_FALSE='#' 4388else 4389 am__fastdepCXX_TRUE='#' 4390 am__fastdepCXX_FALSE= 4391fi 4392 4393 4394# AC_PROG_LIBTOOL 4395ac_config_files="$ac_config_files Makefile" 4396 4397 4398if test "${multilib}" = "yes"; then 4399 multilib_arg="--enable-multilib" 4400else 4401 multilib_arg= 4402fi 4403 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 4405$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 4406# Check whether --enable-version-specific-runtime-libs was given. 4407if test "${enable_version_specific_runtime_libs+set}" = set; then : 4408 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 4409 yes) enable_version_specific_runtime_libs=yes ;; 4410 no) enable_version_specific_runtime_libs=no ;; 4411 *) as_fn_error "Unknown argument to enable/disable version-specific libs 4412" "$LINENO" 5;; 4413 esac 4414else 4415 enable_version_specific_runtime_libs=no 4416fi 4417 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 4419$as_echo "$enable_version_specific_runtime_libs" >&6; } 4420 4421# Calculate toolexeclibdir 4422# Also toolexecdir, though it's only used in toolexeclibdir 4423case ${enable_version_specific_runtime_libs} in 4424 yes) 4425 # Need the gcc compiler version to know where to install libraries 4426 # and header files if --enable-version-specific-runtime-libs option 4427 # is selected. 4428 toolexecdir='$(libdir)/gcc/$(target_alias)' 4429 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 4430 ;; 4431 no) 4432 if test -n "$with_cross_host" && 4433 test x"$with_cross_host" != x"no"; then 4434 # Install a library built with a cross compiler in tooldir, not libdir. 4435 toolexecdir='$(exec_prefix)/$(target_alias)' 4436 toolexeclibdir='$(toolexecdir)/lib' 4437 else 4438 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 4439 toolexeclibdir='$(libdir)' 4440 fi 4441 multi_os_directory=`$CC -print-multi-os-directory` 4442 case $multi_os_directory in 4443 .) ;; # Avoid trailing /. 4444 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 4445 esac 4446 ;; 4447esac 4448 4449# Set config_dir based on the target. config_dir specifies where to get 4450# target-specific files. The generic implementation is incomplete, but 4451# contains information on what's needed 4452case "${target}" in 4453 4454 x86_64-*-*) 4455 config_dir="x86" 4456 ;; 4457 4458 i?86-*-*) 4459 config_dir="x86" 4460 ;; 4461 4462 *) 4463 config_dir="generic" 4464 ;; 4465 4466esac 4467 4468 4469# We have linker scripts for appropriate operating systems 4470linux_linker_script=no 4471case "${host}" in 4472 *-*-linux*) 4473 linux_linker_script=yes 4474 ;; 4475esac 4476 if test "$linux_linker_script" = "yes"; then 4477 LINUX_LINKER_SCRIPT_TRUE= 4478 LINUX_LINKER_SCRIPT_FALSE='#' 4479else 4480 LINUX_LINKER_SCRIPT_TRUE='#' 4481 LINUX_LINKER_SCRIPT_FALSE= 4482fi 4483 4484 4485mac_linker_script=no 4486case "${host}" in 4487 *-*-apple*) 4488 mac_linker_script=yes 4489 ;; 4490esac 4491 if test "$mac_linker_script" = "yes"; then 4492 MAC_LINKER_SCRIPT_TRUE= 4493 MAC_LINKER_SCRIPT_FALSE='#' 4494else 4495 MAC_LINKER_SCRIPT_TRUE='#' 4496 MAC_LINKER_SCRIPT_FALSE= 4497fi 4498 4499 4500enable_dlopen=yes 4501 4502 4503 4504case `pwd` in 4505 *\ * | *\ *) 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4507$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4508esac 4509 4510 4511 4512macro_version='2.2.7a' 4513macro_revision='1.3134' 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527ltmain="$ac_aux_dir/ltmain.sh" 4528 4529# Backslashify metacharacters that are still active within 4530# double-quoted strings. 4531sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4532 4533# Same as above, but do not quote variable references. 4534double_quote_subst='s/\(["`\\]\)/\\\1/g' 4535 4536# Sed substitution to delay expansion of an escaped shell variable in a 4537# double_quote_subst'ed string. 4538delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4539 4540# Sed substitution to delay expansion of an escaped single quote. 4541delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4542 4543# Sed substitution to avoid accidental globbing in evaled expressions 4544no_glob_subst='s/\*/\\\*/g' 4545 4546ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4547ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4548ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4549 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4551$as_echo_n "checking how to print strings... " >&6; } 4552# Test print first, because it will be a builtin if present. 4553if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4554 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4555 ECHO='print -r --' 4556elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4557 ECHO='printf %s\n' 4558else 4559 # Use this function as a fallback that always works. 4560 func_fallback_echo () 4561 { 4562 eval 'cat <<_LTECHO_EOF 4563$1 4564_LTECHO_EOF' 4565 } 4566 ECHO='func_fallback_echo' 4567fi 4568 4569# func_echo_all arg... 4570# Invoke $ECHO with all args, space-separated. 4571func_echo_all () 4572{ 4573 $ECHO "" 4574} 4575 4576case "$ECHO" in 4577 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4578$as_echo "printf" >&6; } ;; 4579 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4580$as_echo "print -r" >&6; } ;; 4581 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4582$as_echo "cat" >&6; } ;; 4583esac 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4599$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4600if test "${ac_cv_path_SED+set}" = set; then : 4601 $as_echo_n "(cached) " >&6 4602else 4603 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4604 for ac_i in 1 2 3 4 5 6 7; do 4605 ac_script="$ac_script$as_nl$ac_script" 4606 done 4607 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4608 { ac_script=; unset ac_script;} 4609 if test -z "$SED"; then 4610 ac_path_SED_found=false 4611 # Loop through the user's path and test for each of PROGNAME-LIST 4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4613for as_dir in $PATH 4614do 4615 IFS=$as_save_IFS 4616 test -z "$as_dir" && as_dir=. 4617 for ac_prog in sed gsed; do 4618 for ac_exec_ext in '' $ac_executable_extensions; do 4619 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4620 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4621# Check for GNU ac_path_SED and select it if it is found. 4622 # Check for GNU $ac_path_SED 4623case `"$ac_path_SED" --version 2>&1` in 4624*GNU*) 4625 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4626*) 4627 ac_count=0 4628 $as_echo_n 0123456789 >"conftest.in" 4629 while : 4630 do 4631 cat "conftest.in" "conftest.in" >"conftest.tmp" 4632 mv "conftest.tmp" "conftest.in" 4633 cp "conftest.in" "conftest.nl" 4634 $as_echo '' >> "conftest.nl" 4635 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4637 as_fn_arith $ac_count + 1 && ac_count=$as_val 4638 if test $ac_count -gt ${ac_path_SED_max-0}; then 4639 # Best one so far, save it but keep looking for a better one 4640 ac_cv_path_SED="$ac_path_SED" 4641 ac_path_SED_max=$ac_count 4642 fi 4643 # 10*(2^10) chars as input seems more than enough 4644 test $ac_count -gt 10 && break 4645 done 4646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4647esac 4648 4649 $ac_path_SED_found && break 3 4650 done 4651 done 4652 done 4653IFS=$as_save_IFS 4654 if test -z "$ac_cv_path_SED"; then 4655 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4656 fi 4657else 4658 ac_cv_path_SED=$SED 4659fi 4660 4661fi 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4663$as_echo "$ac_cv_path_SED" >&6; } 4664 SED="$ac_cv_path_SED" 4665 rm -f conftest.sed 4666 4667test -z "$SED" && SED=sed 4668Xsed="$SED -e 1s/^X//" 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4681$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4682if test "${ac_cv_path_GREP+set}" = set; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 if test -z "$GREP"; then 4686 ac_path_GREP_found=false 4687 # Loop through the user's path and test for each of PROGNAME-LIST 4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4689for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4690do 4691 IFS=$as_save_IFS 4692 test -z "$as_dir" && as_dir=. 4693 for ac_prog in grep ggrep; do 4694 for ac_exec_ext in '' $ac_executable_extensions; do 4695 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4696 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4697# Check for GNU ac_path_GREP and select it if it is found. 4698 # Check for GNU $ac_path_GREP 4699case `"$ac_path_GREP" --version 2>&1` in 4700*GNU*) 4701 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4702*) 4703 ac_count=0 4704 $as_echo_n 0123456789 >"conftest.in" 4705 while : 4706 do 4707 cat "conftest.in" "conftest.in" >"conftest.tmp" 4708 mv "conftest.tmp" "conftest.in" 4709 cp "conftest.in" "conftest.nl" 4710 $as_echo 'GREP' >> "conftest.nl" 4711 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4713 as_fn_arith $ac_count + 1 && ac_count=$as_val 4714 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4715 # Best one so far, save it but keep looking for a better one 4716 ac_cv_path_GREP="$ac_path_GREP" 4717 ac_path_GREP_max=$ac_count 4718 fi 4719 # 10*(2^10) chars as input seems more than enough 4720 test $ac_count -gt 10 && break 4721 done 4722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4723esac 4724 4725 $ac_path_GREP_found && break 3 4726 done 4727 done 4728 done 4729IFS=$as_save_IFS 4730 if test -z "$ac_cv_path_GREP"; then 4731 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4732 fi 4733else 4734 ac_cv_path_GREP=$GREP 4735fi 4736 4737fi 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4739$as_echo "$ac_cv_path_GREP" >&6; } 4740 GREP="$ac_cv_path_GREP" 4741 4742 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4744$as_echo_n "checking for egrep... " >&6; } 4745if test "${ac_cv_path_EGREP+set}" = set; then : 4746 $as_echo_n "(cached) " >&6 4747else 4748 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4749 then ac_cv_path_EGREP="$GREP -E" 4750 else 4751 if test -z "$EGREP"; then 4752 ac_path_EGREP_found=false 4753 # Loop through the user's path and test for each of PROGNAME-LIST 4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4756do 4757 IFS=$as_save_IFS 4758 test -z "$as_dir" && as_dir=. 4759 for ac_prog in egrep; do 4760 for ac_exec_ext in '' $ac_executable_extensions; do 4761 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4762 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4763# Check for GNU ac_path_EGREP and select it if it is found. 4764 # Check for GNU $ac_path_EGREP 4765case `"$ac_path_EGREP" --version 2>&1` in 4766*GNU*) 4767 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4768*) 4769 ac_count=0 4770 $as_echo_n 0123456789 >"conftest.in" 4771 while : 4772 do 4773 cat "conftest.in" "conftest.in" >"conftest.tmp" 4774 mv "conftest.tmp" "conftest.in" 4775 cp "conftest.in" "conftest.nl" 4776 $as_echo 'EGREP' >> "conftest.nl" 4777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4779 as_fn_arith $ac_count + 1 && ac_count=$as_val 4780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4781 # Best one so far, save it but keep looking for a better one 4782 ac_cv_path_EGREP="$ac_path_EGREP" 4783 ac_path_EGREP_max=$ac_count 4784 fi 4785 # 10*(2^10) chars as input seems more than enough 4786 test $ac_count -gt 10 && break 4787 done 4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4789esac 4790 4791 $ac_path_EGREP_found && break 3 4792 done 4793 done 4794 done 4795IFS=$as_save_IFS 4796 if test -z "$ac_cv_path_EGREP"; then 4797 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4798 fi 4799else 4800 ac_cv_path_EGREP=$EGREP 4801fi 4802 4803 fi 4804fi 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4806$as_echo "$ac_cv_path_EGREP" >&6; } 4807 EGREP="$ac_cv_path_EGREP" 4808 4809 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4811$as_echo_n "checking for fgrep... " >&6; } 4812if test "${ac_cv_path_FGREP+set}" = set; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4816 then ac_cv_path_FGREP="$GREP -F" 4817 else 4818 if test -z "$FGREP"; then 4819 ac_path_FGREP_found=false 4820 # Loop through the user's path and test for each of PROGNAME-LIST 4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4822for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4823do 4824 IFS=$as_save_IFS 4825 test -z "$as_dir" && as_dir=. 4826 for ac_prog in fgrep; do 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4829 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4830# Check for GNU ac_path_FGREP and select it if it is found. 4831 # Check for GNU $ac_path_FGREP 4832case `"$ac_path_FGREP" --version 2>&1` in 4833*GNU*) 4834 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4835*) 4836 ac_count=0 4837 $as_echo_n 0123456789 >"conftest.in" 4838 while : 4839 do 4840 cat "conftest.in" "conftest.in" >"conftest.tmp" 4841 mv "conftest.tmp" "conftest.in" 4842 cp "conftest.in" "conftest.nl" 4843 $as_echo 'FGREP' >> "conftest.nl" 4844 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4846 as_fn_arith $ac_count + 1 && ac_count=$as_val 4847 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4848 # Best one so far, save it but keep looking for a better one 4849 ac_cv_path_FGREP="$ac_path_FGREP" 4850 ac_path_FGREP_max=$ac_count 4851 fi 4852 # 10*(2^10) chars as input seems more than enough 4853 test $ac_count -gt 10 && break 4854 done 4855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4856esac 4857 4858 $ac_path_FGREP_found && break 3 4859 done 4860 done 4861 done 4862IFS=$as_save_IFS 4863 if test -z "$ac_cv_path_FGREP"; then 4864 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4865 fi 4866else 4867 ac_cv_path_FGREP=$FGREP 4868fi 4869 4870 fi 4871fi 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4873$as_echo "$ac_cv_path_FGREP" >&6; } 4874 FGREP="$ac_cv_path_FGREP" 4875 4876 4877test -z "$GREP" && GREP=grep 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897# Check whether --with-gnu-ld was given. 4898if test "${with_gnu_ld+set}" = set; then : 4899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4900else 4901 with_gnu_ld=no 4902fi 4903 4904ac_prog=ld 4905if test "$GCC" = yes; then 4906 # Check if gcc -print-prog-name=ld gives a path. 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4908$as_echo_n "checking for ld used by $CC... " >&6; } 4909 case $host in 4910 *-*-mingw*) 4911 # gcc leaves a trailing carriage return which upsets mingw 4912 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4913 *) 4914 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4915 esac 4916 case $ac_prog in 4917 # Accept absolute paths. 4918 [\\/]* | ?:[\\/]*) 4919 re_direlt='/[^/][^/]*/\.\./' 4920 # Canonicalize the pathname of ld 4921 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4922 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4923 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4924 done 4925 test -z "$LD" && LD="$ac_prog" 4926 ;; 4927 "") 4928 # If it fails, then pretend we aren't using GCC. 4929 ac_prog=ld 4930 ;; 4931 *) 4932 # If it is relative, then search for the first ld in PATH. 4933 with_gnu_ld=unknown 4934 ;; 4935 esac 4936elif test "$with_gnu_ld" = yes; then 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4938$as_echo_n "checking for GNU ld... " >&6; } 4939else 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4941$as_echo_n "checking for non-GNU ld... " >&6; } 4942fi 4943if test "${lt_cv_path_LD+set}" = set; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 if test -z "$LD"; then 4947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4948 for ac_dir in $PATH; do 4949 IFS="$lt_save_ifs" 4950 test -z "$ac_dir" && ac_dir=. 4951 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4952 lt_cv_path_LD="$ac_dir/$ac_prog" 4953 # Check to see if the program is GNU ld. I'd rather use --version, 4954 # but apparently some variants of GNU ld only accept -v. 4955 # Break only if it was the GNU/non-GNU ld that we prefer. 4956 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4957 *GNU* | *'with BFD'*) 4958 test "$with_gnu_ld" != no && break 4959 ;; 4960 *) 4961 test "$with_gnu_ld" != yes && break 4962 ;; 4963 esac 4964 fi 4965 done 4966 IFS="$lt_save_ifs" 4967else 4968 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4969fi 4970fi 4971 4972LD="$lt_cv_path_LD" 4973if test -n "$LD"; then 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4975$as_echo "$LD" >&6; } 4976else 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978$as_echo "no" >&6; } 4979fi 4980test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4982$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4983if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4987case `$LD -v 2>&1 </dev/null` in 4988*GNU* | *'with BFD'*) 4989 lt_cv_prog_gnu_ld=yes 4990 ;; 4991*) 4992 lt_cv_prog_gnu_ld=no 4993 ;; 4994esac 4995fi 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4997$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4998with_gnu_ld=$lt_cv_prog_gnu_ld 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5009$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5010if test "${lt_cv_path_NM+set}" = set; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 if test -n "$NM"; then 5014 # Let the user override the test. 5015 lt_cv_path_NM="$NM" 5016else 5017 lt_nm_to_check="${ac_tool_prefix}nm" 5018 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5019 lt_nm_to_check="$lt_nm_to_check nm" 5020 fi 5021 for lt_tmp_nm in $lt_nm_to_check; do 5022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5023 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5024 IFS="$lt_save_ifs" 5025 test -z "$ac_dir" && ac_dir=. 5026 tmp_nm="$ac_dir/$lt_tmp_nm" 5027 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5028 # Check to see if the nm accepts a BSD-compat flag. 5029 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5030 # nm: unknown option "B" ignored 5031 # Tru64's nm complains that /dev/null is an invalid object file 5032 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5033 */dev/null* | *'Invalid file or object type'*) 5034 lt_cv_path_NM="$tmp_nm -B" 5035 break 5036 ;; 5037 *) 5038 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5039 */dev/null*) 5040 lt_cv_path_NM="$tmp_nm -p" 5041 break 5042 ;; 5043 *) 5044 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5045 continue # so that we can try to find one that supports BSD flags 5046 ;; 5047 esac 5048 ;; 5049 esac 5050 fi 5051 done 5052 IFS="$lt_save_ifs" 5053 done 5054 : ${lt_cv_path_NM=no} 5055fi 5056fi 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5058$as_echo "$lt_cv_path_NM" >&6; } 5059if test "$lt_cv_path_NM" != "no"; then 5060 NM="$lt_cv_path_NM" 5061else 5062 # Didn't find any BSD compatible name lister, look for dumpbin. 5063 if test -n "$DUMPBIN"; then : 5064 # Let the user override the test. 5065 else 5066 if test -n "$ac_tool_prefix"; then 5067 for ac_prog in dumpbin "link -dump" 5068 do 5069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5070set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5072$as_echo_n "checking for $ac_word... " >&6; } 5073if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 if test -n "$DUMPBIN"; then 5077 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5078else 5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5080for as_dir in $PATH 5081do 5082 IFS=$as_save_IFS 5083 test -z "$as_dir" && as_dir=. 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5086 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5088 break 2 5089 fi 5090done 5091 done 5092IFS=$as_save_IFS 5093 5094fi 5095fi 5096DUMPBIN=$ac_cv_prog_DUMPBIN 5097if test -n "$DUMPBIN"; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5099$as_echo "$DUMPBIN" >&6; } 5100else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5102$as_echo "no" >&6; } 5103fi 5104 5105 5106 test -n "$DUMPBIN" && break 5107 done 5108fi 5109if test -z "$DUMPBIN"; then 5110 ac_ct_DUMPBIN=$DUMPBIN 5111 for ac_prog in dumpbin "link -dump" 5112do 5113 # Extract the first word of "$ac_prog", so it can be a program name with args. 5114set dummy $ac_prog; ac_word=$2 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5116$as_echo_n "checking for $ac_word... " >&6; } 5117if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 if test -n "$ac_ct_DUMPBIN"; then 5121 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5122else 5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5124for as_dir in $PATH 5125do 5126 IFS=$as_save_IFS 5127 test -z "$as_dir" && as_dir=. 5128 for ac_exec_ext in '' $ac_executable_extensions; do 5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5130 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5132 break 2 5133 fi 5134done 5135 done 5136IFS=$as_save_IFS 5137 5138fi 5139fi 5140ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5141if test -n "$ac_ct_DUMPBIN"; then 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5143$as_echo "$ac_ct_DUMPBIN" >&6; } 5144else 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5146$as_echo "no" >&6; } 5147fi 5148 5149 5150 test -n "$ac_ct_DUMPBIN" && break 5151done 5152 5153 if test "x$ac_ct_DUMPBIN" = x; then 5154 DUMPBIN=":" 5155 else 5156 case $cross_compiling:$ac_tool_warned in 5157yes:) 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5160ac_tool_warned=yes ;; 5161esac 5162 DUMPBIN=$ac_ct_DUMPBIN 5163 fi 5164fi 5165 5166 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5167 *COFF*) 5168 DUMPBIN="$DUMPBIN -symbols" 5169 ;; 5170 *) 5171 DUMPBIN=: 5172 ;; 5173 esac 5174 fi 5175 5176 if test "$DUMPBIN" != ":"; then 5177 NM="$DUMPBIN" 5178 fi 5179fi 5180test -z "$NM" && NM=nm 5181 5182 5183 5184 5185 5186 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5188$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5189if test "${lt_cv_nm_interface+set}" = set; then : 5190 $as_echo_n "(cached) " >&6 5191else 5192 lt_cv_nm_interface="BSD nm" 5193 echo "int some_variable = 0;" > conftest.$ac_ext 5194 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5195 (eval "$ac_compile" 2>conftest.err) 5196 cat conftest.err >&5 5197 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5198 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5199 cat conftest.err >&5 5200 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5201 cat conftest.out >&5 5202 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5203 lt_cv_nm_interface="MS dumpbin" 5204 fi 5205 rm -f conftest* 5206fi 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5208$as_echo "$lt_cv_nm_interface" >&6; } 5209 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5211$as_echo_n "checking whether ln -s works... " >&6; } 5212LN_S=$as_ln_s 5213if test "$LN_S" = "ln -s"; then 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5215$as_echo "yes" >&6; } 5216else 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5218$as_echo "no, using $LN_S" >&6; } 5219fi 5220 5221# find the maximum length of command line arguments 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5223$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5224if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5225 $as_echo_n "(cached) " >&6 5226else 5227 i=0 5228 teststring="ABCD" 5229 5230 case $build_os in 5231 msdosdjgpp*) 5232 # On DJGPP, this test can blow up pretty badly due to problems in libc 5233 # (any single argument exceeding 2000 bytes causes a buffer overrun 5234 # during glob expansion). Even if it were fixed, the result of this 5235 # check would be larger than it should be. 5236 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5237 ;; 5238 5239 gnu*) 5240 # Under GNU Hurd, this test is not required because there is 5241 # no limit to the length of command line arguments. 5242 # Libtool will interpret -1 as no limit whatsoever 5243 lt_cv_sys_max_cmd_len=-1; 5244 ;; 5245 5246 cygwin* | mingw* | cegcc*) 5247 # On Win9x/ME, this test blows up -- it succeeds, but takes 5248 # about 5 minutes as the teststring grows exponentially. 5249 # Worse, since 9x/ME are not pre-emptively multitasking, 5250 # you end up with a "frozen" computer, even though with patience 5251 # the test eventually succeeds (with a max line length of 256k). 5252 # Instead, let's just punt: use the minimum linelength reported by 5253 # all of the supported platforms: 8192 (on NT/2K/XP). 5254 lt_cv_sys_max_cmd_len=8192; 5255 ;; 5256 5257 mint*) 5258 # On MiNT this can take a long time and run out of memory. 5259 lt_cv_sys_max_cmd_len=8192; 5260 ;; 5261 5262 amigaos*) 5263 # On AmigaOS with pdksh, this test takes hours, literally. 5264 # So we just punt and use a minimum line length of 8192. 5265 lt_cv_sys_max_cmd_len=8192; 5266 ;; 5267 5268 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5269 # This has been around since 386BSD, at least. Likely further. 5270 if test -x /sbin/sysctl; then 5271 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5272 elif test -x /usr/sbin/sysctl; then 5273 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5274 else 5275 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5276 fi 5277 # And add a safety zone 5278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5280 ;; 5281 5282 interix*) 5283 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5284 lt_cv_sys_max_cmd_len=196608 5285 ;; 5286 5287 osf*) 5288 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5289 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5290 # nice to cause kernel panics so lets avoid the loop below. 5291 # First set a reasonable default. 5292 lt_cv_sys_max_cmd_len=16384 5293 # 5294 if test -x /sbin/sysconfig; then 5295 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5296 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5297 esac 5298 fi 5299 ;; 5300 sco3.2v5*) 5301 lt_cv_sys_max_cmd_len=102400 5302 ;; 5303 sysv5* | sco5v6* | sysv4.2uw2*) 5304 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5305 if test -n "$kargmax"; then 5306 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5307 else 5308 lt_cv_sys_max_cmd_len=32768 5309 fi 5310 ;; 5311 *) 5312 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5313 if test -n "$lt_cv_sys_max_cmd_len"; then 5314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5316 else 5317 # Make teststring a little bigger before we do anything with it. 5318 # a 1K string should be a reasonable start. 5319 for i in 1 2 3 4 5 6 7 8 ; do 5320 teststring=$teststring$teststring 5321 done 5322 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5323 # If test is not a shell built-in, we'll probably end up computing a 5324 # maximum length that is only half of the actual maximum length, but 5325 # we can't tell. 5326 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5327 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5328 test $i != 17 # 1/2 MB should be enough 5329 do 5330 i=`expr $i + 1` 5331 teststring=$teststring$teststring 5332 done 5333 # Only check the string length outside the loop. 5334 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5335 teststring= 5336 # Add a significant safety factor because C++ compilers can tack on 5337 # massive amounts of additional arguments before passing them to the 5338 # linker. It appears as though 1/2 is a usable value. 5339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5340 fi 5341 ;; 5342 esac 5343 5344fi 5345 5346if test -n $lt_cv_sys_max_cmd_len ; then 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5348$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5349else 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5351$as_echo "none" >&6; } 5352fi 5353max_cmd_len=$lt_cv_sys_max_cmd_len 5354 5355 5356 5357 5358 5359 5360: ${CP="cp -f"} 5361: ${MV="mv -f"} 5362: ${RM="rm -f"} 5363 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5365$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5366# Try some XSI features 5367xsi_shell=no 5368( _lt_dummy="a/b/c" 5369 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5370 = c,a/b,, \ 5371 && eval 'test $(( 1 + 1 )) -eq 2 \ 5372 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5373 && xsi_shell=yes 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5375$as_echo "$xsi_shell" >&6; } 5376 5377 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5379$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5380lt_shell_append=no 5381( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5382 >/dev/null 2>&1 \ 5383 && lt_shell_append=yes 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5385$as_echo "$lt_shell_append" >&6; } 5386 5387 5388if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5389 lt_unset=unset 5390else 5391 lt_unset=false 5392fi 5393 5394 5395 5396 5397 5398# test EBCDIC or ASCII 5399case `echo X|tr X '\101'` in 5400 A) # ASCII based system 5401 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5402 lt_SP2NL='tr \040 \012' 5403 lt_NL2SP='tr \015\012 \040\040' 5404 ;; 5405 *) # EBCDIC based system 5406 lt_SP2NL='tr \100 \n' 5407 lt_NL2SP='tr \r\n \100\100' 5408 ;; 5409esac 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5420$as_echo_n "checking for $LD option to reload object files... " >&6; } 5421if test "${lt_cv_ld_reload_flag+set}" = set; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 lt_cv_ld_reload_flag='-r' 5425fi 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5427$as_echo "$lt_cv_ld_reload_flag" >&6; } 5428reload_flag=$lt_cv_ld_reload_flag 5429case $reload_flag in 5430"" | " "*) ;; 5431*) reload_flag=" $reload_flag" ;; 5432esac 5433reload_cmds='$LD$reload_flag -o $output$reload_objs' 5434case $host_os in 5435 darwin*) 5436 if test "$GCC" = yes; then 5437 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5438 else 5439 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5440 fi 5441 ;; 5442esac 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452if test -n "$ac_tool_prefix"; then 5453 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5454set dummy ${ac_tool_prefix}objdump; ac_word=$2 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5456$as_echo_n "checking for $ac_word... " >&6; } 5457if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 if test -n "$OBJDUMP"; then 5461 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5462else 5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5464for as_dir in $PATH 5465do 5466 IFS=$as_save_IFS 5467 test -z "$as_dir" && as_dir=. 5468 for ac_exec_ext in '' $ac_executable_extensions; do 5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5470 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5472 break 2 5473 fi 5474done 5475 done 5476IFS=$as_save_IFS 5477 5478fi 5479fi 5480OBJDUMP=$ac_cv_prog_OBJDUMP 5481if test -n "$OBJDUMP"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5483$as_echo "$OBJDUMP" >&6; } 5484else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486$as_echo "no" >&6; } 5487fi 5488 5489 5490fi 5491if test -z "$ac_cv_prog_OBJDUMP"; then 5492 ac_ct_OBJDUMP=$OBJDUMP 5493 # Extract the first word of "objdump", so it can be a program name with args. 5494set dummy objdump; ac_word=$2 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5496$as_echo_n "checking for $ac_word... " >&6; } 5497if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 if test -n "$ac_ct_OBJDUMP"; then 5501 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5502else 5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5504for as_dir in $PATH 5505do 5506 IFS=$as_save_IFS 5507 test -z "$as_dir" && as_dir=. 5508 for ac_exec_ext in '' $ac_executable_extensions; do 5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5510 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5512 break 2 5513 fi 5514done 5515 done 5516IFS=$as_save_IFS 5517 5518fi 5519fi 5520ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5521if test -n "$ac_ct_OBJDUMP"; then 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5523$as_echo "$ac_ct_OBJDUMP" >&6; } 5524else 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5526$as_echo "no" >&6; } 5527fi 5528 5529 if test "x$ac_ct_OBJDUMP" = x; then 5530 OBJDUMP="false" 5531 else 5532 case $cross_compiling:$ac_tool_warned in 5533yes:) 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5536ac_tool_warned=yes ;; 5537esac 5538 OBJDUMP=$ac_ct_OBJDUMP 5539 fi 5540else 5541 OBJDUMP="$ac_cv_prog_OBJDUMP" 5542fi 5543 5544test -z "$OBJDUMP" && OBJDUMP=objdump 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5555$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5556if test "${lt_cv_deplibs_check_method+set}" = set; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 lt_cv_file_magic_cmd='$MAGIC_CMD' 5560lt_cv_file_magic_test_file= 5561lt_cv_deplibs_check_method='unknown' 5562# Need to set the preceding variable on all platforms that support 5563# interlibrary dependencies. 5564# 'none' -- dependencies not supported. 5565# `unknown' -- same as none, but documents that we really don't know. 5566# 'pass_all' -- all dependencies passed with no checks. 5567# 'test_compile' -- check by making test program. 5568# 'file_magic [[regex]]' -- check by looking for files in library path 5569# which responds to the $file_magic_cmd with a given extended regex. 5570# If you have `file' or equivalent on your system and you're not sure 5571# whether `pass_all' will *always* work, you probably want this one. 5572 5573case $host_os in 5574aix[4-9]*) 5575 lt_cv_deplibs_check_method=pass_all 5576 ;; 5577 5578beos*) 5579 lt_cv_deplibs_check_method=pass_all 5580 ;; 5581 5582bsdi[45]*) 5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5584 lt_cv_file_magic_cmd='/usr/bin/file -L' 5585 lt_cv_file_magic_test_file=/shlib/libc.so 5586 ;; 5587 5588cygwin*) 5589 # func_win32_libid is a shell function defined in ltmain.sh 5590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5591 lt_cv_file_magic_cmd='func_win32_libid' 5592 ;; 5593 5594mingw* | pw32*) 5595 # Base MSYS/MinGW do not provide the 'file' command needed by 5596 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5597 # unless we find 'file', for example because we are cross-compiling. 5598 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5599 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5601 lt_cv_file_magic_cmd='func_win32_libid' 5602 else 5603 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5604 lt_cv_file_magic_cmd='$OBJDUMP -f' 5605 fi 5606 ;; 5607 5608cegcc*) 5609 # use the weaker test based on 'objdump'. See mingw*. 5610 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5611 lt_cv_file_magic_cmd='$OBJDUMP -f' 5612 ;; 5613 5614darwin* | rhapsody*) 5615 lt_cv_deplibs_check_method=pass_all 5616 ;; 5617 5618freebsd* | dragonfly*) 5619 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5620 case $host_cpu in 5621 i*86 ) 5622 # Not sure whether the presence of OpenBSD here was a mistake. 5623 # Let's accept both of them until this is cleared up. 5624 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5625 lt_cv_file_magic_cmd=/usr/bin/file 5626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5627 ;; 5628 esac 5629 else 5630 lt_cv_deplibs_check_method=pass_all 5631 fi 5632 ;; 5633 5634gnu*) 5635 lt_cv_deplibs_check_method=pass_all 5636 ;; 5637 5638haiku*) 5639 lt_cv_deplibs_check_method=pass_all 5640 ;; 5641 5642hpux10.20* | hpux11*) 5643 lt_cv_file_magic_cmd=/usr/bin/file 5644 case $host_cpu in 5645 ia64*) 5646 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5647 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5648 ;; 5649 hppa*64*) 5650 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]' 5651 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5652 ;; 5653 *) 5654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5655 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5656 ;; 5657 esac 5658 ;; 5659 5660interix[3-9]*) 5661 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5663 ;; 5664 5665irix5* | irix6* | nonstopux*) 5666 case $LD in 5667 *-32|*"-32 ") libmagic=32-bit;; 5668 *-n32|*"-n32 ") libmagic=N32;; 5669 *-64|*"-64 ") libmagic=64-bit;; 5670 *) libmagic=never-match;; 5671 esac 5672 lt_cv_deplibs_check_method=pass_all 5673 ;; 5674 5675# This must be Linux ELF. 5676linux* | k*bsd*-gnu | kopensolaris*-gnu) 5677 lt_cv_deplibs_check_method=pass_all 5678 ;; 5679 5680netbsd*) 5681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5683 else 5684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5685 fi 5686 ;; 5687 5688newos6*) 5689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5690 lt_cv_file_magic_cmd=/usr/bin/file 5691 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5692 ;; 5693 5694*nto* | *qnx*) 5695 lt_cv_deplibs_check_method=pass_all 5696 ;; 5697 5698openbsd*) 5699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5701 else 5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5703 fi 5704 ;; 5705 5706osf3* | osf4* | osf5*) 5707 lt_cv_deplibs_check_method=pass_all 5708 ;; 5709 5710rdos*) 5711 lt_cv_deplibs_check_method=pass_all 5712 ;; 5713 5714solaris*) 5715 lt_cv_deplibs_check_method=pass_all 5716 ;; 5717 5718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5719 lt_cv_deplibs_check_method=pass_all 5720 ;; 5721 5722sysv4 | sysv4.3*) 5723 case $host_vendor in 5724 motorola) 5725 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]' 5726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5727 ;; 5728 ncr) 5729 lt_cv_deplibs_check_method=pass_all 5730 ;; 5731 sequent) 5732 lt_cv_file_magic_cmd='/bin/file' 5733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5734 ;; 5735 sni) 5736 lt_cv_file_magic_cmd='/bin/file' 5737 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5738 lt_cv_file_magic_test_file=/lib/libc.so 5739 ;; 5740 siemens) 5741 lt_cv_deplibs_check_method=pass_all 5742 ;; 5743 pc) 5744 lt_cv_deplibs_check_method=pass_all 5745 ;; 5746 esac 5747 ;; 5748 5749tpf*) 5750 lt_cv_deplibs_check_method=pass_all 5751 ;; 5752esac 5753 5754fi 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5756$as_echo "$lt_cv_deplibs_check_method" >&6; } 5757file_magic_cmd=$lt_cv_file_magic_cmd 5758deplibs_check_method=$lt_cv_deplibs_check_method 5759test -z "$deplibs_check_method" && deplibs_check_method=unknown 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772if test -n "$ac_tool_prefix"; then 5773 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5774set dummy ${ac_tool_prefix}ar; ac_word=$2 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5776$as_echo_n "checking for $ac_word... " >&6; } 5777if test "${ac_cv_prog_AR+set}" = set; then : 5778 $as_echo_n "(cached) " >&6 5779else 5780 if test -n "$AR"; then 5781 ac_cv_prog_AR="$AR" # Let the user override the test. 5782else 5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5784for as_dir in $PATH 5785do 5786 IFS=$as_save_IFS 5787 test -z "$as_dir" && as_dir=. 5788 for ac_exec_ext in '' $ac_executable_extensions; do 5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5790 ac_cv_prog_AR="${ac_tool_prefix}ar" 5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5792 break 2 5793 fi 5794done 5795 done 5796IFS=$as_save_IFS 5797 5798fi 5799fi 5800AR=$ac_cv_prog_AR 5801if test -n "$AR"; then 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5803$as_echo "$AR" >&6; } 5804else 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5806$as_echo "no" >&6; } 5807fi 5808 5809 5810fi 5811if test -z "$ac_cv_prog_AR"; then 5812 ac_ct_AR=$AR 5813 # Extract the first word of "ar", so it can be a program name with args. 5814set dummy ar; ac_word=$2 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5816$as_echo_n "checking for $ac_word... " >&6; } 5817if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5818 $as_echo_n "(cached) " >&6 5819else 5820 if test -n "$ac_ct_AR"; then 5821 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5822else 5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824for as_dir in $PATH 5825do 5826 IFS=$as_save_IFS 5827 test -z "$as_dir" && as_dir=. 5828 for ac_exec_ext in '' $ac_executable_extensions; do 5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5830 ac_cv_prog_ac_ct_AR="ar" 5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5832 break 2 5833 fi 5834done 5835 done 5836IFS=$as_save_IFS 5837 5838fi 5839fi 5840ac_ct_AR=$ac_cv_prog_ac_ct_AR 5841if test -n "$ac_ct_AR"; then 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5843$as_echo "$ac_ct_AR" >&6; } 5844else 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5846$as_echo "no" >&6; } 5847fi 5848 5849 if test "x$ac_ct_AR" = x; then 5850 AR="false" 5851 else 5852 case $cross_compiling:$ac_tool_warned in 5853yes:) 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5856ac_tool_warned=yes ;; 5857esac 5858 AR=$ac_ct_AR 5859 fi 5860else 5861 AR="$ac_cv_prog_AR" 5862fi 5863 5864test -z "$AR" && AR=ar 5865test -z "$AR_FLAGS" && AR_FLAGS=cru 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877if test -n "$ac_tool_prefix"; then 5878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5879set dummy ${ac_tool_prefix}strip; ac_word=$2 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5881$as_echo_n "checking for $ac_word... " >&6; } 5882if test "${ac_cv_prog_STRIP+set}" = set; then : 5883 $as_echo_n "(cached) " >&6 5884else 5885 if test -n "$STRIP"; then 5886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5887else 5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5889for as_dir in $PATH 5890do 5891 IFS=$as_save_IFS 5892 test -z "$as_dir" && as_dir=. 5893 for ac_exec_ext in '' $ac_executable_extensions; do 5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5895 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5897 break 2 5898 fi 5899done 5900 done 5901IFS=$as_save_IFS 5902 5903fi 5904fi 5905STRIP=$ac_cv_prog_STRIP 5906if test -n "$STRIP"; then 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5908$as_echo "$STRIP" >&6; } 5909else 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5911$as_echo "no" >&6; } 5912fi 5913 5914 5915fi 5916if test -z "$ac_cv_prog_STRIP"; then 5917 ac_ct_STRIP=$STRIP 5918 # Extract the first word of "strip", so it can be a program name with args. 5919set dummy strip; ac_word=$2 5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5921$as_echo_n "checking for $ac_word... " >&6; } 5922if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5923 $as_echo_n "(cached) " >&6 5924else 5925 if test -n "$ac_ct_STRIP"; then 5926 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5927else 5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5929for as_dir in $PATH 5930do 5931 IFS=$as_save_IFS 5932 test -z "$as_dir" && as_dir=. 5933 for ac_exec_ext in '' $ac_executable_extensions; do 5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5935 ac_cv_prog_ac_ct_STRIP="strip" 5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5937 break 2 5938 fi 5939done 5940 done 5941IFS=$as_save_IFS 5942 5943fi 5944fi 5945ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5946if test -n "$ac_ct_STRIP"; then 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5948$as_echo "$ac_ct_STRIP" >&6; } 5949else 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5951$as_echo "no" >&6; } 5952fi 5953 5954 if test "x$ac_ct_STRIP" = x; then 5955 STRIP=":" 5956 else 5957 case $cross_compiling:$ac_tool_warned in 5958yes:) 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5961ac_tool_warned=yes ;; 5962esac 5963 STRIP=$ac_ct_STRIP 5964 fi 5965else 5966 STRIP="$ac_cv_prog_STRIP" 5967fi 5968 5969test -z "$STRIP" && STRIP=: 5970 5971 5972 5973 5974 5975 5976if test -n "$ac_tool_prefix"; then 5977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5978set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5980$as_echo_n "checking for $ac_word... " >&6; } 5981if test "${ac_cv_prog_RANLIB+set}" = set; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 if test -n "$RANLIB"; then 5985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5986else 5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5988for as_dir in $PATH 5989do 5990 IFS=$as_save_IFS 5991 test -z "$as_dir" && as_dir=. 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5996 break 2 5997 fi 5998done 5999 done 6000IFS=$as_save_IFS 6001 6002fi 6003fi 6004RANLIB=$ac_cv_prog_RANLIB 6005if test -n "$RANLIB"; then 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6007$as_echo "$RANLIB" >&6; } 6008else 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010$as_echo "no" >&6; } 6011fi 6012 6013 6014fi 6015if test -z "$ac_cv_prog_RANLIB"; then 6016 ac_ct_RANLIB=$RANLIB 6017 # Extract the first word of "ranlib", so it can be a program name with args. 6018set dummy ranlib; ac_word=$2 6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6020$as_echo_n "checking for $ac_word... " >&6; } 6021if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6022 $as_echo_n "(cached) " >&6 6023else 6024 if test -n "$ac_ct_RANLIB"; then 6025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6026else 6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6028for as_dir in $PATH 6029do 6030 IFS=$as_save_IFS 6031 test -z "$as_dir" && as_dir=. 6032 for ac_exec_ext in '' $ac_executable_extensions; do 6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6034 ac_cv_prog_ac_ct_RANLIB="ranlib" 6035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6036 break 2 6037 fi 6038done 6039 done 6040IFS=$as_save_IFS 6041 6042fi 6043fi 6044ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6045if test -n "$ac_ct_RANLIB"; then 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6047$as_echo "$ac_ct_RANLIB" >&6; } 6048else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6050$as_echo "no" >&6; } 6051fi 6052 6053 if test "x$ac_ct_RANLIB" = x; then 6054 RANLIB=":" 6055 else 6056 case $cross_compiling:$ac_tool_warned in 6057yes:) 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6060ac_tool_warned=yes ;; 6061esac 6062 RANLIB=$ac_ct_RANLIB 6063 fi 6064else 6065 RANLIB="$ac_cv_prog_RANLIB" 6066fi 6067 6068test -z "$RANLIB" && RANLIB=: 6069 6070 6071 6072 6073 6074 6075# Determine commands to create old-style static archives. 6076old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6077old_postinstall_cmds='chmod 644 $oldlib' 6078old_postuninstall_cmds= 6079 6080if test -n "$RANLIB"; then 6081 case $host_os in 6082 openbsd*) 6083 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6084 ;; 6085 *) 6086 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6087 ;; 6088 esac 6089 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6090fi 6091 6092case $host_os in 6093 darwin*) 6094 lock_old_archive_extraction=yes ;; 6095 *) 6096 lock_old_archive_extraction=no ;; 6097esac 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137# If no C compiler was specified, use CC. 6138LTCC=${LTCC-"$CC"} 6139 6140# If no C compiler flags were specified, use CFLAGS. 6141LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6142 6143# Allow CC to be a program name with arguments. 6144compiler=$CC 6145 6146 6147# Check for command to grab the raw symbol name followed by C symbol from nm. 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6149$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6150if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 6154# These are sane defaults that work on at least a few old systems. 6155# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6156 6157# Character class describing NM global symbol codes. 6158symcode='[BCDEGRST]' 6159 6160# Regexp to match symbols that can be accessed directly from C. 6161sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6162 6163# Define system-specific variables. 6164case $host_os in 6165aix*) 6166 symcode='[BCDT]' 6167 ;; 6168cygwin* | mingw* | pw32* | cegcc*) 6169 symcode='[ABCDGISTW]' 6170 ;; 6171hpux*) 6172 if test "$host_cpu" = ia64; then 6173 symcode='[ABCDEGRST]' 6174 fi 6175 ;; 6176irix* | nonstopux*) 6177 symcode='[BCDEGRST]' 6178 ;; 6179osf*) 6180 symcode='[BCDEGQRST]' 6181 ;; 6182solaris*) 6183 symcode='[BDRT]' 6184 ;; 6185sco3.2v5*) 6186 symcode='[DT]' 6187 ;; 6188sysv4.2uw2*) 6189 symcode='[DT]' 6190 ;; 6191sysv5* | sco5v6* | unixware* | OpenUNIX*) 6192 symcode='[ABDT]' 6193 ;; 6194sysv4) 6195 symcode='[DFNSTU]' 6196 ;; 6197esac 6198 6199# If we're using GNU nm, then use its standard symbol codes. 6200case `$NM -V 2>&1` in 6201*GNU* | *'with BFD'*) 6202 symcode='[ABCDGIRSTW]' ;; 6203esac 6204 6205# Transform an extracted symbol line into a proper C declaration. 6206# Some systems (esp. on ia64) link data and code symbols differently, 6207# so use this general approach. 6208lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6209 6210# Transform an extracted symbol line into symbol name and symbol address 6211lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6212lt_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'" 6213 6214# Handle CRLF in mingw tool chain 6215opt_cr= 6216case $build_os in 6217mingw*) 6218 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6219 ;; 6220esac 6221 6222# Try without a prefix underscore, then with it. 6223for ac_symprfx in "" "_"; do 6224 6225 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6226 symxfrm="\\1 $ac_symprfx\\2 \\2" 6227 6228 # Write the raw and C identifiers. 6229 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6230 # Fake it for dumpbin and say T for any non-static function 6231 # and D for any global variable. 6232 # Also find C++ and __fastcall symbols from MSVC++, 6233 # which start with @ or ?. 6234 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6235" {last_section=section; section=\$ 3};"\ 6236" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6237" \$ 0!~/External *\|/{next};"\ 6238" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6239" {if(hide[section]) next};"\ 6240" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6241" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6242" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6243" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6244" ' prfx=^$ac_symprfx" 6245 else 6246 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6247 fi 6248 6249 # Check to see that the pipe works correctly. 6250 pipe_works=no 6251 6252 rm -f conftest* 6253 cat > conftest.$ac_ext <<_LT_EOF 6254#ifdef __cplusplus 6255extern "C" { 6256#endif 6257char nm_test_var; 6258void nm_test_func(void); 6259void nm_test_func(void){} 6260#ifdef __cplusplus 6261} 6262#endif 6263int main(){nm_test_var='a';nm_test_func();return(0);} 6264_LT_EOF 6265 6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6267 (eval $ac_compile) 2>&5 6268 ac_status=$? 6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6270 test $ac_status = 0; }; then 6271 # Now try to grab the symbols. 6272 nlist=conftest.nm 6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6274 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6275 ac_status=$? 6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6277 test $ac_status = 0; } && test -s "$nlist"; then 6278 # Try sorting and uniquifying the output. 6279 if sort "$nlist" | uniq > "$nlist"T; then 6280 mv -f "$nlist"T "$nlist" 6281 else 6282 rm -f "$nlist"T 6283 fi 6284 6285 # Make sure that we snagged all the symbols we need. 6286 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6287 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6288 cat <<_LT_EOF > conftest.$ac_ext 6289#ifdef __cplusplus 6290extern "C" { 6291#endif 6292 6293_LT_EOF 6294 # Now generate the symbol file. 6295 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6296 6297 cat <<_LT_EOF >> conftest.$ac_ext 6298 6299/* The mapping between symbol names and symbols. */ 6300const struct { 6301 const char *name; 6302 void *address; 6303} 6304lt__PROGRAM__LTX_preloaded_symbols[] = 6305{ 6306 { "@PROGRAM@", (void *) 0 }, 6307_LT_EOF 6308 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6309 cat <<\_LT_EOF >> conftest.$ac_ext 6310 {0, (void *) 0} 6311}; 6312 6313/* This works around a problem in FreeBSD linker */ 6314#ifdef FREEBSD_WORKAROUND 6315static const void *lt_preloaded_setup() { 6316 return lt__PROGRAM__LTX_preloaded_symbols; 6317} 6318#endif 6319 6320#ifdef __cplusplus 6321} 6322#endif 6323_LT_EOF 6324 # Now try linking the two files. 6325 mv conftest.$ac_objext conftstm.$ac_objext 6326 lt_save_LIBS="$LIBS" 6327 lt_save_CFLAGS="$CFLAGS" 6328 LIBS="conftstm.$ac_objext" 6329 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6331 (eval $ac_link) 2>&5 6332 ac_status=$? 6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6334 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6335 pipe_works=yes 6336 fi 6337 LIBS="$lt_save_LIBS" 6338 CFLAGS="$lt_save_CFLAGS" 6339 else 6340 echo "cannot find nm_test_func in $nlist" >&5 6341 fi 6342 else 6343 echo "cannot find nm_test_var in $nlist" >&5 6344 fi 6345 else 6346 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6347 fi 6348 else 6349 echo "$progname: failed program was:" >&5 6350 cat conftest.$ac_ext >&5 6351 fi 6352 rm -rf conftest* conftst* 6353 6354 # Do not use the global_symbol_pipe unless it works. 6355 if test "$pipe_works" = yes; then 6356 break 6357 else 6358 lt_cv_sys_global_symbol_pipe= 6359 fi 6360done 6361 6362fi 6363 6364if test -z "$lt_cv_sys_global_symbol_pipe"; then 6365 lt_cv_sys_global_symbol_to_cdecl= 6366fi 6367if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6369$as_echo "failed" >&6; } 6370else 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6372$as_echo "ok" >&6; } 6373fi 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397# Check whether --enable-libtool-lock was given. 6398if test "${enable_libtool_lock+set}" = set; then : 6399 enableval=$enable_libtool_lock; 6400fi 6401 6402test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6403 6404# Some flags need to be propagated to the compiler or linker for good 6405# libtool support. 6406case $host in 6407ia64-*-hpux*) 6408 # Find out which ABI we are using. 6409 echo 'int i;' > conftest.$ac_ext 6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6411 (eval $ac_compile) 2>&5 6412 ac_status=$? 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6414 test $ac_status = 0; }; then 6415 case `/usr/bin/file conftest.$ac_objext` in 6416 *ELF-32*) 6417 HPUX_IA64_MODE="32" 6418 ;; 6419 *ELF-64*) 6420 HPUX_IA64_MODE="64" 6421 ;; 6422 esac 6423 fi 6424 rm -rf conftest* 6425 ;; 6426*-*-irix6*) 6427 # Find out which ABI we are using. 6428 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6430 (eval $ac_compile) 2>&5 6431 ac_status=$? 6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6433 test $ac_status = 0; }; then 6434 if test "$lt_cv_prog_gnu_ld" = yes; then 6435 case `/usr/bin/file conftest.$ac_objext` in 6436 *32-bit*) 6437 LD="${LD-ld} -melf32bsmip" 6438 ;; 6439 *N32*) 6440 LD="${LD-ld} -melf32bmipn32" 6441 ;; 6442 *64-bit*) 6443 LD="${LD-ld} -melf64bmip" 6444 ;; 6445 esac 6446 else 6447 case `/usr/bin/file conftest.$ac_objext` in 6448 *32-bit*) 6449 LD="${LD-ld} -32" 6450 ;; 6451 *N32*) 6452 LD="${LD-ld} -n32" 6453 ;; 6454 *64-bit*) 6455 LD="${LD-ld} -64" 6456 ;; 6457 esac 6458 fi 6459 fi 6460 rm -rf conftest* 6461 ;; 6462 6463x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6464s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6465 # Find out which ABI we are using. 6466 echo 'int i;' > conftest.$ac_ext 6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6468 (eval $ac_compile) 2>&5 6469 ac_status=$? 6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6471 test $ac_status = 0; }; then 6472 case `/usr/bin/file conftest.o` in 6473 *32-bit*) 6474 case $host in 6475 x86_64-*kfreebsd*-gnu) 6476 LD="${LD-ld} -m elf_i386_fbsd" 6477 ;; 6478 x86_64-*linux*) 6479 case `/usr/bin/file conftest.o` in 6480 *x86-64*) 6481 LD="${LD-ld} -m elf32_x86_64" 6482 ;; 6483 *) 6484 LD="${LD-ld} -m elf_i386" 6485 ;; 6486 esac 6487 ;; 6488 powerpc64le-*linux*) 6489 LD="${LD-ld} -m elf32lppclinux" 6490 ;; 6491 powerpc64-*linux*) 6492 LD="${LD-ld} -m elf32ppclinux" 6493 ;; 6494 s390x-*linux*) 6495 LD="${LD-ld} -m elf_s390" 6496 ;; 6497 sparc64-*linux*) 6498 LD="${LD-ld} -m elf32_sparc" 6499 ;; 6500 esac 6501 ;; 6502 *64-bit*) 6503 case $host in 6504 x86_64-*kfreebsd*-gnu) 6505 LD="${LD-ld} -m elf_x86_64_fbsd" 6506 ;; 6507 x86_64-*linux*) 6508 LD="${LD-ld} -m elf_x86_64" 6509 ;; 6510 powerpcle-*linux*) 6511 LD="${LD-ld} -m elf64lppc" 6512 ;; 6513 powerpc-*linux*) 6514 LD="${LD-ld} -m elf64ppc" 6515 ;; 6516 s390*-*linux*|s390*-*tpf*) 6517 LD="${LD-ld} -m elf64_s390" 6518 ;; 6519 sparc*-*linux*) 6520 LD="${LD-ld} -m elf64_sparc" 6521 ;; 6522 esac 6523 ;; 6524 esac 6525 fi 6526 rm -rf conftest* 6527 ;; 6528 6529*-*-sco3.2v5*) 6530 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6531 SAVE_CFLAGS="$CFLAGS" 6532 CFLAGS="$CFLAGS -belf" 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6534$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6535if test "${lt_cv_cc_needs_belf+set}" = set; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 ac_ext=c 6539ac_cpp='$CPP $CPPFLAGS' 6540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6542ac_compiler_gnu=$ac_cv_c_compiler_gnu 6543 6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6545/* end confdefs.h. */ 6546 6547int 6548main () 6549{ 6550 6551 ; 6552 return 0; 6553} 6554_ACEOF 6555if ac_fn_c_try_link "$LINENO"; then : 6556 lt_cv_cc_needs_belf=yes 6557else 6558 lt_cv_cc_needs_belf=no 6559fi 6560rm -f core conftest.err conftest.$ac_objext \ 6561 conftest$ac_exeext conftest.$ac_ext 6562 ac_ext=c 6563ac_cpp='$CPP $CPPFLAGS' 6564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6566ac_compiler_gnu=$ac_cv_c_compiler_gnu 6567 6568fi 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6570$as_echo "$lt_cv_cc_needs_belf" >&6; } 6571 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6572 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6573 CFLAGS="$SAVE_CFLAGS" 6574 fi 6575 ;; 6576sparc*-*solaris*) 6577 # Find out which ABI we are using. 6578 echo 'int i;' > conftest.$ac_ext 6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6580 (eval $ac_compile) 2>&5 6581 ac_status=$? 6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6583 test $ac_status = 0; }; then 6584 case `/usr/bin/file conftest.o` in 6585 *64-bit*) 6586 case $lt_cv_prog_gnu_ld in 6587 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6588 *) 6589 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6590 LD="${LD-ld} -64" 6591 fi 6592 ;; 6593 esac 6594 ;; 6595 esac 6596 fi 6597 rm -rf conftest* 6598 ;; 6599esac 6600 6601need_locks="$enable_libtool_lock" 6602 6603 6604 case $host_os in 6605 rhapsody* | darwin*) 6606 if test -n "$ac_tool_prefix"; then 6607 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6608set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6610$as_echo_n "checking for $ac_word... " >&6; } 6611if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6612 $as_echo_n "(cached) " >&6 6613else 6614 if test -n "$DSYMUTIL"; then 6615 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6616else 6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6618for as_dir in $PATH 6619do 6620 IFS=$as_save_IFS 6621 test -z "$as_dir" && as_dir=. 6622 for ac_exec_ext in '' $ac_executable_extensions; do 6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6624 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6626 break 2 6627 fi 6628done 6629 done 6630IFS=$as_save_IFS 6631 6632fi 6633fi 6634DSYMUTIL=$ac_cv_prog_DSYMUTIL 6635if test -n "$DSYMUTIL"; then 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6637$as_echo "$DSYMUTIL" >&6; } 6638else 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6640$as_echo "no" >&6; } 6641fi 6642 6643 6644fi 6645if test -z "$ac_cv_prog_DSYMUTIL"; then 6646 ac_ct_DSYMUTIL=$DSYMUTIL 6647 # Extract the first word of "dsymutil", so it can be a program name with args. 6648set dummy dsymutil; ac_word=$2 6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6650$as_echo_n "checking for $ac_word... " >&6; } 6651if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6652 $as_echo_n "(cached) " >&6 6653else 6654 if test -n "$ac_ct_DSYMUTIL"; then 6655 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6656else 6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6658for as_dir in $PATH 6659do 6660 IFS=$as_save_IFS 6661 test -z "$as_dir" && as_dir=. 6662 for ac_exec_ext in '' $ac_executable_extensions; do 6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6664 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6666 break 2 6667 fi 6668done 6669 done 6670IFS=$as_save_IFS 6671 6672fi 6673fi 6674ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6675if test -n "$ac_ct_DSYMUTIL"; then 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6677$as_echo "$ac_ct_DSYMUTIL" >&6; } 6678else 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6680$as_echo "no" >&6; } 6681fi 6682 6683 if test "x$ac_ct_DSYMUTIL" = x; then 6684 DSYMUTIL=":" 6685 else 6686 case $cross_compiling:$ac_tool_warned in 6687yes:) 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6690ac_tool_warned=yes ;; 6691esac 6692 DSYMUTIL=$ac_ct_DSYMUTIL 6693 fi 6694else 6695 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6696fi 6697 6698 if test -n "$ac_tool_prefix"; then 6699 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6700set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6702$as_echo_n "checking for $ac_word... " >&6; } 6703if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6704 $as_echo_n "(cached) " >&6 6705else 6706 if test -n "$NMEDIT"; then 6707 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6708else 6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6710for as_dir in $PATH 6711do 6712 IFS=$as_save_IFS 6713 test -z "$as_dir" && as_dir=. 6714 for ac_exec_ext in '' $ac_executable_extensions; do 6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6716 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6718 break 2 6719 fi 6720done 6721 done 6722IFS=$as_save_IFS 6723 6724fi 6725fi 6726NMEDIT=$ac_cv_prog_NMEDIT 6727if test -n "$NMEDIT"; then 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6729$as_echo "$NMEDIT" >&6; } 6730else 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6732$as_echo "no" >&6; } 6733fi 6734 6735 6736fi 6737if test -z "$ac_cv_prog_NMEDIT"; then 6738 ac_ct_NMEDIT=$NMEDIT 6739 # Extract the first word of "nmedit", so it can be a program name with args. 6740set dummy nmedit; ac_word=$2 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6742$as_echo_n "checking for $ac_word... " >&6; } 6743if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 if test -n "$ac_ct_NMEDIT"; then 6747 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6748else 6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750for as_dir in $PATH 6751do 6752 IFS=$as_save_IFS 6753 test -z "$as_dir" && as_dir=. 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6756 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760done 6761 done 6762IFS=$as_save_IFS 6763 6764fi 6765fi 6766ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6767if test -n "$ac_ct_NMEDIT"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6769$as_echo "$ac_ct_NMEDIT" >&6; } 6770else 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772$as_echo "no" >&6; } 6773fi 6774 6775 if test "x$ac_ct_NMEDIT" = x; then 6776 NMEDIT=":" 6777 else 6778 case $cross_compiling:$ac_tool_warned in 6779yes:) 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6782ac_tool_warned=yes ;; 6783esac 6784 NMEDIT=$ac_ct_NMEDIT 6785 fi 6786else 6787 NMEDIT="$ac_cv_prog_NMEDIT" 6788fi 6789 6790 if test -n "$ac_tool_prefix"; then 6791 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6792set dummy ${ac_tool_prefix}lipo; ac_word=$2 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6794$as_echo_n "checking for $ac_word... " >&6; } 6795if test "${ac_cv_prog_LIPO+set}" = set; then : 6796 $as_echo_n "(cached) " >&6 6797else 6798 if test -n "$LIPO"; then 6799 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6800else 6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6802for as_dir in $PATH 6803do 6804 IFS=$as_save_IFS 6805 test -z "$as_dir" && as_dir=. 6806 for ac_exec_ext in '' $ac_executable_extensions; do 6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6808 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6810 break 2 6811 fi 6812done 6813 done 6814IFS=$as_save_IFS 6815 6816fi 6817fi 6818LIPO=$ac_cv_prog_LIPO 6819if test -n "$LIPO"; then 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6821$as_echo "$LIPO" >&6; } 6822else 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6824$as_echo "no" >&6; } 6825fi 6826 6827 6828fi 6829if test -z "$ac_cv_prog_LIPO"; then 6830 ac_ct_LIPO=$LIPO 6831 # Extract the first word of "lipo", so it can be a program name with args. 6832set dummy lipo; ac_word=$2 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6834$as_echo_n "checking for $ac_word... " >&6; } 6835if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 if test -n "$ac_ct_LIPO"; then 6839 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6840else 6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6842for as_dir in $PATH 6843do 6844 IFS=$as_save_IFS 6845 test -z "$as_dir" && as_dir=. 6846 for ac_exec_ext in '' $ac_executable_extensions; do 6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6848 ac_cv_prog_ac_ct_LIPO="lipo" 6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6850 break 2 6851 fi 6852done 6853 done 6854IFS=$as_save_IFS 6855 6856fi 6857fi 6858ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6859if test -n "$ac_ct_LIPO"; then 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6861$as_echo "$ac_ct_LIPO" >&6; } 6862else 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6864$as_echo "no" >&6; } 6865fi 6866 6867 if test "x$ac_ct_LIPO" = x; then 6868 LIPO=":" 6869 else 6870 case $cross_compiling:$ac_tool_warned in 6871yes:) 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6874ac_tool_warned=yes ;; 6875esac 6876 LIPO=$ac_ct_LIPO 6877 fi 6878else 6879 LIPO="$ac_cv_prog_LIPO" 6880fi 6881 6882 if test -n "$ac_tool_prefix"; then 6883 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6884set dummy ${ac_tool_prefix}otool; ac_word=$2 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6886$as_echo_n "checking for $ac_word... " >&6; } 6887if test "${ac_cv_prog_OTOOL+set}" = set; then : 6888 $as_echo_n "(cached) " >&6 6889else 6890 if test -n "$OTOOL"; then 6891 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6892else 6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 test -z "$as_dir" && as_dir=. 6898 for ac_exec_ext in '' $ac_executable_extensions; do 6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6900 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6902 break 2 6903 fi 6904done 6905 done 6906IFS=$as_save_IFS 6907 6908fi 6909fi 6910OTOOL=$ac_cv_prog_OTOOL 6911if test -n "$OTOOL"; then 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6913$as_echo "$OTOOL" >&6; } 6914else 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6916$as_echo "no" >&6; } 6917fi 6918 6919 6920fi 6921if test -z "$ac_cv_prog_OTOOL"; then 6922 ac_ct_OTOOL=$OTOOL 6923 # Extract the first word of "otool", so it can be a program name with args. 6924set dummy otool; ac_word=$2 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6926$as_echo_n "checking for $ac_word... " >&6; } 6927if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 if test -n "$ac_ct_OTOOL"; then 6931 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6932else 6933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6934for as_dir in $PATH 6935do 6936 IFS=$as_save_IFS 6937 test -z "$as_dir" && as_dir=. 6938 for ac_exec_ext in '' $ac_executable_extensions; do 6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6940 ac_cv_prog_ac_ct_OTOOL="otool" 6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6942 break 2 6943 fi 6944done 6945 done 6946IFS=$as_save_IFS 6947 6948fi 6949fi 6950ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6951if test -n "$ac_ct_OTOOL"; then 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6953$as_echo "$ac_ct_OTOOL" >&6; } 6954else 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6956$as_echo "no" >&6; } 6957fi 6958 6959 if test "x$ac_ct_OTOOL" = x; then 6960 OTOOL=":" 6961 else 6962 case $cross_compiling:$ac_tool_warned in 6963yes:) 6964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6966ac_tool_warned=yes ;; 6967esac 6968 OTOOL=$ac_ct_OTOOL 6969 fi 6970else 6971 OTOOL="$ac_cv_prog_OTOOL" 6972fi 6973 6974 if test -n "$ac_tool_prefix"; then 6975 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6976set dummy ${ac_tool_prefix}otool64; ac_word=$2 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6978$as_echo_n "checking for $ac_word... " >&6; } 6979if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 if test -n "$OTOOL64"; then 6983 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6984else 6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6986for as_dir in $PATH 6987do 6988 IFS=$as_save_IFS 6989 test -z "$as_dir" && as_dir=. 6990 for ac_exec_ext in '' $ac_executable_extensions; do 6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6992 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6994 break 2 6995 fi 6996done 6997 done 6998IFS=$as_save_IFS 6999 7000fi 7001fi 7002OTOOL64=$ac_cv_prog_OTOOL64 7003if test -n "$OTOOL64"; then 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7005$as_echo "$OTOOL64" >&6; } 7006else 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7008$as_echo "no" >&6; } 7009fi 7010 7011 7012fi 7013if test -z "$ac_cv_prog_OTOOL64"; then 7014 ac_ct_OTOOL64=$OTOOL64 7015 # Extract the first word of "otool64", so it can be a program name with args. 7016set dummy otool64; ac_word=$2 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7018$as_echo_n "checking for $ac_word... " >&6; } 7019if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 if test -n "$ac_ct_OTOOL64"; then 7023 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7024else 7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7026for as_dir in $PATH 7027do 7028 IFS=$as_save_IFS 7029 test -z "$as_dir" && as_dir=. 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7032 ac_cv_prog_ac_ct_OTOOL64="otool64" 7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7034 break 2 7035 fi 7036done 7037 done 7038IFS=$as_save_IFS 7039 7040fi 7041fi 7042ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7043if test -n "$ac_ct_OTOOL64"; then 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7045$as_echo "$ac_ct_OTOOL64" >&6; } 7046else 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7048$as_echo "no" >&6; } 7049fi 7050 7051 if test "x$ac_ct_OTOOL64" = x; then 7052 OTOOL64=":" 7053 else 7054 case $cross_compiling:$ac_tool_warned in 7055yes:) 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7058ac_tool_warned=yes ;; 7059esac 7060 OTOOL64=$ac_ct_OTOOL64 7061 fi 7062else 7063 OTOOL64="$ac_cv_prog_OTOOL64" 7064fi 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7093$as_echo_n "checking for -single_module linker flag... " >&6; } 7094if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 lt_cv_apple_cc_single_mod=no 7098 if test -z "${LT_MULTI_MODULE}"; then 7099 # By default we will add the -single_module flag. You can override 7100 # by either setting the environment variable LT_MULTI_MODULE 7101 # non-empty at configure time, or by adding -multi_module to the 7102 # link flags. 7103 rm -rf libconftest.dylib* 7104 echo "int foo(void){return 1;}" > conftest.c 7105 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7106-dynamiclib -Wl,-single_module conftest.c" >&5 7107 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7108 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7109 _lt_result=$? 7110 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7111 lt_cv_apple_cc_single_mod=yes 7112 else 7113 cat conftest.err >&5 7114 fi 7115 rm -rf libconftest.dylib* 7116 rm -f conftest.* 7117 fi 7118fi 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7120$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7122$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7123if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 lt_cv_ld_exported_symbols_list=no 7127 save_LDFLAGS=$LDFLAGS 7128 echo "_main" > conftest.sym 7129 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7131/* end confdefs.h. */ 7132 7133int 7134main () 7135{ 7136 7137 ; 7138 return 0; 7139} 7140_ACEOF 7141if ac_fn_c_try_link "$LINENO"; then : 7142 lt_cv_ld_exported_symbols_list=yes 7143else 7144 lt_cv_ld_exported_symbols_list=no 7145fi 7146rm -f core conftest.err conftest.$ac_objext \ 7147 conftest$ac_exeext conftest.$ac_ext 7148 LDFLAGS="$save_LDFLAGS" 7149 7150fi 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7152$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7154$as_echo_n "checking for -force_load linker flag... " >&6; } 7155if test "${lt_cv_ld_force_load+set}" = set; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 lt_cv_ld_force_load=no 7159 cat > conftest.c << _LT_EOF 7160int forced_loaded() { return 2;} 7161_LT_EOF 7162 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7163 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7164 echo "$AR cru libconftest.a conftest.o" >&5 7165 $AR cru libconftest.a conftest.o 2>&5 7166 cat > conftest.c << _LT_EOF 7167int main() { return 0;} 7168_LT_EOF 7169 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7170 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7171 _lt_result=$? 7172 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7173 lt_cv_ld_force_load=yes 7174 else 7175 cat conftest.err >&5 7176 fi 7177 rm -f conftest.err libconftest.a conftest conftest.c 7178 rm -rf conftest.dSYM 7179 7180fi 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7182$as_echo "$lt_cv_ld_force_load" >&6; } 7183 case $host_os in 7184 rhapsody* | darwin1.[012]) 7185 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7186 darwin1.*) 7187 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7188 darwin*) # darwin 5.x on 7189 # if running on 10.5 or later, the deployment target defaults 7190 # to the OS version, if on x86, and 10.4, the deployment 7191 # target defaults to 10.4. Don't you love it? 7192 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7193 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7194 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7195 10.[012][,.]*) 7196 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7197 10.*) 7198 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7199 esac 7200 ;; 7201 esac 7202 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7203 _lt_dar_single_mod='$single_module' 7204 fi 7205 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7206 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7207 else 7208 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7209 fi 7210 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7211 _lt_dsymutil='~$DSYMUTIL $lib || :' 7212 else 7213 _lt_dsymutil= 7214 fi 7215 ;; 7216 esac 7217 7218ac_ext=c 7219ac_cpp='$CPP $CPPFLAGS' 7220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7222ac_compiler_gnu=$ac_cv_c_compiler_gnu 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7224$as_echo_n "checking how to run the C preprocessor... " >&6; } 7225# On Suns, sometimes $CPP names a directory. 7226if test -n "$CPP" && test -d "$CPP"; then 7227 CPP= 7228fi 7229if test -z "$CPP"; then 7230 if test "${ac_cv_prog_CPP+set}" = set; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 # Double quotes because CPP needs to be expanded 7234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7235 do 7236 ac_preproc_ok=false 7237for ac_c_preproc_warn_flag in '' yes 7238do 7239 # Use a header file that comes with gcc, so configuring glibc 7240 # with a fresh cross-compiler works. 7241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7242 # <limits.h> exists even on freestanding compilers. 7243 # On the NeXT, cc -E runs the code through the compiler's parser, 7244 # not just through cpp. "Syntax error" is here to catch this case. 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247#ifdef __STDC__ 7248# include <limits.h> 7249#else 7250# include <assert.h> 7251#endif 7252 Syntax error 7253_ACEOF 7254if ac_fn_c_try_cpp "$LINENO"; then : 7255 7256else 7257 # Broken: fails on valid input. 7258continue 7259fi 7260rm -f conftest.err conftest.$ac_ext 7261 7262 # OK, works on sane cases. Now check whether nonexistent headers 7263 # can be detected and how. 7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265/* end confdefs.h. */ 7266#include <ac_nonexistent.h> 7267_ACEOF 7268if ac_fn_c_try_cpp "$LINENO"; then : 7269 # Broken: success on invalid input. 7270continue 7271else 7272 # Passes both tests. 7273ac_preproc_ok=: 7274break 7275fi 7276rm -f conftest.err conftest.$ac_ext 7277 7278done 7279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7280rm -f conftest.err conftest.$ac_ext 7281if $ac_preproc_ok; then : 7282 break 7283fi 7284 7285 done 7286 ac_cv_prog_CPP=$CPP 7287 7288fi 7289 CPP=$ac_cv_prog_CPP 7290else 7291 ac_cv_prog_CPP=$CPP 7292fi 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7294$as_echo "$CPP" >&6; } 7295ac_preproc_ok=false 7296for ac_c_preproc_warn_flag in '' yes 7297do 7298 # Use a header file that comes with gcc, so configuring glibc 7299 # with a fresh cross-compiler works. 7300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7301 # <limits.h> exists even on freestanding compilers. 7302 # On the NeXT, cc -E runs the code through the compiler's parser, 7303 # not just through cpp. "Syntax error" is here to catch this case. 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306#ifdef __STDC__ 7307# include <limits.h> 7308#else 7309# include <assert.h> 7310#endif 7311 Syntax error 7312_ACEOF 7313if ac_fn_c_try_cpp "$LINENO"; then : 7314 7315else 7316 # Broken: fails on valid input. 7317continue 7318fi 7319rm -f conftest.err conftest.$ac_ext 7320 7321 # OK, works on sane cases. Now check whether nonexistent headers 7322 # can be detected and how. 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325#include <ac_nonexistent.h> 7326_ACEOF 7327if ac_fn_c_try_cpp "$LINENO"; then : 7328 # Broken: success on invalid input. 7329continue 7330else 7331 # Passes both tests. 7332ac_preproc_ok=: 7333break 7334fi 7335rm -f conftest.err conftest.$ac_ext 7336 7337done 7338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7339rm -f conftest.err conftest.$ac_ext 7340if $ac_preproc_ok; then : 7341 7342else 7343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7345as_fn_error "C preprocessor \"$CPP\" fails sanity check 7346See \`config.log' for more details." "$LINENO" 5; } 7347fi 7348 7349ac_ext=c 7350ac_cpp='$CPP $CPPFLAGS' 7351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7353ac_compiler_gnu=$ac_cv_c_compiler_gnu 7354 7355 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7357$as_echo_n "checking for ANSI C header files... " >&6; } 7358if test "${ac_cv_header_stdc+set}" = set; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363#include <stdlib.h> 7364#include <stdarg.h> 7365#include <string.h> 7366#include <float.h> 7367 7368int 7369main () 7370{ 7371 7372 ; 7373 return 0; 7374} 7375_ACEOF 7376if ac_fn_c_try_compile "$LINENO"; then : 7377 ac_cv_header_stdc=yes 7378else 7379 ac_cv_header_stdc=no 7380fi 7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7382 7383if test $ac_cv_header_stdc = yes; then 7384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387#include <string.h> 7388 7389_ACEOF 7390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7391 $EGREP "memchr" >/dev/null 2>&1; then : 7392 7393else 7394 ac_cv_header_stdc=no 7395fi 7396rm -f conftest* 7397 7398fi 7399 7400if test $ac_cv_header_stdc = yes; then 7401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404#include <stdlib.h> 7405 7406_ACEOF 7407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7408 $EGREP "free" >/dev/null 2>&1; then : 7409 7410else 7411 ac_cv_header_stdc=no 7412fi 7413rm -f conftest* 7414 7415fi 7416 7417if test $ac_cv_header_stdc = yes; then 7418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7419 if test "$cross_compiling" = yes; then : 7420 : 7421else 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424#include <ctype.h> 7425#include <stdlib.h> 7426#if ((' ' & 0x0FF) == 0x020) 7427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7429#else 7430# define ISLOWER(c) \ 7431 (('a' <= (c) && (c) <= 'i') \ 7432 || ('j' <= (c) && (c) <= 'r') \ 7433 || ('s' <= (c) && (c) <= 'z')) 7434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7435#endif 7436 7437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7438int 7439main () 7440{ 7441 int i; 7442 for (i = 0; i < 256; i++) 7443 if (XOR (islower (i), ISLOWER (i)) 7444 || toupper (i) != TOUPPER (i)) 7445 return 2; 7446 return 0; 7447} 7448_ACEOF 7449if ac_fn_c_try_run "$LINENO"; then : 7450 7451else 7452 ac_cv_header_stdc=no 7453fi 7454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7455 conftest.$ac_objext conftest.beam conftest.$ac_ext 7456fi 7457 7458fi 7459fi 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7461$as_echo "$ac_cv_header_stdc" >&6; } 7462if test $ac_cv_header_stdc = yes; then 7463 7464$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7465 7466fi 7467 7468# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7469for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7470 inttypes.h stdint.h unistd.h 7471do : 7472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7473ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7474" 7475eval as_val=\$$as_ac_Header 7476 if test "x$as_val" = x""yes; then : 7477 cat >>confdefs.h <<_ACEOF 7478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7479_ACEOF 7480 7481fi 7482 7483done 7484 7485 7486for ac_header in dlfcn.h 7487do : 7488 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7489" 7490if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7491 cat >>confdefs.h <<_ACEOF 7492#define HAVE_DLFCN_H 1 7493_ACEOF 7494 7495fi 7496 7497done 7498 7499 7500 7501 7502 7503 7504# Set options 7505 7506 7507 7508 7509 enable_win32_dll=no 7510 7511 7512 # Check whether --enable-shared was given. 7513if test "${enable_shared+set}" = set; then : 7514 enableval=$enable_shared; p=${PACKAGE-default} 7515 case $enableval in 7516 yes) enable_shared=yes ;; 7517 no) enable_shared=no ;; 7518 *) 7519 enable_shared=no 7520 # Look at the argument we got. We use all the common list separators. 7521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7522 for pkg in $enableval; do 7523 IFS="$lt_save_ifs" 7524 if test "X$pkg" = "X$p"; then 7525 enable_shared=yes 7526 fi 7527 done 7528 IFS="$lt_save_ifs" 7529 ;; 7530 esac 7531else 7532 enable_shared=yes 7533fi 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 # Check whether --enable-static was given. 7544if test "${enable_static+set}" = set; then : 7545 enableval=$enable_static; p=${PACKAGE-default} 7546 case $enableval in 7547 yes) enable_static=yes ;; 7548 no) enable_static=no ;; 7549 *) 7550 enable_static=no 7551 # Look at the argument we got. We use all the common list separators. 7552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7553 for pkg in $enableval; do 7554 IFS="$lt_save_ifs" 7555 if test "X$pkg" = "X$p"; then 7556 enable_static=yes 7557 fi 7558 done 7559 IFS="$lt_save_ifs" 7560 ;; 7561 esac 7562else 7563 enable_static=yes 7564fi 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575# Check whether --with-pic was given. 7576if test "${with_pic+set}" = set; then : 7577 withval=$with_pic; pic_mode="$withval" 7578else 7579 pic_mode=default 7580fi 7581 7582 7583test -z "$pic_mode" && pic_mode=default 7584 7585 7586 7587 7588 7589 7590 7591 # Check whether --enable-fast-install was given. 7592if test "${enable_fast_install+set}" = set; then : 7593 enableval=$enable_fast_install; p=${PACKAGE-default} 7594 case $enableval in 7595 yes) enable_fast_install=yes ;; 7596 no) enable_fast_install=no ;; 7597 *) 7598 enable_fast_install=no 7599 # Look at the argument we got. We use all the common list separators. 7600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7601 for pkg in $enableval; do 7602 IFS="$lt_save_ifs" 7603 if test "X$pkg" = "X$p"; then 7604 enable_fast_install=yes 7605 fi 7606 done 7607 IFS="$lt_save_ifs" 7608 ;; 7609 esac 7610else 7611 enable_fast_install=yes 7612fi 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624# This can be used to rebuild libtool when needed 7625LIBTOOL_DEPS="$ltmain" 7626 7627# Always use our own libtool. 7628LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655test -z "$LN_S" && LN_S="ln -s" 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670if test -n "${ZSH_VERSION+set}" ; then 7671 setopt NO_GLOB_SUBST 7672fi 7673 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7675$as_echo_n "checking for objdir... " >&6; } 7676if test "${lt_cv_objdir+set}" = set; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 rm -f .libs 2>/dev/null 7680mkdir .libs 2>/dev/null 7681if test -d .libs; then 7682 lt_cv_objdir=.libs 7683else 7684 # MS-DOS does not allow filenames that begin with a dot. 7685 lt_cv_objdir=_libs 7686fi 7687rmdir .libs 2>/dev/null 7688fi 7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7690$as_echo "$lt_cv_objdir" >&6; } 7691objdir=$lt_cv_objdir 7692 7693 7694 7695 7696 7697cat >>confdefs.h <<_ACEOF 7698#define LT_OBJDIR "$lt_cv_objdir/" 7699_ACEOF 7700 7701 7702 7703 7704case $host_os in 7705aix3*) 7706 # AIX sometimes has problems with the GCC collect2 program. For some 7707 # reason, if we set the COLLECT_NAMES environment variable, the problems 7708 # vanish in a puff of smoke. 7709 if test "X${COLLECT_NAMES+set}" != Xset; then 7710 COLLECT_NAMES= 7711 export COLLECT_NAMES 7712 fi 7713 ;; 7714esac 7715 7716# Global variables: 7717ofile=libtool 7718can_build_shared=yes 7719 7720# All known linkers require a `.a' archive for static linking (except MSVC, 7721# which needs '.lib'). 7722libext=a 7723 7724with_gnu_ld="$lt_cv_prog_gnu_ld" 7725 7726old_CC="$CC" 7727old_CFLAGS="$CFLAGS" 7728 7729# Set sane defaults for various variables 7730test -z "$CC" && CC=cc 7731test -z "$LTCC" && LTCC=$CC 7732test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7733test -z "$LD" && LD=ld 7734test -z "$ac_objext" && ac_objext=o 7735 7736for cc_temp in $compiler""; do 7737 case $cc_temp in 7738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7740 \-*) ;; 7741 *) break;; 7742 esac 7743done 7744cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7745 7746 7747# Only perform the check for file, if the check method requires it 7748test -z "$MAGIC_CMD" && MAGIC_CMD=file 7749case $deplibs_check_method in 7750file_magic*) 7751 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7753$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7754if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7755 $as_echo_n "(cached) " >&6 7756else 7757 case $MAGIC_CMD in 7758[\\/*] | ?:[\\/]*) 7759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7760 ;; 7761*) 7762 lt_save_MAGIC_CMD="$MAGIC_CMD" 7763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7764 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7765 for ac_dir in $ac_dummy; do 7766 IFS="$lt_save_ifs" 7767 test -z "$ac_dir" && ac_dir=. 7768 if test -f $ac_dir/${ac_tool_prefix}file; then 7769 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7770 if test -n "$file_magic_test_file"; then 7771 case $deplibs_check_method in 7772 "file_magic "*) 7773 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7776 $EGREP "$file_magic_regex" > /dev/null; then 7777 : 7778 else 7779 cat <<_LT_EOF 1>&2 7780 7781*** Warning: the command libtool uses to detect shared libraries, 7782*** $file_magic_cmd, produces output that libtool cannot recognize. 7783*** The result is that libtool may fail to recognize shared libraries 7784*** as such. This will affect the creation of libtool libraries that 7785*** depend on shared libraries, but programs linked with such libtool 7786*** libraries will work regardless of this problem. Nevertheless, you 7787*** may want to report the problem to your system manager and/or to 7788*** bug-libtool@gnu.org 7789 7790_LT_EOF 7791 fi ;; 7792 esac 7793 fi 7794 break 7795 fi 7796 done 7797 IFS="$lt_save_ifs" 7798 MAGIC_CMD="$lt_save_MAGIC_CMD" 7799 ;; 7800esac 7801fi 7802 7803MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7804if test -n "$MAGIC_CMD"; then 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7806$as_echo "$MAGIC_CMD" >&6; } 7807else 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7809$as_echo "no" >&6; } 7810fi 7811 7812 7813 7814 7815 7816if test -z "$lt_cv_path_MAGIC_CMD"; then 7817 if test -n "$ac_tool_prefix"; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7819$as_echo_n "checking for file... " >&6; } 7820if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7821 $as_echo_n "(cached) " >&6 7822else 7823 case $MAGIC_CMD in 7824[\\/*] | ?:[\\/]*) 7825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7826 ;; 7827*) 7828 lt_save_MAGIC_CMD="$MAGIC_CMD" 7829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7831 for ac_dir in $ac_dummy; do 7832 IFS="$lt_save_ifs" 7833 test -z "$ac_dir" && ac_dir=. 7834 if test -f $ac_dir/file; then 7835 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7836 if test -n "$file_magic_test_file"; then 7837 case $deplibs_check_method in 7838 "file_magic "*) 7839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7842 $EGREP "$file_magic_regex" > /dev/null; then 7843 : 7844 else 7845 cat <<_LT_EOF 1>&2 7846 7847*** Warning: the command libtool uses to detect shared libraries, 7848*** $file_magic_cmd, produces output that libtool cannot recognize. 7849*** The result is that libtool may fail to recognize shared libraries 7850*** as such. This will affect the creation of libtool libraries that 7851*** depend on shared libraries, but programs linked with such libtool 7852*** libraries will work regardless of this problem. Nevertheless, you 7853*** may want to report the problem to your system manager and/or to 7854*** bug-libtool@gnu.org 7855 7856_LT_EOF 7857 fi ;; 7858 esac 7859 fi 7860 break 7861 fi 7862 done 7863 IFS="$lt_save_ifs" 7864 MAGIC_CMD="$lt_save_MAGIC_CMD" 7865 ;; 7866esac 7867fi 7868 7869MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7870if test -n "$MAGIC_CMD"; then 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7872$as_echo "$MAGIC_CMD" >&6; } 7873else 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7875$as_echo "no" >&6; } 7876fi 7877 7878 7879 else 7880 MAGIC_CMD=: 7881 fi 7882fi 7883 7884 fi 7885 ;; 7886esac 7887 7888# Use C for the default configuration in the libtool script 7889 7890lt_save_CC="$CC" 7891ac_ext=c 7892ac_cpp='$CPP $CPPFLAGS' 7893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7895ac_compiler_gnu=$ac_cv_c_compiler_gnu 7896 7897 7898# Source file extension for C test sources. 7899ac_ext=c 7900 7901# Object file extension for compiled C test sources. 7902objext=o 7903objext=$objext 7904 7905# Code to be used in simple compile tests 7906lt_simple_compile_test_code="int some_variable = 0;" 7907 7908# Code to be used in simple link tests 7909lt_simple_link_test_code='int main(){return(0);}' 7910 7911 7912 7913 7914 7915 7916 7917# If no C compiler was specified, use CC. 7918LTCC=${LTCC-"$CC"} 7919 7920# If no C compiler flags were specified, use CFLAGS. 7921LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7922 7923# Allow CC to be a program name with arguments. 7924compiler=$CC 7925 7926# Save the default compiler, since it gets overwritten when the other 7927# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7928compiler_DEFAULT=$CC 7929 7930# save warnings/boilerplate of simple test code 7931ac_outfile=conftest.$ac_objext 7932echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7933eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7934_lt_compiler_boilerplate=`cat conftest.err` 7935$RM conftest* 7936 7937ac_outfile=conftest.$ac_objext 7938echo "$lt_simple_link_test_code" >conftest.$ac_ext 7939eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7940_lt_linker_boilerplate=`cat conftest.err` 7941$RM -r conftest* 7942 7943 7944## CAVEAT EMPTOR: 7945## There is no encapsulation within the following macros, do not change 7946## the running order or otherwise move them around unless you know exactly 7947## what you are doing... 7948if test -n "$compiler"; then 7949 7950lt_prog_compiler_no_builtin_flag= 7951 7952if test "$GCC" = yes; then 7953 case $cc_basename in 7954 nvcc*) 7955 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7956 *) 7957 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7958 esac 7959 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7961$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7962if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 lt_cv_prog_compiler_rtti_exceptions=no 7966 ac_outfile=conftest.$ac_objext 7967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7968 lt_compiler_flag="-fno-rtti -fno-exceptions" 7969 # Insert the option either (1) after the last *FLAGS variable, or 7970 # (2) before a word containing "conftest.", or (3) at the end. 7971 # Note that $ac_compile itself does not contain backslashes and begins 7972 # with a dollar sign (not a hyphen), so the echo should work correctly. 7973 # The option is referenced via a variable to avoid confusing sed. 7974 lt_compile=`echo "$ac_compile" | $SED \ 7975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7977 -e 's:$: $lt_compiler_flag:'` 7978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7979 (eval "$lt_compile" 2>conftest.err) 7980 ac_status=$? 7981 cat conftest.err >&5 7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7983 if (exit $ac_status) && test -s "$ac_outfile"; then 7984 # The compiler can only warn and ignore the option if not recognized 7985 # So say no if there are warnings other than the usual output. 7986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7989 lt_cv_prog_compiler_rtti_exceptions=yes 7990 fi 7991 fi 7992 $RM conftest* 7993 7994fi 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7996$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7997 7998if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7999 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8000else 8001 : 8002fi 8003 8004fi 8005 8006 8007 8008 8009 8010 8011 lt_prog_compiler_wl= 8012lt_prog_compiler_pic= 8013lt_prog_compiler_static= 8014 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8016$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8017 8018 if test "$GCC" = yes; then 8019 lt_prog_compiler_wl='-Wl,' 8020 lt_prog_compiler_static='-static' 8021 8022 case $host_os in 8023 aix*) 8024 # All AIX code is PIC. 8025 if test "$host_cpu" = ia64; then 8026 # AIX 5 now supports IA64 processor 8027 lt_prog_compiler_static='-Bstatic' 8028 fi 8029 lt_prog_compiler_pic='-fPIC' 8030 ;; 8031 8032 amigaos*) 8033 case $host_cpu in 8034 powerpc) 8035 # see comment about AmigaOS4 .so support 8036 lt_prog_compiler_pic='-fPIC' 8037 ;; 8038 m68k) 8039 # FIXME: we need at least 68020 code to build shared libraries, but 8040 # adding the `-m68020' flag to GCC prevents building anything better, 8041 # like `-m68040'. 8042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8043 ;; 8044 esac 8045 ;; 8046 8047 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8048 # PIC is the default for these OSes. 8049 ;; 8050 8051 mingw* | cygwin* | pw32* | os2* | cegcc*) 8052 # This hack is so that the source file can tell whether it is being 8053 # built for inclusion in a dll (and should export symbols for example). 8054 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8055 # (--disable-auto-import) libraries 8056 lt_prog_compiler_pic='-DDLL_EXPORT' 8057 ;; 8058 8059 darwin* | rhapsody*) 8060 # PIC is the default on this platform 8061 # Common symbols not allowed in MH_DYLIB files 8062 lt_prog_compiler_pic='-fno-common' 8063 ;; 8064 8065 haiku*) 8066 # PIC is the default for Haiku. 8067 # The "-static" flag exists, but is broken. 8068 lt_prog_compiler_static= 8069 ;; 8070 8071 hpux*) 8072 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8073 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8074 # sets the default TLS model and affects inlining. 8075 case $host_cpu in 8076 hppa*64*) 8077 # +Z the default 8078 ;; 8079 *) 8080 lt_prog_compiler_pic='-fPIC' 8081 ;; 8082 esac 8083 ;; 8084 8085 interix[3-9]*) 8086 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8087 # Instead, we relocate shared libraries at runtime. 8088 ;; 8089 8090 msdosdjgpp*) 8091 # Just because we use GCC doesn't mean we suddenly get shared libraries 8092 # on systems that don't support them. 8093 lt_prog_compiler_can_build_shared=no 8094 enable_shared=no 8095 ;; 8096 8097 *nto* | *qnx*) 8098 # QNX uses GNU C++, but need to define -shared option too, otherwise 8099 # it will coredump. 8100 lt_prog_compiler_pic='-fPIC -shared' 8101 ;; 8102 8103 sysv4*MP*) 8104 if test -d /usr/nec; then 8105 lt_prog_compiler_pic=-Kconform_pic 8106 fi 8107 ;; 8108 8109 *) 8110 lt_prog_compiler_pic='-fPIC' 8111 ;; 8112 esac 8113 8114 case $cc_basename in 8115 nvcc*) # Cuda Compiler Driver 2.2 8116 lt_prog_compiler_wl='-Xlinker ' 8117 lt_prog_compiler_pic='-Xcompiler -fPIC' 8118 ;; 8119 esac 8120 else 8121 # PORTME Check for flag to pass linker flags through the system compiler. 8122 case $host_os in 8123 aix*) 8124 lt_prog_compiler_wl='-Wl,' 8125 if test "$host_cpu" = ia64; then 8126 # AIX 5 now supports IA64 processor 8127 lt_prog_compiler_static='-Bstatic' 8128 else 8129 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8130 fi 8131 ;; 8132 8133 mingw* | cygwin* | pw32* | os2* | cegcc*) 8134 # This hack is so that the source file can tell whether it is being 8135 # built for inclusion in a dll (and should export symbols for example). 8136 lt_prog_compiler_pic='-DDLL_EXPORT' 8137 ;; 8138 8139 hpux9* | hpux10* | hpux11*) 8140 lt_prog_compiler_wl='-Wl,' 8141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8142 # not for PA HP-UX. 8143 case $host_cpu in 8144 hppa*64*|ia64*) 8145 # +Z the default 8146 ;; 8147 *) 8148 lt_prog_compiler_pic='+Z' 8149 ;; 8150 esac 8151 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8152 lt_prog_compiler_static='${wl}-a ${wl}archive' 8153 ;; 8154 8155 irix5* | irix6* | nonstopux*) 8156 lt_prog_compiler_wl='-Wl,' 8157 # PIC (with -KPIC) is the default. 8158 lt_prog_compiler_static='-non_shared' 8159 ;; 8160 8161 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8162 case $cc_basename in 8163 # old Intel for x86_64 which still supported -KPIC. 8164 ecc*) 8165 lt_prog_compiler_wl='-Wl,' 8166 lt_prog_compiler_pic='-KPIC' 8167 lt_prog_compiler_static='-static' 8168 ;; 8169 # icc used to be incompatible with GCC. 8170 # ICC 10 doesn't accept -KPIC any more. 8171 icc* | ifort*) 8172 lt_prog_compiler_wl='-Wl,' 8173 lt_prog_compiler_pic='-fPIC' 8174 lt_prog_compiler_static='-static' 8175 ;; 8176 # Lahey Fortran 8.1. 8177 lf95*) 8178 lt_prog_compiler_wl='-Wl,' 8179 lt_prog_compiler_pic='--shared' 8180 lt_prog_compiler_static='--static' 8181 ;; 8182 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8183 # Portland Group compilers (*not* the Pentium gcc compiler, 8184 # which looks to be a dead project) 8185 lt_prog_compiler_wl='-Wl,' 8186 lt_prog_compiler_pic='-fpic' 8187 lt_prog_compiler_static='-Bstatic' 8188 ;; 8189 ccc*) 8190 lt_prog_compiler_wl='-Wl,' 8191 # All Alpha code is PIC. 8192 lt_prog_compiler_static='-non_shared' 8193 ;; 8194 xl* | bgxl* | bgf* | mpixl*) 8195 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8196 lt_prog_compiler_wl='-Wl,' 8197 lt_prog_compiler_pic='-qpic' 8198 lt_prog_compiler_static='-qstaticlink' 8199 ;; 8200 *) 8201 case `$CC -V 2>&1 | sed 5q` in 8202 *Sun\ F* | *Sun*Fortran*) 8203 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8204 lt_prog_compiler_pic='-KPIC' 8205 lt_prog_compiler_static='-Bstatic' 8206 lt_prog_compiler_wl='' 8207 ;; 8208 *Sun\ C*) 8209 # Sun C 5.9 8210 lt_prog_compiler_pic='-KPIC' 8211 lt_prog_compiler_static='-Bstatic' 8212 lt_prog_compiler_wl='-Wl,' 8213 ;; 8214 esac 8215 ;; 8216 esac 8217 ;; 8218 8219 newsos6) 8220 lt_prog_compiler_pic='-KPIC' 8221 lt_prog_compiler_static='-Bstatic' 8222 ;; 8223 8224 *nto* | *qnx*) 8225 # QNX uses GNU C++, but need to define -shared option too, otherwise 8226 # it will coredump. 8227 lt_prog_compiler_pic='-fPIC -shared' 8228 ;; 8229 8230 osf3* | osf4* | osf5*) 8231 lt_prog_compiler_wl='-Wl,' 8232 # All OSF/1 code is PIC. 8233 lt_prog_compiler_static='-non_shared' 8234 ;; 8235 8236 rdos*) 8237 lt_prog_compiler_static='-non_shared' 8238 ;; 8239 8240 solaris*) 8241 lt_prog_compiler_pic='-KPIC' 8242 lt_prog_compiler_static='-Bstatic' 8243 case $cc_basename in 8244 f77* | f90* | f95*) 8245 lt_prog_compiler_wl='-Qoption ld ';; 8246 *) 8247 lt_prog_compiler_wl='-Wl,';; 8248 esac 8249 ;; 8250 8251 sunos4*) 8252 lt_prog_compiler_wl='-Qoption ld ' 8253 lt_prog_compiler_pic='-PIC' 8254 lt_prog_compiler_static='-Bstatic' 8255 ;; 8256 8257 sysv4 | sysv4.2uw2* | sysv4.3*) 8258 lt_prog_compiler_wl='-Wl,' 8259 lt_prog_compiler_pic='-KPIC' 8260 lt_prog_compiler_static='-Bstatic' 8261 ;; 8262 8263 sysv4*MP*) 8264 if test -d /usr/nec ;then 8265 lt_prog_compiler_pic='-Kconform_pic' 8266 lt_prog_compiler_static='-Bstatic' 8267 fi 8268 ;; 8269 8270 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8271 lt_prog_compiler_wl='-Wl,' 8272 lt_prog_compiler_pic='-KPIC' 8273 lt_prog_compiler_static='-Bstatic' 8274 ;; 8275 8276 unicos*) 8277 lt_prog_compiler_wl='-Wl,' 8278 lt_prog_compiler_can_build_shared=no 8279 ;; 8280 8281 uts4*) 8282 lt_prog_compiler_pic='-pic' 8283 lt_prog_compiler_static='-Bstatic' 8284 ;; 8285 8286 *) 8287 lt_prog_compiler_can_build_shared=no 8288 ;; 8289 esac 8290 fi 8291 8292case $host_os in 8293 # For platforms which do not support PIC, -DPIC is meaningless: 8294 *djgpp*) 8295 lt_prog_compiler_pic= 8296 ;; 8297 *) 8298 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8299 ;; 8300esac 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8302$as_echo "$lt_prog_compiler_pic" >&6; } 8303 8304 8305 8306 8307 8308 8309# 8310# Check to make sure the PIC flag actually works. 8311# 8312if test -n "$lt_prog_compiler_pic"; then 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8314$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8315if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8316 $as_echo_n "(cached) " >&6 8317else 8318 lt_cv_prog_compiler_pic_works=no 8319 ac_outfile=conftest.$ac_objext 8320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8321 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8322 # Insert the option either (1) after the last *FLAGS variable, or 8323 # (2) before a word containing "conftest.", or (3) at the end. 8324 # Note that $ac_compile itself does not contain backslashes and begins 8325 # with a dollar sign (not a hyphen), so the echo should work correctly. 8326 # The option is referenced via a variable to avoid confusing sed. 8327 lt_compile=`echo "$ac_compile" | $SED \ 8328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8330 -e 's:$: $lt_compiler_flag:'` 8331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8332 (eval "$lt_compile" 2>conftest.err) 8333 ac_status=$? 8334 cat conftest.err >&5 8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8336 if (exit $ac_status) && test -s "$ac_outfile"; then 8337 # The compiler can only warn and ignore the option if not recognized 8338 # So say no if there are warnings other than the usual output. 8339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8342 lt_cv_prog_compiler_pic_works=yes 8343 fi 8344 fi 8345 $RM conftest* 8346 8347fi 8348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8349$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8350 8351if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8352 case $lt_prog_compiler_pic in 8353 "" | " "*) ;; 8354 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8355 esac 8356else 8357 lt_prog_compiler_pic= 8358 lt_prog_compiler_can_build_shared=no 8359fi 8360 8361fi 8362 8363 8364 8365 8366 8367 8368# 8369# Check to make sure the static flag actually works. 8370# 8371wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8373$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8374if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 lt_cv_prog_compiler_static_works=no 8378 save_LDFLAGS="$LDFLAGS" 8379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8380 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8382 # The linker can only warn and ignore the option if not recognized 8383 # So say no if there are warnings 8384 if test -s conftest.err; then 8385 # Append any errors to the config.log. 8386 cat conftest.err 1>&5 8387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8389 if diff conftest.exp conftest.er2 >/dev/null; then 8390 lt_cv_prog_compiler_static_works=yes 8391 fi 8392 else 8393 lt_cv_prog_compiler_static_works=yes 8394 fi 8395 fi 8396 $RM -r conftest* 8397 LDFLAGS="$save_LDFLAGS" 8398 8399fi 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8401$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8402 8403if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8404 : 8405else 8406 lt_prog_compiler_static= 8407fi 8408 8409 8410 8411 8412 8413 8414 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8416$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8417if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 lt_cv_prog_compiler_c_o=no 8421 $RM -r conftest 2>/dev/null 8422 mkdir conftest 8423 cd conftest 8424 mkdir out 8425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8426 8427 lt_compiler_flag="-o out/conftest2.$ac_objext" 8428 # Insert the option either (1) after the last *FLAGS variable, or 8429 # (2) before a word containing "conftest.", or (3) at the end. 8430 # Note that $ac_compile itself does not contain backslashes and begins 8431 # with a dollar sign (not a hyphen), so the echo should work correctly. 8432 lt_compile=`echo "$ac_compile" | $SED \ 8433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8435 -e 's:$: $lt_compiler_flag:'` 8436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8437 (eval "$lt_compile" 2>out/conftest.err) 8438 ac_status=$? 8439 cat out/conftest.err >&5 8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8441 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8442 then 8443 # The compiler can only warn and ignore the option if not recognized 8444 # So say no if there are warnings 8445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8448 lt_cv_prog_compiler_c_o=yes 8449 fi 8450 fi 8451 chmod u+w . 2>&5 8452 $RM conftest* 8453 # SGI C++ compiler will create directory out/ii_files/ for 8454 # template instantiation 8455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8456 $RM out/* && rmdir out 8457 cd .. 8458 $RM -r conftest 8459 $RM conftest* 8460 8461fi 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8463$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8464 8465 8466 8467 8468 8469 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8471$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8472if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 lt_cv_prog_compiler_c_o=no 8476 $RM -r conftest 2>/dev/null 8477 mkdir conftest 8478 cd conftest 8479 mkdir out 8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8481 8482 lt_compiler_flag="-o out/conftest2.$ac_objext" 8483 # Insert the option either (1) after the last *FLAGS variable, or 8484 # (2) before a word containing "conftest.", or (3) at the end. 8485 # Note that $ac_compile itself does not contain backslashes and begins 8486 # with a dollar sign (not a hyphen), so the echo should work correctly. 8487 lt_compile=`echo "$ac_compile" | $SED \ 8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8490 -e 's:$: $lt_compiler_flag:'` 8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8492 (eval "$lt_compile" 2>out/conftest.err) 8493 ac_status=$? 8494 cat out/conftest.err >&5 8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8496 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8497 then 8498 # The compiler can only warn and ignore the option if not recognized 8499 # So say no if there are warnings 8500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8503 lt_cv_prog_compiler_c_o=yes 8504 fi 8505 fi 8506 chmod u+w . 2>&5 8507 $RM conftest* 8508 # SGI C++ compiler will create directory out/ii_files/ for 8509 # template instantiation 8510 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8511 $RM out/* && rmdir out 8512 cd .. 8513 $RM -r conftest 8514 $RM conftest* 8515 8516fi 8517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8518$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8519 8520 8521 8522 8523hard_links="nottested" 8524if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8525 # do not overwrite the value of need_locks provided by the user 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8527$as_echo_n "checking if we can lock with hard links... " >&6; } 8528 hard_links=yes 8529 $RM conftest* 8530 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8531 touch conftest.a 8532 ln conftest.a conftest.b 2>&5 || hard_links=no 8533 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8535$as_echo "$hard_links" >&6; } 8536 if test "$hard_links" = no; then 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8538$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8539 need_locks=warn 8540 fi 8541else 8542 need_locks=no 8543fi 8544 8545 8546 8547 8548 8549 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8551$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8552 8553 runpath_var= 8554 allow_undefined_flag= 8555 always_export_symbols=no 8556 archive_cmds= 8557 archive_expsym_cmds= 8558 compiler_needs_object=no 8559 enable_shared_with_static_runtimes=no 8560 export_dynamic_flag_spec= 8561 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8562 hardcode_automatic=no 8563 hardcode_direct=no 8564 hardcode_direct_absolute=no 8565 hardcode_libdir_flag_spec= 8566 hardcode_libdir_flag_spec_ld= 8567 hardcode_libdir_separator= 8568 hardcode_minus_L=no 8569 hardcode_shlibpath_var=unsupported 8570 inherit_rpath=no 8571 link_all_deplibs=unknown 8572 module_cmds= 8573 module_expsym_cmds= 8574 old_archive_from_new_cmds= 8575 old_archive_from_expsyms_cmds= 8576 thread_safe_flag_spec= 8577 whole_archive_flag_spec= 8578 # include_expsyms should be a list of space-separated symbols to be *always* 8579 # included in the symbol list 8580 include_expsyms= 8581 # exclude_expsyms can be an extended regexp of symbols to exclude 8582 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8584 # as well as any symbol that contains `d'. 8585 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8587 # platforms (ab)use it in PIC code, but their linkers get confused if 8588 # the symbol is explicitly referenced. Since portable code cannot 8589 # rely on this symbol name, it's probably fine to never include it in 8590 # preloaded symbol tables. 8591 # Exclude shared library initialization/finalization symbols. 8592 extract_expsyms_cmds= 8593 8594 case $host_os in 8595 cygwin* | mingw* | pw32* | cegcc*) 8596 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8597 # When not using gcc, we currently assume that we are using 8598 # Microsoft Visual C++. 8599 if test "$GCC" != yes; then 8600 with_gnu_ld=no 8601 fi 8602 ;; 8603 interix*) 8604 # we just hope/assume this is gcc and not c89 (= MSVC++) 8605 with_gnu_ld=yes 8606 ;; 8607 openbsd*) 8608 with_gnu_ld=no 8609 ;; 8610 esac 8611 8612 ld_shlibs=yes 8613 8614 # On some targets, GNU ld is compatible enough with the native linker 8615 # that we're better off using the native interface for both. 8616 lt_use_gnu_ld_interface=no 8617 if test "$with_gnu_ld" = yes; then 8618 case $host_os in 8619 aix*) 8620 # The AIX port of GNU ld has always aspired to compatibility 8621 # with the native linker. However, as the warning in the GNU ld 8622 # block says, versions before 2.19.5* couldn't really create working 8623 # shared libraries, regardless of the interface used. 8624 case `$LD -v 2>&1` in 8625 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8626 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8627 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8628 *) 8629 lt_use_gnu_ld_interface=yes 8630 ;; 8631 esac 8632 ;; 8633 *) 8634 lt_use_gnu_ld_interface=yes 8635 ;; 8636 esac 8637 fi 8638 8639 if test "$lt_use_gnu_ld_interface" = yes; then 8640 # If archive_cmds runs LD, not CC, wlarc should be empty 8641 wlarc='${wl}' 8642 8643 # Set some defaults for GNU ld with shared library support. These 8644 # are reset later if shared libraries are not supported. Putting them 8645 # here allows them to be overridden if necessary. 8646 runpath_var=LD_RUN_PATH 8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8648 export_dynamic_flag_spec='${wl}--export-dynamic' 8649 # ancient GNU ld didn't support --whole-archive et. al. 8650 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8651 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8652 else 8653 whole_archive_flag_spec= 8654 fi 8655 supports_anon_versioning=no 8656 case `$LD -v 2>&1` in 8657 *GNU\ gold*) supports_anon_versioning=yes ;; 8658 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8659 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8660 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8661 *\ 2.11.*) ;; # other 2.11 versions 8662 *) supports_anon_versioning=yes ;; 8663 esac 8664 8665 # See if GNU ld supports shared libraries. 8666 case $host_os in 8667 aix[3-9]*) 8668 # On AIX/PPC, the GNU linker is very broken 8669 if test "$host_cpu" != ia64; then 8670 ld_shlibs=no 8671 cat <<_LT_EOF 1>&2 8672 8673*** Warning: the GNU linker, at least up to release 2.19, is reported 8674*** to be unable to reliably create shared libraries on AIX. 8675*** Therefore, libtool is disabling shared libraries support. If you 8676*** really care for shared libraries, you may want to install binutils 8677*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8678*** You will then need to restart the configuration process. 8679 8680_LT_EOF 8681 fi 8682 ;; 8683 8684 amigaos*) 8685 case $host_cpu in 8686 powerpc) 8687 # see comment about AmigaOS4 .so support 8688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8689 archive_expsym_cmds='' 8690 ;; 8691 m68k) 8692 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)' 8693 hardcode_libdir_flag_spec='-L$libdir' 8694 hardcode_minus_L=yes 8695 ;; 8696 esac 8697 ;; 8698 8699 beos*) 8700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8701 allow_undefined_flag=unsupported 8702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8703 # support --undefined. This deserves some investigation. FIXME 8704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8705 else 8706 ld_shlibs=no 8707 fi 8708 ;; 8709 8710 cygwin* | mingw* | pw32* | cegcc*) 8711 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8712 # as there is no search path for DLLs. 8713 hardcode_libdir_flag_spec='-L$libdir' 8714 export_dynamic_flag_spec='${wl}--export-all-symbols' 8715 allow_undefined_flag=unsupported 8716 always_export_symbols=no 8717 enable_shared_with_static_runtimes=yes 8718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8719 8720 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8722 # If the export-symbols file already is a .def file (1st line 8723 # is EXPORTS), use it as is; otherwise, prepend... 8724 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8725 cp $export_symbols $output_objdir/$soname.def; 8726 else 8727 echo EXPORTS > $output_objdir/$soname.def; 8728 cat $export_symbols >> $output_objdir/$soname.def; 8729 fi~ 8730 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8731 else 8732 ld_shlibs=no 8733 fi 8734 ;; 8735 8736 haiku*) 8737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8738 link_all_deplibs=yes 8739 ;; 8740 8741 interix[3-9]*) 8742 hardcode_direct=no 8743 hardcode_shlibpath_var=no 8744 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8745 export_dynamic_flag_spec='${wl}-E' 8746 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8747 # Instead, shared libraries are loaded at an image base (0x10000000 by 8748 # default) and relocated if they conflict, which is a slow very memory 8749 # consuming and fragmenting process. To avoid this, we pick a random, 8750 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8751 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8752 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8753 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' 8754 ;; 8755 8756 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8757 tmp_diet=no 8758 if test "$host_os" = linux-dietlibc; then 8759 case $cc_basename in 8760 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8761 esac 8762 fi 8763 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8764 && test "$tmp_diet" = no 8765 then 8766 tmp_addflag=' $pic_flag' 8767 tmp_sharedflag='-shared' 8768 case $cc_basename,$host_cpu in 8769 pgcc*) # Portland Group C compiler 8770 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' 8771 tmp_addflag=' $pic_flag' 8772 ;; 8773 pgf77* | pgf90* | pgf95* | pgfortran*) 8774 # Portland Group f77 and f90 compilers 8775 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' 8776 tmp_addflag=' $pic_flag -Mnomain' ;; 8777 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8778 tmp_addflag=' -i_dynamic' ;; 8779 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8780 tmp_addflag=' -i_dynamic -nofor_main' ;; 8781 ifc* | ifort*) # Intel Fortran compiler 8782 tmp_addflag=' -nofor_main' ;; 8783 lf95*) # Lahey Fortran 8.1 8784 whole_archive_flag_spec= 8785 tmp_sharedflag='--shared' ;; 8786 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8787 tmp_sharedflag='-qmkshrobj' 8788 tmp_addflag= ;; 8789 nvcc*) # Cuda Compiler Driver 2.2 8790 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' 8791 compiler_needs_object=yes 8792 ;; 8793 esac 8794 case `$CC -V 2>&1 | sed 5q` in 8795 *Sun\ C*) # Sun C 5.9 8796 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' 8797 compiler_needs_object=yes 8798 tmp_sharedflag='-G' ;; 8799 *Sun\ F*) # Sun Fortran 8.3 8800 tmp_sharedflag='-G' ;; 8801 esac 8802 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8803 8804 if test "x$supports_anon_versioning" = xyes; then 8805 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8807 echo "local: *; };" >> $output_objdir/$libname.ver~ 8808 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8809 fi 8810 8811 case $cc_basename in 8812 xlf* | bgf* | bgxlf* | mpixlf*) 8813 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8814 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8815 hardcode_libdir_flag_spec= 8816 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8817 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8818 if test "x$supports_anon_versioning" = xyes; then 8819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8821 echo "local: *; };" >> $output_objdir/$libname.ver~ 8822 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8823 fi 8824 ;; 8825 esac 8826 else 8827 ld_shlibs=no 8828 fi 8829 ;; 8830 8831 netbsd*) 8832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8833 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8834 wlarc= 8835 else 8836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8838 fi 8839 ;; 8840 8841 solaris*) 8842 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8843 ld_shlibs=no 8844 cat <<_LT_EOF 1>&2 8845 8846*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8847*** create shared libraries on Solaris systems. Therefore, libtool 8848*** is disabling shared libraries support. We urge you to upgrade GNU 8849*** binutils to release 2.9.1 or newer. Another option is to modify 8850*** your PATH or compiler configuration so that the native linker is 8851*** used, and then restart. 8852 8853_LT_EOF 8854 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8857 else 8858 ld_shlibs=no 8859 fi 8860 ;; 8861 8862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8863 case `$LD -v 2>&1` in 8864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8865 ld_shlibs=no 8866 cat <<_LT_EOF 1>&2 8867 8868*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8869*** reliably create shared libraries on SCO systems. Therefore, libtool 8870*** is disabling shared libraries support. We urge you to upgrade GNU 8871*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8872*** your PATH or compiler configuration so that the native linker is 8873*** used, and then restart. 8874 8875_LT_EOF 8876 ;; 8877 *) 8878 # For security reasons, it is highly recommended that you always 8879 # use absolute paths for naming shared libraries, and exclude the 8880 # DT_RUNPATH tag from executables and libraries. But doing so 8881 # requires that you compile everything twice, which is a pain. 8882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8886 else 8887 ld_shlibs=no 8888 fi 8889 ;; 8890 esac 8891 ;; 8892 8893 sunos4*) 8894 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8895 wlarc= 8896 hardcode_direct=yes 8897 hardcode_shlibpath_var=no 8898 ;; 8899 8900 *) 8901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8904 else 8905 ld_shlibs=no 8906 fi 8907 ;; 8908 esac 8909 8910 if test "$ld_shlibs" = no; then 8911 runpath_var= 8912 hardcode_libdir_flag_spec= 8913 export_dynamic_flag_spec= 8914 whole_archive_flag_spec= 8915 fi 8916 else 8917 # PORTME fill in a description of your system's linker (not GNU ld) 8918 case $host_os in 8919 aix3*) 8920 allow_undefined_flag=unsupported 8921 always_export_symbols=yes 8922 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' 8923 # Note: this linker hardcodes the directories in LIBPATH if there 8924 # are no directories specified by -L. 8925 hardcode_minus_L=yes 8926 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8927 # Neither direct hardcoding nor static linking is supported with a 8928 # broken collect2. 8929 hardcode_direct=unsupported 8930 fi 8931 ;; 8932 8933 aix[4-9]*) 8934 if test "$host_cpu" = ia64; then 8935 # On IA64, the linker does run time linking by default, so we don't 8936 # have to do anything special. 8937 aix_use_runtimelinking=no 8938 exp_sym_flag='-Bexport' 8939 no_entry_flag="" 8940 else 8941 # If we're using GNU nm, then we don't want the "-C" option. 8942 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8943 # Also, AIX nm treats weak defined symbols like other global 8944 # defined symbols, whereas GNU nm marks them as "W". 8945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8946 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' 8947 else 8948 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8949 fi 8950 aix_use_runtimelinking=no 8951 8952 # Test if we are trying to use run time linking or normal 8953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8954 # need to do runtime linking. 8955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8956 for ld_flag in $LDFLAGS; do 8957 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8958 aix_use_runtimelinking=yes 8959 break 8960 fi 8961 done 8962 ;; 8963 esac 8964 8965 exp_sym_flag='-bexport' 8966 no_entry_flag='-bnoentry' 8967 fi 8968 8969 # When large executables or shared objects are built, AIX ld can 8970 # have problems creating the table of contents. If linking a library 8971 # or program results in "error TOC overflow" add -mminimal-toc to 8972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8974 8975 archive_cmds='' 8976 hardcode_direct=yes 8977 hardcode_direct_absolute=yes 8978 hardcode_libdir_separator=':' 8979 link_all_deplibs=yes 8980 file_list_spec='${wl}-f,' 8981 8982 if test "$GCC" = yes; then 8983 case $host_os in aix4.[012]|aix4.[012].*) 8984 # We only want to do this on AIX 4.2 and lower, the check 8985 # below for broken collect2 doesn't work under 4.3+ 8986 collect2name=`${CC} -print-prog-name=collect2` 8987 if test -f "$collect2name" && 8988 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8989 then 8990 # We have reworked collect2 8991 : 8992 else 8993 # We have old collect2 8994 hardcode_direct=unsupported 8995 # It fails to find uninstalled libraries when the uninstalled 8996 # path is not listed in the libpath. Setting hardcode_minus_L 8997 # to unsupported forces relinking 8998 hardcode_minus_L=yes 8999 hardcode_libdir_flag_spec='-L$libdir' 9000 hardcode_libdir_separator= 9001 fi 9002 ;; 9003 esac 9004 shared_flag='-shared' 9005 if test "$aix_use_runtimelinking" = yes; then 9006 shared_flag="$shared_flag "'${wl}-G' 9007 fi 9008 else 9009 # not using gcc 9010 if test "$host_cpu" = ia64; then 9011 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9012 # chokes on -Wl,-G. The following line is correct: 9013 shared_flag='-G' 9014 else 9015 if test "$aix_use_runtimelinking" = yes; then 9016 shared_flag='${wl}-G' 9017 else 9018 shared_flag='${wl}-bM:SRE' 9019 fi 9020 fi 9021 fi 9022 9023 export_dynamic_flag_spec='${wl}-bexpall' 9024 # It seems that -bexpall does not export symbols beginning with 9025 # underscore (_), so it is better to generate a list of symbols to export. 9026 always_export_symbols=yes 9027 if test "$aix_use_runtimelinking" = yes; then 9028 # Warning - without using the other runtime loading flags (-brtl), 9029 # -berok will link without error, but may produce a broken library. 9030 allow_undefined_flag='-berok' 9031 # Determine the default libpath from the value encoded in an 9032 # empty executable. 9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9034/* end confdefs.h. */ 9035 9036int 9037main () 9038{ 9039 9040 ; 9041 return 0; 9042} 9043_ACEOF 9044if ac_fn_c_try_link "$LINENO"; then : 9045 9046lt_aix_libpath_sed=' 9047 /Import File Strings/,/^$/ { 9048 /^0/ { 9049 s/^0 *\(.*\)$/\1/ 9050 p 9051 } 9052 }' 9053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9054# Check for a 64-bit object if we didn't find anything. 9055if test -z "$aix_libpath"; then 9056 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9057fi 9058fi 9059rm -f core conftest.err conftest.$ac_objext \ 9060 conftest$ac_exeext conftest.$ac_ext 9061if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9062 9063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9064 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" 9065 else 9066 if test "$host_cpu" = ia64; then 9067 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9068 allow_undefined_flag="-z nodefs" 9069 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" 9070 else 9071 # Determine the default libpath from the value encoded in an 9072 # empty executable. 9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9074/* end confdefs.h. */ 9075 9076int 9077main () 9078{ 9079 9080 ; 9081 return 0; 9082} 9083_ACEOF 9084if ac_fn_c_try_link "$LINENO"; then : 9085 9086lt_aix_libpath_sed=' 9087 /Import File Strings/,/^$/ { 9088 /^0/ { 9089 s/^0 *\(.*\)$/\1/ 9090 p 9091 } 9092 }' 9093aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9094# Check for a 64-bit object if we didn't find anything. 9095if test -z "$aix_libpath"; then 9096 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9097fi 9098fi 9099rm -f core conftest.err conftest.$ac_objext \ 9100 conftest$ac_exeext conftest.$ac_ext 9101if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9102 9103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9104 # Warning - without using the other run time loading flags, 9105 # -berok will link without error, but may produce a broken library. 9106 no_undefined_flag=' ${wl}-bernotok' 9107 allow_undefined_flag=' ${wl}-berok' 9108 if test "$with_gnu_ld" = yes; then 9109 # We only use this code for GNU lds that support --whole-archive. 9110 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9111 else 9112 # Exported symbols can be pulled into shared objects from archives 9113 whole_archive_flag_spec='$convenience' 9114 fi 9115 archive_cmds_need_lc=yes 9116 # This is similar to how AIX traditionally builds its shared libraries. 9117 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' 9118 fi 9119 fi 9120 ;; 9121 9122 amigaos*) 9123 case $host_cpu in 9124 powerpc) 9125 # see comment about AmigaOS4 .so support 9126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9127 archive_expsym_cmds='' 9128 ;; 9129 m68k) 9130 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)' 9131 hardcode_libdir_flag_spec='-L$libdir' 9132 hardcode_minus_L=yes 9133 ;; 9134 esac 9135 ;; 9136 9137 bsdi[45]*) 9138 export_dynamic_flag_spec=-rdynamic 9139 ;; 9140 9141 cygwin* | mingw* | pw32* | cegcc*) 9142 # When not using gcc, we currently assume that we are using 9143 # Microsoft Visual C++. 9144 # hardcode_libdir_flag_spec is actually meaningless, as there is 9145 # no search path for DLLs. 9146 hardcode_libdir_flag_spec=' ' 9147 allow_undefined_flag=unsupported 9148 # Tell ltmain to make .lib files, not .a files. 9149 libext=lib 9150 # Tell ltmain to make .dll files, not .so files. 9151 shrext_cmds=".dll" 9152 # FIXME: Setting linknames here is a bad hack. 9153 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9154 # The linker will automatically build a .lib file if we build a DLL. 9155 old_archive_from_new_cmds='true' 9156 # FIXME: Should let the user specify the lib program. 9157 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9158 fix_srcfile_path='`cygpath -w "$srcfile"`' 9159 enable_shared_with_static_runtimes=yes 9160 ;; 9161 9162 darwin* | rhapsody*) 9163 9164 9165 archive_cmds_need_lc=no 9166 hardcode_direct=no 9167 hardcode_automatic=yes 9168 hardcode_shlibpath_var=unsupported 9169 if test "$lt_cv_ld_force_load" = "yes"; then 9170 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\"`' 9171 else 9172 whole_archive_flag_spec='' 9173 fi 9174 link_all_deplibs=yes 9175 allow_undefined_flag="$_lt_dar_allow_undefined" 9176 case $cc_basename in 9177 ifort*) _lt_dar_can_shared=yes ;; 9178 *) _lt_dar_can_shared=$GCC ;; 9179 esac 9180 if test "$_lt_dar_can_shared" = "yes"; then 9181 output_verbose_link_cmd=func_echo_all 9182 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9183 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9184 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}" 9185 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}" 9186 9187 else 9188 ld_shlibs=no 9189 fi 9190 9191 ;; 9192 9193 dgux*) 9194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9195 hardcode_libdir_flag_spec='-L$libdir' 9196 hardcode_shlibpath_var=no 9197 ;; 9198 9199 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9200 # support. Future versions do this automatically, but an explicit c++rt0.o 9201 # does not break anything, and helps significantly (at the cost of a little 9202 # extra space). 9203 freebsd2.2*) 9204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9205 hardcode_libdir_flag_spec='-R$libdir' 9206 hardcode_direct=yes 9207 hardcode_shlibpath_var=no 9208 ;; 9209 9210 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9211 freebsd2.*) 9212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9213 hardcode_direct=yes 9214 hardcode_minus_L=yes 9215 hardcode_shlibpath_var=no 9216 ;; 9217 9218 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9219 freebsd* | dragonfly*) 9220 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9221 hardcode_libdir_flag_spec='-R$libdir' 9222 hardcode_direct=yes 9223 hardcode_shlibpath_var=no 9224 ;; 9225 9226 hpux9*) 9227 if test "$GCC" = yes; then 9228 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' 9229 else 9230 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' 9231 fi 9232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9233 hardcode_libdir_separator=: 9234 hardcode_direct=yes 9235 9236 # hardcode_minus_L: Not really in the search PATH, 9237 # but as the default location of the library. 9238 hardcode_minus_L=yes 9239 export_dynamic_flag_spec='${wl}-E' 9240 ;; 9241 9242 hpux10*) 9243 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9244 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9245 else 9246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9247 fi 9248 if test "$with_gnu_ld" = no; then 9249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9250 hardcode_libdir_flag_spec_ld='+b $libdir' 9251 hardcode_libdir_separator=: 9252 hardcode_direct=yes 9253 hardcode_direct_absolute=yes 9254 export_dynamic_flag_spec='${wl}-E' 9255 # hardcode_minus_L: Not really in the search PATH, 9256 # but as the default location of the library. 9257 hardcode_minus_L=yes 9258 fi 9259 ;; 9260 9261 hpux11*) 9262 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9263 case $host_cpu in 9264 hppa*64*) 9265 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9266 ;; 9267 ia64*) 9268 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9269 ;; 9270 *) 9271 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9272 ;; 9273 esac 9274 else 9275 case $host_cpu in 9276 hppa*64*) 9277 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9278 ;; 9279 ia64*) 9280 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9281 ;; 9282 *) 9283 9284 # Older versions of the 11.00 compiler do not understand -b yet 9285 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9287$as_echo_n "checking if $CC understands -b... " >&6; } 9288if test "${lt_cv_prog_compiler__b+set}" = set; then : 9289 $as_echo_n "(cached) " >&6 9290else 9291 lt_cv_prog_compiler__b=no 9292 save_LDFLAGS="$LDFLAGS" 9293 LDFLAGS="$LDFLAGS -b" 9294 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9296 # The linker can only warn and ignore the option if not recognized 9297 # So say no if there are warnings 9298 if test -s conftest.err; then 9299 # Append any errors to the config.log. 9300 cat conftest.err 1>&5 9301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9303 if diff conftest.exp conftest.er2 >/dev/null; then 9304 lt_cv_prog_compiler__b=yes 9305 fi 9306 else 9307 lt_cv_prog_compiler__b=yes 9308 fi 9309 fi 9310 $RM -r conftest* 9311 LDFLAGS="$save_LDFLAGS" 9312 9313fi 9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9315$as_echo "$lt_cv_prog_compiler__b" >&6; } 9316 9317if test x"$lt_cv_prog_compiler__b" = xyes; then 9318 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9319else 9320 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9321fi 9322 9323 ;; 9324 esac 9325 fi 9326 if test "$with_gnu_ld" = no; then 9327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9328 hardcode_libdir_separator=: 9329 9330 case $host_cpu in 9331 hppa*64*|ia64*) 9332 hardcode_direct=no 9333 hardcode_shlibpath_var=no 9334 ;; 9335 *) 9336 hardcode_direct=yes 9337 hardcode_direct_absolute=yes 9338 export_dynamic_flag_spec='${wl}-E' 9339 9340 # hardcode_minus_L: Not really in the search PATH, 9341 # but as the default location of the library. 9342 hardcode_minus_L=yes 9343 ;; 9344 esac 9345 fi 9346 ;; 9347 9348 irix5* | irix6* | nonstopux*) 9349 if test "$GCC" = yes; then 9350 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' 9351 # Try to use the -exported_symbol ld option, if it does not 9352 # work, assume that -exports_file does not work either and 9353 # implicitly export all symbols. 9354 save_LDFLAGS="$LDFLAGS" 9355 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358int foo(void) {} 9359_ACEOF 9360if ac_fn_c_try_link "$LINENO"; then : 9361 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' 9362 9363fi 9364rm -f core conftest.err conftest.$ac_objext \ 9365 conftest$ac_exeext conftest.$ac_ext 9366 LDFLAGS="$save_LDFLAGS" 9367 else 9368 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' 9369 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' 9370 fi 9371 archive_cmds_need_lc='no' 9372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9373 hardcode_libdir_separator=: 9374 inherit_rpath=yes 9375 link_all_deplibs=yes 9376 ;; 9377 9378 netbsd*) 9379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9381 else 9382 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9383 fi 9384 hardcode_libdir_flag_spec='-R$libdir' 9385 hardcode_direct=yes 9386 hardcode_shlibpath_var=no 9387 ;; 9388 9389 newsos6) 9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9391 hardcode_direct=yes 9392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9393 hardcode_libdir_separator=: 9394 hardcode_shlibpath_var=no 9395 ;; 9396 9397 *nto* | *qnx*) 9398 ;; 9399 9400 openbsd*) 9401 if test -f /usr/libexec/ld.so; then 9402 hardcode_direct=yes 9403 hardcode_shlibpath_var=no 9404 hardcode_direct_absolute=yes 9405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9407 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9408 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9409 export_dynamic_flag_spec='${wl}-E' 9410 else 9411 case $host_os in 9412 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9414 hardcode_libdir_flag_spec='-R$libdir' 9415 ;; 9416 *) 9417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9419 ;; 9420 esac 9421 fi 9422 else 9423 ld_shlibs=no 9424 fi 9425 ;; 9426 9427 os2*) 9428 hardcode_libdir_flag_spec='-L$libdir' 9429 hardcode_minus_L=yes 9430 allow_undefined_flag=unsupported 9431 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' 9432 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9433 ;; 9434 9435 osf3*) 9436 if test "$GCC" = yes; then 9437 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9438 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' 9439 else 9440 allow_undefined_flag=' -expect_unresolved \*' 9441 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' 9442 fi 9443 archive_cmds_need_lc='no' 9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9445 hardcode_libdir_separator=: 9446 ;; 9447 9448 osf4* | osf5*) # as osf3* with the addition of -msym flag 9449 if test "$GCC" = yes; then 9450 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9451 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' 9452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9453 else 9454 allow_undefined_flag=' -expect_unresolved \*' 9455 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' 9456 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~ 9457 $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' 9458 9459 # Both c and cxx compiler support -rpath directly 9460 hardcode_libdir_flag_spec='-rpath $libdir' 9461 fi 9462 archive_cmds_need_lc='no' 9463 hardcode_libdir_separator=: 9464 ;; 9465 9466 solaris*) 9467 no_undefined_flag=' -z defs' 9468 if test "$GCC" = yes; then 9469 wlarc='${wl}' 9470 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9472 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9473 else 9474 case `$CC -V 2>&1` in 9475 *"Compilers 5.0"*) 9476 wlarc='' 9477 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9478 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9480 ;; 9481 *) 9482 wlarc='${wl}' 9483 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9484 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9485 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9486 ;; 9487 esac 9488 fi 9489 hardcode_libdir_flag_spec='-R$libdir' 9490 hardcode_shlibpath_var=no 9491 case $host_os in 9492 solaris2.[0-5] | solaris2.[0-5].*) ;; 9493 *) 9494 # The compiler driver will combine and reorder linker options, 9495 # but understands `-z linker_flag'. GCC discards it without `$wl', 9496 # but is careful enough not to reorder. 9497 # Supported since Solaris 2.6 (maybe 2.5.1?) 9498 if test "$GCC" = yes; then 9499 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9500 else 9501 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9502 fi 9503 ;; 9504 esac 9505 link_all_deplibs=yes 9506 ;; 9507 9508 sunos4*) 9509 if test "x$host_vendor" = xsequent; then 9510 # Use $CC to link under sequent, because it throws in some extra .o 9511 # files that make .init and .fini sections work. 9512 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9513 else 9514 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9515 fi 9516 hardcode_libdir_flag_spec='-L$libdir' 9517 hardcode_direct=yes 9518 hardcode_minus_L=yes 9519 hardcode_shlibpath_var=no 9520 ;; 9521 9522 sysv4) 9523 case $host_vendor in 9524 sni) 9525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9526 hardcode_direct=yes # is this really true??? 9527 ;; 9528 siemens) 9529 ## LD is ld it makes a PLAMLIB 9530 ## CC just makes a GrossModule. 9531 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9532 reload_cmds='$CC -r -o $output$reload_objs' 9533 hardcode_direct=no 9534 ;; 9535 motorola) 9536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9537 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9538 ;; 9539 esac 9540 runpath_var='LD_RUN_PATH' 9541 hardcode_shlibpath_var=no 9542 ;; 9543 9544 sysv4.3*) 9545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9546 hardcode_shlibpath_var=no 9547 export_dynamic_flag_spec='-Bexport' 9548 ;; 9549 9550 sysv4*MP*) 9551 if test -d /usr/nec; then 9552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9553 hardcode_shlibpath_var=no 9554 runpath_var=LD_RUN_PATH 9555 hardcode_runpath_var=yes 9556 ld_shlibs=yes 9557 fi 9558 ;; 9559 9560 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9561 no_undefined_flag='${wl}-z,text' 9562 archive_cmds_need_lc=no 9563 hardcode_shlibpath_var=no 9564 runpath_var='LD_RUN_PATH' 9565 9566 if test "$GCC" = yes; then 9567 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9568 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9569 else 9570 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9571 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9572 fi 9573 ;; 9574 9575 sysv5* | sco3.2v5* | sco5v6*) 9576 # Note: We can NOT use -z defs as we might desire, because we do not 9577 # link with -lc, and that would cause any symbols used from libc to 9578 # always be unresolved, which means just about no library would 9579 # ever link correctly. If we're not using GNU ld we use -z text 9580 # though, which does catch some bad symbols but isn't as heavy-handed 9581 # as -z defs. 9582 no_undefined_flag='${wl}-z,text' 9583 allow_undefined_flag='${wl}-z,nodefs' 9584 archive_cmds_need_lc=no 9585 hardcode_shlibpath_var=no 9586 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9587 hardcode_libdir_separator=':' 9588 link_all_deplibs=yes 9589 export_dynamic_flag_spec='${wl}-Bexport' 9590 runpath_var='LD_RUN_PATH' 9591 9592 if test "$GCC" = yes; then 9593 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9594 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9595 else 9596 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9597 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9598 fi 9599 ;; 9600 9601 uts4*) 9602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9603 hardcode_libdir_flag_spec='-L$libdir' 9604 hardcode_shlibpath_var=no 9605 ;; 9606 9607 *) 9608 ld_shlibs=no 9609 ;; 9610 esac 9611 9612 if test x$host_vendor = xsni; then 9613 case $host in 9614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9615 export_dynamic_flag_spec='${wl}-Blargedynsym' 9616 ;; 9617 esac 9618 fi 9619 fi 9620 9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9622$as_echo "$ld_shlibs" >&6; } 9623test "$ld_shlibs" = no && can_build_shared=no 9624 9625with_gnu_ld=$with_gnu_ld 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641# 9642# Do we need to explicitly link libc? 9643# 9644case "x$archive_cmds_need_lc" in 9645x|xyes) 9646 # Assume -lc should be added 9647 archive_cmds_need_lc=yes 9648 9649 if test "$enable_shared" = yes && test "$GCC" = yes; then 9650 case $archive_cmds in 9651 *'~'*) 9652 # FIXME: we may have to deal with multi-command sequences. 9653 ;; 9654 '$CC '*) 9655 # Test whether the compiler implicitly links with -lc since on some 9656 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9657 # to ld, don't add -lc before -lgcc. 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9659$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9660if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9661 $as_echo_n "(cached) " >&6 9662else 9663 $RM conftest* 9664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9665 9666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9667 (eval $ac_compile) 2>&5 9668 ac_status=$? 9669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9670 test $ac_status = 0; } 2>conftest.err; then 9671 soname=conftest 9672 lib=conftest 9673 libobjs=conftest.$ac_objext 9674 deplibs= 9675 wl=$lt_prog_compiler_wl 9676 pic_flag=$lt_prog_compiler_pic 9677 compiler_flags=-v 9678 linker_flags=-v 9679 verstring= 9680 output_objdir=. 9681 libname=conftest 9682 lt_save_allow_undefined_flag=$allow_undefined_flag 9683 allow_undefined_flag= 9684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9685 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9686 ac_status=$? 9687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9688 test $ac_status = 0; } 9689 then 9690 lt_cv_archive_cmds_need_lc=no 9691 else 9692 lt_cv_archive_cmds_need_lc=yes 9693 fi 9694 allow_undefined_flag=$lt_save_allow_undefined_flag 9695 else 9696 cat conftest.err 1>&5 9697 fi 9698 $RM conftest* 9699 9700fi 9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9702$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9703 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9704 ;; 9705 esac 9706 fi 9707 ;; 9708esac 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9867$as_echo_n "checking dynamic linker characteristics... " >&6; } 9868 9869if test "$GCC" = yes; then 9870 case $host_os in 9871 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9872 *) lt_awk_arg="/^libraries:/" ;; 9873 esac 9874 case $host_os in 9875 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9876 *) lt_sed_strip_eq="s,=/,/,g" ;; 9877 esac 9878 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9879 case $lt_search_path_spec in 9880 *\;*) 9881 # if the path contains ";" then we assume it to be the separator 9882 # otherwise default to the standard path separator (i.e. ":") - it is 9883 # assumed that no part of a normal pathname contains ";" but that should 9884 # okay in the real world where ";" in dirpaths is itself problematic. 9885 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9886 ;; 9887 *) 9888 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9889 ;; 9890 esac 9891 # Ok, now we have the path, separated by spaces, we can step through it 9892 # and add multilib dir if necessary. 9893 lt_tmp_lt_search_path_spec= 9894 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9895 for lt_sys_path in $lt_search_path_spec; do 9896 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9897 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9898 else 9899 test -d "$lt_sys_path" && \ 9900 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9901 fi 9902 done 9903 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9904BEGIN {RS=" "; FS="/|\n";} { 9905 lt_foo=""; 9906 lt_count=0; 9907 for (lt_i = NF; lt_i > 0; lt_i--) { 9908 if ($lt_i != "" && $lt_i != ".") { 9909 if ($lt_i == "..") { 9910 lt_count++; 9911 } else { 9912 if (lt_count == 0) { 9913 lt_foo="/" $lt_i lt_foo; 9914 } else { 9915 lt_count--; 9916 } 9917 } 9918 } 9919 } 9920 if (lt_foo != "") { lt_freq[lt_foo]++; } 9921 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9922}'` 9923 # AWK program above erroneously prepends '/' to C:/dos/paths 9924 # for these hosts. 9925 case $host_os in 9926 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9927 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9928 esac 9929 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9930else 9931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9932fi 9933library_names_spec= 9934libname_spec='lib$name' 9935soname_spec= 9936shrext_cmds=".so" 9937postinstall_cmds= 9938postuninstall_cmds= 9939finish_cmds= 9940finish_eval= 9941shlibpath_var= 9942shlibpath_overrides_runpath=unknown 9943version_type=none 9944dynamic_linker="$host_os ld.so" 9945sys_lib_dlsearch_path_spec="/lib /usr/lib" 9946need_lib_prefix=unknown 9947hardcode_into_libs=no 9948 9949# when you set need_version to no, make sure it does not cause -set_version 9950# flags to be left without arguments 9951need_version=unknown 9952 9953case $host_os in 9954aix3*) 9955 version_type=linux 9956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9957 shlibpath_var=LIBPATH 9958 9959 # AIX 3 has no versioning support, so we append a major version to the name. 9960 soname_spec='${libname}${release}${shared_ext}$major' 9961 ;; 9962 9963aix[4-9]*) 9964 version_type=linux 9965 need_lib_prefix=no 9966 need_version=no 9967 hardcode_into_libs=yes 9968 if test "$host_cpu" = ia64; then 9969 # AIX 5 supports IA64 9970 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9971 shlibpath_var=LD_LIBRARY_PATH 9972 else 9973 # With GCC up to 2.95.x, collect2 would create an import file 9974 # for dependence libraries. The import file would start with 9975 # the line `#! .'. This would cause the generated library to 9976 # depend on `.', always an invalid library. This was fixed in 9977 # development snapshots of GCC prior to 3.0. 9978 case $host_os in 9979 aix4 | aix4.[01] | aix4.[01].*) 9980 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9981 echo ' yes ' 9982 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9983 : 9984 else 9985 can_build_shared=no 9986 fi 9987 ;; 9988 esac 9989 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9990 # soname into executable. Probably we can add versioning support to 9991 # collect2, so additional links can be useful in future. 9992 if test "$aix_use_runtimelinking" = yes; then 9993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9994 # instead of lib<name>.a to let people know that these are not 9995 # typical AIX shared libraries. 9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9997 else 9998 # We preserve .a as extension for shared libraries through AIX4.2 9999 # and later when we are not doing run time linking. 10000 library_names_spec='${libname}${release}.a $libname.a' 10001 soname_spec='${libname}${release}${shared_ext}$major' 10002 fi 10003 shlibpath_var=LIBPATH 10004 fi 10005 ;; 10006 10007amigaos*) 10008 case $host_cpu in 10009 powerpc) 10010 # Since July 2007 AmigaOS4 officially supports .so libraries. 10011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10013 ;; 10014 m68k) 10015 library_names_spec='$libname.ixlibrary $libname.a' 10016 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10017 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' 10018 ;; 10019 esac 10020 ;; 10021 10022beos*) 10023 library_names_spec='${libname}${shared_ext}' 10024 dynamic_linker="$host_os ld.so" 10025 shlibpath_var=LIBRARY_PATH 10026 ;; 10027 10028bsdi[45]*) 10029 version_type=linux 10030 need_version=no 10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10032 soname_spec='${libname}${release}${shared_ext}$major' 10033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10034 shlibpath_var=LD_LIBRARY_PATH 10035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10037 # the default ld.so.conf also contains /usr/contrib/lib and 10038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10039 # libtool to hard-code these into programs 10040 ;; 10041 10042cygwin* | mingw* | pw32* | cegcc*) 10043 version_type=windows 10044 shrext_cmds=".dll" 10045 need_version=no 10046 need_lib_prefix=no 10047 10048 case $GCC,$host_os in 10049 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10050 library_names_spec='$libname.dll.a' 10051 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10052 postinstall_cmds='base_file=`basename \${file}`~ 10053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10054 dldir=$destdir/`dirname \$dlpath`~ 10055 test -d \$dldir || mkdir -p \$dldir~ 10056 $install_prog $dir/$dlname \$dldir/$dlname~ 10057 chmod a+x \$dldir/$dlname~ 10058 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10059 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10060 fi' 10061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10062 dlpath=$dir/\$dldll~ 10063 $RM \$dlpath' 10064 shlibpath_overrides_runpath=yes 10065 10066 case $host_os in 10067 cygwin*) 10068 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10069 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10070 10071 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10072 ;; 10073 mingw* | cegcc*) 10074 # MinGW DLLs use traditional 'lib' prefix 10075 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10076 ;; 10077 pw32*) 10078 # pw32 DLLs use 'pw' prefix rather than 'lib' 10079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10080 ;; 10081 esac 10082 ;; 10083 10084 *) 10085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10086 ;; 10087 esac 10088 dynamic_linker='Win32 ld.exe' 10089 # FIXME: first we should search . and the directory the executable is in 10090 shlibpath_var=PATH 10091 ;; 10092 10093darwin* | rhapsody*) 10094 dynamic_linker="$host_os dyld" 10095 version_type=darwin 10096 need_lib_prefix=no 10097 need_version=no 10098 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10099 soname_spec='${libname}${release}${major}$shared_ext' 10100 shlibpath_overrides_runpath=yes 10101 shlibpath_var=DYLD_LIBRARY_PATH 10102 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10103 10104 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10105 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10106 ;; 10107 10108dgux*) 10109 version_type=linux 10110 need_lib_prefix=no 10111 need_version=no 10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10113 soname_spec='${libname}${release}${shared_ext}$major' 10114 shlibpath_var=LD_LIBRARY_PATH 10115 ;; 10116 10117freebsd* | dragonfly*) 10118 # DragonFly does not have aout. When/if they implement a new 10119 # versioning mechanism, adjust this. 10120 if test -x /usr/bin/objformat; then 10121 objformat=`/usr/bin/objformat` 10122 else 10123 case $host_os in 10124 freebsd[23].*) objformat=aout ;; 10125 *) objformat=elf ;; 10126 esac 10127 fi 10128 version_type=freebsd-$objformat 10129 case $version_type in 10130 freebsd-elf*) 10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10132 need_version=no 10133 need_lib_prefix=no 10134 ;; 10135 freebsd-*) 10136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10137 need_version=yes 10138 ;; 10139 esac 10140 shlibpath_var=LD_LIBRARY_PATH 10141 case $host_os in 10142 freebsd2.*) 10143 shlibpath_overrides_runpath=yes 10144 ;; 10145 freebsd3.[01]* | freebsdelf3.[01]*) 10146 shlibpath_overrides_runpath=yes 10147 hardcode_into_libs=yes 10148 ;; 10149 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10150 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10151 shlibpath_overrides_runpath=no 10152 hardcode_into_libs=yes 10153 ;; 10154 *) # from 4.6 on, and DragonFly 10155 shlibpath_overrides_runpath=yes 10156 hardcode_into_libs=yes 10157 ;; 10158 esac 10159 ;; 10160 10161gnu*) 10162 version_type=linux 10163 need_lib_prefix=no 10164 need_version=no 10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10166 soname_spec='${libname}${release}${shared_ext}$major' 10167 shlibpath_var=LD_LIBRARY_PATH 10168 hardcode_into_libs=yes 10169 ;; 10170 10171haiku*) 10172 version_type=linux 10173 need_lib_prefix=no 10174 need_version=no 10175 dynamic_linker="$host_os runtime_loader" 10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10177 soname_spec='${libname}${release}${shared_ext}$major' 10178 shlibpath_var=LIBRARY_PATH 10179 shlibpath_overrides_runpath=yes 10180 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10181 hardcode_into_libs=yes 10182 ;; 10183 10184hpux9* | hpux10* | hpux11*) 10185 # Give a soname corresponding to the major version so that dld.sl refuses to 10186 # link against other versions. 10187 version_type=sunos 10188 need_lib_prefix=no 10189 need_version=no 10190 case $host_cpu in 10191 ia64*) 10192 shrext_cmds='.so' 10193 hardcode_into_libs=yes 10194 dynamic_linker="$host_os dld.so" 10195 shlibpath_var=LD_LIBRARY_PATH 10196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10198 soname_spec='${libname}${release}${shared_ext}$major' 10199 if test "X$HPUX_IA64_MODE" = X32; then 10200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10201 else 10202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10203 fi 10204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10205 ;; 10206 hppa*64*) 10207 shrext_cmds='.sl' 10208 hardcode_into_libs=yes 10209 dynamic_linker="$host_os dld.sl" 10210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10213 soname_spec='${libname}${release}${shared_ext}$major' 10214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10216 ;; 10217 *) 10218 shrext_cmds='.sl' 10219 dynamic_linker="$host_os dld.sl" 10220 shlibpath_var=SHLIB_PATH 10221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10223 soname_spec='${libname}${release}${shared_ext}$major' 10224 ;; 10225 esac 10226 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10227 postinstall_cmds='chmod 555 $lib' 10228 # or fails outright, so override atomically: 10229 install_override_mode=555 10230 ;; 10231 10232interix[3-9]*) 10233 version_type=linux 10234 need_lib_prefix=no 10235 need_version=no 10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10237 soname_spec='${libname}${release}${shared_ext}$major' 10238 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10239 shlibpath_var=LD_LIBRARY_PATH 10240 shlibpath_overrides_runpath=no 10241 hardcode_into_libs=yes 10242 ;; 10243 10244irix5* | irix6* | nonstopux*) 10245 case $host_os in 10246 nonstopux*) version_type=nonstopux ;; 10247 *) 10248 if test "$lt_cv_prog_gnu_ld" = yes; then 10249 version_type=linux 10250 else 10251 version_type=irix 10252 fi ;; 10253 esac 10254 need_lib_prefix=no 10255 need_version=no 10256 soname_spec='${libname}${release}${shared_ext}$major' 10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10258 case $host_os in 10259 irix5* | nonstopux*) 10260 libsuff= shlibsuff= 10261 ;; 10262 *) 10263 case $LD in # libtool.m4 will add one of these switches to LD 10264 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10265 libsuff= shlibsuff= libmagic=32-bit;; 10266 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10267 libsuff=32 shlibsuff=N32 libmagic=N32;; 10268 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10269 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10270 *) libsuff= shlibsuff= libmagic=never-match;; 10271 esac 10272 ;; 10273 esac 10274 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10275 shlibpath_overrides_runpath=no 10276 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10277 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10278 hardcode_into_libs=yes 10279 ;; 10280 10281# No shared lib support for Linux oldld, aout, or coff. 10282linux*oldld* | linux*aout* | linux*coff*) 10283 dynamic_linker=no 10284 ;; 10285 10286# This must be Linux ELF. 10287linux* | k*bsd*-gnu | kopensolaris*-gnu) 10288 version_type=linux 10289 need_lib_prefix=no 10290 need_version=no 10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10292 soname_spec='${libname}${release}${shared_ext}$major' 10293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10294 shlibpath_var=LD_LIBRARY_PATH 10295 shlibpath_overrides_runpath=no 10296 10297 # Some binutils ld are patched to set DT_RUNPATH 10298 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10299 $as_echo_n "(cached) " >&6 10300else 10301 lt_cv_shlibpath_overrides_runpath=no 10302 save_LDFLAGS=$LDFLAGS 10303 save_libdir=$libdir 10304 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10305 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10307/* end confdefs.h. */ 10308 10309int 10310main () 10311{ 10312 10313 ; 10314 return 0; 10315} 10316_ACEOF 10317if ac_fn_c_try_link "$LINENO"; then : 10318 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10319 lt_cv_shlibpath_overrides_runpath=yes 10320fi 10321fi 10322rm -f core conftest.err conftest.$ac_objext \ 10323 conftest$ac_exeext conftest.$ac_ext 10324 LDFLAGS=$save_LDFLAGS 10325 libdir=$save_libdir 10326 10327fi 10328 10329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10330 10331 # This implies no fast_install, which is unacceptable. 10332 # Some rework will be needed to allow for fast_install 10333 # before this can be enabled. 10334 hardcode_into_libs=yes 10335 10336 # Append ld.so.conf contents to the search path 10337 if test -f /etc/ld.so.conf; then 10338 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' ' '` 10339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10340 fi 10341 10342 # We used to test for /lib/ld.so.1 and disable shared libraries on 10343 # powerpc, because MkLinux only supported shared libraries with the 10344 # GNU dynamic linker. Since this was broken with cross compilers, 10345 # most powerpc-linux boxes support dynamic linking these days and 10346 # people can always --disable-shared, the test was removed, and we 10347 # assume the GNU/Linux dynamic linker is in use. 10348 dynamic_linker='GNU/Linux ld.so' 10349 ;; 10350 10351netbsd*) 10352 version_type=sunos 10353 need_lib_prefix=no 10354 need_version=no 10355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10358 dynamic_linker='NetBSD (a.out) ld.so' 10359 else 10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10361 soname_spec='${libname}${release}${shared_ext}$major' 10362 dynamic_linker='NetBSD ld.elf_so' 10363 fi 10364 shlibpath_var=LD_LIBRARY_PATH 10365 shlibpath_overrides_runpath=yes 10366 hardcode_into_libs=yes 10367 ;; 10368 10369newsos6) 10370 version_type=linux 10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10372 shlibpath_var=LD_LIBRARY_PATH 10373 shlibpath_overrides_runpath=yes 10374 ;; 10375 10376*nto* | *qnx*) 10377 version_type=qnx 10378 need_lib_prefix=no 10379 need_version=no 10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10381 soname_spec='${libname}${release}${shared_ext}$major' 10382 shlibpath_var=LD_LIBRARY_PATH 10383 shlibpath_overrides_runpath=no 10384 hardcode_into_libs=yes 10385 dynamic_linker='ldqnx.so' 10386 ;; 10387 10388openbsd*) 10389 version_type=sunos 10390 sys_lib_dlsearch_path_spec="/usr/lib" 10391 need_lib_prefix=no 10392 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10393 case $host_os in 10394 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10395 *) need_version=no ;; 10396 esac 10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10399 shlibpath_var=LD_LIBRARY_PATH 10400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10401 case $host_os in 10402 openbsd2.[89] | openbsd2.[89].*) 10403 shlibpath_overrides_runpath=no 10404 ;; 10405 *) 10406 shlibpath_overrides_runpath=yes 10407 ;; 10408 esac 10409 else 10410 shlibpath_overrides_runpath=yes 10411 fi 10412 ;; 10413 10414os2*) 10415 libname_spec='$name' 10416 shrext_cmds=".dll" 10417 need_lib_prefix=no 10418 library_names_spec='$libname${shared_ext} $libname.a' 10419 dynamic_linker='OS/2 ld.exe' 10420 shlibpath_var=LIBPATH 10421 ;; 10422 10423osf3* | osf4* | osf5*) 10424 version_type=osf 10425 need_lib_prefix=no 10426 need_version=no 10427 soname_spec='${libname}${release}${shared_ext}$major' 10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10429 shlibpath_var=LD_LIBRARY_PATH 10430 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10431 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10432 ;; 10433 10434rdos*) 10435 dynamic_linker=no 10436 ;; 10437 10438solaris*) 10439 version_type=linux 10440 need_lib_prefix=no 10441 need_version=no 10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10443 soname_spec='${libname}${release}${shared_ext}$major' 10444 shlibpath_var=LD_LIBRARY_PATH 10445 shlibpath_overrides_runpath=yes 10446 hardcode_into_libs=yes 10447 # ldd complains unless libraries are executable 10448 postinstall_cmds='chmod +x $lib' 10449 ;; 10450 10451sunos4*) 10452 version_type=sunos 10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10455 shlibpath_var=LD_LIBRARY_PATH 10456 shlibpath_overrides_runpath=yes 10457 if test "$with_gnu_ld" = yes; then 10458 need_lib_prefix=no 10459 fi 10460 need_version=yes 10461 ;; 10462 10463sysv4 | sysv4.3*) 10464 version_type=linux 10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10466 soname_spec='${libname}${release}${shared_ext}$major' 10467 shlibpath_var=LD_LIBRARY_PATH 10468 case $host_vendor in 10469 sni) 10470 shlibpath_overrides_runpath=no 10471 need_lib_prefix=no 10472 runpath_var=LD_RUN_PATH 10473 ;; 10474 siemens) 10475 need_lib_prefix=no 10476 ;; 10477 motorola) 10478 need_lib_prefix=no 10479 need_version=no 10480 shlibpath_overrides_runpath=no 10481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10482 ;; 10483 esac 10484 ;; 10485 10486sysv4*MP*) 10487 if test -d /usr/nec ;then 10488 version_type=linux 10489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10490 soname_spec='$libname${shared_ext}.$major' 10491 shlibpath_var=LD_LIBRARY_PATH 10492 fi 10493 ;; 10494 10495sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10496 version_type=freebsd-elf 10497 need_lib_prefix=no 10498 need_version=no 10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10500 soname_spec='${libname}${release}${shared_ext}$major' 10501 shlibpath_var=LD_LIBRARY_PATH 10502 shlibpath_overrides_runpath=yes 10503 hardcode_into_libs=yes 10504 if test "$with_gnu_ld" = yes; then 10505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10506 else 10507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10508 case $host_os in 10509 sco3.2v5*) 10510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10511 ;; 10512 esac 10513 fi 10514 sys_lib_dlsearch_path_spec='/usr/lib' 10515 ;; 10516 10517tpf*) 10518 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10519 version_type=linux 10520 need_lib_prefix=no 10521 need_version=no 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10523 shlibpath_var=LD_LIBRARY_PATH 10524 shlibpath_overrides_runpath=no 10525 hardcode_into_libs=yes 10526 ;; 10527 10528uts4*) 10529 version_type=linux 10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10531 soname_spec='${libname}${release}${shared_ext}$major' 10532 shlibpath_var=LD_LIBRARY_PATH 10533 ;; 10534 10535*) 10536 dynamic_linker=no 10537 ;; 10538esac 10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10540$as_echo "$dynamic_linker" >&6; } 10541test "$dynamic_linker" = no && can_build_shared=no 10542 10543variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10544if test "$GCC" = yes; then 10545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10546fi 10547 10548if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10549 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10550fi 10551if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10552 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10553fi 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10647$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10648hardcode_action= 10649if test -n "$hardcode_libdir_flag_spec" || 10650 test -n "$runpath_var" || 10651 test "X$hardcode_automatic" = "Xyes" ; then 10652 10653 # We can hardcode non-existent directories. 10654 if test "$hardcode_direct" != no && 10655 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10656 # have to relink, otherwise we might link with an installed library 10657 # when we should be linking with a yet-to-be-installed one 10658 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10659 test "$hardcode_minus_L" != no; then 10660 # Linking always hardcodes the temporary library directory. 10661 hardcode_action=relink 10662 else 10663 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10664 hardcode_action=immediate 10665 fi 10666else 10667 # We cannot hardcode anything, or else we can only hardcode existing 10668 # directories. 10669 hardcode_action=unsupported 10670fi 10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10672$as_echo "$hardcode_action" >&6; } 10673 10674if test "$hardcode_action" = relink || 10675 test "$inherit_rpath" = yes; then 10676 # Fast installation is not supported 10677 enable_fast_install=no 10678elif test "$shlibpath_overrides_runpath" = yes || 10679 test "$enable_shared" = no; then 10680 # Fast installation is not necessary 10681 enable_fast_install=needless 10682fi 10683 10684 10685 10686 10687 10688 10689 if test "x$enable_dlopen" != xyes; then 10690 enable_dlopen=unknown 10691 enable_dlopen_self=unknown 10692 enable_dlopen_self_static=unknown 10693else 10694 lt_cv_dlopen=no 10695 lt_cv_dlopen_libs= 10696 10697 case $host_os in 10698 beos*) 10699 lt_cv_dlopen="load_add_on" 10700 lt_cv_dlopen_libs= 10701 lt_cv_dlopen_self=yes 10702 ;; 10703 10704 mingw* | pw32* | cegcc*) 10705 lt_cv_dlopen="LoadLibrary" 10706 lt_cv_dlopen_libs= 10707 ;; 10708 10709 cygwin*) 10710 lt_cv_dlopen="dlopen" 10711 lt_cv_dlopen_libs= 10712 ;; 10713 10714 darwin*) 10715 # if libdl is installed we need to link against it 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10717$as_echo_n "checking for dlopen in -ldl... " >&6; } 10718if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10719 $as_echo_n "(cached) " >&6 10720else 10721 ac_check_lib_save_LIBS=$LIBS 10722LIBS="-ldl $LIBS" 10723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10724/* end confdefs.h. */ 10725 10726/* Override any GCC internal prototype to avoid an error. 10727 Use char because int might match the return type of a GCC 10728 builtin and then its argument prototype would still apply. */ 10729#ifdef __cplusplus 10730extern "C" 10731#endif 10732char dlopen (); 10733int 10734main () 10735{ 10736return dlopen (); 10737 ; 10738 return 0; 10739} 10740_ACEOF 10741if ac_fn_c_try_link "$LINENO"; then : 10742 ac_cv_lib_dl_dlopen=yes 10743else 10744 ac_cv_lib_dl_dlopen=no 10745fi 10746rm -f core conftest.err conftest.$ac_objext \ 10747 conftest$ac_exeext conftest.$ac_ext 10748LIBS=$ac_check_lib_save_LIBS 10749fi 10750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10751$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10752if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10754else 10755 10756 lt_cv_dlopen="dyld" 10757 lt_cv_dlopen_libs= 10758 lt_cv_dlopen_self=yes 10759 10760fi 10761 10762 ;; 10763 10764 *) 10765 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10766if test "x$ac_cv_func_shl_load" = x""yes; then : 10767 lt_cv_dlopen="shl_load" 10768else 10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10770$as_echo_n "checking for shl_load in -ldld... " >&6; } 10771if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10772 $as_echo_n "(cached) " >&6 10773else 10774 ac_check_lib_save_LIBS=$LIBS 10775LIBS="-ldld $LIBS" 10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10777/* end confdefs.h. */ 10778 10779/* Override any GCC internal prototype to avoid an error. 10780 Use char because int might match the return type of a GCC 10781 builtin and then its argument prototype would still apply. */ 10782#ifdef __cplusplus 10783extern "C" 10784#endif 10785char shl_load (); 10786int 10787main () 10788{ 10789return shl_load (); 10790 ; 10791 return 0; 10792} 10793_ACEOF 10794if ac_fn_c_try_link "$LINENO"; then : 10795 ac_cv_lib_dld_shl_load=yes 10796else 10797 ac_cv_lib_dld_shl_load=no 10798fi 10799rm -f core conftest.err conftest.$ac_objext \ 10800 conftest$ac_exeext conftest.$ac_ext 10801LIBS=$ac_check_lib_save_LIBS 10802fi 10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10804$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10805if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10806 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10807else 10808 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10809if test "x$ac_cv_func_dlopen" = x""yes; then : 10810 lt_cv_dlopen="dlopen" 10811else 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10813$as_echo_n "checking for dlopen in -ldl... " >&6; } 10814if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10815 $as_echo_n "(cached) " >&6 10816else 10817 ac_check_lib_save_LIBS=$LIBS 10818LIBS="-ldl $LIBS" 10819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10820/* end confdefs.h. */ 10821 10822/* Override any GCC internal prototype to avoid an error. 10823 Use char because int might match the return type of a GCC 10824 builtin and then its argument prototype would still apply. */ 10825#ifdef __cplusplus 10826extern "C" 10827#endif 10828char dlopen (); 10829int 10830main () 10831{ 10832return dlopen (); 10833 ; 10834 return 0; 10835} 10836_ACEOF 10837if ac_fn_c_try_link "$LINENO"; then : 10838 ac_cv_lib_dl_dlopen=yes 10839else 10840 ac_cv_lib_dl_dlopen=no 10841fi 10842rm -f core conftest.err conftest.$ac_objext \ 10843 conftest$ac_exeext conftest.$ac_ext 10844LIBS=$ac_check_lib_save_LIBS 10845fi 10846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10847$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10848if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10850else 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10852$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10853if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10854 $as_echo_n "(cached) " >&6 10855else 10856 ac_check_lib_save_LIBS=$LIBS 10857LIBS="-lsvld $LIBS" 10858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10859/* end confdefs.h. */ 10860 10861/* Override any GCC internal prototype to avoid an error. 10862 Use char because int might match the return type of a GCC 10863 builtin and then its argument prototype would still apply. */ 10864#ifdef __cplusplus 10865extern "C" 10866#endif 10867char dlopen (); 10868int 10869main () 10870{ 10871return dlopen (); 10872 ; 10873 return 0; 10874} 10875_ACEOF 10876if ac_fn_c_try_link "$LINENO"; then : 10877 ac_cv_lib_svld_dlopen=yes 10878else 10879 ac_cv_lib_svld_dlopen=no 10880fi 10881rm -f core conftest.err conftest.$ac_objext \ 10882 conftest$ac_exeext conftest.$ac_ext 10883LIBS=$ac_check_lib_save_LIBS 10884fi 10885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10886$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10887if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10889else 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10891$as_echo_n "checking for dld_link in -ldld... " >&6; } 10892if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10893 $as_echo_n "(cached) " >&6 10894else 10895 ac_check_lib_save_LIBS=$LIBS 10896LIBS="-ldld $LIBS" 10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899 10900/* Override any GCC internal prototype to avoid an error. 10901 Use char because int might match the return type of a GCC 10902 builtin and then its argument prototype would still apply. */ 10903#ifdef __cplusplus 10904extern "C" 10905#endif 10906char dld_link (); 10907int 10908main () 10909{ 10910return dld_link (); 10911 ; 10912 return 0; 10913} 10914_ACEOF 10915if ac_fn_c_try_link "$LINENO"; then : 10916 ac_cv_lib_dld_dld_link=yes 10917else 10918 ac_cv_lib_dld_dld_link=no 10919fi 10920rm -f core conftest.err conftest.$ac_objext \ 10921 conftest$ac_exeext conftest.$ac_ext 10922LIBS=$ac_check_lib_save_LIBS 10923fi 10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10925$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10926if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10927 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10928fi 10929 10930 10931fi 10932 10933 10934fi 10935 10936 10937fi 10938 10939 10940fi 10941 10942 10943fi 10944 10945 ;; 10946 esac 10947 10948 if test "x$lt_cv_dlopen" != xno; then 10949 enable_dlopen=yes 10950 else 10951 enable_dlopen=no 10952 fi 10953 10954 case $lt_cv_dlopen in 10955 dlopen) 10956 save_CPPFLAGS="$CPPFLAGS" 10957 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10958 10959 save_LDFLAGS="$LDFLAGS" 10960 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10961 10962 save_LIBS="$LIBS" 10963 LIBS="$lt_cv_dlopen_libs $LIBS" 10964 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10966$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10967if test "${lt_cv_dlopen_self+set}" = set; then : 10968 $as_echo_n "(cached) " >&6 10969else 10970 if test "$cross_compiling" = yes; then : 10971 lt_cv_dlopen_self=cross 10972else 10973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10974 lt_status=$lt_dlunknown 10975 cat > conftest.$ac_ext <<_LT_EOF 10976#line 10976 "configure" 10977#include "confdefs.h" 10978 10979#if HAVE_DLFCN_H 10980#include <dlfcn.h> 10981#endif 10982 10983#include <stdio.h> 10984 10985#ifdef RTLD_GLOBAL 10986# define LT_DLGLOBAL RTLD_GLOBAL 10987#else 10988# ifdef DL_GLOBAL 10989# define LT_DLGLOBAL DL_GLOBAL 10990# else 10991# define LT_DLGLOBAL 0 10992# endif 10993#endif 10994 10995/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10996 find out it does not work in some platform. */ 10997#ifndef LT_DLLAZY_OR_NOW 10998# ifdef RTLD_LAZY 10999# define LT_DLLAZY_OR_NOW RTLD_LAZY 11000# else 11001# ifdef DL_LAZY 11002# define LT_DLLAZY_OR_NOW DL_LAZY 11003# else 11004# ifdef RTLD_NOW 11005# define LT_DLLAZY_OR_NOW RTLD_NOW 11006# else 11007# ifdef DL_NOW 11008# define LT_DLLAZY_OR_NOW DL_NOW 11009# else 11010# define LT_DLLAZY_OR_NOW 0 11011# endif 11012# endif 11013# endif 11014# endif 11015#endif 11016 11017/* When -fvisbility=hidden is used, assume the code has been annotated 11018 correspondingly for the symbols needed. */ 11019#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11020void fnord () __attribute__((visibility("default"))); 11021#endif 11022 11023void fnord () { int i=42; } 11024int main () 11025{ 11026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11027 int status = $lt_dlunknown; 11028 11029 if (self) 11030 { 11031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11032 else 11033 { 11034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11035 else puts (dlerror ()); 11036 } 11037 /* dlclose (self); */ 11038 } 11039 else 11040 puts (dlerror ()); 11041 11042 return status; 11043} 11044_LT_EOF 11045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11046 (eval $ac_link) 2>&5 11047 ac_status=$? 11048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11049 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11050 (./conftest; exit; ) >&5 2>/dev/null 11051 lt_status=$? 11052 case x$lt_status in 11053 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11054 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11055 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11056 esac 11057 else : 11058 # compilation failed 11059 lt_cv_dlopen_self=no 11060 fi 11061fi 11062rm -fr conftest* 11063 11064 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11067$as_echo "$lt_cv_dlopen_self" >&6; } 11068 11069 if test "x$lt_cv_dlopen_self" = xyes; then 11070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11072$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11073if test "${lt_cv_dlopen_self_static+set}" = set; then : 11074 $as_echo_n "(cached) " >&6 11075else 11076 if test "$cross_compiling" = yes; then : 11077 lt_cv_dlopen_self_static=cross 11078else 11079 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11080 lt_status=$lt_dlunknown 11081 cat > conftest.$ac_ext <<_LT_EOF 11082#line 11082 "configure" 11083#include "confdefs.h" 11084 11085#if HAVE_DLFCN_H 11086#include <dlfcn.h> 11087#endif 11088 11089#include <stdio.h> 11090 11091#ifdef RTLD_GLOBAL 11092# define LT_DLGLOBAL RTLD_GLOBAL 11093#else 11094# ifdef DL_GLOBAL 11095# define LT_DLGLOBAL DL_GLOBAL 11096# else 11097# define LT_DLGLOBAL 0 11098# endif 11099#endif 11100 11101/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11102 find out it does not work in some platform. */ 11103#ifndef LT_DLLAZY_OR_NOW 11104# ifdef RTLD_LAZY 11105# define LT_DLLAZY_OR_NOW RTLD_LAZY 11106# else 11107# ifdef DL_LAZY 11108# define LT_DLLAZY_OR_NOW DL_LAZY 11109# else 11110# ifdef RTLD_NOW 11111# define LT_DLLAZY_OR_NOW RTLD_NOW 11112# else 11113# ifdef DL_NOW 11114# define LT_DLLAZY_OR_NOW DL_NOW 11115# else 11116# define LT_DLLAZY_OR_NOW 0 11117# endif 11118# endif 11119# endif 11120# endif 11121#endif 11122 11123/* When -fvisbility=hidden is used, assume the code has been annotated 11124 correspondingly for the symbols needed. */ 11125#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11126void fnord () __attribute__((visibility("default"))); 11127#endif 11128 11129void fnord () { int i=42; } 11130int main () 11131{ 11132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11133 int status = $lt_dlunknown; 11134 11135 if (self) 11136 { 11137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11138 else 11139 { 11140 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11141 else puts (dlerror ()); 11142 } 11143 /* dlclose (self); */ 11144 } 11145 else 11146 puts (dlerror ()); 11147 11148 return status; 11149} 11150_LT_EOF 11151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11152 (eval $ac_link) 2>&5 11153 ac_status=$? 11154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11155 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11156 (./conftest; exit; ) >&5 2>/dev/null 11157 lt_status=$? 11158 case x$lt_status in 11159 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11160 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11161 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11162 esac 11163 else : 11164 # compilation failed 11165 lt_cv_dlopen_self_static=no 11166 fi 11167fi 11168rm -fr conftest* 11169 11170 11171fi 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11173$as_echo "$lt_cv_dlopen_self_static" >&6; } 11174 fi 11175 11176 CPPFLAGS="$save_CPPFLAGS" 11177 LDFLAGS="$save_LDFLAGS" 11178 LIBS="$save_LIBS" 11179 ;; 11180 esac 11181 11182 case $lt_cv_dlopen_self in 11183 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11184 *) enable_dlopen_self=unknown ;; 11185 esac 11186 11187 case $lt_cv_dlopen_self_static in 11188 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11189 *) enable_dlopen_self_static=unknown ;; 11190 esac 11191fi 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209striplib= 11210old_striplib= 11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11212$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11213if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11214 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11215 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11217$as_echo "yes" >&6; } 11218else 11219# FIXME - insert some real tests, host_os isn't really good enough 11220 case $host_os in 11221 darwin*) 11222 if test -n "$STRIP" ; then 11223 striplib="$STRIP -x" 11224 old_striplib="$STRIP -S" 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11226$as_echo "yes" >&6; } 11227 else 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11229$as_echo "no" >&6; } 11230 fi 11231 ;; 11232 *) 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11234$as_echo "no" >&6; } 11235 ;; 11236 esac 11237fi 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 # Report which library types will actually be built 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11252$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11254$as_echo "$can_build_shared" >&6; } 11255 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11257$as_echo_n "checking whether to build shared libraries... " >&6; } 11258 test "$can_build_shared" = "no" && enable_shared=no 11259 11260 # On AIX, shared libraries and static libraries use the same namespace, and 11261 # are all built from PIC. 11262 case $host_os in 11263 aix3*) 11264 test "$enable_shared" = yes && enable_static=no 11265 if test -n "$RANLIB"; then 11266 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11267 postinstall_cmds='$RANLIB $lib' 11268 fi 11269 ;; 11270 11271 aix[4-9]*) 11272 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11273 test "$enable_shared" = yes && enable_static=no 11274 fi 11275 ;; 11276 esac 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11278$as_echo "$enable_shared" >&6; } 11279 11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11281$as_echo_n "checking whether to build static libraries... " >&6; } 11282 # Make sure either enable_shared or enable_static is yes. 11283 test "$enable_shared" = yes || enable_static=yes 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11285$as_echo "$enable_static" >&6; } 11286 11287 11288 11289 11290fi 11291ac_ext=c 11292ac_cpp='$CPP $CPPFLAGS' 11293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11295ac_compiler_gnu=$ac_cv_c_compiler_gnu 11296 11297CC="$lt_save_CC" 11298 11299 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11300 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11301 (test "X$CXX" != "Xg++"))) ; then 11302 ac_ext=cpp 11303ac_cpp='$CXXCPP $CPPFLAGS' 11304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11308$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11309if test -z "$CXXCPP"; then 11310 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 11311 $as_echo_n "(cached) " >&6 11312else 11313 # Double quotes because CXXCPP needs to be expanded 11314 for CXXCPP in "$CXX -E" "/lib/cpp" 11315 do 11316 ac_preproc_ok=false 11317for ac_cxx_preproc_warn_flag in '' yes 11318do 11319 # Use a header file that comes with gcc, so configuring glibc 11320 # with a fresh cross-compiler works. 11321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11322 # <limits.h> exists even on freestanding compilers. 11323 # On the NeXT, cc -E runs the code through the compiler's parser, 11324 # not just through cpp. "Syntax error" is here to catch this case. 11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11326/* end confdefs.h. */ 11327#ifdef __STDC__ 11328# include <limits.h> 11329#else 11330# include <assert.h> 11331#endif 11332 Syntax error 11333_ACEOF 11334if ac_fn_cxx_try_cpp "$LINENO"; then : 11335 11336else 11337 # Broken: fails on valid input. 11338continue 11339fi 11340rm -f conftest.err conftest.$ac_ext 11341 11342 # OK, works on sane cases. Now check whether nonexistent headers 11343 # can be detected and how. 11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11345/* end confdefs.h. */ 11346#include <ac_nonexistent.h> 11347_ACEOF 11348if ac_fn_cxx_try_cpp "$LINENO"; then : 11349 # Broken: success on invalid input. 11350continue 11351else 11352 # Passes both tests. 11353ac_preproc_ok=: 11354break 11355fi 11356rm -f conftest.err conftest.$ac_ext 11357 11358done 11359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11360rm -f conftest.err conftest.$ac_ext 11361if $ac_preproc_ok; then : 11362 break 11363fi 11364 11365 done 11366 ac_cv_prog_CXXCPP=$CXXCPP 11367 11368fi 11369 CXXCPP=$ac_cv_prog_CXXCPP 11370else 11371 ac_cv_prog_CXXCPP=$CXXCPP 11372fi 11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11374$as_echo "$CXXCPP" >&6; } 11375ac_preproc_ok=false 11376for ac_cxx_preproc_warn_flag in '' yes 11377do 11378 # Use a header file that comes with gcc, so configuring glibc 11379 # with a fresh cross-compiler works. 11380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11381 # <limits.h> exists even on freestanding compilers. 11382 # On the NeXT, cc -E runs the code through the compiler's parser, 11383 # not just through cpp. "Syntax error" is here to catch this case. 11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11385/* end confdefs.h. */ 11386#ifdef __STDC__ 11387# include <limits.h> 11388#else 11389# include <assert.h> 11390#endif 11391 Syntax error 11392_ACEOF 11393if ac_fn_cxx_try_cpp "$LINENO"; then : 11394 11395else 11396 # Broken: fails on valid input. 11397continue 11398fi 11399rm -f conftest.err conftest.$ac_ext 11400 11401 # OK, works on sane cases. Now check whether nonexistent headers 11402 # can be detected and how. 11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11404/* end confdefs.h. */ 11405#include <ac_nonexistent.h> 11406_ACEOF 11407if ac_fn_cxx_try_cpp "$LINENO"; then : 11408 # Broken: success on invalid input. 11409continue 11410else 11411 # Passes both tests. 11412ac_preproc_ok=: 11413break 11414fi 11415rm -f conftest.err conftest.$ac_ext 11416 11417done 11418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11419rm -f conftest.err conftest.$ac_ext 11420if $ac_preproc_ok; then : 11421 11422else 11423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11425as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 11426See \`config.log' for more details." "$LINENO" 5; } 11427fi 11428 11429ac_ext=c 11430ac_cpp='$CPP $CPPFLAGS' 11431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11433ac_compiler_gnu=$ac_cv_c_compiler_gnu 11434 11435else 11436 _lt_caught_CXX_error=yes 11437fi 11438 11439ac_ext=cpp 11440ac_cpp='$CXXCPP $CPPFLAGS' 11441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11444 11445archive_cmds_need_lc_CXX=no 11446allow_undefined_flag_CXX= 11447always_export_symbols_CXX=no 11448archive_expsym_cmds_CXX= 11449compiler_needs_object_CXX=no 11450export_dynamic_flag_spec_CXX= 11451hardcode_direct_CXX=no 11452hardcode_direct_absolute_CXX=no 11453hardcode_libdir_flag_spec_CXX= 11454hardcode_libdir_flag_spec_ld_CXX= 11455hardcode_libdir_separator_CXX= 11456hardcode_minus_L_CXX=no 11457hardcode_shlibpath_var_CXX=unsupported 11458hardcode_automatic_CXX=no 11459inherit_rpath_CXX=no 11460module_cmds_CXX= 11461module_expsym_cmds_CXX= 11462link_all_deplibs_CXX=unknown 11463old_archive_cmds_CXX=$old_archive_cmds 11464reload_flag_CXX=$reload_flag 11465reload_cmds_CXX=$reload_cmds 11466no_undefined_flag_CXX= 11467whole_archive_flag_spec_CXX= 11468enable_shared_with_static_runtimes_CXX=no 11469 11470# Source file extension for C++ test sources. 11471ac_ext=cpp 11472 11473# Object file extension for compiled C++ test sources. 11474objext=o 11475objext_CXX=$objext 11476 11477# No sense in running all these tests if we already determined that 11478# the CXX compiler isn't working. Some variables (like enable_shared) 11479# are currently assumed to apply to all compilers on this platform, 11480# and will be corrupted by setting them based on a non-working compiler. 11481if test "$_lt_caught_CXX_error" != yes; then 11482 # Code to be used in simple compile tests 11483 lt_simple_compile_test_code="int some_variable = 0;" 11484 11485 # Code to be used in simple link tests 11486 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11487 11488 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11489 11490 11491 11492 11493 11494 11495# If no C compiler was specified, use CC. 11496LTCC=${LTCC-"$CC"} 11497 11498# If no C compiler flags were specified, use CFLAGS. 11499LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11500 11501# Allow CC to be a program name with arguments. 11502compiler=$CC 11503 11504 11505 # save warnings/boilerplate of simple test code 11506 ac_outfile=conftest.$ac_objext 11507echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11508eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11509_lt_compiler_boilerplate=`cat conftest.err` 11510$RM conftest* 11511 11512 ac_outfile=conftest.$ac_objext 11513echo "$lt_simple_link_test_code" >conftest.$ac_ext 11514eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11515_lt_linker_boilerplate=`cat conftest.err` 11516$RM -r conftest* 11517 11518 11519 # Allow CC to be a program name with arguments. 11520 lt_save_CC=$CC 11521 lt_save_LD=$LD 11522 lt_save_GCC=$GCC 11523 GCC=$GXX 11524 lt_save_with_gnu_ld=$with_gnu_ld 11525 lt_save_path_LD=$lt_cv_path_LD 11526 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11527 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11528 else 11529 $as_unset lt_cv_prog_gnu_ld 11530 fi 11531 if test -n "${lt_cv_path_LDCXX+set}"; then 11532 lt_cv_path_LD=$lt_cv_path_LDCXX 11533 else 11534 $as_unset lt_cv_path_LD 11535 fi 11536 test -z "${LDCXX+set}" || LD=$LDCXX 11537 CC=${CXX-"c++"} 11538 compiler=$CC 11539 compiler_CXX=$CC 11540 for cc_temp in $compiler""; do 11541 case $cc_temp in 11542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11544 \-*) ;; 11545 *) break;; 11546 esac 11547done 11548cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11549 11550 11551 if test -n "$compiler"; then 11552 # We don't want -fno-exception when compiling C++ code, so set the 11553 # no_builtin_flag separately 11554 if test "$GXX" = yes; then 11555 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11556 else 11557 lt_prog_compiler_no_builtin_flag_CXX= 11558 fi 11559 11560 if test "$GXX" = yes; then 11561 # Set up default GNU C++ configuration 11562 11563 11564 11565# Check whether --with-gnu-ld was given. 11566if test "${with_gnu_ld+set}" = set; then : 11567 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11568else 11569 with_gnu_ld=no 11570fi 11571 11572ac_prog=ld 11573if test "$GCC" = yes; then 11574 # Check if gcc -print-prog-name=ld gives a path. 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11576$as_echo_n "checking for ld used by $CC... " >&6; } 11577 case $host in 11578 *-*-mingw*) 11579 # gcc leaves a trailing carriage return which upsets mingw 11580 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11581 *) 11582 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11583 esac 11584 case $ac_prog in 11585 # Accept absolute paths. 11586 [\\/]* | ?:[\\/]*) 11587 re_direlt='/[^/][^/]*/\.\./' 11588 # Canonicalize the pathname of ld 11589 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11590 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11591 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11592 done 11593 test -z "$LD" && LD="$ac_prog" 11594 ;; 11595 "") 11596 # If it fails, then pretend we aren't using GCC. 11597 ac_prog=ld 11598 ;; 11599 *) 11600 # If it is relative, then search for the first ld in PATH. 11601 with_gnu_ld=unknown 11602 ;; 11603 esac 11604elif test "$with_gnu_ld" = yes; then 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11606$as_echo_n "checking for GNU ld... " >&6; } 11607else 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11609$as_echo_n "checking for non-GNU ld... " >&6; } 11610fi 11611if test "${lt_cv_path_LD+set}" = set; then : 11612 $as_echo_n "(cached) " >&6 11613else 11614 if test -z "$LD"; then 11615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11616 for ac_dir in $PATH; do 11617 IFS="$lt_save_ifs" 11618 test -z "$ac_dir" && ac_dir=. 11619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11620 lt_cv_path_LD="$ac_dir/$ac_prog" 11621 # Check to see if the program is GNU ld. I'd rather use --version, 11622 # but apparently some variants of GNU ld only accept -v. 11623 # Break only if it was the GNU/non-GNU ld that we prefer. 11624 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11625 *GNU* | *'with BFD'*) 11626 test "$with_gnu_ld" != no && break 11627 ;; 11628 *) 11629 test "$with_gnu_ld" != yes && break 11630 ;; 11631 esac 11632 fi 11633 done 11634 IFS="$lt_save_ifs" 11635else 11636 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11637fi 11638fi 11639 11640LD="$lt_cv_path_LD" 11641if test -n "$LD"; then 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11643$as_echo "$LD" >&6; } 11644else 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11646$as_echo "no" >&6; } 11647fi 11648test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11650$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11651if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11652 $as_echo_n "(cached) " >&6 11653else 11654 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11655case `$LD -v 2>&1 </dev/null` in 11656*GNU* | *'with BFD'*) 11657 lt_cv_prog_gnu_ld=yes 11658 ;; 11659*) 11660 lt_cv_prog_gnu_ld=no 11661 ;; 11662esac 11663fi 11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11665$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11666with_gnu_ld=$lt_cv_prog_gnu_ld 11667 11668 11669 11670 11671 11672 11673 11674 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11675 # archiving commands below assume that GNU ld is being used. 11676 if test "$with_gnu_ld" = yes; then 11677 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11678 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' 11679 11680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11682 11683 # If archive_cmds runs LD, not CC, wlarc should be empty 11684 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11685 # investigate it a little bit more. (MM) 11686 wlarc='${wl}' 11687 11688 # ancient GNU ld didn't support --whole-archive et. al. 11689 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11690 $GREP 'no-whole-archive' > /dev/null; then 11691 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11692 else 11693 whole_archive_flag_spec_CXX= 11694 fi 11695 else 11696 with_gnu_ld=no 11697 wlarc= 11698 11699 # A generic and very simple default shared library creation 11700 # command for GNU C++ for the case where it uses the native 11701 # linker, instead of GNU ld. If possible, this setting should 11702 # overridden to take advantage of the native linker features on 11703 # the platform it is being used on. 11704 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11705 fi 11706 11707 # Commands to make compiler produce verbose output that lists 11708 # what "hidden" libraries, object files and flags are used when 11709 # linking a shared library. 11710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11711 11712 else 11713 GXX=no 11714 with_gnu_ld=no 11715 wlarc= 11716 fi 11717 11718 # PORTME: fill in a description of your system's C++ link characteristics 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11720$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11721 ld_shlibs_CXX=yes 11722 case $host_os in 11723 aix3*) 11724 # FIXME: insert proper C++ library support 11725 ld_shlibs_CXX=no 11726 ;; 11727 aix[4-9]*) 11728 if test "$host_cpu" = ia64; then 11729 # On IA64, the linker does run time linking by default, so we don't 11730 # have to do anything special. 11731 aix_use_runtimelinking=no 11732 exp_sym_flag='-Bexport' 11733 no_entry_flag="" 11734 else 11735 aix_use_runtimelinking=no 11736 11737 # Test if we are trying to use run time linking or normal 11738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11739 # need to do runtime linking. 11740 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11741 for ld_flag in $LDFLAGS; do 11742 case $ld_flag in 11743 *-brtl*) 11744 aix_use_runtimelinking=yes 11745 break 11746 ;; 11747 esac 11748 done 11749 ;; 11750 esac 11751 11752 exp_sym_flag='-bexport' 11753 no_entry_flag='-bnoentry' 11754 fi 11755 11756 # When large executables or shared objects are built, AIX ld can 11757 # have problems creating the table of contents. If linking a library 11758 # or program results in "error TOC overflow" add -mminimal-toc to 11759 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11760 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11761 11762 archive_cmds_CXX='' 11763 hardcode_direct_CXX=yes 11764 hardcode_direct_absolute_CXX=yes 11765 hardcode_libdir_separator_CXX=':' 11766 link_all_deplibs_CXX=yes 11767 file_list_spec_CXX='${wl}-f,' 11768 11769 if test "$GXX" = yes; then 11770 case $host_os in aix4.[012]|aix4.[012].*) 11771 # We only want to do this on AIX 4.2 and lower, the check 11772 # below for broken collect2 doesn't work under 4.3+ 11773 collect2name=`${CC} -print-prog-name=collect2` 11774 if test -f "$collect2name" && 11775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11776 then 11777 # We have reworked collect2 11778 : 11779 else 11780 # We have old collect2 11781 hardcode_direct_CXX=unsupported 11782 # It fails to find uninstalled libraries when the uninstalled 11783 # path is not listed in the libpath. Setting hardcode_minus_L 11784 # to unsupported forces relinking 11785 hardcode_minus_L_CXX=yes 11786 hardcode_libdir_flag_spec_CXX='-L$libdir' 11787 hardcode_libdir_separator_CXX= 11788 fi 11789 esac 11790 shared_flag='-shared' 11791 if test "$aix_use_runtimelinking" = yes; then 11792 shared_flag="$shared_flag "'${wl}-G' 11793 fi 11794 else 11795 # not using gcc 11796 if test "$host_cpu" = ia64; then 11797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11798 # chokes on -Wl,-G. The following line is correct: 11799 shared_flag='-G' 11800 else 11801 if test "$aix_use_runtimelinking" = yes; then 11802 shared_flag='${wl}-G' 11803 else 11804 shared_flag='${wl}-bM:SRE' 11805 fi 11806 fi 11807 fi 11808 11809 export_dynamic_flag_spec_CXX='${wl}-bexpall' 11810 # It seems that -bexpall does not export symbols beginning with 11811 # underscore (_), so it is better to generate a list of symbols to 11812 # export. 11813 always_export_symbols_CXX=yes 11814 if test "$aix_use_runtimelinking" = yes; then 11815 # Warning - without using the other runtime loading flags (-brtl), 11816 # -berok will link without error, but may produce a broken library. 11817 allow_undefined_flag_CXX='-berok' 11818 # Determine the default libpath from the value encoded in an empty 11819 # executable. 11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11821/* end confdefs.h. */ 11822 11823int 11824main () 11825{ 11826 11827 ; 11828 return 0; 11829} 11830_ACEOF 11831if ac_fn_cxx_try_link "$LINENO"; then : 11832 11833lt_aix_libpath_sed=' 11834 /Import File Strings/,/^$/ { 11835 /^0/ { 11836 s/^0 *\(.*\)$/\1/ 11837 p 11838 } 11839 }' 11840aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11841# Check for a 64-bit object if we didn't find anything. 11842if test -z "$aix_libpath"; then 11843 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11844fi 11845fi 11846rm -f core conftest.err conftest.$ac_objext \ 11847 conftest$ac_exeext conftest.$ac_ext 11848if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11849 11850 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11851 11852 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" 11853 else 11854 if test "$host_cpu" = ia64; then 11855 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11856 allow_undefined_flag_CXX="-z nodefs" 11857 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" 11858 else 11859 # Determine the default libpath from the value encoded in an 11860 # empty executable. 11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11862/* end confdefs.h. */ 11863 11864int 11865main () 11866{ 11867 11868 ; 11869 return 0; 11870} 11871_ACEOF 11872if ac_fn_cxx_try_link "$LINENO"; then : 11873 11874lt_aix_libpath_sed=' 11875 /Import File Strings/,/^$/ { 11876 /^0/ { 11877 s/^0 *\(.*\)$/\1/ 11878 p 11879 } 11880 }' 11881aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11882# Check for a 64-bit object if we didn't find anything. 11883if test -z "$aix_libpath"; then 11884 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11885fi 11886fi 11887rm -f core conftest.err conftest.$ac_objext \ 11888 conftest$ac_exeext conftest.$ac_ext 11889if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11890 11891 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11892 # Warning - without using the other run time loading flags, 11893 # -berok will link without error, but may produce a broken library. 11894 no_undefined_flag_CXX=' ${wl}-bernotok' 11895 allow_undefined_flag_CXX=' ${wl}-berok' 11896 if test "$with_gnu_ld" = yes; then 11897 # We only use this code for GNU lds that support --whole-archive. 11898 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11899 else 11900 # Exported symbols can be pulled into shared objects from archives 11901 whole_archive_flag_spec_CXX='$convenience' 11902 fi 11903 archive_cmds_need_lc_CXX=yes 11904 # This is similar to how AIX traditionally builds its shared 11905 # libraries. 11906 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' 11907 fi 11908 fi 11909 ;; 11910 11911 beos*) 11912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11913 allow_undefined_flag_CXX=unsupported 11914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11915 # support --undefined. This deserves some investigation. FIXME 11916 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11917 else 11918 ld_shlibs_CXX=no 11919 fi 11920 ;; 11921 11922 chorus*) 11923 case $cc_basename in 11924 *) 11925 # FIXME: insert proper C++ library support 11926 ld_shlibs_CXX=no 11927 ;; 11928 esac 11929 ;; 11930 11931 cygwin* | mingw* | pw32* | cegcc*) 11932 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11933 # as there is no search path for DLLs. 11934 hardcode_libdir_flag_spec_CXX='-L$libdir' 11935 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 11936 allow_undefined_flag_CXX=unsupported 11937 always_export_symbols_CXX=no 11938 enable_shared_with_static_runtimes_CXX=yes 11939 11940 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11941 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' 11942 # If the export-symbols file already is a .def file (1st line 11943 # is EXPORTS), use it as is; otherwise, prepend... 11944 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11945 cp $export_symbols $output_objdir/$soname.def; 11946 else 11947 echo EXPORTS > $output_objdir/$soname.def; 11948 cat $export_symbols >> $output_objdir/$soname.def; 11949 fi~ 11950 $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' 11951 else 11952 ld_shlibs_CXX=no 11953 fi 11954 ;; 11955 darwin* | rhapsody*) 11956 11957 11958 archive_cmds_need_lc_CXX=no 11959 hardcode_direct_CXX=no 11960 hardcode_automatic_CXX=yes 11961 hardcode_shlibpath_var_CXX=unsupported 11962 if test "$lt_cv_ld_force_load" = "yes"; then 11963 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\"`' 11964 else 11965 whole_archive_flag_spec_CXX='' 11966 fi 11967 link_all_deplibs_CXX=yes 11968 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11969 case $cc_basename in 11970 ifort*) _lt_dar_can_shared=yes ;; 11971 *) _lt_dar_can_shared=$GCC ;; 11972 esac 11973 if test "$_lt_dar_can_shared" = "yes"; then 11974 output_verbose_link_cmd=func_echo_all 11975 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}" 11976 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11977 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}" 11978 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}" 11979 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11980 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}" 11981 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}" 11982 fi 11983 11984 else 11985 ld_shlibs_CXX=no 11986 fi 11987 11988 ;; 11989 11990 dgux*) 11991 case $cc_basename in 11992 ec++*) 11993 # FIXME: insert proper C++ library support 11994 ld_shlibs_CXX=no 11995 ;; 11996 ghcx*) 11997 # Green Hills C++ Compiler 11998 # FIXME: insert proper C++ library support 11999 ld_shlibs_CXX=no 12000 ;; 12001 *) 12002 # FIXME: insert proper C++ library support 12003 ld_shlibs_CXX=no 12004 ;; 12005 esac 12006 ;; 12007 12008 freebsd2.*) 12009 # C++ shared libraries reported to be fairly broken before 12010 # switch to ELF 12011 ld_shlibs_CXX=no 12012 ;; 12013 12014 freebsd-elf*) 12015 archive_cmds_need_lc_CXX=no 12016 ;; 12017 12018 freebsd* | dragonfly*) 12019 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12020 # conventions 12021 ld_shlibs_CXX=yes 12022 ;; 12023 12024 gnu*) 12025 ;; 12026 12027 haiku*) 12028 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12029 link_all_deplibs_CXX=yes 12030 ;; 12031 12032 hpux9*) 12033 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12034 hardcode_libdir_separator_CXX=: 12035 export_dynamic_flag_spec_CXX='${wl}-E' 12036 hardcode_direct_CXX=yes 12037 hardcode_minus_L_CXX=yes # Not in the search PATH, 12038 # but as the default 12039 # location of the library. 12040 12041 case $cc_basename in 12042 CC*) 12043 # FIXME: insert proper C++ library support 12044 ld_shlibs_CXX=no 12045 ;; 12046 aCC*) 12047 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' 12048 # Commands to make compiler produce verbose output that lists 12049 # what "hidden" libraries, object files and flags are used when 12050 # linking a shared library. 12051 # 12052 # There doesn't appear to be a way to prevent this compiler from 12053 # explicitly linking system object files so we need to strip them 12054 # from the output so that they don't get included in the library 12055 # dependencies. 12056 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"' 12057 ;; 12058 *) 12059 if test "$GXX" = yes; then 12060 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' 12061 else 12062 # FIXME: insert proper C++ library support 12063 ld_shlibs_CXX=no 12064 fi 12065 ;; 12066 esac 12067 ;; 12068 12069 hpux10*|hpux11*) 12070 if test $with_gnu_ld = no; then 12071 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12072 hardcode_libdir_separator_CXX=: 12073 12074 case $host_cpu in 12075 hppa*64*|ia64*) 12076 ;; 12077 *) 12078 export_dynamic_flag_spec_CXX='${wl}-E' 12079 ;; 12080 esac 12081 fi 12082 case $host_cpu in 12083 hppa*64*|ia64*) 12084 hardcode_direct_CXX=no 12085 hardcode_shlibpath_var_CXX=no 12086 ;; 12087 *) 12088 hardcode_direct_CXX=yes 12089 hardcode_direct_absolute_CXX=yes 12090 hardcode_minus_L_CXX=yes # Not in the search PATH, 12091 # but as the default 12092 # location of the library. 12093 ;; 12094 esac 12095 12096 case $cc_basename in 12097 CC*) 12098 # FIXME: insert proper C++ library support 12099 ld_shlibs_CXX=no 12100 ;; 12101 aCC*) 12102 case $host_cpu in 12103 hppa*64*) 12104 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12105 ;; 12106 ia64*) 12107 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12108 ;; 12109 *) 12110 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12111 ;; 12112 esac 12113 # Commands to make compiler produce verbose output that lists 12114 # what "hidden" libraries, object files and flags are used when 12115 # linking a shared library. 12116 # 12117 # There doesn't appear to be a way to prevent this compiler from 12118 # explicitly linking system object files so we need to strip them 12119 # from the output so that they don't get included in the library 12120 # dependencies. 12121 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"' 12122 ;; 12123 *) 12124 if test "$GXX" = yes; then 12125 if test $with_gnu_ld = no; then 12126 case $host_cpu in 12127 hppa*64*) 12128 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12129 ;; 12130 ia64*) 12131 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12132 ;; 12133 *) 12134 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' 12135 ;; 12136 esac 12137 fi 12138 else 12139 # FIXME: insert proper C++ library support 12140 ld_shlibs_CXX=no 12141 fi 12142 ;; 12143 esac 12144 ;; 12145 12146 interix[3-9]*) 12147 hardcode_direct_CXX=no 12148 hardcode_shlibpath_var_CXX=no 12149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12150 export_dynamic_flag_spec_CXX='${wl}-E' 12151 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12152 # Instead, shared libraries are loaded at an image base (0x10000000 by 12153 # default) and relocated if they conflict, which is a slow very memory 12154 # consuming and fragmenting process. To avoid this, we pick a random, 12155 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12156 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12157 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' 12158 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' 12159 ;; 12160 irix5* | irix6*) 12161 case $cc_basename in 12162 CC*) 12163 # SGI C++ 12164 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' 12165 12166 # Archives containing C++ object files must be created using 12167 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12168 # necessary to make sure instantiated templates are included 12169 # in the archive. 12170 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12171 ;; 12172 *) 12173 if test "$GXX" = yes; then 12174 if test "$with_gnu_ld" = no; then 12175 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' 12176 else 12177 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' 12178 fi 12179 fi 12180 link_all_deplibs_CXX=yes 12181 ;; 12182 esac 12183 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12184 hardcode_libdir_separator_CXX=: 12185 inherit_rpath_CXX=yes 12186 ;; 12187 12188 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12189 case $cc_basename in 12190 KCC*) 12191 # Kuck and Associates, Inc. (KAI) C++ Compiler 12192 12193 # KCC will only create a shared library if the output file 12194 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12195 # to its proper name (with version) after linking. 12196 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' 12197 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' 12198 # Commands to make compiler produce verbose output that lists 12199 # what "hidden" libraries, object files and flags are used when 12200 # linking a shared library. 12201 # 12202 # There doesn't appear to be a way to prevent this compiler from 12203 # explicitly linking system object files so we need to strip them 12204 # from the output so that they don't get included in the library 12205 # dependencies. 12206 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"' 12207 12208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12209 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12210 12211 # Archives containing C++ object files must be created using 12212 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12213 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12214 ;; 12215 icpc* | ecpc* ) 12216 # Intel C++ 12217 with_gnu_ld=yes 12218 # version 8.0 and above of icpc choke on multiply defined symbols 12219 # if we add $predep_objects and $postdep_objects, however 7.1 and 12220 # earlier do not add the objects themselves. 12221 case `$CC -V 2>&1` in 12222 *"Version 7."*) 12223 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12224 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' 12225 ;; 12226 *) # Version 8.0 or newer 12227 tmp_idyn= 12228 case $host_cpu in 12229 ia64*) tmp_idyn=' -i_dynamic';; 12230 esac 12231 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12232 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' 12233 ;; 12234 esac 12235 archive_cmds_need_lc_CXX=no 12236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12238 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12239 ;; 12240 pgCC* | pgcpp*) 12241 # Portland Group C++ compiler 12242 case `$CC -V` in 12243 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12244 prelink_cmds_CXX='tpldir=Template.dir~ 12245 rm -rf $tpldir~ 12246 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12247 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12248 old_archive_cmds_CXX='tpldir=Template.dir~ 12249 rm -rf $tpldir~ 12250 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12251 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12252 $RANLIB $oldlib' 12253 archive_cmds_CXX='tpldir=Template.dir~ 12254 rm -rf $tpldir~ 12255 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12256 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12257 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12258 rm -rf $tpldir~ 12259 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12260 $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' 12261 ;; 12262 *) # Version 6 and above use weak symbols 12263 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12264 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' 12265 ;; 12266 esac 12267 12268 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12270 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' 12271 ;; 12272 cxx*) 12273 # Compaq C++ 12274 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12275 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' 12276 12277 runpath_var=LD_RUN_PATH 12278 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12279 hardcode_libdir_separator_CXX=: 12280 12281 # Commands to make compiler produce verbose output that lists 12282 # what "hidden" libraries, object files and flags are used when 12283 # linking a shared library. 12284 # 12285 # There doesn't appear to be a way to prevent this compiler from 12286 # explicitly linking system object files so we need to strip them 12287 # from the output so that they don't get included in the library 12288 # dependencies. 12289 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' 12290 ;; 12291 xl* | mpixl* | bgxl*) 12292 # IBM XL 8.0 on PPC, with GNU ld 12293 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12295 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12296 if test "x$supports_anon_versioning" = xyes; then 12297 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12298 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12299 echo "local: *; };" >> $output_objdir/$libname.ver~ 12300 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12301 fi 12302 ;; 12303 *) 12304 case `$CC -V 2>&1 | sed 5q` in 12305 *Sun\ C*) 12306 # Sun C++ 5.9 12307 no_undefined_flag_CXX=' -zdefs' 12308 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12309 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' 12310 hardcode_libdir_flag_spec_CXX='-R$libdir' 12311 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' 12312 compiler_needs_object_CXX=yes 12313 12314 # Not sure whether something based on 12315 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12316 # would be better. 12317 output_verbose_link_cmd='func_echo_all' 12318 12319 # Archives containing C++ object files must be created using 12320 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12321 # necessary to make sure instantiated templates are included 12322 # in the archive. 12323 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12324 ;; 12325 esac 12326 ;; 12327 esac 12328 ;; 12329 12330 lynxos*) 12331 # FIXME: insert proper C++ library support 12332 ld_shlibs_CXX=no 12333 ;; 12334 12335 m88k*) 12336 # FIXME: insert proper C++ library support 12337 ld_shlibs_CXX=no 12338 ;; 12339 12340 mvs*) 12341 case $cc_basename in 12342 cxx*) 12343 # FIXME: insert proper C++ library support 12344 ld_shlibs_CXX=no 12345 ;; 12346 *) 12347 # FIXME: insert proper C++ library support 12348 ld_shlibs_CXX=no 12349 ;; 12350 esac 12351 ;; 12352 12353 netbsd*) 12354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12355 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12356 wlarc= 12357 hardcode_libdir_flag_spec_CXX='-R$libdir' 12358 hardcode_direct_CXX=yes 12359 hardcode_shlibpath_var_CXX=no 12360 fi 12361 # Workaround some broken pre-1.5 toolchains 12362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12363 ;; 12364 12365 *nto* | *qnx*) 12366 ld_shlibs_CXX=yes 12367 ;; 12368 12369 openbsd2*) 12370 # C++ shared libraries are fairly broken 12371 ld_shlibs_CXX=no 12372 ;; 12373 12374 openbsd*) 12375 if test -f /usr/libexec/ld.so; then 12376 hardcode_direct_CXX=yes 12377 hardcode_shlibpath_var_CXX=no 12378 hardcode_direct_absolute_CXX=yes 12379 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12380 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12382 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12383 export_dynamic_flag_spec_CXX='${wl}-E' 12384 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12385 fi 12386 output_verbose_link_cmd=func_echo_all 12387 else 12388 ld_shlibs_CXX=no 12389 fi 12390 ;; 12391 12392 osf3* | osf4* | osf5*) 12393 case $cc_basename in 12394 KCC*) 12395 # Kuck and Associates, Inc. (KAI) C++ Compiler 12396 12397 # KCC will only create a shared library if the output file 12398 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12399 # to its proper name (with version) after linking. 12400 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' 12401 12402 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12403 hardcode_libdir_separator_CXX=: 12404 12405 # Archives containing C++ object files must be created using 12406 # the KAI C++ compiler. 12407 case $host in 12408 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12409 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12410 esac 12411 ;; 12412 RCC*) 12413 # Rational C++ 2.4.1 12414 # FIXME: insert proper C++ library support 12415 ld_shlibs_CXX=no 12416 ;; 12417 cxx*) 12418 case $host in 12419 osf3*) 12420 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12421 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' 12422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12423 ;; 12424 *) 12425 allow_undefined_flag_CXX=' -expect_unresolved \*' 12426 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' 12427 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12428 echo "-hidden">> $lib.exp~ 12429 $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~ 12430 $RM $lib.exp' 12431 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12432 ;; 12433 esac 12434 12435 hardcode_libdir_separator_CXX=: 12436 12437 # Commands to make compiler produce verbose output that lists 12438 # what "hidden" libraries, object files and flags are used when 12439 # linking a shared library. 12440 # 12441 # There doesn't appear to be a way to prevent this compiler from 12442 # explicitly linking system object files so we need to strip them 12443 # from the output so that they don't get included in the library 12444 # dependencies. 12445 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"' 12446 ;; 12447 *) 12448 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12449 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12450 case $host in 12451 osf3*) 12452 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' 12453 ;; 12454 *) 12455 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' 12456 ;; 12457 esac 12458 12459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12460 hardcode_libdir_separator_CXX=: 12461 12462 # Commands to make compiler produce verbose output that lists 12463 # what "hidden" libraries, object files and flags are used when 12464 # linking a shared library. 12465 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12466 12467 else 12468 # FIXME: insert proper C++ library support 12469 ld_shlibs_CXX=no 12470 fi 12471 ;; 12472 esac 12473 ;; 12474 12475 psos*) 12476 # FIXME: insert proper C++ library support 12477 ld_shlibs_CXX=no 12478 ;; 12479 12480 sunos4*) 12481 case $cc_basename in 12482 CC*) 12483 # Sun C++ 4.x 12484 # FIXME: insert proper C++ library support 12485 ld_shlibs_CXX=no 12486 ;; 12487 lcc*) 12488 # Lucid 12489 # FIXME: insert proper C++ library support 12490 ld_shlibs_CXX=no 12491 ;; 12492 *) 12493 # FIXME: insert proper C++ library support 12494 ld_shlibs_CXX=no 12495 ;; 12496 esac 12497 ;; 12498 12499 solaris*) 12500 case $cc_basename in 12501 CC*) 12502 # Sun C++ 4.2, 5.x and Centerline C++ 12503 archive_cmds_need_lc_CXX=yes 12504 no_undefined_flag_CXX=' -zdefs' 12505 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12506 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12507 $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' 12508 12509 hardcode_libdir_flag_spec_CXX='-R$libdir' 12510 hardcode_shlibpath_var_CXX=no 12511 case $host_os in 12512 solaris2.[0-5] | solaris2.[0-5].*) ;; 12513 *) 12514 # The compiler driver will combine and reorder linker options, 12515 # but understands `-z linker_flag'. 12516 # Supported since Solaris 2.6 (maybe 2.5.1?) 12517 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12518 ;; 12519 esac 12520 link_all_deplibs_CXX=yes 12521 12522 output_verbose_link_cmd='func_echo_all' 12523 12524 # Archives containing C++ object files must be created using 12525 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12526 # necessary to make sure instantiated templates are included 12527 # in the archive. 12528 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12529 ;; 12530 gcx*) 12531 # Green Hills C++ Compiler 12532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12533 12534 # The C++ compiler must be used to create the archive. 12535 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12536 ;; 12537 *) 12538 # GNU C++ compiler with Solaris linker 12539 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12540 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12541 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12542 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12543 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12544 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12545 12546 # Commands to make compiler produce verbose output that lists 12547 # what "hidden" libraries, object files and flags are used when 12548 # linking a shared library. 12549 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12550 else 12551 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12552 # platform. 12553 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12554 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12555 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12556 12557 # Commands to make compiler produce verbose output that lists 12558 # what "hidden" libraries, object files and flags are used when 12559 # linking a shared library. 12560 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12561 fi 12562 12563 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12564 case $host_os in 12565 solaris2.[0-5] | solaris2.[0-5].*) ;; 12566 *) 12567 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12568 ;; 12569 esac 12570 fi 12571 ;; 12572 esac 12573 ;; 12574 12575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12576 no_undefined_flag_CXX='${wl}-z,text' 12577 archive_cmds_need_lc_CXX=no 12578 hardcode_shlibpath_var_CXX=no 12579 runpath_var='LD_RUN_PATH' 12580 12581 case $cc_basename in 12582 CC*) 12583 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12584 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12585 ;; 12586 *) 12587 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12588 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12589 ;; 12590 esac 12591 ;; 12592 12593 sysv5* | sco3.2v5* | sco5v6*) 12594 # Note: We can NOT use -z defs as we might desire, because we do not 12595 # link with -lc, and that would cause any symbols used from libc to 12596 # always be unresolved, which means just about no library would 12597 # ever link correctly. If we're not using GNU ld we use -z text 12598 # though, which does catch some bad symbols but isn't as heavy-handed 12599 # as -z defs. 12600 no_undefined_flag_CXX='${wl}-z,text' 12601 allow_undefined_flag_CXX='${wl}-z,nodefs' 12602 archive_cmds_need_lc_CXX=no 12603 hardcode_shlibpath_var_CXX=no 12604 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12605 hardcode_libdir_separator_CXX=':' 12606 link_all_deplibs_CXX=yes 12607 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12608 runpath_var='LD_RUN_PATH' 12609 12610 case $cc_basename in 12611 CC*) 12612 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12613 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12614 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 12615 '"$old_archive_cmds_CXX" 12616 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 12617 '"$reload_cmds_CXX" 12618 ;; 12619 *) 12620 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12621 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12622 ;; 12623 esac 12624 ;; 12625 12626 tandem*) 12627 case $cc_basename in 12628 NCC*) 12629 # NonStop-UX NCC 3.20 12630 # FIXME: insert proper C++ library support 12631 ld_shlibs_CXX=no 12632 ;; 12633 *) 12634 # FIXME: insert proper C++ library support 12635 ld_shlibs_CXX=no 12636 ;; 12637 esac 12638 ;; 12639 12640 vxworks*) 12641 # FIXME: insert proper C++ library support 12642 ld_shlibs_CXX=no 12643 ;; 12644 12645 *) 12646 # FIXME: insert proper C++ library support 12647 ld_shlibs_CXX=no 12648 ;; 12649 esac 12650 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12652$as_echo "$ld_shlibs_CXX" >&6; } 12653 test "$ld_shlibs_CXX" = no && can_build_shared=no 12654 12655 GCC_CXX="$GXX" 12656 LD_CXX="$LD" 12657 12658 ## CAVEAT EMPTOR: 12659 ## There is no encapsulation within the following macros, do not change 12660 ## the running order or otherwise move them around unless you know exactly 12661 ## what you are doing... 12662 # Dependencies to place before and after the object being linked: 12663predep_objects_CXX= 12664postdep_objects_CXX= 12665predeps_CXX= 12666postdeps_CXX= 12667compiler_lib_search_path_CXX= 12668 12669cat > conftest.$ac_ext <<_LT_EOF 12670class Foo 12671{ 12672public: 12673 Foo (void) { a = 0; } 12674private: 12675 int a; 12676}; 12677_LT_EOF 12678 12679if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12680 (eval $ac_compile) 2>&5 12681 ac_status=$? 12682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12683 test $ac_status = 0; }; then 12684 # Parse the compiler output and extract the necessary 12685 # objects, libraries and library flags. 12686 12687 # Sentinel used to keep track of whether or not we are before 12688 # the conftest object file. 12689 pre_test_object_deps_done=no 12690 12691 for p in `eval "$output_verbose_link_cmd"`; do 12692 case $p in 12693 12694 -L* | -R* | -l*) 12695 # Some compilers place space between "-{L,R}" and the path. 12696 # Remove the space. 12697 if test $p = "-L" || 12698 test $p = "-R"; then 12699 prev=$p 12700 continue 12701 else 12702 prev= 12703 fi 12704 12705 if test "$pre_test_object_deps_done" = no; then 12706 case $p in 12707 -L* | -R*) 12708 # Internal compiler library paths should come after those 12709 # provided the user. The postdeps already come after the 12710 # user supplied libs so there is no need to process them. 12711 if test -z "$compiler_lib_search_path_CXX"; then 12712 compiler_lib_search_path_CXX="${prev}${p}" 12713 else 12714 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12715 fi 12716 ;; 12717 # The "-l" case would never come before the object being 12718 # linked, so don't bother handling this case. 12719 esac 12720 else 12721 if test -z "$postdeps_CXX"; then 12722 postdeps_CXX="${prev}${p}" 12723 else 12724 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12725 fi 12726 fi 12727 ;; 12728 12729 *.$objext) 12730 # This assumes that the test object file only shows up 12731 # once in the compiler output. 12732 if test "$p" = "conftest.$objext"; then 12733 pre_test_object_deps_done=yes 12734 continue 12735 fi 12736 12737 if test "$pre_test_object_deps_done" = no; then 12738 if test -z "$predep_objects_CXX"; then 12739 predep_objects_CXX="$p" 12740 else 12741 predep_objects_CXX="$predep_objects_CXX $p" 12742 fi 12743 else 12744 if test -z "$postdep_objects_CXX"; then 12745 postdep_objects_CXX="$p" 12746 else 12747 postdep_objects_CXX="$postdep_objects_CXX $p" 12748 fi 12749 fi 12750 ;; 12751 12752 *) ;; # Ignore the rest. 12753 12754 esac 12755 done 12756 12757 # Clean up. 12758 rm -f a.out a.exe 12759else 12760 echo "libtool.m4: error: problem compiling CXX test program" 12761fi 12762 12763$RM -f confest.$objext 12764 12765# PORTME: override above test on systems where it is broken 12766case $host_os in 12767interix[3-9]*) 12768 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12769 # hack all around it, let's just trust "g++" to DTRT. 12770 predep_objects_CXX= 12771 postdep_objects_CXX= 12772 postdeps_CXX= 12773 ;; 12774 12775linux*) 12776 case `$CC -V 2>&1 | sed 5q` in 12777 *Sun\ C*) 12778 # Sun C++ 5.9 12779 12780 # The more standards-conforming stlport4 library is 12781 # incompatible with the Cstd library. Avoid specifying 12782 # it if it's in CXXFLAGS. Ignore libCrun as 12783 # -library=stlport4 depends on it. 12784 case " $CXX $CXXFLAGS " in 12785 *" -library=stlport4 "*) 12786 solaris_use_stlport4=yes 12787 ;; 12788 esac 12789 12790 if test "$solaris_use_stlport4" != yes; then 12791 postdeps_CXX='-library=Cstd -library=Crun' 12792 fi 12793 ;; 12794 esac 12795 ;; 12796 12797solaris*) 12798 case $cc_basename in 12799 CC*) 12800 # The more standards-conforming stlport4 library is 12801 # incompatible with the Cstd library. Avoid specifying 12802 # it if it's in CXXFLAGS. Ignore libCrun as 12803 # -library=stlport4 depends on it. 12804 case " $CXX $CXXFLAGS " in 12805 *" -library=stlport4 "*) 12806 solaris_use_stlport4=yes 12807 ;; 12808 esac 12809 12810 # Adding this requires a known-good setup of shared libraries for 12811 # Sun compiler versions before 5.6, else PIC objects from an old 12812 # archive will be linked into the output, leading to subtle bugs. 12813 if test "$solaris_use_stlport4" != yes; then 12814 postdeps_CXX='-library=Cstd -library=Crun' 12815 fi 12816 ;; 12817 esac 12818 ;; 12819esac 12820 12821 12822case " $postdeps_CXX " in 12823*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12824esac 12825 compiler_lib_search_dirs_CXX= 12826if test -n "${compiler_lib_search_path_CXX}"; then 12827 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12828fi 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 lt_prog_compiler_wl_CXX= 12861lt_prog_compiler_pic_CXX= 12862lt_prog_compiler_static_CXX= 12863 12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12865$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12866 12867 # C++ specific cases for pic, static, wl, etc. 12868 if test "$GXX" = yes; then 12869 lt_prog_compiler_wl_CXX='-Wl,' 12870 lt_prog_compiler_static_CXX='-static' 12871 12872 case $host_os in 12873 aix*) 12874 # All AIX code is PIC. 12875 if test "$host_cpu" = ia64; then 12876 # AIX 5 now supports IA64 processor 12877 lt_prog_compiler_static_CXX='-Bstatic' 12878 fi 12879 lt_prog_compiler_pic_CXX='-fPIC' 12880 ;; 12881 12882 amigaos*) 12883 case $host_cpu in 12884 powerpc) 12885 # see comment about AmigaOS4 .so support 12886 lt_prog_compiler_pic_CXX='-fPIC' 12887 ;; 12888 m68k) 12889 # FIXME: we need at least 68020 code to build shared libraries, but 12890 # adding the `-m68020' flag to GCC prevents building anything better, 12891 # like `-m68040'. 12892 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12893 ;; 12894 esac 12895 ;; 12896 12897 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12898 # PIC is the default for these OSes. 12899 ;; 12900 mingw* | cygwin* | os2* | pw32* | cegcc*) 12901 # This hack is so that the source file can tell whether it is being 12902 # built for inclusion in a dll (and should export symbols for example). 12903 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12904 # (--disable-auto-import) libraries 12905 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12906 ;; 12907 darwin* | rhapsody*) 12908 # PIC is the default on this platform 12909 # Common symbols not allowed in MH_DYLIB files 12910 lt_prog_compiler_pic_CXX='-fno-common' 12911 ;; 12912 *djgpp*) 12913 # DJGPP does not support shared libraries at all 12914 lt_prog_compiler_pic_CXX= 12915 ;; 12916 haiku*) 12917 # PIC is the default for Haiku. 12918 # The "-static" flag exists, but is broken. 12919 lt_prog_compiler_static_CXX= 12920 ;; 12921 interix[3-9]*) 12922 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12923 # Instead, we relocate shared libraries at runtime. 12924 ;; 12925 sysv4*MP*) 12926 if test -d /usr/nec; then 12927 lt_prog_compiler_pic_CXX=-Kconform_pic 12928 fi 12929 ;; 12930 hpux*) 12931 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12932 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12933 # sets the default TLS model and affects inlining. 12934 case $host_cpu in 12935 hppa*64*) 12936 ;; 12937 *) 12938 lt_prog_compiler_pic_CXX='-fPIC' 12939 ;; 12940 esac 12941 ;; 12942 *qnx* | *nto*) 12943 # QNX uses GNU C++, but need to define -shared option too, otherwise 12944 # it will coredump. 12945 lt_prog_compiler_pic_CXX='-fPIC -shared' 12946 ;; 12947 *) 12948 lt_prog_compiler_pic_CXX='-fPIC' 12949 ;; 12950 esac 12951 else 12952 case $host_os in 12953 aix[4-9]*) 12954 # All AIX code is PIC. 12955 if test "$host_cpu" = ia64; then 12956 # AIX 5 now supports IA64 processor 12957 lt_prog_compiler_static_CXX='-Bstatic' 12958 else 12959 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12960 fi 12961 ;; 12962 chorus*) 12963 case $cc_basename in 12964 cxch68*) 12965 # Green Hills C++ Compiler 12966 # _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" 12967 ;; 12968 esac 12969 ;; 12970 dgux*) 12971 case $cc_basename in 12972 ec++*) 12973 lt_prog_compiler_pic_CXX='-KPIC' 12974 ;; 12975 ghcx*) 12976 # Green Hills C++ Compiler 12977 lt_prog_compiler_pic_CXX='-pic' 12978 ;; 12979 *) 12980 ;; 12981 esac 12982 ;; 12983 freebsd* | dragonfly*) 12984 # FreeBSD uses GNU C++ 12985 ;; 12986 hpux9* | hpux10* | hpux11*) 12987 case $cc_basename in 12988 CC*) 12989 lt_prog_compiler_wl_CXX='-Wl,' 12990 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12991 if test "$host_cpu" != ia64; then 12992 lt_prog_compiler_pic_CXX='+Z' 12993 fi 12994 ;; 12995 aCC*) 12996 lt_prog_compiler_wl_CXX='-Wl,' 12997 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12998 case $host_cpu in 12999 hppa*64*|ia64*) 13000 # +Z the default 13001 ;; 13002 *) 13003 lt_prog_compiler_pic_CXX='+Z' 13004 ;; 13005 esac 13006 ;; 13007 *) 13008 ;; 13009 esac 13010 ;; 13011 interix*) 13012 # This is c89, which is MS Visual C++ (no shared libs) 13013 # Anyone wants to do a port? 13014 ;; 13015 irix5* | irix6* | nonstopux*) 13016 case $cc_basename in 13017 CC*) 13018 lt_prog_compiler_wl_CXX='-Wl,' 13019 lt_prog_compiler_static_CXX='-non_shared' 13020 # CC pic flag -KPIC is the default. 13021 ;; 13022 *) 13023 ;; 13024 esac 13025 ;; 13026 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13027 case $cc_basename in 13028 KCC*) 13029 # KAI C++ Compiler 13030 lt_prog_compiler_wl_CXX='--backend -Wl,' 13031 lt_prog_compiler_pic_CXX='-fPIC' 13032 ;; 13033 ecpc* ) 13034 # old Intel C++ for x86_64 which still supported -KPIC. 13035 lt_prog_compiler_wl_CXX='-Wl,' 13036 lt_prog_compiler_pic_CXX='-KPIC' 13037 lt_prog_compiler_static_CXX='-static' 13038 ;; 13039 icpc* ) 13040 # Intel C++, used to be incompatible with GCC. 13041 # ICC 10 doesn't accept -KPIC any more. 13042 lt_prog_compiler_wl_CXX='-Wl,' 13043 lt_prog_compiler_pic_CXX='-fPIC' 13044 lt_prog_compiler_static_CXX='-static' 13045 ;; 13046 pgCC* | pgcpp*) 13047 # Portland Group C++ compiler 13048 lt_prog_compiler_wl_CXX='-Wl,' 13049 lt_prog_compiler_pic_CXX='-fpic' 13050 lt_prog_compiler_static_CXX='-Bstatic' 13051 ;; 13052 cxx*) 13053 # Compaq C++ 13054 # Make sure the PIC flag is empty. It appears that all Alpha 13055 # Linux and Compaq Tru64 Unix objects are PIC. 13056 lt_prog_compiler_pic_CXX= 13057 lt_prog_compiler_static_CXX='-non_shared' 13058 ;; 13059 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13060 # IBM XL 8.0, 9.0 on PPC and BlueGene 13061 lt_prog_compiler_wl_CXX='-Wl,' 13062 lt_prog_compiler_pic_CXX='-qpic' 13063 lt_prog_compiler_static_CXX='-qstaticlink' 13064 ;; 13065 *) 13066 case `$CC -V 2>&1 | sed 5q` in 13067 *Sun\ C*) 13068 # Sun C++ 5.9 13069 lt_prog_compiler_pic_CXX='-KPIC' 13070 lt_prog_compiler_static_CXX='-Bstatic' 13071 lt_prog_compiler_wl_CXX='-Qoption ld ' 13072 ;; 13073 esac 13074 ;; 13075 esac 13076 ;; 13077 lynxos*) 13078 ;; 13079 m88k*) 13080 ;; 13081 mvs*) 13082 case $cc_basename in 13083 cxx*) 13084 lt_prog_compiler_pic_CXX='-W c,exportall' 13085 ;; 13086 *) 13087 ;; 13088 esac 13089 ;; 13090 netbsd*) 13091 ;; 13092 *qnx* | *nto*) 13093 # QNX uses GNU C++, but need to define -shared option too, otherwise 13094 # it will coredump. 13095 lt_prog_compiler_pic_CXX='-fPIC -shared' 13096 ;; 13097 osf3* | osf4* | osf5*) 13098 case $cc_basename in 13099 KCC*) 13100 lt_prog_compiler_wl_CXX='--backend -Wl,' 13101 ;; 13102 RCC*) 13103 # Rational C++ 2.4.1 13104 lt_prog_compiler_pic_CXX='-pic' 13105 ;; 13106 cxx*) 13107 # Digital/Compaq C++ 13108 lt_prog_compiler_wl_CXX='-Wl,' 13109 # Make sure the PIC flag is empty. It appears that all Alpha 13110 # Linux and Compaq Tru64 Unix objects are PIC. 13111 lt_prog_compiler_pic_CXX= 13112 lt_prog_compiler_static_CXX='-non_shared' 13113 ;; 13114 *) 13115 ;; 13116 esac 13117 ;; 13118 psos*) 13119 ;; 13120 solaris*) 13121 case $cc_basename in 13122 CC*) 13123 # Sun C++ 4.2, 5.x and Centerline C++ 13124 lt_prog_compiler_pic_CXX='-KPIC' 13125 lt_prog_compiler_static_CXX='-Bstatic' 13126 lt_prog_compiler_wl_CXX='-Qoption ld ' 13127 ;; 13128 gcx*) 13129 # Green Hills C++ Compiler 13130 lt_prog_compiler_pic_CXX='-PIC' 13131 ;; 13132 *) 13133 ;; 13134 esac 13135 ;; 13136 sunos4*) 13137 case $cc_basename in 13138 CC*) 13139 # Sun C++ 4.x 13140 lt_prog_compiler_pic_CXX='-pic' 13141 lt_prog_compiler_static_CXX='-Bstatic' 13142 ;; 13143 lcc*) 13144 # Lucid 13145 lt_prog_compiler_pic_CXX='-pic' 13146 ;; 13147 *) 13148 ;; 13149 esac 13150 ;; 13151 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13152 case $cc_basename in 13153 CC*) 13154 lt_prog_compiler_wl_CXX='-Wl,' 13155 lt_prog_compiler_pic_CXX='-KPIC' 13156 lt_prog_compiler_static_CXX='-Bstatic' 13157 ;; 13158 esac 13159 ;; 13160 tandem*) 13161 case $cc_basename in 13162 NCC*) 13163 # NonStop-UX NCC 3.20 13164 lt_prog_compiler_pic_CXX='-KPIC' 13165 ;; 13166 *) 13167 ;; 13168 esac 13169 ;; 13170 vxworks*) 13171 ;; 13172 *) 13173 lt_prog_compiler_can_build_shared_CXX=no 13174 ;; 13175 esac 13176 fi 13177 13178case $host_os in 13179 # For platforms which do not support PIC, -DPIC is meaningless: 13180 *djgpp*) 13181 lt_prog_compiler_pic_CXX= 13182 ;; 13183 *) 13184 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13185 ;; 13186esac 13187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13188$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13189 13190 13191 13192# 13193# Check to make sure the PIC flag actually works. 13194# 13195if test -n "$lt_prog_compiler_pic_CXX"; then 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13197$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13198if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13199 $as_echo_n "(cached) " >&6 13200else 13201 lt_cv_prog_compiler_pic_works_CXX=no 13202 ac_outfile=conftest.$ac_objext 13203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13204 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13205 # Insert the option either (1) after the last *FLAGS variable, or 13206 # (2) before a word containing "conftest.", or (3) at the end. 13207 # Note that $ac_compile itself does not contain backslashes and begins 13208 # with a dollar sign (not a hyphen), so the echo should work correctly. 13209 # The option is referenced via a variable to avoid confusing sed. 13210 lt_compile=`echo "$ac_compile" | $SED \ 13211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13213 -e 's:$: $lt_compiler_flag:'` 13214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13215 (eval "$lt_compile" 2>conftest.err) 13216 ac_status=$? 13217 cat conftest.err >&5 13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13219 if (exit $ac_status) && test -s "$ac_outfile"; then 13220 # The compiler can only warn and ignore the option if not recognized 13221 # So say no if there are warnings other than the usual output. 13222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13224 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13225 lt_cv_prog_compiler_pic_works_CXX=yes 13226 fi 13227 fi 13228 $RM conftest* 13229 13230fi 13231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13232$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13233 13234if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13235 case $lt_prog_compiler_pic_CXX in 13236 "" | " "*) ;; 13237 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13238 esac 13239else 13240 lt_prog_compiler_pic_CXX= 13241 lt_prog_compiler_can_build_shared_CXX=no 13242fi 13243 13244fi 13245 13246 13247 13248# 13249# Check to make sure the static flag actually works. 13250# 13251wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13253$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13254if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13255 $as_echo_n "(cached) " >&6 13256else 13257 lt_cv_prog_compiler_static_works_CXX=no 13258 save_LDFLAGS="$LDFLAGS" 13259 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13260 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13262 # The linker can only warn and ignore the option if not recognized 13263 # So say no if there are warnings 13264 if test -s conftest.err; then 13265 # Append any errors to the config.log. 13266 cat conftest.err 1>&5 13267 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13269 if diff conftest.exp conftest.er2 >/dev/null; then 13270 lt_cv_prog_compiler_static_works_CXX=yes 13271 fi 13272 else 13273 lt_cv_prog_compiler_static_works_CXX=yes 13274 fi 13275 fi 13276 $RM -r conftest* 13277 LDFLAGS="$save_LDFLAGS" 13278 13279fi 13280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13281$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13282 13283if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13284 : 13285else 13286 lt_prog_compiler_static_CXX= 13287fi 13288 13289 13290 13291 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13293$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13294if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13295 $as_echo_n "(cached) " >&6 13296else 13297 lt_cv_prog_compiler_c_o_CXX=no 13298 $RM -r conftest 2>/dev/null 13299 mkdir conftest 13300 cd conftest 13301 mkdir out 13302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13303 13304 lt_compiler_flag="-o out/conftest2.$ac_objext" 13305 # Insert the option either (1) after the last *FLAGS variable, or 13306 # (2) before a word containing "conftest.", or (3) at the end. 13307 # Note that $ac_compile itself does not contain backslashes and begins 13308 # with a dollar sign (not a hyphen), so the echo should work correctly. 13309 lt_compile=`echo "$ac_compile" | $SED \ 13310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13312 -e 's:$: $lt_compiler_flag:'` 13313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13314 (eval "$lt_compile" 2>out/conftest.err) 13315 ac_status=$? 13316 cat out/conftest.err >&5 13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13318 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13319 then 13320 # The compiler can only warn and ignore the option if not recognized 13321 # So say no if there are warnings 13322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13325 lt_cv_prog_compiler_c_o_CXX=yes 13326 fi 13327 fi 13328 chmod u+w . 2>&5 13329 $RM conftest* 13330 # SGI C++ compiler will create directory out/ii_files/ for 13331 # template instantiation 13332 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13333 $RM out/* && rmdir out 13334 cd .. 13335 $RM -r conftest 13336 $RM conftest* 13337 13338fi 13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13340$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13341 13342 13343 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13345$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13346if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13347 $as_echo_n "(cached) " >&6 13348else 13349 lt_cv_prog_compiler_c_o_CXX=no 13350 $RM -r conftest 2>/dev/null 13351 mkdir conftest 13352 cd conftest 13353 mkdir out 13354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13355 13356 lt_compiler_flag="-o out/conftest2.$ac_objext" 13357 # Insert the option either (1) after the last *FLAGS variable, or 13358 # (2) before a word containing "conftest.", or (3) at the end. 13359 # Note that $ac_compile itself does not contain backslashes and begins 13360 # with a dollar sign (not a hyphen), so the echo should work correctly. 13361 lt_compile=`echo "$ac_compile" | $SED \ 13362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13364 -e 's:$: $lt_compiler_flag:'` 13365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13366 (eval "$lt_compile" 2>out/conftest.err) 13367 ac_status=$? 13368 cat out/conftest.err >&5 13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13370 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13371 then 13372 # The compiler can only warn and ignore the option if not recognized 13373 # So say no if there are warnings 13374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13377 lt_cv_prog_compiler_c_o_CXX=yes 13378 fi 13379 fi 13380 chmod u+w . 2>&5 13381 $RM conftest* 13382 # SGI C++ compiler will create directory out/ii_files/ for 13383 # template instantiation 13384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13385 $RM out/* && rmdir out 13386 cd .. 13387 $RM -r conftest 13388 $RM conftest* 13389 13390fi 13391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13392$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13393 13394 13395 13396 13397hard_links="nottested" 13398if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13399 # do not overwrite the value of need_locks provided by the user 13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13401$as_echo_n "checking if we can lock with hard links... " >&6; } 13402 hard_links=yes 13403 $RM conftest* 13404 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13405 touch conftest.a 13406 ln conftest.a conftest.b 2>&5 || hard_links=no 13407 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13409$as_echo "$hard_links" >&6; } 13410 if test "$hard_links" = no; then 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13412$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13413 need_locks=warn 13414 fi 13415else 13416 need_locks=no 13417fi 13418 13419 13420 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13422$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13423 13424 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13425 case $host_os in 13426 aix[4-9]*) 13427 # If we're using GNU nm, then we don't want the "-C" option. 13428 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13429 # Also, AIX nm treats weak defined symbols like other global defined 13430 # symbols, whereas GNU nm marks them as "W". 13431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13432 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' 13433 else 13434 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13435 fi 13436 ;; 13437 pw32*) 13438 export_symbols_cmds_CXX="$ltdll_cmds" 13439 ;; 13440 cygwin* | mingw* | cegcc*) 13441 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' 13442 ;; 13443 *) 13444 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13445 ;; 13446 esac 13447 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13448 13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13450$as_echo "$ld_shlibs_CXX" >&6; } 13451test "$ld_shlibs_CXX" = no && can_build_shared=no 13452 13453with_gnu_ld_CXX=$with_gnu_ld 13454 13455 13456 13457 13458 13459 13460# 13461# Do we need to explicitly link libc? 13462# 13463case "x$archive_cmds_need_lc_CXX" in 13464x|xyes) 13465 # Assume -lc should be added 13466 archive_cmds_need_lc_CXX=yes 13467 13468 if test "$enable_shared" = yes && test "$GCC" = yes; then 13469 case $archive_cmds_CXX in 13470 *'~'*) 13471 # FIXME: we may have to deal with multi-command sequences. 13472 ;; 13473 '$CC '*) 13474 # Test whether the compiler implicitly links with -lc since on some 13475 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13476 # to ld, don't add -lc before -lgcc. 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13478$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13479if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 13480 $as_echo_n "(cached) " >&6 13481else 13482 $RM conftest* 13483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13484 13485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13486 (eval $ac_compile) 2>&5 13487 ac_status=$? 13488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13489 test $ac_status = 0; } 2>conftest.err; then 13490 soname=conftest 13491 lib=conftest 13492 libobjs=conftest.$ac_objext 13493 deplibs= 13494 wl=$lt_prog_compiler_wl_CXX 13495 pic_flag=$lt_prog_compiler_pic_CXX 13496 compiler_flags=-v 13497 linker_flags=-v 13498 verstring= 13499 output_objdir=. 13500 libname=conftest 13501 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13502 allow_undefined_flag_CXX= 13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13504 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13505 ac_status=$? 13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13507 test $ac_status = 0; } 13508 then 13509 lt_cv_archive_cmds_need_lc_CXX=no 13510 else 13511 lt_cv_archive_cmds_need_lc_CXX=yes 13512 fi 13513 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13514 else 13515 cat conftest.err 1>&5 13516 fi 13517 $RM conftest* 13518 13519fi 13520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13521$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13522 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13523 ;; 13524 esac 13525 fi 13526 ;; 13527esac 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13593$as_echo_n "checking dynamic linker characteristics... " >&6; } 13594 13595library_names_spec= 13596libname_spec='lib$name' 13597soname_spec= 13598shrext_cmds=".so" 13599postinstall_cmds= 13600postuninstall_cmds= 13601finish_cmds= 13602finish_eval= 13603shlibpath_var= 13604shlibpath_overrides_runpath=unknown 13605version_type=none 13606dynamic_linker="$host_os ld.so" 13607sys_lib_dlsearch_path_spec="/lib /usr/lib" 13608need_lib_prefix=unknown 13609hardcode_into_libs=no 13610 13611# when you set need_version to no, make sure it does not cause -set_version 13612# flags to be left without arguments 13613need_version=unknown 13614 13615case $host_os in 13616aix3*) 13617 version_type=linux 13618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13619 shlibpath_var=LIBPATH 13620 13621 # AIX 3 has no versioning support, so we append a major version to the name. 13622 soname_spec='${libname}${release}${shared_ext}$major' 13623 ;; 13624 13625aix[4-9]*) 13626 version_type=linux 13627 need_lib_prefix=no 13628 need_version=no 13629 hardcode_into_libs=yes 13630 if test "$host_cpu" = ia64; then 13631 # AIX 5 supports IA64 13632 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13633 shlibpath_var=LD_LIBRARY_PATH 13634 else 13635 # With GCC up to 2.95.x, collect2 would create an import file 13636 # for dependence libraries. The import file would start with 13637 # the line `#! .'. This would cause the generated library to 13638 # depend on `.', always an invalid library. This was fixed in 13639 # development snapshots of GCC prior to 3.0. 13640 case $host_os in 13641 aix4 | aix4.[01] | aix4.[01].*) 13642 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13643 echo ' yes ' 13644 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13645 : 13646 else 13647 can_build_shared=no 13648 fi 13649 ;; 13650 esac 13651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13652 # soname into executable. Probably we can add versioning support to 13653 # collect2, so additional links can be useful in future. 13654 if test "$aix_use_runtimelinking" = yes; then 13655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13656 # instead of lib<name>.a to let people know that these are not 13657 # typical AIX shared libraries. 13658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13659 else 13660 # We preserve .a as extension for shared libraries through AIX4.2 13661 # and later when we are not doing run time linking. 13662 library_names_spec='${libname}${release}.a $libname.a' 13663 soname_spec='${libname}${release}${shared_ext}$major' 13664 fi 13665 shlibpath_var=LIBPATH 13666 fi 13667 ;; 13668 13669amigaos*) 13670 case $host_cpu in 13671 powerpc) 13672 # Since July 2007 AmigaOS4 officially supports .so libraries. 13673 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13675 ;; 13676 m68k) 13677 library_names_spec='$libname.ixlibrary $libname.a' 13678 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13679 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' 13680 ;; 13681 esac 13682 ;; 13683 13684beos*) 13685 library_names_spec='${libname}${shared_ext}' 13686 dynamic_linker="$host_os ld.so" 13687 shlibpath_var=LIBRARY_PATH 13688 ;; 13689 13690bsdi[45]*) 13691 version_type=linux 13692 need_version=no 13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13694 soname_spec='${libname}${release}${shared_ext}$major' 13695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13696 shlibpath_var=LD_LIBRARY_PATH 13697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13699 # the default ld.so.conf also contains /usr/contrib/lib and 13700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13701 # libtool to hard-code these into programs 13702 ;; 13703 13704cygwin* | mingw* | pw32* | cegcc*) 13705 version_type=windows 13706 shrext_cmds=".dll" 13707 need_version=no 13708 need_lib_prefix=no 13709 13710 case $GCC,$host_os in 13711 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13712 library_names_spec='$libname.dll.a' 13713 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13714 postinstall_cmds='base_file=`basename \${file}`~ 13715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13716 dldir=$destdir/`dirname \$dlpath`~ 13717 test -d \$dldir || mkdir -p \$dldir~ 13718 $install_prog $dir/$dlname \$dldir/$dlname~ 13719 chmod a+x \$dldir/$dlname~ 13720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13722 fi' 13723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13724 dlpath=$dir/\$dldll~ 13725 $RM \$dlpath' 13726 shlibpath_overrides_runpath=yes 13727 13728 case $host_os in 13729 cygwin*) 13730 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13731 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13732 13733 ;; 13734 mingw* | cegcc*) 13735 # MinGW DLLs use traditional 'lib' prefix 13736 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13737 ;; 13738 pw32*) 13739 # pw32 DLLs use 'pw' prefix rather than 'lib' 13740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13741 ;; 13742 esac 13743 ;; 13744 13745 *) 13746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13747 ;; 13748 esac 13749 dynamic_linker='Win32 ld.exe' 13750 # FIXME: first we should search . and the directory the executable is in 13751 shlibpath_var=PATH 13752 ;; 13753 13754darwin* | rhapsody*) 13755 dynamic_linker="$host_os dyld" 13756 version_type=darwin 13757 need_lib_prefix=no 13758 need_version=no 13759 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13760 soname_spec='${libname}${release}${major}$shared_ext' 13761 shlibpath_overrides_runpath=yes 13762 shlibpath_var=DYLD_LIBRARY_PATH 13763 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13764 13765 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13766 ;; 13767 13768dgux*) 13769 version_type=linux 13770 need_lib_prefix=no 13771 need_version=no 13772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13773 soname_spec='${libname}${release}${shared_ext}$major' 13774 shlibpath_var=LD_LIBRARY_PATH 13775 ;; 13776 13777freebsd* | dragonfly*) 13778 # DragonFly does not have aout. When/if they implement a new 13779 # versioning mechanism, adjust this. 13780 if test -x /usr/bin/objformat; then 13781 objformat=`/usr/bin/objformat` 13782 else 13783 case $host_os in 13784 freebsd[23].*) objformat=aout ;; 13785 *) objformat=elf ;; 13786 esac 13787 fi 13788 version_type=freebsd-$objformat 13789 case $version_type in 13790 freebsd-elf*) 13791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13792 need_version=no 13793 need_lib_prefix=no 13794 ;; 13795 freebsd-*) 13796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13797 need_version=yes 13798 ;; 13799 esac 13800 shlibpath_var=LD_LIBRARY_PATH 13801 case $host_os in 13802 freebsd2.*) 13803 shlibpath_overrides_runpath=yes 13804 ;; 13805 freebsd3.[01]* | freebsdelf3.[01]*) 13806 shlibpath_overrides_runpath=yes 13807 hardcode_into_libs=yes 13808 ;; 13809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13811 shlibpath_overrides_runpath=no 13812 hardcode_into_libs=yes 13813 ;; 13814 *) # from 4.6 on, and DragonFly 13815 shlibpath_overrides_runpath=yes 13816 hardcode_into_libs=yes 13817 ;; 13818 esac 13819 ;; 13820 13821gnu*) 13822 version_type=linux 13823 need_lib_prefix=no 13824 need_version=no 13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13826 soname_spec='${libname}${release}${shared_ext}$major' 13827 shlibpath_var=LD_LIBRARY_PATH 13828 hardcode_into_libs=yes 13829 ;; 13830 13831haiku*) 13832 version_type=linux 13833 need_lib_prefix=no 13834 need_version=no 13835 dynamic_linker="$host_os runtime_loader" 13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13837 soname_spec='${libname}${release}${shared_ext}$major' 13838 shlibpath_var=LIBRARY_PATH 13839 shlibpath_overrides_runpath=yes 13840 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 13841 hardcode_into_libs=yes 13842 ;; 13843 13844hpux9* | hpux10* | hpux11*) 13845 # Give a soname corresponding to the major version so that dld.sl refuses to 13846 # link against other versions. 13847 version_type=sunos 13848 need_lib_prefix=no 13849 need_version=no 13850 case $host_cpu in 13851 ia64*) 13852 shrext_cmds='.so' 13853 hardcode_into_libs=yes 13854 dynamic_linker="$host_os dld.so" 13855 shlibpath_var=LD_LIBRARY_PATH 13856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13858 soname_spec='${libname}${release}${shared_ext}$major' 13859 if test "X$HPUX_IA64_MODE" = X32; then 13860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13861 else 13862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13863 fi 13864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13865 ;; 13866 hppa*64*) 13867 shrext_cmds='.sl' 13868 hardcode_into_libs=yes 13869 dynamic_linker="$host_os dld.sl" 13870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13873 soname_spec='${libname}${release}${shared_ext}$major' 13874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13876 ;; 13877 *) 13878 shrext_cmds='.sl' 13879 dynamic_linker="$host_os dld.sl" 13880 shlibpath_var=SHLIB_PATH 13881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13883 soname_spec='${libname}${release}${shared_ext}$major' 13884 ;; 13885 esac 13886 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13887 postinstall_cmds='chmod 555 $lib' 13888 # or fails outright, so override atomically: 13889 install_override_mode=555 13890 ;; 13891 13892interix[3-9]*) 13893 version_type=linux 13894 need_lib_prefix=no 13895 need_version=no 13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13897 soname_spec='${libname}${release}${shared_ext}$major' 13898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13899 shlibpath_var=LD_LIBRARY_PATH 13900 shlibpath_overrides_runpath=no 13901 hardcode_into_libs=yes 13902 ;; 13903 13904irix5* | irix6* | nonstopux*) 13905 case $host_os in 13906 nonstopux*) version_type=nonstopux ;; 13907 *) 13908 if test "$lt_cv_prog_gnu_ld" = yes; then 13909 version_type=linux 13910 else 13911 version_type=irix 13912 fi ;; 13913 esac 13914 need_lib_prefix=no 13915 need_version=no 13916 soname_spec='${libname}${release}${shared_ext}$major' 13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13918 case $host_os in 13919 irix5* | nonstopux*) 13920 libsuff= shlibsuff= 13921 ;; 13922 *) 13923 case $LD in # libtool.m4 will add one of these switches to LD 13924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13925 libsuff= shlibsuff= libmagic=32-bit;; 13926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13927 libsuff=32 shlibsuff=N32 libmagic=N32;; 13928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13929 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13930 *) libsuff= shlibsuff= libmagic=never-match;; 13931 esac 13932 ;; 13933 esac 13934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13935 shlibpath_overrides_runpath=no 13936 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13937 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13938 hardcode_into_libs=yes 13939 ;; 13940 13941# No shared lib support for Linux oldld, aout, or coff. 13942linux*oldld* | linux*aout* | linux*coff*) 13943 dynamic_linker=no 13944 ;; 13945 13946# This must be Linux ELF. 13947linux* | k*bsd*-gnu | kopensolaris*-gnu) 13948 version_type=linux 13949 need_lib_prefix=no 13950 need_version=no 13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13952 soname_spec='${libname}${release}${shared_ext}$major' 13953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13954 shlibpath_var=LD_LIBRARY_PATH 13955 shlibpath_overrides_runpath=no 13956 13957 # Some binutils ld are patched to set DT_RUNPATH 13958 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 13959 $as_echo_n "(cached) " >&6 13960else 13961 lt_cv_shlibpath_overrides_runpath=no 13962 save_LDFLAGS=$LDFLAGS 13963 save_libdir=$libdir 13964 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 13965 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13967/* end confdefs.h. */ 13968 13969int 13970main () 13971{ 13972 13973 ; 13974 return 0; 13975} 13976_ACEOF 13977if ac_fn_cxx_try_link "$LINENO"; then : 13978 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13979 lt_cv_shlibpath_overrides_runpath=yes 13980fi 13981fi 13982rm -f core conftest.err conftest.$ac_objext \ 13983 conftest$ac_exeext conftest.$ac_ext 13984 LDFLAGS=$save_LDFLAGS 13985 libdir=$save_libdir 13986 13987fi 13988 13989 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13990 13991 # This implies no fast_install, which is unacceptable. 13992 # Some rework will be needed to allow for fast_install 13993 # before this can be enabled. 13994 hardcode_into_libs=yes 13995 13996 # Append ld.so.conf contents to the search path 13997 if test -f /etc/ld.so.conf; then 13998 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' ' '` 13999 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14000 fi 14001 14002 # We used to test for /lib/ld.so.1 and disable shared libraries on 14003 # powerpc, because MkLinux only supported shared libraries with the 14004 # GNU dynamic linker. Since this was broken with cross compilers, 14005 # most powerpc-linux boxes support dynamic linking these days and 14006 # people can always --disable-shared, the test was removed, and we 14007 # assume the GNU/Linux dynamic linker is in use. 14008 dynamic_linker='GNU/Linux ld.so' 14009 ;; 14010 14011netbsd*) 14012 version_type=sunos 14013 need_lib_prefix=no 14014 need_version=no 14015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14018 dynamic_linker='NetBSD (a.out) ld.so' 14019 else 14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14021 soname_spec='${libname}${release}${shared_ext}$major' 14022 dynamic_linker='NetBSD ld.elf_so' 14023 fi 14024 shlibpath_var=LD_LIBRARY_PATH 14025 shlibpath_overrides_runpath=yes 14026 hardcode_into_libs=yes 14027 ;; 14028 14029newsos6) 14030 version_type=linux 14031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14032 shlibpath_var=LD_LIBRARY_PATH 14033 shlibpath_overrides_runpath=yes 14034 ;; 14035 14036*nto* | *qnx*) 14037 version_type=qnx 14038 need_lib_prefix=no 14039 need_version=no 14040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14041 soname_spec='${libname}${release}${shared_ext}$major' 14042 shlibpath_var=LD_LIBRARY_PATH 14043 shlibpath_overrides_runpath=no 14044 hardcode_into_libs=yes 14045 dynamic_linker='ldqnx.so' 14046 ;; 14047 14048openbsd*) 14049 version_type=sunos 14050 sys_lib_dlsearch_path_spec="/usr/lib" 14051 need_lib_prefix=no 14052 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14053 case $host_os in 14054 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14055 *) need_version=no ;; 14056 esac 14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14059 shlibpath_var=LD_LIBRARY_PATH 14060 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14061 case $host_os in 14062 openbsd2.[89] | openbsd2.[89].*) 14063 shlibpath_overrides_runpath=no 14064 ;; 14065 *) 14066 shlibpath_overrides_runpath=yes 14067 ;; 14068 esac 14069 else 14070 shlibpath_overrides_runpath=yes 14071 fi 14072 ;; 14073 14074os2*) 14075 libname_spec='$name' 14076 shrext_cmds=".dll" 14077 need_lib_prefix=no 14078 library_names_spec='$libname${shared_ext} $libname.a' 14079 dynamic_linker='OS/2 ld.exe' 14080 shlibpath_var=LIBPATH 14081 ;; 14082 14083osf3* | osf4* | osf5*) 14084 version_type=osf 14085 need_lib_prefix=no 14086 need_version=no 14087 soname_spec='${libname}${release}${shared_ext}$major' 14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14089 shlibpath_var=LD_LIBRARY_PATH 14090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14092 ;; 14093 14094rdos*) 14095 dynamic_linker=no 14096 ;; 14097 14098solaris*) 14099 version_type=linux 14100 need_lib_prefix=no 14101 need_version=no 14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14103 soname_spec='${libname}${release}${shared_ext}$major' 14104 shlibpath_var=LD_LIBRARY_PATH 14105 shlibpath_overrides_runpath=yes 14106 hardcode_into_libs=yes 14107 # ldd complains unless libraries are executable 14108 postinstall_cmds='chmod +x $lib' 14109 ;; 14110 14111sunos4*) 14112 version_type=sunos 14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14115 shlibpath_var=LD_LIBRARY_PATH 14116 shlibpath_overrides_runpath=yes 14117 if test "$with_gnu_ld" = yes; then 14118 need_lib_prefix=no 14119 fi 14120 need_version=yes 14121 ;; 14122 14123sysv4 | sysv4.3*) 14124 version_type=linux 14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14126 soname_spec='${libname}${release}${shared_ext}$major' 14127 shlibpath_var=LD_LIBRARY_PATH 14128 case $host_vendor in 14129 sni) 14130 shlibpath_overrides_runpath=no 14131 need_lib_prefix=no 14132 runpath_var=LD_RUN_PATH 14133 ;; 14134 siemens) 14135 need_lib_prefix=no 14136 ;; 14137 motorola) 14138 need_lib_prefix=no 14139 need_version=no 14140 shlibpath_overrides_runpath=no 14141 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14142 ;; 14143 esac 14144 ;; 14145 14146sysv4*MP*) 14147 if test -d /usr/nec ;then 14148 version_type=linux 14149 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14150 soname_spec='$libname${shared_ext}.$major' 14151 shlibpath_var=LD_LIBRARY_PATH 14152 fi 14153 ;; 14154 14155sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14156 version_type=freebsd-elf 14157 need_lib_prefix=no 14158 need_version=no 14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14160 soname_spec='${libname}${release}${shared_ext}$major' 14161 shlibpath_var=LD_LIBRARY_PATH 14162 shlibpath_overrides_runpath=yes 14163 hardcode_into_libs=yes 14164 if test "$with_gnu_ld" = yes; then 14165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14166 else 14167 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14168 case $host_os in 14169 sco3.2v5*) 14170 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14171 ;; 14172 esac 14173 fi 14174 sys_lib_dlsearch_path_spec='/usr/lib' 14175 ;; 14176 14177tpf*) 14178 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14179 version_type=linux 14180 need_lib_prefix=no 14181 need_version=no 14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14183 shlibpath_var=LD_LIBRARY_PATH 14184 shlibpath_overrides_runpath=no 14185 hardcode_into_libs=yes 14186 ;; 14187 14188uts4*) 14189 version_type=linux 14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14191 soname_spec='${libname}${release}${shared_ext}$major' 14192 shlibpath_var=LD_LIBRARY_PATH 14193 ;; 14194 14195*) 14196 dynamic_linker=no 14197 ;; 14198esac 14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14200$as_echo "$dynamic_linker" >&6; } 14201test "$dynamic_linker" = no && can_build_shared=no 14202 14203variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14204if test "$GCC" = yes; then 14205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14206fi 14207 14208if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14209 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14210fi 14211if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14212 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14213fi 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14253$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14254hardcode_action_CXX= 14255if test -n "$hardcode_libdir_flag_spec_CXX" || 14256 test -n "$runpath_var_CXX" || 14257 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14258 14259 # We can hardcode non-existent directories. 14260 if test "$hardcode_direct_CXX" != no && 14261 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14262 # have to relink, otherwise we might link with an installed library 14263 # when we should be linking with a yet-to-be-installed one 14264 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14265 test "$hardcode_minus_L_CXX" != no; then 14266 # Linking always hardcodes the temporary library directory. 14267 hardcode_action_CXX=relink 14268 else 14269 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14270 hardcode_action_CXX=immediate 14271 fi 14272else 14273 # We cannot hardcode anything, or else we can only hardcode existing 14274 # directories. 14275 hardcode_action_CXX=unsupported 14276fi 14277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14278$as_echo "$hardcode_action_CXX" >&6; } 14279 14280if test "$hardcode_action_CXX" = relink || 14281 test "$inherit_rpath_CXX" = yes; then 14282 # Fast installation is not supported 14283 enable_fast_install=no 14284elif test "$shlibpath_overrides_runpath" = yes || 14285 test "$enable_shared" = no; then 14286 # Fast installation is not necessary 14287 enable_fast_install=needless 14288fi 14289 14290 14291 14292 14293 14294 14295 14296 fi # test -n "$compiler" 14297 14298 CC=$lt_save_CC 14299 LDCXX=$LD 14300 LD=$lt_save_LD 14301 GCC=$lt_save_GCC 14302 with_gnu_ld=$lt_save_with_gnu_ld 14303 lt_cv_path_LDCXX=$lt_cv_path_LD 14304 lt_cv_path_LD=$lt_save_path_LD 14305 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14306 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14307fi # test "$_lt_caught_CXX_error" != yes 14308 14309ac_ext=c 14310ac_cpp='$CPP $CPPFLAGS' 14311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14313ac_compiler_gnu=$ac_cv_c_compiler_gnu 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 ac_config_commands="$ac_config_commands libtool" 14328 14329 14330 14331 14332# Only expand once: 14333 14334 14335 14336 14337 14338ac_config_headers="$ac_config_headers target-config.h" 14339 14340 14341# The cast to long int works around a bug in the HP C Compiler 14342# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14343# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14344# This bug is HP SR number 8606223364. 14345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14346$as_echo_n "checking size of int... " >&6; } 14347if test "${ac_cv_sizeof_int+set}" = set; then : 14348 $as_echo_n "(cached) " >&6 14349else 14350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14351 14352else 14353 if test "$ac_cv_type_int" = yes; then 14354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14356{ as_fn_set_status 77 14357as_fn_error "cannot compute sizeof (int) 14358See \`config.log' for more details." "$LINENO" 5; }; } 14359 else 14360 ac_cv_sizeof_int=0 14361 fi 14362fi 14363 14364fi 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14366$as_echo "$ac_cv_sizeof_int" >&6; } 14367 14368 14369 14370cat >>confdefs.h <<_ACEOF 14371#define SIZEOF_INT $ac_cv_sizeof_int 14372_ACEOF 14373 14374 14375# The cast to long int works around a bug in the HP C Compiler 14376# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14377# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14378# This bug is HP SR number 8606223364. 14379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 14380$as_echo_n "checking size of void*... " >&6; } 14381if test "${ac_cv_sizeof_voidp+set}" = set; then : 14382 $as_echo_n "(cached) " >&6 14383else 14384 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 14385 14386else 14387 if test "$ac_cv_type_voidp" = yes; then 14388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14390{ as_fn_set_status 77 14391as_fn_error "cannot compute sizeof (void*) 14392See \`config.log' for more details." "$LINENO" 5; }; } 14393 else 14394 ac_cv_sizeof_voidp=0 14395 fi 14396fi 14397 14398fi 14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 14400$as_echo "$ac_cv_sizeof_voidp" >&6; } 14401 14402 14403 14404cat >>confdefs.h <<_ACEOF 14405#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 14406_ACEOF 14407 14408 14409 14410# Determine what GCC version number to use in filesystem paths. 14411 14412 get_gcc_base_ver="cat" 14413 14414# Check whether --with-gcc-major-version-only was given. 14415if test "${with_gcc_major_version_only+set}" = set; then : 14416 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 14417 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 14418 fi 14419 14420fi 14421 14422 14423 14424 14425# Must be last 14426cat >confcache <<\_ACEOF 14427# This file is a shell script that caches the results of configure 14428# tests run on this system so they can be shared between configure 14429# scripts and configure runs, see configure's option --config-cache. 14430# It is not useful on other systems. If it contains results you don't 14431# want to keep, you may remove or edit it. 14432# 14433# config.status only pays attention to the cache file if you give it 14434# the --recheck option to rerun configure. 14435# 14436# `ac_cv_env_foo' variables (set or unset) will be overridden when 14437# loading this file, other *unset* `ac_cv_foo' will be assigned the 14438# following values. 14439 14440_ACEOF 14441 14442# The following way of writing the cache mishandles newlines in values, 14443# but we know of no workaround that is simple, portable, and efficient. 14444# So, we kill variables containing newlines. 14445# Ultrix sh set writes to stderr and can't be redirected directly, 14446# and sets the high bit in the cache file unless we assign to the vars. 14447( 14448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14449 eval ac_val=\$$ac_var 14450 case $ac_val in #( 14451 *${as_nl}*) 14452 case $ac_var in #( 14453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14454$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14455 esac 14456 case $ac_var in #( 14457 _ | IFS | as_nl) ;; #( 14458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14459 *) { eval $ac_var=; unset $ac_var;} ;; 14460 esac ;; 14461 esac 14462 done 14463 14464 (set) 2>&1 | 14465 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14466 *${as_nl}ac_space=\ *) 14467 # `set' does not quote correctly, so add quotes: double-quote 14468 # substitution turns \\\\ into \\, and sed turns \\ into \. 14469 sed -n \ 14470 "s/'/'\\\\''/g; 14471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14472 ;; #( 14473 *) 14474 # `set' quotes correctly as required by POSIX, so do not add quotes. 14475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14476 ;; 14477 esac | 14478 sort 14479) | 14480 sed ' 14481 /^ac_cv_env_/b end 14482 t clear 14483 :clear 14484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14485 t end 14486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14487 :end' >>confcache 14488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14489 if test -w "$cache_file"; then 14490 test "x$cache_file" != "x/dev/null" && 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14492$as_echo "$as_me: updating cache $cache_file" >&6;} 14493 cat confcache >$cache_file 14494 else 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14496$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14497 fi 14498fi 14499rm -f confcache 14500 14501test "x$prefix" = xNONE && prefix=$ac_default_prefix 14502# Let make expand exec_prefix. 14503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14504 14505DEFS=-DHAVE_CONFIG_H 14506 14507ac_libobjs= 14508ac_ltlibobjs= 14509for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14510 # 1. Remove the extension, and $U if already installed. 14511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14512 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14514 # will be set to the directory where LIBOBJS objects are built. 14515 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14516 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14517done 14518LIBOBJS=$ac_libobjs 14519 14520LTLIBOBJS=$ac_ltlibobjs 14521 14522 14523 if test -n "$EXEEXT"; then 14524 am__EXEEXT_TRUE= 14525 am__EXEEXT_FALSE='#' 14526else 14527 am__EXEEXT_TRUE='#' 14528 am__EXEEXT_FALSE= 14529fi 14530 14531if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14532 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 14533Usually this means the macro was only invoked conditionally." "$LINENO" 5 14534fi 14535if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14536 as_fn_error "conditional \"AMDEP\" was never defined. 14537Usually this means the macro was only invoked conditionally." "$LINENO" 5 14538fi 14539if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14540 as_fn_error "conditional \"am__fastdepCC\" was never defined. 14541Usually this means the macro was only invoked conditionally." "$LINENO" 5 14542fi 14543if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 14544 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 14545Usually this means the macro was only invoked conditionally." "$LINENO" 5 14546fi 14547if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then 14548 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined. 14549Usually this means the macro was only invoked conditionally." "$LINENO" 5 14550fi 14551if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then 14552 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined. 14553Usually this means the macro was only invoked conditionally." "$LINENO" 5 14554fi 14555 14556: ${CONFIG_STATUS=./config.status} 14557ac_write_fail=0 14558ac_clean_files_save=$ac_clean_files 14559ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14560{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14561$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14562as_write_fail=0 14563cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14564#! $SHELL 14565# Generated by $as_me. 14566# Run this file to recreate the current configuration. 14567# Compiler output produced by configure, useful for debugging 14568# configure, is in config.log if it exists. 14569 14570debug=false 14571ac_cs_recheck=false 14572ac_cs_silent=false 14573 14574SHELL=\${CONFIG_SHELL-$SHELL} 14575export SHELL 14576_ASEOF 14577cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14578## -------------------- ## 14579## M4sh Initialization. ## 14580## -------------------- ## 14581 14582# Be more Bourne compatible 14583DUALCASE=1; export DUALCASE # for MKS sh 14584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14585 emulate sh 14586 NULLCMD=: 14587 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14588 # is contrary to our usage. Disable this feature. 14589 alias -g '${1+"$@"}'='"$@"' 14590 setopt NO_GLOB_SUBST 14591else 14592 case `(set -o) 2>/dev/null` in #( 14593 *posix*) : 14594 set -o posix ;; #( 14595 *) : 14596 ;; 14597esac 14598fi 14599 14600 14601as_nl=' 14602' 14603export as_nl 14604# Printing a long string crashes Solaris 7 /usr/bin/printf. 14605as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14606as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14607as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14608# Prefer a ksh shell builtin over an external printf program on Solaris, 14609# but without wasting forks for bash or zsh. 14610if test -z "$BASH_VERSION$ZSH_VERSION" \ 14611 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14612 as_echo='print -r --' 14613 as_echo_n='print -rn --' 14614elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14615 as_echo='printf %s\n' 14616 as_echo_n='printf %s' 14617else 14618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14620 as_echo_n='/usr/ucb/echo -n' 14621 else 14622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14623 as_echo_n_body='eval 14624 arg=$1; 14625 case $arg in #( 14626 *"$as_nl"*) 14627 expr "X$arg" : "X\\(.*\\)$as_nl"; 14628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14629 esac; 14630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14631 ' 14632 export as_echo_n_body 14633 as_echo_n='sh -c $as_echo_n_body as_echo' 14634 fi 14635 export as_echo_body 14636 as_echo='sh -c $as_echo_body as_echo' 14637fi 14638 14639# The user is always right. 14640if test "${PATH_SEPARATOR+set}" != set; then 14641 PATH_SEPARATOR=: 14642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14644 PATH_SEPARATOR=';' 14645 } 14646fi 14647 14648 14649# IFS 14650# We need space, tab and new line, in precisely that order. Quoting is 14651# there to prevent editors from complaining about space-tab. 14652# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14653# splitting by setting IFS to empty value.) 14654IFS=" "" $as_nl" 14655 14656# Find who we are. Look in the path if we contain no directory separator. 14657case $0 in #(( 14658 *[\\/]* ) as_myself=$0 ;; 14659 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14660for as_dir in $PATH 14661do 14662 IFS=$as_save_IFS 14663 test -z "$as_dir" && as_dir=. 14664 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14665 done 14666IFS=$as_save_IFS 14667 14668 ;; 14669esac 14670# We did not find ourselves, most probably we were run as `sh COMMAND' 14671# in which case we are not to be found in the path. 14672if test "x$as_myself" = x; then 14673 as_myself=$0 14674fi 14675if test ! -f "$as_myself"; then 14676 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14677 exit 1 14678fi 14679 14680# Unset variables that we do not need and which cause bugs (e.g. in 14681# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14682# suppresses any "Segmentation fault" message there. '((' could 14683# trigger a bug in pdksh 5.2.14. 14684for as_var in BASH_ENV ENV MAIL MAILPATH 14685do eval test x\${$as_var+set} = xset \ 14686 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14687done 14688PS1='$ ' 14689PS2='> ' 14690PS4='+ ' 14691 14692# NLS nuisances. 14693LC_ALL=C 14694export LC_ALL 14695LANGUAGE=C 14696export LANGUAGE 14697 14698# CDPATH. 14699(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14700 14701 14702# as_fn_error ERROR [LINENO LOG_FD] 14703# --------------------------------- 14704# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14705# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14706# script with status $?, using 1 if that was 0. 14707as_fn_error () 14708{ 14709 as_status=$?; test $as_status -eq 0 && as_status=1 14710 if test "$3"; then 14711 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14712 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 14713 fi 14714 $as_echo "$as_me: error: $1" >&2 14715 as_fn_exit $as_status 14716} # as_fn_error 14717 14718 14719# as_fn_set_status STATUS 14720# ----------------------- 14721# Set $? to STATUS, without forking. 14722as_fn_set_status () 14723{ 14724 return $1 14725} # as_fn_set_status 14726 14727# as_fn_exit STATUS 14728# ----------------- 14729# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14730as_fn_exit () 14731{ 14732 set +e 14733 as_fn_set_status $1 14734 exit $1 14735} # as_fn_exit 14736 14737# as_fn_unset VAR 14738# --------------- 14739# Portably unset VAR. 14740as_fn_unset () 14741{ 14742 { eval $1=; unset $1;} 14743} 14744as_unset=as_fn_unset 14745# as_fn_append VAR VALUE 14746# ---------------------- 14747# Append the text in VALUE to the end of the definition contained in VAR. Take 14748# advantage of any shell optimizations that allow amortized linear growth over 14749# repeated appends, instead of the typical quadratic growth present in naive 14750# implementations. 14751if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14752 eval 'as_fn_append () 14753 { 14754 eval $1+=\$2 14755 }' 14756else 14757 as_fn_append () 14758 { 14759 eval $1=\$$1\$2 14760 } 14761fi # as_fn_append 14762 14763# as_fn_arith ARG... 14764# ------------------ 14765# Perform arithmetic evaluation on the ARGs, and store the result in the 14766# global $as_val. Take advantage of shells that can avoid forks. The arguments 14767# must be portable across $(()) and expr. 14768if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14769 eval 'as_fn_arith () 14770 { 14771 as_val=$(( $* )) 14772 }' 14773else 14774 as_fn_arith () 14775 { 14776 as_val=`expr "$@" || test $? -eq 1` 14777 } 14778fi # as_fn_arith 14779 14780 14781if expr a : '\(a\)' >/dev/null 2>&1 && 14782 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14783 as_expr=expr 14784else 14785 as_expr=false 14786fi 14787 14788if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14789 as_basename=basename 14790else 14791 as_basename=false 14792fi 14793 14794if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14795 as_dirname=dirname 14796else 14797 as_dirname=false 14798fi 14799 14800as_me=`$as_basename -- "$0" || 14801$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14802 X"$0" : 'X\(//\)$' \| \ 14803 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14804$as_echo X/"$0" | 14805 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14806 s//\1/ 14807 q 14808 } 14809 /^X\/\(\/\/\)$/{ 14810 s//\1/ 14811 q 14812 } 14813 /^X\/\(\/\).*/{ 14814 s//\1/ 14815 q 14816 } 14817 s/.*/./; q'` 14818 14819# Avoid depending upon Character Ranges. 14820as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14821as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14822as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14823as_cr_digits='0123456789' 14824as_cr_alnum=$as_cr_Letters$as_cr_digits 14825 14826ECHO_C= ECHO_N= ECHO_T= 14827case `echo -n x` in #((((( 14828-n*) 14829 case `echo 'xy\c'` in 14830 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14831 xy) ECHO_C='\c';; 14832 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14833 ECHO_T=' ';; 14834 esac;; 14835*) 14836 ECHO_N='-n';; 14837esac 14838 14839rm -f conf$$ conf$$.exe conf$$.file 14840if test -d conf$$.dir; then 14841 rm -f conf$$.dir/conf$$.file 14842else 14843 rm -f conf$$.dir 14844 mkdir conf$$.dir 2>/dev/null 14845fi 14846if (echo >conf$$.file) 2>/dev/null; then 14847 if ln -s conf$$.file conf$$ 2>/dev/null; then 14848 as_ln_s='ln -s' 14849 # ... but there are two gotchas: 14850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14852 # In both cases, we have to default to `cp -p'. 14853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14854 as_ln_s='cp -p' 14855 elif ln conf$$.file conf$$ 2>/dev/null; then 14856 as_ln_s=ln 14857 else 14858 as_ln_s='cp -p' 14859 fi 14860else 14861 as_ln_s='cp -p' 14862fi 14863rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14864rmdir conf$$.dir 2>/dev/null 14865 14866 14867# as_fn_mkdir_p 14868# ------------- 14869# Create "$as_dir" as a directory, including parents if necessary. 14870as_fn_mkdir_p () 14871{ 14872 14873 case $as_dir in #( 14874 -*) as_dir=./$as_dir;; 14875 esac 14876 test -d "$as_dir" || eval $as_mkdir_p || { 14877 as_dirs= 14878 while :; do 14879 case $as_dir in #( 14880 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14881 *) as_qdir=$as_dir;; 14882 esac 14883 as_dirs="'$as_qdir' $as_dirs" 14884 as_dir=`$as_dirname -- "$as_dir" || 14885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14886 X"$as_dir" : 'X\(//\)[^/]' \| \ 14887 X"$as_dir" : 'X\(//\)$' \| \ 14888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14889$as_echo X"$as_dir" | 14890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14891 s//\1/ 14892 q 14893 } 14894 /^X\(\/\/\)[^/].*/{ 14895 s//\1/ 14896 q 14897 } 14898 /^X\(\/\/\)$/{ 14899 s//\1/ 14900 q 14901 } 14902 /^X\(\/\).*/{ 14903 s//\1/ 14904 q 14905 } 14906 s/.*/./; q'` 14907 test -d "$as_dir" && break 14908 done 14909 test -z "$as_dirs" || eval "mkdir $as_dirs" 14910 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 14911 14912 14913} # as_fn_mkdir_p 14914if mkdir -p . 2>/dev/null; then 14915 as_mkdir_p='mkdir -p "$as_dir"' 14916else 14917 test -d ./-p && rmdir ./-p 14918 as_mkdir_p=false 14919fi 14920 14921if test -x / >/dev/null 2>&1; then 14922 as_test_x='test -x' 14923else 14924 if ls -dL / >/dev/null 2>&1; then 14925 as_ls_L_option=L 14926 else 14927 as_ls_L_option= 14928 fi 14929 as_test_x=' 14930 eval sh -c '\'' 14931 if test -d "$1"; then 14932 test -d "$1/."; 14933 else 14934 case $1 in #( 14935 -*)set "./$1";; 14936 esac; 14937 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 14938 ???[sx]*):;;*)false;;esac;fi 14939 '\'' sh 14940 ' 14941fi 14942as_executable_p=$as_test_x 14943 14944# Sed expression to map a string onto a valid CPP name. 14945as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14946 14947# Sed expression to map a string onto a valid variable name. 14948as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14949 14950 14951exec 6>&1 14952## ----------------------------------- ## 14953## Main body of $CONFIG_STATUS script. ## 14954## ----------------------------------- ## 14955_ASEOF 14956test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14957 14958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14959# Save the log message, to keep $0 and so on meaningful, and to 14960# report actual input values of CONFIG_FILES etc. instead of their 14961# values after options handling. 14962ac_log=" 14963This file was extended by phsa HSAIL runtime library $as_me 1.0, which was 14964generated by GNU Autoconf 2.64. Invocation command line was 14965 14966 CONFIG_FILES = $CONFIG_FILES 14967 CONFIG_HEADERS = $CONFIG_HEADERS 14968 CONFIG_LINKS = $CONFIG_LINKS 14969 CONFIG_COMMANDS = $CONFIG_COMMANDS 14970 $ $0 $@ 14971 14972on `(hostname || uname -n) 2>/dev/null | sed 1q` 14973" 14974 14975_ACEOF 14976 14977case $ac_config_files in *" 14978"*) set x $ac_config_files; shift; ac_config_files=$*;; 14979esac 14980 14981case $ac_config_headers in *" 14982"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14983esac 14984 14985 14986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14987# Files that config.status was made for. 14988config_files="$ac_config_files" 14989config_headers="$ac_config_headers" 14990config_commands="$ac_config_commands" 14991 14992_ACEOF 14993 14994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14995ac_cs_usage="\ 14996\`$as_me' instantiates files and other configuration actions 14997from templates according to the current configuration. Unless the files 14998and actions are specified as TAGs, all are instantiated by default. 14999 15000Usage: $0 [OPTION]... [TAG]... 15001 15002 -h, --help print this help, then exit 15003 -V, --version print version number and configuration settings, then exit 15004 -q, --quiet, --silent 15005 do not print progress messages 15006 -d, --debug don't remove temporary files 15007 --recheck update $as_me by reconfiguring in the same conditions 15008 --file=FILE[:TEMPLATE] 15009 instantiate the configuration file FILE 15010 --header=FILE[:TEMPLATE] 15011 instantiate the configuration header FILE 15012 15013Configuration files: 15014$config_files 15015 15016Configuration headers: 15017$config_headers 15018 15019Configuration commands: 15020$config_commands 15021 15022Report bugs to <pekka.jaaskelainen@parmance.com>." 15023 15024_ACEOF 15025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15026ac_cs_version="\\ 15027phsa HSAIL runtime library config.status 1.0 15028configured by $0, generated by GNU Autoconf 2.64, 15029 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15030 15031Copyright (C) 2009 Free Software Foundation, Inc. 15032This config.status script is free software; the Free Software Foundation 15033gives unlimited permission to copy, distribute and modify it." 15034 15035ac_pwd='$ac_pwd' 15036srcdir='$srcdir' 15037INSTALL='$INSTALL' 15038MKDIR_P='$MKDIR_P' 15039AWK='$AWK' 15040test -n "\$AWK" || AWK=awk 15041_ACEOF 15042 15043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15044# The default lists apply if the user does not specify any file. 15045ac_need_defaults=: 15046while test $# != 0 15047do 15048 case $1 in 15049 --*=*) 15050 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15051 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15052 ac_shift=: 15053 ;; 15054 *) 15055 ac_option=$1 15056 ac_optarg=$2 15057 ac_shift=shift 15058 ;; 15059 esac 15060 15061 case $ac_option in 15062 # Handling of the options. 15063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15064 ac_cs_recheck=: ;; 15065 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15066 $as_echo "$ac_cs_version"; exit ;; 15067 --debug | --debu | --deb | --de | --d | -d ) 15068 debug=: ;; 15069 --file | --fil | --fi | --f ) 15070 $ac_shift 15071 case $ac_optarg in 15072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15073 esac 15074 as_fn_append CONFIG_FILES " '$ac_optarg'" 15075 ac_need_defaults=false;; 15076 --header | --heade | --head | --hea ) 15077 $ac_shift 15078 case $ac_optarg in 15079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15080 esac 15081 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15082 ac_need_defaults=false;; 15083 --he | --h) 15084 # Conflict between --help and --header 15085 as_fn_error "ambiguous option: \`$1' 15086Try \`$0 --help' for more information.";; 15087 --help | --hel | -h ) 15088 $as_echo "$ac_cs_usage"; exit ;; 15089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15090 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15091 ac_cs_silent=: ;; 15092 15093 # This is an error. 15094 -*) as_fn_error "unrecognized option: \`$1' 15095Try \`$0 --help' for more information." ;; 15096 15097 *) as_fn_append ac_config_targets " $1" 15098 ac_need_defaults=false ;; 15099 15100 esac 15101 shift 15102done 15103 15104ac_configure_extra_args= 15105 15106if $ac_cs_silent; then 15107 exec 6>/dev/null 15108 ac_configure_extra_args="$ac_configure_extra_args --silent" 15109fi 15110 15111_ACEOF 15112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15113if \$ac_cs_recheck; then 15114 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15115 shift 15116 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15117 CONFIG_SHELL='$SHELL' 15118 export CONFIG_SHELL 15119 exec "\$@" 15120fi 15121 15122_ACEOF 15123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15124exec 5>>config.log 15125{ 15126 echo 15127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15128## Running $as_me. ## 15129_ASBOX 15130 $as_echo "$ac_log" 15131} >&5 15132 15133_ACEOF 15134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15135# 15136# INIT-COMMANDS 15137# 15138AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15139 15140 15141# The HP-UX ksh and POSIX shell print the target directory to stdout 15142# if CDPATH is set. 15143(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15144 15145sed_quote_subst='$sed_quote_subst' 15146double_quote_subst='$double_quote_subst' 15147delay_variable_subst='$delay_variable_subst' 15148macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15149macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15150enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15151enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15152pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15153enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15154SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15155ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15156host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15157host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15158host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15159build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15160build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15161build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15162SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15163Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15164GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15165EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15166FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15167LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15168NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15169LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15170max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15171ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15172exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15173lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15174lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15175lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15176reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15177reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15178OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15179deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15180file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15181AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15182AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15183STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15184RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15185old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15186old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15187old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15188lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15189CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15190CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15191compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15192GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15193lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15194lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15195lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15196lt_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"`' 15197objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15198MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15199lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15200lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15201lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15202lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15203lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15204need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15205DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15206NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15207LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15208OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15209OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15210libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15211shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15212extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15213archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15214enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15215export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15216whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15217compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15218old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15219old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15220archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15221archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15222module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15223module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15224with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15225allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15226no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15227hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15228hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15229hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15230hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15231hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15232hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15233hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15234hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15235inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15236link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15237fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15238always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15239export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15240exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15241include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15242prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15243file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15244variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15245need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15246need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15247version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15248runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15249shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15250shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15251libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15252library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15253soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15254install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15255postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15256postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15257finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15258finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15259hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15260sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15261sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15262hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15263enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15264enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15265enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15266old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15267striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15268compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 15269predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 15270postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 15271predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 15272postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 15273compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 15274LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 15275reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 15276reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15277old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15278compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 15279GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 15280lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 15281lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 15282lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 15283lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 15284lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 15285archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 15286enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 15287export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15288whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15289compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 15290old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15291old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15292archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15293archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15294module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15295module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15296with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 15297allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15298no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15299hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15300hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 15301hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 15302hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 15303hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 15304hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 15305hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 15306hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 15307inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 15308link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 15309fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 15310always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 15311export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15312exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15313include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15314prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15315file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 15316hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 15317compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 15318predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15319postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15320predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 15321postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 15322compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 15323 15324LTCC='$LTCC' 15325LTCFLAGS='$LTCFLAGS' 15326compiler='$compiler_DEFAULT' 15327 15328# A function that is used when there is no print builtin or printf. 15329func_fallback_echo () 15330{ 15331 eval 'cat <<_LTECHO_EOF 15332\$1 15333_LTECHO_EOF' 15334} 15335 15336# Quote evaled strings. 15337for var in SHELL \ 15338ECHO \ 15339SED \ 15340GREP \ 15341EGREP \ 15342FGREP \ 15343LD \ 15344NM \ 15345LN_S \ 15346lt_SP2NL \ 15347lt_NL2SP \ 15348reload_flag \ 15349OBJDUMP \ 15350deplibs_check_method \ 15351file_magic_cmd \ 15352AR \ 15353AR_FLAGS \ 15354STRIP \ 15355RANLIB \ 15356CC \ 15357CFLAGS \ 15358compiler \ 15359lt_cv_sys_global_symbol_pipe \ 15360lt_cv_sys_global_symbol_to_cdecl \ 15361lt_cv_sys_global_symbol_to_c_name_address \ 15362lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15363lt_prog_compiler_no_builtin_flag \ 15364lt_prog_compiler_wl \ 15365lt_prog_compiler_pic \ 15366lt_prog_compiler_static \ 15367lt_cv_prog_compiler_c_o \ 15368need_locks \ 15369DSYMUTIL \ 15370NMEDIT \ 15371LIPO \ 15372OTOOL \ 15373OTOOL64 \ 15374shrext_cmds \ 15375export_dynamic_flag_spec \ 15376whole_archive_flag_spec \ 15377compiler_needs_object \ 15378with_gnu_ld \ 15379allow_undefined_flag \ 15380no_undefined_flag \ 15381hardcode_libdir_flag_spec \ 15382hardcode_libdir_flag_spec_ld \ 15383hardcode_libdir_separator \ 15384fix_srcfile_path \ 15385exclude_expsyms \ 15386include_expsyms \ 15387file_list_spec \ 15388variables_saved_for_relink \ 15389libname_spec \ 15390library_names_spec \ 15391soname_spec \ 15392install_override_mode \ 15393finish_eval \ 15394old_striplib \ 15395striplib \ 15396compiler_lib_search_dirs \ 15397predep_objects \ 15398postdep_objects \ 15399predeps \ 15400postdeps \ 15401compiler_lib_search_path \ 15402LD_CXX \ 15403reload_flag_CXX \ 15404compiler_CXX \ 15405lt_prog_compiler_no_builtin_flag_CXX \ 15406lt_prog_compiler_wl_CXX \ 15407lt_prog_compiler_pic_CXX \ 15408lt_prog_compiler_static_CXX \ 15409lt_cv_prog_compiler_c_o_CXX \ 15410export_dynamic_flag_spec_CXX \ 15411whole_archive_flag_spec_CXX \ 15412compiler_needs_object_CXX \ 15413with_gnu_ld_CXX \ 15414allow_undefined_flag_CXX \ 15415no_undefined_flag_CXX \ 15416hardcode_libdir_flag_spec_CXX \ 15417hardcode_libdir_flag_spec_ld_CXX \ 15418hardcode_libdir_separator_CXX \ 15419fix_srcfile_path_CXX \ 15420exclude_expsyms_CXX \ 15421include_expsyms_CXX \ 15422file_list_spec_CXX \ 15423compiler_lib_search_dirs_CXX \ 15424predep_objects_CXX \ 15425postdep_objects_CXX \ 15426predeps_CXX \ 15427postdeps_CXX \ 15428compiler_lib_search_path_CXX; do 15429 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15430 *[\\\\\\\`\\"\\\$]*) 15431 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15432 ;; 15433 *) 15434 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15435 ;; 15436 esac 15437done 15438 15439# Double-quote double-evaled strings. 15440for var in reload_cmds \ 15441old_postinstall_cmds \ 15442old_postuninstall_cmds \ 15443old_archive_cmds \ 15444extract_expsyms_cmds \ 15445old_archive_from_new_cmds \ 15446old_archive_from_expsyms_cmds \ 15447archive_cmds \ 15448archive_expsym_cmds \ 15449module_cmds \ 15450module_expsym_cmds \ 15451export_symbols_cmds \ 15452prelink_cmds \ 15453postinstall_cmds \ 15454postuninstall_cmds \ 15455finish_cmds \ 15456sys_lib_search_path_spec \ 15457sys_lib_dlsearch_path_spec \ 15458reload_cmds_CXX \ 15459old_archive_cmds_CXX \ 15460old_archive_from_new_cmds_CXX \ 15461old_archive_from_expsyms_cmds_CXX \ 15462archive_cmds_CXX \ 15463archive_expsym_cmds_CXX \ 15464module_cmds_CXX \ 15465module_expsym_cmds_CXX \ 15466export_symbols_cmds_CXX \ 15467prelink_cmds_CXX; do 15468 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15469 *[\\\\\\\`\\"\\\$]*) 15470 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15471 ;; 15472 *) 15473 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15474 ;; 15475 esac 15476done 15477 15478ac_aux_dir='$ac_aux_dir' 15479xsi_shell='$xsi_shell' 15480lt_shell_append='$lt_shell_append' 15481 15482# See if we are running on zsh, and set the options which allow our 15483# commands through without removal of \ escapes INIT. 15484if test -n "\${ZSH_VERSION+set}" ; then 15485 setopt NO_GLOB_SUBST 15486fi 15487 15488 15489 PACKAGE='$PACKAGE' 15490 VERSION='$VERSION' 15491 TIMESTAMP='$TIMESTAMP' 15492 RM='$RM' 15493 ofile='$ofile' 15494 15495 15496 15497 15498 15499 15500_ACEOF 15501 15502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15503 15504# Handling of arguments. 15505for ac_config_target in $ac_config_targets 15506do 15507 case $ac_config_target in 15508 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15509 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15510 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15511 "target-config.h") CONFIG_HEADERS="$CONFIG_HEADERS target-config.h" ;; 15512 15513 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15514 esac 15515done 15516 15517 15518# If the user did not use the arguments to specify the items to instantiate, 15519# then the envvar interface is used. Set only those that are not. 15520# We use the long form for the default assignment because of an extremely 15521# bizarre bug on SunOS 4.1.3. 15522if $ac_need_defaults; then 15523 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15524 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15526fi 15527 15528# Have a temporary directory for convenience. Make it in the build tree 15529# simply because there is no reason against having it here, and in addition, 15530# creating and moving files from /tmp can sometimes cause problems. 15531# Hook for its removal unless debugging. 15532# Note that there is a small window in which the directory will not be cleaned: 15533# after its creation but before its name has been assigned to `$tmp'. 15534$debug || 15535{ 15536 tmp= 15537 trap 'exit_status=$? 15538 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15539' 0 15540 trap 'as_fn_exit 1' 1 2 13 15 15541} 15542# Create a (secure) tmp directory for tmp files. 15543 15544{ 15545 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15546 test -n "$tmp" && test -d "$tmp" 15547} || 15548{ 15549 tmp=./conf$$-$RANDOM 15550 (umask 077 && mkdir "$tmp") 15551} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 15552 15553# Set up the scripts for CONFIG_FILES section. 15554# No need to generate them if there are no CONFIG_FILES. 15555# This happens for instance with `./config.status config.h'. 15556if test -n "$CONFIG_FILES"; then 15557 15558 15559ac_cr=`echo X | tr X '\015'` 15560# On cygwin, bash can eat \r inside `` if the user requested igncr. 15561# But we know of no other shell where ac_cr would be empty at this 15562# point, so we can use a bashism as a fallback. 15563if test "x$ac_cr" = x; then 15564 eval ac_cr=\$\'\\r\' 15565fi 15566ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15567if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15568 ac_cs_awk_cr='\r' 15569else 15570 ac_cs_awk_cr=$ac_cr 15571fi 15572 15573echo 'BEGIN {' >"$tmp/subs1.awk" && 15574_ACEOF 15575 15576 15577{ 15578 echo "cat >conf$$subs.awk <<_ACEOF" && 15579 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15580 echo "_ACEOF" 15581} >conf$$subs.sh || 15582 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15583ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15584ac_delim='%!_!# ' 15585for ac_last_try in false false false false false :; do 15586 . ./conf$$subs.sh || 15587 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15588 15589 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15590 if test $ac_delim_n = $ac_delim_num; then 15591 break 15592 elif $ac_last_try; then 15593 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15594 else 15595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15596 fi 15597done 15598rm -f conf$$subs.sh 15599 15600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15601cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15602_ACEOF 15603sed -n ' 15604h 15605s/^/S["/; s/!.*/"]=/ 15606p 15607g 15608s/^[^!]*!// 15609:repl 15610t repl 15611s/'"$ac_delim"'$// 15612t delim 15613:nl 15614h 15615s/\(.\{148\}\).*/\1/ 15616t more1 15617s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15618p 15619n 15620b repl 15621:more1 15622s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15623p 15624g 15625s/.\{148\}// 15626t nl 15627:delim 15628h 15629s/\(.\{148\}\).*/\1/ 15630t more2 15631s/["\\]/\\&/g; s/^/"/; s/$/"/ 15632p 15633b 15634:more2 15635s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15636p 15637g 15638s/.\{148\}// 15639t delim 15640' <conf$$subs.awk | sed ' 15641/^[^""]/{ 15642 N 15643 s/\n// 15644} 15645' >>$CONFIG_STATUS || ac_write_fail=1 15646rm -f conf$$subs.awk 15647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15648_ACAWK 15649cat >>"\$tmp/subs1.awk" <<_ACAWK && 15650 for (key in S) S_is_set[key] = 1 15651 FS = "" 15652 15653} 15654{ 15655 line = $ 0 15656 nfields = split(line, field, "@") 15657 substed = 0 15658 len = length(field[1]) 15659 for (i = 2; i < nfields; i++) { 15660 key = field[i] 15661 keylen = length(key) 15662 if (S_is_set[key]) { 15663 value = S[key] 15664 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15665 len += length(value) + length(field[++i]) 15666 substed = 1 15667 } else 15668 len += 1 + keylen 15669 } 15670 15671 print line 15672} 15673 15674_ACAWK 15675_ACEOF 15676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15677if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15678 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15679else 15680 cat 15681fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15682 || as_fn_error "could not setup config files machinery" "$LINENO" 5 15683_ACEOF 15684 15685# VPATH may cause trouble with some makes, so we remove $(srcdir), 15686# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15687# trailing colons and then remove the whole line if VPATH becomes empty 15688# (actually we leave an empty line to preserve line numbers). 15689if test "x$srcdir" = x.; then 15690 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15691s/:*\$(srcdir):*/:/ 15692s/:*\${srcdir}:*/:/ 15693s/:*@srcdir@:*/:/ 15694s/^\([^=]*=[ ]*\):*/\1/ 15695s/:*$// 15696s/^[^=]*=[ ]*$// 15697}' 15698fi 15699 15700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15701fi # test -n "$CONFIG_FILES" 15702 15703# Set up the scripts for CONFIG_HEADERS section. 15704# No need to generate them if there are no CONFIG_HEADERS. 15705# This happens for instance with `./config.status Makefile'. 15706if test -n "$CONFIG_HEADERS"; then 15707cat >"$tmp/defines.awk" <<\_ACAWK || 15708BEGIN { 15709_ACEOF 15710 15711# Transform confdefs.h into an awk script `defines.awk', embedded as 15712# here-document in config.status, that substitutes the proper values into 15713# config.h.in to produce config.h. 15714 15715# Create a delimiter string that does not exist in confdefs.h, to ease 15716# handling of long lines. 15717ac_delim='%!_!# ' 15718for ac_last_try in false false :; do 15719 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15720 if test -z "$ac_t"; then 15721 break 15722 elif $ac_last_try; then 15723 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 15724 else 15725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15726 fi 15727done 15728 15729# For the awk script, D is an array of macro values keyed by name, 15730# likewise P contains macro parameters if any. Preserve backslash 15731# newline sequences. 15732 15733ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15734sed -n ' 15735s/.\{148\}/&'"$ac_delim"'/g 15736t rset 15737:rset 15738s/^[ ]*#[ ]*define[ ][ ]*/ / 15739t def 15740d 15741:def 15742s/\\$// 15743t bsnl 15744s/["\\]/\\&/g 15745s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15746D["\1"]=" \3"/p 15747s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15748d 15749:bsnl 15750s/["\\]/\\&/g 15751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15752D["\1"]=" \3\\\\\\n"\\/p 15753t cont 15754s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15755t cont 15756d 15757:cont 15758n 15759s/.\{148\}/&'"$ac_delim"'/g 15760t clear 15761:clear 15762s/\\$// 15763t bsnlc 15764s/["\\]/\\&/g; s/^/"/; s/$/"/p 15765d 15766:bsnlc 15767s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15768b cont 15769' <confdefs.h | sed ' 15770s/'"$ac_delim"'/"\\\ 15771"/g' >>$CONFIG_STATUS || ac_write_fail=1 15772 15773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15774 for (key in D) D_is_set[key] = 1 15775 FS = "" 15776} 15777/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15778 line = \$ 0 15779 split(line, arg, " ") 15780 if (arg[1] == "#") { 15781 defundef = arg[2] 15782 mac1 = arg[3] 15783 } else { 15784 defundef = substr(arg[1], 2) 15785 mac1 = arg[2] 15786 } 15787 split(mac1, mac2, "(") #) 15788 macro = mac2[1] 15789 prefix = substr(line, 1, index(line, defundef) - 1) 15790 if (D_is_set[macro]) { 15791 # Preserve the white space surrounding the "#". 15792 print prefix "define", macro P[macro] D[macro] 15793 next 15794 } else { 15795 # Replace #undef with comments. This is necessary, for example, 15796 # in the case of _POSIX_SOURCE, which is predefined and required 15797 # on some systems where configure will not decide to define it. 15798 if (defundef == "undef") { 15799 print "/*", prefix defundef, macro, "*/" 15800 next 15801 } 15802 } 15803} 15804{ print } 15805_ACAWK 15806_ACEOF 15807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15808 as_fn_error "could not setup config headers machinery" "$LINENO" 5 15809fi # test -n "$CONFIG_HEADERS" 15810 15811 15812eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15813shift 15814for ac_tag 15815do 15816 case $ac_tag in 15817 :[FHLC]) ac_mode=$ac_tag; continue;; 15818 esac 15819 case $ac_mode$ac_tag in 15820 :[FHL]*:*);; 15821 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 15822 :[FH]-) ac_tag=-:-;; 15823 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15824 esac 15825 ac_save_IFS=$IFS 15826 IFS=: 15827 set x $ac_tag 15828 IFS=$ac_save_IFS 15829 shift 15830 ac_file=$1 15831 shift 15832 15833 case $ac_mode in 15834 :L) ac_source=$1;; 15835 :[FH]) 15836 ac_file_inputs= 15837 for ac_f 15838 do 15839 case $ac_f in 15840 -) ac_f="$tmp/stdin";; 15841 *) # Look for the file first in the build tree, then in the source tree 15842 # (if the path is not absolute). The absolute path cannot be DOS-style, 15843 # because $ac_f cannot contain `:'. 15844 test -f "$ac_f" || 15845 case $ac_f in 15846 [\\/$]*) false;; 15847 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15848 esac || 15849 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15850 esac 15851 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15852 as_fn_append ac_file_inputs " '$ac_f'" 15853 done 15854 15855 # Let's still pretend it is `configure' which instantiates (i.e., don't 15856 # use $as_me), people would be surprised to read: 15857 # /* config.h. Generated by config.status. */ 15858 configure_input='Generated from '` 15859 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15860 `' by configure.' 15861 if test x"$ac_file" != x-; then 15862 configure_input="$ac_file. $configure_input" 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15864$as_echo "$as_me: creating $ac_file" >&6;} 15865 fi 15866 # Neutralize special characters interpreted by sed in replacement strings. 15867 case $configure_input in #( 15868 *\&* | *\|* | *\\* ) 15869 ac_sed_conf_input=`$as_echo "$configure_input" | 15870 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15871 *) ac_sed_conf_input=$configure_input;; 15872 esac 15873 15874 case $ac_tag in 15875 *:-:* | *:-) cat >"$tmp/stdin" \ 15876 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 15877 esac 15878 ;; 15879 esac 15880 15881 ac_dir=`$as_dirname -- "$ac_file" || 15882$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15883 X"$ac_file" : 'X\(//\)[^/]' \| \ 15884 X"$ac_file" : 'X\(//\)$' \| \ 15885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15886$as_echo X"$ac_file" | 15887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15888 s//\1/ 15889 q 15890 } 15891 /^X\(\/\/\)[^/].*/{ 15892 s//\1/ 15893 q 15894 } 15895 /^X\(\/\/\)$/{ 15896 s//\1/ 15897 q 15898 } 15899 /^X\(\/\).*/{ 15900 s//\1/ 15901 q 15902 } 15903 s/.*/./; q'` 15904 as_dir="$ac_dir"; as_fn_mkdir_p 15905 ac_builddir=. 15906 15907case "$ac_dir" in 15908.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15909*) 15910 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15911 # A ".." for each directory in $ac_dir_suffix. 15912 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15913 case $ac_top_builddir_sub in 15914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15916 esac ;; 15917esac 15918ac_abs_top_builddir=$ac_pwd 15919ac_abs_builddir=$ac_pwd$ac_dir_suffix 15920# for backward compatibility: 15921ac_top_builddir=$ac_top_build_prefix 15922 15923case $srcdir in 15924 .) # We are building in place. 15925 ac_srcdir=. 15926 ac_top_srcdir=$ac_top_builddir_sub 15927 ac_abs_top_srcdir=$ac_pwd ;; 15928 [\\/]* | ?:[\\/]* ) # Absolute name. 15929 ac_srcdir=$srcdir$ac_dir_suffix; 15930 ac_top_srcdir=$srcdir 15931 ac_abs_top_srcdir=$srcdir ;; 15932 *) # Relative name. 15933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15934 ac_top_srcdir=$ac_top_build_prefix$srcdir 15935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15936esac 15937ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15938 15939 15940 case $ac_mode in 15941 :F) 15942 # 15943 # CONFIG_FILE 15944 # 15945 15946 case $INSTALL in 15947 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15948 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15949 esac 15950 ac_MKDIR_P=$MKDIR_P 15951 case $MKDIR_P in 15952 [\\/$]* | ?:[\\/]* ) ;; 15953 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15954 esac 15955_ACEOF 15956 15957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15958# If the template does not know about datarootdir, expand it. 15959# FIXME: This hack should be removed a few years after 2.60. 15960ac_datarootdir_hack=; ac_datarootdir_seen= 15961ac_sed_dataroot=' 15962/datarootdir/ { 15963 p 15964 q 15965} 15966/@datadir@/p 15967/@docdir@/p 15968/@infodir@/p 15969/@localedir@/p 15970/@mandir@/p' 15971case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15972*datarootdir*) ac_datarootdir_seen=yes;; 15973*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15975$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15976_ACEOF 15977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15978 ac_datarootdir_hack=' 15979 s&@datadir@&$datadir&g 15980 s&@docdir@&$docdir&g 15981 s&@infodir@&$infodir&g 15982 s&@localedir@&$localedir&g 15983 s&@mandir@&$mandir&g 15984 s&\\\${datarootdir}&$datarootdir&g' ;; 15985esac 15986_ACEOF 15987 15988# Neutralize VPATH when `$srcdir' = `.'. 15989# Shell code in configure.ac might set extrasub. 15990# FIXME: do we really want to maintain this feature? 15991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15992ac_sed_extra="$ac_vpsub 15993$extrasub 15994_ACEOF 15995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15996:t 15997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15998s|@configure_input@|$ac_sed_conf_input|;t t 15999s&@top_builddir@&$ac_top_builddir_sub&;t t 16000s&@top_build_prefix@&$ac_top_build_prefix&;t t 16001s&@srcdir@&$ac_srcdir&;t t 16002s&@abs_srcdir@&$ac_abs_srcdir&;t t 16003s&@top_srcdir@&$ac_top_srcdir&;t t 16004s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16005s&@builddir@&$ac_builddir&;t t 16006s&@abs_builddir@&$ac_abs_builddir&;t t 16007s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16008s&@INSTALL@&$ac_INSTALL&;t t 16009s&@MKDIR_P@&$ac_MKDIR_P&;t t 16010$ac_datarootdir_hack 16011" 16012eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16013 || as_fn_error "could not create $ac_file" "$LINENO" 5 16014 16015test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16016 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16019which seems to be undefined. Please make sure it is defined." >&5 16020$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16021which seems to be undefined. Please make sure it is defined." >&2;} 16022 16023 rm -f "$tmp/stdin" 16024 case $ac_file in 16025 -) cat "$tmp/out" && rm -f "$tmp/out";; 16026 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16027 esac \ 16028 || as_fn_error "could not create $ac_file" "$LINENO" 5 16029 ;; 16030 :H) 16031 # 16032 # CONFIG_HEADER 16033 # 16034 if test x"$ac_file" != x-; then 16035 { 16036 $as_echo "/* $configure_input */" \ 16037 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16038 } >"$tmp/config.h" \ 16039 || as_fn_error "could not create $ac_file" "$LINENO" 5 16040 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16041 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16042$as_echo "$as_me: $ac_file is unchanged" >&6;} 16043 else 16044 rm -f "$ac_file" 16045 mv "$tmp/config.h" "$ac_file" \ 16046 || as_fn_error "could not create $ac_file" "$LINENO" 5 16047 fi 16048 else 16049 $as_echo "/* $configure_input */" \ 16050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16051 || as_fn_error "could not create -" "$LINENO" 5 16052 fi 16053# Compute "$ac_file"'s index in $config_headers. 16054_am_arg="$ac_file" 16055_am_stamp_count=1 16056for _am_header in $config_headers :; do 16057 case $_am_header in 16058 $_am_arg | $_am_arg:* ) 16059 break ;; 16060 * ) 16061 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16062 esac 16063done 16064echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16065$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16066 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16067 X"$_am_arg" : 'X\(//\)$' \| \ 16068 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16069$as_echo X"$_am_arg" | 16070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16071 s//\1/ 16072 q 16073 } 16074 /^X\(\/\/\)[^/].*/{ 16075 s//\1/ 16076 q 16077 } 16078 /^X\(\/\/\)$/{ 16079 s//\1/ 16080 q 16081 } 16082 /^X\(\/\).*/{ 16083 s//\1/ 16084 q 16085 } 16086 s/.*/./; q'`/stamp-h$_am_stamp_count 16087 ;; 16088 16089 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16090$as_echo "$as_me: executing $ac_file commands" >&6;} 16091 ;; 16092 esac 16093 16094 16095 case $ac_file$ac_mode in 16096 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16097 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16098 # are listed without --file. Let's play safe and only enable the eval 16099 # if we detect the quoting. 16100 case $CONFIG_FILES in 16101 *\'*) eval set x "$CONFIG_FILES" ;; 16102 *) set x $CONFIG_FILES ;; 16103 esac 16104 shift 16105 for mf 16106 do 16107 # Strip MF so we end up with the name of the file. 16108 mf=`echo "$mf" | sed -e 's/:.*$//'` 16109 # Check whether this is an Automake generated Makefile or not. 16110 # We used to match only the files named `Makefile.in', but 16111 # some people rename them; so instead we look at the file content. 16112 # Grep'ing the first line is not enough: some people post-process 16113 # each Makefile.in and add a new line on top of each file to say so. 16114 # Grep'ing the whole file is not good either: AIX grep has a line 16115 # limit of 2048, but all sed's we know have understand at least 4000. 16116 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16117 dirpart=`$as_dirname -- "$mf" || 16118$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16119 X"$mf" : 'X\(//\)[^/]' \| \ 16120 X"$mf" : 'X\(//\)$' \| \ 16121 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16122$as_echo X"$mf" | 16123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16124 s//\1/ 16125 q 16126 } 16127 /^X\(\/\/\)[^/].*/{ 16128 s//\1/ 16129 q 16130 } 16131 /^X\(\/\/\)$/{ 16132 s//\1/ 16133 q 16134 } 16135 /^X\(\/\).*/{ 16136 s//\1/ 16137 q 16138 } 16139 s/.*/./; q'` 16140 else 16141 continue 16142 fi 16143 # Extract the definition of DEPDIR, am__include, and am__quote 16144 # from the Makefile without running `make'. 16145 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16146 test -z "$DEPDIR" && continue 16147 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16148 test -z "am__include" && continue 16149 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16150 # When using ansi2knr, U may be empty or an underscore; expand it 16151 U=`sed -n 's/^U = //p' < "$mf"` 16152 # Find all dependency output files, they are included files with 16153 # $(DEPDIR) in their names. We invoke sed twice because it is the 16154 # simplest approach to changing $(DEPDIR) to its actual value in the 16155 # expansion. 16156 for file in `sed -n " 16157 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16158 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16159 # Make sure the directory exists. 16160 test -f "$dirpart/$file" && continue 16161 fdir=`$as_dirname -- "$file" || 16162$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16163 X"$file" : 'X\(//\)[^/]' \| \ 16164 X"$file" : 'X\(//\)$' \| \ 16165 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16166$as_echo X"$file" | 16167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16168 s//\1/ 16169 q 16170 } 16171 /^X\(\/\/\)[^/].*/{ 16172 s//\1/ 16173 q 16174 } 16175 /^X\(\/\/\)$/{ 16176 s//\1/ 16177 q 16178 } 16179 /^X\(\/\).*/{ 16180 s//\1/ 16181 q 16182 } 16183 s/.*/./; q'` 16184 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16185 # echo "creating $dirpart/$file" 16186 echo '# dummy' > "$dirpart/$file" 16187 done 16188 done 16189} 16190 ;; 16191 "libtool":C) 16192 16193 # See if we are running on zsh, and set the options which allow our 16194 # commands through without removal of \ escapes. 16195 if test -n "${ZSH_VERSION+set}" ; then 16196 setopt NO_GLOB_SUBST 16197 fi 16198 16199 cfgfile="${ofile}T" 16200 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16201 $RM "$cfgfile" 16202 16203 cat <<_LT_EOF >> "$cfgfile" 16204#! $SHELL 16205 16206# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16207# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16208# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16209# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16210# 16211# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16212# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16213# Written by Gordon Matzigkeit, 1996 16214# 16215# This file is part of GNU Libtool. 16216# 16217# GNU Libtool is free software; you can redistribute it and/or 16218# modify it under the terms of the GNU General Public License as 16219# published by the Free Software Foundation; either version 2 of 16220# the License, or (at your option) any later version. 16221# 16222# As a special exception to the GNU General Public License, 16223# if you distribute this file as part of a program or library that 16224# is built using GNU Libtool, you may include this file under the 16225# same distribution terms that you use for the rest of that program. 16226# 16227# GNU Libtool is distributed in the hope that it will be useful, 16228# but WITHOUT ANY WARRANTY; without even the implied warranty of 16229# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16230# GNU General Public License for more details. 16231# 16232# You should have received a copy of the GNU General Public License 16233# along with GNU Libtool; see the file COPYING. If not, a copy 16234# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16235# obtained by writing to the Free Software Foundation, Inc., 16236# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16237 16238 16239# The names of the tagged configurations supported by this script. 16240available_tags="CXX " 16241 16242# ### BEGIN LIBTOOL CONFIG 16243 16244# Which release of libtool.m4 was used? 16245macro_version=$macro_version 16246macro_revision=$macro_revision 16247 16248# Whether or not to build shared libraries. 16249build_libtool_libs=$enable_shared 16250 16251# Whether or not to build static libraries. 16252build_old_libs=$enable_static 16253 16254# What type of objects to build. 16255pic_mode=$pic_mode 16256 16257# Whether or not to optimize for fast installation. 16258fast_install=$enable_fast_install 16259 16260# Shell to use when invoking shell scripts. 16261SHELL=$lt_SHELL 16262 16263# An echo program that protects backslashes. 16264ECHO=$lt_ECHO 16265 16266# The host system. 16267host_alias=$host_alias 16268host=$host 16269host_os=$host_os 16270 16271# The build system. 16272build_alias=$build_alias 16273build=$build 16274build_os=$build_os 16275 16276# A sed program that does not truncate output. 16277SED=$lt_SED 16278 16279# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16280Xsed="\$SED -e 1s/^X//" 16281 16282# A grep program that handles long lines. 16283GREP=$lt_GREP 16284 16285# An ERE matcher. 16286EGREP=$lt_EGREP 16287 16288# A literal string matcher. 16289FGREP=$lt_FGREP 16290 16291# A BSD- or MS-compatible name lister. 16292NM=$lt_NM 16293 16294# Whether we need soft or hard links. 16295LN_S=$lt_LN_S 16296 16297# What is the maximum length of a command? 16298max_cmd_len=$max_cmd_len 16299 16300# Object file suffix (normally "o"). 16301objext=$ac_objext 16302 16303# Executable file suffix (normally ""). 16304exeext=$exeext 16305 16306# whether the shell understands "unset". 16307lt_unset=$lt_unset 16308 16309# turn spaces into newlines. 16310SP2NL=$lt_lt_SP2NL 16311 16312# turn newlines into spaces. 16313NL2SP=$lt_lt_NL2SP 16314 16315# An object symbol dumper. 16316OBJDUMP=$lt_OBJDUMP 16317 16318# Method to check whether dependent libraries are shared objects. 16319deplibs_check_method=$lt_deplibs_check_method 16320 16321# Command to use when deplibs_check_method == "file_magic". 16322file_magic_cmd=$lt_file_magic_cmd 16323 16324# The archiver. 16325AR=$lt_AR 16326AR_FLAGS=$lt_AR_FLAGS 16327 16328# A symbol stripping program. 16329STRIP=$lt_STRIP 16330 16331# Commands used to install an old-style archive. 16332RANLIB=$lt_RANLIB 16333old_postinstall_cmds=$lt_old_postinstall_cmds 16334old_postuninstall_cmds=$lt_old_postuninstall_cmds 16335 16336# Whether to use a lock for old archive extraction. 16337lock_old_archive_extraction=$lock_old_archive_extraction 16338 16339# A C compiler. 16340LTCC=$lt_CC 16341 16342# LTCC compiler flags. 16343LTCFLAGS=$lt_CFLAGS 16344 16345# Take the output of nm and produce a listing of raw symbols and C names. 16346global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16347 16348# Transform the output of nm in a proper C declaration. 16349global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16350 16351# Transform the output of nm in a C name address pair. 16352global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16353 16354# Transform the output of nm in a C name address pair when lib prefix is needed. 16355global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16356 16357# The name of the directory that contains temporary libtool files. 16358objdir=$objdir 16359 16360# Used to examine libraries when file_magic_cmd begins with "file". 16361MAGIC_CMD=$MAGIC_CMD 16362 16363# Must we lock files when doing compilation? 16364need_locks=$lt_need_locks 16365 16366# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16367DSYMUTIL=$lt_DSYMUTIL 16368 16369# Tool to change global to local symbols on Mac OS X. 16370NMEDIT=$lt_NMEDIT 16371 16372# Tool to manipulate fat objects and archives on Mac OS X. 16373LIPO=$lt_LIPO 16374 16375# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16376OTOOL=$lt_OTOOL 16377 16378# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16379OTOOL64=$lt_OTOOL64 16380 16381# Old archive suffix (normally "a"). 16382libext=$libext 16383 16384# Shared library suffix (normally ".so"). 16385shrext_cmds=$lt_shrext_cmds 16386 16387# The commands to extract the exported symbol list from a shared archive. 16388extract_expsyms_cmds=$lt_extract_expsyms_cmds 16389 16390# Variables whose values should be saved in libtool wrapper scripts and 16391# restored at link time. 16392variables_saved_for_relink=$lt_variables_saved_for_relink 16393 16394# Do we need the "lib" prefix for modules? 16395need_lib_prefix=$need_lib_prefix 16396 16397# Do we need a version for libraries? 16398need_version=$need_version 16399 16400# Library versioning type. 16401version_type=$version_type 16402 16403# Shared library runtime path variable. 16404runpath_var=$runpath_var 16405 16406# Shared library path variable. 16407shlibpath_var=$shlibpath_var 16408 16409# Is shlibpath searched before the hard-coded library search path? 16410shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16411 16412# Format of library name prefix. 16413libname_spec=$lt_libname_spec 16414 16415# List of archive names. First name is the real one, the rest are links. 16416# The last name is the one that the linker finds with -lNAME 16417library_names_spec=$lt_library_names_spec 16418 16419# The coded name of the library, if different from the real name. 16420soname_spec=$lt_soname_spec 16421 16422# Permission mode override for installation of shared libraries. 16423install_override_mode=$lt_install_override_mode 16424 16425# Command to use after installation of a shared archive. 16426postinstall_cmds=$lt_postinstall_cmds 16427 16428# Command to use after uninstallation of a shared archive. 16429postuninstall_cmds=$lt_postuninstall_cmds 16430 16431# Commands used to finish a libtool library installation in a directory. 16432finish_cmds=$lt_finish_cmds 16433 16434# As "finish_cmds", except a single script fragment to be evaled but 16435# not shown. 16436finish_eval=$lt_finish_eval 16437 16438# Whether we should hardcode library paths into libraries. 16439hardcode_into_libs=$hardcode_into_libs 16440 16441# Compile-time system search path for libraries. 16442sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16443 16444# Run-time system search path for libraries. 16445sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16446 16447# Whether dlopen is supported. 16448dlopen_support=$enable_dlopen 16449 16450# Whether dlopen of programs is supported. 16451dlopen_self=$enable_dlopen_self 16452 16453# Whether dlopen of statically linked programs is supported. 16454dlopen_self_static=$enable_dlopen_self_static 16455 16456# Commands to strip libraries. 16457old_striplib=$lt_old_striplib 16458striplib=$lt_striplib 16459 16460 16461# The linker used to build libraries. 16462LD=$lt_LD 16463 16464# How to create reloadable object files. 16465reload_flag=$lt_reload_flag 16466reload_cmds=$lt_reload_cmds 16467 16468# Commands used to build an old-style archive. 16469old_archive_cmds=$lt_old_archive_cmds 16470 16471# A language specific compiler. 16472CC=$lt_compiler 16473 16474# Is the compiler the GNU compiler? 16475with_gcc=$GCC 16476 16477# Compiler flag to turn off builtin functions. 16478no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16479 16480# How to pass a linker flag through the compiler. 16481wl=$lt_lt_prog_compiler_wl 16482 16483# Additional compiler flags for building library objects. 16484pic_flag=$lt_lt_prog_compiler_pic 16485 16486# Compiler flag to prevent dynamic linking. 16487link_static_flag=$lt_lt_prog_compiler_static 16488 16489# Does compiler simultaneously support -c and -o options? 16490compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16491 16492# Whether or not to add -lc for building shared libraries. 16493build_libtool_need_lc=$archive_cmds_need_lc 16494 16495# Whether or not to disallow shared libs when runtime libs are static. 16496allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16497 16498# Compiler flag to allow reflexive dlopens. 16499export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16500 16501# Compiler flag to generate shared objects directly from archives. 16502whole_archive_flag_spec=$lt_whole_archive_flag_spec 16503 16504# Whether the compiler copes with passing no objects directly. 16505compiler_needs_object=$lt_compiler_needs_object 16506 16507# Create an old-style archive from a shared archive. 16508old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16509 16510# Create a temporary old-style archive to link instead of a shared archive. 16511old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16512 16513# Commands used to build a shared archive. 16514archive_cmds=$lt_archive_cmds 16515archive_expsym_cmds=$lt_archive_expsym_cmds 16516 16517# Commands used to build a loadable module if different from building 16518# a shared archive. 16519module_cmds=$lt_module_cmds 16520module_expsym_cmds=$lt_module_expsym_cmds 16521 16522# Whether we are building with GNU ld or not. 16523with_gnu_ld=$lt_with_gnu_ld 16524 16525# Flag that allows shared libraries with undefined symbols to be built. 16526allow_undefined_flag=$lt_allow_undefined_flag 16527 16528# Flag that enforces no undefined symbols. 16529no_undefined_flag=$lt_no_undefined_flag 16530 16531# Flag to hardcode \$libdir into a binary during linking. 16532# This must work even if \$libdir does not exist 16533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16534 16535# If ld is used when linking, flag to hardcode \$libdir into a binary 16536# during linking. This must work even if \$libdir does not exist. 16537hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16538 16539# Whether we need a single "-rpath" flag with a separated argument. 16540hardcode_libdir_separator=$lt_hardcode_libdir_separator 16541 16542# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16543# DIR into the resulting binary. 16544hardcode_direct=$hardcode_direct 16545 16546# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16547# DIR into the resulting binary and the resulting library dependency is 16548# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16549# library is relocated. 16550hardcode_direct_absolute=$hardcode_direct_absolute 16551 16552# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16553# into the resulting binary. 16554hardcode_minus_L=$hardcode_minus_L 16555 16556# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16557# into the resulting binary. 16558hardcode_shlibpath_var=$hardcode_shlibpath_var 16559 16560# Set to "yes" if building a shared library automatically hardcodes DIR 16561# into the library and all subsequent libraries and executables linked 16562# against it. 16563hardcode_automatic=$hardcode_automatic 16564 16565# Set to yes if linker adds runtime paths of dependent libraries 16566# to runtime path list. 16567inherit_rpath=$inherit_rpath 16568 16569# Whether libtool must link a program against all its dependency libraries. 16570link_all_deplibs=$link_all_deplibs 16571 16572# Fix the shell variable \$srcfile for the compiler. 16573fix_srcfile_path=$lt_fix_srcfile_path 16574 16575# Set to "yes" if exported symbols are required. 16576always_export_symbols=$always_export_symbols 16577 16578# The commands to list exported symbols. 16579export_symbols_cmds=$lt_export_symbols_cmds 16580 16581# Symbols that should not be listed in the preloaded symbols. 16582exclude_expsyms=$lt_exclude_expsyms 16583 16584# Symbols that must always be exported. 16585include_expsyms=$lt_include_expsyms 16586 16587# Commands necessary for linking programs (against libraries) with templates. 16588prelink_cmds=$lt_prelink_cmds 16589 16590# Specify filename containing input files. 16591file_list_spec=$lt_file_list_spec 16592 16593# How to hardcode a shared library path into an executable. 16594hardcode_action=$hardcode_action 16595 16596# The directories searched by this compiler when creating a shared library. 16597compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 16598 16599# Dependencies to place before and after the objects being linked to 16600# create a shared library. 16601predep_objects=$lt_predep_objects 16602postdep_objects=$lt_postdep_objects 16603predeps=$lt_predeps 16604postdeps=$lt_postdeps 16605 16606# The library search path used internally by the compiler when linking 16607# a shared library. 16608compiler_lib_search_path=$lt_compiler_lib_search_path 16609 16610# ### END LIBTOOL CONFIG 16611 16612_LT_EOF 16613 16614 case $host_os in 16615 aix3*) 16616 cat <<\_LT_EOF >> "$cfgfile" 16617# AIX sometimes has problems with the GCC collect2 program. For some 16618# reason, if we set the COLLECT_NAMES environment variable, the problems 16619# vanish in a puff of smoke. 16620if test "X${COLLECT_NAMES+set}" != Xset; then 16621 COLLECT_NAMES= 16622 export COLLECT_NAMES 16623fi 16624_LT_EOF 16625 ;; 16626 esac 16627 16628 16629ltmain="$ac_aux_dir/ltmain.sh" 16630 16631 16632 # We use sed instead of cat because bash on DJGPP gets confused if 16633 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16634 # text mode, it properly converts lines to CR/LF. This bash problem 16635 # is reportedly fixed, but why not run on old versions too? 16636 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16637 || (rm -f "$cfgfile"; exit 1) 16638 16639 case $xsi_shell in 16640 yes) 16641 cat << \_LT_EOF >> "$cfgfile" 16642 16643# func_dirname file append nondir_replacement 16644# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16645# otherwise set result to NONDIR_REPLACEMENT. 16646func_dirname () 16647{ 16648 case ${1} in 16649 */*) func_dirname_result="${1%/*}${2}" ;; 16650 * ) func_dirname_result="${3}" ;; 16651 esac 16652} 16653 16654# func_basename file 16655func_basename () 16656{ 16657 func_basename_result="${1##*/}" 16658} 16659 16660# func_dirname_and_basename file append nondir_replacement 16661# perform func_basename and func_dirname in a single function 16662# call: 16663# dirname: Compute the dirname of FILE. If nonempty, 16664# add APPEND to the result, otherwise set result 16665# to NONDIR_REPLACEMENT. 16666# value returned in "$func_dirname_result" 16667# basename: Compute filename of FILE. 16668# value retuned in "$func_basename_result" 16669# Implementation must be kept synchronized with func_dirname 16670# and func_basename. For efficiency, we do not delegate to 16671# those functions but instead duplicate the functionality here. 16672func_dirname_and_basename () 16673{ 16674 case ${1} in 16675 */*) func_dirname_result="${1%/*}${2}" ;; 16676 * ) func_dirname_result="${3}" ;; 16677 esac 16678 func_basename_result="${1##*/}" 16679} 16680 16681# func_stripname prefix suffix name 16682# strip PREFIX and SUFFIX off of NAME. 16683# PREFIX and SUFFIX must not contain globbing or regex special 16684# characters, hashes, percent signs, but SUFFIX may contain a leading 16685# dot (in which case that matches only a dot). 16686func_stripname () 16687{ 16688 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16689 # positional parameters, so assign one to ordinary parameter first. 16690 func_stripname_result=${3} 16691 func_stripname_result=${func_stripname_result#"${1}"} 16692 func_stripname_result=${func_stripname_result%"${2}"} 16693} 16694 16695# func_opt_split 16696func_opt_split () 16697{ 16698 func_opt_split_opt=${1%%=*} 16699 func_opt_split_arg=${1#*=} 16700} 16701 16702# func_lo2o object 16703func_lo2o () 16704{ 16705 case ${1} in 16706 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16707 *) func_lo2o_result=${1} ;; 16708 esac 16709} 16710 16711# func_xform libobj-or-source 16712func_xform () 16713{ 16714 func_xform_result=${1%.*}.lo 16715} 16716 16717# func_arith arithmetic-term... 16718func_arith () 16719{ 16720 func_arith_result=$(( $* )) 16721} 16722 16723# func_len string 16724# STRING may not start with a hyphen. 16725func_len () 16726{ 16727 func_len_result=${#1} 16728} 16729 16730_LT_EOF 16731 ;; 16732 *) # Bourne compatible functions. 16733 cat << \_LT_EOF >> "$cfgfile" 16734 16735# func_dirname file append nondir_replacement 16736# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16737# otherwise set result to NONDIR_REPLACEMENT. 16738func_dirname () 16739{ 16740 # Extract subdirectory from the argument. 16741 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 16742 if test "X$func_dirname_result" = "X${1}"; then 16743 func_dirname_result="${3}" 16744 else 16745 func_dirname_result="$func_dirname_result${2}" 16746 fi 16747} 16748 16749# func_basename file 16750func_basename () 16751{ 16752 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 16753} 16754 16755 16756# func_stripname prefix suffix name 16757# strip PREFIX and SUFFIX off of NAME. 16758# PREFIX and SUFFIX must not contain globbing or regex special 16759# characters, hashes, percent signs, but SUFFIX may contain a leading 16760# dot (in which case that matches only a dot). 16761# func_strip_suffix prefix name 16762func_stripname () 16763{ 16764 case ${2} in 16765 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 16766 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 16767 esac 16768} 16769 16770# sed scripts: 16771my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16772my_sed_long_arg='1s/^-[^=]*=//' 16773 16774# func_opt_split 16775func_opt_split () 16776{ 16777 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 16778 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 16779} 16780 16781# func_lo2o object 16782func_lo2o () 16783{ 16784 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 16785} 16786 16787# func_xform libobj-or-source 16788func_xform () 16789{ 16790 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 16791} 16792 16793# func_arith arithmetic-term... 16794func_arith () 16795{ 16796 func_arith_result=`expr "$@"` 16797} 16798 16799# func_len string 16800# STRING may not start with a hyphen. 16801func_len () 16802{ 16803 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16804} 16805 16806_LT_EOF 16807esac 16808 16809case $lt_shell_append in 16810 yes) 16811 cat << \_LT_EOF >> "$cfgfile" 16812 16813# func_append var value 16814# Append VALUE to the end of shell variable VAR. 16815func_append () 16816{ 16817 eval "$1+=\$2" 16818} 16819_LT_EOF 16820 ;; 16821 *) 16822 cat << \_LT_EOF >> "$cfgfile" 16823 16824# func_append var value 16825# Append VALUE to the end of shell variable VAR. 16826func_append () 16827{ 16828 eval "$1=\$$1\$2" 16829} 16830 16831_LT_EOF 16832 ;; 16833 esac 16834 16835 16836 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16837 || (rm -f "$cfgfile"; exit 1) 16838 16839 mv -f "$cfgfile" "$ofile" || 16840 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16841 chmod +x "$ofile" 16842 16843 16844 cat <<_LT_EOF >> "$ofile" 16845 16846# ### BEGIN LIBTOOL TAG CONFIG: CXX 16847 16848# The linker used to build libraries. 16849LD=$lt_LD_CXX 16850 16851# How to create reloadable object files. 16852reload_flag=$lt_reload_flag_CXX 16853reload_cmds=$lt_reload_cmds_CXX 16854 16855# Commands used to build an old-style archive. 16856old_archive_cmds=$lt_old_archive_cmds_CXX 16857 16858# A language specific compiler. 16859CC=$lt_compiler_CXX 16860 16861# Is the compiler the GNU compiler? 16862with_gcc=$GCC_CXX 16863 16864# Compiler flag to turn off builtin functions. 16865no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 16866 16867# How to pass a linker flag through the compiler. 16868wl=$lt_lt_prog_compiler_wl_CXX 16869 16870# Additional compiler flags for building library objects. 16871pic_flag=$lt_lt_prog_compiler_pic_CXX 16872 16873# Compiler flag to prevent dynamic linking. 16874link_static_flag=$lt_lt_prog_compiler_static_CXX 16875 16876# Does compiler simultaneously support -c and -o options? 16877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 16878 16879# Whether or not to add -lc for building shared libraries. 16880build_libtool_need_lc=$archive_cmds_need_lc_CXX 16881 16882# Whether or not to disallow shared libs when runtime libs are static. 16883allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 16884 16885# Compiler flag to allow reflexive dlopens. 16886export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 16887 16888# Compiler flag to generate shared objects directly from archives. 16889whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 16890 16891# Whether the compiler copes with passing no objects directly. 16892compiler_needs_object=$lt_compiler_needs_object_CXX 16893 16894# Create an old-style archive from a shared archive. 16895old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 16896 16897# Create a temporary old-style archive to link instead of a shared archive. 16898old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 16899 16900# Commands used to build a shared archive. 16901archive_cmds=$lt_archive_cmds_CXX 16902archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 16903 16904# Commands used to build a loadable module if different from building 16905# a shared archive. 16906module_cmds=$lt_module_cmds_CXX 16907module_expsym_cmds=$lt_module_expsym_cmds_CXX 16908 16909# Whether we are building with GNU ld or not. 16910with_gnu_ld=$lt_with_gnu_ld_CXX 16911 16912# Flag that allows shared libraries with undefined symbols to be built. 16913allow_undefined_flag=$lt_allow_undefined_flag_CXX 16914 16915# Flag that enforces no undefined symbols. 16916no_undefined_flag=$lt_no_undefined_flag_CXX 16917 16918# Flag to hardcode \$libdir into a binary during linking. 16919# This must work even if \$libdir does not exist 16920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 16921 16922# If ld is used when linking, flag to hardcode \$libdir into a binary 16923# during linking. This must work even if \$libdir does not exist. 16924hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 16925 16926# Whether we need a single "-rpath" flag with a separated argument. 16927hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 16928 16929# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16930# DIR into the resulting binary. 16931hardcode_direct=$hardcode_direct_CXX 16932 16933# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16934# DIR into the resulting binary and the resulting library dependency is 16935# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16936# library is relocated. 16937hardcode_direct_absolute=$hardcode_direct_absolute_CXX 16938 16939# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16940# into the resulting binary. 16941hardcode_minus_L=$hardcode_minus_L_CXX 16942 16943# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16944# into the resulting binary. 16945hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 16946 16947# Set to "yes" if building a shared library automatically hardcodes DIR 16948# into the library and all subsequent libraries and executables linked 16949# against it. 16950hardcode_automatic=$hardcode_automatic_CXX 16951 16952# Set to yes if linker adds runtime paths of dependent libraries 16953# to runtime path list. 16954inherit_rpath=$inherit_rpath_CXX 16955 16956# Whether libtool must link a program against all its dependency libraries. 16957link_all_deplibs=$link_all_deplibs_CXX 16958 16959# Fix the shell variable \$srcfile for the compiler. 16960fix_srcfile_path=$lt_fix_srcfile_path_CXX 16961 16962# Set to "yes" if exported symbols are required. 16963always_export_symbols=$always_export_symbols_CXX 16964 16965# The commands to list exported symbols. 16966export_symbols_cmds=$lt_export_symbols_cmds_CXX 16967 16968# Symbols that should not be listed in the preloaded symbols. 16969exclude_expsyms=$lt_exclude_expsyms_CXX 16970 16971# Symbols that must always be exported. 16972include_expsyms=$lt_include_expsyms_CXX 16973 16974# Commands necessary for linking programs (against libraries) with templates. 16975prelink_cmds=$lt_prelink_cmds_CXX 16976 16977# Specify filename containing input files. 16978file_list_spec=$lt_file_list_spec_CXX 16979 16980# How to hardcode a shared library path into an executable. 16981hardcode_action=$hardcode_action_CXX 16982 16983# The directories searched by this compiler when creating a shared library. 16984compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 16985 16986# Dependencies to place before and after the objects being linked to 16987# create a shared library. 16988predep_objects=$lt_predep_objects_CXX 16989postdep_objects=$lt_postdep_objects_CXX 16990predeps=$lt_predeps_CXX 16991postdeps=$lt_postdeps_CXX 16992 16993# The library search path used internally by the compiler when linking 16994# a shared library. 16995compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 16996 16997# ### END LIBTOOL TAG CONFIG: CXX 16998_LT_EOF 16999 17000 ;; 17001 17002 esac 17003done # for ac_tag 17004 17005 17006as_fn_exit 0 17007_ACEOF 17008ac_clean_files=$ac_clean_files_save 17009 17010test $ac_write_fail = 0 || 17011 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 17012 17013 17014# configure is writing to config.log, and then calls config.status. 17015# config.status does its own redirection, appending to config.log. 17016# Unfortunately, on DOS this fails, as config.log is still kept open 17017# by configure, so config.status won't be able to write to it; its 17018# output is simply discarded. So we exec the FD to /dev/null, 17019# effectively closing config.log, so it can be properly (re)opened and 17020# appended to by config.status. When coming back to configure, we 17021# need to make the FD available again. 17022if test "$no_create" != yes; then 17023 ac_cs_success=: 17024 ac_config_status_args= 17025 test "$silent" = yes && 17026 ac_config_status_args="$ac_config_status_args --quiet" 17027 exec 5>/dev/null 17028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17029 exec 5>>config.log 17030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17031 # would make configure fail if this is the last instruction. 17032 $ac_cs_success || as_fn_exit $? 17033fi 17034if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17036$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17037fi 17038 17039