1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for isl-interface 0. 4# 5# Report bugs to <isl-development@googlegroups.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: isl-development@googlegroups.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='isl-interface' 592PACKAGE_TARNAME='isl-interface' 593PACKAGE_VERSION='0' 594PACKAGE_STRING='isl-interface 0' 595PACKAGE_BUGREPORT='isl-development@googlegroups.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 638CONFIG_STATUS_DEPENDENCIES 639XCODE_SELECT 640LLVM_CONFIG 641CLANG_LIBS 642CLANG_RFLAG 643CLANG_LDFLAGS 644CLANG_CXXFLAGS 645LT_SYS_LIBRARY_PATH 646OTOOL64 647OTOOL 648LIPO 649NMEDIT 650DSYMUTIL 651MANIFEST_TOOL 652RANLIB 653ac_ct_AR 654AR 655DLLTOOL 656OBJDUMP 657LN_S 658NM 659ac_ct_DUMPBIN 660DUMPBIN 661LD 662FGREP 663EGREP 664GREP 665SED 666LIBTOOL 667CXXCPPFLAGS_FOR_BUILD 668CXXFLAGS_FOR_BUILD 669CXXCPP_FOR_BUILD 670ac_ct_CXX_FOR_BUILD 671CXX_FOR_BUILD 672host_os 673host_vendor 674host_cpu 675host 676CXXCPP 677LDFLAGS_FOR_BUILD 678CPPFLAGS_FOR_BUILD 679CFLAGS_FOR_BUILD 680BUILD_OBJEXT 681BUILD_EXEEXT 682CPP_FOR_BUILD 683ac_ct_CC_FOR_BUILD 684CC_FOR_BUILD 685build_os 686build_vendor 687build_cpu 688build 689CPP 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693ac_ct_CC 694CFLAGS 695CC 696am__fastdepCXX_FALSE 697am__fastdepCXX_TRUE 698CXXDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__quote 704am__include 705DEPDIR 706OBJEXT 707EXEEXT 708ac_ct_CXX 709CPPFLAGS 710LDFLAGS 711CXXFLAGS 712CXX 713AM_BACKSLASH 714AM_DEFAULT_VERBOSITY 715AM_DEFAULT_V 716AM_V 717am__untar 718am__tar 719AMTAR 720am__leading_dot 721SET_MAKE 722AWK 723mkdir_p 724MKDIR_P 725INSTALL_STRIP_PROGRAM 726STRIP 727install_sh 728MAKEINFO 729AUTOHEADER 730AUTOMAKE 731AUTOCONF 732ACLOCAL 733VERSION 734PACKAGE 735CYGPATH_W 736am__isrc 737INSTALL_DATA 738INSTALL_SCRIPT 739INSTALL_PROGRAM 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759runstatedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782enable_silent_rules 783enable_dependency_tracking 784enable_shared 785enable_static 786with_pic 787enable_fast_install 788with_aix_soname 789with_gnu_ld 790with_sysroot 791enable_libtool_lock 792' 793 ac_precious_vars='build_alias 794host_alias 795target_alias 796CXX 797CXXFLAGS 798LDFLAGS 799LIBS 800CPPFLAGS 801CCC 802CC 803CFLAGS 804CPP 805CXXCPP 806LT_SYS_LIBRARY_PATH' 807 808 809# Initialize some variables set by options. 810ac_init_help= 811ac_init_version=false 812ac_unrecognized_opts= 813ac_unrecognized_sep= 814# The variables have the same names as the options, with 815# dashes changed to underlines. 816cache_file=/dev/null 817exec_prefix=NONE 818no_create= 819no_recursion= 820prefix=NONE 821program_prefix=NONE 822program_suffix=NONE 823program_transform_name=s,x,x, 824silent= 825site= 826srcdir= 827verbose= 828x_includes=NONE 829x_libraries=NONE 830 831# Installation directory options. 832# These are left unexpanded so users can "make install exec_prefix=/foo" 833# and all the variables that are supposed to be based on exec_prefix 834# by default will actually change. 835# Use braces instead of parens because sh, perl, etc. also accept them. 836# (The list follows the same order as the GNU Coding Standards.) 837bindir='${exec_prefix}/bin' 838sbindir='${exec_prefix}/sbin' 839libexecdir='${exec_prefix}/libexec' 840datarootdir='${prefix}/share' 841datadir='${datarootdir}' 842sysconfdir='${prefix}/etc' 843sharedstatedir='${prefix}/com' 844localstatedir='${prefix}/var' 845runstatedir='${localstatedir}/run' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *=) ac_optarg= ;; 872 *) ac_optarg=yes ;; 873 esac 874 875 # Accept the important Cygnus configure options, so we can diagnose typos. 876 877 case $ac_dashdash$ac_option in 878 --) 879 ac_dashdash=yes ;; 880 881 -bindir | --bindir | --bindi | --bind | --bin | --bi) 882 ac_prev=bindir ;; 883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 884 bindir=$ac_optarg ;; 885 886 -build | --build | --buil | --bui | --bu) 887 ac_prev=build_alias ;; 888 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 889 build_alias=$ac_optarg ;; 890 891 -cache-file | --cache-file | --cache-fil | --cache-fi \ 892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 893 ac_prev=cache_file ;; 894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 896 cache_file=$ac_optarg ;; 897 898 --config-cache | -C) 899 cache_file=config.cache ;; 900 901 -datadir | --datadir | --datadi | --datad) 902 ac_prev=datadir ;; 903 -datadir=* | --datadir=* | --datadi=* | --datad=*) 904 datadir=$ac_optarg ;; 905 906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 907 | --dataroo | --dataro | --datar) 908 ac_prev=datarootdir ;; 909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 911 datarootdir=$ac_optarg ;; 912 913 -disable-* | --disable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=no ;; 928 929 -docdir | --docdir | --docdi | --doc | --do) 930 ac_prev=docdir ;; 931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 932 docdir=$ac_optarg ;; 933 934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 935 ac_prev=dvidir ;; 936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 937 dvidir=$ac_optarg ;; 938 939 -enable-* | --enable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=\$ac_optarg ;; 954 955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 957 | --exec | --exe | --ex) 958 ac_prev=exec_prefix ;; 959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 961 | --exec=* | --exe=* | --ex=*) 962 exec_prefix=$ac_optarg ;; 963 964 -gas | --gas | --ga | --g) 965 # Obsolete; use --with-gas. 966 with_gas=yes ;; 967 968 -help | --help | --hel | --he | -h) 969 ac_init_help=long ;; 970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 971 ac_init_help=recursive ;; 972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 973 ac_init_help=short ;; 974 975 -host | --host | --hos | --ho) 976 ac_prev=host_alias ;; 977 -host=* | --host=* | --hos=* | --ho=*) 978 host_alias=$ac_optarg ;; 979 980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 981 ac_prev=htmldir ;; 982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 983 | --ht=*) 984 htmldir=$ac_optarg ;; 985 986 -includedir | --includedir | --includedi | --included | --include \ 987 | --includ | --inclu | --incl | --inc) 988 ac_prev=includedir ;; 989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 990 | --includ=* | --inclu=* | --incl=* | --inc=*) 991 includedir=$ac_optarg ;; 992 993 -infodir | --infodir | --infodi | --infod | --info | --inf) 994 ac_prev=infodir ;; 995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 996 infodir=$ac_optarg ;; 997 998 -libdir | --libdir | --libdi | --libd) 999 ac_prev=libdir ;; 1000 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1001 libdir=$ac_optarg ;; 1002 1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1004 | --libexe | --libex | --libe) 1005 ac_prev=libexecdir ;; 1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1007 | --libexe=* | --libex=* | --libe=*) 1008 libexecdir=$ac_optarg ;; 1009 1010 -localedir | --localedir | --localedi | --localed | --locale) 1011 ac_prev=localedir ;; 1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1013 localedir=$ac_optarg ;; 1014 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1016 | --localstate | --localstat | --localsta | --localst | --locals) 1017 ac_prev=localstatedir ;; 1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1020 localstatedir=$ac_optarg ;; 1021 1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1023 ac_prev=mandir ;; 1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1025 mandir=$ac_optarg ;; 1026 1027 -nfp | --nfp | --nf) 1028 # Obsolete; use --without-fp. 1029 with_fp=no ;; 1030 1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1032 | --no-cr | --no-c | -n) 1033 no_create=yes ;; 1034 1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1037 no_recursion=yes ;; 1038 1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1041 | --oldin | --oldi | --old | --ol | --o) 1042 ac_prev=oldincludedir ;; 1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1046 oldincludedir=$ac_optarg ;; 1047 1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1049 ac_prev=prefix ;; 1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1051 prefix=$ac_optarg ;; 1052 1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1054 | --program-pre | --program-pr | --program-p) 1055 ac_prev=program_prefix ;; 1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1058 program_prefix=$ac_optarg ;; 1059 1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1061 | --program-suf | --program-su | --program-s) 1062 ac_prev=program_suffix ;; 1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1065 program_suffix=$ac_optarg ;; 1066 1067 -program-transform-name | --program-transform-name \ 1068 | --program-transform-nam | --program-transform-na \ 1069 | --program-transform-n | --program-transform- \ 1070 | --program-transform | --program-transfor \ 1071 | --program-transfo | --program-transf \ 1072 | --program-trans | --program-tran \ 1073 | --progr-tra | --program-tr | --program-t) 1074 ac_prev=program_transform_name ;; 1075 -program-transform-name=* | --program-transform-name=* \ 1076 | --program-transform-nam=* | --program-transform-na=* \ 1077 | --program-transform-n=* | --program-transform-=* \ 1078 | --program-transform=* | --program-transfor=* \ 1079 | --program-transfo=* | --program-transf=* \ 1080 | --program-trans=* | --program-tran=* \ 1081 | --progr-tra=* | --program-tr=* | --program-t=*) 1082 program_transform_name=$ac_optarg ;; 1083 1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1085 ac_prev=pdfdir ;; 1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1087 pdfdir=$ac_optarg ;; 1088 1089 -psdir | --psdir | --psdi | --psd | --ps) 1090 ac_prev=psdir ;; 1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1092 psdir=$ac_optarg ;; 1093 1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1095 | -silent | --silent | --silen | --sile | --sil) 1096 silent=yes ;; 1097 1098 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1099 | --runstate | --runstat | --runsta | --runst | --runs \ 1100 | --run | --ru | --r) 1101 ac_prev=runstatedir ;; 1102 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1103 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1104 | --run=* | --ru=* | --r=*) 1105 runstatedir=$ac_optarg ;; 1106 1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1108 ac_prev=sbindir ;; 1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1110 | --sbi=* | --sb=*) 1111 sbindir=$ac_optarg ;; 1112 1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1115 | --sharedst | --shareds | --shared | --share | --shar \ 1116 | --sha | --sh) 1117 ac_prev=sharedstatedir ;; 1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1121 | --sha=* | --sh=*) 1122 sharedstatedir=$ac_optarg ;; 1123 1124 -site | --site | --sit) 1125 ac_prev=site ;; 1126 -site=* | --site=* | --sit=*) 1127 site=$ac_optarg ;; 1128 1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1130 ac_prev=srcdir ;; 1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1132 srcdir=$ac_optarg ;; 1133 1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1135 | --syscon | --sysco | --sysc | --sys | --sy) 1136 ac_prev=sysconfdir ;; 1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1139 sysconfdir=$ac_optarg ;; 1140 1141 -target | --target | --targe | --targ | --tar | --ta | --t) 1142 ac_prev=target_alias ;; 1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1144 target_alias=$ac_optarg ;; 1145 1146 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1147 verbose=yes ;; 1148 1149 -version | --version | --versio | --versi | --vers | -V) 1150 ac_init_version=: ;; 1151 1152 -with-* | --with-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"with_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=\$ac_optarg ;; 1167 1168 -without-* | --without-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid package name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"with_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval with_$ac_useropt=no ;; 1183 1184 --x) 1185 # Obsolete; use --with-x. 1186 with_x=yes ;; 1187 1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1189 | --x-incl | --x-inc | --x-in | --x-i) 1190 ac_prev=x_includes ;; 1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1193 x_includes=$ac_optarg ;; 1194 1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1197 ac_prev=x_libraries ;; 1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1200 x_libraries=$ac_optarg ;; 1201 1202 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1203Try \`$0 --help' for more information" 1204 ;; 1205 1206 *=*) 1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1208 # Reject names that are not valid shell variable names. 1209 case $ac_envvar in #( 1210 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1212 esac 1213 eval $ac_envvar=\$ac_optarg 1214 export $ac_envvar ;; 1215 1216 *) 1217 # FIXME: should be removed in autoconf 3.0. 1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1222 ;; 1223 1224 esac 1225done 1226 1227if test -n "$ac_prev"; then 1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1229 as_fn_error $? "missing argument to $ac_option" 1230fi 1231 1232if test -n "$ac_unrecognized_opts"; then 1233 case $enable_option_checking in 1234 no) ;; 1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1237 esac 1238fi 1239 1240# Check all directory arguments for consistency. 1241for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1242 datadir sysconfdir sharedstatedir localstatedir includedir \ 1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1244 libdir localedir mandir runstatedir 1245do 1246 eval ac_val=\$$ac_var 1247 # Remove trailing slashes. 1248 case $ac_val in 1249 */ ) 1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1251 eval $ac_var=\$ac_val;; 1252 esac 1253 # Be sure to have absolute directory names. 1254 case $ac_val in 1255 [\\/$]* | ?:[\\/]* ) continue;; 1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1257 esac 1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1259done 1260 1261# There might be people who depend on the old broken behavior: `$host' 1262# used to hold the argument of --host etc. 1263# FIXME: To remove some day. 1264build=$build_alias 1265host=$host_alias 1266target=$target_alias 1267 1268# FIXME: To remove some day. 1269if test "x$host_alias" != x; then 1270 if test "x$build_alias" = x; then 1271 cross_compiling=maybe 1272 elif test "x$build_alias" != "x$host_alias"; then 1273 cross_compiling=yes 1274 fi 1275fi 1276 1277ac_tool_prefix= 1278test -n "$host_alias" && ac_tool_prefix=$host_alias- 1279 1280test "$silent" = yes && exec 6>/dev/null 1281 1282 1283ac_pwd=`pwd` && test -n "$ac_pwd" && 1284ac_ls_di=`ls -di .` && 1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1286 as_fn_error $? "working directory cannot be determined" 1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1288 as_fn_error $? "pwd does not report name of working directory" 1289 1290 1291# Find the source files, if location was not specified. 1292if test -z "$srcdir"; then 1293 ac_srcdir_defaulted=yes 1294 # Try the directory containing this script, then the parent directory. 1295 ac_confdir=`$as_dirname -- "$as_myself" || 1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1297 X"$as_myself" : 'X\(//\)[^/]' \| \ 1298 X"$as_myself" : 'X\(//\)$' \| \ 1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1300$as_echo X"$as_myself" | 1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)[^/].*/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)$/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\).*/{ 1314 s//\1/ 1315 q 1316 } 1317 s/.*/./; q'` 1318 srcdir=$ac_confdir 1319 if test ! -r "$srcdir/$ac_unique_file"; then 1320 srcdir=.. 1321 fi 1322else 1323 ac_srcdir_defaulted=no 1324fi 1325if test ! -r "$srcdir/$ac_unique_file"; then 1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1328fi 1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1330ac_abs_confdir=`( 1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1332 pwd)` 1333# When building in place, set srcdir=. 1334if test "$ac_abs_confdir" = "$ac_pwd"; then 1335 srcdir=. 1336fi 1337# Remove unnecessary trailing slashes from srcdir. 1338# Double slashes in file names in object file debugging info 1339# mess up M-x gdb in Emacs. 1340case $srcdir in 1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1342esac 1343for ac_var in $ac_precious_vars; do 1344 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_env_${ac_var}_value=\$${ac_var} 1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1347 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1348done 1349 1350# 1351# Report the --help message. 1352# 1353if test "$ac_init_help" = "long"; then 1354 # Omit some internal or obsolete options to make the list less imposing. 1355 # This message is too long to be a string in the A/UX 3.1 sh. 1356 cat <<_ACEOF 1357\`configure' configures isl-interface 0 to adapt to many kinds of systems. 1358 1359Usage: $0 [OPTION]... [VAR=VALUE]... 1360 1361To assign environment variables (e.g., CC, CFLAGS...), specify them as 1362VAR=VALUE. See below for descriptions of some of the useful variables. 1363 1364Defaults for the options are specified in brackets. 1365 1366Configuration: 1367 -h, --help display this help and exit 1368 --help=short display options specific to this package 1369 --help=recursive display the short help of all the included packages 1370 -V, --version display version information and exit 1371 -q, --quiet, --silent do not print \`checking ...' messages 1372 --cache-file=FILE cache test results in FILE [disabled] 1373 -C, --config-cache alias for \`--cache-file=config.cache' 1374 -n, --no-create do not create output files 1375 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1376 1377Installation directories: 1378 --prefix=PREFIX install architecture-independent files in PREFIX 1379 [$ac_default_prefix] 1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1381 [PREFIX] 1382 1383By default, \`make install' will install all the files in 1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1385an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1386for instance \`--prefix=\$HOME'. 1387 1388For better control, use the options below. 1389 1390Fine tuning of the installation directories: 1391 --bindir=DIR user executables [EPREFIX/bin] 1392 --sbindir=DIR system admin executables [EPREFIX/sbin] 1393 --libexecdir=DIR program executables [EPREFIX/libexec] 1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1397 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1398 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --includedir=DIR C header files [PREFIX/include] 1400 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1403 --infodir=DIR info documentation [DATAROOTDIR/info] 1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1405 --mandir=DIR man documentation [DATAROOTDIR/man] 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/isl-interface] 1407 --htmldir=DIR html documentation [DOCDIR] 1408 --dvidir=DIR dvi documentation [DOCDIR] 1409 --pdfdir=DIR pdf documentation [DOCDIR] 1410 --psdir=DIR ps documentation [DOCDIR] 1411_ACEOF 1412 1413 cat <<\_ACEOF 1414 1415Program names: 1416 --program-prefix=PREFIX prepend PREFIX to installed program names 1417 --program-suffix=SUFFIX append SUFFIX to installed program names 1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1419 1420System types: 1421 --build=BUILD configure for building on BUILD [guessed] 1422 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1423_ACEOF 1424fi 1425 1426if test -n "$ac_init_help"; then 1427 case $ac_init_help in 1428 short | recursive ) echo "Configuration of isl-interface 0:";; 1429 esac 1430 cat <<\_ACEOF 1431 1432Optional Features: 1433 --disable-option-checking ignore unrecognized --enable/--with options 1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1436 --enable-silent-rules less verbose build output (undo: "make V=1") 1437 --disable-silent-rules verbose build output (undo: "make V=0") 1438 --enable-dependency-tracking 1439 do not reject slow dependency extractors 1440 --disable-dependency-tracking 1441 speeds up one-time build 1442 --enable-shared[=PKGS] build shared libraries [default=no] 1443 --enable-static[=PKGS] build static libraries [default=yes] 1444 --enable-fast-install[=PKGS] 1445 optimize for fast installation [default=yes] 1446 --disable-libtool-lock avoid locking (might break parallel builds) 1447 1448Optional Packages: 1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1451 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1452 both] 1453 --with-aix-soname=aix|svr4|both 1454 shared library versioning (aka "SONAME") variant to 1455 provide on AIX, [default=aix]. 1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1457 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1458 compiler's sysroot if not specified). 1459 1460Some influential environment variables: 1461 CXX C++ compiler command 1462 CXXFLAGS C++ compiler flags 1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1464 nonstandard directory <lib dir> 1465 LIBS libraries to pass to the linker, e.g. -l<library> 1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1467 you have headers in a nonstandard directory <include dir> 1468 CC C compiler command 1469 CFLAGS C compiler flags 1470 CPP C preprocessor 1471 CXXCPP C++ preprocessor 1472 LT_SYS_LIBRARY_PATH 1473 User-defined run-time library search path. 1474 1475Use these variables to override the choices made by `configure' or to help 1476it to find libraries and programs with nonstandard names/locations. 1477 1478Report bugs to <isl-development@googlegroups.com>. 1479_ACEOF 1480ac_status=$? 1481fi 1482 1483if test "$ac_init_help" = "recursive"; then 1484 # If there are subdirs, report their specific --help. 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1486 test -d "$ac_dir" || 1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1488 continue 1489 ac_builddir=. 1490 1491case "$ac_dir" in 1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493*) 1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1495 # A ".." for each directory in $ac_dir_suffix. 1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1497 case $ac_top_builddir_sub in 1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1500 esac ;; 1501esac 1502ac_abs_top_builddir=$ac_pwd 1503ac_abs_builddir=$ac_pwd$ac_dir_suffix 1504# for backward compatibility: 1505ac_top_builddir=$ac_top_build_prefix 1506 1507case $srcdir in 1508 .) # We are building in place. 1509 ac_srcdir=. 1510 ac_top_srcdir=$ac_top_builddir_sub 1511 ac_abs_top_srcdir=$ac_pwd ;; 1512 [\\/]* | ?:[\\/]* ) # Absolute name. 1513 ac_srcdir=$srcdir$ac_dir_suffix; 1514 ac_top_srcdir=$srcdir 1515 ac_abs_top_srcdir=$srcdir ;; 1516 *) # Relative name. 1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1518 ac_top_srcdir=$ac_top_build_prefix$srcdir 1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1520esac 1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1522 1523 cd "$ac_dir" || { ac_status=$?; continue; } 1524 # Check for guested configure. 1525 if test -f "$ac_srcdir/configure.gnu"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1528 elif test -f "$ac_srcdir/configure"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure" --help=recursive 1531 else 1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1533 fi || ac_status=$? 1534 cd "$ac_pwd" || { ac_status=$?; break; } 1535 done 1536fi 1537 1538test -n "$ac_init_help" && exit $ac_status 1539if $ac_init_version; then 1540 cat <<\_ACEOF 1541isl-interface configure 0 1542generated by GNU Autoconf 2.69 1543 1544Copyright (C) 2012 Free Software Foundation, Inc. 1545This configure script is free software; the Free Software Foundation 1546gives unlimited permission to copy, distribute and modify it. 1547_ACEOF 1548 exit 1549fi 1550 1551## ------------------------ ## 1552## Autoconf initialization. ## 1553## ------------------------ ## 1554 1555# ac_fn_cxx_try_compile LINENO 1556# ---------------------------- 1557# Try to compile conftest.$ac_ext, and return whether this succeeded. 1558ac_fn_cxx_try_compile () 1559{ 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 rm -f conftest.$ac_objext 1562 if { { ac_try="$ac_compile" 1563case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566esac 1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568$as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_compile") 2>conftest.err 1570 ac_status=$? 1571 if test -s conftest.err; then 1572 grep -v '^ *+' conftest.err >conftest.er1 1573 cat conftest.er1 >&5 1574 mv -f conftest.er1 conftest.err 1575 fi 1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1577 test $ac_status = 0; } && { 1578 test -z "$ac_cxx_werror_flag" || 1579 test ! -s conftest.err 1580 } && test -s conftest.$ac_objext; then : 1581 ac_retval=0 1582else 1583 $as_echo "$as_me: failed program was:" >&5 1584sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 1587fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_cxx_try_compile 1592 1593# ac_fn_c_try_compile LINENO 1594# -------------------------- 1595# Try to compile conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_c_try_compile () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 rm -f conftest.$ac_objext 1600 if { { ac_try="$ac_compile" 1601case "(($ac_try" in 1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1603 *) ac_try_echo=$ac_try;; 1604esac 1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1606$as_echo "$ac_try_echo"; } >&5 1607 (eval "$ac_compile") 2>conftest.err 1608 ac_status=$? 1609 if test -s conftest.err; then 1610 grep -v '^ *+' conftest.err >conftest.er1 1611 cat conftest.er1 >&5 1612 mv -f conftest.er1 conftest.err 1613 fi 1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1615 test $ac_status = 0; } && { 1616 test -z "$ac_c_werror_flag" || 1617 test ! -s conftest.err 1618 } && test -s conftest.$ac_objext; then : 1619 ac_retval=0 1620else 1621 $as_echo "$as_me: failed program was:" >&5 1622sed 's/^/| /' conftest.$ac_ext >&5 1623 1624 ac_retval=1 1625fi 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 as_fn_set_status $ac_retval 1628 1629} # ac_fn_c_try_compile 1630 1631# ac_fn_c_try_cpp LINENO 1632# ---------------------- 1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_cpp () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_cpp conftest.$ac_ext" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } > conftest.i && { 1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 }; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 as_fn_set_status $ac_retval 1665 1666} # ac_fn_c_try_cpp 1667 1668# ac_fn_cxx_try_cpp LINENO 1669# ------------------------ 1670# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1671ac_fn_cxx_try_cpp () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 if { { ac_try="$ac_cpp conftest.$ac_ext" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680$as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } > conftest.i && { 1690 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1691 test ! -s conftest.err 1692 }; then : 1693 ac_retval=0 1694else 1695 $as_echo "$as_me: failed program was:" >&5 1696sed 's/^/| /' conftest.$ac_ext >&5 1697 1698 ac_retval=1 1699fi 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703} # ac_fn_cxx_try_cpp 1704 1705# ac_fn_c_try_link LINENO 1706# ----------------------- 1707# Try to link conftest.$ac_ext, and return whether this succeeded. 1708ac_fn_c_try_link () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 rm -f conftest.$ac_objext conftest$ac_exeext 1712 if { { ac_try="$ac_link" 1713case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_link") 2>conftest.err 1720 ac_status=$? 1721 if test -s conftest.err; then 1722 grep -v '^ *+' conftest.err >conftest.er1 1723 cat conftest.er1 >&5 1724 mv -f conftest.er1 conftest.err 1725 fi 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } && { 1728 test -z "$ac_c_werror_flag" || 1729 test ! -s conftest.err 1730 } && test -s conftest$ac_exeext && { 1731 test "$cross_compiling" = yes || 1732 test -x conftest$ac_exeext 1733 }; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: failed program was:" >&5 1737sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=1 1740fi 1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1743 # interfere with the next link command; also delete a directory that is 1744 # left behind by Apple's compiler. We do this before executing the actions. 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749} # ac_fn_c_try_link 1750 1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1752# ------------------------------------------------------- 1753# Tests whether HEADER exists and can be compiled using the include files in 1754# INCLUDES, setting the cache variable VAR accordingly. 1755ac_fn_c_check_header_compile () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759$as_echo_n "checking for $2... " >&6; } 1760if eval \${$3+:} false; then : 1761 $as_echo_n "(cached) " >&6 1762else 1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765$4 1766#include <$2> 1767_ACEOF 1768if ac_fn_c_try_compile "$LINENO"; then : 1769 eval "$3=yes" 1770else 1771 eval "$3=no" 1772fi 1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1774fi 1775eval ac_res=\$$3 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1777$as_echo "$ac_res" >&6; } 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 1780} # ac_fn_c_check_header_compile 1781 1782# ac_fn_c_try_run LINENO 1783# ---------------------- 1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1785# that executables *can* be run. 1786ac_fn_c_try_run () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 if { { ac_try="$ac_link" 1790case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_link") 2>&5 1797 ac_status=$? 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1800 { { case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_try") 2>&5 1807 ac_status=$? 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; }; }; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: program exited with status $ac_status" >&5 1813 $as_echo "$as_me: failed program was:" >&5 1814sed 's/^/| /' conftest.$ac_ext >&5 1815 1816 ac_retval=$ac_status 1817fi 1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822} # ac_fn_c_try_run 1823 1824# ac_fn_c_check_func LINENO FUNC VAR 1825# ---------------------------------- 1826# Tests whether FUNC exists, setting the cache variable VAR accordingly 1827ac_fn_c_check_func () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831$as_echo_n "checking for $2... " >&6; } 1832if eval \${$3+:} false; then : 1833 $as_echo_n "(cached) " >&6 1834else 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1839#define $2 innocuous_$2 1840 1841/* System header to define __stub macros and hopefully few prototypes, 1842 which can conflict with char $2 (); below. 1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1844 <limits.h> exists even on freestanding compilers. */ 1845 1846#ifdef __STDC__ 1847# include <limits.h> 1848#else 1849# include <assert.h> 1850#endif 1851 1852#undef $2 1853 1854/* Override any GCC internal prototype to avoid an error. 1855 Use char because int might match the return type of a GCC 1856 builtin and then its argument prototype would still apply. */ 1857#ifdef __cplusplus 1858extern "C" 1859#endif 1860char $2 (); 1861/* The GNU C library defines this for functions which it implements 1862 to always fail with ENOSYS. Some functions are actually named 1863 something starting with __ and the normal name is an alias. */ 1864#if defined __stub_$2 || defined __stub___$2 1865choke me 1866#endif 1867 1868int 1869main () 1870{ 1871return $2 (); 1872 ; 1873 return 0; 1874} 1875_ACEOF 1876if ac_fn_c_try_link "$LINENO"; then : 1877 eval "$3=yes" 1878else 1879 eval "$3=no" 1880fi 1881rm -f core conftest.err conftest.$ac_objext \ 1882 conftest$ac_exeext conftest.$ac_ext 1883fi 1884eval ac_res=\$$3 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886$as_echo "$ac_res" >&6; } 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889} # ac_fn_c_check_func 1890 1891# ac_fn_cxx_try_link LINENO 1892# ------------------------- 1893# Try to link conftest.$ac_ext, and return whether this succeeded. 1894ac_fn_cxx_try_link () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 rm -f conftest.$ac_objext conftest$ac_exeext 1898 if { { ac_try="$ac_link" 1899case "(($ac_try" in 1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1901 *) ac_try_echo=$ac_try;; 1902esac 1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1904$as_echo "$ac_try_echo"; } >&5 1905 (eval "$ac_link") 2>conftest.err 1906 ac_status=$? 1907 if test -s conftest.err; then 1908 grep -v '^ *+' conftest.err >conftest.er1 1909 cat conftest.er1 >&5 1910 mv -f conftest.er1 conftest.err 1911 fi 1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1913 test $ac_status = 0; } && { 1914 test -z "$ac_cxx_werror_flag" || 1915 test ! -s conftest.err 1916 } && test -s conftest$ac_exeext && { 1917 test "$cross_compiling" = yes || 1918 test -x conftest$ac_exeext 1919 }; then : 1920 ac_retval=0 1921else 1922 $as_echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925 ac_retval=1 1926fi 1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1929 # interfere with the next link command; also delete a directory that is 1930 # left behind by Apple's compiler. We do this before executing the actions. 1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 as_fn_set_status $ac_retval 1934 1935} # ac_fn_cxx_try_link 1936 1937# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1938# --------------------------------------------------------- 1939# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1940# the include files in INCLUDES and setting the cache variable VAR 1941# accordingly. 1942ac_fn_cxx_check_header_mongrel () 1943{ 1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1945 if eval \${$3+:} false; then : 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1947$as_echo_n "checking for $2... " >&6; } 1948if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950fi 1951eval ac_res=\$$3 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1953$as_echo "$ac_res" >&6; } 1954else 1955 # Is the header compilable? 1956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1957$as_echo_n "checking $2 usability... " >&6; } 1958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959/* end confdefs.h. */ 1960$4 1961#include <$2> 1962_ACEOF 1963if ac_fn_cxx_try_compile "$LINENO"; then : 1964 ac_header_compiler=yes 1965else 1966 ac_header_compiler=no 1967fi 1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1970$as_echo "$ac_header_compiler" >&6; } 1971 1972# Is the header present? 1973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1974$as_echo_n "checking $2 presence... " >&6; } 1975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977#include <$2> 1978_ACEOF 1979if ac_fn_cxx_try_cpp "$LINENO"; then : 1980 ac_header_preproc=yes 1981else 1982 ac_header_preproc=no 1983fi 1984rm -f conftest.err conftest.i conftest.$ac_ext 1985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1986$as_echo "$ac_header_preproc" >&6; } 1987 1988# So? What about this header? 1989case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 1990 yes:no: ) 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1992$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1994$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1995 ;; 1996 no:yes:* ) 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1998$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2000$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2002$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2004$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2006$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2007( $as_echo "## ----------------------------------------------- ## 2008## Report this to isl-development@googlegroups.com ## 2009## ----------------------------------------------- ##" 2010 ) | sed "s/^/$as_me: WARNING: /" >&2 2011 ;; 2012esac 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2014$as_echo_n "checking for $2... " >&6; } 2015if eval \${$3+:} false; then : 2016 $as_echo_n "(cached) " >&6 2017else 2018 eval "$3=\$ac_header_compiler" 2019fi 2020eval ac_res=\$$3 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2022$as_echo "$ac_res" >&6; } 2023fi 2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2025 2026} # ac_fn_cxx_check_header_mongrel 2027 2028# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2029# --------------------------------------------------------- 2030# Tests whether HEADER exists and can be compiled using the include files in 2031# INCLUDES, setting the cache variable VAR accordingly. 2032ac_fn_cxx_check_header_compile () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2036$as_echo_n "checking for $2... " >&6; } 2037if eval \${$3+:} false; then : 2038 $as_echo_n "(cached) " >&6 2039else 2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041/* end confdefs.h. */ 2042$4 2043#include <$2> 2044_ACEOF 2045if ac_fn_cxx_try_compile "$LINENO"; then : 2046 eval "$3=yes" 2047else 2048 eval "$3=no" 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051fi 2052eval ac_res=\$$3 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2054$as_echo "$ac_res" >&6; } 2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2056 2057} # ac_fn_cxx_check_header_compile 2058cat >config.log <<_ACEOF 2059This file contains any messages produced by compilers while 2060running configure, to aid debugging if configure makes a mistake. 2061 2062It was created by isl-interface $as_me 0, which was 2063generated by GNU Autoconf 2.69. Invocation command line was 2064 2065 $ $0 $@ 2066 2067_ACEOF 2068exec 5>>config.log 2069{ 2070cat <<_ASUNAME 2071## --------- ## 2072## Platform. ## 2073## --------- ## 2074 2075hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2076uname -m = `(uname -m) 2>/dev/null || echo unknown` 2077uname -r = `(uname -r) 2>/dev/null || echo unknown` 2078uname -s = `(uname -s) 2>/dev/null || echo unknown` 2079uname -v = `(uname -v) 2>/dev/null || echo unknown` 2080 2081/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2082/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2083 2084/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2085/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2086/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2087/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2088/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2089/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2090/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2091 2092_ASUNAME 2093 2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2095for as_dir in $PATH 2096do 2097 IFS=$as_save_IFS 2098 test -z "$as_dir" && as_dir=. 2099 $as_echo "PATH: $as_dir" 2100 done 2101IFS=$as_save_IFS 2102 2103} >&5 2104 2105cat >&5 <<_ACEOF 2106 2107 2108## ----------- ## 2109## Core tests. ## 2110## ----------- ## 2111 2112_ACEOF 2113 2114 2115# Keep a trace of the command line. 2116# Strip out --no-create and --no-recursion so they do not pile up. 2117# Strip out --silent because we don't want to record it for future runs. 2118# Also quote any args containing shell meta-characters. 2119# Make two passes to allow for proper duplicate-argument suppression. 2120ac_configure_args= 2121ac_configure_args0= 2122ac_configure_args1= 2123ac_must_keep_next=false 2124for ac_pass in 1 2 2125do 2126 for ac_arg 2127 do 2128 case $ac_arg in 2129 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2131 | -silent | --silent | --silen | --sile | --sil) 2132 continue ;; 2133 *\'*) 2134 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2135 esac 2136 case $ac_pass in 2137 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2138 2) 2139 as_fn_append ac_configure_args1 " '$ac_arg'" 2140 if test $ac_must_keep_next = true; then 2141 ac_must_keep_next=false # Got value, back to normal. 2142 else 2143 case $ac_arg in 2144 *=* | --config-cache | -C | -disable-* | --disable-* \ 2145 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2146 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2147 | -with-* | --with-* | -without-* | --without-* | --x) 2148 case "$ac_configure_args0 " in 2149 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2150 esac 2151 ;; 2152 -* ) ac_must_keep_next=true ;; 2153 esac 2154 fi 2155 as_fn_append ac_configure_args " '$ac_arg'" 2156 ;; 2157 esac 2158 done 2159done 2160{ ac_configure_args0=; unset ac_configure_args0;} 2161{ ac_configure_args1=; unset ac_configure_args1;} 2162 2163# When interrupted or exit'd, cleanup temporary files, and complete 2164# config.log. We remove comments because anyway the quotes in there 2165# would cause problems or look ugly. 2166# WARNING: Use '\'' to represent an apostrophe within the trap. 2167# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2168trap 'exit_status=$? 2169 # Save into config.log some information that might help in debugging. 2170 { 2171 echo 2172 2173 $as_echo "## ---------------- ## 2174## Cache variables. ## 2175## ---------------- ##" 2176 echo 2177 # The following way of writing the cache mishandles newlines in values, 2178( 2179 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2180 eval ac_val=\$$ac_var 2181 case $ac_val in #( 2182 *${as_nl}*) 2183 case $ac_var in #( 2184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2186 esac 2187 case $ac_var in #( 2188 _ | IFS | as_nl) ;; #( 2189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2190 *) { eval $ac_var=; unset $ac_var;} ;; 2191 esac ;; 2192 esac 2193 done 2194 (set) 2>&1 | 2195 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2196 *${as_nl}ac_space=\ *) 2197 sed -n \ 2198 "s/'\''/'\''\\\\'\'''\''/g; 2199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2200 ;; #( 2201 *) 2202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2203 ;; 2204 esac | 2205 sort 2206) 2207 echo 2208 2209 $as_echo "## ----------------- ## 2210## Output variables. ## 2211## ----------------- ##" 2212 echo 2213 for ac_var in $ac_subst_vars 2214 do 2215 eval ac_val=\$$ac_var 2216 case $ac_val in 2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2218 esac 2219 $as_echo "$ac_var='\''$ac_val'\''" 2220 done | sort 2221 echo 2222 2223 if test -n "$ac_subst_files"; then 2224 $as_echo "## ------------------- ## 2225## File substitutions. ## 2226## ------------------- ##" 2227 echo 2228 for ac_var in $ac_subst_files 2229 do 2230 eval ac_val=\$$ac_var 2231 case $ac_val in 2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2233 esac 2234 $as_echo "$ac_var='\''$ac_val'\''" 2235 done | sort 2236 echo 2237 fi 2238 2239 if test -s confdefs.h; then 2240 $as_echo "## ----------- ## 2241## confdefs.h. ## 2242## ----------- ##" 2243 echo 2244 cat confdefs.h 2245 echo 2246 fi 2247 test "$ac_signal" != 0 && 2248 $as_echo "$as_me: caught signal $ac_signal" 2249 $as_echo "$as_me: exit $exit_status" 2250 } >&5 2251 rm -f core *.core core.conftest.* && 2252 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2253 exit $exit_status 2254' 0 2255for ac_signal in 1 2 13 15; do 2256 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2257done 2258ac_signal=0 2259 2260# confdefs.h avoids OS command line length limits that DEFS can exceed. 2261rm -f -r conftest* confdefs.h 2262 2263$as_echo "/* confdefs.h */" > confdefs.h 2264 2265# Predefined preprocessor variables. 2266 2267cat >>confdefs.h <<_ACEOF 2268#define PACKAGE_NAME "$PACKAGE_NAME" 2269_ACEOF 2270 2271cat >>confdefs.h <<_ACEOF 2272#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2273_ACEOF 2274 2275cat >>confdefs.h <<_ACEOF 2276#define PACKAGE_VERSION "$PACKAGE_VERSION" 2277_ACEOF 2278 2279cat >>confdefs.h <<_ACEOF 2280#define PACKAGE_STRING "$PACKAGE_STRING" 2281_ACEOF 2282 2283cat >>confdefs.h <<_ACEOF 2284#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2285_ACEOF 2286 2287cat >>confdefs.h <<_ACEOF 2288#define PACKAGE_URL "$PACKAGE_URL" 2289_ACEOF 2290 2291 2292# Let the site file select an alternate cache file if it wants to. 2293# Prefer an explicitly selected file to automatically selected ones. 2294ac_site_file1=NONE 2295ac_site_file2=NONE 2296if test -n "$CONFIG_SITE"; then 2297 # We do not want a PATH search for config.site. 2298 case $CONFIG_SITE in #(( 2299 -*) ac_site_file1=./$CONFIG_SITE;; 2300 */*) ac_site_file1=$CONFIG_SITE;; 2301 *) ac_site_file1=./$CONFIG_SITE;; 2302 esac 2303elif test "x$prefix" != xNONE; then 2304 ac_site_file1=$prefix/share/config.site 2305 ac_site_file2=$prefix/etc/config.site 2306else 2307 ac_site_file1=$ac_default_prefix/share/config.site 2308 ac_site_file2=$ac_default_prefix/etc/config.site 2309fi 2310for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2311do 2312 test "x$ac_site_file" = xNONE && continue 2313 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2315$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2316 sed 's/^/| /' "$ac_site_file" >&5 2317 . "$ac_site_file" \ 2318 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2320as_fn_error $? "failed to load site script $ac_site_file 2321See \`config.log' for more details" "$LINENO" 5; } 2322 fi 2323done 2324 2325if test -r "$cache_file"; then 2326 # Some versions of bash will fail to source /dev/null (special files 2327 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2328 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2330$as_echo "$as_me: loading cache $cache_file" >&6;} 2331 case $cache_file in 2332 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2333 *) . "./$cache_file";; 2334 esac 2335 fi 2336else 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2338$as_echo "$as_me: creating cache $cache_file" >&6;} 2339 >$cache_file 2340fi 2341 2342# Check that the precious variables saved in the cache have kept the same 2343# value. 2344ac_cache_corrupted=false 2345for ac_var in $ac_precious_vars; do 2346 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2347 eval ac_new_set=\$ac_env_${ac_var}_set 2348 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2349 eval ac_new_val=\$ac_env_${ac_var}_value 2350 case $ac_old_set,$ac_new_set in 2351 set,) 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2353$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2354 ac_cache_corrupted=: ;; 2355 ,set) 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2357$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2358 ac_cache_corrupted=: ;; 2359 ,);; 2360 *) 2361 if test "x$ac_old_val" != "x$ac_new_val"; then 2362 # differences in whitespace do not lead to failure. 2363 ac_old_val_w=`echo x $ac_old_val` 2364 ac_new_val_w=`echo x $ac_new_val` 2365 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2367$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2368 ac_cache_corrupted=: 2369 else 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2371$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2372 eval $ac_var=\$ac_old_val 2373 fi 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2375$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2377$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2378 fi;; 2379 esac 2380 # Pass precious variables to config.status. 2381 if test "$ac_new_set" = set; then 2382 case $ac_new_val in 2383 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2384 *) ac_arg=$ac_var=$ac_new_val ;; 2385 esac 2386 case " $ac_configure_args " in 2387 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2388 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2389 esac 2390 fi 2391done 2392if $ac_cache_corrupted; then 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2396$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2397 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2398fi 2399## -------------------- ## 2400## Main body of script. ## 2401## -------------------- ## 2402 2403ac_ext=c 2404ac_cpp='$CPP $CPPFLAGS' 2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2407ac_compiler_gnu=$ac_cv_c_compiler_gnu 2408 2409 2410ac_aux_dir= 2411for ac_dir in . "$srcdir"/.; do 2412 if test -f "$ac_dir/install-sh"; then 2413 ac_aux_dir=$ac_dir 2414 ac_install_sh="$ac_aux_dir/install-sh -c" 2415 break 2416 elif test -f "$ac_dir/install.sh"; then 2417 ac_aux_dir=$ac_dir 2418 ac_install_sh="$ac_aux_dir/install.sh -c" 2419 break 2420 elif test -f "$ac_dir/shtool"; then 2421 ac_aux_dir=$ac_dir 2422 ac_install_sh="$ac_aux_dir/shtool install -c" 2423 break 2424 fi 2425done 2426if test -z "$ac_aux_dir"; then 2427 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2428fi 2429 2430# These three variables are undocumented and unsupported, 2431# and are intended to be withdrawn in a future Autoconf release. 2432# They can cause serious problems if a builder's source tree is in a directory 2433# whose full name contains unusual characters. 2434ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2435ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2436ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2437 2438 2439 2440am__api_version='1.15' 2441 2442# Find a good install program. We prefer a C program (faster), 2443# so one script is as good as another. But avoid the broken or 2444# incompatible versions: 2445# SysV /etc/install, /usr/sbin/install 2446# SunOS /usr/etc/install 2447# IRIX /sbin/install 2448# AIX /bin/install 2449# AmigaOS /C/install, which installs bootblocks on floppy discs 2450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2451# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2453# OS/2's system install, which has a completely different semantic 2454# ./install, which can be erroneously created by make from ./install.sh. 2455# Reject install programs that cannot install multiple files. 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2457$as_echo_n "checking for a BSD-compatible install... " >&6; } 2458if test -z "$INSTALL"; then 2459if ${ac_cv_path_install+:} false; then : 2460 $as_echo_n "(cached) " >&6 2461else 2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463for as_dir in $PATH 2464do 2465 IFS=$as_save_IFS 2466 test -z "$as_dir" && as_dir=. 2467 # Account for people who put trailing slashes in PATH elements. 2468case $as_dir/ in #(( 2469 ./ | .// | /[cC]/* | \ 2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2472 /usr/ucb/* ) ;; 2473 *) 2474 # OSF1 and SCO ODT 3.0 have their own names for install. 2475 # Don't use installbsd from OSF since it installs stuff as root 2476 # by default. 2477 for ac_prog in ginstall scoinst install; do 2478 for ac_exec_ext in '' $ac_executable_extensions; do 2479 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2480 if test $ac_prog = install && 2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2482 # AIX install. It has an incompatible calling convention. 2483 : 2484 elif test $ac_prog = install && 2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2486 # program-specific install script used by HP pwplus--don't use. 2487 : 2488 else 2489 rm -rf conftest.one conftest.two conftest.dir 2490 echo one > conftest.one 2491 echo two > conftest.two 2492 mkdir conftest.dir 2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2494 test -s conftest.one && test -s conftest.two && 2495 test -s conftest.dir/conftest.one && 2496 test -s conftest.dir/conftest.two 2497 then 2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2499 break 3 2500 fi 2501 fi 2502 fi 2503 done 2504 done 2505 ;; 2506esac 2507 2508 done 2509IFS=$as_save_IFS 2510 2511rm -rf conftest.one conftest.two conftest.dir 2512 2513fi 2514 if test "${ac_cv_path_install+set}" = set; then 2515 INSTALL=$ac_cv_path_install 2516 else 2517 # As a last resort, use the slow shell script. Don't cache a 2518 # value for INSTALL within a source directory, because that will 2519 # break other packages using the cache if that directory is 2520 # removed, or if the value is a relative name. 2521 INSTALL=$ac_install_sh 2522 fi 2523fi 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2525$as_echo "$INSTALL" >&6; } 2526 2527# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2528# It thinks the first close brace ends the variable substitution. 2529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2530 2531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2532 2533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2534 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2536$as_echo_n "checking whether build environment is sane... " >&6; } 2537# Reject unsafe characters in $srcdir or the absolute working directory 2538# name. Accept space and tab only in the latter. 2539am_lf=' 2540' 2541case `pwd` in 2542 *[\\\"\#\$\&\'\`$am_lf]*) 2543 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2544esac 2545case $srcdir in 2546 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2547 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2548esac 2549 2550# Do 'set' in a subshell so we don't clobber the current shell's 2551# arguments. Must try -L first in case configure is actually a 2552# symlink; some systems play weird games with the mod time of symlinks 2553# (eg FreeBSD returns the mod time of the symlink's containing 2554# directory). 2555if ( 2556 am_has_slept=no 2557 for am_try in 1 2; do 2558 echo "timestamp, slept: $am_has_slept" > conftest.file 2559 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2560 if test "$*" = "X"; then 2561 # -L didn't work. 2562 set X `ls -t "$srcdir/configure" conftest.file` 2563 fi 2564 if test "$*" != "X $srcdir/configure conftest.file" \ 2565 && test "$*" != "X conftest.file $srcdir/configure"; then 2566 2567 # If neither matched, then we have a broken ls. This can happen 2568 # if, for instance, CONFIG_SHELL is bash and it inherits a 2569 # broken ls alias from the environment. This has actually 2570 # happened. Such a system could not be considered "sane". 2571 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2572 alias in your environment" "$LINENO" 5 2573 fi 2574 if test "$2" = conftest.file || test $am_try -eq 2; then 2575 break 2576 fi 2577 # Just in case. 2578 sleep 1 2579 am_has_slept=yes 2580 done 2581 test "$2" = conftest.file 2582 ) 2583then 2584 # Ok. 2585 : 2586else 2587 as_fn_error $? "newly created file is older than distributed files! 2588Check your system clock" "$LINENO" 5 2589fi 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2591$as_echo "yes" >&6; } 2592# If we didn't sleep, we still need to ensure time stamps of config.status and 2593# generated files are strictly newer. 2594am_sleep_pid= 2595if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2596 ( sleep 1 ) & 2597 am_sleep_pid=$! 2598fi 2599 2600rm -f conftest.file 2601 2602test "$program_prefix" != NONE && 2603 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2604# Use a double $ so make ignores it. 2605test "$program_suffix" != NONE && 2606 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2607# Double any \ or $. 2608# By default was `s,x,x', remove it if useless. 2609ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2610program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2611 2612# Expand $ac_aux_dir to an absolute path. 2613am_aux_dir=`cd "$ac_aux_dir" && pwd` 2614 2615if test x"${MISSING+set}" != xset; then 2616 case $am_aux_dir in 2617 *\ * | *\ *) 2618 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2619 *) 2620 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2621 esac 2622fi 2623# Use eval to expand $SHELL 2624if eval "$MISSING --is-lightweight"; then 2625 am_missing_run="$MISSING " 2626else 2627 am_missing_run= 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2629$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2630fi 2631 2632if test x"${install_sh+set}" != xset; then 2633 case $am_aux_dir in 2634 *\ * | *\ *) 2635 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2636 *) 2637 install_sh="\${SHELL} $am_aux_dir/install-sh" 2638 esac 2639fi 2640 2641# Installed binaries are usually stripped using 'strip' when the user 2642# run "make install-strip". However 'strip' might not be the right 2643# tool to use in cross-compilation environments, therefore Automake 2644# will honor the 'STRIP' environment variable to overrule this program. 2645if test "$cross_compiling" != no; then 2646 if test -n "$ac_tool_prefix"; then 2647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2648set dummy ${ac_tool_prefix}strip; ac_word=$2 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2650$as_echo_n "checking for $ac_word... " >&6; } 2651if ${ac_cv_prog_STRIP+:} false; then : 2652 $as_echo_n "(cached) " >&6 2653else 2654 if test -n "$STRIP"; then 2655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2656else 2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2658for as_dir in $PATH 2659do 2660 IFS=$as_save_IFS 2661 test -z "$as_dir" && as_dir=. 2662 for ac_exec_ext in '' $ac_executable_extensions; do 2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2664 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2666 break 2 2667 fi 2668done 2669 done 2670IFS=$as_save_IFS 2671 2672fi 2673fi 2674STRIP=$ac_cv_prog_STRIP 2675if test -n "$STRIP"; then 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2677$as_echo "$STRIP" >&6; } 2678else 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2680$as_echo "no" >&6; } 2681fi 2682 2683 2684fi 2685if test -z "$ac_cv_prog_STRIP"; then 2686 ac_ct_STRIP=$STRIP 2687 # Extract the first word of "strip", so it can be a program name with args. 2688set dummy strip; ac_word=$2 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2690$as_echo_n "checking for $ac_word... " >&6; } 2691if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2692 $as_echo_n "(cached) " >&6 2693else 2694 if test -n "$ac_ct_STRIP"; then 2695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2696else 2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2698for as_dir in $PATH 2699do 2700 IFS=$as_save_IFS 2701 test -z "$as_dir" && as_dir=. 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2704 ac_cv_prog_ac_ct_STRIP="strip" 2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2706 break 2 2707 fi 2708done 2709 done 2710IFS=$as_save_IFS 2711 2712fi 2713fi 2714ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2715if test -n "$ac_ct_STRIP"; then 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2717$as_echo "$ac_ct_STRIP" >&6; } 2718else 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2720$as_echo "no" >&6; } 2721fi 2722 2723 if test "x$ac_ct_STRIP" = x; then 2724 STRIP=":" 2725 else 2726 case $cross_compiling:$ac_tool_warned in 2727yes:) 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2730ac_tool_warned=yes ;; 2731esac 2732 STRIP=$ac_ct_STRIP 2733 fi 2734else 2735 STRIP="$ac_cv_prog_STRIP" 2736fi 2737 2738fi 2739INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2740 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2742$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2743if test -z "$MKDIR_P"; then 2744 if ${ac_cv_path_mkdir+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2748for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2749do 2750 IFS=$as_save_IFS 2751 test -z "$as_dir" && as_dir=. 2752 for ac_prog in mkdir gmkdir; do 2753 for ac_exec_ext in '' $ac_executable_extensions; do 2754 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2755 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2756 'mkdir (GNU coreutils) '* | \ 2757 'mkdir (coreutils) '* | \ 2758 'mkdir (fileutils) '4.1*) 2759 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2760 break 3;; 2761 esac 2762 done 2763 done 2764 done 2765IFS=$as_save_IFS 2766 2767fi 2768 2769 test -d ./--version && rmdir ./--version 2770 if test "${ac_cv_path_mkdir+set}" = set; then 2771 MKDIR_P="$ac_cv_path_mkdir -p" 2772 else 2773 # As a last resort, use the slow shell script. Don't cache a 2774 # value for MKDIR_P within a source directory, because that will 2775 # break other packages using the cache if that directory is 2776 # removed, or if the value is a relative name. 2777 MKDIR_P="$ac_install_sh -d" 2778 fi 2779fi 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2781$as_echo "$MKDIR_P" >&6; } 2782 2783for ac_prog in gawk mawk nawk awk 2784do 2785 # Extract the first word of "$ac_prog", so it can be a program name with args. 2786set dummy $ac_prog; ac_word=$2 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2788$as_echo_n "checking for $ac_word... " >&6; } 2789if ${ac_cv_prog_AWK+:} false; then : 2790 $as_echo_n "(cached) " >&6 2791else 2792 if test -n "$AWK"; then 2793 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2794else 2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2796for as_dir in $PATH 2797do 2798 IFS=$as_save_IFS 2799 test -z "$as_dir" && as_dir=. 2800 for ac_exec_ext in '' $ac_executable_extensions; do 2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2802 ac_cv_prog_AWK="$ac_prog" 2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2804 break 2 2805 fi 2806done 2807 done 2808IFS=$as_save_IFS 2809 2810fi 2811fi 2812AWK=$ac_cv_prog_AWK 2813if test -n "$AWK"; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2815$as_echo "$AWK" >&6; } 2816else 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2818$as_echo "no" >&6; } 2819fi 2820 2821 2822 test -n "$AWK" && break 2823done 2824 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2826$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2827set x ${MAKE-make} 2828ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2829if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2830 $as_echo_n "(cached) " >&6 2831else 2832 cat >conftest.make <<\_ACEOF 2833SHELL = /bin/sh 2834all: 2835 @echo '@@@%%%=$(MAKE)=@@@%%%' 2836_ACEOF 2837# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2838case `${MAKE-make} -f conftest.make 2>/dev/null` in 2839 *@@@%%%=?*=@@@%%%*) 2840 eval ac_cv_prog_make_${ac_make}_set=yes;; 2841 *) 2842 eval ac_cv_prog_make_${ac_make}_set=no;; 2843esac 2844rm -f conftest.make 2845fi 2846if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2848$as_echo "yes" >&6; } 2849 SET_MAKE= 2850else 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852$as_echo "no" >&6; } 2853 SET_MAKE="MAKE=${MAKE-make}" 2854fi 2855 2856rm -rf .tst 2>/dev/null 2857mkdir .tst 2>/dev/null 2858if test -d .tst; then 2859 am__leading_dot=. 2860else 2861 am__leading_dot=_ 2862fi 2863rmdir .tst 2>/dev/null 2864 2865# Check whether --enable-silent-rules was given. 2866if test "${enable_silent_rules+set}" = set; then : 2867 enableval=$enable_silent_rules; 2868fi 2869 2870case $enable_silent_rules in # ((( 2871 yes) AM_DEFAULT_VERBOSITY=0;; 2872 no) AM_DEFAULT_VERBOSITY=1;; 2873 *) AM_DEFAULT_VERBOSITY=1;; 2874esac 2875am_make=${MAKE-make} 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2877$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2878if ${am_cv_make_support_nested_variables+:} false; then : 2879 $as_echo_n "(cached) " >&6 2880else 2881 if $as_echo 'TRUE=$(BAR$(V)) 2882BAR0=false 2883BAR1=true 2884V=1 2885am__doit: 2886 @$(TRUE) 2887.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2888 am_cv_make_support_nested_variables=yes 2889else 2890 am_cv_make_support_nested_variables=no 2891fi 2892fi 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2894$as_echo "$am_cv_make_support_nested_variables" >&6; } 2895if test $am_cv_make_support_nested_variables = yes; then 2896 AM_V='$(V)' 2897 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2898else 2899 AM_V=$AM_DEFAULT_VERBOSITY 2900 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2901fi 2902AM_BACKSLASH='\' 2903 2904if test "`cd $srcdir && pwd`" != "`pwd`"; then 2905 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2906 # is not polluted with repeated "-I." 2907 am__isrc=' -I$(srcdir)' 2908 # test to see if srcdir already configured 2909 if test -f $srcdir/config.status; then 2910 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2911 fi 2912fi 2913 2914# test whether we have cygpath 2915if test -z "$CYGPATH_W"; then 2916 if (cygpath --version) >/dev/null 2>/dev/null; then 2917 CYGPATH_W='cygpath -w' 2918 else 2919 CYGPATH_W=echo 2920 fi 2921fi 2922 2923 2924# Define the identity of the package. 2925 PACKAGE='isl-interface' 2926 VERSION='0' 2927 2928 2929cat >>confdefs.h <<_ACEOF 2930#define PACKAGE "$PACKAGE" 2931_ACEOF 2932 2933 2934cat >>confdefs.h <<_ACEOF 2935#define VERSION "$VERSION" 2936_ACEOF 2937 2938# Some tools Automake needs. 2939 2940ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2941 2942 2943AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2944 2945 2946AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2947 2948 2949AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2950 2951 2952MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2953 2954# For better backward compatibility. To be removed once Automake 1.9.x 2955# dies out for good. For more background, see: 2956# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2957# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2958mkdir_p='$(MKDIR_P)' 2959 2960# We need awk for the "check" target (and possibly the TAP driver). The 2961# system "awk" is bad on some platforms. 2962# Always define AMTAR for backward compatibility. Yes, it's still used 2963# in the wild :-( We should find a proper way to deprecate it ... 2964AMTAR='$${TAR-tar}' 2965 2966 2967# We'll loop over all known methods to create a tar archive until one works. 2968_am_tools='gnutar pax cpio none' 2969 2970am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2971 2972 2973 2974 2975 2976 2977# POSIX will say in a future version that running "rm -f" with no argument 2978# is OK; and we want to be able to make that assumption in our Makefile 2979# recipes. So use an aggressive probe to check that the usage we want is 2980# actually supported "in the wild" to an acceptable degree. 2981# See automake bug#10828. 2982# To make any issue more visible, cause the running configure to be aborted 2983# by default if the 'rm' program in use doesn't match our expectations; the 2984# user can still override this though. 2985if rm -f && rm -fr && rm -rf; then : OK; else 2986 cat >&2 <<'END' 2987Oops! 2988 2989Your 'rm' program seems unable to run without file operands specified 2990on the command line, even when the '-f' option is present. This is contrary 2991to the behaviour of most rm programs out there, and not conforming with 2992the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2993 2994Please tell bug-automake@gnu.org about your system, including the value 2995of your $PATH and any error possibly output before this message. This 2996can help us improve future automake versions. 2997 2998END 2999 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3000 echo 'Configuration will proceed anyway, since you have set the' >&2 3001 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3002 echo >&2 3003 else 3004 cat >&2 <<'END' 3005Aborting the configuration process, to ensure you take notice of the issue. 3006 3007You can download and install GNU coreutils to get an 'rm' implementation 3008that behaves properly: <http://www.gnu.org/software/coreutils/>. 3009 3010If you want to complete the configuration process using your problematic 3011'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3012to "yes", and re-run configure. 3013 3014END 3015 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3016 fi 3017fi 3018 3019# Check whether --enable-silent-rules was given. 3020if test "${enable_silent_rules+set}" = set; then : 3021 enableval=$enable_silent_rules; 3022fi 3023 3024case $enable_silent_rules in # ((( 3025 yes) AM_DEFAULT_VERBOSITY=0;; 3026 no) AM_DEFAULT_VERBOSITY=1;; 3027 *) AM_DEFAULT_VERBOSITY=0;; 3028esac 3029am_make=${MAKE-make} 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3031$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3032if ${am_cv_make_support_nested_variables+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 if $as_echo 'TRUE=$(BAR$(V)) 3036BAR0=false 3037BAR1=true 3038V=1 3039am__doit: 3040 @$(TRUE) 3041.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3042 am_cv_make_support_nested_variables=yes 3043else 3044 am_cv_make_support_nested_variables=no 3045fi 3046fi 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3048$as_echo "$am_cv_make_support_nested_variables" >&6; } 3049if test $am_cv_make_support_nested_variables = yes; then 3050 AM_V='$(V)' 3051 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3052else 3053 AM_V=$AM_DEFAULT_VERBOSITY 3054 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3055fi 3056AM_BACKSLASH='\' 3057 3058 3059ac_ext=cpp 3060ac_cpp='$CXXCPP $CPPFLAGS' 3061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3064if test -z "$CXX"; then 3065 if test -n "$CCC"; then 3066 CXX=$CCC 3067 else 3068 if test -n "$ac_tool_prefix"; then 3069 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3070 do 3071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3072set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if ${ac_cv_prog_CXX+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$CXX"; then 3079 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3088 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093 done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098CXX=$ac_cv_prog_CXX 3099if test -n "$CXX"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3101$as_echo "$CXX" >&6; } 3102else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108 test -n "$CXX" && break 3109 done 3110fi 3111if test -z "$CXX"; then 3112 ac_ct_CXX=$CXX 3113 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3114do 3115 # Extract the first word of "$ac_prog", so it can be a program name with args. 3116set dummy $ac_prog; ac_word=$2 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3118$as_echo_n "checking for $ac_word... " >&6; } 3119if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3120 $as_echo_n "(cached) " >&6 3121else 3122 if test -n "$ac_ct_CXX"; then 3123 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3124else 3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126for as_dir in $PATH 3127do 3128 IFS=$as_save_IFS 3129 test -z "$as_dir" && as_dir=. 3130 for ac_exec_ext in '' $ac_executable_extensions; do 3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3132 ac_cv_prog_ac_ct_CXX="$ac_prog" 3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3134 break 2 3135 fi 3136done 3137 done 3138IFS=$as_save_IFS 3139 3140fi 3141fi 3142ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3143if test -n "$ac_ct_CXX"; then 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3145$as_echo "$ac_ct_CXX" >&6; } 3146else 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3148$as_echo "no" >&6; } 3149fi 3150 3151 3152 test -n "$ac_ct_CXX" && break 3153done 3154 3155 if test "x$ac_ct_CXX" = x; then 3156 CXX="g++" 3157 else 3158 case $cross_compiling:$ac_tool_warned in 3159yes:) 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3162ac_tool_warned=yes ;; 3163esac 3164 CXX=$ac_ct_CXX 3165 fi 3166fi 3167 3168 fi 3169fi 3170# Provide some information about the compiler. 3171$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3172set X $ac_compile 3173ac_compiler=$2 3174for ac_option in --version -v -V -qversion; do 3175 { { ac_try="$ac_compiler $ac_option >&5" 3176case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179esac 3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3181$as_echo "$ac_try_echo"; } >&5 3182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3183 ac_status=$? 3184 if test -s conftest.err; then 3185 sed '10a\ 3186... rest of stderr output deleted ... 3187 10q' conftest.err >conftest.er1 3188 cat conftest.er1 >&5 3189 fi 3190 rm -f conftest.er1 conftest.err 3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3192 test $ac_status = 0; } 3193done 3194 3195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201 3202 ; 3203 return 0; 3204} 3205_ACEOF 3206ac_clean_files_save=$ac_clean_files 3207ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3208# Try to create an executable without -o first, disregard a.out. 3209# It will help us diagnose broken compilers, and finding out an intuition 3210# of exeext. 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3212$as_echo_n "checking whether the C++ compiler works... " >&6; } 3213ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3214 3215# The possible output files: 3216ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3217 3218ac_rmfiles= 3219for ac_file in $ac_files 3220do 3221 case $ac_file in 3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3223 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3224 esac 3225done 3226rm -f $ac_rmfiles 3227 3228if { { ac_try="$ac_link_default" 3229case "(($ac_try" in 3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3231 *) ac_try_echo=$ac_try;; 3232esac 3233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3234$as_echo "$ac_try_echo"; } >&5 3235 (eval "$ac_link_default") 2>&5 3236 ac_status=$? 3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3238 test $ac_status = 0; }; then : 3239 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3240# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3241# in a Makefile. We should not override ac_cv_exeext if it was cached, 3242# so that the user can short-circuit this test for compilers unknown to 3243# Autoconf. 3244for ac_file in $ac_files '' 3245do 3246 test -f "$ac_file" || continue 3247 case $ac_file in 3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3249 ;; 3250 [ab].out ) 3251 # We found the default executable, but exeext='' is most 3252 # certainly right. 3253 break;; 3254 *.* ) 3255 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3256 then :; else 3257 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3258 fi 3259 # We set ac_cv_exeext here because the later test for it is not 3260 # safe: cross compilers may not add the suffix if given an `-o' 3261 # argument, so we may need to know it at that point already. 3262 # Even if this section looks crufty: it has the advantage of 3263 # actually working. 3264 break;; 3265 * ) 3266 break;; 3267 esac 3268done 3269test "$ac_cv_exeext" = no && ac_cv_exeext= 3270 3271else 3272 ac_file='' 3273fi 3274if test -z "$ac_file"; then : 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276$as_echo "no" >&6; } 3277$as_echo "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3282as_fn_error 77 "C++ compiler cannot create executables 3283See \`config.log' for more details" "$LINENO" 5; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3286$as_echo "yes" >&6; } 3287fi 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3289$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3291$as_echo "$ac_file" >&6; } 3292ac_exeext=$ac_cv_exeext 3293 3294rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3295ac_clean_files=$ac_clean_files_save 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3297$as_echo_n "checking for suffix of executables... " >&6; } 3298if { { ac_try="$ac_link" 3299case "(($ac_try" in 3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3301 *) ac_try_echo=$ac_try;; 3302esac 3303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3304$as_echo "$ac_try_echo"; } >&5 3305 (eval "$ac_link") 2>&5 3306 ac_status=$? 3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3308 test $ac_status = 0; }; then : 3309 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3310# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3311# work properly (i.e., refer to `conftest.exe'), while it won't with 3312# `rm'. 3313for ac_file in conftest.exe conftest conftest.*; do 3314 test -f "$ac_file" || continue 3315 case $ac_file in 3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3318 break;; 3319 * ) break;; 3320 esac 3321done 3322else 3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3325as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3326See \`config.log' for more details" "$LINENO" 5; } 3327fi 3328rm -f conftest conftest$ac_cv_exeext 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3330$as_echo "$ac_cv_exeext" >&6; } 3331 3332rm -f conftest.$ac_ext 3333EXEEXT=$ac_cv_exeext 3334ac_exeext=$EXEEXT 3335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336/* end confdefs.h. */ 3337#include <stdio.h> 3338int 3339main () 3340{ 3341FILE *f = fopen ("conftest.out", "w"); 3342 return ferror (f) || fclose (f) != 0; 3343 3344 ; 3345 return 0; 3346} 3347_ACEOF 3348ac_clean_files="$ac_clean_files conftest.out" 3349# Check that the compiler produces executables we can run. If not, either 3350# the compiler is broken, or we cross compile. 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3352$as_echo_n "checking whether we are cross compiling... " >&6; } 3353if test "$cross_compiling" != yes; then 3354 { { ac_try="$ac_link" 3355case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358esac 3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3360$as_echo "$ac_try_echo"; } >&5 3361 (eval "$ac_link") 2>&5 3362 ac_status=$? 3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3364 test $ac_status = 0; } 3365 if { ac_try='./conftest$ac_cv_exeext' 3366 { { case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3371$as_echo "$ac_try_echo"; } >&5 3372 (eval "$ac_try") 2>&5 3373 ac_status=$? 3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3375 test $ac_status = 0; }; }; then 3376 cross_compiling=no 3377 else 3378 if test "$cross_compiling" = maybe; then 3379 cross_compiling=yes 3380 else 3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3383as_fn_error $? "cannot run C++ compiled programs. 3384If you meant to cross compile, use \`--host'. 3385See \`config.log' for more details" "$LINENO" 5; } 3386 fi 3387 fi 3388fi 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3390$as_echo "$cross_compiling" >&6; } 3391 3392rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3393ac_clean_files=$ac_clean_files_save 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3395$as_echo_n "checking for suffix of object files... " >&6; } 3396if ${ac_cv_objext+:} false; then : 3397 $as_echo_n "(cached) " >&6 3398else 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400/* end confdefs.h. */ 3401 3402int 3403main () 3404{ 3405 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410rm -f conftest.o conftest.obj 3411if { { ac_try="$ac_compile" 3412case "(($ac_try" in 3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3414 *) ac_try_echo=$ac_try;; 3415esac 3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3417$as_echo "$ac_try_echo"; } >&5 3418 (eval "$ac_compile") 2>&5 3419 ac_status=$? 3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3421 test $ac_status = 0; }; then : 3422 for ac_file in conftest.o conftest.obj conftest.*; do 3423 test -f "$ac_file" || continue; 3424 case $ac_file in 3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3426 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3427 break;; 3428 esac 3429done 3430else 3431 $as_echo "$as_me: failed program was:" >&5 3432sed 's/^/| /' conftest.$ac_ext >&5 3433 3434{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3436as_fn_error $? "cannot compute suffix of object files: cannot compile 3437See \`config.log' for more details" "$LINENO" 5; } 3438fi 3439rm -f conftest.$ac_cv_objext conftest.$ac_ext 3440fi 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3442$as_echo "$ac_cv_objext" >&6; } 3443OBJEXT=$ac_cv_objext 3444ac_objext=$OBJEXT 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3446$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3447if ${ac_cv_cxx_compiler_gnu+:} false; then : 3448 $as_echo_n "(cached) " >&6 3449else 3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3451/* end confdefs.h. */ 3452 3453int 3454main () 3455{ 3456#ifndef __GNUC__ 3457 choke me 3458#endif 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464if ac_fn_cxx_try_compile "$LINENO"; then : 3465 ac_compiler_gnu=yes 3466else 3467 ac_compiler_gnu=no 3468fi 3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3470ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3471 3472fi 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3474$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3475if test $ac_compiler_gnu = yes; then 3476 GXX=yes 3477else 3478 GXX= 3479fi 3480ac_test_CXXFLAGS=${CXXFLAGS+set} 3481ac_save_CXXFLAGS=$CXXFLAGS 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3483$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3484if ${ac_cv_prog_cxx_g+:} false; then : 3485 $as_echo_n "(cached) " >&6 3486else 3487 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3488 ac_cxx_werror_flag=yes 3489 ac_cv_prog_cxx_g=no 3490 CXXFLAGS="-g" 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492/* end confdefs.h. */ 3493 3494int 3495main () 3496{ 3497 3498 ; 3499 return 0; 3500} 3501_ACEOF 3502if ac_fn_cxx_try_compile "$LINENO"; then : 3503 ac_cv_prog_cxx_g=yes 3504else 3505 CXXFLAGS="" 3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_cxx_try_compile "$LINENO"; then : 3518 3519else 3520 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3521 CXXFLAGS="-g" 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528 3529 ; 3530 return 0; 3531} 3532_ACEOF 3533if ac_fn_cxx_try_compile "$LINENO"; then : 3534 ac_cv_prog_cxx_g=yes 3535fi 3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3537fi 3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3539fi 3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3542fi 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3544$as_echo "$ac_cv_prog_cxx_g" >&6; } 3545if test "$ac_test_CXXFLAGS" = set; then 3546 CXXFLAGS=$ac_save_CXXFLAGS 3547elif test $ac_cv_prog_cxx_g = yes; then 3548 if test "$GXX" = yes; then 3549 CXXFLAGS="-g -O2" 3550 else 3551 CXXFLAGS="-g" 3552 fi 3553else 3554 if test "$GXX" = yes; then 3555 CXXFLAGS="-O2" 3556 else 3557 CXXFLAGS= 3558 fi 3559fi 3560ac_ext=c 3561ac_cpp='$CPP $CPPFLAGS' 3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3564ac_compiler_gnu=$ac_cv_c_compiler_gnu 3565DEPDIR="${am__leading_dot}deps" 3566 3567ac_config_commands="$ac_config_commands depfiles" 3568 3569 3570am_make=${MAKE-make} 3571cat > confinc << 'END' 3572am__doit: 3573 @echo this is the am__doit target 3574.PHONY: am__doit 3575END 3576# If we don't find an include directive, just comment out the code. 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3578$as_echo_n "checking for style of include used by $am_make... " >&6; } 3579am__include="#" 3580am__quote= 3581_am_result=none 3582# First try GNU make style include. 3583echo "include confinc" > confmf 3584# Ignore all kinds of additional output from 'make'. 3585case `$am_make -s -f confmf 2> /dev/null` in #( 3586*the\ am__doit\ target*) 3587 am__include=include 3588 am__quote= 3589 _am_result=GNU 3590 ;; 3591esac 3592# Now try BSD make style include. 3593if test "$am__include" = "#"; then 3594 echo '.include "confinc"' > confmf 3595 case `$am_make -s -f confmf 2> /dev/null` in #( 3596 *the\ am__doit\ target*) 3597 am__include=.include 3598 am__quote="\"" 3599 _am_result=BSD 3600 ;; 3601 esac 3602fi 3603 3604 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3606$as_echo "$_am_result" >&6; } 3607rm -f confinc confmf 3608 3609# Check whether --enable-dependency-tracking was given. 3610if test "${enable_dependency_tracking+set}" = set; then : 3611 enableval=$enable_dependency_tracking; 3612fi 3613 3614if test "x$enable_dependency_tracking" != xno; then 3615 am_depcomp="$ac_aux_dir/depcomp" 3616 AMDEPBACKSLASH='\' 3617 am__nodep='_no' 3618fi 3619 if test "x$enable_dependency_tracking" != xno; then 3620 AMDEP_TRUE= 3621 AMDEP_FALSE='#' 3622else 3623 AMDEP_TRUE='#' 3624 AMDEP_FALSE= 3625fi 3626 3627 3628 3629depcc="$CXX" am_compiler_list= 3630 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3632$as_echo_n "checking dependency style of $depcc... " >&6; } 3633if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3637 # We make a subdir and do the tests there. Otherwise we can end up 3638 # making bogus files that we don't know about and never remove. For 3639 # instance it was reported that on HP-UX the gcc test will end up 3640 # making a dummy file named 'D' -- because '-MD' means "put the output 3641 # in D". 3642 rm -rf conftest.dir 3643 mkdir conftest.dir 3644 # Copy depcomp to subdir because otherwise we won't find it if we're 3645 # using a relative directory. 3646 cp "$am_depcomp" conftest.dir 3647 cd conftest.dir 3648 # We will build objects and dependencies in a subdirectory because 3649 # it helps to detect inapplicable dependency modes. For instance 3650 # both Tru64's cc and ICC support -MD to output dependencies as a 3651 # side effect of compilation, but ICC will put the dependencies in 3652 # the current directory while Tru64 will put them in the object 3653 # directory. 3654 mkdir sub 3655 3656 am_cv_CXX_dependencies_compiler_type=none 3657 if test "$am_compiler_list" = ""; then 3658 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3659 fi 3660 am__universal=false 3661 case " $depcc " in #( 3662 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3663 esac 3664 3665 for depmode in $am_compiler_list; do 3666 # Setup a source with many dependencies, because some compilers 3667 # like to wrap large dependency lists on column 80 (with \), and 3668 # we should not choose a depcomp mode which is confused by this. 3669 # 3670 # We need to recreate these files for each test, as the compiler may 3671 # overwrite some of them when testing with obscure command lines. 3672 # This happens at least with the AIX C compiler. 3673 : > sub/conftest.c 3674 for i in 1 2 3 4 5 6; do 3675 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3676 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3677 # Solaris 10 /bin/sh. 3678 echo '/* dummy */' > sub/conftst$i.h 3679 done 3680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3681 3682 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3683 # mode. It turns out that the SunPro C++ compiler does not properly 3684 # handle '-M -o', and we need to detect this. Also, some Intel 3685 # versions had trouble with output in subdirs. 3686 am__obj=sub/conftest.${OBJEXT-o} 3687 am__minus_obj="-o $am__obj" 3688 case $depmode in 3689 gcc) 3690 # This depmode causes a compiler race in universal mode. 3691 test "$am__universal" = false || continue 3692 ;; 3693 nosideeffect) 3694 # After this tag, mechanisms are not by side-effect, so they'll 3695 # only be used when explicitly requested. 3696 if test "x$enable_dependency_tracking" = xyes; then 3697 continue 3698 else 3699 break 3700 fi 3701 ;; 3702 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3703 # This compiler won't grok '-c -o', but also, the minuso test has 3704 # not run yet. These depmodes are late enough in the game, and 3705 # so weak that their functioning should not be impacted. 3706 am__obj=conftest.${OBJEXT-o} 3707 am__minus_obj= 3708 ;; 3709 none) break ;; 3710 esac 3711 if depmode=$depmode \ 3712 source=sub/conftest.c object=$am__obj \ 3713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3714 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3715 >/dev/null 2>conftest.err && 3716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3718 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3720 # icc doesn't choke on unknown options, it will just issue warnings 3721 # or remarks (even with -Werror). So we grep stderr for any message 3722 # that says an option was ignored or not supported. 3723 # When given -MP, icc 7.0 and 7.1 complain thusly: 3724 # icc: Command line warning: ignoring option '-M'; no argument required 3725 # The diagnosis changed in icc 8.0: 3726 # icc: Command line remark: option '-MP' not supported 3727 if (grep 'ignoring option' conftest.err || 3728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3729 am_cv_CXX_dependencies_compiler_type=$depmode 3730 break 3731 fi 3732 fi 3733 done 3734 3735 cd .. 3736 rm -rf conftest.dir 3737else 3738 am_cv_CXX_dependencies_compiler_type=none 3739fi 3740 3741fi 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3743$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3744CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3745 3746 if 3747 test "x$enable_dependency_tracking" != xno \ 3748 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3749 am__fastdepCXX_TRUE= 3750 am__fastdepCXX_FALSE='#' 3751else 3752 am__fastdepCXX_TRUE='#' 3753 am__fastdepCXX_FALSE= 3754fi 3755 3756 3757ac_ext=c 3758ac_cpp='$CPP $CPPFLAGS' 3759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3761ac_compiler_gnu=$ac_cv_c_compiler_gnu 3762if test -n "$ac_tool_prefix"; then 3763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3764set dummy ${ac_tool_prefix}gcc; ac_word=$2 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3766$as_echo_n "checking for $ac_word... " >&6; } 3767if ${ac_cv_prog_CC+:} false; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 if test -n "$CC"; then 3771 ac_cv_prog_CC="$CC" # Let the user override the test. 3772else 3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3774for as_dir in $PATH 3775do 3776 IFS=$as_save_IFS 3777 test -z "$as_dir" && as_dir=. 3778 for ac_exec_ext in '' $ac_executable_extensions; do 3779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3780 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3782 break 2 3783 fi 3784done 3785 done 3786IFS=$as_save_IFS 3787 3788fi 3789fi 3790CC=$ac_cv_prog_CC 3791if test -n "$CC"; then 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3793$as_echo "$CC" >&6; } 3794else 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3796$as_echo "no" >&6; } 3797fi 3798 3799 3800fi 3801if test -z "$ac_cv_prog_CC"; then 3802 ac_ct_CC=$CC 3803 # Extract the first word of "gcc", so it can be a program name with args. 3804set dummy gcc; ac_word=$2 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3806$as_echo_n "checking for $ac_word... " >&6; } 3807if ${ac_cv_prog_ac_ct_CC+:} false; then : 3808 $as_echo_n "(cached) " >&6 3809else 3810 if test -n "$ac_ct_CC"; then 3811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3812else 3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814for as_dir in $PATH 3815do 3816 IFS=$as_save_IFS 3817 test -z "$as_dir" && as_dir=. 3818 for ac_exec_ext in '' $ac_executable_extensions; do 3819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3820 ac_cv_prog_ac_ct_CC="gcc" 3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3822 break 2 3823 fi 3824done 3825 done 3826IFS=$as_save_IFS 3827 3828fi 3829fi 3830ac_ct_CC=$ac_cv_prog_ac_ct_CC 3831if test -n "$ac_ct_CC"; then 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3833$as_echo "$ac_ct_CC" >&6; } 3834else 3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3836$as_echo "no" >&6; } 3837fi 3838 3839 if test "x$ac_ct_CC" = x; then 3840 CC="" 3841 else 3842 case $cross_compiling:$ac_tool_warned in 3843yes:) 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3846ac_tool_warned=yes ;; 3847esac 3848 CC=$ac_ct_CC 3849 fi 3850else 3851 CC="$ac_cv_prog_CC" 3852fi 3853 3854if test -z "$CC"; then 3855 if test -n "$ac_tool_prefix"; then 3856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3857set dummy ${ac_tool_prefix}cc; ac_word=$2 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3859$as_echo_n "checking for $ac_word... " >&6; } 3860if ${ac_cv_prog_CC+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 if test -n "$CC"; then 3864 ac_cv_prog_CC="$CC" # Let the user override the test. 3865else 3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3867for as_dir in $PATH 3868do 3869 IFS=$as_save_IFS 3870 test -z "$as_dir" && as_dir=. 3871 for ac_exec_ext in '' $ac_executable_extensions; do 3872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3873 ac_cv_prog_CC="${ac_tool_prefix}cc" 3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3875 break 2 3876 fi 3877done 3878 done 3879IFS=$as_save_IFS 3880 3881fi 3882fi 3883CC=$ac_cv_prog_CC 3884if test -n "$CC"; then 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3886$as_echo "$CC" >&6; } 3887else 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3889$as_echo "no" >&6; } 3890fi 3891 3892 3893 fi 3894fi 3895if test -z "$CC"; then 3896 # Extract the first word of "cc", so it can be a program name with args. 3897set dummy cc; ac_word=$2 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3899$as_echo_n "checking for $ac_word... " >&6; } 3900if ${ac_cv_prog_CC+:} false; then : 3901 $as_echo_n "(cached) " >&6 3902else 3903 if test -n "$CC"; then 3904 ac_cv_prog_CC="$CC" # Let the user override the test. 3905else 3906 ac_prog_rejected=no 3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3908for as_dir in $PATH 3909do 3910 IFS=$as_save_IFS 3911 test -z "$as_dir" && as_dir=. 3912 for ac_exec_ext in '' $ac_executable_extensions; do 3913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3915 ac_prog_rejected=yes 3916 continue 3917 fi 3918 ac_cv_prog_CC="cc" 3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3920 break 2 3921 fi 3922done 3923 done 3924IFS=$as_save_IFS 3925 3926if test $ac_prog_rejected = yes; then 3927 # We found a bogon in the path, so make sure we never use it. 3928 set dummy $ac_cv_prog_CC 3929 shift 3930 if test $# != 0; then 3931 # We chose a different compiler from the bogus one. 3932 # However, it has the same basename, so the bogon will be chosen 3933 # first if we set CC to just the basename; use the full file name. 3934 shift 3935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3936 fi 3937fi 3938fi 3939fi 3940CC=$ac_cv_prog_CC 3941if test -n "$CC"; then 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3943$as_echo "$CC" >&6; } 3944else 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3946$as_echo "no" >&6; } 3947fi 3948 3949 3950fi 3951if test -z "$CC"; then 3952 if test -n "$ac_tool_prefix"; then 3953 for ac_prog in cl.exe 3954 do 3955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3956set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3958$as_echo_n "checking for $ac_word... " >&6; } 3959if ${ac_cv_prog_CC+:} false; then : 3960 $as_echo_n "(cached) " >&6 3961else 3962 if test -n "$CC"; then 3963 ac_cv_prog_CC="$CC" # Let the user override the test. 3964else 3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3966for as_dir in $PATH 3967do 3968 IFS=$as_save_IFS 3969 test -z "$as_dir" && as_dir=. 3970 for ac_exec_ext in '' $ac_executable_extensions; do 3971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3972 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3974 break 2 3975 fi 3976done 3977 done 3978IFS=$as_save_IFS 3979 3980fi 3981fi 3982CC=$ac_cv_prog_CC 3983if test -n "$CC"; then 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3985$as_echo "$CC" >&6; } 3986else 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3988$as_echo "no" >&6; } 3989fi 3990 3991 3992 test -n "$CC" && break 3993 done 3994fi 3995if test -z "$CC"; then 3996 ac_ct_CC=$CC 3997 for ac_prog in cl.exe 3998do 3999 # Extract the first word of "$ac_prog", so it can be a program name with args. 4000set dummy $ac_prog; ac_word=$2 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4002$as_echo_n "checking for $ac_word... " >&6; } 4003if ${ac_cv_prog_ac_ct_CC+:} false; then : 4004 $as_echo_n "(cached) " >&6 4005else 4006 if test -n "$ac_ct_CC"; then 4007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4008else 4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4010for as_dir in $PATH 4011do 4012 IFS=$as_save_IFS 4013 test -z "$as_dir" && as_dir=. 4014 for ac_exec_ext in '' $ac_executable_extensions; do 4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4016 ac_cv_prog_ac_ct_CC="$ac_prog" 4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4018 break 2 4019 fi 4020done 4021 done 4022IFS=$as_save_IFS 4023 4024fi 4025fi 4026ac_ct_CC=$ac_cv_prog_ac_ct_CC 4027if test -n "$ac_ct_CC"; then 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4029$as_echo "$ac_ct_CC" >&6; } 4030else 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4032$as_echo "no" >&6; } 4033fi 4034 4035 4036 test -n "$ac_ct_CC" && break 4037done 4038 4039 if test "x$ac_ct_CC" = x; then 4040 CC="" 4041 else 4042 case $cross_compiling:$ac_tool_warned in 4043yes:) 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4046ac_tool_warned=yes ;; 4047esac 4048 CC=$ac_ct_CC 4049 fi 4050fi 4051 4052fi 4053 4054 4055test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4057as_fn_error $? "no acceptable C compiler found in \$PATH 4058See \`config.log' for more details" "$LINENO" 5; } 4059 4060# Provide some information about the compiler. 4061$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4062set X $ac_compile 4063ac_compiler=$2 4064for ac_option in --version -v -V -qversion; do 4065 { { ac_try="$ac_compiler $ac_option >&5" 4066case "(($ac_try" in 4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4068 *) ac_try_echo=$ac_try;; 4069esac 4070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4071$as_echo "$ac_try_echo"; } >&5 4072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4073 ac_status=$? 4074 if test -s conftest.err; then 4075 sed '10a\ 4076... rest of stderr output deleted ... 4077 10q' conftest.err >conftest.er1 4078 cat conftest.er1 >&5 4079 fi 4080 rm -f conftest.er1 conftest.err 4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4082 test $ac_status = 0; } 4083done 4084 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4086$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4087if ${ac_cv_c_compiler_gnu+:} false; then : 4088 $as_echo_n "(cached) " >&6 4089else 4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092 4093int 4094main () 4095{ 4096#ifndef __GNUC__ 4097 choke me 4098#endif 4099 4100 ; 4101 return 0; 4102} 4103_ACEOF 4104if ac_fn_c_try_compile "$LINENO"; then : 4105 ac_compiler_gnu=yes 4106else 4107 ac_compiler_gnu=no 4108fi 4109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4110ac_cv_c_compiler_gnu=$ac_compiler_gnu 4111 4112fi 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4114$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4115if test $ac_compiler_gnu = yes; then 4116 GCC=yes 4117else 4118 GCC= 4119fi 4120ac_test_CFLAGS=${CFLAGS+set} 4121ac_save_CFLAGS=$CFLAGS 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4123$as_echo_n "checking whether $CC accepts -g... " >&6; } 4124if ${ac_cv_prog_cc_g+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 ac_save_c_werror_flag=$ac_c_werror_flag 4128 ac_c_werror_flag=yes 4129 ac_cv_prog_cc_g=no 4130 CFLAGS="-g" 4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132/* end confdefs.h. */ 4133 4134int 4135main () 4136{ 4137 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142if ac_fn_c_try_compile "$LINENO"; then : 4143 ac_cv_prog_cc_g=yes 4144else 4145 CFLAGS="" 4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4147/* end confdefs.h. */ 4148 4149int 4150main () 4151{ 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157if ac_fn_c_try_compile "$LINENO"; then : 4158 4159else 4160 ac_c_werror_flag=$ac_save_c_werror_flag 4161 CFLAGS="-g" 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164 4165int 4166main () 4167{ 4168 4169 ; 4170 return 0; 4171} 4172_ACEOF 4173if ac_fn_c_try_compile "$LINENO"; then : 4174 ac_cv_prog_cc_g=yes 4175fi 4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4177fi 4178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4179fi 4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4181 ac_c_werror_flag=$ac_save_c_werror_flag 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4184$as_echo "$ac_cv_prog_cc_g" >&6; } 4185if test "$ac_test_CFLAGS" = set; then 4186 CFLAGS=$ac_save_CFLAGS 4187elif test $ac_cv_prog_cc_g = yes; then 4188 if test "$GCC" = yes; then 4189 CFLAGS="-g -O2" 4190 else 4191 CFLAGS="-g" 4192 fi 4193else 4194 if test "$GCC" = yes; then 4195 CFLAGS="-O2" 4196 else 4197 CFLAGS= 4198 fi 4199fi 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4201$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4202if ${ac_cv_prog_cc_c89+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 ac_cv_prog_cc_c89=no 4206ac_save_CC=$CC 4207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208/* end confdefs.h. */ 4209#include <stdarg.h> 4210#include <stdio.h> 4211struct stat; 4212/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4213struct buf { int x; }; 4214FILE * (*rcsopen) (struct buf *, struct stat *, int); 4215static char *e (p, i) 4216 char **p; 4217 int i; 4218{ 4219 return p[i]; 4220} 4221static char *f (char * (*g) (char **, int), char **p, ...) 4222{ 4223 char *s; 4224 va_list v; 4225 va_start (v,p); 4226 s = g (p, va_arg (v,int)); 4227 va_end (v); 4228 return s; 4229} 4230 4231/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4232 function prototypes and stuff, but not '\xHH' hex character constants. 4233 These don't provoke an error unfortunately, instead are silently treated 4234 as 'x'. The following induces an error, until -std is added to get 4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4236 array size at least. It's necessary to write '\x00'==0 to get something 4237 that's true only with -std. */ 4238int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4239 4240/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4241 inside strings and character constants. */ 4242#define FOO(x) 'x' 4243int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4244 4245int test (int i, double x); 4246struct s1 {int (*f) (int a);}; 4247struct s2 {int (*f) (double a);}; 4248int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4249int argc; 4250char **argv; 4251int 4252main () 4253{ 4254return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4255 ; 4256 return 0; 4257} 4258_ACEOF 4259for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4261do 4262 CC="$ac_save_CC $ac_arg" 4263 if ac_fn_c_try_compile "$LINENO"; then : 4264 ac_cv_prog_cc_c89=$ac_arg 4265fi 4266rm -f core conftest.err conftest.$ac_objext 4267 test "x$ac_cv_prog_cc_c89" != "xno" && break 4268done 4269rm -f conftest.$ac_ext 4270CC=$ac_save_CC 4271 4272fi 4273# AC_CACHE_VAL 4274case "x$ac_cv_prog_cc_c89" in 4275 x) 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4277$as_echo "none needed" >&6; } ;; 4278 xno) 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4280$as_echo "unsupported" >&6; } ;; 4281 *) 4282 CC="$CC $ac_cv_prog_cc_c89" 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4284$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4285esac 4286if test "x$ac_cv_prog_cc_c89" != xno; then : 4287 4288fi 4289 4290ac_ext=c 4291ac_cpp='$CPP $CPPFLAGS' 4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4294ac_compiler_gnu=$ac_cv_c_compiler_gnu 4295 4296ac_ext=c 4297ac_cpp='$CPP $CPPFLAGS' 4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4300ac_compiler_gnu=$ac_cv_c_compiler_gnu 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4302$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4303if ${am_cv_prog_cc_c_o+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307/* end confdefs.h. */ 4308 4309int 4310main () 4311{ 4312 4313 ; 4314 return 0; 4315} 4316_ACEOF 4317 # Make sure it works both with $CC and with simple cc. 4318 # Following AC_PROG_CC_C_O, we do the test twice because some 4319 # compilers refuse to overwrite an existing .o file with -o, 4320 # though they will create one. 4321 am_cv_prog_cc_c_o=yes 4322 for am_i in 1 2; do 4323 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4324 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4325 ac_status=$? 4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4327 (exit $ac_status); } \ 4328 && test -f conftest2.$ac_objext; then 4329 : OK 4330 else 4331 am_cv_prog_cc_c_o=no 4332 break 4333 fi 4334 done 4335 rm -f core conftest* 4336 unset am_i 4337fi 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4339$as_echo "$am_cv_prog_cc_c_o" >&6; } 4340if test "$am_cv_prog_cc_c_o" != yes; then 4341 # Losing compiler, so override with the script. 4342 # FIXME: It is wrong to rewrite CC. 4343 # But if we don't then we get into trouble of one sort or another. 4344 # A longer-term fix would be to have automake use am__CC in this case, 4345 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4346 CC="$am_aux_dir/compile $CC" 4347fi 4348ac_ext=c 4349ac_cpp='$CPP $CPPFLAGS' 4350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4352ac_compiler_gnu=$ac_cv_c_compiler_gnu 4353 4354 4355depcc="$CC" am_compiler_list= 4356 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4358$as_echo_n "checking dependency style of $depcc... " >&6; } 4359if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4360 $as_echo_n "(cached) " >&6 4361else 4362 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4363 # We make a subdir and do the tests there. Otherwise we can end up 4364 # making bogus files that we don't know about and never remove. For 4365 # instance it was reported that on HP-UX the gcc test will end up 4366 # making a dummy file named 'D' -- because '-MD' means "put the output 4367 # in D". 4368 rm -rf conftest.dir 4369 mkdir conftest.dir 4370 # Copy depcomp to subdir because otherwise we won't find it if we're 4371 # using a relative directory. 4372 cp "$am_depcomp" conftest.dir 4373 cd conftest.dir 4374 # We will build objects and dependencies in a subdirectory because 4375 # it helps to detect inapplicable dependency modes. For instance 4376 # both Tru64's cc and ICC support -MD to output dependencies as a 4377 # side effect of compilation, but ICC will put the dependencies in 4378 # the current directory while Tru64 will put them in the object 4379 # directory. 4380 mkdir sub 4381 4382 am_cv_CC_dependencies_compiler_type=none 4383 if test "$am_compiler_list" = ""; then 4384 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4385 fi 4386 am__universal=false 4387 case " $depcc " in #( 4388 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4389 esac 4390 4391 for depmode in $am_compiler_list; do 4392 # Setup a source with many dependencies, because some compilers 4393 # like to wrap large dependency lists on column 80 (with \), and 4394 # we should not choose a depcomp mode which is confused by this. 4395 # 4396 # We need to recreate these files for each test, as the compiler may 4397 # overwrite some of them when testing with obscure command lines. 4398 # This happens at least with the AIX C compiler. 4399 : > sub/conftest.c 4400 for i in 1 2 3 4 5 6; do 4401 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4402 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4403 # Solaris 10 /bin/sh. 4404 echo '/* dummy */' > sub/conftst$i.h 4405 done 4406 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4407 4408 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4409 # mode. It turns out that the SunPro C++ compiler does not properly 4410 # handle '-M -o', and we need to detect this. Also, some Intel 4411 # versions had trouble with output in subdirs. 4412 am__obj=sub/conftest.${OBJEXT-o} 4413 am__minus_obj="-o $am__obj" 4414 case $depmode in 4415 gcc) 4416 # This depmode causes a compiler race in universal mode. 4417 test "$am__universal" = false || continue 4418 ;; 4419 nosideeffect) 4420 # After this tag, mechanisms are not by side-effect, so they'll 4421 # only be used when explicitly requested. 4422 if test "x$enable_dependency_tracking" = xyes; then 4423 continue 4424 else 4425 break 4426 fi 4427 ;; 4428 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4429 # This compiler won't grok '-c -o', but also, the minuso test has 4430 # not run yet. These depmodes are late enough in the game, and 4431 # so weak that their functioning should not be impacted. 4432 am__obj=conftest.${OBJEXT-o} 4433 am__minus_obj= 4434 ;; 4435 none) break ;; 4436 esac 4437 if depmode=$depmode \ 4438 source=sub/conftest.c object=$am__obj \ 4439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4440 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4441 >/dev/null 2>conftest.err && 4442 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4444 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4446 # icc doesn't choke on unknown options, it will just issue warnings 4447 # or remarks (even with -Werror). So we grep stderr for any message 4448 # that says an option was ignored or not supported. 4449 # When given -MP, icc 7.0 and 7.1 complain thusly: 4450 # icc: Command line warning: ignoring option '-M'; no argument required 4451 # The diagnosis changed in icc 8.0: 4452 # icc: Command line remark: option '-MP' not supported 4453 if (grep 'ignoring option' conftest.err || 4454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4455 am_cv_CC_dependencies_compiler_type=$depmode 4456 break 4457 fi 4458 fi 4459 done 4460 4461 cd .. 4462 rm -rf conftest.dir 4463else 4464 am_cv_CC_dependencies_compiler_type=none 4465fi 4466 4467fi 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4469$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4470CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4471 4472 if 4473 test "x$enable_dependency_tracking" != xno \ 4474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4475 am__fastdepCC_TRUE= 4476 am__fastdepCC_FALSE='#' 4477else 4478 am__fastdepCC_TRUE='#' 4479 am__fastdepCC_FALSE= 4480fi 4481 4482 4483ac_ext=c 4484ac_cpp='$CPP $CPPFLAGS' 4485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4487ac_compiler_gnu=$ac_cv_c_compiler_gnu 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4489$as_echo_n "checking how to run the C preprocessor... " >&6; } 4490# On Suns, sometimes $CPP names a directory. 4491if test -n "$CPP" && test -d "$CPP"; then 4492 CPP= 4493fi 4494if test -z "$CPP"; then 4495 if ${ac_cv_prog_CPP+:} false; then : 4496 $as_echo_n "(cached) " >&6 4497else 4498 # Double quotes because CPP needs to be expanded 4499 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4500 do 4501 ac_preproc_ok=false 4502for ac_c_preproc_warn_flag in '' yes 4503do 4504 # Use a header file that comes with gcc, so configuring glibc 4505 # with a fresh cross-compiler works. 4506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4507 # <limits.h> exists even on freestanding compilers. 4508 # On the NeXT, cc -E runs the code through the compiler's parser, 4509 # not just through cpp. "Syntax error" is here to catch this case. 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511/* end confdefs.h. */ 4512#ifdef __STDC__ 4513# include <limits.h> 4514#else 4515# include <assert.h> 4516#endif 4517 Syntax error 4518_ACEOF 4519if ac_fn_c_try_cpp "$LINENO"; then : 4520 4521else 4522 # Broken: fails on valid input. 4523continue 4524fi 4525rm -f conftest.err conftest.i conftest.$ac_ext 4526 4527 # OK, works on sane cases. Now check whether nonexistent headers 4528 # can be detected and how. 4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4530/* end confdefs.h. */ 4531#include <ac_nonexistent.h> 4532_ACEOF 4533if ac_fn_c_try_cpp "$LINENO"; then : 4534 # Broken: success on invalid input. 4535continue 4536else 4537 # Passes both tests. 4538ac_preproc_ok=: 4539break 4540fi 4541rm -f conftest.err conftest.i conftest.$ac_ext 4542 4543done 4544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4545rm -f conftest.i conftest.err conftest.$ac_ext 4546if $ac_preproc_ok; then : 4547 break 4548fi 4549 4550 done 4551 ac_cv_prog_CPP=$CPP 4552 4553fi 4554 CPP=$ac_cv_prog_CPP 4555else 4556 ac_cv_prog_CPP=$CPP 4557fi 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4559$as_echo "$CPP" >&6; } 4560ac_preproc_ok=false 4561for ac_c_preproc_warn_flag in '' yes 4562do 4563 # Use a header file that comes with gcc, so configuring glibc 4564 # with a fresh cross-compiler works. 4565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4566 # <limits.h> exists even on freestanding compilers. 4567 # On the NeXT, cc -E runs the code through the compiler's parser, 4568 # not just through cpp. "Syntax error" is here to catch this case. 4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4570/* end confdefs.h. */ 4571#ifdef __STDC__ 4572# include <limits.h> 4573#else 4574# include <assert.h> 4575#endif 4576 Syntax error 4577_ACEOF 4578if ac_fn_c_try_cpp "$LINENO"; then : 4579 4580else 4581 # Broken: fails on valid input. 4582continue 4583fi 4584rm -f conftest.err conftest.i conftest.$ac_ext 4585 4586 # OK, works on sane cases. Now check whether nonexistent headers 4587 # can be detected and how. 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4589/* end confdefs.h. */ 4590#include <ac_nonexistent.h> 4591_ACEOF 4592if ac_fn_c_try_cpp "$LINENO"; then : 4593 # Broken: success on invalid input. 4594continue 4595else 4596 # Passes both tests. 4597ac_preproc_ok=: 4598break 4599fi 4600rm -f conftest.err conftest.i conftest.$ac_ext 4601 4602done 4603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4604rm -f conftest.i conftest.err conftest.$ac_ext 4605if $ac_preproc_ok; then : 4606 4607else 4608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4610as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4611See \`config.log' for more details" "$LINENO" 5; } 4612fi 4613 4614ac_ext=c 4615ac_cpp='$CPP $CPPFLAGS' 4616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4618ac_compiler_gnu=$ac_cv_c_compiler_gnu 4619 4620# Make sure we can run config.sub. 4621$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4622 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4623 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4625$as_echo_n "checking build system type... " >&6; } 4626if ${ac_cv_build+:} false; then : 4627 $as_echo_n "(cached) " >&6 4628else 4629 ac_build_alias=$build_alias 4630test "x$ac_build_alias" = x && 4631 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4632test "x$ac_build_alias" = x && 4633 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4634ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4636 4637fi 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4639$as_echo "$ac_cv_build" >&6; } 4640case $ac_cv_build in 4641*-*-*) ;; 4642*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4643esac 4644build=$ac_cv_build 4645ac_save_IFS=$IFS; IFS='-' 4646set x $ac_cv_build 4647shift 4648build_cpu=$1 4649build_vendor=$2 4650shift; shift 4651# Remember, the first character of IFS is used to create $*, 4652# except with old shells: 4653build_os=$* 4654IFS=$ac_save_IFS 4655case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4656 4657 4658 4659 4660cross_compiling_build=no 4661 4662ac_build_tool_prefix= 4663if test -n "$build"; then : 4664 ac_build_tool_prefix="$build-" 4665elif test -n "$build_alias"; then : 4666 ac_build_tool_prefix="$build_alias-" 4667fi 4668 4669ac_ext=c 4670ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 4671ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 4672ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 4673ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 4674 4675ac_ext=c 4676ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 4677ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 4678ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 4679ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 4680if test -n "$ac_build_tool_prefix"; then 4681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4682set dummy ${ac_build_tool_prefix}gcc; ac_word=$2 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4684$as_echo_n "checking for $ac_word... " >&6; } 4685if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 if test -n "$CC_FOR_BUILD"; then 4689 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 4690else 4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4692for as_dir in $PATH 4693do 4694 IFS=$as_save_IFS 4695 test -z "$as_dir" && as_dir=. 4696 for ac_exec_ext in '' $ac_executable_extensions; do 4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4698 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc" 4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4700 break 2 4701 fi 4702done 4703 done 4704IFS=$as_save_IFS 4705 4706fi 4707fi 4708CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 4709if test -n "$CC_FOR_BUILD"; then 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 4711$as_echo "$CC_FOR_BUILD" >&6; } 4712else 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4714$as_echo "no" >&6; } 4715fi 4716 4717 4718fi 4719if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 4720 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 4721 # Extract the first word of "gcc", so it can be a program name with args. 4722set dummy gcc; ac_word=$2 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4724$as_echo_n "checking for $ac_word... " >&6; } 4725if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 if test -n "$ac_ct_CC_FOR_BUILD"; then 4729 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 4730else 4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732for as_dir in $PATH 4733do 4734 IFS=$as_save_IFS 4735 test -z "$as_dir" && as_dir=. 4736 for ac_exec_ext in '' $ac_executable_extensions; do 4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4738 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" 4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4740 break 2 4741 fi 4742done 4743 done 4744IFS=$as_save_IFS 4745 4746fi 4747fi 4748ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 4749if test -n "$ac_ct_CC_FOR_BUILD"; then 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 4751$as_echo "$ac_ct_CC_FOR_BUILD" >&6; } 4752else 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4754$as_echo "no" >&6; } 4755fi 4756 4757 if test "x$ac_ct_CC_FOR_BUILD" = x; then 4758 CC_FOR_BUILD="" 4759 else 4760 case $cross_compiling_build:$ac_tool_warned in 4761yes:) 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 4763$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 4764ac_tool_warned=yes ;; 4765esac 4766 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 4767 fi 4768else 4769 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 4770fi 4771 4772if test -z "$CC_FOR_BUILD"; then 4773 if test -n "$ac_build_tool_prefix"; then 4774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4775set dummy ${ac_build_tool_prefix}cc; ac_word=$2 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4777$as_echo_n "checking for $ac_word... " >&6; } 4778if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 4779 $as_echo_n "(cached) " >&6 4780else 4781 if test -n "$CC_FOR_BUILD"; then 4782 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 4783else 4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785for as_dir in $PATH 4786do 4787 IFS=$as_save_IFS 4788 test -z "$as_dir" && as_dir=. 4789 for ac_exec_ext in '' $ac_executable_extensions; do 4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4791 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc" 4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4793 break 2 4794 fi 4795done 4796 done 4797IFS=$as_save_IFS 4798 4799fi 4800fi 4801CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 4802if test -n "$CC_FOR_BUILD"; then 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 4804$as_echo "$CC_FOR_BUILD" >&6; } 4805else 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4807$as_echo "no" >&6; } 4808fi 4809 4810 4811 fi 4812fi 4813if test -z "$CC_FOR_BUILD"; then 4814 # Extract the first word of "cc", so it can be a program name with args. 4815set dummy cc; ac_word=$2 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4817$as_echo_n "checking for $ac_word... " >&6; } 4818if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 4819 $as_echo_n "(cached) " >&6 4820else 4821 if test -n "$CC_FOR_BUILD"; then 4822 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 4823else 4824 ac_prog_rejected=no 4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826for as_dir in $PATH 4827do 4828 IFS=$as_save_IFS 4829 test -z "$as_dir" && as_dir=. 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4832 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4833 ac_prog_rejected=yes 4834 continue 4835 fi 4836 ac_cv_prog_CC_FOR_BUILD="cc" 4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4838 break 2 4839 fi 4840done 4841 done 4842IFS=$as_save_IFS 4843 4844if test $ac_prog_rejected = yes; then 4845 # We found a bogon in the path, so make sure we never use it. 4846 set dummy $ac_cv_prog_CC_FOR_BUILD 4847 shift 4848 if test $# != 0; then 4849 # We chose a different compiler from the bogus one. 4850 # However, it has the same basename, so the bogon will be chosen 4851 # first if we set CC_FOR_BUILD to just the basename; use the full file name. 4852 shift 4853 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@" 4854 fi 4855fi 4856fi 4857fi 4858CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 4859if test -n "$CC_FOR_BUILD"; then 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 4861$as_echo "$CC_FOR_BUILD" >&6; } 4862else 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4864$as_echo "no" >&6; } 4865fi 4866 4867 4868fi 4869if test -z "$CC_FOR_BUILD"; then 4870 if test -n "$ac_build_tool_prefix"; then 4871 for ac_prog in cl.exe 4872 do 4873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4874set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4876$as_echo_n "checking for $ac_word... " >&6; } 4877if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 4878 $as_echo_n "(cached) " >&6 4879else 4880 if test -n "$CC_FOR_BUILD"; then 4881 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 4882else 4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4884for as_dir in $PATH 4885do 4886 IFS=$as_save_IFS 4887 test -z "$as_dir" && as_dir=. 4888 for ac_exec_ext in '' $ac_executable_extensions; do 4889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4890 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog" 4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4892 break 2 4893 fi 4894done 4895 done 4896IFS=$as_save_IFS 4897 4898fi 4899fi 4900CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 4901if test -n "$CC_FOR_BUILD"; then 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 4903$as_echo "$CC_FOR_BUILD" >&6; } 4904else 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4906$as_echo "no" >&6; } 4907fi 4908 4909 4910 test -n "$CC_FOR_BUILD" && break 4911 done 4912fi 4913if test -z "$CC_FOR_BUILD"; then 4914 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 4915 for ac_prog in cl.exe 4916do 4917 # Extract the first word of "$ac_prog", so it can be a program name with args. 4918set dummy $ac_prog; ac_word=$2 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4920$as_echo_n "checking for $ac_word... " >&6; } 4921if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 if test -n "$ac_ct_CC_FOR_BUILD"; then 4925 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 4926else 4927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4928for as_dir in $PATH 4929do 4930 IFS=$as_save_IFS 4931 test -z "$as_dir" && as_dir=. 4932 for ac_exec_ext in '' $ac_executable_extensions; do 4933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4934 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" 4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4936 break 2 4937 fi 4938done 4939 done 4940IFS=$as_save_IFS 4941 4942fi 4943fi 4944ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 4945if test -n "$ac_ct_CC_FOR_BUILD"; then 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 4947$as_echo "$ac_ct_CC_FOR_BUILD" >&6; } 4948else 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4950$as_echo "no" >&6; } 4951fi 4952 4953 4954 test -n "$ac_ct_CC_FOR_BUILD" && break 4955done 4956 4957 if test "x$ac_ct_CC_FOR_BUILD" = x; then 4958 CC_FOR_BUILD="" 4959 else 4960 case $cross_compiling_build:$ac_tool_warned in 4961yes:) 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 4963$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 4964ac_tool_warned=yes ;; 4965esac 4966 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 4967 fi 4968fi 4969 4970fi 4971 4972 4973test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4975as_fn_error $? "no acceptable C compiler found in \$PATH 4976See \`config.log' for more details" "$LINENO" 5; } 4977 4978# Provide some information about the compiler. 4979$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4980set X $ac_compile 4981ac_compiler=$2 4982for ac_option in --version -v -V -qversion; do 4983 { { ac_try="$ac_compiler $ac_option >&5" 4984case "(($ac_try" in 4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4986 *) ac_try_echo=$ac_try;; 4987esac 4988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4989$as_echo "$ac_try_echo"; } >&5 4990 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4991 ac_status=$? 4992 if test -s conftest.err; then 4993 sed '10a\ 4994... rest of stderr output deleted ... 4995 10q' conftest.err >conftest.er1 4996 cat conftest.er1 >&5 4997 fi 4998 rm -f conftest.er1 conftest.err 4999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5000 test $ac_status = 0; } 5001done 5002 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5004$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5005if ${ac_cv_c_compiler_gnu+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5009/* end confdefs.h. */ 5010 5011int 5012main () 5013{ 5014#ifndef __GNUC__ 5015 choke me 5016#endif 5017 5018 ; 5019 return 0; 5020} 5021_ACEOF 5022if ac_fn_c_try_compile "$LINENO"; then : 5023 ac_compiler_gnu=yes 5024else 5025 ac_compiler_gnu=no 5026fi 5027rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5028ac_cv_c_compiler_gnu=$ac_compiler_gnu 5029 5030fi 5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5032$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5033if test $ac_compiler_gnu = yes; then 5034 GCC_FOR_BUILD=yes 5035else 5036 GCC_FOR_BUILD= 5037fi 5038ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set} 5039ac_save_CFLAGS=$CFLAGS_FOR_BUILD 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 5041$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; } 5042if ${ac_cv_build_prog_cc_g+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 ac_save_c_werror_flag=$ac_c_werror_flag 5046 ac_c_werror_flag=yes 5047 ac_cv_build_prog_cc_g=no 5048 CFLAGS_FOR_BUILD="-g" 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051 5052int 5053main () 5054{ 5055 5056 ; 5057 return 0; 5058} 5059_ACEOF 5060if ac_fn_c_try_compile "$LINENO"; then : 5061 ac_cv_build_prog_cc_g=yes 5062else 5063 CFLAGS_FOR_BUILD="" 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066 5067int 5068main () 5069{ 5070 5071 ; 5072 return 0; 5073} 5074_ACEOF 5075if ac_fn_c_try_compile "$LINENO"; then : 5076 5077else 5078 ac_c_werror_flag=$ac_save_c_werror_flag 5079 CFLAGS_FOR_BUILD="-g" 5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5081/* end confdefs.h. */ 5082 5083int 5084main () 5085{ 5086 5087 ; 5088 return 0; 5089} 5090_ACEOF 5091if ac_fn_c_try_compile "$LINENO"; then : 5092 ac_cv_build_prog_cc_g=yes 5093fi 5094rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5095fi 5096rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5097fi 5098rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5099 ac_c_werror_flag=$ac_save_c_werror_flag 5100fi 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 5102$as_echo "$ac_cv_build_prog_cc_g" >&6; } 5103if test "$ac_test_CFLAGS" = set; then 5104 CFLAGS_FOR_BUILD=$ac_save_CFLAGS 5105elif test $ac_cv_build_prog_cc_g = yes; then 5106 if test "$GCC_FOR_BUILD" = yes; then 5107 CFLAGS_FOR_BUILD="-g -O2" 5108 else 5109 CFLAGS_FOR_BUILD="-g" 5110 fi 5111else 5112 if test "$GCC_FOR_BUILD" = yes; then 5113 CFLAGS_FOR_BUILD="-O2" 5114 else 5115 CFLAGS_FOR_BUILD= 5116 fi 5117fi 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5 5119$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; } 5120if ${ac_cv_build_prog_cc_c89+:} false; then : 5121 $as_echo_n "(cached) " >&6 5122else 5123 ac_cv_build_prog_cc_c89=no 5124ac_save_CC=$CC_FOR_BUILD 5125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126/* end confdefs.h. */ 5127#include <stdarg.h> 5128#include <stdio.h> 5129struct stat; 5130/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5131struct buf { int x; }; 5132FILE * (*rcsopen) (struct buf *, struct stat *, int); 5133static char *e (p, i) 5134 char **p; 5135 int i; 5136{ 5137 return p[i]; 5138} 5139static char *f (char * (*g) (char **, int), char **p, ...) 5140{ 5141 char *s; 5142 va_list v; 5143 va_start (v,p); 5144 s = g (p, va_arg (v,int)); 5145 va_end (v); 5146 return s; 5147} 5148 5149/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5150 function prototypes and stuff, but not '\xHH' hex character constants. 5151 These don't provoke an error unfortunately, instead are silently treated 5152 as 'x'. The following induces an error, until -std is added to get 5153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5154 array size at least. It's necessary to write '\x00'==0 to get something 5155 that's true only with -std. */ 5156int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5157 5158/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5159 inside strings and character constants. */ 5160#define FOO(x) 'x' 5161int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5162 5163int test (int i, double x); 5164struct s1 {int (*f) (int a);}; 5165struct s2 {int (*f) (double a);}; 5166int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5167int argc; 5168char **argv; 5169int 5170main () 5171{ 5172return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5173 ; 5174 return 0; 5175} 5176_ACEOF 5177for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5178 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5179do 5180 CC_FOR_BUILD="$ac_save_CC $ac_arg" 5181 if ac_fn_c_try_compile "$LINENO"; then : 5182 ac_cv_build_prog_cc_c89=$ac_arg 5183fi 5184rm -f core conftest.err conftest.$ac_build_objext 5185 test "x$ac_cv_build_prog_cc_c89" != "xno" && break 5186done 5187rm -f conftest.$ac_ext 5188CC_FOR_BUILD=$ac_save_CC 5189 5190fi 5191# AC_CACHE_VAL 5192case "x$ac_cv_build_prog_cc_c89" in 5193 x) 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5195$as_echo "none needed" >&6; } ;; 5196 xno) 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5198$as_echo "unsupported" >&6; } ;; 5199 *) 5200 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5 5202$as_echo "$ac_cv_build_prog_cc_c89" >&6; } ;; 5203esac 5204if test "x$ac_cv_build_prog_cc_c89" != xno; then : 5205 5206fi 5207 5208ac_ext=c 5209ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5210ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5211ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5212ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5213 5214ac_ext=c 5215ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5216ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5217ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5218ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 5220$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } 5221if ${am_cv_build_prog_cc_c_o+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5225/* end confdefs.h. */ 5226 5227int 5228main () 5229{ 5230 5231 ; 5232 return 0; 5233} 5234_ACEOF 5235 # Make sure it works both with $CC and with simple cc. 5236 # Following AC_PROG_CC_C_O, we do the test twice because some 5237 # compilers refuse to overwrite an existing .o file with -o, 5238 # though they will create one. 5239 am_cv_build_prog_cc_c_o=yes 5240 for am_i in 1 2; do 5241 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 5242 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 5243 ac_status=$? 5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5245 (exit $ac_status); } \ 5246 && test -f conftest2.$ac_build_objext; then 5247 : OK 5248 else 5249 am_cv_build_prog_cc_c_o=no 5250 break 5251 fi 5252 done 5253 rm -f core conftest* 5254 unset am_i 5255fi 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5 5257$as_echo "$am_cv_build_prog_cc_c_o" >&6; } 5258if test "$am_cv_build_prog_cc_c_o" != yes; then 5259 # Losing compiler, so override with the script. 5260 # FIXME: It is wrong to rewrite CC. 5261 # But if we don't then we get into trouble of one sort or another. 5262 # A longer-term fix would be to have automake use am__CC in this case, 5263 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5264 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" 5265fi 5266ac_ext=c 5267ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5268ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5269ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5270ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5271 5272 5273depcc="$CC_FOR_BUILD" am_compiler_list= 5274 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5276$as_echo_n "checking dependency style of $depcc... " >&6; } 5277if ${am_cv_build_CC_dependencies_compiler_type+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5281 # We make a subdir and do the tests there. Otherwise we can end up 5282 # making bogus files that we don't know about and never remove. For 5283 # instance it was reported that on HP-UX the gcc test will end up 5284 # making a dummy file named 'D' -- because '-MD' means "put the output 5285 # in D". 5286 rm -rf conftest.dir 5287 mkdir conftest.dir 5288 # Copy depcomp to subdir because otherwise we won't find it if we're 5289 # using a relative directory. 5290 cp "$am_depcomp" conftest.dir 5291 cd conftest.dir 5292 # We will build objects and dependencies in a subdirectory because 5293 # it helps to detect inapplicable dependency modes. For instance 5294 # both Tru64's cc and ICC support -MD to output dependencies as a 5295 # side effect of compilation, but ICC will put the dependencies in 5296 # the current directory while Tru64 will put them in the object 5297 # directory. 5298 mkdir sub 5299 5300 am_cv_build_CC_dependencies_compiler_type=none 5301 if test "$am_compiler_list" = ""; then 5302 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5303 fi 5304 am__universal=false 5305 case " $depcc " in #( 5306 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5307 esac 5308 5309 for depmode in $am_compiler_list; do 5310 # Setup a source with many dependencies, because some compilers 5311 # like to wrap large dependency lists on column 80 (with \), and 5312 # we should not choose a depcomp mode which is confused by this. 5313 # 5314 # We need to recreate these files for each test, as the compiler may 5315 # overwrite some of them when testing with obscure command lines. 5316 # This happens at least with the AIX C compiler. 5317 : > sub/conftest.c 5318 for i in 1 2 3 4 5 6; do 5319 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5320 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5321 # Solaris 10 /bin/sh. 5322 echo '/* dummy */' > sub/conftst$i.h 5323 done 5324 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5325 5326 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5327 # mode. It turns out that the SunPro C++ compiler does not properly 5328 # handle '-M -o', and we need to detect this. Also, some Intel 5329 # versions had trouble with output in subdirs. 5330 am__obj=sub/conftest.${BUILD_OBJEXT-o} 5331 am__minus_obj="-o $am__obj" 5332 case $depmode in 5333 gcc) 5334 # This depmode causes a compiler race in universal mode. 5335 test "$am__universal" = false || continue 5336 ;; 5337 nosideeffect) 5338 # After this tag, mechanisms are not by side-effect, so they'll 5339 # only be used when explicitly requested. 5340 if test "x$enable_dependency_tracking" = xyes; then 5341 continue 5342 else 5343 break 5344 fi 5345 ;; 5346 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5347 # This compiler won't grok '-c -o', but also, the minuso test has 5348 # not run yet. These depmodes are late enough in the game, and 5349 # so weak that their functioning should not be impacted. 5350 am__obj=conftest.${BUILD_OBJEXT-o} 5351 am__minus_obj= 5352 ;; 5353 none) break ;; 5354 esac 5355 if depmode=$depmode \ 5356 source=sub/conftest.c object=$am__obj \ 5357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5358 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5359 >/dev/null 2>conftest.err && 5360 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5361 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5362 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5363 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5364 # icc doesn't choke on unknown options, it will just issue warnings 5365 # or remarks (even with -Werror). So we grep stderr for any message 5366 # that says an option was ignored or not supported. 5367 # When given -MP, icc 7.0 and 7.1 complain thusly: 5368 # icc: Command line warning: ignoring option '-M'; no argument required 5369 # The diagnosis changed in icc 8.0: 5370 # icc: Command line remark: option '-MP' not supported 5371 if (grep 'ignoring option' conftest.err || 5372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5373 am_cv_build_CC_dependencies_compiler_type=$depmode 5374 break 5375 fi 5376 fi 5377 done 5378 5379 cd .. 5380 rm -rf conftest.dir 5381else 5382 am_cv_build_CC_dependencies_compiler_type=none 5383fi 5384 5385fi 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5 5387$as_echo "$am_cv_build_CC_dependencies_compiler_type" >&6; } 5388CCDEPMODE_FOR_BUILD=depmode=$am_cv_build_CC_dependencies_compiler_type 5389 5390 if 5391 test "x$enable_dependency_tracking" != xno \ 5392 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then 5393 am__fastdepCC_build_TRUE= 5394 am__fastdepCC_build_FALSE='#' 5395else 5396 am__fastdepCC_build_TRUE='#' 5397 am__fastdepCC_build_FALSE= 5398fi 5399 5400 5401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5402/* end confdefs.h. */ 5403 5404int 5405main () 5406{ 5407 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412ac_clean_files_save=$ac_clean_files 5413ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5414# Try to create an executable without -o first, disregard a.out. 5415# It will help us diagnose broken compilers, and finding out an intuition 5416# of exeext. 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5418$as_echo_n "checking whether the C compiler works... " >&6; } 5419ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5420 5421# The possible output files: 5422ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5423 5424ac_rmfiles= 5425for ac_file in $ac_files 5426do 5427 case $ac_file in 5428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5429 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5430 esac 5431done 5432rm -f $ac_rmfiles 5433 5434if { { ac_try="$ac_link_default" 5435case "(($ac_try" in 5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5437 *) ac_try_echo=$ac_try;; 5438esac 5439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5440$as_echo "$ac_try_echo"; } >&5 5441 (eval "$ac_link_default") 2>&5 5442 ac_status=$? 5443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5444 test $ac_status = 0; }; then : 5445 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5446# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5447# in a Makefile. We should not override ac_cv_exeext if it was cached, 5448# so that the user can short-circuit this test for compilers unknown to 5449# Autoconf. 5450for ac_file in $ac_files '' 5451do 5452 test -f "$ac_file" || continue 5453 case $ac_file in 5454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5455 ;; 5456 [ab].out ) 5457 # We found the default executable, but exeext='' is most 5458 # certainly right. 5459 break;; 5460 *.* ) 5461 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no; 5462 then :; else 5463 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5464 fi 5465 # We set ac_cv_exeext here because the later test for it is not 5466 # safe: cross compilers may not add the suffix if given an `-o' 5467 # argument, so we may need to know it at that point already. 5468 # Even if this section looks crufty: it has the advantage of 5469 # actually working. 5470 break;; 5471 * ) 5472 break;; 5473 esac 5474done 5475test "$ac_cv_build_exeext" = no && ac_cv_build_exeext= 5476 5477else 5478 ac_file='' 5479fi 5480if test -z "$ac_file"; then : 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5482$as_echo "no" >&6; } 5483$as_echo "$as_me: failed program was:" >&5 5484sed 's/^/| /' conftest.$ac_ext >&5 5485 5486{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5488as_fn_error 77 "C compiler cannot create executables 5489See \`config.log' for more details" "$LINENO" 5; } 5490else 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5492$as_echo "yes" >&6; } 5493fi 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5495$as_echo_n "checking for C compiler default output file name... " >&6; } 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5497$as_echo "$ac_file" >&6; } 5498ac_build_exeext=$ac_cv_build_exeext 5499 5500rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out 5501ac_clean_files=$ac_clean_files_save 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5503$as_echo_n "checking for suffix of executables... " >&6; } 5504if { { ac_try="$ac_link" 5505case "(($ac_try" in 5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5507 *) ac_try_echo=$ac_try;; 5508esac 5509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5510$as_echo "$ac_try_echo"; } >&5 5511 (eval "$ac_link") 2>&5 5512 ac_status=$? 5513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5514 test $ac_status = 0; }; then : 5515 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5516# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5517# work properly (i.e., refer to `conftest.exe'), while it won't with 5518# `rm'. 5519for ac_file in conftest.exe conftest conftest.*; do 5520 test -f "$ac_file" || continue 5521 case $ac_file in 5522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5523 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5524 break;; 5525 * ) break;; 5526 esac 5527done 5528else 5529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5531as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5532See \`config.log' for more details" "$LINENO" 5; } 5533fi 5534rm -f conftest conftest$ac_cv_build_exeext 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5 5536$as_echo "$ac_cv_build_exeext" >&6; } 5537 5538rm -f conftest.$ac_ext 5539BUILD_EXEEXT=$ac_cv_build_exeext 5540ac_build_exeext=$BUILD_EXEEXT 5541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543#include <stdio.h> 5544int 5545main () 5546{ 5547FILE *f = fopen ("conftest.out", "w"); 5548 return ferror (f) || fclose (f) != 0; 5549 5550 ; 5551 return 0; 5552} 5553_ACEOF 5554ac_clean_files="$ac_clean_files conftest.out" 5555# Check that the compiler produces executables we can run. If not, either 5556# the compiler is broken, or we cross compile. 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5558$as_echo_n "checking whether we are cross compiling... " >&6; } 5559if test "$cross_compiling_build" != yes; then 5560 { { ac_try="$ac_link" 5561case "(($ac_try" in 5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5563 *) ac_try_echo=$ac_try;; 5564esac 5565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5566$as_echo "$ac_try_echo"; } >&5 5567 (eval "$ac_link") 2>&5 5568 ac_status=$? 5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5570 test $ac_status = 0; } 5571 if { ac_try='./conftest$ac_cv_build_exeext' 5572 { { case "(($ac_try" in 5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5574 *) ac_try_echo=$ac_try;; 5575esac 5576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5577$as_echo "$ac_try_echo"; } >&5 5578 (eval "$ac_try") 2>&5 5579 ac_status=$? 5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5581 test $ac_status = 0; }; }; then 5582 cross_compiling_build=no 5583 else 5584 if test "$cross_compiling_build" = maybe; then 5585 cross_compiling_build=yes 5586 else 5587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5589as_fn_error $? "cannot run C compiled programs. 5590If you meant to cross compile, use \`--build'. 5591See \`config.log' for more details" "$LINENO" 5; } 5592 fi 5593 fi 5594fi 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5 5596$as_echo "$cross_compiling_build" >&6; } 5597 5598rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out 5599ac_clean_files=$ac_clean_files_save 5600 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5602$as_echo_n "checking for suffix of object files... " >&6; } 5603if ${ac_cv_build_objext+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605else 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608 5609int 5610main () 5611{ 5612 5613 ; 5614 return 0; 5615} 5616_ACEOF 5617rm -f conftest.o conftest.obj 5618if { { ac_try="$ac_compile" 5619case "(($ac_try" in 5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5621 *) ac_try_echo=$ac_try;; 5622esac 5623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5624$as_echo "$ac_try_echo"; } >&5 5625 (eval "$ac_compile") 2>&5 5626 ac_status=$? 5627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5628 test $ac_status = 0; }; then : 5629 for ac_file in conftest.o conftest.obj conftest.*; do 5630 test -f "$ac_file" || continue; 5631 case $ac_file in 5632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5633 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5634 break;; 5635 esac 5636done 5637else 5638 $as_echo "$as_me: failed program was:" >&5 5639sed 's/^/| /' conftest.$ac_ext >&5 5640 5641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5643as_fn_error $? "cannot compute suffix of object files: cannot compile 5644See \`config.log' for more details" "$LINENO" 5; } 5645fi 5646rm -f conftest.$ac_cv_build_objext conftest.$ac_ext 5647fi 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5 5649$as_echo "$ac_cv_build_objext" >&6; } 5650BUILD_OBJEXT=$ac_cv_build_objext 5651ac_build_objext=$BUILD_OBJEXT 5652 5653ac_ext=c 5654ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5655ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5656ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5657ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5659$as_echo_n "checking how to run the C preprocessor... " >&6; } 5660# On Suns, sometimes $CPP names a directory. 5661if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then 5662 CPP_FOR_BUILD= 5663fi 5664if test -z "$CPP_FOR_BUILD"; then 5665 if ${ac_cv_build_prog_CPP+:} false; then : 5666 $as_echo_n "(cached) " >&6 5667else 5668 # Double quotes because CPP needs to be expanded 5669 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp" 5670 do 5671 ac_preproc_ok=false 5672for ac_c_preproc_warn_flag in '' yes 5673do 5674 # Use a header file that comes with gcc, so configuring glibc 5675 # with a fresh cross-compiler works. 5676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5677 # <limits.h> exists even on freestanding compilers. 5678 # On the NeXT, cc -E runs the code through the compiler's parser, 5679 # not just through cpp. "Syntax error" is here to catch this case. 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681/* end confdefs.h. */ 5682#ifdef __STDC__ 5683# include <limits.h> 5684#else 5685# include <assert.h> 5686#endif 5687 Syntax error 5688_ACEOF 5689if ac_fn_c_try_cpp "$LINENO"; then : 5690 5691else 5692 # Broken: fails on valid input. 5693continue 5694fi 5695rm -f conftest.err conftest.i conftest.$ac_ext 5696 5697 # OK, works on sane cases. Now check whether nonexistent headers 5698 # can be detected and how. 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700/* end confdefs.h. */ 5701#include <ac_nonexistent.h> 5702_ACEOF 5703if ac_fn_c_try_cpp "$LINENO"; then : 5704 # Broken: success on invalid input. 5705continue 5706else 5707 # Passes both tests. 5708ac_preproc_ok=: 5709break 5710fi 5711rm -f conftest.err conftest.i conftest.$ac_ext 5712 5713done 5714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5715rm -f conftest.i conftest.err conftest.$ac_ext 5716if $ac_preproc_ok; then : 5717 break 5718fi 5719 5720 done 5721 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 5722 5723fi 5724 CPP_FOR_BUILD=$ac_cv_build_prog_CPP 5725else 5726 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 5727fi 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 5729$as_echo "$CPP_FOR_BUILD" >&6; } 5730ac_preproc_ok=false 5731for ac_c_preproc_warn_flag in '' yes 5732do 5733 # Use a header file that comes with gcc, so configuring glibc 5734 # with a fresh cross-compiler works. 5735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5736 # <limits.h> exists even on freestanding compilers. 5737 # On the NeXT, cc -E runs the code through the compiler's parser, 5738 # not just through cpp. "Syntax error" is here to catch this case. 5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5740/* end confdefs.h. */ 5741#ifdef __STDC__ 5742# include <limits.h> 5743#else 5744# include <assert.h> 5745#endif 5746 Syntax error 5747_ACEOF 5748if ac_fn_c_try_cpp "$LINENO"; then : 5749 5750else 5751 # Broken: fails on valid input. 5752continue 5753fi 5754rm -f conftest.err conftest.i conftest.$ac_ext 5755 5756 # OK, works on sane cases. Now check whether nonexistent headers 5757 # can be detected and how. 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759/* end confdefs.h. */ 5760#include <ac_nonexistent.h> 5761_ACEOF 5762if ac_fn_c_try_cpp "$LINENO"; then : 5763 # Broken: success on invalid input. 5764continue 5765else 5766 # Passes both tests. 5767ac_preproc_ok=: 5768break 5769fi 5770rm -f conftest.err conftest.i conftest.$ac_ext 5771 5772done 5773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5774rm -f conftest.i conftest.err conftest.$ac_ext 5775if $ac_preproc_ok; then : 5776 5777else 5778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5780as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check 5781See \`config.log' for more details" "$LINENO" 5; } 5782fi 5783 5784ac_ext=c 5785ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5786ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5787ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5788ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5789 5790 5791 5792ac_ext=c 5793ac_cpp='$CPP $CPPFLAGS' 5794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5796ac_compiler_gnu=$ac_cv_c_compiler_gnu 5797 5798 5799 5800ac_ext=cpp 5801ac_cpp='$CXXCPP $CPPFLAGS' 5802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5806$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5807if test -z "$CXXCPP"; then 5808 if ${ac_cv_prog_CXXCPP+:} false; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 # Double quotes because CXXCPP needs to be expanded 5812 for CXXCPP in "$CXX -E" "/lib/cpp" 5813 do 5814 ac_preproc_ok=false 5815for ac_cxx_preproc_warn_flag in '' yes 5816do 5817 # Use a header file that comes with gcc, so configuring glibc 5818 # with a fresh cross-compiler works. 5819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5820 # <limits.h> exists even on freestanding compilers. 5821 # On the NeXT, cc -E runs the code through the compiler's parser, 5822 # not just through cpp. "Syntax error" is here to catch this case. 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825#ifdef __STDC__ 5826# include <limits.h> 5827#else 5828# include <assert.h> 5829#endif 5830 Syntax error 5831_ACEOF 5832if ac_fn_cxx_try_cpp "$LINENO"; then : 5833 5834else 5835 # Broken: fails on valid input. 5836continue 5837fi 5838rm -f conftest.err conftest.i conftest.$ac_ext 5839 5840 # OK, works on sane cases. Now check whether nonexistent headers 5841 # can be detected and how. 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843/* end confdefs.h. */ 5844#include <ac_nonexistent.h> 5845_ACEOF 5846if ac_fn_cxx_try_cpp "$LINENO"; then : 5847 # Broken: success on invalid input. 5848continue 5849else 5850 # Passes both tests. 5851ac_preproc_ok=: 5852break 5853fi 5854rm -f conftest.err conftest.i conftest.$ac_ext 5855 5856done 5857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5858rm -f conftest.i conftest.err conftest.$ac_ext 5859if $ac_preproc_ok; then : 5860 break 5861fi 5862 5863 done 5864 ac_cv_prog_CXXCPP=$CXXCPP 5865 5866fi 5867 CXXCPP=$ac_cv_prog_CXXCPP 5868else 5869 ac_cv_prog_CXXCPP=$CXXCPP 5870fi 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5872$as_echo "$CXXCPP" >&6; } 5873ac_preproc_ok=false 5874for ac_cxx_preproc_warn_flag in '' yes 5875do 5876 # Use a header file that comes with gcc, so configuring glibc 5877 # with a fresh cross-compiler works. 5878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5879 # <limits.h> exists even on freestanding compilers. 5880 # On the NeXT, cc -E runs the code through the compiler's parser, 5881 # not just through cpp. "Syntax error" is here to catch this case. 5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5883/* end confdefs.h. */ 5884#ifdef __STDC__ 5885# include <limits.h> 5886#else 5887# include <assert.h> 5888#endif 5889 Syntax error 5890_ACEOF 5891if ac_fn_cxx_try_cpp "$LINENO"; then : 5892 5893else 5894 # Broken: fails on valid input. 5895continue 5896fi 5897rm -f conftest.err conftest.i conftest.$ac_ext 5898 5899 # OK, works on sane cases. Now check whether nonexistent headers 5900 # can be detected and how. 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903#include <ac_nonexistent.h> 5904_ACEOF 5905if ac_fn_cxx_try_cpp "$LINENO"; then : 5906 # Broken: success on invalid input. 5907continue 5908else 5909 # Passes both tests. 5910ac_preproc_ok=: 5911break 5912fi 5913rm -f conftest.err conftest.i conftest.$ac_ext 5914 5915done 5916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5917rm -f conftest.i conftest.err conftest.$ac_ext 5918if $ac_preproc_ok; then : 5919 5920else 5921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5923as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5924See \`config.log' for more details" "$LINENO" 5; } 5925fi 5926 5927ac_ext=c 5928ac_cpp='$CPP $CPPFLAGS' 5929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5931ac_compiler_gnu=$ac_cv_c_compiler_gnu 5932 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5934$as_echo_n "checking host system type... " >&6; } 5935if ${ac_cv_host+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 if test "x$host_alias" = x; then 5939 ac_cv_host=$ac_cv_build 5940else 5941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5942 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5943fi 5944 5945fi 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5947$as_echo "$ac_cv_host" >&6; } 5948case $ac_cv_host in 5949*-*-*) ;; 5950*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5951esac 5952host=$ac_cv_host 5953ac_save_IFS=$IFS; IFS='-' 5954set x $ac_cv_host 5955shift 5956host_cpu=$1 5957host_vendor=$2 5958shift; shift 5959# Remember, the first character of IFS is used to create $*, 5960# except with old shells: 5961host_os=$* 5962IFS=$ac_save_IFS 5963case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5964 5965 5966 5967 5968save_cross_compiling=$cross_compiling 5969save_ac_tool_prefix=$ac_tool_prefix 5970cross_compiling=no 5971ac_tool_prefix= 5972 5973ac_ext=cpp 5974ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5975ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5976ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' 5977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5978if test -z "$CXX_FOR_BUILD"; then 5979 if test -n "$CCC"; then 5980 CXX_FOR_BUILD=$CCC 5981 else 5982 if test -n "$ac_tool_prefix"; then 5983 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5984 do 5985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5986set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5988$as_echo_n "checking for $ac_word... " >&6; } 5989if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 if test -n "$CXX_FOR_BUILD"; then 5993 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test. 5994else 5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996for as_dir in $PATH 5997do 5998 IFS=$as_save_IFS 5999 test -z "$as_dir" && as_dir=. 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6002 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog" 6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006done 6007 done 6008IFS=$as_save_IFS 6009 6010fi 6011fi 6012CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD 6013if test -n "$CXX_FOR_BUILD"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5 6015$as_echo "$CXX_FOR_BUILD" >&6; } 6016else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018$as_echo "no" >&6; } 6019fi 6020 6021 6022 test -n "$CXX_FOR_BUILD" && break 6023 done 6024fi 6025if test -z "$CXX_FOR_BUILD"; then 6026 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD 6027 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6028do 6029 # Extract the first word of "$ac_prog", so it can be a program name with args. 6030set dummy $ac_prog; ac_word=$2 6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6032$as_echo_n "checking for $ac_word... " >&6; } 6033if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 if test -n "$ac_ct_CXX_FOR_BUILD"; then 6037 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test. 6038else 6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6040for as_dir in $PATH 6041do 6042 IFS=$as_save_IFS 6043 test -z "$as_dir" && as_dir=. 6044 for ac_exec_ext in '' $ac_executable_extensions; do 6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6046 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog" 6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6048 break 2 6049 fi 6050done 6051 done 6052IFS=$as_save_IFS 6053 6054fi 6055fi 6056ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD 6057if test -n "$ac_ct_CXX_FOR_BUILD"; then 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5 6059$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; } 6060else 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6062$as_echo "no" >&6; } 6063fi 6064 6065 6066 test -n "$ac_ct_CXX_FOR_BUILD" && break 6067done 6068 6069 if test "x$ac_ct_CXX_FOR_BUILD" = x; then 6070 CXX_FOR_BUILD="g++" 6071 else 6072 case $cross_compiling:$ac_tool_warned in 6073yes:) 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6075$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6076ac_tool_warned=yes ;; 6077esac 6078 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD 6079 fi 6080fi 6081 6082 fi 6083fi 6084# Provide some information about the compiler. 6085$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6086set X $ac_build_compile 6087ac_compiler=$2 6088for ac_option in --version -v -V -qversion; do 6089 { { ac_try="$ac_compiler $ac_option >&5" 6090case "(($ac_try" in 6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6092 *) ac_try_echo=$ac_try;; 6093esac 6094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6095$as_echo "$ac_try_echo"; } >&5 6096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6097 ac_status=$? 6098 if test -s conftest.err; then 6099 sed '10a\ 6100... rest of stderr output deleted ... 6101 10q' conftest.err >conftest.er1 6102 cat conftest.er1 >&5 6103 fi 6104 rm -f conftest.er1 conftest.err 6105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6106 test $ac_status = 0; } 6107done 6108 6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6110$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6111if ${ac_cv_cxx_compiler_gnu+:} false; then : 6112 $as_echo_n "(cached) " >&6 6113else 6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6115/* end confdefs.h. */ 6116 6117int 6118main () 6119{ 6120#ifndef __GNUC__ 6121 choke me 6122#endif 6123 6124 ; 6125 return 0; 6126} 6127_ACEOF 6128if ac_fn_cxx_try_compile "$LINENO"; then : 6129 ac_compiler_gnu=yes 6130else 6131 ac_compiler_gnu=no 6132fi 6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6134ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6135 6136fi 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6138$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6139if test $ac_compiler_gnu = yes; then 6140 GXX=yes 6141else 6142 GXX= 6143fi 6144ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set} 6145ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5 6147$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; } 6148if ${ac_cv_build_prog_cxx_g+:} false; then : 6149 $as_echo_n "(cached) " >&6 6150else 6151 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6152 ac_cxx_werror_flag=yes 6153 ac_cv_build_prog_cxx_g=no 6154 CXXFLAGS_FOR_BUILD="-g" 6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156/* end confdefs.h. */ 6157 6158int 6159main () 6160{ 6161 6162 ; 6163 return 0; 6164} 6165_ACEOF 6166if ac_fn_cxx_try_compile "$LINENO"; then : 6167 ac_cv_build_prog_cxx_g=yes 6168else 6169 CXXFLAGS_FOR_BUILD="" 6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171/* end confdefs.h. */ 6172 6173int 6174main () 6175{ 6176 6177 ; 6178 return 0; 6179} 6180_ACEOF 6181if ac_fn_cxx_try_compile "$LINENO"; then : 6182 6183else 6184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6185 CXXFLAGS_FOR_BUILD="-g" 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188 6189int 6190main () 6191{ 6192 6193 ; 6194 return 0; 6195} 6196_ACEOF 6197if ac_fn_cxx_try_compile "$LINENO"; then : 6198 ac_cv_build_prog_cxx_g=yes 6199fi 6200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6201fi 6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6203fi 6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6205 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6206fi 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5 6208$as_echo "$ac_cv_build_prog_cxx_g" >&6; } 6209if test "$ac_test_CXXFLAGS" = set; then 6210 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS 6211elif test $ac_cv_build_prog_cxx_g = yes; then 6212 if test "$GXX" = yes; then 6213 CXXFLAGS_FOR_BUILD="-g -O2" 6214 else 6215 CXXFLAGS_FOR_BUILD="-g" 6216 fi 6217else 6218 if test "$GXX" = yes; then 6219 CXXFLAGS_FOR_BUILD="-O2" 6220 else 6221 CXXFLAGS_FOR_BUILD= 6222 fi 6223fi 6224ac_ext=c 6225ac_cpp='$CPP $CPPFLAGS_FOR_BUILD' 6226ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6227ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' 6228ac_compiler_gnu=$ac_cv_c_compiler_gnu 6229 6230depcc="$CXX_FOR_BUILD" am_compiler_list= 6231 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6233$as_echo_n "checking dependency style of $depcc... " >&6; } 6234if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6238 # We make a subdir and do the tests there. Otherwise we can end up 6239 # making bogus files that we don't know about and never remove. For 6240 # instance it was reported that on HP-UX the gcc test will end up 6241 # making a dummy file named 'D' -- because '-MD' means "put the output 6242 # in D". 6243 rm -rf conftest.dir 6244 mkdir conftest.dir 6245 # Copy depcomp to subdir because otherwise we won't find it if we're 6246 # using a relative directory. 6247 cp "$am_depcomp" conftest.dir 6248 cd conftest.dir 6249 # We will build objects and dependencies in a subdirectory because 6250 # it helps to detect inapplicable dependency modes. For instance 6251 # both Tru64's cc and ICC support -MD to output dependencies as a 6252 # side effect of compilation, but ICC will put the dependencies in 6253 # the current directory while Tru64 will put them in the object 6254 # directory. 6255 mkdir sub 6256 6257 am_cv_CXX_dependencies_compiler_type=none 6258 if test "$am_compiler_list" = ""; then 6259 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6260 fi 6261 am__universal=false 6262 case " $depcc " in #( 6263 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6264 esac 6265 6266 for depmode in $am_compiler_list; do 6267 # Setup a source with many dependencies, because some compilers 6268 # like to wrap large dependency lists on column 80 (with \), and 6269 # we should not choose a depcomp mode which is confused by this. 6270 # 6271 # We need to recreate these files for each test, as the compiler may 6272 # overwrite some of them when testing with obscure command lines. 6273 # This happens at least with the AIX C compiler. 6274 : > sub/conftest.c 6275 for i in 1 2 3 4 5 6; do 6276 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6277 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6278 # Solaris 10 /bin/sh. 6279 echo '/* dummy */' > sub/conftst$i.h 6280 done 6281 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6282 6283 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6284 # mode. It turns out that the SunPro C++ compiler does not properly 6285 # handle '-M -o', and we need to detect this. Also, some Intel 6286 # versions had trouble with output in subdirs. 6287 am__obj=sub/conftest.${OBJEXT-o} 6288 am__minus_obj="-o $am__obj" 6289 case $depmode in 6290 gcc) 6291 # This depmode causes a compiler race in universal mode. 6292 test "$am__universal" = false || continue 6293 ;; 6294 nosideeffect) 6295 # After this tag, mechanisms are not by side-effect, so they'll 6296 # only be used when explicitly requested. 6297 if test "x$enable_dependency_tracking" = xyes; then 6298 continue 6299 else 6300 break 6301 fi 6302 ;; 6303 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6304 # This compiler won't grok '-c -o', but also, the minuso test has 6305 # not run yet. These depmodes are late enough in the game, and 6306 # so weak that their functioning should not be impacted. 6307 am__obj=conftest.${OBJEXT-o} 6308 am__minus_obj= 6309 ;; 6310 none) break ;; 6311 esac 6312 if depmode=$depmode \ 6313 source=sub/conftest.c object=$am__obj \ 6314 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6315 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6316 >/dev/null 2>conftest.err && 6317 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6318 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6319 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6320 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6321 # icc doesn't choke on unknown options, it will just issue warnings 6322 # or remarks (even with -Werror). So we grep stderr for any message 6323 # that says an option was ignored or not supported. 6324 # When given -MP, icc 7.0 and 7.1 complain thusly: 6325 # icc: Command line warning: ignoring option '-M'; no argument required 6326 # The diagnosis changed in icc 8.0: 6327 # icc: Command line remark: option '-MP' not supported 6328 if (grep 'ignoring option' conftest.err || 6329 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6330 am_cv_CXX_dependencies_compiler_type=$depmode 6331 break 6332 fi 6333 fi 6334 done 6335 6336 cd .. 6337 rm -rf conftest.dir 6338else 6339 am_cv_CXX_dependencies_compiler_type=none 6340fi 6341 6342fi 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6344$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6345CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6346 6347 if 6348 test "x$enable_dependency_tracking" != xno \ 6349 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6350 am__fastdepCXX_TRUE= 6351 am__fastdepCXX_FALSE='#' 6352else 6353 am__fastdepCXX_TRUE='#' 6354 am__fastdepCXX_FALSE= 6355fi 6356 6357 6358ac_ext=cpp 6359ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6360ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6361ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' 6362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 6364$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6365if test -z "$CXXCPP_FOR_BUILD"; then 6366 if ${ac_cv_build_prog_CXXCPP+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 # Double quotes because CXXCPP needs to be expanded 6370 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp" 6371 do 6372 ac_preproc_ok=false 6373for ac_cxx_preproc_warn_flag in '' yes 6374do 6375 # Use a header file that comes with gcc, so configuring glibc 6376 # with a fresh cross-compiler works. 6377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6378 # <limits.h> exists even on freestanding compilers. 6379 # On the NeXT, cc -E runs the code through the compiler's parser, 6380 # not just through cpp. "Syntax error" is here to catch this case. 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383#ifdef __STDC__ 6384# include <limits.h> 6385#else 6386# include <assert.h> 6387#endif 6388 Syntax error 6389_ACEOF 6390if ac_fn_cxx_try_cpp "$LINENO"; then : 6391 6392else 6393 # Broken: fails on valid input. 6394continue 6395fi 6396rm -f conftest.err conftest.i conftest.$ac_ext 6397 6398 # OK, works on sane cases. Now check whether nonexistent headers 6399 # can be detected and how. 6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402#include <ac_nonexistent.h> 6403_ACEOF 6404if ac_fn_cxx_try_cpp "$LINENO"; then : 6405 # Broken: success on invalid input. 6406continue 6407else 6408 # Passes both tests. 6409ac_preproc_ok=: 6410break 6411fi 6412rm -f conftest.err conftest.i conftest.$ac_ext 6413 6414done 6415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6416rm -f conftest.i conftest.err conftest.$ac_ext 6417if $ac_preproc_ok; then : 6418 break 6419fi 6420 6421 done 6422 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD 6423 6424fi 6425 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP 6426else 6427 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD 6428fi 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5 6430$as_echo "$CXXCPP_FOR_BUILD" >&6; } 6431ac_preproc_ok=false 6432for ac_cxx_preproc_warn_flag in '' yes 6433do 6434 # Use a header file that comes with gcc, so configuring glibc 6435 # with a fresh cross-compiler works. 6436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6437 # <limits.h> exists even on freestanding compilers. 6438 # On the NeXT, cc -E runs the code through the compiler's parser, 6439 # not just through cpp. "Syntax error" is here to catch this case. 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442#ifdef __STDC__ 6443# include <limits.h> 6444#else 6445# include <assert.h> 6446#endif 6447 Syntax error 6448_ACEOF 6449if ac_fn_cxx_try_cpp "$LINENO"; then : 6450 6451else 6452 # Broken: fails on valid input. 6453continue 6454fi 6455rm -f conftest.err conftest.i conftest.$ac_ext 6456 6457 # OK, works on sane cases. Now check whether nonexistent headers 6458 # can be detected and how. 6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6460/* end confdefs.h. */ 6461#include <ac_nonexistent.h> 6462_ACEOF 6463if ac_fn_cxx_try_cpp "$LINENO"; then : 6464 # Broken: success on invalid input. 6465continue 6466else 6467 # Passes both tests. 6468ac_preproc_ok=: 6469break 6470fi 6471rm -f conftest.err conftest.i conftest.$ac_ext 6472 6473done 6474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6475rm -f conftest.i conftest.err conftest.$ac_ext 6476if $ac_preproc_ok; then : 6477 6478else 6479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6481as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check 6482See \`config.log' for more details" "$LINENO" 5; } 6483fi 6484 6485ac_ext=c 6486ac_cpp='$CPP $CPPFLAGS_FOR_BUILD' 6487ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6488ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' 6489ac_compiler_gnu=$ac_cv_c_compiler_gnu 6490 6491 6492ac_tool_prefix=$save_ac_tool_prefix 6493cross_compiling=$save_cross_compiling 6494 6495 6496 6497 6498# extract_interface needs to be run on the build system. 6499# Since this is the only target that is being built, 6500# simply use the build compiler throughout. 6501# This ensures that the clang configure checks are 6502# performed using the right compiler. 6503CXX="$CXX_FOR_BUILD" 6504CXXCPP="$CXXCPP_FOR_BUILD" 6505EXEEXT="$BUILD_EXEEXT" 6506OBJEXT="$BUILD_OBJEXT" 6507 6508# Check whether --enable-shared was given. 6509if test "${enable_shared+set}" = set; then : 6510 enableval=$enable_shared; p=${PACKAGE-default} 6511 case $enableval in 6512 yes) enable_shared=yes ;; 6513 no) enable_shared=no ;; 6514 *) 6515 enable_shared=no 6516 # Look at the argument we got. We use all the common list separators. 6517 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 6518 for pkg in $enableval; do 6519 IFS=$lt_save_ifs 6520 if test "X$pkg" = "X$p"; then 6521 enable_shared=yes 6522 fi 6523 done 6524 IFS=$lt_save_ifs 6525 ;; 6526 esac 6527else 6528 enable_shared=no 6529fi 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539case `pwd` in 6540 *\ * | *\ *) 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6542$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6543esac 6544 6545 6546 6547macro_version='2.4.6' 6548macro_revision='2.4.6' 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562ltmain=$ac_aux_dir/ltmain.sh 6563 6564# Backslashify metacharacters that are still active within 6565# double-quoted strings. 6566sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6567 6568# Same as above, but do not quote variable references. 6569double_quote_subst='s/\(["`\\]\)/\\\1/g' 6570 6571# Sed substitution to delay expansion of an escaped shell variable in a 6572# double_quote_subst'ed string. 6573delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6574 6575# Sed substitution to delay expansion of an escaped single quote. 6576delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6577 6578# Sed substitution to avoid accidental globbing in evaled expressions 6579no_glob_subst='s/\*/\\\*/g' 6580 6581ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6582ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6583ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6584 6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6586$as_echo_n "checking how to print strings... " >&6; } 6587# Test print first, because it will be a builtin if present. 6588if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6589 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6590 ECHO='print -r --' 6591elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6592 ECHO='printf %s\n' 6593else 6594 # Use this function as a fallback that always works. 6595 func_fallback_echo () 6596 { 6597 eval 'cat <<_LTECHO_EOF 6598$1 6599_LTECHO_EOF' 6600 } 6601 ECHO='func_fallback_echo' 6602fi 6603 6604# func_echo_all arg... 6605# Invoke $ECHO with all args, space-separated. 6606func_echo_all () 6607{ 6608 $ECHO "" 6609} 6610 6611case $ECHO in 6612 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6613$as_echo "printf" >&6; } ;; 6614 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6615$as_echo "print -r" >&6; } ;; 6616 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6617$as_echo "cat" >&6; } ;; 6618esac 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6634$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6635if ${ac_cv_path_SED+:} false; then : 6636 $as_echo_n "(cached) " >&6 6637else 6638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6639 for ac_i in 1 2 3 4 5 6 7; do 6640 ac_script="$ac_script$as_nl$ac_script" 6641 done 6642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6643 { ac_script=; unset ac_script;} 6644 if test -z "$SED"; then 6645 ac_path_SED_found=false 6646 # Loop through the user's path and test for each of PROGNAME-LIST 6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6648for as_dir in $PATH 6649do 6650 IFS=$as_save_IFS 6651 test -z "$as_dir" && as_dir=. 6652 for ac_prog in sed gsed; do 6653 for ac_exec_ext in '' $ac_executable_extensions; do 6654 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6655 as_fn_executable_p "$ac_path_SED" || continue 6656# Check for GNU ac_path_SED and select it if it is found. 6657 # Check for GNU $ac_path_SED 6658case `"$ac_path_SED" --version 2>&1` in 6659*GNU*) 6660 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6661*) 6662 ac_count=0 6663 $as_echo_n 0123456789 >"conftest.in" 6664 while : 6665 do 6666 cat "conftest.in" "conftest.in" >"conftest.tmp" 6667 mv "conftest.tmp" "conftest.in" 6668 cp "conftest.in" "conftest.nl" 6669 $as_echo '' >> "conftest.nl" 6670 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6672 as_fn_arith $ac_count + 1 && ac_count=$as_val 6673 if test $ac_count -gt ${ac_path_SED_max-0}; then 6674 # Best one so far, save it but keep looking for a better one 6675 ac_cv_path_SED="$ac_path_SED" 6676 ac_path_SED_max=$ac_count 6677 fi 6678 # 10*(2^10) chars as input seems more than enough 6679 test $ac_count -gt 10 && break 6680 done 6681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6682esac 6683 6684 $ac_path_SED_found && break 3 6685 done 6686 done 6687 done 6688IFS=$as_save_IFS 6689 if test -z "$ac_cv_path_SED"; then 6690 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6691 fi 6692else 6693 ac_cv_path_SED=$SED 6694fi 6695 6696fi 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6698$as_echo "$ac_cv_path_SED" >&6; } 6699 SED="$ac_cv_path_SED" 6700 rm -f conftest.sed 6701 6702test -z "$SED" && SED=sed 6703Xsed="$SED -e 1s/^X//" 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6716$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6717if ${ac_cv_path_GREP+:} false; then : 6718 $as_echo_n "(cached) " >&6 6719else 6720 if test -z "$GREP"; then 6721 ac_path_GREP_found=false 6722 # Loop through the user's path and test for each of PROGNAME-LIST 6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6725do 6726 IFS=$as_save_IFS 6727 test -z "$as_dir" && as_dir=. 6728 for ac_prog in grep ggrep; do 6729 for ac_exec_ext in '' $ac_executable_extensions; do 6730 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6731 as_fn_executable_p "$ac_path_GREP" || continue 6732# Check for GNU ac_path_GREP and select it if it is found. 6733 # Check for GNU $ac_path_GREP 6734case `"$ac_path_GREP" --version 2>&1` in 6735*GNU*) 6736 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6737*) 6738 ac_count=0 6739 $as_echo_n 0123456789 >"conftest.in" 6740 while : 6741 do 6742 cat "conftest.in" "conftest.in" >"conftest.tmp" 6743 mv "conftest.tmp" "conftest.in" 6744 cp "conftest.in" "conftest.nl" 6745 $as_echo 'GREP' >> "conftest.nl" 6746 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6748 as_fn_arith $ac_count + 1 && ac_count=$as_val 6749 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6750 # Best one so far, save it but keep looking for a better one 6751 ac_cv_path_GREP="$ac_path_GREP" 6752 ac_path_GREP_max=$ac_count 6753 fi 6754 # 10*(2^10) chars as input seems more than enough 6755 test $ac_count -gt 10 && break 6756 done 6757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6758esac 6759 6760 $ac_path_GREP_found && break 3 6761 done 6762 done 6763 done 6764IFS=$as_save_IFS 6765 if test -z "$ac_cv_path_GREP"; then 6766 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6767 fi 6768else 6769 ac_cv_path_GREP=$GREP 6770fi 6771 6772fi 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6774$as_echo "$ac_cv_path_GREP" >&6; } 6775 GREP="$ac_cv_path_GREP" 6776 6777 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6779$as_echo_n "checking for egrep... " >&6; } 6780if ${ac_cv_path_EGREP+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6784 then ac_cv_path_EGREP="$GREP -E" 6785 else 6786 if test -z "$EGREP"; then 6787 ac_path_EGREP_found=false 6788 # Loop through the user's path and test for each of PROGNAME-LIST 6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6790for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6791do 6792 IFS=$as_save_IFS 6793 test -z "$as_dir" && as_dir=. 6794 for ac_prog in egrep; do 6795 for ac_exec_ext in '' $ac_executable_extensions; do 6796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6797 as_fn_executable_p "$ac_path_EGREP" || continue 6798# Check for GNU ac_path_EGREP and select it if it is found. 6799 # Check for GNU $ac_path_EGREP 6800case `"$ac_path_EGREP" --version 2>&1` in 6801*GNU*) 6802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6803*) 6804 ac_count=0 6805 $as_echo_n 0123456789 >"conftest.in" 6806 while : 6807 do 6808 cat "conftest.in" "conftest.in" >"conftest.tmp" 6809 mv "conftest.tmp" "conftest.in" 6810 cp "conftest.in" "conftest.nl" 6811 $as_echo 'EGREP' >> "conftest.nl" 6812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6814 as_fn_arith $ac_count + 1 && ac_count=$as_val 6815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6816 # Best one so far, save it but keep looking for a better one 6817 ac_cv_path_EGREP="$ac_path_EGREP" 6818 ac_path_EGREP_max=$ac_count 6819 fi 6820 # 10*(2^10) chars as input seems more than enough 6821 test $ac_count -gt 10 && break 6822 done 6823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6824esac 6825 6826 $ac_path_EGREP_found && break 3 6827 done 6828 done 6829 done 6830IFS=$as_save_IFS 6831 if test -z "$ac_cv_path_EGREP"; then 6832 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6833 fi 6834else 6835 ac_cv_path_EGREP=$EGREP 6836fi 6837 6838 fi 6839fi 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6841$as_echo "$ac_cv_path_EGREP" >&6; } 6842 EGREP="$ac_cv_path_EGREP" 6843 6844 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6846$as_echo_n "checking for fgrep... " >&6; } 6847if ${ac_cv_path_FGREP+:} false; then : 6848 $as_echo_n "(cached) " >&6 6849else 6850 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6851 then ac_cv_path_FGREP="$GREP -F" 6852 else 6853 if test -z "$FGREP"; then 6854 ac_path_FGREP_found=false 6855 # Loop through the user's path and test for each of PROGNAME-LIST 6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6857for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6858do 6859 IFS=$as_save_IFS 6860 test -z "$as_dir" && as_dir=. 6861 for ac_prog in fgrep; do 6862 for ac_exec_ext in '' $ac_executable_extensions; do 6863 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6864 as_fn_executable_p "$ac_path_FGREP" || continue 6865# Check for GNU ac_path_FGREP and select it if it is found. 6866 # Check for GNU $ac_path_FGREP 6867case `"$ac_path_FGREP" --version 2>&1` in 6868*GNU*) 6869 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6870*) 6871 ac_count=0 6872 $as_echo_n 0123456789 >"conftest.in" 6873 while : 6874 do 6875 cat "conftest.in" "conftest.in" >"conftest.tmp" 6876 mv "conftest.tmp" "conftest.in" 6877 cp "conftest.in" "conftest.nl" 6878 $as_echo 'FGREP' >> "conftest.nl" 6879 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6881 as_fn_arith $ac_count + 1 && ac_count=$as_val 6882 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6883 # Best one so far, save it but keep looking for a better one 6884 ac_cv_path_FGREP="$ac_path_FGREP" 6885 ac_path_FGREP_max=$ac_count 6886 fi 6887 # 10*(2^10) chars as input seems more than enough 6888 test $ac_count -gt 10 && break 6889 done 6890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6891esac 6892 6893 $ac_path_FGREP_found && break 3 6894 done 6895 done 6896 done 6897IFS=$as_save_IFS 6898 if test -z "$ac_cv_path_FGREP"; then 6899 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6900 fi 6901else 6902 ac_cv_path_FGREP=$FGREP 6903fi 6904 6905 fi 6906fi 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6908$as_echo "$ac_cv_path_FGREP" >&6; } 6909 FGREP="$ac_cv_path_FGREP" 6910 6911 6912test -z "$GREP" && GREP=grep 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932# Check whether --with-gnu-ld was given. 6933if test "${with_gnu_ld+set}" = set; then : 6934 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6935else 6936 with_gnu_ld=no 6937fi 6938 6939ac_prog=ld 6940if test yes = "$GCC"; then 6941 # Check if gcc -print-prog-name=ld gives a path. 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6943$as_echo_n "checking for ld used by $CC... " >&6; } 6944 case $host in 6945 *-*-mingw*) 6946 # gcc leaves a trailing carriage return, which upsets mingw 6947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6948 *) 6949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6950 esac 6951 case $ac_prog in 6952 # Accept absolute paths. 6953 [\\/]* | ?:[\\/]*) 6954 re_direlt='/[^/][^/]*/\.\./' 6955 # Canonicalize the pathname of ld 6956 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6957 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6958 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6959 done 6960 test -z "$LD" && LD=$ac_prog 6961 ;; 6962 "") 6963 # If it fails, then pretend we aren't using GCC. 6964 ac_prog=ld 6965 ;; 6966 *) 6967 # If it is relative, then search for the first ld in PATH. 6968 with_gnu_ld=unknown 6969 ;; 6970 esac 6971elif test yes = "$with_gnu_ld"; then 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6973$as_echo_n "checking for GNU ld... " >&6; } 6974else 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6976$as_echo_n "checking for non-GNU ld... " >&6; } 6977fi 6978if ${lt_cv_path_LD+:} false; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 if test -z "$LD"; then 6982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6983 for ac_dir in $PATH; do 6984 IFS=$lt_save_ifs 6985 test -z "$ac_dir" && ac_dir=. 6986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6987 lt_cv_path_LD=$ac_dir/$ac_prog 6988 # Check to see if the program is GNU ld. I'd rather use --version, 6989 # but apparently some variants of GNU ld only accept -v. 6990 # Break only if it was the GNU/non-GNU ld that we prefer. 6991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6992 *GNU* | *'with BFD'*) 6993 test no != "$with_gnu_ld" && break 6994 ;; 6995 *) 6996 test yes != "$with_gnu_ld" && break 6997 ;; 6998 esac 6999 fi 7000 done 7001 IFS=$lt_save_ifs 7002else 7003 lt_cv_path_LD=$LD # Let the user override the test with a path. 7004fi 7005fi 7006 7007LD=$lt_cv_path_LD 7008if test -n "$LD"; then 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7010$as_echo "$LD" >&6; } 7011else 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7013$as_echo "no" >&6; } 7014fi 7015test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7017$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7018if ${lt_cv_prog_gnu_ld+:} false; then : 7019 $as_echo_n "(cached) " >&6 7020else 7021 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7022case `$LD -v 2>&1 </dev/null` in 7023*GNU* | *'with BFD'*) 7024 lt_cv_prog_gnu_ld=yes 7025 ;; 7026*) 7027 lt_cv_prog_gnu_ld=no 7028 ;; 7029esac 7030fi 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7032$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7033with_gnu_ld=$lt_cv_prog_gnu_ld 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7044$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7045if ${lt_cv_path_NM+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 if test -n "$NM"; then 7049 # Let the user override the test. 7050 lt_cv_path_NM=$NM 7051else 7052 lt_nm_to_check=${ac_tool_prefix}nm 7053 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7054 lt_nm_to_check="$lt_nm_to_check nm" 7055 fi 7056 for lt_tmp_nm in $lt_nm_to_check; do 7057 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7058 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7059 IFS=$lt_save_ifs 7060 test -z "$ac_dir" && ac_dir=. 7061 tmp_nm=$ac_dir/$lt_tmp_nm 7062 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7063 # Check to see if the nm accepts a BSD-compat flag. 7064 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7065 # nm: unknown option "B" ignored 7066 # Tru64's nm complains that /dev/null is an invalid object file 7067 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7068 case $build_os in 7069 mingw*) lt_bad_file=conftest.nm/nofile ;; 7070 *) lt_bad_file=/dev/null ;; 7071 esac 7072 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7073 *$lt_bad_file* | *'Invalid file or object type'*) 7074 lt_cv_path_NM="$tmp_nm -B" 7075 break 2 7076 ;; 7077 *) 7078 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7079 */dev/null*) 7080 lt_cv_path_NM="$tmp_nm -p" 7081 break 2 7082 ;; 7083 *) 7084 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7085 continue # so that we can try to find one that supports BSD flags 7086 ;; 7087 esac 7088 ;; 7089 esac 7090 fi 7091 done 7092 IFS=$lt_save_ifs 7093 done 7094 : ${lt_cv_path_NM=no} 7095fi 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7098$as_echo "$lt_cv_path_NM" >&6; } 7099if test no != "$lt_cv_path_NM"; then 7100 NM=$lt_cv_path_NM 7101else 7102 # Didn't find any BSD compatible name lister, look for dumpbin. 7103 if test -n "$DUMPBIN"; then : 7104 # Let the user override the test. 7105 else 7106 if test -n "$ac_tool_prefix"; then 7107 for ac_prog in dumpbin "link -dump" 7108 do 7109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7110set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_prog_DUMPBIN+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 if test -n "$DUMPBIN"; then 7117 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7126 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131 done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136DUMPBIN=$ac_cv_prog_DUMPBIN 7137if test -n "$DUMPBIN"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7139$as_echo "$DUMPBIN" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 7146 test -n "$DUMPBIN" && break 7147 done 7148fi 7149if test -z "$DUMPBIN"; then 7150 ac_ct_DUMPBIN=$DUMPBIN 7151 for ac_prog in dumpbin "link -dump" 7152do 7153 # Extract the first word of "$ac_prog", so it can be a program name with args. 7154set dummy $ac_prog; ac_word=$2 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156$as_echo_n "checking for $ac_word... " >&6; } 7157if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 if test -n "$ac_ct_DUMPBIN"; then 7161 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7162else 7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7164for as_dir in $PATH 7165do 7166 IFS=$as_save_IFS 7167 test -z "$as_dir" && as_dir=. 7168 for ac_exec_ext in '' $ac_executable_extensions; do 7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7170 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7172 break 2 7173 fi 7174done 7175 done 7176IFS=$as_save_IFS 7177 7178fi 7179fi 7180ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7181if test -n "$ac_ct_DUMPBIN"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7183$as_echo "$ac_ct_DUMPBIN" >&6; } 7184else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186$as_echo "no" >&6; } 7187fi 7188 7189 7190 test -n "$ac_ct_DUMPBIN" && break 7191done 7192 7193 if test "x$ac_ct_DUMPBIN" = x; then 7194 DUMPBIN=":" 7195 else 7196 case $cross_compiling:$ac_tool_warned in 7197yes:) 7198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7200ac_tool_warned=yes ;; 7201esac 7202 DUMPBIN=$ac_ct_DUMPBIN 7203 fi 7204fi 7205 7206 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7207 *COFF*) 7208 DUMPBIN="$DUMPBIN -symbols -headers" 7209 ;; 7210 *) 7211 DUMPBIN=: 7212 ;; 7213 esac 7214 fi 7215 7216 if test : != "$DUMPBIN"; then 7217 NM=$DUMPBIN 7218 fi 7219fi 7220test -z "$NM" && NM=nm 7221 7222 7223 7224 7225 7226 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7228$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7229if ${lt_cv_nm_interface+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 lt_cv_nm_interface="BSD nm" 7233 echo "int some_variable = 0;" > conftest.$ac_ext 7234 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7235 (eval "$ac_compile" 2>conftest.err) 7236 cat conftest.err >&5 7237 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7238 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7239 cat conftest.err >&5 7240 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7241 cat conftest.out >&5 7242 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7243 lt_cv_nm_interface="MS dumpbin" 7244 fi 7245 rm -f conftest* 7246fi 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7248$as_echo "$lt_cv_nm_interface" >&6; } 7249 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7251$as_echo_n "checking whether ln -s works... " >&6; } 7252LN_S=$as_ln_s 7253if test "$LN_S" = "ln -s"; then 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7255$as_echo "yes" >&6; } 7256else 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7258$as_echo "no, using $LN_S" >&6; } 7259fi 7260 7261# find the maximum length of command line arguments 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7263$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7264if ${lt_cv_sys_max_cmd_len+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 i=0 7268 teststring=ABCD 7269 7270 case $build_os in 7271 msdosdjgpp*) 7272 # On DJGPP, this test can blow up pretty badly due to problems in libc 7273 # (any single argument exceeding 2000 bytes causes a buffer overrun 7274 # during glob expansion). Even if it were fixed, the result of this 7275 # check would be larger than it should be. 7276 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7277 ;; 7278 7279 gnu*) 7280 # Under GNU Hurd, this test is not required because there is 7281 # no limit to the length of command line arguments. 7282 # Libtool will interpret -1 as no limit whatsoever 7283 lt_cv_sys_max_cmd_len=-1; 7284 ;; 7285 7286 cygwin* | mingw* | cegcc*) 7287 # On Win9x/ME, this test blows up -- it succeeds, but takes 7288 # about 5 minutes as the teststring grows exponentially. 7289 # Worse, since 9x/ME are not pre-emptively multitasking, 7290 # you end up with a "frozen" computer, even though with patience 7291 # the test eventually succeeds (with a max line length of 256k). 7292 # Instead, let's just punt: use the minimum linelength reported by 7293 # all of the supported platforms: 8192 (on NT/2K/XP). 7294 lt_cv_sys_max_cmd_len=8192; 7295 ;; 7296 7297 mint*) 7298 # On MiNT this can take a long time and run out of memory. 7299 lt_cv_sys_max_cmd_len=8192; 7300 ;; 7301 7302 amigaos*) 7303 # On AmigaOS with pdksh, this test takes hours, literally. 7304 # So we just punt and use a minimum line length of 8192. 7305 lt_cv_sys_max_cmd_len=8192; 7306 ;; 7307 7308 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7309 # This has been around since 386BSD, at least. Likely further. 7310 if test -x /sbin/sysctl; then 7311 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7312 elif test -x /usr/sbin/sysctl; then 7313 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7314 else 7315 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7316 fi 7317 # And add a safety zone 7318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7320 ;; 7321 7322 interix*) 7323 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7324 lt_cv_sys_max_cmd_len=196608 7325 ;; 7326 7327 os2*) 7328 # The test takes a long time on OS/2. 7329 lt_cv_sys_max_cmd_len=8192 7330 ;; 7331 7332 osf*) 7333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7335 # nice to cause kernel panics so lets avoid the loop below. 7336 # First set a reasonable default. 7337 lt_cv_sys_max_cmd_len=16384 7338 # 7339 if test -x /sbin/sysconfig; then 7340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7341 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7342 esac 7343 fi 7344 ;; 7345 sco3.2v5*) 7346 lt_cv_sys_max_cmd_len=102400 7347 ;; 7348 sysv5* | sco5v6* | sysv4.2uw2*) 7349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7350 if test -n "$kargmax"; then 7351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7352 else 7353 lt_cv_sys_max_cmd_len=32768 7354 fi 7355 ;; 7356 *) 7357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7358 if test -n "$lt_cv_sys_max_cmd_len" && \ 7359 test undefined != "$lt_cv_sys_max_cmd_len"; then 7360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7362 else 7363 # Make teststring a little bigger before we do anything with it. 7364 # a 1K string should be a reasonable start. 7365 for i in 1 2 3 4 5 6 7 8; do 7366 teststring=$teststring$teststring 7367 done 7368 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7369 # If test is not a shell built-in, we'll probably end up computing a 7370 # maximum length that is only half of the actual maximum length, but 7371 # we can't tell. 7372 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7373 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7374 test 17 != "$i" # 1/2 MB should be enough 7375 do 7376 i=`expr $i + 1` 7377 teststring=$teststring$teststring 7378 done 7379 # Only check the string length outside the loop. 7380 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7381 teststring= 7382 # Add a significant safety factor because C++ compilers can tack on 7383 # massive amounts of additional arguments before passing them to the 7384 # linker. It appears as though 1/2 is a usable value. 7385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7386 fi 7387 ;; 7388 esac 7389 7390fi 7391 7392if test -n "$lt_cv_sys_max_cmd_len"; then 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7394$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7395else 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7397$as_echo "none" >&6; } 7398fi 7399max_cmd_len=$lt_cv_sys_max_cmd_len 7400 7401 7402 7403 7404 7405 7406: ${CP="cp -f"} 7407: ${MV="mv -f"} 7408: ${RM="rm -f"} 7409 7410if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7411 lt_unset=unset 7412else 7413 lt_unset=false 7414fi 7415 7416 7417 7418 7419 7420# test EBCDIC or ASCII 7421case `echo X|tr X '\101'` in 7422 A) # ASCII based system 7423 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7424 lt_SP2NL='tr \040 \012' 7425 lt_NL2SP='tr \015\012 \040\040' 7426 ;; 7427 *) # EBCDIC based system 7428 lt_SP2NL='tr \100 \n' 7429 lt_NL2SP='tr \r\n \100\100' 7430 ;; 7431esac 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7442$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7443if ${lt_cv_to_host_file_cmd+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 case $host in 7447 *-*-mingw* ) 7448 case $build in 7449 *-*-mingw* ) # actually msys 7450 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7451 ;; 7452 *-*-cygwin* ) 7453 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7454 ;; 7455 * ) # otherwise, assume *nix 7456 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7457 ;; 7458 esac 7459 ;; 7460 *-*-cygwin* ) 7461 case $build in 7462 *-*-mingw* ) # actually msys 7463 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7464 ;; 7465 *-*-cygwin* ) 7466 lt_cv_to_host_file_cmd=func_convert_file_noop 7467 ;; 7468 * ) # otherwise, assume *nix 7469 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7470 ;; 7471 esac 7472 ;; 7473 * ) # unhandled hosts (and "normal" native builds) 7474 lt_cv_to_host_file_cmd=func_convert_file_noop 7475 ;; 7476esac 7477 7478fi 7479 7480to_host_file_cmd=$lt_cv_to_host_file_cmd 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7482$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7483 7484 7485 7486 7487 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7489$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7490if ${lt_cv_to_tool_file_cmd+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 #assume ordinary cross tools, or native build. 7494lt_cv_to_tool_file_cmd=func_convert_file_noop 7495case $host in 7496 *-*-mingw* ) 7497 case $build in 7498 *-*-mingw* ) # actually msys 7499 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7500 ;; 7501 esac 7502 ;; 7503esac 7504 7505fi 7506 7507to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7509$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7510 7511 7512 7513 7514 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7516$as_echo_n "checking for $LD option to reload object files... " >&6; } 7517if ${lt_cv_ld_reload_flag+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 lt_cv_ld_reload_flag='-r' 7521fi 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7523$as_echo "$lt_cv_ld_reload_flag" >&6; } 7524reload_flag=$lt_cv_ld_reload_flag 7525case $reload_flag in 7526"" | " "*) ;; 7527*) reload_flag=" $reload_flag" ;; 7528esac 7529reload_cmds='$LD$reload_flag -o $output$reload_objs' 7530case $host_os in 7531 cygwin* | mingw* | pw32* | cegcc*) 7532 if test yes != "$GCC"; then 7533 reload_cmds=false 7534 fi 7535 ;; 7536 darwin*) 7537 if test yes = "$GCC"; then 7538 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7539 else 7540 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7541 fi 7542 ;; 7543esac 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553if test -n "$ac_tool_prefix"; then 7554 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7555set dummy ${ac_tool_prefix}objdump; ac_word=$2 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7557$as_echo_n "checking for $ac_word... " >&6; } 7558if ${ac_cv_prog_OBJDUMP+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 if test -n "$OBJDUMP"; then 7562 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7563else 7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7565for as_dir in $PATH 7566do 7567 IFS=$as_save_IFS 7568 test -z "$as_dir" && as_dir=. 7569 for ac_exec_ext in '' $ac_executable_extensions; do 7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7571 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7573 break 2 7574 fi 7575done 7576 done 7577IFS=$as_save_IFS 7578 7579fi 7580fi 7581OBJDUMP=$ac_cv_prog_OBJDUMP 7582if test -n "$OBJDUMP"; then 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7584$as_echo "$OBJDUMP" >&6; } 7585else 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7587$as_echo "no" >&6; } 7588fi 7589 7590 7591fi 7592if test -z "$ac_cv_prog_OBJDUMP"; then 7593 ac_ct_OBJDUMP=$OBJDUMP 7594 # Extract the first word of "objdump", so it can be a program name with args. 7595set dummy objdump; ac_word=$2 7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7597$as_echo_n "checking for $ac_word... " >&6; } 7598if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 if test -n "$ac_ct_OBJDUMP"; then 7602 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7603else 7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7605for as_dir in $PATH 7606do 7607 IFS=$as_save_IFS 7608 test -z "$as_dir" && as_dir=. 7609 for ac_exec_ext in '' $ac_executable_extensions; do 7610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7611 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7613 break 2 7614 fi 7615done 7616 done 7617IFS=$as_save_IFS 7618 7619fi 7620fi 7621ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7622if test -n "$ac_ct_OBJDUMP"; then 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7624$as_echo "$ac_ct_OBJDUMP" >&6; } 7625else 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7627$as_echo "no" >&6; } 7628fi 7629 7630 if test "x$ac_ct_OBJDUMP" = x; then 7631 OBJDUMP="false" 7632 else 7633 case $cross_compiling:$ac_tool_warned in 7634yes:) 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7637ac_tool_warned=yes ;; 7638esac 7639 OBJDUMP=$ac_ct_OBJDUMP 7640 fi 7641else 7642 OBJDUMP="$ac_cv_prog_OBJDUMP" 7643fi 7644 7645test -z "$OBJDUMP" && OBJDUMP=objdump 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7656$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7657if ${lt_cv_deplibs_check_method+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 lt_cv_file_magic_cmd='$MAGIC_CMD' 7661lt_cv_file_magic_test_file= 7662lt_cv_deplibs_check_method='unknown' 7663# Need to set the preceding variable on all platforms that support 7664# interlibrary dependencies. 7665# 'none' -- dependencies not supported. 7666# 'unknown' -- same as none, but documents that we really don't know. 7667# 'pass_all' -- all dependencies passed with no checks. 7668# 'test_compile' -- check by making test program. 7669# 'file_magic [[regex]]' -- check by looking for files in library path 7670# that responds to the $file_magic_cmd with a given extended regex. 7671# If you have 'file' or equivalent on your system and you're not sure 7672# whether 'pass_all' will *always* work, you probably want this one. 7673 7674case $host_os in 7675aix[4-9]*) 7676 lt_cv_deplibs_check_method=pass_all 7677 ;; 7678 7679beos*) 7680 lt_cv_deplibs_check_method=pass_all 7681 ;; 7682 7683bsdi[45]*) 7684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7685 lt_cv_file_magic_cmd='/usr/bin/file -L' 7686 lt_cv_file_magic_test_file=/shlib/libc.so 7687 ;; 7688 7689cygwin*) 7690 # func_win32_libid is a shell function defined in ltmain.sh 7691 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7692 lt_cv_file_magic_cmd='func_win32_libid' 7693 ;; 7694 7695mingw* | pw32*) 7696 # Base MSYS/MinGW do not provide the 'file' command needed by 7697 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7698 # unless we find 'file', for example because we are cross-compiling. 7699 if ( file / ) >/dev/null 2>&1; then 7700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7701 lt_cv_file_magic_cmd='func_win32_libid' 7702 else 7703 # Keep this pattern in sync with the one in func_win32_libid. 7704 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7705 lt_cv_file_magic_cmd='$OBJDUMP -f' 7706 fi 7707 ;; 7708 7709cegcc*) 7710 # use the weaker test based on 'objdump'. See mingw*. 7711 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7712 lt_cv_file_magic_cmd='$OBJDUMP -f' 7713 ;; 7714 7715darwin* | rhapsody*) 7716 lt_cv_deplibs_check_method=pass_all 7717 ;; 7718 7719freebsd* | dragonfly*) 7720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7721 case $host_cpu in 7722 i*86 ) 7723 # Not sure whether the presence of OpenBSD here was a mistake. 7724 # Let's accept both of them until this is cleared up. 7725 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7726 lt_cv_file_magic_cmd=/usr/bin/file 7727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7728 ;; 7729 esac 7730 else 7731 lt_cv_deplibs_check_method=pass_all 7732 fi 7733 ;; 7734 7735haiku*) 7736 lt_cv_deplibs_check_method=pass_all 7737 ;; 7738 7739hpux10.20* | hpux11*) 7740 lt_cv_file_magic_cmd=/usr/bin/file 7741 case $host_cpu in 7742 ia64*) 7743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7744 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7745 ;; 7746 hppa*64*) 7747 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]' 7748 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7749 ;; 7750 *) 7751 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7752 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7753 ;; 7754 esac 7755 ;; 7756 7757interix[3-9]*) 7758 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7760 ;; 7761 7762irix5* | irix6* | nonstopux*) 7763 case $LD in 7764 *-32|*"-32 ") libmagic=32-bit;; 7765 *-n32|*"-n32 ") libmagic=N32;; 7766 *-64|*"-64 ") libmagic=64-bit;; 7767 *) libmagic=never-match;; 7768 esac 7769 lt_cv_deplibs_check_method=pass_all 7770 ;; 7771 7772# This must be glibc/ELF. 7773linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7774 lt_cv_deplibs_check_method=pass_all 7775 ;; 7776 7777netbsd* | netbsdelf*-gnu) 7778 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7780 else 7781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7782 fi 7783 ;; 7784 7785newos6*) 7786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7787 lt_cv_file_magic_cmd=/usr/bin/file 7788 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7789 ;; 7790 7791*nto* | *qnx*) 7792 lt_cv_deplibs_check_method=pass_all 7793 ;; 7794 7795openbsd* | bitrig*) 7796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7798 else 7799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7800 fi 7801 ;; 7802 7803osf3* | osf4* | osf5*) 7804 lt_cv_deplibs_check_method=pass_all 7805 ;; 7806 7807rdos*) 7808 lt_cv_deplibs_check_method=pass_all 7809 ;; 7810 7811solaris*) 7812 lt_cv_deplibs_check_method=pass_all 7813 ;; 7814 7815sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7816 lt_cv_deplibs_check_method=pass_all 7817 ;; 7818 7819sysv4 | sysv4.3*) 7820 case $host_vendor in 7821 motorola) 7822 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]' 7823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7824 ;; 7825 ncr) 7826 lt_cv_deplibs_check_method=pass_all 7827 ;; 7828 sequent) 7829 lt_cv_file_magic_cmd='/bin/file' 7830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7831 ;; 7832 sni) 7833 lt_cv_file_magic_cmd='/bin/file' 7834 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7835 lt_cv_file_magic_test_file=/lib/libc.so 7836 ;; 7837 siemens) 7838 lt_cv_deplibs_check_method=pass_all 7839 ;; 7840 pc) 7841 lt_cv_deplibs_check_method=pass_all 7842 ;; 7843 esac 7844 ;; 7845 7846tpf*) 7847 lt_cv_deplibs_check_method=pass_all 7848 ;; 7849os2*) 7850 lt_cv_deplibs_check_method=pass_all 7851 ;; 7852esac 7853 7854fi 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7856$as_echo "$lt_cv_deplibs_check_method" >&6; } 7857 7858file_magic_glob= 7859want_nocaseglob=no 7860if test "$build" = "$host"; then 7861 case $host_os in 7862 mingw* | pw32*) 7863 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7864 want_nocaseglob=yes 7865 else 7866 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7867 fi 7868 ;; 7869 esac 7870fi 7871 7872file_magic_cmd=$lt_cv_file_magic_cmd 7873deplibs_check_method=$lt_cv_deplibs_check_method 7874test -z "$deplibs_check_method" && deplibs_check_method=unknown 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897if test -n "$ac_tool_prefix"; then 7898 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7899set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7901$as_echo_n "checking for $ac_word... " >&6; } 7902if ${ac_cv_prog_DLLTOOL+:} false; then : 7903 $as_echo_n "(cached) " >&6 7904else 7905 if test -n "$DLLTOOL"; then 7906 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7907else 7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7909for as_dir in $PATH 7910do 7911 IFS=$as_save_IFS 7912 test -z "$as_dir" && as_dir=. 7913 for ac_exec_ext in '' $ac_executable_extensions; do 7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7915 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7917 break 2 7918 fi 7919done 7920 done 7921IFS=$as_save_IFS 7922 7923fi 7924fi 7925DLLTOOL=$ac_cv_prog_DLLTOOL 7926if test -n "$DLLTOOL"; then 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7928$as_echo "$DLLTOOL" >&6; } 7929else 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7931$as_echo "no" >&6; } 7932fi 7933 7934 7935fi 7936if test -z "$ac_cv_prog_DLLTOOL"; then 7937 ac_ct_DLLTOOL=$DLLTOOL 7938 # Extract the first word of "dlltool", so it can be a program name with args. 7939set dummy dlltool; ac_word=$2 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7941$as_echo_n "checking for $ac_word... " >&6; } 7942if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7943 $as_echo_n "(cached) " >&6 7944else 7945 if test -n "$ac_ct_DLLTOOL"; then 7946 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7947else 7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7949for as_dir in $PATH 7950do 7951 IFS=$as_save_IFS 7952 test -z "$as_dir" && as_dir=. 7953 for ac_exec_ext in '' $ac_executable_extensions; do 7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7955 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7957 break 2 7958 fi 7959done 7960 done 7961IFS=$as_save_IFS 7962 7963fi 7964fi 7965ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7966if test -n "$ac_ct_DLLTOOL"; then 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7968$as_echo "$ac_ct_DLLTOOL" >&6; } 7969else 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971$as_echo "no" >&6; } 7972fi 7973 7974 if test "x$ac_ct_DLLTOOL" = x; then 7975 DLLTOOL="false" 7976 else 7977 case $cross_compiling:$ac_tool_warned in 7978yes:) 7979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7981ac_tool_warned=yes ;; 7982esac 7983 DLLTOOL=$ac_ct_DLLTOOL 7984 fi 7985else 7986 DLLTOOL="$ac_cv_prog_DLLTOOL" 7987fi 7988 7989test -z "$DLLTOOL" && DLLTOOL=dlltool 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8001$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8002if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 lt_cv_sharedlib_from_linklib_cmd='unknown' 8006 8007case $host_os in 8008cygwin* | mingw* | pw32* | cegcc*) 8009 # two different shell functions defined in ltmain.sh; 8010 # decide which one to use based on capabilities of $DLLTOOL 8011 case `$DLLTOOL --help 2>&1` in 8012 *--identify-strict*) 8013 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8014 ;; 8015 *) 8016 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8017 ;; 8018 esac 8019 ;; 8020*) 8021 # fallback: assume linklib IS sharedlib 8022 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8023 ;; 8024esac 8025 8026fi 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8028$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8029sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8030test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8031 8032 8033 8034 8035 8036 8037 8038 8039if test -n "$ac_tool_prefix"; then 8040 for ac_prog in ar 8041 do 8042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8043set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8045$as_echo_n "checking for $ac_word... " >&6; } 8046if ${ac_cv_prog_AR+:} false; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 if test -n "$AR"; then 8050 ac_cv_prog_AR="$AR" # Let the user override the test. 8051else 8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8053for as_dir in $PATH 8054do 8055 IFS=$as_save_IFS 8056 test -z "$as_dir" && as_dir=. 8057 for ac_exec_ext in '' $ac_executable_extensions; do 8058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8059 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8061 break 2 8062 fi 8063done 8064 done 8065IFS=$as_save_IFS 8066 8067fi 8068fi 8069AR=$ac_cv_prog_AR 8070if test -n "$AR"; then 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8072$as_echo "$AR" >&6; } 8073else 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075$as_echo "no" >&6; } 8076fi 8077 8078 8079 test -n "$AR" && break 8080 done 8081fi 8082if test -z "$AR"; then 8083 ac_ct_AR=$AR 8084 for ac_prog in ar 8085do 8086 # Extract the first word of "$ac_prog", so it can be a program name with args. 8087set dummy $ac_prog; ac_word=$2 8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8089$as_echo_n "checking for $ac_word... " >&6; } 8090if ${ac_cv_prog_ac_ct_AR+:} false; then : 8091 $as_echo_n "(cached) " >&6 8092else 8093 if test -n "$ac_ct_AR"; then 8094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8095else 8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8097for as_dir in $PATH 8098do 8099 IFS=$as_save_IFS 8100 test -z "$as_dir" && as_dir=. 8101 for ac_exec_ext in '' $ac_executable_extensions; do 8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8103 ac_cv_prog_ac_ct_AR="$ac_prog" 8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8105 break 2 8106 fi 8107done 8108 done 8109IFS=$as_save_IFS 8110 8111fi 8112fi 8113ac_ct_AR=$ac_cv_prog_ac_ct_AR 8114if test -n "$ac_ct_AR"; then 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8116$as_echo "$ac_ct_AR" >&6; } 8117else 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8119$as_echo "no" >&6; } 8120fi 8121 8122 8123 test -n "$ac_ct_AR" && break 8124done 8125 8126 if test "x$ac_ct_AR" = x; then 8127 AR="false" 8128 else 8129 case $cross_compiling:$ac_tool_warned in 8130yes:) 8131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8133ac_tool_warned=yes ;; 8134esac 8135 AR=$ac_ct_AR 8136 fi 8137fi 8138 8139: ${AR=ar} 8140: ${AR_FLAGS=cru} 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8153$as_echo_n "checking for archiver @FILE support... " >&6; } 8154if ${lt_cv_ar_at_file+:} false; then : 8155 $as_echo_n "(cached) " >&6 8156else 8157 lt_cv_ar_at_file=no 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160 8161int 8162main () 8163{ 8164 8165 ; 8166 return 0; 8167} 8168_ACEOF 8169if ac_fn_c_try_compile "$LINENO"; then : 8170 echo conftest.$ac_objext > conftest.lst 8171 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8173 (eval $lt_ar_try) 2>&5 8174 ac_status=$? 8175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8176 test $ac_status = 0; } 8177 if test 0 -eq "$ac_status"; then 8178 # Ensure the archiver fails upon bogus file names. 8179 rm -f conftest.$ac_objext libconftest.a 8180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8181 (eval $lt_ar_try) 2>&5 8182 ac_status=$? 8183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8184 test $ac_status = 0; } 8185 if test 0 -ne "$ac_status"; then 8186 lt_cv_ar_at_file=@ 8187 fi 8188 fi 8189 rm -f conftest.* libconftest.a 8190 8191fi 8192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8193 8194fi 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8196$as_echo "$lt_cv_ar_at_file" >&6; } 8197 8198if test no = "$lt_cv_ar_at_file"; then 8199 archiver_list_spec= 8200else 8201 archiver_list_spec=$lt_cv_ar_at_file 8202fi 8203 8204 8205 8206 8207 8208 8209 8210if test -n "$ac_tool_prefix"; then 8211 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8212set dummy ${ac_tool_prefix}strip; ac_word=$2 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8214$as_echo_n "checking for $ac_word... " >&6; } 8215if ${ac_cv_prog_STRIP+:} false; then : 8216 $as_echo_n "(cached) " >&6 8217else 8218 if test -n "$STRIP"; then 8219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8220else 8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8222for as_dir in $PATH 8223do 8224 IFS=$as_save_IFS 8225 test -z "$as_dir" && as_dir=. 8226 for ac_exec_ext in '' $ac_executable_extensions; do 8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8228 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8230 break 2 8231 fi 8232done 8233 done 8234IFS=$as_save_IFS 8235 8236fi 8237fi 8238STRIP=$ac_cv_prog_STRIP 8239if test -n "$STRIP"; then 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8241$as_echo "$STRIP" >&6; } 8242else 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8244$as_echo "no" >&6; } 8245fi 8246 8247 8248fi 8249if test -z "$ac_cv_prog_STRIP"; then 8250 ac_ct_STRIP=$STRIP 8251 # Extract the first word of "strip", so it can be a program name with args. 8252set dummy strip; ac_word=$2 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8254$as_echo_n "checking for $ac_word... " >&6; } 8255if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8256 $as_echo_n "(cached) " >&6 8257else 8258 if test -n "$ac_ct_STRIP"; then 8259 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8260else 8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8262for as_dir in $PATH 8263do 8264 IFS=$as_save_IFS 8265 test -z "$as_dir" && as_dir=. 8266 for ac_exec_ext in '' $ac_executable_extensions; do 8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8268 ac_cv_prog_ac_ct_STRIP="strip" 8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8270 break 2 8271 fi 8272done 8273 done 8274IFS=$as_save_IFS 8275 8276fi 8277fi 8278ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8279if test -n "$ac_ct_STRIP"; then 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8281$as_echo "$ac_ct_STRIP" >&6; } 8282else 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8284$as_echo "no" >&6; } 8285fi 8286 8287 if test "x$ac_ct_STRIP" = x; then 8288 STRIP=":" 8289 else 8290 case $cross_compiling:$ac_tool_warned in 8291yes:) 8292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8294ac_tool_warned=yes ;; 8295esac 8296 STRIP=$ac_ct_STRIP 8297 fi 8298else 8299 STRIP="$ac_cv_prog_STRIP" 8300fi 8301 8302test -z "$STRIP" && STRIP=: 8303 8304 8305 8306 8307 8308 8309if test -n "$ac_tool_prefix"; then 8310 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8311set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8313$as_echo_n "checking for $ac_word... " >&6; } 8314if ${ac_cv_prog_RANLIB+:} false; then : 8315 $as_echo_n "(cached) " >&6 8316else 8317 if test -n "$RANLIB"; then 8318 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8319else 8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8321for as_dir in $PATH 8322do 8323 IFS=$as_save_IFS 8324 test -z "$as_dir" && as_dir=. 8325 for ac_exec_ext in '' $ac_executable_extensions; do 8326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8327 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8329 break 2 8330 fi 8331done 8332 done 8333IFS=$as_save_IFS 8334 8335fi 8336fi 8337RANLIB=$ac_cv_prog_RANLIB 8338if test -n "$RANLIB"; then 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8340$as_echo "$RANLIB" >&6; } 8341else 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8343$as_echo "no" >&6; } 8344fi 8345 8346 8347fi 8348if test -z "$ac_cv_prog_RANLIB"; then 8349 ac_ct_RANLIB=$RANLIB 8350 # Extract the first word of "ranlib", so it can be a program name with args. 8351set dummy ranlib; ac_word=$2 8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8353$as_echo_n "checking for $ac_word... " >&6; } 8354if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 if test -n "$ac_ct_RANLIB"; then 8358 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8359else 8360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8361for as_dir in $PATH 8362do 8363 IFS=$as_save_IFS 8364 test -z "$as_dir" && as_dir=. 8365 for ac_exec_ext in '' $ac_executable_extensions; do 8366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8367 ac_cv_prog_ac_ct_RANLIB="ranlib" 8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8369 break 2 8370 fi 8371done 8372 done 8373IFS=$as_save_IFS 8374 8375fi 8376fi 8377ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8378if test -n "$ac_ct_RANLIB"; then 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8380$as_echo "$ac_ct_RANLIB" >&6; } 8381else 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8383$as_echo "no" >&6; } 8384fi 8385 8386 if test "x$ac_ct_RANLIB" = x; then 8387 RANLIB=":" 8388 else 8389 case $cross_compiling:$ac_tool_warned in 8390yes:) 8391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8393ac_tool_warned=yes ;; 8394esac 8395 RANLIB=$ac_ct_RANLIB 8396 fi 8397else 8398 RANLIB="$ac_cv_prog_RANLIB" 8399fi 8400 8401test -z "$RANLIB" && RANLIB=: 8402 8403 8404 8405 8406 8407 8408# Determine commands to create old-style static archives. 8409old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8410old_postinstall_cmds='chmod 644 $oldlib' 8411old_postuninstall_cmds= 8412 8413if test -n "$RANLIB"; then 8414 case $host_os in 8415 bitrig* | openbsd*) 8416 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8417 ;; 8418 *) 8419 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8420 ;; 8421 esac 8422 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8423fi 8424 8425case $host_os in 8426 darwin*) 8427 lock_old_archive_extraction=yes ;; 8428 *) 8429 lock_old_archive_extraction=no ;; 8430esac 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470# If no C compiler was specified, use CC. 8471LTCC=${LTCC-"$CC"} 8472 8473# If no C compiler flags were specified, use CFLAGS. 8474LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8475 8476# Allow CC to be a program name with arguments. 8477compiler=$CC 8478 8479 8480# Check for command to grab the raw symbol name followed by C symbol from nm. 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8482$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8483if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 8487# These are sane defaults that work on at least a few old systems. 8488# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8489 8490# Character class describing NM global symbol codes. 8491symcode='[BCDEGRST]' 8492 8493# Regexp to match symbols that can be accessed directly from C. 8494sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8495 8496# Define system-specific variables. 8497case $host_os in 8498aix*) 8499 symcode='[BCDT]' 8500 ;; 8501cygwin* | mingw* | pw32* | cegcc*) 8502 symcode='[ABCDGISTW]' 8503 ;; 8504hpux*) 8505 if test ia64 = "$host_cpu"; then 8506 symcode='[ABCDEGRST]' 8507 fi 8508 ;; 8509irix* | nonstopux*) 8510 symcode='[BCDEGRST]' 8511 ;; 8512osf*) 8513 symcode='[BCDEGQRST]' 8514 ;; 8515solaris*) 8516 symcode='[BDRT]' 8517 ;; 8518sco3.2v5*) 8519 symcode='[DT]' 8520 ;; 8521sysv4.2uw2*) 8522 symcode='[DT]' 8523 ;; 8524sysv5* | sco5v6* | unixware* | OpenUNIX*) 8525 symcode='[ABDT]' 8526 ;; 8527sysv4) 8528 symcode='[DFNSTU]' 8529 ;; 8530esac 8531 8532# If we're using GNU nm, then use its standard symbol codes. 8533case `$NM -V 2>&1` in 8534*GNU* | *'with BFD'*) 8535 symcode='[ABCDGIRSTW]' ;; 8536esac 8537 8538if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8539 # Gets list of data symbols to import. 8540 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8541 # Adjust the below global symbol transforms to fixup imported variables. 8542 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8543 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8544 lt_c_name_lib_hook="\ 8545 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8546 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8547else 8548 # Disable hooks by default. 8549 lt_cv_sys_global_symbol_to_import= 8550 lt_cdecl_hook= 8551 lt_c_name_hook= 8552 lt_c_name_lib_hook= 8553fi 8554 8555# Transform an extracted symbol line into a proper C declaration. 8556# Some systems (esp. on ia64) link data and code symbols differently, 8557# so use this general approach. 8558lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8559$lt_cdecl_hook\ 8560" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8561" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8562 8563# Transform an extracted symbol line into symbol name and symbol address 8564lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8565$lt_c_name_hook\ 8566" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8567" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8568 8569# Transform an extracted symbol line into symbol name with lib prefix and 8570# symbol address. 8571lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8572$lt_c_name_lib_hook\ 8573" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8574" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8575" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8576 8577# Handle CRLF in mingw tool chain 8578opt_cr= 8579case $build_os in 8580mingw*) 8581 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8582 ;; 8583esac 8584 8585# Try without a prefix underscore, then with it. 8586for ac_symprfx in "" "_"; do 8587 8588 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8589 symxfrm="\\1 $ac_symprfx\\2 \\2" 8590 8591 # Write the raw and C identifiers. 8592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8593 # Fake it for dumpbin and say T for any non-static function, 8594 # D for any global variable and I for any imported variable. 8595 # Also find C++ and __fastcall symbols from MSVC++, 8596 # which start with @ or ?. 8597 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8598" {last_section=section; section=\$ 3};"\ 8599" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8600" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8601" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8602" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8603" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8604" \$ 0!~/External *\|/{next};"\ 8605" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8606" {if(hide[section]) next};"\ 8607" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8608" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8609" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8610" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8611" ' prfx=^$ac_symprfx" 8612 else 8613 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8614 fi 8615 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8616 8617 # Check to see that the pipe works correctly. 8618 pipe_works=no 8619 8620 rm -f conftest* 8621 cat > conftest.$ac_ext <<_LT_EOF 8622#ifdef __cplusplus 8623extern "C" { 8624#endif 8625char nm_test_var; 8626void nm_test_func(void); 8627void nm_test_func(void){} 8628#ifdef __cplusplus 8629} 8630#endif 8631int main(){nm_test_var='a';nm_test_func();return(0);} 8632_LT_EOF 8633 8634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8635 (eval $ac_compile) 2>&5 8636 ac_status=$? 8637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8638 test $ac_status = 0; }; then 8639 # Now try to grab the symbols. 8640 nlist=conftest.nm 8641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8642 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8643 ac_status=$? 8644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8645 test $ac_status = 0; } && test -s "$nlist"; then 8646 # Try sorting and uniquifying the output. 8647 if sort "$nlist" | uniq > "$nlist"T; then 8648 mv -f "$nlist"T "$nlist" 8649 else 8650 rm -f "$nlist"T 8651 fi 8652 8653 # Make sure that we snagged all the symbols we need. 8654 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8655 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8656 cat <<_LT_EOF > conftest.$ac_ext 8657/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8658#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8659/* DATA imports from DLLs on WIN32 can't be const, because runtime 8660 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8661# define LT_DLSYM_CONST 8662#elif defined __osf__ 8663/* This system does not cope well with relocations in const data. */ 8664# define LT_DLSYM_CONST 8665#else 8666# define LT_DLSYM_CONST const 8667#endif 8668 8669#ifdef __cplusplus 8670extern "C" { 8671#endif 8672 8673_LT_EOF 8674 # Now generate the symbol file. 8675 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8676 8677 cat <<_LT_EOF >> conftest.$ac_ext 8678 8679/* The mapping between symbol names and symbols. */ 8680LT_DLSYM_CONST struct { 8681 const char *name; 8682 void *address; 8683} 8684lt__PROGRAM__LTX_preloaded_symbols[] = 8685{ 8686 { "@PROGRAM@", (void *) 0 }, 8687_LT_EOF 8688 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8689 cat <<\_LT_EOF >> conftest.$ac_ext 8690 {0, (void *) 0} 8691}; 8692 8693/* This works around a problem in FreeBSD linker */ 8694#ifdef FREEBSD_WORKAROUND 8695static const void *lt_preloaded_setup() { 8696 return lt__PROGRAM__LTX_preloaded_symbols; 8697} 8698#endif 8699 8700#ifdef __cplusplus 8701} 8702#endif 8703_LT_EOF 8704 # Now try linking the two files. 8705 mv conftest.$ac_objext conftstm.$ac_objext 8706 lt_globsym_save_LIBS=$LIBS 8707 lt_globsym_save_CFLAGS=$CFLAGS 8708 LIBS=conftstm.$ac_objext 8709 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8711 (eval $ac_link) 2>&5 8712 ac_status=$? 8713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8714 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8715 pipe_works=yes 8716 fi 8717 LIBS=$lt_globsym_save_LIBS 8718 CFLAGS=$lt_globsym_save_CFLAGS 8719 else 8720 echo "cannot find nm_test_func in $nlist" >&5 8721 fi 8722 else 8723 echo "cannot find nm_test_var in $nlist" >&5 8724 fi 8725 else 8726 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8727 fi 8728 else 8729 echo "$progname: failed program was:" >&5 8730 cat conftest.$ac_ext >&5 8731 fi 8732 rm -rf conftest* conftst* 8733 8734 # Do not use the global_symbol_pipe unless it works. 8735 if test yes = "$pipe_works"; then 8736 break 8737 else 8738 lt_cv_sys_global_symbol_pipe= 8739 fi 8740done 8741 8742fi 8743 8744if test -z "$lt_cv_sys_global_symbol_pipe"; then 8745 lt_cv_sys_global_symbol_to_cdecl= 8746fi 8747if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8749$as_echo "failed" >&6; } 8750else 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8752$as_echo "ok" >&6; } 8753fi 8754 8755# Response file support. 8756if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8757 nm_file_list_spec='@' 8758elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8759 nm_file_list_spec='@' 8760fi 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8799$as_echo_n "checking for sysroot... " >&6; } 8800 8801# Check whether --with-sysroot was given. 8802if test "${with_sysroot+set}" = set; then : 8803 withval=$with_sysroot; 8804else 8805 with_sysroot=no 8806fi 8807 8808 8809lt_sysroot= 8810case $with_sysroot in #( 8811 yes) 8812 if test yes = "$GCC"; then 8813 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8814 fi 8815 ;; #( 8816 /*) 8817 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8818 ;; #( 8819 no|'') 8820 ;; #( 8821 *) 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8823$as_echo "$with_sysroot" >&6; } 8824 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8825 ;; 8826esac 8827 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8829$as_echo "${lt_sysroot:-no}" >&6; } 8830 8831 8832 8833 8834 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8836$as_echo_n "checking for a working dd... " >&6; } 8837if ${ac_cv_path_lt_DD+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 printf 0123456789abcdef0123456789abcdef >conftest.i 8841cat conftest.i conftest.i >conftest2.i 8842: ${lt_DD:=$DD} 8843if test -z "$lt_DD"; then 8844 ac_path_lt_DD_found=false 8845 # Loop through the user's path and test for each of PROGNAME-LIST 8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8847for as_dir in $PATH 8848do 8849 IFS=$as_save_IFS 8850 test -z "$as_dir" && as_dir=. 8851 for ac_prog in dd; do 8852 for ac_exec_ext in '' $ac_executable_extensions; do 8853 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8854 as_fn_executable_p "$ac_path_lt_DD" || continue 8855if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8856 cmp -s conftest.i conftest.out \ 8857 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8858fi 8859 $ac_path_lt_DD_found && break 3 8860 done 8861 done 8862 done 8863IFS=$as_save_IFS 8864 if test -z "$ac_cv_path_lt_DD"; then 8865 : 8866 fi 8867else 8868 ac_cv_path_lt_DD=$lt_DD 8869fi 8870 8871rm -f conftest.i conftest2.i conftest.out 8872fi 8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8874$as_echo "$ac_cv_path_lt_DD" >&6; } 8875 8876 8877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8878$as_echo_n "checking how to truncate binary pipes... " >&6; } 8879if ${lt_cv_truncate_bin+:} false; then : 8880 $as_echo_n "(cached) " >&6 8881else 8882 printf 0123456789abcdef0123456789abcdef >conftest.i 8883cat conftest.i conftest.i >conftest2.i 8884lt_cv_truncate_bin= 8885if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8886 cmp -s conftest.i conftest.out \ 8887 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8888fi 8889rm -f conftest.i conftest2.i conftest.out 8890test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8891fi 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8893$as_echo "$lt_cv_truncate_bin" >&6; } 8894 8895 8896 8897 8898 8899 8900 8901# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8902func_cc_basename () 8903{ 8904 for cc_temp in $*""; do 8905 case $cc_temp in 8906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8908 \-*) ;; 8909 *) break;; 8910 esac 8911 done 8912 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8913} 8914 8915# Check whether --enable-libtool-lock was given. 8916if test "${enable_libtool_lock+set}" = set; then : 8917 enableval=$enable_libtool_lock; 8918fi 8919 8920test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8921 8922# Some flags need to be propagated to the compiler or linker for good 8923# libtool support. 8924case $host in 8925ia64-*-hpux*) 8926 # Find out what ABI is being produced by ac_compile, and set mode 8927 # options accordingly. 8928 echo 'int i;' > conftest.$ac_ext 8929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8930 (eval $ac_compile) 2>&5 8931 ac_status=$? 8932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8933 test $ac_status = 0; }; then 8934 case `/usr/bin/file conftest.$ac_objext` in 8935 *ELF-32*) 8936 HPUX_IA64_MODE=32 8937 ;; 8938 *ELF-64*) 8939 HPUX_IA64_MODE=64 8940 ;; 8941 esac 8942 fi 8943 rm -rf conftest* 8944 ;; 8945*-*-irix6*) 8946 # Find out what ABI is being produced by ac_compile, and set linker 8947 # options accordingly. 8948 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8950 (eval $ac_compile) 2>&5 8951 ac_status=$? 8952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8953 test $ac_status = 0; }; then 8954 if test yes = "$lt_cv_prog_gnu_ld"; then 8955 case `/usr/bin/file conftest.$ac_objext` in 8956 *32-bit*) 8957 LD="${LD-ld} -melf32bsmip" 8958 ;; 8959 *N32*) 8960 LD="${LD-ld} -melf32bmipn32" 8961 ;; 8962 *64-bit*) 8963 LD="${LD-ld} -melf64bmip" 8964 ;; 8965 esac 8966 else 8967 case `/usr/bin/file conftest.$ac_objext` in 8968 *32-bit*) 8969 LD="${LD-ld} -32" 8970 ;; 8971 *N32*) 8972 LD="${LD-ld} -n32" 8973 ;; 8974 *64-bit*) 8975 LD="${LD-ld} -64" 8976 ;; 8977 esac 8978 fi 8979 fi 8980 rm -rf conftest* 8981 ;; 8982 8983mips64*-*linux*) 8984 # Find out what ABI is being produced by ac_compile, and set linker 8985 # options accordingly. 8986 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8988 (eval $ac_compile) 2>&5 8989 ac_status=$? 8990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8991 test $ac_status = 0; }; then 8992 emul=elf 8993 case `/usr/bin/file conftest.$ac_objext` in 8994 *32-bit*) 8995 emul="${emul}32" 8996 ;; 8997 *64-bit*) 8998 emul="${emul}64" 8999 ;; 9000 esac 9001 case `/usr/bin/file conftest.$ac_objext` in 9002 *MSB*) 9003 emul="${emul}btsmip" 9004 ;; 9005 *LSB*) 9006 emul="${emul}ltsmip" 9007 ;; 9008 esac 9009 case `/usr/bin/file conftest.$ac_objext` in 9010 *N32*) 9011 emul="${emul}n32" 9012 ;; 9013 esac 9014 LD="${LD-ld} -m $emul" 9015 fi 9016 rm -rf conftest* 9017 ;; 9018 9019x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9020s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9021 # Find out what ABI is being produced by ac_compile, and set linker 9022 # options accordingly. Note that the listed cases only cover the 9023 # situations where additional linker options are needed (such as when 9024 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9025 # vice versa); the common cases where no linker options are needed do 9026 # not appear in the list. 9027 echo 'int i;' > conftest.$ac_ext 9028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9029 (eval $ac_compile) 2>&5 9030 ac_status=$? 9031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9032 test $ac_status = 0; }; then 9033 case `/usr/bin/file conftest.o` in 9034 *32-bit*) 9035 case $host in 9036 x86_64-*kfreebsd*-gnu) 9037 LD="${LD-ld} -m elf_i386_fbsd" 9038 ;; 9039 x86_64-*linux*) 9040 case `/usr/bin/file conftest.o` in 9041 *x86-64*) 9042 LD="${LD-ld} -m elf32_x86_64" 9043 ;; 9044 *) 9045 LD="${LD-ld} -m elf_i386" 9046 ;; 9047 esac 9048 ;; 9049 powerpc64le-*linux*) 9050 LD="${LD-ld} -m elf32lppclinux" 9051 ;; 9052 powerpc64-*linux*) 9053 LD="${LD-ld} -m elf32ppclinux" 9054 ;; 9055 s390x-*linux*) 9056 LD="${LD-ld} -m elf_s390" 9057 ;; 9058 sparc64-*linux*) 9059 LD="${LD-ld} -m elf32_sparc" 9060 ;; 9061 esac 9062 ;; 9063 *64-bit*) 9064 case $host in 9065 x86_64-*kfreebsd*-gnu) 9066 LD="${LD-ld} -m elf_x86_64_fbsd" 9067 ;; 9068 x86_64-*linux*) 9069 LD="${LD-ld} -m elf_x86_64" 9070 ;; 9071 powerpcle-*linux*) 9072 LD="${LD-ld} -m elf64lppc" 9073 ;; 9074 powerpc-*linux*) 9075 LD="${LD-ld} -m elf64ppc" 9076 ;; 9077 s390*-*linux*|s390*-*tpf*) 9078 LD="${LD-ld} -m elf64_s390" 9079 ;; 9080 sparc*-*linux*) 9081 LD="${LD-ld} -m elf64_sparc" 9082 ;; 9083 esac 9084 ;; 9085 esac 9086 fi 9087 rm -rf conftest* 9088 ;; 9089 9090*-*-sco3.2v5*) 9091 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9092 SAVE_CFLAGS=$CFLAGS 9093 CFLAGS="$CFLAGS -belf" 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9095$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9096if ${lt_cv_cc_needs_belf+:} false; then : 9097 $as_echo_n "(cached) " >&6 9098else 9099 ac_ext=c 9100ac_cpp='$CPP $CPPFLAGS' 9101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9103ac_compiler_gnu=$ac_cv_c_compiler_gnu 9104 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107 9108int 9109main () 9110{ 9111 9112 ; 9113 return 0; 9114} 9115_ACEOF 9116if ac_fn_c_try_link "$LINENO"; then : 9117 lt_cv_cc_needs_belf=yes 9118else 9119 lt_cv_cc_needs_belf=no 9120fi 9121rm -f core conftest.err conftest.$ac_objext \ 9122 conftest$ac_exeext conftest.$ac_ext 9123 ac_ext=c 9124ac_cpp='$CPP $CPPFLAGS' 9125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9127ac_compiler_gnu=$ac_cv_c_compiler_gnu 9128 9129fi 9130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9131$as_echo "$lt_cv_cc_needs_belf" >&6; } 9132 if test yes != "$lt_cv_cc_needs_belf"; then 9133 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9134 CFLAGS=$SAVE_CFLAGS 9135 fi 9136 ;; 9137*-*solaris*) 9138 # Find out what ABI is being produced by ac_compile, and set linker 9139 # options accordingly. 9140 echo 'int i;' > conftest.$ac_ext 9141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9142 (eval $ac_compile) 2>&5 9143 ac_status=$? 9144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9145 test $ac_status = 0; }; then 9146 case `/usr/bin/file conftest.o` in 9147 *64-bit*) 9148 case $lt_cv_prog_gnu_ld in 9149 yes*) 9150 case $host in 9151 i?86-*-solaris*|x86_64-*-solaris*) 9152 LD="${LD-ld} -m elf_x86_64" 9153 ;; 9154 sparc*-*-solaris*) 9155 LD="${LD-ld} -m elf64_sparc" 9156 ;; 9157 esac 9158 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9159 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9160 LD=${LD-ld}_sol2 9161 fi 9162 ;; 9163 *) 9164 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9165 LD="${LD-ld} -64" 9166 fi 9167 ;; 9168 esac 9169 ;; 9170 esac 9171 fi 9172 rm -rf conftest* 9173 ;; 9174esac 9175 9176need_locks=$enable_libtool_lock 9177 9178if test -n "$ac_tool_prefix"; then 9179 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9180set dummy ${ac_tool_prefix}mt; ac_word=$2 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9182$as_echo_n "checking for $ac_word... " >&6; } 9183if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185else 9186 if test -n "$MANIFEST_TOOL"; then 9187 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9188else 9189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9190for as_dir in $PATH 9191do 9192 IFS=$as_save_IFS 9193 test -z "$as_dir" && as_dir=. 9194 for ac_exec_ext in '' $ac_executable_extensions; do 9195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9196 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9198 break 2 9199 fi 9200done 9201 done 9202IFS=$as_save_IFS 9203 9204fi 9205fi 9206MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9207if test -n "$MANIFEST_TOOL"; then 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9209$as_echo "$MANIFEST_TOOL" >&6; } 9210else 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9212$as_echo "no" >&6; } 9213fi 9214 9215 9216fi 9217if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9218 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9219 # Extract the first word of "mt", so it can be a program name with args. 9220set dummy mt; ac_word=$2 9221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9222$as_echo_n "checking for $ac_word... " >&6; } 9223if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9224 $as_echo_n "(cached) " >&6 9225else 9226 if test -n "$ac_ct_MANIFEST_TOOL"; then 9227 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9228else 9229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9230for as_dir in $PATH 9231do 9232 IFS=$as_save_IFS 9233 test -z "$as_dir" && as_dir=. 9234 for ac_exec_ext in '' $ac_executable_extensions; do 9235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9236 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9238 break 2 9239 fi 9240done 9241 done 9242IFS=$as_save_IFS 9243 9244fi 9245fi 9246ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9247if test -n "$ac_ct_MANIFEST_TOOL"; then 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9249$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9250else 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9252$as_echo "no" >&6; } 9253fi 9254 9255 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9256 MANIFEST_TOOL=":" 9257 else 9258 case $cross_compiling:$ac_tool_warned in 9259yes:) 9260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9262ac_tool_warned=yes ;; 9263esac 9264 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9265 fi 9266else 9267 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9268fi 9269 9270test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9272$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9273if ${lt_cv_path_mainfest_tool+:} false; then : 9274 $as_echo_n "(cached) " >&6 9275else 9276 lt_cv_path_mainfest_tool=no 9277 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9278 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9279 cat conftest.err >&5 9280 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9281 lt_cv_path_mainfest_tool=yes 9282 fi 9283 rm -f conftest* 9284fi 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9286$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9287if test yes != "$lt_cv_path_mainfest_tool"; then 9288 MANIFEST_TOOL=: 9289fi 9290 9291 9292 9293 9294 9295 9296 case $host_os in 9297 rhapsody* | darwin*) 9298 if test -n "$ac_tool_prefix"; then 9299 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9300set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9302$as_echo_n "checking for $ac_word... " >&6; } 9303if ${ac_cv_prog_DSYMUTIL+:} false; then : 9304 $as_echo_n "(cached) " >&6 9305else 9306 if test -n "$DSYMUTIL"; then 9307 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9308else 9309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9310for as_dir in $PATH 9311do 9312 IFS=$as_save_IFS 9313 test -z "$as_dir" && as_dir=. 9314 for ac_exec_ext in '' $ac_executable_extensions; do 9315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9316 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9318 break 2 9319 fi 9320done 9321 done 9322IFS=$as_save_IFS 9323 9324fi 9325fi 9326DSYMUTIL=$ac_cv_prog_DSYMUTIL 9327if test -n "$DSYMUTIL"; then 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9329$as_echo "$DSYMUTIL" >&6; } 9330else 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9332$as_echo "no" >&6; } 9333fi 9334 9335 9336fi 9337if test -z "$ac_cv_prog_DSYMUTIL"; then 9338 ac_ct_DSYMUTIL=$DSYMUTIL 9339 # Extract the first word of "dsymutil", so it can be a program name with args. 9340set dummy dsymutil; ac_word=$2 9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9342$as_echo_n "checking for $ac_word... " >&6; } 9343if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9344 $as_echo_n "(cached) " >&6 9345else 9346 if test -n "$ac_ct_DSYMUTIL"; then 9347 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9348else 9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9350for as_dir in $PATH 9351do 9352 IFS=$as_save_IFS 9353 test -z "$as_dir" && as_dir=. 9354 for ac_exec_ext in '' $ac_executable_extensions; do 9355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9356 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9358 break 2 9359 fi 9360done 9361 done 9362IFS=$as_save_IFS 9363 9364fi 9365fi 9366ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9367if test -n "$ac_ct_DSYMUTIL"; then 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9369$as_echo "$ac_ct_DSYMUTIL" >&6; } 9370else 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9372$as_echo "no" >&6; } 9373fi 9374 9375 if test "x$ac_ct_DSYMUTIL" = x; then 9376 DSYMUTIL=":" 9377 else 9378 case $cross_compiling:$ac_tool_warned in 9379yes:) 9380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9382ac_tool_warned=yes ;; 9383esac 9384 DSYMUTIL=$ac_ct_DSYMUTIL 9385 fi 9386else 9387 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9388fi 9389 9390 if test -n "$ac_tool_prefix"; then 9391 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9392set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9394$as_echo_n "checking for $ac_word... " >&6; } 9395if ${ac_cv_prog_NMEDIT+:} false; then : 9396 $as_echo_n "(cached) " >&6 9397else 9398 if test -n "$NMEDIT"; then 9399 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9400else 9401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9402for as_dir in $PATH 9403do 9404 IFS=$as_save_IFS 9405 test -z "$as_dir" && as_dir=. 9406 for ac_exec_ext in '' $ac_executable_extensions; do 9407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9408 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9410 break 2 9411 fi 9412done 9413 done 9414IFS=$as_save_IFS 9415 9416fi 9417fi 9418NMEDIT=$ac_cv_prog_NMEDIT 9419if test -n "$NMEDIT"; then 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9421$as_echo "$NMEDIT" >&6; } 9422else 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9424$as_echo "no" >&6; } 9425fi 9426 9427 9428fi 9429if test -z "$ac_cv_prog_NMEDIT"; then 9430 ac_ct_NMEDIT=$NMEDIT 9431 # Extract the first word of "nmedit", so it can be a program name with args. 9432set dummy nmedit; ac_word=$2 9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9434$as_echo_n "checking for $ac_word... " >&6; } 9435if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 if test -n "$ac_ct_NMEDIT"; then 9439 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9440else 9441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9442for as_dir in $PATH 9443do 9444 IFS=$as_save_IFS 9445 test -z "$as_dir" && as_dir=. 9446 for ac_exec_ext in '' $ac_executable_extensions; do 9447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9448 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9450 break 2 9451 fi 9452done 9453 done 9454IFS=$as_save_IFS 9455 9456fi 9457fi 9458ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9459if test -n "$ac_ct_NMEDIT"; then 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9461$as_echo "$ac_ct_NMEDIT" >&6; } 9462else 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9464$as_echo "no" >&6; } 9465fi 9466 9467 if test "x$ac_ct_NMEDIT" = x; then 9468 NMEDIT=":" 9469 else 9470 case $cross_compiling:$ac_tool_warned in 9471yes:) 9472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9474ac_tool_warned=yes ;; 9475esac 9476 NMEDIT=$ac_ct_NMEDIT 9477 fi 9478else 9479 NMEDIT="$ac_cv_prog_NMEDIT" 9480fi 9481 9482 if test -n "$ac_tool_prefix"; then 9483 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9484set dummy ${ac_tool_prefix}lipo; ac_word=$2 9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9486$as_echo_n "checking for $ac_word... " >&6; } 9487if ${ac_cv_prog_LIPO+:} false; then : 9488 $as_echo_n "(cached) " >&6 9489else 9490 if test -n "$LIPO"; then 9491 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9492else 9493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9494for as_dir in $PATH 9495do 9496 IFS=$as_save_IFS 9497 test -z "$as_dir" && as_dir=. 9498 for ac_exec_ext in '' $ac_executable_extensions; do 9499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9500 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9502 break 2 9503 fi 9504done 9505 done 9506IFS=$as_save_IFS 9507 9508fi 9509fi 9510LIPO=$ac_cv_prog_LIPO 9511if test -n "$LIPO"; then 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9513$as_echo "$LIPO" >&6; } 9514else 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9516$as_echo "no" >&6; } 9517fi 9518 9519 9520fi 9521if test -z "$ac_cv_prog_LIPO"; then 9522 ac_ct_LIPO=$LIPO 9523 # Extract the first word of "lipo", so it can be a program name with args. 9524set dummy lipo; ac_word=$2 9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9526$as_echo_n "checking for $ac_word... " >&6; } 9527if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9528 $as_echo_n "(cached) " >&6 9529else 9530 if test -n "$ac_ct_LIPO"; then 9531 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9532else 9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9534for as_dir in $PATH 9535do 9536 IFS=$as_save_IFS 9537 test -z "$as_dir" && as_dir=. 9538 for ac_exec_ext in '' $ac_executable_extensions; do 9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9540 ac_cv_prog_ac_ct_LIPO="lipo" 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9542 break 2 9543 fi 9544done 9545 done 9546IFS=$as_save_IFS 9547 9548fi 9549fi 9550ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9551if test -n "$ac_ct_LIPO"; then 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9553$as_echo "$ac_ct_LIPO" >&6; } 9554else 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9556$as_echo "no" >&6; } 9557fi 9558 9559 if test "x$ac_ct_LIPO" = x; then 9560 LIPO=":" 9561 else 9562 case $cross_compiling:$ac_tool_warned in 9563yes:) 9564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9566ac_tool_warned=yes ;; 9567esac 9568 LIPO=$ac_ct_LIPO 9569 fi 9570else 9571 LIPO="$ac_cv_prog_LIPO" 9572fi 9573 9574 if test -n "$ac_tool_prefix"; then 9575 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9576set dummy ${ac_tool_prefix}otool; ac_word=$2 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9578$as_echo_n "checking for $ac_word... " >&6; } 9579if ${ac_cv_prog_OTOOL+:} false; then : 9580 $as_echo_n "(cached) " >&6 9581else 9582 if test -n "$OTOOL"; then 9583 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9584else 9585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9586for as_dir in $PATH 9587do 9588 IFS=$as_save_IFS 9589 test -z "$as_dir" && as_dir=. 9590 for ac_exec_ext in '' $ac_executable_extensions; do 9591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9592 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9594 break 2 9595 fi 9596done 9597 done 9598IFS=$as_save_IFS 9599 9600fi 9601fi 9602OTOOL=$ac_cv_prog_OTOOL 9603if test -n "$OTOOL"; then 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9605$as_echo "$OTOOL" >&6; } 9606else 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9608$as_echo "no" >&6; } 9609fi 9610 9611 9612fi 9613if test -z "$ac_cv_prog_OTOOL"; then 9614 ac_ct_OTOOL=$OTOOL 9615 # Extract the first word of "otool", so it can be a program name with args. 9616set dummy otool; ac_word=$2 9617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9618$as_echo_n "checking for $ac_word... " >&6; } 9619if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9620 $as_echo_n "(cached) " >&6 9621else 9622 if test -n "$ac_ct_OTOOL"; then 9623 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9624else 9625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9626for as_dir in $PATH 9627do 9628 IFS=$as_save_IFS 9629 test -z "$as_dir" && as_dir=. 9630 for ac_exec_ext in '' $ac_executable_extensions; do 9631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9632 ac_cv_prog_ac_ct_OTOOL="otool" 9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9634 break 2 9635 fi 9636done 9637 done 9638IFS=$as_save_IFS 9639 9640fi 9641fi 9642ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9643if test -n "$ac_ct_OTOOL"; then 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9645$as_echo "$ac_ct_OTOOL" >&6; } 9646else 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9648$as_echo "no" >&6; } 9649fi 9650 9651 if test "x$ac_ct_OTOOL" = x; then 9652 OTOOL=":" 9653 else 9654 case $cross_compiling:$ac_tool_warned in 9655yes:) 9656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9658ac_tool_warned=yes ;; 9659esac 9660 OTOOL=$ac_ct_OTOOL 9661 fi 9662else 9663 OTOOL="$ac_cv_prog_OTOOL" 9664fi 9665 9666 if test -n "$ac_tool_prefix"; then 9667 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9668set dummy ${ac_tool_prefix}otool64; ac_word=$2 9669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9670$as_echo_n "checking for $ac_word... " >&6; } 9671if ${ac_cv_prog_OTOOL64+:} false; then : 9672 $as_echo_n "(cached) " >&6 9673else 9674 if test -n "$OTOOL64"; then 9675 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9676else 9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9678for as_dir in $PATH 9679do 9680 IFS=$as_save_IFS 9681 test -z "$as_dir" && as_dir=. 9682 for ac_exec_ext in '' $ac_executable_extensions; do 9683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9684 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9686 break 2 9687 fi 9688done 9689 done 9690IFS=$as_save_IFS 9691 9692fi 9693fi 9694OTOOL64=$ac_cv_prog_OTOOL64 9695if test -n "$OTOOL64"; then 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9697$as_echo "$OTOOL64" >&6; } 9698else 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9700$as_echo "no" >&6; } 9701fi 9702 9703 9704fi 9705if test -z "$ac_cv_prog_OTOOL64"; then 9706 ac_ct_OTOOL64=$OTOOL64 9707 # Extract the first word of "otool64", so it can be a program name with args. 9708set dummy otool64; ac_word=$2 9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9710$as_echo_n "checking for $ac_word... " >&6; } 9711if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9712 $as_echo_n "(cached) " >&6 9713else 9714 if test -n "$ac_ct_OTOOL64"; then 9715 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9716else 9717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9718for as_dir in $PATH 9719do 9720 IFS=$as_save_IFS 9721 test -z "$as_dir" && as_dir=. 9722 for ac_exec_ext in '' $ac_executable_extensions; do 9723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9724 ac_cv_prog_ac_ct_OTOOL64="otool64" 9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9726 break 2 9727 fi 9728done 9729 done 9730IFS=$as_save_IFS 9731 9732fi 9733fi 9734ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9735if test -n "$ac_ct_OTOOL64"; then 9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9737$as_echo "$ac_ct_OTOOL64" >&6; } 9738else 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9740$as_echo "no" >&6; } 9741fi 9742 9743 if test "x$ac_ct_OTOOL64" = x; then 9744 OTOOL64=":" 9745 else 9746 case $cross_compiling:$ac_tool_warned in 9747yes:) 9748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9750ac_tool_warned=yes ;; 9751esac 9752 OTOOL64=$ac_ct_OTOOL64 9753 fi 9754else 9755 OTOOL64="$ac_cv_prog_OTOOL64" 9756fi 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9785$as_echo_n "checking for -single_module linker flag... " >&6; } 9786if ${lt_cv_apple_cc_single_mod+:} false; then : 9787 $as_echo_n "(cached) " >&6 9788else 9789 lt_cv_apple_cc_single_mod=no 9790 if test -z "$LT_MULTI_MODULE"; then 9791 # By default we will add the -single_module flag. You can override 9792 # by either setting the environment variable LT_MULTI_MODULE 9793 # non-empty at configure time, or by adding -multi_module to the 9794 # link flags. 9795 rm -rf libconftest.dylib* 9796 echo "int foo(void){return 1;}" > conftest.c 9797 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9798-dynamiclib -Wl,-single_module conftest.c" >&5 9799 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9800 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9801 _lt_result=$? 9802 # If there is a non-empty error log, and "single_module" 9803 # appears in it, assume the flag caused a linker warning 9804 if test -s conftest.err && $GREP single_module conftest.err; then 9805 cat conftest.err >&5 9806 # Otherwise, if the output was created with a 0 exit code from 9807 # the compiler, it worked. 9808 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9809 lt_cv_apple_cc_single_mod=yes 9810 else 9811 cat conftest.err >&5 9812 fi 9813 rm -rf libconftest.dylib* 9814 rm -f conftest.* 9815 fi 9816fi 9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9818$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9819 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9821$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9822if ${lt_cv_ld_exported_symbols_list+:} false; then : 9823 $as_echo_n "(cached) " >&6 9824else 9825 lt_cv_ld_exported_symbols_list=no 9826 save_LDFLAGS=$LDFLAGS 9827 echo "_main" > conftest.sym 9828 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831 9832int 9833main () 9834{ 9835 9836 ; 9837 return 0; 9838} 9839_ACEOF 9840if ac_fn_c_try_link "$LINENO"; then : 9841 lt_cv_ld_exported_symbols_list=yes 9842else 9843 lt_cv_ld_exported_symbols_list=no 9844fi 9845rm -f core conftest.err conftest.$ac_objext \ 9846 conftest$ac_exeext conftest.$ac_ext 9847 LDFLAGS=$save_LDFLAGS 9848 9849fi 9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9851$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9852 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9854$as_echo_n "checking for -force_load linker flag... " >&6; } 9855if ${lt_cv_ld_force_load+:} false; then : 9856 $as_echo_n "(cached) " >&6 9857else 9858 lt_cv_ld_force_load=no 9859 cat > conftest.c << _LT_EOF 9860int forced_loaded() { return 2;} 9861_LT_EOF 9862 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9863 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9864 echo "$AR cru libconftest.a conftest.o" >&5 9865 $AR cru libconftest.a conftest.o 2>&5 9866 echo "$RANLIB libconftest.a" >&5 9867 $RANLIB libconftest.a 2>&5 9868 cat > conftest.c << _LT_EOF 9869int main() { return 0;} 9870_LT_EOF 9871 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9872 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9873 _lt_result=$? 9874 if test -s conftest.err && $GREP force_load conftest.err; then 9875 cat conftest.err >&5 9876 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9877 lt_cv_ld_force_load=yes 9878 else 9879 cat conftest.err >&5 9880 fi 9881 rm -f conftest.err libconftest.a conftest conftest.c 9882 rm -rf conftest.dSYM 9883 9884fi 9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9886$as_echo "$lt_cv_ld_force_load" >&6; } 9887 case $host_os in 9888 rhapsody* | darwin1.[012]) 9889 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9890 darwin1.*) 9891 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9892 darwin*) # darwin 5.x on 9893 # if running on 10.5 or later, the deployment target defaults 9894 # to the OS version, if on x86, and 10.4, the deployment 9895 # target defaults to 10.4. Don't you love it? 9896 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9897 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9898 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9899 10.[012][,.]*) 9900 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9901 10.*) 9902 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9903 esac 9904 ;; 9905 esac 9906 if test yes = "$lt_cv_apple_cc_single_mod"; then 9907 _lt_dar_single_mod='$single_module' 9908 fi 9909 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9910 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9911 else 9912 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9913 fi 9914 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9915 _lt_dsymutil='~$DSYMUTIL $lib || :' 9916 else 9917 _lt_dsymutil= 9918 fi 9919 ;; 9920 esac 9921 9922# func_munge_path_list VARIABLE PATH 9923# ----------------------------------- 9924# VARIABLE is name of variable containing _space_ separated list of 9925# directories to be munged by the contents of PATH, which is string 9926# having a format: 9927# "DIR[:DIR]:" 9928# string "DIR[ DIR]" will be prepended to VARIABLE 9929# ":DIR[:DIR]" 9930# string "DIR[ DIR]" will be appended to VARIABLE 9931# "DIRP[:DIRP]::[DIRA:]DIRA" 9932# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9933# "DIRA[ DIRA]" will be appended to VARIABLE 9934# "DIR[:DIR]" 9935# VARIABLE will be replaced by "DIR[ DIR]" 9936func_munge_path_list () 9937{ 9938 case x$2 in 9939 x) 9940 ;; 9941 *:) 9942 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9943 ;; 9944 x:*) 9945 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9946 ;; 9947 *::*) 9948 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9949 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9950 ;; 9951 *) 9952 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9953 ;; 9954 esac 9955} 9956 9957 9958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9959$as_echo_n "checking for ANSI C header files... " >&6; } 9960if ${ac_cv_header_stdc+:} false; then : 9961 $as_echo_n "(cached) " >&6 9962else 9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9964/* end confdefs.h. */ 9965#include <stdlib.h> 9966#include <stdarg.h> 9967#include <string.h> 9968#include <float.h> 9969 9970int 9971main () 9972{ 9973 9974 ; 9975 return 0; 9976} 9977_ACEOF 9978if ac_fn_c_try_compile "$LINENO"; then : 9979 ac_cv_header_stdc=yes 9980else 9981 ac_cv_header_stdc=no 9982fi 9983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9984 9985if test $ac_cv_header_stdc = yes; then 9986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988/* end confdefs.h. */ 9989#include <string.h> 9990 9991_ACEOF 9992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9993 $EGREP "memchr" >/dev/null 2>&1; then : 9994 9995else 9996 ac_cv_header_stdc=no 9997fi 9998rm -f conftest* 9999 10000fi 10001 10002if test $ac_cv_header_stdc = yes; then 10003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005/* end confdefs.h. */ 10006#include <stdlib.h> 10007 10008_ACEOF 10009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10010 $EGREP "free" >/dev/null 2>&1; then : 10011 10012else 10013 ac_cv_header_stdc=no 10014fi 10015rm -f conftest* 10016 10017fi 10018 10019if test $ac_cv_header_stdc = yes; then 10020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10021 if test "$cross_compiling" = yes; then : 10022 : 10023else 10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10025/* end confdefs.h. */ 10026#include <ctype.h> 10027#include <stdlib.h> 10028#if ((' ' & 0x0FF) == 0x020) 10029# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10030# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10031#else 10032# define ISLOWER(c) \ 10033 (('a' <= (c) && (c) <= 'i') \ 10034 || ('j' <= (c) && (c) <= 'r') \ 10035 || ('s' <= (c) && (c) <= 'z')) 10036# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10037#endif 10038 10039#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10040int 10041main () 10042{ 10043 int i; 10044 for (i = 0; i < 256; i++) 10045 if (XOR (islower (i), ISLOWER (i)) 10046 || toupper (i) != TOUPPER (i)) 10047 return 2; 10048 return 0; 10049} 10050_ACEOF 10051if ac_fn_c_try_run "$LINENO"; then : 10052 10053else 10054 ac_cv_header_stdc=no 10055fi 10056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10057 conftest.$ac_objext conftest.beam conftest.$ac_ext 10058fi 10059 10060fi 10061fi 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10063$as_echo "$ac_cv_header_stdc" >&6; } 10064if test $ac_cv_header_stdc = yes; then 10065 10066$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10067 10068fi 10069 10070# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10071for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10072 inttypes.h stdint.h unistd.h 10073do : 10074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10075ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10076" 10077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10078 cat >>confdefs.h <<_ACEOF 10079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10080_ACEOF 10081 10082fi 10083 10084done 10085 10086 10087for ac_header in dlfcn.h 10088do : 10089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10090" 10091if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10092 cat >>confdefs.h <<_ACEOF 10093#define HAVE_DLFCN_H 1 10094_ACEOF 10095 10096fi 10097 10098done 10099 10100 10101 10102 10103func_stripname_cnf () 10104{ 10105 case $2 in 10106 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 10107 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 10108 esac 10109} # func_stripname_cnf 10110 10111 10112 10113 10114 10115# Set options 10116 10117 10118 10119 enable_dlopen=no 10120 10121 10122 enable_win32_dll=no 10123 10124 10125 10126 # Check whether --enable-static was given. 10127if test "${enable_static+set}" = set; then : 10128 enableval=$enable_static; p=${PACKAGE-default} 10129 case $enableval in 10130 yes) enable_static=yes ;; 10131 no) enable_static=no ;; 10132 *) 10133 enable_static=no 10134 # Look at the argument we got. We use all the common list separators. 10135 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10136 for pkg in $enableval; do 10137 IFS=$lt_save_ifs 10138 if test "X$pkg" = "X$p"; then 10139 enable_static=yes 10140 fi 10141 done 10142 IFS=$lt_save_ifs 10143 ;; 10144 esac 10145else 10146 enable_static=yes 10147fi 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158# Check whether --with-pic was given. 10159if test "${with_pic+set}" = set; then : 10160 withval=$with_pic; lt_p=${PACKAGE-default} 10161 case $withval in 10162 yes|no) pic_mode=$withval ;; 10163 *) 10164 pic_mode=default 10165 # Look at the argument we got. We use all the common list separators. 10166 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10167 for lt_pkg in $withval; do 10168 IFS=$lt_save_ifs 10169 if test "X$lt_pkg" = "X$lt_p"; then 10170 pic_mode=yes 10171 fi 10172 done 10173 IFS=$lt_save_ifs 10174 ;; 10175 esac 10176else 10177 pic_mode=default 10178fi 10179 10180 10181 10182 10183 10184 10185 10186 10187 # Check whether --enable-fast-install was given. 10188if test "${enable_fast_install+set}" = set; then : 10189 enableval=$enable_fast_install; p=${PACKAGE-default} 10190 case $enableval in 10191 yes) enable_fast_install=yes ;; 10192 no) enable_fast_install=no ;; 10193 *) 10194 enable_fast_install=no 10195 # Look at the argument we got. We use all the common list separators. 10196 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10197 for pkg in $enableval; do 10198 IFS=$lt_save_ifs 10199 if test "X$pkg" = "X$p"; then 10200 enable_fast_install=yes 10201 fi 10202 done 10203 IFS=$lt_save_ifs 10204 ;; 10205 esac 10206else 10207 enable_fast_install=yes 10208fi 10209 10210 10211 10212 10213 10214 10215 10216 10217 shared_archive_member_spec= 10218case $host,$enable_shared in 10219power*-*-aix[5-9]*,yes) 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10221$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10222 10223# Check whether --with-aix-soname was given. 10224if test "${with_aix_soname+set}" = set; then : 10225 withval=$with_aix_soname; case $withval in 10226 aix|svr4|both) 10227 ;; 10228 *) 10229 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10230 ;; 10231 esac 10232 lt_cv_with_aix_soname=$with_aix_soname 10233else 10234 if ${lt_cv_with_aix_soname+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 lt_cv_with_aix_soname=aix 10238fi 10239 10240 with_aix_soname=$lt_cv_with_aix_soname 10241fi 10242 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10244$as_echo "$with_aix_soname" >&6; } 10245 if test aix != "$with_aix_soname"; then 10246 # For the AIX way of multilib, we name the shared archive member 10247 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10248 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10249 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10250 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10251 if test 64 = "${OBJECT_MODE-32}"; then 10252 shared_archive_member_spec=shr_64 10253 else 10254 shared_archive_member_spec=shr 10255 fi 10256 fi 10257 ;; 10258*) 10259 with_aix_soname=aix 10260 ;; 10261esac 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272# This can be used to rebuild libtool when needed 10273LIBTOOL_DEPS=$ltmain 10274 10275# Always use our own libtool. 10276LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307test -z "$LN_S" && LN_S="ln -s" 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322if test -n "${ZSH_VERSION+set}"; then 10323 setopt NO_GLOB_SUBST 10324fi 10325 10326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10327$as_echo_n "checking for objdir... " >&6; } 10328if ${lt_cv_objdir+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330else 10331 rm -f .libs 2>/dev/null 10332mkdir .libs 2>/dev/null 10333if test -d .libs; then 10334 lt_cv_objdir=.libs 10335else 10336 # MS-DOS does not allow filenames that begin with a dot. 10337 lt_cv_objdir=_libs 10338fi 10339rmdir .libs 2>/dev/null 10340fi 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10342$as_echo "$lt_cv_objdir" >&6; } 10343objdir=$lt_cv_objdir 10344 10345 10346 10347 10348 10349cat >>confdefs.h <<_ACEOF 10350#define LT_OBJDIR "$lt_cv_objdir/" 10351_ACEOF 10352 10353 10354 10355 10356case $host_os in 10357aix3*) 10358 # AIX sometimes has problems with the GCC collect2 program. For some 10359 # reason, if we set the COLLECT_NAMES environment variable, the problems 10360 # vanish in a puff of smoke. 10361 if test set != "${COLLECT_NAMES+set}"; then 10362 COLLECT_NAMES= 10363 export COLLECT_NAMES 10364 fi 10365 ;; 10366esac 10367 10368# Global variables: 10369ofile=libtool 10370can_build_shared=yes 10371 10372# All known linkers require a '.a' archive for static linking (except MSVC, 10373# which needs '.lib'). 10374libext=a 10375 10376with_gnu_ld=$lt_cv_prog_gnu_ld 10377 10378old_CC=$CC 10379old_CFLAGS=$CFLAGS 10380 10381# Set sane defaults for various variables 10382test -z "$CC" && CC=cc 10383test -z "$LTCC" && LTCC=$CC 10384test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10385test -z "$LD" && LD=ld 10386test -z "$ac_objext" && ac_objext=o 10387 10388func_cc_basename $compiler 10389cc_basename=$func_cc_basename_result 10390 10391 10392# Only perform the check for file, if the check method requires it 10393test -z "$MAGIC_CMD" && MAGIC_CMD=file 10394case $deplibs_check_method in 10395file_magic*) 10396 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10398$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10399if ${lt_cv_path_MAGIC_CMD+:} false; then : 10400 $as_echo_n "(cached) " >&6 10401else 10402 case $MAGIC_CMD in 10403[\\/*] | ?:[\\/]*) 10404 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10405 ;; 10406*) 10407 lt_save_MAGIC_CMD=$MAGIC_CMD 10408 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10409 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10410 for ac_dir in $ac_dummy; do 10411 IFS=$lt_save_ifs 10412 test -z "$ac_dir" && ac_dir=. 10413 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10414 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10415 if test -n "$file_magic_test_file"; then 10416 case $deplibs_check_method in 10417 "file_magic "*) 10418 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10419 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10421 $EGREP "$file_magic_regex" > /dev/null; then 10422 : 10423 else 10424 cat <<_LT_EOF 1>&2 10425 10426*** Warning: the command libtool uses to detect shared libraries, 10427*** $file_magic_cmd, produces output that libtool cannot recognize. 10428*** The result is that libtool may fail to recognize shared libraries 10429*** as such. This will affect the creation of libtool libraries that 10430*** depend on shared libraries, but programs linked with such libtool 10431*** libraries will work regardless of this problem. Nevertheless, you 10432*** may want to report the problem to your system manager and/or to 10433*** bug-libtool@gnu.org 10434 10435_LT_EOF 10436 fi ;; 10437 esac 10438 fi 10439 break 10440 fi 10441 done 10442 IFS=$lt_save_ifs 10443 MAGIC_CMD=$lt_save_MAGIC_CMD 10444 ;; 10445esac 10446fi 10447 10448MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10449if test -n "$MAGIC_CMD"; then 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10451$as_echo "$MAGIC_CMD" >&6; } 10452else 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10454$as_echo "no" >&6; } 10455fi 10456 10457 10458 10459 10460 10461if test -z "$lt_cv_path_MAGIC_CMD"; then 10462 if test -n "$ac_tool_prefix"; then 10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10464$as_echo_n "checking for file... " >&6; } 10465if ${lt_cv_path_MAGIC_CMD+:} false; then : 10466 $as_echo_n "(cached) " >&6 10467else 10468 case $MAGIC_CMD in 10469[\\/*] | ?:[\\/]*) 10470 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10471 ;; 10472*) 10473 lt_save_MAGIC_CMD=$MAGIC_CMD 10474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10475 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10476 for ac_dir in $ac_dummy; do 10477 IFS=$lt_save_ifs 10478 test -z "$ac_dir" && ac_dir=. 10479 if test -f "$ac_dir/file"; then 10480 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10481 if test -n "$file_magic_test_file"; then 10482 case $deplibs_check_method in 10483 "file_magic "*) 10484 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10485 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10486 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10487 $EGREP "$file_magic_regex" > /dev/null; then 10488 : 10489 else 10490 cat <<_LT_EOF 1>&2 10491 10492*** Warning: the command libtool uses to detect shared libraries, 10493*** $file_magic_cmd, produces output that libtool cannot recognize. 10494*** The result is that libtool may fail to recognize shared libraries 10495*** as such. This will affect the creation of libtool libraries that 10496*** depend on shared libraries, but programs linked with such libtool 10497*** libraries will work regardless of this problem. Nevertheless, you 10498*** may want to report the problem to your system manager and/or to 10499*** bug-libtool@gnu.org 10500 10501_LT_EOF 10502 fi ;; 10503 esac 10504 fi 10505 break 10506 fi 10507 done 10508 IFS=$lt_save_ifs 10509 MAGIC_CMD=$lt_save_MAGIC_CMD 10510 ;; 10511esac 10512fi 10513 10514MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10515if test -n "$MAGIC_CMD"; then 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10517$as_echo "$MAGIC_CMD" >&6; } 10518else 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10520$as_echo "no" >&6; } 10521fi 10522 10523 10524 else 10525 MAGIC_CMD=: 10526 fi 10527fi 10528 10529 fi 10530 ;; 10531esac 10532 10533# Use C for the default configuration in the libtool script 10534 10535lt_save_CC=$CC 10536ac_ext=c 10537ac_cpp='$CPP $CPPFLAGS' 10538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10540ac_compiler_gnu=$ac_cv_c_compiler_gnu 10541 10542 10543# Source file extension for C test sources. 10544ac_ext=c 10545 10546# Object file extension for compiled C test sources. 10547objext=o 10548objext=$objext 10549 10550# Code to be used in simple compile tests 10551lt_simple_compile_test_code="int some_variable = 0;" 10552 10553# Code to be used in simple link tests 10554lt_simple_link_test_code='int main(){return(0);}' 10555 10556 10557 10558 10559 10560 10561 10562# If no C compiler was specified, use CC. 10563LTCC=${LTCC-"$CC"} 10564 10565# If no C compiler flags were specified, use CFLAGS. 10566LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10567 10568# Allow CC to be a program name with arguments. 10569compiler=$CC 10570 10571# Save the default compiler, since it gets overwritten when the other 10572# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10573compiler_DEFAULT=$CC 10574 10575# save warnings/boilerplate of simple test code 10576ac_outfile=conftest.$ac_objext 10577echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10578eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10579_lt_compiler_boilerplate=`cat conftest.err` 10580$RM conftest* 10581 10582ac_outfile=conftest.$ac_objext 10583echo "$lt_simple_link_test_code" >conftest.$ac_ext 10584eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10585_lt_linker_boilerplate=`cat conftest.err` 10586$RM -r conftest* 10587 10588 10589## CAVEAT EMPTOR: 10590## There is no encapsulation within the following macros, do not change 10591## the running order or otherwise move them around unless you know exactly 10592## what you are doing... 10593if test -n "$compiler"; then 10594 10595lt_prog_compiler_no_builtin_flag= 10596 10597if test yes = "$GCC"; then 10598 case $cc_basename in 10599 nvcc*) 10600 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10601 *) 10602 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10603 esac 10604 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10606$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10607if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10608 $as_echo_n "(cached) " >&6 10609else 10610 lt_cv_prog_compiler_rtti_exceptions=no 10611 ac_outfile=conftest.$ac_objext 10612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10613 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10614 # Insert the option either (1) after the last *FLAGS variable, or 10615 # (2) before a word containing "conftest.", or (3) at the end. 10616 # Note that $ac_compile itself does not contain backslashes and begins 10617 # with a dollar sign (not a hyphen), so the echo should work correctly. 10618 # The option is referenced via a variable to avoid confusing sed. 10619 lt_compile=`echo "$ac_compile" | $SED \ 10620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10622 -e 's:$: $lt_compiler_flag:'` 10623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10624 (eval "$lt_compile" 2>conftest.err) 10625 ac_status=$? 10626 cat conftest.err >&5 10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10628 if (exit $ac_status) && test -s "$ac_outfile"; then 10629 # The compiler can only warn and ignore the option if not recognized 10630 # So say no if there are warnings other than the usual output. 10631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10634 lt_cv_prog_compiler_rtti_exceptions=yes 10635 fi 10636 fi 10637 $RM conftest* 10638 10639fi 10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10641$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10642 10643if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10644 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10645else 10646 : 10647fi 10648 10649fi 10650 10651 10652 10653 10654 10655 10656 lt_prog_compiler_wl= 10657lt_prog_compiler_pic= 10658lt_prog_compiler_static= 10659 10660 10661 if test yes = "$GCC"; then 10662 lt_prog_compiler_wl='-Wl,' 10663 lt_prog_compiler_static='-static' 10664 10665 case $host_os in 10666 aix*) 10667 # All AIX code is PIC. 10668 if test ia64 = "$host_cpu"; then 10669 # AIX 5 now supports IA64 processor 10670 lt_prog_compiler_static='-Bstatic' 10671 fi 10672 lt_prog_compiler_pic='-fPIC' 10673 ;; 10674 10675 amigaos*) 10676 case $host_cpu in 10677 powerpc) 10678 # see comment about AmigaOS4 .so support 10679 lt_prog_compiler_pic='-fPIC' 10680 ;; 10681 m68k) 10682 # FIXME: we need at least 68020 code to build shared libraries, but 10683 # adding the '-m68020' flag to GCC prevents building anything better, 10684 # like '-m68040'. 10685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10686 ;; 10687 esac 10688 ;; 10689 10690 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10691 # PIC is the default for these OSes. 10692 ;; 10693 10694 mingw* | cygwin* | pw32* | os2* | cegcc*) 10695 # This hack is so that the source file can tell whether it is being 10696 # built for inclusion in a dll (and should export symbols for example). 10697 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10698 # (--disable-auto-import) libraries 10699 lt_prog_compiler_pic='-DDLL_EXPORT' 10700 case $host_os in 10701 os2*) 10702 lt_prog_compiler_static='$wl-static' 10703 ;; 10704 esac 10705 ;; 10706 10707 darwin* | rhapsody*) 10708 # PIC is the default on this platform 10709 # Common symbols not allowed in MH_DYLIB files 10710 lt_prog_compiler_pic='-fno-common' 10711 ;; 10712 10713 haiku*) 10714 # PIC is the default for Haiku. 10715 # The "-static" flag exists, but is broken. 10716 lt_prog_compiler_static= 10717 ;; 10718 10719 hpux*) 10720 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10721 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10722 # sets the default TLS model and affects inlining. 10723 case $host_cpu in 10724 hppa*64*) 10725 # +Z the default 10726 ;; 10727 *) 10728 lt_prog_compiler_pic='-fPIC' 10729 ;; 10730 esac 10731 ;; 10732 10733 interix[3-9]*) 10734 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10735 # Instead, we relocate shared libraries at runtime. 10736 ;; 10737 10738 msdosdjgpp*) 10739 # Just because we use GCC doesn't mean we suddenly get shared libraries 10740 # on systems that don't support them. 10741 lt_prog_compiler_can_build_shared=no 10742 enable_shared=no 10743 ;; 10744 10745 *nto* | *qnx*) 10746 # QNX uses GNU C++, but need to define -shared option too, otherwise 10747 # it will coredump. 10748 lt_prog_compiler_pic='-fPIC -shared' 10749 ;; 10750 10751 sysv4*MP*) 10752 if test -d /usr/nec; then 10753 lt_prog_compiler_pic=-Kconform_pic 10754 fi 10755 ;; 10756 10757 *) 10758 lt_prog_compiler_pic='-fPIC' 10759 ;; 10760 esac 10761 10762 case $cc_basename in 10763 nvcc*) # Cuda Compiler Driver 2.2 10764 lt_prog_compiler_wl='-Xlinker ' 10765 if test -n "$lt_prog_compiler_pic"; then 10766 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10767 fi 10768 ;; 10769 esac 10770 else 10771 # PORTME Check for flag to pass linker flags through the system compiler. 10772 case $host_os in 10773 aix*) 10774 lt_prog_compiler_wl='-Wl,' 10775 if test ia64 = "$host_cpu"; then 10776 # AIX 5 now supports IA64 processor 10777 lt_prog_compiler_static='-Bstatic' 10778 else 10779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10780 fi 10781 ;; 10782 10783 darwin* | rhapsody*) 10784 # PIC is the default on this platform 10785 # Common symbols not allowed in MH_DYLIB files 10786 lt_prog_compiler_pic='-fno-common' 10787 case $cc_basename in 10788 nagfor*) 10789 # NAG Fortran compiler 10790 lt_prog_compiler_wl='-Wl,-Wl,,' 10791 lt_prog_compiler_pic='-PIC' 10792 lt_prog_compiler_static='-Bstatic' 10793 ;; 10794 esac 10795 ;; 10796 10797 mingw* | cygwin* | pw32* | os2* | cegcc*) 10798 # This hack is so that the source file can tell whether it is being 10799 # built for inclusion in a dll (and should export symbols for example). 10800 lt_prog_compiler_pic='-DDLL_EXPORT' 10801 case $host_os in 10802 os2*) 10803 lt_prog_compiler_static='$wl-static' 10804 ;; 10805 esac 10806 ;; 10807 10808 hpux9* | hpux10* | hpux11*) 10809 lt_prog_compiler_wl='-Wl,' 10810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10811 # not for PA HP-UX. 10812 case $host_cpu in 10813 hppa*64*|ia64*) 10814 # +Z the default 10815 ;; 10816 *) 10817 lt_prog_compiler_pic='+Z' 10818 ;; 10819 esac 10820 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10821 lt_prog_compiler_static='$wl-a ${wl}archive' 10822 ;; 10823 10824 irix5* | irix6* | nonstopux*) 10825 lt_prog_compiler_wl='-Wl,' 10826 # PIC (with -KPIC) is the default. 10827 lt_prog_compiler_static='-non_shared' 10828 ;; 10829 10830 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10831 case $cc_basename in 10832 # old Intel for x86_64, which still supported -KPIC. 10833 ecc*) 10834 lt_prog_compiler_wl='-Wl,' 10835 lt_prog_compiler_pic='-KPIC' 10836 lt_prog_compiler_static='-static' 10837 ;; 10838 # icc used to be incompatible with GCC. 10839 # ICC 10 doesn't accept -KPIC any more. 10840 icc* | ifort*) 10841 lt_prog_compiler_wl='-Wl,' 10842 lt_prog_compiler_pic='-fPIC' 10843 lt_prog_compiler_static='-static' 10844 ;; 10845 # Lahey Fortran 8.1. 10846 lf95*) 10847 lt_prog_compiler_wl='-Wl,' 10848 lt_prog_compiler_pic='--shared' 10849 lt_prog_compiler_static='--static' 10850 ;; 10851 nagfor*) 10852 # NAG Fortran compiler 10853 lt_prog_compiler_wl='-Wl,-Wl,,' 10854 lt_prog_compiler_pic='-PIC' 10855 lt_prog_compiler_static='-Bstatic' 10856 ;; 10857 tcc*) 10858 # Fabrice Bellard et al's Tiny C Compiler 10859 lt_prog_compiler_wl='-Wl,' 10860 lt_prog_compiler_pic='-fPIC' 10861 lt_prog_compiler_static='-static' 10862 ;; 10863 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10864 # Portland Group compilers (*not* the Pentium gcc compiler, 10865 # which looks to be a dead project) 10866 lt_prog_compiler_wl='-Wl,' 10867 lt_prog_compiler_pic='-fpic' 10868 lt_prog_compiler_static='-Bstatic' 10869 ;; 10870 ccc*) 10871 lt_prog_compiler_wl='-Wl,' 10872 # All Alpha code is PIC. 10873 lt_prog_compiler_static='-non_shared' 10874 ;; 10875 xl* | bgxl* | bgf* | mpixl*) 10876 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10877 lt_prog_compiler_wl='-Wl,' 10878 lt_prog_compiler_pic='-qpic' 10879 lt_prog_compiler_static='-qstaticlink' 10880 ;; 10881 *) 10882 case `$CC -V 2>&1 | sed 5q` in 10883 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10884 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10885 lt_prog_compiler_pic='-KPIC' 10886 lt_prog_compiler_static='-Bstatic' 10887 lt_prog_compiler_wl='' 10888 ;; 10889 *Sun\ F* | *Sun*Fortran*) 10890 lt_prog_compiler_pic='-KPIC' 10891 lt_prog_compiler_static='-Bstatic' 10892 lt_prog_compiler_wl='-Qoption ld ' 10893 ;; 10894 *Sun\ C*) 10895 # Sun C 5.9 10896 lt_prog_compiler_pic='-KPIC' 10897 lt_prog_compiler_static='-Bstatic' 10898 lt_prog_compiler_wl='-Wl,' 10899 ;; 10900 *Intel*\ [CF]*Compiler*) 10901 lt_prog_compiler_wl='-Wl,' 10902 lt_prog_compiler_pic='-fPIC' 10903 lt_prog_compiler_static='-static' 10904 ;; 10905 *Portland\ Group*) 10906 lt_prog_compiler_wl='-Wl,' 10907 lt_prog_compiler_pic='-fpic' 10908 lt_prog_compiler_static='-Bstatic' 10909 ;; 10910 esac 10911 ;; 10912 esac 10913 ;; 10914 10915 newsos6) 10916 lt_prog_compiler_pic='-KPIC' 10917 lt_prog_compiler_static='-Bstatic' 10918 ;; 10919 10920 *nto* | *qnx*) 10921 # QNX uses GNU C++, but need to define -shared option too, otherwise 10922 # it will coredump. 10923 lt_prog_compiler_pic='-fPIC -shared' 10924 ;; 10925 10926 osf3* | osf4* | osf5*) 10927 lt_prog_compiler_wl='-Wl,' 10928 # All OSF/1 code is PIC. 10929 lt_prog_compiler_static='-non_shared' 10930 ;; 10931 10932 rdos*) 10933 lt_prog_compiler_static='-non_shared' 10934 ;; 10935 10936 solaris*) 10937 lt_prog_compiler_pic='-KPIC' 10938 lt_prog_compiler_static='-Bstatic' 10939 case $cc_basename in 10940 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10941 lt_prog_compiler_wl='-Qoption ld ';; 10942 *) 10943 lt_prog_compiler_wl='-Wl,';; 10944 esac 10945 ;; 10946 10947 sunos4*) 10948 lt_prog_compiler_wl='-Qoption ld ' 10949 lt_prog_compiler_pic='-PIC' 10950 lt_prog_compiler_static='-Bstatic' 10951 ;; 10952 10953 sysv4 | sysv4.2uw2* | sysv4.3*) 10954 lt_prog_compiler_wl='-Wl,' 10955 lt_prog_compiler_pic='-KPIC' 10956 lt_prog_compiler_static='-Bstatic' 10957 ;; 10958 10959 sysv4*MP*) 10960 if test -d /usr/nec; then 10961 lt_prog_compiler_pic='-Kconform_pic' 10962 lt_prog_compiler_static='-Bstatic' 10963 fi 10964 ;; 10965 10966 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10967 lt_prog_compiler_wl='-Wl,' 10968 lt_prog_compiler_pic='-KPIC' 10969 lt_prog_compiler_static='-Bstatic' 10970 ;; 10971 10972 unicos*) 10973 lt_prog_compiler_wl='-Wl,' 10974 lt_prog_compiler_can_build_shared=no 10975 ;; 10976 10977 uts4*) 10978 lt_prog_compiler_pic='-pic' 10979 lt_prog_compiler_static='-Bstatic' 10980 ;; 10981 10982 *) 10983 lt_prog_compiler_can_build_shared=no 10984 ;; 10985 esac 10986 fi 10987 10988case $host_os in 10989 # For platforms that do not support PIC, -DPIC is meaningless: 10990 *djgpp*) 10991 lt_prog_compiler_pic= 10992 ;; 10993 *) 10994 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10995 ;; 10996esac 10997 10998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10999$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11000if ${lt_cv_prog_compiler_pic+:} false; then : 11001 $as_echo_n "(cached) " >&6 11002else 11003 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11004fi 11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11006$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11007lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11008 11009# 11010# Check to make sure the PIC flag actually works. 11011# 11012if test -n "$lt_prog_compiler_pic"; then 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11014$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11015if ${lt_cv_prog_compiler_pic_works+:} false; then : 11016 $as_echo_n "(cached) " >&6 11017else 11018 lt_cv_prog_compiler_pic_works=no 11019 ac_outfile=conftest.$ac_objext 11020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11021 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11022 # Insert the option either (1) after the last *FLAGS variable, or 11023 # (2) before a word containing "conftest.", or (3) at the end. 11024 # Note that $ac_compile itself does not contain backslashes and begins 11025 # with a dollar sign (not a hyphen), so the echo should work correctly. 11026 # The option is referenced via a variable to avoid confusing sed. 11027 lt_compile=`echo "$ac_compile" | $SED \ 11028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11030 -e 's:$: $lt_compiler_flag:'` 11031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11032 (eval "$lt_compile" 2>conftest.err) 11033 ac_status=$? 11034 cat conftest.err >&5 11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11036 if (exit $ac_status) && test -s "$ac_outfile"; then 11037 # The compiler can only warn and ignore the option if not recognized 11038 # So say no if there are warnings other than the usual output. 11039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11042 lt_cv_prog_compiler_pic_works=yes 11043 fi 11044 fi 11045 $RM conftest* 11046 11047fi 11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11049$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11050 11051if test yes = "$lt_cv_prog_compiler_pic_works"; then 11052 case $lt_prog_compiler_pic in 11053 "" | " "*) ;; 11054 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11055 esac 11056else 11057 lt_prog_compiler_pic= 11058 lt_prog_compiler_can_build_shared=no 11059fi 11060 11061fi 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073# 11074# Check to make sure the static flag actually works. 11075# 11076wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11078$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11079if ${lt_cv_prog_compiler_static_works+:} false; then : 11080 $as_echo_n "(cached) " >&6 11081else 11082 lt_cv_prog_compiler_static_works=no 11083 save_LDFLAGS=$LDFLAGS 11084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11085 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11087 # The linker can only warn and ignore the option if not recognized 11088 # So say no if there are warnings 11089 if test -s conftest.err; then 11090 # Append any errors to the config.log. 11091 cat conftest.err 1>&5 11092 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11094 if diff conftest.exp conftest.er2 >/dev/null; then 11095 lt_cv_prog_compiler_static_works=yes 11096 fi 11097 else 11098 lt_cv_prog_compiler_static_works=yes 11099 fi 11100 fi 11101 $RM -r conftest* 11102 LDFLAGS=$save_LDFLAGS 11103 11104fi 11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11106$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11107 11108if test yes = "$lt_cv_prog_compiler_static_works"; then 11109 : 11110else 11111 lt_prog_compiler_static= 11112fi 11113 11114 11115 11116 11117 11118 11119 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11121$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11122if ${lt_cv_prog_compiler_c_o+:} false; then : 11123 $as_echo_n "(cached) " >&6 11124else 11125 lt_cv_prog_compiler_c_o=no 11126 $RM -r conftest 2>/dev/null 11127 mkdir conftest 11128 cd conftest 11129 mkdir out 11130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11131 11132 lt_compiler_flag="-o out/conftest2.$ac_objext" 11133 # Insert the option either (1) after the last *FLAGS variable, or 11134 # (2) before a word containing "conftest.", or (3) at the end. 11135 # Note that $ac_compile itself does not contain backslashes and begins 11136 # with a dollar sign (not a hyphen), so the echo should work correctly. 11137 lt_compile=`echo "$ac_compile" | $SED \ 11138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11140 -e 's:$: $lt_compiler_flag:'` 11141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11142 (eval "$lt_compile" 2>out/conftest.err) 11143 ac_status=$? 11144 cat out/conftest.err >&5 11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11146 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11147 then 11148 # The compiler can only warn and ignore the option if not recognized 11149 # So say no if there are warnings 11150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11153 lt_cv_prog_compiler_c_o=yes 11154 fi 11155 fi 11156 chmod u+w . 2>&5 11157 $RM conftest* 11158 # SGI C++ compiler will create directory out/ii_files/ for 11159 # template instantiation 11160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11161 $RM out/* && rmdir out 11162 cd .. 11163 $RM -r conftest 11164 $RM conftest* 11165 11166fi 11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11168$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11169 11170 11171 11172 11173 11174 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11176$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11177if ${lt_cv_prog_compiler_c_o+:} false; then : 11178 $as_echo_n "(cached) " >&6 11179else 11180 lt_cv_prog_compiler_c_o=no 11181 $RM -r conftest 2>/dev/null 11182 mkdir conftest 11183 cd conftest 11184 mkdir out 11185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11186 11187 lt_compiler_flag="-o out/conftest2.$ac_objext" 11188 # Insert the option either (1) after the last *FLAGS variable, or 11189 # (2) before a word containing "conftest.", or (3) at the end. 11190 # Note that $ac_compile itself does not contain backslashes and begins 11191 # with a dollar sign (not a hyphen), so the echo should work correctly. 11192 lt_compile=`echo "$ac_compile" | $SED \ 11193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11195 -e 's:$: $lt_compiler_flag:'` 11196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11197 (eval "$lt_compile" 2>out/conftest.err) 11198 ac_status=$? 11199 cat out/conftest.err >&5 11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11201 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11202 then 11203 # The compiler can only warn and ignore the option if not recognized 11204 # So say no if there are warnings 11205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11208 lt_cv_prog_compiler_c_o=yes 11209 fi 11210 fi 11211 chmod u+w . 2>&5 11212 $RM conftest* 11213 # SGI C++ compiler will create directory out/ii_files/ for 11214 # template instantiation 11215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11216 $RM out/* && rmdir out 11217 cd .. 11218 $RM -r conftest 11219 $RM conftest* 11220 11221fi 11222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11223$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11224 11225 11226 11227 11228hard_links=nottested 11229if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11230 # do not overwrite the value of need_locks provided by the user 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11232$as_echo_n "checking if we can lock with hard links... " >&6; } 11233 hard_links=yes 11234 $RM conftest* 11235 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11236 touch conftest.a 11237 ln conftest.a conftest.b 2>&5 || hard_links=no 11238 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11240$as_echo "$hard_links" >&6; } 11241 if test no = "$hard_links"; then 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11243$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11244 need_locks=warn 11245 fi 11246else 11247 need_locks=no 11248fi 11249 11250 11251 11252 11253 11254 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11256$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11257 11258 runpath_var= 11259 allow_undefined_flag= 11260 always_export_symbols=no 11261 archive_cmds= 11262 archive_expsym_cmds= 11263 compiler_needs_object=no 11264 enable_shared_with_static_runtimes=no 11265 export_dynamic_flag_spec= 11266 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11267 hardcode_automatic=no 11268 hardcode_direct=no 11269 hardcode_direct_absolute=no 11270 hardcode_libdir_flag_spec= 11271 hardcode_libdir_separator= 11272 hardcode_minus_L=no 11273 hardcode_shlibpath_var=unsupported 11274 inherit_rpath=no 11275 link_all_deplibs=unknown 11276 module_cmds= 11277 module_expsym_cmds= 11278 old_archive_from_new_cmds= 11279 old_archive_from_expsyms_cmds= 11280 thread_safe_flag_spec= 11281 whole_archive_flag_spec= 11282 # include_expsyms should be a list of space-separated symbols to be *always* 11283 # included in the symbol list 11284 include_expsyms= 11285 # exclude_expsyms can be an extended regexp of symbols to exclude 11286 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11287 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11288 # as well as any symbol that contains 'd'. 11289 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11290 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11291 # platforms (ab)use it in PIC code, but their linkers get confused if 11292 # the symbol is explicitly referenced. Since portable code cannot 11293 # rely on this symbol name, it's probably fine to never include it in 11294 # preloaded symbol tables. 11295 # Exclude shared library initialization/finalization symbols. 11296 extract_expsyms_cmds= 11297 11298 case $host_os in 11299 cygwin* | mingw* | pw32* | cegcc*) 11300 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11301 # When not using gcc, we currently assume that we are using 11302 # Microsoft Visual C++. 11303 if test yes != "$GCC"; then 11304 with_gnu_ld=no 11305 fi 11306 ;; 11307 interix*) 11308 # we just hope/assume this is gcc and not c89 (= MSVC++) 11309 with_gnu_ld=yes 11310 ;; 11311 openbsd* | bitrig*) 11312 with_gnu_ld=no 11313 ;; 11314 linux* | k*bsd*-gnu | gnu*) 11315 link_all_deplibs=no 11316 ;; 11317 esac 11318 11319 ld_shlibs=yes 11320 11321 # On some targets, GNU ld is compatible enough with the native linker 11322 # that we're better off using the native interface for both. 11323 lt_use_gnu_ld_interface=no 11324 if test yes = "$with_gnu_ld"; then 11325 case $host_os in 11326 aix*) 11327 # The AIX port of GNU ld has always aspired to compatibility 11328 # with the native linker. However, as the warning in the GNU ld 11329 # block says, versions before 2.19.5* couldn't really create working 11330 # shared libraries, regardless of the interface used. 11331 case `$LD -v 2>&1` in 11332 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11333 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11334 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11335 *) 11336 lt_use_gnu_ld_interface=yes 11337 ;; 11338 esac 11339 ;; 11340 *) 11341 lt_use_gnu_ld_interface=yes 11342 ;; 11343 esac 11344 fi 11345 11346 if test yes = "$lt_use_gnu_ld_interface"; then 11347 # If archive_cmds runs LD, not CC, wlarc should be empty 11348 wlarc='$wl' 11349 11350 # Set some defaults for GNU ld with shared library support. These 11351 # are reset later if shared libraries are not supported. Putting them 11352 # here allows them to be overridden if necessary. 11353 runpath_var=LD_RUN_PATH 11354 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11355 export_dynamic_flag_spec='$wl--export-dynamic' 11356 # ancient GNU ld didn't support --whole-archive et. al. 11357 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11358 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11359 else 11360 whole_archive_flag_spec= 11361 fi 11362 supports_anon_versioning=no 11363 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11364 *GNU\ gold*) supports_anon_versioning=yes ;; 11365 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11366 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11367 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11368 *\ 2.11.*) ;; # other 2.11 versions 11369 *) supports_anon_versioning=yes ;; 11370 esac 11371 11372 # See if GNU ld supports shared libraries. 11373 case $host_os in 11374 aix[3-9]*) 11375 # On AIX/PPC, the GNU linker is very broken 11376 if test ia64 != "$host_cpu"; then 11377 ld_shlibs=no 11378 cat <<_LT_EOF 1>&2 11379 11380*** Warning: the GNU linker, at least up to release 2.19, is reported 11381*** to be unable to reliably create shared libraries on AIX. 11382*** Therefore, libtool is disabling shared libraries support. If you 11383*** really care for shared libraries, you may want to install binutils 11384*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11385*** You will then need to restart the configuration process. 11386 11387_LT_EOF 11388 fi 11389 ;; 11390 11391 amigaos*) 11392 case $host_cpu in 11393 powerpc) 11394 # see comment about AmigaOS4 .so support 11395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11396 archive_expsym_cmds='' 11397 ;; 11398 m68k) 11399 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)' 11400 hardcode_libdir_flag_spec='-L$libdir' 11401 hardcode_minus_L=yes 11402 ;; 11403 esac 11404 ;; 11405 11406 beos*) 11407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11408 allow_undefined_flag=unsupported 11409 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11410 # support --undefined. This deserves some investigation. FIXME 11411 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11412 else 11413 ld_shlibs=no 11414 fi 11415 ;; 11416 11417 cygwin* | mingw* | pw32* | cegcc*) 11418 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11419 # as there is no search path for DLLs. 11420 hardcode_libdir_flag_spec='-L$libdir' 11421 export_dynamic_flag_spec='$wl--export-all-symbols' 11422 allow_undefined_flag=unsupported 11423 always_export_symbols=no 11424 enable_shared_with_static_runtimes=yes 11425 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 11426 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11427 11428 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11430 # If the export-symbols file already is a .def file, use it as 11431 # is; otherwise, prepend EXPORTS... 11432 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11433 cp $export_symbols $output_objdir/$soname.def; 11434 else 11435 echo EXPORTS > $output_objdir/$soname.def; 11436 cat $export_symbols >> $output_objdir/$soname.def; 11437 fi~ 11438 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11439 else 11440 ld_shlibs=no 11441 fi 11442 ;; 11443 11444 haiku*) 11445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11446 link_all_deplibs=yes 11447 ;; 11448 11449 os2*) 11450 hardcode_libdir_flag_spec='-L$libdir' 11451 hardcode_minus_L=yes 11452 allow_undefined_flag=unsupported 11453 shrext_cmds=.dll 11454 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11455 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11456 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11457 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11458 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11459 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11460 emximp -o $lib $output_objdir/$libname.def' 11461 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11462 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11463 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11464 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11465 prefix_cmds="$SED"~ 11466 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11467 prefix_cmds="$prefix_cmds -e 1d"; 11468 fi~ 11469 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11470 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11471 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11472 emximp -o $lib $output_objdir/$libname.def' 11473 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11474 enable_shared_with_static_runtimes=yes 11475 ;; 11476 11477 interix[3-9]*) 11478 hardcode_direct=no 11479 hardcode_shlibpath_var=no 11480 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11481 export_dynamic_flag_spec='$wl-E' 11482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11483 # Instead, shared libraries are loaded at an image base (0x10000000 by 11484 # default) and relocated if they conflict, which is a slow very memory 11485 # consuming and fragmenting process. To avoid this, we pick a random, 11486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11487 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11489 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' 11490 ;; 11491 11492 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11493 tmp_diet=no 11494 if test linux-dietlibc = "$host_os"; then 11495 case $cc_basename in 11496 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11497 esac 11498 fi 11499 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11500 && test no = "$tmp_diet" 11501 then 11502 tmp_addflag=' $pic_flag' 11503 tmp_sharedflag='-shared' 11504 case $cc_basename,$host_cpu in 11505 pgcc*) # Portland Group C compiler 11506 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' 11507 tmp_addflag=' $pic_flag' 11508 ;; 11509 pgf77* | pgf90* | pgf95* | pgfortran*) 11510 # Portland Group f77 and f90 compilers 11511 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' 11512 tmp_addflag=' $pic_flag -Mnomain' ;; 11513 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11514 tmp_addflag=' -i_dynamic' ;; 11515 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11516 tmp_addflag=' -i_dynamic -nofor_main' ;; 11517 ifc* | ifort*) # Intel Fortran compiler 11518 tmp_addflag=' -nofor_main' ;; 11519 lf95*) # Lahey Fortran 8.1 11520 whole_archive_flag_spec= 11521 tmp_sharedflag='--shared' ;; 11522 nagfor*) # NAGFOR 5.3 11523 tmp_sharedflag='-Wl,-shared' ;; 11524 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11525 tmp_sharedflag='-qmkshrobj' 11526 tmp_addflag= ;; 11527 nvcc*) # Cuda Compiler Driver 2.2 11528 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' 11529 compiler_needs_object=yes 11530 ;; 11531 esac 11532 case `$CC -V 2>&1 | sed 5q` in 11533 *Sun\ C*) # Sun C 5.9 11534 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' 11535 compiler_needs_object=yes 11536 tmp_sharedflag='-G' ;; 11537 *Sun\ F*) # Sun Fortran 8.3 11538 tmp_sharedflag='-G' ;; 11539 esac 11540 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11541 11542 if test yes = "$supports_anon_versioning"; then 11543 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11545 echo "local: *; };" >> $output_objdir/$libname.ver~ 11546 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11547 fi 11548 11549 case $cc_basename in 11550 tcc*) 11551 export_dynamic_flag_spec='-rdynamic' 11552 ;; 11553 xlf* | bgf* | bgxlf* | mpixlf*) 11554 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11555 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11556 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11557 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11558 if test yes = "$supports_anon_versioning"; then 11559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11561 echo "local: *; };" >> $output_objdir/$libname.ver~ 11562 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11563 fi 11564 ;; 11565 esac 11566 else 11567 ld_shlibs=no 11568 fi 11569 ;; 11570 11571 netbsd* | netbsdelf*-gnu) 11572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11573 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11574 wlarc= 11575 else 11576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11577 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11578 fi 11579 ;; 11580 11581 solaris*) 11582 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11583 ld_shlibs=no 11584 cat <<_LT_EOF 1>&2 11585 11586*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11587*** create shared libraries on Solaris systems. Therefore, libtool 11588*** is disabling shared libraries support. We urge you to upgrade GNU 11589*** binutils to release 2.9.1 or newer. Another option is to modify 11590*** your PATH or compiler configuration so that the native linker is 11591*** used, and then restart. 11592 11593_LT_EOF 11594 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11596 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11597 else 11598 ld_shlibs=no 11599 fi 11600 ;; 11601 11602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11603 case `$LD -v 2>&1` in 11604 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11605 ld_shlibs=no 11606 cat <<_LT_EOF 1>&2 11607 11608*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11609*** reliably create shared libraries on SCO systems. Therefore, libtool 11610*** is disabling shared libraries support. We urge you to upgrade GNU 11611*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11612*** your PATH or compiler configuration so that the native linker is 11613*** used, and then restart. 11614 11615_LT_EOF 11616 ;; 11617 *) 11618 # For security reasons, it is highly recommended that you always 11619 # use absolute paths for naming shared libraries, and exclude the 11620 # DT_RUNPATH tag from executables and libraries. But doing so 11621 # requires that you compile everything twice, which is a pain. 11622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11626 else 11627 ld_shlibs=no 11628 fi 11629 ;; 11630 esac 11631 ;; 11632 11633 sunos4*) 11634 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11635 wlarc= 11636 hardcode_direct=yes 11637 hardcode_shlibpath_var=no 11638 ;; 11639 11640 *) 11641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11643 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11644 else 11645 ld_shlibs=no 11646 fi 11647 ;; 11648 esac 11649 11650 if test no = "$ld_shlibs"; then 11651 runpath_var= 11652 hardcode_libdir_flag_spec= 11653 export_dynamic_flag_spec= 11654 whole_archive_flag_spec= 11655 fi 11656 else 11657 # PORTME fill in a description of your system's linker (not GNU ld) 11658 case $host_os in 11659 aix3*) 11660 allow_undefined_flag=unsupported 11661 always_export_symbols=yes 11662 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' 11663 # Note: this linker hardcodes the directories in LIBPATH if there 11664 # are no directories specified by -L. 11665 hardcode_minus_L=yes 11666 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11667 # Neither direct hardcoding nor static linking is supported with a 11668 # broken collect2. 11669 hardcode_direct=unsupported 11670 fi 11671 ;; 11672 11673 aix[4-9]*) 11674 if test ia64 = "$host_cpu"; then 11675 # On IA64, the linker does run time linking by default, so we don't 11676 # have to do anything special. 11677 aix_use_runtimelinking=no 11678 exp_sym_flag='-Bexport' 11679 no_entry_flag= 11680 else 11681 # If we're using GNU nm, then we don't want the "-C" option. 11682 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11683 # Without the "-l" option, or with the "-B" option, AIX nm treats 11684 # weak defined symbols like other global defined symbols, whereas 11685 # GNU nm marks them as "W". 11686 # While the 'weak' keyword is ignored in the Export File, we need 11687 # it in the Import File for the 'aix-soname' feature, so we have 11688 # to replace the "-B" option with "-P" for AIX nm. 11689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11690 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11691 else 11692 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11693 fi 11694 aix_use_runtimelinking=no 11695 11696 # Test if we are trying to use run time linking or normal 11697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11698 # have runtime linking enabled, and use it for executables. 11699 # For shared libraries, we enable/disable runtime linking 11700 # depending on the kind of the shared library created - 11701 # when "with_aix_soname,aix_use_runtimelinking" is: 11702 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11703 # "aix,yes" lib.so shared, rtl:yes, for executables 11704 # lib.a static archive 11705 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11706 # lib.a(lib.so.V) shared, rtl:no, for executables 11707 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11708 # lib.a(lib.so.V) shared, rtl:no 11709 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11710 # lib.a static archive 11711 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11712 for ld_flag in $LDFLAGS; do 11713 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11714 aix_use_runtimelinking=yes 11715 break 11716 fi 11717 done 11718 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11719 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11720 # so we don't have lib.a shared libs to link our executables. 11721 # We have to force runtime linking in this case. 11722 aix_use_runtimelinking=yes 11723 LDFLAGS="$LDFLAGS -Wl,-brtl" 11724 fi 11725 ;; 11726 esac 11727 11728 exp_sym_flag='-bexport' 11729 no_entry_flag='-bnoentry' 11730 fi 11731 11732 # When large executables or shared objects are built, AIX ld can 11733 # have problems creating the table of contents. If linking a library 11734 # or program results in "error TOC overflow" add -mminimal-toc to 11735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11737 11738 archive_cmds='' 11739 hardcode_direct=yes 11740 hardcode_direct_absolute=yes 11741 hardcode_libdir_separator=':' 11742 link_all_deplibs=yes 11743 file_list_spec='$wl-f,' 11744 case $with_aix_soname,$aix_use_runtimelinking in 11745 aix,*) ;; # traditional, no import file 11746 svr4,* | *,yes) # use import file 11747 # The Import File defines what to hardcode. 11748 hardcode_direct=no 11749 hardcode_direct_absolute=no 11750 ;; 11751 esac 11752 11753 if test yes = "$GCC"; then 11754 case $host_os in aix4.[012]|aix4.[012].*) 11755 # We only want to do this on AIX 4.2 and lower, the check 11756 # below for broken collect2 doesn't work under 4.3+ 11757 collect2name=`$CC -print-prog-name=collect2` 11758 if test -f "$collect2name" && 11759 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11760 then 11761 # We have reworked collect2 11762 : 11763 else 11764 # We have old collect2 11765 hardcode_direct=unsupported 11766 # It fails to find uninstalled libraries when the uninstalled 11767 # path is not listed in the libpath. Setting hardcode_minus_L 11768 # to unsupported forces relinking 11769 hardcode_minus_L=yes 11770 hardcode_libdir_flag_spec='-L$libdir' 11771 hardcode_libdir_separator= 11772 fi 11773 ;; 11774 esac 11775 shared_flag='-shared' 11776 if test yes = "$aix_use_runtimelinking"; then 11777 shared_flag="$shared_flag "'$wl-G' 11778 fi 11779 # Need to ensure runtime linking is disabled for the traditional 11780 # shared library, or the linker may eventually find shared libraries 11781 # /with/ Import File - we do not want to mix them. 11782 shared_flag_aix='-shared' 11783 shared_flag_svr4='-shared $wl-G' 11784 else 11785 # not using gcc 11786 if test ia64 = "$host_cpu"; then 11787 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11788 # chokes on -Wl,-G. The following line is correct: 11789 shared_flag='-G' 11790 else 11791 if test yes = "$aix_use_runtimelinking"; then 11792 shared_flag='$wl-G' 11793 else 11794 shared_flag='$wl-bM:SRE' 11795 fi 11796 shared_flag_aix='$wl-bM:SRE' 11797 shared_flag_svr4='$wl-G' 11798 fi 11799 fi 11800 11801 export_dynamic_flag_spec='$wl-bexpall' 11802 # It seems that -bexpall does not export symbols beginning with 11803 # underscore (_), so it is better to generate a list of symbols to export. 11804 always_export_symbols=yes 11805 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11806 # Warning - without using the other runtime loading flags (-brtl), 11807 # -berok will link without error, but may produce a broken library. 11808 allow_undefined_flag='-berok' 11809 # Determine the default libpath from the value encoded in an 11810 # empty executable. 11811 if test set = "${lt_cv_aix_libpath+set}"; then 11812 aix_libpath=$lt_cv_aix_libpath 11813else 11814 if ${lt_cv_aix_libpath_+:} false; then : 11815 $as_echo_n "(cached) " >&6 11816else 11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11818/* end confdefs.h. */ 11819 11820int 11821main () 11822{ 11823 11824 ; 11825 return 0; 11826} 11827_ACEOF 11828if ac_fn_c_try_link "$LINENO"; then : 11829 11830 lt_aix_libpath_sed=' 11831 /Import File Strings/,/^$/ { 11832 /^0/ { 11833 s/^0 *\([^ ]*\) *$/\1/ 11834 p 11835 } 11836 }' 11837 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11838 # Check for a 64-bit object if we didn't find anything. 11839 if test -z "$lt_cv_aix_libpath_"; then 11840 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11841 fi 11842fi 11843rm -f core conftest.err conftest.$ac_objext \ 11844 conftest$ac_exeext conftest.$ac_ext 11845 if test -z "$lt_cv_aix_libpath_"; then 11846 lt_cv_aix_libpath_=/usr/lib:/lib 11847 fi 11848 11849fi 11850 11851 aix_libpath=$lt_cv_aix_libpath_ 11852fi 11853 11854 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11855 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11856 else 11857 if test ia64 = "$host_cpu"; then 11858 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11859 allow_undefined_flag="-z nodefs" 11860 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" 11861 else 11862 # Determine the default libpath from the value encoded in an 11863 # empty executable. 11864 if test set = "${lt_cv_aix_libpath+set}"; then 11865 aix_libpath=$lt_cv_aix_libpath 11866else 11867 if ${lt_cv_aix_libpath_+:} false; then : 11868 $as_echo_n "(cached) " >&6 11869else 11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11871/* end confdefs.h. */ 11872 11873int 11874main () 11875{ 11876 11877 ; 11878 return 0; 11879} 11880_ACEOF 11881if ac_fn_c_try_link "$LINENO"; then : 11882 11883 lt_aix_libpath_sed=' 11884 /Import File Strings/,/^$/ { 11885 /^0/ { 11886 s/^0 *\([^ ]*\) *$/\1/ 11887 p 11888 } 11889 }' 11890 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11891 # Check for a 64-bit object if we didn't find anything. 11892 if test -z "$lt_cv_aix_libpath_"; then 11893 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11894 fi 11895fi 11896rm -f core conftest.err conftest.$ac_objext \ 11897 conftest$ac_exeext conftest.$ac_ext 11898 if test -z "$lt_cv_aix_libpath_"; then 11899 lt_cv_aix_libpath_=/usr/lib:/lib 11900 fi 11901 11902fi 11903 11904 aix_libpath=$lt_cv_aix_libpath_ 11905fi 11906 11907 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11908 # Warning - without using the other run time loading flags, 11909 # -berok will link without error, but may produce a broken library. 11910 no_undefined_flag=' $wl-bernotok' 11911 allow_undefined_flag=' $wl-berok' 11912 if test yes = "$with_gnu_ld"; then 11913 # We only use this code for GNU lds that support --whole-archive. 11914 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11915 else 11916 # Exported symbols can be pulled into shared objects from archives 11917 whole_archive_flag_spec='$convenience' 11918 fi 11919 archive_cmds_need_lc=yes 11920 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11921 # -brtl affects multiple linker settings, -berok does not and is overridden later 11922 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11923 if test svr4 != "$with_aix_soname"; then 11924 # This is similar to how AIX traditionally builds its shared libraries. 11925 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11926 fi 11927 if test aix != "$with_aix_soname"; then 11928 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11929 else 11930 # used by -dlpreopen to get the symbols 11931 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11932 fi 11933 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11934 fi 11935 fi 11936 ;; 11937 11938 amigaos*) 11939 case $host_cpu in 11940 powerpc) 11941 # see comment about AmigaOS4 .so support 11942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11943 archive_expsym_cmds='' 11944 ;; 11945 m68k) 11946 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)' 11947 hardcode_libdir_flag_spec='-L$libdir' 11948 hardcode_minus_L=yes 11949 ;; 11950 esac 11951 ;; 11952 11953 bsdi[45]*) 11954 export_dynamic_flag_spec=-rdynamic 11955 ;; 11956 11957 cygwin* | mingw* | pw32* | cegcc*) 11958 # When not using gcc, we currently assume that we are using 11959 # Microsoft Visual C++. 11960 # hardcode_libdir_flag_spec is actually meaningless, as there is 11961 # no search path for DLLs. 11962 case $cc_basename in 11963 cl*) 11964 # Native MSVC 11965 hardcode_libdir_flag_spec=' ' 11966 allow_undefined_flag=unsupported 11967 always_export_symbols=yes 11968 file_list_spec='@' 11969 # Tell ltmain to make .lib files, not .a files. 11970 libext=lib 11971 # Tell ltmain to make .dll files, not .so files. 11972 shrext_cmds=.dll 11973 # FIXME: Setting linknames here is a bad hack. 11974 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11975 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11976 cp "$export_symbols" "$output_objdir/$soname.def"; 11977 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11978 else 11979 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11980 fi~ 11981 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11982 linknames=' 11983 # The linker will not automatically build a static lib if we build a DLL. 11984 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11985 enable_shared_with_static_runtimes=yes 11986 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11987 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11988 # Don't use ranlib 11989 old_postinstall_cmds='chmod 644 $oldlib' 11990 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11991 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11992 case $lt_outputfile in 11993 *.exe|*.EXE) ;; 11994 *) 11995 lt_outputfile=$lt_outputfile.exe 11996 lt_tool_outputfile=$lt_tool_outputfile.exe 11997 ;; 11998 esac~ 11999 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12000 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12001 $RM "$lt_outputfile.manifest"; 12002 fi' 12003 ;; 12004 *) 12005 # Assume MSVC wrapper 12006 hardcode_libdir_flag_spec=' ' 12007 allow_undefined_flag=unsupported 12008 # Tell ltmain to make .lib files, not .a files. 12009 libext=lib 12010 # Tell ltmain to make .dll files, not .so files. 12011 shrext_cmds=.dll 12012 # FIXME: Setting linknames here is a bad hack. 12013 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12014 # The linker will automatically build a .lib file if we build a DLL. 12015 old_archive_from_new_cmds='true' 12016 # FIXME: Should let the user specify the lib program. 12017 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12018 enable_shared_with_static_runtimes=yes 12019 ;; 12020 esac 12021 ;; 12022 12023 darwin* | rhapsody*) 12024 12025 12026 archive_cmds_need_lc=no 12027 hardcode_direct=no 12028 hardcode_automatic=yes 12029 hardcode_shlibpath_var=unsupported 12030 if test yes = "$lt_cv_ld_force_load"; then 12031 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\"`' 12032 12033 else 12034 whole_archive_flag_spec='' 12035 fi 12036 link_all_deplibs=yes 12037 allow_undefined_flag=$_lt_dar_allow_undefined 12038 case $cc_basename in 12039 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12040 *) _lt_dar_can_shared=$GCC ;; 12041 esac 12042 if test yes = "$_lt_dar_can_shared"; then 12043 output_verbose_link_cmd=func_echo_all 12044 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12045 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12046 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" 12047 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" 12048 12049 else 12050 ld_shlibs=no 12051 fi 12052 12053 ;; 12054 12055 dgux*) 12056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12057 hardcode_libdir_flag_spec='-L$libdir' 12058 hardcode_shlibpath_var=no 12059 ;; 12060 12061 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12062 # support. Future versions do this automatically, but an explicit c++rt0.o 12063 # does not break anything, and helps significantly (at the cost of a little 12064 # extra space). 12065 freebsd2.2*) 12066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12067 hardcode_libdir_flag_spec='-R$libdir' 12068 hardcode_direct=yes 12069 hardcode_shlibpath_var=no 12070 ;; 12071 12072 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12073 freebsd2.*) 12074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12075 hardcode_direct=yes 12076 hardcode_minus_L=yes 12077 hardcode_shlibpath_var=no 12078 ;; 12079 12080 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12081 freebsd* | dragonfly*) 12082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12083 hardcode_libdir_flag_spec='-R$libdir' 12084 hardcode_direct=yes 12085 hardcode_shlibpath_var=no 12086 ;; 12087 12088 hpux9*) 12089 if test yes = "$GCC"; then 12090 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12091 else 12092 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12093 fi 12094 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12095 hardcode_libdir_separator=: 12096 hardcode_direct=yes 12097 12098 # hardcode_minus_L: Not really in the search PATH, 12099 # but as the default location of the library. 12100 hardcode_minus_L=yes 12101 export_dynamic_flag_spec='$wl-E' 12102 ;; 12103 12104 hpux10*) 12105 if test yes,no = "$GCC,$with_gnu_ld"; then 12106 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12107 else 12108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12109 fi 12110 if test no = "$with_gnu_ld"; then 12111 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12112 hardcode_libdir_separator=: 12113 hardcode_direct=yes 12114 hardcode_direct_absolute=yes 12115 export_dynamic_flag_spec='$wl-E' 12116 # hardcode_minus_L: Not really in the search PATH, 12117 # but as the default location of the library. 12118 hardcode_minus_L=yes 12119 fi 12120 ;; 12121 12122 hpux11*) 12123 if test yes,no = "$GCC,$with_gnu_ld"; then 12124 case $host_cpu in 12125 hppa*64*) 12126 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12127 ;; 12128 ia64*) 12129 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12130 ;; 12131 *) 12132 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12133 ;; 12134 esac 12135 else 12136 case $host_cpu in 12137 hppa*64*) 12138 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12139 ;; 12140 ia64*) 12141 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12142 ;; 12143 *) 12144 12145 # Older versions of the 11.00 compiler do not understand -b yet 12146 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12148$as_echo_n "checking if $CC understands -b... " >&6; } 12149if ${lt_cv_prog_compiler__b+:} false; then : 12150 $as_echo_n "(cached) " >&6 12151else 12152 lt_cv_prog_compiler__b=no 12153 save_LDFLAGS=$LDFLAGS 12154 LDFLAGS="$LDFLAGS -b" 12155 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12157 # The linker can only warn and ignore the option if not recognized 12158 # So say no if there are warnings 12159 if test -s conftest.err; then 12160 # Append any errors to the config.log. 12161 cat conftest.err 1>&5 12162 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12164 if diff conftest.exp conftest.er2 >/dev/null; then 12165 lt_cv_prog_compiler__b=yes 12166 fi 12167 else 12168 lt_cv_prog_compiler__b=yes 12169 fi 12170 fi 12171 $RM -r conftest* 12172 LDFLAGS=$save_LDFLAGS 12173 12174fi 12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12176$as_echo "$lt_cv_prog_compiler__b" >&6; } 12177 12178if test yes = "$lt_cv_prog_compiler__b"; then 12179 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12180else 12181 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12182fi 12183 12184 ;; 12185 esac 12186 fi 12187 if test no = "$with_gnu_ld"; then 12188 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12189 hardcode_libdir_separator=: 12190 12191 case $host_cpu in 12192 hppa*64*|ia64*) 12193 hardcode_direct=no 12194 hardcode_shlibpath_var=no 12195 ;; 12196 *) 12197 hardcode_direct=yes 12198 hardcode_direct_absolute=yes 12199 export_dynamic_flag_spec='$wl-E' 12200 12201 # hardcode_minus_L: Not really in the search PATH, 12202 # but as the default location of the library. 12203 hardcode_minus_L=yes 12204 ;; 12205 esac 12206 fi 12207 ;; 12208 12209 irix5* | irix6* | nonstopux*) 12210 if test yes = "$GCC"; then 12211 archive_cmds='$CC -shared $pic_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' 12212 # Try to use the -exported_symbol ld option, if it does not 12213 # work, assume that -exports_file does not work either and 12214 # implicitly export all symbols. 12215 # This should be the same for all languages, so no per-tag cache variable. 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12217$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12218if ${lt_cv_irix_exported_symbol+:} false; then : 12219 $as_echo_n "(cached) " >&6 12220else 12221 save_LDFLAGS=$LDFLAGS 12222 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12224/* end confdefs.h. */ 12225int foo (void) { return 0; } 12226_ACEOF 12227if ac_fn_c_try_link "$LINENO"; then : 12228 lt_cv_irix_exported_symbol=yes 12229else 12230 lt_cv_irix_exported_symbol=no 12231fi 12232rm -f core conftest.err conftest.$ac_objext \ 12233 conftest$ac_exeext conftest.$ac_ext 12234 LDFLAGS=$save_LDFLAGS 12235fi 12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12237$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12238 if test yes = "$lt_cv_irix_exported_symbol"; then 12239 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib' 12240 fi 12241 link_all_deplibs=no 12242 else 12243 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' 12244 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' 12245 fi 12246 archive_cmds_need_lc='no' 12247 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12248 hardcode_libdir_separator=: 12249 inherit_rpath=yes 12250 link_all_deplibs=yes 12251 ;; 12252 12253 linux*) 12254 case $cc_basename in 12255 tcc*) 12256 # Fabrice Bellard et al's Tiny C Compiler 12257 ld_shlibs=yes 12258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12259 ;; 12260 esac 12261 ;; 12262 12263 netbsd* | netbsdelf*-gnu) 12264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12266 else 12267 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12268 fi 12269 hardcode_libdir_flag_spec='-R$libdir' 12270 hardcode_direct=yes 12271 hardcode_shlibpath_var=no 12272 ;; 12273 12274 newsos6) 12275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12276 hardcode_direct=yes 12277 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12278 hardcode_libdir_separator=: 12279 hardcode_shlibpath_var=no 12280 ;; 12281 12282 *nto* | *qnx*) 12283 ;; 12284 12285 openbsd* | bitrig*) 12286 if test -f /usr/libexec/ld.so; then 12287 hardcode_direct=yes 12288 hardcode_shlibpath_var=no 12289 hardcode_direct_absolute=yes 12290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12292 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12293 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12294 export_dynamic_flag_spec='$wl-E' 12295 else 12296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12297 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12298 fi 12299 else 12300 ld_shlibs=no 12301 fi 12302 ;; 12303 12304 os2*) 12305 hardcode_libdir_flag_spec='-L$libdir' 12306 hardcode_minus_L=yes 12307 allow_undefined_flag=unsupported 12308 shrext_cmds=.dll 12309 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12310 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12311 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12312 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12313 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12314 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12315 emximp -o $lib $output_objdir/$libname.def' 12316 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12317 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12318 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12319 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12320 prefix_cmds="$SED"~ 12321 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12322 prefix_cmds="$prefix_cmds -e 1d"; 12323 fi~ 12324 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12325 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12326 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12327 emximp -o $lib $output_objdir/$libname.def' 12328 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12329 enable_shared_with_static_runtimes=yes 12330 ;; 12331 12332 osf3*) 12333 if test yes = "$GCC"; then 12334 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12335 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' 12336 else 12337 allow_undefined_flag=' -expect_unresolved \*' 12338 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' 12339 fi 12340 archive_cmds_need_lc='no' 12341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12342 hardcode_libdir_separator=: 12343 ;; 12344 12345 osf4* | osf5*) # as osf3* with the addition of -msym flag 12346 if test yes = "$GCC"; then 12347 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12348 archive_cmds='$CC -shared$allow_undefined_flag $pic_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' 12349 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12350 else 12351 allow_undefined_flag=' -expect_unresolved \*' 12352 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' 12353 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~ 12354 $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' 12355 12356 # Both c and cxx compiler support -rpath directly 12357 hardcode_libdir_flag_spec='-rpath $libdir' 12358 fi 12359 archive_cmds_need_lc='no' 12360 hardcode_libdir_separator=: 12361 ;; 12362 12363 solaris*) 12364 no_undefined_flag=' -z defs' 12365 if test yes = "$GCC"; then 12366 wlarc='$wl' 12367 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12368 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12369 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12370 else 12371 case `$CC -V 2>&1` in 12372 *"Compilers 5.0"*) 12373 wlarc='' 12374 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12375 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12376 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12377 ;; 12378 *) 12379 wlarc='$wl' 12380 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12381 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12382 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12383 ;; 12384 esac 12385 fi 12386 hardcode_libdir_flag_spec='-R$libdir' 12387 hardcode_shlibpath_var=no 12388 case $host_os in 12389 solaris2.[0-5] | solaris2.[0-5].*) ;; 12390 *) 12391 # The compiler driver will combine and reorder linker options, 12392 # but understands '-z linker_flag'. GCC discards it without '$wl', 12393 # but is careful enough not to reorder. 12394 # Supported since Solaris 2.6 (maybe 2.5.1?) 12395 if test yes = "$GCC"; then 12396 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12397 else 12398 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12399 fi 12400 ;; 12401 esac 12402 link_all_deplibs=yes 12403 ;; 12404 12405 sunos4*) 12406 if test sequent = "$host_vendor"; then 12407 # Use $CC to link under sequent, because it throws in some extra .o 12408 # files that make .init and .fini sections work. 12409 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12410 else 12411 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12412 fi 12413 hardcode_libdir_flag_spec='-L$libdir' 12414 hardcode_direct=yes 12415 hardcode_minus_L=yes 12416 hardcode_shlibpath_var=no 12417 ;; 12418 12419 sysv4) 12420 case $host_vendor in 12421 sni) 12422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12423 hardcode_direct=yes # is this really true??? 12424 ;; 12425 siemens) 12426 ## LD is ld it makes a PLAMLIB 12427 ## CC just makes a GrossModule. 12428 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12429 reload_cmds='$CC -r -o $output$reload_objs' 12430 hardcode_direct=no 12431 ;; 12432 motorola) 12433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12434 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12435 ;; 12436 esac 12437 runpath_var='LD_RUN_PATH' 12438 hardcode_shlibpath_var=no 12439 ;; 12440 12441 sysv4.3*) 12442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12443 hardcode_shlibpath_var=no 12444 export_dynamic_flag_spec='-Bexport' 12445 ;; 12446 12447 sysv4*MP*) 12448 if test -d /usr/nec; then 12449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12450 hardcode_shlibpath_var=no 12451 runpath_var=LD_RUN_PATH 12452 hardcode_runpath_var=yes 12453 ld_shlibs=yes 12454 fi 12455 ;; 12456 12457 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12458 no_undefined_flag='$wl-z,text' 12459 archive_cmds_need_lc=no 12460 hardcode_shlibpath_var=no 12461 runpath_var='LD_RUN_PATH' 12462 12463 if test yes = "$GCC"; then 12464 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12465 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12466 else 12467 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12468 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12469 fi 12470 ;; 12471 12472 sysv5* | sco3.2v5* | sco5v6*) 12473 # Note: We CANNOT use -z defs as we might desire, because we do not 12474 # link with -lc, and that would cause any symbols used from libc to 12475 # always be unresolved, which means just about no library would 12476 # ever link correctly. If we're not using GNU ld we use -z text 12477 # though, which does catch some bad symbols but isn't as heavy-handed 12478 # as -z defs. 12479 no_undefined_flag='$wl-z,text' 12480 allow_undefined_flag='$wl-z,nodefs' 12481 archive_cmds_need_lc=no 12482 hardcode_shlibpath_var=no 12483 hardcode_libdir_flag_spec='$wl-R,$libdir' 12484 hardcode_libdir_separator=':' 12485 link_all_deplibs=yes 12486 export_dynamic_flag_spec='$wl-Bexport' 12487 runpath_var='LD_RUN_PATH' 12488 12489 if test yes = "$GCC"; then 12490 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12491 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12492 else 12493 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12494 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12495 fi 12496 ;; 12497 12498 uts4*) 12499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12500 hardcode_libdir_flag_spec='-L$libdir' 12501 hardcode_shlibpath_var=no 12502 ;; 12503 12504 *) 12505 ld_shlibs=no 12506 ;; 12507 esac 12508 12509 if test sni = "$host_vendor"; then 12510 case $host in 12511 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12512 export_dynamic_flag_spec='$wl-Blargedynsym' 12513 ;; 12514 esac 12515 fi 12516 fi 12517 12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12519$as_echo "$ld_shlibs" >&6; } 12520test no = "$ld_shlibs" && can_build_shared=no 12521 12522with_gnu_ld=$with_gnu_ld 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538# 12539# Do we need to explicitly link libc? 12540# 12541case "x$archive_cmds_need_lc" in 12542x|xyes) 12543 # Assume -lc should be added 12544 archive_cmds_need_lc=yes 12545 12546 if test yes,yes = "$GCC,$enable_shared"; then 12547 case $archive_cmds in 12548 *'~'*) 12549 # FIXME: we may have to deal with multi-command sequences. 12550 ;; 12551 '$CC '*) 12552 # Test whether the compiler implicitly links with -lc since on some 12553 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12554 # to ld, don't add -lc before -lgcc. 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12556$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12557if ${lt_cv_archive_cmds_need_lc+:} false; then : 12558 $as_echo_n "(cached) " >&6 12559else 12560 $RM conftest* 12561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12562 12563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12564 (eval $ac_compile) 2>&5 12565 ac_status=$? 12566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12567 test $ac_status = 0; } 2>conftest.err; then 12568 soname=conftest 12569 lib=conftest 12570 libobjs=conftest.$ac_objext 12571 deplibs= 12572 wl=$lt_prog_compiler_wl 12573 pic_flag=$lt_prog_compiler_pic 12574 compiler_flags=-v 12575 linker_flags=-v 12576 verstring= 12577 output_objdir=. 12578 libname=conftest 12579 lt_save_allow_undefined_flag=$allow_undefined_flag 12580 allow_undefined_flag= 12581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12582 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12583 ac_status=$? 12584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12585 test $ac_status = 0; } 12586 then 12587 lt_cv_archive_cmds_need_lc=no 12588 else 12589 lt_cv_archive_cmds_need_lc=yes 12590 fi 12591 allow_undefined_flag=$lt_save_allow_undefined_flag 12592 else 12593 cat conftest.err 1>&5 12594 fi 12595 $RM conftest* 12596 12597fi 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12599$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12600 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12601 ;; 12602 esac 12603 fi 12604 ;; 12605esac 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12759$as_echo_n "checking dynamic linker characteristics... " >&6; } 12760 12761if test yes = "$GCC"; then 12762 case $host_os in 12763 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12764 *) lt_awk_arg='/^libraries:/' ;; 12765 esac 12766 case $host_os in 12767 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12768 *) lt_sed_strip_eq='s|=/|/|g' ;; 12769 esac 12770 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12771 case $lt_search_path_spec in 12772 *\;*) 12773 # if the path contains ";" then we assume it to be the separator 12774 # otherwise default to the standard path separator (i.e. ":") - it is 12775 # assumed that no part of a normal pathname contains ";" but that should 12776 # okay in the real world where ";" in dirpaths is itself problematic. 12777 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12778 ;; 12779 *) 12780 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12781 ;; 12782 esac 12783 # Ok, now we have the path, separated by spaces, we can step through it 12784 # and add multilib dir if necessary... 12785 lt_tmp_lt_search_path_spec= 12786 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12787 # ...but if some path component already ends with the multilib dir we assume 12788 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12789 case "$lt_multi_os_dir; $lt_search_path_spec " in 12790 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12791 lt_multi_os_dir= 12792 ;; 12793 esac 12794 for lt_sys_path in $lt_search_path_spec; do 12795 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12796 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12797 elif test -n "$lt_multi_os_dir"; then 12798 test -d "$lt_sys_path" && \ 12799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12800 fi 12801 done 12802 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12803BEGIN {RS = " "; FS = "/|\n";} { 12804 lt_foo = ""; 12805 lt_count = 0; 12806 for (lt_i = NF; lt_i > 0; lt_i--) { 12807 if ($lt_i != "" && $lt_i != ".") { 12808 if ($lt_i == "..") { 12809 lt_count++; 12810 } else { 12811 if (lt_count == 0) { 12812 lt_foo = "/" $lt_i lt_foo; 12813 } else { 12814 lt_count--; 12815 } 12816 } 12817 } 12818 } 12819 if (lt_foo != "") { lt_freq[lt_foo]++; } 12820 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12821}'` 12822 # AWK program above erroneously prepends '/' to C:/dos/paths 12823 # for these hosts. 12824 case $host_os in 12825 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12826 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12827 esac 12828 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12829else 12830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12831fi 12832library_names_spec= 12833libname_spec='lib$name' 12834soname_spec= 12835shrext_cmds=.so 12836postinstall_cmds= 12837postuninstall_cmds= 12838finish_cmds= 12839finish_eval= 12840shlibpath_var= 12841shlibpath_overrides_runpath=unknown 12842version_type=none 12843dynamic_linker="$host_os ld.so" 12844sys_lib_dlsearch_path_spec="/lib /usr/lib" 12845need_lib_prefix=unknown 12846hardcode_into_libs=no 12847 12848# when you set need_version to no, make sure it does not cause -set_version 12849# flags to be left without arguments 12850need_version=unknown 12851 12852 12853 12854case $host_os in 12855aix3*) 12856 version_type=linux # correct to gnu/linux during the next big refactor 12857 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12858 shlibpath_var=LIBPATH 12859 12860 # AIX 3 has no versioning support, so we append a major version to the name. 12861 soname_spec='$libname$release$shared_ext$major' 12862 ;; 12863 12864aix[4-9]*) 12865 version_type=linux # correct to gnu/linux during the next big refactor 12866 need_lib_prefix=no 12867 need_version=no 12868 hardcode_into_libs=yes 12869 if test ia64 = "$host_cpu"; then 12870 # AIX 5 supports IA64 12871 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12872 shlibpath_var=LD_LIBRARY_PATH 12873 else 12874 # With GCC up to 2.95.x, collect2 would create an import file 12875 # for dependence libraries. The import file would start with 12876 # the line '#! .'. This would cause the generated library to 12877 # depend on '.', always an invalid library. This was fixed in 12878 # development snapshots of GCC prior to 3.0. 12879 case $host_os in 12880 aix4 | aix4.[01] | aix4.[01].*) 12881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12882 echo ' yes ' 12883 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12884 : 12885 else 12886 can_build_shared=no 12887 fi 12888 ;; 12889 esac 12890 # Using Import Files as archive members, it is possible to support 12891 # filename-based versioning of shared library archives on AIX. While 12892 # this would work for both with and without runtime linking, it will 12893 # prevent static linking of such archives. So we do filename-based 12894 # shared library versioning with .so extension only, which is used 12895 # when both runtime linking and shared linking is enabled. 12896 # Unfortunately, runtime linking may impact performance, so we do 12897 # not want this to be the default eventually. Also, we use the 12898 # versioned .so libs for executables only if there is the -brtl 12899 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12900 # To allow for filename-based versioning support, we need to create 12901 # libNAME.so.V as an archive file, containing: 12902 # *) an Import File, referring to the versioned filename of the 12903 # archive as well as the shared archive member, telling the 12904 # bitwidth (32 or 64) of that shared object, and providing the 12905 # list of exported symbols of that shared object, eventually 12906 # decorated with the 'weak' keyword 12907 # *) the shared object with the F_LOADONLY flag set, to really avoid 12908 # it being seen by the linker. 12909 # At run time we better use the real file rather than another symlink, 12910 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12911 12912 case $with_aix_soname,$aix_use_runtimelinking in 12913 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12914 # soname into executable. Probably we can add versioning support to 12915 # collect2, so additional links can be useful in future. 12916 aix,yes) # traditional libtool 12917 dynamic_linker='AIX unversionable lib.so' 12918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12919 # instead of lib<name>.a to let people know that these are not 12920 # typical AIX shared libraries. 12921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12922 ;; 12923 aix,no) # traditional AIX only 12924 dynamic_linker='AIX lib.a(lib.so.V)' 12925 # We preserve .a as extension for shared libraries through AIX4.2 12926 # and later when we are not doing run time linking. 12927 library_names_spec='$libname$release.a $libname.a' 12928 soname_spec='$libname$release$shared_ext$major' 12929 ;; 12930 svr4,*) # full svr4 only 12931 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12932 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12933 # We do not specify a path in Import Files, so LIBPATH fires. 12934 shlibpath_overrides_runpath=yes 12935 ;; 12936 *,yes) # both, prefer svr4 12937 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12938 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12939 # unpreferred sharedlib libNAME.a needs extra handling 12940 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12941 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12942 # We do not specify a path in Import Files, so LIBPATH fires. 12943 shlibpath_overrides_runpath=yes 12944 ;; 12945 *,no) # both, prefer aix 12946 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12947 library_names_spec='$libname$release.a $libname.a' 12948 soname_spec='$libname$release$shared_ext$major' 12949 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12950 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12951 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12952 ;; 12953 esac 12954 shlibpath_var=LIBPATH 12955 fi 12956 ;; 12957 12958amigaos*) 12959 case $host_cpu in 12960 powerpc) 12961 # Since July 2007 AmigaOS4 officially supports .so libraries. 12962 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12964 ;; 12965 m68k) 12966 library_names_spec='$libname.ixlibrary $libname.a' 12967 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12968 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 12969 ;; 12970 esac 12971 ;; 12972 12973beos*) 12974 library_names_spec='$libname$shared_ext' 12975 dynamic_linker="$host_os ld.so" 12976 shlibpath_var=LIBRARY_PATH 12977 ;; 12978 12979bsdi[45]*) 12980 version_type=linux # correct to gnu/linux during the next big refactor 12981 need_version=no 12982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12983 soname_spec='$libname$release$shared_ext$major' 12984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12985 shlibpath_var=LD_LIBRARY_PATH 12986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12988 # the default ld.so.conf also contains /usr/contrib/lib and 12989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12990 # libtool to hard-code these into programs 12991 ;; 12992 12993cygwin* | mingw* | pw32* | cegcc*) 12994 version_type=windows 12995 shrext_cmds=.dll 12996 need_version=no 12997 need_lib_prefix=no 12998 12999 case $GCC,$cc_basename in 13000 yes,*) 13001 # gcc 13002 library_names_spec='$libname.dll.a' 13003 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13004 postinstall_cmds='base_file=`basename \$file`~ 13005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13006 dldir=$destdir/`dirname \$dlpath`~ 13007 test -d \$dldir || mkdir -p \$dldir~ 13008 $install_prog $dir/$dlname \$dldir/$dlname~ 13009 chmod a+x \$dldir/$dlname~ 13010 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13011 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13012 fi' 13013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13014 dlpath=$dir/\$dldll~ 13015 $RM \$dlpath' 13016 shlibpath_overrides_runpath=yes 13017 13018 case $host_os in 13019 cygwin*) 13020 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13021 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13022 13023 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13024 ;; 13025 mingw* | cegcc*) 13026 # MinGW DLLs use traditional 'lib' prefix 13027 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13028 ;; 13029 pw32*) 13030 # pw32 DLLs use 'pw' prefix rather than 'lib' 13031 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13032 ;; 13033 esac 13034 dynamic_linker='Win32 ld.exe' 13035 ;; 13036 13037 *,cl*) 13038 # Native MSVC 13039 libname_spec='$name' 13040 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13041 library_names_spec='$libname.dll.lib' 13042 13043 case $build_os in 13044 mingw*) 13045 sys_lib_search_path_spec= 13046 lt_save_ifs=$IFS 13047 IFS=';' 13048 for lt_path in $LIB 13049 do 13050 IFS=$lt_save_ifs 13051 # Let DOS variable expansion print the short 8.3 style file name. 13052 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13053 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13054 done 13055 IFS=$lt_save_ifs 13056 # Convert to MSYS style. 13057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13058 ;; 13059 cygwin*) 13060 # Convert to unix form, then to dos form, then back to unix form 13061 # but this time dos style (no spaces!) so that the unix form looks 13062 # like /cygdrive/c/PROGRA~1:/cygdr... 13063 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13064 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13065 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13066 ;; 13067 *) 13068 sys_lib_search_path_spec=$LIB 13069 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13070 # It is most probably a Windows format PATH. 13071 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13072 else 13073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13074 fi 13075 # FIXME: find the short name or the path components, as spaces are 13076 # common. (e.g. "Program Files" -> "PROGRA~1") 13077 ;; 13078 esac 13079 13080 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13081 postinstall_cmds='base_file=`basename \$file`~ 13082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13083 dldir=$destdir/`dirname \$dlpath`~ 13084 test -d \$dldir || mkdir -p \$dldir~ 13085 $install_prog $dir/$dlname \$dldir/$dlname' 13086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13087 dlpath=$dir/\$dldll~ 13088 $RM \$dlpath' 13089 shlibpath_overrides_runpath=yes 13090 dynamic_linker='Win32 link.exe' 13091 ;; 13092 13093 *) 13094 # Assume MSVC wrapper 13095 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13096 dynamic_linker='Win32 ld.exe' 13097 ;; 13098 esac 13099 # FIXME: first we should search . and the directory the executable is in 13100 shlibpath_var=PATH 13101 ;; 13102 13103darwin* | rhapsody*) 13104 dynamic_linker="$host_os dyld" 13105 version_type=darwin 13106 need_lib_prefix=no 13107 need_version=no 13108 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13109 soname_spec='$libname$release$major$shared_ext' 13110 shlibpath_overrides_runpath=yes 13111 shlibpath_var=DYLD_LIBRARY_PATH 13112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13113 13114 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13116 ;; 13117 13118dgux*) 13119 version_type=linux # correct to gnu/linux during the next big refactor 13120 need_lib_prefix=no 13121 need_version=no 13122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13123 soname_spec='$libname$release$shared_ext$major' 13124 shlibpath_var=LD_LIBRARY_PATH 13125 ;; 13126 13127freebsd* | dragonfly*) 13128 # DragonFly does not have aout. When/if they implement a new 13129 # versioning mechanism, adjust this. 13130 if test -x /usr/bin/objformat; then 13131 objformat=`/usr/bin/objformat` 13132 else 13133 case $host_os in 13134 freebsd[23].*) objformat=aout ;; 13135 *) objformat=elf ;; 13136 esac 13137 fi 13138 version_type=freebsd-$objformat 13139 case $version_type in 13140 freebsd-elf*) 13141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13142 soname_spec='$libname$release$shared_ext$major' 13143 need_version=no 13144 need_lib_prefix=no 13145 ;; 13146 freebsd-*) 13147 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13148 need_version=yes 13149 ;; 13150 esac 13151 shlibpath_var=LD_LIBRARY_PATH 13152 case $host_os in 13153 freebsd2.*) 13154 shlibpath_overrides_runpath=yes 13155 ;; 13156 freebsd3.[01]* | freebsdelf3.[01]*) 13157 shlibpath_overrides_runpath=yes 13158 hardcode_into_libs=yes 13159 ;; 13160 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13161 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13162 shlibpath_overrides_runpath=no 13163 hardcode_into_libs=yes 13164 ;; 13165 *) # from 4.6 on, and DragonFly 13166 shlibpath_overrides_runpath=yes 13167 hardcode_into_libs=yes 13168 ;; 13169 esac 13170 ;; 13171 13172haiku*) 13173 version_type=linux # correct to gnu/linux during the next big refactor 13174 need_lib_prefix=no 13175 need_version=no 13176 dynamic_linker="$host_os runtime_loader" 13177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13178 soname_spec='$libname$release$shared_ext$major' 13179 shlibpath_var=LIBRARY_PATH 13180 shlibpath_overrides_runpath=no 13181 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13182 hardcode_into_libs=yes 13183 ;; 13184 13185hpux9* | hpux10* | hpux11*) 13186 # Give a soname corresponding to the major version so that dld.sl refuses to 13187 # link against other versions. 13188 version_type=sunos 13189 need_lib_prefix=no 13190 need_version=no 13191 case $host_cpu in 13192 ia64*) 13193 shrext_cmds='.so' 13194 hardcode_into_libs=yes 13195 dynamic_linker="$host_os dld.so" 13196 shlibpath_var=LD_LIBRARY_PATH 13197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13199 soname_spec='$libname$release$shared_ext$major' 13200 if test 32 = "$HPUX_IA64_MODE"; then 13201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13202 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13203 else 13204 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13205 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13206 fi 13207 ;; 13208 hppa*64*) 13209 shrext_cmds='.sl' 13210 hardcode_into_libs=yes 13211 dynamic_linker="$host_os dld.sl" 13212 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13215 soname_spec='$libname$release$shared_ext$major' 13216 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13218 ;; 13219 *) 13220 shrext_cmds='.sl' 13221 dynamic_linker="$host_os dld.sl" 13222 shlibpath_var=SHLIB_PATH 13223 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13225 soname_spec='$libname$release$shared_ext$major' 13226 ;; 13227 esac 13228 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13229 postinstall_cmds='chmod 555 $lib' 13230 # or fails outright, so override atomically: 13231 install_override_mode=555 13232 ;; 13233 13234interix[3-9]*) 13235 version_type=linux # correct to gnu/linux during the next big refactor 13236 need_lib_prefix=no 13237 need_version=no 13238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13239 soname_spec='$libname$release$shared_ext$major' 13240 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13241 shlibpath_var=LD_LIBRARY_PATH 13242 shlibpath_overrides_runpath=no 13243 hardcode_into_libs=yes 13244 ;; 13245 13246irix5* | irix6* | nonstopux*) 13247 case $host_os in 13248 nonstopux*) version_type=nonstopux ;; 13249 *) 13250 if test yes = "$lt_cv_prog_gnu_ld"; then 13251 version_type=linux # correct to gnu/linux during the next big refactor 13252 else 13253 version_type=irix 13254 fi ;; 13255 esac 13256 need_lib_prefix=no 13257 need_version=no 13258 soname_spec='$libname$release$shared_ext$major' 13259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13260 case $host_os in 13261 irix5* | nonstopux*) 13262 libsuff= shlibsuff= 13263 ;; 13264 *) 13265 case $LD in # libtool.m4 will add one of these switches to LD 13266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13267 libsuff= shlibsuff= libmagic=32-bit;; 13268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13269 libsuff=32 shlibsuff=N32 libmagic=N32;; 13270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13271 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13272 *) libsuff= shlibsuff= libmagic=never-match;; 13273 esac 13274 ;; 13275 esac 13276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13277 shlibpath_overrides_runpath=no 13278 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13279 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13280 hardcode_into_libs=yes 13281 ;; 13282 13283# No shared lib support for Linux oldld, aout, or coff. 13284linux*oldld* | linux*aout* | linux*coff*) 13285 dynamic_linker=no 13286 ;; 13287 13288linux*android*) 13289 version_type=none # Android doesn't support versioned libraries. 13290 need_lib_prefix=no 13291 need_version=no 13292 library_names_spec='$libname$release$shared_ext' 13293 soname_spec='$libname$release$shared_ext' 13294 finish_cmds= 13295 shlibpath_var=LD_LIBRARY_PATH 13296 shlibpath_overrides_runpath=yes 13297 13298 # This implies no fast_install, which is unacceptable. 13299 # Some rework will be needed to allow for fast_install 13300 # before this can be enabled. 13301 hardcode_into_libs=yes 13302 13303 dynamic_linker='Android linker' 13304 # Don't embed -rpath directories since the linker doesn't support them. 13305 hardcode_libdir_flag_spec='-L$libdir' 13306 ;; 13307 13308# This must be glibc/ELF. 13309linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13310 version_type=linux # correct to gnu/linux during the next big refactor 13311 need_lib_prefix=no 13312 need_version=no 13313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13314 soname_spec='$libname$release$shared_ext$major' 13315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13316 shlibpath_var=LD_LIBRARY_PATH 13317 shlibpath_overrides_runpath=no 13318 13319 # Some binutils ld are patched to set DT_RUNPATH 13320 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13321 $as_echo_n "(cached) " >&6 13322else 13323 lt_cv_shlibpath_overrides_runpath=no 13324 save_LDFLAGS=$LDFLAGS 13325 save_libdir=$libdir 13326 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13327 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13329/* end confdefs.h. */ 13330 13331int 13332main () 13333{ 13334 13335 ; 13336 return 0; 13337} 13338_ACEOF 13339if ac_fn_c_try_link "$LINENO"; then : 13340 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13341 lt_cv_shlibpath_overrides_runpath=yes 13342fi 13343fi 13344rm -f core conftest.err conftest.$ac_objext \ 13345 conftest$ac_exeext conftest.$ac_ext 13346 LDFLAGS=$save_LDFLAGS 13347 libdir=$save_libdir 13348 13349fi 13350 13351 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13352 13353 # This implies no fast_install, which is unacceptable. 13354 # Some rework will be needed to allow for fast_install 13355 # before this can be enabled. 13356 hardcode_into_libs=yes 13357 13358 # Ideally, we could use ldconfig to report *all* directores which are 13359 # searched for libraries, however this is still not possible. Aside from not 13360 # being certain /sbin/ldconfig is available, command 13361 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13362 # even though it is searched at run-time. Try to do the best guess by 13363 # appending ld.so.conf contents (and includes) to the search path. 13364 if test -f /etc/ld.so.conf; then 13365 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' ' '` 13366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13367 fi 13368 13369 # We used to test for /lib/ld.so.1 and disable shared libraries on 13370 # powerpc, because MkLinux only supported shared libraries with the 13371 # GNU dynamic linker. Since this was broken with cross compilers, 13372 # most powerpc-linux boxes support dynamic linking these days and 13373 # people can always --disable-shared, the test was removed, and we 13374 # assume the GNU/Linux dynamic linker is in use. 13375 dynamic_linker='GNU/Linux ld.so' 13376 ;; 13377 13378netbsdelf*-gnu) 13379 version_type=linux 13380 need_lib_prefix=no 13381 need_version=no 13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13383 soname_spec='${libname}${release}${shared_ext}$major' 13384 shlibpath_var=LD_LIBRARY_PATH 13385 shlibpath_overrides_runpath=no 13386 hardcode_into_libs=yes 13387 dynamic_linker='NetBSD ld.elf_so' 13388 ;; 13389 13390netbsd*) 13391 version_type=sunos 13392 need_lib_prefix=no 13393 need_version=no 13394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13395 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13397 dynamic_linker='NetBSD (a.out) ld.so' 13398 else 13399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13400 soname_spec='$libname$release$shared_ext$major' 13401 dynamic_linker='NetBSD ld.elf_so' 13402 fi 13403 shlibpath_var=LD_LIBRARY_PATH 13404 shlibpath_overrides_runpath=yes 13405 hardcode_into_libs=yes 13406 ;; 13407 13408newsos6) 13409 version_type=linux # correct to gnu/linux during the next big refactor 13410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13411 shlibpath_var=LD_LIBRARY_PATH 13412 shlibpath_overrides_runpath=yes 13413 ;; 13414 13415*nto* | *qnx*) 13416 version_type=qnx 13417 need_lib_prefix=no 13418 need_version=no 13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13420 soname_spec='$libname$release$shared_ext$major' 13421 shlibpath_var=LD_LIBRARY_PATH 13422 shlibpath_overrides_runpath=no 13423 hardcode_into_libs=yes 13424 dynamic_linker='ldqnx.so' 13425 ;; 13426 13427openbsd* | bitrig*) 13428 version_type=sunos 13429 sys_lib_dlsearch_path_spec=/usr/lib 13430 need_lib_prefix=no 13431 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13432 need_version=no 13433 else 13434 need_version=yes 13435 fi 13436 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13438 shlibpath_var=LD_LIBRARY_PATH 13439 shlibpath_overrides_runpath=yes 13440 ;; 13441 13442os2*) 13443 libname_spec='$name' 13444 version_type=windows 13445 shrext_cmds=.dll 13446 need_version=no 13447 need_lib_prefix=no 13448 # OS/2 can only load a DLL with a base name of 8 characters or less. 13449 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13450 v=$($ECHO $release$versuffix | tr -d .-); 13451 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13452 $ECHO $n$v`$shared_ext' 13453 library_names_spec='${libname}_dll.$libext' 13454 dynamic_linker='OS/2 ld.exe' 13455 shlibpath_var=BEGINLIBPATH 13456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13458 postinstall_cmds='base_file=`basename \$file`~ 13459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13460 dldir=$destdir/`dirname \$dlpath`~ 13461 test -d \$dldir || mkdir -p \$dldir~ 13462 $install_prog $dir/$dlname \$dldir/$dlname~ 13463 chmod a+x \$dldir/$dlname~ 13464 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13465 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13466 fi' 13467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13468 dlpath=$dir/\$dldll~ 13469 $RM \$dlpath' 13470 ;; 13471 13472osf3* | osf4* | osf5*) 13473 version_type=osf 13474 need_lib_prefix=no 13475 need_version=no 13476 soname_spec='$libname$release$shared_ext$major' 13477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13478 shlibpath_var=LD_LIBRARY_PATH 13479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13481 ;; 13482 13483rdos*) 13484 dynamic_linker=no 13485 ;; 13486 13487solaris*) 13488 version_type=linux # correct to gnu/linux during the next big refactor 13489 need_lib_prefix=no 13490 need_version=no 13491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13492 soname_spec='$libname$release$shared_ext$major' 13493 shlibpath_var=LD_LIBRARY_PATH 13494 shlibpath_overrides_runpath=yes 13495 hardcode_into_libs=yes 13496 # ldd complains unless libraries are executable 13497 postinstall_cmds='chmod +x $lib' 13498 ;; 13499 13500sunos4*) 13501 version_type=sunos 13502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13504 shlibpath_var=LD_LIBRARY_PATH 13505 shlibpath_overrides_runpath=yes 13506 if test yes = "$with_gnu_ld"; then 13507 need_lib_prefix=no 13508 fi 13509 need_version=yes 13510 ;; 13511 13512sysv4 | sysv4.3*) 13513 version_type=linux # correct to gnu/linux during the next big refactor 13514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13515 soname_spec='$libname$release$shared_ext$major' 13516 shlibpath_var=LD_LIBRARY_PATH 13517 case $host_vendor in 13518 sni) 13519 shlibpath_overrides_runpath=no 13520 need_lib_prefix=no 13521 runpath_var=LD_RUN_PATH 13522 ;; 13523 siemens) 13524 need_lib_prefix=no 13525 ;; 13526 motorola) 13527 need_lib_prefix=no 13528 need_version=no 13529 shlibpath_overrides_runpath=no 13530 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13531 ;; 13532 esac 13533 ;; 13534 13535sysv4*MP*) 13536 if test -d /usr/nec; then 13537 version_type=linux # correct to gnu/linux during the next big refactor 13538 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13539 soname_spec='$libname$shared_ext.$major' 13540 shlibpath_var=LD_LIBRARY_PATH 13541 fi 13542 ;; 13543 13544sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13545 version_type=sco 13546 need_lib_prefix=no 13547 need_version=no 13548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13549 soname_spec='$libname$release$shared_ext$major' 13550 shlibpath_var=LD_LIBRARY_PATH 13551 shlibpath_overrides_runpath=yes 13552 hardcode_into_libs=yes 13553 if test yes = "$with_gnu_ld"; then 13554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13555 else 13556 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13557 case $host_os in 13558 sco3.2v5*) 13559 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13560 ;; 13561 esac 13562 fi 13563 sys_lib_dlsearch_path_spec='/usr/lib' 13564 ;; 13565 13566tpf*) 13567 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13568 version_type=linux # correct to gnu/linux during the next big refactor 13569 need_lib_prefix=no 13570 need_version=no 13571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13572 shlibpath_var=LD_LIBRARY_PATH 13573 shlibpath_overrides_runpath=no 13574 hardcode_into_libs=yes 13575 ;; 13576 13577uts4*) 13578 version_type=linux # correct to gnu/linux during the next big refactor 13579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13580 soname_spec='$libname$release$shared_ext$major' 13581 shlibpath_var=LD_LIBRARY_PATH 13582 ;; 13583 13584*) 13585 dynamic_linker=no 13586 ;; 13587esac 13588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13589$as_echo "$dynamic_linker" >&6; } 13590test no = "$dynamic_linker" && can_build_shared=no 13591 13592variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13593if test yes = "$GCC"; then 13594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13595fi 13596 13597if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13598 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13599fi 13600 13601if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13602 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13603fi 13604 13605# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13606configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13607 13608# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13609func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13610 13611# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13612configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13711$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13712hardcode_action= 13713if test -n "$hardcode_libdir_flag_spec" || 13714 test -n "$runpath_var" || 13715 test yes = "$hardcode_automatic"; then 13716 13717 # We can hardcode non-existent directories. 13718 if test no != "$hardcode_direct" && 13719 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13720 # have to relink, otherwise we might link with an installed library 13721 # when we should be linking with a yet-to-be-installed one 13722 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13723 test no != "$hardcode_minus_L"; then 13724 # Linking always hardcodes the temporary library directory. 13725 hardcode_action=relink 13726 else 13727 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13728 hardcode_action=immediate 13729 fi 13730else 13731 # We cannot hardcode anything, or else we can only hardcode existing 13732 # directories. 13733 hardcode_action=unsupported 13734fi 13735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13736$as_echo "$hardcode_action" >&6; } 13737 13738if test relink = "$hardcode_action" || 13739 test yes = "$inherit_rpath"; then 13740 # Fast installation is not supported 13741 enable_fast_install=no 13742elif test yes = "$shlibpath_overrides_runpath" || 13743 test no = "$enable_shared"; then 13744 # Fast installation is not necessary 13745 enable_fast_install=needless 13746fi 13747 13748 13749 13750 13751 13752 13753 if test yes != "$enable_dlopen"; then 13754 enable_dlopen=unknown 13755 enable_dlopen_self=unknown 13756 enable_dlopen_self_static=unknown 13757else 13758 lt_cv_dlopen=no 13759 lt_cv_dlopen_libs= 13760 13761 case $host_os in 13762 beos*) 13763 lt_cv_dlopen=load_add_on 13764 lt_cv_dlopen_libs= 13765 lt_cv_dlopen_self=yes 13766 ;; 13767 13768 mingw* | pw32* | cegcc*) 13769 lt_cv_dlopen=LoadLibrary 13770 lt_cv_dlopen_libs= 13771 ;; 13772 13773 cygwin*) 13774 lt_cv_dlopen=dlopen 13775 lt_cv_dlopen_libs= 13776 ;; 13777 13778 darwin*) 13779 # if libdl is installed we need to link against it 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13781$as_echo_n "checking for dlopen in -ldl... " >&6; } 13782if ${ac_cv_lib_dl_dlopen+:} false; then : 13783 $as_echo_n "(cached) " >&6 13784else 13785 ac_check_lib_save_LIBS=$LIBS 13786LIBS="-ldl $LIBS" 13787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13788/* end confdefs.h. */ 13789 13790/* Override any GCC internal prototype to avoid an error. 13791 Use char because int might match the return type of a GCC 13792 builtin and then its argument prototype would still apply. */ 13793#ifdef __cplusplus 13794extern "C" 13795#endif 13796char dlopen (); 13797int 13798main () 13799{ 13800return dlopen (); 13801 ; 13802 return 0; 13803} 13804_ACEOF 13805if ac_fn_c_try_link "$LINENO"; then : 13806 ac_cv_lib_dl_dlopen=yes 13807else 13808 ac_cv_lib_dl_dlopen=no 13809fi 13810rm -f core conftest.err conftest.$ac_objext \ 13811 conftest$ac_exeext conftest.$ac_ext 13812LIBS=$ac_check_lib_save_LIBS 13813fi 13814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13815$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13816if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13817 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13818else 13819 13820 lt_cv_dlopen=dyld 13821 lt_cv_dlopen_libs= 13822 lt_cv_dlopen_self=yes 13823 13824fi 13825 13826 ;; 13827 13828 tpf*) 13829 # Don't try to run any link tests for TPF. We know it's impossible 13830 # because TPF is a cross-compiler, and we know how we open DSOs. 13831 lt_cv_dlopen=dlopen 13832 lt_cv_dlopen_libs= 13833 lt_cv_dlopen_self=no 13834 ;; 13835 13836 *) 13837 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13838if test "x$ac_cv_func_shl_load" = xyes; then : 13839 lt_cv_dlopen=shl_load 13840else 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13842$as_echo_n "checking for shl_load in -ldld... " >&6; } 13843if ${ac_cv_lib_dld_shl_load+:} false; then : 13844 $as_echo_n "(cached) " >&6 13845else 13846 ac_check_lib_save_LIBS=$LIBS 13847LIBS="-ldld $LIBS" 13848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13849/* end confdefs.h. */ 13850 13851/* Override any GCC internal prototype to avoid an error. 13852 Use char because int might match the return type of a GCC 13853 builtin and then its argument prototype would still apply. */ 13854#ifdef __cplusplus 13855extern "C" 13856#endif 13857char shl_load (); 13858int 13859main () 13860{ 13861return shl_load (); 13862 ; 13863 return 0; 13864} 13865_ACEOF 13866if ac_fn_c_try_link "$LINENO"; then : 13867 ac_cv_lib_dld_shl_load=yes 13868else 13869 ac_cv_lib_dld_shl_load=no 13870fi 13871rm -f core conftest.err conftest.$ac_objext \ 13872 conftest$ac_exeext conftest.$ac_ext 13873LIBS=$ac_check_lib_save_LIBS 13874fi 13875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13876$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13877if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13878 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13879else 13880 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13881if test "x$ac_cv_func_dlopen" = xyes; then : 13882 lt_cv_dlopen=dlopen 13883else 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13885$as_echo_n "checking for dlopen in -ldl... " >&6; } 13886if ${ac_cv_lib_dl_dlopen+:} false; then : 13887 $as_echo_n "(cached) " >&6 13888else 13889 ac_check_lib_save_LIBS=$LIBS 13890LIBS="-ldl $LIBS" 13891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13892/* end confdefs.h. */ 13893 13894/* Override any GCC internal prototype to avoid an error. 13895 Use char because int might match the return type of a GCC 13896 builtin and then its argument prototype would still apply. */ 13897#ifdef __cplusplus 13898extern "C" 13899#endif 13900char dlopen (); 13901int 13902main () 13903{ 13904return dlopen (); 13905 ; 13906 return 0; 13907} 13908_ACEOF 13909if ac_fn_c_try_link "$LINENO"; then : 13910 ac_cv_lib_dl_dlopen=yes 13911else 13912 ac_cv_lib_dl_dlopen=no 13913fi 13914rm -f core conftest.err conftest.$ac_objext \ 13915 conftest$ac_exeext conftest.$ac_ext 13916LIBS=$ac_check_lib_save_LIBS 13917fi 13918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13919$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13920if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13921 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13922else 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13924$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13925if ${ac_cv_lib_svld_dlopen+:} false; then : 13926 $as_echo_n "(cached) " >&6 13927else 13928 ac_check_lib_save_LIBS=$LIBS 13929LIBS="-lsvld $LIBS" 13930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13931/* end confdefs.h. */ 13932 13933/* Override any GCC internal prototype to avoid an error. 13934 Use char because int might match the return type of a GCC 13935 builtin and then its argument prototype would still apply. */ 13936#ifdef __cplusplus 13937extern "C" 13938#endif 13939char dlopen (); 13940int 13941main () 13942{ 13943return dlopen (); 13944 ; 13945 return 0; 13946} 13947_ACEOF 13948if ac_fn_c_try_link "$LINENO"; then : 13949 ac_cv_lib_svld_dlopen=yes 13950else 13951 ac_cv_lib_svld_dlopen=no 13952fi 13953rm -f core conftest.err conftest.$ac_objext \ 13954 conftest$ac_exeext conftest.$ac_ext 13955LIBS=$ac_check_lib_save_LIBS 13956fi 13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13958$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13959if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13960 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13961else 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13963$as_echo_n "checking for dld_link in -ldld... " >&6; } 13964if ${ac_cv_lib_dld_dld_link+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 ac_check_lib_save_LIBS=$LIBS 13968LIBS="-ldld $LIBS" 13969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970/* end confdefs.h. */ 13971 13972/* Override any GCC internal prototype to avoid an error. 13973 Use char because int might match the return type of a GCC 13974 builtin and then its argument prototype would still apply. */ 13975#ifdef __cplusplus 13976extern "C" 13977#endif 13978char dld_link (); 13979int 13980main () 13981{ 13982return dld_link (); 13983 ; 13984 return 0; 13985} 13986_ACEOF 13987if ac_fn_c_try_link "$LINENO"; then : 13988 ac_cv_lib_dld_dld_link=yes 13989else 13990 ac_cv_lib_dld_dld_link=no 13991fi 13992rm -f core conftest.err conftest.$ac_objext \ 13993 conftest$ac_exeext conftest.$ac_ext 13994LIBS=$ac_check_lib_save_LIBS 13995fi 13996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13997$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13998if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13999 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14000fi 14001 14002 14003fi 14004 14005 14006fi 14007 14008 14009fi 14010 14011 14012fi 14013 14014 14015fi 14016 14017 ;; 14018 esac 14019 14020 if test no = "$lt_cv_dlopen"; then 14021 enable_dlopen=no 14022 else 14023 enable_dlopen=yes 14024 fi 14025 14026 case $lt_cv_dlopen in 14027 dlopen) 14028 save_CPPFLAGS=$CPPFLAGS 14029 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14030 14031 save_LDFLAGS=$LDFLAGS 14032 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14033 14034 save_LIBS=$LIBS 14035 LIBS="$lt_cv_dlopen_libs $LIBS" 14036 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14038$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14039if ${lt_cv_dlopen_self+:} false; then : 14040 $as_echo_n "(cached) " >&6 14041else 14042 if test yes = "$cross_compiling"; then : 14043 lt_cv_dlopen_self=cross 14044else 14045 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14046 lt_status=$lt_dlunknown 14047 cat > conftest.$ac_ext <<_LT_EOF 14048#line $LINENO "configure" 14049#include "confdefs.h" 14050 14051#if HAVE_DLFCN_H 14052#include <dlfcn.h> 14053#endif 14054 14055#include <stdio.h> 14056 14057#ifdef RTLD_GLOBAL 14058# define LT_DLGLOBAL RTLD_GLOBAL 14059#else 14060# ifdef DL_GLOBAL 14061# define LT_DLGLOBAL DL_GLOBAL 14062# else 14063# define LT_DLGLOBAL 0 14064# endif 14065#endif 14066 14067/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14068 find out it does not work in some platform. */ 14069#ifndef LT_DLLAZY_OR_NOW 14070# ifdef RTLD_LAZY 14071# define LT_DLLAZY_OR_NOW RTLD_LAZY 14072# else 14073# ifdef DL_LAZY 14074# define LT_DLLAZY_OR_NOW DL_LAZY 14075# else 14076# ifdef RTLD_NOW 14077# define LT_DLLAZY_OR_NOW RTLD_NOW 14078# else 14079# ifdef DL_NOW 14080# define LT_DLLAZY_OR_NOW DL_NOW 14081# else 14082# define LT_DLLAZY_OR_NOW 0 14083# endif 14084# endif 14085# endif 14086# endif 14087#endif 14088 14089/* When -fvisibility=hidden is used, assume the code has been annotated 14090 correspondingly for the symbols needed. */ 14091#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14092int fnord () __attribute__((visibility("default"))); 14093#endif 14094 14095int fnord () { return 42; } 14096int main () 14097{ 14098 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14099 int status = $lt_dlunknown; 14100 14101 if (self) 14102 { 14103 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14104 else 14105 { 14106 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14107 else puts (dlerror ()); 14108 } 14109 /* dlclose (self); */ 14110 } 14111 else 14112 puts (dlerror ()); 14113 14114 return status; 14115} 14116_LT_EOF 14117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14118 (eval $ac_link) 2>&5 14119 ac_status=$? 14120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14121 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14122 (./conftest; exit; ) >&5 2>/dev/null 14123 lt_status=$? 14124 case x$lt_status in 14125 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14126 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14127 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14128 esac 14129 else : 14130 # compilation failed 14131 lt_cv_dlopen_self=no 14132 fi 14133fi 14134rm -fr conftest* 14135 14136 14137fi 14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14139$as_echo "$lt_cv_dlopen_self" >&6; } 14140 14141 if test yes = "$lt_cv_dlopen_self"; then 14142 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14144$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14145if ${lt_cv_dlopen_self_static+:} false; then : 14146 $as_echo_n "(cached) " >&6 14147else 14148 if test yes = "$cross_compiling"; then : 14149 lt_cv_dlopen_self_static=cross 14150else 14151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14152 lt_status=$lt_dlunknown 14153 cat > conftest.$ac_ext <<_LT_EOF 14154#line $LINENO "configure" 14155#include "confdefs.h" 14156 14157#if HAVE_DLFCN_H 14158#include <dlfcn.h> 14159#endif 14160 14161#include <stdio.h> 14162 14163#ifdef RTLD_GLOBAL 14164# define LT_DLGLOBAL RTLD_GLOBAL 14165#else 14166# ifdef DL_GLOBAL 14167# define LT_DLGLOBAL DL_GLOBAL 14168# else 14169# define LT_DLGLOBAL 0 14170# endif 14171#endif 14172 14173/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14174 find out it does not work in some platform. */ 14175#ifndef LT_DLLAZY_OR_NOW 14176# ifdef RTLD_LAZY 14177# define LT_DLLAZY_OR_NOW RTLD_LAZY 14178# else 14179# ifdef DL_LAZY 14180# define LT_DLLAZY_OR_NOW DL_LAZY 14181# else 14182# ifdef RTLD_NOW 14183# define LT_DLLAZY_OR_NOW RTLD_NOW 14184# else 14185# ifdef DL_NOW 14186# define LT_DLLAZY_OR_NOW DL_NOW 14187# else 14188# define LT_DLLAZY_OR_NOW 0 14189# endif 14190# endif 14191# endif 14192# endif 14193#endif 14194 14195/* When -fvisibility=hidden is used, assume the code has been annotated 14196 correspondingly for the symbols needed. */ 14197#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14198int fnord () __attribute__((visibility("default"))); 14199#endif 14200 14201int fnord () { return 42; } 14202int main () 14203{ 14204 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14205 int status = $lt_dlunknown; 14206 14207 if (self) 14208 { 14209 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14210 else 14211 { 14212 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14213 else puts (dlerror ()); 14214 } 14215 /* dlclose (self); */ 14216 } 14217 else 14218 puts (dlerror ()); 14219 14220 return status; 14221} 14222_LT_EOF 14223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14224 (eval $ac_link) 2>&5 14225 ac_status=$? 14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14227 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14228 (./conftest; exit; ) >&5 2>/dev/null 14229 lt_status=$? 14230 case x$lt_status in 14231 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14232 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14233 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14234 esac 14235 else : 14236 # compilation failed 14237 lt_cv_dlopen_self_static=no 14238 fi 14239fi 14240rm -fr conftest* 14241 14242 14243fi 14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14245$as_echo "$lt_cv_dlopen_self_static" >&6; } 14246 fi 14247 14248 CPPFLAGS=$save_CPPFLAGS 14249 LDFLAGS=$save_LDFLAGS 14250 LIBS=$save_LIBS 14251 ;; 14252 esac 14253 14254 case $lt_cv_dlopen_self in 14255 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14256 *) enable_dlopen_self=unknown ;; 14257 esac 14258 14259 case $lt_cv_dlopen_self_static in 14260 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14261 *) enable_dlopen_self_static=unknown ;; 14262 esac 14263fi 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281striplib= 14282old_striplib= 14283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14284$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14285if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14287 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14289$as_echo "yes" >&6; } 14290else 14291# FIXME - insert some real tests, host_os isn't really good enough 14292 case $host_os in 14293 darwin*) 14294 if test -n "$STRIP"; then 14295 striplib="$STRIP -x" 14296 old_striplib="$STRIP -S" 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14298$as_echo "yes" >&6; } 14299 else 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14301$as_echo "no" >&6; } 14302 fi 14303 ;; 14304 *) 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14306$as_echo "no" >&6; } 14307 ;; 14308 esac 14309fi 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 # Report what library types will actually be built 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14324$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14326$as_echo "$can_build_shared" >&6; } 14327 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14329$as_echo_n "checking whether to build shared libraries... " >&6; } 14330 test no = "$can_build_shared" && enable_shared=no 14331 14332 # On AIX, shared libraries and static libraries use the same namespace, and 14333 # are all built from PIC. 14334 case $host_os in 14335 aix3*) 14336 test yes = "$enable_shared" && enable_static=no 14337 if test -n "$RANLIB"; then 14338 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14339 postinstall_cmds='$RANLIB $lib' 14340 fi 14341 ;; 14342 14343 aix[4-9]*) 14344 if test ia64 != "$host_cpu"; then 14345 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14346 yes,aix,yes) ;; # shared object as lib.so file only 14347 yes,svr4,*) ;; # shared object as lib.so archive member only 14348 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14349 esac 14350 fi 14351 ;; 14352 esac 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14354$as_echo "$enable_shared" >&6; } 14355 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14357$as_echo_n "checking whether to build static libraries... " >&6; } 14358 # Make sure either enable_shared or enable_static is yes. 14359 test yes = "$enable_shared" || enable_static=yes 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14361$as_echo "$enable_static" >&6; } 14362 14363 14364 14365 14366fi 14367ac_ext=c 14368ac_cpp='$CPP $CPPFLAGS' 14369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14371ac_compiler_gnu=$ac_cv_c_compiler_gnu 14372 14373CC=$lt_save_CC 14374 14375 if test -n "$CXX" && ( test no != "$CXX" && 14376 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 14377 (test g++ != "$CXX"))); then 14378 ac_ext=cpp 14379ac_cpp='$CXXCPP $CPPFLAGS' 14380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14384$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 14385if test -z "$CXXCPP"; then 14386 if ${ac_cv_prog_CXXCPP+:} false; then : 14387 $as_echo_n "(cached) " >&6 14388else 14389 # Double quotes because CXXCPP needs to be expanded 14390 for CXXCPP in "$CXX -E" "/lib/cpp" 14391 do 14392 ac_preproc_ok=false 14393for ac_cxx_preproc_warn_flag in '' yes 14394do 14395 # Use a header file that comes with gcc, so configuring glibc 14396 # with a fresh cross-compiler works. 14397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14398 # <limits.h> exists even on freestanding compilers. 14399 # On the NeXT, cc -E runs the code through the compiler's parser, 14400 # not just through cpp. "Syntax error" is here to catch this case. 14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14402/* end confdefs.h. */ 14403#ifdef __STDC__ 14404# include <limits.h> 14405#else 14406# include <assert.h> 14407#endif 14408 Syntax error 14409_ACEOF 14410if ac_fn_cxx_try_cpp "$LINENO"; then : 14411 14412else 14413 # Broken: fails on valid input. 14414continue 14415fi 14416rm -f conftest.err conftest.i conftest.$ac_ext 14417 14418 # OK, works on sane cases. Now check whether nonexistent headers 14419 # can be detected and how. 14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14421/* end confdefs.h. */ 14422#include <ac_nonexistent.h> 14423_ACEOF 14424if ac_fn_cxx_try_cpp "$LINENO"; then : 14425 # Broken: success on invalid input. 14426continue 14427else 14428 # Passes both tests. 14429ac_preproc_ok=: 14430break 14431fi 14432rm -f conftest.err conftest.i conftest.$ac_ext 14433 14434done 14435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14436rm -f conftest.i conftest.err conftest.$ac_ext 14437if $ac_preproc_ok; then : 14438 break 14439fi 14440 14441 done 14442 ac_cv_prog_CXXCPP=$CXXCPP 14443 14444fi 14445 CXXCPP=$ac_cv_prog_CXXCPP 14446else 14447 ac_cv_prog_CXXCPP=$CXXCPP 14448fi 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14450$as_echo "$CXXCPP" >&6; } 14451ac_preproc_ok=false 14452for ac_cxx_preproc_warn_flag in '' yes 14453do 14454 # Use a header file that comes with gcc, so configuring glibc 14455 # with a fresh cross-compiler works. 14456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14457 # <limits.h> exists even on freestanding compilers. 14458 # On the NeXT, cc -E runs the code through the compiler's parser, 14459 # not just through cpp. "Syntax error" is here to catch this case. 14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14461/* end confdefs.h. */ 14462#ifdef __STDC__ 14463# include <limits.h> 14464#else 14465# include <assert.h> 14466#endif 14467 Syntax error 14468_ACEOF 14469if ac_fn_cxx_try_cpp "$LINENO"; then : 14470 14471else 14472 # Broken: fails on valid input. 14473continue 14474fi 14475rm -f conftest.err conftest.i conftest.$ac_ext 14476 14477 # OK, works on sane cases. Now check whether nonexistent headers 14478 # can be detected and how. 14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14480/* end confdefs.h. */ 14481#include <ac_nonexistent.h> 14482_ACEOF 14483if ac_fn_cxx_try_cpp "$LINENO"; then : 14484 # Broken: success on invalid input. 14485continue 14486else 14487 # Passes both tests. 14488ac_preproc_ok=: 14489break 14490fi 14491rm -f conftest.err conftest.i conftest.$ac_ext 14492 14493done 14494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14495rm -f conftest.i conftest.err conftest.$ac_ext 14496if $ac_preproc_ok; then : 14497 14498else 14499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14501as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14502See \`config.log' for more details" "$LINENO" 5; } 14503fi 14504 14505ac_ext=c 14506ac_cpp='$CPP $CPPFLAGS' 14507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14509ac_compiler_gnu=$ac_cv_c_compiler_gnu 14510 14511else 14512 _lt_caught_CXX_error=yes 14513fi 14514 14515ac_ext=cpp 14516ac_cpp='$CXXCPP $CPPFLAGS' 14517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14520 14521archive_cmds_need_lc_CXX=no 14522allow_undefined_flag_CXX= 14523always_export_symbols_CXX=no 14524archive_expsym_cmds_CXX= 14525compiler_needs_object_CXX=no 14526export_dynamic_flag_spec_CXX= 14527hardcode_direct_CXX=no 14528hardcode_direct_absolute_CXX=no 14529hardcode_libdir_flag_spec_CXX= 14530hardcode_libdir_separator_CXX= 14531hardcode_minus_L_CXX=no 14532hardcode_shlibpath_var_CXX=unsupported 14533hardcode_automatic_CXX=no 14534inherit_rpath_CXX=no 14535module_cmds_CXX= 14536module_expsym_cmds_CXX= 14537link_all_deplibs_CXX=unknown 14538old_archive_cmds_CXX=$old_archive_cmds 14539reload_flag_CXX=$reload_flag 14540reload_cmds_CXX=$reload_cmds 14541no_undefined_flag_CXX= 14542whole_archive_flag_spec_CXX= 14543enable_shared_with_static_runtimes_CXX=no 14544 14545# Source file extension for C++ test sources. 14546ac_ext=cpp 14547 14548# Object file extension for compiled C++ test sources. 14549objext=o 14550objext_CXX=$objext 14551 14552# No sense in running all these tests if we already determined that 14553# the CXX compiler isn't working. Some variables (like enable_shared) 14554# are currently assumed to apply to all compilers on this platform, 14555# and will be corrupted by setting them based on a non-working compiler. 14556if test yes != "$_lt_caught_CXX_error"; then 14557 # Code to be used in simple compile tests 14558 lt_simple_compile_test_code="int some_variable = 0;" 14559 14560 # Code to be used in simple link tests 14561 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14562 14563 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14564 14565 14566 14567 14568 14569 14570# If no C compiler was specified, use CC. 14571LTCC=${LTCC-"$CC"} 14572 14573# If no C compiler flags were specified, use CFLAGS. 14574LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14575 14576# Allow CC to be a program name with arguments. 14577compiler=$CC 14578 14579 14580 # save warnings/boilerplate of simple test code 14581 ac_outfile=conftest.$ac_objext 14582echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14583eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14584_lt_compiler_boilerplate=`cat conftest.err` 14585$RM conftest* 14586 14587 ac_outfile=conftest.$ac_objext 14588echo "$lt_simple_link_test_code" >conftest.$ac_ext 14589eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14590_lt_linker_boilerplate=`cat conftest.err` 14591$RM -r conftest* 14592 14593 14594 # Allow CC to be a program name with arguments. 14595 lt_save_CC=$CC 14596 lt_save_CFLAGS=$CFLAGS 14597 lt_save_LD=$LD 14598 lt_save_GCC=$GCC 14599 GCC=$GXX 14600 lt_save_with_gnu_ld=$with_gnu_ld 14601 lt_save_path_LD=$lt_cv_path_LD 14602 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14603 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14604 else 14605 $as_unset lt_cv_prog_gnu_ld 14606 fi 14607 if test -n "${lt_cv_path_LDCXX+set}"; then 14608 lt_cv_path_LD=$lt_cv_path_LDCXX 14609 else 14610 $as_unset lt_cv_path_LD 14611 fi 14612 test -z "${LDCXX+set}" || LD=$LDCXX 14613 CC=${CXX-"c++"} 14614 CFLAGS=$CXXFLAGS 14615 compiler=$CC 14616 compiler_CXX=$CC 14617 func_cc_basename $compiler 14618cc_basename=$func_cc_basename_result 14619 14620 14621 if test -n "$compiler"; then 14622 # We don't want -fno-exception when compiling C++ code, so set the 14623 # no_builtin_flag separately 14624 if test yes = "$GXX"; then 14625 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14626 else 14627 lt_prog_compiler_no_builtin_flag_CXX= 14628 fi 14629 14630 if test yes = "$GXX"; then 14631 # Set up default GNU C++ configuration 14632 14633 14634 14635# Check whether --with-gnu-ld was given. 14636if test "${with_gnu_ld+set}" = set; then : 14637 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14638else 14639 with_gnu_ld=no 14640fi 14641 14642ac_prog=ld 14643if test yes = "$GCC"; then 14644 # Check if gcc -print-prog-name=ld gives a path. 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14646$as_echo_n "checking for ld used by $CC... " >&6; } 14647 case $host in 14648 *-*-mingw*) 14649 # gcc leaves a trailing carriage return, which upsets mingw 14650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14651 *) 14652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14653 esac 14654 case $ac_prog in 14655 # Accept absolute paths. 14656 [\\/]* | ?:[\\/]*) 14657 re_direlt='/[^/][^/]*/\.\./' 14658 # Canonicalize the pathname of ld 14659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14662 done 14663 test -z "$LD" && LD=$ac_prog 14664 ;; 14665 "") 14666 # If it fails, then pretend we aren't using GCC. 14667 ac_prog=ld 14668 ;; 14669 *) 14670 # If it is relative, then search for the first ld in PATH. 14671 with_gnu_ld=unknown 14672 ;; 14673 esac 14674elif test yes = "$with_gnu_ld"; then 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14676$as_echo_n "checking for GNU ld... " >&6; } 14677else 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14679$as_echo_n "checking for non-GNU ld... " >&6; } 14680fi 14681if ${lt_cv_path_LD+:} false; then : 14682 $as_echo_n "(cached) " >&6 14683else 14684 if test -z "$LD"; then 14685 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14686 for ac_dir in $PATH; do 14687 IFS=$lt_save_ifs 14688 test -z "$ac_dir" && ac_dir=. 14689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14690 lt_cv_path_LD=$ac_dir/$ac_prog 14691 # Check to see if the program is GNU ld. I'd rather use --version, 14692 # but apparently some variants of GNU ld only accept -v. 14693 # Break only if it was the GNU/non-GNU ld that we prefer. 14694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14695 *GNU* | *'with BFD'*) 14696 test no != "$with_gnu_ld" && break 14697 ;; 14698 *) 14699 test yes != "$with_gnu_ld" && break 14700 ;; 14701 esac 14702 fi 14703 done 14704 IFS=$lt_save_ifs 14705else 14706 lt_cv_path_LD=$LD # Let the user override the test with a path. 14707fi 14708fi 14709 14710LD=$lt_cv_path_LD 14711if test -n "$LD"; then 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14713$as_echo "$LD" >&6; } 14714else 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14716$as_echo "no" >&6; } 14717fi 14718test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14720$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14721if ${lt_cv_prog_gnu_ld+:} false; then : 14722 $as_echo_n "(cached) " >&6 14723else 14724 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14725case `$LD -v 2>&1 </dev/null` in 14726*GNU* | *'with BFD'*) 14727 lt_cv_prog_gnu_ld=yes 14728 ;; 14729*) 14730 lt_cv_prog_gnu_ld=no 14731 ;; 14732esac 14733fi 14734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14735$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14736with_gnu_ld=$lt_cv_prog_gnu_ld 14737 14738 14739 14740 14741 14742 14743 14744 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14745 # archiving commands below assume that GNU ld is being used. 14746 if test yes = "$with_gnu_ld"; then 14747 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14748 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' 14749 14750 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14751 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14752 14753 # If archive_cmds runs LD, not CC, wlarc should be empty 14754 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14755 # investigate it a little bit more. (MM) 14756 wlarc='$wl' 14757 14758 # ancient GNU ld didn't support --whole-archive et. al. 14759 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14760 $GREP 'no-whole-archive' > /dev/null; then 14761 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14762 else 14763 whole_archive_flag_spec_CXX= 14764 fi 14765 else 14766 with_gnu_ld=no 14767 wlarc= 14768 14769 # A generic and very simple default shared library creation 14770 # command for GNU C++ for the case where it uses the native 14771 # linker, instead of GNU ld. If possible, this setting should 14772 # overridden to take advantage of the native linker features on 14773 # the platform it is being used on. 14774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14775 fi 14776 14777 # Commands to make compiler produce verbose output that lists 14778 # what "hidden" libraries, object files and flags are used when 14779 # linking a shared library. 14780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14781 14782 else 14783 GXX=no 14784 with_gnu_ld=no 14785 wlarc= 14786 fi 14787 14788 # PORTME: fill in a description of your system's C++ link characteristics 14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14790$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14791 ld_shlibs_CXX=yes 14792 case $host_os in 14793 aix3*) 14794 # FIXME: insert proper C++ library support 14795 ld_shlibs_CXX=no 14796 ;; 14797 aix[4-9]*) 14798 if test ia64 = "$host_cpu"; then 14799 # On IA64, the linker does run time linking by default, so we don't 14800 # have to do anything special. 14801 aix_use_runtimelinking=no 14802 exp_sym_flag='-Bexport' 14803 no_entry_flag= 14804 else 14805 aix_use_runtimelinking=no 14806 14807 # Test if we are trying to use run time linking or normal 14808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14809 # have runtime linking enabled, and use it for executables. 14810 # For shared libraries, we enable/disable runtime linking 14811 # depending on the kind of the shared library created - 14812 # when "with_aix_soname,aix_use_runtimelinking" is: 14813 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14814 # "aix,yes" lib.so shared, rtl:yes, for executables 14815 # lib.a static archive 14816 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14817 # lib.a(lib.so.V) shared, rtl:no, for executables 14818 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14819 # lib.a(lib.so.V) shared, rtl:no 14820 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14821 # lib.a static archive 14822 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14823 for ld_flag in $LDFLAGS; do 14824 case $ld_flag in 14825 *-brtl*) 14826 aix_use_runtimelinking=yes 14827 break 14828 ;; 14829 esac 14830 done 14831 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14832 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14833 # so we don't have lib.a shared libs to link our executables. 14834 # We have to force runtime linking in this case. 14835 aix_use_runtimelinking=yes 14836 LDFLAGS="$LDFLAGS -Wl,-brtl" 14837 fi 14838 ;; 14839 esac 14840 14841 exp_sym_flag='-bexport' 14842 no_entry_flag='-bnoentry' 14843 fi 14844 14845 # When large executables or shared objects are built, AIX ld can 14846 # have problems creating the table of contents. If linking a library 14847 # or program results in "error TOC overflow" add -mminimal-toc to 14848 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14849 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14850 14851 archive_cmds_CXX='' 14852 hardcode_direct_CXX=yes 14853 hardcode_direct_absolute_CXX=yes 14854 hardcode_libdir_separator_CXX=':' 14855 link_all_deplibs_CXX=yes 14856 file_list_spec_CXX='$wl-f,' 14857 case $with_aix_soname,$aix_use_runtimelinking in 14858 aix,*) ;; # no import file 14859 svr4,* | *,yes) # use import file 14860 # The Import File defines what to hardcode. 14861 hardcode_direct_CXX=no 14862 hardcode_direct_absolute_CXX=no 14863 ;; 14864 esac 14865 14866 if test yes = "$GXX"; then 14867 case $host_os in aix4.[012]|aix4.[012].*) 14868 # We only want to do this on AIX 4.2 and lower, the check 14869 # below for broken collect2 doesn't work under 4.3+ 14870 collect2name=`$CC -print-prog-name=collect2` 14871 if test -f "$collect2name" && 14872 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14873 then 14874 # We have reworked collect2 14875 : 14876 else 14877 # We have old collect2 14878 hardcode_direct_CXX=unsupported 14879 # It fails to find uninstalled libraries when the uninstalled 14880 # path is not listed in the libpath. Setting hardcode_minus_L 14881 # to unsupported forces relinking 14882 hardcode_minus_L_CXX=yes 14883 hardcode_libdir_flag_spec_CXX='-L$libdir' 14884 hardcode_libdir_separator_CXX= 14885 fi 14886 esac 14887 shared_flag='-shared' 14888 if test yes = "$aix_use_runtimelinking"; then 14889 shared_flag=$shared_flag' $wl-G' 14890 fi 14891 # Need to ensure runtime linking is disabled for the traditional 14892 # shared library, or the linker may eventually find shared libraries 14893 # /with/ Import File - we do not want to mix them. 14894 shared_flag_aix='-shared' 14895 shared_flag_svr4='-shared $wl-G' 14896 else 14897 # not using gcc 14898 if test ia64 = "$host_cpu"; then 14899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14900 # chokes on -Wl,-G. The following line is correct: 14901 shared_flag='-G' 14902 else 14903 if test yes = "$aix_use_runtimelinking"; then 14904 shared_flag='$wl-G' 14905 else 14906 shared_flag='$wl-bM:SRE' 14907 fi 14908 shared_flag_aix='$wl-bM:SRE' 14909 shared_flag_svr4='$wl-G' 14910 fi 14911 fi 14912 14913 export_dynamic_flag_spec_CXX='$wl-bexpall' 14914 # It seems that -bexpall does not export symbols beginning with 14915 # underscore (_), so it is better to generate a list of symbols to 14916 # export. 14917 always_export_symbols_CXX=yes 14918 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14919 # Warning - without using the other runtime loading flags (-brtl), 14920 # -berok will link without error, but may produce a broken library. 14921 # The "-G" linker flag allows undefined symbols. 14922 no_undefined_flag_CXX='-bernotok' 14923 # Determine the default libpath from the value encoded in an empty 14924 # executable. 14925 if test set = "${lt_cv_aix_libpath+set}"; then 14926 aix_libpath=$lt_cv_aix_libpath 14927else 14928 if ${lt_cv_aix_libpath__CXX+:} false; then : 14929 $as_echo_n "(cached) " >&6 14930else 14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14932/* end confdefs.h. */ 14933 14934int 14935main () 14936{ 14937 14938 ; 14939 return 0; 14940} 14941_ACEOF 14942if ac_fn_cxx_try_link "$LINENO"; then : 14943 14944 lt_aix_libpath_sed=' 14945 /Import File Strings/,/^$/ { 14946 /^0/ { 14947 s/^0 *\([^ ]*\) *$/\1/ 14948 p 14949 } 14950 }' 14951 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14952 # Check for a 64-bit object if we didn't find anything. 14953 if test -z "$lt_cv_aix_libpath__CXX"; then 14954 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14955 fi 14956fi 14957rm -f core conftest.err conftest.$ac_objext \ 14958 conftest$ac_exeext conftest.$ac_ext 14959 if test -z "$lt_cv_aix_libpath__CXX"; then 14960 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14961 fi 14962 14963fi 14964 14965 aix_libpath=$lt_cv_aix_libpath__CXX 14966fi 14967 14968 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14969 14970 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14971 else 14972 if test ia64 = "$host_cpu"; then 14973 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14974 allow_undefined_flag_CXX="-z nodefs" 14975 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" 14976 else 14977 # Determine the default libpath from the value encoded in an 14978 # empty executable. 14979 if test set = "${lt_cv_aix_libpath+set}"; then 14980 aix_libpath=$lt_cv_aix_libpath 14981else 14982 if ${lt_cv_aix_libpath__CXX+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14986/* end confdefs.h. */ 14987 14988int 14989main () 14990{ 14991 14992 ; 14993 return 0; 14994} 14995_ACEOF 14996if ac_fn_cxx_try_link "$LINENO"; then : 14997 14998 lt_aix_libpath_sed=' 14999 /Import File Strings/,/^$/ { 15000 /^0/ { 15001 s/^0 *\([^ ]*\) *$/\1/ 15002 p 15003 } 15004 }' 15005 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15006 # Check for a 64-bit object if we didn't find anything. 15007 if test -z "$lt_cv_aix_libpath__CXX"; then 15008 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15009 fi 15010fi 15011rm -f core conftest.err conftest.$ac_objext \ 15012 conftest$ac_exeext conftest.$ac_ext 15013 if test -z "$lt_cv_aix_libpath__CXX"; then 15014 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15015 fi 15016 15017fi 15018 15019 aix_libpath=$lt_cv_aix_libpath__CXX 15020fi 15021 15022 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15023 # Warning - without using the other run time loading flags, 15024 # -berok will link without error, but may produce a broken library. 15025 no_undefined_flag_CXX=' $wl-bernotok' 15026 allow_undefined_flag_CXX=' $wl-berok' 15027 if test yes = "$with_gnu_ld"; then 15028 # We only use this code for GNU lds that support --whole-archive. 15029 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15030 else 15031 # Exported symbols can be pulled into shared objects from archives 15032 whole_archive_flag_spec_CXX='$convenience' 15033 fi 15034 archive_cmds_need_lc_CXX=yes 15035 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15036 # -brtl affects multiple linker settings, -berok does not and is overridden later 15037 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15038 if test svr4 != "$with_aix_soname"; then 15039 # This is similar to how AIX traditionally builds its shared 15040 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 15041 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 15042 fi 15043 if test aix != "$with_aix_soname"; then 15044 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 15045 else 15046 # used by -dlpreopen to get the symbols 15047 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15048 fi 15049 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 15050 fi 15051 fi 15052 ;; 15053 15054 beos*) 15055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15056 allow_undefined_flag_CXX=unsupported 15057 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15058 # support --undefined. This deserves some investigation. FIXME 15059 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15060 else 15061 ld_shlibs_CXX=no 15062 fi 15063 ;; 15064 15065 chorus*) 15066 case $cc_basename in 15067 *) 15068 # FIXME: insert proper C++ library support 15069 ld_shlibs_CXX=no 15070 ;; 15071 esac 15072 ;; 15073 15074 cygwin* | mingw* | pw32* | cegcc*) 15075 case $GXX,$cc_basename in 15076 ,cl* | no,cl*) 15077 # Native MSVC 15078 # hardcode_libdir_flag_spec is actually meaningless, as there is 15079 # no search path for DLLs. 15080 hardcode_libdir_flag_spec_CXX=' ' 15081 allow_undefined_flag_CXX=unsupported 15082 always_export_symbols_CXX=yes 15083 file_list_spec_CXX='@' 15084 # Tell ltmain to make .lib files, not .a files. 15085 libext=lib 15086 # Tell ltmain to make .dll files, not .so files. 15087 shrext_cmds=.dll 15088 # FIXME: Setting linknames here is a bad hack. 15089 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15090 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15091 cp "$export_symbols" "$output_objdir/$soname.def"; 15092 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15093 else 15094 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15095 fi~ 15096 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15097 linknames=' 15098 # The linker will not automatically build a static lib if we build a DLL. 15099 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15100 enable_shared_with_static_runtimes_CXX=yes 15101 # Don't use ranlib 15102 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15103 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15104 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15105 case $lt_outputfile in 15106 *.exe|*.EXE) ;; 15107 *) 15108 lt_outputfile=$lt_outputfile.exe 15109 lt_tool_outputfile=$lt_tool_outputfile.exe 15110 ;; 15111 esac~ 15112 func_to_tool_file "$lt_outputfile"~ 15113 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15114 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15115 $RM "$lt_outputfile.manifest"; 15116 fi' 15117 ;; 15118 *) 15119 # g++ 15120 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15121 # as there is no search path for DLLs. 15122 hardcode_libdir_flag_spec_CXX='-L$libdir' 15123 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 15124 allow_undefined_flag_CXX=unsupported 15125 always_export_symbols_CXX=no 15126 enable_shared_with_static_runtimes_CXX=yes 15127 15128 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15129 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' 15130 # If the export-symbols file already is a .def file, use it as 15131 # is; otherwise, prepend EXPORTS... 15132 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15133 cp $export_symbols $output_objdir/$soname.def; 15134 else 15135 echo EXPORTS > $output_objdir/$soname.def; 15136 cat $export_symbols >> $output_objdir/$soname.def; 15137 fi~ 15138 $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' 15139 else 15140 ld_shlibs_CXX=no 15141 fi 15142 ;; 15143 esac 15144 ;; 15145 darwin* | rhapsody*) 15146 15147 15148 archive_cmds_need_lc_CXX=no 15149 hardcode_direct_CXX=no 15150 hardcode_automatic_CXX=yes 15151 hardcode_shlibpath_var_CXX=unsupported 15152 if test yes = "$lt_cv_ld_force_load"; then 15153 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\"`' 15154 15155 else 15156 whole_archive_flag_spec_CXX='' 15157 fi 15158 link_all_deplibs_CXX=yes 15159 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 15160 case $cc_basename in 15161 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15162 *) _lt_dar_can_shared=$GCC ;; 15163 esac 15164 if test yes = "$_lt_dar_can_shared"; then 15165 output_verbose_link_cmd=func_echo_all 15166 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" 15167 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15168 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" 15169 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" 15170 if test yes != "$lt_cv_apple_cc_single_mod"; then 15171 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" 15172 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" 15173 fi 15174 15175 else 15176 ld_shlibs_CXX=no 15177 fi 15178 15179 ;; 15180 15181 os2*) 15182 hardcode_libdir_flag_spec_CXX='-L$libdir' 15183 hardcode_minus_L_CXX=yes 15184 allow_undefined_flag_CXX=unsupported 15185 shrext_cmds=.dll 15186 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15187 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15188 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15189 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15190 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15191 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15192 emximp -o $lib $output_objdir/$libname.def' 15193 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15194 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15195 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15196 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15197 prefix_cmds="$SED"~ 15198 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15199 prefix_cmds="$prefix_cmds -e 1d"; 15200 fi~ 15201 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15202 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15203 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15204 emximp -o $lib $output_objdir/$libname.def' 15205 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15206 enable_shared_with_static_runtimes_CXX=yes 15207 ;; 15208 15209 dgux*) 15210 case $cc_basename in 15211 ec++*) 15212 # FIXME: insert proper C++ library support 15213 ld_shlibs_CXX=no 15214 ;; 15215 ghcx*) 15216 # Green Hills C++ Compiler 15217 # FIXME: insert proper C++ library support 15218 ld_shlibs_CXX=no 15219 ;; 15220 *) 15221 # FIXME: insert proper C++ library support 15222 ld_shlibs_CXX=no 15223 ;; 15224 esac 15225 ;; 15226 15227 freebsd2.*) 15228 # C++ shared libraries reported to be fairly broken before 15229 # switch to ELF 15230 ld_shlibs_CXX=no 15231 ;; 15232 15233 freebsd-elf*) 15234 archive_cmds_need_lc_CXX=no 15235 ;; 15236 15237 freebsd* | dragonfly*) 15238 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15239 # conventions 15240 ld_shlibs_CXX=yes 15241 ;; 15242 15243 haiku*) 15244 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15245 link_all_deplibs_CXX=yes 15246 ;; 15247 15248 hpux9*) 15249 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15250 hardcode_libdir_separator_CXX=: 15251 export_dynamic_flag_spec_CXX='$wl-E' 15252 hardcode_direct_CXX=yes 15253 hardcode_minus_L_CXX=yes # Not in the search PATH, 15254 # but as the default 15255 # location of the library. 15256 15257 case $cc_basename in 15258 CC*) 15259 # FIXME: insert proper C++ library support 15260 ld_shlibs_CXX=no 15261 ;; 15262 aCC*) 15263 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 15264 # Commands to make compiler produce verbose output that lists 15265 # what "hidden" libraries, object files and flags are used when 15266 # linking a shared library. 15267 # 15268 # There doesn't appear to be a way to prevent this compiler from 15269 # explicitly linking system object files so we need to strip them 15270 # from the output so that they don't get included in the library 15271 # dependencies. 15272 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"' 15273 ;; 15274 *) 15275 if test yes = "$GXX"; then 15276 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 15277 else 15278 # FIXME: insert proper C++ library support 15279 ld_shlibs_CXX=no 15280 fi 15281 ;; 15282 esac 15283 ;; 15284 15285 hpux10*|hpux11*) 15286 if test no = "$with_gnu_ld"; then 15287 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15288 hardcode_libdir_separator_CXX=: 15289 15290 case $host_cpu in 15291 hppa*64*|ia64*) 15292 ;; 15293 *) 15294 export_dynamic_flag_spec_CXX='$wl-E' 15295 ;; 15296 esac 15297 fi 15298 case $host_cpu in 15299 hppa*64*|ia64*) 15300 hardcode_direct_CXX=no 15301 hardcode_shlibpath_var_CXX=no 15302 ;; 15303 *) 15304 hardcode_direct_CXX=yes 15305 hardcode_direct_absolute_CXX=yes 15306 hardcode_minus_L_CXX=yes # Not in the search PATH, 15307 # but as the default 15308 # location of the library. 15309 ;; 15310 esac 15311 15312 case $cc_basename in 15313 CC*) 15314 # FIXME: insert proper C++ library support 15315 ld_shlibs_CXX=no 15316 ;; 15317 aCC*) 15318 case $host_cpu in 15319 hppa*64*) 15320 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15321 ;; 15322 ia64*) 15323 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15324 ;; 15325 *) 15326 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15327 ;; 15328 esac 15329 # Commands to make compiler produce verbose output that lists 15330 # what "hidden" libraries, object files and flags are used when 15331 # linking a shared library. 15332 # 15333 # There doesn't appear to be a way to prevent this compiler from 15334 # explicitly linking system object files so we need to strip them 15335 # from the output so that they don't get included in the library 15336 # dependencies. 15337 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"' 15338 ;; 15339 *) 15340 if test yes = "$GXX"; then 15341 if test no = "$with_gnu_ld"; then 15342 case $host_cpu in 15343 hppa*64*) 15344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15345 ;; 15346 ia64*) 15347 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15348 ;; 15349 *) 15350 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15351 ;; 15352 esac 15353 fi 15354 else 15355 # FIXME: insert proper C++ library support 15356 ld_shlibs_CXX=no 15357 fi 15358 ;; 15359 esac 15360 ;; 15361 15362 interix[3-9]*) 15363 hardcode_direct_CXX=no 15364 hardcode_shlibpath_var_CXX=no 15365 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15366 export_dynamic_flag_spec_CXX='$wl-E' 15367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15368 # Instead, shared libraries are loaded at an image base (0x10000000 by 15369 # default) and relocated if they conflict, which is a slow very memory 15370 # consuming and fragmenting process. To avoid this, we pick a random, 15371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15372 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15373 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' 15374 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' 15375 ;; 15376 irix5* | irix6*) 15377 case $cc_basename in 15378 CC*) 15379 # SGI C++ 15380 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' 15381 15382 # Archives containing C++ object files must be created using 15383 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15384 # necessary to make sure instantiated templates are included 15385 # in the archive. 15386 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15387 ;; 15388 *) 15389 if test yes = "$GXX"; then 15390 if test no = "$with_gnu_ld"; then 15391 archive_cmds_CXX='$CC -shared $pic_flag -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' 15392 else 15393 archive_cmds_CXX='$CC -shared $pic_flag -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' 15394 fi 15395 fi 15396 link_all_deplibs_CXX=yes 15397 ;; 15398 esac 15399 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15400 hardcode_libdir_separator_CXX=: 15401 inherit_rpath_CXX=yes 15402 ;; 15403 15404 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15405 case $cc_basename in 15406 KCC*) 15407 # Kuck and Associates, Inc. (KAI) C++ Compiler 15408 15409 # KCC will only create a shared library if the output file 15410 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15411 # to its proper name (with version) after linking. 15412 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' 15413 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' 15414 # Commands to make compiler produce verbose output that lists 15415 # what "hidden" libraries, object files and flags are used when 15416 # linking a shared library. 15417 # 15418 # There doesn't appear to be a way to prevent this compiler from 15419 # explicitly linking system object files so we need to strip them 15420 # from the output so that they don't get included in the library 15421 # dependencies. 15422 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"' 15423 15424 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15425 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15426 15427 # Archives containing C++ object files must be created using 15428 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15429 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15430 ;; 15431 icpc* | ecpc* ) 15432 # Intel C++ 15433 with_gnu_ld=yes 15434 # version 8.0 and above of icpc choke on multiply defined symbols 15435 # if we add $predep_objects and $postdep_objects, however 7.1 and 15436 # earlier do not add the objects themselves. 15437 case `$CC -V 2>&1` in 15438 *"Version 7."*) 15439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15440 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' 15441 ;; 15442 *) # Version 8.0 or newer 15443 tmp_idyn= 15444 case $host_cpu in 15445 ia64*) tmp_idyn=' -i_dynamic';; 15446 esac 15447 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15448 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' 15449 ;; 15450 esac 15451 archive_cmds_need_lc_CXX=no 15452 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15453 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15454 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15455 ;; 15456 pgCC* | pgcpp*) 15457 # Portland Group C++ compiler 15458 case `$CC -V` in 15459 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15460 prelink_cmds_CXX='tpldir=Template.dir~ 15461 rm -rf $tpldir~ 15462 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15463 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15464 old_archive_cmds_CXX='tpldir=Template.dir~ 15465 rm -rf $tpldir~ 15466 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15467 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15468 $RANLIB $oldlib' 15469 archive_cmds_CXX='tpldir=Template.dir~ 15470 rm -rf $tpldir~ 15471 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15472 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15473 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15474 rm -rf $tpldir~ 15475 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15476 $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' 15477 ;; 15478 *) # Version 6 and above use weak symbols 15479 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15480 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' 15481 ;; 15482 esac 15483 15484 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15485 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15486 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' 15487 ;; 15488 cxx*) 15489 # Compaq C++ 15490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15491 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' 15492 15493 runpath_var=LD_RUN_PATH 15494 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15495 hardcode_libdir_separator_CXX=: 15496 15497 # Commands to make compiler produce verbose output that lists 15498 # what "hidden" libraries, object files and flags are used when 15499 # linking a shared library. 15500 # 15501 # There doesn't appear to be a way to prevent this compiler from 15502 # explicitly linking system object files so we need to strip them 15503 # from the output so that they don't get included in the library 15504 # dependencies. 15505 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' 15506 ;; 15507 xl* | mpixl* | bgxl*) 15508 # IBM XL 8.0 on PPC, with GNU ld 15509 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15510 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15511 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15512 if test yes = "$supports_anon_versioning"; then 15513 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15515 echo "local: *; };" >> $output_objdir/$libname.ver~ 15516 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15517 fi 15518 ;; 15519 *) 15520 case `$CC -V 2>&1 | sed 5q` in 15521 *Sun\ C*) 15522 # Sun C++ 5.9 15523 no_undefined_flag_CXX=' -zdefs' 15524 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15525 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' 15526 hardcode_libdir_flag_spec_CXX='-R$libdir' 15527 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' 15528 compiler_needs_object_CXX=yes 15529 15530 # Not sure whether something based on 15531 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15532 # would be better. 15533 output_verbose_link_cmd='func_echo_all' 15534 15535 # Archives containing C++ object files must be created using 15536 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15537 # necessary to make sure instantiated templates are included 15538 # in the archive. 15539 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15540 ;; 15541 esac 15542 ;; 15543 esac 15544 ;; 15545 15546 lynxos*) 15547 # FIXME: insert proper C++ library support 15548 ld_shlibs_CXX=no 15549 ;; 15550 15551 m88k*) 15552 # FIXME: insert proper C++ library support 15553 ld_shlibs_CXX=no 15554 ;; 15555 15556 mvs*) 15557 case $cc_basename in 15558 cxx*) 15559 # FIXME: insert proper C++ library support 15560 ld_shlibs_CXX=no 15561 ;; 15562 *) 15563 # FIXME: insert proper C++ library support 15564 ld_shlibs_CXX=no 15565 ;; 15566 esac 15567 ;; 15568 15569 netbsd*) 15570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15571 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15572 wlarc= 15573 hardcode_libdir_flag_spec_CXX='-R$libdir' 15574 hardcode_direct_CXX=yes 15575 hardcode_shlibpath_var_CXX=no 15576 fi 15577 # Workaround some broken pre-1.5 toolchains 15578 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15579 ;; 15580 15581 *nto* | *qnx*) 15582 ld_shlibs_CXX=yes 15583 ;; 15584 15585 openbsd* | bitrig*) 15586 if test -f /usr/libexec/ld.so; then 15587 hardcode_direct_CXX=yes 15588 hardcode_shlibpath_var_CXX=no 15589 hardcode_direct_absolute_CXX=yes 15590 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15591 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15593 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15594 export_dynamic_flag_spec_CXX='$wl-E' 15595 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15596 fi 15597 output_verbose_link_cmd=func_echo_all 15598 else 15599 ld_shlibs_CXX=no 15600 fi 15601 ;; 15602 15603 osf3* | osf4* | osf5*) 15604 case $cc_basename in 15605 KCC*) 15606 # Kuck and Associates, Inc. (KAI) C++ Compiler 15607 15608 # KCC will only create a shared library if the output file 15609 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15610 # to its proper name (with version) after linking. 15611 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' 15612 15613 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15614 hardcode_libdir_separator_CXX=: 15615 15616 # Archives containing C++ object files must be created using 15617 # the KAI C++ compiler. 15618 case $host in 15619 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15620 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15621 esac 15622 ;; 15623 RCC*) 15624 # Rational C++ 2.4.1 15625 # FIXME: insert proper C++ library support 15626 ld_shlibs_CXX=no 15627 ;; 15628 cxx*) 15629 case $host in 15630 osf3*) 15631 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15632 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' 15633 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15634 ;; 15635 *) 15636 allow_undefined_flag_CXX=' -expect_unresolved \*' 15637 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' 15638 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15639 echo "-hidden">> $lib.exp~ 15640 $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~ 15641 $RM $lib.exp' 15642 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15643 ;; 15644 esac 15645 15646 hardcode_libdir_separator_CXX=: 15647 15648 # Commands to make compiler produce verbose output that lists 15649 # what "hidden" libraries, object files and flags are used when 15650 # linking a shared library. 15651 # 15652 # There doesn't appear to be a way to prevent this compiler from 15653 # explicitly linking system object files so we need to strip them 15654 # from the output so that they don't get included in the library 15655 # dependencies. 15656 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"' 15657 ;; 15658 *) 15659 if test yes,no = "$GXX,$with_gnu_ld"; then 15660 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15661 case $host in 15662 osf3*) 15663 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' 15664 ;; 15665 *) 15666 archive_cmds_CXX='$CC -shared $pic_flag -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' 15667 ;; 15668 esac 15669 15670 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15671 hardcode_libdir_separator_CXX=: 15672 15673 # Commands to make compiler produce verbose output that lists 15674 # what "hidden" libraries, object files and flags are used when 15675 # linking a shared library. 15676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15677 15678 else 15679 # FIXME: insert proper C++ library support 15680 ld_shlibs_CXX=no 15681 fi 15682 ;; 15683 esac 15684 ;; 15685 15686 psos*) 15687 # FIXME: insert proper C++ library support 15688 ld_shlibs_CXX=no 15689 ;; 15690 15691 sunos4*) 15692 case $cc_basename in 15693 CC*) 15694 # Sun C++ 4.x 15695 # FIXME: insert proper C++ library support 15696 ld_shlibs_CXX=no 15697 ;; 15698 lcc*) 15699 # Lucid 15700 # FIXME: insert proper C++ library support 15701 ld_shlibs_CXX=no 15702 ;; 15703 *) 15704 # FIXME: insert proper C++ library support 15705 ld_shlibs_CXX=no 15706 ;; 15707 esac 15708 ;; 15709 15710 solaris*) 15711 case $cc_basename in 15712 CC* | sunCC*) 15713 # Sun C++ 4.2, 5.x and Centerline C++ 15714 archive_cmds_need_lc_CXX=yes 15715 no_undefined_flag_CXX=' -zdefs' 15716 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15717 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15718 $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' 15719 15720 hardcode_libdir_flag_spec_CXX='-R$libdir' 15721 hardcode_shlibpath_var_CXX=no 15722 case $host_os in 15723 solaris2.[0-5] | solaris2.[0-5].*) ;; 15724 *) 15725 # The compiler driver will combine and reorder linker options, 15726 # but understands '-z linker_flag'. 15727 # Supported since Solaris 2.6 (maybe 2.5.1?) 15728 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15729 ;; 15730 esac 15731 link_all_deplibs_CXX=yes 15732 15733 output_verbose_link_cmd='func_echo_all' 15734 15735 # Archives containing C++ object files must be created using 15736 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15737 # necessary to make sure instantiated templates are included 15738 # in the archive. 15739 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15740 ;; 15741 gcx*) 15742 # Green Hills C++ Compiler 15743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15744 15745 # The C++ compiler must be used to create the archive. 15746 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15747 ;; 15748 *) 15749 # GNU C++ compiler with Solaris linker 15750 if test yes,no = "$GXX,$with_gnu_ld"; then 15751 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15752 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15753 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15754 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15755 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15756 15757 # Commands to make compiler produce verbose output that lists 15758 # what "hidden" libraries, object files and flags are used when 15759 # linking a shared library. 15760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15761 else 15762 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15763 # platform. 15764 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15765 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15766 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15767 15768 # Commands to make compiler produce verbose output that lists 15769 # what "hidden" libraries, object files and flags are used when 15770 # linking a shared library. 15771 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15772 fi 15773 15774 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15775 case $host_os in 15776 solaris2.[0-5] | solaris2.[0-5].*) ;; 15777 *) 15778 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15779 ;; 15780 esac 15781 fi 15782 ;; 15783 esac 15784 ;; 15785 15786 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15787 no_undefined_flag_CXX='$wl-z,text' 15788 archive_cmds_need_lc_CXX=no 15789 hardcode_shlibpath_var_CXX=no 15790 runpath_var='LD_RUN_PATH' 15791 15792 case $cc_basename in 15793 CC*) 15794 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15795 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15796 ;; 15797 *) 15798 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15799 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15800 ;; 15801 esac 15802 ;; 15803 15804 sysv5* | sco3.2v5* | sco5v6*) 15805 # Note: We CANNOT use -z defs as we might desire, because we do not 15806 # link with -lc, and that would cause any symbols used from libc to 15807 # always be unresolved, which means just about no library would 15808 # ever link correctly. If we're not using GNU ld we use -z text 15809 # though, which does catch some bad symbols but isn't as heavy-handed 15810 # as -z defs. 15811 no_undefined_flag_CXX='$wl-z,text' 15812 allow_undefined_flag_CXX='$wl-z,nodefs' 15813 archive_cmds_need_lc_CXX=no 15814 hardcode_shlibpath_var_CXX=no 15815 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15816 hardcode_libdir_separator_CXX=':' 15817 link_all_deplibs_CXX=yes 15818 export_dynamic_flag_spec_CXX='$wl-Bexport' 15819 runpath_var='LD_RUN_PATH' 15820 15821 case $cc_basename in 15822 CC*) 15823 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15824 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15825 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15826 '"$old_archive_cmds_CXX" 15827 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15828 '"$reload_cmds_CXX" 15829 ;; 15830 *) 15831 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15832 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15833 ;; 15834 esac 15835 ;; 15836 15837 tandem*) 15838 case $cc_basename in 15839 NCC*) 15840 # NonStop-UX NCC 3.20 15841 # FIXME: insert proper C++ library support 15842 ld_shlibs_CXX=no 15843 ;; 15844 *) 15845 # FIXME: insert proper C++ library support 15846 ld_shlibs_CXX=no 15847 ;; 15848 esac 15849 ;; 15850 15851 vxworks*) 15852 # FIXME: insert proper C++ library support 15853 ld_shlibs_CXX=no 15854 ;; 15855 15856 *) 15857 # FIXME: insert proper C++ library support 15858 ld_shlibs_CXX=no 15859 ;; 15860 esac 15861 15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15863$as_echo "$ld_shlibs_CXX" >&6; } 15864 test no = "$ld_shlibs_CXX" && can_build_shared=no 15865 15866 GCC_CXX=$GXX 15867 LD_CXX=$LD 15868 15869 ## CAVEAT EMPTOR: 15870 ## There is no encapsulation within the following macros, do not change 15871 ## the running order or otherwise move them around unless you know exactly 15872 ## what you are doing... 15873 # Dependencies to place before and after the object being linked: 15874predep_objects_CXX= 15875postdep_objects_CXX= 15876predeps_CXX= 15877postdeps_CXX= 15878compiler_lib_search_path_CXX= 15879 15880cat > conftest.$ac_ext <<_LT_EOF 15881class Foo 15882{ 15883public: 15884 Foo (void) { a = 0; } 15885private: 15886 int a; 15887}; 15888_LT_EOF 15889 15890 15891_lt_libdeps_save_CFLAGS=$CFLAGS 15892case "$CC $CFLAGS " in #( 15893*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15894*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15895*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15896esac 15897 15898if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15899 (eval $ac_compile) 2>&5 15900 ac_status=$? 15901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15902 test $ac_status = 0; }; then 15903 # Parse the compiler output and extract the necessary 15904 # objects, libraries and library flags. 15905 15906 # Sentinel used to keep track of whether or not we are before 15907 # the conftest object file. 15908 pre_test_object_deps_done=no 15909 15910 for p in `eval "$output_verbose_link_cmd"`; do 15911 case $prev$p in 15912 15913 -L* | -R* | -l*) 15914 # Some compilers place space between "-{L,R}" and the path. 15915 # Remove the space. 15916 if test x-L = "$p" || 15917 test x-R = "$p"; then 15918 prev=$p 15919 continue 15920 fi 15921 15922 # Expand the sysroot to ease extracting the directories later. 15923 if test -z "$prev"; then 15924 case $p in 15925 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15926 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15927 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15928 esac 15929 fi 15930 case $p in 15931 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15932 esac 15933 if test no = "$pre_test_object_deps_done"; then 15934 case $prev in 15935 -L | -R) 15936 # Internal compiler library paths should come after those 15937 # provided the user. The postdeps already come after the 15938 # user supplied libs so there is no need to process them. 15939 if test -z "$compiler_lib_search_path_CXX"; then 15940 compiler_lib_search_path_CXX=$prev$p 15941 else 15942 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15943 fi 15944 ;; 15945 # The "-l" case would never come before the object being 15946 # linked, so don't bother handling this case. 15947 esac 15948 else 15949 if test -z "$postdeps_CXX"; then 15950 postdeps_CXX=$prev$p 15951 else 15952 postdeps_CXX="${postdeps_CXX} $prev$p" 15953 fi 15954 fi 15955 prev= 15956 ;; 15957 15958 *.lto.$objext) ;; # Ignore GCC LTO objects 15959 *.$objext) 15960 # This assumes that the test object file only shows up 15961 # once in the compiler output. 15962 if test "$p" = "conftest.$objext"; then 15963 pre_test_object_deps_done=yes 15964 continue 15965 fi 15966 15967 if test no = "$pre_test_object_deps_done"; then 15968 if test -z "$predep_objects_CXX"; then 15969 predep_objects_CXX=$p 15970 else 15971 predep_objects_CXX="$predep_objects_CXX $p" 15972 fi 15973 else 15974 if test -z "$postdep_objects_CXX"; then 15975 postdep_objects_CXX=$p 15976 else 15977 postdep_objects_CXX="$postdep_objects_CXX $p" 15978 fi 15979 fi 15980 ;; 15981 15982 *) ;; # Ignore the rest. 15983 15984 esac 15985 done 15986 15987 # Clean up. 15988 rm -f a.out a.exe 15989else 15990 echo "libtool.m4: error: problem compiling CXX test program" 15991fi 15992 15993$RM -f confest.$objext 15994CFLAGS=$_lt_libdeps_save_CFLAGS 15995 15996# PORTME: override above test on systems where it is broken 15997case $host_os in 15998interix[3-9]*) 15999 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16000 # hack all around it, let's just trust "g++" to DTRT. 16001 predep_objects_CXX= 16002 postdep_objects_CXX= 16003 postdeps_CXX= 16004 ;; 16005esac 16006 16007 16008case " $postdeps_CXX " in 16009*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16010esac 16011 compiler_lib_search_dirs_CXX= 16012if test -n "${compiler_lib_search_path_CXX}"; then 16013 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 16014fi 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 lt_prog_compiler_wl_CXX= 16047lt_prog_compiler_pic_CXX= 16048lt_prog_compiler_static_CXX= 16049 16050 16051 # C++ specific cases for pic, static, wl, etc. 16052 if test yes = "$GXX"; then 16053 lt_prog_compiler_wl_CXX='-Wl,' 16054 lt_prog_compiler_static_CXX='-static' 16055 16056 case $host_os in 16057 aix*) 16058 # All AIX code is PIC. 16059 if test ia64 = "$host_cpu"; then 16060 # AIX 5 now supports IA64 processor 16061 lt_prog_compiler_static_CXX='-Bstatic' 16062 fi 16063 lt_prog_compiler_pic_CXX='-fPIC' 16064 ;; 16065 16066 amigaos*) 16067 case $host_cpu in 16068 powerpc) 16069 # see comment about AmigaOS4 .so support 16070 lt_prog_compiler_pic_CXX='-fPIC' 16071 ;; 16072 m68k) 16073 # FIXME: we need at least 68020 code to build shared libraries, but 16074 # adding the '-m68020' flag to GCC prevents building anything better, 16075 # like '-m68040'. 16076 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16077 ;; 16078 esac 16079 ;; 16080 16081 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16082 # PIC is the default for these OSes. 16083 ;; 16084 mingw* | cygwin* | os2* | pw32* | cegcc*) 16085 # This hack is so that the source file can tell whether it is being 16086 # built for inclusion in a dll (and should export symbols for example). 16087 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16088 # (--disable-auto-import) libraries 16089 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16090 case $host_os in 16091 os2*) 16092 lt_prog_compiler_static_CXX='$wl-static' 16093 ;; 16094 esac 16095 ;; 16096 darwin* | rhapsody*) 16097 # PIC is the default on this platform 16098 # Common symbols not allowed in MH_DYLIB files 16099 lt_prog_compiler_pic_CXX='-fno-common' 16100 ;; 16101 *djgpp*) 16102 # DJGPP does not support shared libraries at all 16103 lt_prog_compiler_pic_CXX= 16104 ;; 16105 haiku*) 16106 # PIC is the default for Haiku. 16107 # The "-static" flag exists, but is broken. 16108 lt_prog_compiler_static_CXX= 16109 ;; 16110 interix[3-9]*) 16111 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16112 # Instead, we relocate shared libraries at runtime. 16113 ;; 16114 sysv4*MP*) 16115 if test -d /usr/nec; then 16116 lt_prog_compiler_pic_CXX=-Kconform_pic 16117 fi 16118 ;; 16119 hpux*) 16120 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16121 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16122 # sets the default TLS model and affects inlining. 16123 case $host_cpu in 16124 hppa*64*) 16125 ;; 16126 *) 16127 lt_prog_compiler_pic_CXX='-fPIC' 16128 ;; 16129 esac 16130 ;; 16131 *qnx* | *nto*) 16132 # QNX uses GNU C++, but need to define -shared option too, otherwise 16133 # it will coredump. 16134 lt_prog_compiler_pic_CXX='-fPIC -shared' 16135 ;; 16136 *) 16137 lt_prog_compiler_pic_CXX='-fPIC' 16138 ;; 16139 esac 16140 else 16141 case $host_os in 16142 aix[4-9]*) 16143 # All AIX code is PIC. 16144 if test ia64 = "$host_cpu"; then 16145 # AIX 5 now supports IA64 processor 16146 lt_prog_compiler_static_CXX='-Bstatic' 16147 else 16148 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16149 fi 16150 ;; 16151 chorus*) 16152 case $cc_basename in 16153 cxch68*) 16154 # Green Hills C++ Compiler 16155 # _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" 16156 ;; 16157 esac 16158 ;; 16159 mingw* | cygwin* | os2* | pw32* | cegcc*) 16160 # This hack is so that the source file can tell whether it is being 16161 # built for inclusion in a dll (and should export symbols for example). 16162 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16163 ;; 16164 dgux*) 16165 case $cc_basename in 16166 ec++*) 16167 lt_prog_compiler_pic_CXX='-KPIC' 16168 ;; 16169 ghcx*) 16170 # Green Hills C++ Compiler 16171 lt_prog_compiler_pic_CXX='-pic' 16172 ;; 16173 *) 16174 ;; 16175 esac 16176 ;; 16177 freebsd* | dragonfly*) 16178 # FreeBSD uses GNU C++ 16179 ;; 16180 hpux9* | hpux10* | hpux11*) 16181 case $cc_basename in 16182 CC*) 16183 lt_prog_compiler_wl_CXX='-Wl,' 16184 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16185 if test ia64 != "$host_cpu"; then 16186 lt_prog_compiler_pic_CXX='+Z' 16187 fi 16188 ;; 16189 aCC*) 16190 lt_prog_compiler_wl_CXX='-Wl,' 16191 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16192 case $host_cpu in 16193 hppa*64*|ia64*) 16194 # +Z the default 16195 ;; 16196 *) 16197 lt_prog_compiler_pic_CXX='+Z' 16198 ;; 16199 esac 16200 ;; 16201 *) 16202 ;; 16203 esac 16204 ;; 16205 interix*) 16206 # This is c89, which is MS Visual C++ (no shared libs) 16207 # Anyone wants to do a port? 16208 ;; 16209 irix5* | irix6* | nonstopux*) 16210 case $cc_basename in 16211 CC*) 16212 lt_prog_compiler_wl_CXX='-Wl,' 16213 lt_prog_compiler_static_CXX='-non_shared' 16214 # CC pic flag -KPIC is the default. 16215 ;; 16216 *) 16217 ;; 16218 esac 16219 ;; 16220 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16221 case $cc_basename in 16222 KCC*) 16223 # KAI C++ Compiler 16224 lt_prog_compiler_wl_CXX='--backend -Wl,' 16225 lt_prog_compiler_pic_CXX='-fPIC' 16226 ;; 16227 ecpc* ) 16228 # old Intel C++ for x86_64, which still supported -KPIC. 16229 lt_prog_compiler_wl_CXX='-Wl,' 16230 lt_prog_compiler_pic_CXX='-KPIC' 16231 lt_prog_compiler_static_CXX='-static' 16232 ;; 16233 icpc* ) 16234 # Intel C++, used to be incompatible with GCC. 16235 # ICC 10 doesn't accept -KPIC any more. 16236 lt_prog_compiler_wl_CXX='-Wl,' 16237 lt_prog_compiler_pic_CXX='-fPIC' 16238 lt_prog_compiler_static_CXX='-static' 16239 ;; 16240 pgCC* | pgcpp*) 16241 # Portland Group C++ compiler 16242 lt_prog_compiler_wl_CXX='-Wl,' 16243 lt_prog_compiler_pic_CXX='-fpic' 16244 lt_prog_compiler_static_CXX='-Bstatic' 16245 ;; 16246 cxx*) 16247 # Compaq C++ 16248 # Make sure the PIC flag is empty. It appears that all Alpha 16249 # Linux and Compaq Tru64 Unix objects are PIC. 16250 lt_prog_compiler_pic_CXX= 16251 lt_prog_compiler_static_CXX='-non_shared' 16252 ;; 16253 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16254 # IBM XL 8.0, 9.0 on PPC and BlueGene 16255 lt_prog_compiler_wl_CXX='-Wl,' 16256 lt_prog_compiler_pic_CXX='-qpic' 16257 lt_prog_compiler_static_CXX='-qstaticlink' 16258 ;; 16259 *) 16260 case `$CC -V 2>&1 | sed 5q` in 16261 *Sun\ C*) 16262 # Sun C++ 5.9 16263 lt_prog_compiler_pic_CXX='-KPIC' 16264 lt_prog_compiler_static_CXX='-Bstatic' 16265 lt_prog_compiler_wl_CXX='-Qoption ld ' 16266 ;; 16267 esac 16268 ;; 16269 esac 16270 ;; 16271 lynxos*) 16272 ;; 16273 m88k*) 16274 ;; 16275 mvs*) 16276 case $cc_basename in 16277 cxx*) 16278 lt_prog_compiler_pic_CXX='-W c,exportall' 16279 ;; 16280 *) 16281 ;; 16282 esac 16283 ;; 16284 netbsd* | netbsdelf*-gnu) 16285 ;; 16286 *qnx* | *nto*) 16287 # QNX uses GNU C++, but need to define -shared option too, otherwise 16288 # it will coredump. 16289 lt_prog_compiler_pic_CXX='-fPIC -shared' 16290 ;; 16291 osf3* | osf4* | osf5*) 16292 case $cc_basename in 16293 KCC*) 16294 lt_prog_compiler_wl_CXX='--backend -Wl,' 16295 ;; 16296 RCC*) 16297 # Rational C++ 2.4.1 16298 lt_prog_compiler_pic_CXX='-pic' 16299 ;; 16300 cxx*) 16301 # Digital/Compaq C++ 16302 lt_prog_compiler_wl_CXX='-Wl,' 16303 # Make sure the PIC flag is empty. It appears that all Alpha 16304 # Linux and Compaq Tru64 Unix objects are PIC. 16305 lt_prog_compiler_pic_CXX= 16306 lt_prog_compiler_static_CXX='-non_shared' 16307 ;; 16308 *) 16309 ;; 16310 esac 16311 ;; 16312 psos*) 16313 ;; 16314 solaris*) 16315 case $cc_basename in 16316 CC* | sunCC*) 16317 # Sun C++ 4.2, 5.x and Centerline C++ 16318 lt_prog_compiler_pic_CXX='-KPIC' 16319 lt_prog_compiler_static_CXX='-Bstatic' 16320 lt_prog_compiler_wl_CXX='-Qoption ld ' 16321 ;; 16322 gcx*) 16323 # Green Hills C++ Compiler 16324 lt_prog_compiler_pic_CXX='-PIC' 16325 ;; 16326 *) 16327 ;; 16328 esac 16329 ;; 16330 sunos4*) 16331 case $cc_basename in 16332 CC*) 16333 # Sun C++ 4.x 16334 lt_prog_compiler_pic_CXX='-pic' 16335 lt_prog_compiler_static_CXX='-Bstatic' 16336 ;; 16337 lcc*) 16338 # Lucid 16339 lt_prog_compiler_pic_CXX='-pic' 16340 ;; 16341 *) 16342 ;; 16343 esac 16344 ;; 16345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16346 case $cc_basename in 16347 CC*) 16348 lt_prog_compiler_wl_CXX='-Wl,' 16349 lt_prog_compiler_pic_CXX='-KPIC' 16350 lt_prog_compiler_static_CXX='-Bstatic' 16351 ;; 16352 esac 16353 ;; 16354 tandem*) 16355 case $cc_basename in 16356 NCC*) 16357 # NonStop-UX NCC 3.20 16358 lt_prog_compiler_pic_CXX='-KPIC' 16359 ;; 16360 *) 16361 ;; 16362 esac 16363 ;; 16364 vxworks*) 16365 ;; 16366 *) 16367 lt_prog_compiler_can_build_shared_CXX=no 16368 ;; 16369 esac 16370 fi 16371 16372case $host_os in 16373 # For platforms that do not support PIC, -DPIC is meaningless: 16374 *djgpp*) 16375 lt_prog_compiler_pic_CXX= 16376 ;; 16377 *) 16378 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16379 ;; 16380esac 16381 16382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16383$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16384if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 16385 $as_echo_n "(cached) " >&6 16386else 16387 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16388fi 16389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16390$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16391lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16392 16393# 16394# Check to make sure the PIC flag actually works. 16395# 16396if test -n "$lt_prog_compiler_pic_CXX"; then 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16398$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16399if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 16400 $as_echo_n "(cached) " >&6 16401else 16402 lt_cv_prog_compiler_pic_works_CXX=no 16403 ac_outfile=conftest.$ac_objext 16404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16405 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 16406 # Insert the option either (1) after the last *FLAGS variable, or 16407 # (2) before a word containing "conftest.", or (3) at the end. 16408 # Note that $ac_compile itself does not contain backslashes and begins 16409 # with a dollar sign (not a hyphen), so the echo should work correctly. 16410 # The option is referenced via a variable to avoid confusing sed. 16411 lt_compile=`echo "$ac_compile" | $SED \ 16412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16414 -e 's:$: $lt_compiler_flag:'` 16415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16416 (eval "$lt_compile" 2>conftest.err) 16417 ac_status=$? 16418 cat conftest.err >&5 16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16420 if (exit $ac_status) && test -s "$ac_outfile"; then 16421 # The compiler can only warn and ignore the option if not recognized 16422 # So say no if there are warnings other than the usual output. 16423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16426 lt_cv_prog_compiler_pic_works_CXX=yes 16427 fi 16428 fi 16429 $RM conftest* 16430 16431fi 16432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16433$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16434 16435if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 16436 case $lt_prog_compiler_pic_CXX in 16437 "" | " "*) ;; 16438 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16439 esac 16440else 16441 lt_prog_compiler_pic_CXX= 16442 lt_prog_compiler_can_build_shared_CXX=no 16443fi 16444 16445fi 16446 16447 16448 16449 16450 16451# 16452# Check to make sure the static flag actually works. 16453# 16454wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16456$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16457if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16458 $as_echo_n "(cached) " >&6 16459else 16460 lt_cv_prog_compiler_static_works_CXX=no 16461 save_LDFLAGS=$LDFLAGS 16462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16463 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16465 # The linker can only warn and ignore the option if not recognized 16466 # So say no if there are warnings 16467 if test -s conftest.err; then 16468 # Append any errors to the config.log. 16469 cat conftest.err 1>&5 16470 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16472 if diff conftest.exp conftest.er2 >/dev/null; then 16473 lt_cv_prog_compiler_static_works_CXX=yes 16474 fi 16475 else 16476 lt_cv_prog_compiler_static_works_CXX=yes 16477 fi 16478 fi 16479 $RM -r conftest* 16480 LDFLAGS=$save_LDFLAGS 16481 16482fi 16483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16484$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16485 16486if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16487 : 16488else 16489 lt_prog_compiler_static_CXX= 16490fi 16491 16492 16493 16494 16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16496$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16497if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16498 $as_echo_n "(cached) " >&6 16499else 16500 lt_cv_prog_compiler_c_o_CXX=no 16501 $RM -r conftest 2>/dev/null 16502 mkdir conftest 16503 cd conftest 16504 mkdir out 16505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16506 16507 lt_compiler_flag="-o out/conftest2.$ac_objext" 16508 # Insert the option either (1) after the last *FLAGS variable, or 16509 # (2) before a word containing "conftest.", or (3) at the end. 16510 # Note that $ac_compile itself does not contain backslashes and begins 16511 # with a dollar sign (not a hyphen), so the echo should work correctly. 16512 lt_compile=`echo "$ac_compile" | $SED \ 16513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16515 -e 's:$: $lt_compiler_flag:'` 16516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16517 (eval "$lt_compile" 2>out/conftest.err) 16518 ac_status=$? 16519 cat out/conftest.err >&5 16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16521 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16522 then 16523 # The compiler can only warn and ignore the option if not recognized 16524 # So say no if there are warnings 16525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16528 lt_cv_prog_compiler_c_o_CXX=yes 16529 fi 16530 fi 16531 chmod u+w . 2>&5 16532 $RM conftest* 16533 # SGI C++ compiler will create directory out/ii_files/ for 16534 # template instantiation 16535 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16536 $RM out/* && rmdir out 16537 cd .. 16538 $RM -r conftest 16539 $RM conftest* 16540 16541fi 16542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16543$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16544 16545 16546 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16548$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16549if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16550 $as_echo_n "(cached) " >&6 16551else 16552 lt_cv_prog_compiler_c_o_CXX=no 16553 $RM -r conftest 2>/dev/null 16554 mkdir conftest 16555 cd conftest 16556 mkdir out 16557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16558 16559 lt_compiler_flag="-o out/conftest2.$ac_objext" 16560 # Insert the option either (1) after the last *FLAGS variable, or 16561 # (2) before a word containing "conftest.", or (3) at the end. 16562 # Note that $ac_compile itself does not contain backslashes and begins 16563 # with a dollar sign (not a hyphen), so the echo should work correctly. 16564 lt_compile=`echo "$ac_compile" | $SED \ 16565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16567 -e 's:$: $lt_compiler_flag:'` 16568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16569 (eval "$lt_compile" 2>out/conftest.err) 16570 ac_status=$? 16571 cat out/conftest.err >&5 16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16573 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16574 then 16575 # The compiler can only warn and ignore the option if not recognized 16576 # So say no if there are warnings 16577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16580 lt_cv_prog_compiler_c_o_CXX=yes 16581 fi 16582 fi 16583 chmod u+w . 2>&5 16584 $RM conftest* 16585 # SGI C++ compiler will create directory out/ii_files/ for 16586 # template instantiation 16587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16588 $RM out/* && rmdir out 16589 cd .. 16590 $RM -r conftest 16591 $RM conftest* 16592 16593fi 16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16595$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16596 16597 16598 16599 16600hard_links=nottested 16601if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16602 # do not overwrite the value of need_locks provided by the user 16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16604$as_echo_n "checking if we can lock with hard links... " >&6; } 16605 hard_links=yes 16606 $RM conftest* 16607 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16608 touch conftest.a 16609 ln conftest.a conftest.b 2>&5 || hard_links=no 16610 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16612$as_echo "$hard_links" >&6; } 16613 if test no = "$hard_links"; then 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16615$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16616 need_locks=warn 16617 fi 16618else 16619 need_locks=no 16620fi 16621 16622 16623 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16625$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16626 16627 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16628 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16629 case $host_os in 16630 aix[4-9]*) 16631 # If we're using GNU nm, then we don't want the "-C" option. 16632 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16633 # Without the "-l" option, or with the "-B" option, AIX nm treats 16634 # weak defined symbols like other global defined symbols, whereas 16635 # GNU nm marks them as "W". 16636 # While the 'weak' keyword is ignored in the Export File, we need 16637 # it in the Import File for the 'aix-soname' feature, so we have 16638 # to replace the "-B" option with "-P" for AIX nm. 16639 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16640 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16641 else 16642 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16643 fi 16644 ;; 16645 pw32*) 16646 export_symbols_cmds_CXX=$ltdll_cmds 16647 ;; 16648 cygwin* | mingw* | cegcc*) 16649 case $cc_basename in 16650 cl*) 16651 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16652 ;; 16653 *) 16654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 16655 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16656 ;; 16657 esac 16658 ;; 16659 linux* | k*bsd*-gnu | gnu*) 16660 link_all_deplibs_CXX=no 16661 ;; 16662 *) 16663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16664 ;; 16665 esac 16666 16667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16668$as_echo "$ld_shlibs_CXX" >&6; } 16669test no = "$ld_shlibs_CXX" && can_build_shared=no 16670 16671with_gnu_ld_CXX=$with_gnu_ld 16672 16673 16674 16675 16676 16677 16678# 16679# Do we need to explicitly link libc? 16680# 16681case "x$archive_cmds_need_lc_CXX" in 16682x|xyes) 16683 # Assume -lc should be added 16684 archive_cmds_need_lc_CXX=yes 16685 16686 if test yes,yes = "$GCC,$enable_shared"; then 16687 case $archive_cmds_CXX in 16688 *'~'*) 16689 # FIXME: we may have to deal with multi-command sequences. 16690 ;; 16691 '$CC '*) 16692 # Test whether the compiler implicitly links with -lc since on some 16693 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16694 # to ld, don't add -lc before -lgcc. 16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16696$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16697if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16698 $as_echo_n "(cached) " >&6 16699else 16700 $RM conftest* 16701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16702 16703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16704 (eval $ac_compile) 2>&5 16705 ac_status=$? 16706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16707 test $ac_status = 0; } 2>conftest.err; then 16708 soname=conftest 16709 lib=conftest 16710 libobjs=conftest.$ac_objext 16711 deplibs= 16712 wl=$lt_prog_compiler_wl_CXX 16713 pic_flag=$lt_prog_compiler_pic_CXX 16714 compiler_flags=-v 16715 linker_flags=-v 16716 verstring= 16717 output_objdir=. 16718 libname=conftest 16719 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16720 allow_undefined_flag_CXX= 16721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16722 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16723 ac_status=$? 16724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16725 test $ac_status = 0; } 16726 then 16727 lt_cv_archive_cmds_need_lc_CXX=no 16728 else 16729 lt_cv_archive_cmds_need_lc_CXX=yes 16730 fi 16731 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16732 else 16733 cat conftest.err 1>&5 16734 fi 16735 $RM conftest* 16736 16737fi 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16739$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16740 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16741 ;; 16742 esac 16743 fi 16744 ;; 16745esac 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16809$as_echo_n "checking dynamic linker characteristics... " >&6; } 16810 16811library_names_spec= 16812libname_spec='lib$name' 16813soname_spec= 16814shrext_cmds=.so 16815postinstall_cmds= 16816postuninstall_cmds= 16817finish_cmds= 16818finish_eval= 16819shlibpath_var= 16820shlibpath_overrides_runpath=unknown 16821version_type=none 16822dynamic_linker="$host_os ld.so" 16823sys_lib_dlsearch_path_spec="/lib /usr/lib" 16824need_lib_prefix=unknown 16825hardcode_into_libs=no 16826 16827# when you set need_version to no, make sure it does not cause -set_version 16828# flags to be left without arguments 16829need_version=unknown 16830 16831 16832 16833case $host_os in 16834aix3*) 16835 version_type=linux # correct to gnu/linux during the next big refactor 16836 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16837 shlibpath_var=LIBPATH 16838 16839 # AIX 3 has no versioning support, so we append a major version to the name. 16840 soname_spec='$libname$release$shared_ext$major' 16841 ;; 16842 16843aix[4-9]*) 16844 version_type=linux # correct to gnu/linux during the next big refactor 16845 need_lib_prefix=no 16846 need_version=no 16847 hardcode_into_libs=yes 16848 if test ia64 = "$host_cpu"; then 16849 # AIX 5 supports IA64 16850 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16851 shlibpath_var=LD_LIBRARY_PATH 16852 else 16853 # With GCC up to 2.95.x, collect2 would create an import file 16854 # for dependence libraries. The import file would start with 16855 # the line '#! .'. This would cause the generated library to 16856 # depend on '.', always an invalid library. This was fixed in 16857 # development snapshots of GCC prior to 3.0. 16858 case $host_os in 16859 aix4 | aix4.[01] | aix4.[01].*) 16860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16861 echo ' yes ' 16862 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16863 : 16864 else 16865 can_build_shared=no 16866 fi 16867 ;; 16868 esac 16869 # Using Import Files as archive members, it is possible to support 16870 # filename-based versioning of shared library archives on AIX. While 16871 # this would work for both with and without runtime linking, it will 16872 # prevent static linking of such archives. So we do filename-based 16873 # shared library versioning with .so extension only, which is used 16874 # when both runtime linking and shared linking is enabled. 16875 # Unfortunately, runtime linking may impact performance, so we do 16876 # not want this to be the default eventually. Also, we use the 16877 # versioned .so libs for executables only if there is the -brtl 16878 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16879 # To allow for filename-based versioning support, we need to create 16880 # libNAME.so.V as an archive file, containing: 16881 # *) an Import File, referring to the versioned filename of the 16882 # archive as well as the shared archive member, telling the 16883 # bitwidth (32 or 64) of that shared object, and providing the 16884 # list of exported symbols of that shared object, eventually 16885 # decorated with the 'weak' keyword 16886 # *) the shared object with the F_LOADONLY flag set, to really avoid 16887 # it being seen by the linker. 16888 # At run time we better use the real file rather than another symlink, 16889 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16890 16891 case $with_aix_soname,$aix_use_runtimelinking in 16892 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16893 # soname into executable. Probably we can add versioning support to 16894 # collect2, so additional links can be useful in future. 16895 aix,yes) # traditional libtool 16896 dynamic_linker='AIX unversionable lib.so' 16897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16898 # instead of lib<name>.a to let people know that these are not 16899 # typical AIX shared libraries. 16900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16901 ;; 16902 aix,no) # traditional AIX only 16903 dynamic_linker='AIX lib.a(lib.so.V)' 16904 # We preserve .a as extension for shared libraries through AIX4.2 16905 # and later when we are not doing run time linking. 16906 library_names_spec='$libname$release.a $libname.a' 16907 soname_spec='$libname$release$shared_ext$major' 16908 ;; 16909 svr4,*) # full svr4 only 16910 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16911 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16912 # We do not specify a path in Import Files, so LIBPATH fires. 16913 shlibpath_overrides_runpath=yes 16914 ;; 16915 *,yes) # both, prefer svr4 16916 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16917 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16918 # unpreferred sharedlib libNAME.a needs extra handling 16919 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16920 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16921 # We do not specify a path in Import Files, so LIBPATH fires. 16922 shlibpath_overrides_runpath=yes 16923 ;; 16924 *,no) # both, prefer aix 16925 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16926 library_names_spec='$libname$release.a $libname.a' 16927 soname_spec='$libname$release$shared_ext$major' 16928 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16929 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16930 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16931 ;; 16932 esac 16933 shlibpath_var=LIBPATH 16934 fi 16935 ;; 16936 16937amigaos*) 16938 case $host_cpu in 16939 powerpc) 16940 # Since July 2007 AmigaOS4 officially supports .so libraries. 16941 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16943 ;; 16944 m68k) 16945 library_names_spec='$libname.ixlibrary $libname.a' 16946 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16947 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 16948 ;; 16949 esac 16950 ;; 16951 16952beos*) 16953 library_names_spec='$libname$shared_ext' 16954 dynamic_linker="$host_os ld.so" 16955 shlibpath_var=LIBRARY_PATH 16956 ;; 16957 16958bsdi[45]*) 16959 version_type=linux # correct to gnu/linux during the next big refactor 16960 need_version=no 16961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16962 soname_spec='$libname$release$shared_ext$major' 16963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16964 shlibpath_var=LD_LIBRARY_PATH 16965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16967 # the default ld.so.conf also contains /usr/contrib/lib and 16968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16969 # libtool to hard-code these into programs 16970 ;; 16971 16972cygwin* | mingw* | pw32* | cegcc*) 16973 version_type=windows 16974 shrext_cmds=.dll 16975 need_version=no 16976 need_lib_prefix=no 16977 16978 case $GCC,$cc_basename in 16979 yes,*) 16980 # gcc 16981 library_names_spec='$libname.dll.a' 16982 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16983 postinstall_cmds='base_file=`basename \$file`~ 16984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16985 dldir=$destdir/`dirname \$dlpath`~ 16986 test -d \$dldir || mkdir -p \$dldir~ 16987 $install_prog $dir/$dlname \$dldir/$dlname~ 16988 chmod a+x \$dldir/$dlname~ 16989 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16990 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16991 fi' 16992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16993 dlpath=$dir/\$dldll~ 16994 $RM \$dlpath' 16995 shlibpath_overrides_runpath=yes 16996 16997 case $host_os in 16998 cygwin*) 16999 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17000 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17001 17002 ;; 17003 mingw* | cegcc*) 17004 # MinGW DLLs use traditional 'lib' prefix 17005 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17006 ;; 17007 pw32*) 17008 # pw32 DLLs use 'pw' prefix rather than 'lib' 17009 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17010 ;; 17011 esac 17012 dynamic_linker='Win32 ld.exe' 17013 ;; 17014 17015 *,cl*) 17016 # Native MSVC 17017 libname_spec='$name' 17018 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17019 library_names_spec='$libname.dll.lib' 17020 17021 case $build_os in 17022 mingw*) 17023 sys_lib_search_path_spec= 17024 lt_save_ifs=$IFS 17025 IFS=';' 17026 for lt_path in $LIB 17027 do 17028 IFS=$lt_save_ifs 17029 # Let DOS variable expansion print the short 8.3 style file name. 17030 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17031 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17032 done 17033 IFS=$lt_save_ifs 17034 # Convert to MSYS style. 17035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17036 ;; 17037 cygwin*) 17038 # Convert to unix form, then to dos form, then back to unix form 17039 # but this time dos style (no spaces!) so that the unix form looks 17040 # like /cygdrive/c/PROGRA~1:/cygdr... 17041 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17042 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17043 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17044 ;; 17045 *) 17046 sys_lib_search_path_spec=$LIB 17047 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17048 # It is most probably a Windows format PATH. 17049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17050 else 17051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17052 fi 17053 # FIXME: find the short name or the path components, as spaces are 17054 # common. (e.g. "Program Files" -> "PROGRA~1") 17055 ;; 17056 esac 17057 17058 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17059 postinstall_cmds='base_file=`basename \$file`~ 17060 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17061 dldir=$destdir/`dirname \$dlpath`~ 17062 test -d \$dldir || mkdir -p \$dldir~ 17063 $install_prog $dir/$dlname \$dldir/$dlname' 17064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17065 dlpath=$dir/\$dldll~ 17066 $RM \$dlpath' 17067 shlibpath_overrides_runpath=yes 17068 dynamic_linker='Win32 link.exe' 17069 ;; 17070 17071 *) 17072 # Assume MSVC wrapper 17073 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17074 dynamic_linker='Win32 ld.exe' 17075 ;; 17076 esac 17077 # FIXME: first we should search . and the directory the executable is in 17078 shlibpath_var=PATH 17079 ;; 17080 17081darwin* | rhapsody*) 17082 dynamic_linker="$host_os dyld" 17083 version_type=darwin 17084 need_lib_prefix=no 17085 need_version=no 17086 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17087 soname_spec='$libname$release$major$shared_ext' 17088 shlibpath_overrides_runpath=yes 17089 shlibpath_var=DYLD_LIBRARY_PATH 17090 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17091 17092 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17093 ;; 17094 17095dgux*) 17096 version_type=linux # correct to gnu/linux during the next big refactor 17097 need_lib_prefix=no 17098 need_version=no 17099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17100 soname_spec='$libname$release$shared_ext$major' 17101 shlibpath_var=LD_LIBRARY_PATH 17102 ;; 17103 17104freebsd* | dragonfly*) 17105 # DragonFly does not have aout. When/if they implement a new 17106 # versioning mechanism, adjust this. 17107 if test -x /usr/bin/objformat; then 17108 objformat=`/usr/bin/objformat` 17109 else 17110 case $host_os in 17111 freebsd[23].*) objformat=aout ;; 17112 *) objformat=elf ;; 17113 esac 17114 fi 17115 version_type=freebsd-$objformat 17116 case $version_type in 17117 freebsd-elf*) 17118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17119 soname_spec='$libname$release$shared_ext$major' 17120 need_version=no 17121 need_lib_prefix=no 17122 ;; 17123 freebsd-*) 17124 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17125 need_version=yes 17126 ;; 17127 esac 17128 shlibpath_var=LD_LIBRARY_PATH 17129 case $host_os in 17130 freebsd2.*) 17131 shlibpath_overrides_runpath=yes 17132 ;; 17133 freebsd3.[01]* | freebsdelf3.[01]*) 17134 shlibpath_overrides_runpath=yes 17135 hardcode_into_libs=yes 17136 ;; 17137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17139 shlibpath_overrides_runpath=no 17140 hardcode_into_libs=yes 17141 ;; 17142 *) # from 4.6 on, and DragonFly 17143 shlibpath_overrides_runpath=yes 17144 hardcode_into_libs=yes 17145 ;; 17146 esac 17147 ;; 17148 17149haiku*) 17150 version_type=linux # correct to gnu/linux during the next big refactor 17151 need_lib_prefix=no 17152 need_version=no 17153 dynamic_linker="$host_os runtime_loader" 17154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17155 soname_spec='$libname$release$shared_ext$major' 17156 shlibpath_var=LIBRARY_PATH 17157 shlibpath_overrides_runpath=no 17158 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17159 hardcode_into_libs=yes 17160 ;; 17161 17162hpux9* | hpux10* | hpux11*) 17163 # Give a soname corresponding to the major version so that dld.sl refuses to 17164 # link against other versions. 17165 version_type=sunos 17166 need_lib_prefix=no 17167 need_version=no 17168 case $host_cpu in 17169 ia64*) 17170 shrext_cmds='.so' 17171 hardcode_into_libs=yes 17172 dynamic_linker="$host_os dld.so" 17173 shlibpath_var=LD_LIBRARY_PATH 17174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17176 soname_spec='$libname$release$shared_ext$major' 17177 if test 32 = "$HPUX_IA64_MODE"; then 17178 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17179 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17180 else 17181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17182 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17183 fi 17184 ;; 17185 hppa*64*) 17186 shrext_cmds='.sl' 17187 hardcode_into_libs=yes 17188 dynamic_linker="$host_os dld.sl" 17189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17192 soname_spec='$libname$release$shared_ext$major' 17193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17195 ;; 17196 *) 17197 shrext_cmds='.sl' 17198 dynamic_linker="$host_os dld.sl" 17199 shlibpath_var=SHLIB_PATH 17200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17202 soname_spec='$libname$release$shared_ext$major' 17203 ;; 17204 esac 17205 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17206 postinstall_cmds='chmod 555 $lib' 17207 # or fails outright, so override atomically: 17208 install_override_mode=555 17209 ;; 17210 17211interix[3-9]*) 17212 version_type=linux # correct to gnu/linux during the next big refactor 17213 need_lib_prefix=no 17214 need_version=no 17215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17216 soname_spec='$libname$release$shared_ext$major' 17217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17218 shlibpath_var=LD_LIBRARY_PATH 17219 shlibpath_overrides_runpath=no 17220 hardcode_into_libs=yes 17221 ;; 17222 17223irix5* | irix6* | nonstopux*) 17224 case $host_os in 17225 nonstopux*) version_type=nonstopux ;; 17226 *) 17227 if test yes = "$lt_cv_prog_gnu_ld"; then 17228 version_type=linux # correct to gnu/linux during the next big refactor 17229 else 17230 version_type=irix 17231 fi ;; 17232 esac 17233 need_lib_prefix=no 17234 need_version=no 17235 soname_spec='$libname$release$shared_ext$major' 17236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17237 case $host_os in 17238 irix5* | nonstopux*) 17239 libsuff= shlibsuff= 17240 ;; 17241 *) 17242 case $LD in # libtool.m4 will add one of these switches to LD 17243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17244 libsuff= shlibsuff= libmagic=32-bit;; 17245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17246 libsuff=32 shlibsuff=N32 libmagic=N32;; 17247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17248 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17249 *) libsuff= shlibsuff= libmagic=never-match;; 17250 esac 17251 ;; 17252 esac 17253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17254 shlibpath_overrides_runpath=no 17255 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17256 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17257 hardcode_into_libs=yes 17258 ;; 17259 17260# No shared lib support for Linux oldld, aout, or coff. 17261linux*oldld* | linux*aout* | linux*coff*) 17262 dynamic_linker=no 17263 ;; 17264 17265linux*android*) 17266 version_type=none # Android doesn't support versioned libraries. 17267 need_lib_prefix=no 17268 need_version=no 17269 library_names_spec='$libname$release$shared_ext' 17270 soname_spec='$libname$release$shared_ext' 17271 finish_cmds= 17272 shlibpath_var=LD_LIBRARY_PATH 17273 shlibpath_overrides_runpath=yes 17274 17275 # This implies no fast_install, which is unacceptable. 17276 # Some rework will be needed to allow for fast_install 17277 # before this can be enabled. 17278 hardcode_into_libs=yes 17279 17280 dynamic_linker='Android linker' 17281 # Don't embed -rpath directories since the linker doesn't support them. 17282 hardcode_libdir_flag_spec_CXX='-L$libdir' 17283 ;; 17284 17285# This must be glibc/ELF. 17286linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17287 version_type=linux # correct to gnu/linux during the next big refactor 17288 need_lib_prefix=no 17289 need_version=no 17290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17291 soname_spec='$libname$release$shared_ext$major' 17292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17293 shlibpath_var=LD_LIBRARY_PATH 17294 shlibpath_overrides_runpath=no 17295 17296 # Some binutils ld are patched to set DT_RUNPATH 17297 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17298 $as_echo_n "(cached) " >&6 17299else 17300 lt_cv_shlibpath_overrides_runpath=no 17301 save_LDFLAGS=$LDFLAGS 17302 save_libdir=$libdir 17303 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17304 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17306/* end confdefs.h. */ 17307 17308int 17309main () 17310{ 17311 17312 ; 17313 return 0; 17314} 17315_ACEOF 17316if ac_fn_cxx_try_link "$LINENO"; then : 17317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17318 lt_cv_shlibpath_overrides_runpath=yes 17319fi 17320fi 17321rm -f core conftest.err conftest.$ac_objext \ 17322 conftest$ac_exeext conftest.$ac_ext 17323 LDFLAGS=$save_LDFLAGS 17324 libdir=$save_libdir 17325 17326fi 17327 17328 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17329 17330 # This implies no fast_install, which is unacceptable. 17331 # Some rework will be needed to allow for fast_install 17332 # before this can be enabled. 17333 hardcode_into_libs=yes 17334 17335 # Ideally, we could use ldconfig to report *all* directores which are 17336 # searched for libraries, however this is still not possible. Aside from not 17337 # being certain /sbin/ldconfig is available, command 17338 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17339 # even though it is searched at run-time. Try to do the best guess by 17340 # appending ld.so.conf contents (and includes) to the search path. 17341 if test -f /etc/ld.so.conf; then 17342 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' ' '` 17343 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17344 fi 17345 17346 # We used to test for /lib/ld.so.1 and disable shared libraries on 17347 # powerpc, because MkLinux only supported shared libraries with the 17348 # GNU dynamic linker. Since this was broken with cross compilers, 17349 # most powerpc-linux boxes support dynamic linking these days and 17350 # people can always --disable-shared, the test was removed, and we 17351 # assume the GNU/Linux dynamic linker is in use. 17352 dynamic_linker='GNU/Linux ld.so' 17353 ;; 17354 17355netbsdelf*-gnu) 17356 version_type=linux 17357 need_lib_prefix=no 17358 need_version=no 17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17360 soname_spec='${libname}${release}${shared_ext}$major' 17361 shlibpath_var=LD_LIBRARY_PATH 17362 shlibpath_overrides_runpath=no 17363 hardcode_into_libs=yes 17364 dynamic_linker='NetBSD ld.elf_so' 17365 ;; 17366 17367netbsd*) 17368 version_type=sunos 17369 need_lib_prefix=no 17370 need_version=no 17371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17372 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17374 dynamic_linker='NetBSD (a.out) ld.so' 17375 else 17376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17377 soname_spec='$libname$release$shared_ext$major' 17378 dynamic_linker='NetBSD ld.elf_so' 17379 fi 17380 shlibpath_var=LD_LIBRARY_PATH 17381 shlibpath_overrides_runpath=yes 17382 hardcode_into_libs=yes 17383 ;; 17384 17385newsos6) 17386 version_type=linux # correct to gnu/linux during the next big refactor 17387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17388 shlibpath_var=LD_LIBRARY_PATH 17389 shlibpath_overrides_runpath=yes 17390 ;; 17391 17392*nto* | *qnx*) 17393 version_type=qnx 17394 need_lib_prefix=no 17395 need_version=no 17396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17397 soname_spec='$libname$release$shared_ext$major' 17398 shlibpath_var=LD_LIBRARY_PATH 17399 shlibpath_overrides_runpath=no 17400 hardcode_into_libs=yes 17401 dynamic_linker='ldqnx.so' 17402 ;; 17403 17404openbsd* | bitrig*) 17405 version_type=sunos 17406 sys_lib_dlsearch_path_spec=/usr/lib 17407 need_lib_prefix=no 17408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17409 need_version=no 17410 else 17411 need_version=yes 17412 fi 17413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17415 shlibpath_var=LD_LIBRARY_PATH 17416 shlibpath_overrides_runpath=yes 17417 ;; 17418 17419os2*) 17420 libname_spec='$name' 17421 version_type=windows 17422 shrext_cmds=.dll 17423 need_version=no 17424 need_lib_prefix=no 17425 # OS/2 can only load a DLL with a base name of 8 characters or less. 17426 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17427 v=$($ECHO $release$versuffix | tr -d .-); 17428 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17429 $ECHO $n$v`$shared_ext' 17430 library_names_spec='${libname}_dll.$libext' 17431 dynamic_linker='OS/2 ld.exe' 17432 shlibpath_var=BEGINLIBPATH 17433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17435 postinstall_cmds='base_file=`basename \$file`~ 17436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17437 dldir=$destdir/`dirname \$dlpath`~ 17438 test -d \$dldir || mkdir -p \$dldir~ 17439 $install_prog $dir/$dlname \$dldir/$dlname~ 17440 chmod a+x \$dldir/$dlname~ 17441 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17442 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17443 fi' 17444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17445 dlpath=$dir/\$dldll~ 17446 $RM \$dlpath' 17447 ;; 17448 17449osf3* | osf4* | osf5*) 17450 version_type=osf 17451 need_lib_prefix=no 17452 need_version=no 17453 soname_spec='$libname$release$shared_ext$major' 17454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17455 shlibpath_var=LD_LIBRARY_PATH 17456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17458 ;; 17459 17460rdos*) 17461 dynamic_linker=no 17462 ;; 17463 17464solaris*) 17465 version_type=linux # correct to gnu/linux during the next big refactor 17466 need_lib_prefix=no 17467 need_version=no 17468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17469 soname_spec='$libname$release$shared_ext$major' 17470 shlibpath_var=LD_LIBRARY_PATH 17471 shlibpath_overrides_runpath=yes 17472 hardcode_into_libs=yes 17473 # ldd complains unless libraries are executable 17474 postinstall_cmds='chmod +x $lib' 17475 ;; 17476 17477sunos4*) 17478 version_type=sunos 17479 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17481 shlibpath_var=LD_LIBRARY_PATH 17482 shlibpath_overrides_runpath=yes 17483 if test yes = "$with_gnu_ld"; then 17484 need_lib_prefix=no 17485 fi 17486 need_version=yes 17487 ;; 17488 17489sysv4 | sysv4.3*) 17490 version_type=linux # correct to gnu/linux during the next big refactor 17491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17492 soname_spec='$libname$release$shared_ext$major' 17493 shlibpath_var=LD_LIBRARY_PATH 17494 case $host_vendor in 17495 sni) 17496 shlibpath_overrides_runpath=no 17497 need_lib_prefix=no 17498 runpath_var=LD_RUN_PATH 17499 ;; 17500 siemens) 17501 need_lib_prefix=no 17502 ;; 17503 motorola) 17504 need_lib_prefix=no 17505 need_version=no 17506 shlibpath_overrides_runpath=no 17507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17508 ;; 17509 esac 17510 ;; 17511 17512sysv4*MP*) 17513 if test -d /usr/nec; then 17514 version_type=linux # correct to gnu/linux during the next big refactor 17515 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17516 soname_spec='$libname$shared_ext.$major' 17517 shlibpath_var=LD_LIBRARY_PATH 17518 fi 17519 ;; 17520 17521sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17522 version_type=sco 17523 need_lib_prefix=no 17524 need_version=no 17525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17526 soname_spec='$libname$release$shared_ext$major' 17527 shlibpath_var=LD_LIBRARY_PATH 17528 shlibpath_overrides_runpath=yes 17529 hardcode_into_libs=yes 17530 if test yes = "$with_gnu_ld"; then 17531 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17532 else 17533 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17534 case $host_os in 17535 sco3.2v5*) 17536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17537 ;; 17538 esac 17539 fi 17540 sys_lib_dlsearch_path_spec='/usr/lib' 17541 ;; 17542 17543tpf*) 17544 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17545 version_type=linux # correct to gnu/linux during the next big refactor 17546 need_lib_prefix=no 17547 need_version=no 17548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17549 shlibpath_var=LD_LIBRARY_PATH 17550 shlibpath_overrides_runpath=no 17551 hardcode_into_libs=yes 17552 ;; 17553 17554uts4*) 17555 version_type=linux # correct to gnu/linux during the next big refactor 17556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17557 soname_spec='$libname$release$shared_ext$major' 17558 shlibpath_var=LD_LIBRARY_PATH 17559 ;; 17560 17561*) 17562 dynamic_linker=no 17563 ;; 17564esac 17565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17566$as_echo "$dynamic_linker" >&6; } 17567test no = "$dynamic_linker" && can_build_shared=no 17568 17569variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17570if test yes = "$GCC"; then 17571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17572fi 17573 17574if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17575 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17576fi 17577 17578if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17579 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17580fi 17581 17582# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17583configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17584 17585# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17586func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17587 17588# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17589configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17631$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17632hardcode_action_CXX= 17633if test -n "$hardcode_libdir_flag_spec_CXX" || 17634 test -n "$runpath_var_CXX" || 17635 test yes = "$hardcode_automatic_CXX"; then 17636 17637 # We can hardcode non-existent directories. 17638 if test no != "$hardcode_direct_CXX" && 17639 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17640 # have to relink, otherwise we might link with an installed library 17641 # when we should be linking with a yet-to-be-installed one 17642 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17643 test no != "$hardcode_minus_L_CXX"; then 17644 # Linking always hardcodes the temporary library directory. 17645 hardcode_action_CXX=relink 17646 else 17647 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17648 hardcode_action_CXX=immediate 17649 fi 17650else 17651 # We cannot hardcode anything, or else we can only hardcode existing 17652 # directories. 17653 hardcode_action_CXX=unsupported 17654fi 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17656$as_echo "$hardcode_action_CXX" >&6; } 17657 17658if test relink = "$hardcode_action_CXX" || 17659 test yes = "$inherit_rpath_CXX"; then 17660 # Fast installation is not supported 17661 enable_fast_install=no 17662elif test yes = "$shlibpath_overrides_runpath" || 17663 test no = "$enable_shared"; then 17664 # Fast installation is not necessary 17665 enable_fast_install=needless 17666fi 17667 17668 17669 17670 17671 17672 17673 17674 fi # test -n "$compiler" 17675 17676 CC=$lt_save_CC 17677 CFLAGS=$lt_save_CFLAGS 17678 LDCXX=$LD 17679 LD=$lt_save_LD 17680 GCC=$lt_save_GCC 17681 with_gnu_ld=$lt_save_with_gnu_ld 17682 lt_cv_path_LDCXX=$lt_cv_path_LD 17683 lt_cv_path_LD=$lt_save_path_LD 17684 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17685 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17686fi # test yes != "$_lt_caught_CXX_error" 17687 17688ac_ext=c 17689ac_cpp='$CPP $CPPFLAGS' 17690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17692ac_compiler_gnu=$ac_cv_c_compiler_gnu 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 ac_config_commands="$ac_config_commands libtool" 17709 17710 17711 17712 17713# Only expand once: 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 17724$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 17725if ${ac_cv_path_GREP+:} false; then : 17726 $as_echo_n "(cached) " >&6 17727else 17728 if test -z "$GREP"; then 17729 ac_path_GREP_found=false 17730 # Loop through the user's path and test for each of PROGNAME-LIST 17731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 17733do 17734 IFS=$as_save_IFS 17735 test -z "$as_dir" && as_dir=. 17736 for ac_prog in grep ggrep; do 17737 for ac_exec_ext in '' $ac_executable_extensions; do 17738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 17739 as_fn_executable_p "$ac_path_GREP" || continue 17740# Check for GNU ac_path_GREP and select it if it is found. 17741 # Check for GNU $ac_path_GREP 17742case `"$ac_path_GREP" --version 2>&1` in 17743*GNU*) 17744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 17745*) 17746 ac_count=0 17747 $as_echo_n 0123456789 >"conftest.in" 17748 while : 17749 do 17750 cat "conftest.in" "conftest.in" >"conftest.tmp" 17751 mv "conftest.tmp" "conftest.in" 17752 cp "conftest.in" "conftest.nl" 17753 $as_echo 'GREP' >> "conftest.nl" 17754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 17755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 17756 as_fn_arith $ac_count + 1 && ac_count=$as_val 17757 if test $ac_count -gt ${ac_path_GREP_max-0}; then 17758 # Best one so far, save it but keep looking for a better one 17759 ac_cv_path_GREP="$ac_path_GREP" 17760 ac_path_GREP_max=$ac_count 17761 fi 17762 # 10*(2^10) chars as input seems more than enough 17763 test $ac_count -gt 10 && break 17764 done 17765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 17766esac 17767 17768 $ac_path_GREP_found && break 3 17769 done 17770 done 17771 done 17772IFS=$as_save_IFS 17773 if test -z "$ac_cv_path_GREP"; then 17774 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 17775 fi 17776else 17777 ac_cv_path_GREP=$GREP 17778fi 17779 17780fi 17781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 17782$as_echo "$ac_cv_path_GREP" >&6; } 17783 GREP="$ac_cv_path_GREP" 17784 17785 17786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 17787$as_echo_n "checking for a sed that does not truncate output... " >&6; } 17788if ${ac_cv_path_SED+:} false; then : 17789 $as_echo_n "(cached) " >&6 17790else 17791 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 17792 for ac_i in 1 2 3 4 5 6 7; do 17793 ac_script="$ac_script$as_nl$ac_script" 17794 done 17795 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 17796 { ac_script=; unset ac_script;} 17797 if test -z "$SED"; then 17798 ac_path_SED_found=false 17799 # Loop through the user's path and test for each of PROGNAME-LIST 17800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17801for as_dir in $PATH 17802do 17803 IFS=$as_save_IFS 17804 test -z "$as_dir" && as_dir=. 17805 for ac_prog in sed gsed; do 17806 for ac_exec_ext in '' $ac_executable_extensions; do 17807 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 17808 as_fn_executable_p "$ac_path_SED" || continue 17809# Check for GNU ac_path_SED and select it if it is found. 17810 # Check for GNU $ac_path_SED 17811case `"$ac_path_SED" --version 2>&1` in 17812*GNU*) 17813 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 17814*) 17815 ac_count=0 17816 $as_echo_n 0123456789 >"conftest.in" 17817 while : 17818 do 17819 cat "conftest.in" "conftest.in" >"conftest.tmp" 17820 mv "conftest.tmp" "conftest.in" 17821 cp "conftest.in" "conftest.nl" 17822 $as_echo '' >> "conftest.nl" 17823 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 17824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 17825 as_fn_arith $ac_count + 1 && ac_count=$as_val 17826 if test $ac_count -gt ${ac_path_SED_max-0}; then 17827 # Best one so far, save it but keep looking for a better one 17828 ac_cv_path_SED="$ac_path_SED" 17829 ac_path_SED_max=$ac_count 17830 fi 17831 # 10*(2^10) chars as input seems more than enough 17832 test $ac_count -gt 10 && break 17833 done 17834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 17835esac 17836 17837 $ac_path_SED_found && break 3 17838 done 17839 done 17840 done 17841IFS=$as_save_IFS 17842 if test -z "$ac_cv_path_SED"; then 17843 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 17844 fi 17845else 17846 ac_cv_path_SED=$SED 17847fi 17848 17849fi 17850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 17851$as_echo "$ac_cv_path_SED" >&6; } 17852 SED="$ac_cv_path_SED" 17853 rm -f conftest.sed 17854 17855if test "x$with_clang_prefix" != "x"; then 17856 LLVM_CONFIG="$with_clang_prefix/bin/llvm-config" 17857fi 17858# Extract the first word of ""llvm-config"", so it can be a program name with args. 17859set dummy "llvm-config"; ac_word=$2 17860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17861$as_echo_n "checking for $ac_word... " >&6; } 17862if ${ac_cv_path_LLVM_CONFIG+:} false; then : 17863 $as_echo_n "(cached) " >&6 17864else 17865 case $LLVM_CONFIG in 17866 [\\/]* | ?:[\\/]*) 17867 ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path. 17868 ;; 17869 *) 17870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17871for as_dir in $PATH 17872do 17873 IFS=$as_save_IFS 17874 test -z "$as_dir" && as_dir=. 17875 for ac_exec_ext in '' $ac_executable_extensions; do 17876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17877 ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17879 break 2 17880 fi 17881done 17882 done 17883IFS=$as_save_IFS 17884 17885 ;; 17886esac 17887fi 17888LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG 17889if test -n "$LLVM_CONFIG"; then 17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 17891$as_echo "$LLVM_CONFIG" >&6; } 17892else 17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17894$as_echo "no" >&6; } 17895fi 17896 17897 17898if test -z "$LLVM_CONFIG" || test ! -x "$LLVM_CONFIG"; then 17899 as_fn_error $? "llvm-config not found" "$LINENO" 5 17900fi 17901CLANG_CXXFLAGS=`$LLVM_CONFIG --cxxflags | \ 17902 $SED -e 's/-Wcovered-switch-default//;s/-gsplit-dwarf//'` 17903CLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` 17904# Construct a -R argument for libtool. 17905# This is needed in case some of the clang libraries are shared libraries. 17906CLANG_RFLAG=`echo "$CLANG_LDFLAGS" | $SED -e 's/-L/-R/g'` 17907targets=`$LLVM_CONFIG --targets-built` 17908components="$targets asmparser bitreader support mc" 17909# Link in option and frontendopenmp components when available 17910# since they may be used by the clang libraries. 17911for c in option frontendopenmp; do 17912 $LLVM_CONFIG --components | $GREP $c > /dev/null 2> /dev/null 17913 if test $? -eq 0; then 17914 components="$components $c" 17915 fi 17916done 17917CLANG_LIBS=`$LLVM_CONFIG --libs $components` 17918systemlibs=`$LLVM_CONFIG --system-libs 2> /dev/null | tail -1` 17919if test $? -eq 0; then 17920 CLANG_LIBS="$CLANG_LIBS $systemlibs" 17921fi 17922CLANG_PREFIX=`$LLVM_CONFIG --prefix` 17923 17924cat >>confdefs.h <<_ACEOF 17925#define CLANG_PREFIX "$CLANG_PREFIX" 17926_ACEOF 17927 17928 17929# If $CLANG_PREFIX/bin/clang cannot find the standard include files, 17930# then see if setting sysroot to `xcode-select -p`/SDKs/MacOSX.sdk helps. 17931# This may be required on some versions of OS X since they lack /usr/include. 17932# If so, set CLANG_SYSROOT accordingly. 17933SAVE_CC="$CC" 17934CC="$CLANG_PREFIX/bin/clang" 17935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CLANG_PREFIX/bin/clang can find standard include files" >&5 17936$as_echo_n "checking whether $CLANG_PREFIX/bin/clang can find standard include files... " >&6; } 17937found_header=no 17938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17939/* end confdefs.h. */ 17940#include <stdio.h> 17941int 17942main () 17943{ 17944 17945 ; 17946 return 0; 17947} 17948_ACEOF 17949if ac_fn_c_try_compile "$LINENO"; then : 17950 found_header=yes 17951fi 17952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_header" >&5 17954$as_echo "$found_header" >&6; } 17955if test "x$found_header" != "xyes"; then 17956 # Extract the first word of "xcode-select", so it can be a program name with args. 17957set dummy xcode-select; ac_word=$2 17958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17959$as_echo_n "checking for $ac_word... " >&6; } 17960if ${ac_cv_prog_XCODE_SELECT+:} false; then : 17961 $as_echo_n "(cached) " >&6 17962else 17963 if test -n "$XCODE_SELECT"; then 17964 ac_cv_prog_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test. 17965else 17966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17967for as_dir in $PATH 17968do 17969 IFS=$as_save_IFS 17970 test -z "$as_dir" && as_dir=. 17971 for ac_exec_ext in '' $ac_executable_extensions; do 17972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17973 ac_cv_prog_XCODE_SELECT="xcode-select" 17974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17975 break 2 17976 fi 17977done 17978 done 17979IFS=$as_save_IFS 17980 17981fi 17982fi 17983XCODE_SELECT=$ac_cv_prog_XCODE_SELECT 17984if test -n "$XCODE_SELECT"; then 17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 17986$as_echo "$XCODE_SELECT" >&6; } 17987else 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17989$as_echo "no" >&6; } 17990fi 17991 17992 17993 if test -z "$XCODE_SELECT"; then 17994 as_fn_error $? "Cannot find xcode-select" "$LINENO" 5 17995 fi 17996 sysroot=`$XCODE_SELECT -p`/SDKs/MacOSX.sdk 17997 SAVE_CPPFLAGS="$CPPFLAGS" 17998 CPPFLAGS="$CPPFLAGS -isysroot $sysroot" 17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether standard include files can be found with sysroot set" >&5 18000$as_echo_n "checking whether standard include files can be found with sysroot set... " >&6; } 18001 found_header=no 18002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18003/* end confdefs.h. */ 18004#include <stdio.h> 18005int 18006main () 18007{ 18008 18009 ; 18010 return 0; 18011} 18012_ACEOF 18013if ac_fn_c_try_compile "$LINENO"; then : 18014 found_header=yes 18015fi 18016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_header" >&5 18018$as_echo "$found_header" >&6; } 18019 CPPFLAGS="$SAVE_CPPFLAGS" 18020 if test "x$found_header" != "xyes"; then 18021 as_fn_error $? "Cannot find standard include files" "$LINENO" 5 18022 else 18023 18024cat >>confdefs.h <<_ACEOF 18025#define CLANG_SYSROOT "$sysroot" 18026_ACEOF 18027 18028 fi 18029fi 18030CC="$SAVE_CC" 18031 18032ac_ext=cpp 18033ac_cpp='$CXXCPP $CPPFLAGS' 18034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18037 18038 18039SAVE_CPPFLAGS="$CPPFLAGS" 18040CPPFLAGS="$CLANG_CXXFLAGS $CPPFLAGS" 18041ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/SourceLocation.h" "ac_cv_header_clang_Basic_SourceLocation_h" "$ac_includes_default" 18042if test "x$ac_cv_header_clang_Basic_SourceLocation_h" = xyes; then : 18043 18044else 18045 as_fn_error $? "clang header file not found" "$LINENO" 5 18046fi 18047 18048 18049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18050/* end confdefs.h. */ 18051#include <llvm/Support/Host.h> 18052 18053_ACEOF 18054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18055 $EGREP "getDefaultTargetTriple" >/dev/null 2>&1; then : 18056 18057else 18058 18059$as_echo "#define getDefaultTargetTriple getHostTriple" >>confdefs.h 18060 18061fi 18062rm -f conftest* 18063 18064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18065/* end confdefs.h. */ 18066#include <clang/Basic/SourceLocation.h> 18067 18068_ACEOF 18069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18070 $EGREP "getExpansionLineNumber" >/dev/null 2>&1; then : 18071 18072else 18073 18074$as_echo "#define getExpansionLineNumber getInstantiationLineNumber" >>confdefs.h 18075 18076fi 18077rm -f conftest* 18078 18079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18080/* end confdefs.h. */ 18081#include <clang/Basic/SourceManager.h> 18082 18083_ACEOF 18084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18085 $EGREP "getImmediateExpansionRange" >/dev/null 2>&1; then : 18086 18087else 18088 18089$as_echo "#define getImmediateExpansionRange getImmediateInstantiationRange" >>confdefs.h 18090 18091 18092fi 18093rm -f conftest* 18094 18095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18096/* end confdefs.h. */ 18097#include <clang/Basic/Diagnostic.h> 18098 18099_ACEOF 18100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18101 $EGREP "DiagnosticsEngine" >/dev/null 2>&1; then : 18102 18103else 18104 18105$as_echo "#define DiagnosticsEngine Diagnostic" >>confdefs.h 18106 18107fi 18108rm -f conftest* 18109 18110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18111/* end confdefs.h. */ 18112#include <clang/Driver/Driver.h> 18113 18114_ACEOF 18115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18116 $EGREP "ArrayRef" >/dev/null 2>&1; then : 18117 18118$as_echo "#define USE_ARRAYREF /**/" >>confdefs.h 18119 18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18121/* end confdefs.h. */ 18122#include <clang/Frontend/CompilerInvocation.h> 18123 18124_ACEOF 18125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18126 $EGREP "ArrayRef.*CommandLineArgs" >/dev/null 2>&1; then : 18127 18128$as_echo "#define CREATE_FROM_ARGS_TAKES_ARRAYREF /**/" >>confdefs.h 18129 18130 18131fi 18132rm -f conftest* 18133 18134 18135fi 18136rm -f conftest* 18137 18138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18139/* end confdefs.h. */ 18140#include <clang/Driver/Driver.h> 18141 18142_ACEOF 18143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18144 $EGREP "CXXIsProduction" >/dev/null 2>&1; then : 18145 18146$as_echo "#define HAVE_CXXISPRODUCTION /**/" >>confdefs.h 18147 18148fi 18149rm -f conftest* 18150 18151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18152/* end confdefs.h. */ 18153#include <clang/Driver/Driver.h> 18154 18155_ACEOF 18156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18157 $EGREP " IsProduction" >/dev/null 2>&1; then : 18158 18159$as_echo "#define HAVE_ISPRODUCTION /**/" >>confdefs.h 18160 18161fi 18162rm -f conftest* 18163 18164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18165/* end confdefs.h. */ 18166#include <clang/Driver/Driver.h> 18167int 18168main () 18169{ 18170 18171 using namespace clang; 18172 DiagnosticsEngine *Diags; 18173 new driver::Driver("", "", "", *Diags); 18174 18175 ; 18176 return 0; 18177} 18178_ACEOF 18179if ac_fn_cxx_try_compile "$LINENO"; then : 18180 18181$as_echo "#define DRIVER_CTOR_TAKES_DEFAULTIMAGENAME /**/" >>confdefs.h 18182 18183fi 18184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18186/* end confdefs.h. */ 18187#include <clang/AST/ASTConsumer.h> 18188 18189_ACEOF 18190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18191 $EGREP "void HandleTopLevelDecl\(" >/dev/null 2>&1; then : 18192 18193$as_echo "#define HandleTopLevelDeclReturn void" >>confdefs.h 18194 18195 18196$as_echo "#define HandleTopLevelDeclContinue /**/" >>confdefs.h 18197 18198else 18199 18200$as_echo "#define HandleTopLevelDeclReturn bool" >>confdefs.h 18201 18202 18203$as_echo "#define HandleTopLevelDeclContinue true" >>confdefs.h 18204 18205fi 18206rm -f conftest* 18207 18208ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/DiagnosticOptions.h" "ac_cv_header_clang_Basic_DiagnosticOptions_h" "$ac_includes_default" 18209if test "x$ac_cv_header_clang_Basic_DiagnosticOptions_h" = xyes; then : 18210 18211$as_echo "#define HAVE_BASIC_DIAGNOSTICOPTIONS_H /**/" >>confdefs.h 18212 18213fi 18214 18215 18216ac_fn_cxx_check_header_compile "$LINENO" "clang/Lex/PreprocessorOptions.h" "ac_cv_header_clang_Lex_PreprocessorOptions_h" "#include <clang/Basic/LLVM.h> 18217" 18218if test "x$ac_cv_header_clang_Lex_PreprocessorOptions_h" = xyes; then : 18219 18220$as_echo "#define HAVE_LEX_PREPROCESSOROPTIONS_H /**/" >>confdefs.h 18221 18222fi 18223 18224 18225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18226/* end confdefs.h. */ 18227#include <clang/Basic/TargetInfo.h> 18228int 18229main () 18230{ 18231 18232 using namespace clang; 18233 std::shared_ptr<TargetOptions> TO; 18234 DiagnosticsEngine *Diags; 18235 TargetInfo::CreateTargetInfo(*Diags, TO); 18236 18237 ; 18238 return 0; 18239} 18240_ACEOF 18241if ac_fn_cxx_try_compile "$LINENO"; then : 18242 18243$as_echo "#define CREATETARGETINFO_TAKES_SHARED_PTR /**/" >>confdefs.h 18244 18245fi 18246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18248/* end confdefs.h. */ 18249#include <clang/Basic/TargetInfo.h> 18250int 18251main () 18252{ 18253 18254 using namespace clang; 18255 TargetOptions *TO; 18256 DiagnosticsEngine *Diags; 18257 TargetInfo::CreateTargetInfo(*Diags, TO); 18258 18259 ; 18260 return 0; 18261} 18262_ACEOF 18263if ac_fn_cxx_try_compile "$LINENO"; then : 18264 18265$as_echo "#define CREATETARGETINFO_TAKES_POINTER /**/" >>confdefs.h 18266 18267fi 18268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270/* end confdefs.h. */ 18271#include <clang/Frontend/CompilerInstance.h> 18272int 18273main () 18274{ 18275 18276 using namespace clang; 18277 DiagnosticConsumer *client; 18278 CompilerInstance *Clang; 18279 Clang->createDiagnostics(client); 18280 18281 ; 18282 return 0; 18283} 18284_ACEOF 18285if ac_fn_cxx_try_compile "$LINENO"; then : 18286 18287else 18288 18289$as_echo "#define CREATEDIAGNOSTICS_TAKES_ARG /**/" >>confdefs.h 18290 18291fi 18292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18294/* end confdefs.h. */ 18295#include <clang/Lex/HeaderSearchOptions.h> 18296int 18297main () 18298{ 18299 18300 using namespace clang; 18301 HeaderSearchOptions HSO; 18302 HSO.AddPath("", frontend::Angled, false, false); 18303 18304 ; 18305 return 0; 18306} 18307_ACEOF 18308if ac_fn_cxx_try_compile "$LINENO"; then : 18309 18310$as_echo "#define ADDPATH_TAKES_4_ARGUMENTS /**/" >>confdefs.h 18311 18312fi 18313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18315/* end confdefs.h. */ 18316#include <clang/AST/CanonicalType.h> 18317 18318_ACEOF 18319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18320 $EGREP "getNumParams" >/dev/null 2>&1; then : 18321 18322$as_echo "#define getNumArgs getNumParams" >>confdefs.h 18323 18324 18325$as_echo "#define getArgType getParamType" >>confdefs.h 18326 18327fi 18328rm -f conftest* 18329 18330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18331/* end confdefs.h. */ 18332#include <clang/AST/CanonicalType.h> 18333 18334_ACEOF 18335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18336 $EGREP "getReturnType" >/dev/null 2>&1; then : 18337 18338else 18339 18340$as_echo "#define getReturnType getResultType" >>confdefs.h 18341 18342fi 18343rm -f conftest* 18344 18345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18346/* end confdefs.h. */ 18347#include <clang/Frontend/CompilerInstance.h> 18348int 18349main () 18350{ 18351 18352 using namespace clang; 18353 CompilerInstance *Clang; 18354 Clang->createPreprocessor(TU_Complete); 18355 18356 ; 18357 return 0; 18358} 18359_ACEOF 18360if ac_fn_cxx_try_compile "$LINENO"; then : 18361 18362$as_echo "#define CREATEPREPROCESSOR_TAKES_TUKIND /**/" >>confdefs.h 18363 18364fi 18365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18367/* end confdefs.h. */ 18368#include <clang/Basic/SourceManager.h> 18369 18370_ACEOF 18371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18372 $EGREP "setMainFileID" >/dev/null 2>&1; then : 18373 18374$as_echo "#define HAVE_SETMAINFILEID /**/" >>confdefs.h 18375 18376fi 18377rm -f conftest* 18378 18379ac_fn_cxx_check_header_mongrel "$LINENO" "llvm/ADT/OwningPtr.h" "ac_cv_header_llvm_ADT_OwningPtr_h" "$ac_includes_default" 18380if test "x$ac_cv_header_llvm_ADT_OwningPtr_h" = xyes; then : 18381 18382$as_echo "#define HAVE_ADT_OWNINGPTR_H /**/" >>confdefs.h 18383 18384fi 18385 18386 18387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18388/* end confdefs.h. */ 18389#include <clang/Basic/Builtins.h> 18390 18391_ACEOF 18392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18393 $EGREP "initializeBuiltins" >/dev/null 2>&1; then : 18394 18395else 18396 18397$as_echo "#define initializeBuiltins InitializeBuiltins" >>confdefs.h 18398 18399fi 18400rm -f conftest* 18401 18402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18403/* end confdefs.h. */ 18404#include <clang/Frontend/FrontendOptions.h> 18405 18406_ACEOF 18407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18408 $EGREP "IK_C" >/dev/null 2>&1; then : 18409 18410else 18411 ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/LangStandard.h" "ac_cv_header_clang_Basic_LangStandard_h" "$ac_includes_default" 18412if test "x$ac_cv_header_clang_Basic_LangStandard_h" = xyes; then : 18413 IK_C=Language::C 18414else 18415 IK_C=InputKind::C 18416fi 18417 18418 18419 18420cat >>confdefs.h <<_ACEOF 18421#define IK_C $IK_C 18422_ACEOF 18423 18424 18425fi 18426rm -f conftest* 18427 18428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18429/* end confdefs.h. */ 18430 18431 #include <clang/Basic/TargetOptions.h> 18432 #include <clang/Lex/PreprocessorOptions.h> 18433 #include <clang/Frontend/CompilerInstance.h> 18434 18435int 18436main () 18437{ 18438 18439 using namespace clang; 18440 CompilerInstance *Clang; 18441 TargetOptions TO; 18442 llvm::Triple T(TO.Triple); 18443 PreprocessorOptions PO; 18444 CompilerInvocation::setLangDefaults(Clang->getLangOpts(), IK_C, 18445 T, PO, LangStandard::lang_unspecified); 18446 18447 ; 18448 return 0; 18449} 18450_ACEOF 18451if ac_fn_cxx_try_compile "$LINENO"; then : 18452 18453$as_echo "#define SETLANGDEFAULTS_TAKES_5_ARGUMENTS /**/" >>confdefs.h 18454 18455fi 18456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18458/* end confdefs.h. */ 18459 18460 #include <clang/Frontend/CompilerInstance.h> 18461 #include <clang/Frontend/CompilerInvocation.h> 18462 18463int 18464main () 18465{ 18466 18467 using namespace clang; 18468 CompilerInvocation *invocation; 18469 CompilerInstance *Clang; 18470 Clang->setInvocation(std::make_shared<CompilerInvocation>(*invocation)); 18471 18472 ; 18473 return 0; 18474} 18475_ACEOF 18476if ac_fn_cxx_try_compile "$LINENO"; then : 18477 18478$as_echo "#define SETINVOCATION_TAKES_SHARED_PTR /**/" >>confdefs.h 18479 18480fi 18481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18482ac_fn_cxx_check_header_mongrel "$LINENO" "llvm/Option/Arg.h" "ac_cv_header_llvm_Option_Arg_h" "$ac_includes_default" 18483if test "x$ac_cv_header_llvm_Option_Arg_h" = xyes; then : 18484 18485$as_echo "#define HAVE_LLVM_OPTION_ARG_H /**/" >>confdefs.h 18486 18487fi 18488 18489 18490CPPFLAGS="$SAVE_CPPFLAGS" 18491 18492SAVE_LDFLAGS="$LDFLAGS" 18493LDFLAGS="$CLANG_LDFLAGS $LDFLAGS" 18494 18495# Use single libclang-cpp shared library when available. 18496# Otherwise, use a selection of clang libraries that appears to work. 18497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lclang-cpp" >&5 18498$as_echo_n "checking for main in -lclang-cpp... " >&6; } 18499if ${ac_cv_lib_clang_cpp_main+:} false; then : 18500 $as_echo_n "(cached) " >&6 18501else 18502 ac_check_lib_save_LIBS=$LIBS 18503LIBS="-lclang-cpp $LIBS" 18504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18505/* end confdefs.h. */ 18506 18507 18508int 18509main () 18510{ 18511return main (); 18512 ; 18513 return 0; 18514} 18515_ACEOF 18516if ac_fn_cxx_try_link "$LINENO"; then : 18517 ac_cv_lib_clang_cpp_main=yes 18518else 18519 ac_cv_lib_clang_cpp_main=no 18520fi 18521rm -f core conftest.err conftest.$ac_objext \ 18522 conftest$ac_exeext conftest.$ac_ext 18523LIBS=$ac_check_lib_save_LIBS 18524fi 18525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_cpp_main" >&5 18526$as_echo "$ac_cv_lib_clang_cpp_main" >&6; } 18527if test "x$ac_cv_lib_clang_cpp_main" = xyes; then : 18528 have_lib_clang=yes 18529else 18530 have_lib_clang=no 18531fi 18532 18533if test "$have_lib_clang" = yes; then 18534 CLANG_LIBS="-lclang-cpp $CLANG_LIBS" 18535else 18536 CLANG_LIBS="-lclangBasic -lclangDriver $CLANG_LIBS" 18537 CLANG_LIBS="-lclangAnalysis -lclangAST -lclangLex $CLANG_LIBS" 18538 LDFLAGS="$CLANG_LDFLAGS $CLANG_LIBS $SAVE_LDFLAGS" 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lclangEdit" >&5 18540$as_echo_n "checking for main in -lclangEdit... " >&6; } 18541if ${ac_cv_lib_clangEdit_main+:} false; then : 18542 $as_echo_n "(cached) " >&6 18543else 18544 ac_check_lib_save_LIBS=$LIBS 18545LIBS="-lclangEdit $LIBS" 18546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18547/* end confdefs.h. */ 18548 18549 18550int 18551main () 18552{ 18553return main (); 18554 ; 18555 return 0; 18556} 18557_ACEOF 18558if ac_fn_cxx_try_link "$LINENO"; then : 18559 ac_cv_lib_clangEdit_main=yes 18560else 18561 ac_cv_lib_clangEdit_main=no 18562fi 18563rm -f core conftest.err conftest.$ac_objext \ 18564 conftest$ac_exeext conftest.$ac_ext 18565LIBS=$ac_check_lib_save_LIBS 18566fi 18567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangEdit_main" >&5 18568$as_echo "$ac_cv_lib_clangEdit_main" >&6; } 18569if test "x$ac_cv_lib_clangEdit_main" = xyes; then : 18570 LIB_CLANG_EDIT=-lclangEdit 18571fi 18572 18573 CLANG_LIBS="$LIB_CLANG_EDIT $CLANG_LIBS" 18574 CLANG_LIBS="-lclangParse -lclangSema $CLANG_LIBS" 18575 CLANG_LIBS="-lclangFrontend -lclangSerialization $CLANG_LIBS" 18576fi 18577 18578LDFLAGS="$SAVE_LDFLAGS" 18579 18580ac_ext=c 18581ac_cpp='$CPP $CPPFLAGS' 18582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18584ac_compiler_gnu=$ac_cv_c_compiler_gnu 18585 18586 18587 18588CONFIG_STATUS_DEPENDENCIES=$LLVM_CONFIG 18589 18590ac_config_headers="$ac_config_headers isl_config.h" 18591 18592ac_config_files="$ac_config_files Makefile" 18593 18594 18595cat >confcache <<\_ACEOF 18596# This file is a shell script that caches the results of configure 18597# tests run on this system so they can be shared between configure 18598# scripts and configure runs, see configure's option --config-cache. 18599# It is not useful on other systems. If it contains results you don't 18600# want to keep, you may remove or edit it. 18601# 18602# config.status only pays attention to the cache file if you give it 18603# the --recheck option to rerun configure. 18604# 18605# `ac_cv_env_foo' variables (set or unset) will be overridden when 18606# loading this file, other *unset* `ac_cv_foo' will be assigned the 18607# following values. 18608 18609_ACEOF 18610 18611# The following way of writing the cache mishandles newlines in values, 18612# but we know of no workaround that is simple, portable, and efficient. 18613# So, we kill variables containing newlines. 18614# Ultrix sh set writes to stderr and can't be redirected directly, 18615# and sets the high bit in the cache file unless we assign to the vars. 18616( 18617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18618 eval ac_val=\$$ac_var 18619 case $ac_val in #( 18620 *${as_nl}*) 18621 case $ac_var in #( 18622 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18623$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18624 esac 18625 case $ac_var in #( 18626 _ | IFS | as_nl) ;; #( 18627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18628 *) { eval $ac_var=; unset $ac_var;} ;; 18629 esac ;; 18630 esac 18631 done 18632 18633 (set) 2>&1 | 18634 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18635 *${as_nl}ac_space=\ *) 18636 # `set' does not quote correctly, so add quotes: double-quote 18637 # substitution turns \\\\ into \\, and sed turns \\ into \. 18638 sed -n \ 18639 "s/'/'\\\\''/g; 18640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18641 ;; #( 18642 *) 18643 # `set' quotes correctly as required by POSIX, so do not add quotes. 18644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18645 ;; 18646 esac | 18647 sort 18648) | 18649 sed ' 18650 /^ac_cv_env_/b end 18651 t clear 18652 :clear 18653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18654 t end 18655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18656 :end' >>confcache 18657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18658 if test -w "$cache_file"; then 18659 if test "x$cache_file" != "x/dev/null"; then 18660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18661$as_echo "$as_me: updating cache $cache_file" >&6;} 18662 if test ! -f "$cache_file" || test -h "$cache_file"; then 18663 cat confcache >"$cache_file" 18664 else 18665 case $cache_file in #( 18666 */* | ?:*) 18667 mv -f confcache "$cache_file"$$ && 18668 mv -f "$cache_file"$$ "$cache_file" ;; #( 18669 *) 18670 mv -f confcache "$cache_file" ;; 18671 esac 18672 fi 18673 fi 18674 else 18675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18676$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18677 fi 18678fi 18679rm -f confcache 18680 18681test "x$prefix" = xNONE && prefix=$ac_default_prefix 18682# Let make expand exec_prefix. 18683test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18684 18685DEFS=-DHAVE_CONFIG_H 18686 18687ac_libobjs= 18688ac_ltlibobjs= 18689U= 18690for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18691 # 1. Remove the extension, and $U if already installed. 18692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18695 # will be set to the directory where LIBOBJS objects are built. 18696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18698done 18699LIBOBJS=$ac_libobjs 18700 18701LTLIBOBJS=$ac_ltlibobjs 18702 18703 18704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18705$as_echo_n "checking that generated files are newer than configure... " >&6; } 18706 if test -n "$am_sleep_pid"; then 18707 # Hide warnings about reused PIDs. 18708 wait $am_sleep_pid 2>/dev/null 18709 fi 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18711$as_echo "done" >&6; } 18712 if test -n "$EXEEXT"; then 18713 am__EXEEXT_TRUE= 18714 am__EXEEXT_FALSE='#' 18715else 18716 am__EXEEXT_TRUE='#' 18717 am__EXEEXT_FALSE= 18718fi 18719 18720if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18721 as_fn_error $? "conditional \"AMDEP\" was never defined. 18722Usually this means the macro was only invoked conditionally." "$LINENO" 5 18723fi 18724if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18725 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18726Usually this means the macro was only invoked conditionally." "$LINENO" 5 18727fi 18728if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18729 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18730Usually this means the macro was only invoked conditionally." "$LINENO" 5 18731fi 18732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18733 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18734Usually this means the macro was only invoked conditionally." "$LINENO" 5 18735fi 18736if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18737 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18738Usually this means the macro was only invoked conditionally." "$LINENO" 5 18739fi 18740 18741: "${CONFIG_STATUS=./config.status}" 18742ac_write_fail=0 18743ac_clean_files_save=$ac_clean_files 18744ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18745{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18746$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18747as_write_fail=0 18748cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18749#! $SHELL 18750# Generated by $as_me. 18751# Run this file to recreate the current configuration. 18752# Compiler output produced by configure, useful for debugging 18753# configure, is in config.log if it exists. 18754 18755debug=false 18756ac_cs_recheck=false 18757ac_cs_silent=false 18758 18759SHELL=\${CONFIG_SHELL-$SHELL} 18760export SHELL 18761_ASEOF 18762cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18763## -------------------- ## 18764## M4sh Initialization. ## 18765## -------------------- ## 18766 18767# Be more Bourne compatible 18768DUALCASE=1; export DUALCASE # for MKS sh 18769if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18770 emulate sh 18771 NULLCMD=: 18772 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18773 # is contrary to our usage. Disable this feature. 18774 alias -g '${1+"$@"}'='"$@"' 18775 setopt NO_GLOB_SUBST 18776else 18777 case `(set -o) 2>/dev/null` in #( 18778 *posix*) : 18779 set -o posix ;; #( 18780 *) : 18781 ;; 18782esac 18783fi 18784 18785 18786as_nl=' 18787' 18788export as_nl 18789# Printing a long string crashes Solaris 7 /usr/bin/printf. 18790as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18792as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18793# Prefer a ksh shell builtin over an external printf program on Solaris, 18794# but without wasting forks for bash or zsh. 18795if test -z "$BASH_VERSION$ZSH_VERSION" \ 18796 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18797 as_echo='print -r --' 18798 as_echo_n='print -rn --' 18799elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18800 as_echo='printf %s\n' 18801 as_echo_n='printf %s' 18802else 18803 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18804 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18805 as_echo_n='/usr/ucb/echo -n' 18806 else 18807 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18808 as_echo_n_body='eval 18809 arg=$1; 18810 case $arg in #( 18811 *"$as_nl"*) 18812 expr "X$arg" : "X\\(.*\\)$as_nl"; 18813 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18814 esac; 18815 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18816 ' 18817 export as_echo_n_body 18818 as_echo_n='sh -c $as_echo_n_body as_echo' 18819 fi 18820 export as_echo_body 18821 as_echo='sh -c $as_echo_body as_echo' 18822fi 18823 18824# The user is always right. 18825if test "${PATH_SEPARATOR+set}" != set; then 18826 PATH_SEPARATOR=: 18827 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18828 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18829 PATH_SEPARATOR=';' 18830 } 18831fi 18832 18833 18834# IFS 18835# We need space, tab and new line, in precisely that order. Quoting is 18836# there to prevent editors from complaining about space-tab. 18837# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18838# splitting by setting IFS to empty value.) 18839IFS=" "" $as_nl" 18840 18841# Find who we are. Look in the path if we contain no directory separator. 18842as_myself= 18843case $0 in #(( 18844 *[\\/]* ) as_myself=$0 ;; 18845 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18846for as_dir in $PATH 18847do 18848 IFS=$as_save_IFS 18849 test -z "$as_dir" && as_dir=. 18850 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18851 done 18852IFS=$as_save_IFS 18853 18854 ;; 18855esac 18856# We did not find ourselves, most probably we were run as `sh COMMAND' 18857# in which case we are not to be found in the path. 18858if test "x$as_myself" = x; then 18859 as_myself=$0 18860fi 18861if test ! -f "$as_myself"; then 18862 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18863 exit 1 18864fi 18865 18866# Unset variables that we do not need and which cause bugs (e.g. in 18867# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18868# suppresses any "Segmentation fault" message there. '((' could 18869# trigger a bug in pdksh 5.2.14. 18870for as_var in BASH_ENV ENV MAIL MAILPATH 18871do eval test x\${$as_var+set} = xset \ 18872 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18873done 18874PS1='$ ' 18875PS2='> ' 18876PS4='+ ' 18877 18878# NLS nuisances. 18879LC_ALL=C 18880export LC_ALL 18881LANGUAGE=C 18882export LANGUAGE 18883 18884# CDPATH. 18885(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18886 18887 18888# as_fn_error STATUS ERROR [LINENO LOG_FD] 18889# ---------------------------------------- 18890# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18891# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18892# script with STATUS, using 1 if that was 0. 18893as_fn_error () 18894{ 18895 as_status=$1; test $as_status -eq 0 && as_status=1 18896 if test "$4"; then 18897 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18898 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18899 fi 18900 $as_echo "$as_me: error: $2" >&2 18901 as_fn_exit $as_status 18902} # as_fn_error 18903 18904 18905# as_fn_set_status STATUS 18906# ----------------------- 18907# Set $? to STATUS, without forking. 18908as_fn_set_status () 18909{ 18910 return $1 18911} # as_fn_set_status 18912 18913# as_fn_exit STATUS 18914# ----------------- 18915# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18916as_fn_exit () 18917{ 18918 set +e 18919 as_fn_set_status $1 18920 exit $1 18921} # as_fn_exit 18922 18923# as_fn_unset VAR 18924# --------------- 18925# Portably unset VAR. 18926as_fn_unset () 18927{ 18928 { eval $1=; unset $1;} 18929} 18930as_unset=as_fn_unset 18931# as_fn_append VAR VALUE 18932# ---------------------- 18933# Append the text in VALUE to the end of the definition contained in VAR. Take 18934# advantage of any shell optimizations that allow amortized linear growth over 18935# repeated appends, instead of the typical quadratic growth present in naive 18936# implementations. 18937if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18938 eval 'as_fn_append () 18939 { 18940 eval $1+=\$2 18941 }' 18942else 18943 as_fn_append () 18944 { 18945 eval $1=\$$1\$2 18946 } 18947fi # as_fn_append 18948 18949# as_fn_arith ARG... 18950# ------------------ 18951# Perform arithmetic evaluation on the ARGs, and store the result in the 18952# global $as_val. Take advantage of shells that can avoid forks. The arguments 18953# must be portable across $(()) and expr. 18954if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18955 eval 'as_fn_arith () 18956 { 18957 as_val=$(( $* )) 18958 }' 18959else 18960 as_fn_arith () 18961 { 18962 as_val=`expr "$@" || test $? -eq 1` 18963 } 18964fi # as_fn_arith 18965 18966 18967if expr a : '\(a\)' >/dev/null 2>&1 && 18968 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18969 as_expr=expr 18970else 18971 as_expr=false 18972fi 18973 18974if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18975 as_basename=basename 18976else 18977 as_basename=false 18978fi 18979 18980if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18981 as_dirname=dirname 18982else 18983 as_dirname=false 18984fi 18985 18986as_me=`$as_basename -- "$0" || 18987$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18988 X"$0" : 'X\(//\)$' \| \ 18989 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18990$as_echo X/"$0" | 18991 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18992 s//\1/ 18993 q 18994 } 18995 /^X\/\(\/\/\)$/{ 18996 s//\1/ 18997 q 18998 } 18999 /^X\/\(\/\).*/{ 19000 s//\1/ 19001 q 19002 } 19003 s/.*/./; q'` 19004 19005# Avoid depending upon Character Ranges. 19006as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19007as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19008as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19009as_cr_digits='0123456789' 19010as_cr_alnum=$as_cr_Letters$as_cr_digits 19011 19012ECHO_C= ECHO_N= ECHO_T= 19013case `echo -n x` in #((((( 19014-n*) 19015 case `echo 'xy\c'` in 19016 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19017 xy) ECHO_C='\c';; 19018 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19019 ECHO_T=' ';; 19020 esac;; 19021*) 19022 ECHO_N='-n';; 19023esac 19024 19025rm -f conf$$ conf$$.exe conf$$.file 19026if test -d conf$$.dir; then 19027 rm -f conf$$.dir/conf$$.file 19028else 19029 rm -f conf$$.dir 19030 mkdir conf$$.dir 2>/dev/null 19031fi 19032if (echo >conf$$.file) 2>/dev/null; then 19033 if ln -s conf$$.file conf$$ 2>/dev/null; then 19034 as_ln_s='ln -s' 19035 # ... but there are two gotchas: 19036 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19037 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19038 # In both cases, we have to default to `cp -pR'. 19039 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19040 as_ln_s='cp -pR' 19041 elif ln conf$$.file conf$$ 2>/dev/null; then 19042 as_ln_s=ln 19043 else 19044 as_ln_s='cp -pR' 19045 fi 19046else 19047 as_ln_s='cp -pR' 19048fi 19049rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19050rmdir conf$$.dir 2>/dev/null 19051 19052 19053# as_fn_mkdir_p 19054# ------------- 19055# Create "$as_dir" as a directory, including parents if necessary. 19056as_fn_mkdir_p () 19057{ 19058 19059 case $as_dir in #( 19060 -*) as_dir=./$as_dir;; 19061 esac 19062 test -d "$as_dir" || eval $as_mkdir_p || { 19063 as_dirs= 19064 while :; do 19065 case $as_dir in #( 19066 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19067 *) as_qdir=$as_dir;; 19068 esac 19069 as_dirs="'$as_qdir' $as_dirs" 19070 as_dir=`$as_dirname -- "$as_dir" || 19071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19072 X"$as_dir" : 'X\(//\)[^/]' \| \ 19073 X"$as_dir" : 'X\(//\)$' \| \ 19074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19075$as_echo X"$as_dir" | 19076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19077 s//\1/ 19078 q 19079 } 19080 /^X\(\/\/\)[^/].*/{ 19081 s//\1/ 19082 q 19083 } 19084 /^X\(\/\/\)$/{ 19085 s//\1/ 19086 q 19087 } 19088 /^X\(\/\).*/{ 19089 s//\1/ 19090 q 19091 } 19092 s/.*/./; q'` 19093 test -d "$as_dir" && break 19094 done 19095 test -z "$as_dirs" || eval "mkdir $as_dirs" 19096 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19097 19098 19099} # as_fn_mkdir_p 19100if mkdir -p . 2>/dev/null; then 19101 as_mkdir_p='mkdir -p "$as_dir"' 19102else 19103 test -d ./-p && rmdir ./-p 19104 as_mkdir_p=false 19105fi 19106 19107 19108# as_fn_executable_p FILE 19109# ----------------------- 19110# Test if FILE is an executable regular file. 19111as_fn_executable_p () 19112{ 19113 test -f "$1" && test -x "$1" 19114} # as_fn_executable_p 19115as_test_x='test -x' 19116as_executable_p=as_fn_executable_p 19117 19118# Sed expression to map a string onto a valid CPP name. 19119as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19120 19121# Sed expression to map a string onto a valid variable name. 19122as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19123 19124 19125exec 6>&1 19126## ----------------------------------- ## 19127## Main body of $CONFIG_STATUS script. ## 19128## ----------------------------------- ## 19129_ASEOF 19130test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19131 19132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19133# Save the log message, to keep $0 and so on meaningful, and to 19134# report actual input values of CONFIG_FILES etc. instead of their 19135# values after options handling. 19136ac_log=" 19137This file was extended by isl-interface $as_me 0, which was 19138generated by GNU Autoconf 2.69. Invocation command line was 19139 19140 CONFIG_FILES = $CONFIG_FILES 19141 CONFIG_HEADERS = $CONFIG_HEADERS 19142 CONFIG_LINKS = $CONFIG_LINKS 19143 CONFIG_COMMANDS = $CONFIG_COMMANDS 19144 $ $0 $@ 19145 19146on `(hostname || uname -n) 2>/dev/null | sed 1q` 19147" 19148 19149_ACEOF 19150 19151case $ac_config_files in *" 19152"*) set x $ac_config_files; shift; ac_config_files=$*;; 19153esac 19154 19155case $ac_config_headers in *" 19156"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19157esac 19158 19159 19160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19161# Files that config.status was made for. 19162config_files="$ac_config_files" 19163config_headers="$ac_config_headers" 19164config_commands="$ac_config_commands" 19165 19166_ACEOF 19167 19168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19169ac_cs_usage="\ 19170\`$as_me' instantiates files and other configuration actions 19171from templates according to the current configuration. Unless the files 19172and actions are specified as TAGs, all are instantiated by default. 19173 19174Usage: $0 [OPTION]... [TAG]... 19175 19176 -h, --help print this help, then exit 19177 -V, --version print version number and configuration settings, then exit 19178 --config print configuration, then exit 19179 -q, --quiet, --silent 19180 do not print progress messages 19181 -d, --debug don't remove temporary files 19182 --recheck update $as_me by reconfiguring in the same conditions 19183 --file=FILE[:TEMPLATE] 19184 instantiate the configuration file FILE 19185 --header=FILE[:TEMPLATE] 19186 instantiate the configuration header FILE 19187 19188Configuration files: 19189$config_files 19190 19191Configuration headers: 19192$config_headers 19193 19194Configuration commands: 19195$config_commands 19196 19197Report bugs to <isl-development@googlegroups.com>." 19198 19199_ACEOF 19200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19201ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19202ac_cs_version="\\ 19203isl-interface config.status 0 19204configured by $0, generated by GNU Autoconf 2.69, 19205 with options \\"\$ac_cs_config\\" 19206 19207Copyright (C) 2012 Free Software Foundation, Inc. 19208This config.status script is free software; the Free Software Foundation 19209gives unlimited permission to copy, distribute and modify it." 19210 19211ac_pwd='$ac_pwd' 19212srcdir='$srcdir' 19213INSTALL='$INSTALL' 19214MKDIR_P='$MKDIR_P' 19215AWK='$AWK' 19216test -n "\$AWK" || AWK=awk 19217_ACEOF 19218 19219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19220# The default lists apply if the user does not specify any file. 19221ac_need_defaults=: 19222while test $# != 0 19223do 19224 case $1 in 19225 --*=?*) 19226 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19228 ac_shift=: 19229 ;; 19230 --*=) 19231 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19232 ac_optarg= 19233 ac_shift=: 19234 ;; 19235 *) 19236 ac_option=$1 19237 ac_optarg=$2 19238 ac_shift=shift 19239 ;; 19240 esac 19241 19242 case $ac_option in 19243 # Handling of the options. 19244 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19245 ac_cs_recheck=: ;; 19246 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19247 $as_echo "$ac_cs_version"; exit ;; 19248 --config | --confi | --conf | --con | --co | --c ) 19249 $as_echo "$ac_cs_config"; exit ;; 19250 --debug | --debu | --deb | --de | --d | -d ) 19251 debug=: ;; 19252 --file | --fil | --fi | --f ) 19253 $ac_shift 19254 case $ac_optarg in 19255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19256 '') as_fn_error $? "missing file argument" ;; 19257 esac 19258 as_fn_append CONFIG_FILES " '$ac_optarg'" 19259 ac_need_defaults=false;; 19260 --header | --heade | --head | --hea ) 19261 $ac_shift 19262 case $ac_optarg in 19263 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19264 esac 19265 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19266 ac_need_defaults=false;; 19267 --he | --h) 19268 # Conflict between --help and --header 19269 as_fn_error $? "ambiguous option: \`$1' 19270Try \`$0 --help' for more information.";; 19271 --help | --hel | -h ) 19272 $as_echo "$ac_cs_usage"; exit ;; 19273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19274 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19275 ac_cs_silent=: ;; 19276 19277 # This is an error. 19278 -*) as_fn_error $? "unrecognized option: \`$1' 19279Try \`$0 --help' for more information." ;; 19280 19281 *) as_fn_append ac_config_targets " $1" 19282 ac_need_defaults=false ;; 19283 19284 esac 19285 shift 19286done 19287 19288ac_configure_extra_args= 19289 19290if $ac_cs_silent; then 19291 exec 6>/dev/null 19292 ac_configure_extra_args="$ac_configure_extra_args --silent" 19293fi 19294 19295_ACEOF 19296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19297if \$ac_cs_recheck; then 19298 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19299 shift 19300 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19301 CONFIG_SHELL='$SHELL' 19302 export CONFIG_SHELL 19303 exec "\$@" 19304fi 19305 19306_ACEOF 19307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19308exec 5>>config.log 19309{ 19310 echo 19311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19312## Running $as_me. ## 19313_ASBOX 19314 $as_echo "$ac_log" 19315} >&5 19316 19317_ACEOF 19318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19319# 19320# INIT-COMMANDS 19321# 19322AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19323 19324 19325# The HP-UX ksh and POSIX shell print the target directory to stdout 19326# if CDPATH is set. 19327(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19328 19329sed_quote_subst='$sed_quote_subst' 19330double_quote_subst='$double_quote_subst' 19331delay_variable_subst='$delay_variable_subst' 19332enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19333macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19334macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19335enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19336pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19337enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19338shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19339SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19340ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19341PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19342host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19343host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19344host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19345build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19346build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19347build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19348SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19349Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19350GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19351EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19352FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19353LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19354NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19355LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19356max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19357ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19358exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19359lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19360lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19361lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19362lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19363lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19364reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19365reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19366OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19367deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19368file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19369file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19370want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19371DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19372sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19373AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19374AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19375archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19376STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19377RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19378old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19379old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19380old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19381lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19382CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19383CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19384compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19385GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19386lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19387lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19388lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19389lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19390lt_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"`' 19391lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19392nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19393lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19394lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19395objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19396MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19397lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19398lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19399lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19400lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19401lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19402need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19403MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19404DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19405NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19406LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19407OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19408OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19409libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19410shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19411extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19412archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19413enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19414export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19415whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19416compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19417old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19418old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19419archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19420archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19421module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19422module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19423with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19424allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19425no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19426hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19427hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19428hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19429hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19430hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19431hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19432hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19433inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19434link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19435always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19436export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19437exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19438include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19439prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19440postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19441file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19442variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19443need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19444need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19445version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19446runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19447shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19448shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19449libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19450library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19451soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19452install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19453postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19454postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19455finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19456finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19457hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19458sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19459configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19460configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19461hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19462enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19463enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19464enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19465old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19466striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19467compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19468predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19469postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19470predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19471postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19472compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19473LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19474reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19475reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19476old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19477compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19478GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19479lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19480lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19481lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19482lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19483lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19484archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19485enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19486export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19487whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19488compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19489old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19490old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19491archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19492archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19493module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19494module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19495with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19496allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19497no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19498hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19499hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19500hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19501hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19502hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19503hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19504hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19505inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19506link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19507always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19508export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19509exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19510include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19511prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19512postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19513file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19514hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19515compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19516predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19517postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19518predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19519postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19520compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19521 19522LTCC='$LTCC' 19523LTCFLAGS='$LTCFLAGS' 19524compiler='$compiler_DEFAULT' 19525 19526# A function that is used when there is no print builtin or printf. 19527func_fallback_echo () 19528{ 19529 eval 'cat <<_LTECHO_EOF 19530\$1 19531_LTECHO_EOF' 19532} 19533 19534# Quote evaled strings. 19535for var in SHELL \ 19536ECHO \ 19537PATH_SEPARATOR \ 19538SED \ 19539GREP \ 19540EGREP \ 19541FGREP \ 19542LD \ 19543NM \ 19544LN_S \ 19545lt_SP2NL \ 19546lt_NL2SP \ 19547reload_flag \ 19548OBJDUMP \ 19549deplibs_check_method \ 19550file_magic_cmd \ 19551file_magic_glob \ 19552want_nocaseglob \ 19553DLLTOOL \ 19554sharedlib_from_linklib_cmd \ 19555AR \ 19556AR_FLAGS \ 19557archiver_list_spec \ 19558STRIP \ 19559RANLIB \ 19560CC \ 19561CFLAGS \ 19562compiler \ 19563lt_cv_sys_global_symbol_pipe \ 19564lt_cv_sys_global_symbol_to_cdecl \ 19565lt_cv_sys_global_symbol_to_import \ 19566lt_cv_sys_global_symbol_to_c_name_address \ 19567lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19568lt_cv_nm_interface \ 19569nm_file_list_spec \ 19570lt_cv_truncate_bin \ 19571lt_prog_compiler_no_builtin_flag \ 19572lt_prog_compiler_pic \ 19573lt_prog_compiler_wl \ 19574lt_prog_compiler_static \ 19575lt_cv_prog_compiler_c_o \ 19576need_locks \ 19577MANIFEST_TOOL \ 19578DSYMUTIL \ 19579NMEDIT \ 19580LIPO \ 19581OTOOL \ 19582OTOOL64 \ 19583shrext_cmds \ 19584export_dynamic_flag_spec \ 19585whole_archive_flag_spec \ 19586compiler_needs_object \ 19587with_gnu_ld \ 19588allow_undefined_flag \ 19589no_undefined_flag \ 19590hardcode_libdir_flag_spec \ 19591hardcode_libdir_separator \ 19592exclude_expsyms \ 19593include_expsyms \ 19594file_list_spec \ 19595variables_saved_for_relink \ 19596libname_spec \ 19597library_names_spec \ 19598soname_spec \ 19599install_override_mode \ 19600finish_eval \ 19601old_striplib \ 19602striplib \ 19603compiler_lib_search_dirs \ 19604predep_objects \ 19605postdep_objects \ 19606predeps \ 19607postdeps \ 19608compiler_lib_search_path \ 19609LD_CXX \ 19610reload_flag_CXX \ 19611compiler_CXX \ 19612lt_prog_compiler_no_builtin_flag_CXX \ 19613lt_prog_compiler_pic_CXX \ 19614lt_prog_compiler_wl_CXX \ 19615lt_prog_compiler_static_CXX \ 19616lt_cv_prog_compiler_c_o_CXX \ 19617export_dynamic_flag_spec_CXX \ 19618whole_archive_flag_spec_CXX \ 19619compiler_needs_object_CXX \ 19620with_gnu_ld_CXX \ 19621allow_undefined_flag_CXX \ 19622no_undefined_flag_CXX \ 19623hardcode_libdir_flag_spec_CXX \ 19624hardcode_libdir_separator_CXX \ 19625exclude_expsyms_CXX \ 19626include_expsyms_CXX \ 19627file_list_spec_CXX \ 19628compiler_lib_search_dirs_CXX \ 19629predep_objects_CXX \ 19630postdep_objects_CXX \ 19631predeps_CXX \ 19632postdeps_CXX \ 19633compiler_lib_search_path_CXX; do 19634 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19635 *[\\\\\\\`\\"\\\$]*) 19636 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19637 ;; 19638 *) 19639 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19640 ;; 19641 esac 19642done 19643 19644# Double-quote double-evaled strings. 19645for var in reload_cmds \ 19646old_postinstall_cmds \ 19647old_postuninstall_cmds \ 19648old_archive_cmds \ 19649extract_expsyms_cmds \ 19650old_archive_from_new_cmds \ 19651old_archive_from_expsyms_cmds \ 19652archive_cmds \ 19653archive_expsym_cmds \ 19654module_cmds \ 19655module_expsym_cmds \ 19656export_symbols_cmds \ 19657prelink_cmds \ 19658postlink_cmds \ 19659postinstall_cmds \ 19660postuninstall_cmds \ 19661finish_cmds \ 19662sys_lib_search_path_spec \ 19663configure_time_dlsearch_path \ 19664configure_time_lt_sys_library_path \ 19665reload_cmds_CXX \ 19666old_archive_cmds_CXX \ 19667old_archive_from_new_cmds_CXX \ 19668old_archive_from_expsyms_cmds_CXX \ 19669archive_cmds_CXX \ 19670archive_expsym_cmds_CXX \ 19671module_cmds_CXX \ 19672module_expsym_cmds_CXX \ 19673export_symbols_cmds_CXX \ 19674prelink_cmds_CXX \ 19675postlink_cmds_CXX; do 19676 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19677 *[\\\\\\\`\\"\\\$]*) 19678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19679 ;; 19680 *) 19681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19682 ;; 19683 esac 19684done 19685 19686ac_aux_dir='$ac_aux_dir' 19687 19688# See if we are running on zsh, and set the options that allow our 19689# commands through without removal of \ escapes INIT. 19690if test -n "\${ZSH_VERSION+set}"; then 19691 setopt NO_GLOB_SUBST 19692fi 19693 19694 19695 PACKAGE='$PACKAGE' 19696 VERSION='$VERSION' 19697 RM='$RM' 19698 ofile='$ofile' 19699 19700 19701 19702 19703 19704 19705_ACEOF 19706 19707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19708 19709# Handling of arguments. 19710for ac_config_target in $ac_config_targets 19711do 19712 case $ac_config_target in 19713 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19714 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19715 "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;; 19716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19717 19718 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19719 esac 19720done 19721 19722 19723# If the user did not use the arguments to specify the items to instantiate, 19724# then the envvar interface is used. Set only those that are not. 19725# We use the long form for the default assignment because of an extremely 19726# bizarre bug on SunOS 4.1.3. 19727if $ac_need_defaults; then 19728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19731fi 19732 19733# Have a temporary directory for convenience. Make it in the build tree 19734# simply because there is no reason against having it here, and in addition, 19735# creating and moving files from /tmp can sometimes cause problems. 19736# Hook for its removal unless debugging. 19737# Note that there is a small window in which the directory will not be cleaned: 19738# after its creation but before its name has been assigned to `$tmp'. 19739$debug || 19740{ 19741 tmp= ac_tmp= 19742 trap 'exit_status=$? 19743 : "${ac_tmp:=$tmp}" 19744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19745' 0 19746 trap 'as_fn_exit 1' 1 2 13 15 19747} 19748# Create a (secure) tmp directory for tmp files. 19749 19750{ 19751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19752 test -d "$tmp" 19753} || 19754{ 19755 tmp=./conf$$-$RANDOM 19756 (umask 077 && mkdir "$tmp") 19757} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19758ac_tmp=$tmp 19759 19760# Set up the scripts for CONFIG_FILES section. 19761# No need to generate them if there are no CONFIG_FILES. 19762# This happens for instance with `./config.status config.h'. 19763if test -n "$CONFIG_FILES"; then 19764 19765 19766ac_cr=`echo X | tr X '\015'` 19767# On cygwin, bash can eat \r inside `` if the user requested igncr. 19768# But we know of no other shell where ac_cr would be empty at this 19769# point, so we can use a bashism as a fallback. 19770if test "x$ac_cr" = x; then 19771 eval ac_cr=\$\'\\r\' 19772fi 19773ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19774if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19775 ac_cs_awk_cr='\\r' 19776else 19777 ac_cs_awk_cr=$ac_cr 19778fi 19779 19780echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19781_ACEOF 19782 19783 19784{ 19785 echo "cat >conf$$subs.awk <<_ACEOF" && 19786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19787 echo "_ACEOF" 19788} >conf$$subs.sh || 19789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19790ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19791ac_delim='%!_!# ' 19792for ac_last_try in false false false false false :; do 19793 . ./conf$$subs.sh || 19794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19795 19796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19797 if test $ac_delim_n = $ac_delim_num; then 19798 break 19799 elif $ac_last_try; then 19800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19801 else 19802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19803 fi 19804done 19805rm -f conf$$subs.sh 19806 19807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19808cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19809_ACEOF 19810sed -n ' 19811h 19812s/^/S["/; s/!.*/"]=/ 19813p 19814g 19815s/^[^!]*!// 19816:repl 19817t repl 19818s/'"$ac_delim"'$// 19819t delim 19820:nl 19821h 19822s/\(.\{148\}\)..*/\1/ 19823t more1 19824s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19825p 19826n 19827b repl 19828:more1 19829s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19830p 19831g 19832s/.\{148\}// 19833t nl 19834:delim 19835h 19836s/\(.\{148\}\)..*/\1/ 19837t more2 19838s/["\\]/\\&/g; s/^/"/; s/$/"/ 19839p 19840b 19841:more2 19842s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19843p 19844g 19845s/.\{148\}// 19846t delim 19847' <conf$$subs.awk | sed ' 19848/^[^""]/{ 19849 N 19850 s/\n// 19851} 19852' >>$CONFIG_STATUS || ac_write_fail=1 19853rm -f conf$$subs.awk 19854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19855_ACAWK 19856cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19857 for (key in S) S_is_set[key] = 1 19858 FS = "" 19859 19860} 19861{ 19862 line = $ 0 19863 nfields = split(line, field, "@") 19864 substed = 0 19865 len = length(field[1]) 19866 for (i = 2; i < nfields; i++) { 19867 key = field[i] 19868 keylen = length(key) 19869 if (S_is_set[key]) { 19870 value = S[key] 19871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19872 len += length(value) + length(field[++i]) 19873 substed = 1 19874 } else 19875 len += 1 + keylen 19876 } 19877 19878 print line 19879} 19880 19881_ACAWK 19882_ACEOF 19883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19884if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19886else 19887 cat 19888fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19889 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19890_ACEOF 19891 19892# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19893# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19894# trailing colons and then remove the whole line if VPATH becomes empty 19895# (actually we leave an empty line to preserve line numbers). 19896if test "x$srcdir" = x.; then 19897 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19898h 19899s/// 19900s/^/:/ 19901s/[ ]*$/:/ 19902s/:\$(srcdir):/:/g 19903s/:\${srcdir}:/:/g 19904s/:@srcdir@:/:/g 19905s/^:*// 19906s/:*$// 19907x 19908s/\(=[ ]*\).*/\1/ 19909G 19910s/\n// 19911s/^[^=]*=[ ]*$// 19912}' 19913fi 19914 19915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19916fi # test -n "$CONFIG_FILES" 19917 19918# Set up the scripts for CONFIG_HEADERS section. 19919# No need to generate them if there are no CONFIG_HEADERS. 19920# This happens for instance with `./config.status Makefile'. 19921if test -n "$CONFIG_HEADERS"; then 19922cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19923BEGIN { 19924_ACEOF 19925 19926# Transform confdefs.h into an awk script `defines.awk', embedded as 19927# here-document in config.status, that substitutes the proper values into 19928# config.h.in to produce config.h. 19929 19930# Create a delimiter string that does not exist in confdefs.h, to ease 19931# handling of long lines. 19932ac_delim='%!_!# ' 19933for ac_last_try in false false :; do 19934 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19935 if test -z "$ac_tt"; then 19936 break 19937 elif $ac_last_try; then 19938 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19939 else 19940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19941 fi 19942done 19943 19944# For the awk script, D is an array of macro values keyed by name, 19945# likewise P contains macro parameters if any. Preserve backslash 19946# newline sequences. 19947 19948ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19949sed -n ' 19950s/.\{148\}/&'"$ac_delim"'/g 19951t rset 19952:rset 19953s/^[ ]*#[ ]*define[ ][ ]*/ / 19954t def 19955d 19956:def 19957s/\\$// 19958t bsnl 19959s/["\\]/\\&/g 19960s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19961D["\1"]=" \3"/p 19962s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19963d 19964:bsnl 19965s/["\\]/\\&/g 19966s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19967D["\1"]=" \3\\\\\\n"\\/p 19968t cont 19969s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19970t cont 19971d 19972:cont 19973n 19974s/.\{148\}/&'"$ac_delim"'/g 19975t clear 19976:clear 19977s/\\$// 19978t bsnlc 19979s/["\\]/\\&/g; s/^/"/; s/$/"/p 19980d 19981:bsnlc 19982s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19983b cont 19984' <confdefs.h | sed ' 19985s/'"$ac_delim"'/"\\\ 19986"/g' >>$CONFIG_STATUS || ac_write_fail=1 19987 19988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19989 for (key in D) D_is_set[key] = 1 19990 FS = "" 19991} 19992/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19993 line = \$ 0 19994 split(line, arg, " ") 19995 if (arg[1] == "#") { 19996 defundef = arg[2] 19997 mac1 = arg[3] 19998 } else { 19999 defundef = substr(arg[1], 2) 20000 mac1 = arg[2] 20001 } 20002 split(mac1, mac2, "(") #) 20003 macro = mac2[1] 20004 prefix = substr(line, 1, index(line, defundef) - 1) 20005 if (D_is_set[macro]) { 20006 # Preserve the white space surrounding the "#". 20007 print prefix "define", macro P[macro] D[macro] 20008 next 20009 } else { 20010 # Replace #undef with comments. This is necessary, for example, 20011 # in the case of _POSIX_SOURCE, which is predefined and required 20012 # on some systems where configure will not decide to define it. 20013 if (defundef == "undef") { 20014 print "/*", prefix defundef, macro, "*/" 20015 next 20016 } 20017 } 20018} 20019{ print } 20020_ACAWK 20021_ACEOF 20022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20023 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20024fi # test -n "$CONFIG_HEADERS" 20025 20026 20027eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20028shift 20029for ac_tag 20030do 20031 case $ac_tag in 20032 :[FHLC]) ac_mode=$ac_tag; continue;; 20033 esac 20034 case $ac_mode$ac_tag in 20035 :[FHL]*:*);; 20036 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20037 :[FH]-) ac_tag=-:-;; 20038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20039 esac 20040 ac_save_IFS=$IFS 20041 IFS=: 20042 set x $ac_tag 20043 IFS=$ac_save_IFS 20044 shift 20045 ac_file=$1 20046 shift 20047 20048 case $ac_mode in 20049 :L) ac_source=$1;; 20050 :[FH]) 20051 ac_file_inputs= 20052 for ac_f 20053 do 20054 case $ac_f in 20055 -) ac_f="$ac_tmp/stdin";; 20056 *) # Look for the file first in the build tree, then in the source tree 20057 # (if the path is not absolute). The absolute path cannot be DOS-style, 20058 # because $ac_f cannot contain `:'. 20059 test -f "$ac_f" || 20060 case $ac_f in 20061 [\\/$]*) false;; 20062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20063 esac || 20064 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20065 esac 20066 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20067 as_fn_append ac_file_inputs " '$ac_f'" 20068 done 20069 20070 # Let's still pretend it is `configure' which instantiates (i.e., don't 20071 # use $as_me), people would be surprised to read: 20072 # /* config.h. Generated by config.status. */ 20073 configure_input='Generated from '` 20074 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20075 `' by configure.' 20076 if test x"$ac_file" != x-; then 20077 configure_input="$ac_file. $configure_input" 20078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20079$as_echo "$as_me: creating $ac_file" >&6;} 20080 fi 20081 # Neutralize special characters interpreted by sed in replacement strings. 20082 case $configure_input in #( 20083 *\&* | *\|* | *\\* ) 20084 ac_sed_conf_input=`$as_echo "$configure_input" | 20085 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20086 *) ac_sed_conf_input=$configure_input;; 20087 esac 20088 20089 case $ac_tag in 20090 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20092 esac 20093 ;; 20094 esac 20095 20096 ac_dir=`$as_dirname -- "$ac_file" || 20097$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20098 X"$ac_file" : 'X\(//\)[^/]' \| \ 20099 X"$ac_file" : 'X\(//\)$' \| \ 20100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20101$as_echo X"$ac_file" | 20102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20103 s//\1/ 20104 q 20105 } 20106 /^X\(\/\/\)[^/].*/{ 20107 s//\1/ 20108 q 20109 } 20110 /^X\(\/\/\)$/{ 20111 s//\1/ 20112 q 20113 } 20114 /^X\(\/\).*/{ 20115 s//\1/ 20116 q 20117 } 20118 s/.*/./; q'` 20119 as_dir="$ac_dir"; as_fn_mkdir_p 20120 ac_builddir=. 20121 20122case "$ac_dir" in 20123.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20124*) 20125 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20126 # A ".." for each directory in $ac_dir_suffix. 20127 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20128 case $ac_top_builddir_sub in 20129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20131 esac ;; 20132esac 20133ac_abs_top_builddir=$ac_pwd 20134ac_abs_builddir=$ac_pwd$ac_dir_suffix 20135# for backward compatibility: 20136ac_top_builddir=$ac_top_build_prefix 20137 20138case $srcdir in 20139 .) # We are building in place. 20140 ac_srcdir=. 20141 ac_top_srcdir=$ac_top_builddir_sub 20142 ac_abs_top_srcdir=$ac_pwd ;; 20143 [\\/]* | ?:[\\/]* ) # Absolute name. 20144 ac_srcdir=$srcdir$ac_dir_suffix; 20145 ac_top_srcdir=$srcdir 20146 ac_abs_top_srcdir=$srcdir ;; 20147 *) # Relative name. 20148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20149 ac_top_srcdir=$ac_top_build_prefix$srcdir 20150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20151esac 20152ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20153 20154 20155 case $ac_mode in 20156 :F) 20157 # 20158 # CONFIG_FILE 20159 # 20160 20161 case $INSTALL in 20162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20163 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20164 esac 20165 ac_MKDIR_P=$MKDIR_P 20166 case $MKDIR_P in 20167 [\\/$]* | ?:[\\/]* ) ;; 20168 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20169 esac 20170_ACEOF 20171 20172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20173# If the template does not know about datarootdir, expand it. 20174# FIXME: This hack should be removed a few years after 2.60. 20175ac_datarootdir_hack=; ac_datarootdir_seen= 20176ac_sed_dataroot=' 20177/datarootdir/ { 20178 p 20179 q 20180} 20181/@datadir@/p 20182/@docdir@/p 20183/@infodir@/p 20184/@localedir@/p 20185/@mandir@/p' 20186case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20187*datarootdir*) ac_datarootdir_seen=yes;; 20188*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20190$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20191_ACEOF 20192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20193 ac_datarootdir_hack=' 20194 s&@datadir@&$datadir&g 20195 s&@docdir@&$docdir&g 20196 s&@infodir@&$infodir&g 20197 s&@localedir@&$localedir&g 20198 s&@mandir@&$mandir&g 20199 s&\\\${datarootdir}&$datarootdir&g' ;; 20200esac 20201_ACEOF 20202 20203# Neutralize VPATH when `$srcdir' = `.'. 20204# Shell code in configure.ac might set extrasub. 20205# FIXME: do we really want to maintain this feature? 20206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20207ac_sed_extra="$ac_vpsub 20208$extrasub 20209_ACEOF 20210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20211:t 20212/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20213s|@configure_input@|$ac_sed_conf_input|;t t 20214s&@top_builddir@&$ac_top_builddir_sub&;t t 20215s&@top_build_prefix@&$ac_top_build_prefix&;t t 20216s&@srcdir@&$ac_srcdir&;t t 20217s&@abs_srcdir@&$ac_abs_srcdir&;t t 20218s&@top_srcdir@&$ac_top_srcdir&;t t 20219s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20220s&@builddir@&$ac_builddir&;t t 20221s&@abs_builddir@&$ac_abs_builddir&;t t 20222s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20223s&@INSTALL@&$ac_INSTALL&;t t 20224s&@MKDIR_P@&$ac_MKDIR_P&;t t 20225$ac_datarootdir_hack 20226" 20227eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20228 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20229 20230test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20231 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20233 "$ac_tmp/out"`; test -z "$ac_out"; } && 20234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20235which seems to be undefined. Please make sure it is defined" >&5 20236$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20237which seems to be undefined. Please make sure it is defined" >&2;} 20238 20239 rm -f "$ac_tmp/stdin" 20240 case $ac_file in 20241 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20242 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20243 esac \ 20244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20245 ;; 20246 :H) 20247 # 20248 # CONFIG_HEADER 20249 # 20250 if test x"$ac_file" != x-; then 20251 { 20252 $as_echo "/* $configure_input */" \ 20253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20254 } >"$ac_tmp/config.h" \ 20255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20256 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20258$as_echo "$as_me: $ac_file is unchanged" >&6;} 20259 else 20260 rm -f "$ac_file" 20261 mv "$ac_tmp/config.h" "$ac_file" \ 20262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20263 fi 20264 else 20265 $as_echo "/* $configure_input */" \ 20266 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20267 || as_fn_error $? "could not create -" "$LINENO" 5 20268 fi 20269# Compute "$ac_file"'s index in $config_headers. 20270_am_arg="$ac_file" 20271_am_stamp_count=1 20272for _am_header in $config_headers :; do 20273 case $_am_header in 20274 $_am_arg | $_am_arg:* ) 20275 break ;; 20276 * ) 20277 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20278 esac 20279done 20280echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20281$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20282 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20283 X"$_am_arg" : 'X\(//\)$' \| \ 20284 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20285$as_echo X"$_am_arg" | 20286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20287 s//\1/ 20288 q 20289 } 20290 /^X\(\/\/\)[^/].*/{ 20291 s//\1/ 20292 q 20293 } 20294 /^X\(\/\/\)$/{ 20295 s//\1/ 20296 q 20297 } 20298 /^X\(\/\).*/{ 20299 s//\1/ 20300 q 20301 } 20302 s/.*/./; q'`/stamp-h$_am_stamp_count 20303 ;; 20304 20305 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20306$as_echo "$as_me: executing $ac_file commands" >&6;} 20307 ;; 20308 esac 20309 20310 20311 case $ac_file$ac_mode in 20312 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20313 # Older Autoconf quotes --file arguments for eval, but not when files 20314 # are listed without --file. Let's play safe and only enable the eval 20315 # if we detect the quoting. 20316 case $CONFIG_FILES in 20317 *\'*) eval set x "$CONFIG_FILES" ;; 20318 *) set x $CONFIG_FILES ;; 20319 esac 20320 shift 20321 for mf 20322 do 20323 # Strip MF so we end up with the name of the file. 20324 mf=`echo "$mf" | sed -e 's/:.*$//'` 20325 # Check whether this is an Automake generated Makefile or not. 20326 # We used to match only the files named 'Makefile.in', but 20327 # some people rename them; so instead we look at the file content. 20328 # Grep'ing the first line is not enough: some people post-process 20329 # each Makefile.in and add a new line on top of each file to say so. 20330 # Grep'ing the whole file is not good either: AIX grep has a line 20331 # limit of 2048, but all sed's we know have understand at least 4000. 20332 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20333 dirpart=`$as_dirname -- "$mf" || 20334$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20335 X"$mf" : 'X\(//\)[^/]' \| \ 20336 X"$mf" : 'X\(//\)$' \| \ 20337 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20338$as_echo X"$mf" | 20339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20340 s//\1/ 20341 q 20342 } 20343 /^X\(\/\/\)[^/].*/{ 20344 s//\1/ 20345 q 20346 } 20347 /^X\(\/\/\)$/{ 20348 s//\1/ 20349 q 20350 } 20351 /^X\(\/\).*/{ 20352 s//\1/ 20353 q 20354 } 20355 s/.*/./; q'` 20356 else 20357 continue 20358 fi 20359 # Extract the definition of DEPDIR, am__include, and am__quote 20360 # from the Makefile without running 'make'. 20361 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20362 test -z "$DEPDIR" && continue 20363 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20364 test -z "$am__include" && continue 20365 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20366 # Find all dependency output files, they are included files with 20367 # $(DEPDIR) in their names. We invoke sed twice because it is the 20368 # simplest approach to changing $(DEPDIR) to its actual value in the 20369 # expansion. 20370 for file in `sed -n " 20371 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20372 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20373 # Make sure the directory exists. 20374 test -f "$dirpart/$file" && continue 20375 fdir=`$as_dirname -- "$file" || 20376$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20377 X"$file" : 'X\(//\)[^/]' \| \ 20378 X"$file" : 'X\(//\)$' \| \ 20379 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20380$as_echo X"$file" | 20381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20382 s//\1/ 20383 q 20384 } 20385 /^X\(\/\/\)[^/].*/{ 20386 s//\1/ 20387 q 20388 } 20389 /^X\(\/\/\)$/{ 20390 s//\1/ 20391 q 20392 } 20393 /^X\(\/\).*/{ 20394 s//\1/ 20395 q 20396 } 20397 s/.*/./; q'` 20398 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20399 # echo "creating $dirpart/$file" 20400 echo '# dummy' > "$dirpart/$file" 20401 done 20402 done 20403} 20404 ;; 20405 "libtool":C) 20406 20407 # See if we are running on zsh, and set the options that allow our 20408 # commands through without removal of \ escapes. 20409 if test -n "${ZSH_VERSION+set}"; then 20410 setopt NO_GLOB_SUBST 20411 fi 20412 20413 cfgfile=${ofile}T 20414 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20415 $RM "$cfgfile" 20416 20417 cat <<_LT_EOF >> "$cfgfile" 20418#! $SHELL 20419# Generated automatically by $as_me ($PACKAGE) $VERSION 20420# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20421 20422# Provide generalized library-building support services. 20423# Written by Gordon Matzigkeit, 1996 20424 20425# Copyright (C) 2014 Free Software Foundation, Inc. 20426# This is free software; see the source for copying conditions. There is NO 20427# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20428 20429# GNU Libtool is free software; you can redistribute it and/or modify 20430# it under the terms of the GNU General Public License as published by 20431# the Free Software Foundation; either version 2 of of the License, or 20432# (at your option) any later version. 20433# 20434# As a special exception to the GNU General Public License, if you 20435# distribute this file as part of a program or library that is built 20436# using GNU Libtool, you may include this file under the same 20437# distribution terms that you use for the rest of that program. 20438# 20439# GNU Libtool is distributed in the hope that it will be useful, but 20440# WITHOUT ANY WARRANTY; without even the implied warranty of 20441# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20442# GNU General Public License for more details. 20443# 20444# You should have received a copy of the GNU General Public License 20445# along with this program. If not, see <http://www.gnu.org/licenses/>. 20446 20447 20448# The names of the tagged configurations supported by this script. 20449available_tags='CXX ' 20450 20451# Configured defaults for sys_lib_dlsearch_path munging. 20452: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20453 20454# ### BEGIN LIBTOOL CONFIG 20455 20456# Whether or not to build shared libraries. 20457build_libtool_libs=$enable_shared 20458 20459# Which release of libtool.m4 was used? 20460macro_version=$macro_version 20461macro_revision=$macro_revision 20462 20463# Whether or not to build static libraries. 20464build_old_libs=$enable_static 20465 20466# What type of objects to build. 20467pic_mode=$pic_mode 20468 20469# Whether or not to optimize for fast installation. 20470fast_install=$enable_fast_install 20471 20472# Shared archive member basename,for filename based shared library versioning on AIX. 20473shared_archive_member_spec=$shared_archive_member_spec 20474 20475# Shell to use when invoking shell scripts. 20476SHELL=$lt_SHELL 20477 20478# An echo program that protects backslashes. 20479ECHO=$lt_ECHO 20480 20481# The PATH separator for the build system. 20482PATH_SEPARATOR=$lt_PATH_SEPARATOR 20483 20484# The host system. 20485host_alias=$host_alias 20486host=$host 20487host_os=$host_os 20488 20489# The build system. 20490build_alias=$build_alias 20491build=$build 20492build_os=$build_os 20493 20494# A sed program that does not truncate output. 20495SED=$lt_SED 20496 20497# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20498Xsed="\$SED -e 1s/^X//" 20499 20500# A grep program that handles long lines. 20501GREP=$lt_GREP 20502 20503# An ERE matcher. 20504EGREP=$lt_EGREP 20505 20506# A literal string matcher. 20507FGREP=$lt_FGREP 20508 20509# A BSD- or MS-compatible name lister. 20510NM=$lt_NM 20511 20512# Whether we need soft or hard links. 20513LN_S=$lt_LN_S 20514 20515# What is the maximum length of a command? 20516max_cmd_len=$max_cmd_len 20517 20518# Object file suffix (normally "o"). 20519objext=$ac_objext 20520 20521# Executable file suffix (normally ""). 20522exeext=$exeext 20523 20524# whether the shell understands "unset". 20525lt_unset=$lt_unset 20526 20527# turn spaces into newlines. 20528SP2NL=$lt_lt_SP2NL 20529 20530# turn newlines into spaces. 20531NL2SP=$lt_lt_NL2SP 20532 20533# convert \$build file names to \$host format. 20534to_host_file_cmd=$lt_cv_to_host_file_cmd 20535 20536# convert \$build files to toolchain format. 20537to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20538 20539# An object symbol dumper. 20540OBJDUMP=$lt_OBJDUMP 20541 20542# Method to check whether dependent libraries are shared objects. 20543deplibs_check_method=$lt_deplibs_check_method 20544 20545# Command to use when deplibs_check_method = "file_magic". 20546file_magic_cmd=$lt_file_magic_cmd 20547 20548# How to find potential files when deplibs_check_method = "file_magic". 20549file_magic_glob=$lt_file_magic_glob 20550 20551# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20552want_nocaseglob=$lt_want_nocaseglob 20553 20554# DLL creation program. 20555DLLTOOL=$lt_DLLTOOL 20556 20557# Command to associate shared and link libraries. 20558sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20559 20560# The archiver. 20561AR=$lt_AR 20562 20563# Flags to create an archive. 20564AR_FLAGS=$lt_AR_FLAGS 20565 20566# How to feed a file listing to the archiver. 20567archiver_list_spec=$lt_archiver_list_spec 20568 20569# A symbol stripping program. 20570STRIP=$lt_STRIP 20571 20572# Commands used to install an old-style archive. 20573RANLIB=$lt_RANLIB 20574old_postinstall_cmds=$lt_old_postinstall_cmds 20575old_postuninstall_cmds=$lt_old_postuninstall_cmds 20576 20577# Whether to use a lock for old archive extraction. 20578lock_old_archive_extraction=$lock_old_archive_extraction 20579 20580# A C compiler. 20581LTCC=$lt_CC 20582 20583# LTCC compiler flags. 20584LTCFLAGS=$lt_CFLAGS 20585 20586# Take the output of nm and produce a listing of raw symbols and C names. 20587global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20588 20589# Transform the output of nm in a proper C declaration. 20590global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20591 20592# Transform the output of nm into a list of symbols to manually relocate. 20593global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20594 20595# Transform the output of nm in a C name address pair. 20596global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20597 20598# Transform the output of nm in a C name address pair when lib prefix is needed. 20599global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20600 20601# The name lister interface. 20602nm_interface=$lt_lt_cv_nm_interface 20603 20604# Specify filename containing input files for \$NM. 20605nm_file_list_spec=$lt_nm_file_list_spec 20606 20607# The root where to search for dependent libraries,and where our libraries should be installed. 20608lt_sysroot=$lt_sysroot 20609 20610# Command to truncate a binary pipe. 20611lt_truncate_bin=$lt_lt_cv_truncate_bin 20612 20613# The name of the directory that contains temporary libtool files. 20614objdir=$objdir 20615 20616# Used to examine libraries when file_magic_cmd begins with "file". 20617MAGIC_CMD=$MAGIC_CMD 20618 20619# Must we lock files when doing compilation? 20620need_locks=$lt_need_locks 20621 20622# Manifest tool. 20623MANIFEST_TOOL=$lt_MANIFEST_TOOL 20624 20625# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20626DSYMUTIL=$lt_DSYMUTIL 20627 20628# Tool to change global to local symbols on Mac OS X. 20629NMEDIT=$lt_NMEDIT 20630 20631# Tool to manipulate fat objects and archives on Mac OS X. 20632LIPO=$lt_LIPO 20633 20634# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20635OTOOL=$lt_OTOOL 20636 20637# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20638OTOOL64=$lt_OTOOL64 20639 20640# Old archive suffix (normally "a"). 20641libext=$libext 20642 20643# Shared library suffix (normally ".so"). 20644shrext_cmds=$lt_shrext_cmds 20645 20646# The commands to extract the exported symbol list from a shared archive. 20647extract_expsyms_cmds=$lt_extract_expsyms_cmds 20648 20649# Variables whose values should be saved in libtool wrapper scripts and 20650# restored at link time. 20651variables_saved_for_relink=$lt_variables_saved_for_relink 20652 20653# Do we need the "lib" prefix for modules? 20654need_lib_prefix=$need_lib_prefix 20655 20656# Do we need a version for libraries? 20657need_version=$need_version 20658 20659# Library versioning type. 20660version_type=$version_type 20661 20662# Shared library runtime path variable. 20663runpath_var=$runpath_var 20664 20665# Shared library path variable. 20666shlibpath_var=$shlibpath_var 20667 20668# Is shlibpath searched before the hard-coded library search path? 20669shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20670 20671# Format of library name prefix. 20672libname_spec=$lt_libname_spec 20673 20674# List of archive names. First name is the real one, the rest are links. 20675# The last name is the one that the linker finds with -lNAME 20676library_names_spec=$lt_library_names_spec 20677 20678# The coded name of the library, if different from the real name. 20679soname_spec=$lt_soname_spec 20680 20681# Permission mode override for installation of shared libraries. 20682install_override_mode=$lt_install_override_mode 20683 20684# Command to use after installation of a shared archive. 20685postinstall_cmds=$lt_postinstall_cmds 20686 20687# Command to use after uninstallation of a shared archive. 20688postuninstall_cmds=$lt_postuninstall_cmds 20689 20690# Commands used to finish a libtool library installation in a directory. 20691finish_cmds=$lt_finish_cmds 20692 20693# As "finish_cmds", except a single script fragment to be evaled but 20694# not shown. 20695finish_eval=$lt_finish_eval 20696 20697# Whether we should hardcode library paths into libraries. 20698hardcode_into_libs=$hardcode_into_libs 20699 20700# Compile-time system search path for libraries. 20701sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20702 20703# Detected run-time system search path for libraries. 20704sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20705 20706# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20707configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20708 20709# Whether dlopen is supported. 20710dlopen_support=$enable_dlopen 20711 20712# Whether dlopen of programs is supported. 20713dlopen_self=$enable_dlopen_self 20714 20715# Whether dlopen of statically linked programs is supported. 20716dlopen_self_static=$enable_dlopen_self_static 20717 20718# Commands to strip libraries. 20719old_striplib=$lt_old_striplib 20720striplib=$lt_striplib 20721 20722 20723# The linker used to build libraries. 20724LD=$lt_LD 20725 20726# How to create reloadable object files. 20727reload_flag=$lt_reload_flag 20728reload_cmds=$lt_reload_cmds 20729 20730# Commands used to build an old-style archive. 20731old_archive_cmds=$lt_old_archive_cmds 20732 20733# A language specific compiler. 20734CC=$lt_compiler 20735 20736# Is the compiler the GNU compiler? 20737with_gcc=$GCC 20738 20739# Compiler flag to turn off builtin functions. 20740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20741 20742# Additional compiler flags for building library objects. 20743pic_flag=$lt_lt_prog_compiler_pic 20744 20745# How to pass a linker flag through the compiler. 20746wl=$lt_lt_prog_compiler_wl 20747 20748# Compiler flag to prevent dynamic linking. 20749link_static_flag=$lt_lt_prog_compiler_static 20750 20751# Does compiler simultaneously support -c and -o options? 20752compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20753 20754# Whether or not to add -lc for building shared libraries. 20755build_libtool_need_lc=$archive_cmds_need_lc 20756 20757# Whether or not to disallow shared libs when runtime libs are static. 20758allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20759 20760# Compiler flag to allow reflexive dlopens. 20761export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20762 20763# Compiler flag to generate shared objects directly from archives. 20764whole_archive_flag_spec=$lt_whole_archive_flag_spec 20765 20766# Whether the compiler copes with passing no objects directly. 20767compiler_needs_object=$lt_compiler_needs_object 20768 20769# Create an old-style archive from a shared archive. 20770old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20771 20772# Create a temporary old-style archive to link instead of a shared archive. 20773old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20774 20775# Commands used to build a shared archive. 20776archive_cmds=$lt_archive_cmds 20777archive_expsym_cmds=$lt_archive_expsym_cmds 20778 20779# Commands used to build a loadable module if different from building 20780# a shared archive. 20781module_cmds=$lt_module_cmds 20782module_expsym_cmds=$lt_module_expsym_cmds 20783 20784# Whether we are building with GNU ld or not. 20785with_gnu_ld=$lt_with_gnu_ld 20786 20787# Flag that allows shared libraries with undefined symbols to be built. 20788allow_undefined_flag=$lt_allow_undefined_flag 20789 20790# Flag that enforces no undefined symbols. 20791no_undefined_flag=$lt_no_undefined_flag 20792 20793# Flag to hardcode \$libdir into a binary during linking. 20794# This must work even if \$libdir does not exist 20795hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20796 20797# Whether we need a single "-rpath" flag with a separated argument. 20798hardcode_libdir_separator=$lt_hardcode_libdir_separator 20799 20800# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20801# DIR into the resulting binary. 20802hardcode_direct=$hardcode_direct 20803 20804# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20805# DIR into the resulting binary and the resulting library dependency is 20806# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20807# library is relocated. 20808hardcode_direct_absolute=$hardcode_direct_absolute 20809 20810# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20811# into the resulting binary. 20812hardcode_minus_L=$hardcode_minus_L 20813 20814# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20815# into the resulting binary. 20816hardcode_shlibpath_var=$hardcode_shlibpath_var 20817 20818# Set to "yes" if building a shared library automatically hardcodes DIR 20819# into the library and all subsequent libraries and executables linked 20820# against it. 20821hardcode_automatic=$hardcode_automatic 20822 20823# Set to yes if linker adds runtime paths of dependent libraries 20824# to runtime path list. 20825inherit_rpath=$inherit_rpath 20826 20827# Whether libtool must link a program against all its dependency libraries. 20828link_all_deplibs=$link_all_deplibs 20829 20830# Set to "yes" if exported symbols are required. 20831always_export_symbols=$always_export_symbols 20832 20833# The commands to list exported symbols. 20834export_symbols_cmds=$lt_export_symbols_cmds 20835 20836# Symbols that should not be listed in the preloaded symbols. 20837exclude_expsyms=$lt_exclude_expsyms 20838 20839# Symbols that must always be exported. 20840include_expsyms=$lt_include_expsyms 20841 20842# Commands necessary for linking programs (against libraries) with templates. 20843prelink_cmds=$lt_prelink_cmds 20844 20845# Commands necessary for finishing linking programs. 20846postlink_cmds=$lt_postlink_cmds 20847 20848# Specify filename containing input files. 20849file_list_spec=$lt_file_list_spec 20850 20851# How to hardcode a shared library path into an executable. 20852hardcode_action=$hardcode_action 20853 20854# The directories searched by this compiler when creating a shared library. 20855compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20856 20857# Dependencies to place before and after the objects being linked to 20858# create a shared library. 20859predep_objects=$lt_predep_objects 20860postdep_objects=$lt_postdep_objects 20861predeps=$lt_predeps 20862postdeps=$lt_postdeps 20863 20864# The library search path used internally by the compiler when linking 20865# a shared library. 20866compiler_lib_search_path=$lt_compiler_lib_search_path 20867 20868# ### END LIBTOOL CONFIG 20869 20870_LT_EOF 20871 20872 cat <<'_LT_EOF' >> "$cfgfile" 20873 20874# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20875 20876# func_munge_path_list VARIABLE PATH 20877# ----------------------------------- 20878# VARIABLE is name of variable containing _space_ separated list of 20879# directories to be munged by the contents of PATH, which is string 20880# having a format: 20881# "DIR[:DIR]:" 20882# string "DIR[ DIR]" will be prepended to VARIABLE 20883# ":DIR[:DIR]" 20884# string "DIR[ DIR]" will be appended to VARIABLE 20885# "DIRP[:DIRP]::[DIRA:]DIRA" 20886# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20887# "DIRA[ DIRA]" will be appended to VARIABLE 20888# "DIR[:DIR]" 20889# VARIABLE will be replaced by "DIR[ DIR]" 20890func_munge_path_list () 20891{ 20892 case x$2 in 20893 x) 20894 ;; 20895 *:) 20896 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20897 ;; 20898 x:*) 20899 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20900 ;; 20901 *::*) 20902 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20903 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20904 ;; 20905 *) 20906 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20907 ;; 20908 esac 20909} 20910 20911 20912# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20913func_cc_basename () 20914{ 20915 for cc_temp in $*""; do 20916 case $cc_temp in 20917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20919 \-*) ;; 20920 *) break;; 20921 esac 20922 done 20923 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20924} 20925 20926 20927# ### END FUNCTIONS SHARED WITH CONFIGURE 20928 20929_LT_EOF 20930 20931 case $host_os in 20932 aix3*) 20933 cat <<\_LT_EOF >> "$cfgfile" 20934# AIX sometimes has problems with the GCC collect2 program. For some 20935# reason, if we set the COLLECT_NAMES environment variable, the problems 20936# vanish in a puff of smoke. 20937if test set != "${COLLECT_NAMES+set}"; then 20938 COLLECT_NAMES= 20939 export COLLECT_NAMES 20940fi 20941_LT_EOF 20942 ;; 20943 esac 20944 20945 20946ltmain=$ac_aux_dir/ltmain.sh 20947 20948 20949 # We use sed instead of cat because bash on DJGPP gets confused if 20950 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20951 # text mode, it properly converts lines to CR/LF. This bash problem 20952 # is reportedly fixed, but why not run on old versions too? 20953 sed '$q' "$ltmain" >> "$cfgfile" \ 20954 || (rm -f "$cfgfile"; exit 1) 20955 20956 mv -f "$cfgfile" "$ofile" || 20957 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20958 chmod +x "$ofile" 20959 20960 20961 cat <<_LT_EOF >> "$ofile" 20962 20963# ### BEGIN LIBTOOL TAG CONFIG: CXX 20964 20965# The linker used to build libraries. 20966LD=$lt_LD_CXX 20967 20968# How to create reloadable object files. 20969reload_flag=$lt_reload_flag_CXX 20970reload_cmds=$lt_reload_cmds_CXX 20971 20972# Commands used to build an old-style archive. 20973old_archive_cmds=$lt_old_archive_cmds_CXX 20974 20975# A language specific compiler. 20976CC=$lt_compiler_CXX 20977 20978# Is the compiler the GNU compiler? 20979with_gcc=$GCC_CXX 20980 20981# Compiler flag to turn off builtin functions. 20982no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20983 20984# Additional compiler flags for building library objects. 20985pic_flag=$lt_lt_prog_compiler_pic_CXX 20986 20987# How to pass a linker flag through the compiler. 20988wl=$lt_lt_prog_compiler_wl_CXX 20989 20990# Compiler flag to prevent dynamic linking. 20991link_static_flag=$lt_lt_prog_compiler_static_CXX 20992 20993# Does compiler simultaneously support -c and -o options? 20994compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20995 20996# Whether or not to add -lc for building shared libraries. 20997build_libtool_need_lc=$archive_cmds_need_lc_CXX 20998 20999# Whether or not to disallow shared libs when runtime libs are static. 21000allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 21001 21002# Compiler flag to allow reflexive dlopens. 21003export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 21004 21005# Compiler flag to generate shared objects directly from archives. 21006whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 21007 21008# Whether the compiler copes with passing no objects directly. 21009compiler_needs_object=$lt_compiler_needs_object_CXX 21010 21011# Create an old-style archive from a shared archive. 21012old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 21013 21014# Create a temporary old-style archive to link instead of a shared archive. 21015old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 21016 21017# Commands used to build a shared archive. 21018archive_cmds=$lt_archive_cmds_CXX 21019archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 21020 21021# Commands used to build a loadable module if different from building 21022# a shared archive. 21023module_cmds=$lt_module_cmds_CXX 21024module_expsym_cmds=$lt_module_expsym_cmds_CXX 21025 21026# Whether we are building with GNU ld or not. 21027with_gnu_ld=$lt_with_gnu_ld_CXX 21028 21029# Flag that allows shared libraries with undefined symbols to be built. 21030allow_undefined_flag=$lt_allow_undefined_flag_CXX 21031 21032# Flag that enforces no undefined symbols. 21033no_undefined_flag=$lt_no_undefined_flag_CXX 21034 21035# Flag to hardcode \$libdir into a binary during linking. 21036# This must work even if \$libdir does not exist 21037hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 21038 21039# Whether we need a single "-rpath" flag with a separated argument. 21040hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 21041 21042# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21043# DIR into the resulting binary. 21044hardcode_direct=$hardcode_direct_CXX 21045 21046# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21047# DIR into the resulting binary and the resulting library dependency is 21048# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21049# library is relocated. 21050hardcode_direct_absolute=$hardcode_direct_absolute_CXX 21051 21052# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21053# into the resulting binary. 21054hardcode_minus_L=$hardcode_minus_L_CXX 21055 21056# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21057# into the resulting binary. 21058hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 21059 21060# Set to "yes" if building a shared library automatically hardcodes DIR 21061# into the library and all subsequent libraries and executables linked 21062# against it. 21063hardcode_automatic=$hardcode_automatic_CXX 21064 21065# Set to yes if linker adds runtime paths of dependent libraries 21066# to runtime path list. 21067inherit_rpath=$inherit_rpath_CXX 21068 21069# Whether libtool must link a program against all its dependency libraries. 21070link_all_deplibs=$link_all_deplibs_CXX 21071 21072# Set to "yes" if exported symbols are required. 21073always_export_symbols=$always_export_symbols_CXX 21074 21075# The commands to list exported symbols. 21076export_symbols_cmds=$lt_export_symbols_cmds_CXX 21077 21078# Symbols that should not be listed in the preloaded symbols. 21079exclude_expsyms=$lt_exclude_expsyms_CXX 21080 21081# Symbols that must always be exported. 21082include_expsyms=$lt_include_expsyms_CXX 21083 21084# Commands necessary for linking programs (against libraries) with templates. 21085prelink_cmds=$lt_prelink_cmds_CXX 21086 21087# Commands necessary for finishing linking programs. 21088postlink_cmds=$lt_postlink_cmds_CXX 21089 21090# Specify filename containing input files. 21091file_list_spec=$lt_file_list_spec_CXX 21092 21093# How to hardcode a shared library path into an executable. 21094hardcode_action=$hardcode_action_CXX 21095 21096# The directories searched by this compiler when creating a shared library. 21097compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 21098 21099# Dependencies to place before and after the objects being linked to 21100# create a shared library. 21101predep_objects=$lt_predep_objects_CXX 21102postdep_objects=$lt_postdep_objects_CXX 21103predeps=$lt_predeps_CXX 21104postdeps=$lt_postdeps_CXX 21105 21106# The library search path used internally by the compiler when linking 21107# a shared library. 21108compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 21109 21110# ### END LIBTOOL TAG CONFIG: CXX 21111_LT_EOF 21112 21113 ;; 21114 21115 esac 21116done # for ac_tag 21117 21118 21119as_fn_exit 0 21120_ACEOF 21121ac_clean_files=$ac_clean_files_save 21122 21123test $ac_write_fail = 0 || 21124 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21125 21126 21127# configure is writing to config.log, and then calls config.status. 21128# config.status does its own redirection, appending to config.log. 21129# Unfortunately, on DOS this fails, as config.log is still kept open 21130# by configure, so config.status won't be able to write to it; its 21131# output is simply discarded. So we exec the FD to /dev/null, 21132# effectively closing config.log, so it can be properly (re)opened and 21133# appended to by config.status. When coming back to configure, we 21134# need to make the FD available again. 21135if test "$no_create" != yes; then 21136 ac_cs_success=: 21137 ac_config_status_args= 21138 test "$silent" = yes && 21139 ac_config_status_args="$ac_config_status_args --quiet" 21140 exec 5>/dev/null 21141 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21142 exec 5>>config.log 21143 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21144 # would make configure fail if this is the last instruction. 21145 $ac_cs_success || as_fn_exit 1 21146fi 21147if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21149$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21150fi 21151 21152