1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for phsa HSAIL runtime library 1.0. 4# 5# Report bugs to <pekka.jaaskelainen@parmance.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 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. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: pekka.jaaskelainen@parmance.com about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='phsa HSAIL runtime library' 592PACKAGE_TARNAME='phsa-hsail-runtime-library' 593PACKAGE_VERSION='1.0' 594PACKAGE_STRING='phsa HSAIL runtime library 1.0' 595PACKAGE_BUGREPORT='pekka.jaaskelainen@parmance.com' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638get_gcc_base_ver 639toolexeclibdir 640toolexecdir 641CXXCPP 642CPP 643OTOOL64 644OTOOL 645LIPO 646NMEDIT 647DSYMUTIL 648RANLIB 649AR 650OBJDUMP 651LN_S 652NM 653ac_ct_DUMPBIN 654DUMPBIN 655LD 656FGREP 657EGREP 658GREP 659SED 660LIBTOOL 661MAC_LINKER_SCRIPT_FALSE 662MAC_LINKER_SCRIPT_TRUE 663LINUX_LINKER_SCRIPT_FALSE 664LINUX_LINKER_SCRIPT_TRUE 665config_dir 666am__fastdepCXX_FALSE 667am__fastdepCXX_TRUE 668CXXDEPMODE 669ac_ct_CXX 670CXXFLAGS 671CXX 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__quote 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689MAINT 690MAINTAINER_MODE_FALSE 691MAINTAINER_MODE_TRUE 692AM_BACKSLASH 693AM_DEFAULT_VERBOSITY 694AM_DEFAULT_V 695AM_V 696am__untar 697am__tar 698AMTAR 699am__leading_dot 700SET_MAKE 701AWK 702mkdir_p 703MKDIR_P 704INSTALL_STRIP_PROGRAM 705STRIP 706install_sh 707MAKEINFO 708AUTOHEADER 709AUTOMAKE 710AUTOCONF 711ACLOCAL 712VERSION 713PACKAGE 714CYGPATH_W 715am__isrc 716INSTALL_DATA 717INSTALL_SCRIPT 718INSTALL_PROGRAM 719target_os 720target_vendor 721target_cpu 722target 723host_os 724host_vendor 725host_cpu 726host 727build_os 728build_vendor 729build_cpu 730build 731target_alias 732host_alias 733build_alias 734LIBS 735ECHO_T 736ECHO_N 737ECHO_C 738DEFS 739mandir 740localedir 741libdir 742psdir 743pdfdir 744dvidir 745htmldir 746infodir 747docdir 748oldincludedir 749includedir 750localstatedir 751sharedstatedir 752sysconfdir 753datadir 754datarootdir 755libexecdir 756sbindir 757bindir 758program_transform_name 759prefix 760exec_prefix 761PACKAGE_URL 762PACKAGE_BUGREPORT 763PACKAGE_STRING 764PACKAGE_VERSION 765PACKAGE_TARNAME 766PACKAGE_NAME 767PATH_SEPARATOR 768SHELL' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_silent_rules 773enable_maintainer_mode 774enable_dependency_tracking 775enable_version_specific_runtime_libs 776enable_shared 777enable_static 778with_pic 779enable_fast_install 780with_gnu_ld 781enable_libtool_lock 782with_gcc_major_version_only 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CC 788CFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792CXX 793CXXFLAGS 794CCC 795CPP 796CXXCPP' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835includedir='${prefix}/include' 836oldincludedir='/usr/include' 837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 838infodir='${datarootdir}/info' 839htmldir='${docdir}' 840dvidir='${docdir}' 841pdfdir='${docdir}' 842psdir='${docdir}' 843libdir='${exec_prefix}/lib' 844localedir='${datarootdir}/locale' 845mandir='${datarootdir}/man' 846 847ac_prev= 848ac_dashdash= 849for ac_option 850do 851 # If the previous option needs an argument, assign it. 852 if test -n "$ac_prev"; then 853 eval $ac_prev=\$ac_option 854 ac_prev= 855 continue 856 fi 857 858 case $ac_option in 859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860 *=) ac_optarg= ;; 861 *) ac_optarg=yes ;; 862 esac 863 864 # Accept the important Cygnus configure options, so we can diagnose typos. 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1088 ac_prev=sbindir ;; 1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1090 | --sbi=* | --sb=*) 1091 sbindir=$ac_optarg ;; 1092 1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1095 | --sharedst | --shareds | --shared | --share | --shar \ 1096 | --sha | --sh) 1097 ac_prev=sharedstatedir ;; 1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1101 | --sha=* | --sh=*) 1102 sharedstatedir=$ac_optarg ;; 1103 1104 -site | --site | --sit) 1105 ac_prev=site ;; 1106 -site=* | --site=* | --sit=*) 1107 site=$ac_optarg ;; 1108 1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1110 ac_prev=srcdir ;; 1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1112 srcdir=$ac_optarg ;; 1113 1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1115 | --syscon | --sysco | --sysc | --sys | --sy) 1116 ac_prev=sysconfdir ;; 1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1119 sysconfdir=$ac_optarg ;; 1120 1121 -target | --target | --targe | --targ | --tar | --ta | --t) 1122 ac_prev=target_alias ;; 1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1124 target_alias=$ac_optarg ;; 1125 1126 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1127 verbose=yes ;; 1128 1129 -version | --version | --versio | --versi | --vers | -V) 1130 ac_init_version=: ;; 1131 1132 -with-* | --with-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 as_fn_error $? "invalid package name: $ac_useropt" 1137 ac_useropt_orig=$ac_useropt 1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139 case $ac_user_opts in 1140 *" 1141"with_$ac_useropt" 1142"*) ;; 1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1144 ac_unrecognized_sep=', ';; 1145 esac 1146 eval with_$ac_useropt=\$ac_optarg ;; 1147 1148 -without-* | --without-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=no ;; 1163 1164 --x) 1165 # Obsolete; use --with-x. 1166 with_x=yes ;; 1167 1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169 | --x-incl | --x-inc | --x-in | --x-i) 1170 ac_prev=x_includes ;; 1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173 x_includes=$ac_optarg ;; 1174 1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177 ac_prev=x_libraries ;; 1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180 x_libraries=$ac_optarg ;; 1181 1182 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1183Try \`$0 --help' for more information" 1184 ;; 1185 1186 *=*) 1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188 # Reject names that are not valid shell variable names. 1189 case $ac_envvar in #( 1190 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1192 esac 1193 eval $ac_envvar=\$ac_optarg 1194 export $ac_envvar ;; 1195 1196 *) 1197 # FIXME: should be removed in autoconf 3.0. 1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1202 ;; 1203 1204 esac 1205done 1206 1207if test -n "$ac_prev"; then 1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209 as_fn_error $? "missing argument to $ac_option" 1210fi 1211 1212if test -n "$ac_unrecognized_opts"; then 1213 case $enable_option_checking in 1214 no) ;; 1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1217 esac 1218fi 1219 1220# Check all directory arguments for consistency. 1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1222 datadir sysconfdir sharedstatedir localstatedir includedir \ 1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1224 libdir localedir mandir 1225do 1226 eval ac_val=\$$ac_var 1227 # Remove trailing slashes. 1228 case $ac_val in 1229 */ ) 1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1231 eval $ac_var=\$ac_val;; 1232 esac 1233 # Be sure to have absolute directory names. 1234 case $ac_val in 1235 [\\/$]* | ?:[\\/]* ) continue;; 1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1237 esac 1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1239done 1240 1241# There might be people who depend on the old broken behavior: `$host' 1242# used to hold the argument of --host etc. 1243# FIXME: To remove some day. 1244build=$build_alias 1245host=$host_alias 1246target=$target_alias 1247 1248# FIXME: To remove some day. 1249if test "x$host_alias" != x; then 1250 if test "x$build_alias" = x; then 1251 cross_compiling=maybe 1252 elif test "x$build_alias" != "x$host_alias"; then 1253 cross_compiling=yes 1254 fi 1255fi 1256 1257ac_tool_prefix= 1258test -n "$host_alias" && ac_tool_prefix=$host_alias- 1259 1260test "$silent" = yes && exec 6>/dev/null 1261 1262 1263ac_pwd=`pwd` && test -n "$ac_pwd" && 1264ac_ls_di=`ls -di .` && 1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1266 as_fn_error $? "working directory cannot be determined" 1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1268 as_fn_error $? "pwd does not report name of working directory" 1269 1270 1271# Find the source files, if location was not specified. 1272if test -z "$srcdir"; then 1273 ac_srcdir_defaulted=yes 1274 # Try the directory containing this script, then the parent directory. 1275 ac_confdir=`$as_dirname -- "$as_myself" || 1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1277 X"$as_myself" : 'X\(//\)[^/]' \| \ 1278 X"$as_myself" : 'X\(//\)$' \| \ 1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1280$as_echo X"$as_myself" | 1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)[^/].*/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\/\)$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\).*/{ 1294 s//\1/ 1295 q 1296 } 1297 s/.*/./; q'` 1298 srcdir=$ac_confdir 1299 if test ! -r "$srcdir/$ac_unique_file"; then 1300 srcdir=.. 1301 fi 1302else 1303 ac_srcdir_defaulted=no 1304fi 1305if test ! -r "$srcdir/$ac_unique_file"; then 1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1308fi 1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1310ac_abs_confdir=`( 1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1312 pwd)` 1313# When building in place, set srcdir=. 1314if test "$ac_abs_confdir" = "$ac_pwd"; then 1315 srcdir=. 1316fi 1317# Remove unnecessary trailing slashes from srcdir. 1318# Double slashes in file names in object file debugging info 1319# mess up M-x gdb in Emacs. 1320case $srcdir in 1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1322esac 1323for ac_var in $ac_precious_vars; do 1324 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_env_${ac_var}_value=\$${ac_var} 1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1328done 1329 1330# 1331# Report the --help message. 1332# 1333if test "$ac_init_help" = "long"; then 1334 # Omit some internal or obsolete options to make the list less imposing. 1335 # This message is too long to be a string in the A/UX 3.1 sh. 1336 cat <<_ACEOF 1337\`configure' configures phsa HSAIL runtime library 1.0 to adapt to many kinds of systems. 1338 1339Usage: $0 [OPTION]... [VAR=VALUE]... 1340 1341To assign environment variables (e.g., CC, CFLAGS...), specify them as 1342VAR=VALUE. See below for descriptions of some of the useful variables. 1343 1344Defaults for the options are specified in brackets. 1345 1346Configuration: 1347 -h, --help display this help and exit 1348 --help=short display options specific to this package 1349 --help=recursive display the short help of all the included packages 1350 -V, --version display version information and exit 1351 -q, --quiet, --silent do not print \`checking ...' messages 1352 --cache-file=FILE cache test results in FILE [disabled] 1353 -C, --config-cache alias for \`--cache-file=config.cache' 1354 -n, --no-create do not create output files 1355 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1356 1357Installation directories: 1358 --prefix=PREFIX install architecture-independent files in PREFIX 1359 [$ac_default_prefix] 1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1361 [PREFIX] 1362 1363By default, \`make install' will install all the files in 1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1365an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1366for instance \`--prefix=\$HOME'. 1367 1368For better control, use the options below. 1369 1370Fine tuning of the installation directories: 1371 --bindir=DIR user executables [EPREFIX/bin] 1372 --sbindir=DIR system admin executables [EPREFIX/sbin] 1373 --libexecdir=DIR program executables [EPREFIX/libexec] 1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1377 --libdir=DIR object code libraries [EPREFIX/lib] 1378 --includedir=DIR C header files [PREFIX/include] 1379 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1382 --infodir=DIR info documentation [DATAROOTDIR/info] 1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1384 --mandir=DIR man documentation [DATAROOTDIR/man] 1385 --docdir=DIR documentation root 1386 [DATAROOTDIR/doc/phsa-hsail-runtime-library] 1387 --htmldir=DIR html documentation [DOCDIR] 1388 --dvidir=DIR dvi documentation [DOCDIR] 1389 --pdfdir=DIR pdf documentation [DOCDIR] 1390 --psdir=DIR ps documentation [DOCDIR] 1391_ACEOF 1392 1393 cat <<\_ACEOF 1394 1395Program names: 1396 --program-prefix=PREFIX prepend PREFIX to installed program names 1397 --program-suffix=SUFFIX append SUFFIX to installed program names 1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1399 1400System types: 1401 --build=BUILD configure for building on BUILD [guessed] 1402 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1403 --target=TARGET configure for building compilers for TARGET [HOST] 1404_ACEOF 1405fi 1406 1407if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of phsa HSAIL runtime library 1.0:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --enable-silent-rules less verbose build output (undo: "make V=1") 1418 --disable-silent-rules verbose build output (undo: "make V=0") 1419 --enable-maintainer-mode 1420 enable make rules and dependencies not useful (and 1421 sometimes confusing) to the casual installer 1422 --enable-dependency-tracking 1423 do not reject slow dependency extractors 1424 --disable-dependency-tracking 1425 speeds up one-time build 1426 --enable-version-specific-runtime-libs 1427 Specify that runtime libraries should be installed 1428 in a compi ler-specific directory 1429 --enable-shared[=PKGS] build shared libraries [default=yes] 1430 --enable-static[=PKGS] build static libraries [default=yes] 1431 --enable-fast-install[=PKGS] 1432 optimize for fast installation [default=yes] 1433 --disable-libtool-lock avoid locking (might break parallel builds) 1434 1435Optional Packages: 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1438 --with-pic try to use only PIC/non-PIC objects [default=use 1439 both] 1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1441 --with-gcc-major-version-only 1442 use only GCC major number in filesystem paths 1443 1444Some influential environment variables: 1445 CC C compiler command 1446 CFLAGS C compiler flags 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1448 nonstandard directory <lib dir> 1449 LIBS libraries to pass to the linker, e.g. -l<library> 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1451 you have headers in a nonstandard directory <include dir> 1452 CXX C++ compiler command 1453 CXXFLAGS C++ compiler flags 1454 CPP C preprocessor 1455 CXXCPP C++ preprocessor 1456 1457Use these variables to override the choices made by `configure' or to help 1458it to find libraries and programs with nonstandard names/locations. 1459 1460Report bugs to <pekka.jaaskelainen@parmance.com>. 1461_ACEOF 1462ac_status=$? 1463fi 1464 1465if test "$ac_init_help" = "recursive"; then 1466 # If there are subdirs, report their specific --help. 1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1468 test -d "$ac_dir" || 1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1470 continue 1471 ac_builddir=. 1472 1473case "$ac_dir" in 1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1475*) 1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1477 # A ".." for each directory in $ac_dir_suffix. 1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1479 case $ac_top_builddir_sub in 1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1482 esac ;; 1483esac 1484ac_abs_top_builddir=$ac_pwd 1485ac_abs_builddir=$ac_pwd$ac_dir_suffix 1486# for backward compatibility: 1487ac_top_builddir=$ac_top_build_prefix 1488 1489case $srcdir in 1490 .) # We are building in place. 1491 ac_srcdir=. 1492 ac_top_srcdir=$ac_top_builddir_sub 1493 ac_abs_top_srcdir=$ac_pwd ;; 1494 [\\/]* | ?:[\\/]* ) # Absolute name. 1495 ac_srcdir=$srcdir$ac_dir_suffix; 1496 ac_top_srcdir=$srcdir 1497 ac_abs_top_srcdir=$srcdir ;; 1498 *) # Relative name. 1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1500 ac_top_srcdir=$ac_top_build_prefix$srcdir 1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1502esac 1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1504 1505 cd "$ac_dir" || { ac_status=$?; continue; } 1506 # Check for guested configure. 1507 if test -f "$ac_srcdir/configure.gnu"; then 1508 echo && 1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1510 elif test -f "$ac_srcdir/configure"; then 1511 echo && 1512 $SHELL "$ac_srcdir/configure" --help=recursive 1513 else 1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1515 fi || ac_status=$? 1516 cd "$ac_pwd" || { ac_status=$?; break; } 1517 done 1518fi 1519 1520test -n "$ac_init_help" && exit $ac_status 1521if $ac_init_version; then 1522 cat <<\_ACEOF 1523phsa HSAIL runtime library configure 1.0 1524generated by GNU Autoconf 2.69 1525 1526Copyright (C) 2012 Free Software Foundation, Inc. 1527This configure script is free software; the Free Software Foundation 1528gives unlimited permission to copy, distribute and modify it. 1529_ACEOF 1530 exit 1531fi 1532 1533## ------------------------ ## 1534## Autoconf initialization. ## 1535## ------------------------ ## 1536 1537# ac_fn_c_try_compile LINENO 1538# -------------------------- 1539# Try to compile conftest.$ac_ext, and return whether this succeeded. 1540ac_fn_c_try_compile () 1541{ 1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1543 rm -f conftest.$ac_objext 1544 if { { ac_try="$ac_compile" 1545case "(($ac_try" in 1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1547 *) ac_try_echo=$ac_try;; 1548esac 1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1550$as_echo "$ac_try_echo"; } >&5 1551 (eval "$ac_compile") 2>conftest.err 1552 ac_status=$? 1553 if test -s conftest.err; then 1554 grep -v '^ *+' conftest.err >conftest.er1 1555 cat conftest.er1 >&5 1556 mv -f conftest.er1 conftest.err 1557 fi 1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1559 test $ac_status = 0; } && { 1560 test -z "$ac_c_werror_flag" || 1561 test ! -s conftest.err 1562 } && test -s conftest.$ac_objext; then : 1563 ac_retval=0 1564else 1565 $as_echo "$as_me: failed program was:" >&5 1566sed 's/^/| /' conftest.$ac_ext >&5 1567 1568 ac_retval=1 1569fi 1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571 as_fn_set_status $ac_retval 1572 1573} # ac_fn_c_try_compile 1574 1575# ac_fn_cxx_try_compile LINENO 1576# ---------------------------- 1577# Try to compile conftest.$ac_ext, and return whether this succeeded. 1578ac_fn_cxx_try_compile () 1579{ 1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1581 rm -f conftest.$ac_objext 1582 if { { ac_try="$ac_compile" 1583case "(($ac_try" in 1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1585 *) ac_try_echo=$ac_try;; 1586esac 1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1588$as_echo "$ac_try_echo"; } >&5 1589 (eval "$ac_compile") 2>conftest.err 1590 ac_status=$? 1591 if test -s conftest.err; then 1592 grep -v '^ *+' conftest.err >conftest.er1 1593 cat conftest.er1 >&5 1594 mv -f conftest.er1 conftest.err 1595 fi 1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1597 test $ac_status = 0; } && { 1598 test -z "$ac_cxx_werror_flag" || 1599 test ! -s conftest.err 1600 } && test -s conftest.$ac_objext; then : 1601 ac_retval=0 1602else 1603 $as_echo "$as_me: failed program was:" >&5 1604sed 's/^/| /' conftest.$ac_ext >&5 1605 1606 ac_retval=1 1607fi 1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1609 as_fn_set_status $ac_retval 1610 1611} # ac_fn_cxx_try_compile 1612 1613# ac_fn_c_try_link LINENO 1614# ----------------------- 1615# Try to link conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_link () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext conftest$ac_exeext 1620 if { { ac_try="$ac_link" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626$as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_link") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest$ac_exeext && { 1639 test "$cross_compiling" = yes || 1640 test -x conftest$ac_exeext 1641 }; then : 1642 ac_retval=0 1643else 1644 $as_echo "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=1 1648fi 1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1651 # interfere with the next link command; also delete a directory that is 1652 # left behind by Apple's compiler. We do this before executing the actions. 1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 as_fn_set_status $ac_retval 1656 1657} # ac_fn_c_try_link 1658 1659# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1660# ------------------------------------------------------- 1661# Tests whether HEADER exists and can be compiled using the include files in 1662# INCLUDES, setting the cache variable VAR accordingly. 1663ac_fn_c_check_header_compile () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667$as_echo_n "checking for $2... " >&6; } 1668if eval \${$3+:} false; then : 1669 $as_echo_n "(cached) " >&6 1670else 1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672/* end confdefs.h. */ 1673$4 1674#include <$2> 1675_ACEOF 1676if ac_fn_c_try_compile "$LINENO"; then : 1677 eval "$3=yes" 1678else 1679 eval "$3=no" 1680fi 1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1682fi 1683eval ac_res=\$$3 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1685$as_echo "$ac_res" >&6; } 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687 1688} # ac_fn_c_check_header_compile 1689 1690# ac_fn_c_try_cpp LINENO 1691# ---------------------- 1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1693ac_fn_c_try_cpp () 1694{ 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 if { { ac_try="$ac_cpp conftest.$ac_ext" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } > conftest.i && { 1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 }; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721fi 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_cpp 1726 1727# ac_fn_c_try_run LINENO 1728# ---------------------- 1729# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1730# that executables *can* be run. 1731ac_fn_c_try_run () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 if { { ac_try="$ac_link" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_link") 2>&5 1742 ac_status=$? 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1745 { { case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_try") 2>&5 1752 ac_status=$? 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; }; }; then : 1755 ac_retval=0 1756else 1757 $as_echo "$as_me: program exited with status $ac_status" >&5 1758 $as_echo "$as_me: failed program was:" >&5 1759sed 's/^/| /' conftest.$ac_ext >&5 1760 1761 ac_retval=$ac_status 1762fi 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_run 1768 1769# ac_fn_c_check_func LINENO FUNC VAR 1770# ---------------------------------- 1771# Tests whether FUNC exists, setting the cache variable VAR accordingly 1772ac_fn_c_check_func () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1776$as_echo_n "checking for $2... " >&6; } 1777if eval \${$3+:} false; then : 1778 $as_echo_n "(cached) " >&6 1779else 1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1784#define $2 innocuous_$2 1785 1786/* System header to define __stub macros and hopefully few prototypes, 1787 which can conflict with char $2 (); below. 1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1789 <limits.h> exists even on freestanding compilers. */ 1790 1791#ifdef __STDC__ 1792# include <limits.h> 1793#else 1794# include <assert.h> 1795#endif 1796 1797#undef $2 1798 1799/* Override any GCC internal prototype to avoid an error. 1800 Use char because int might match the return type of a GCC 1801 builtin and then its argument prototype would still apply. */ 1802#ifdef __cplusplus 1803extern "C" 1804#endif 1805char $2 (); 1806/* The GNU C library defines this for functions which it implements 1807 to always fail with ENOSYS. Some functions are actually named 1808 something starting with __ and the normal name is an alias. */ 1809#if defined __stub_$2 || defined __stub___$2 1810choke me 1811#endif 1812 1813int 1814main () 1815{ 1816return $2 (); 1817 ; 1818 return 0; 1819} 1820_ACEOF 1821if ac_fn_c_try_link "$LINENO"; then : 1822 eval "$3=yes" 1823else 1824 eval "$3=no" 1825fi 1826rm -f core conftest.err conftest.$ac_objext \ 1827 conftest$ac_exeext conftest.$ac_ext 1828fi 1829eval ac_res=\$$3 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831$as_echo "$ac_res" >&6; } 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_func 1835 1836# ac_fn_cxx_try_cpp LINENO 1837# ------------------------ 1838# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1839ac_fn_cxx_try_cpp () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 if { { ac_try="$ac_cpp conftest.$ac_ext" 1843case "(($ac_try" in 1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1845 *) ac_try_echo=$ac_try;; 1846esac 1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1848$as_echo "$ac_try_echo"; } >&5 1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1850 ac_status=$? 1851 if test -s conftest.err; then 1852 grep -v '^ *+' conftest.err >conftest.er1 1853 cat conftest.er1 >&5 1854 mv -f conftest.er1 conftest.err 1855 fi 1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1857 test $ac_status = 0; } > conftest.i && { 1858 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1859 test ! -s conftest.err 1860 }; then : 1861 ac_retval=0 1862else 1863 $as_echo "$as_me: failed program was:" >&5 1864sed 's/^/| /' conftest.$ac_ext >&5 1865 1866 ac_retval=1 1867fi 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 as_fn_set_status $ac_retval 1870 1871} # ac_fn_cxx_try_cpp 1872 1873# ac_fn_cxx_try_link LINENO 1874# ------------------------- 1875# Try to link conftest.$ac_ext, and return whether this succeeded. 1876ac_fn_cxx_try_link () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 rm -f conftest.$ac_objext conftest$ac_exeext 1880 if { { ac_try="$ac_link" 1881case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884esac 1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886$as_echo "$ac_try_echo"; } >&5 1887 (eval "$ac_link") 2>conftest.err 1888 ac_status=$? 1889 if test -s conftest.err; then 1890 grep -v '^ *+' conftest.err >conftest.er1 1891 cat conftest.er1 >&5 1892 mv -f conftest.er1 conftest.err 1893 fi 1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } && { 1896 test -z "$ac_cxx_werror_flag" || 1897 test ! -s conftest.err 1898 } && test -s conftest$ac_exeext && { 1899 test "$cross_compiling" = yes || 1900 test -x conftest$ac_exeext 1901 }; then : 1902 ac_retval=0 1903else 1904 $as_echo "$as_me: failed program was:" >&5 1905sed 's/^/| /' conftest.$ac_ext >&5 1906 1907 ac_retval=1 1908fi 1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1911 # interfere with the next link command; also delete a directory that is 1912 # left behind by Apple's compiler. We do this before executing the actions. 1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 as_fn_set_status $ac_retval 1916 1917} # ac_fn_cxx_try_link 1918 1919# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1920# -------------------------------------------- 1921# Tries to find the compile-time value of EXPR in a program that includes 1922# INCLUDES, setting VAR accordingly. Returns whether the value could be 1923# computed 1924ac_fn_c_compute_int () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 if test "$cross_compiling" = yes; then 1928 # Depending upon the size, compute the lo and hi bounds. 1929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1930/* end confdefs.h. */ 1931$4 1932int 1933main () 1934{ 1935static int test_array [1 - 2 * !(($2) >= 0)]; 1936test_array [0] = 0; 1937return test_array [0]; 1938 1939 ; 1940 return 0; 1941} 1942_ACEOF 1943if ac_fn_c_try_compile "$LINENO"; then : 1944 ac_lo=0 ac_mid=0 1945 while :; do 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947/* end confdefs.h. */ 1948$4 1949int 1950main () 1951{ 1952static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1953test_array [0] = 0; 1954return test_array [0]; 1955 1956 ; 1957 return 0; 1958} 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO"; then : 1961 ac_hi=$ac_mid; break 1962else 1963 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1964 if test $ac_lo -le $ac_mid; then 1965 ac_lo= ac_hi= 1966 break 1967 fi 1968 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1969fi 1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1971 done 1972else 1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1974/* end confdefs.h. */ 1975$4 1976int 1977main () 1978{ 1979static int test_array [1 - 2 * !(($2) < 0)]; 1980test_array [0] = 0; 1981return test_array [0]; 1982 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 ac_hi=-1 ac_mid=-1 1989 while :; do 1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991/* end confdefs.h. */ 1992$4 1993int 1994main () 1995{ 1996static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1997test_array [0] = 0; 1998return test_array [0]; 1999 2000 ; 2001 return 0; 2002} 2003_ACEOF 2004if ac_fn_c_try_compile "$LINENO"; then : 2005 ac_lo=$ac_mid; break 2006else 2007 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2008 if test $ac_mid -le $ac_hi; then 2009 ac_lo= ac_hi= 2010 break 2011 fi 2012 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2013fi 2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2015 done 2016else 2017 ac_lo= ac_hi= 2018fi 2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2020fi 2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2022# Binary search between lo and hi bounds. 2023while test "x$ac_lo" != "x$ac_hi"; do 2024 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027$4 2028int 2029main () 2030{ 2031static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2032test_array [0] = 0; 2033return test_array [0]; 2034 2035 ; 2036 return 0; 2037} 2038_ACEOF 2039if ac_fn_c_try_compile "$LINENO"; then : 2040 ac_hi=$ac_mid 2041else 2042 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2043fi 2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2045done 2046case $ac_lo in #(( 2047?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2048'') ac_retval=1 ;; 2049esac 2050 else 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$4 2054static long int longval () { return $2; } 2055static unsigned long int ulongval () { return $2; } 2056#include <stdio.h> 2057#include <stdlib.h> 2058int 2059main () 2060{ 2061 2062 FILE *f = fopen ("conftest.val", "w"); 2063 if (! f) 2064 return 1; 2065 if (($2) < 0) 2066 { 2067 long int i = longval (); 2068 if (i != ($2)) 2069 return 1; 2070 fprintf (f, "%ld", i); 2071 } 2072 else 2073 { 2074 unsigned long int i = ulongval (); 2075 if (i != ($2)) 2076 return 1; 2077 fprintf (f, "%lu", i); 2078 } 2079 /* Do not output a trailing newline, as this causes \r\n confusion 2080 on some platforms. */ 2081 return ferror (f) || fclose (f) != 0; 2082 2083 ; 2084 return 0; 2085} 2086_ACEOF 2087if ac_fn_c_try_run "$LINENO"; then : 2088 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2089else 2090 ac_retval=1 2091fi 2092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2093 conftest.$ac_objext conftest.beam conftest.$ac_ext 2094rm -f conftest.val 2095 2096 fi 2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2098 as_fn_set_status $ac_retval 2099 2100} # ac_fn_c_compute_int 2101cat >config.log <<_ACEOF 2102This file contains any messages produced by compilers while 2103running configure, to aid debugging if configure makes a mistake. 2104 2105It was created by phsa HSAIL runtime library $as_me 1.0, which was 2106generated by GNU Autoconf 2.69. Invocation command line was 2107 2108 $ $0 $@ 2109 2110_ACEOF 2111exec 5>>config.log 2112{ 2113cat <<_ASUNAME 2114## --------- ## 2115## Platform. ## 2116## --------- ## 2117 2118hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2119uname -m = `(uname -m) 2>/dev/null || echo unknown` 2120uname -r = `(uname -r) 2>/dev/null || echo unknown` 2121uname -s = `(uname -s) 2>/dev/null || echo unknown` 2122uname -v = `(uname -v) 2>/dev/null || echo unknown` 2123 2124/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2125/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2126 2127/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2128/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2129/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2130/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2131/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2132/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2133/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2134 2135_ASUNAME 2136 2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138for as_dir in $PATH 2139do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 $as_echo "PATH: $as_dir" 2143 done 2144IFS=$as_save_IFS 2145 2146} >&5 2147 2148cat >&5 <<_ACEOF 2149 2150 2151## ----------- ## 2152## Core tests. ## 2153## ----------- ## 2154 2155_ACEOF 2156 2157 2158# Keep a trace of the command line. 2159# Strip out --no-create and --no-recursion so they do not pile up. 2160# Strip out --silent because we don't want to record it for future runs. 2161# Also quote any args containing shell meta-characters. 2162# Make two passes to allow for proper duplicate-argument suppression. 2163ac_configure_args= 2164ac_configure_args0= 2165ac_configure_args1= 2166ac_must_keep_next=false 2167for ac_pass in 1 2 2168do 2169 for ac_arg 2170 do 2171 case $ac_arg in 2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2174 | -silent | --silent | --silen | --sile | --sil) 2175 continue ;; 2176 *\'*) 2177 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2178 esac 2179 case $ac_pass in 2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2181 2) 2182 as_fn_append ac_configure_args1 " '$ac_arg'" 2183 if test $ac_must_keep_next = true; then 2184 ac_must_keep_next=false # Got value, back to normal. 2185 else 2186 case $ac_arg in 2187 *=* | --config-cache | -C | -disable-* | --disable-* \ 2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2190 | -with-* | --with-* | -without-* | --without-* | --x) 2191 case "$ac_configure_args0 " in 2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2193 esac 2194 ;; 2195 -* ) ac_must_keep_next=true ;; 2196 esac 2197 fi 2198 as_fn_append ac_configure_args " '$ac_arg'" 2199 ;; 2200 esac 2201 done 2202done 2203{ ac_configure_args0=; unset ac_configure_args0;} 2204{ ac_configure_args1=; unset ac_configure_args1;} 2205 2206# When interrupted or exit'd, cleanup temporary files, and complete 2207# config.log. We remove comments because anyway the quotes in there 2208# would cause problems or look ugly. 2209# WARNING: Use '\'' to represent an apostrophe within the trap. 2210# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2211trap 'exit_status=$? 2212 # Save into config.log some information that might help in debugging. 2213 { 2214 echo 2215 2216 $as_echo "## ---------------- ## 2217## Cache variables. ## 2218## ---------------- ##" 2219 echo 2220 # The following way of writing the cache mishandles newlines in values, 2221( 2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2223 eval ac_val=\$$ac_var 2224 case $ac_val in #( 2225 *${as_nl}*) 2226 case $ac_var in #( 2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2228$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2229 esac 2230 case $ac_var in #( 2231 _ | IFS | as_nl) ;; #( 2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2233 *) { eval $ac_var=; unset $ac_var;} ;; 2234 esac ;; 2235 esac 2236 done 2237 (set) 2>&1 | 2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2239 *${as_nl}ac_space=\ *) 2240 sed -n \ 2241 "s/'\''/'\''\\\\'\'''\''/g; 2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2243 ;; #( 2244 *) 2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2246 ;; 2247 esac | 2248 sort 2249) 2250 echo 2251 2252 $as_echo "## ----------------- ## 2253## Output variables. ## 2254## ----------------- ##" 2255 echo 2256 for ac_var in $ac_subst_vars 2257 do 2258 eval ac_val=\$$ac_var 2259 case $ac_val in 2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2261 esac 2262 $as_echo "$ac_var='\''$ac_val'\''" 2263 done | sort 2264 echo 2265 2266 if test -n "$ac_subst_files"; then 2267 $as_echo "## ------------------- ## 2268## File substitutions. ## 2269## ------------------- ##" 2270 echo 2271 for ac_var in $ac_subst_files 2272 do 2273 eval ac_val=\$$ac_var 2274 case $ac_val in 2275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2276 esac 2277 $as_echo "$ac_var='\''$ac_val'\''" 2278 done | sort 2279 echo 2280 fi 2281 2282 if test -s confdefs.h; then 2283 $as_echo "## ----------- ## 2284## confdefs.h. ## 2285## ----------- ##" 2286 echo 2287 cat confdefs.h 2288 echo 2289 fi 2290 test "$ac_signal" != 0 && 2291 $as_echo "$as_me: caught signal $ac_signal" 2292 $as_echo "$as_me: exit $exit_status" 2293 } >&5 2294 rm -f core *.core core.conftest.* && 2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2296 exit $exit_status 2297' 0 2298for ac_signal in 1 2 13 15; do 2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2300done 2301ac_signal=0 2302 2303# confdefs.h avoids OS command line length limits that DEFS can exceed. 2304rm -f -r conftest* confdefs.h 2305 2306$as_echo "/* confdefs.h */" > confdefs.h 2307 2308# Predefined preprocessor variables. 2309 2310cat >>confdefs.h <<_ACEOF 2311#define PACKAGE_NAME "$PACKAGE_NAME" 2312_ACEOF 2313 2314cat >>confdefs.h <<_ACEOF 2315#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2316_ACEOF 2317 2318cat >>confdefs.h <<_ACEOF 2319#define PACKAGE_VERSION "$PACKAGE_VERSION" 2320_ACEOF 2321 2322cat >>confdefs.h <<_ACEOF 2323#define PACKAGE_STRING "$PACKAGE_STRING" 2324_ACEOF 2325 2326cat >>confdefs.h <<_ACEOF 2327#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2328_ACEOF 2329 2330cat >>confdefs.h <<_ACEOF 2331#define PACKAGE_URL "$PACKAGE_URL" 2332_ACEOF 2333 2334 2335# Let the site file select an alternate cache file if it wants to. 2336# Prefer an explicitly selected file to automatically selected ones. 2337ac_site_file1=NONE 2338ac_site_file2=NONE 2339if test -n "$CONFIG_SITE"; then 2340 # We do not want a PATH search for config.site. 2341 case $CONFIG_SITE in #(( 2342 -*) ac_site_file1=./$CONFIG_SITE;; 2343 */*) ac_site_file1=$CONFIG_SITE;; 2344 *) ac_site_file1=./$CONFIG_SITE;; 2345 esac 2346elif test "x$prefix" != xNONE; then 2347 ac_site_file1=$prefix/share/config.site 2348 ac_site_file2=$prefix/etc/config.site 2349else 2350 ac_site_file1=$ac_default_prefix/share/config.site 2351 ac_site_file2=$ac_default_prefix/etc/config.site 2352fi 2353for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2354do 2355 test "x$ac_site_file" = xNONE && continue 2356 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2358$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2359 sed 's/^/| /' "$ac_site_file" >&5 2360 . "$ac_site_file" \ 2361 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2363as_fn_error $? "failed to load site script $ac_site_file 2364See \`config.log' for more details" "$LINENO" 5; } 2365 fi 2366done 2367 2368if test -r "$cache_file"; then 2369 # Some versions of bash will fail to source /dev/null (special files 2370 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2371 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2373$as_echo "$as_me: loading cache $cache_file" >&6;} 2374 case $cache_file in 2375 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2376 *) . "./$cache_file";; 2377 esac 2378 fi 2379else 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2381$as_echo "$as_me: creating cache $cache_file" >&6;} 2382 >$cache_file 2383fi 2384 2385# Check that the precious variables saved in the cache have kept the same 2386# value. 2387ac_cache_corrupted=false 2388for ac_var in $ac_precious_vars; do 2389 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2390 eval ac_new_set=\$ac_env_${ac_var}_set 2391 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2392 eval ac_new_val=\$ac_env_${ac_var}_value 2393 case $ac_old_set,$ac_new_set in 2394 set,) 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2396$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2397 ac_cache_corrupted=: ;; 2398 ,set) 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2400$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2401 ac_cache_corrupted=: ;; 2402 ,);; 2403 *) 2404 if test "x$ac_old_val" != "x$ac_new_val"; then 2405 # differences in whitespace do not lead to failure. 2406 ac_old_val_w=`echo x $ac_old_val` 2407 ac_new_val_w=`echo x $ac_new_val` 2408 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2410$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2411 ac_cache_corrupted=: 2412 else 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2414$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2415 eval $ac_var=\$ac_old_val 2416 fi 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2418$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2420$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2421 fi;; 2422 esac 2423 # Pass precious variables to config.status. 2424 if test "$ac_new_set" = set; then 2425 case $ac_new_val in 2426 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2427 *) ac_arg=$ac_var=$ac_new_val ;; 2428 esac 2429 case " $ac_configure_args " in 2430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2431 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2432 esac 2433 fi 2434done 2435if $ac_cache_corrupted; then 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2439$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2440 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2441fi 2442## -------------------- ## 2443## Main body of script. ## 2444## -------------------- ## 2445 2446ac_ext=c 2447ac_cpp='$CPP $CPPFLAGS' 2448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2450ac_compiler_gnu=$ac_cv_c_compiler_gnu 2451 2452 2453 2454 2455 2456 2457# Needed to define ${target}. Needs to be very early to avoid annoying 2458# warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM 2459ac_aux_dir= 2460for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2461 if test -f "$ac_dir/install-sh"; then 2462 ac_aux_dir=$ac_dir 2463 ac_install_sh="$ac_aux_dir/install-sh -c" 2464 break 2465 elif test -f "$ac_dir/install.sh"; then 2466 ac_aux_dir=$ac_dir 2467 ac_install_sh="$ac_aux_dir/install.sh -c" 2468 break 2469 elif test -f "$ac_dir/shtool"; then 2470 ac_aux_dir=$ac_dir 2471 ac_install_sh="$ac_aux_dir/shtool install -c" 2472 break 2473 fi 2474done 2475if test -z "$ac_aux_dir"; then 2476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2477fi 2478 2479# These three variables are undocumented and unsupported, 2480# and are intended to be withdrawn in a future Autoconf release. 2481# They can cause serious problems if a builder's source tree is in a directory 2482# whose full name contains unusual characters. 2483ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2484ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2485ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2486 2487 2488# Make sure we can run config.sub. 2489$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2490 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2491 2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2493$as_echo_n "checking build system type... " >&6; } 2494if ${ac_cv_build+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496else 2497 ac_build_alias=$build_alias 2498test "x$ac_build_alias" = x && 2499 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2500test "x$ac_build_alias" = x && 2501 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2502ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2504 2505fi 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2507$as_echo "$ac_cv_build" >&6; } 2508case $ac_cv_build in 2509*-*-*) ;; 2510*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2511esac 2512build=$ac_cv_build 2513ac_save_IFS=$IFS; IFS='-' 2514set x $ac_cv_build 2515shift 2516build_cpu=$1 2517build_vendor=$2 2518shift; shift 2519# Remember, the first character of IFS is used to create $*, 2520# except with old shells: 2521build_os=$* 2522IFS=$ac_save_IFS 2523case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2524 2525 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2527$as_echo_n "checking host system type... " >&6; } 2528if ${ac_cv_host+:} false; then : 2529 $as_echo_n "(cached) " >&6 2530else 2531 if test "x$host_alias" = x; then 2532 ac_cv_host=$ac_cv_build 2533else 2534 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2536fi 2537 2538fi 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2540$as_echo "$ac_cv_host" >&6; } 2541case $ac_cv_host in 2542*-*-*) ;; 2543*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2544esac 2545host=$ac_cv_host 2546ac_save_IFS=$IFS; IFS='-' 2547set x $ac_cv_host 2548shift 2549host_cpu=$1 2550host_vendor=$2 2551shift; shift 2552# Remember, the first character of IFS is used to create $*, 2553# except with old shells: 2554host_os=$* 2555IFS=$ac_save_IFS 2556case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2557 2558 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2560$as_echo_n "checking target system type... " >&6; } 2561if ${ac_cv_target+:} false; then : 2562 $as_echo_n "(cached) " >&6 2563else 2564 if test "x$target_alias" = x; then 2565 ac_cv_target=$ac_cv_host 2566else 2567 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2569fi 2570 2571fi 2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2573$as_echo "$ac_cv_target" >&6; } 2574case $ac_cv_target in 2575*-*-*) ;; 2576*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2577esac 2578target=$ac_cv_target 2579ac_save_IFS=$IFS; IFS='-' 2580set x $ac_cv_target 2581shift 2582target_cpu=$1 2583target_vendor=$2 2584shift; shift 2585# Remember, the first character of IFS is used to create $*, 2586# except with old shells: 2587target_os=$* 2588IFS=$ac_save_IFS 2589case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2590 2591 2592# The aliases save the names the user supplied, while $host etc. 2593# will get canonicalized. 2594test -n "$target_alias" && 2595 test "$program_prefix$program_suffix$program_transform_name" = \ 2596 NONENONEs,x,x, && 2597 program_prefix=${target_alias}- 2598 2599target_alias=${target_alias-$host_alias} 2600 2601am__api_version='1.15' 2602 2603# Find a good install program. We prefer a C program (faster), 2604# so one script is as good as another. But avoid the broken or 2605# incompatible versions: 2606# SysV /etc/install, /usr/sbin/install 2607# SunOS /usr/etc/install 2608# IRIX /sbin/install 2609# AIX /bin/install 2610# AmigaOS /C/install, which installs bootblocks on floppy discs 2611# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2612# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2613# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2614# OS/2's system install, which has a completely different semantic 2615# ./install, which can be erroneously created by make from ./install.sh. 2616# Reject install programs that cannot install multiple files. 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2618$as_echo_n "checking for a BSD-compatible install... " >&6; } 2619if test -z "$INSTALL"; then 2620if ${ac_cv_path_install+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 # Account for people who put trailing slashes in PATH elements. 2629case $as_dir/ in #(( 2630 ./ | .// | /[cC]/* | \ 2631 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2632 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2633 /usr/ucb/* ) ;; 2634 *) 2635 # OSF1 and SCO ODT 3.0 have their own names for install. 2636 # Don't use installbsd from OSF since it installs stuff as root 2637 # by default. 2638 for ac_prog in ginstall scoinst install; do 2639 for ac_exec_ext in '' $ac_executable_extensions; do 2640 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2641 if test $ac_prog = install && 2642 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2643 # AIX install. It has an incompatible calling convention. 2644 : 2645 elif test $ac_prog = install && 2646 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2647 # program-specific install script used by HP pwplus--don't use. 2648 : 2649 else 2650 rm -rf conftest.one conftest.two conftest.dir 2651 echo one > conftest.one 2652 echo two > conftest.two 2653 mkdir conftest.dir 2654 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2655 test -s conftest.one && test -s conftest.two && 2656 test -s conftest.dir/conftest.one && 2657 test -s conftest.dir/conftest.two 2658 then 2659 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2660 break 3 2661 fi 2662 fi 2663 fi 2664 done 2665 done 2666 ;; 2667esac 2668 2669 done 2670IFS=$as_save_IFS 2671 2672rm -rf conftest.one conftest.two conftest.dir 2673 2674fi 2675 if test "${ac_cv_path_install+set}" = set; then 2676 INSTALL=$ac_cv_path_install 2677 else 2678 # As a last resort, use the slow shell script. Don't cache a 2679 # value for INSTALL within a source directory, because that will 2680 # break other packages using the cache if that directory is 2681 # removed, or if the value is a relative name. 2682 INSTALL=$ac_install_sh 2683 fi 2684fi 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2686$as_echo "$INSTALL" >&6; } 2687 2688# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2689# It thinks the first close brace ends the variable substitution. 2690test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2691 2692test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2693 2694test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2695 2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2697$as_echo_n "checking whether build environment is sane... " >&6; } 2698# Reject unsafe characters in $srcdir or the absolute working directory 2699# name. Accept space and tab only in the latter. 2700am_lf=' 2701' 2702case `pwd` in 2703 *[\\\"\#\$\&\'\`$am_lf]*) 2704 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2705esac 2706case $srcdir in 2707 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2708 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2709esac 2710 2711# Do 'set' in a subshell so we don't clobber the current shell's 2712# arguments. Must try -L first in case configure is actually a 2713# symlink; some systems play weird games with the mod time of symlinks 2714# (eg FreeBSD returns the mod time of the symlink's containing 2715# directory). 2716if ( 2717 am_has_slept=no 2718 for am_try in 1 2; do 2719 echo "timestamp, slept: $am_has_slept" > conftest.file 2720 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2721 if test "$*" = "X"; then 2722 # -L didn't work. 2723 set X `ls -t "$srcdir/configure" conftest.file` 2724 fi 2725 if test "$*" != "X $srcdir/configure conftest.file" \ 2726 && test "$*" != "X conftest.file $srcdir/configure"; then 2727 2728 # If neither matched, then we have a broken ls. This can happen 2729 # if, for instance, CONFIG_SHELL is bash and it inherits a 2730 # broken ls alias from the environment. This has actually 2731 # happened. Such a system could not be considered "sane". 2732 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2733 alias in your environment" "$LINENO" 5 2734 fi 2735 if test "$2" = conftest.file || test $am_try -eq 2; then 2736 break 2737 fi 2738 # Just in case. 2739 sleep 1 2740 am_has_slept=yes 2741 done 2742 test "$2" = conftest.file 2743 ) 2744then 2745 # Ok. 2746 : 2747else 2748 as_fn_error $? "newly created file is older than distributed files! 2749Check your system clock" "$LINENO" 5 2750fi 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2752$as_echo "yes" >&6; } 2753# If we didn't sleep, we still need to ensure time stamps of config.status and 2754# generated files are strictly newer. 2755am_sleep_pid= 2756if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2757 ( sleep 1 ) & 2758 am_sleep_pid=$! 2759fi 2760 2761rm -f conftest.file 2762 2763test "$program_prefix" != NONE && 2764 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2765# Use a double $ so make ignores it. 2766test "$program_suffix" != NONE && 2767 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2768# Double any \ or $. 2769# By default was `s,x,x', remove it if useless. 2770ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2771program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2772 2773# Expand $ac_aux_dir to an absolute path. 2774am_aux_dir=`cd "$ac_aux_dir" && pwd` 2775 2776if test x"${MISSING+set}" != xset; then 2777 case $am_aux_dir in 2778 *\ * | *\ *) 2779 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2780 *) 2781 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2782 esac 2783fi 2784# Use eval to expand $SHELL 2785if eval "$MISSING --is-lightweight"; then 2786 am_missing_run="$MISSING " 2787else 2788 am_missing_run= 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2790$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2791fi 2792 2793if test x"${install_sh+set}" != xset; then 2794 case $am_aux_dir in 2795 *\ * | *\ *) 2796 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2797 *) 2798 install_sh="\${SHELL} $am_aux_dir/install-sh" 2799 esac 2800fi 2801 2802# Installed binaries are usually stripped using 'strip' when the user 2803# run "make install-strip". However 'strip' might not be the right 2804# tool to use in cross-compilation environments, therefore Automake 2805# will honor the 'STRIP' environment variable to overrule this program. 2806if test "$cross_compiling" != no; then 2807 if test -n "$ac_tool_prefix"; then 2808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2809set dummy ${ac_tool_prefix}strip; ac_word=$2 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2811$as_echo_n "checking for $ac_word... " >&6; } 2812if ${ac_cv_prog_STRIP+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 if test -n "$STRIP"; then 2816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2817else 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 test -z "$as_dir" && as_dir=. 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2825 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2827 break 2 2828 fi 2829done 2830 done 2831IFS=$as_save_IFS 2832 2833fi 2834fi 2835STRIP=$ac_cv_prog_STRIP 2836if test -n "$STRIP"; then 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2838$as_echo "$STRIP" >&6; } 2839else 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2841$as_echo "no" >&6; } 2842fi 2843 2844 2845fi 2846if test -z "$ac_cv_prog_STRIP"; then 2847 ac_ct_STRIP=$STRIP 2848 # Extract the first word of "strip", so it can be a program name with args. 2849set dummy strip; ac_word=$2 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2851$as_echo_n "checking for $ac_word... " >&6; } 2852if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2853 $as_echo_n "(cached) " >&6 2854else 2855 if test -n "$ac_ct_STRIP"; then 2856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2857else 2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859for as_dir in $PATH 2860do 2861 IFS=$as_save_IFS 2862 test -z "$as_dir" && as_dir=. 2863 for ac_exec_ext in '' $ac_executable_extensions; do 2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2865 ac_cv_prog_ac_ct_STRIP="strip" 2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2867 break 2 2868 fi 2869done 2870 done 2871IFS=$as_save_IFS 2872 2873fi 2874fi 2875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2876if test -n "$ac_ct_STRIP"; then 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2878$as_echo "$ac_ct_STRIP" >&6; } 2879else 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2881$as_echo "no" >&6; } 2882fi 2883 2884 if test "x$ac_ct_STRIP" = x; then 2885 STRIP=":" 2886 else 2887 case $cross_compiling:$ac_tool_warned in 2888yes:) 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2891ac_tool_warned=yes ;; 2892esac 2893 STRIP=$ac_ct_STRIP 2894 fi 2895else 2896 STRIP="$ac_cv_prog_STRIP" 2897fi 2898 2899fi 2900INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2901 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2903$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2904if test -z "$MKDIR_P"; then 2905 if ${ac_cv_path_mkdir+:} false; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_prog in mkdir gmkdir; do 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2916 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2917 'mkdir (GNU coreutils) '* | \ 2918 'mkdir (coreutils) '* | \ 2919 'mkdir (fileutils) '4.1*) 2920 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2921 break 3;; 2922 esac 2923 done 2924 done 2925 done 2926IFS=$as_save_IFS 2927 2928fi 2929 2930 test -d ./--version && rmdir ./--version 2931 if test "${ac_cv_path_mkdir+set}" = set; then 2932 MKDIR_P="$ac_cv_path_mkdir -p" 2933 else 2934 # As a last resort, use the slow shell script. Don't cache a 2935 # value for MKDIR_P within a source directory, because that will 2936 # break other packages using the cache if that directory is 2937 # removed, or if the value is a relative name. 2938 MKDIR_P="$ac_install_sh -d" 2939 fi 2940fi 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2942$as_echo "$MKDIR_P" >&6; } 2943 2944for ac_prog in gawk mawk nawk awk 2945do 2946 # Extract the first word of "$ac_prog", so it can be a program name with args. 2947set dummy $ac_prog; ac_word=$2 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2949$as_echo_n "checking for $ac_word... " >&6; } 2950if ${ac_cv_prog_AWK+:} false; then : 2951 $as_echo_n "(cached) " >&6 2952else 2953 if test -n "$AWK"; then 2954 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 test -z "$as_dir" && as_dir=. 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2963 ac_cv_prog_AWK="$ac_prog" 2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2965 break 2 2966 fi 2967done 2968 done 2969IFS=$as_save_IFS 2970 2971fi 2972fi 2973AWK=$ac_cv_prog_AWK 2974if test -n "$AWK"; then 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2976$as_echo "$AWK" >&6; } 2977else 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2979$as_echo "no" >&6; } 2980fi 2981 2982 2983 test -n "$AWK" && break 2984done 2985 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2987$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2988set x ${MAKE-make} 2989ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2990if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2991 $as_echo_n "(cached) " >&6 2992else 2993 cat >conftest.make <<\_ACEOF 2994SHELL = /bin/sh 2995all: 2996 @echo '@@@%%%=$(MAKE)=@@@%%%' 2997_ACEOF 2998# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2999case `${MAKE-make} -f conftest.make 2>/dev/null` in 3000 *@@@%%%=?*=@@@%%%*) 3001 eval ac_cv_prog_make_${ac_make}_set=yes;; 3002 *) 3003 eval ac_cv_prog_make_${ac_make}_set=no;; 3004esac 3005rm -f conftest.make 3006fi 3007if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3009$as_echo "yes" >&6; } 3010 SET_MAKE= 3011else 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013$as_echo "no" >&6; } 3014 SET_MAKE="MAKE=${MAKE-make}" 3015fi 3016 3017rm -rf .tst 2>/dev/null 3018mkdir .tst 2>/dev/null 3019if test -d .tst; then 3020 am__leading_dot=. 3021else 3022 am__leading_dot=_ 3023fi 3024rmdir .tst 2>/dev/null 3025 3026# Check whether --enable-silent-rules was given. 3027if test "${enable_silent_rules+set}" = set; then : 3028 enableval=$enable_silent_rules; 3029fi 3030 3031case $enable_silent_rules in # ((( 3032 yes) AM_DEFAULT_VERBOSITY=0;; 3033 no) AM_DEFAULT_VERBOSITY=1;; 3034 *) AM_DEFAULT_VERBOSITY=1;; 3035esac 3036am_make=${MAKE-make} 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3038$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3039if ${am_cv_make_support_nested_variables+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 if $as_echo 'TRUE=$(BAR$(V)) 3043BAR0=false 3044BAR1=true 3045V=1 3046am__doit: 3047 @$(TRUE) 3048.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3049 am_cv_make_support_nested_variables=yes 3050else 3051 am_cv_make_support_nested_variables=no 3052fi 3053fi 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3055$as_echo "$am_cv_make_support_nested_variables" >&6; } 3056if test $am_cv_make_support_nested_variables = yes; then 3057 AM_V='$(V)' 3058 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3059else 3060 AM_V=$AM_DEFAULT_VERBOSITY 3061 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3062fi 3063AM_BACKSLASH='\' 3064 3065if test "`cd $srcdir && pwd`" != "`pwd`"; then 3066 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3067 # is not polluted with repeated "-I." 3068 am__isrc=' -I$(srcdir)' 3069 # test to see if srcdir already configured 3070 if test -f $srcdir/config.status; then 3071 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3072 fi 3073fi 3074 3075# test whether we have cygpath 3076if test -z "$CYGPATH_W"; then 3077 if (cygpath --version) >/dev/null 2>/dev/null; then 3078 CYGPATH_W='cygpath -w' 3079 else 3080 CYGPATH_W=echo 3081 fi 3082fi 3083 3084 3085# Define the identity of the package. 3086 PACKAGE='phsa-hsail-runtime-library' 3087 VERSION='1.0' 3088 3089 3090cat >>confdefs.h <<_ACEOF 3091#define PACKAGE "$PACKAGE" 3092_ACEOF 3093 3094 3095cat >>confdefs.h <<_ACEOF 3096#define VERSION "$VERSION" 3097_ACEOF 3098 3099# Some tools Automake needs. 3100 3101ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3102 3103 3104AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3105 3106 3107AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3108 3109 3110AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3111 3112 3113MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3114 3115# For better backward compatibility. To be removed once Automake 1.9.x 3116# dies out for good. For more background, see: 3117# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3118# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3119mkdir_p='$(MKDIR_P)' 3120 3121# We need awk for the "check" target (and possibly the TAP driver). The 3122# system "awk" is bad on some platforms. 3123# Always define AMTAR for backward compatibility. Yes, it's still used 3124# in the wild :-( We should find a proper way to deprecate it ... 3125AMTAR='$${TAR-tar}' 3126 3127 3128# We'll loop over all known methods to create a tar archive until one works. 3129_am_tools='gnutar pax cpio none' 3130 3131am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3132 3133 3134 3135 3136 3137 3138# POSIX will say in a future version that running "rm -f" with no argument 3139# is OK; and we want to be able to make that assumption in our Makefile 3140# recipes. So use an aggressive probe to check that the usage we want is 3141# actually supported "in the wild" to an acceptable degree. 3142# See automake bug#10828. 3143# To make any issue more visible, cause the running configure to be aborted 3144# by default if the 'rm' program in use doesn't match our expectations; the 3145# user can still override this though. 3146if rm -f && rm -fr && rm -rf; then : OK; else 3147 cat >&2 <<'END' 3148Oops! 3149 3150Your 'rm' program seems unable to run without file operands specified 3151on the command line, even when the '-f' option is present. This is contrary 3152to the behaviour of most rm programs out there, and not conforming with 3153the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3154 3155Please tell bug-automake@gnu.org about your system, including the value 3156of your $PATH and any error possibly output before this message. This 3157can help us improve future automake versions. 3158 3159END 3160 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3161 echo 'Configuration will proceed anyway, since you have set the' >&2 3162 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3163 echo >&2 3164 else 3165 cat >&2 <<'END' 3166Aborting the configuration process, to ensure you take notice of the issue. 3167 3168You can download and install GNU coreutils to get an 'rm' implementation 3169that behaves properly: <http://www.gnu.org/software/coreutils/>. 3170 3171If you want to complete the configuration process using your problematic 3172'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3173to "yes", and re-run configure. 3174 3175END 3176 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3177 fi 3178fi 3179 3180 3181 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3183$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3184 # Check whether --enable-maintainer-mode was given. 3185if test "${enable_maintainer_mode+set}" = set; then : 3186 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3187else 3188 USE_MAINTAINER_MODE=no 3189fi 3190 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3192$as_echo "$USE_MAINTAINER_MODE" >&6; } 3193 if test $USE_MAINTAINER_MODE = yes; then 3194 MAINTAINER_MODE_TRUE= 3195 MAINTAINER_MODE_FALSE='#' 3196else 3197 MAINTAINER_MODE_TRUE='#' 3198 MAINTAINER_MODE_FALSE= 3199fi 3200 3201 MAINT=$MAINTAINER_MODE_TRUE 3202 3203 3204 3205ac_ext=c 3206ac_cpp='$CPP $CPPFLAGS' 3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3209ac_compiler_gnu=$ac_cv_c_compiler_gnu 3210if test -n "$ac_tool_prefix"; then 3211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3212set dummy ${ac_tool_prefix}gcc; ac_word=$2 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3214$as_echo_n "checking for $ac_word... " >&6; } 3215if ${ac_cv_prog_CC+:} false; then : 3216 $as_echo_n "(cached) " >&6 3217else 3218 if test -n "$CC"; then 3219 ac_cv_prog_CC="$CC" # Let the user override the test. 3220else 3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3222for as_dir in $PATH 3223do 3224 IFS=$as_save_IFS 3225 test -z "$as_dir" && as_dir=. 3226 for ac_exec_ext in '' $ac_executable_extensions; do 3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3228 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3230 break 2 3231 fi 3232done 3233 done 3234IFS=$as_save_IFS 3235 3236fi 3237fi 3238CC=$ac_cv_prog_CC 3239if test -n "$CC"; then 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3241$as_echo "$CC" >&6; } 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244$as_echo "no" >&6; } 3245fi 3246 3247 3248fi 3249if test -z "$ac_cv_prog_CC"; then 3250 ac_ct_CC=$CC 3251 # Extract the first word of "gcc", so it can be a program name with args. 3252set dummy gcc; 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 ${ac_cv_prog_ac_ct_CC+:} false; then : 3256 $as_echo_n "(cached) " >&6 3257else 3258 if test -n "$ac_ct_CC"; then 3259 ac_cv_prog_ac_ct_CC="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3268 ac_cv_prog_ac_ct_CC="gcc" 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 3278ac_ct_CC=$ac_cv_prog_ac_ct_CC 3279if test -n "$ac_ct_CC"; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3281$as_echo "$ac_ct_CC" >&6; } 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285fi 3286 3287 if test "x$ac_ct_CC" = x; then 3288 CC="" 3289 else 3290 case $cross_compiling:$ac_tool_warned in 3291yes:) 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3294ac_tool_warned=yes ;; 3295esac 3296 CC=$ac_ct_CC 3297 fi 3298else 3299 CC="$ac_cv_prog_CC" 3300fi 3301 3302if test -z "$CC"; then 3303 if test -n "$ac_tool_prefix"; then 3304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3305set dummy ${ac_tool_prefix}cc; ac_word=$2 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3307$as_echo_n "checking for $ac_word... " >&6; } 3308if ${ac_cv_prog_CC+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 if test -n "$CC"; then 3312 ac_cv_prog_CC="$CC" # Let the user override the test. 3313else 3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH 3316do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3321 ac_cv_prog_CC="${ac_tool_prefix}cc" 3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3323 break 2 3324 fi 3325done 3326 done 3327IFS=$as_save_IFS 3328 3329fi 3330fi 3331CC=$ac_cv_prog_CC 3332if test -n "$CC"; then 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3334$as_echo "$CC" >&6; } 3335else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337$as_echo "no" >&6; } 3338fi 3339 3340 3341 fi 3342fi 3343if test -z "$CC"; then 3344 # Extract the first word of "cc", so it can be a program name with args. 3345set dummy cc; ac_word=$2 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3347$as_echo_n "checking for $ac_word... " >&6; } 3348if ${ac_cv_prog_CC+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 if test -n "$CC"; then 3352 ac_cv_prog_CC="$CC" # Let the user override the test. 3353else 3354 ac_prog_rejected=no 3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3356for as_dir in $PATH 3357do 3358 IFS=$as_save_IFS 3359 test -z "$as_dir" && as_dir=. 3360 for ac_exec_ext in '' $ac_executable_extensions; do 3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3363 ac_prog_rejected=yes 3364 continue 3365 fi 3366 ac_cv_prog_CC="cc" 3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3368 break 2 3369 fi 3370done 3371 done 3372IFS=$as_save_IFS 3373 3374if test $ac_prog_rejected = yes; then 3375 # We found a bogon in the path, so make sure we never use it. 3376 set dummy $ac_cv_prog_CC 3377 shift 3378 if test $# != 0; then 3379 # We chose a different compiler from the bogus one. 3380 # However, it has the same basename, so the bogon will be chosen 3381 # first if we set CC to just the basename; use the full file name. 3382 shift 3383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3384 fi 3385fi 3386fi 3387fi 3388CC=$ac_cv_prog_CC 3389if test -n "$CC"; then 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3391$as_echo "$CC" >&6; } 3392else 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3394$as_echo "no" >&6; } 3395fi 3396 3397 3398fi 3399if test -z "$CC"; then 3400 if test -n "$ac_tool_prefix"; then 3401 for ac_prog in cl.exe 3402 do 3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3404set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3406$as_echo_n "checking for $ac_word... " >&6; } 3407if ${ac_cv_prog_CC+:} false; then : 3408 $as_echo_n "(cached) " >&6 3409else 3410 if test -n "$CC"; then 3411 ac_cv_prog_CC="$CC" # Let the user override the test. 3412else 3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3414for as_dir in $PATH 3415do 3416 IFS=$as_save_IFS 3417 test -z "$as_dir" && as_dir=. 3418 for ac_exec_ext in '' $ac_executable_extensions; do 3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3422 break 2 3423 fi 3424done 3425 done 3426IFS=$as_save_IFS 3427 3428fi 3429fi 3430CC=$ac_cv_prog_CC 3431if test -n "$CC"; then 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3433$as_echo "$CC" >&6; } 3434else 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3436$as_echo "no" >&6; } 3437fi 3438 3439 3440 test -n "$CC" && break 3441 done 3442fi 3443if test -z "$CC"; then 3444 ac_ct_CC=$CC 3445 for ac_prog in cl.exe 3446do 3447 # Extract the first word of "$ac_prog", so it can be a program name with args. 3448set dummy $ac_prog; ac_word=$2 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3450$as_echo_n "checking for $ac_word... " >&6; } 3451if ${ac_cv_prog_ac_ct_CC+:} false; then : 3452 $as_echo_n "(cached) " >&6 3453else 3454 if test -n "$ac_ct_CC"; then 3455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3456else 3457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3458for as_dir in $PATH 3459do 3460 IFS=$as_save_IFS 3461 test -z "$as_dir" && as_dir=. 3462 for ac_exec_ext in '' $ac_executable_extensions; do 3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3464 ac_cv_prog_ac_ct_CC="$ac_prog" 3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3466 break 2 3467 fi 3468done 3469 done 3470IFS=$as_save_IFS 3471 3472fi 3473fi 3474ac_ct_CC=$ac_cv_prog_ac_ct_CC 3475if test -n "$ac_ct_CC"; then 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3477$as_echo "$ac_ct_CC" >&6; } 3478else 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3480$as_echo "no" >&6; } 3481fi 3482 3483 3484 test -n "$ac_ct_CC" && break 3485done 3486 3487 if test "x$ac_ct_CC" = x; then 3488 CC="" 3489 else 3490 case $cross_compiling:$ac_tool_warned in 3491yes:) 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3494ac_tool_warned=yes ;; 3495esac 3496 CC=$ac_ct_CC 3497 fi 3498fi 3499 3500fi 3501 3502 3503test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3505as_fn_error $? "no acceptable C compiler found in \$PATH 3506See \`config.log' for more details" "$LINENO" 5; } 3507 3508# Provide some information about the compiler. 3509$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3510set X $ac_compile 3511ac_compiler=$2 3512for ac_option in --version -v -V -qversion; do 3513 { { ac_try="$ac_compiler $ac_option >&5" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3521 ac_status=$? 3522 if test -s conftest.err; then 3523 sed '10a\ 3524... rest of stderr output deleted ... 3525 10q' conftest.err >conftest.er1 3526 cat conftest.er1 >&5 3527 fi 3528 rm -f conftest.er1 conftest.err 3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3530 test $ac_status = 0; } 3531done 3532 3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534/* end confdefs.h. */ 3535 3536int 3537main () 3538{ 3539 3540 ; 3541 return 0; 3542} 3543_ACEOF 3544ac_clean_files_save=$ac_clean_files 3545ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3546# Try to create an executable without -o first, disregard a.out. 3547# It will help us diagnose broken compilers, and finding out an intuition 3548# of exeext. 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3550$as_echo_n "checking whether the C compiler works... " >&6; } 3551ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3552 3553# The possible output files: 3554ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3555 3556ac_rmfiles= 3557for ac_file in $ac_files 3558do 3559 case $ac_file in 3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3561 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3562 esac 3563done 3564rm -f $ac_rmfiles 3565 3566if { { ac_try="$ac_link_default" 3567case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570esac 3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572$as_echo "$ac_try_echo"; } >&5 3573 (eval "$ac_link_default") 2>&5 3574 ac_status=$? 3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3576 test $ac_status = 0; }; then : 3577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3578# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3579# in a Makefile. We should not override ac_cv_exeext if it was cached, 3580# so that the user can short-circuit this test for compilers unknown to 3581# Autoconf. 3582for ac_file in $ac_files '' 3583do 3584 test -f "$ac_file" || continue 3585 case $ac_file in 3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3587 ;; 3588 [ab].out ) 3589 # We found the default executable, but exeext='' is most 3590 # certainly right. 3591 break;; 3592 *.* ) 3593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3594 then :; else 3595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3596 fi 3597 # We set ac_cv_exeext here because the later test for it is not 3598 # safe: cross compilers may not add the suffix if given an `-o' 3599 # argument, so we may need to know it at that point already. 3600 # Even if this section looks crufty: it has the advantage of 3601 # actually working. 3602 break;; 3603 * ) 3604 break;; 3605 esac 3606done 3607test "$ac_cv_exeext" = no && ac_cv_exeext= 3608 3609else 3610 ac_file='' 3611fi 3612if test -z "$ac_file"; then : 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614$as_echo "no" >&6; } 3615$as_echo "$as_me: failed program was:" >&5 3616sed 's/^/| /' conftest.$ac_ext >&5 3617 3618{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3620as_fn_error 77 "C compiler cannot create executables 3621See \`config.log' for more details" "$LINENO" 5; } 3622else 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3624$as_echo "yes" >&6; } 3625fi 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3627$as_echo_n "checking for C compiler default output file name... " >&6; } 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3629$as_echo "$ac_file" >&6; } 3630ac_exeext=$ac_cv_exeext 3631 3632rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3633ac_clean_files=$ac_clean_files_save 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3635$as_echo_n "checking for suffix of executables... " >&6; } 3636if { { ac_try="$ac_link" 3637case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640esac 3641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3642$as_echo "$ac_try_echo"; } >&5 3643 (eval "$ac_link") 2>&5 3644 ac_status=$? 3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3646 test $ac_status = 0; }; then : 3647 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3648# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3649# work properly (i.e., refer to `conftest.exe'), while it won't with 3650# `rm'. 3651for ac_file in conftest.exe conftest conftest.*; do 3652 test -f "$ac_file" || continue 3653 case $ac_file in 3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3656 break;; 3657 * ) break;; 3658 esac 3659done 3660else 3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3663as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3664See \`config.log' for more details" "$LINENO" 5; } 3665fi 3666rm -f conftest conftest$ac_cv_exeext 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3668$as_echo "$ac_cv_exeext" >&6; } 3669 3670rm -f conftest.$ac_ext 3671EXEEXT=$ac_cv_exeext 3672ac_exeext=$EXEEXT 3673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3674/* end confdefs.h. */ 3675#include <stdio.h> 3676int 3677main () 3678{ 3679FILE *f = fopen ("conftest.out", "w"); 3680 return ferror (f) || fclose (f) != 0; 3681 3682 ; 3683 return 0; 3684} 3685_ACEOF 3686ac_clean_files="$ac_clean_files conftest.out" 3687# Check that the compiler produces executables we can run. If not, either 3688# the compiler is broken, or we cross compile. 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3690$as_echo_n "checking whether we are cross compiling... " >&6; } 3691if test "$cross_compiling" != yes; then 3692 { { ac_try="$ac_link" 3693case "(($ac_try" in 3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3695 *) ac_try_echo=$ac_try;; 3696esac 3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3698$as_echo "$ac_try_echo"; } >&5 3699 (eval "$ac_link") 2>&5 3700 ac_status=$? 3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3702 test $ac_status = 0; } 3703 if { ac_try='./conftest$ac_cv_exeext' 3704 { { case "(($ac_try" in 3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3706 *) ac_try_echo=$ac_try;; 3707esac 3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3709$as_echo "$ac_try_echo"; } >&5 3710 (eval "$ac_try") 2>&5 3711 ac_status=$? 3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3713 test $ac_status = 0; }; }; then 3714 cross_compiling=no 3715 else 3716 if test "$cross_compiling" = maybe; then 3717 cross_compiling=yes 3718 else 3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3721as_fn_error $? "cannot run C compiled programs. 3722If you meant to cross compile, use \`--host'. 3723See \`config.log' for more details" "$LINENO" 5; } 3724 fi 3725 fi 3726fi 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3728$as_echo "$cross_compiling" >&6; } 3729 3730rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3731ac_clean_files=$ac_clean_files_save 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3733$as_echo_n "checking for suffix of object files... " >&6; } 3734if ${ac_cv_objext+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739 3740int 3741main () 3742{ 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748rm -f conftest.o conftest.obj 3749if { { ac_try="$ac_compile" 3750case "(($ac_try" in 3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3752 *) ac_try_echo=$ac_try;; 3753esac 3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3755$as_echo "$ac_try_echo"; } >&5 3756 (eval "$ac_compile") 2>&5 3757 ac_status=$? 3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3759 test $ac_status = 0; }; then : 3760 for ac_file in conftest.o conftest.obj conftest.*; do 3761 test -f "$ac_file" || continue; 3762 case $ac_file in 3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3764 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3765 break;; 3766 esac 3767done 3768else 3769 $as_echo "$as_me: failed program was:" >&5 3770sed 's/^/| /' conftest.$ac_ext >&5 3771 3772{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3774as_fn_error $? "cannot compute suffix of object files: cannot compile 3775See \`config.log' for more details" "$LINENO" 5; } 3776fi 3777rm -f conftest.$ac_cv_objext conftest.$ac_ext 3778fi 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3780$as_echo "$ac_cv_objext" >&6; } 3781OBJEXT=$ac_cv_objext 3782ac_objext=$OBJEXT 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3784$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3785if ${ac_cv_c_compiler_gnu+:} false; then : 3786 $as_echo_n "(cached) " >&6 3787else 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790 3791int 3792main () 3793{ 3794#ifndef __GNUC__ 3795 choke me 3796#endif 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802if ac_fn_c_try_compile "$LINENO"; then : 3803 ac_compiler_gnu=yes 3804else 3805 ac_compiler_gnu=no 3806fi 3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3808ac_cv_c_compiler_gnu=$ac_compiler_gnu 3809 3810fi 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3812$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3813if test $ac_compiler_gnu = yes; then 3814 GCC=yes 3815else 3816 GCC= 3817fi 3818ac_test_CFLAGS=${CFLAGS+set} 3819ac_save_CFLAGS=$CFLAGS 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3821$as_echo_n "checking whether $CC accepts -g... " >&6; } 3822if ${ac_cv_prog_cc_g+:} false; then : 3823 $as_echo_n "(cached) " >&6 3824else 3825 ac_save_c_werror_flag=$ac_c_werror_flag 3826 ac_c_werror_flag=yes 3827 ac_cv_prog_cc_g=no 3828 CFLAGS="-g" 3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831 3832int 3833main () 3834{ 3835 3836 ; 3837 return 0; 3838} 3839_ACEOF 3840if ac_fn_c_try_compile "$LINENO"; then : 3841 ac_cv_prog_cc_g=yes 3842else 3843 CFLAGS="" 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846 3847int 3848main () 3849{ 3850 3851 ; 3852 return 0; 3853} 3854_ACEOF 3855if ac_fn_c_try_compile "$LINENO"; then : 3856 3857else 3858 ac_c_werror_flag=$ac_save_c_werror_flag 3859 CFLAGS="-g" 3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3861/* end confdefs.h. */ 3862 3863int 3864main () 3865{ 3866 3867 ; 3868 return 0; 3869} 3870_ACEOF 3871if ac_fn_c_try_compile "$LINENO"; then : 3872 ac_cv_prog_cc_g=yes 3873fi 3874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3875fi 3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3877fi 3878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3879 ac_c_werror_flag=$ac_save_c_werror_flag 3880fi 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3882$as_echo "$ac_cv_prog_cc_g" >&6; } 3883if test "$ac_test_CFLAGS" = set; then 3884 CFLAGS=$ac_save_CFLAGS 3885elif test $ac_cv_prog_cc_g = yes; then 3886 if test "$GCC" = yes; then 3887 CFLAGS="-g -O2" 3888 else 3889 CFLAGS="-g" 3890 fi 3891else 3892 if test "$GCC" = yes; then 3893 CFLAGS="-O2" 3894 else 3895 CFLAGS= 3896 fi 3897fi 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3899$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3900if ${ac_cv_prog_cc_c89+:} false; then : 3901 $as_echo_n "(cached) " >&6 3902else 3903 ac_cv_prog_cc_c89=no 3904ac_save_CC=$CC 3905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3906/* end confdefs.h. */ 3907#include <stdarg.h> 3908#include <stdio.h> 3909struct stat; 3910/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3911struct buf { int x; }; 3912FILE * (*rcsopen) (struct buf *, struct stat *, int); 3913static char *e (p, i) 3914 char **p; 3915 int i; 3916{ 3917 return p[i]; 3918} 3919static char *f (char * (*g) (char **, int), char **p, ...) 3920{ 3921 char *s; 3922 va_list v; 3923 va_start (v,p); 3924 s = g (p, va_arg (v,int)); 3925 va_end (v); 3926 return s; 3927} 3928 3929/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3930 function prototypes and stuff, but not '\xHH' hex character constants. 3931 These don't provoke an error unfortunately, instead are silently treated 3932 as 'x'. The following induces an error, until -std is added to get 3933 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3934 array size at least. It's necessary to write '\x00'==0 to get something 3935 that's true only with -std. */ 3936int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3937 3938/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3939 inside strings and character constants. */ 3940#define FOO(x) 'x' 3941int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3942 3943int test (int i, double x); 3944struct s1 {int (*f) (int a);}; 3945struct s2 {int (*f) (double a);}; 3946int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3947int argc; 3948char **argv; 3949int 3950main () 3951{ 3952return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3953 ; 3954 return 0; 3955} 3956_ACEOF 3957for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3958 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3959do 3960 CC="$ac_save_CC $ac_arg" 3961 if ac_fn_c_try_compile "$LINENO"; then : 3962 ac_cv_prog_cc_c89=$ac_arg 3963fi 3964rm -f core conftest.err conftest.$ac_objext 3965 test "x$ac_cv_prog_cc_c89" != "xno" && break 3966done 3967rm -f conftest.$ac_ext 3968CC=$ac_save_CC 3969 3970fi 3971# AC_CACHE_VAL 3972case "x$ac_cv_prog_cc_c89" in 3973 x) 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3975$as_echo "none needed" >&6; } ;; 3976 xno) 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3978$as_echo "unsupported" >&6; } ;; 3979 *) 3980 CC="$CC $ac_cv_prog_cc_c89" 3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3982$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3983esac 3984if test "x$ac_cv_prog_cc_c89" != xno; then : 3985 3986fi 3987 3988ac_ext=c 3989ac_cpp='$CPP $CPPFLAGS' 3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3992ac_compiler_gnu=$ac_cv_c_compiler_gnu 3993 3994ac_ext=c 3995ac_cpp='$CPP $CPPFLAGS' 3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3998ac_compiler_gnu=$ac_cv_c_compiler_gnu 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4000$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4001if ${am_cv_prog_cc_c_o+:} false; then : 4002 $as_echo_n "(cached) " >&6 4003else 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005/* end confdefs.h. */ 4006 4007int 4008main () 4009{ 4010 4011 ; 4012 return 0; 4013} 4014_ACEOF 4015 # Make sure it works both with $CC and with simple cc. 4016 # Following AC_PROG_CC_C_O, we do the test twice because some 4017 # compilers refuse to overwrite an existing .o file with -o, 4018 # though they will create one. 4019 am_cv_prog_cc_c_o=yes 4020 for am_i in 1 2; do 4021 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4022 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4023 ac_status=$? 4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 (exit $ac_status); } \ 4026 && test -f conftest2.$ac_objext; then 4027 : OK 4028 else 4029 am_cv_prog_cc_c_o=no 4030 break 4031 fi 4032 done 4033 rm -f core conftest* 4034 unset am_i 4035fi 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4037$as_echo "$am_cv_prog_cc_c_o" >&6; } 4038if test "$am_cv_prog_cc_c_o" != yes; then 4039 # Losing compiler, so override with the script. 4040 # FIXME: It is wrong to rewrite CC. 4041 # But if we don't then we get into trouble of one sort or another. 4042 # A longer-term fix would be to have automake use am__CC in this case, 4043 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4044 CC="$am_aux_dir/compile $CC" 4045fi 4046ac_ext=c 4047ac_cpp='$CPP $CPPFLAGS' 4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4050ac_compiler_gnu=$ac_cv_c_compiler_gnu 4051 4052DEPDIR="${am__leading_dot}deps" 4053 4054ac_config_commands="$ac_config_commands depfiles" 4055 4056 4057am_make=${MAKE-make} 4058cat > confinc << 'END' 4059am__doit: 4060 @echo this is the am__doit target 4061.PHONY: am__doit 4062END 4063# If we don't find an include directive, just comment out the code. 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4065$as_echo_n "checking for style of include used by $am_make... " >&6; } 4066am__include="#" 4067am__quote= 4068_am_result=none 4069# First try GNU make style include. 4070echo "include confinc" > confmf 4071# Ignore all kinds of additional output from 'make'. 4072case `$am_make -s -f confmf 2> /dev/null` in #( 4073*the\ am__doit\ target*) 4074 am__include=include 4075 am__quote= 4076 _am_result=GNU 4077 ;; 4078esac 4079# Now try BSD make style include. 4080if test "$am__include" = "#"; then 4081 echo '.include "confinc"' > confmf 4082 case `$am_make -s -f confmf 2> /dev/null` in #( 4083 *the\ am__doit\ target*) 4084 am__include=.include 4085 am__quote="\"" 4086 _am_result=BSD 4087 ;; 4088 esac 4089fi 4090 4091 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4093$as_echo "$_am_result" >&6; } 4094rm -f confinc confmf 4095 4096# Check whether --enable-dependency-tracking was given. 4097if test "${enable_dependency_tracking+set}" = set; then : 4098 enableval=$enable_dependency_tracking; 4099fi 4100 4101if test "x$enable_dependency_tracking" != xno; then 4102 am_depcomp="$ac_aux_dir/depcomp" 4103 AMDEPBACKSLASH='\' 4104 am__nodep='_no' 4105fi 4106 if test "x$enable_dependency_tracking" != xno; then 4107 AMDEP_TRUE= 4108 AMDEP_FALSE='#' 4109else 4110 AMDEP_TRUE='#' 4111 AMDEP_FALSE= 4112fi 4113 4114 4115 4116depcc="$CC" am_compiler_list= 4117 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4119$as_echo_n "checking dependency style of $depcc... " >&6; } 4120if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4124 # We make a subdir and do the tests there. Otherwise we can end up 4125 # making bogus files that we don't know about and never remove. For 4126 # instance it was reported that on HP-UX the gcc test will end up 4127 # making a dummy file named 'D' -- because '-MD' means "put the output 4128 # in D". 4129 rm -rf conftest.dir 4130 mkdir conftest.dir 4131 # Copy depcomp to subdir because otherwise we won't find it if we're 4132 # using a relative directory. 4133 cp "$am_depcomp" conftest.dir 4134 cd conftest.dir 4135 # We will build objects and dependencies in a subdirectory because 4136 # it helps to detect inapplicable dependency modes. For instance 4137 # both Tru64's cc and ICC support -MD to output dependencies as a 4138 # side effect of compilation, but ICC will put the dependencies in 4139 # the current directory while Tru64 will put them in the object 4140 # directory. 4141 mkdir sub 4142 4143 am_cv_CC_dependencies_compiler_type=none 4144 if test "$am_compiler_list" = ""; then 4145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4146 fi 4147 am__universal=false 4148 case " $depcc " in #( 4149 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4150 esac 4151 4152 for depmode in $am_compiler_list; do 4153 # Setup a source with many dependencies, because some compilers 4154 # like to wrap large dependency lists on column 80 (with \), and 4155 # we should not choose a depcomp mode which is confused by this. 4156 # 4157 # We need to recreate these files for each test, as the compiler may 4158 # overwrite some of them when testing with obscure command lines. 4159 # This happens at least with the AIX C compiler. 4160 : > sub/conftest.c 4161 for i in 1 2 3 4 5 6; do 4162 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4163 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4164 # Solaris 10 /bin/sh. 4165 echo '/* dummy */' > sub/conftst$i.h 4166 done 4167 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4168 4169 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4170 # mode. It turns out that the SunPro C++ compiler does not properly 4171 # handle '-M -o', and we need to detect this. Also, some Intel 4172 # versions had trouble with output in subdirs. 4173 am__obj=sub/conftest.${OBJEXT-o} 4174 am__minus_obj="-o $am__obj" 4175 case $depmode in 4176 gcc) 4177 # This depmode causes a compiler race in universal mode. 4178 test "$am__universal" = false || continue 4179 ;; 4180 nosideeffect) 4181 # After this tag, mechanisms are not by side-effect, so they'll 4182 # only be used when explicitly requested. 4183 if test "x$enable_dependency_tracking" = xyes; then 4184 continue 4185 else 4186 break 4187 fi 4188 ;; 4189 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4190 # This compiler won't grok '-c -o', but also, the minuso test has 4191 # not run yet. These depmodes are late enough in the game, and 4192 # so weak that their functioning should not be impacted. 4193 am__obj=conftest.${OBJEXT-o} 4194 am__minus_obj= 4195 ;; 4196 none) break ;; 4197 esac 4198 if depmode=$depmode \ 4199 source=sub/conftest.c object=$am__obj \ 4200 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4201 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4202 >/dev/null 2>conftest.err && 4203 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4204 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4205 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4206 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4207 # icc doesn't choke on unknown options, it will just issue warnings 4208 # or remarks (even with -Werror). So we grep stderr for any message 4209 # that says an option was ignored or not supported. 4210 # When given -MP, icc 7.0 and 7.1 complain thusly: 4211 # icc: Command line warning: ignoring option '-M'; no argument required 4212 # The diagnosis changed in icc 8.0: 4213 # icc: Command line remark: option '-MP' not supported 4214 if (grep 'ignoring option' conftest.err || 4215 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4216 am_cv_CC_dependencies_compiler_type=$depmode 4217 break 4218 fi 4219 fi 4220 done 4221 4222 cd .. 4223 rm -rf conftest.dir 4224else 4225 am_cv_CC_dependencies_compiler_type=none 4226fi 4227 4228fi 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4230$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4231CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4232 4233 if 4234 test "x$enable_dependency_tracking" != xno \ 4235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4236 am__fastdepCC_TRUE= 4237 am__fastdepCC_FALSE='#' 4238else 4239 am__fastdepCC_TRUE='#' 4240 am__fastdepCC_FALSE= 4241fi 4242 4243 4244ac_ext=cpp 4245ac_cpp='$CXXCPP $CPPFLAGS' 4246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4249if test -z "$CXX"; then 4250 if test -n "$CCC"; then 4251 CXX=$CCC 4252 else 4253 if test -n "$ac_tool_prefix"; then 4254 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4255 do 4256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4257set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4259$as_echo_n "checking for $ac_word... " >&6; } 4260if ${ac_cv_prog_CXX+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 if test -n "$CXX"; then 4264 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4265else 4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4267for as_dir in $PATH 4268do 4269 IFS=$as_save_IFS 4270 test -z "$as_dir" && as_dir=. 4271 for ac_exec_ext in '' $ac_executable_extensions; do 4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4273 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4275 break 2 4276 fi 4277done 4278 done 4279IFS=$as_save_IFS 4280 4281fi 4282fi 4283CXX=$ac_cv_prog_CXX 4284if test -n "$CXX"; then 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4286$as_echo "$CXX" >&6; } 4287else 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4289$as_echo "no" >&6; } 4290fi 4291 4292 4293 test -n "$CXX" && break 4294 done 4295fi 4296if test -z "$CXX"; then 4297 ac_ct_CXX=$CXX 4298 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4299do 4300 # Extract the first word of "$ac_prog", so it can be a program name with args. 4301set dummy $ac_prog; ac_word=$2 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4303$as_echo_n "checking for $ac_word... " >&6; } 4304if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 if test -n "$ac_ct_CXX"; then 4308 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4309else 4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4311for as_dir in $PATH 4312do 4313 IFS=$as_save_IFS 4314 test -z "$as_dir" && as_dir=. 4315 for ac_exec_ext in '' $ac_executable_extensions; do 4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4317 ac_cv_prog_ac_ct_CXX="$ac_prog" 4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4319 break 2 4320 fi 4321done 4322 done 4323IFS=$as_save_IFS 4324 4325fi 4326fi 4327ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4328if test -n "$ac_ct_CXX"; then 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4330$as_echo "$ac_ct_CXX" >&6; } 4331else 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4333$as_echo "no" >&6; } 4334fi 4335 4336 4337 test -n "$ac_ct_CXX" && break 4338done 4339 4340 if test "x$ac_ct_CXX" = x; then 4341 CXX="g++" 4342 else 4343 case $cross_compiling:$ac_tool_warned in 4344yes:) 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4347ac_tool_warned=yes ;; 4348esac 4349 CXX=$ac_ct_CXX 4350 fi 4351fi 4352 4353 fi 4354fi 4355# Provide some information about the compiler. 4356$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4357set X $ac_compile 4358ac_compiler=$2 4359for ac_option in --version -v -V -qversion; do 4360 { { ac_try="$ac_compiler $ac_option >&5" 4361case "(($ac_try" in 4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4363 *) ac_try_echo=$ac_try;; 4364esac 4365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4366$as_echo "$ac_try_echo"; } >&5 4367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4368 ac_status=$? 4369 if test -s conftest.err; then 4370 sed '10a\ 4371... rest of stderr output deleted ... 4372 10q' conftest.err >conftest.er1 4373 cat conftest.er1 >&5 4374 fi 4375 rm -f conftest.er1 conftest.err 4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4377 test $ac_status = 0; } 4378done 4379 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4381$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4382if ${ac_cv_cxx_compiler_gnu+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4386/* end confdefs.h. */ 4387 4388int 4389main () 4390{ 4391#ifndef __GNUC__ 4392 choke me 4393#endif 4394 4395 ; 4396 return 0; 4397} 4398_ACEOF 4399if ac_fn_cxx_try_compile "$LINENO"; then : 4400 ac_compiler_gnu=yes 4401else 4402 ac_compiler_gnu=no 4403fi 4404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4405ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4406 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4409$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4410if test $ac_compiler_gnu = yes; then 4411 GXX=yes 4412else 4413 GXX= 4414fi 4415ac_test_CXXFLAGS=${CXXFLAGS+set} 4416ac_save_CXXFLAGS=$CXXFLAGS 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4418$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4419if ${ac_cv_prog_cxx_g+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4423 ac_cxx_werror_flag=yes 4424 ac_cv_prog_cxx_g=no 4425 CXXFLAGS="-g" 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4427/* end confdefs.h. */ 4428 4429int 4430main () 4431{ 4432 4433 ; 4434 return 0; 4435} 4436_ACEOF 4437if ac_fn_cxx_try_compile "$LINENO"; then : 4438 ac_cv_prog_cxx_g=yes 4439else 4440 CXXFLAGS="" 4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4442/* end confdefs.h. */ 4443 4444int 4445main () 4446{ 4447 4448 ; 4449 return 0; 4450} 4451_ACEOF 4452if ac_fn_cxx_try_compile "$LINENO"; then : 4453 4454else 4455 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4456 CXXFLAGS="-g" 4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4458/* end confdefs.h. */ 4459 4460int 4461main () 4462{ 4463 4464 ; 4465 return 0; 4466} 4467_ACEOF 4468if ac_fn_cxx_try_compile "$LINENO"; then : 4469 ac_cv_prog_cxx_g=yes 4470fi 4471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4472fi 4473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4474fi 4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4476 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4477fi 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4479$as_echo "$ac_cv_prog_cxx_g" >&6; } 4480if test "$ac_test_CXXFLAGS" = set; then 4481 CXXFLAGS=$ac_save_CXXFLAGS 4482elif test $ac_cv_prog_cxx_g = yes; then 4483 if test "$GXX" = yes; then 4484 CXXFLAGS="-g -O2" 4485 else 4486 CXXFLAGS="-g" 4487 fi 4488else 4489 if test "$GXX" = yes; then 4490 CXXFLAGS="-O2" 4491 else 4492 CXXFLAGS= 4493 fi 4494fi 4495ac_ext=c 4496ac_cpp='$CPP $CPPFLAGS' 4497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4499ac_compiler_gnu=$ac_cv_c_compiler_gnu 4500 4501depcc="$CXX" am_compiler_list= 4502 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4504$as_echo_n "checking dependency style of $depcc... " >&6; } 4505if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507else 4508 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4509 # We make a subdir and do the tests there. Otherwise we can end up 4510 # making bogus files that we don't know about and never remove. For 4511 # instance it was reported that on HP-UX the gcc test will end up 4512 # making a dummy file named 'D' -- because '-MD' means "put the output 4513 # in D". 4514 rm -rf conftest.dir 4515 mkdir conftest.dir 4516 # Copy depcomp to subdir because otherwise we won't find it if we're 4517 # using a relative directory. 4518 cp "$am_depcomp" conftest.dir 4519 cd conftest.dir 4520 # We will build objects and dependencies in a subdirectory because 4521 # it helps to detect inapplicable dependency modes. For instance 4522 # both Tru64's cc and ICC support -MD to output dependencies as a 4523 # side effect of compilation, but ICC will put the dependencies in 4524 # the current directory while Tru64 will put them in the object 4525 # directory. 4526 mkdir sub 4527 4528 am_cv_CXX_dependencies_compiler_type=none 4529 if test "$am_compiler_list" = ""; then 4530 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4531 fi 4532 am__universal=false 4533 case " $depcc " in #( 4534 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4535 esac 4536 4537 for depmode in $am_compiler_list; do 4538 # Setup a source with many dependencies, because some compilers 4539 # like to wrap large dependency lists on column 80 (with \), and 4540 # we should not choose a depcomp mode which is confused by this. 4541 # 4542 # We need to recreate these files for each test, as the compiler may 4543 # overwrite some of them when testing with obscure command lines. 4544 # This happens at least with the AIX C compiler. 4545 : > sub/conftest.c 4546 for i in 1 2 3 4 5 6; do 4547 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4548 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4549 # Solaris 10 /bin/sh. 4550 echo '/* dummy */' > sub/conftst$i.h 4551 done 4552 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4553 4554 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4555 # mode. It turns out that the SunPro C++ compiler does not properly 4556 # handle '-M -o', and we need to detect this. Also, some Intel 4557 # versions had trouble with output in subdirs. 4558 am__obj=sub/conftest.${OBJEXT-o} 4559 am__minus_obj="-o $am__obj" 4560 case $depmode in 4561 gcc) 4562 # This depmode causes a compiler race in universal mode. 4563 test "$am__universal" = false || continue 4564 ;; 4565 nosideeffect) 4566 # After this tag, mechanisms are not by side-effect, so they'll 4567 # only be used when explicitly requested. 4568 if test "x$enable_dependency_tracking" = xyes; then 4569 continue 4570 else 4571 break 4572 fi 4573 ;; 4574 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4575 # This compiler won't grok '-c -o', but also, the minuso test has 4576 # not run yet. These depmodes are late enough in the game, and 4577 # so weak that their functioning should not be impacted. 4578 am__obj=conftest.${OBJEXT-o} 4579 am__minus_obj= 4580 ;; 4581 none) break ;; 4582 esac 4583 if depmode=$depmode \ 4584 source=sub/conftest.c object=$am__obj \ 4585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4586 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4587 >/dev/null 2>conftest.err && 4588 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4590 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4592 # icc doesn't choke on unknown options, it will just issue warnings 4593 # or remarks (even with -Werror). So we grep stderr for any message 4594 # that says an option was ignored or not supported. 4595 # When given -MP, icc 7.0 and 7.1 complain thusly: 4596 # icc: Command line warning: ignoring option '-M'; no argument required 4597 # The diagnosis changed in icc 8.0: 4598 # icc: Command line remark: option '-MP' not supported 4599 if (grep 'ignoring option' conftest.err || 4600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4601 am_cv_CXX_dependencies_compiler_type=$depmode 4602 break 4603 fi 4604 fi 4605 done 4606 4607 cd .. 4608 rm -rf conftest.dir 4609else 4610 am_cv_CXX_dependencies_compiler_type=none 4611fi 4612 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4615$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4616CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4617 4618 if 4619 test "x$enable_dependency_tracking" != xno \ 4620 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4621 am__fastdepCXX_TRUE= 4622 am__fastdepCXX_FALSE='#' 4623else 4624 am__fastdepCXX_TRUE='#' 4625 am__fastdepCXX_FALSE= 4626fi 4627 4628 4629# AC_PROG_LIBTOOL 4630ac_config_files="$ac_config_files Makefile" 4631 4632 4633if test "${multilib}" = "yes"; then 4634 multilib_arg="--enable-multilib" 4635else 4636 multilib_arg= 4637fi 4638 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 4640$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 4641# Check whether --enable-version-specific-runtime-libs was given. 4642if test "${enable_version_specific_runtime_libs+set}" = set; then : 4643 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 4644 yes) enable_version_specific_runtime_libs=yes ;; 4645 no) enable_version_specific_runtime_libs=no ;; 4646 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs 4647" "$LINENO" 5;; 4648 esac 4649else 4650 enable_version_specific_runtime_libs=no 4651fi 4652 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 4654$as_echo "$enable_version_specific_runtime_libs" >&6; } 4655 4656# Calculate toolexeclibdir 4657# Also toolexecdir, though it's only used in toolexeclibdir 4658case ${enable_version_specific_runtime_libs} in 4659 yes) 4660 # Need the gcc compiler version to know where to install libraries 4661 # and header files if --enable-version-specific-runtime-libs option 4662 # is selected. 4663 toolexecdir='$(libdir)/gcc/$(target_alias)' 4664 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 4665 ;; 4666 no) 4667 if test -n "$with_cross_host" && 4668 test x"$with_cross_host" != x"no"; then 4669 # Install a library built with a cross compiler in tooldir, not libdir. 4670 toolexecdir='$(exec_prefix)/$(target_alias)' 4671 toolexeclibdir='$(toolexecdir)/lib' 4672 else 4673 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 4674 toolexeclibdir='$(libdir)' 4675 fi 4676 multi_os_directory=`$CC -print-multi-os-directory` 4677 case $multi_os_directory in 4678 .) ;; # Avoid trailing /. 4679 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 4680 esac 4681 ;; 4682esac 4683 4684# Set config_dir based on the target. config_dir specifies where to get 4685# target-specific files. The generic implementation is incomplete, but 4686# contains information on what's needed 4687case "${target}" in 4688 4689 x86_64-*-*) 4690 config_dir="x86" 4691 ;; 4692 4693 i?86-*-*) 4694 config_dir="x86" 4695 ;; 4696 4697 *) 4698 config_dir="generic" 4699 ;; 4700 4701esac 4702 4703 4704# We have linker scripts for appropriate operating systems 4705linux_linker_script=no 4706case "${host}" in 4707 *-*-linux*) 4708 linux_linker_script=yes 4709 ;; 4710esac 4711 if test "$linux_linker_script" = "yes"; then 4712 LINUX_LINKER_SCRIPT_TRUE= 4713 LINUX_LINKER_SCRIPT_FALSE='#' 4714else 4715 LINUX_LINKER_SCRIPT_TRUE='#' 4716 LINUX_LINKER_SCRIPT_FALSE= 4717fi 4718 4719 4720mac_linker_script=no 4721case "${host}" in 4722 *-*-apple*) 4723 mac_linker_script=yes 4724 ;; 4725esac 4726 if test "$mac_linker_script" = "yes"; then 4727 MAC_LINKER_SCRIPT_TRUE= 4728 MAC_LINKER_SCRIPT_FALSE='#' 4729else 4730 MAC_LINKER_SCRIPT_TRUE='#' 4731 MAC_LINKER_SCRIPT_FALSE= 4732fi 4733 4734 4735enable_dlopen=yes 4736 4737 4738 4739case `pwd` in 4740 *\ * | *\ *) 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4742$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4743esac 4744 4745 4746 4747macro_version='2.2.7a' 4748macro_revision='1.3134' 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762ltmain="$ac_aux_dir/ltmain.sh" 4763 4764# Backslashify metacharacters that are still active within 4765# double-quoted strings. 4766sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4767 4768# Same as above, but do not quote variable references. 4769double_quote_subst='s/\(["`\\]\)/\\\1/g' 4770 4771# Sed substitution to delay expansion of an escaped shell variable in a 4772# double_quote_subst'ed string. 4773delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4774 4775# Sed substitution to delay expansion of an escaped single quote. 4776delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4777 4778# Sed substitution to avoid accidental globbing in evaled expressions 4779no_glob_subst='s/\*/\\\*/g' 4780 4781ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4782ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4783ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4784 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4786$as_echo_n "checking how to print strings... " >&6; } 4787# Test print first, because it will be a builtin if present. 4788if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4789 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4790 ECHO='print -r --' 4791elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4792 ECHO='printf %s\n' 4793else 4794 # Use this function as a fallback that always works. 4795 func_fallback_echo () 4796 { 4797 eval 'cat <<_LTECHO_EOF 4798$1 4799_LTECHO_EOF' 4800 } 4801 ECHO='func_fallback_echo' 4802fi 4803 4804# func_echo_all arg... 4805# Invoke $ECHO with all args, space-separated. 4806func_echo_all () 4807{ 4808 $ECHO "" 4809} 4810 4811case "$ECHO" in 4812 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4813$as_echo "printf" >&6; } ;; 4814 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4815$as_echo "print -r" >&6; } ;; 4816 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4817$as_echo "cat" >&6; } ;; 4818esac 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4834$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4835if ${ac_cv_path_SED+:} false; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4839 for ac_i in 1 2 3 4 5 6 7; do 4840 ac_script="$ac_script$as_nl$ac_script" 4841 done 4842 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4843 { ac_script=; unset ac_script;} 4844 if test -z "$SED"; then 4845 ac_path_SED_found=false 4846 # Loop through the user's path and test for each of PROGNAME-LIST 4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4848for as_dir in $PATH 4849do 4850 IFS=$as_save_IFS 4851 test -z "$as_dir" && as_dir=. 4852 for ac_prog in sed gsed; do 4853 for ac_exec_ext in '' $ac_executable_extensions; do 4854 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4855 as_fn_executable_p "$ac_path_SED" || continue 4856# Check for GNU ac_path_SED and select it if it is found. 4857 # Check for GNU $ac_path_SED 4858case `"$ac_path_SED" --version 2>&1` in 4859*GNU*) 4860 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4861*) 4862 ac_count=0 4863 $as_echo_n 0123456789 >"conftest.in" 4864 while : 4865 do 4866 cat "conftest.in" "conftest.in" >"conftest.tmp" 4867 mv "conftest.tmp" "conftest.in" 4868 cp "conftest.in" "conftest.nl" 4869 $as_echo '' >> "conftest.nl" 4870 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4872 as_fn_arith $ac_count + 1 && ac_count=$as_val 4873 if test $ac_count -gt ${ac_path_SED_max-0}; then 4874 # Best one so far, save it but keep looking for a better one 4875 ac_cv_path_SED="$ac_path_SED" 4876 ac_path_SED_max=$ac_count 4877 fi 4878 # 10*(2^10) chars as input seems more than enough 4879 test $ac_count -gt 10 && break 4880 done 4881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4882esac 4883 4884 $ac_path_SED_found && break 3 4885 done 4886 done 4887 done 4888IFS=$as_save_IFS 4889 if test -z "$ac_cv_path_SED"; then 4890 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4891 fi 4892else 4893 ac_cv_path_SED=$SED 4894fi 4895 4896fi 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4898$as_echo "$ac_cv_path_SED" >&6; } 4899 SED="$ac_cv_path_SED" 4900 rm -f conftest.sed 4901 4902test -z "$SED" && SED=sed 4903Xsed="$SED -e 1s/^X//" 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4916$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4917if ${ac_cv_path_GREP+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 if test -z "$GREP"; then 4921 ac_path_GREP_found=false 4922 # Loop through the user's path and test for each of PROGNAME-LIST 4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4925do 4926 IFS=$as_save_IFS 4927 test -z "$as_dir" && as_dir=. 4928 for ac_prog in grep ggrep; do 4929 for ac_exec_ext in '' $ac_executable_extensions; do 4930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4931 as_fn_executable_p "$ac_path_GREP" || continue 4932# Check for GNU ac_path_GREP and select it if it is found. 4933 # Check for GNU $ac_path_GREP 4934case `"$ac_path_GREP" --version 2>&1` in 4935*GNU*) 4936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4937*) 4938 ac_count=0 4939 $as_echo_n 0123456789 >"conftest.in" 4940 while : 4941 do 4942 cat "conftest.in" "conftest.in" >"conftest.tmp" 4943 mv "conftest.tmp" "conftest.in" 4944 cp "conftest.in" "conftest.nl" 4945 $as_echo 'GREP' >> "conftest.nl" 4946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4948 as_fn_arith $ac_count + 1 && ac_count=$as_val 4949 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4950 # Best one so far, save it but keep looking for a better one 4951 ac_cv_path_GREP="$ac_path_GREP" 4952 ac_path_GREP_max=$ac_count 4953 fi 4954 # 10*(2^10) chars as input seems more than enough 4955 test $ac_count -gt 10 && break 4956 done 4957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4958esac 4959 4960 $ac_path_GREP_found && break 3 4961 done 4962 done 4963 done 4964IFS=$as_save_IFS 4965 if test -z "$ac_cv_path_GREP"; then 4966 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4967 fi 4968else 4969 ac_cv_path_GREP=$GREP 4970fi 4971 4972fi 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4974$as_echo "$ac_cv_path_GREP" >&6; } 4975 GREP="$ac_cv_path_GREP" 4976 4977 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4979$as_echo_n "checking for egrep... " >&6; } 4980if ${ac_cv_path_EGREP+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4984 then ac_cv_path_EGREP="$GREP -E" 4985 else 4986 if test -z "$EGREP"; then 4987 ac_path_EGREP_found=false 4988 # Loop through the user's path and test for each of PROGNAME-LIST 4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4991do 4992 IFS=$as_save_IFS 4993 test -z "$as_dir" && as_dir=. 4994 for ac_prog in egrep; do 4995 for ac_exec_ext in '' $ac_executable_extensions; do 4996 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4997 as_fn_executable_p "$ac_path_EGREP" || continue 4998# Check for GNU ac_path_EGREP and select it if it is found. 4999 # Check for GNU $ac_path_EGREP 5000case `"$ac_path_EGREP" --version 2>&1` in 5001*GNU*) 5002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5003*) 5004 ac_count=0 5005 $as_echo_n 0123456789 >"conftest.in" 5006 while : 5007 do 5008 cat "conftest.in" "conftest.in" >"conftest.tmp" 5009 mv "conftest.tmp" "conftest.in" 5010 cp "conftest.in" "conftest.nl" 5011 $as_echo 'EGREP' >> "conftest.nl" 5012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5014 as_fn_arith $ac_count + 1 && ac_count=$as_val 5015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5016 # Best one so far, save it but keep looking for a better one 5017 ac_cv_path_EGREP="$ac_path_EGREP" 5018 ac_path_EGREP_max=$ac_count 5019 fi 5020 # 10*(2^10) chars as input seems more than enough 5021 test $ac_count -gt 10 && break 5022 done 5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5024esac 5025 5026 $ac_path_EGREP_found && break 3 5027 done 5028 done 5029 done 5030IFS=$as_save_IFS 5031 if test -z "$ac_cv_path_EGREP"; then 5032 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5033 fi 5034else 5035 ac_cv_path_EGREP=$EGREP 5036fi 5037 5038 fi 5039fi 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5041$as_echo "$ac_cv_path_EGREP" >&6; } 5042 EGREP="$ac_cv_path_EGREP" 5043 5044 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5046$as_echo_n "checking for fgrep... " >&6; } 5047if ${ac_cv_path_FGREP+:} false; then : 5048 $as_echo_n "(cached) " >&6 5049else 5050 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5051 then ac_cv_path_FGREP="$GREP -F" 5052 else 5053 if test -z "$FGREP"; then 5054 ac_path_FGREP_found=false 5055 # Loop through the user's path and test for each of PROGNAME-LIST 5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5058do 5059 IFS=$as_save_IFS 5060 test -z "$as_dir" && as_dir=. 5061 for ac_prog in fgrep; do 5062 for ac_exec_ext in '' $ac_executable_extensions; do 5063 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5064 as_fn_executable_p "$ac_path_FGREP" || continue 5065# Check for GNU ac_path_FGREP and select it if it is found. 5066 # Check for GNU $ac_path_FGREP 5067case `"$ac_path_FGREP" --version 2>&1` in 5068*GNU*) 5069 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5070*) 5071 ac_count=0 5072 $as_echo_n 0123456789 >"conftest.in" 5073 while : 5074 do 5075 cat "conftest.in" "conftest.in" >"conftest.tmp" 5076 mv "conftest.tmp" "conftest.in" 5077 cp "conftest.in" "conftest.nl" 5078 $as_echo 'FGREP' >> "conftest.nl" 5079 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5081 as_fn_arith $ac_count + 1 && ac_count=$as_val 5082 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5083 # Best one so far, save it but keep looking for a better one 5084 ac_cv_path_FGREP="$ac_path_FGREP" 5085 ac_path_FGREP_max=$ac_count 5086 fi 5087 # 10*(2^10) chars as input seems more than enough 5088 test $ac_count -gt 10 && break 5089 done 5090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5091esac 5092 5093 $ac_path_FGREP_found && break 3 5094 done 5095 done 5096 done 5097IFS=$as_save_IFS 5098 if test -z "$ac_cv_path_FGREP"; then 5099 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5100 fi 5101else 5102 ac_cv_path_FGREP=$FGREP 5103fi 5104 5105 fi 5106fi 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5108$as_echo "$ac_cv_path_FGREP" >&6; } 5109 FGREP="$ac_cv_path_FGREP" 5110 5111 5112test -z "$GREP" && GREP=grep 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132# Check whether --with-gnu-ld was given. 5133if test "${with_gnu_ld+set}" = set; then : 5134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5135else 5136 with_gnu_ld=no 5137fi 5138 5139ac_prog=ld 5140if test "$GCC" = yes; then 5141 # Check if gcc -print-prog-name=ld gives a path. 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5143$as_echo_n "checking for ld used by $CC... " >&6; } 5144 case $host in 5145 *-*-mingw*) 5146 # gcc leaves a trailing carriage return which upsets mingw 5147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5148 *) 5149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5150 esac 5151 case $ac_prog in 5152 # Accept absolute paths. 5153 [\\/]* | ?:[\\/]*) 5154 re_direlt='/[^/][^/]*/\.\./' 5155 # Canonicalize the pathname of ld 5156 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5157 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5158 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5159 done 5160 test -z "$LD" && LD="$ac_prog" 5161 ;; 5162 "") 5163 # If it fails, then pretend we aren't using GCC. 5164 ac_prog=ld 5165 ;; 5166 *) 5167 # If it is relative, then search for the first ld in PATH. 5168 with_gnu_ld=unknown 5169 ;; 5170 esac 5171elif test "$with_gnu_ld" = yes; then 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5173$as_echo_n "checking for GNU ld... " >&6; } 5174else 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5176$as_echo_n "checking for non-GNU ld... " >&6; } 5177fi 5178if ${lt_cv_path_LD+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 if test -z "$LD"; then 5182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5183 for ac_dir in $PATH; do 5184 IFS="$lt_save_ifs" 5185 test -z "$ac_dir" && ac_dir=. 5186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5187 lt_cv_path_LD="$ac_dir/$ac_prog" 5188 # Check to see if the program is GNU ld. I'd rather use --version, 5189 # but apparently some variants of GNU ld only accept -v. 5190 # Break only if it was the GNU/non-GNU ld that we prefer. 5191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5192 *GNU* | *'with BFD'*) 5193 test "$with_gnu_ld" != no && break 5194 ;; 5195 *) 5196 test "$with_gnu_ld" != yes && break 5197 ;; 5198 esac 5199 fi 5200 done 5201 IFS="$lt_save_ifs" 5202else 5203 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5204fi 5205fi 5206 5207LD="$lt_cv_path_LD" 5208if test -n "$LD"; then 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5210$as_echo "$LD" >&6; } 5211else 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5213$as_echo "no" >&6; } 5214fi 5215test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5217$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5218if ${lt_cv_prog_gnu_ld+:} false; then : 5219 $as_echo_n "(cached) " >&6 5220else 5221 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5222case `$LD -v 2>&1 </dev/null` in 5223*GNU* | *'with BFD'*) 5224 lt_cv_prog_gnu_ld=yes 5225 ;; 5226*) 5227 lt_cv_prog_gnu_ld=no 5228 ;; 5229esac 5230fi 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5232$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5233with_gnu_ld=$lt_cv_prog_gnu_ld 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5244$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5245if ${lt_cv_path_NM+:} false; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 if test -n "$NM"; then 5249 # Let the user override the test. 5250 lt_cv_path_NM="$NM" 5251else 5252 lt_nm_to_check="${ac_tool_prefix}nm" 5253 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5254 lt_nm_to_check="$lt_nm_to_check nm" 5255 fi 5256 for lt_tmp_nm in $lt_nm_to_check; do 5257 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5258 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5259 IFS="$lt_save_ifs" 5260 test -z "$ac_dir" && ac_dir=. 5261 tmp_nm="$ac_dir/$lt_tmp_nm" 5262 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5263 # Check to see if the nm accepts a BSD-compat flag. 5264 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5265 # nm: unknown option "B" ignored 5266 # Tru64's nm complains that /dev/null is an invalid object file 5267 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5268 */dev/null* | *'Invalid file or object type'*) 5269 lt_cv_path_NM="$tmp_nm -B" 5270 break 5271 ;; 5272 *) 5273 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5274 */dev/null*) 5275 lt_cv_path_NM="$tmp_nm -p" 5276 break 5277 ;; 5278 *) 5279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5280 continue # so that we can try to find one that supports BSD flags 5281 ;; 5282 esac 5283 ;; 5284 esac 5285 fi 5286 done 5287 IFS="$lt_save_ifs" 5288 done 5289 : ${lt_cv_path_NM=no} 5290fi 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5293$as_echo "$lt_cv_path_NM" >&6; } 5294if test "$lt_cv_path_NM" != "no"; then 5295 NM="$lt_cv_path_NM" 5296else 5297 # Didn't find any BSD compatible name lister, look for dumpbin. 5298 if test -n "$DUMPBIN"; then : 5299 # Let the user override the test. 5300 else 5301 if test -n "$ac_tool_prefix"; then 5302 for ac_prog in dumpbin "link -dump" 5303 do 5304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5305set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5307$as_echo_n "checking for $ac_word... " >&6; } 5308if ${ac_cv_prog_DUMPBIN+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 if test -n "$DUMPBIN"; then 5312 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5313else 5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5315for as_dir in $PATH 5316do 5317 IFS=$as_save_IFS 5318 test -z "$as_dir" && as_dir=. 5319 for ac_exec_ext in '' $ac_executable_extensions; do 5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5321 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5323 break 2 5324 fi 5325done 5326 done 5327IFS=$as_save_IFS 5328 5329fi 5330fi 5331DUMPBIN=$ac_cv_prog_DUMPBIN 5332if test -n "$DUMPBIN"; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5334$as_echo "$DUMPBIN" >&6; } 5335else 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5337$as_echo "no" >&6; } 5338fi 5339 5340 5341 test -n "$DUMPBIN" && break 5342 done 5343fi 5344if test -z "$DUMPBIN"; then 5345 ac_ct_DUMPBIN=$DUMPBIN 5346 for ac_prog in dumpbin "link -dump" 5347do 5348 # Extract the first word of "$ac_prog", so it can be a program name with args. 5349set dummy $ac_prog; ac_word=$2 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5351$as_echo_n "checking for $ac_word... " >&6; } 5352if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 if test -n "$ac_ct_DUMPBIN"; then 5356 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5357else 5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5359for as_dir in $PATH 5360do 5361 IFS=$as_save_IFS 5362 test -z "$as_dir" && as_dir=. 5363 for ac_exec_ext in '' $ac_executable_extensions; do 5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5365 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5367 break 2 5368 fi 5369done 5370 done 5371IFS=$as_save_IFS 5372 5373fi 5374fi 5375ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5376if test -n "$ac_ct_DUMPBIN"; then 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5378$as_echo "$ac_ct_DUMPBIN" >&6; } 5379else 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5381$as_echo "no" >&6; } 5382fi 5383 5384 5385 test -n "$ac_ct_DUMPBIN" && break 5386done 5387 5388 if test "x$ac_ct_DUMPBIN" = x; then 5389 DUMPBIN=":" 5390 else 5391 case $cross_compiling:$ac_tool_warned in 5392yes:) 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5395ac_tool_warned=yes ;; 5396esac 5397 DUMPBIN=$ac_ct_DUMPBIN 5398 fi 5399fi 5400 5401 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5402 *COFF*) 5403 DUMPBIN="$DUMPBIN -symbols" 5404 ;; 5405 *) 5406 DUMPBIN=: 5407 ;; 5408 esac 5409 fi 5410 5411 if test "$DUMPBIN" != ":"; then 5412 NM="$DUMPBIN" 5413 fi 5414fi 5415test -z "$NM" && NM=nm 5416 5417 5418 5419 5420 5421 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5423$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5424if ${lt_cv_nm_interface+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 lt_cv_nm_interface="BSD nm" 5428 echo "int some_variable = 0;" > conftest.$ac_ext 5429 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5430 (eval "$ac_compile" 2>conftest.err) 5431 cat conftest.err >&5 5432 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5433 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5434 cat conftest.err >&5 5435 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5436 cat conftest.out >&5 5437 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5438 lt_cv_nm_interface="MS dumpbin" 5439 fi 5440 rm -f conftest* 5441fi 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5443$as_echo "$lt_cv_nm_interface" >&6; } 5444 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5446$as_echo_n "checking whether ln -s works... " >&6; } 5447LN_S=$as_ln_s 5448if test "$LN_S" = "ln -s"; then 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5450$as_echo "yes" >&6; } 5451else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5453$as_echo "no, using $LN_S" >&6; } 5454fi 5455 5456# find the maximum length of command line arguments 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5458$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5459if ${lt_cv_sys_max_cmd_len+:} false; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 i=0 5463 teststring="ABCD" 5464 5465 case $build_os in 5466 msdosdjgpp*) 5467 # On DJGPP, this test can blow up pretty badly due to problems in libc 5468 # (any single argument exceeding 2000 bytes causes a buffer overrun 5469 # during glob expansion). Even if it were fixed, the result of this 5470 # check would be larger than it should be. 5471 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5472 ;; 5473 5474 gnu*) 5475 # Under GNU Hurd, this test is not required because there is 5476 # no limit to the length of command line arguments. 5477 # Libtool will interpret -1 as no limit whatsoever 5478 lt_cv_sys_max_cmd_len=-1; 5479 ;; 5480 5481 cygwin* | mingw* | cegcc*) 5482 # On Win9x/ME, this test blows up -- it succeeds, but takes 5483 # about 5 minutes as the teststring grows exponentially. 5484 # Worse, since 9x/ME are not pre-emptively multitasking, 5485 # you end up with a "frozen" computer, even though with patience 5486 # the test eventually succeeds (with a max line length of 256k). 5487 # Instead, let's just punt: use the minimum linelength reported by 5488 # all of the supported platforms: 8192 (on NT/2K/XP). 5489 lt_cv_sys_max_cmd_len=8192; 5490 ;; 5491 5492 mint*) 5493 # On MiNT this can take a long time and run out of memory. 5494 lt_cv_sys_max_cmd_len=8192; 5495 ;; 5496 5497 amigaos*) 5498 # On AmigaOS with pdksh, this test takes hours, literally. 5499 # So we just punt and use a minimum line length of 8192. 5500 lt_cv_sys_max_cmd_len=8192; 5501 ;; 5502 5503 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5504 # This has been around since 386BSD, at least. Likely further. 5505 if test -x /sbin/sysctl; then 5506 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5507 elif test -x /usr/sbin/sysctl; then 5508 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5509 else 5510 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5511 fi 5512 # And add a safety zone 5513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5515 ;; 5516 5517 interix*) 5518 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5519 lt_cv_sys_max_cmd_len=196608 5520 ;; 5521 5522 osf*) 5523 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5524 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5525 # nice to cause kernel panics so lets avoid the loop below. 5526 # First set a reasonable default. 5527 lt_cv_sys_max_cmd_len=16384 5528 # 5529 if test -x /sbin/sysconfig; then 5530 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5531 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5532 esac 5533 fi 5534 ;; 5535 sco3.2v5*) 5536 lt_cv_sys_max_cmd_len=102400 5537 ;; 5538 sysv5* | sco5v6* | sysv4.2uw2*) 5539 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5540 if test -n "$kargmax"; then 5541 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5542 else 5543 lt_cv_sys_max_cmd_len=32768 5544 fi 5545 ;; 5546 *) 5547 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5548 if test -n "$lt_cv_sys_max_cmd_len"; then 5549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5551 else 5552 # Make teststring a little bigger before we do anything with it. 5553 # a 1K string should be a reasonable start. 5554 for i in 1 2 3 4 5 6 7 8 ; do 5555 teststring=$teststring$teststring 5556 done 5557 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5558 # If test is not a shell built-in, we'll probably end up computing a 5559 # maximum length that is only half of the actual maximum length, but 5560 # we can't tell. 5561 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5562 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5563 test $i != 17 # 1/2 MB should be enough 5564 do 5565 i=`expr $i + 1` 5566 teststring=$teststring$teststring 5567 done 5568 # Only check the string length outside the loop. 5569 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5570 teststring= 5571 # Add a significant safety factor because C++ compilers can tack on 5572 # massive amounts of additional arguments before passing them to the 5573 # linker. It appears as though 1/2 is a usable value. 5574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5575 fi 5576 ;; 5577 esac 5578 5579fi 5580 5581if test -n $lt_cv_sys_max_cmd_len ; then 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5583$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5584else 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5586$as_echo "none" >&6; } 5587fi 5588max_cmd_len=$lt_cv_sys_max_cmd_len 5589 5590 5591 5592 5593 5594 5595: ${CP="cp -f"} 5596: ${MV="mv -f"} 5597: ${RM="rm -f"} 5598 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5600$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5601# Try some XSI features 5602xsi_shell=no 5603( _lt_dummy="a/b/c" 5604 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5605 = c,a/b,, \ 5606 && eval 'test $(( 1 + 1 )) -eq 2 \ 5607 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5608 && xsi_shell=yes 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5610$as_echo "$xsi_shell" >&6; } 5611 5612 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5614$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5615lt_shell_append=no 5616( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5617 >/dev/null 2>&1 \ 5618 && lt_shell_append=yes 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5620$as_echo "$lt_shell_append" >&6; } 5621 5622 5623if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5624 lt_unset=unset 5625else 5626 lt_unset=false 5627fi 5628 5629 5630 5631 5632 5633# test EBCDIC or ASCII 5634case `echo X|tr X '\101'` in 5635 A) # ASCII based system 5636 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5637 lt_SP2NL='tr \040 \012' 5638 lt_NL2SP='tr \015\012 \040\040' 5639 ;; 5640 *) # EBCDIC based system 5641 lt_SP2NL='tr \100 \n' 5642 lt_NL2SP='tr \r\n \100\100' 5643 ;; 5644esac 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5655$as_echo_n "checking for $LD option to reload object files... " >&6; } 5656if ${lt_cv_ld_reload_flag+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 lt_cv_ld_reload_flag='-r' 5660fi 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5662$as_echo "$lt_cv_ld_reload_flag" >&6; } 5663reload_flag=$lt_cv_ld_reload_flag 5664case $reload_flag in 5665"" | " "*) ;; 5666*) reload_flag=" $reload_flag" ;; 5667esac 5668reload_cmds='$LD$reload_flag -o $output$reload_objs' 5669case $host_os in 5670 darwin*) 5671 if test "$GCC" = yes; then 5672 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5673 else 5674 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5675 fi 5676 ;; 5677esac 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687if test -n "$ac_tool_prefix"; then 5688 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5689set dummy ${ac_tool_prefix}objdump; ac_word=$2 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5691$as_echo_n "checking for $ac_word... " >&6; } 5692if ${ac_cv_prog_OBJDUMP+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 if test -n "$OBJDUMP"; then 5696 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5697else 5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5699for as_dir in $PATH 5700do 5701 IFS=$as_save_IFS 5702 test -z "$as_dir" && as_dir=. 5703 for ac_exec_ext in '' $ac_executable_extensions; do 5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5705 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 break 2 5708 fi 5709done 5710 done 5711IFS=$as_save_IFS 5712 5713fi 5714fi 5715OBJDUMP=$ac_cv_prog_OBJDUMP 5716if test -n "$OBJDUMP"; then 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5718$as_echo "$OBJDUMP" >&6; } 5719else 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5721$as_echo "no" >&6; } 5722fi 5723 5724 5725fi 5726if test -z "$ac_cv_prog_OBJDUMP"; then 5727 ac_ct_OBJDUMP=$OBJDUMP 5728 # Extract the first word of "objdump", so it can be a program name with args. 5729set dummy objdump; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$ac_ct_OBJDUMP"; then 5736 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5745 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5756if test -n "$ac_ct_OBJDUMP"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5758$as_echo "$ac_ct_OBJDUMP" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 if test "x$ac_ct_OBJDUMP" = x; then 5765 OBJDUMP="false" 5766 else 5767 case $cross_compiling:$ac_tool_warned in 5768yes:) 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5771ac_tool_warned=yes ;; 5772esac 5773 OBJDUMP=$ac_ct_OBJDUMP 5774 fi 5775else 5776 OBJDUMP="$ac_cv_prog_OBJDUMP" 5777fi 5778 5779test -z "$OBJDUMP" && OBJDUMP=objdump 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5790$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5791if ${lt_cv_deplibs_check_method+:} false; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 lt_cv_file_magic_cmd='$MAGIC_CMD' 5795lt_cv_file_magic_test_file= 5796lt_cv_deplibs_check_method='unknown' 5797# Need to set the preceding variable on all platforms that support 5798# interlibrary dependencies. 5799# 'none' -- dependencies not supported. 5800# `unknown' -- same as none, but documents that we really don't know. 5801# 'pass_all' -- all dependencies passed with no checks. 5802# 'test_compile' -- check by making test program. 5803# 'file_magic [[regex]]' -- check by looking for files in library path 5804# which responds to the $file_magic_cmd with a given extended regex. 5805# If you have `file' or equivalent on your system and you're not sure 5806# whether `pass_all' will *always* work, you probably want this one. 5807 5808case $host_os in 5809aix[4-9]*) 5810 lt_cv_deplibs_check_method=pass_all 5811 ;; 5812 5813beos*) 5814 lt_cv_deplibs_check_method=pass_all 5815 ;; 5816 5817bsdi[45]*) 5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5819 lt_cv_file_magic_cmd='/usr/bin/file -L' 5820 lt_cv_file_magic_test_file=/shlib/libc.so 5821 ;; 5822 5823cygwin*) 5824 # func_win32_libid is a shell function defined in ltmain.sh 5825 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5826 lt_cv_file_magic_cmd='func_win32_libid' 5827 ;; 5828 5829mingw* | pw32*) 5830 # Base MSYS/MinGW do not provide the 'file' command needed by 5831 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5832 # unless we find 'file', for example because we are cross-compiling. 5833 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5834 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5836 lt_cv_file_magic_cmd='func_win32_libid' 5837 else 5838 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5839 lt_cv_file_magic_cmd='$OBJDUMP -f' 5840 fi 5841 ;; 5842 5843cegcc*) 5844 # use the weaker test based on 'objdump'. See mingw*. 5845 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5846 lt_cv_file_magic_cmd='$OBJDUMP -f' 5847 ;; 5848 5849darwin* | rhapsody*) 5850 lt_cv_deplibs_check_method=pass_all 5851 ;; 5852 5853freebsd* | dragonfly*) 5854 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5855 case $host_cpu in 5856 i*86 ) 5857 # Not sure whether the presence of OpenBSD here was a mistake. 5858 # Let's accept both of them until this is cleared up. 5859 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5860 lt_cv_file_magic_cmd=/usr/bin/file 5861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5862 ;; 5863 esac 5864 else 5865 lt_cv_deplibs_check_method=pass_all 5866 fi 5867 ;; 5868 5869gnu*) 5870 lt_cv_deplibs_check_method=pass_all 5871 ;; 5872 5873haiku*) 5874 lt_cv_deplibs_check_method=pass_all 5875 ;; 5876 5877hpux10.20* | hpux11*) 5878 lt_cv_file_magic_cmd=/usr/bin/file 5879 case $host_cpu in 5880 ia64*) 5881 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5882 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5883 ;; 5884 hppa*64*) 5885 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]' 5886 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5887 ;; 5888 *) 5889 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5890 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5891 ;; 5892 esac 5893 ;; 5894 5895interix[3-9]*) 5896 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5898 ;; 5899 5900irix5* | irix6* | nonstopux*) 5901 case $LD in 5902 *-32|*"-32 ") libmagic=32-bit;; 5903 *-n32|*"-n32 ") libmagic=N32;; 5904 *-64|*"-64 ") libmagic=64-bit;; 5905 *) libmagic=never-match;; 5906 esac 5907 lt_cv_deplibs_check_method=pass_all 5908 ;; 5909 5910# This must be Linux ELF. 5911linux* | k*bsd*-gnu | kopensolaris*-gnu) 5912 lt_cv_deplibs_check_method=pass_all 5913 ;; 5914 5915netbsd*) 5916 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5918 else 5919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5920 fi 5921 ;; 5922 5923newos6*) 5924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5925 lt_cv_file_magic_cmd=/usr/bin/file 5926 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5927 ;; 5928 5929*nto* | *qnx*) 5930 lt_cv_deplibs_check_method=pass_all 5931 ;; 5932 5933openbsd*) 5934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5936 else 5937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5938 fi 5939 ;; 5940 5941osf3* | osf4* | osf5*) 5942 lt_cv_deplibs_check_method=pass_all 5943 ;; 5944 5945rdos*) 5946 lt_cv_deplibs_check_method=pass_all 5947 ;; 5948 5949solaris*) 5950 lt_cv_deplibs_check_method=pass_all 5951 ;; 5952 5953sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5954 lt_cv_deplibs_check_method=pass_all 5955 ;; 5956 5957sysv4 | sysv4.3*) 5958 case $host_vendor in 5959 motorola) 5960 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]' 5961 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5962 ;; 5963 ncr) 5964 lt_cv_deplibs_check_method=pass_all 5965 ;; 5966 sequent) 5967 lt_cv_file_magic_cmd='/bin/file' 5968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5969 ;; 5970 sni) 5971 lt_cv_file_magic_cmd='/bin/file' 5972 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5973 lt_cv_file_magic_test_file=/lib/libc.so 5974 ;; 5975 siemens) 5976 lt_cv_deplibs_check_method=pass_all 5977 ;; 5978 pc) 5979 lt_cv_deplibs_check_method=pass_all 5980 ;; 5981 esac 5982 ;; 5983 5984tpf*) 5985 lt_cv_deplibs_check_method=pass_all 5986 ;; 5987esac 5988 5989fi 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5991$as_echo "$lt_cv_deplibs_check_method" >&6; } 5992file_magic_cmd=$lt_cv_file_magic_cmd 5993deplibs_check_method=$lt_cv_deplibs_check_method 5994test -z "$deplibs_check_method" && deplibs_check_method=unknown 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007if test -n "$ac_tool_prefix"; then 6008 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6009set dummy ${ac_tool_prefix}ar; ac_word=$2 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6011$as_echo_n "checking for $ac_word... " >&6; } 6012if ${ac_cv_prog_AR+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 if test -n "$AR"; then 6016 ac_cv_prog_AR="$AR" # Let the user override the test. 6017else 6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6019for as_dir in $PATH 6020do 6021 IFS=$as_save_IFS 6022 test -z "$as_dir" && as_dir=. 6023 for ac_exec_ext in '' $ac_executable_extensions; do 6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6025 ac_cv_prog_AR="${ac_tool_prefix}ar" 6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6027 break 2 6028 fi 6029done 6030 done 6031IFS=$as_save_IFS 6032 6033fi 6034fi 6035AR=$ac_cv_prog_AR 6036if test -n "$AR"; then 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6038$as_echo "$AR" >&6; } 6039else 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6041$as_echo "no" >&6; } 6042fi 6043 6044 6045fi 6046if test -z "$ac_cv_prog_AR"; then 6047 ac_ct_AR=$AR 6048 # Extract the first word of "ar", so it can be a program name with args. 6049set dummy ar; ac_word=$2 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6051$as_echo_n "checking for $ac_word... " >&6; } 6052if ${ac_cv_prog_ac_ct_AR+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 if test -n "$ac_ct_AR"; then 6056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6057else 6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6059for as_dir in $PATH 6060do 6061 IFS=$as_save_IFS 6062 test -z "$as_dir" && as_dir=. 6063 for ac_exec_ext in '' $ac_executable_extensions; do 6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6065 ac_cv_prog_ac_ct_AR="ar" 6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6067 break 2 6068 fi 6069done 6070 done 6071IFS=$as_save_IFS 6072 6073fi 6074fi 6075ac_ct_AR=$ac_cv_prog_ac_ct_AR 6076if test -n "$ac_ct_AR"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6078$as_echo "$ac_ct_AR" >&6; } 6079else 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6081$as_echo "no" >&6; } 6082fi 6083 6084 if test "x$ac_ct_AR" = x; then 6085 AR="false" 6086 else 6087 case $cross_compiling:$ac_tool_warned in 6088yes:) 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6091ac_tool_warned=yes ;; 6092esac 6093 AR=$ac_ct_AR 6094 fi 6095else 6096 AR="$ac_cv_prog_AR" 6097fi 6098 6099test -z "$AR" && AR=ar 6100test -z "$AR_FLAGS" && AR_FLAGS=cru 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112if test -n "$ac_tool_prefix"; then 6113 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6114set dummy ${ac_tool_prefix}strip; ac_word=$2 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6116$as_echo_n "checking for $ac_word... " >&6; } 6117if ${ac_cv_prog_STRIP+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119else 6120 if test -n "$STRIP"; then 6121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6122else 6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6124for as_dir in $PATH 6125do 6126 IFS=$as_save_IFS 6127 test -z "$as_dir" && as_dir=. 6128 for ac_exec_ext in '' $ac_executable_extensions; do 6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6130 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6132 break 2 6133 fi 6134done 6135 done 6136IFS=$as_save_IFS 6137 6138fi 6139fi 6140STRIP=$ac_cv_prog_STRIP 6141if test -n "$STRIP"; then 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6143$as_echo "$STRIP" >&6; } 6144else 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6146$as_echo "no" >&6; } 6147fi 6148 6149 6150fi 6151if test -z "$ac_cv_prog_STRIP"; then 6152 ac_ct_STRIP=$STRIP 6153 # Extract the first word of "strip", so it can be a program name with args. 6154set dummy strip; ac_word=$2 6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6156$as_echo_n "checking for $ac_word... " >&6; } 6157if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6158 $as_echo_n "(cached) " >&6 6159else 6160 if test -n "$ac_ct_STRIP"; then 6161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6162else 6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6164for as_dir in $PATH 6165do 6166 IFS=$as_save_IFS 6167 test -z "$as_dir" && as_dir=. 6168 for ac_exec_ext in '' $ac_executable_extensions; do 6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6170 ac_cv_prog_ac_ct_STRIP="strip" 6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6172 break 2 6173 fi 6174done 6175 done 6176IFS=$as_save_IFS 6177 6178fi 6179fi 6180ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6181if test -n "$ac_ct_STRIP"; then 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6183$as_echo "$ac_ct_STRIP" >&6; } 6184else 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6186$as_echo "no" >&6; } 6187fi 6188 6189 if test "x$ac_ct_STRIP" = x; then 6190 STRIP=":" 6191 else 6192 case $cross_compiling:$ac_tool_warned in 6193yes:) 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6196ac_tool_warned=yes ;; 6197esac 6198 STRIP=$ac_ct_STRIP 6199 fi 6200else 6201 STRIP="$ac_cv_prog_STRIP" 6202fi 6203 6204test -z "$STRIP" && STRIP=: 6205 6206 6207 6208 6209 6210 6211if test -n "$ac_tool_prefix"; then 6212 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6213set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6215$as_echo_n "checking for $ac_word... " >&6; } 6216if ${ac_cv_prog_RANLIB+:} false; then : 6217 $as_echo_n "(cached) " >&6 6218else 6219 if test -n "$RANLIB"; then 6220 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6221else 6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6223for as_dir in $PATH 6224do 6225 IFS=$as_save_IFS 6226 test -z "$as_dir" && as_dir=. 6227 for ac_exec_ext in '' $ac_executable_extensions; do 6228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6231 break 2 6232 fi 6233done 6234 done 6235IFS=$as_save_IFS 6236 6237fi 6238fi 6239RANLIB=$ac_cv_prog_RANLIB 6240if test -n "$RANLIB"; then 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6242$as_echo "$RANLIB" >&6; } 6243else 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6245$as_echo "no" >&6; } 6246fi 6247 6248 6249fi 6250if test -z "$ac_cv_prog_RANLIB"; then 6251 ac_ct_RANLIB=$RANLIB 6252 # Extract the first word of "ranlib", so it can be a program name with args. 6253set dummy ranlib; ac_word=$2 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6255$as_echo_n "checking for $ac_word... " >&6; } 6256if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 if test -n "$ac_ct_RANLIB"; then 6260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6261else 6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6263for as_dir in $PATH 6264do 6265 IFS=$as_save_IFS 6266 test -z "$as_dir" && as_dir=. 6267 for ac_exec_ext in '' $ac_executable_extensions; do 6268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6269 ac_cv_prog_ac_ct_RANLIB="ranlib" 6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6271 break 2 6272 fi 6273done 6274 done 6275IFS=$as_save_IFS 6276 6277fi 6278fi 6279ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6280if test -n "$ac_ct_RANLIB"; then 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6282$as_echo "$ac_ct_RANLIB" >&6; } 6283else 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6285$as_echo "no" >&6; } 6286fi 6287 6288 if test "x$ac_ct_RANLIB" = x; then 6289 RANLIB=":" 6290 else 6291 case $cross_compiling:$ac_tool_warned in 6292yes:) 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6295ac_tool_warned=yes ;; 6296esac 6297 RANLIB=$ac_ct_RANLIB 6298 fi 6299else 6300 RANLIB="$ac_cv_prog_RANLIB" 6301fi 6302 6303test -z "$RANLIB" && RANLIB=: 6304 6305 6306 6307 6308 6309 6310# Determine commands to create old-style static archives. 6311old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6312old_postinstall_cmds='chmod 644 $oldlib' 6313old_postuninstall_cmds= 6314 6315if test -n "$RANLIB"; then 6316 case $host_os in 6317 openbsd*) 6318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6319 ;; 6320 *) 6321 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6322 ;; 6323 esac 6324 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6325fi 6326 6327case $host_os in 6328 darwin*) 6329 lock_old_archive_extraction=yes ;; 6330 *) 6331 lock_old_archive_extraction=no ;; 6332esac 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372# If no C compiler was specified, use CC. 6373LTCC=${LTCC-"$CC"} 6374 6375# If no C compiler flags were specified, use CFLAGS. 6376LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6377 6378# Allow CC to be a program name with arguments. 6379compiler=$CC 6380 6381 6382# Check for command to grab the raw symbol name followed by C symbol from nm. 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6384$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6385if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 6389# These are sane defaults that work on at least a few old systems. 6390# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6391 6392# Character class describing NM global symbol codes. 6393symcode='[BCDEGRST]' 6394 6395# Regexp to match symbols that can be accessed directly from C. 6396sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6397 6398# Define system-specific variables. 6399case $host_os in 6400aix*) 6401 symcode='[BCDT]' 6402 ;; 6403cygwin* | mingw* | pw32* | cegcc*) 6404 symcode='[ABCDGISTW]' 6405 ;; 6406hpux*) 6407 if test "$host_cpu" = ia64; then 6408 symcode='[ABCDEGRST]' 6409 fi 6410 ;; 6411irix* | nonstopux*) 6412 symcode='[BCDEGRST]' 6413 ;; 6414osf*) 6415 symcode='[BCDEGQRST]' 6416 ;; 6417solaris*) 6418 symcode='[BDRT]' 6419 ;; 6420sco3.2v5*) 6421 symcode='[DT]' 6422 ;; 6423sysv4.2uw2*) 6424 symcode='[DT]' 6425 ;; 6426sysv5* | sco5v6* | unixware* | OpenUNIX*) 6427 symcode='[ABDT]' 6428 ;; 6429sysv4) 6430 symcode='[DFNSTU]' 6431 ;; 6432esac 6433 6434# If we're using GNU nm, then use its standard symbol codes. 6435case `$NM -V 2>&1` in 6436*GNU* | *'with BFD'*) 6437 symcode='[ABCDGIRSTW]' ;; 6438esac 6439 6440# Transform an extracted symbol line into a proper C declaration. 6441# Some systems (esp. on ia64) link data and code symbols differently, 6442# so use this general approach. 6443lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6444 6445# Transform an extracted symbol line into symbol name and symbol address 6446lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6447lt_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'" 6448 6449# Handle CRLF in mingw tool chain 6450opt_cr= 6451case $build_os in 6452mingw*) 6453 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6454 ;; 6455esac 6456 6457# Try without a prefix underscore, then with it. 6458for ac_symprfx in "" "_"; do 6459 6460 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6461 symxfrm="\\1 $ac_symprfx\\2 \\2" 6462 6463 # Write the raw and C identifiers. 6464 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6465 # Fake it for dumpbin and say T for any non-static function 6466 # and D for any global variable. 6467 # Also find C++ and __fastcall symbols from MSVC++, 6468 # which start with @ or ?. 6469 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6470" {last_section=section; section=\$ 3};"\ 6471" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6472" \$ 0!~/External *\|/{next};"\ 6473" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6474" {if(hide[section]) next};"\ 6475" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6476" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6477" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6478" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6479" ' prfx=^$ac_symprfx" 6480 else 6481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6482 fi 6483 6484 # Check to see that the pipe works correctly. 6485 pipe_works=no 6486 6487 rm -f conftest* 6488 cat > conftest.$ac_ext <<_LT_EOF 6489#ifdef __cplusplus 6490extern "C" { 6491#endif 6492char nm_test_var; 6493void nm_test_func(void); 6494void nm_test_func(void){} 6495#ifdef __cplusplus 6496} 6497#endif 6498int main(){nm_test_var='a';nm_test_func();return(0);} 6499_LT_EOF 6500 6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6502 (eval $ac_compile) 2>&5 6503 ac_status=$? 6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6505 test $ac_status = 0; }; then 6506 # Now try to grab the symbols. 6507 nlist=conftest.nm 6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6509 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6510 ac_status=$? 6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6512 test $ac_status = 0; } && test -s "$nlist"; then 6513 # Try sorting and uniquifying the output. 6514 if sort "$nlist" | uniq > "$nlist"T; then 6515 mv -f "$nlist"T "$nlist" 6516 else 6517 rm -f "$nlist"T 6518 fi 6519 6520 # Make sure that we snagged all the symbols we need. 6521 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6522 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6523 cat <<_LT_EOF > conftest.$ac_ext 6524#ifdef __cplusplus 6525extern "C" { 6526#endif 6527 6528_LT_EOF 6529 # Now generate the symbol file. 6530 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6531 6532 cat <<_LT_EOF >> conftest.$ac_ext 6533 6534/* The mapping between symbol names and symbols. */ 6535const struct { 6536 const char *name; 6537 void *address; 6538} 6539lt__PROGRAM__LTX_preloaded_symbols[] = 6540{ 6541 { "@PROGRAM@", (void *) 0 }, 6542_LT_EOF 6543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6544 cat <<\_LT_EOF >> conftest.$ac_ext 6545 {0, (void *) 0} 6546}; 6547 6548/* This works around a problem in FreeBSD linker */ 6549#ifdef FREEBSD_WORKAROUND 6550static const void *lt_preloaded_setup() { 6551 return lt__PROGRAM__LTX_preloaded_symbols; 6552} 6553#endif 6554 6555#ifdef __cplusplus 6556} 6557#endif 6558_LT_EOF 6559 # Now try linking the two files. 6560 mv conftest.$ac_objext conftstm.$ac_objext 6561 lt_save_LIBS="$LIBS" 6562 lt_save_CFLAGS="$CFLAGS" 6563 LIBS="conftstm.$ac_objext" 6564 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6566 (eval $ac_link) 2>&5 6567 ac_status=$? 6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6569 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6570 pipe_works=yes 6571 fi 6572 LIBS="$lt_save_LIBS" 6573 CFLAGS="$lt_save_CFLAGS" 6574 else 6575 echo "cannot find nm_test_func in $nlist" >&5 6576 fi 6577 else 6578 echo "cannot find nm_test_var in $nlist" >&5 6579 fi 6580 else 6581 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6582 fi 6583 else 6584 echo "$progname: failed program was:" >&5 6585 cat conftest.$ac_ext >&5 6586 fi 6587 rm -rf conftest* conftst* 6588 6589 # Do not use the global_symbol_pipe unless it works. 6590 if test "$pipe_works" = yes; then 6591 break 6592 else 6593 lt_cv_sys_global_symbol_pipe= 6594 fi 6595done 6596 6597fi 6598 6599if test -z "$lt_cv_sys_global_symbol_pipe"; then 6600 lt_cv_sys_global_symbol_to_cdecl= 6601fi 6602if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6604$as_echo "failed" >&6; } 6605else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6607$as_echo "ok" >&6; } 6608fi 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632# Check whether --enable-libtool-lock was given. 6633if test "${enable_libtool_lock+set}" = set; then : 6634 enableval=$enable_libtool_lock; 6635fi 6636 6637test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6638 6639# Some flags need to be propagated to the compiler or linker for good 6640# libtool support. 6641case $host in 6642ia64-*-hpux*) 6643 # Find out which ABI we are using. 6644 echo 'int i;' > conftest.$ac_ext 6645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6646 (eval $ac_compile) 2>&5 6647 ac_status=$? 6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6649 test $ac_status = 0; }; then 6650 case `/usr/bin/file conftest.$ac_objext` in 6651 *ELF-32*) 6652 HPUX_IA64_MODE="32" 6653 ;; 6654 *ELF-64*) 6655 HPUX_IA64_MODE="64" 6656 ;; 6657 esac 6658 fi 6659 rm -rf conftest* 6660 ;; 6661*-*-irix6*) 6662 # Find out which ABI we are using. 6663 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6665 (eval $ac_compile) 2>&5 6666 ac_status=$? 6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6668 test $ac_status = 0; }; then 6669 if test "$lt_cv_prog_gnu_ld" = yes; then 6670 case `/usr/bin/file conftest.$ac_objext` in 6671 *32-bit*) 6672 LD="${LD-ld} -melf32bsmip" 6673 ;; 6674 *N32*) 6675 LD="${LD-ld} -melf32bmipn32" 6676 ;; 6677 *64-bit*) 6678 LD="${LD-ld} -melf64bmip" 6679 ;; 6680 esac 6681 else 6682 case `/usr/bin/file conftest.$ac_objext` in 6683 *32-bit*) 6684 LD="${LD-ld} -32" 6685 ;; 6686 *N32*) 6687 LD="${LD-ld} -n32" 6688 ;; 6689 *64-bit*) 6690 LD="${LD-ld} -64" 6691 ;; 6692 esac 6693 fi 6694 fi 6695 rm -rf conftest* 6696 ;; 6697 6698x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6699s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6700 # Find out which ABI we are using. 6701 echo 'int i;' > conftest.$ac_ext 6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6703 (eval $ac_compile) 2>&5 6704 ac_status=$? 6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6706 test $ac_status = 0; }; then 6707 case `/usr/bin/file conftest.o` in 6708 *32-bit*) 6709 case $host in 6710 x86_64-*kfreebsd*-gnu) 6711 LD="${LD-ld} -m elf_i386_fbsd" 6712 ;; 6713 x86_64-*linux*) 6714 case `/usr/bin/file conftest.o` in 6715 *x86-64*) 6716 LD="${LD-ld} -m elf32_x86_64" 6717 ;; 6718 *) 6719 LD="${LD-ld} -m elf_i386" 6720 ;; 6721 esac 6722 ;; 6723 powerpc64le-*linux*) 6724 LD="${LD-ld} -m elf32lppclinux" 6725 ;; 6726 powerpc64-*linux*) 6727 LD="${LD-ld} -m elf32ppclinux" 6728 ;; 6729 s390x-*linux*) 6730 LD="${LD-ld} -m elf_s390" 6731 ;; 6732 sparc64-*linux*) 6733 LD="${LD-ld} -m elf32_sparc" 6734 ;; 6735 esac 6736 ;; 6737 *64-bit*) 6738 case $host in 6739 x86_64-*kfreebsd*-gnu) 6740 LD="${LD-ld} -m elf_x86_64_fbsd" 6741 ;; 6742 x86_64-*linux*) 6743 LD="${LD-ld} -m elf_x86_64" 6744 ;; 6745 powerpcle-*linux*) 6746 LD="${LD-ld} -m elf64lppc" 6747 ;; 6748 powerpc-*linux*) 6749 LD="${LD-ld} -m elf64ppc" 6750 ;; 6751 s390*-*linux*|s390*-*tpf*) 6752 LD="${LD-ld} -m elf64_s390" 6753 ;; 6754 sparc*-*linux*) 6755 LD="${LD-ld} -m elf64_sparc" 6756 ;; 6757 esac 6758 ;; 6759 esac 6760 fi 6761 rm -rf conftest* 6762 ;; 6763 6764*-*-sco3.2v5*) 6765 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6766 SAVE_CFLAGS="$CFLAGS" 6767 CFLAGS="$CFLAGS -belf" 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6769$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6770if ${lt_cv_cc_needs_belf+:} false; then : 6771 $as_echo_n "(cached) " >&6 6772else 6773 ac_ext=c 6774ac_cpp='$CPP $CPPFLAGS' 6775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6777ac_compiler_gnu=$ac_cv_c_compiler_gnu 6778 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781 6782int 6783main () 6784{ 6785 6786 ; 6787 return 0; 6788} 6789_ACEOF 6790if ac_fn_c_try_link "$LINENO"; then : 6791 lt_cv_cc_needs_belf=yes 6792else 6793 lt_cv_cc_needs_belf=no 6794fi 6795rm -f core conftest.err conftest.$ac_objext \ 6796 conftest$ac_exeext conftest.$ac_ext 6797 ac_ext=c 6798ac_cpp='$CPP $CPPFLAGS' 6799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6801ac_compiler_gnu=$ac_cv_c_compiler_gnu 6802 6803fi 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6805$as_echo "$lt_cv_cc_needs_belf" >&6; } 6806 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6807 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6808 CFLAGS="$SAVE_CFLAGS" 6809 fi 6810 ;; 6811sparc*-*solaris*) 6812 # Find out which ABI we are using. 6813 echo 'int i;' > conftest.$ac_ext 6814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6815 (eval $ac_compile) 2>&5 6816 ac_status=$? 6817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6818 test $ac_status = 0; }; then 6819 case `/usr/bin/file conftest.o` in 6820 *64-bit*) 6821 case $lt_cv_prog_gnu_ld in 6822 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6823 *) 6824 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6825 LD="${LD-ld} -64" 6826 fi 6827 ;; 6828 esac 6829 ;; 6830 esac 6831 fi 6832 rm -rf conftest* 6833 ;; 6834esac 6835 6836need_locks="$enable_libtool_lock" 6837 6838 6839 case $host_os in 6840 rhapsody* | darwin*) 6841 if test -n "$ac_tool_prefix"; then 6842 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6843set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6845$as_echo_n "checking for $ac_word... " >&6; } 6846if ${ac_cv_prog_DSYMUTIL+:} false; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 if test -n "$DSYMUTIL"; then 6850 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6851else 6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6853for as_dir in $PATH 6854do 6855 IFS=$as_save_IFS 6856 test -z "$as_dir" && as_dir=. 6857 for ac_exec_ext in '' $ac_executable_extensions; do 6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6859 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6861 break 2 6862 fi 6863done 6864 done 6865IFS=$as_save_IFS 6866 6867fi 6868fi 6869DSYMUTIL=$ac_cv_prog_DSYMUTIL 6870if test -n "$DSYMUTIL"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6872$as_echo "$DSYMUTIL" >&6; } 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877 6878 6879fi 6880if test -z "$ac_cv_prog_DSYMUTIL"; then 6881 ac_ct_DSYMUTIL=$DSYMUTIL 6882 # Extract the first word of "dsymutil", so it can be a program name with args. 6883set dummy dsymutil; ac_word=$2 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885$as_echo_n "checking for $ac_word... " >&6; } 6886if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 if test -n "$ac_ct_DSYMUTIL"; then 6890 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6891else 6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6893for as_dir in $PATH 6894do 6895 IFS=$as_save_IFS 6896 test -z "$as_dir" && as_dir=. 6897 for ac_exec_ext in '' $ac_executable_extensions; do 6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6899 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6901 break 2 6902 fi 6903done 6904 done 6905IFS=$as_save_IFS 6906 6907fi 6908fi 6909ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6910if test -n "$ac_ct_DSYMUTIL"; then 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6912$as_echo "$ac_ct_DSYMUTIL" >&6; } 6913else 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6915$as_echo "no" >&6; } 6916fi 6917 6918 if test "x$ac_ct_DSYMUTIL" = x; then 6919 DSYMUTIL=":" 6920 else 6921 case $cross_compiling:$ac_tool_warned in 6922yes:) 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6925ac_tool_warned=yes ;; 6926esac 6927 DSYMUTIL=$ac_ct_DSYMUTIL 6928 fi 6929else 6930 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6931fi 6932 6933 if test -n "$ac_tool_prefix"; then 6934 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6935set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6937$as_echo_n "checking for $ac_word... " >&6; } 6938if ${ac_cv_prog_NMEDIT+:} false; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 if test -n "$NMEDIT"; then 6942 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6943else 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6951 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956 done 6957IFS=$as_save_IFS 6958 6959fi 6960fi 6961NMEDIT=$ac_cv_prog_NMEDIT 6962if test -n "$NMEDIT"; then 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6964$as_echo "$NMEDIT" >&6; } 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 6971fi 6972if test -z "$ac_cv_prog_NMEDIT"; then 6973 ac_ct_NMEDIT=$NMEDIT 6974 # Extract the first word of "nmedit", so it can be a program name with args. 6975set dummy nmedit; ac_word=$2 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6977$as_echo_n "checking for $ac_word... " >&6; } 6978if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 if test -n "$ac_ct_NMEDIT"; then 6982 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6983else 6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6985for as_dir in $PATH 6986do 6987 IFS=$as_save_IFS 6988 test -z "$as_dir" && as_dir=. 6989 for ac_exec_ext in '' $ac_executable_extensions; do 6990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6991 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6993 break 2 6994 fi 6995done 6996 done 6997IFS=$as_save_IFS 6998 6999fi 7000fi 7001ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7002if test -n "$ac_ct_NMEDIT"; then 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7004$as_echo "$ac_ct_NMEDIT" >&6; } 7005else 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7007$as_echo "no" >&6; } 7008fi 7009 7010 if test "x$ac_ct_NMEDIT" = x; then 7011 NMEDIT=":" 7012 else 7013 case $cross_compiling:$ac_tool_warned in 7014yes:) 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7017ac_tool_warned=yes ;; 7018esac 7019 NMEDIT=$ac_ct_NMEDIT 7020 fi 7021else 7022 NMEDIT="$ac_cv_prog_NMEDIT" 7023fi 7024 7025 if test -n "$ac_tool_prefix"; then 7026 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7027set dummy ${ac_tool_prefix}lipo; ac_word=$2 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7029$as_echo_n "checking for $ac_word... " >&6; } 7030if ${ac_cv_prog_LIPO+:} false; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 if test -n "$LIPO"; then 7034 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7035else 7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037for as_dir in $PATH 7038do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7043 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047done 7048 done 7049IFS=$as_save_IFS 7050 7051fi 7052fi 7053LIPO=$ac_cv_prog_LIPO 7054if test -n "$LIPO"; then 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7056$as_echo "$LIPO" >&6; } 7057else 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7059$as_echo "no" >&6; } 7060fi 7061 7062 7063fi 7064if test -z "$ac_cv_prog_LIPO"; then 7065 ac_ct_LIPO=$LIPO 7066 # Extract the first word of "lipo", so it can be a program name with args. 7067set dummy lipo; ac_word=$2 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7069$as_echo_n "checking for $ac_word... " >&6; } 7070if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 if test -n "$ac_ct_LIPO"; then 7074 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7075else 7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077for as_dir in $PATH 7078do 7079 IFS=$as_save_IFS 7080 test -z "$as_dir" && as_dir=. 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7083 ac_cv_prog_ac_ct_LIPO="lipo" 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087done 7088 done 7089IFS=$as_save_IFS 7090 7091fi 7092fi 7093ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7094if test -n "$ac_ct_LIPO"; then 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7096$as_echo "$ac_ct_LIPO" >&6; } 7097else 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7099$as_echo "no" >&6; } 7100fi 7101 7102 if test "x$ac_ct_LIPO" = x; then 7103 LIPO=":" 7104 else 7105 case $cross_compiling:$ac_tool_warned in 7106yes:) 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7109ac_tool_warned=yes ;; 7110esac 7111 LIPO=$ac_ct_LIPO 7112 fi 7113else 7114 LIPO="$ac_cv_prog_LIPO" 7115fi 7116 7117 if test -n "$ac_tool_prefix"; then 7118 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7119set dummy ${ac_tool_prefix}otool; ac_word=$2 7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7121$as_echo_n "checking for $ac_word... " >&6; } 7122if ${ac_cv_prog_OTOOL+:} false; then : 7123 $as_echo_n "(cached) " >&6 7124else 7125 if test -n "$OTOOL"; then 7126 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7127else 7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7129for as_dir in $PATH 7130do 7131 IFS=$as_save_IFS 7132 test -z "$as_dir" && as_dir=. 7133 for ac_exec_ext in '' $ac_executable_extensions; do 7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7135 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7137 break 2 7138 fi 7139done 7140 done 7141IFS=$as_save_IFS 7142 7143fi 7144fi 7145OTOOL=$ac_cv_prog_OTOOL 7146if test -n "$OTOOL"; then 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7148$as_echo "$OTOOL" >&6; } 7149else 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7151$as_echo "no" >&6; } 7152fi 7153 7154 7155fi 7156if test -z "$ac_cv_prog_OTOOL"; then 7157 ac_ct_OTOOL=$OTOOL 7158 # Extract the first word of "otool", so it can be a program name with args. 7159set dummy otool; ac_word=$2 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7161$as_echo_n "checking for $ac_word... " >&6; } 7162if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 if test -n "$ac_ct_OTOOL"; then 7166 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7175 ac_cv_prog_ac_ct_OTOOL="otool" 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180 done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7186if test -n "$ac_ct_OTOOL"; then 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7188$as_echo "$ac_ct_OTOOL" >&6; } 7189else 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7191$as_echo "no" >&6; } 7192fi 7193 7194 if test "x$ac_ct_OTOOL" = x; then 7195 OTOOL=":" 7196 else 7197 case $cross_compiling:$ac_tool_warned in 7198yes:) 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7201ac_tool_warned=yes ;; 7202esac 7203 OTOOL=$ac_ct_OTOOL 7204 fi 7205else 7206 OTOOL="$ac_cv_prog_OTOOL" 7207fi 7208 7209 if test -n "$ac_tool_prefix"; then 7210 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7211set dummy ${ac_tool_prefix}otool64; ac_word=$2 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7213$as_echo_n "checking for $ac_word... " >&6; } 7214if ${ac_cv_prog_OTOOL64+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 if test -n "$OTOOL64"; then 7218 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7219else 7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7221for as_dir in $PATH 7222do 7223 IFS=$as_save_IFS 7224 test -z "$as_dir" && as_dir=. 7225 for ac_exec_ext in '' $ac_executable_extensions; do 7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7227 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7229 break 2 7230 fi 7231done 7232 done 7233IFS=$as_save_IFS 7234 7235fi 7236fi 7237OTOOL64=$ac_cv_prog_OTOOL64 7238if test -n "$OTOOL64"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7240$as_echo "$OTOOL64" >&6; } 7241else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243$as_echo "no" >&6; } 7244fi 7245 7246 7247fi 7248if test -z "$ac_cv_prog_OTOOL64"; then 7249 ac_ct_OTOOL64=$OTOOL64 7250 # Extract the first word of "otool64", so it can be a program name with args. 7251set dummy otool64; ac_word=$2 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7253$as_echo_n "checking for $ac_word... " >&6; } 7254if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 if test -n "$ac_ct_OTOOL64"; then 7258 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7259else 7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261for as_dir in $PATH 7262do 7263 IFS=$as_save_IFS 7264 test -z "$as_dir" && as_dir=. 7265 for ac_exec_ext in '' $ac_executable_extensions; do 7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7267 ac_cv_prog_ac_ct_OTOOL64="otool64" 7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7269 break 2 7270 fi 7271done 7272 done 7273IFS=$as_save_IFS 7274 7275fi 7276fi 7277ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7278if test -n "$ac_ct_OTOOL64"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7280$as_echo "$ac_ct_OTOOL64" >&6; } 7281else 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7283$as_echo "no" >&6; } 7284fi 7285 7286 if test "x$ac_ct_OTOOL64" = x; then 7287 OTOOL64=":" 7288 else 7289 case $cross_compiling:$ac_tool_warned in 7290yes:) 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7293ac_tool_warned=yes ;; 7294esac 7295 OTOOL64=$ac_ct_OTOOL64 7296 fi 7297else 7298 OTOOL64="$ac_cv_prog_OTOOL64" 7299fi 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7328$as_echo_n "checking for -single_module linker flag... " >&6; } 7329if ${lt_cv_apple_cc_single_mod+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 lt_cv_apple_cc_single_mod=no 7333 if test -z "${LT_MULTI_MODULE}"; then 7334 # By default we will add the -single_module flag. You can override 7335 # by either setting the environment variable LT_MULTI_MODULE 7336 # non-empty at configure time, or by adding -multi_module to the 7337 # link flags. 7338 rm -rf libconftest.dylib* 7339 echo "int foo(void){return 1;}" > conftest.c 7340 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7341-dynamiclib -Wl,-single_module conftest.c" >&5 7342 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7343 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7344 _lt_result=$? 7345 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7346 lt_cv_apple_cc_single_mod=yes 7347 else 7348 cat conftest.err >&5 7349 fi 7350 rm -rf libconftest.dylib* 7351 rm -f conftest.* 7352 fi 7353fi 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7355$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7357$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7358if ${lt_cv_ld_exported_symbols_list+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 lt_cv_ld_exported_symbols_list=no 7362 save_LDFLAGS=$LDFLAGS 7363 echo "_main" > conftest.sym 7364 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367 7368int 7369main () 7370{ 7371 7372 ; 7373 return 0; 7374} 7375_ACEOF 7376if ac_fn_c_try_link "$LINENO"; then : 7377 lt_cv_ld_exported_symbols_list=yes 7378else 7379 lt_cv_ld_exported_symbols_list=no 7380fi 7381rm -f core conftest.err conftest.$ac_objext \ 7382 conftest$ac_exeext conftest.$ac_ext 7383 LDFLAGS="$save_LDFLAGS" 7384 7385fi 7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7387$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7389$as_echo_n "checking for -force_load linker flag... " >&6; } 7390if ${lt_cv_ld_force_load+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392else 7393 lt_cv_ld_force_load=no 7394 cat > conftest.c << _LT_EOF 7395int forced_loaded() { return 2;} 7396_LT_EOF 7397 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7398 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7399 echo "$AR cru libconftest.a conftest.o" >&5 7400 $AR cru libconftest.a conftest.o 2>&5 7401 cat > conftest.c << _LT_EOF 7402int main() { return 0;} 7403_LT_EOF 7404 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7405 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7406 _lt_result=$? 7407 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7408 lt_cv_ld_force_load=yes 7409 else 7410 cat conftest.err >&5 7411 fi 7412 rm -f conftest.err libconftest.a conftest conftest.c 7413 rm -rf conftest.dSYM 7414 7415fi 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7417$as_echo "$lt_cv_ld_force_load" >&6; } 7418 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7419 # build without first building modern cctools / linker. 7420 case $host_cpu-$host_os in 7421 *-rhapsody* | *-darwin1.[012]) 7422 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7423 *-darwin1.*) 7424 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7425 *-darwin*) 7426 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7427 # deployment target is forced to an earlier version. 7428 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7429 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7430 ;; 7431 10.[012][,.]*) 7432 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7433 ;; 7434 *) 7435 ;; 7436 esac 7437 ;; 7438 esac 7439 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7440 _lt_dar_single_mod='$single_module' 7441 fi 7442 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7443 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7444 else 7445 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7446 fi 7447 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7448 _lt_dsymutil='~$DSYMUTIL $lib || :' 7449 else 7450 _lt_dsymutil= 7451 fi 7452 ;; 7453 esac 7454 7455ac_ext=c 7456ac_cpp='$CPP $CPPFLAGS' 7457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7459ac_compiler_gnu=$ac_cv_c_compiler_gnu 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7461$as_echo_n "checking how to run the C preprocessor... " >&6; } 7462# On Suns, sometimes $CPP names a directory. 7463if test -n "$CPP" && test -d "$CPP"; then 7464 CPP= 7465fi 7466if test -z "$CPP"; then 7467 if ${ac_cv_prog_CPP+:} false; then : 7468 $as_echo_n "(cached) " >&6 7469else 7470 # Double quotes because CPP needs to be expanded 7471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7472 do 7473 ac_preproc_ok=false 7474for ac_c_preproc_warn_flag in '' yes 7475do 7476 # Use a header file that comes with gcc, so configuring glibc 7477 # with a fresh cross-compiler works. 7478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7479 # <limits.h> exists even on freestanding compilers. 7480 # On the NeXT, cc -E runs the code through the compiler's parser, 7481 # not just through cpp. "Syntax error" is here to catch this case. 7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7483/* end confdefs.h. */ 7484#ifdef __STDC__ 7485# include <limits.h> 7486#else 7487# include <assert.h> 7488#endif 7489 Syntax error 7490_ACEOF 7491if ac_fn_c_try_cpp "$LINENO"; then : 7492 7493else 7494 # Broken: fails on valid input. 7495continue 7496fi 7497rm -f conftest.err conftest.i conftest.$ac_ext 7498 7499 # OK, works on sane cases. Now check whether nonexistent headers 7500 # can be detected and how. 7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7502/* end confdefs.h. */ 7503#include <ac_nonexistent.h> 7504_ACEOF 7505if ac_fn_c_try_cpp "$LINENO"; then : 7506 # Broken: success on invalid input. 7507continue 7508else 7509 # Passes both tests. 7510ac_preproc_ok=: 7511break 7512fi 7513rm -f conftest.err conftest.i conftest.$ac_ext 7514 7515done 7516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7517rm -f conftest.i conftest.err conftest.$ac_ext 7518if $ac_preproc_ok; then : 7519 break 7520fi 7521 7522 done 7523 ac_cv_prog_CPP=$CPP 7524 7525fi 7526 CPP=$ac_cv_prog_CPP 7527else 7528 ac_cv_prog_CPP=$CPP 7529fi 7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7531$as_echo "$CPP" >&6; } 7532ac_preproc_ok=false 7533for ac_c_preproc_warn_flag in '' yes 7534do 7535 # Use a header file that comes with gcc, so configuring glibc 7536 # with a fresh cross-compiler works. 7537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7538 # <limits.h> exists even on freestanding compilers. 7539 # On the NeXT, cc -E runs the code through the compiler's parser, 7540 # not just through cpp. "Syntax error" is here to catch this case. 7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542/* end confdefs.h. */ 7543#ifdef __STDC__ 7544# include <limits.h> 7545#else 7546# include <assert.h> 7547#endif 7548 Syntax error 7549_ACEOF 7550if ac_fn_c_try_cpp "$LINENO"; then : 7551 7552else 7553 # Broken: fails on valid input. 7554continue 7555fi 7556rm -f conftest.err conftest.i conftest.$ac_ext 7557 7558 # OK, works on sane cases. Now check whether nonexistent headers 7559 # can be detected and how. 7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7561/* end confdefs.h. */ 7562#include <ac_nonexistent.h> 7563_ACEOF 7564if ac_fn_c_try_cpp "$LINENO"; then : 7565 # Broken: success on invalid input. 7566continue 7567else 7568 # Passes both tests. 7569ac_preproc_ok=: 7570break 7571fi 7572rm -f conftest.err conftest.i conftest.$ac_ext 7573 7574done 7575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7576rm -f conftest.i conftest.err conftest.$ac_ext 7577if $ac_preproc_ok; then : 7578 7579else 7580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7582as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7583See \`config.log' for more details" "$LINENO" 5; } 7584fi 7585 7586ac_ext=c 7587ac_cpp='$CPP $CPPFLAGS' 7588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7590ac_compiler_gnu=$ac_cv_c_compiler_gnu 7591 7592 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7594$as_echo_n "checking for ANSI C header files... " >&6; } 7595if ${ac_cv_header_stdc+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600#include <stdlib.h> 7601#include <stdarg.h> 7602#include <string.h> 7603#include <float.h> 7604 7605int 7606main () 7607{ 7608 7609 ; 7610 return 0; 7611} 7612_ACEOF 7613if ac_fn_c_try_compile "$LINENO"; then : 7614 ac_cv_header_stdc=yes 7615else 7616 ac_cv_header_stdc=no 7617fi 7618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7619 7620if test $ac_cv_header_stdc = yes; then 7621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7623/* end confdefs.h. */ 7624#include <string.h> 7625 7626_ACEOF 7627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7628 $EGREP "memchr" >/dev/null 2>&1; then : 7629 7630else 7631 ac_cv_header_stdc=no 7632fi 7633rm -f conftest* 7634 7635fi 7636 7637if test $ac_cv_header_stdc = yes; then 7638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641#include <stdlib.h> 7642 7643_ACEOF 7644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7645 $EGREP "free" >/dev/null 2>&1; then : 7646 7647else 7648 ac_cv_header_stdc=no 7649fi 7650rm -f conftest* 7651 7652fi 7653 7654if test $ac_cv_header_stdc = yes; then 7655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7656 if test "$cross_compiling" = yes; then : 7657 : 7658else 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660/* end confdefs.h. */ 7661#include <ctype.h> 7662#include <stdlib.h> 7663#if ((' ' & 0x0FF) == 0x020) 7664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7666#else 7667# define ISLOWER(c) \ 7668 (('a' <= (c) && (c) <= 'i') \ 7669 || ('j' <= (c) && (c) <= 'r') \ 7670 || ('s' <= (c) && (c) <= 'z')) 7671# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7672#endif 7673 7674#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7675int 7676main () 7677{ 7678 int i; 7679 for (i = 0; i < 256; i++) 7680 if (XOR (islower (i), ISLOWER (i)) 7681 || toupper (i) != TOUPPER (i)) 7682 return 2; 7683 return 0; 7684} 7685_ACEOF 7686if ac_fn_c_try_run "$LINENO"; then : 7687 7688else 7689 ac_cv_header_stdc=no 7690fi 7691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7692 conftest.$ac_objext conftest.beam conftest.$ac_ext 7693fi 7694 7695fi 7696fi 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7698$as_echo "$ac_cv_header_stdc" >&6; } 7699if test $ac_cv_header_stdc = yes; then 7700 7701$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7702 7703fi 7704 7705# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7706for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7707 inttypes.h stdint.h unistd.h 7708do : 7709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7710ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7711" 7712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7713 cat >>confdefs.h <<_ACEOF 7714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7715_ACEOF 7716 7717fi 7718 7719done 7720 7721 7722for ac_header in dlfcn.h 7723do : 7724 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7725" 7726if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7727 cat >>confdefs.h <<_ACEOF 7728#define HAVE_DLFCN_H 1 7729_ACEOF 7730 7731fi 7732 7733done 7734 7735 7736 7737 7738 7739 7740# Set options 7741 7742 7743 7744 7745 enable_win32_dll=no 7746 7747 7748 # Check whether --enable-shared was given. 7749if test "${enable_shared+set}" = set; then : 7750 enableval=$enable_shared; p=${PACKAGE-default} 7751 case $enableval in 7752 yes) enable_shared=yes ;; 7753 no) enable_shared=no ;; 7754 *) 7755 enable_shared=no 7756 # Look at the argument we got. We use all the common list separators. 7757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7758 for pkg in $enableval; do 7759 IFS="$lt_save_ifs" 7760 if test "X$pkg" = "X$p"; then 7761 enable_shared=yes 7762 fi 7763 done 7764 IFS="$lt_save_ifs" 7765 ;; 7766 esac 7767else 7768 enable_shared=yes 7769fi 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 # Check whether --enable-static was given. 7780if test "${enable_static+set}" = set; then : 7781 enableval=$enable_static; p=${PACKAGE-default} 7782 case $enableval in 7783 yes) enable_static=yes ;; 7784 no) enable_static=no ;; 7785 *) 7786 enable_static=no 7787 # Look at the argument we got. We use all the common list separators. 7788 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7789 for pkg in $enableval; do 7790 IFS="$lt_save_ifs" 7791 if test "X$pkg" = "X$p"; then 7792 enable_static=yes 7793 fi 7794 done 7795 IFS="$lt_save_ifs" 7796 ;; 7797 esac 7798else 7799 enable_static=yes 7800fi 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811# Check whether --with-pic was given. 7812if test "${with_pic+set}" = set; then : 7813 withval=$with_pic; pic_mode="$withval" 7814else 7815 pic_mode=default 7816fi 7817 7818 7819test -z "$pic_mode" && pic_mode=default 7820 7821 7822 7823 7824 7825 7826 7827 # Check whether --enable-fast-install was given. 7828if test "${enable_fast_install+set}" = set; then : 7829 enableval=$enable_fast_install; p=${PACKAGE-default} 7830 case $enableval in 7831 yes) enable_fast_install=yes ;; 7832 no) enable_fast_install=no ;; 7833 *) 7834 enable_fast_install=no 7835 # Look at the argument we got. We use all the common list separators. 7836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7837 for pkg in $enableval; do 7838 IFS="$lt_save_ifs" 7839 if test "X$pkg" = "X$p"; then 7840 enable_fast_install=yes 7841 fi 7842 done 7843 IFS="$lt_save_ifs" 7844 ;; 7845 esac 7846else 7847 enable_fast_install=yes 7848fi 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860# This can be used to rebuild libtool when needed 7861LIBTOOL_DEPS="$ltmain" 7862 7863# Always use our own libtool. 7864LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891test -z "$LN_S" && LN_S="ln -s" 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906if test -n "${ZSH_VERSION+set}" ; then 7907 setopt NO_GLOB_SUBST 7908fi 7909 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7911$as_echo_n "checking for objdir... " >&6; } 7912if ${lt_cv_objdir+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 rm -f .libs 2>/dev/null 7916mkdir .libs 2>/dev/null 7917if test -d .libs; then 7918 lt_cv_objdir=.libs 7919else 7920 # MS-DOS does not allow filenames that begin with a dot. 7921 lt_cv_objdir=_libs 7922fi 7923rmdir .libs 2>/dev/null 7924fi 7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7926$as_echo "$lt_cv_objdir" >&6; } 7927objdir=$lt_cv_objdir 7928 7929 7930 7931 7932 7933cat >>confdefs.h <<_ACEOF 7934#define LT_OBJDIR "$lt_cv_objdir/" 7935_ACEOF 7936 7937 7938 7939 7940case $host_os in 7941aix3*) 7942 # AIX sometimes has problems with the GCC collect2 program. For some 7943 # reason, if we set the COLLECT_NAMES environment variable, the problems 7944 # vanish in a puff of smoke. 7945 if test "X${COLLECT_NAMES+set}" != Xset; then 7946 COLLECT_NAMES= 7947 export COLLECT_NAMES 7948 fi 7949 ;; 7950esac 7951 7952# Global variables: 7953ofile=libtool 7954can_build_shared=yes 7955 7956# All known linkers require a `.a' archive for static linking (except MSVC, 7957# which needs '.lib'). 7958libext=a 7959 7960with_gnu_ld="$lt_cv_prog_gnu_ld" 7961 7962old_CC="$CC" 7963old_CFLAGS="$CFLAGS" 7964 7965# Set sane defaults for various variables 7966test -z "$CC" && CC=cc 7967test -z "$LTCC" && LTCC=$CC 7968test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7969test -z "$LD" && LD=ld 7970test -z "$ac_objext" && ac_objext=o 7971 7972for cc_temp in $compiler""; do 7973 case $cc_temp in 7974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7976 \-*) ;; 7977 *) break;; 7978 esac 7979done 7980cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7981 7982 7983# Only perform the check for file, if the check method requires it 7984test -z "$MAGIC_CMD" && MAGIC_CMD=file 7985case $deplibs_check_method in 7986file_magic*) 7987 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7989$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7990if ${lt_cv_path_MAGIC_CMD+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992else 7993 case $MAGIC_CMD in 7994[\\/*] | ?:[\\/]*) 7995 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7996 ;; 7997*) 7998 lt_save_MAGIC_CMD="$MAGIC_CMD" 7999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8000 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8001 for ac_dir in $ac_dummy; do 8002 IFS="$lt_save_ifs" 8003 test -z "$ac_dir" && ac_dir=. 8004 if test -f $ac_dir/${ac_tool_prefix}file; then 8005 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8006 if test -n "$file_magic_test_file"; then 8007 case $deplibs_check_method in 8008 "file_magic "*) 8009 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8011 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8012 $EGREP "$file_magic_regex" > /dev/null; then 8013 : 8014 else 8015 cat <<_LT_EOF 1>&2 8016 8017*** Warning: the command libtool uses to detect shared libraries, 8018*** $file_magic_cmd, produces output that libtool cannot recognize. 8019*** The result is that libtool may fail to recognize shared libraries 8020*** as such. This will affect the creation of libtool libraries that 8021*** depend on shared libraries, but programs linked with such libtool 8022*** libraries will work regardless of this problem. Nevertheless, you 8023*** may want to report the problem to your system manager and/or to 8024*** bug-libtool@gnu.org 8025 8026_LT_EOF 8027 fi ;; 8028 esac 8029 fi 8030 break 8031 fi 8032 done 8033 IFS="$lt_save_ifs" 8034 MAGIC_CMD="$lt_save_MAGIC_CMD" 8035 ;; 8036esac 8037fi 8038 8039MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8040if test -n "$MAGIC_CMD"; then 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8042$as_echo "$MAGIC_CMD" >&6; } 8043else 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8045$as_echo "no" >&6; } 8046fi 8047 8048 8049 8050 8051 8052if test -z "$lt_cv_path_MAGIC_CMD"; then 8053 if test -n "$ac_tool_prefix"; then 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8055$as_echo_n "checking for file... " >&6; } 8056if ${lt_cv_path_MAGIC_CMD+:} false; then : 8057 $as_echo_n "(cached) " >&6 8058else 8059 case $MAGIC_CMD in 8060[\\/*] | ?:[\\/]*) 8061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8062 ;; 8063*) 8064 lt_save_MAGIC_CMD="$MAGIC_CMD" 8065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8067 for ac_dir in $ac_dummy; do 8068 IFS="$lt_save_ifs" 8069 test -z "$ac_dir" && ac_dir=. 8070 if test -f $ac_dir/file; then 8071 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8072 if test -n "$file_magic_test_file"; then 8073 case $deplibs_check_method in 8074 "file_magic "*) 8075 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8078 $EGREP "$file_magic_regex" > /dev/null; then 8079 : 8080 else 8081 cat <<_LT_EOF 1>&2 8082 8083*** Warning: the command libtool uses to detect shared libraries, 8084*** $file_magic_cmd, produces output that libtool cannot recognize. 8085*** The result is that libtool may fail to recognize shared libraries 8086*** as such. This will affect the creation of libtool libraries that 8087*** depend on shared libraries, but programs linked with such libtool 8088*** libraries will work regardless of this problem. Nevertheless, you 8089*** may want to report the problem to your system manager and/or to 8090*** bug-libtool@gnu.org 8091 8092_LT_EOF 8093 fi ;; 8094 esac 8095 fi 8096 break 8097 fi 8098 done 8099 IFS="$lt_save_ifs" 8100 MAGIC_CMD="$lt_save_MAGIC_CMD" 8101 ;; 8102esac 8103fi 8104 8105MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8106if test -n "$MAGIC_CMD"; then 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8108$as_echo "$MAGIC_CMD" >&6; } 8109else 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8111$as_echo "no" >&6; } 8112fi 8113 8114 8115 else 8116 MAGIC_CMD=: 8117 fi 8118fi 8119 8120 fi 8121 ;; 8122esac 8123 8124# Use C for the default configuration in the libtool script 8125 8126lt_save_CC="$CC" 8127ac_ext=c 8128ac_cpp='$CPP $CPPFLAGS' 8129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8131ac_compiler_gnu=$ac_cv_c_compiler_gnu 8132 8133 8134# Source file extension for C test sources. 8135ac_ext=c 8136 8137# Object file extension for compiled C test sources. 8138objext=o 8139objext=$objext 8140 8141# Code to be used in simple compile tests 8142lt_simple_compile_test_code="int some_variable = 0;" 8143 8144# Code to be used in simple link tests 8145lt_simple_link_test_code='int main(){return(0);}' 8146 8147 8148 8149 8150 8151 8152 8153# If no C compiler was specified, use CC. 8154LTCC=${LTCC-"$CC"} 8155 8156# If no C compiler flags were specified, use CFLAGS. 8157LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8158 8159# Allow CC to be a program name with arguments. 8160compiler=$CC 8161 8162# Save the default compiler, since it gets overwritten when the other 8163# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8164compiler_DEFAULT=$CC 8165 8166# save warnings/boilerplate of simple test code 8167ac_outfile=conftest.$ac_objext 8168echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8169eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8170_lt_compiler_boilerplate=`cat conftest.err` 8171$RM conftest* 8172 8173ac_outfile=conftest.$ac_objext 8174echo "$lt_simple_link_test_code" >conftest.$ac_ext 8175eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8176_lt_linker_boilerplate=`cat conftest.err` 8177$RM -r conftest* 8178 8179 8180## CAVEAT EMPTOR: 8181## There is no encapsulation within the following macros, do not change 8182## the running order or otherwise move them around unless you know exactly 8183## what you are doing... 8184if test -n "$compiler"; then 8185 8186lt_prog_compiler_no_builtin_flag= 8187 8188if test "$GCC" = yes; then 8189 case $cc_basename in 8190 nvcc*) 8191 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8192 *) 8193 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8194 esac 8195 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8197$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8198if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 lt_cv_prog_compiler_rtti_exceptions=no 8202 ac_outfile=conftest.$ac_objext 8203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8204 lt_compiler_flag="-fno-rtti -fno-exceptions" 8205 # Insert the option either (1) after the last *FLAGS variable, or 8206 # (2) before a word containing "conftest.", or (3) at the end. 8207 # Note that $ac_compile itself does not contain backslashes and begins 8208 # with a dollar sign (not a hyphen), so the echo should work correctly. 8209 # The option is referenced via a variable to avoid confusing sed. 8210 lt_compile=`echo "$ac_compile" | $SED \ 8211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8213 -e 's:$: $lt_compiler_flag:'` 8214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8215 (eval "$lt_compile" 2>conftest.err) 8216 ac_status=$? 8217 cat conftest.err >&5 8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8219 if (exit $ac_status) && test -s "$ac_outfile"; then 8220 # The compiler can only warn and ignore the option if not recognized 8221 # So say no if there are warnings other than the usual output. 8222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8224 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8225 lt_cv_prog_compiler_rtti_exceptions=yes 8226 fi 8227 fi 8228 $RM conftest* 8229 8230fi 8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8232$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8233 8234if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8235 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8236else 8237 : 8238fi 8239 8240fi 8241 8242 8243 8244 8245 8246 8247 lt_prog_compiler_wl= 8248lt_prog_compiler_pic= 8249lt_prog_compiler_static= 8250 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8252$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8253 8254 if test "$GCC" = yes; then 8255 lt_prog_compiler_wl='-Wl,' 8256 lt_prog_compiler_static='-static' 8257 8258 case $host_os in 8259 aix*) 8260 # All AIX code is PIC. 8261 if test "$host_cpu" = ia64; then 8262 # AIX 5 now supports IA64 processor 8263 lt_prog_compiler_static='-Bstatic' 8264 fi 8265 lt_prog_compiler_pic='-fPIC' 8266 ;; 8267 8268 amigaos*) 8269 case $host_cpu in 8270 powerpc) 8271 # see comment about AmigaOS4 .so support 8272 lt_prog_compiler_pic='-fPIC' 8273 ;; 8274 m68k) 8275 # FIXME: we need at least 68020 code to build shared libraries, but 8276 # adding the `-m68020' flag to GCC prevents building anything better, 8277 # like `-m68040'. 8278 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8279 ;; 8280 esac 8281 ;; 8282 8283 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8284 # PIC is the default for these OSes. 8285 ;; 8286 8287 mingw* | cygwin* | pw32* | os2* | cegcc*) 8288 # This hack is so that the source file can tell whether it is being 8289 # built for inclusion in a dll (and should export symbols for example). 8290 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8291 # (--disable-auto-import) libraries 8292 lt_prog_compiler_pic='-DDLL_EXPORT' 8293 ;; 8294 8295 darwin* | rhapsody*) 8296 # PIC is the default on this platform 8297 # Common symbols not allowed in MH_DYLIB files 8298 lt_prog_compiler_pic='-fno-common' 8299 ;; 8300 8301 haiku*) 8302 # PIC is the default for Haiku. 8303 # The "-static" flag exists, but is broken. 8304 lt_prog_compiler_static= 8305 ;; 8306 8307 hpux*) 8308 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8309 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8310 # sets the default TLS model and affects inlining. 8311 case $host_cpu in 8312 hppa*64*) 8313 # +Z the default 8314 ;; 8315 *) 8316 lt_prog_compiler_pic='-fPIC' 8317 ;; 8318 esac 8319 ;; 8320 8321 interix[3-9]*) 8322 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8323 # Instead, we relocate shared libraries at runtime. 8324 ;; 8325 8326 msdosdjgpp*) 8327 # Just because we use GCC doesn't mean we suddenly get shared libraries 8328 # on systems that don't support them. 8329 lt_prog_compiler_can_build_shared=no 8330 enable_shared=no 8331 ;; 8332 8333 *nto* | *qnx*) 8334 # QNX uses GNU C++, but need to define -shared option too, otherwise 8335 # it will coredump. 8336 lt_prog_compiler_pic='-fPIC -shared' 8337 ;; 8338 8339 sysv4*MP*) 8340 if test -d /usr/nec; then 8341 lt_prog_compiler_pic=-Kconform_pic 8342 fi 8343 ;; 8344 8345 *) 8346 lt_prog_compiler_pic='-fPIC' 8347 ;; 8348 esac 8349 8350 case $cc_basename in 8351 nvcc*) # Cuda Compiler Driver 2.2 8352 lt_prog_compiler_wl='-Xlinker ' 8353 lt_prog_compiler_pic='-Xcompiler -fPIC' 8354 ;; 8355 esac 8356 else 8357 # PORTME Check for flag to pass linker flags through the system compiler. 8358 case $host_os in 8359 aix*) 8360 lt_prog_compiler_wl='-Wl,' 8361 if test "$host_cpu" = ia64; then 8362 # AIX 5 now supports IA64 processor 8363 lt_prog_compiler_static='-Bstatic' 8364 else 8365 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8366 fi 8367 ;; 8368 8369 mingw* | cygwin* | pw32* | os2* | cegcc*) 8370 # This hack is so that the source file can tell whether it is being 8371 # built for inclusion in a dll (and should export symbols for example). 8372 lt_prog_compiler_pic='-DDLL_EXPORT' 8373 ;; 8374 8375 hpux9* | hpux10* | hpux11*) 8376 lt_prog_compiler_wl='-Wl,' 8377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8378 # not for PA HP-UX. 8379 case $host_cpu in 8380 hppa*64*|ia64*) 8381 # +Z the default 8382 ;; 8383 *) 8384 lt_prog_compiler_pic='+Z' 8385 ;; 8386 esac 8387 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8388 lt_prog_compiler_static='${wl}-a ${wl}archive' 8389 ;; 8390 8391 irix5* | irix6* | nonstopux*) 8392 lt_prog_compiler_wl='-Wl,' 8393 # PIC (with -KPIC) is the default. 8394 lt_prog_compiler_static='-non_shared' 8395 ;; 8396 8397 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8398 case $cc_basename in 8399 # old Intel for x86_64 which still supported -KPIC. 8400 ecc*) 8401 lt_prog_compiler_wl='-Wl,' 8402 lt_prog_compiler_pic='-KPIC' 8403 lt_prog_compiler_static='-static' 8404 ;; 8405 # icc used to be incompatible with GCC. 8406 # ICC 10 doesn't accept -KPIC any more. 8407 icc* | ifort*) 8408 lt_prog_compiler_wl='-Wl,' 8409 lt_prog_compiler_pic='-fPIC' 8410 lt_prog_compiler_static='-static' 8411 ;; 8412 # Lahey Fortran 8.1. 8413 lf95*) 8414 lt_prog_compiler_wl='-Wl,' 8415 lt_prog_compiler_pic='--shared' 8416 lt_prog_compiler_static='--static' 8417 ;; 8418 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8419 # Portland Group compilers (*not* the Pentium gcc compiler, 8420 # which looks to be a dead project) 8421 lt_prog_compiler_wl='-Wl,' 8422 lt_prog_compiler_pic='-fpic' 8423 lt_prog_compiler_static='-Bstatic' 8424 ;; 8425 ccc*) 8426 lt_prog_compiler_wl='-Wl,' 8427 # All Alpha code is PIC. 8428 lt_prog_compiler_static='-non_shared' 8429 ;; 8430 xl* | bgxl* | bgf* | mpixl*) 8431 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8432 lt_prog_compiler_wl='-Wl,' 8433 lt_prog_compiler_pic='-qpic' 8434 lt_prog_compiler_static='-qstaticlink' 8435 ;; 8436 *) 8437 case `$CC -V 2>&1 | sed 5q` in 8438 *Sun\ F* | *Sun*Fortran*) 8439 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8440 lt_prog_compiler_pic='-KPIC' 8441 lt_prog_compiler_static='-Bstatic' 8442 lt_prog_compiler_wl='' 8443 ;; 8444 *Sun\ C*) 8445 # Sun C 5.9 8446 lt_prog_compiler_pic='-KPIC' 8447 lt_prog_compiler_static='-Bstatic' 8448 lt_prog_compiler_wl='-Wl,' 8449 ;; 8450 esac 8451 ;; 8452 esac 8453 ;; 8454 8455 newsos6) 8456 lt_prog_compiler_pic='-KPIC' 8457 lt_prog_compiler_static='-Bstatic' 8458 ;; 8459 8460 *nto* | *qnx*) 8461 # QNX uses GNU C++, but need to define -shared option too, otherwise 8462 # it will coredump. 8463 lt_prog_compiler_pic='-fPIC -shared' 8464 ;; 8465 8466 osf3* | osf4* | osf5*) 8467 lt_prog_compiler_wl='-Wl,' 8468 # All OSF/1 code is PIC. 8469 lt_prog_compiler_static='-non_shared' 8470 ;; 8471 8472 rdos*) 8473 lt_prog_compiler_static='-non_shared' 8474 ;; 8475 8476 solaris*) 8477 lt_prog_compiler_pic='-KPIC' 8478 lt_prog_compiler_static='-Bstatic' 8479 case $cc_basename in 8480 f77* | f90* | f95*) 8481 lt_prog_compiler_wl='-Qoption ld ';; 8482 *) 8483 lt_prog_compiler_wl='-Wl,';; 8484 esac 8485 ;; 8486 8487 sunos4*) 8488 lt_prog_compiler_wl='-Qoption ld ' 8489 lt_prog_compiler_pic='-PIC' 8490 lt_prog_compiler_static='-Bstatic' 8491 ;; 8492 8493 sysv4 | sysv4.2uw2* | sysv4.3*) 8494 lt_prog_compiler_wl='-Wl,' 8495 lt_prog_compiler_pic='-KPIC' 8496 lt_prog_compiler_static='-Bstatic' 8497 ;; 8498 8499 sysv4*MP*) 8500 if test -d /usr/nec ;then 8501 lt_prog_compiler_pic='-Kconform_pic' 8502 lt_prog_compiler_static='-Bstatic' 8503 fi 8504 ;; 8505 8506 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8507 lt_prog_compiler_wl='-Wl,' 8508 lt_prog_compiler_pic='-KPIC' 8509 lt_prog_compiler_static='-Bstatic' 8510 ;; 8511 8512 unicos*) 8513 lt_prog_compiler_wl='-Wl,' 8514 lt_prog_compiler_can_build_shared=no 8515 ;; 8516 8517 uts4*) 8518 lt_prog_compiler_pic='-pic' 8519 lt_prog_compiler_static='-Bstatic' 8520 ;; 8521 8522 *) 8523 lt_prog_compiler_can_build_shared=no 8524 ;; 8525 esac 8526 fi 8527 8528case $host_os in 8529 # For platforms which do not support PIC, -DPIC is meaningless: 8530 *djgpp*) 8531 lt_prog_compiler_pic= 8532 ;; 8533 *) 8534 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8535 ;; 8536esac 8537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8538$as_echo "$lt_prog_compiler_pic" >&6; } 8539 8540 8541 8542 8543 8544 8545# 8546# Check to make sure the PIC flag actually works. 8547# 8548if test -n "$lt_prog_compiler_pic"; then 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8550$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8551if ${lt_cv_prog_compiler_pic_works+:} false; then : 8552 $as_echo_n "(cached) " >&6 8553else 8554 lt_cv_prog_compiler_pic_works=no 8555 ac_outfile=conftest.$ac_objext 8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8557 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8558 # Insert the option either (1) after the last *FLAGS variable, or 8559 # (2) before a word containing "conftest.", or (3) at the end. 8560 # Note that $ac_compile itself does not contain backslashes and begins 8561 # with a dollar sign (not a hyphen), so the echo should work correctly. 8562 # The option is referenced via a variable to avoid confusing sed. 8563 lt_compile=`echo "$ac_compile" | $SED \ 8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8566 -e 's:$: $lt_compiler_flag:'` 8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8568 (eval "$lt_compile" 2>conftest.err) 8569 ac_status=$? 8570 cat conftest.err >&5 8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8572 if (exit $ac_status) && test -s "$ac_outfile"; then 8573 # The compiler can only warn and ignore the option if not recognized 8574 # So say no if there are warnings other than the usual output. 8575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8578 lt_cv_prog_compiler_pic_works=yes 8579 fi 8580 fi 8581 $RM conftest* 8582 8583fi 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8585$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8586 8587if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8588 case $lt_prog_compiler_pic in 8589 "" | " "*) ;; 8590 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8591 esac 8592else 8593 lt_prog_compiler_pic= 8594 lt_prog_compiler_can_build_shared=no 8595fi 8596 8597fi 8598 8599 8600 8601 8602 8603 8604# 8605# Check to make sure the static flag actually works. 8606# 8607wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8609$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8610if ${lt_cv_prog_compiler_static_works+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 lt_cv_prog_compiler_static_works=no 8614 save_LDFLAGS="$LDFLAGS" 8615 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8616 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8618 # The linker can only warn and ignore the option if not recognized 8619 # So say no if there are warnings 8620 if test -s conftest.err; then 8621 # Append any errors to the config.log. 8622 cat conftest.err 1>&5 8623 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8625 if diff conftest.exp conftest.er2 >/dev/null; then 8626 lt_cv_prog_compiler_static_works=yes 8627 fi 8628 else 8629 lt_cv_prog_compiler_static_works=yes 8630 fi 8631 fi 8632 $RM -r conftest* 8633 LDFLAGS="$save_LDFLAGS" 8634 8635fi 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8637$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8638 8639if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8640 : 8641else 8642 lt_prog_compiler_static= 8643fi 8644 8645 8646 8647 8648 8649 8650 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8652$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8653if ${lt_cv_prog_compiler_c_o+:} false; then : 8654 $as_echo_n "(cached) " >&6 8655else 8656 lt_cv_prog_compiler_c_o=no 8657 $RM -r conftest 2>/dev/null 8658 mkdir conftest 8659 cd conftest 8660 mkdir out 8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8662 8663 lt_compiler_flag="-o out/conftest2.$ac_objext" 8664 # Insert the option either (1) after the last *FLAGS variable, or 8665 # (2) before a word containing "conftest.", or (3) at the end. 8666 # Note that $ac_compile itself does not contain backslashes and begins 8667 # with a dollar sign (not a hyphen), so the echo should work correctly. 8668 lt_compile=`echo "$ac_compile" | $SED \ 8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8671 -e 's:$: $lt_compiler_flag:'` 8672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8673 (eval "$lt_compile" 2>out/conftest.err) 8674 ac_status=$? 8675 cat out/conftest.err >&5 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8678 then 8679 # The compiler can only warn and ignore the option if not recognized 8680 # So say no if there are warnings 8681 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8682 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8683 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8684 lt_cv_prog_compiler_c_o=yes 8685 fi 8686 fi 8687 chmod u+w . 2>&5 8688 $RM conftest* 8689 # SGI C++ compiler will create directory out/ii_files/ for 8690 # template instantiation 8691 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8692 $RM out/* && rmdir out 8693 cd .. 8694 $RM -r conftest 8695 $RM conftest* 8696 8697fi 8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8699$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8700 8701 8702 8703 8704 8705 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8707$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8708if ${lt_cv_prog_compiler_c_o+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 lt_cv_prog_compiler_c_o=no 8712 $RM -r conftest 2>/dev/null 8713 mkdir conftest 8714 cd conftest 8715 mkdir out 8716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8717 8718 lt_compiler_flag="-o out/conftest2.$ac_objext" 8719 # Insert the option either (1) after the last *FLAGS variable, or 8720 # (2) before a word containing "conftest.", or (3) at the end. 8721 # Note that $ac_compile itself does not contain backslashes and begins 8722 # with a dollar sign (not a hyphen), so the echo should work correctly. 8723 lt_compile=`echo "$ac_compile" | $SED \ 8724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8726 -e 's:$: $lt_compiler_flag:'` 8727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8728 (eval "$lt_compile" 2>out/conftest.err) 8729 ac_status=$? 8730 cat out/conftest.err >&5 8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8732 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8733 then 8734 # The compiler can only warn and ignore the option if not recognized 8735 # So say no if there are warnings 8736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8739 lt_cv_prog_compiler_c_o=yes 8740 fi 8741 fi 8742 chmod u+w . 2>&5 8743 $RM conftest* 8744 # SGI C++ compiler will create directory out/ii_files/ for 8745 # template instantiation 8746 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8747 $RM out/* && rmdir out 8748 cd .. 8749 $RM -r conftest 8750 $RM conftest* 8751 8752fi 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8754$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8755 8756 8757 8758 8759hard_links="nottested" 8760if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8761 # do not overwrite the value of need_locks provided by the user 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8763$as_echo_n "checking if we can lock with hard links... " >&6; } 8764 hard_links=yes 8765 $RM conftest* 8766 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8767 touch conftest.a 8768 ln conftest.a conftest.b 2>&5 || hard_links=no 8769 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8771$as_echo "$hard_links" >&6; } 8772 if test "$hard_links" = no; then 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8774$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8775 need_locks=warn 8776 fi 8777else 8778 need_locks=no 8779fi 8780 8781 8782 8783 8784 8785 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8787$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8788 8789 runpath_var= 8790 allow_undefined_flag= 8791 always_export_symbols=no 8792 archive_cmds= 8793 archive_expsym_cmds= 8794 compiler_needs_object=no 8795 enable_shared_with_static_runtimes=no 8796 export_dynamic_flag_spec= 8797 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8798 hardcode_automatic=no 8799 hardcode_direct=no 8800 hardcode_direct_absolute=no 8801 hardcode_libdir_flag_spec= 8802 hardcode_libdir_flag_spec_ld= 8803 hardcode_libdir_separator= 8804 hardcode_minus_L=no 8805 hardcode_shlibpath_var=unsupported 8806 inherit_rpath=no 8807 link_all_deplibs=unknown 8808 module_cmds= 8809 module_expsym_cmds= 8810 old_archive_from_new_cmds= 8811 old_archive_from_expsyms_cmds= 8812 thread_safe_flag_spec= 8813 whole_archive_flag_spec= 8814 # include_expsyms should be a list of space-separated symbols to be *always* 8815 # included in the symbol list 8816 include_expsyms= 8817 # exclude_expsyms can be an extended regexp of symbols to exclude 8818 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8820 # as well as any symbol that contains `d'. 8821 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8823 # platforms (ab)use it in PIC code, but their linkers get confused if 8824 # the symbol is explicitly referenced. Since portable code cannot 8825 # rely on this symbol name, it's probably fine to never include it in 8826 # preloaded symbol tables. 8827 # Exclude shared library initialization/finalization symbols. 8828 extract_expsyms_cmds= 8829 8830 case $host_os in 8831 cygwin* | mingw* | pw32* | cegcc*) 8832 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8833 # When not using gcc, we currently assume that we are using 8834 # Microsoft Visual C++. 8835 if test "$GCC" != yes; then 8836 with_gnu_ld=no 8837 fi 8838 ;; 8839 interix*) 8840 # we just hope/assume this is gcc and not c89 (= MSVC++) 8841 with_gnu_ld=yes 8842 ;; 8843 openbsd*) 8844 with_gnu_ld=no 8845 ;; 8846 esac 8847 8848 ld_shlibs=yes 8849 8850 # On some targets, GNU ld is compatible enough with the native linker 8851 # that we're better off using the native interface for both. 8852 lt_use_gnu_ld_interface=no 8853 if test "$with_gnu_ld" = yes; then 8854 case $host_os in 8855 aix*) 8856 # The AIX port of GNU ld has always aspired to compatibility 8857 # with the native linker. However, as the warning in the GNU ld 8858 # block says, versions before 2.19.5* couldn't really create working 8859 # shared libraries, regardless of the interface used. 8860 case `$LD -v 2>&1` in 8861 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8862 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8863 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8864 *) 8865 lt_use_gnu_ld_interface=yes 8866 ;; 8867 esac 8868 ;; 8869 *) 8870 lt_use_gnu_ld_interface=yes 8871 ;; 8872 esac 8873 fi 8874 8875 if test "$lt_use_gnu_ld_interface" = yes; then 8876 # If archive_cmds runs LD, not CC, wlarc should be empty 8877 wlarc='${wl}' 8878 8879 # Set some defaults for GNU ld with shared library support. These 8880 # are reset later if shared libraries are not supported. Putting them 8881 # here allows them to be overridden if necessary. 8882 runpath_var=LD_RUN_PATH 8883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8884 export_dynamic_flag_spec='${wl}--export-dynamic' 8885 # ancient GNU ld didn't support --whole-archive et. al. 8886 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8887 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8888 else 8889 whole_archive_flag_spec= 8890 fi 8891 supports_anon_versioning=no 8892 case `$LD -v 2>&1` in 8893 *GNU\ gold*) supports_anon_versioning=yes ;; 8894 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8895 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8896 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8897 *\ 2.11.*) ;; # other 2.11 versions 8898 *) supports_anon_versioning=yes ;; 8899 esac 8900 8901 # See if GNU ld supports shared libraries. 8902 case $host_os in 8903 aix[3-9]*) 8904 # On AIX/PPC, the GNU linker is very broken 8905 if test "$host_cpu" != ia64; then 8906 ld_shlibs=no 8907 cat <<_LT_EOF 1>&2 8908 8909*** Warning: the GNU linker, at least up to release 2.19, is reported 8910*** to be unable to reliably create shared libraries on AIX. 8911*** Therefore, libtool is disabling shared libraries support. If you 8912*** really care for shared libraries, you may want to install binutils 8913*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8914*** You will then need to restart the configuration process. 8915 8916_LT_EOF 8917 fi 8918 ;; 8919 8920 amigaos*) 8921 case $host_cpu in 8922 powerpc) 8923 # see comment about AmigaOS4 .so support 8924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8925 archive_expsym_cmds='' 8926 ;; 8927 m68k) 8928 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)' 8929 hardcode_libdir_flag_spec='-L$libdir' 8930 hardcode_minus_L=yes 8931 ;; 8932 esac 8933 ;; 8934 8935 beos*) 8936 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8937 allow_undefined_flag=unsupported 8938 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8939 # support --undefined. This deserves some investigation. FIXME 8940 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8941 else 8942 ld_shlibs=no 8943 fi 8944 ;; 8945 8946 cygwin* | mingw* | pw32* | cegcc*) 8947 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8948 # as there is no search path for DLLs. 8949 hardcode_libdir_flag_spec='-L$libdir' 8950 export_dynamic_flag_spec='${wl}--export-all-symbols' 8951 allow_undefined_flag=unsupported 8952 always_export_symbols=no 8953 enable_shared_with_static_runtimes=yes 8954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8955 8956 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8958 # If the export-symbols file already is a .def file (1st line 8959 # is EXPORTS), use it as is; otherwise, prepend... 8960 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8961 cp $export_symbols $output_objdir/$soname.def; 8962 else 8963 echo EXPORTS > $output_objdir/$soname.def; 8964 cat $export_symbols >> $output_objdir/$soname.def; 8965 fi~ 8966 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8967 else 8968 ld_shlibs=no 8969 fi 8970 ;; 8971 8972 haiku*) 8973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8974 link_all_deplibs=yes 8975 ;; 8976 8977 interix[3-9]*) 8978 hardcode_direct=no 8979 hardcode_shlibpath_var=no 8980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8981 export_dynamic_flag_spec='${wl}-E' 8982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8983 # Instead, shared libraries are loaded at an image base (0x10000000 by 8984 # default) and relocated if they conflict, which is a slow very memory 8985 # consuming and fragmenting process. To avoid this, we pick a random, 8986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8987 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8989 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' 8990 ;; 8991 8992 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8993 tmp_diet=no 8994 if test "$host_os" = linux-dietlibc; then 8995 case $cc_basename in 8996 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8997 esac 8998 fi 8999 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9000 && test "$tmp_diet" = no 9001 then 9002 tmp_addflag=' $pic_flag' 9003 tmp_sharedflag='-shared' 9004 case $cc_basename,$host_cpu in 9005 pgcc*) # Portland Group C compiler 9006 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' 9007 tmp_addflag=' $pic_flag' 9008 ;; 9009 pgf77* | pgf90* | pgf95* | pgfortran*) 9010 # Portland Group f77 and f90 compilers 9011 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' 9012 tmp_addflag=' $pic_flag -Mnomain' ;; 9013 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9014 tmp_addflag=' -i_dynamic' ;; 9015 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9016 tmp_addflag=' -i_dynamic -nofor_main' ;; 9017 ifc* | ifort*) # Intel Fortran compiler 9018 tmp_addflag=' -nofor_main' ;; 9019 lf95*) # Lahey Fortran 8.1 9020 whole_archive_flag_spec= 9021 tmp_sharedflag='--shared' ;; 9022 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9023 tmp_sharedflag='-qmkshrobj' 9024 tmp_addflag= ;; 9025 nvcc*) # Cuda Compiler Driver 2.2 9026 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' 9027 compiler_needs_object=yes 9028 ;; 9029 esac 9030 case `$CC -V 2>&1 | sed 5q` in 9031 *Sun\ C*) # Sun C 5.9 9032 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' 9033 compiler_needs_object=yes 9034 tmp_sharedflag='-G' ;; 9035 *Sun\ F*) # Sun Fortran 8.3 9036 tmp_sharedflag='-G' ;; 9037 esac 9038 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9039 9040 if test "x$supports_anon_versioning" = xyes; then 9041 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9043 echo "local: *; };" >> $output_objdir/$libname.ver~ 9044 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9045 fi 9046 9047 case $cc_basename in 9048 xlf* | bgf* | bgxlf* | mpixlf*) 9049 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9050 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9051 hardcode_libdir_flag_spec= 9052 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9053 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9054 if test "x$supports_anon_versioning" = xyes; then 9055 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9057 echo "local: *; };" >> $output_objdir/$libname.ver~ 9058 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9059 fi 9060 ;; 9061 esac 9062 else 9063 ld_shlibs=no 9064 fi 9065 ;; 9066 9067 netbsd*) 9068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9069 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9070 wlarc= 9071 else 9072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9074 fi 9075 ;; 9076 9077 solaris*) 9078 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9079 ld_shlibs=no 9080 cat <<_LT_EOF 1>&2 9081 9082*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9083*** create shared libraries on Solaris systems. Therefore, libtool 9084*** is disabling shared libraries support. We urge you to upgrade GNU 9085*** binutils to release 2.9.1 or newer. Another option is to modify 9086*** your PATH or compiler configuration so that the native linker is 9087*** used, and then restart. 9088 9089_LT_EOF 9090 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9093 else 9094 ld_shlibs=no 9095 fi 9096 ;; 9097 9098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9099 case `$LD -v 2>&1` in 9100 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9101 ld_shlibs=no 9102 cat <<_LT_EOF 1>&2 9103 9104*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9105*** reliably create shared libraries on SCO systems. Therefore, libtool 9106*** is disabling shared libraries support. We urge you to upgrade GNU 9107*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9108*** your PATH or compiler configuration so that the native linker is 9109*** used, and then restart. 9110 9111_LT_EOF 9112 ;; 9113 *) 9114 # For security reasons, it is highly recommended that you always 9115 # use absolute paths for naming shared libraries, and exclude the 9116 # DT_RUNPATH tag from executables and libraries. But doing so 9117 # requires that you compile everything twice, which is a pain. 9118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9122 else 9123 ld_shlibs=no 9124 fi 9125 ;; 9126 esac 9127 ;; 9128 9129 sunos4*) 9130 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9131 wlarc= 9132 hardcode_direct=yes 9133 hardcode_shlibpath_var=no 9134 ;; 9135 9136 *) 9137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9140 else 9141 ld_shlibs=no 9142 fi 9143 ;; 9144 esac 9145 9146 if test "$ld_shlibs" = no; then 9147 runpath_var= 9148 hardcode_libdir_flag_spec= 9149 export_dynamic_flag_spec= 9150 whole_archive_flag_spec= 9151 fi 9152 else 9153 # PORTME fill in a description of your system's linker (not GNU ld) 9154 case $host_os in 9155 aix3*) 9156 allow_undefined_flag=unsupported 9157 always_export_symbols=yes 9158 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' 9159 # Note: this linker hardcodes the directories in LIBPATH if there 9160 # are no directories specified by -L. 9161 hardcode_minus_L=yes 9162 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9163 # Neither direct hardcoding nor static linking is supported with a 9164 # broken collect2. 9165 hardcode_direct=unsupported 9166 fi 9167 ;; 9168 9169 aix[4-9]*) 9170 if test "$host_cpu" = ia64; then 9171 # On IA64, the linker does run time linking by default, so we don't 9172 # have to do anything special. 9173 aix_use_runtimelinking=no 9174 exp_sym_flag='-Bexport' 9175 no_entry_flag="" 9176 else 9177 # If we're using GNU nm, then we don't want the "-C" option. 9178 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9179 # Also, AIX nm treats weak defined symbols like other global 9180 # defined symbols, whereas GNU nm marks them as "W". 9181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9182 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' 9183 else 9184 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' 9185 fi 9186 aix_use_runtimelinking=no 9187 9188 # Test if we are trying to use run time linking or normal 9189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9190 # need to do runtime linking. 9191 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9192 for ld_flag in $LDFLAGS; do 9193 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9194 aix_use_runtimelinking=yes 9195 break 9196 fi 9197 done 9198 ;; 9199 esac 9200 9201 exp_sym_flag='-bexport' 9202 no_entry_flag='-bnoentry' 9203 fi 9204 9205 # When large executables or shared objects are built, AIX ld can 9206 # have problems creating the table of contents. If linking a library 9207 # or program results in "error TOC overflow" add -mminimal-toc to 9208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9210 9211 archive_cmds='' 9212 hardcode_direct=yes 9213 hardcode_direct_absolute=yes 9214 hardcode_libdir_separator=':' 9215 link_all_deplibs=yes 9216 file_list_spec='${wl}-f,' 9217 9218 if test "$GCC" = yes; then 9219 case $host_os in aix4.[012]|aix4.[012].*) 9220 # We only want to do this on AIX 4.2 and lower, the check 9221 # below for broken collect2 doesn't work under 4.3+ 9222 collect2name=`${CC} -print-prog-name=collect2` 9223 if test -f "$collect2name" && 9224 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9225 then 9226 # We have reworked collect2 9227 : 9228 else 9229 # We have old collect2 9230 hardcode_direct=unsupported 9231 # It fails to find uninstalled libraries when the uninstalled 9232 # path is not listed in the libpath. Setting hardcode_minus_L 9233 # to unsupported forces relinking 9234 hardcode_minus_L=yes 9235 hardcode_libdir_flag_spec='-L$libdir' 9236 hardcode_libdir_separator= 9237 fi 9238 ;; 9239 esac 9240 shared_flag='-shared' 9241 if test "$aix_use_runtimelinking" = yes; then 9242 shared_flag="$shared_flag "'${wl}-G' 9243 fi 9244 else 9245 # not using gcc 9246 if test "$host_cpu" = ia64; then 9247 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9248 # chokes on -Wl,-G. The following line is correct: 9249 shared_flag='-G' 9250 else 9251 if test "$aix_use_runtimelinking" = yes; then 9252 shared_flag='${wl}-G' 9253 else 9254 shared_flag='${wl}-bM:SRE' 9255 fi 9256 fi 9257 fi 9258 9259 export_dynamic_flag_spec='${wl}-bexpall' 9260 # It seems that -bexpall does not export symbols beginning with 9261 # underscore (_), so it is better to generate a list of symbols to export. 9262 always_export_symbols=yes 9263 if test "$aix_use_runtimelinking" = yes; then 9264 # Warning - without using the other runtime loading flags (-brtl), 9265 # -berok will link without error, but may produce a broken library. 9266 allow_undefined_flag='-berok' 9267 # Determine the default libpath from the value encoded in an 9268 # empty executable. 9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271 9272int 9273main () 9274{ 9275 9276 ; 9277 return 0; 9278} 9279_ACEOF 9280if ac_fn_c_try_link "$LINENO"; then : 9281 9282lt_aix_libpath_sed=' 9283 /Import File Strings/,/^$/ { 9284 /^0/ { 9285 s/^0 *\(.*\)$/\1/ 9286 p 9287 } 9288 }' 9289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9290# Check for a 64-bit object if we didn't find anything. 9291if test -z "$aix_libpath"; then 9292 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9293fi 9294fi 9295rm -f core conftest.err conftest.$ac_objext \ 9296 conftest$ac_exeext conftest.$ac_ext 9297if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9298 9299 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9300 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" 9301 else 9302 if test "$host_cpu" = ia64; then 9303 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9304 allow_undefined_flag="-z nodefs" 9305 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" 9306 else 9307 # Determine the default libpath from the value encoded in an 9308 # empty executable. 9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9310/* end confdefs.h. */ 9311 9312int 9313main () 9314{ 9315 9316 ; 9317 return 0; 9318} 9319_ACEOF 9320if ac_fn_c_try_link "$LINENO"; then : 9321 9322lt_aix_libpath_sed=' 9323 /Import File Strings/,/^$/ { 9324 /^0/ { 9325 s/^0 *\(.*\)$/\1/ 9326 p 9327 } 9328 }' 9329aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9330# Check for a 64-bit object if we didn't find anything. 9331if test -z "$aix_libpath"; then 9332 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9333fi 9334fi 9335rm -f core conftest.err conftest.$ac_objext \ 9336 conftest$ac_exeext conftest.$ac_ext 9337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9338 9339 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9340 # Warning - without using the other run time loading flags, 9341 # -berok will link without error, but may produce a broken library. 9342 no_undefined_flag=' ${wl}-bernotok' 9343 allow_undefined_flag=' ${wl}-berok' 9344 if test "$with_gnu_ld" = yes; then 9345 # We only use this code for GNU lds that support --whole-archive. 9346 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9347 else 9348 # Exported symbols can be pulled into shared objects from archives 9349 whole_archive_flag_spec='$convenience' 9350 fi 9351 archive_cmds_need_lc=yes 9352 # This is similar to how AIX traditionally builds its shared libraries. 9353 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' 9354 fi 9355 fi 9356 ;; 9357 9358 amigaos*) 9359 case $host_cpu in 9360 powerpc) 9361 # see comment about AmigaOS4 .so support 9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9363 archive_expsym_cmds='' 9364 ;; 9365 m68k) 9366 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)' 9367 hardcode_libdir_flag_spec='-L$libdir' 9368 hardcode_minus_L=yes 9369 ;; 9370 esac 9371 ;; 9372 9373 bsdi[45]*) 9374 export_dynamic_flag_spec=-rdynamic 9375 ;; 9376 9377 cygwin* | mingw* | pw32* | cegcc*) 9378 # When not using gcc, we currently assume that we are using 9379 # Microsoft Visual C++. 9380 # hardcode_libdir_flag_spec is actually meaningless, as there is 9381 # no search path for DLLs. 9382 hardcode_libdir_flag_spec=' ' 9383 allow_undefined_flag=unsupported 9384 # Tell ltmain to make .lib files, not .a files. 9385 libext=lib 9386 # Tell ltmain to make .dll files, not .so files. 9387 shrext_cmds=".dll" 9388 # FIXME: Setting linknames here is a bad hack. 9389 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9390 # The linker will automatically build a .lib file if we build a DLL. 9391 old_archive_from_new_cmds='true' 9392 # FIXME: Should let the user specify the lib program. 9393 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9394 fix_srcfile_path='`cygpath -w "$srcfile"`' 9395 enable_shared_with_static_runtimes=yes 9396 ;; 9397 9398 darwin* | rhapsody*) 9399 9400 9401 archive_cmds_need_lc=no 9402 hardcode_direct=no 9403 hardcode_automatic=yes 9404 hardcode_shlibpath_var=unsupported 9405 if test "$lt_cv_ld_force_load" = "yes"; then 9406 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\"`' 9407 else 9408 whole_archive_flag_spec='' 9409 fi 9410 link_all_deplibs=yes 9411 allow_undefined_flag="$_lt_dar_allow_undefined" 9412 case $cc_basename in 9413 ifort*) _lt_dar_can_shared=yes ;; 9414 *) _lt_dar_can_shared=$GCC ;; 9415 esac 9416 if test "$_lt_dar_can_shared" = "yes"; then 9417 output_verbose_link_cmd=func_echo_all 9418 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9419 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9420 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}" 9421 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}" 9422 9423 else 9424 ld_shlibs=no 9425 fi 9426 9427 ;; 9428 9429 dgux*) 9430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9431 hardcode_libdir_flag_spec='-L$libdir' 9432 hardcode_shlibpath_var=no 9433 ;; 9434 9435 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9436 # support. Future versions do this automatically, but an explicit c++rt0.o 9437 # does not break anything, and helps significantly (at the cost of a little 9438 # extra space). 9439 freebsd2.2*) 9440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9441 hardcode_libdir_flag_spec='-R$libdir' 9442 hardcode_direct=yes 9443 hardcode_shlibpath_var=no 9444 ;; 9445 9446 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9447 freebsd2.*) 9448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9449 hardcode_direct=yes 9450 hardcode_minus_L=yes 9451 hardcode_shlibpath_var=no 9452 ;; 9453 9454 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9455 freebsd* | dragonfly*) 9456 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9457 hardcode_libdir_flag_spec='-R$libdir' 9458 hardcode_direct=yes 9459 hardcode_shlibpath_var=no 9460 ;; 9461 9462 hpux9*) 9463 if test "$GCC" = yes; then 9464 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' 9465 else 9466 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' 9467 fi 9468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9469 hardcode_libdir_separator=: 9470 hardcode_direct=yes 9471 9472 # hardcode_minus_L: Not really in the search PATH, 9473 # but as the default location of the library. 9474 hardcode_minus_L=yes 9475 export_dynamic_flag_spec='${wl}-E' 9476 ;; 9477 9478 hpux10*) 9479 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9480 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9481 else 9482 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9483 fi 9484 if test "$with_gnu_ld" = no; then 9485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9486 hardcode_libdir_flag_spec_ld='+b $libdir' 9487 hardcode_libdir_separator=: 9488 hardcode_direct=yes 9489 hardcode_direct_absolute=yes 9490 export_dynamic_flag_spec='${wl}-E' 9491 # hardcode_minus_L: Not really in the search PATH, 9492 # but as the default location of the library. 9493 hardcode_minus_L=yes 9494 fi 9495 ;; 9496 9497 hpux11*) 9498 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9499 case $host_cpu in 9500 hppa*64*) 9501 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9502 ;; 9503 ia64*) 9504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9505 ;; 9506 *) 9507 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9508 ;; 9509 esac 9510 else 9511 case $host_cpu in 9512 hppa*64*) 9513 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9514 ;; 9515 ia64*) 9516 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9517 ;; 9518 *) 9519 9520 # Older versions of the 11.00 compiler do not understand -b yet 9521 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9523$as_echo_n "checking if $CC understands -b... " >&6; } 9524if ${lt_cv_prog_compiler__b+:} false; then : 9525 $as_echo_n "(cached) " >&6 9526else 9527 lt_cv_prog_compiler__b=no 9528 save_LDFLAGS="$LDFLAGS" 9529 LDFLAGS="$LDFLAGS -b" 9530 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9532 # The linker can only warn and ignore the option if not recognized 9533 # So say no if there are warnings 9534 if test -s conftest.err; then 9535 # Append any errors to the config.log. 9536 cat conftest.err 1>&5 9537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9539 if diff conftest.exp conftest.er2 >/dev/null; then 9540 lt_cv_prog_compiler__b=yes 9541 fi 9542 else 9543 lt_cv_prog_compiler__b=yes 9544 fi 9545 fi 9546 $RM -r conftest* 9547 LDFLAGS="$save_LDFLAGS" 9548 9549fi 9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9551$as_echo "$lt_cv_prog_compiler__b" >&6; } 9552 9553if test x"$lt_cv_prog_compiler__b" = xyes; then 9554 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9555else 9556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9557fi 9558 9559 ;; 9560 esac 9561 fi 9562 if test "$with_gnu_ld" = no; then 9563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9564 hardcode_libdir_separator=: 9565 9566 case $host_cpu in 9567 hppa*64*|ia64*) 9568 hardcode_direct=no 9569 hardcode_shlibpath_var=no 9570 ;; 9571 *) 9572 hardcode_direct=yes 9573 hardcode_direct_absolute=yes 9574 export_dynamic_flag_spec='${wl}-E' 9575 9576 # hardcode_minus_L: Not really in the search PATH, 9577 # but as the default location of the library. 9578 hardcode_minus_L=yes 9579 ;; 9580 esac 9581 fi 9582 ;; 9583 9584 irix5* | irix6* | nonstopux*) 9585 if test "$GCC" = yes; then 9586 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' 9587 # Try to use the -exported_symbol ld option, if it does not 9588 # work, assume that -exports_file does not work either and 9589 # implicitly export all symbols. 9590 save_LDFLAGS="$LDFLAGS" 9591 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594int foo(void) {} 9595_ACEOF 9596if ac_fn_c_try_link "$LINENO"; then : 9597 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' 9598 9599fi 9600rm -f core conftest.err conftest.$ac_objext \ 9601 conftest$ac_exeext conftest.$ac_ext 9602 LDFLAGS="$save_LDFLAGS" 9603 else 9604 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' 9605 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' 9606 fi 9607 archive_cmds_need_lc='no' 9608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9609 hardcode_libdir_separator=: 9610 inherit_rpath=yes 9611 link_all_deplibs=yes 9612 ;; 9613 9614 netbsd*) 9615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9617 else 9618 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9619 fi 9620 hardcode_libdir_flag_spec='-R$libdir' 9621 hardcode_direct=yes 9622 hardcode_shlibpath_var=no 9623 ;; 9624 9625 newsos6) 9626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9627 hardcode_direct=yes 9628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9629 hardcode_libdir_separator=: 9630 hardcode_shlibpath_var=no 9631 ;; 9632 9633 *nto* | *qnx*) 9634 ;; 9635 9636 openbsd*) 9637 if test -f /usr/libexec/ld.so; then 9638 hardcode_direct=yes 9639 hardcode_shlibpath_var=no 9640 hardcode_direct_absolute=yes 9641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9643 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9645 export_dynamic_flag_spec='${wl}-E' 9646 else 9647 case $host_os in 9648 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9650 hardcode_libdir_flag_spec='-R$libdir' 9651 ;; 9652 *) 9653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9655 ;; 9656 esac 9657 fi 9658 else 9659 ld_shlibs=no 9660 fi 9661 ;; 9662 9663 os2*) 9664 hardcode_libdir_flag_spec='-L$libdir' 9665 hardcode_minus_L=yes 9666 allow_undefined_flag=unsupported 9667 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' 9668 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9669 ;; 9670 9671 osf3*) 9672 if test "$GCC" = yes; then 9673 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9674 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' 9675 else 9676 allow_undefined_flag=' -expect_unresolved \*' 9677 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' 9678 fi 9679 archive_cmds_need_lc='no' 9680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9681 hardcode_libdir_separator=: 9682 ;; 9683 9684 osf4* | osf5*) # as osf3* with the addition of -msym flag 9685 if test "$GCC" = yes; then 9686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9687 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' 9688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9689 else 9690 allow_undefined_flag=' -expect_unresolved \*' 9691 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' 9692 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~ 9693 $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' 9694 9695 # Both c and cxx compiler support -rpath directly 9696 hardcode_libdir_flag_spec='-rpath $libdir' 9697 fi 9698 archive_cmds_need_lc='no' 9699 hardcode_libdir_separator=: 9700 ;; 9701 9702 solaris*) 9703 no_undefined_flag=' -z defs' 9704 if test "$GCC" = yes; then 9705 wlarc='${wl}' 9706 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9708 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9709 else 9710 case `$CC -V 2>&1` in 9711 *"Compilers 5.0"*) 9712 wlarc='' 9713 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9716 ;; 9717 *) 9718 wlarc='${wl}' 9719 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9721 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9722 ;; 9723 esac 9724 fi 9725 hardcode_libdir_flag_spec='-R$libdir' 9726 hardcode_shlibpath_var=no 9727 case $host_os in 9728 solaris2.[0-5] | solaris2.[0-5].*) ;; 9729 *) 9730 # The compiler driver will combine and reorder linker options, 9731 # but understands `-z linker_flag'. GCC discards it without `$wl', 9732 # but is careful enough not to reorder. 9733 # Supported since Solaris 2.6 (maybe 2.5.1?) 9734 if test "$GCC" = yes; then 9735 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9736 else 9737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9738 fi 9739 ;; 9740 esac 9741 link_all_deplibs=yes 9742 ;; 9743 9744 sunos4*) 9745 if test "x$host_vendor" = xsequent; then 9746 # Use $CC to link under sequent, because it throws in some extra .o 9747 # files that make .init and .fini sections work. 9748 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9749 else 9750 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9751 fi 9752 hardcode_libdir_flag_spec='-L$libdir' 9753 hardcode_direct=yes 9754 hardcode_minus_L=yes 9755 hardcode_shlibpath_var=no 9756 ;; 9757 9758 sysv4) 9759 case $host_vendor in 9760 sni) 9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9762 hardcode_direct=yes # is this really true??? 9763 ;; 9764 siemens) 9765 ## LD is ld it makes a PLAMLIB 9766 ## CC just makes a GrossModule. 9767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9768 reload_cmds='$CC -r -o $output$reload_objs' 9769 hardcode_direct=no 9770 ;; 9771 motorola) 9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9773 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9774 ;; 9775 esac 9776 runpath_var='LD_RUN_PATH' 9777 hardcode_shlibpath_var=no 9778 ;; 9779 9780 sysv4.3*) 9781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9782 hardcode_shlibpath_var=no 9783 export_dynamic_flag_spec='-Bexport' 9784 ;; 9785 9786 sysv4*MP*) 9787 if test -d /usr/nec; then 9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9789 hardcode_shlibpath_var=no 9790 runpath_var=LD_RUN_PATH 9791 hardcode_runpath_var=yes 9792 ld_shlibs=yes 9793 fi 9794 ;; 9795 9796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9797 no_undefined_flag='${wl}-z,text' 9798 archive_cmds_need_lc=no 9799 hardcode_shlibpath_var=no 9800 runpath_var='LD_RUN_PATH' 9801 9802 if test "$GCC" = yes; then 9803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9805 else 9806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9808 fi 9809 ;; 9810 9811 sysv5* | sco3.2v5* | sco5v6*) 9812 # Note: We can NOT use -z defs as we might desire, because we do not 9813 # link with -lc, and that would cause any symbols used from libc to 9814 # always be unresolved, which means just about no library would 9815 # ever link correctly. If we're not using GNU ld we use -z text 9816 # though, which does catch some bad symbols but isn't as heavy-handed 9817 # as -z defs. 9818 no_undefined_flag='${wl}-z,text' 9819 allow_undefined_flag='${wl}-z,nodefs' 9820 archive_cmds_need_lc=no 9821 hardcode_shlibpath_var=no 9822 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9823 hardcode_libdir_separator=':' 9824 link_all_deplibs=yes 9825 export_dynamic_flag_spec='${wl}-Bexport' 9826 runpath_var='LD_RUN_PATH' 9827 9828 if test "$GCC" = yes; then 9829 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9830 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9831 else 9832 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9833 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9834 fi 9835 ;; 9836 9837 uts4*) 9838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9839 hardcode_libdir_flag_spec='-L$libdir' 9840 hardcode_shlibpath_var=no 9841 ;; 9842 9843 *) 9844 ld_shlibs=no 9845 ;; 9846 esac 9847 9848 if test x$host_vendor = xsni; then 9849 case $host in 9850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9851 export_dynamic_flag_spec='${wl}-Blargedynsym' 9852 ;; 9853 esac 9854 fi 9855 fi 9856 9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9858$as_echo "$ld_shlibs" >&6; } 9859test "$ld_shlibs" = no && can_build_shared=no 9860 9861with_gnu_ld=$with_gnu_ld 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877# 9878# Do we need to explicitly link libc? 9879# 9880case "x$archive_cmds_need_lc" in 9881x|xyes) 9882 # Assume -lc should be added 9883 archive_cmds_need_lc=yes 9884 9885 if test "$enable_shared" = yes && test "$GCC" = yes; then 9886 case $archive_cmds in 9887 *'~'*) 9888 # FIXME: we may have to deal with multi-command sequences. 9889 ;; 9890 '$CC '*) 9891 # Test whether the compiler implicitly links with -lc since on some 9892 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9893 # to ld, don't add -lc before -lgcc. 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9895$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9896if ${lt_cv_archive_cmds_need_lc+:} false; then : 9897 $as_echo_n "(cached) " >&6 9898else 9899 $RM conftest* 9900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9901 9902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9903 (eval $ac_compile) 2>&5 9904 ac_status=$? 9905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9906 test $ac_status = 0; } 2>conftest.err; then 9907 soname=conftest 9908 lib=conftest 9909 libobjs=conftest.$ac_objext 9910 deplibs= 9911 wl=$lt_prog_compiler_wl 9912 pic_flag=$lt_prog_compiler_pic 9913 compiler_flags=-v 9914 linker_flags=-v 9915 verstring= 9916 output_objdir=. 9917 libname=conftest 9918 lt_save_allow_undefined_flag=$allow_undefined_flag 9919 allow_undefined_flag= 9920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9921 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9922 ac_status=$? 9923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9924 test $ac_status = 0; } 9925 then 9926 lt_cv_archive_cmds_need_lc=no 9927 else 9928 lt_cv_archive_cmds_need_lc=yes 9929 fi 9930 allow_undefined_flag=$lt_save_allow_undefined_flag 9931 else 9932 cat conftest.err 1>&5 9933 fi 9934 $RM conftest* 9935 9936fi 9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9938$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9939 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9940 ;; 9941 esac 9942 fi 9943 ;; 9944esac 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10103$as_echo_n "checking dynamic linker characteristics... " >&6; } 10104 10105if test "$GCC" = yes; then 10106 case $host_os in 10107 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10108 *) lt_awk_arg="/^libraries:/" ;; 10109 esac 10110 case $host_os in 10111 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10112 *) lt_sed_strip_eq="s,=/,/,g" ;; 10113 esac 10114 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10115 case $lt_search_path_spec in 10116 *\;*) 10117 # if the path contains ";" then we assume it to be the separator 10118 # otherwise default to the standard path separator (i.e. ":") - it is 10119 # assumed that no part of a normal pathname contains ";" but that should 10120 # okay in the real world where ";" in dirpaths is itself problematic. 10121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10122 ;; 10123 *) 10124 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10125 ;; 10126 esac 10127 # Ok, now we have the path, separated by spaces, we can step through it 10128 # and add multilib dir if necessary. 10129 lt_tmp_lt_search_path_spec= 10130 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10131 for lt_sys_path in $lt_search_path_spec; do 10132 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10133 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10134 else 10135 test -d "$lt_sys_path" && \ 10136 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10137 fi 10138 done 10139 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10140BEGIN {RS=" "; FS="/|\n";} { 10141 lt_foo=""; 10142 lt_count=0; 10143 for (lt_i = NF; lt_i > 0; lt_i--) { 10144 if ($lt_i != "" && $lt_i != ".") { 10145 if ($lt_i == "..") { 10146 lt_count++; 10147 } else { 10148 if (lt_count == 0) { 10149 lt_foo="/" $lt_i lt_foo; 10150 } else { 10151 lt_count--; 10152 } 10153 } 10154 } 10155 } 10156 if (lt_foo != "") { lt_freq[lt_foo]++; } 10157 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10158}'` 10159 # AWK program above erroneously prepends '/' to C:/dos/paths 10160 # for these hosts. 10161 case $host_os in 10162 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10163 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10164 esac 10165 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10166else 10167 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10168fi 10169library_names_spec= 10170libname_spec='lib$name' 10171soname_spec= 10172shrext_cmds=".so" 10173postinstall_cmds= 10174postuninstall_cmds= 10175finish_cmds= 10176finish_eval= 10177shlibpath_var= 10178shlibpath_overrides_runpath=unknown 10179version_type=none 10180dynamic_linker="$host_os ld.so" 10181sys_lib_dlsearch_path_spec="/lib /usr/lib" 10182need_lib_prefix=unknown 10183hardcode_into_libs=no 10184 10185# when you set need_version to no, make sure it does not cause -set_version 10186# flags to be left without arguments 10187need_version=unknown 10188 10189case $host_os in 10190aix3*) 10191 version_type=linux 10192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10193 shlibpath_var=LIBPATH 10194 10195 # AIX 3 has no versioning support, so we append a major version to the name. 10196 soname_spec='${libname}${release}${shared_ext}$major' 10197 ;; 10198 10199aix[4-9]*) 10200 version_type=linux 10201 need_lib_prefix=no 10202 need_version=no 10203 hardcode_into_libs=yes 10204 if test "$host_cpu" = ia64; then 10205 # AIX 5 supports IA64 10206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10207 shlibpath_var=LD_LIBRARY_PATH 10208 else 10209 # With GCC up to 2.95.x, collect2 would create an import file 10210 # for dependence libraries. The import file would start with 10211 # the line `#! .'. This would cause the generated library to 10212 # depend on `.', always an invalid library. This was fixed in 10213 # development snapshots of GCC prior to 3.0. 10214 case $host_os in 10215 aix4 | aix4.[01] | aix4.[01].*) 10216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10217 echo ' yes ' 10218 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10219 : 10220 else 10221 can_build_shared=no 10222 fi 10223 ;; 10224 esac 10225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10226 # soname into executable. Probably we can add versioning support to 10227 # collect2, so additional links can be useful in future. 10228 if test "$aix_use_runtimelinking" = yes; then 10229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10230 # instead of lib<name>.a to let people know that these are not 10231 # typical AIX shared libraries. 10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10233 else 10234 # We preserve .a as extension for shared libraries through AIX4.2 10235 # and later when we are not doing run time linking. 10236 library_names_spec='${libname}${release}.a $libname.a' 10237 soname_spec='${libname}${release}${shared_ext}$major' 10238 fi 10239 shlibpath_var=LIBPATH 10240 fi 10241 ;; 10242 10243amigaos*) 10244 case $host_cpu in 10245 powerpc) 10246 # Since July 2007 AmigaOS4 officially supports .so libraries. 10247 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10249 ;; 10250 m68k) 10251 library_names_spec='$libname.ixlibrary $libname.a' 10252 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10253 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' 10254 ;; 10255 esac 10256 ;; 10257 10258beos*) 10259 library_names_spec='${libname}${shared_ext}' 10260 dynamic_linker="$host_os ld.so" 10261 shlibpath_var=LIBRARY_PATH 10262 ;; 10263 10264bsdi[45]*) 10265 version_type=linux 10266 need_version=no 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10268 soname_spec='${libname}${release}${shared_ext}$major' 10269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10270 shlibpath_var=LD_LIBRARY_PATH 10271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10273 # the default ld.so.conf also contains /usr/contrib/lib and 10274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10275 # libtool to hard-code these into programs 10276 ;; 10277 10278cygwin* | mingw* | pw32* | cegcc*) 10279 version_type=windows 10280 shrext_cmds=".dll" 10281 need_version=no 10282 need_lib_prefix=no 10283 10284 case $GCC,$host_os in 10285 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10286 library_names_spec='$libname.dll.a' 10287 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10288 postinstall_cmds='base_file=`basename \${file}`~ 10289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10290 dldir=$destdir/`dirname \$dlpath`~ 10291 test -d \$dldir || mkdir -p \$dldir~ 10292 $install_prog $dir/$dlname \$dldir/$dlname~ 10293 chmod a+x \$dldir/$dlname~ 10294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10296 fi' 10297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10298 dlpath=$dir/\$dldll~ 10299 $RM \$dlpath' 10300 shlibpath_overrides_runpath=yes 10301 10302 case $host_os in 10303 cygwin*) 10304 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10306 10307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10308 ;; 10309 mingw* | cegcc*) 10310 # MinGW DLLs use traditional 'lib' prefix 10311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10312 ;; 10313 pw32*) 10314 # pw32 DLLs use 'pw' prefix rather than 'lib' 10315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10316 ;; 10317 esac 10318 ;; 10319 10320 *) 10321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10322 ;; 10323 esac 10324 dynamic_linker='Win32 ld.exe' 10325 # FIXME: first we should search . and the directory the executable is in 10326 shlibpath_var=PATH 10327 ;; 10328 10329darwin* | rhapsody*) 10330 dynamic_linker="$host_os dyld" 10331 version_type=darwin 10332 need_lib_prefix=no 10333 need_version=no 10334 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10335 soname_spec='${libname}${release}${major}$shared_ext' 10336 shlibpath_overrides_runpath=yes 10337 shlibpath_var=DYLD_LIBRARY_PATH 10338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10339 10340 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10341 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10342 ;; 10343 10344dgux*) 10345 version_type=linux 10346 need_lib_prefix=no 10347 need_version=no 10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10349 soname_spec='${libname}${release}${shared_ext}$major' 10350 shlibpath_var=LD_LIBRARY_PATH 10351 ;; 10352 10353freebsd* | dragonfly*) 10354 # DragonFly does not have aout. When/if they implement a new 10355 # versioning mechanism, adjust this. 10356 if test -x /usr/bin/objformat; then 10357 objformat=`/usr/bin/objformat` 10358 else 10359 case $host_os in 10360 freebsd[23].*) objformat=aout ;; 10361 *) objformat=elf ;; 10362 esac 10363 fi 10364 version_type=freebsd-$objformat 10365 case $version_type in 10366 freebsd-elf*) 10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10368 need_version=no 10369 need_lib_prefix=no 10370 ;; 10371 freebsd-*) 10372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10373 need_version=yes 10374 ;; 10375 esac 10376 shlibpath_var=LD_LIBRARY_PATH 10377 case $host_os in 10378 freebsd2.*) 10379 shlibpath_overrides_runpath=yes 10380 ;; 10381 freebsd3.[01]* | freebsdelf3.[01]*) 10382 shlibpath_overrides_runpath=yes 10383 hardcode_into_libs=yes 10384 ;; 10385 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10386 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10387 shlibpath_overrides_runpath=no 10388 hardcode_into_libs=yes 10389 ;; 10390 *) # from 4.6 on, and DragonFly 10391 shlibpath_overrides_runpath=yes 10392 hardcode_into_libs=yes 10393 ;; 10394 esac 10395 ;; 10396 10397gnu*) 10398 version_type=linux 10399 need_lib_prefix=no 10400 need_version=no 10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10402 soname_spec='${libname}${release}${shared_ext}$major' 10403 shlibpath_var=LD_LIBRARY_PATH 10404 hardcode_into_libs=yes 10405 ;; 10406 10407haiku*) 10408 version_type=linux 10409 need_lib_prefix=no 10410 need_version=no 10411 dynamic_linker="$host_os runtime_loader" 10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10413 soname_spec='${libname}${release}${shared_ext}$major' 10414 shlibpath_var=LIBRARY_PATH 10415 shlibpath_overrides_runpath=yes 10416 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10417 hardcode_into_libs=yes 10418 ;; 10419 10420hpux9* | hpux10* | hpux11*) 10421 # Give a soname corresponding to the major version so that dld.sl refuses to 10422 # link against other versions. 10423 version_type=sunos 10424 need_lib_prefix=no 10425 need_version=no 10426 case $host_cpu in 10427 ia64*) 10428 shrext_cmds='.so' 10429 hardcode_into_libs=yes 10430 dynamic_linker="$host_os dld.so" 10431 shlibpath_var=LD_LIBRARY_PATH 10432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10434 soname_spec='${libname}${release}${shared_ext}$major' 10435 if test "X$HPUX_IA64_MODE" = X32; then 10436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10437 else 10438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10439 fi 10440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10441 ;; 10442 hppa*64*) 10443 shrext_cmds='.sl' 10444 hardcode_into_libs=yes 10445 dynamic_linker="$host_os dld.sl" 10446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10449 soname_spec='${libname}${release}${shared_ext}$major' 10450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10452 ;; 10453 *) 10454 shrext_cmds='.sl' 10455 dynamic_linker="$host_os dld.sl" 10456 shlibpath_var=SHLIB_PATH 10457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10459 soname_spec='${libname}${release}${shared_ext}$major' 10460 ;; 10461 esac 10462 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10463 postinstall_cmds='chmod 555 $lib' 10464 # or fails outright, so override atomically: 10465 install_override_mode=555 10466 ;; 10467 10468interix[3-9]*) 10469 version_type=linux 10470 need_lib_prefix=no 10471 need_version=no 10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10473 soname_spec='${libname}${release}${shared_ext}$major' 10474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10475 shlibpath_var=LD_LIBRARY_PATH 10476 shlibpath_overrides_runpath=no 10477 hardcode_into_libs=yes 10478 ;; 10479 10480irix5* | irix6* | nonstopux*) 10481 case $host_os in 10482 nonstopux*) version_type=nonstopux ;; 10483 *) 10484 if test "$lt_cv_prog_gnu_ld" = yes; then 10485 version_type=linux 10486 else 10487 version_type=irix 10488 fi ;; 10489 esac 10490 need_lib_prefix=no 10491 need_version=no 10492 soname_spec='${libname}${release}${shared_ext}$major' 10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10494 case $host_os in 10495 irix5* | nonstopux*) 10496 libsuff= shlibsuff= 10497 ;; 10498 *) 10499 case $LD in # libtool.m4 will add one of these switches to LD 10500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10501 libsuff= shlibsuff= libmagic=32-bit;; 10502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10503 libsuff=32 shlibsuff=N32 libmagic=N32;; 10504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10505 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10506 *) libsuff= shlibsuff= libmagic=never-match;; 10507 esac 10508 ;; 10509 esac 10510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10511 shlibpath_overrides_runpath=no 10512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10514 hardcode_into_libs=yes 10515 ;; 10516 10517# No shared lib support for Linux oldld, aout, or coff. 10518linux*oldld* | linux*aout* | linux*coff*) 10519 dynamic_linker=no 10520 ;; 10521 10522# This must be Linux ELF. 10523linux* | k*bsd*-gnu | kopensolaris*-gnu) 10524 version_type=linux 10525 need_lib_prefix=no 10526 need_version=no 10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10528 soname_spec='${libname}${release}${shared_ext}$major' 10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10530 shlibpath_var=LD_LIBRARY_PATH 10531 shlibpath_overrides_runpath=no 10532 10533 # Some binutils ld are patched to set DT_RUNPATH 10534 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10535 $as_echo_n "(cached) " >&6 10536else 10537 lt_cv_shlibpath_overrides_runpath=no 10538 save_LDFLAGS=$LDFLAGS 10539 save_libdir=$libdir 10540 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10541 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10543/* end confdefs.h. */ 10544 10545int 10546main () 10547{ 10548 10549 ; 10550 return 0; 10551} 10552_ACEOF 10553if ac_fn_c_try_link "$LINENO"; then : 10554 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10555 lt_cv_shlibpath_overrides_runpath=yes 10556fi 10557fi 10558rm -f core conftest.err conftest.$ac_objext \ 10559 conftest$ac_exeext conftest.$ac_ext 10560 LDFLAGS=$save_LDFLAGS 10561 libdir=$save_libdir 10562 10563fi 10564 10565 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10566 10567 # This implies no fast_install, which is unacceptable. 10568 # Some rework will be needed to allow for fast_install 10569 # before this can be enabled. 10570 hardcode_into_libs=yes 10571 10572 # Append ld.so.conf contents to the search path 10573 if test -f /etc/ld.so.conf; then 10574 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' ' '` 10575 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10576 fi 10577 10578 # We used to test for /lib/ld.so.1 and disable shared libraries on 10579 # powerpc, because MkLinux only supported shared libraries with the 10580 # GNU dynamic linker. Since this was broken with cross compilers, 10581 # most powerpc-linux boxes support dynamic linking these days and 10582 # people can always --disable-shared, the test was removed, and we 10583 # assume the GNU/Linux dynamic linker is in use. 10584 dynamic_linker='GNU/Linux ld.so' 10585 ;; 10586 10587netbsd*) 10588 version_type=sunos 10589 need_lib_prefix=no 10590 need_version=no 10591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10594 dynamic_linker='NetBSD (a.out) ld.so' 10595 else 10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10597 soname_spec='${libname}${release}${shared_ext}$major' 10598 dynamic_linker='NetBSD ld.elf_so' 10599 fi 10600 shlibpath_var=LD_LIBRARY_PATH 10601 shlibpath_overrides_runpath=yes 10602 hardcode_into_libs=yes 10603 ;; 10604 10605newsos6) 10606 version_type=linux 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10608 shlibpath_var=LD_LIBRARY_PATH 10609 shlibpath_overrides_runpath=yes 10610 ;; 10611 10612*nto* | *qnx*) 10613 version_type=qnx 10614 need_lib_prefix=no 10615 need_version=no 10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10617 soname_spec='${libname}${release}${shared_ext}$major' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 shlibpath_overrides_runpath=no 10620 hardcode_into_libs=yes 10621 dynamic_linker='ldqnx.so' 10622 ;; 10623 10624openbsd*) 10625 version_type=sunos 10626 sys_lib_dlsearch_path_spec="/usr/lib" 10627 need_lib_prefix=no 10628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10629 case $host_os in 10630 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10631 *) need_version=no ;; 10632 esac 10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10635 shlibpath_var=LD_LIBRARY_PATH 10636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10637 case $host_os in 10638 openbsd2.[89] | openbsd2.[89].*) 10639 shlibpath_overrides_runpath=no 10640 ;; 10641 *) 10642 shlibpath_overrides_runpath=yes 10643 ;; 10644 esac 10645 else 10646 shlibpath_overrides_runpath=yes 10647 fi 10648 ;; 10649 10650os2*) 10651 libname_spec='$name' 10652 shrext_cmds=".dll" 10653 need_lib_prefix=no 10654 library_names_spec='$libname${shared_ext} $libname.a' 10655 dynamic_linker='OS/2 ld.exe' 10656 shlibpath_var=LIBPATH 10657 ;; 10658 10659osf3* | osf4* | osf5*) 10660 version_type=osf 10661 need_lib_prefix=no 10662 need_version=no 10663 soname_spec='${libname}${release}${shared_ext}$major' 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10665 shlibpath_var=LD_LIBRARY_PATH 10666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10668 ;; 10669 10670rdos*) 10671 dynamic_linker=no 10672 ;; 10673 10674solaris*) 10675 version_type=linux 10676 need_lib_prefix=no 10677 need_version=no 10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10679 soname_spec='${libname}${release}${shared_ext}$major' 10680 shlibpath_var=LD_LIBRARY_PATH 10681 shlibpath_overrides_runpath=yes 10682 hardcode_into_libs=yes 10683 # ldd complains unless libraries are executable 10684 postinstall_cmds='chmod +x $lib' 10685 ;; 10686 10687sunos4*) 10688 version_type=sunos 10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10691 shlibpath_var=LD_LIBRARY_PATH 10692 shlibpath_overrides_runpath=yes 10693 if test "$with_gnu_ld" = yes; then 10694 need_lib_prefix=no 10695 fi 10696 need_version=yes 10697 ;; 10698 10699sysv4 | sysv4.3*) 10700 version_type=linux 10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10702 soname_spec='${libname}${release}${shared_ext}$major' 10703 shlibpath_var=LD_LIBRARY_PATH 10704 case $host_vendor in 10705 sni) 10706 shlibpath_overrides_runpath=no 10707 need_lib_prefix=no 10708 runpath_var=LD_RUN_PATH 10709 ;; 10710 siemens) 10711 need_lib_prefix=no 10712 ;; 10713 motorola) 10714 need_lib_prefix=no 10715 need_version=no 10716 shlibpath_overrides_runpath=no 10717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10718 ;; 10719 esac 10720 ;; 10721 10722sysv4*MP*) 10723 if test -d /usr/nec ;then 10724 version_type=linux 10725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10726 soname_spec='$libname${shared_ext}.$major' 10727 shlibpath_var=LD_LIBRARY_PATH 10728 fi 10729 ;; 10730 10731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10732 version_type=freebsd-elf 10733 need_lib_prefix=no 10734 need_version=no 10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10736 soname_spec='${libname}${release}${shared_ext}$major' 10737 shlibpath_var=LD_LIBRARY_PATH 10738 shlibpath_overrides_runpath=yes 10739 hardcode_into_libs=yes 10740 if test "$with_gnu_ld" = yes; then 10741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10742 else 10743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10744 case $host_os in 10745 sco3.2v5*) 10746 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10747 ;; 10748 esac 10749 fi 10750 sys_lib_dlsearch_path_spec='/usr/lib' 10751 ;; 10752 10753tpf*) 10754 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10755 version_type=linux 10756 need_lib_prefix=no 10757 need_version=no 10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10759 shlibpath_var=LD_LIBRARY_PATH 10760 shlibpath_overrides_runpath=no 10761 hardcode_into_libs=yes 10762 ;; 10763 10764uts4*) 10765 version_type=linux 10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10767 soname_spec='${libname}${release}${shared_ext}$major' 10768 shlibpath_var=LD_LIBRARY_PATH 10769 ;; 10770 10771*) 10772 dynamic_linker=no 10773 ;; 10774esac 10775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10776$as_echo "$dynamic_linker" >&6; } 10777test "$dynamic_linker" = no && can_build_shared=no 10778 10779variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10780if test "$GCC" = yes; then 10781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10782fi 10783 10784if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10785 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10786fi 10787if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10789fi 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10883$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10884hardcode_action= 10885if test -n "$hardcode_libdir_flag_spec" || 10886 test -n "$runpath_var" || 10887 test "X$hardcode_automatic" = "Xyes" ; then 10888 10889 # We can hardcode non-existent directories. 10890 if test "$hardcode_direct" != no && 10891 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10892 # have to relink, otherwise we might link with an installed library 10893 # when we should be linking with a yet-to-be-installed one 10894 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10895 test "$hardcode_minus_L" != no; then 10896 # Linking always hardcodes the temporary library directory. 10897 hardcode_action=relink 10898 else 10899 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10900 hardcode_action=immediate 10901 fi 10902else 10903 # We cannot hardcode anything, or else we can only hardcode existing 10904 # directories. 10905 hardcode_action=unsupported 10906fi 10907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10908$as_echo "$hardcode_action" >&6; } 10909 10910if test "$hardcode_action" = relink || 10911 test "$inherit_rpath" = yes; then 10912 # Fast installation is not supported 10913 enable_fast_install=no 10914elif test "$shlibpath_overrides_runpath" = yes || 10915 test "$enable_shared" = no; then 10916 # Fast installation is not necessary 10917 enable_fast_install=needless 10918fi 10919 10920 10921 10922 10923 10924 10925 if test "x$enable_dlopen" != xyes; then 10926 enable_dlopen=unknown 10927 enable_dlopen_self=unknown 10928 enable_dlopen_self_static=unknown 10929else 10930 lt_cv_dlopen=no 10931 lt_cv_dlopen_libs= 10932 10933 case $host_os in 10934 beos*) 10935 lt_cv_dlopen="load_add_on" 10936 lt_cv_dlopen_libs= 10937 lt_cv_dlopen_self=yes 10938 ;; 10939 10940 mingw* | pw32* | cegcc*) 10941 lt_cv_dlopen="LoadLibrary" 10942 lt_cv_dlopen_libs= 10943 ;; 10944 10945 cygwin*) 10946 lt_cv_dlopen="dlopen" 10947 lt_cv_dlopen_libs= 10948 ;; 10949 10950 darwin*) 10951 # if libdl is installed we need to link against it 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10953$as_echo_n "checking for dlopen in -ldl... " >&6; } 10954if ${ac_cv_lib_dl_dlopen+:} false; then : 10955 $as_echo_n "(cached) " >&6 10956else 10957 ac_check_lib_save_LIBS=$LIBS 10958LIBS="-ldl $LIBS" 10959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10960/* end confdefs.h. */ 10961 10962/* Override any GCC internal prototype to avoid an error. 10963 Use char because int might match the return type of a GCC 10964 builtin and then its argument prototype would still apply. */ 10965#ifdef __cplusplus 10966extern "C" 10967#endif 10968char dlopen (); 10969int 10970main () 10971{ 10972return dlopen (); 10973 ; 10974 return 0; 10975} 10976_ACEOF 10977if ac_fn_c_try_link "$LINENO"; then : 10978 ac_cv_lib_dl_dlopen=yes 10979else 10980 ac_cv_lib_dl_dlopen=no 10981fi 10982rm -f core conftest.err conftest.$ac_objext \ 10983 conftest$ac_exeext conftest.$ac_ext 10984LIBS=$ac_check_lib_save_LIBS 10985fi 10986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10987$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10988if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10989 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10990else 10991 10992 lt_cv_dlopen="dyld" 10993 lt_cv_dlopen_libs= 10994 lt_cv_dlopen_self=yes 10995 10996fi 10997 10998 ;; 10999 11000 *) 11001 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11002if test "x$ac_cv_func_shl_load" = xyes; then : 11003 lt_cv_dlopen="shl_load" 11004else 11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11006$as_echo_n "checking for shl_load in -ldld... " >&6; } 11007if ${ac_cv_lib_dld_shl_load+:} false; then : 11008 $as_echo_n "(cached) " >&6 11009else 11010 ac_check_lib_save_LIBS=$LIBS 11011LIBS="-ldld $LIBS" 11012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11013/* end confdefs.h. */ 11014 11015/* Override any GCC internal prototype to avoid an error. 11016 Use char because int might match the return type of a GCC 11017 builtin and then its argument prototype would still apply. */ 11018#ifdef __cplusplus 11019extern "C" 11020#endif 11021char shl_load (); 11022int 11023main () 11024{ 11025return shl_load (); 11026 ; 11027 return 0; 11028} 11029_ACEOF 11030if ac_fn_c_try_link "$LINENO"; then : 11031 ac_cv_lib_dld_shl_load=yes 11032else 11033 ac_cv_lib_dld_shl_load=no 11034fi 11035rm -f core conftest.err conftest.$ac_objext \ 11036 conftest$ac_exeext conftest.$ac_ext 11037LIBS=$ac_check_lib_save_LIBS 11038fi 11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11040$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11041if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11042 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11043else 11044 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11045if test "x$ac_cv_func_dlopen" = xyes; then : 11046 lt_cv_dlopen="dlopen" 11047else 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11049$as_echo_n "checking for dlopen in -ldl... " >&6; } 11050if ${ac_cv_lib_dl_dlopen+:} false; then : 11051 $as_echo_n "(cached) " >&6 11052else 11053 ac_check_lib_save_LIBS=$LIBS 11054LIBS="-ldl $LIBS" 11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11056/* end confdefs.h. */ 11057 11058/* Override any GCC internal prototype to avoid an error. 11059 Use char because int might match the return type of a GCC 11060 builtin and then its argument prototype would still apply. */ 11061#ifdef __cplusplus 11062extern "C" 11063#endif 11064char dlopen (); 11065int 11066main () 11067{ 11068return dlopen (); 11069 ; 11070 return 0; 11071} 11072_ACEOF 11073if ac_fn_c_try_link "$LINENO"; then : 11074 ac_cv_lib_dl_dlopen=yes 11075else 11076 ac_cv_lib_dl_dlopen=no 11077fi 11078rm -f core conftest.err conftest.$ac_objext \ 11079 conftest$ac_exeext conftest.$ac_ext 11080LIBS=$ac_check_lib_save_LIBS 11081fi 11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11083$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11084if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11085 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11086else 11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11088$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11089if ${ac_cv_lib_svld_dlopen+:} false; then : 11090 $as_echo_n "(cached) " >&6 11091else 11092 ac_check_lib_save_LIBS=$LIBS 11093LIBS="-lsvld $LIBS" 11094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11095/* end confdefs.h. */ 11096 11097/* Override any GCC internal prototype to avoid an error. 11098 Use char because int might match the return type of a GCC 11099 builtin and then its argument prototype would still apply. */ 11100#ifdef __cplusplus 11101extern "C" 11102#endif 11103char dlopen (); 11104int 11105main () 11106{ 11107return dlopen (); 11108 ; 11109 return 0; 11110} 11111_ACEOF 11112if ac_fn_c_try_link "$LINENO"; then : 11113 ac_cv_lib_svld_dlopen=yes 11114else 11115 ac_cv_lib_svld_dlopen=no 11116fi 11117rm -f core conftest.err conftest.$ac_objext \ 11118 conftest$ac_exeext conftest.$ac_ext 11119LIBS=$ac_check_lib_save_LIBS 11120fi 11121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11122$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11123if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11125else 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11127$as_echo_n "checking for dld_link in -ldld... " >&6; } 11128if ${ac_cv_lib_dld_dld_link+:} false; then : 11129 $as_echo_n "(cached) " >&6 11130else 11131 ac_check_lib_save_LIBS=$LIBS 11132LIBS="-ldld $LIBS" 11133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11134/* end confdefs.h. */ 11135 11136/* Override any GCC internal prototype to avoid an error. 11137 Use char because int might match the return type of a GCC 11138 builtin and then its argument prototype would still apply. */ 11139#ifdef __cplusplus 11140extern "C" 11141#endif 11142char dld_link (); 11143int 11144main () 11145{ 11146return dld_link (); 11147 ; 11148 return 0; 11149} 11150_ACEOF 11151if ac_fn_c_try_link "$LINENO"; then : 11152 ac_cv_lib_dld_dld_link=yes 11153else 11154 ac_cv_lib_dld_dld_link=no 11155fi 11156rm -f core conftest.err conftest.$ac_objext \ 11157 conftest$ac_exeext conftest.$ac_ext 11158LIBS=$ac_check_lib_save_LIBS 11159fi 11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11161$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11162if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11163 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11164fi 11165 11166 11167fi 11168 11169 11170fi 11171 11172 11173fi 11174 11175 11176fi 11177 11178 11179fi 11180 11181 ;; 11182 esac 11183 11184 if test "x$lt_cv_dlopen" != xno; then 11185 enable_dlopen=yes 11186 else 11187 enable_dlopen=no 11188 fi 11189 11190 case $lt_cv_dlopen in 11191 dlopen) 11192 save_CPPFLAGS="$CPPFLAGS" 11193 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11194 11195 save_LDFLAGS="$LDFLAGS" 11196 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11197 11198 save_LIBS="$LIBS" 11199 LIBS="$lt_cv_dlopen_libs $LIBS" 11200 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11202$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11203if ${lt_cv_dlopen_self+:} false; then : 11204 $as_echo_n "(cached) " >&6 11205else 11206 if test "$cross_compiling" = yes; then : 11207 lt_cv_dlopen_self=cross 11208else 11209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11210 lt_status=$lt_dlunknown 11211 cat > conftest.$ac_ext <<_LT_EOF 11212#line 11212 "configure" 11213#include "confdefs.h" 11214 11215#if HAVE_DLFCN_H 11216#include <dlfcn.h> 11217#endif 11218 11219#include <stdio.h> 11220 11221#ifdef RTLD_GLOBAL 11222# define LT_DLGLOBAL RTLD_GLOBAL 11223#else 11224# ifdef DL_GLOBAL 11225# define LT_DLGLOBAL DL_GLOBAL 11226# else 11227# define LT_DLGLOBAL 0 11228# endif 11229#endif 11230 11231/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11232 find out it does not work in some platform. */ 11233#ifndef LT_DLLAZY_OR_NOW 11234# ifdef RTLD_LAZY 11235# define LT_DLLAZY_OR_NOW RTLD_LAZY 11236# else 11237# ifdef DL_LAZY 11238# define LT_DLLAZY_OR_NOW DL_LAZY 11239# else 11240# ifdef RTLD_NOW 11241# define LT_DLLAZY_OR_NOW RTLD_NOW 11242# else 11243# ifdef DL_NOW 11244# define LT_DLLAZY_OR_NOW DL_NOW 11245# else 11246# define LT_DLLAZY_OR_NOW 0 11247# endif 11248# endif 11249# endif 11250# endif 11251#endif 11252 11253/* When -fvisbility=hidden is used, assume the code has been annotated 11254 correspondingly for the symbols needed. */ 11255#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11256void fnord () __attribute__((visibility("default"))); 11257#endif 11258 11259void fnord () { int i=42; } 11260int main () 11261{ 11262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11263 int status = $lt_dlunknown; 11264 11265 if (self) 11266 { 11267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11268 else 11269 { 11270 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11271 else puts (dlerror ()); 11272 } 11273 /* dlclose (self); */ 11274 } 11275 else 11276 puts (dlerror ()); 11277 11278 return status; 11279} 11280_LT_EOF 11281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11282 (eval $ac_link) 2>&5 11283 ac_status=$? 11284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11285 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11286 (./conftest; exit; ) >&5 2>/dev/null 11287 lt_status=$? 11288 case x$lt_status in 11289 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11290 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11291 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11292 esac 11293 else : 11294 # compilation failed 11295 lt_cv_dlopen_self=no 11296 fi 11297fi 11298rm -fr conftest* 11299 11300 11301fi 11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11303$as_echo "$lt_cv_dlopen_self" >&6; } 11304 11305 if test "x$lt_cv_dlopen_self" = xyes; then 11306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11308$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11309if ${lt_cv_dlopen_self_static+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 if test "$cross_compiling" = yes; then : 11313 lt_cv_dlopen_self_static=cross 11314else 11315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11316 lt_status=$lt_dlunknown 11317 cat > conftest.$ac_ext <<_LT_EOF 11318#line 11318 "configure" 11319#include "confdefs.h" 11320 11321#if HAVE_DLFCN_H 11322#include <dlfcn.h> 11323#endif 11324 11325#include <stdio.h> 11326 11327#ifdef RTLD_GLOBAL 11328# define LT_DLGLOBAL RTLD_GLOBAL 11329#else 11330# ifdef DL_GLOBAL 11331# define LT_DLGLOBAL DL_GLOBAL 11332# else 11333# define LT_DLGLOBAL 0 11334# endif 11335#endif 11336 11337/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11338 find out it does not work in some platform. */ 11339#ifndef LT_DLLAZY_OR_NOW 11340# ifdef RTLD_LAZY 11341# define LT_DLLAZY_OR_NOW RTLD_LAZY 11342# else 11343# ifdef DL_LAZY 11344# define LT_DLLAZY_OR_NOW DL_LAZY 11345# else 11346# ifdef RTLD_NOW 11347# define LT_DLLAZY_OR_NOW RTLD_NOW 11348# else 11349# ifdef DL_NOW 11350# define LT_DLLAZY_OR_NOW DL_NOW 11351# else 11352# define LT_DLLAZY_OR_NOW 0 11353# endif 11354# endif 11355# endif 11356# endif 11357#endif 11358 11359/* When -fvisbility=hidden is used, assume the code has been annotated 11360 correspondingly for the symbols needed. */ 11361#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11362void fnord () __attribute__((visibility("default"))); 11363#endif 11364 11365void fnord () { int i=42; } 11366int main () 11367{ 11368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11369 int status = $lt_dlunknown; 11370 11371 if (self) 11372 { 11373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11374 else 11375 { 11376 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11377 else puts (dlerror ()); 11378 } 11379 /* dlclose (self); */ 11380 } 11381 else 11382 puts (dlerror ()); 11383 11384 return status; 11385} 11386_LT_EOF 11387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11388 (eval $ac_link) 2>&5 11389 ac_status=$? 11390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11391 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11392 (./conftest; exit; ) >&5 2>/dev/null 11393 lt_status=$? 11394 case x$lt_status in 11395 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11396 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11397 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11398 esac 11399 else : 11400 # compilation failed 11401 lt_cv_dlopen_self_static=no 11402 fi 11403fi 11404rm -fr conftest* 11405 11406 11407fi 11408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11409$as_echo "$lt_cv_dlopen_self_static" >&6; } 11410 fi 11411 11412 CPPFLAGS="$save_CPPFLAGS" 11413 LDFLAGS="$save_LDFLAGS" 11414 LIBS="$save_LIBS" 11415 ;; 11416 esac 11417 11418 case $lt_cv_dlopen_self in 11419 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11420 *) enable_dlopen_self=unknown ;; 11421 esac 11422 11423 case $lt_cv_dlopen_self_static in 11424 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11425 *) enable_dlopen_self_static=unknown ;; 11426 esac 11427fi 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445striplib= 11446old_striplib= 11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11448$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11449if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11450 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11451 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11453$as_echo "yes" >&6; } 11454else 11455# FIXME - insert some real tests, host_os isn't really good enough 11456 case $host_os in 11457 darwin*) 11458 if test -n "$STRIP" ; then 11459 striplib="$STRIP -x" 11460 old_striplib="$STRIP -S" 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11462$as_echo "yes" >&6; } 11463 else 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11465$as_echo "no" >&6; } 11466 fi 11467 ;; 11468 *) 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11470$as_echo "no" >&6; } 11471 ;; 11472 esac 11473fi 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 # Report which library types will actually be built 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11488$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11490$as_echo "$can_build_shared" >&6; } 11491 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11493$as_echo_n "checking whether to build shared libraries... " >&6; } 11494 test "$can_build_shared" = "no" && enable_shared=no 11495 11496 # On AIX, shared libraries and static libraries use the same namespace, and 11497 # are all built from PIC. 11498 case $host_os in 11499 aix3*) 11500 test "$enable_shared" = yes && enable_static=no 11501 if test -n "$RANLIB"; then 11502 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11503 postinstall_cmds='$RANLIB $lib' 11504 fi 11505 ;; 11506 11507 aix[4-9]*) 11508 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11509 test "$enable_shared" = yes && enable_static=no 11510 fi 11511 ;; 11512 esac 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11514$as_echo "$enable_shared" >&6; } 11515 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11517$as_echo_n "checking whether to build static libraries... " >&6; } 11518 # Make sure either enable_shared or enable_static is yes. 11519 test "$enable_shared" = yes || enable_static=yes 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11521$as_echo "$enable_static" >&6; } 11522 11523 11524 11525 11526fi 11527ac_ext=c 11528ac_cpp='$CPP $CPPFLAGS' 11529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11531ac_compiler_gnu=$ac_cv_c_compiler_gnu 11532 11533CC="$lt_save_CC" 11534 11535 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11536 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11537 (test "X$CXX" != "Xg++"))) ; then 11538 ac_ext=cpp 11539ac_cpp='$CXXCPP $CPPFLAGS' 11540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11544$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11545if test -z "$CXXCPP"; then 11546 if ${ac_cv_prog_CXXCPP+:} false; then : 11547 $as_echo_n "(cached) " >&6 11548else 11549 # Double quotes because CXXCPP needs to be expanded 11550 for CXXCPP in "$CXX -E" "/lib/cpp" 11551 do 11552 ac_preproc_ok=false 11553for ac_cxx_preproc_warn_flag in '' yes 11554do 11555 # Use a header file that comes with gcc, so configuring glibc 11556 # with a fresh cross-compiler works. 11557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11558 # <limits.h> exists even on freestanding compilers. 11559 # On the NeXT, cc -E runs the code through the compiler's parser, 11560 # not just through cpp. "Syntax error" is here to catch this case. 11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11562/* end confdefs.h. */ 11563#ifdef __STDC__ 11564# include <limits.h> 11565#else 11566# include <assert.h> 11567#endif 11568 Syntax error 11569_ACEOF 11570if ac_fn_cxx_try_cpp "$LINENO"; then : 11571 11572else 11573 # Broken: fails on valid input. 11574continue 11575fi 11576rm -f conftest.err conftest.i conftest.$ac_ext 11577 11578 # OK, works on sane cases. Now check whether nonexistent headers 11579 # can be detected and how. 11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11581/* end confdefs.h. */ 11582#include <ac_nonexistent.h> 11583_ACEOF 11584if ac_fn_cxx_try_cpp "$LINENO"; then : 11585 # Broken: success on invalid input. 11586continue 11587else 11588 # Passes both tests. 11589ac_preproc_ok=: 11590break 11591fi 11592rm -f conftest.err conftest.i conftest.$ac_ext 11593 11594done 11595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11596rm -f conftest.i conftest.err conftest.$ac_ext 11597if $ac_preproc_ok; then : 11598 break 11599fi 11600 11601 done 11602 ac_cv_prog_CXXCPP=$CXXCPP 11603 11604fi 11605 CXXCPP=$ac_cv_prog_CXXCPP 11606else 11607 ac_cv_prog_CXXCPP=$CXXCPP 11608fi 11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11610$as_echo "$CXXCPP" >&6; } 11611ac_preproc_ok=false 11612for ac_cxx_preproc_warn_flag in '' yes 11613do 11614 # Use a header file that comes with gcc, so configuring glibc 11615 # with a fresh cross-compiler works. 11616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11617 # <limits.h> exists even on freestanding compilers. 11618 # On the NeXT, cc -E runs the code through the compiler's parser, 11619 # not just through cpp. "Syntax error" is here to catch this case. 11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11621/* end confdefs.h. */ 11622#ifdef __STDC__ 11623# include <limits.h> 11624#else 11625# include <assert.h> 11626#endif 11627 Syntax error 11628_ACEOF 11629if ac_fn_cxx_try_cpp "$LINENO"; then : 11630 11631else 11632 # Broken: fails on valid input. 11633continue 11634fi 11635rm -f conftest.err conftest.i conftest.$ac_ext 11636 11637 # OK, works on sane cases. Now check whether nonexistent headers 11638 # can be detected and how. 11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11640/* end confdefs.h. */ 11641#include <ac_nonexistent.h> 11642_ACEOF 11643if ac_fn_cxx_try_cpp "$LINENO"; then : 11644 # Broken: success on invalid input. 11645continue 11646else 11647 # Passes both tests. 11648ac_preproc_ok=: 11649break 11650fi 11651rm -f conftest.err conftest.i conftest.$ac_ext 11652 11653done 11654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11655rm -f conftest.i conftest.err conftest.$ac_ext 11656if $ac_preproc_ok; then : 11657 11658else 11659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11661as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 11662See \`config.log' for more details" "$LINENO" 5; } 11663fi 11664 11665ac_ext=c 11666ac_cpp='$CPP $CPPFLAGS' 11667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11669ac_compiler_gnu=$ac_cv_c_compiler_gnu 11670 11671else 11672 _lt_caught_CXX_error=yes 11673fi 11674 11675ac_ext=cpp 11676ac_cpp='$CXXCPP $CPPFLAGS' 11677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11680 11681archive_cmds_need_lc_CXX=no 11682allow_undefined_flag_CXX= 11683always_export_symbols_CXX=no 11684archive_expsym_cmds_CXX= 11685compiler_needs_object_CXX=no 11686export_dynamic_flag_spec_CXX= 11687hardcode_direct_CXX=no 11688hardcode_direct_absolute_CXX=no 11689hardcode_libdir_flag_spec_CXX= 11690hardcode_libdir_flag_spec_ld_CXX= 11691hardcode_libdir_separator_CXX= 11692hardcode_minus_L_CXX=no 11693hardcode_shlibpath_var_CXX=unsupported 11694hardcode_automatic_CXX=no 11695inherit_rpath_CXX=no 11696module_cmds_CXX= 11697module_expsym_cmds_CXX= 11698link_all_deplibs_CXX=unknown 11699old_archive_cmds_CXX=$old_archive_cmds 11700reload_flag_CXX=$reload_flag 11701reload_cmds_CXX=$reload_cmds 11702no_undefined_flag_CXX= 11703whole_archive_flag_spec_CXX= 11704enable_shared_with_static_runtimes_CXX=no 11705 11706# Source file extension for C++ test sources. 11707ac_ext=cpp 11708 11709# Object file extension for compiled C++ test sources. 11710objext=o 11711objext_CXX=$objext 11712 11713# No sense in running all these tests if we already determined that 11714# the CXX compiler isn't working. Some variables (like enable_shared) 11715# are currently assumed to apply to all compilers on this platform, 11716# and will be corrupted by setting them based on a non-working compiler. 11717if test "$_lt_caught_CXX_error" != yes; then 11718 # Code to be used in simple compile tests 11719 lt_simple_compile_test_code="int some_variable = 0;" 11720 11721 # Code to be used in simple link tests 11722 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11723 11724 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11725 11726 11727 11728 11729 11730 11731# If no C compiler was specified, use CC. 11732LTCC=${LTCC-"$CC"} 11733 11734# If no C compiler flags were specified, use CFLAGS. 11735LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11736 11737# Allow CC to be a program name with arguments. 11738compiler=$CC 11739 11740 11741 # save warnings/boilerplate of simple test code 11742 ac_outfile=conftest.$ac_objext 11743echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11744eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11745_lt_compiler_boilerplate=`cat conftest.err` 11746$RM conftest* 11747 11748 ac_outfile=conftest.$ac_objext 11749echo "$lt_simple_link_test_code" >conftest.$ac_ext 11750eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11751_lt_linker_boilerplate=`cat conftest.err` 11752$RM -r conftest* 11753 11754 11755 # Allow CC to be a program name with arguments. 11756 lt_save_CC=$CC 11757 lt_save_LD=$LD 11758 lt_save_GCC=$GCC 11759 GCC=$GXX 11760 lt_save_with_gnu_ld=$with_gnu_ld 11761 lt_save_path_LD=$lt_cv_path_LD 11762 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11763 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11764 else 11765 $as_unset lt_cv_prog_gnu_ld 11766 fi 11767 if test -n "${lt_cv_path_LDCXX+set}"; then 11768 lt_cv_path_LD=$lt_cv_path_LDCXX 11769 else 11770 $as_unset lt_cv_path_LD 11771 fi 11772 test -z "${LDCXX+set}" || LD=$LDCXX 11773 CC=${CXX-"c++"} 11774 compiler=$CC 11775 compiler_CXX=$CC 11776 for cc_temp in $compiler""; do 11777 case $cc_temp in 11778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11780 \-*) ;; 11781 *) break;; 11782 esac 11783done 11784cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11785 11786 11787 if test -n "$compiler"; then 11788 # We don't want -fno-exception when compiling C++ code, so set the 11789 # no_builtin_flag separately 11790 if test "$GXX" = yes; then 11791 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11792 else 11793 lt_prog_compiler_no_builtin_flag_CXX= 11794 fi 11795 11796 if test "$GXX" = yes; then 11797 # Set up default GNU C++ configuration 11798 11799 11800 11801# Check whether --with-gnu-ld was given. 11802if test "${with_gnu_ld+set}" = set; then : 11803 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11804else 11805 with_gnu_ld=no 11806fi 11807 11808ac_prog=ld 11809if test "$GCC" = yes; then 11810 # Check if gcc -print-prog-name=ld gives a path. 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11812$as_echo_n "checking for ld used by $CC... " >&6; } 11813 case $host in 11814 *-*-mingw*) 11815 # gcc leaves a trailing carriage return which upsets mingw 11816 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11817 *) 11818 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11819 esac 11820 case $ac_prog in 11821 # Accept absolute paths. 11822 [\\/]* | ?:[\\/]*) 11823 re_direlt='/[^/][^/]*/\.\./' 11824 # Canonicalize the pathname of ld 11825 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11826 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11827 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11828 done 11829 test -z "$LD" && LD="$ac_prog" 11830 ;; 11831 "") 11832 # If it fails, then pretend we aren't using GCC. 11833 ac_prog=ld 11834 ;; 11835 *) 11836 # If it is relative, then search for the first ld in PATH. 11837 with_gnu_ld=unknown 11838 ;; 11839 esac 11840elif test "$with_gnu_ld" = yes; then 11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11842$as_echo_n "checking for GNU ld... " >&6; } 11843else 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11845$as_echo_n "checking for non-GNU ld... " >&6; } 11846fi 11847if ${lt_cv_path_LD+:} false; then : 11848 $as_echo_n "(cached) " >&6 11849else 11850 if test -z "$LD"; then 11851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11852 for ac_dir in $PATH; do 11853 IFS="$lt_save_ifs" 11854 test -z "$ac_dir" && ac_dir=. 11855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11856 lt_cv_path_LD="$ac_dir/$ac_prog" 11857 # Check to see if the program is GNU ld. I'd rather use --version, 11858 # but apparently some variants of GNU ld only accept -v. 11859 # Break only if it was the GNU/non-GNU ld that we prefer. 11860 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11861 *GNU* | *'with BFD'*) 11862 test "$with_gnu_ld" != no && break 11863 ;; 11864 *) 11865 test "$with_gnu_ld" != yes && break 11866 ;; 11867 esac 11868 fi 11869 done 11870 IFS="$lt_save_ifs" 11871else 11872 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11873fi 11874fi 11875 11876LD="$lt_cv_path_LD" 11877if test -n "$LD"; then 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11879$as_echo "$LD" >&6; } 11880else 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11882$as_echo "no" >&6; } 11883fi 11884test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11886$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11887if ${lt_cv_prog_gnu_ld+:} false; then : 11888 $as_echo_n "(cached) " >&6 11889else 11890 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11891case `$LD -v 2>&1 </dev/null` in 11892*GNU* | *'with BFD'*) 11893 lt_cv_prog_gnu_ld=yes 11894 ;; 11895*) 11896 lt_cv_prog_gnu_ld=no 11897 ;; 11898esac 11899fi 11900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11901$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11902with_gnu_ld=$lt_cv_prog_gnu_ld 11903 11904 11905 11906 11907 11908 11909 11910 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11911 # archiving commands below assume that GNU ld is being used. 11912 if test "$with_gnu_ld" = yes; then 11913 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11914 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' 11915 11916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11918 11919 # If archive_cmds runs LD, not CC, wlarc should be empty 11920 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11921 # investigate it a little bit more. (MM) 11922 wlarc='${wl}' 11923 11924 # ancient GNU ld didn't support --whole-archive et. al. 11925 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11926 $GREP 'no-whole-archive' > /dev/null; then 11927 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11928 else 11929 whole_archive_flag_spec_CXX= 11930 fi 11931 else 11932 with_gnu_ld=no 11933 wlarc= 11934 11935 # A generic and very simple default shared library creation 11936 # command for GNU C++ for the case where it uses the native 11937 # linker, instead of GNU ld. If possible, this setting should 11938 # overridden to take advantage of the native linker features on 11939 # the platform it is being used on. 11940 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11941 fi 11942 11943 # Commands to make compiler produce verbose output that lists 11944 # what "hidden" libraries, object files and flags are used when 11945 # linking a shared library. 11946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11947 11948 else 11949 GXX=no 11950 with_gnu_ld=no 11951 wlarc= 11952 fi 11953 11954 # PORTME: fill in a description of your system's C++ link characteristics 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11956$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11957 ld_shlibs_CXX=yes 11958 case $host_os in 11959 aix3*) 11960 # FIXME: insert proper C++ library support 11961 ld_shlibs_CXX=no 11962 ;; 11963 aix[4-9]*) 11964 if test "$host_cpu" = ia64; then 11965 # On IA64, the linker does run time linking by default, so we don't 11966 # have to do anything special. 11967 aix_use_runtimelinking=no 11968 exp_sym_flag='-Bexport' 11969 no_entry_flag="" 11970 else 11971 aix_use_runtimelinking=no 11972 11973 # Test if we are trying to use run time linking or normal 11974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11975 # need to do runtime linking. 11976 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11977 for ld_flag in $LDFLAGS; do 11978 case $ld_flag in 11979 *-brtl*) 11980 aix_use_runtimelinking=yes 11981 break 11982 ;; 11983 esac 11984 done 11985 ;; 11986 esac 11987 11988 exp_sym_flag='-bexport' 11989 no_entry_flag='-bnoentry' 11990 fi 11991 11992 # When large executables or shared objects are built, AIX ld can 11993 # have problems creating the table of contents. If linking a library 11994 # or program results in "error TOC overflow" add -mminimal-toc to 11995 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11996 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11997 11998 archive_cmds_CXX='' 11999 hardcode_direct_CXX=yes 12000 hardcode_direct_absolute_CXX=yes 12001 hardcode_libdir_separator_CXX=':' 12002 link_all_deplibs_CXX=yes 12003 file_list_spec_CXX='${wl}-f,' 12004 12005 if test "$GXX" = yes; then 12006 case $host_os in aix4.[012]|aix4.[012].*) 12007 # We only want to do this on AIX 4.2 and lower, the check 12008 # below for broken collect2 doesn't work under 4.3+ 12009 collect2name=`${CC} -print-prog-name=collect2` 12010 if test -f "$collect2name" && 12011 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12012 then 12013 # We have reworked collect2 12014 : 12015 else 12016 # We have old collect2 12017 hardcode_direct_CXX=unsupported 12018 # It fails to find uninstalled libraries when the uninstalled 12019 # path is not listed in the libpath. Setting hardcode_minus_L 12020 # to unsupported forces relinking 12021 hardcode_minus_L_CXX=yes 12022 hardcode_libdir_flag_spec_CXX='-L$libdir' 12023 hardcode_libdir_separator_CXX= 12024 fi 12025 esac 12026 shared_flag='-shared' 12027 if test "$aix_use_runtimelinking" = yes; then 12028 shared_flag="$shared_flag "'${wl}-G' 12029 fi 12030 else 12031 # not using gcc 12032 if test "$host_cpu" = ia64; then 12033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12034 # chokes on -Wl,-G. The following line is correct: 12035 shared_flag='-G' 12036 else 12037 if test "$aix_use_runtimelinking" = yes; then 12038 shared_flag='${wl}-G' 12039 else 12040 shared_flag='${wl}-bM:SRE' 12041 fi 12042 fi 12043 fi 12044 12045 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12046 # It seems that -bexpall does not export symbols beginning with 12047 # underscore (_), so it is better to generate a list of symbols to 12048 # export. 12049 always_export_symbols_CXX=yes 12050 if test "$aix_use_runtimelinking" = yes; then 12051 # Warning - without using the other runtime loading flags (-brtl), 12052 # -berok will link without error, but may produce a broken library. 12053 allow_undefined_flag_CXX='-berok' 12054 # Determine the default libpath from the value encoded in an empty 12055 # executable. 12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12057/* end confdefs.h. */ 12058 12059int 12060main () 12061{ 12062 12063 ; 12064 return 0; 12065} 12066_ACEOF 12067if ac_fn_cxx_try_link "$LINENO"; then : 12068 12069lt_aix_libpath_sed=' 12070 /Import File Strings/,/^$/ { 12071 /^0/ { 12072 s/^0 *\(.*\)$/\1/ 12073 p 12074 } 12075 }' 12076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12077# Check for a 64-bit object if we didn't find anything. 12078if test -z "$aix_libpath"; then 12079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12080fi 12081fi 12082rm -f core conftest.err conftest.$ac_objext \ 12083 conftest$ac_exeext conftest.$ac_ext 12084if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12085 12086 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12087 12088 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" 12089 else 12090 if test "$host_cpu" = ia64; then 12091 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12092 allow_undefined_flag_CXX="-z nodefs" 12093 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" 12094 else 12095 # Determine the default libpath from the value encoded in an 12096 # empty executable. 12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098/* end confdefs.h. */ 12099 12100int 12101main () 12102{ 12103 12104 ; 12105 return 0; 12106} 12107_ACEOF 12108if ac_fn_cxx_try_link "$LINENO"; then : 12109 12110lt_aix_libpath_sed=' 12111 /Import File Strings/,/^$/ { 12112 /^0/ { 12113 s/^0 *\(.*\)$/\1/ 12114 p 12115 } 12116 }' 12117aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12118# Check for a 64-bit object if we didn't find anything. 12119if test -z "$aix_libpath"; then 12120 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12121fi 12122fi 12123rm -f core conftest.err conftest.$ac_objext \ 12124 conftest$ac_exeext conftest.$ac_ext 12125if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12126 12127 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12128 # Warning - without using the other run time loading flags, 12129 # -berok will link without error, but may produce a broken library. 12130 no_undefined_flag_CXX=' ${wl}-bernotok' 12131 allow_undefined_flag_CXX=' ${wl}-berok' 12132 if test "$with_gnu_ld" = yes; then 12133 # We only use this code for GNU lds that support --whole-archive. 12134 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12135 else 12136 # Exported symbols can be pulled into shared objects from archives 12137 whole_archive_flag_spec_CXX='$convenience' 12138 fi 12139 archive_cmds_need_lc_CXX=yes 12140 # This is similar to how AIX traditionally builds its shared 12141 # libraries. 12142 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' 12143 fi 12144 fi 12145 ;; 12146 12147 beos*) 12148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12149 allow_undefined_flag_CXX=unsupported 12150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12151 # support --undefined. This deserves some investigation. FIXME 12152 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12153 else 12154 ld_shlibs_CXX=no 12155 fi 12156 ;; 12157 12158 chorus*) 12159 case $cc_basename in 12160 *) 12161 # FIXME: insert proper C++ library support 12162 ld_shlibs_CXX=no 12163 ;; 12164 esac 12165 ;; 12166 12167 cygwin* | mingw* | pw32* | cegcc*) 12168 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12169 # as there is no search path for DLLs. 12170 hardcode_libdir_flag_spec_CXX='-L$libdir' 12171 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12172 allow_undefined_flag_CXX=unsupported 12173 always_export_symbols_CXX=no 12174 enable_shared_with_static_runtimes_CXX=yes 12175 12176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12177 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' 12178 # If the export-symbols file already is a .def file (1st line 12179 # is EXPORTS), use it as is; otherwise, prepend... 12180 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12181 cp $export_symbols $output_objdir/$soname.def; 12182 else 12183 echo EXPORTS > $output_objdir/$soname.def; 12184 cat $export_symbols >> $output_objdir/$soname.def; 12185 fi~ 12186 $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' 12187 else 12188 ld_shlibs_CXX=no 12189 fi 12190 ;; 12191 darwin* | rhapsody*) 12192 12193 12194 archive_cmds_need_lc_CXX=no 12195 hardcode_direct_CXX=no 12196 hardcode_automatic_CXX=yes 12197 hardcode_shlibpath_var_CXX=unsupported 12198 if test "$lt_cv_ld_force_load" = "yes"; then 12199 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\"`' 12200 else 12201 whole_archive_flag_spec_CXX='' 12202 fi 12203 link_all_deplibs_CXX=yes 12204 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12205 case $cc_basename in 12206 ifort*) _lt_dar_can_shared=yes ;; 12207 *) _lt_dar_can_shared=$GCC ;; 12208 esac 12209 if test "$_lt_dar_can_shared" = "yes"; then 12210 output_verbose_link_cmd=func_echo_all 12211 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}" 12212 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12213 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}" 12214 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}" 12215 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12216 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}" 12217 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}" 12218 fi 12219 12220 else 12221 ld_shlibs_CXX=no 12222 fi 12223 12224 ;; 12225 12226 dgux*) 12227 case $cc_basename in 12228 ec++*) 12229 # FIXME: insert proper C++ library support 12230 ld_shlibs_CXX=no 12231 ;; 12232 ghcx*) 12233 # Green Hills C++ Compiler 12234 # FIXME: insert proper C++ library support 12235 ld_shlibs_CXX=no 12236 ;; 12237 *) 12238 # FIXME: insert proper C++ library support 12239 ld_shlibs_CXX=no 12240 ;; 12241 esac 12242 ;; 12243 12244 freebsd2.*) 12245 # C++ shared libraries reported to be fairly broken before 12246 # switch to ELF 12247 ld_shlibs_CXX=no 12248 ;; 12249 12250 freebsd-elf*) 12251 archive_cmds_need_lc_CXX=no 12252 ;; 12253 12254 freebsd* | dragonfly*) 12255 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12256 # conventions 12257 ld_shlibs_CXX=yes 12258 ;; 12259 12260 gnu*) 12261 ;; 12262 12263 haiku*) 12264 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12265 link_all_deplibs_CXX=yes 12266 ;; 12267 12268 hpux9*) 12269 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12270 hardcode_libdir_separator_CXX=: 12271 export_dynamic_flag_spec_CXX='${wl}-E' 12272 hardcode_direct_CXX=yes 12273 hardcode_minus_L_CXX=yes # Not in the search PATH, 12274 # but as the default 12275 # location of the library. 12276 12277 case $cc_basename in 12278 CC*) 12279 # FIXME: insert proper C++ library support 12280 ld_shlibs_CXX=no 12281 ;; 12282 aCC*) 12283 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' 12284 # Commands to make compiler produce verbose output that lists 12285 # what "hidden" libraries, object files and flags are used when 12286 # linking a shared library. 12287 # 12288 # There doesn't appear to be a way to prevent this compiler from 12289 # explicitly linking system object files so we need to strip them 12290 # from the output so that they don't get included in the library 12291 # dependencies. 12292 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"' 12293 ;; 12294 *) 12295 if test "$GXX" = yes; then 12296 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' 12297 else 12298 # FIXME: insert proper C++ library support 12299 ld_shlibs_CXX=no 12300 fi 12301 ;; 12302 esac 12303 ;; 12304 12305 hpux10*|hpux11*) 12306 if test $with_gnu_ld = no; then 12307 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12308 hardcode_libdir_separator_CXX=: 12309 12310 case $host_cpu in 12311 hppa*64*|ia64*) 12312 ;; 12313 *) 12314 export_dynamic_flag_spec_CXX='${wl}-E' 12315 ;; 12316 esac 12317 fi 12318 case $host_cpu in 12319 hppa*64*|ia64*) 12320 hardcode_direct_CXX=no 12321 hardcode_shlibpath_var_CXX=no 12322 ;; 12323 *) 12324 hardcode_direct_CXX=yes 12325 hardcode_direct_absolute_CXX=yes 12326 hardcode_minus_L_CXX=yes # Not in the search PATH, 12327 # but as the default 12328 # location of the library. 12329 ;; 12330 esac 12331 12332 case $cc_basename in 12333 CC*) 12334 # FIXME: insert proper C++ library support 12335 ld_shlibs_CXX=no 12336 ;; 12337 aCC*) 12338 case $host_cpu in 12339 hppa*64*) 12340 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12341 ;; 12342 ia64*) 12343 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12344 ;; 12345 *) 12346 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12347 ;; 12348 esac 12349 # Commands to make compiler produce verbose output that lists 12350 # what "hidden" libraries, object files and flags are used when 12351 # linking a shared library. 12352 # 12353 # There doesn't appear to be a way to prevent this compiler from 12354 # explicitly linking system object files so we need to strip them 12355 # from the output so that they don't get included in the library 12356 # dependencies. 12357 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"' 12358 ;; 12359 *) 12360 if test "$GXX" = yes; then 12361 if test $with_gnu_ld = no; then 12362 case $host_cpu in 12363 hppa*64*) 12364 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12365 ;; 12366 ia64*) 12367 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12368 ;; 12369 *) 12370 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' 12371 ;; 12372 esac 12373 fi 12374 else 12375 # FIXME: insert proper C++ library support 12376 ld_shlibs_CXX=no 12377 fi 12378 ;; 12379 esac 12380 ;; 12381 12382 interix[3-9]*) 12383 hardcode_direct_CXX=no 12384 hardcode_shlibpath_var_CXX=no 12385 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12386 export_dynamic_flag_spec_CXX='${wl}-E' 12387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12388 # Instead, shared libraries are loaded at an image base (0x10000000 by 12389 # default) and relocated if they conflict, which is a slow very memory 12390 # consuming and fragmenting process. To avoid this, we pick a random, 12391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12392 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12393 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' 12394 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' 12395 ;; 12396 irix5* | irix6*) 12397 case $cc_basename in 12398 CC*) 12399 # SGI C++ 12400 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' 12401 12402 # Archives containing C++ object files must be created using 12403 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12404 # necessary to make sure instantiated templates are included 12405 # in the archive. 12406 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12407 ;; 12408 *) 12409 if test "$GXX" = yes; then 12410 if test "$with_gnu_ld" = no; then 12411 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' 12412 else 12413 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' 12414 fi 12415 fi 12416 link_all_deplibs_CXX=yes 12417 ;; 12418 esac 12419 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12420 hardcode_libdir_separator_CXX=: 12421 inherit_rpath_CXX=yes 12422 ;; 12423 12424 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12425 case $cc_basename in 12426 KCC*) 12427 # Kuck and Associates, Inc. (KAI) C++ Compiler 12428 12429 # KCC will only create a shared library if the output file 12430 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12431 # to its proper name (with version) after linking. 12432 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' 12433 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' 12434 # Commands to make compiler produce verbose output that lists 12435 # what "hidden" libraries, object files and flags are used when 12436 # linking a shared library. 12437 # 12438 # There doesn't appear to be a way to prevent this compiler from 12439 # explicitly linking system object files so we need to strip them 12440 # from the output so that they don't get included in the library 12441 # dependencies. 12442 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"' 12443 12444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12445 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12446 12447 # Archives containing C++ object files must be created using 12448 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12449 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12450 ;; 12451 icpc* | ecpc* ) 12452 # Intel C++ 12453 with_gnu_ld=yes 12454 # version 8.0 and above of icpc choke on multiply defined symbols 12455 # if we add $predep_objects and $postdep_objects, however 7.1 and 12456 # earlier do not add the objects themselves. 12457 case `$CC -V 2>&1` in 12458 *"Version 7."*) 12459 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12460 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' 12461 ;; 12462 *) # Version 8.0 or newer 12463 tmp_idyn= 12464 case $host_cpu in 12465 ia64*) tmp_idyn=' -i_dynamic';; 12466 esac 12467 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12468 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' 12469 ;; 12470 esac 12471 archive_cmds_need_lc_CXX=no 12472 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12473 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12474 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12475 ;; 12476 pgCC* | pgcpp*) 12477 # Portland Group C++ compiler 12478 case `$CC -V` in 12479 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12480 prelink_cmds_CXX='tpldir=Template.dir~ 12481 rm -rf $tpldir~ 12482 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12483 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12484 old_archive_cmds_CXX='tpldir=Template.dir~ 12485 rm -rf $tpldir~ 12486 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12487 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12488 $RANLIB $oldlib' 12489 archive_cmds_CXX='tpldir=Template.dir~ 12490 rm -rf $tpldir~ 12491 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12492 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12493 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12494 rm -rf $tpldir~ 12495 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12496 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12497 ;; 12498 *) # Version 6 and above use weak symbols 12499 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12500 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' 12501 ;; 12502 esac 12503 12504 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12505 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12506 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' 12507 ;; 12508 cxx*) 12509 # Compaq C++ 12510 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12511 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' 12512 12513 runpath_var=LD_RUN_PATH 12514 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12515 hardcode_libdir_separator_CXX=: 12516 12517 # Commands to make compiler produce verbose output that lists 12518 # what "hidden" libraries, object files and flags are used when 12519 # linking a shared library. 12520 # 12521 # There doesn't appear to be a way to prevent this compiler from 12522 # explicitly linking system object files so we need to strip them 12523 # from the output so that they don't get included in the library 12524 # dependencies. 12525 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' 12526 ;; 12527 xl* | mpixl* | bgxl*) 12528 # IBM XL 8.0 on PPC, with GNU ld 12529 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12530 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12531 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12532 if test "x$supports_anon_versioning" = xyes; then 12533 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12535 echo "local: *; };" >> $output_objdir/$libname.ver~ 12536 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12537 fi 12538 ;; 12539 *) 12540 case `$CC -V 2>&1 | sed 5q` in 12541 *Sun\ C*) 12542 # Sun C++ 5.9 12543 no_undefined_flag_CXX=' -zdefs' 12544 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12545 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' 12546 hardcode_libdir_flag_spec_CXX='-R$libdir' 12547 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' 12548 compiler_needs_object_CXX=yes 12549 12550 # Not sure whether something based on 12551 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12552 # would be better. 12553 output_verbose_link_cmd='func_echo_all' 12554 12555 # Archives containing C++ object files must be created using 12556 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12557 # necessary to make sure instantiated templates are included 12558 # in the archive. 12559 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12560 ;; 12561 esac 12562 ;; 12563 esac 12564 ;; 12565 12566 lynxos*) 12567 # FIXME: insert proper C++ library support 12568 ld_shlibs_CXX=no 12569 ;; 12570 12571 m88k*) 12572 # FIXME: insert proper C++ library support 12573 ld_shlibs_CXX=no 12574 ;; 12575 12576 mvs*) 12577 case $cc_basename in 12578 cxx*) 12579 # FIXME: insert proper C++ library support 12580 ld_shlibs_CXX=no 12581 ;; 12582 *) 12583 # FIXME: insert proper C++ library support 12584 ld_shlibs_CXX=no 12585 ;; 12586 esac 12587 ;; 12588 12589 netbsd*) 12590 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12591 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12592 wlarc= 12593 hardcode_libdir_flag_spec_CXX='-R$libdir' 12594 hardcode_direct_CXX=yes 12595 hardcode_shlibpath_var_CXX=no 12596 fi 12597 # Workaround some broken pre-1.5 toolchains 12598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12599 ;; 12600 12601 *nto* | *qnx*) 12602 ld_shlibs_CXX=yes 12603 ;; 12604 12605 openbsd2*) 12606 # C++ shared libraries are fairly broken 12607 ld_shlibs_CXX=no 12608 ;; 12609 12610 openbsd*) 12611 if test -f /usr/libexec/ld.so; then 12612 hardcode_direct_CXX=yes 12613 hardcode_shlibpath_var_CXX=no 12614 hardcode_direct_absolute_CXX=yes 12615 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12617 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12618 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12619 export_dynamic_flag_spec_CXX='${wl}-E' 12620 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12621 fi 12622 output_verbose_link_cmd=func_echo_all 12623 else 12624 ld_shlibs_CXX=no 12625 fi 12626 ;; 12627 12628 osf3* | osf4* | osf5*) 12629 case $cc_basename in 12630 KCC*) 12631 # Kuck and Associates, Inc. (KAI) C++ Compiler 12632 12633 # KCC will only create a shared library if the output file 12634 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12635 # to its proper name (with version) after linking. 12636 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' 12637 12638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12639 hardcode_libdir_separator_CXX=: 12640 12641 # Archives containing C++ object files must be created using 12642 # the KAI C++ compiler. 12643 case $host in 12644 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12645 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12646 esac 12647 ;; 12648 RCC*) 12649 # Rational C++ 2.4.1 12650 # FIXME: insert proper C++ library support 12651 ld_shlibs_CXX=no 12652 ;; 12653 cxx*) 12654 case $host in 12655 osf3*) 12656 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12657 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' 12658 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12659 ;; 12660 *) 12661 allow_undefined_flag_CXX=' -expect_unresolved \*' 12662 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' 12663 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12664 echo "-hidden">> $lib.exp~ 12665 $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~ 12666 $RM $lib.exp' 12667 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12668 ;; 12669 esac 12670 12671 hardcode_libdir_separator_CXX=: 12672 12673 # Commands to make compiler produce verbose output that lists 12674 # what "hidden" libraries, object files and flags are used when 12675 # linking a shared library. 12676 # 12677 # There doesn't appear to be a way to prevent this compiler from 12678 # explicitly linking system object files so we need to strip them 12679 # from the output so that they don't get included in the library 12680 # dependencies. 12681 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"' 12682 ;; 12683 *) 12684 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12685 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12686 case $host in 12687 osf3*) 12688 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' 12689 ;; 12690 *) 12691 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' 12692 ;; 12693 esac 12694 12695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12696 hardcode_libdir_separator_CXX=: 12697 12698 # Commands to make compiler produce verbose output that lists 12699 # what "hidden" libraries, object files and flags are used when 12700 # linking a shared library. 12701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12702 12703 else 12704 # FIXME: insert proper C++ library support 12705 ld_shlibs_CXX=no 12706 fi 12707 ;; 12708 esac 12709 ;; 12710 12711 psos*) 12712 # FIXME: insert proper C++ library support 12713 ld_shlibs_CXX=no 12714 ;; 12715 12716 sunos4*) 12717 case $cc_basename in 12718 CC*) 12719 # Sun C++ 4.x 12720 # FIXME: insert proper C++ library support 12721 ld_shlibs_CXX=no 12722 ;; 12723 lcc*) 12724 # Lucid 12725 # FIXME: insert proper C++ library support 12726 ld_shlibs_CXX=no 12727 ;; 12728 *) 12729 # FIXME: insert proper C++ library support 12730 ld_shlibs_CXX=no 12731 ;; 12732 esac 12733 ;; 12734 12735 solaris*) 12736 case $cc_basename in 12737 CC*) 12738 # Sun C++ 4.2, 5.x and Centerline C++ 12739 archive_cmds_need_lc_CXX=yes 12740 no_undefined_flag_CXX=' -zdefs' 12741 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12742 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12743 $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' 12744 12745 hardcode_libdir_flag_spec_CXX='-R$libdir' 12746 hardcode_shlibpath_var_CXX=no 12747 case $host_os in 12748 solaris2.[0-5] | solaris2.[0-5].*) ;; 12749 *) 12750 # The compiler driver will combine and reorder linker options, 12751 # but understands `-z linker_flag'. 12752 # Supported since Solaris 2.6 (maybe 2.5.1?) 12753 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12754 ;; 12755 esac 12756 link_all_deplibs_CXX=yes 12757 12758 output_verbose_link_cmd='func_echo_all' 12759 12760 # Archives containing C++ object files must be created using 12761 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12762 # necessary to make sure instantiated templates are included 12763 # in the archive. 12764 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12765 ;; 12766 gcx*) 12767 # Green Hills C++ Compiler 12768 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12769 12770 # The C++ compiler must be used to create the archive. 12771 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12772 ;; 12773 *) 12774 # GNU C++ compiler with Solaris linker 12775 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12776 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12777 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12778 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12779 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12780 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12781 12782 # Commands to make compiler produce verbose output that lists 12783 # what "hidden" libraries, object files and flags are used when 12784 # linking a shared library. 12785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12786 else 12787 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12788 # platform. 12789 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12790 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12791 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12792 12793 # Commands to make compiler produce verbose output that lists 12794 # what "hidden" libraries, object files and flags are used when 12795 # linking a shared library. 12796 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12797 fi 12798 12799 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12800 case $host_os in 12801 solaris2.[0-5] | solaris2.[0-5].*) ;; 12802 *) 12803 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12804 ;; 12805 esac 12806 fi 12807 ;; 12808 esac 12809 ;; 12810 12811 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12812 no_undefined_flag_CXX='${wl}-z,text' 12813 archive_cmds_need_lc_CXX=no 12814 hardcode_shlibpath_var_CXX=no 12815 runpath_var='LD_RUN_PATH' 12816 12817 case $cc_basename in 12818 CC*) 12819 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12820 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12821 ;; 12822 *) 12823 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12824 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12825 ;; 12826 esac 12827 ;; 12828 12829 sysv5* | sco3.2v5* | sco5v6*) 12830 # Note: We can NOT use -z defs as we might desire, because we do not 12831 # link with -lc, and that would cause any symbols used from libc to 12832 # always be unresolved, which means just about no library would 12833 # ever link correctly. If we're not using GNU ld we use -z text 12834 # though, which does catch some bad symbols but isn't as heavy-handed 12835 # as -z defs. 12836 no_undefined_flag_CXX='${wl}-z,text' 12837 allow_undefined_flag_CXX='${wl}-z,nodefs' 12838 archive_cmds_need_lc_CXX=no 12839 hardcode_shlibpath_var_CXX=no 12840 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12841 hardcode_libdir_separator_CXX=':' 12842 link_all_deplibs_CXX=yes 12843 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12844 runpath_var='LD_RUN_PATH' 12845 12846 case $cc_basename in 12847 CC*) 12848 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12849 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12850 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 12851 '"$old_archive_cmds_CXX" 12852 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 12853 '"$reload_cmds_CXX" 12854 ;; 12855 *) 12856 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12857 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12858 ;; 12859 esac 12860 ;; 12861 12862 tandem*) 12863 case $cc_basename in 12864 NCC*) 12865 # NonStop-UX NCC 3.20 12866 # FIXME: insert proper C++ library support 12867 ld_shlibs_CXX=no 12868 ;; 12869 *) 12870 # FIXME: insert proper C++ library support 12871 ld_shlibs_CXX=no 12872 ;; 12873 esac 12874 ;; 12875 12876 vxworks*) 12877 # FIXME: insert proper C++ library support 12878 ld_shlibs_CXX=no 12879 ;; 12880 12881 *) 12882 # FIXME: insert proper C++ library support 12883 ld_shlibs_CXX=no 12884 ;; 12885 esac 12886 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12888$as_echo "$ld_shlibs_CXX" >&6; } 12889 test "$ld_shlibs_CXX" = no && can_build_shared=no 12890 12891 GCC_CXX="$GXX" 12892 LD_CXX="$LD" 12893 12894 ## CAVEAT EMPTOR: 12895 ## There is no encapsulation within the following macros, do not change 12896 ## the running order or otherwise move them around unless you know exactly 12897 ## what you are doing... 12898 # Dependencies to place before and after the object being linked: 12899predep_objects_CXX= 12900postdep_objects_CXX= 12901predeps_CXX= 12902postdeps_CXX= 12903compiler_lib_search_path_CXX= 12904 12905cat > conftest.$ac_ext <<_LT_EOF 12906class Foo 12907{ 12908public: 12909 Foo (void) { a = 0; } 12910private: 12911 int a; 12912}; 12913_LT_EOF 12914 12915if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12916 (eval $ac_compile) 2>&5 12917 ac_status=$? 12918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12919 test $ac_status = 0; }; then 12920 # Parse the compiler output and extract the necessary 12921 # objects, libraries and library flags. 12922 12923 # Sentinel used to keep track of whether or not we are before 12924 # the conftest object file. 12925 pre_test_object_deps_done=no 12926 12927 for p in `eval "$output_verbose_link_cmd"`; do 12928 case $p in 12929 12930 -L* | -R* | -l*) 12931 # Some compilers place space between "-{L,R}" and the path. 12932 # Remove the space. 12933 if test $p = "-L" || 12934 test $p = "-R"; then 12935 prev=$p 12936 continue 12937 else 12938 prev= 12939 fi 12940 12941 if test "$pre_test_object_deps_done" = no; then 12942 case $p in 12943 -L* | -R*) 12944 # Internal compiler library paths should come after those 12945 # provided the user. The postdeps already come after the 12946 # user supplied libs so there is no need to process them. 12947 if test -z "$compiler_lib_search_path_CXX"; then 12948 compiler_lib_search_path_CXX="${prev}${p}" 12949 else 12950 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12951 fi 12952 ;; 12953 # The "-l" case would never come before the object being 12954 # linked, so don't bother handling this case. 12955 esac 12956 else 12957 if test -z "$postdeps_CXX"; then 12958 postdeps_CXX="${prev}${p}" 12959 else 12960 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12961 fi 12962 fi 12963 ;; 12964 12965 *.$objext) 12966 # This assumes that the test object file only shows up 12967 # once in the compiler output. 12968 if test "$p" = "conftest.$objext"; then 12969 pre_test_object_deps_done=yes 12970 continue 12971 fi 12972 12973 if test "$pre_test_object_deps_done" = no; then 12974 if test -z "$predep_objects_CXX"; then 12975 predep_objects_CXX="$p" 12976 else 12977 predep_objects_CXX="$predep_objects_CXX $p" 12978 fi 12979 else 12980 if test -z "$postdep_objects_CXX"; then 12981 postdep_objects_CXX="$p" 12982 else 12983 postdep_objects_CXX="$postdep_objects_CXX $p" 12984 fi 12985 fi 12986 ;; 12987 12988 *) ;; # Ignore the rest. 12989 12990 esac 12991 done 12992 12993 # Clean up. 12994 rm -f a.out a.exe 12995else 12996 echo "libtool.m4: error: problem compiling CXX test program" 12997fi 12998 12999$RM -f confest.$objext 13000 13001# PORTME: override above test on systems where it is broken 13002case $host_os in 13003interix[3-9]*) 13004 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13005 # hack all around it, let's just trust "g++" to DTRT. 13006 predep_objects_CXX= 13007 postdep_objects_CXX= 13008 postdeps_CXX= 13009 ;; 13010 13011linux*) 13012 case `$CC -V 2>&1 | sed 5q` in 13013 *Sun\ C*) 13014 # Sun C++ 5.9 13015 13016 # The more standards-conforming stlport4 library is 13017 # incompatible with the Cstd library. Avoid specifying 13018 # it if it's in CXXFLAGS. Ignore libCrun as 13019 # -library=stlport4 depends on it. 13020 case " $CXX $CXXFLAGS " in 13021 *" -library=stlport4 "*) 13022 solaris_use_stlport4=yes 13023 ;; 13024 esac 13025 13026 if test "$solaris_use_stlport4" != yes; then 13027 postdeps_CXX='-library=Cstd -library=Crun' 13028 fi 13029 ;; 13030 esac 13031 ;; 13032 13033solaris*) 13034 case $cc_basename in 13035 CC*) 13036 # The more standards-conforming stlport4 library is 13037 # incompatible with the Cstd library. Avoid specifying 13038 # it if it's in CXXFLAGS. Ignore libCrun as 13039 # -library=stlport4 depends on it. 13040 case " $CXX $CXXFLAGS " in 13041 *" -library=stlport4 "*) 13042 solaris_use_stlport4=yes 13043 ;; 13044 esac 13045 13046 # Adding this requires a known-good setup of shared libraries for 13047 # Sun compiler versions before 5.6, else PIC objects from an old 13048 # archive will be linked into the output, leading to subtle bugs. 13049 if test "$solaris_use_stlport4" != yes; then 13050 postdeps_CXX='-library=Cstd -library=Crun' 13051 fi 13052 ;; 13053 esac 13054 ;; 13055esac 13056 13057 13058case " $postdeps_CXX " in 13059*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13060esac 13061 compiler_lib_search_dirs_CXX= 13062if test -n "${compiler_lib_search_path_CXX}"; then 13063 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13064fi 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 lt_prog_compiler_wl_CXX= 13097lt_prog_compiler_pic_CXX= 13098lt_prog_compiler_static_CXX= 13099 13100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13101$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13102 13103 # C++ specific cases for pic, static, wl, etc. 13104 if test "$GXX" = yes; then 13105 lt_prog_compiler_wl_CXX='-Wl,' 13106 lt_prog_compiler_static_CXX='-static' 13107 13108 case $host_os in 13109 aix*) 13110 # All AIX code is PIC. 13111 if test "$host_cpu" = ia64; then 13112 # AIX 5 now supports IA64 processor 13113 lt_prog_compiler_static_CXX='-Bstatic' 13114 fi 13115 lt_prog_compiler_pic_CXX='-fPIC' 13116 ;; 13117 13118 amigaos*) 13119 case $host_cpu in 13120 powerpc) 13121 # see comment about AmigaOS4 .so support 13122 lt_prog_compiler_pic_CXX='-fPIC' 13123 ;; 13124 m68k) 13125 # FIXME: we need at least 68020 code to build shared libraries, but 13126 # adding the `-m68020' flag to GCC prevents building anything better, 13127 # like `-m68040'. 13128 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13129 ;; 13130 esac 13131 ;; 13132 13133 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13134 # PIC is the default for these OSes. 13135 ;; 13136 mingw* | cygwin* | os2* | pw32* | cegcc*) 13137 # This hack is so that the source file can tell whether it is being 13138 # built for inclusion in a dll (and should export symbols for example). 13139 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13140 # (--disable-auto-import) libraries 13141 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13142 ;; 13143 darwin* | rhapsody*) 13144 # PIC is the default on this platform 13145 # Common symbols not allowed in MH_DYLIB files 13146 lt_prog_compiler_pic_CXX='-fno-common' 13147 ;; 13148 *djgpp*) 13149 # DJGPP does not support shared libraries at all 13150 lt_prog_compiler_pic_CXX= 13151 ;; 13152 haiku*) 13153 # PIC is the default for Haiku. 13154 # The "-static" flag exists, but is broken. 13155 lt_prog_compiler_static_CXX= 13156 ;; 13157 interix[3-9]*) 13158 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13159 # Instead, we relocate shared libraries at runtime. 13160 ;; 13161 sysv4*MP*) 13162 if test -d /usr/nec; then 13163 lt_prog_compiler_pic_CXX=-Kconform_pic 13164 fi 13165 ;; 13166 hpux*) 13167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13169 # sets the default TLS model and affects inlining. 13170 case $host_cpu in 13171 hppa*64*) 13172 ;; 13173 *) 13174 lt_prog_compiler_pic_CXX='-fPIC' 13175 ;; 13176 esac 13177 ;; 13178 *qnx* | *nto*) 13179 # QNX uses GNU C++, but need to define -shared option too, otherwise 13180 # it will coredump. 13181 lt_prog_compiler_pic_CXX='-fPIC -shared' 13182 ;; 13183 *) 13184 lt_prog_compiler_pic_CXX='-fPIC' 13185 ;; 13186 esac 13187 else 13188 case $host_os in 13189 aix[4-9]*) 13190 # All AIX code is PIC. 13191 if test "$host_cpu" = ia64; then 13192 # AIX 5 now supports IA64 processor 13193 lt_prog_compiler_static_CXX='-Bstatic' 13194 else 13195 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13196 fi 13197 ;; 13198 chorus*) 13199 case $cc_basename in 13200 cxch68*) 13201 # Green Hills C++ Compiler 13202 # _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" 13203 ;; 13204 esac 13205 ;; 13206 dgux*) 13207 case $cc_basename in 13208 ec++*) 13209 lt_prog_compiler_pic_CXX='-KPIC' 13210 ;; 13211 ghcx*) 13212 # Green Hills C++ Compiler 13213 lt_prog_compiler_pic_CXX='-pic' 13214 ;; 13215 *) 13216 ;; 13217 esac 13218 ;; 13219 freebsd* | dragonfly*) 13220 # FreeBSD uses GNU C++ 13221 ;; 13222 hpux9* | hpux10* | hpux11*) 13223 case $cc_basename in 13224 CC*) 13225 lt_prog_compiler_wl_CXX='-Wl,' 13226 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13227 if test "$host_cpu" != ia64; then 13228 lt_prog_compiler_pic_CXX='+Z' 13229 fi 13230 ;; 13231 aCC*) 13232 lt_prog_compiler_wl_CXX='-Wl,' 13233 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13234 case $host_cpu in 13235 hppa*64*|ia64*) 13236 # +Z the default 13237 ;; 13238 *) 13239 lt_prog_compiler_pic_CXX='+Z' 13240 ;; 13241 esac 13242 ;; 13243 *) 13244 ;; 13245 esac 13246 ;; 13247 interix*) 13248 # This is c89, which is MS Visual C++ (no shared libs) 13249 # Anyone wants to do a port? 13250 ;; 13251 irix5* | irix6* | nonstopux*) 13252 case $cc_basename in 13253 CC*) 13254 lt_prog_compiler_wl_CXX='-Wl,' 13255 lt_prog_compiler_static_CXX='-non_shared' 13256 # CC pic flag -KPIC is the default. 13257 ;; 13258 *) 13259 ;; 13260 esac 13261 ;; 13262 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13263 case $cc_basename in 13264 KCC*) 13265 # KAI C++ Compiler 13266 lt_prog_compiler_wl_CXX='--backend -Wl,' 13267 lt_prog_compiler_pic_CXX='-fPIC' 13268 ;; 13269 ecpc* ) 13270 # old Intel C++ for x86_64 which still supported -KPIC. 13271 lt_prog_compiler_wl_CXX='-Wl,' 13272 lt_prog_compiler_pic_CXX='-KPIC' 13273 lt_prog_compiler_static_CXX='-static' 13274 ;; 13275 icpc* ) 13276 # Intel C++, used to be incompatible with GCC. 13277 # ICC 10 doesn't accept -KPIC any more. 13278 lt_prog_compiler_wl_CXX='-Wl,' 13279 lt_prog_compiler_pic_CXX='-fPIC' 13280 lt_prog_compiler_static_CXX='-static' 13281 ;; 13282 pgCC* | pgcpp*) 13283 # Portland Group C++ compiler 13284 lt_prog_compiler_wl_CXX='-Wl,' 13285 lt_prog_compiler_pic_CXX='-fpic' 13286 lt_prog_compiler_static_CXX='-Bstatic' 13287 ;; 13288 cxx*) 13289 # Compaq C++ 13290 # Make sure the PIC flag is empty. It appears that all Alpha 13291 # Linux and Compaq Tru64 Unix objects are PIC. 13292 lt_prog_compiler_pic_CXX= 13293 lt_prog_compiler_static_CXX='-non_shared' 13294 ;; 13295 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13296 # IBM XL 8.0, 9.0 on PPC and BlueGene 13297 lt_prog_compiler_wl_CXX='-Wl,' 13298 lt_prog_compiler_pic_CXX='-qpic' 13299 lt_prog_compiler_static_CXX='-qstaticlink' 13300 ;; 13301 *) 13302 case `$CC -V 2>&1 | sed 5q` in 13303 *Sun\ C*) 13304 # Sun C++ 5.9 13305 lt_prog_compiler_pic_CXX='-KPIC' 13306 lt_prog_compiler_static_CXX='-Bstatic' 13307 lt_prog_compiler_wl_CXX='-Qoption ld ' 13308 ;; 13309 esac 13310 ;; 13311 esac 13312 ;; 13313 lynxos*) 13314 ;; 13315 m88k*) 13316 ;; 13317 mvs*) 13318 case $cc_basename in 13319 cxx*) 13320 lt_prog_compiler_pic_CXX='-W c,exportall' 13321 ;; 13322 *) 13323 ;; 13324 esac 13325 ;; 13326 netbsd*) 13327 ;; 13328 *qnx* | *nto*) 13329 # QNX uses GNU C++, but need to define -shared option too, otherwise 13330 # it will coredump. 13331 lt_prog_compiler_pic_CXX='-fPIC -shared' 13332 ;; 13333 osf3* | osf4* | osf5*) 13334 case $cc_basename in 13335 KCC*) 13336 lt_prog_compiler_wl_CXX='--backend -Wl,' 13337 ;; 13338 RCC*) 13339 # Rational C++ 2.4.1 13340 lt_prog_compiler_pic_CXX='-pic' 13341 ;; 13342 cxx*) 13343 # Digital/Compaq C++ 13344 lt_prog_compiler_wl_CXX='-Wl,' 13345 # Make sure the PIC flag is empty. It appears that all Alpha 13346 # Linux and Compaq Tru64 Unix objects are PIC. 13347 lt_prog_compiler_pic_CXX= 13348 lt_prog_compiler_static_CXX='-non_shared' 13349 ;; 13350 *) 13351 ;; 13352 esac 13353 ;; 13354 psos*) 13355 ;; 13356 solaris*) 13357 case $cc_basename in 13358 CC*) 13359 # Sun C++ 4.2, 5.x and Centerline C++ 13360 lt_prog_compiler_pic_CXX='-KPIC' 13361 lt_prog_compiler_static_CXX='-Bstatic' 13362 lt_prog_compiler_wl_CXX='-Qoption ld ' 13363 ;; 13364 gcx*) 13365 # Green Hills C++ Compiler 13366 lt_prog_compiler_pic_CXX='-PIC' 13367 ;; 13368 *) 13369 ;; 13370 esac 13371 ;; 13372 sunos4*) 13373 case $cc_basename in 13374 CC*) 13375 # Sun C++ 4.x 13376 lt_prog_compiler_pic_CXX='-pic' 13377 lt_prog_compiler_static_CXX='-Bstatic' 13378 ;; 13379 lcc*) 13380 # Lucid 13381 lt_prog_compiler_pic_CXX='-pic' 13382 ;; 13383 *) 13384 ;; 13385 esac 13386 ;; 13387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13388 case $cc_basename in 13389 CC*) 13390 lt_prog_compiler_wl_CXX='-Wl,' 13391 lt_prog_compiler_pic_CXX='-KPIC' 13392 lt_prog_compiler_static_CXX='-Bstatic' 13393 ;; 13394 esac 13395 ;; 13396 tandem*) 13397 case $cc_basename in 13398 NCC*) 13399 # NonStop-UX NCC 3.20 13400 lt_prog_compiler_pic_CXX='-KPIC' 13401 ;; 13402 *) 13403 ;; 13404 esac 13405 ;; 13406 vxworks*) 13407 ;; 13408 *) 13409 lt_prog_compiler_can_build_shared_CXX=no 13410 ;; 13411 esac 13412 fi 13413 13414case $host_os in 13415 # For platforms which do not support PIC, -DPIC is meaningless: 13416 *djgpp*) 13417 lt_prog_compiler_pic_CXX= 13418 ;; 13419 *) 13420 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13421 ;; 13422esac 13423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13424$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13425 13426 13427 13428# 13429# Check to make sure the PIC flag actually works. 13430# 13431if test -n "$lt_prog_compiler_pic_CXX"; then 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13433$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13434if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13435 $as_echo_n "(cached) " >&6 13436else 13437 lt_cv_prog_compiler_pic_works_CXX=no 13438 ac_outfile=conftest.$ac_objext 13439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13440 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13441 # Insert the option either (1) after the last *FLAGS variable, or 13442 # (2) before a word containing "conftest.", or (3) at the end. 13443 # Note that $ac_compile itself does not contain backslashes and begins 13444 # with a dollar sign (not a hyphen), so the echo should work correctly. 13445 # The option is referenced via a variable to avoid confusing sed. 13446 lt_compile=`echo "$ac_compile" | $SED \ 13447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13449 -e 's:$: $lt_compiler_flag:'` 13450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13451 (eval "$lt_compile" 2>conftest.err) 13452 ac_status=$? 13453 cat conftest.err >&5 13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13455 if (exit $ac_status) && test -s "$ac_outfile"; then 13456 # The compiler can only warn and ignore the option if not recognized 13457 # So say no if there are warnings other than the usual output. 13458 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13461 lt_cv_prog_compiler_pic_works_CXX=yes 13462 fi 13463 fi 13464 $RM conftest* 13465 13466fi 13467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13468$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13469 13470if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13471 case $lt_prog_compiler_pic_CXX in 13472 "" | " "*) ;; 13473 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13474 esac 13475else 13476 lt_prog_compiler_pic_CXX= 13477 lt_prog_compiler_can_build_shared_CXX=no 13478fi 13479 13480fi 13481 13482 13483 13484# 13485# Check to make sure the static flag actually works. 13486# 13487wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13489$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13490if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13491 $as_echo_n "(cached) " >&6 13492else 13493 lt_cv_prog_compiler_static_works_CXX=no 13494 save_LDFLAGS="$LDFLAGS" 13495 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13496 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13497 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13498 # The linker can only warn and ignore the option if not recognized 13499 # So say no if there are warnings 13500 if test -s conftest.err; then 13501 # Append any errors to the config.log. 13502 cat conftest.err 1>&5 13503 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13505 if diff conftest.exp conftest.er2 >/dev/null; then 13506 lt_cv_prog_compiler_static_works_CXX=yes 13507 fi 13508 else 13509 lt_cv_prog_compiler_static_works_CXX=yes 13510 fi 13511 fi 13512 $RM -r conftest* 13513 LDFLAGS="$save_LDFLAGS" 13514 13515fi 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13517$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13518 13519if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13520 : 13521else 13522 lt_prog_compiler_static_CXX= 13523fi 13524 13525 13526 13527 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13529$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13530if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13531 $as_echo_n "(cached) " >&6 13532else 13533 lt_cv_prog_compiler_c_o_CXX=no 13534 $RM -r conftest 2>/dev/null 13535 mkdir conftest 13536 cd conftest 13537 mkdir out 13538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13539 13540 lt_compiler_flag="-o out/conftest2.$ac_objext" 13541 # Insert the option either (1) after the last *FLAGS variable, or 13542 # (2) before a word containing "conftest.", or (3) at the end. 13543 # Note that $ac_compile itself does not contain backslashes and begins 13544 # with a dollar sign (not a hyphen), so the echo should work correctly. 13545 lt_compile=`echo "$ac_compile" | $SED \ 13546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13548 -e 's:$: $lt_compiler_flag:'` 13549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13550 (eval "$lt_compile" 2>out/conftest.err) 13551 ac_status=$? 13552 cat out/conftest.err >&5 13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13554 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13555 then 13556 # The compiler can only warn and ignore the option if not recognized 13557 # So say no if there are warnings 13558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13561 lt_cv_prog_compiler_c_o_CXX=yes 13562 fi 13563 fi 13564 chmod u+w . 2>&5 13565 $RM conftest* 13566 # SGI C++ compiler will create directory out/ii_files/ for 13567 # template instantiation 13568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13569 $RM out/* && rmdir out 13570 cd .. 13571 $RM -r conftest 13572 $RM conftest* 13573 13574fi 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13576$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13577 13578 13579 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13581$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13582if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13583 $as_echo_n "(cached) " >&6 13584else 13585 lt_cv_prog_compiler_c_o_CXX=no 13586 $RM -r conftest 2>/dev/null 13587 mkdir conftest 13588 cd conftest 13589 mkdir out 13590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13591 13592 lt_compiler_flag="-o out/conftest2.$ac_objext" 13593 # Insert the option either (1) after the last *FLAGS variable, or 13594 # (2) before a word containing "conftest.", or (3) at the end. 13595 # Note that $ac_compile itself does not contain backslashes and begins 13596 # with a dollar sign (not a hyphen), so the echo should work correctly. 13597 lt_compile=`echo "$ac_compile" | $SED \ 13598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13600 -e 's:$: $lt_compiler_flag:'` 13601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13602 (eval "$lt_compile" 2>out/conftest.err) 13603 ac_status=$? 13604 cat out/conftest.err >&5 13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13606 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13607 then 13608 # The compiler can only warn and ignore the option if not recognized 13609 # So say no if there are warnings 13610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13613 lt_cv_prog_compiler_c_o_CXX=yes 13614 fi 13615 fi 13616 chmod u+w . 2>&5 13617 $RM conftest* 13618 # SGI C++ compiler will create directory out/ii_files/ for 13619 # template instantiation 13620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13621 $RM out/* && rmdir out 13622 cd .. 13623 $RM -r conftest 13624 $RM conftest* 13625 13626fi 13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13628$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13629 13630 13631 13632 13633hard_links="nottested" 13634if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13635 # do not overwrite the value of need_locks provided by the user 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13637$as_echo_n "checking if we can lock with hard links... " >&6; } 13638 hard_links=yes 13639 $RM conftest* 13640 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13641 touch conftest.a 13642 ln conftest.a conftest.b 2>&5 || hard_links=no 13643 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13645$as_echo "$hard_links" >&6; } 13646 if test "$hard_links" = no; then 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13648$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13649 need_locks=warn 13650 fi 13651else 13652 need_locks=no 13653fi 13654 13655 13656 13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13658$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13659 13660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13661 case $host_os in 13662 aix[4-9]*) 13663 # If we're using GNU nm, then we don't want the "-C" option. 13664 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13665 # Also, AIX nm treats weak defined symbols like other global defined 13666 # symbols, whereas GNU nm marks them as "W". 13667 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13668 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' 13669 else 13670 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' 13671 fi 13672 ;; 13673 pw32*) 13674 export_symbols_cmds_CXX="$ltdll_cmds" 13675 ;; 13676 cygwin* | mingw* | cegcc*) 13677 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' 13678 ;; 13679 *) 13680 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13681 ;; 13682 esac 13683 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13684 13685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13686$as_echo "$ld_shlibs_CXX" >&6; } 13687test "$ld_shlibs_CXX" = no && can_build_shared=no 13688 13689with_gnu_ld_CXX=$with_gnu_ld 13690 13691 13692 13693 13694 13695 13696# 13697# Do we need to explicitly link libc? 13698# 13699case "x$archive_cmds_need_lc_CXX" in 13700x|xyes) 13701 # Assume -lc should be added 13702 archive_cmds_need_lc_CXX=yes 13703 13704 if test "$enable_shared" = yes && test "$GCC" = yes; then 13705 case $archive_cmds_CXX in 13706 *'~'*) 13707 # FIXME: we may have to deal with multi-command sequences. 13708 ;; 13709 '$CC '*) 13710 # Test whether the compiler implicitly links with -lc since on some 13711 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13712 # to ld, don't add -lc before -lgcc. 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13714$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13715if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 13716 $as_echo_n "(cached) " >&6 13717else 13718 $RM conftest* 13719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13720 13721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13722 (eval $ac_compile) 2>&5 13723 ac_status=$? 13724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13725 test $ac_status = 0; } 2>conftest.err; then 13726 soname=conftest 13727 lib=conftest 13728 libobjs=conftest.$ac_objext 13729 deplibs= 13730 wl=$lt_prog_compiler_wl_CXX 13731 pic_flag=$lt_prog_compiler_pic_CXX 13732 compiler_flags=-v 13733 linker_flags=-v 13734 verstring= 13735 output_objdir=. 13736 libname=conftest 13737 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13738 allow_undefined_flag_CXX= 13739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13740 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13741 ac_status=$? 13742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13743 test $ac_status = 0; } 13744 then 13745 lt_cv_archive_cmds_need_lc_CXX=no 13746 else 13747 lt_cv_archive_cmds_need_lc_CXX=yes 13748 fi 13749 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13750 else 13751 cat conftest.err 1>&5 13752 fi 13753 $RM conftest* 13754 13755fi 13756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13757$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13758 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13759 ;; 13760 esac 13761 fi 13762 ;; 13763esac 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13829$as_echo_n "checking dynamic linker characteristics... " >&6; } 13830 13831library_names_spec= 13832libname_spec='lib$name' 13833soname_spec= 13834shrext_cmds=".so" 13835postinstall_cmds= 13836postuninstall_cmds= 13837finish_cmds= 13838finish_eval= 13839shlibpath_var= 13840shlibpath_overrides_runpath=unknown 13841version_type=none 13842dynamic_linker="$host_os ld.so" 13843sys_lib_dlsearch_path_spec="/lib /usr/lib" 13844need_lib_prefix=unknown 13845hardcode_into_libs=no 13846 13847# when you set need_version to no, make sure it does not cause -set_version 13848# flags to be left without arguments 13849need_version=unknown 13850 13851case $host_os in 13852aix3*) 13853 version_type=linux 13854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13855 shlibpath_var=LIBPATH 13856 13857 # AIX 3 has no versioning support, so we append a major version to the name. 13858 soname_spec='${libname}${release}${shared_ext}$major' 13859 ;; 13860 13861aix[4-9]*) 13862 version_type=linux 13863 need_lib_prefix=no 13864 need_version=no 13865 hardcode_into_libs=yes 13866 if test "$host_cpu" = ia64; then 13867 # AIX 5 supports IA64 13868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13869 shlibpath_var=LD_LIBRARY_PATH 13870 else 13871 # With GCC up to 2.95.x, collect2 would create an import file 13872 # for dependence libraries. The import file would start with 13873 # the line `#! .'. This would cause the generated library to 13874 # depend on `.', always an invalid library. This was fixed in 13875 # development snapshots of GCC prior to 3.0. 13876 case $host_os in 13877 aix4 | aix4.[01] | aix4.[01].*) 13878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13879 echo ' yes ' 13880 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13881 : 13882 else 13883 can_build_shared=no 13884 fi 13885 ;; 13886 esac 13887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13888 # soname into executable. Probably we can add versioning support to 13889 # collect2, so additional links can be useful in future. 13890 if test "$aix_use_runtimelinking" = yes; then 13891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13892 # instead of lib<name>.a to let people know that these are not 13893 # typical AIX shared libraries. 13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13895 else 13896 # We preserve .a as extension for shared libraries through AIX4.2 13897 # and later when we are not doing run time linking. 13898 library_names_spec='${libname}${release}.a $libname.a' 13899 soname_spec='${libname}${release}${shared_ext}$major' 13900 fi 13901 shlibpath_var=LIBPATH 13902 fi 13903 ;; 13904 13905amigaos*) 13906 case $host_cpu in 13907 powerpc) 13908 # Since July 2007 AmigaOS4 officially supports .so libraries. 13909 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13911 ;; 13912 m68k) 13913 library_names_spec='$libname.ixlibrary $libname.a' 13914 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13915 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' 13916 ;; 13917 esac 13918 ;; 13919 13920beos*) 13921 library_names_spec='${libname}${shared_ext}' 13922 dynamic_linker="$host_os ld.so" 13923 shlibpath_var=LIBRARY_PATH 13924 ;; 13925 13926bsdi[45]*) 13927 version_type=linux 13928 need_version=no 13929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13930 soname_spec='${libname}${release}${shared_ext}$major' 13931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13932 shlibpath_var=LD_LIBRARY_PATH 13933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13935 # the default ld.so.conf also contains /usr/contrib/lib and 13936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13937 # libtool to hard-code these into programs 13938 ;; 13939 13940cygwin* | mingw* | pw32* | cegcc*) 13941 version_type=windows 13942 shrext_cmds=".dll" 13943 need_version=no 13944 need_lib_prefix=no 13945 13946 case $GCC,$host_os in 13947 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13948 library_names_spec='$libname.dll.a' 13949 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13950 postinstall_cmds='base_file=`basename \${file}`~ 13951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13952 dldir=$destdir/`dirname \$dlpath`~ 13953 test -d \$dldir || mkdir -p \$dldir~ 13954 $install_prog $dir/$dlname \$dldir/$dlname~ 13955 chmod a+x \$dldir/$dlname~ 13956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13958 fi' 13959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13960 dlpath=$dir/\$dldll~ 13961 $RM \$dlpath' 13962 shlibpath_overrides_runpath=yes 13963 13964 case $host_os in 13965 cygwin*) 13966 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13968 13969 ;; 13970 mingw* | cegcc*) 13971 # MinGW DLLs use traditional 'lib' prefix 13972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13973 ;; 13974 pw32*) 13975 # pw32 DLLs use 'pw' prefix rather than 'lib' 13976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13977 ;; 13978 esac 13979 ;; 13980 13981 *) 13982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13983 ;; 13984 esac 13985 dynamic_linker='Win32 ld.exe' 13986 # FIXME: first we should search . and the directory the executable is in 13987 shlibpath_var=PATH 13988 ;; 13989 13990darwin* | rhapsody*) 13991 dynamic_linker="$host_os dyld" 13992 version_type=darwin 13993 need_lib_prefix=no 13994 need_version=no 13995 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13996 soname_spec='${libname}${release}${major}$shared_ext' 13997 shlibpath_overrides_runpath=yes 13998 shlibpath_var=DYLD_LIBRARY_PATH 13999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14000 14001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14002 ;; 14003 14004dgux*) 14005 version_type=linux 14006 need_lib_prefix=no 14007 need_version=no 14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14009 soname_spec='${libname}${release}${shared_ext}$major' 14010 shlibpath_var=LD_LIBRARY_PATH 14011 ;; 14012 14013freebsd* | dragonfly*) 14014 # DragonFly does not have aout. When/if they implement a new 14015 # versioning mechanism, adjust this. 14016 if test -x /usr/bin/objformat; then 14017 objformat=`/usr/bin/objformat` 14018 else 14019 case $host_os in 14020 freebsd[23].*) objformat=aout ;; 14021 *) objformat=elf ;; 14022 esac 14023 fi 14024 version_type=freebsd-$objformat 14025 case $version_type in 14026 freebsd-elf*) 14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14028 need_version=no 14029 need_lib_prefix=no 14030 ;; 14031 freebsd-*) 14032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14033 need_version=yes 14034 ;; 14035 esac 14036 shlibpath_var=LD_LIBRARY_PATH 14037 case $host_os in 14038 freebsd2.*) 14039 shlibpath_overrides_runpath=yes 14040 ;; 14041 freebsd3.[01]* | freebsdelf3.[01]*) 14042 shlibpath_overrides_runpath=yes 14043 hardcode_into_libs=yes 14044 ;; 14045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14047 shlibpath_overrides_runpath=no 14048 hardcode_into_libs=yes 14049 ;; 14050 *) # from 4.6 on, and DragonFly 14051 shlibpath_overrides_runpath=yes 14052 hardcode_into_libs=yes 14053 ;; 14054 esac 14055 ;; 14056 14057gnu*) 14058 version_type=linux 14059 need_lib_prefix=no 14060 need_version=no 14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14062 soname_spec='${libname}${release}${shared_ext}$major' 14063 shlibpath_var=LD_LIBRARY_PATH 14064 hardcode_into_libs=yes 14065 ;; 14066 14067haiku*) 14068 version_type=linux 14069 need_lib_prefix=no 14070 need_version=no 14071 dynamic_linker="$host_os runtime_loader" 14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14073 soname_spec='${libname}${release}${shared_ext}$major' 14074 shlibpath_var=LIBRARY_PATH 14075 shlibpath_overrides_runpath=yes 14076 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 14077 hardcode_into_libs=yes 14078 ;; 14079 14080hpux9* | hpux10* | hpux11*) 14081 # Give a soname corresponding to the major version so that dld.sl refuses to 14082 # link against other versions. 14083 version_type=sunos 14084 need_lib_prefix=no 14085 need_version=no 14086 case $host_cpu in 14087 ia64*) 14088 shrext_cmds='.so' 14089 hardcode_into_libs=yes 14090 dynamic_linker="$host_os dld.so" 14091 shlibpath_var=LD_LIBRARY_PATH 14092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14094 soname_spec='${libname}${release}${shared_ext}$major' 14095 if test "X$HPUX_IA64_MODE" = X32; then 14096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14097 else 14098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14099 fi 14100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14101 ;; 14102 hppa*64*) 14103 shrext_cmds='.sl' 14104 hardcode_into_libs=yes 14105 dynamic_linker="$host_os dld.sl" 14106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14109 soname_spec='${libname}${release}${shared_ext}$major' 14110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14112 ;; 14113 *) 14114 shrext_cmds='.sl' 14115 dynamic_linker="$host_os dld.sl" 14116 shlibpath_var=SHLIB_PATH 14117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14119 soname_spec='${libname}${release}${shared_ext}$major' 14120 ;; 14121 esac 14122 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14123 postinstall_cmds='chmod 555 $lib' 14124 # or fails outright, so override atomically: 14125 install_override_mode=555 14126 ;; 14127 14128interix[3-9]*) 14129 version_type=linux 14130 need_lib_prefix=no 14131 need_version=no 14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14133 soname_spec='${libname}${release}${shared_ext}$major' 14134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14135 shlibpath_var=LD_LIBRARY_PATH 14136 shlibpath_overrides_runpath=no 14137 hardcode_into_libs=yes 14138 ;; 14139 14140irix5* | irix6* | nonstopux*) 14141 case $host_os in 14142 nonstopux*) version_type=nonstopux ;; 14143 *) 14144 if test "$lt_cv_prog_gnu_ld" = yes; then 14145 version_type=linux 14146 else 14147 version_type=irix 14148 fi ;; 14149 esac 14150 need_lib_prefix=no 14151 need_version=no 14152 soname_spec='${libname}${release}${shared_ext}$major' 14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14154 case $host_os in 14155 irix5* | nonstopux*) 14156 libsuff= shlibsuff= 14157 ;; 14158 *) 14159 case $LD in # libtool.m4 will add one of these switches to LD 14160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14161 libsuff= shlibsuff= libmagic=32-bit;; 14162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14163 libsuff=32 shlibsuff=N32 libmagic=N32;; 14164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14165 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14166 *) libsuff= shlibsuff= libmagic=never-match;; 14167 esac 14168 ;; 14169 esac 14170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14171 shlibpath_overrides_runpath=no 14172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14174 hardcode_into_libs=yes 14175 ;; 14176 14177# No shared lib support for Linux oldld, aout, or coff. 14178linux*oldld* | linux*aout* | linux*coff*) 14179 dynamic_linker=no 14180 ;; 14181 14182# This must be Linux ELF. 14183linux* | k*bsd*-gnu | kopensolaris*-gnu) 14184 version_type=linux 14185 need_lib_prefix=no 14186 need_version=no 14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14188 soname_spec='${libname}${release}${shared_ext}$major' 14189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14190 shlibpath_var=LD_LIBRARY_PATH 14191 shlibpath_overrides_runpath=no 14192 14193 # Some binutils ld are patched to set DT_RUNPATH 14194 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14195 $as_echo_n "(cached) " >&6 14196else 14197 lt_cv_shlibpath_overrides_runpath=no 14198 save_LDFLAGS=$LDFLAGS 14199 save_libdir=$libdir 14200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203/* end confdefs.h. */ 14204 14205int 14206main () 14207{ 14208 14209 ; 14210 return 0; 14211} 14212_ACEOF 14213if ac_fn_cxx_try_link "$LINENO"; then : 14214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14215 lt_cv_shlibpath_overrides_runpath=yes 14216fi 14217fi 14218rm -f core conftest.err conftest.$ac_objext \ 14219 conftest$ac_exeext conftest.$ac_ext 14220 LDFLAGS=$save_LDFLAGS 14221 libdir=$save_libdir 14222 14223fi 14224 14225 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14226 14227 # This implies no fast_install, which is unacceptable. 14228 # Some rework will be needed to allow for fast_install 14229 # before this can be enabled. 14230 hardcode_into_libs=yes 14231 14232 # Append ld.so.conf contents to the search path 14233 if test -f /etc/ld.so.conf; then 14234 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' ' '` 14235 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14236 fi 14237 14238 # We used to test for /lib/ld.so.1 and disable shared libraries on 14239 # powerpc, because MkLinux only supported shared libraries with the 14240 # GNU dynamic linker. Since this was broken with cross compilers, 14241 # most powerpc-linux boxes support dynamic linking these days and 14242 # people can always --disable-shared, the test was removed, and we 14243 # assume the GNU/Linux dynamic linker is in use. 14244 dynamic_linker='GNU/Linux ld.so' 14245 ;; 14246 14247netbsd*) 14248 version_type=sunos 14249 need_lib_prefix=no 14250 need_version=no 14251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14254 dynamic_linker='NetBSD (a.out) ld.so' 14255 else 14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14257 soname_spec='${libname}${release}${shared_ext}$major' 14258 dynamic_linker='NetBSD ld.elf_so' 14259 fi 14260 shlibpath_var=LD_LIBRARY_PATH 14261 shlibpath_overrides_runpath=yes 14262 hardcode_into_libs=yes 14263 ;; 14264 14265newsos6) 14266 version_type=linux 14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14268 shlibpath_var=LD_LIBRARY_PATH 14269 shlibpath_overrides_runpath=yes 14270 ;; 14271 14272*nto* | *qnx*) 14273 version_type=qnx 14274 need_lib_prefix=no 14275 need_version=no 14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14277 soname_spec='${libname}${release}${shared_ext}$major' 14278 shlibpath_var=LD_LIBRARY_PATH 14279 shlibpath_overrides_runpath=no 14280 hardcode_into_libs=yes 14281 dynamic_linker='ldqnx.so' 14282 ;; 14283 14284openbsd*) 14285 version_type=sunos 14286 sys_lib_dlsearch_path_spec="/usr/lib" 14287 need_lib_prefix=no 14288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14289 case $host_os in 14290 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14291 *) need_version=no ;; 14292 esac 14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14295 shlibpath_var=LD_LIBRARY_PATH 14296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14297 case $host_os in 14298 openbsd2.[89] | openbsd2.[89].*) 14299 shlibpath_overrides_runpath=no 14300 ;; 14301 *) 14302 shlibpath_overrides_runpath=yes 14303 ;; 14304 esac 14305 else 14306 shlibpath_overrides_runpath=yes 14307 fi 14308 ;; 14309 14310os2*) 14311 libname_spec='$name' 14312 shrext_cmds=".dll" 14313 need_lib_prefix=no 14314 library_names_spec='$libname${shared_ext} $libname.a' 14315 dynamic_linker='OS/2 ld.exe' 14316 shlibpath_var=LIBPATH 14317 ;; 14318 14319osf3* | osf4* | osf5*) 14320 version_type=osf 14321 need_lib_prefix=no 14322 need_version=no 14323 soname_spec='${libname}${release}${shared_ext}$major' 14324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14325 shlibpath_var=LD_LIBRARY_PATH 14326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14328 ;; 14329 14330rdos*) 14331 dynamic_linker=no 14332 ;; 14333 14334solaris*) 14335 version_type=linux 14336 need_lib_prefix=no 14337 need_version=no 14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14339 soname_spec='${libname}${release}${shared_ext}$major' 14340 shlibpath_var=LD_LIBRARY_PATH 14341 shlibpath_overrides_runpath=yes 14342 hardcode_into_libs=yes 14343 # ldd complains unless libraries are executable 14344 postinstall_cmds='chmod +x $lib' 14345 ;; 14346 14347sunos4*) 14348 version_type=sunos 14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14350 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14351 shlibpath_var=LD_LIBRARY_PATH 14352 shlibpath_overrides_runpath=yes 14353 if test "$with_gnu_ld" = yes; then 14354 need_lib_prefix=no 14355 fi 14356 need_version=yes 14357 ;; 14358 14359sysv4 | sysv4.3*) 14360 version_type=linux 14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14362 soname_spec='${libname}${release}${shared_ext}$major' 14363 shlibpath_var=LD_LIBRARY_PATH 14364 case $host_vendor in 14365 sni) 14366 shlibpath_overrides_runpath=no 14367 need_lib_prefix=no 14368 runpath_var=LD_RUN_PATH 14369 ;; 14370 siemens) 14371 need_lib_prefix=no 14372 ;; 14373 motorola) 14374 need_lib_prefix=no 14375 need_version=no 14376 shlibpath_overrides_runpath=no 14377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14378 ;; 14379 esac 14380 ;; 14381 14382sysv4*MP*) 14383 if test -d /usr/nec ;then 14384 version_type=linux 14385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14386 soname_spec='$libname${shared_ext}.$major' 14387 shlibpath_var=LD_LIBRARY_PATH 14388 fi 14389 ;; 14390 14391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14392 version_type=freebsd-elf 14393 need_lib_prefix=no 14394 need_version=no 14395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14396 soname_spec='${libname}${release}${shared_ext}$major' 14397 shlibpath_var=LD_LIBRARY_PATH 14398 shlibpath_overrides_runpath=yes 14399 hardcode_into_libs=yes 14400 if test "$with_gnu_ld" = yes; then 14401 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14402 else 14403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14404 case $host_os in 14405 sco3.2v5*) 14406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14407 ;; 14408 esac 14409 fi 14410 sys_lib_dlsearch_path_spec='/usr/lib' 14411 ;; 14412 14413tpf*) 14414 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14415 version_type=linux 14416 need_lib_prefix=no 14417 need_version=no 14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14419 shlibpath_var=LD_LIBRARY_PATH 14420 shlibpath_overrides_runpath=no 14421 hardcode_into_libs=yes 14422 ;; 14423 14424uts4*) 14425 version_type=linux 14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14427 soname_spec='${libname}${release}${shared_ext}$major' 14428 shlibpath_var=LD_LIBRARY_PATH 14429 ;; 14430 14431*) 14432 dynamic_linker=no 14433 ;; 14434esac 14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14436$as_echo "$dynamic_linker" >&6; } 14437test "$dynamic_linker" = no && can_build_shared=no 14438 14439variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14440if test "$GCC" = yes; then 14441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14442fi 14443 14444if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14445 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14446fi 14447if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14448 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14449fi 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14489$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14490hardcode_action_CXX= 14491if test -n "$hardcode_libdir_flag_spec_CXX" || 14492 test -n "$runpath_var_CXX" || 14493 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14494 14495 # We can hardcode non-existent directories. 14496 if test "$hardcode_direct_CXX" != no && 14497 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14498 # have to relink, otherwise we might link with an installed library 14499 # when we should be linking with a yet-to-be-installed one 14500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14501 test "$hardcode_minus_L_CXX" != no; then 14502 # Linking always hardcodes the temporary library directory. 14503 hardcode_action_CXX=relink 14504 else 14505 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14506 hardcode_action_CXX=immediate 14507 fi 14508else 14509 # We cannot hardcode anything, or else we can only hardcode existing 14510 # directories. 14511 hardcode_action_CXX=unsupported 14512fi 14513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14514$as_echo "$hardcode_action_CXX" >&6; } 14515 14516if test "$hardcode_action_CXX" = relink || 14517 test "$inherit_rpath_CXX" = yes; then 14518 # Fast installation is not supported 14519 enable_fast_install=no 14520elif test "$shlibpath_overrides_runpath" = yes || 14521 test "$enable_shared" = no; then 14522 # Fast installation is not necessary 14523 enable_fast_install=needless 14524fi 14525 14526 14527 14528 14529 14530 14531 14532 fi # test -n "$compiler" 14533 14534 CC=$lt_save_CC 14535 LDCXX=$LD 14536 LD=$lt_save_LD 14537 GCC=$lt_save_GCC 14538 with_gnu_ld=$lt_save_with_gnu_ld 14539 lt_cv_path_LDCXX=$lt_cv_path_LD 14540 lt_cv_path_LD=$lt_save_path_LD 14541 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14542 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14543fi # test "$_lt_caught_CXX_error" != yes 14544 14545ac_ext=c 14546ac_cpp='$CPP $CPPFLAGS' 14547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14549ac_compiler_gnu=$ac_cv_c_compiler_gnu 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 ac_config_commands="$ac_config_commands libtool" 14564 14565 14566 14567 14568# Only expand once: 14569 14570 14571 14572 14573 14574ac_config_headers="$ac_config_headers target-config.h" 14575 14576 14577# The cast to long int works around a bug in the HP C Compiler 14578# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14579# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14580# This bug is HP SR number 8606223364. 14581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14582$as_echo_n "checking size of int... " >&6; } 14583if ${ac_cv_sizeof_int+:} false; then : 14584 $as_echo_n "(cached) " >&6 14585else 14586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14587 14588else 14589 if test "$ac_cv_type_int" = yes; then 14590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14592as_fn_error 77 "cannot compute sizeof (int) 14593See \`config.log' for more details" "$LINENO" 5; } 14594 else 14595 ac_cv_sizeof_int=0 14596 fi 14597fi 14598 14599fi 14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14601$as_echo "$ac_cv_sizeof_int" >&6; } 14602 14603 14604 14605cat >>confdefs.h <<_ACEOF 14606#define SIZEOF_INT $ac_cv_sizeof_int 14607_ACEOF 14608 14609 14610# The cast to long int works around a bug in the HP C Compiler 14611# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14612# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14613# This bug is HP SR number 8606223364. 14614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 14615$as_echo_n "checking size of void*... " >&6; } 14616if ${ac_cv_sizeof_voidp+:} false; then : 14617 $as_echo_n "(cached) " >&6 14618else 14619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 14620 14621else 14622 if test "$ac_cv_type_voidp" = yes; then 14623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14625as_fn_error 77 "cannot compute sizeof (void*) 14626See \`config.log' for more details" "$LINENO" 5; } 14627 else 14628 ac_cv_sizeof_voidp=0 14629 fi 14630fi 14631 14632fi 14633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 14634$as_echo "$ac_cv_sizeof_voidp" >&6; } 14635 14636 14637 14638cat >>confdefs.h <<_ACEOF 14639#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 14640_ACEOF 14641 14642 14643 14644# Determine what GCC version number to use in filesystem paths. 14645 14646 get_gcc_base_ver="cat" 14647 14648# Check whether --with-gcc-major-version-only was given. 14649if test "${with_gcc_major_version_only+set}" = set; then : 14650 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 14651 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 14652 fi 14653 14654fi 14655 14656 14657 14658 14659# Must be last 14660cat >confcache <<\_ACEOF 14661# This file is a shell script that caches the results of configure 14662# tests run on this system so they can be shared between configure 14663# scripts and configure runs, see configure's option --config-cache. 14664# It is not useful on other systems. If it contains results you don't 14665# want to keep, you may remove or edit it. 14666# 14667# config.status only pays attention to the cache file if you give it 14668# the --recheck option to rerun configure. 14669# 14670# `ac_cv_env_foo' variables (set or unset) will be overridden when 14671# loading this file, other *unset* `ac_cv_foo' will be assigned the 14672# following values. 14673 14674_ACEOF 14675 14676# The following way of writing the cache mishandles newlines in values, 14677# but we know of no workaround that is simple, portable, and efficient. 14678# So, we kill variables containing newlines. 14679# Ultrix sh set writes to stderr and can't be redirected directly, 14680# and sets the high bit in the cache file unless we assign to the vars. 14681( 14682 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14683 eval ac_val=\$$ac_var 14684 case $ac_val in #( 14685 *${as_nl}*) 14686 case $ac_var in #( 14687 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14688$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14689 esac 14690 case $ac_var in #( 14691 _ | IFS | as_nl) ;; #( 14692 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14693 *) { eval $ac_var=; unset $ac_var;} ;; 14694 esac ;; 14695 esac 14696 done 14697 14698 (set) 2>&1 | 14699 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14700 *${as_nl}ac_space=\ *) 14701 # `set' does not quote correctly, so add quotes: double-quote 14702 # substitution turns \\\\ into \\, and sed turns \\ into \. 14703 sed -n \ 14704 "s/'/'\\\\''/g; 14705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14706 ;; #( 14707 *) 14708 # `set' quotes correctly as required by POSIX, so do not add quotes. 14709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14710 ;; 14711 esac | 14712 sort 14713) | 14714 sed ' 14715 /^ac_cv_env_/b end 14716 t clear 14717 :clear 14718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14719 t end 14720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14721 :end' >>confcache 14722if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14723 if test -w "$cache_file"; then 14724 if test "x$cache_file" != "x/dev/null"; then 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14726$as_echo "$as_me: updating cache $cache_file" >&6;} 14727 if test ! -f "$cache_file" || test -h "$cache_file"; then 14728 cat confcache >"$cache_file" 14729 else 14730 case $cache_file in #( 14731 */* | ?:*) 14732 mv -f confcache "$cache_file"$$ && 14733 mv -f "$cache_file"$$ "$cache_file" ;; #( 14734 *) 14735 mv -f confcache "$cache_file" ;; 14736 esac 14737 fi 14738 fi 14739 else 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14741$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14742 fi 14743fi 14744rm -f confcache 14745 14746test "x$prefix" = xNONE && prefix=$ac_default_prefix 14747# Let make expand exec_prefix. 14748test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14749 14750DEFS=-DHAVE_CONFIG_H 14751 14752ac_libobjs= 14753ac_ltlibobjs= 14754U= 14755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14756 # 1. Remove the extension, and $U if already installed. 14757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14758 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14760 # will be set to the directory where LIBOBJS objects are built. 14761 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14762 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14763done 14764LIBOBJS=$ac_libobjs 14765 14766LTLIBOBJS=$ac_ltlibobjs 14767 14768 14769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14770$as_echo_n "checking that generated files are newer than configure... " >&6; } 14771 if test -n "$am_sleep_pid"; then 14772 # Hide warnings about reused PIDs. 14773 wait $am_sleep_pid 2>/dev/null 14774 fi 14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14776$as_echo "done" >&6; } 14777 if test -n "$EXEEXT"; then 14778 am__EXEEXT_TRUE= 14779 am__EXEEXT_FALSE='#' 14780else 14781 am__EXEEXT_TRUE='#' 14782 am__EXEEXT_FALSE= 14783fi 14784 14785if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14786 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14787Usually this means the macro was only invoked conditionally." "$LINENO" 5 14788fi 14789if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14790 as_fn_error $? "conditional \"AMDEP\" was never defined. 14791Usually this means the macro was only invoked conditionally." "$LINENO" 5 14792fi 14793if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14794 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14795Usually this means the macro was only invoked conditionally." "$LINENO" 5 14796fi 14797if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 14798 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 14799Usually this means the macro was only invoked conditionally." "$LINENO" 5 14800fi 14801if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then 14802 as_fn_error $? "conditional \"LINUX_LINKER_SCRIPT\" was never defined. 14803Usually this means the macro was only invoked conditionally." "$LINENO" 5 14804fi 14805if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then 14806 as_fn_error $? "conditional \"MAC_LINKER_SCRIPT\" was never defined. 14807Usually this means the macro was only invoked conditionally." "$LINENO" 5 14808fi 14809 14810: "${CONFIG_STATUS=./config.status}" 14811ac_write_fail=0 14812ac_clean_files_save=$ac_clean_files 14813ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14815$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14816as_write_fail=0 14817cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14818#! $SHELL 14819# Generated by $as_me. 14820# Run this file to recreate the current configuration. 14821# Compiler output produced by configure, useful for debugging 14822# configure, is in config.log if it exists. 14823 14824debug=false 14825ac_cs_recheck=false 14826ac_cs_silent=false 14827 14828SHELL=\${CONFIG_SHELL-$SHELL} 14829export SHELL 14830_ASEOF 14831cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14832## -------------------- ## 14833## M4sh Initialization. ## 14834## -------------------- ## 14835 14836# Be more Bourne compatible 14837DUALCASE=1; export DUALCASE # for MKS sh 14838if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14839 emulate sh 14840 NULLCMD=: 14841 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14842 # is contrary to our usage. Disable this feature. 14843 alias -g '${1+"$@"}'='"$@"' 14844 setopt NO_GLOB_SUBST 14845else 14846 case `(set -o) 2>/dev/null` in #( 14847 *posix*) : 14848 set -o posix ;; #( 14849 *) : 14850 ;; 14851esac 14852fi 14853 14854 14855as_nl=' 14856' 14857export as_nl 14858# Printing a long string crashes Solaris 7 /usr/bin/printf. 14859as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14860as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14861as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14862# Prefer a ksh shell builtin over an external printf program on Solaris, 14863# but without wasting forks for bash or zsh. 14864if test -z "$BASH_VERSION$ZSH_VERSION" \ 14865 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14866 as_echo='print -r --' 14867 as_echo_n='print -rn --' 14868elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14869 as_echo='printf %s\n' 14870 as_echo_n='printf %s' 14871else 14872 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14873 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14874 as_echo_n='/usr/ucb/echo -n' 14875 else 14876 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14877 as_echo_n_body='eval 14878 arg=$1; 14879 case $arg in #( 14880 *"$as_nl"*) 14881 expr "X$arg" : "X\\(.*\\)$as_nl"; 14882 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14883 esac; 14884 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14885 ' 14886 export as_echo_n_body 14887 as_echo_n='sh -c $as_echo_n_body as_echo' 14888 fi 14889 export as_echo_body 14890 as_echo='sh -c $as_echo_body as_echo' 14891fi 14892 14893# The user is always right. 14894if test "${PATH_SEPARATOR+set}" != set; then 14895 PATH_SEPARATOR=: 14896 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14897 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14898 PATH_SEPARATOR=';' 14899 } 14900fi 14901 14902 14903# IFS 14904# We need space, tab and new line, in precisely that order. Quoting is 14905# there to prevent editors from complaining about space-tab. 14906# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14907# splitting by setting IFS to empty value.) 14908IFS=" "" $as_nl" 14909 14910# Find who we are. Look in the path if we contain no directory separator. 14911as_myself= 14912case $0 in #(( 14913 *[\\/]* ) as_myself=$0 ;; 14914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14915for as_dir in $PATH 14916do 14917 IFS=$as_save_IFS 14918 test -z "$as_dir" && as_dir=. 14919 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14920 done 14921IFS=$as_save_IFS 14922 14923 ;; 14924esac 14925# We did not find ourselves, most probably we were run as `sh COMMAND' 14926# in which case we are not to be found in the path. 14927if test "x$as_myself" = x; then 14928 as_myself=$0 14929fi 14930if test ! -f "$as_myself"; then 14931 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14932 exit 1 14933fi 14934 14935# Unset variables that we do not need and which cause bugs (e.g. in 14936# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14937# suppresses any "Segmentation fault" message there. '((' could 14938# trigger a bug in pdksh 5.2.14. 14939for as_var in BASH_ENV ENV MAIL MAILPATH 14940do eval test x\${$as_var+set} = xset \ 14941 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14942done 14943PS1='$ ' 14944PS2='> ' 14945PS4='+ ' 14946 14947# NLS nuisances. 14948LC_ALL=C 14949export LC_ALL 14950LANGUAGE=C 14951export LANGUAGE 14952 14953# CDPATH. 14954(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14955 14956 14957# as_fn_error STATUS ERROR [LINENO LOG_FD] 14958# ---------------------------------------- 14959# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14960# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14961# script with STATUS, using 1 if that was 0. 14962as_fn_error () 14963{ 14964 as_status=$1; test $as_status -eq 0 && as_status=1 14965 if test "$4"; then 14966 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14967 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14968 fi 14969 $as_echo "$as_me: error: $2" >&2 14970 as_fn_exit $as_status 14971} # as_fn_error 14972 14973 14974# as_fn_set_status STATUS 14975# ----------------------- 14976# Set $? to STATUS, without forking. 14977as_fn_set_status () 14978{ 14979 return $1 14980} # as_fn_set_status 14981 14982# as_fn_exit STATUS 14983# ----------------- 14984# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14985as_fn_exit () 14986{ 14987 set +e 14988 as_fn_set_status $1 14989 exit $1 14990} # as_fn_exit 14991 14992# as_fn_unset VAR 14993# --------------- 14994# Portably unset VAR. 14995as_fn_unset () 14996{ 14997 { eval $1=; unset $1;} 14998} 14999as_unset=as_fn_unset 15000# as_fn_append VAR VALUE 15001# ---------------------- 15002# Append the text in VALUE to the end of the definition contained in VAR. Take 15003# advantage of any shell optimizations that allow amortized linear growth over 15004# repeated appends, instead of the typical quadratic growth present in naive 15005# implementations. 15006if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15007 eval 'as_fn_append () 15008 { 15009 eval $1+=\$2 15010 }' 15011else 15012 as_fn_append () 15013 { 15014 eval $1=\$$1\$2 15015 } 15016fi # as_fn_append 15017 15018# as_fn_arith ARG... 15019# ------------------ 15020# Perform arithmetic evaluation on the ARGs, and store the result in the 15021# global $as_val. Take advantage of shells that can avoid forks. The arguments 15022# must be portable across $(()) and expr. 15023if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15024 eval 'as_fn_arith () 15025 { 15026 as_val=$(( $* )) 15027 }' 15028else 15029 as_fn_arith () 15030 { 15031 as_val=`expr "$@" || test $? -eq 1` 15032 } 15033fi # as_fn_arith 15034 15035 15036if expr a : '\(a\)' >/dev/null 2>&1 && 15037 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15038 as_expr=expr 15039else 15040 as_expr=false 15041fi 15042 15043if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15044 as_basename=basename 15045else 15046 as_basename=false 15047fi 15048 15049if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15050 as_dirname=dirname 15051else 15052 as_dirname=false 15053fi 15054 15055as_me=`$as_basename -- "$0" || 15056$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15057 X"$0" : 'X\(//\)$' \| \ 15058 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15059$as_echo X/"$0" | 15060 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15061 s//\1/ 15062 q 15063 } 15064 /^X\/\(\/\/\)$/{ 15065 s//\1/ 15066 q 15067 } 15068 /^X\/\(\/\).*/{ 15069 s//\1/ 15070 q 15071 } 15072 s/.*/./; q'` 15073 15074# Avoid depending upon Character Ranges. 15075as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15076as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15077as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15078as_cr_digits='0123456789' 15079as_cr_alnum=$as_cr_Letters$as_cr_digits 15080 15081ECHO_C= ECHO_N= ECHO_T= 15082case `echo -n x` in #((((( 15083-n*) 15084 case `echo 'xy\c'` in 15085 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15086 xy) ECHO_C='\c';; 15087 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15088 ECHO_T=' ';; 15089 esac;; 15090*) 15091 ECHO_N='-n';; 15092esac 15093 15094rm -f conf$$ conf$$.exe conf$$.file 15095if test -d conf$$.dir; then 15096 rm -f conf$$.dir/conf$$.file 15097else 15098 rm -f conf$$.dir 15099 mkdir conf$$.dir 2>/dev/null 15100fi 15101if (echo >conf$$.file) 2>/dev/null; then 15102 if ln -s conf$$.file conf$$ 2>/dev/null; then 15103 as_ln_s='ln -s' 15104 # ... but there are two gotchas: 15105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15107 # In both cases, we have to default to `cp -pR'. 15108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15109 as_ln_s='cp -pR' 15110 elif ln conf$$.file conf$$ 2>/dev/null; then 15111 as_ln_s=ln 15112 else 15113 as_ln_s='cp -pR' 15114 fi 15115else 15116 as_ln_s='cp -pR' 15117fi 15118rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15119rmdir conf$$.dir 2>/dev/null 15120 15121 15122# as_fn_mkdir_p 15123# ------------- 15124# Create "$as_dir" as a directory, including parents if necessary. 15125as_fn_mkdir_p () 15126{ 15127 15128 case $as_dir in #( 15129 -*) as_dir=./$as_dir;; 15130 esac 15131 test -d "$as_dir" || eval $as_mkdir_p || { 15132 as_dirs= 15133 while :; do 15134 case $as_dir in #( 15135 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15136 *) as_qdir=$as_dir;; 15137 esac 15138 as_dirs="'$as_qdir' $as_dirs" 15139 as_dir=`$as_dirname -- "$as_dir" || 15140$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15141 X"$as_dir" : 'X\(//\)[^/]' \| \ 15142 X"$as_dir" : 'X\(//\)$' \| \ 15143 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15144$as_echo X"$as_dir" | 15145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15146 s//\1/ 15147 q 15148 } 15149 /^X\(\/\/\)[^/].*/{ 15150 s//\1/ 15151 q 15152 } 15153 /^X\(\/\/\)$/{ 15154 s//\1/ 15155 q 15156 } 15157 /^X\(\/\).*/{ 15158 s//\1/ 15159 q 15160 } 15161 s/.*/./; q'` 15162 test -d "$as_dir" && break 15163 done 15164 test -z "$as_dirs" || eval "mkdir $as_dirs" 15165 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15166 15167 15168} # as_fn_mkdir_p 15169if mkdir -p . 2>/dev/null; then 15170 as_mkdir_p='mkdir -p "$as_dir"' 15171else 15172 test -d ./-p && rmdir ./-p 15173 as_mkdir_p=false 15174fi 15175 15176 15177# as_fn_executable_p FILE 15178# ----------------------- 15179# Test if FILE is an executable regular file. 15180as_fn_executable_p () 15181{ 15182 test -f "$1" && test -x "$1" 15183} # as_fn_executable_p 15184as_test_x='test -x' 15185as_executable_p=as_fn_executable_p 15186 15187# Sed expression to map a string onto a valid CPP name. 15188as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15189 15190# Sed expression to map a string onto a valid variable name. 15191as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15192 15193 15194exec 6>&1 15195## ----------------------------------- ## 15196## Main body of $CONFIG_STATUS script. ## 15197## ----------------------------------- ## 15198_ASEOF 15199test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15200 15201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15202# Save the log message, to keep $0 and so on meaningful, and to 15203# report actual input values of CONFIG_FILES etc. instead of their 15204# values after options handling. 15205ac_log=" 15206This file was extended by phsa HSAIL runtime library $as_me 1.0, which was 15207generated by GNU Autoconf 2.69. Invocation command line was 15208 15209 CONFIG_FILES = $CONFIG_FILES 15210 CONFIG_HEADERS = $CONFIG_HEADERS 15211 CONFIG_LINKS = $CONFIG_LINKS 15212 CONFIG_COMMANDS = $CONFIG_COMMANDS 15213 $ $0 $@ 15214 15215on `(hostname || uname -n) 2>/dev/null | sed 1q` 15216" 15217 15218_ACEOF 15219 15220case $ac_config_files in *" 15221"*) set x $ac_config_files; shift; ac_config_files=$*;; 15222esac 15223 15224case $ac_config_headers in *" 15225"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15226esac 15227 15228 15229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15230# Files that config.status was made for. 15231config_files="$ac_config_files" 15232config_headers="$ac_config_headers" 15233config_commands="$ac_config_commands" 15234 15235_ACEOF 15236 15237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15238ac_cs_usage="\ 15239\`$as_me' instantiates files and other configuration actions 15240from templates according to the current configuration. Unless the files 15241and actions are specified as TAGs, all are instantiated by default. 15242 15243Usage: $0 [OPTION]... [TAG]... 15244 15245 -h, --help print this help, then exit 15246 -V, --version print version number and configuration settings, then exit 15247 --config print configuration, then exit 15248 -q, --quiet, --silent 15249 do not print progress messages 15250 -d, --debug don't remove temporary files 15251 --recheck update $as_me by reconfiguring in the same conditions 15252 --file=FILE[:TEMPLATE] 15253 instantiate the configuration file FILE 15254 --header=FILE[:TEMPLATE] 15255 instantiate the configuration header FILE 15256 15257Configuration files: 15258$config_files 15259 15260Configuration headers: 15261$config_headers 15262 15263Configuration commands: 15264$config_commands 15265 15266Report bugs to <pekka.jaaskelainen@parmance.com>." 15267 15268_ACEOF 15269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15270ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15271ac_cs_version="\\ 15272phsa HSAIL runtime library config.status 1.0 15273configured by $0, generated by GNU Autoconf 2.69, 15274 with options \\"\$ac_cs_config\\" 15275 15276Copyright (C) 2012 Free Software Foundation, Inc. 15277This config.status script is free software; the Free Software Foundation 15278gives unlimited permission to copy, distribute and modify it." 15279 15280ac_pwd='$ac_pwd' 15281srcdir='$srcdir' 15282INSTALL='$INSTALL' 15283MKDIR_P='$MKDIR_P' 15284AWK='$AWK' 15285test -n "\$AWK" || AWK=awk 15286_ACEOF 15287 15288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15289# The default lists apply if the user does not specify any file. 15290ac_need_defaults=: 15291while test $# != 0 15292do 15293 case $1 in 15294 --*=?*) 15295 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15297 ac_shift=: 15298 ;; 15299 --*=) 15300 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15301 ac_optarg= 15302 ac_shift=: 15303 ;; 15304 *) 15305 ac_option=$1 15306 ac_optarg=$2 15307 ac_shift=shift 15308 ;; 15309 esac 15310 15311 case $ac_option in 15312 # Handling of the options. 15313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15314 ac_cs_recheck=: ;; 15315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15316 $as_echo "$ac_cs_version"; exit ;; 15317 --config | --confi | --conf | --con | --co | --c ) 15318 $as_echo "$ac_cs_config"; exit ;; 15319 --debug | --debu | --deb | --de | --d | -d ) 15320 debug=: ;; 15321 --file | --fil | --fi | --f ) 15322 $ac_shift 15323 case $ac_optarg in 15324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15325 '') as_fn_error $? "missing file argument" ;; 15326 esac 15327 as_fn_append CONFIG_FILES " '$ac_optarg'" 15328 ac_need_defaults=false;; 15329 --header | --heade | --head | --hea ) 15330 $ac_shift 15331 case $ac_optarg in 15332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15333 esac 15334 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15335 ac_need_defaults=false;; 15336 --he | --h) 15337 # Conflict between --help and --header 15338 as_fn_error $? "ambiguous option: \`$1' 15339Try \`$0 --help' for more information.";; 15340 --help | --hel | -h ) 15341 $as_echo "$ac_cs_usage"; exit ;; 15342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15343 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15344 ac_cs_silent=: ;; 15345 15346 # This is an error. 15347 -*) as_fn_error $? "unrecognized option: \`$1' 15348Try \`$0 --help' for more information." ;; 15349 15350 *) as_fn_append ac_config_targets " $1" 15351 ac_need_defaults=false ;; 15352 15353 esac 15354 shift 15355done 15356 15357ac_configure_extra_args= 15358 15359if $ac_cs_silent; then 15360 exec 6>/dev/null 15361 ac_configure_extra_args="$ac_configure_extra_args --silent" 15362fi 15363 15364_ACEOF 15365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15366if \$ac_cs_recheck; then 15367 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15368 shift 15369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15370 CONFIG_SHELL='$SHELL' 15371 export CONFIG_SHELL 15372 exec "\$@" 15373fi 15374 15375_ACEOF 15376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15377exec 5>>config.log 15378{ 15379 echo 15380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15381## Running $as_me. ## 15382_ASBOX 15383 $as_echo "$ac_log" 15384} >&5 15385 15386_ACEOF 15387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15388# 15389# INIT-COMMANDS 15390# 15391AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15392 15393 15394# The HP-UX ksh and POSIX shell print the target directory to stdout 15395# if CDPATH is set. 15396(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15397 15398sed_quote_subst='$sed_quote_subst' 15399double_quote_subst='$double_quote_subst' 15400delay_variable_subst='$delay_variable_subst' 15401macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15402macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15403enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15404enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15405pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15406enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15407SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15408ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15409host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15410host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15411host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15412build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15413build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15414build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15415SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15416Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15417GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15418EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15419FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15420LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15421NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15422LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15423max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15424ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15425exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15426lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15427lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15428lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15429reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15430reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15431OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15432deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15433file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15434AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15435AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15436STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15437RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15438old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15439old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15440old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15441lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15442CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15443CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15444compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15445GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15446lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15447lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15448lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15449lt_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"`' 15450objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15451MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15452lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15453lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15454lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15455lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15456lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15457need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15458DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15459NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15460LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15461OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15462OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15463libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15464shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15465extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15466archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15467enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15468export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15469whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15470compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15471old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15472old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15473archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15474archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15475module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15476module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15477with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15478allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15479no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15480hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15481hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15482hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15483hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15484hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15485hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15486hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15487hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15488inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15489link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15490fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15491always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15492export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15493exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15494include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15495prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15496file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15497variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15498need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15499need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15500version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15501runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15502shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15503shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15504libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15505library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15506soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15507install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15508postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15509postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15510finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15511finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15512hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15513sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15514sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15515hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15516enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15517enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15518enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15519old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15520striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15521compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 15522predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 15523postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 15524predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 15525postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 15526compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 15527LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 15528reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 15529reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15530old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15531compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 15532GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 15533lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 15534lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 15535lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 15536lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 15537lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 15538archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 15539enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 15540export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15541whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15542compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 15543old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15544old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15545archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15546archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15547module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15548module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15549with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 15550allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15551no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15552hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15553hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 15554hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 15555hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 15556hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 15557hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 15558hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 15559hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 15560inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 15561link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 15562fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 15563always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 15564export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15565exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15566include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15567prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15568file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 15569hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 15570compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 15571predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15572postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15573predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 15574postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 15575compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 15576 15577LTCC='$LTCC' 15578LTCFLAGS='$LTCFLAGS' 15579compiler='$compiler_DEFAULT' 15580 15581# A function that is used when there is no print builtin or printf. 15582func_fallback_echo () 15583{ 15584 eval 'cat <<_LTECHO_EOF 15585\$1 15586_LTECHO_EOF' 15587} 15588 15589# Quote evaled strings. 15590for var in SHELL \ 15591ECHO \ 15592SED \ 15593GREP \ 15594EGREP \ 15595FGREP \ 15596LD \ 15597NM \ 15598LN_S \ 15599lt_SP2NL \ 15600lt_NL2SP \ 15601reload_flag \ 15602OBJDUMP \ 15603deplibs_check_method \ 15604file_magic_cmd \ 15605AR \ 15606AR_FLAGS \ 15607STRIP \ 15608RANLIB \ 15609CC \ 15610CFLAGS \ 15611compiler \ 15612lt_cv_sys_global_symbol_pipe \ 15613lt_cv_sys_global_symbol_to_cdecl \ 15614lt_cv_sys_global_symbol_to_c_name_address \ 15615lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15616lt_prog_compiler_no_builtin_flag \ 15617lt_prog_compiler_wl \ 15618lt_prog_compiler_pic \ 15619lt_prog_compiler_static \ 15620lt_cv_prog_compiler_c_o \ 15621need_locks \ 15622DSYMUTIL \ 15623NMEDIT \ 15624LIPO \ 15625OTOOL \ 15626OTOOL64 \ 15627shrext_cmds \ 15628export_dynamic_flag_spec \ 15629whole_archive_flag_spec \ 15630compiler_needs_object \ 15631with_gnu_ld \ 15632allow_undefined_flag \ 15633no_undefined_flag \ 15634hardcode_libdir_flag_spec \ 15635hardcode_libdir_flag_spec_ld \ 15636hardcode_libdir_separator \ 15637fix_srcfile_path \ 15638exclude_expsyms \ 15639include_expsyms \ 15640file_list_spec \ 15641variables_saved_for_relink \ 15642libname_spec \ 15643library_names_spec \ 15644soname_spec \ 15645install_override_mode \ 15646finish_eval \ 15647old_striplib \ 15648striplib \ 15649compiler_lib_search_dirs \ 15650predep_objects \ 15651postdep_objects \ 15652predeps \ 15653postdeps \ 15654compiler_lib_search_path \ 15655LD_CXX \ 15656reload_flag_CXX \ 15657compiler_CXX \ 15658lt_prog_compiler_no_builtin_flag_CXX \ 15659lt_prog_compiler_wl_CXX \ 15660lt_prog_compiler_pic_CXX \ 15661lt_prog_compiler_static_CXX \ 15662lt_cv_prog_compiler_c_o_CXX \ 15663export_dynamic_flag_spec_CXX \ 15664whole_archive_flag_spec_CXX \ 15665compiler_needs_object_CXX \ 15666with_gnu_ld_CXX \ 15667allow_undefined_flag_CXX \ 15668no_undefined_flag_CXX \ 15669hardcode_libdir_flag_spec_CXX \ 15670hardcode_libdir_flag_spec_ld_CXX \ 15671hardcode_libdir_separator_CXX \ 15672fix_srcfile_path_CXX \ 15673exclude_expsyms_CXX \ 15674include_expsyms_CXX \ 15675file_list_spec_CXX \ 15676compiler_lib_search_dirs_CXX \ 15677predep_objects_CXX \ 15678postdep_objects_CXX \ 15679predeps_CXX \ 15680postdeps_CXX \ 15681compiler_lib_search_path_CXX; do 15682 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15683 *[\\\\\\\`\\"\\\$]*) 15684 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15685 ;; 15686 *) 15687 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15688 ;; 15689 esac 15690done 15691 15692# Double-quote double-evaled strings. 15693for var in reload_cmds \ 15694old_postinstall_cmds \ 15695old_postuninstall_cmds \ 15696old_archive_cmds \ 15697extract_expsyms_cmds \ 15698old_archive_from_new_cmds \ 15699old_archive_from_expsyms_cmds \ 15700archive_cmds \ 15701archive_expsym_cmds \ 15702module_cmds \ 15703module_expsym_cmds \ 15704export_symbols_cmds \ 15705prelink_cmds \ 15706postinstall_cmds \ 15707postuninstall_cmds \ 15708finish_cmds \ 15709sys_lib_search_path_spec \ 15710sys_lib_dlsearch_path_spec \ 15711reload_cmds_CXX \ 15712old_archive_cmds_CXX \ 15713old_archive_from_new_cmds_CXX \ 15714old_archive_from_expsyms_cmds_CXX \ 15715archive_cmds_CXX \ 15716archive_expsym_cmds_CXX \ 15717module_cmds_CXX \ 15718module_expsym_cmds_CXX \ 15719export_symbols_cmds_CXX \ 15720prelink_cmds_CXX; do 15721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15722 *[\\\\\\\`\\"\\\$]*) 15723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15724 ;; 15725 *) 15726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15727 ;; 15728 esac 15729done 15730 15731ac_aux_dir='$ac_aux_dir' 15732xsi_shell='$xsi_shell' 15733lt_shell_append='$lt_shell_append' 15734 15735# See if we are running on zsh, and set the options which allow our 15736# commands through without removal of \ escapes INIT. 15737if test -n "\${ZSH_VERSION+set}" ; then 15738 setopt NO_GLOB_SUBST 15739fi 15740 15741 15742 PACKAGE='$PACKAGE' 15743 VERSION='$VERSION' 15744 TIMESTAMP='$TIMESTAMP' 15745 RM='$RM' 15746 ofile='$ofile' 15747 15748 15749 15750 15751 15752 15753_ACEOF 15754 15755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15756 15757# Handling of arguments. 15758for ac_config_target in $ac_config_targets 15759do 15760 case $ac_config_target in 15761 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15763 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15764 "target-config.h") CONFIG_HEADERS="$CONFIG_HEADERS target-config.h" ;; 15765 15766 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15767 esac 15768done 15769 15770 15771# If the user did not use the arguments to specify the items to instantiate, 15772# then the envvar interface is used. Set only those that are not. 15773# We use the long form for the default assignment because of an extremely 15774# bizarre bug on SunOS 4.1.3. 15775if $ac_need_defaults; then 15776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15779fi 15780 15781# Have a temporary directory for convenience. Make it in the build tree 15782# simply because there is no reason against having it here, and in addition, 15783# creating and moving files from /tmp can sometimes cause problems. 15784# Hook for its removal unless debugging. 15785# Note that there is a small window in which the directory will not be cleaned: 15786# after its creation but before its name has been assigned to `$tmp'. 15787$debug || 15788{ 15789 tmp= ac_tmp= 15790 trap 'exit_status=$? 15791 : "${ac_tmp:=$tmp}" 15792 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15793' 0 15794 trap 'as_fn_exit 1' 1 2 13 15 15795} 15796# Create a (secure) tmp directory for tmp files. 15797 15798{ 15799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15800 test -d "$tmp" 15801} || 15802{ 15803 tmp=./conf$$-$RANDOM 15804 (umask 077 && mkdir "$tmp") 15805} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15806ac_tmp=$tmp 15807 15808# Set up the scripts for CONFIG_FILES section. 15809# No need to generate them if there are no CONFIG_FILES. 15810# This happens for instance with `./config.status config.h'. 15811if test -n "$CONFIG_FILES"; then 15812 15813 15814ac_cr=`echo X | tr X '\015'` 15815# On cygwin, bash can eat \r inside `` if the user requested igncr. 15816# But we know of no other shell where ac_cr would be empty at this 15817# point, so we can use a bashism as a fallback. 15818if test "x$ac_cr" = x; then 15819 eval ac_cr=\$\'\\r\' 15820fi 15821ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15822if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15823 ac_cs_awk_cr='\\r' 15824else 15825 ac_cs_awk_cr=$ac_cr 15826fi 15827 15828echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15829_ACEOF 15830 15831 15832{ 15833 echo "cat >conf$$subs.awk <<_ACEOF" && 15834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15835 echo "_ACEOF" 15836} >conf$$subs.sh || 15837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15838ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15839ac_delim='%!_!# ' 15840for ac_last_try in false false false false false :; do 15841 . ./conf$$subs.sh || 15842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15843 15844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15845 if test $ac_delim_n = $ac_delim_num; then 15846 break 15847 elif $ac_last_try; then 15848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15849 else 15850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15851 fi 15852done 15853rm -f conf$$subs.sh 15854 15855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15856cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15857_ACEOF 15858sed -n ' 15859h 15860s/^/S["/; s/!.*/"]=/ 15861p 15862g 15863s/^[^!]*!// 15864:repl 15865t repl 15866s/'"$ac_delim"'$// 15867t delim 15868:nl 15869h 15870s/\(.\{148\}\)..*/\1/ 15871t more1 15872s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15873p 15874n 15875b repl 15876:more1 15877s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15878p 15879g 15880s/.\{148\}// 15881t nl 15882:delim 15883h 15884s/\(.\{148\}\)..*/\1/ 15885t more2 15886s/["\\]/\\&/g; s/^/"/; s/$/"/ 15887p 15888b 15889:more2 15890s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15891p 15892g 15893s/.\{148\}// 15894t delim 15895' <conf$$subs.awk | sed ' 15896/^[^""]/{ 15897 N 15898 s/\n// 15899} 15900' >>$CONFIG_STATUS || ac_write_fail=1 15901rm -f conf$$subs.awk 15902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15903_ACAWK 15904cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15905 for (key in S) S_is_set[key] = 1 15906 FS = "" 15907 15908} 15909{ 15910 line = $ 0 15911 nfields = split(line, field, "@") 15912 substed = 0 15913 len = length(field[1]) 15914 for (i = 2; i < nfields; i++) { 15915 key = field[i] 15916 keylen = length(key) 15917 if (S_is_set[key]) { 15918 value = S[key] 15919 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15920 len += length(value) + length(field[++i]) 15921 substed = 1 15922 } else 15923 len += 1 + keylen 15924 } 15925 15926 print line 15927} 15928 15929_ACAWK 15930_ACEOF 15931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15932if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15933 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15934else 15935 cat 15936fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15937 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15938_ACEOF 15939 15940# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15941# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15942# trailing colons and then remove the whole line if VPATH becomes empty 15943# (actually we leave an empty line to preserve line numbers). 15944if test "x$srcdir" = x.; then 15945 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15946h 15947s/// 15948s/^/:/ 15949s/[ ]*$/:/ 15950s/:\$(srcdir):/:/g 15951s/:\${srcdir}:/:/g 15952s/:@srcdir@:/:/g 15953s/^:*// 15954s/:*$// 15955x 15956s/\(=[ ]*\).*/\1/ 15957G 15958s/\n// 15959s/^[^=]*=[ ]*$// 15960}' 15961fi 15962 15963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15964fi # test -n "$CONFIG_FILES" 15965 15966# Set up the scripts for CONFIG_HEADERS section. 15967# No need to generate them if there are no CONFIG_HEADERS. 15968# This happens for instance with `./config.status Makefile'. 15969if test -n "$CONFIG_HEADERS"; then 15970cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15971BEGIN { 15972_ACEOF 15973 15974# Transform confdefs.h into an awk script `defines.awk', embedded as 15975# here-document in config.status, that substitutes the proper values into 15976# config.h.in to produce config.h. 15977 15978# Create a delimiter string that does not exist in confdefs.h, to ease 15979# handling of long lines. 15980ac_delim='%!_!# ' 15981for ac_last_try in false false :; do 15982 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15983 if test -z "$ac_tt"; then 15984 break 15985 elif $ac_last_try; then 15986 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15987 else 15988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15989 fi 15990done 15991 15992# For the awk script, D is an array of macro values keyed by name, 15993# likewise P contains macro parameters if any. Preserve backslash 15994# newline sequences. 15995 15996ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15997sed -n ' 15998s/.\{148\}/&'"$ac_delim"'/g 15999t rset 16000:rset 16001s/^[ ]*#[ ]*define[ ][ ]*/ / 16002t def 16003d 16004:def 16005s/\\$// 16006t bsnl 16007s/["\\]/\\&/g 16008s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16009D["\1"]=" \3"/p 16010s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16011d 16012:bsnl 16013s/["\\]/\\&/g 16014s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16015D["\1"]=" \3\\\\\\n"\\/p 16016t cont 16017s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16018t cont 16019d 16020:cont 16021n 16022s/.\{148\}/&'"$ac_delim"'/g 16023t clear 16024:clear 16025s/\\$// 16026t bsnlc 16027s/["\\]/\\&/g; s/^/"/; s/$/"/p 16028d 16029:bsnlc 16030s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16031b cont 16032' <confdefs.h | sed ' 16033s/'"$ac_delim"'/"\\\ 16034"/g' >>$CONFIG_STATUS || ac_write_fail=1 16035 16036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16037 for (key in D) D_is_set[key] = 1 16038 FS = "" 16039} 16040/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16041 line = \$ 0 16042 split(line, arg, " ") 16043 if (arg[1] == "#") { 16044 defundef = arg[2] 16045 mac1 = arg[3] 16046 } else { 16047 defundef = substr(arg[1], 2) 16048 mac1 = arg[2] 16049 } 16050 split(mac1, mac2, "(") #) 16051 macro = mac2[1] 16052 prefix = substr(line, 1, index(line, defundef) - 1) 16053 if (D_is_set[macro]) { 16054 # Preserve the white space surrounding the "#". 16055 print prefix "define", macro P[macro] D[macro] 16056 next 16057 } else { 16058 # Replace #undef with comments. This is necessary, for example, 16059 # in the case of _POSIX_SOURCE, which is predefined and required 16060 # on some systems where configure will not decide to define it. 16061 if (defundef == "undef") { 16062 print "/*", prefix defundef, macro, "*/" 16063 next 16064 } 16065 } 16066} 16067{ print } 16068_ACAWK 16069_ACEOF 16070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16071 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16072fi # test -n "$CONFIG_HEADERS" 16073 16074 16075eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16076shift 16077for ac_tag 16078do 16079 case $ac_tag in 16080 :[FHLC]) ac_mode=$ac_tag; continue;; 16081 esac 16082 case $ac_mode$ac_tag in 16083 :[FHL]*:*);; 16084 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16085 :[FH]-) ac_tag=-:-;; 16086 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16087 esac 16088 ac_save_IFS=$IFS 16089 IFS=: 16090 set x $ac_tag 16091 IFS=$ac_save_IFS 16092 shift 16093 ac_file=$1 16094 shift 16095 16096 case $ac_mode in 16097 :L) ac_source=$1;; 16098 :[FH]) 16099 ac_file_inputs= 16100 for ac_f 16101 do 16102 case $ac_f in 16103 -) ac_f="$ac_tmp/stdin";; 16104 *) # Look for the file first in the build tree, then in the source tree 16105 # (if the path is not absolute). The absolute path cannot be DOS-style, 16106 # because $ac_f cannot contain `:'. 16107 test -f "$ac_f" || 16108 case $ac_f in 16109 [\\/$]*) false;; 16110 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16111 esac || 16112 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16113 esac 16114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16115 as_fn_append ac_file_inputs " '$ac_f'" 16116 done 16117 16118 # Let's still pretend it is `configure' which instantiates (i.e., don't 16119 # use $as_me), people would be surprised to read: 16120 # /* config.h. Generated by config.status. */ 16121 configure_input='Generated from '` 16122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16123 `' by configure.' 16124 if test x"$ac_file" != x-; then 16125 configure_input="$ac_file. $configure_input" 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16127$as_echo "$as_me: creating $ac_file" >&6;} 16128 fi 16129 # Neutralize special characters interpreted by sed in replacement strings. 16130 case $configure_input in #( 16131 *\&* | *\|* | *\\* ) 16132 ac_sed_conf_input=`$as_echo "$configure_input" | 16133 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16134 *) ac_sed_conf_input=$configure_input;; 16135 esac 16136 16137 case $ac_tag in 16138 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16140 esac 16141 ;; 16142 esac 16143 16144 ac_dir=`$as_dirname -- "$ac_file" || 16145$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16146 X"$ac_file" : 'X\(//\)[^/]' \| \ 16147 X"$ac_file" : 'X\(//\)$' \| \ 16148 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16149$as_echo X"$ac_file" | 16150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16151 s//\1/ 16152 q 16153 } 16154 /^X\(\/\/\)[^/].*/{ 16155 s//\1/ 16156 q 16157 } 16158 /^X\(\/\/\)$/{ 16159 s//\1/ 16160 q 16161 } 16162 /^X\(\/\).*/{ 16163 s//\1/ 16164 q 16165 } 16166 s/.*/./; q'` 16167 as_dir="$ac_dir"; as_fn_mkdir_p 16168 ac_builddir=. 16169 16170case "$ac_dir" in 16171.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16172*) 16173 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16174 # A ".." for each directory in $ac_dir_suffix. 16175 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16176 case $ac_top_builddir_sub in 16177 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16178 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16179 esac ;; 16180esac 16181ac_abs_top_builddir=$ac_pwd 16182ac_abs_builddir=$ac_pwd$ac_dir_suffix 16183# for backward compatibility: 16184ac_top_builddir=$ac_top_build_prefix 16185 16186case $srcdir in 16187 .) # We are building in place. 16188 ac_srcdir=. 16189 ac_top_srcdir=$ac_top_builddir_sub 16190 ac_abs_top_srcdir=$ac_pwd ;; 16191 [\\/]* | ?:[\\/]* ) # Absolute name. 16192 ac_srcdir=$srcdir$ac_dir_suffix; 16193 ac_top_srcdir=$srcdir 16194 ac_abs_top_srcdir=$srcdir ;; 16195 *) # Relative name. 16196 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16197 ac_top_srcdir=$ac_top_build_prefix$srcdir 16198 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16199esac 16200ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16201 16202 16203 case $ac_mode in 16204 :F) 16205 # 16206 # CONFIG_FILE 16207 # 16208 16209 case $INSTALL in 16210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16211 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16212 esac 16213 ac_MKDIR_P=$MKDIR_P 16214 case $MKDIR_P in 16215 [\\/$]* | ?:[\\/]* ) ;; 16216 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16217 esac 16218_ACEOF 16219 16220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16221# If the template does not know about datarootdir, expand it. 16222# FIXME: This hack should be removed a few years after 2.60. 16223ac_datarootdir_hack=; ac_datarootdir_seen= 16224ac_sed_dataroot=' 16225/datarootdir/ { 16226 p 16227 q 16228} 16229/@datadir@/p 16230/@docdir@/p 16231/@infodir@/p 16232/@localedir@/p 16233/@mandir@/p' 16234case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16235*datarootdir*) ac_datarootdir_seen=yes;; 16236*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16238$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16239_ACEOF 16240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16241 ac_datarootdir_hack=' 16242 s&@datadir@&$datadir&g 16243 s&@docdir@&$docdir&g 16244 s&@infodir@&$infodir&g 16245 s&@localedir@&$localedir&g 16246 s&@mandir@&$mandir&g 16247 s&\\\${datarootdir}&$datarootdir&g' ;; 16248esac 16249_ACEOF 16250 16251# Neutralize VPATH when `$srcdir' = `.'. 16252# Shell code in configure.ac might set extrasub. 16253# FIXME: do we really want to maintain this feature? 16254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16255ac_sed_extra="$ac_vpsub 16256$extrasub 16257_ACEOF 16258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16259:t 16260/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16261s|@configure_input@|$ac_sed_conf_input|;t t 16262s&@top_builddir@&$ac_top_builddir_sub&;t t 16263s&@top_build_prefix@&$ac_top_build_prefix&;t t 16264s&@srcdir@&$ac_srcdir&;t t 16265s&@abs_srcdir@&$ac_abs_srcdir&;t t 16266s&@top_srcdir@&$ac_top_srcdir&;t t 16267s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16268s&@builddir@&$ac_builddir&;t t 16269s&@abs_builddir@&$ac_abs_builddir&;t t 16270s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16271s&@INSTALL@&$ac_INSTALL&;t t 16272s&@MKDIR_P@&$ac_MKDIR_P&;t t 16273$ac_datarootdir_hack 16274" 16275eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16277 16278test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16281 "$ac_tmp/out"`; test -z "$ac_out"; } && 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16283which seems to be undefined. Please make sure it is defined" >&5 16284$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16285which seems to be undefined. Please make sure it is defined" >&2;} 16286 16287 rm -f "$ac_tmp/stdin" 16288 case $ac_file in 16289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16291 esac \ 16292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16293 ;; 16294 :H) 16295 # 16296 # CONFIG_HEADER 16297 # 16298 if test x"$ac_file" != x-; then 16299 { 16300 $as_echo "/* $configure_input */" \ 16301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16302 } >"$ac_tmp/config.h" \ 16303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16304 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16306$as_echo "$as_me: $ac_file is unchanged" >&6;} 16307 else 16308 rm -f "$ac_file" 16309 mv "$ac_tmp/config.h" "$ac_file" \ 16310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16311 fi 16312 else 16313 $as_echo "/* $configure_input */" \ 16314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16315 || as_fn_error $? "could not create -" "$LINENO" 5 16316 fi 16317# Compute "$ac_file"'s index in $config_headers. 16318_am_arg="$ac_file" 16319_am_stamp_count=1 16320for _am_header in $config_headers :; do 16321 case $_am_header in 16322 $_am_arg | $_am_arg:* ) 16323 break ;; 16324 * ) 16325 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16326 esac 16327done 16328echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16329$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16330 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16331 X"$_am_arg" : 'X\(//\)$' \| \ 16332 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16333$as_echo X"$_am_arg" | 16334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16335 s//\1/ 16336 q 16337 } 16338 /^X\(\/\/\)[^/].*/{ 16339 s//\1/ 16340 q 16341 } 16342 /^X\(\/\/\)$/{ 16343 s//\1/ 16344 q 16345 } 16346 /^X\(\/\).*/{ 16347 s//\1/ 16348 q 16349 } 16350 s/.*/./; q'`/stamp-h$_am_stamp_count 16351 ;; 16352 16353 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16354$as_echo "$as_me: executing $ac_file commands" >&6;} 16355 ;; 16356 esac 16357 16358 16359 case $ac_file$ac_mode in 16360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16361 # Older Autoconf quotes --file arguments for eval, but not when files 16362 # are listed without --file. Let's play safe and only enable the eval 16363 # if we detect the quoting. 16364 case $CONFIG_FILES in 16365 *\'*) eval set x "$CONFIG_FILES" ;; 16366 *) set x $CONFIG_FILES ;; 16367 esac 16368 shift 16369 for mf 16370 do 16371 # Strip MF so we end up with the name of the file. 16372 mf=`echo "$mf" | sed -e 's/:.*$//'` 16373 # Check whether this is an Automake generated Makefile or not. 16374 # We used to match only the files named 'Makefile.in', but 16375 # some people rename them; so instead we look at the file content. 16376 # Grep'ing the first line is not enough: some people post-process 16377 # each Makefile.in and add a new line on top of each file to say so. 16378 # Grep'ing the whole file is not good either: AIX grep has a line 16379 # limit of 2048, but all sed's we know have understand at least 4000. 16380 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16381 dirpart=`$as_dirname -- "$mf" || 16382$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16383 X"$mf" : 'X\(//\)[^/]' \| \ 16384 X"$mf" : 'X\(//\)$' \| \ 16385 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16386$as_echo X"$mf" | 16387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16388 s//\1/ 16389 q 16390 } 16391 /^X\(\/\/\)[^/].*/{ 16392 s//\1/ 16393 q 16394 } 16395 /^X\(\/\/\)$/{ 16396 s//\1/ 16397 q 16398 } 16399 /^X\(\/\).*/{ 16400 s//\1/ 16401 q 16402 } 16403 s/.*/./; q'` 16404 else 16405 continue 16406 fi 16407 # Extract the definition of DEPDIR, am__include, and am__quote 16408 # from the Makefile without running 'make'. 16409 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16410 test -z "$DEPDIR" && continue 16411 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16412 test -z "$am__include" && continue 16413 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16414 # Find all dependency output files, they are included files with 16415 # $(DEPDIR) in their names. We invoke sed twice because it is the 16416 # simplest approach to changing $(DEPDIR) to its actual value in the 16417 # expansion. 16418 for file in `sed -n " 16419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16421 # Make sure the directory exists. 16422 test -f "$dirpart/$file" && continue 16423 fdir=`$as_dirname -- "$file" || 16424$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16425 X"$file" : 'X\(//\)[^/]' \| \ 16426 X"$file" : 'X\(//\)$' \| \ 16427 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16428$as_echo X"$file" | 16429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16430 s//\1/ 16431 q 16432 } 16433 /^X\(\/\/\)[^/].*/{ 16434 s//\1/ 16435 q 16436 } 16437 /^X\(\/\/\)$/{ 16438 s//\1/ 16439 q 16440 } 16441 /^X\(\/\).*/{ 16442 s//\1/ 16443 q 16444 } 16445 s/.*/./; q'` 16446 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16447 # echo "creating $dirpart/$file" 16448 echo '# dummy' > "$dirpart/$file" 16449 done 16450 done 16451} 16452 ;; 16453 "libtool":C) 16454 16455 # See if we are running on zsh, and set the options which allow our 16456 # commands through without removal of \ escapes. 16457 if test -n "${ZSH_VERSION+set}" ; then 16458 setopt NO_GLOB_SUBST 16459 fi 16460 16461 cfgfile="${ofile}T" 16462 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16463 $RM "$cfgfile" 16464 16465 cat <<_LT_EOF >> "$cfgfile" 16466#! $SHELL 16467 16468# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16469# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16470# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16471# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16472# 16473# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16474# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16475# Written by Gordon Matzigkeit, 1996 16476# 16477# This file is part of GNU Libtool. 16478# 16479# GNU Libtool is free software; you can redistribute it and/or 16480# modify it under the terms of the GNU General Public License as 16481# published by the Free Software Foundation; either version 2 of 16482# the License, or (at your option) any later version. 16483# 16484# As a special exception to the GNU General Public License, 16485# if you distribute this file as part of a program or library that 16486# is built using GNU Libtool, you may include this file under the 16487# same distribution terms that you use for the rest of that program. 16488# 16489# GNU Libtool is distributed in the hope that it will be useful, 16490# but WITHOUT ANY WARRANTY; without even the implied warranty of 16491# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16492# GNU General Public License for more details. 16493# 16494# You should have received a copy of the GNU General Public License 16495# along with GNU Libtool; see the file COPYING. If not, a copy 16496# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16497# obtained by writing to the Free Software Foundation, Inc., 16498# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16499 16500 16501# The names of the tagged configurations supported by this script. 16502available_tags="CXX " 16503 16504# ### BEGIN LIBTOOL CONFIG 16505 16506# Which release of libtool.m4 was used? 16507macro_version=$macro_version 16508macro_revision=$macro_revision 16509 16510# Whether or not to build shared libraries. 16511build_libtool_libs=$enable_shared 16512 16513# Whether or not to build static libraries. 16514build_old_libs=$enable_static 16515 16516# What type of objects to build. 16517pic_mode=$pic_mode 16518 16519# Whether or not to optimize for fast installation. 16520fast_install=$enable_fast_install 16521 16522# Shell to use when invoking shell scripts. 16523SHELL=$lt_SHELL 16524 16525# An echo program that protects backslashes. 16526ECHO=$lt_ECHO 16527 16528# The host system. 16529host_alias=$host_alias 16530host=$host 16531host_os=$host_os 16532 16533# The build system. 16534build_alias=$build_alias 16535build=$build 16536build_os=$build_os 16537 16538# A sed program that does not truncate output. 16539SED=$lt_SED 16540 16541# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16542Xsed="\$SED -e 1s/^X//" 16543 16544# A grep program that handles long lines. 16545GREP=$lt_GREP 16546 16547# An ERE matcher. 16548EGREP=$lt_EGREP 16549 16550# A literal string matcher. 16551FGREP=$lt_FGREP 16552 16553# A BSD- or MS-compatible name lister. 16554NM=$lt_NM 16555 16556# Whether we need soft or hard links. 16557LN_S=$lt_LN_S 16558 16559# What is the maximum length of a command? 16560max_cmd_len=$max_cmd_len 16561 16562# Object file suffix (normally "o"). 16563objext=$ac_objext 16564 16565# Executable file suffix (normally ""). 16566exeext=$exeext 16567 16568# whether the shell understands "unset". 16569lt_unset=$lt_unset 16570 16571# turn spaces into newlines. 16572SP2NL=$lt_lt_SP2NL 16573 16574# turn newlines into spaces. 16575NL2SP=$lt_lt_NL2SP 16576 16577# An object symbol dumper. 16578OBJDUMP=$lt_OBJDUMP 16579 16580# Method to check whether dependent libraries are shared objects. 16581deplibs_check_method=$lt_deplibs_check_method 16582 16583# Command to use when deplibs_check_method == "file_magic". 16584file_magic_cmd=$lt_file_magic_cmd 16585 16586# The archiver. 16587AR=$lt_AR 16588AR_FLAGS=$lt_AR_FLAGS 16589 16590# A symbol stripping program. 16591STRIP=$lt_STRIP 16592 16593# Commands used to install an old-style archive. 16594RANLIB=$lt_RANLIB 16595old_postinstall_cmds=$lt_old_postinstall_cmds 16596old_postuninstall_cmds=$lt_old_postuninstall_cmds 16597 16598# Whether to use a lock for old archive extraction. 16599lock_old_archive_extraction=$lock_old_archive_extraction 16600 16601# A C compiler. 16602LTCC=$lt_CC 16603 16604# LTCC compiler flags. 16605LTCFLAGS=$lt_CFLAGS 16606 16607# Take the output of nm and produce a listing of raw symbols and C names. 16608global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16609 16610# Transform the output of nm in a proper C declaration. 16611global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16612 16613# Transform the output of nm in a C name address pair. 16614global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16615 16616# Transform the output of nm in a C name address pair when lib prefix is needed. 16617global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16618 16619# The name of the directory that contains temporary libtool files. 16620objdir=$objdir 16621 16622# Used to examine libraries when file_magic_cmd begins with "file". 16623MAGIC_CMD=$MAGIC_CMD 16624 16625# Must we lock files when doing compilation? 16626need_locks=$lt_need_locks 16627 16628# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16629DSYMUTIL=$lt_DSYMUTIL 16630 16631# Tool to change global to local symbols on Mac OS X. 16632NMEDIT=$lt_NMEDIT 16633 16634# Tool to manipulate fat objects and archives on Mac OS X. 16635LIPO=$lt_LIPO 16636 16637# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16638OTOOL=$lt_OTOOL 16639 16640# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16641OTOOL64=$lt_OTOOL64 16642 16643# Old archive suffix (normally "a"). 16644libext=$libext 16645 16646# Shared library suffix (normally ".so"). 16647shrext_cmds=$lt_shrext_cmds 16648 16649# The commands to extract the exported symbol list from a shared archive. 16650extract_expsyms_cmds=$lt_extract_expsyms_cmds 16651 16652# Variables whose values should be saved in libtool wrapper scripts and 16653# restored at link time. 16654variables_saved_for_relink=$lt_variables_saved_for_relink 16655 16656# Do we need the "lib" prefix for modules? 16657need_lib_prefix=$need_lib_prefix 16658 16659# Do we need a version for libraries? 16660need_version=$need_version 16661 16662# Library versioning type. 16663version_type=$version_type 16664 16665# Shared library runtime path variable. 16666runpath_var=$runpath_var 16667 16668# Shared library path variable. 16669shlibpath_var=$shlibpath_var 16670 16671# Is shlibpath searched before the hard-coded library search path? 16672shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16673 16674# Format of library name prefix. 16675libname_spec=$lt_libname_spec 16676 16677# List of archive names. First name is the real one, the rest are links. 16678# The last name is the one that the linker finds with -lNAME 16679library_names_spec=$lt_library_names_spec 16680 16681# The coded name of the library, if different from the real name. 16682soname_spec=$lt_soname_spec 16683 16684# Permission mode override for installation of shared libraries. 16685install_override_mode=$lt_install_override_mode 16686 16687# Command to use after installation of a shared archive. 16688postinstall_cmds=$lt_postinstall_cmds 16689 16690# Command to use after uninstallation of a shared archive. 16691postuninstall_cmds=$lt_postuninstall_cmds 16692 16693# Commands used to finish a libtool library installation in a directory. 16694finish_cmds=$lt_finish_cmds 16695 16696# As "finish_cmds", except a single script fragment to be evaled but 16697# not shown. 16698finish_eval=$lt_finish_eval 16699 16700# Whether we should hardcode library paths into libraries. 16701hardcode_into_libs=$hardcode_into_libs 16702 16703# Compile-time system search path for libraries. 16704sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16705 16706# Run-time system search path for libraries. 16707sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16708 16709# Whether dlopen is supported. 16710dlopen_support=$enable_dlopen 16711 16712# Whether dlopen of programs is supported. 16713dlopen_self=$enable_dlopen_self 16714 16715# Whether dlopen of statically linked programs is supported. 16716dlopen_self_static=$enable_dlopen_self_static 16717 16718# Commands to strip libraries. 16719old_striplib=$lt_old_striplib 16720striplib=$lt_striplib 16721 16722 16723# The linker used to build libraries. 16724LD=$lt_LD 16725 16726# How to create reloadable object files. 16727reload_flag=$lt_reload_flag 16728reload_cmds=$lt_reload_cmds 16729 16730# Commands used to build an old-style archive. 16731old_archive_cmds=$lt_old_archive_cmds 16732 16733# A language specific compiler. 16734CC=$lt_compiler 16735 16736# Is the compiler the GNU compiler? 16737with_gcc=$GCC 16738 16739# Compiler flag to turn off builtin functions. 16740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16741 16742# How to pass a linker flag through the compiler. 16743wl=$lt_lt_prog_compiler_wl 16744 16745# Additional compiler flags for building library objects. 16746pic_flag=$lt_lt_prog_compiler_pic 16747 16748# Compiler flag to prevent dynamic linking. 16749link_static_flag=$lt_lt_prog_compiler_static 16750 16751# Does compiler simultaneously support -c and -o options? 16752compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16753 16754# Whether or not to add -lc for building shared libraries. 16755build_libtool_need_lc=$archive_cmds_need_lc 16756 16757# Whether or not to disallow shared libs when runtime libs are static. 16758allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16759 16760# Compiler flag to allow reflexive dlopens. 16761export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16762 16763# Compiler flag to generate shared objects directly from archives. 16764whole_archive_flag_spec=$lt_whole_archive_flag_spec 16765 16766# Whether the compiler copes with passing no objects directly. 16767compiler_needs_object=$lt_compiler_needs_object 16768 16769# Create an old-style archive from a shared archive. 16770old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16771 16772# Create a temporary old-style archive to link instead of a shared archive. 16773old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16774 16775# Commands used to build a shared archive. 16776archive_cmds=$lt_archive_cmds 16777archive_expsym_cmds=$lt_archive_expsym_cmds 16778 16779# Commands used to build a loadable module if different from building 16780# a shared archive. 16781module_cmds=$lt_module_cmds 16782module_expsym_cmds=$lt_module_expsym_cmds 16783 16784# Whether we are building with GNU ld or not. 16785with_gnu_ld=$lt_with_gnu_ld 16786 16787# Flag that allows shared libraries with undefined symbols to be built. 16788allow_undefined_flag=$lt_allow_undefined_flag 16789 16790# Flag that enforces no undefined symbols. 16791no_undefined_flag=$lt_no_undefined_flag 16792 16793# Flag to hardcode \$libdir into a binary during linking. 16794# This must work even if \$libdir does not exist 16795hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16796 16797# If ld is used when linking, flag to hardcode \$libdir into a binary 16798# during linking. This must work even if \$libdir does not exist. 16799hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16800 16801# Whether we need a single "-rpath" flag with a separated argument. 16802hardcode_libdir_separator=$lt_hardcode_libdir_separator 16803 16804# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16805# DIR into the resulting binary. 16806hardcode_direct=$hardcode_direct 16807 16808# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16809# DIR into the resulting binary and the resulting library dependency is 16810# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16811# library is relocated. 16812hardcode_direct_absolute=$hardcode_direct_absolute 16813 16814# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16815# into the resulting binary. 16816hardcode_minus_L=$hardcode_minus_L 16817 16818# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16819# into the resulting binary. 16820hardcode_shlibpath_var=$hardcode_shlibpath_var 16821 16822# Set to "yes" if building a shared library automatically hardcodes DIR 16823# into the library and all subsequent libraries and executables linked 16824# against it. 16825hardcode_automatic=$hardcode_automatic 16826 16827# Set to yes if linker adds runtime paths of dependent libraries 16828# to runtime path list. 16829inherit_rpath=$inherit_rpath 16830 16831# Whether libtool must link a program against all its dependency libraries. 16832link_all_deplibs=$link_all_deplibs 16833 16834# Fix the shell variable \$srcfile for the compiler. 16835fix_srcfile_path=$lt_fix_srcfile_path 16836 16837# Set to "yes" if exported symbols are required. 16838always_export_symbols=$always_export_symbols 16839 16840# The commands to list exported symbols. 16841export_symbols_cmds=$lt_export_symbols_cmds 16842 16843# Symbols that should not be listed in the preloaded symbols. 16844exclude_expsyms=$lt_exclude_expsyms 16845 16846# Symbols that must always be exported. 16847include_expsyms=$lt_include_expsyms 16848 16849# Commands necessary for linking programs (against libraries) with templates. 16850prelink_cmds=$lt_prelink_cmds 16851 16852# Specify filename containing input files. 16853file_list_spec=$lt_file_list_spec 16854 16855# How to hardcode a shared library path into an executable. 16856hardcode_action=$hardcode_action 16857 16858# The directories searched by this compiler when creating a shared library. 16859compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 16860 16861# Dependencies to place before and after the objects being linked to 16862# create a shared library. 16863predep_objects=$lt_predep_objects 16864postdep_objects=$lt_postdep_objects 16865predeps=$lt_predeps 16866postdeps=$lt_postdeps 16867 16868# The library search path used internally by the compiler when linking 16869# a shared library. 16870compiler_lib_search_path=$lt_compiler_lib_search_path 16871 16872# ### END LIBTOOL CONFIG 16873 16874_LT_EOF 16875 16876 case $host_os in 16877 aix3*) 16878 cat <<\_LT_EOF >> "$cfgfile" 16879# AIX sometimes has problems with the GCC collect2 program. For some 16880# reason, if we set the COLLECT_NAMES environment variable, the problems 16881# vanish in a puff of smoke. 16882if test "X${COLLECT_NAMES+set}" != Xset; then 16883 COLLECT_NAMES= 16884 export COLLECT_NAMES 16885fi 16886_LT_EOF 16887 ;; 16888 esac 16889 16890 16891ltmain="$ac_aux_dir/ltmain.sh" 16892 16893 16894 # We use sed instead of cat because bash on DJGPP gets confused if 16895 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16896 # text mode, it properly converts lines to CR/LF. This bash problem 16897 # is reportedly fixed, but why not run on old versions too? 16898 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16899 || (rm -f "$cfgfile"; exit 1) 16900 16901 case $xsi_shell in 16902 yes) 16903 cat << \_LT_EOF >> "$cfgfile" 16904 16905# func_dirname file append nondir_replacement 16906# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16907# otherwise set result to NONDIR_REPLACEMENT. 16908func_dirname () 16909{ 16910 case ${1} in 16911 */*) func_dirname_result="${1%/*}${2}" ;; 16912 * ) func_dirname_result="${3}" ;; 16913 esac 16914} 16915 16916# func_basename file 16917func_basename () 16918{ 16919 func_basename_result="${1##*/}" 16920} 16921 16922# func_dirname_and_basename file append nondir_replacement 16923# perform func_basename and func_dirname in a single function 16924# call: 16925# dirname: Compute the dirname of FILE. If nonempty, 16926# add APPEND to the result, otherwise set result 16927# to NONDIR_REPLACEMENT. 16928# value returned in "$func_dirname_result" 16929# basename: Compute filename of FILE. 16930# value retuned in "$func_basename_result" 16931# Implementation must be kept synchronized with func_dirname 16932# and func_basename. For efficiency, we do not delegate to 16933# those functions but instead duplicate the functionality here. 16934func_dirname_and_basename () 16935{ 16936 case ${1} in 16937 */*) func_dirname_result="${1%/*}${2}" ;; 16938 * ) func_dirname_result="${3}" ;; 16939 esac 16940 func_basename_result="${1##*/}" 16941} 16942 16943# func_stripname prefix suffix name 16944# strip PREFIX and SUFFIX off of NAME. 16945# PREFIX and SUFFIX must not contain globbing or regex special 16946# characters, hashes, percent signs, but SUFFIX may contain a leading 16947# dot (in which case that matches only a dot). 16948func_stripname () 16949{ 16950 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16951 # positional parameters, so assign one to ordinary parameter first. 16952 func_stripname_result=${3} 16953 func_stripname_result=${func_stripname_result#"${1}"} 16954 func_stripname_result=${func_stripname_result%"${2}"} 16955} 16956 16957# func_opt_split 16958func_opt_split () 16959{ 16960 func_opt_split_opt=${1%%=*} 16961 func_opt_split_arg=${1#*=} 16962} 16963 16964# func_lo2o object 16965func_lo2o () 16966{ 16967 case ${1} in 16968 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16969 *) func_lo2o_result=${1} ;; 16970 esac 16971} 16972 16973# func_xform libobj-or-source 16974func_xform () 16975{ 16976 func_xform_result=${1%.*}.lo 16977} 16978 16979# func_arith arithmetic-term... 16980func_arith () 16981{ 16982 func_arith_result=$(( $* )) 16983} 16984 16985# func_len string 16986# STRING may not start with a hyphen. 16987func_len () 16988{ 16989 func_len_result=${#1} 16990} 16991 16992_LT_EOF 16993 ;; 16994 *) # Bourne compatible functions. 16995 cat << \_LT_EOF >> "$cfgfile" 16996 16997# func_dirname file append nondir_replacement 16998# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16999# otherwise set result to NONDIR_REPLACEMENT. 17000func_dirname () 17001{ 17002 # Extract subdirectory from the argument. 17003 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17004 if test "X$func_dirname_result" = "X${1}"; then 17005 func_dirname_result="${3}" 17006 else 17007 func_dirname_result="$func_dirname_result${2}" 17008 fi 17009} 17010 17011# func_basename file 17012func_basename () 17013{ 17014 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17015} 17016 17017 17018# func_stripname prefix suffix name 17019# strip PREFIX and SUFFIX off of NAME. 17020# PREFIX and SUFFIX must not contain globbing or regex special 17021# characters, hashes, percent signs, but SUFFIX may contain a leading 17022# dot (in which case that matches only a dot). 17023# func_strip_suffix prefix name 17024func_stripname () 17025{ 17026 case ${2} in 17027 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17028 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17029 esac 17030} 17031 17032# sed scripts: 17033my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17034my_sed_long_arg='1s/^-[^=]*=//' 17035 17036# func_opt_split 17037func_opt_split () 17038{ 17039 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17040 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17041} 17042 17043# func_lo2o object 17044func_lo2o () 17045{ 17046 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17047} 17048 17049# func_xform libobj-or-source 17050func_xform () 17051{ 17052 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17053} 17054 17055# func_arith arithmetic-term... 17056func_arith () 17057{ 17058 func_arith_result=`expr "$@"` 17059} 17060 17061# func_len string 17062# STRING may not start with a hyphen. 17063func_len () 17064{ 17065 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17066} 17067 17068_LT_EOF 17069esac 17070 17071case $lt_shell_append in 17072 yes) 17073 cat << \_LT_EOF >> "$cfgfile" 17074 17075# func_append var value 17076# Append VALUE to the end of shell variable VAR. 17077func_append () 17078{ 17079 eval "$1+=\$2" 17080} 17081_LT_EOF 17082 ;; 17083 *) 17084 cat << \_LT_EOF >> "$cfgfile" 17085 17086# func_append var value 17087# Append VALUE to the end of shell variable VAR. 17088func_append () 17089{ 17090 eval "$1=\$$1\$2" 17091} 17092 17093_LT_EOF 17094 ;; 17095 esac 17096 17097 17098 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17099 || (rm -f "$cfgfile"; exit 1) 17100 17101 mv -f "$cfgfile" "$ofile" || 17102 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17103 chmod +x "$ofile" 17104 17105 17106 cat <<_LT_EOF >> "$ofile" 17107 17108# ### BEGIN LIBTOOL TAG CONFIG: CXX 17109 17110# The linker used to build libraries. 17111LD=$lt_LD_CXX 17112 17113# How to create reloadable object files. 17114reload_flag=$lt_reload_flag_CXX 17115reload_cmds=$lt_reload_cmds_CXX 17116 17117# Commands used to build an old-style archive. 17118old_archive_cmds=$lt_old_archive_cmds_CXX 17119 17120# A language specific compiler. 17121CC=$lt_compiler_CXX 17122 17123# Is the compiler the GNU compiler? 17124with_gcc=$GCC_CXX 17125 17126# Compiler flag to turn off builtin functions. 17127no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17128 17129# How to pass a linker flag through the compiler. 17130wl=$lt_lt_prog_compiler_wl_CXX 17131 17132# Additional compiler flags for building library objects. 17133pic_flag=$lt_lt_prog_compiler_pic_CXX 17134 17135# Compiler flag to prevent dynamic linking. 17136link_static_flag=$lt_lt_prog_compiler_static_CXX 17137 17138# Does compiler simultaneously support -c and -o options? 17139compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17140 17141# Whether or not to add -lc for building shared libraries. 17142build_libtool_need_lc=$archive_cmds_need_lc_CXX 17143 17144# Whether or not to disallow shared libs when runtime libs are static. 17145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17146 17147# Compiler flag to allow reflexive dlopens. 17148export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17149 17150# Compiler flag to generate shared objects directly from archives. 17151whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17152 17153# Whether the compiler copes with passing no objects directly. 17154compiler_needs_object=$lt_compiler_needs_object_CXX 17155 17156# Create an old-style archive from a shared archive. 17157old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17158 17159# Create a temporary old-style archive to link instead of a shared archive. 17160old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17161 17162# Commands used to build a shared archive. 17163archive_cmds=$lt_archive_cmds_CXX 17164archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17165 17166# Commands used to build a loadable module if different from building 17167# a shared archive. 17168module_cmds=$lt_module_cmds_CXX 17169module_expsym_cmds=$lt_module_expsym_cmds_CXX 17170 17171# Whether we are building with GNU ld or not. 17172with_gnu_ld=$lt_with_gnu_ld_CXX 17173 17174# Flag that allows shared libraries with undefined symbols to be built. 17175allow_undefined_flag=$lt_allow_undefined_flag_CXX 17176 17177# Flag that enforces no undefined symbols. 17178no_undefined_flag=$lt_no_undefined_flag_CXX 17179 17180# Flag to hardcode \$libdir into a binary during linking. 17181# This must work even if \$libdir does not exist 17182hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17183 17184# If ld is used when linking, flag to hardcode \$libdir into a binary 17185# during linking. This must work even if \$libdir does not exist. 17186hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17187 17188# Whether we need a single "-rpath" flag with a separated argument. 17189hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17190 17191# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17192# DIR into the resulting binary. 17193hardcode_direct=$hardcode_direct_CXX 17194 17195# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17196# DIR into the resulting binary and the resulting library dependency is 17197# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17198# library is relocated. 17199hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17200 17201# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17202# into the resulting binary. 17203hardcode_minus_L=$hardcode_minus_L_CXX 17204 17205# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17206# into the resulting binary. 17207hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17208 17209# Set to "yes" if building a shared library automatically hardcodes DIR 17210# into the library and all subsequent libraries and executables linked 17211# against it. 17212hardcode_automatic=$hardcode_automatic_CXX 17213 17214# Set to yes if linker adds runtime paths of dependent libraries 17215# to runtime path list. 17216inherit_rpath=$inherit_rpath_CXX 17217 17218# Whether libtool must link a program against all its dependency libraries. 17219link_all_deplibs=$link_all_deplibs_CXX 17220 17221# Fix the shell variable \$srcfile for the compiler. 17222fix_srcfile_path=$lt_fix_srcfile_path_CXX 17223 17224# Set to "yes" if exported symbols are required. 17225always_export_symbols=$always_export_symbols_CXX 17226 17227# The commands to list exported symbols. 17228export_symbols_cmds=$lt_export_symbols_cmds_CXX 17229 17230# Symbols that should not be listed in the preloaded symbols. 17231exclude_expsyms=$lt_exclude_expsyms_CXX 17232 17233# Symbols that must always be exported. 17234include_expsyms=$lt_include_expsyms_CXX 17235 17236# Commands necessary for linking programs (against libraries) with templates. 17237prelink_cmds=$lt_prelink_cmds_CXX 17238 17239# Specify filename containing input files. 17240file_list_spec=$lt_file_list_spec_CXX 17241 17242# How to hardcode a shared library path into an executable. 17243hardcode_action=$hardcode_action_CXX 17244 17245# The directories searched by this compiler when creating a shared library. 17246compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17247 17248# Dependencies to place before and after the objects being linked to 17249# create a shared library. 17250predep_objects=$lt_predep_objects_CXX 17251postdep_objects=$lt_postdep_objects_CXX 17252predeps=$lt_predeps_CXX 17253postdeps=$lt_postdeps_CXX 17254 17255# The library search path used internally by the compiler when linking 17256# a shared library. 17257compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17258 17259# ### END LIBTOOL TAG CONFIG: CXX 17260_LT_EOF 17261 17262 ;; 17263 17264 esac 17265done # for ac_tag 17266 17267 17268as_fn_exit 0 17269_ACEOF 17270ac_clean_files=$ac_clean_files_save 17271 17272test $ac_write_fail = 0 || 17273 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17274 17275 17276# configure is writing to config.log, and then calls config.status. 17277# config.status does its own redirection, appending to config.log. 17278# Unfortunately, on DOS this fails, as config.log is still kept open 17279# by configure, so config.status won't be able to write to it; its 17280# output is simply discarded. So we exec the FD to /dev/null, 17281# effectively closing config.log, so it can be properly (re)opened and 17282# appended to by config.status. When coming back to configure, we 17283# need to make the FD available again. 17284if test "$no_create" != yes; then 17285 ac_cs_success=: 17286 ac_config_status_args= 17287 test "$silent" = yes && 17288 ac_config_status_args="$ac_config_status_args --quiet" 17289 exec 5>/dev/null 17290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17291 exec 5>>config.log 17292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17293 # would make configure fail if this is the last instruction. 17294 $ac_cs_success || as_fn_exit 1 17295fi 17296if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17298$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17299fi 17300 17301